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

Method find_first_not_of

MyGUIEngine/src/MyGUI_UString.cpp:1407–1422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1405 }
1406
1407 UString::size_type UString::find_first_not_of(
1408 const UString& str,
1409 size_type index /*= 0*/,
1410 size_type num /*= npos */) const
1411 {
1412 size_type i = 0;
1413 const size_type len = length();
1414 while (i < num && (index + i) < len)
1415 {
1416 unicode_char ch = getChar(index + i);
1417 if (!str.inString(ch))
1418 return index + i;
1419 i += _utf16_char_length(ch); // increment by the Unicode character length
1420 }
1421 return npos;
1422 }
1423
1424 UString::size_type UString::find_first_not_of(code_point ch, size_type index /*= 0 */) const
1425 {

Callers 9

parseTagMethod · 0.80
parseLineMethod · 0.80
trimFunction · 0.80
splitFunction · 0.80
prepareMethod · 0.80
_checkStreamFailFunction · 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