Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
libcifpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
libcifpp
Commits
72fd03a6
Unverified
Commit
72fd03a6
authored
Dec 13, 2022
by
Maarten L. Hekkelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
formatting, fix in is_unquoted test
parent
61f464ae
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
include/cif++/condition.hpp
+1
-4
include/cif++/parser.hpp
+5
-1
No files found.
include/cif++/condition.hpp
View file @
72fd03a6
...
...
@@ -147,7 +147,6 @@ class condition
}
private
:
void
optimise
(
condition_impl
*&
impl
);
condition_impl
*
m_impl
;
...
...
@@ -195,9 +194,7 @@ namespace detail
bool
test
(
row_handle
r
)
const
override
{
return
m_single_hit
.
has_value
()
?
*
m_single_hit
==
r
:
r
[
m_item_ix
].
compare
(
m_value
,
m_icase
)
==
0
;
return
m_single_hit
.
has_value
()
?
*
m_single_hit
==
r
:
r
[
m_item_ix
].
compare
(
m_value
,
m_icase
)
==
0
;
}
void
str
(
std
::
ostream
&
os
)
const
override
...
...
include/cif++/parser.hpp
View file @
72fd03a6
...
...
@@ -94,7 +94,10 @@ class sac_parser
static
bool
is_unquoted_string
(
std
::
string_view
text
)
{
bool
result
=
true
;
bool
result
=
is_ordinary
(
text
.
front
());
if
(
result
)
{
for
(
auto
ch
:
text
)
{
if
(
is_non_blank
(
ch
))
...
...
@@ -102,6 +105,7 @@ class sac_parser
result
=
false
;
break
;
}
}
static
const
std
::
regex
kReservedRx
(
R"(loop_|stop_|global_|data_\S+|save_\S+)"
,
std
::
regex_constants
::
icase
);
...
...
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