| 593 | // ======= FIND_FIRST_OF ======= |
| 594 | |
| 595 | fl::size basic_string::find_first_of(const char* s, fl::size pos, fl::size count) const { |
| 596 | if (!s || count == 0) return npos; |
| 597 | if (pos >= mLength) return npos; |
| 598 | const char* str = c_str(); |
| 599 | for (fl::size i = pos; i < mLength; ++i) { |
| 600 | for (fl::size j = 0; j < count; ++j) { |
| 601 | if (str[i] == s[j]) return i; |
| 602 | } |
| 603 | } |
| 604 | return npos; |
| 605 | } |
| 606 | |
| 607 | fl::size basic_string::find_first_of(const char* s, fl::size pos) const { |
| 608 | if (!s) return npos; |
no test coverage detected