diff options
author | stepych <stepych@yandex-team.ru> | 2022-02-10 16:50:51 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:51 +0300 |
commit | e43b253871ab6f365f22f9a139a082da542d32f7 (patch) | |
tree | ff1cbc0a584180ffb1b3cb801e24c53df865044c /library/cpp/uri/common.h | |
parent | 516d85cb3e198d4461ddfe35c5f05928948a5c40 (diff) | |
download | ydb-e43b253871ab6f365f22f9a139a082da542d32f7.tar.gz |
Restoring authorship annotation for <stepych@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/uri/common.h')
-rw-r--r-- | library/cpp/uri/common.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/library/cpp/uri/common.h b/library/cpp/uri/common.h index 80253577635..8008bcca3aa 100644 --- a/library/cpp/uri/common.h +++ b/library/cpp/uri/common.h @@ -442,12 +442,12 @@ namespace NUri { #define FEATURE_NAME(f) _BitFeature##f #define FEATURE_FLAG_NAME(f) Feature##f -#define FEATURE_FLAG(f) FEATURE_FLAG_NAME(f) = 1UL << FEATURE_NAME(f) - +#define FEATURE_FLAG(f) FEATURE_FLAG_NAME(f) = 1UL << FEATURE_NAME(f) + struct TQueryArg { TStringBuf Name; TStringBuf Value; - + private: enum EBit { FEATURE_NAME(Filter), @@ -456,7 +456,7 @@ namespace NUri { FEATURE_NAME(RewriteDirty), _FeatureMAX }; - + public: enum EPublic : ui32 { FeatureMAX = _FeatureMAX, @@ -465,25 +465,25 @@ namespace NUri { FEATURE_FLAG(RemoveEmptyQuery), FEATURE_FLAG(RewriteDirty), }; - + enum EProcessed { // OK and clean. ProcessedOK = 0, - + // OK, but query stored in internal buffer and TUri::Rewrite() is required. ProcessedDirty = 1, - + ProcessedMalformed = 2, ProcessedTooMany = 3, }; }; - + typedef bool (*TQueryArgFilter)(const TQueryArg& arg, void* filterData); - -#undef FEATURE_NAME -#undef FEATURE_FLAG_NAME -#undef FEATURE_FLAG - + +#undef FEATURE_NAME +#undef FEATURE_FLAG_NAME +#undef FEATURE_FLAG + const char* FieldToString(const TField::EField& t); const char* ParsedStateToString(const TState::EParsed& t); const char* SchemeKindToString(const TScheme::EKind& t); |