MCPcopy Create free account
hub / github.com/MyGUI/mygui / find_first_of

Method find_first_of

MyGUIEngine/src/MyGUI_UString.cpp:1366–1379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1364 }
1365
1366 UString::size_type UString::find_first_of(const UString& str, size_type index /*= 0*/, size_type num /*= npos */)
1367 const
1368 {
1369 size_type i = 0;
1370 const size_type len = length();
1371 while (i < num && (index + i) < len)
1372 {
1373 unicode_char ch = getChar(index + i);
1374 if (str.inString(ch))
1375 return index + i;
1376 i += _utf16_char_length(ch); // increment by the Unicode character length
1377 }
1378 return npos;
1379 }
1380
1381 UString::size_type UString::find_first_of(code_point ch, size_type index /*= 0 */) const
1382 {

Callers 12

notifyEndDialogMethod · 0.80
convert_to_xmlFunction · 0.80
parseTagMethod · 0.80
checkPairMethod · 0.80
findMethod · 0.80
_loadLanguageMethod · 0.80
splitFunction · 0.80
prepareMethod · 0.80
checkParseFileNameFunction · 0.80
prepareMethod · 0.80
prepareMethod · 0.80
prepareMethod · 0.80

Calls 3

UStringFunction · 0.85
inStringMethod · 0.80
lengthFunction · 0.50

Tested by

no test coverage detected