IFEM 90A354
StringUtils.h
Go to the documentation of this file.
1// $Id$
2//==============================================================================
12//==============================================================================
13
14#pragma once
15#include <string>
16#include <vector>
17
19std::string& replaceAll(std::string& context,
20 const std::string& from, const std::string& to);
21
25std::vector<std::string> splitString(const std::string& str,
26 int delimiter(int) = ::isspace);
std::string & replaceAll(std::string &context, const std::string &from, const std::string &to)
Replaces all occurances of from in context to to.
Definition StringUtils.C:19
std::vector< std::string > splitString(const std::string &str, int delimiter(int)=::isspace)
Split a string on a given delimiter.
Definition StringUtils.C:33