Find first not of any character in set
| 319 | |
| 320 | // Find first not of any character in set |
| 321 | fl::size find_first_not_of(string_view sv, fl::size pos = 0) const FL_NOEXCEPT { |
| 322 | if (pos >= mSize) return npos; |
| 323 | for (fl::size i = pos; i < mSize; ++i) { |
| 324 | bool found = false; |
| 325 | for (fl::size j = 0; j < sv.mSize; ++j) { |
| 326 | if (mData[i] == sv.mData[j]) { |
| 327 | found = true; |
| 328 | break; |
| 329 | } |
| 330 | } |
| 331 | if (!found) return i; |
| 332 | } |
| 333 | return npos; |
| 334 | } |
| 335 | |
| 336 | fl::size find_first_not_of(char ch, fl::size pos = 0) const FL_NOEXCEPT { |
| 337 | if (pos >= mSize) return npos; |
nothing calls this directly
no test coverage detected