Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Libraries
KOpeningHours
Commits
cd735858
Commit
cd735858
authored
Nov 20, 2021
by
Volker Krause
Committed by
David Faure
Dec 04, 2021
Browse files
Parse Russian long-form time ranges
parent
e50c9edd
Changes
2
Hide whitespace changes
Inline
Side-by-side
autotests/parsertest.cpp
View file @
cd735858
...
...
@@ -315,6 +315,7 @@ private Q_SLOTS:
T2
(
"Понедельник - Суббота 09:00 - 21:00"
,
"Mo-Sa 09:00-21:00"
);
T2
(
"Пон-Пт 08:00-20:00, Суб 08:00-19:00"
,
"Mo-Fr 08:00-20:00, Sa 08:00-19:00"
);
T2
(
"Ноябрь-Март"
,
"Nov-Mar"
);
T2
(
"с 08:30 до 23:00"
,
"08:30-23:00"
);
// recovery from wrong rule separators
T2
(
"Fr,Sa 10:00-02:00,Su 10:00-20:00"
,
"Fr,Sa 10:00-02:00, Su 10:00-20:00"
);
...
...
src/lib/openinghourslexer.l
View file @
cd735858
...
...
@@ -296,7 +296,8 @@ Minggu { yylval->num = 7; return T_WEEKDAY; }
、|and|et|e|y|und|& { return T_ADDITIONAL_RULE_SEPARATOR; }
/* skip filler words */
from|von|du|de|le|das|分|uhr|"en continu" {}
/* Note: the 'с' is not an ASCII 'c'! */
from|von|du|de|le|das|分|uhr|"en continu"|с {}
. {
//printf("unexpected character: %s at %d:%d\n", yytext, yylloc->first_line, yylloc->first_column);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment