mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: split off Test-string2
This commit is contained in:
committed by
Andrew Heather
parent
bd35981feb
commit
d9d29e5a8f
@ -1,2 +1,2 @@
|
||||
/* EXE_INC = -I$(LIB_SRC)/finiteVolume/lnInclude */
|
||||
/* EXE_LIBS = -lfiniteVolume */
|
||||
/* EXE_INC = */
|
||||
/* EXE_LIBS = */
|
||||
|
||||
@ -172,35 +172,6 @@ int main(int argc, char *argv[])
|
||||
Info<<"trimRight: " << stringOps::trimRight(test) << endl;
|
||||
Info<<"trim: " << stringOps::trim(test) << endl;
|
||||
|
||||
// Test comment stripping
|
||||
{
|
||||
Info<< nl << "Test comment stripping" << nl;
|
||||
testCommentStripping
|
||||
(
|
||||
"/String without comments/"
|
||||
);
|
||||
testCommentStripping
|
||||
(
|
||||
"Removed some/* C-comments */ / C comments"
|
||||
);
|
||||
testCommentStripping
|
||||
(
|
||||
"Removed some//C++ comments\n / C++ comments"
|
||||
);
|
||||
testCommentStripping
|
||||
(
|
||||
"Partly degenerate C comment </*/ C-comment..."
|
||||
);
|
||||
testCommentStripping
|
||||
(
|
||||
"Truncated C comment </* C-comment..."
|
||||
);
|
||||
testCommentStripping
|
||||
(
|
||||
"Truncated C++ comment <// C++ comment..."
|
||||
);
|
||||
}
|
||||
|
||||
if (false)
|
||||
{
|
||||
Info<<"test move construct - string size:" << test.size() << nl;
|
||||
|
||||
Reference in New Issue
Block a user