| 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 | { |