aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/charset
diff options
context:
space:
mode:
authortejblum <tejblum@yandex-team.ru>2022-02-10 16:48:02 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:02 +0300
commit2bf39531b4f50b889e946ac4866018678a4fb281 (patch)
tree65ee082892af9db55f726e13950abf0b1cc65992 /library/cpp/charset
parenta61e8c559b6b690a019253067224d595e3d642f1 (diff)
downloadydb-2bf39531b4f50b889e946ac4866018678a4fb281.tar.gz
Restoring authorship annotation for <tejblum@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/charset')
-rw-r--r--library/cpp/charset/codepage.h10
-rw-r--r--library/cpp/charset/cp_encrec.cpp2
-rw-r--r--library/cpp/charset/doccodes.h4
-rw-r--r--library/cpp/charset/recyr.hh2
4 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/charset/codepage.h b/library/cpp/charset/codepage.h
index 30a02a46106..9ad4a290f50 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 e4570cd6284..036c92058d0 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 75c87adf9ee..78d7e101ec7 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 5ec8734bcfb..fdfeabde3bf 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>