| 297 | } |
| 298 | |
| 299 | void RESearch::ChSetWithCase(unsigned char c, bool caseSensitive) { |
| 300 | if (caseSensitive) { |
| 301 | ChSet(c); |
| 302 | } else { |
| 303 | if ((c >= 'a') && (c <= 'z')) { |
| 304 | ChSet(c); |
| 305 | ChSet(static_cast<unsigned char>(c - 'a' + 'A')); |
| 306 | } else if ((c >= 'A') && (c <= 'Z')) { |
| 307 | ChSet(c); |
| 308 | ChSet(static_cast<unsigned char>(c - 'A' + 'a')); |
| 309 | } else { |
| 310 | ChSet(c); |
| 311 | } |
| 312 | } |
| 313 | } |
| 314 | |
| 315 | unsigned char escapeValue(unsigned char ch) { |
| 316 | switch (ch) { |
nothing calls this directly
no outgoing calls
no test coverage detected