summaryrefslogtreecommitdiffstats
path: root/util/string/cast.cpp
diff options
context:
space:
mode:
authorthegeorg <[email protected]>2022-02-10 16:45:08 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:08 +0300
commit4e839db24a3bbc9f1c610c43d6faaaa99824dcca (patch)
tree506dac10f5df94fab310584ee51b24fc5a081c22 /util/string/cast.cpp
parent2d37894b1b037cf24231090eda8589bbb44fb6fc (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/string/cast.cpp')
-rw-r--r--util/string/cast.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/string/cast.cpp b/util/string/cast.cpp
index aa1e65a8e90..bc0f7e09e6a 100644
--- a/util/string/cast.cpp
+++ b/util/string/cast.cpp
@@ -325,7 +325,7 @@ namespace {
[[noreturn]] static Y_NO_INLINE void ThrowParseError(EParseStatus status, const TChar* data, size_t len, const TChar* pos) {
Y_ASSERT(status != PS_OK);
- typedef TBasicString<TChar> TStringType;
+ typedef TBasicString<TChar> TStringType;
switch (status) {
case PS_EMPTY_STRING:
@@ -443,13 +443,13 @@ DEF_INT_SPEC(int)
DEF_INT_SPEC(long)
DEF_INT_SPEC(long long)
-#ifdef __cpp_char8_t
-template <>
-size_t ToStringImpl<char8_t>(char8_t value, char* buf, size_t len) {
- return FormatInt<ui64, 10, char>(value, buf, len);
-}
-#endif
-
+#ifdef __cpp_char8_t
+template <>
+size_t ToStringImpl<char8_t>(char8_t value, char* buf, size_t len) {
+ return FormatInt<ui64, 10, char>(value, buf, len);
+}
+#endif
+
using TCharIType = std::conditional_t<std::is_signed<char>::value, i64, ui64>;
using TWCharIType = std::conditional_t<std::is_signed<wchar_t>::value, i64, ui64>;