Skip to content
Snippets Groups Projects
Commit b502086a authored by Mark OLESEN's avatar Mark OLESEN
Browse files

Revert "string trim"

This reverts commit 677e3142.
parent 677e3142
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,6 @@ SourceFiles ...@@ -48,7 +48,6 @@ SourceFiles
#include "stringOpsSort.H" #include "stringOpsSort.H"
#include "stringOpsEvaluate.H" #include "stringOpsEvaluate.H"
#include "wordRes.H" #include "wordRes.H"
#include <utility>
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...@@ -257,16 +256,6 @@ namespace stringOps ...@@ -257,16 +256,6 @@ namespace stringOps
// Return true if a replacement was successful. // Return true if a replacement was successful.
bool inplaceReplaceVar(std::string& s, const word& varName); bool inplaceReplaceVar(std::string& s, const word& varName);
//- Find first and last non-space locations in string or sub-string
//- and return as a (pos, len) pair.
// In the future this might become a std::smatch or a std::stringview
std::pair<size_t, size_t>
findTrim
(
const std::string& s,
size_t pos = 0,
size_t len = std::string::npos
);
//- Return string trimmed of leading whitespace //- Return string trimmed of leading whitespace
string trimLeft(const std::string& s); string trimLeft(const std::string& s);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment