aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/uri
diff options
context:
space:
mode:
authorlapshov <lapshov@yandex-team.ru>2022-02-10 16:49:39 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:39 +0300
commit4f36f44b1e216dca1f44ada8d126e7b70f05da2f (patch)
treeedbdb67ebe4b9195bf7c53bbc0a963fc03ccc17e /library/cpp/uri
parent8b71ce88bea710a9663bb143e4916f961c57212e (diff)
downloadydb-4f36f44b1e216dca1f44ada8d126e7b70f05da2f.tar.gz
Restoring authorship annotation for <lapshov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/uri')
-rw-r--r--library/cpp/uri/common.cpp2
-rw-r--r--library/cpp/uri/common.h2
-rw-r--r--library/cpp/uri/parsefsm.rl64
-rw-r--r--library/cpp/uri/uri.h2
-rw-r--r--library/cpp/uri/uri_ut.cpp8
5 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/uri/common.cpp b/library/cpp/uri/common.cpp
index 05af1e57d1..b4917023e2 100644
--- a/library/cpp/uri/common.cpp
+++ b/library/cpp/uri/common.cpp
@@ -112,4 +112,4 @@ namespace NUri {
return TScheme::SchemeEmpty == t ? "empty" : "unknown";
}
-}
+}
diff --git a/library/cpp/uri/common.h b/library/cpp/uri/common.h
index 8025357763..682c8b6387 100644
--- a/library/cpp/uri/common.h
+++ b/library/cpp/uri/common.h
@@ -145,7 +145,7 @@ namespace NUri {
// Cases interpreted for processing (if required):
// (effects on result of Parse method)
//==============================
-
+
// path needs normalization
// (simplification of directory tree: /../, /./, etc.
FEATURE_NAME(PathOperation),
diff --git a/library/cpp/uri/parsefsm.rl6 b/library/cpp/uri/parsefsm.rl6
index 7097723650..c79e537326 100644
--- a/library/cpp/uri/parsefsm.rl6
+++ b/library/cpp/uri/parsefsm.rl6
@@ -458,7 +458,7 @@
)
;
- write data;
+ write data;
}%%
@@ -469,7 +469,7 @@ bool TParser::doParse(const char* str_beg, size_t length)
const char* p = str_beg;
const char* pe = str_beg + length;
const char* eof = pe;
- int cs;
+ int cs;
#define BEG(ptr, fld) startSection (ptr, TField::Field ## fld);
#define END(ptr, fld) finishSection(ptr, TField::Field ## fld);
diff --git a/library/cpp/uri/uri.h b/library/cpp/uri/uri.h
index 3b6c19fe4a..422c95cd61 100644
--- a/library/cpp/uri/uri.h
+++ b/library/cpp/uri/uri.h
@@ -432,7 +432,7 @@ namespace NUri {
// Info methods
int Compare(const TUri& A, int flags = FlagUrlFields) const;
-
+
int CompareField(EField fld, const TUri& url) const;
const TStringBuf& GetField(EField fld) const {
diff --git a/library/cpp/uri/uri_ut.cpp b/library/cpp/uri/uri_ut.cpp
index 2ebd83fc93..bac723e523 100644
--- a/library/cpp/uri/uri_ut.cpp
+++ b/library/cpp/uri/uri_ut.cpp
@@ -264,21 +264,21 @@ namespace NUri {
TUri url;
URL_TEST(url, test);
}
-
+
Y_UNIT_TEST(test02) {
TTest test = {
"http://host", TFeature::FeaturesAll, TState::ParsedOK, "http", "", "", "host", 80, "/", "", ""};
TUri url;
URL_TEST(url, test);
}
-
+
Y_UNIT_TEST(test03) {
TTest test = {
"https://host", TFeature::FeatureSchemeFlexible | TFeature::FeatureAllowHostIDN, TState::ParsedOK, "https", "", "", "host", 443, "/", "", ""};
TUri url;
URL_TEST(url, test);
}
-
+
Y_UNIT_TEST(test04) {
TTest test = {
"user:pass@host:8080", TFeature::FeaturesAll | TFeature::FeatureNoRelPath | TFeature::FeatureAllowRootless, TState::ParsedOK, "user", "", "", "", 0, "pass@host:8080", "", ""};
@@ -288,7 +288,7 @@ namespace NUri {
CMP_URL(url2, test);
URL_EQ(url, url2);
}
-
+
Y_UNIT_TEST(test05) {
TTest test = {
"host:8080", TFeature::FeaturesAll | TFeature::FeatureNoRelPath | TFeature::FeatureAllowRootless, TState::ParsedOK, "host", "", "", "", 0, "8080", "", ""};