Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
81a8da13
Commit
81a8da13
authored
12 years ago
by
mattijs
Browse files
Options
Downloads
Patches
Plain Diff
ENH: wordRe: disable implicit conversions
parent
f89bcd33
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/OpenFOAM/primitives/strings/wordRe/wordRe.H
+7
-4
7 additions, 4 deletions
src/OpenFOAM/primitives/strings/wordRe/wordRe.H
src/OpenFOAM/primitives/strings/wordRe/wordReI.H
+13
-1
13 additions, 1 deletion
src/OpenFOAM/primitives/strings/wordRe/wordReI.H
with
20 additions
and
5 deletions
src/OpenFOAM/primitives/strings/wordRe/wordRe.H
+
7
−
4
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
...
...
This diff is collapsed.
Click to expand it.
src/OpenFOAM/primitives/strings/wordRe/wordReI.H
+
13
−
1
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
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment