aboutsummaryrefslogtreecommitdiffstats
path: root/util/datetime/parser.rl6
diff options
context:
space:
mode:
authorAnton Samokhvalov <pg83@yandex.ru>2022-02-10 16:45:15 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:15 +0300
commit72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch)
treeda2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /util/datetime/parser.rl6
parent778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff)
downloadydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'util/datetime/parser.rl6')
-rw-r--r--util/datetime/parser.rl624
1 files changed, 12 insertions, 12 deletions
diff --git a/util/datetime/parser.rl6 b/util/datetime/parser.rl6
index 931f09eae1..0fb3656a35 100644
--- a/util/datetime/parser.rl6
+++ b/util/datetime/parser.rl6
@@ -1,11 +1,11 @@
-#include <cstdio>
-#include <cstdlib>
-#include <cstring>
-#include <cctype>
-#include <ctime>
-#include <numeric>
-
-#include <util/datetime/parser.h>
+#include <cstdio>
+#include <cstdlib>
+#include <cstring>
+#include <cctype>
+#include <ctime>
+#include <numeric>
+
+#include <util/datetime/parser.h>
#include <util/generic/ymath.h>
@@ -30,9 +30,9 @@ int = (digit+)
$update_int;
int1 = digit
- >clear_int
+ >clear_int
$update_int;
-
+
int2 = (digit digit)
>clear_int
$update_int;
@@ -48,7 +48,7 @@ int4 = (digit digit digit digit)
int12 = (digit digit?)
>clear_int
$update_int;
-
+
int24 = ( digit digit ( digit digit )? )
>clear_int
$update_int;
@@ -170,7 +170,7 @@ TRfc822DateTimeParserDeprecated::TRfc822DateTimeParserDeprecated() {
bool TRfc822DateTimeParserDeprecated::ParsePart(const char* input, size_t len) {
const char* p = input;
const char* pe = input + len;
-
+
%% write exec;
return cs != %%{ write error; }%%;
}