aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/uri/parse.h
diff options
context:
space:
mode:
authortrifon <trifon@yandex-team.ru>2022-02-10 16:50:51 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:51 +0300
commite3135d62bbcf321d86fff8258f5cdc5b2f57bde5 (patch)
treea5eeb758718dafefc9e215dae39f45cb61309f34 /library/cpp/uri/parse.h
parent252a6c9fbded23dfee8729dc34c97159962216a7 (diff)
downloadydb-e3135d62bbcf321d86fff8258f5cdc5b2f57bde5.tar.gz
Restoring authorship annotation for <trifon@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/uri/parse.h')
-rw-r--r--library/cpp/uri/parse.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/library/cpp/uri/parse.h b/library/cpp/uri/parse.h
index ca2358e5728..544eeeac67c 100644
--- a/library/cpp/uri/parse.h
+++ b/library/cpp/uri/parse.h
@@ -1,17 +1,17 @@
#pragma once
-
+
// #define DO_PRN
-
+
#include <cstddef>
#include "common.h"
-
+
#include <library/cpp/charset/doccodes.h>
#include <util/generic/strbuf.h>
#include <util/stream/output.h>
#include <util/string/cast.h>
#include <util/system/yassert.h>
-
+
namespace NUri {
class TParser;
@@ -123,12 +123,12 @@ namespace NUri {
End = pc;
return true;
}
-
+
void Set(const TStringBuf& buf) {
Enter(buf.data());
Leave(buf.data() + buf.length());
}
-
+
public:
bool IsSet() const {
return End;
@@ -191,7 +191,7 @@ namespace NUri {
|| TFeature::FeaturesPath != (Flags & TFeature::FeaturesPath));
State = ParseImpl();
}
-
+
public:
const TSection& Get(TField::EField fld) const {
return Sections[fld];
@@ -253,7 +253,7 @@ namespace NUri {
#endif
Sections[fld].Reset(pc);
}
-
+
void storeSection(const TStringBuf& val, TField::EField fld) {
#ifdef DO_PRN
PrintHead(val.data(), __FUNCTION__, fld);
@@ -270,7 +270,7 @@ namespace NUri {
copyRequirements(pc);
Sections[fld].Enter(pc);
}
-
+
void finishSection(const char* pc, TField::EField fld) {
#ifdef DO_PRN
PrintHead(pc, __FUNCTION__, fld);
@@ -279,7 +279,7 @@ namespace NUri {
if (Sections[fld].Leave(pc))
copyRequirements(pc);
}
-
+
void setRequirement(const char* ptr, ui64 flags) {
#ifdef DO_PRN
PrintHead(ptr, __FUNCTION__) << IntToString<16>(flags)
@@ -315,7 +315,7 @@ namespace NUri {
if (nullptr != CurRange.Beg && CurRange.Beg != ptr)
copyRequirementsImpl(ptr);
}
-
+
void HexDigit(const char* ptr, char c) {
Y_UNUSED(ptr);
HexAdd(c - '0');
@@ -336,7 +336,7 @@ namespace NUri {
HexValue = 0;
}
void HexSet(const char* ptr);
-
+
void PctEndImpl(const char* ptr);
void PctEnd(const char* ptr) {
if (nullptr != PctBegin && ptr != PctBegin)
@@ -358,4 +358,4 @@ namespace NUri {
TState::EParsed ParseImpl();
};
-}
+}