<div dir="ltr"><div><div><div><div>Hi all,<br><br></div>I've just finished translating Calc's inputwin.cxx and noticed the following (local static) function:<br><br>static sal_Int32 findFirstNonMatchingChar(const OUString& rStr1, const OUString& rStr2)<br>
{<br> // Search the string for unmatching chars<br> const sal_Unicode* pStr1 = rStr1.getStr();<br> const sal_Unicode* pStr2 = rStr2.getStr();<br> sal_Int32 i = 0;<br> while ( i < rStr1.getLength() )<br>
{<br> // Abort on the first unmatching char<br> if ( *pStr1 != *pStr2 )<br> return i;<br> ++pStr1,<br> ++pStr2,<br> ++i;<br> }<br><br> return i;<br>}<br><br></div>Would that be something one could move to another place (like ustring.cxx) where other code could use it too?<br>
<br></div>Regards<br></div>Philipp<br></div>