aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/uri
diff options
context:
space:
mode:
authortobo <tobo@yandex-team.ru>2022-02-10 16:47:27 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:27 +0300
commit7fe839092527589b38f014d854c51565b3c1adfa (patch)
tree309e97022d3530044b712b8f71318c78faf7856e /library/cpp/uri
parentd0d68c395c10da4cb56a1c845504570a04d7893e (diff)
downloadydb-7fe839092527589b38f014d854c51565b3c1adfa.tar.gz
Restoring authorship annotation for <tobo@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/uri')
-rw-r--r--library/cpp/uri/assign.cpp2
-rw-r--r--library/cpp/uri/common.cpp12
-rw-r--r--library/cpp/uri/uri.cpp6
-rw-r--r--library/cpp/uri/uri.h4
-rw-r--r--library/cpp/uri/uri_ut.cpp2
5 files changed, 13 insertions, 13 deletions
diff --git a/library/cpp/uri/assign.cpp b/library/cpp/uri/assign.cpp
index ae9125c727..edc5d9f99e 100644
--- a/library/cpp/uri/assign.cpp
+++ b/library/cpp/uri/assign.cpp
@@ -195,7 +195,7 @@ namespace NUri {
// process #! fragments
// https://developers.google.com/webmasters/ajax-crawling/docs/specification
- static const TStringBuf escFragPrefix(TStringBuf("_escaped_fragment_="));
+ static const TStringBuf escFragPrefix(TStringBuf("_escaped_fragment_="));
bool encHashBangFrag = false;
TStringBuf qryBeforeEscapedFragment;
diff --git a/library/cpp/uri/common.cpp b/library/cpp/uri/common.cpp
index 05af1e57d1..2047bfb78e 100644
--- a/library/cpp/uri/common.cpp
+++ b/library/cpp/uri/common.cpp
@@ -8,12 +8,12 @@ namespace NUri {
const TSchemeInfo TSchemeInfo::Registry[] = {
TSchemeInfo(TScheme::SchemeEmpty, TStringBuf()), // scheme is empty and inited
- TSchemeInfo(TScheme::SchemeHTTP, TStringBuf("http"), TField::FlagHost | TField::FlagPath, 80),
- TSchemeInfo(TScheme::SchemeHTTPS, TStringBuf("https"), TField::FlagHost | TField::FlagPath, 443),
- TSchemeInfo(TScheme::SchemeFTP, TStringBuf("ftp"), TField::FlagHost | TField::FlagPath, 20),
- TSchemeInfo(TScheme::SchemeFILE, TStringBuf("file"), TField::FlagPath),
- TSchemeInfo(TScheme::SchemeWS, TStringBuf("ws"), TField::FlagHost | TField::FlagPath, 80),
- TSchemeInfo(TScheme::SchemeWSS, TStringBuf("wss"), TField::FlagHost | TField::FlagPath, 443),
+ TSchemeInfo(TScheme::SchemeHTTP, TStringBuf("http"), TField::FlagHost | TField::FlagPath, 80),
+ TSchemeInfo(TScheme::SchemeHTTPS, TStringBuf("https"), TField::FlagHost | TField::FlagPath, 443),
+ TSchemeInfo(TScheme::SchemeFTP, TStringBuf("ftp"), TField::FlagHost | TField::FlagPath, 20),
+ TSchemeInfo(TScheme::SchemeFILE, TStringBuf("file"), TField::FlagPath),
+ TSchemeInfo(TScheme::SchemeWS, TStringBuf("ws"), TField::FlagHost | TField::FlagPath, 80),
+ TSchemeInfo(TScheme::SchemeWSS, TStringBuf("wss"), TField::FlagHost | TField::FlagPath, 443),
// add above
TSchemeInfo(TScheme::SchemeUnknown, TStringBuf()) // scheme is empty and uninited
};
diff --git a/library/cpp/uri/uri.cpp b/library/cpp/uri/uri.cpp
index 56a9a4e5ef..8e759c04be 100644
--- a/library/cpp/uri/uri.cpp
+++ b/library/cpp/uri/uri.cpp
@@ -190,7 +190,7 @@ namespace NUri {
// ... and the scheme requires a path...
if (GetSchemeInfo().FldReq & FlagPath)
// ... set path
- FldSetNoDirty(FieldPath, TStringBuf("/"));
+ FldSetNoDirty(FieldPath, TStringBuf("/"));
}
/********************************************************/
@@ -210,7 +210,7 @@ namespace NUri {
const ui32 cleanFields = ~FieldsDirty;
do {
- static constexpr TStringBuf rootPath = "/";
+ static constexpr TStringBuf rootPath = "/";
if (noscheme) {
if (!basescheme.empty()) {
@@ -408,7 +408,7 @@ namespace NUri {
v = Fields[FieldPath];
// for relative, empty path is not the same as missing
if (v.empty() && 0 == (flags & FlagHost))
- v = TStringBuf(".");
+ v = TStringBuf(".");
out << v;
}
diff --git a/library/cpp/uri/uri.h b/library/cpp/uri/uri.h
index 3b6c19fe4a..12f6adb875 100644
--- a/library/cpp/uri/uri.h
+++ b/library/cpp/uri/uri.h
@@ -183,8 +183,8 @@ namespace NUri {
// uses directly, doesn't mark dirty
template <size_t size>
bool FldMemSet(EField field, const char (&value)[size]) {
- static_assert(size > 0);
- return FldSetImpl(field, TStringBuf(value, size - 1), true);
+ static_assert(size > 0);
+ return FldSetImpl(field, TStringBuf(value, size - 1), true);
}
// duplicate one field to another
diff --git a/library/cpp/uri/uri_ut.cpp b/library/cpp/uri/uri_ut.cpp
index 2ebd83fc93..f80f88ae4e 100644
--- a/library/cpp/uri/uri_ut.cpp
+++ b/library/cpp/uri/uri_ut.cpp
@@ -323,7 +323,7 @@ namespace NUri {
// cause a dirty field
url.FldMemSet(TField::FieldUser, "use"); // it is now shorter
UNIT_ASSERT(!url.FldIsDirty());
- url.FldMemSet(TField::FieldUser, TStringBuf("user"));
+ url.FldMemSet(TField::FieldUser, TStringBuf("user"));
UNIT_ASSERT(url.FldIsDirty());
// copy again