| 670 | // ======= FIND_LAST_NOT_OF ======= |
| 671 | |
| 672 | fl::size basic_string::find_last_not_of(char c, fl::size pos) const { |
| 673 | if (mLength == 0) return npos; |
| 674 | fl::size searchPos = (pos >= mLength || pos == npos) ? (mLength - 1) : pos; |
| 675 | const char* str = c_str(); |
| 676 | for (fl::size i = searchPos + 1; i > 0; --i) { |
| 677 | if (str[i - 1] != c) return i - 1; |
| 678 | } |
| 679 | return npos; |
| 680 | } |
| 681 | |
| 682 | fl::size basic_string::find_last_not_of(const char* s, fl::size pos, fl::size count) const { |
| 683 | if (!s || count == 0) { |
no test coverage detected