Find first of any character in set
| 268 | |
| 269 | // Find first of any character in set |
| 270 | fl::size find_first_of(string_view sv, fl::size pos = 0) const FL_NOEXCEPT { |
| 271 | if (pos >= mSize || sv.empty()) return npos; |
| 272 | for (fl::size i = pos; i < mSize; ++i) { |
| 273 | for (fl::size j = 0; j < sv.mSize; ++j) { |
| 274 | if (mData[i] == sv.mData[j]) { |
| 275 | return i; |
| 276 | } |
| 277 | } |
| 278 | } |
| 279 | return npos; |
| 280 | } |
| 281 | |
| 282 | fl::size find_first_of(char ch, fl::size pos = 0) const FL_NOEXCEPT { |
| 283 | return find(ch, pos); |
nothing calls this directly
no test coverage detected