IFEM  90A354
Functions
StringUtils.C File Reference

Some general string manipulation functions. More...

#include "StringUtils.h"
#include <algorithm>
Include dependency graph for StringUtils.C:

Functions

std::string & replaceAll (std::string &context, const std::string &from, const std::string &to)
 Replaces all occurances of from in context to to.
 
std::vector< std::string > splitString (const std::string &str, int delimiter(int))
 Split a string on a given delimiter. More...
 

Detailed Description

Some general string manipulation functions.

Date
Feb 17 2011
Author
Arne Morten Kvarving / SINTEF

Function Documentation

◆ splitString()

std::vector<std::string> splitString ( const std::string &  str,
int   delimiterint = ::isspace 
)

Split a string on a given delimiter.

Parameters
[in]strThe string to split
[in]delimiterFunction callback for the delimiter to use

Referenced by utl::parseTensorFunc(), and utl::parseVecFunc().