osgEarth 2.1.1
Classes | Namespaces | Defines | Typedefs | Functions

/home/cube/sources/osgearth/src/osgEarth/StringUtils File Reference

#include <osgEarth/Common>
#include <osg/Vec4>
#include <osg/Vec4ub>
#include <string>
#include <algorithm>
#include <vector>
#include <sstream>
#include <iomanip>
#include <map>
Include dependency graph for StringUtils:

Go to the source code of this file.

Classes

class  osgEarth::StringTokenizer
struct  osgEarth::Stringify

Namespaces

namespace  osgEarth

Defines

#define OSGEARTH_STRING_UTILS_H   1

Typedefs

typedef std::vector< std::string > osgEarth::StringVector

Functions

static std::string & osgEarth::replaceIn (std::string &s, const std::string &sub, const std::string &other)
static std::string osgEarth::trim (const std::string &in)
static bool osgEarth::startsWith (const std::string &ref, const std::string &pattern)
static bool osgEarth::endsWith (const std::string &ref, const std::string &pattern)
static std::string osgEarth::joinStrings (const StringVector &input, char delim)
static std::string osgEarth::toLower (const std::string &input)
static osg::Vec4ub osgEarth::stringToColor (const std::string &str, osg::Vec4ub default_value)
static std::string osgEarth::colorToString (const osg::Vec4ub &c)
static osg::Vec3f osgEarth::stringToVec3f (const std::string &str, const osg::Vec3f &default_value)
static std::string osgEarth::vec3fToString (const osg::Vec3f &v)
static osg::Vec4f osgEarth::htmlColorToVec4f (const std::string &html)
static std::string osgEarth::vec4fToHtmlColor (const osg::Vec4f &c)
static unsigned int osgEarth::hashString (const std::string &input)
template<typename T >
osgEarth::as (const std::string &str, const T &default_value)
template<>
bool osgEarth::as< bool > (const std::string &str, const bool &default_value)
template<>
osg::Vec3f osgEarth::as< osg::Vec3f > (const std::string &str, const osg::Vec3f &default_value)
template<>
std::string osgEarth::as< std::string > (const std::string &str, const std::string &default_value)
template<typename T >
std::string osgEarth::toString (const T &value)
template<>
std::string osgEarth::toString< bool > (const bool &value)
template<>
std::string osgEarth::toString< osg::Vec3f > (const osg::Vec3f &value)

Define Documentation

#define OSGEARTH_STRING_UTILS_H   1

Definition at line 20 of file StringUtils.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines