Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
CAMP
campvis-public
Commits
75aa45ba
Commit
75aa45ba
authored
Feb 12, 2015
by
Richard Brosig
Browse files
Fixed TextFileParser::TokenGroup constrouctor not setting _caseSensitiveKeys flag.
parent
aae87572
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/tools/textfileparser.cpp
View file @
75aa45ba
...
...
@@ -198,7 +198,7 @@ namespace campvis {
}
TextFileParser
::
TokenGroup
*
TextFileParser
::
ItemSeparatorLines
::
operator
()(
std
::
istream
&
stream
,
bool
caseSensitiveKeys
,
const
std
::
string
&
delimiters
,
const
std
::
string
&
whitespace
)
{
TokenGroup
*
rootNode
=
new
TokenGroup
();
TokenGroup
*
rootNode
=
new
TokenGroup
(
caseSensitiveKeys
);
std
::
stack
<
TokenGroup
*>
groupHierarchy
;
groupHierarchy
.
push
(
rootNode
);
std
::
string
currentLine
;
...
...
@@ -212,7 +212,7 @@ namespace campvis {
if
(
currentLine
.
substr
(
currentLine
.
length
()
-
1
,
1
)
==
"{"
)
{
std
::
string
groupName
=
StringUtils
::
trim
(
currentLine
.
substr
(
0
,
currentLine
.
length
()
-
1
));
TokenGroup
*
tg
=
new
TokenGroup
();
TokenGroup
*
tg
=
new
TokenGroup
(
caseSensitiveKeys
);
groupHierarchy
.
top
()
->
_tokenGroups
.
insert
(
std
::
make_pair
(
groupName
,
tg
));
groupHierarchy
.
push
(
tg
);
}
...
...
core/tools/textfileparser.h
View file @
75aa45ba
...
...
@@ -52,6 +52,10 @@ namespace campvis {
public:
struct
CAMPVIS_CORE_API
TokenGroup
{
public:
TokenGroup
(
bool
caseSensitiveKeys
)
:
_caseSensitiveKeys
(
caseSensitiveKeys
)
{};
~
TokenGroup
();
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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