Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
81a8da13
Commit
81a8da13
authored
Apr 12, 2013
by
mattijs
Browse files
ENH: wordRe: disable implicit conversions
parent
f89bcd33
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/primitives/strings/wordRe/wordRe.H
View file @
81a8da13
...
...
@@ -120,22 +120,25 @@ public:
inline
wordRe
(
const
wordRe
&
);
//- Construct from keyType
inline
wordRe
(
const
keyType
&
,
const
compOption
=
LITERAL
);
inline
explicit
wordRe
(
const
keyType
&
);
//- Construct from keyType
inline
wordRe
(
const
keyType
&
,
const
compOption
);
//- Construct as copy of word
inline
explicit
wordRe
(
const
word
&
);
//- Construct as copy of character array
// Optionally specify how it should be treated.
inline
wordRe
(
const
char
*
,
const
compOption
=
LITERAL
);
inline
explicit
wordRe
(
const
char
*
,
const
compOption
=
LITERAL
);
//- Construct as copy of string.
// Optionally specify how it should be treated.
inline
wordRe
(
const
string
&
,
const
compOption
=
LITERAL
);
inline
explicit
wordRe
(
const
string
&
,
const
compOption
=
LITERAL
);
//- Construct as copy of std::string
// Optionally specify how it should be treated.
inline
wordRe
(
const
std
::
string
&
,
const
compOption
=
LITERAL
);
inline
explicit
wordRe
(
const
std
::
string
&
,
const
compOption
=
LITERAL
);
//- Construct from Istream
// Words are treated as literals, strings with an auto-test
...
...
src/OpenFOAM/primitives/strings/wordRe/wordReI.H
View file @
81a8da13
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2013
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -65,6 +65,18 @@ inline Foam::wordRe::wordRe(const word& str)
{}
inline
Foam
::
wordRe
::
wordRe
(
const
keyType
&
str
)
:
word
(
str
,
false
),
re_
()
{
if
(
str
.
isPattern
())
{
compile
();
}
}
inline
Foam
::
wordRe
::
wordRe
(
const
keyType
&
str
,
const
compOption
opt
)
:
word
(
str
,
false
),
...
...
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