| 638 | // ======= FIND_FIRST_NOT_OF ======= |
| 639 | |
| 640 | fl::size basic_string::find_first_not_of(char c, fl::size pos) const { |
| 641 | if (pos >= mLength) return npos; |
| 642 | const char* str = c_str(); |
| 643 | for (fl::size i = pos; i < mLength; ++i) { |
| 644 | if (str[i] != c) return i; |
| 645 | } |
| 646 | return npos; |
| 647 | } |
| 648 | |
| 649 | fl::size basic_string::find_first_not_of(const char* s, fl::size pos, fl::size count) const { |
| 650 | if (!s || count == 0) return (pos < mLength) ? pos : npos; |
no test coverage detected