| 683 | } |
| 684 | |
| 685 | String::size_type String::rfind(char ch, size_type pos) const { |
| 686 | const char* begin = c_str(); |
| 687 | const char* it = begin + std::min(pos, size() - 1); |
| 688 | for (; it >= begin && *it != ch; it--); |
| 689 | if (it >= begin) { return static_cast<size_type>(it - begin); } |
| 690 | else { return npos; } |
| 691 | } |
| 692 | |
| 693 | int String::compare(const char* other, bool no_case) const { |
| 694 | if(no_case) |
no test coverage detected