mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'style-string-access' into 'develop'
Consistent use of string methods See merge request !128
This commit is contained in:
@ -221,6 +221,7 @@ redundantBlock {space}({comment}|{unknownPeriodicFace}|{periodicFace
|
||||
endOfSection {space}")"{space}
|
||||
|
||||
|
||||
/* balance "-quoted for editor */
|
||||
|
||||
/* ------------------------------------------------------------------------ *\
|
||||
----- Exclusive start states -----
|
||||
@ -693,7 +694,7 @@ endOfSection {space}")"{space}
|
||||
{lbrac}{label} {
|
||||
Warning
|
||||
<< "Found unknown block of type: "
|
||||
<< Foam::string(YYText())(1, YYLeng()-1) << nl
|
||||
<< std::string(YYText()).substr(1, YYLeng()-1) << nl
|
||||
<< " on line " << lineNo << endl;
|
||||
|
||||
yy_push_state(ignoreBlock);
|
||||
|
||||
@ -903,10 +903,10 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
// Strip off anything after #
|
||||
string::size_type i = rawLine.find_first_of("#");
|
||||
string::size_type i = rawLine.find('#');
|
||||
if (i != string::npos)
|
||||
{
|
||||
rawLine = rawLine(0, i);
|
||||
rawLine.resize(i);
|
||||
}
|
||||
|
||||
if (rawLine.empty())
|
||||
|
||||
Reference in New Issue
Block a user