| 10711 | } |
| 10712 | |
| 10713 | bool String::endsWithIgnoreCase (const String& other) const noexcept |
| 10714 | { |
| 10715 | CharPointerType end (text.findTerminatingNull()); |
| 10716 | CharPointerType otherEnd (other.text.findTerminatingNull()); |
| 10717 | |
| 10718 | while (end > text && otherEnd > other.text) |
| 10719 | { |
| 10720 | --end; |
| 10721 | --otherEnd; |
| 10722 | |
| 10723 | if (end.toLowerCase() != otherEnd.toLowerCase()) |
| 10724 | return false; |
| 10725 | } |
| 10726 | |
| 10727 | return otherEnd == other.text; |
| 10728 | } |
| 10729 | |
| 10730 | String String::toUpperCase() const |
| 10731 | { |
no test coverage detected