| 4108 | } |
| 4109 | |
| 4110 | std::string Editor::CaseMapString(const std::string &s, int caseMapping) { |
| 4111 | std::string ret(s); |
| 4112 | for (char &ch : ret) { |
| 4113 | switch (caseMapping) { |
| 4114 | case cmUpper: |
| 4115 | ch = MakeUpperCase(ch); |
| 4116 | break; |
| 4117 | case cmLower: |
| 4118 | ch = MakeLowerCase(ch); |
| 4119 | break; |
| 4120 | } |
| 4121 | } |
| 4122 | return ret; |
| 4123 | } |
| 4124 | |
| 4125 | /** |
| 4126 | * Search for text in the target range of the document. |
nothing calls this directly
no test coverage detected