Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
283f4fab
Commit
283f4fab
authored
Dec 19, 2010
by
mattijs
Browse files
ENH: string : recursive variable substitution
parent
fb92bdb5
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/primitives/strings/string/string.C
View file @
283f4fab
...
...
@@ -94,7 +94,7 @@ Foam::string& Foam::string::replaceAll
// Expand all occurences of environment variables and initial tilde sequences
Foam
::
string
&
Foam
::
string
::
expand
()
Foam
::
string
&
Foam
::
string
::
expand
(
const
bool
recurse
)
{
size_type
startEnvar
=
0
;
...
...
@@ -140,6 +140,10 @@ Foam::string& Foam::string::expand()
if
(
enVarString
.
size
())
{
if
(
recurse
)
{
enVarString
.
expand
();
}
std
::
string
::
replace
(
startEnvar
,
...
...
src/OpenFOAM/primitives/strings/string/string.H
View file @
283f4fab
...
...
@@ -182,7 +182,7 @@ public:
//
// @sa
// Foam::findEtcFile
string
&
expand
();
string
&
expand
(
const
bool
recurse
=
false
);
//- Remove repeated characters returning true if string changed
bool
removeRepeated
(
const
char
);
...
...
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