diff options
| author | denplusplus <[email protected]> | 2022-02-10 16:47:34 +0300 | 
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:47:34 +0300 | 
| commit | 57c20d143e8a438cd76b9fdc3ca2e8ee3ac1f32a (patch) | |
| tree | cc63639f8e502db19a82c20e2861c6d1edbf9fea /library/cpp/charset | |
| parent | 464ba3814a83db4f2d5327393b0b6eaf0c86bfd7 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/charset')
| -rw-r--r-- | library/cpp/charset/codepage.h | 10 | ||||
| -rw-r--r-- | library/cpp/charset/ya.make | 6 | 
2 files changed, 8 insertions, 8 deletions
diff --git a/library/cpp/charset/codepage.h b/library/cpp/charset/codepage.h index 30a02a46106..e54097d2fb9 100644 --- a/library/cpp/charset/codepage.h +++ b/library/cpp/charset/codepage.h @@ -166,13 +166,13 @@ inline const char* NameByCharset(ECharset e) {      return ::NCodepagePrivate::TCodepagesMap::Instance().NameByCharset(e);  } -inline const char* NameByCharsetSafe(ECharset e) { -    if (CODES_UNKNOWN < e && e < CODES_MAX) +inline const char* NameByCharsetSafe(ECharset e) {  +    if (CODES_UNKNOWN < e && e < CODES_MAX)           return ::NCodepagePrivate::TCodepagesMap::Instance().NameByCharset(e); -    else +    else           ythrow yexception() << "unknown encoding: " << (int)e; -} - +}  +   inline const char* NameByCodePage(const CodePage* CP) {      return CP->Names[0];  } diff --git a/library/cpp/charset/ya.make b/library/cpp/charset/ya.make index 7565566bf03..7dc10143290 100644 --- a/library/cpp/charset/ya.make +++ b/library/cpp/charset/ya.make @@ -15,8 +15,8 @@ SRCS(      wide.cpp  ) -PEERDIR( +PEERDIR(       contrib/libs/libiconv -) - +)  +   END()  | 
