Browse Source

Restoring authorship annotation for <esgv@yandex-team.ru>. Commit 1 of 2.

esgv 3 years ago
parent
commit
555c14603b

+ 6 - 6
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) {

+ 2 - 2
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;
 }

+ 1 - 1
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>
 

+ 8 - 8
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) {

+ 4 - 4
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;