StringOps.h File Reference

Some utility functions for manipulating std::strings. More...

#include <map>
#include <sstream>
#include <string>
#include "DataTypes.h"
Include dependency graph for StringOps.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  StringOps
 

Some utility functions for manipulating std::strings.


Functions

template<typename Number >
std::string StringOps::NumToString (const Number &aNumber)
 Write the number as a String.
std::string StringOps::ToLower (const std::string &str)
 Convert std::string to lower case.
void StringOps::split (const std::string &str, char sep, StringMap &words)
void StringOps::splitDoublet (const std::string &str, std::string &value1, std::string &value2)
 Split a xx.yy std::string into xx and yy.
void StringOps::parseTextFile (const std::string &fileName, std::map< int, StringMap > &text)
bool StringOps::hasSubstr (const std::string &name, const std::string &substr)
 Returns true if the given name contains the given substring.

Detailed Description

Some utility functions for manipulating std::strings.

Author:
Ian Bond WFAU, IfA, University of Edinburgh
Generated on Mon Oct 4 10:39:13 2010 for WfcamSrc by  doxygen 1.6.3