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-plus
Commits
e6c79ce2
Commit
e6c79ce2
authored
Oct 23, 2017
by
Mark Olesen
Browse files
STYLE: use word methods to obtain IOobject member/group
parent
6de8df50
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/OpenFOAM/db/IOobject/IOobject.C
View file @
e6c79ce2
...
...
@@ -374,31 +374,13 @@ const Foam::fileName& Foam::IOobject::caseName() const
Foam
::
word
Foam
::
IOobject
::
group
()
const
{
const
auto
i
=
name_
.
rfind
(
'.'
);
if
(
i
==
std
::
string
::
npos
||
i
==
0
)
{
return
word
::
null
;
}
else
{
return
name_
.
substr
(
i
+
1
);
}
return
name_
.
ext
();
}
Foam
::
word
Foam
::
IOobject
::
member
()
const
{
const
auto
i
=
name_
.
rfind
(
'.'
);
if
(
i
==
std
::
string
::
npos
||
i
==
0
)
{
return
name_
;
}
else
{
return
name_
.
substr
(
0
,
i
);
}
return
name_
.
lessExt
();
}
...
...
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