aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoresgv <esgv@yandex-team.ru>2022-02-10 16:50:24 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:24 +0300
commite7879def805c52076a0b162a0270dfb229379d4e (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8
parent555c14603bb6a3b676b9ace65d6e5a8b35a32fee (diff)
downloadydb-e7879def805c52076a0b162a0270dfb229379d4e.tar.gz
Restoring authorship annotation for <esgv@yandex-team.ru>. Commit 2 of 2.
-rw-r--r--library/cpp/charset/codepage.cpp12
-rw-r--r--library/cpp/charset/codepage.h4
-rw-r--r--library/cpp/mime/types/mime.cpp2
-rw-r--r--util/generic/ymath.cpp16
-rw-r--r--util/generic/ymath.h8
5 files changed, 21 insertions, 21 deletions
diff --git a/library/cpp/charset/codepage.cpp b/library/cpp/charset/codepage.cpp
index cb7fed9e82..0431bef31b 100644
--- a/library/cpp/charset/codepage.cpp
+++ b/library/cpp/charset/codepage.cpp
@@ -13,7 +13,7 @@
#include <util/generic/vector.h>
#include <util/generic/hash_set.h>
#include <util/generic/singleton.h>
-#include <util/generic/yexception.h>
+#include <util/generic/yexception.h>
#include <util/memory/pool.h>
#include <cstring>
@@ -197,12 +197,12 @@ ECharset CharsetByName(TStringBuf name) {
}
ECharset CharsetByNameOrDie(TStringBuf name) {
- ECharset result = CharsetByName(name);
- if (result == CODES_UNKNOWN)
+ ECharset result = CharsetByName(name);
+ if (result == CODES_UNKNOWN)
ythrow yexception() << "CharsetByNameOrDie: unknown charset '" << name << "'";
- return result;
-}
-
+ return result;
+}
+
template <typename TxChar>
static inline RECODE_RESULT utf8_read_rune_from_unknown_plane(TxChar& rune, size_t& rune_len, const TxChar* s, const TxChar* end) {
if ((*s & 0xFF00) != 0xF000) {
diff --git a/library/cpp/charset/codepage.h b/library/cpp/charset/codepage.h
index fbe8a59ede..30a02a4610 100644
--- a/library/cpp/charset/codepage.h
+++ b/library/cpp/charset/codepage.h
@@ -155,9 +155,9 @@ inline const CodePage* CodePageByCharset(ECharset e) {
ECharset CharsetByName(TStringBuf name);
-// Same as CharsetByName, but throws yexception() if name is invalid
+// Same as CharsetByName, but throws yexception() if name is invalid
ECharset CharsetByNameOrDie(TStringBuf name);
-
+
inline ECharset CharsetByCodePage(const CodePage* CP) {
return CP->CPEnum;
}
diff --git a/library/cpp/mime/types/mime.cpp b/library/cpp/mime/types/mime.cpp
index aa58a8a5c8..706d776b24 100644
--- a/library/cpp/mime/types/mime.cpp
+++ b/library/cpp/mime/types/mime.cpp
@@ -4,7 +4,7 @@
#include <util/generic/hash.h>
#include <util/generic/strbuf.h>
#include <util/generic/singleton.h>
-#include <util/generic/yexception.h>
+#include <util/generic/yexception.h>
#include <cctype>
diff --git a/util/generic/ymath.cpp b/util/generic/ymath.cpp
index b2846b2f10..31270728f4 100644
--- a/util/generic/ymath.cpp
+++ b/util/generic/ymath.cpp
@@ -1,13 +1,13 @@
#include "ymath.h"
-double Exp2(double x) {
- return pow(2.0, x);
-}
-
-float Exp2f(float x) {
- return powf(2.0f, x);
-}
-
+double Exp2(double x) {
+ return pow(2.0, x);
+}
+
+float Exp2f(float x) {
+ return powf(2.0f, x);
+}
+
#ifdef _MSC_VER
double Erf(double x) {
diff --git a/util/generic/ymath.h b/util/generic/ymath.h
index 1534a490bc..9ff9ae2abe 100644
--- a/util/generic/ymath.h
+++ b/util/generic/ymath.h
@@ -47,10 +47,10 @@ Log2(T value) {
return Log2(static_cast<double>(value));
}
-/** Returns 2^x */
-double Exp2(double);
-float Exp2f(float);
-
+/** Returns 2^x */
+double Exp2(double);
+float Exp2f(float);
+
template <class T>
static constexpr T Sqr(const T t) noexcept {
return t * t;