diff options
author | smalov <smalov@yandex-team.ru> | 2022-02-10 16:47:36 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:36 +0300 |
commit | f70d9720e13aef3a935e3f405b0eac554529e76e (patch) | |
tree | 5519c392aebdb16153197de07e4774c0a2be261a /library/cpp/charset/codepage.h | |
parent | 7b659037613268d5eac4a1b6a7c5eff3cd36d4bf (diff) | |
download | ydb-f70d9720e13aef3a935e3f405b0eac554529e76e.tar.gz |
Restoring authorship annotation for <smalov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/charset/codepage.h')
-rw-r--r-- | library/cpp/charset/codepage.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/charset/codepage.h b/library/cpp/charset/codepage.h index 30a02a46106..bc50d5890f7 100644 --- a/library/cpp/charset/codepage.h +++ b/library/cpp/charset/codepage.h @@ -291,17 +291,17 @@ extern const CodePage& csYandex; void DecodeUnknownPlane(wchar16* start, wchar16*& end, const ECharset enc4unk); void DecodeUnknownPlane(wchar32* start, wchar32*& end, const ECharset enc4unk); -inline void ToLower(char* s, size_t n, const CodePage& cp = csYandex) { - char* const e = s + n; - for (; s != e; ++s) +inline void ToLower(char* s, size_t n, const CodePage& cp = csYandex) { + char* const e = s + n; + for (; s != e; ++s) *s = cp.ToLower(*s); -} - -inline void ToUpper(char* s, size_t n, const CodePage& cp = csYandex) { - char* const e = s + n; - for (; s != e; ++s) +} + +inline void ToUpper(char* s, size_t n, const CodePage& cp = csYandex) { + char* const e = s + n; + for (; s != e; ++s) *s = cp.ToUpper(*s); -} +} inline TString ToLower(TString s, const CodePage& cp, size_t pos = 0, size_t n = TString::npos) { s.Transform([&cp](size_t, char c) { return cp.ToLower(c); }, pos, n); |