Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
bc99bb1a
Commit
bc99bb1a
authored
Aug 30, 2019
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix parsing of maps in config files
parent
a364e80a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
libcaf_core/caf/detail/parser/read_ini.hpp
libcaf_core/caf/detail/parser/read_ini.hpp
+3
-0
No files found.
libcaf_core/caf/detail/parser/read_ini.hpp
View file @
bc99bb1a
...
@@ -104,6 +104,7 @@ void read_ini_map(state<Iterator, Sentinel>& ps, Consumer&& consumer) {
...
@@ -104,6 +104,7 @@ void read_ini_map(state<Iterator, Sentinel>& ps, Consumer&& consumer) {
auto
alnum_or_dash
=
[](
char
x
)
{
auto
alnum_or_dash
=
[](
char
x
)
{
return
isalnum
(
x
)
||
x
==
'-'
||
x
==
'_'
;
return
isalnum
(
x
)
||
x
==
'-'
||
x
==
'_'
;
};
};
// clang-format off
start
();
start
();
state
(
init
)
{
state
(
init
)
{
epsilon
(
await_key_name
)
epsilon
(
await_key_name
)
...
@@ -123,6 +124,7 @@ void read_ini_map(state<Iterator, Sentinel>& ps, Consumer&& consumer) {
...
@@ -123,6 +124,7 @@ void read_ini_map(state<Iterator, Sentinel>& ps, Consumer&& consumer) {
state
(
await_assignment
)
{
state
(
await_assignment
)
{
transition
(
await_assignment
,
"
\t
"
)
transition
(
await_assignment
,
"
\t
"
)
transition
(
await_value
,
'='
,
consumer
.
key
(
std
::
move
(
key
)))
transition
(
await_value
,
'='
,
consumer
.
key
(
std
::
move
(
key
)))
epsilon
(
await_value
,
'{'
,
consumer
.
key
(
std
::
move
(
key
)))
}
}
// Reads the value in a "key=value" line.
// Reads the value in a "key=value" line.
state
(
await_value
)
{
state
(
await_value
)
{
...
@@ -149,6 +151,7 @@ void read_ini_map(state<Iterator, Sentinel>& ps, Consumer&& consumer) {
...
@@ -149,6 +151,7 @@ void read_ini_map(state<Iterator, Sentinel>& ps, Consumer&& consumer) {
//nop
//nop
}
}
fin
();
fin
();
// clang-format on
}
}
template
<
class
Iterator
,
class
Sentinel
,
class
Consumer
>
template
<
class
Iterator
,
class
Sentinel
,
class
Consumer
>
...
...
Write
Preview
Markdown
is supported
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