diff options
author | albert <albert@yandex-team.ru> | 2022-02-10 16:48:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:15 +0300 |
commit | a817f5de12611ec73085eba17f8ec7740a46bdb7 (patch) | |
tree | b222e5ac2e2e98872661c51ccceee5da0d291e13 /library/cpp/uri/encodefsm.rl6 | |
parent | 9f25ef3232c288ca664ceee6c376cf64e4349a2e (diff) | |
download | ydb-a817f5de12611ec73085eba17f8ec7740a46bdb7.tar.gz |
Restoring authorship annotation for <albert@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/uri/encodefsm.rl6')
-rw-r--r-- | library/cpp/uri/encodefsm.rl6 | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/library/cpp/uri/encodefsm.rl6 b/library/cpp/uri/encodefsm.rl6 index 396fd40b36..6a323aa85a 100644 --- a/library/cpp/uri/encodefsm.rl6 +++ b/library/cpp/uri/encodefsm.rl6 @@ -4,21 +4,21 @@ #pragma clang diagnostic ignored "-Wunused-variable" #endif -namespace NUri { -namespace NEncode { - +namespace NUri { +namespace NEncode { + %%{ - machine TEncoder; + machine TEncoder; - hex = ( - digit >{ HexDigit(fc); } | - [A-F] >{ HexUpper(fc); } | - [a-f] >{ HexLower(fc); } - ); + hex = ( + digit >{ HexDigit(fc); } | + [A-F] >{ HexUpper(fc); } | + [a-f] >{ HexLower(fc); } + ); - escaped = ( "%" hex hex ) - > { HexReset(); } - % { DoHex(); }; + escaped = ( "%" hex hex ) + > { HexReset(); } + % { DoHex(); }; bad_escaped = ( "%" hex ) % { @@ -30,22 +30,22 @@ namespace NEncode { main := ( escaped | bad_escaped | sym )**; - write data; + write data; }%% -ui64 TEncoder::ReEncode(const TStringBuf &url) +ui64 TEncoder::ReEncode(const TStringBuf &url) { - const char *p = url.data(); - const char *pe = p + url.length(); - const char *eof = pe; + const char *p = url.data(); + const char *pe = p + url.length(); + const char *eof = pe; int cs; - OutFlags = 0; + OutFlags = 0; %% write init; %% write exec; - - return OutFlags; + + return OutFlags; +} + +} } - -} -} |