summaryrefslogtreecommitdiffstats
path: root/library/cpp/charset/recyr_int.hh
diff options
context:
space:
mode:
authoralbert <[email protected]>2022-02-10 16:48:14 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:48:14 +0300
commit9f25ef3232c288ca664ceee6c376cf64e4349a2e (patch)
treeb192eaf3150845f7302fafd460a972b0439d6fe5 /library/cpp/charset/recyr_int.hh
parent6a1e535429145ec1ecfbc5f1efd3c95323261fb5 (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/charset/recyr_int.hh')
-rw-r--r--library/cpp/charset/recyr_int.hh12
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/charset/recyr_int.hh b/library/cpp/charset/recyr_int.hh
index 353af53305e..dcaecfc5e95 100644
--- a/library/cpp/charset/recyr_int.hh
+++ b/library/cpp/charset/recyr_int.hh
@@ -172,7 +172,7 @@ namespace NCodepagePrivate {
inline RECODE_RESULT _recodeUnicodeToUTF8(wchar32 rune, char* out, size_t out_size, size_t& nwritten) {
return SafeWriteUTF8Char(rune, nwritten, (unsigned char*)out, out_size);
}
-
+
template <class TCharType, int Size = sizeof(TCharType)>
struct TCharTypeSwitch;
@@ -223,7 +223,7 @@ namespace NCodepagePrivate {
nwritten = 1;
return RECODE_OK;
}
-
+
inline RECODE_RESULT _rune2hex(wchar32 in, char* out, size_t out_size, size_t& out_writed) {
static const char hex_digs[] = "0123456789ABCDEF";
out_writed = 0;
@@ -301,17 +301,17 @@ namespace NCodepagePrivate {
return NCodepagePrivate::_recodeUnicodeToUTF8(in, out, in_size, out_size, in_readed, out_writed);
return NCodepagePrivate::_recodeUnicodeToSB(To, in, out, in_size, out_size, in_readed, out_writed);
- }
-
+ }
+
inline RECODE_RESULT _recodeFromUnicode(ECharset To, wchar32 rune, char* out, size_t out_size, size_t& nwritten) {
if (!ValidCodepage(To))
return RECODE_ERROR;
-
+
if (!NCodepagePrivate::NativeCodepage(To)) {
size_t nread = 0;
return NICONVPrivate::RecodeFromUnicodeNoThrow(To, &rune, out, 1, out_size, nread, nwritten);
}
-
+
if (To == CODES_UTF8)
return NCodepagePrivate::_recodeUnicodeToUTF8(rune, out, out_size, nwritten);