| 846 | bool operator!=(const char_type* str) const {return different(str);} |
| 847 | |
| 848 | bool getWord(StringType& from, const char* sep) |
| 849 | { |
| 850 | from.alltrim(sep); |
| 851 | size_type p = from.find_first_of(sep); |
| 852 | if (p == npos) |
| 853 | { |
| 854 | if (from.isEmpty()) |
| 855 | { |
| 856 | *this = ""; |
| 857 | return false; |
| 858 | } |
| 859 | *this = from; |
| 860 | from = ""; |
| 861 | return true; |
| 862 | } |
| 863 | |
| 864 | *this = from.substr(0, p); |
| 865 | from = from.substr(p); |
| 866 | from.ltrim(sep); |
| 867 | return true; |
| 868 | } |
| 869 | }; |
| 870 | |
| 871 | typedef StringBase<StringComparator> string; |
nothing calls this directly
no test coverage detected