aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/charset/codepage.h
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /library/cpp/charset/codepage.h
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/charset/codepage.h')
-rw-r--r--library/cpp/charset/codepage.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/charset/codepage.h b/library/cpp/charset/codepage.h
index 30a02a4610..9e73fbd615 100644
--- a/library/cpp/charset/codepage.h
+++ b/library/cpp/charset/codepage.h
@@ -85,7 +85,7 @@ struct CodePage {
static void Initialize();
inline bool SingleByteCodepage() const {
- return DefaultChar != nullptr;
+ return DefaultChar != nullptr;
}
inline bool NativeCodepage() const {
return SingleByteCodepage() || CPEnum == CODES_UTF8;
@@ -103,7 +103,7 @@ namespace NCodepagePrivate {
private:
inline const CodePage* GetPrivate(ECharset e) const {
- Y_ASSERT(e + DataShift >= 0 && e + DataShift < DataSize);
+ Y_ASSERT(e + DataShift >= 0 && e + DataShift < DataSize);
return Data[e + DataShift];
}
@@ -115,7 +115,7 @@ namespace NCodepagePrivate {
inline const CodePage* Get(ECharset e) const {
const CodePage* res = GetPrivate(e);
if (!res->SingleByteCodepage()) {
- ythrow yexception() << "CodePage (" << (int)e << ") structure can only be used for single byte encodings";
+ ythrow yexception() << "CodePage (" << (int)e << ") structure can only be used for single byte encodings";
}
return res;
@@ -170,7 +170,7 @@ inline const char* NameByCharsetSafe(ECharset e) {
if (CODES_UNKNOWN < e && e < CODES_MAX)
return ::NCodepagePrivate::TCodepagesMap::Instance().NameByCharset(e);
else
- ythrow yexception() << "unknown encoding: " << (int)e;
+ ythrow yexception() << "unknown encoding: " << (int)e;
}
inline const char* NameByCodePage(const CodePage* CP) {
@@ -180,7 +180,7 @@ inline const char* NameByCodePage(const CodePage* CP) {
inline const CodePage* CodePageByName(const char* name) {
ECharset code = CharsetByName(name);
if (code == CODES_UNKNOWN)
- return nullptr;
+ return nullptr;
return CodePageByCharset(code);
}
@@ -204,7 +204,7 @@ struct Encoder {
char code = Code(ch);
if (code == 0 && ch != 0)
code = DefaultChar[NUnicode::CharType(ch)];
- Y_ASSERT(code != 0 || ch == 0);
+ Y_ASSERT(code != 0 || ch == 0);
return code;
}