| 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 | { |
no test coverage detected