| 298 | } |
| 299 | |
| 300 | inline void ToUpper(char* s, size_t n, const CodePage& cp = csYandex) { |
| 301 | char* const e = s + n; |
| 302 | for (; s != e; ++s) |
| 303 | *s = cp.ToUpper(*s); |
| 304 | } |
| 305 | |
| 306 | inline TString ToLower(TString s, const CodePage& cp, size_t pos = 0, size_t n = TString::npos) { |
| 307 | s.Transform([&cp](size_t, char c) { return cp.ToLower(c); }, pos, n); |