diff options
author | tejblum <[email protected]> | 2022-02-10 16:48:02 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:48:02 +0300 |
commit | 6ab7e5f5ada0643a48d393717f443bd548706ffc (patch) | |
tree | b222e5ac2e2e98872661c51ccceee5da0d291e13 /library/cpp/charset | |
parent | 2bf39531b4f50b889e946ac4866018678a4fb281 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/charset')
-rw-r--r-- | library/cpp/charset/codepage.h | 10 | ||||
-rw-r--r-- | library/cpp/charset/cp_encrec.cpp | 2 | ||||
-rw-r--r-- | library/cpp/charset/doccodes.h | 4 | ||||
-rw-r--r-- | library/cpp/charset/recyr.hh | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/charset/codepage.h b/library/cpp/charset/codepage.h index 9ad4a290f50..30a02a46106 100644 --- a/library/cpp/charset/codepage.h +++ b/library/cpp/charset/codepage.h @@ -1,7 +1,7 @@ #pragma once - + #include "doccodes.h" - + #include <util/charset/recode_result.h> #include <util/charset/unidata.h> // all wchar32 functions #include <util/charset/utf8.h> @@ -91,7 +91,7 @@ struct CodePage { return SingleByteCodepage() || CPEnum == CODES_UTF8; } }; - + class TCodePageHash; namespace NCodepagePrivate { @@ -193,7 +193,7 @@ ECharset EncodingHintByName(const char* name); struct Encoder { char* Table[256]; const char* DefaultChar; - + inline char Code(wchar32 ch) const { if (ch > 0xFFFF) return 0; @@ -222,7 +222,7 @@ struct Encoder { \*****************************************************************/ struct Recoder { unsigned char Table[257]; - + void Create(const CodePage& source, const CodePage& target); void Create(const CodePage& source, const Encoder* wideTarget); diff --git a/library/cpp/charset/cp_encrec.cpp b/library/cpp/charset/cp_encrec.cpp index 036c92058d0..e4570cd6284 100644 --- a/library/cpp/charset/cp_encrec.cpp +++ b/library/cpp/charset/cp_encrec.cpp @@ -3,7 +3,7 @@ #include <util/stream/output.h> void Encoder::Tr(const wchar32* in, char* out, size_t len) const { - while (len--) + while (len--) *out++ = Tr(*in++); } diff --git a/library/cpp/charset/doccodes.h b/library/cpp/charset/doccodes.h index 78d7e101ec7..75c87adf9ee 100644 --- a/library/cpp/charset/doccodes.h +++ b/library/cpp/charset/doccodes.h @@ -1,5 +1,5 @@ #pragma once - + enum ECharset { CODES_UNSUPPORTED = -2, // valid but unsupported encoding CODES_UNKNOWN = -1, // invalid or unspecified encoding @@ -126,4 +126,4 @@ enum ECharset { CODES_SHIFT_JIS, CODES_MAX -}; +}; diff --git a/library/cpp/charset/recyr.hh b/library/cpp/charset/recyr.hh index fdfeabde3bf..5ec8734bcfb 100644 --- a/library/cpp/charset/recyr.hh +++ b/library/cpp/charset/recyr.hh @@ -1,5 +1,5 @@ #pragma once - + #include <cstdlib> #include <util/charset/recode_result.h> |