Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
UA_CoMP::Util::StringUtils Class Reference

String utilities. More...

#include <StringUtils.h>

Collaboration diagram for UA_CoMP::Util::StringUtils:
Collaboration graph

Static Public Member Functions

template<typename T >
static T FromString (std::string const &s)
 Builds a value of type T representation from a string. More...
 
template<typename T >
static std::string ToString (T const &value)
 Builds a string representation of a value of type T. More...
 
static std::string ToUpper (std::string const &source)
 Builds a string with upper case characters only. More...
 
static std::string TrimRight (std::string const &source, std::string const &t=" ")
 Trim characters at right end of string. More...
 
static std::string TrimLeft (std::string const &source, std::string const &t=" ")
 Trim characters at left end of string. More...
 
static std::string Trim (std::string const &source, std::string const &t=" ")
 Trim characters at both ends of string. More...
 

Detailed Description

String utilities.

Definition at line 33 of file StringUtils.h.

Member Function Documentation

template<typename T >
static T UA_CoMP::Util::StringUtils::FromString ( std::string const &  s)
inlinestatic

Builds a value of type T representation from a string.

Definition at line 38 of file StringUtils.h.

template<typename T >
static std::string UA_CoMP::Util::StringUtils::ToString ( T const &  value)
inlinestatic

Builds a string representation of a value of type T.

Definition at line 48 of file StringUtils.h.

Referenced by ODemo::PassengerRoadVehicle::info().

Here is the caller graph for this function:

static std::string UA_CoMP::Util::StringUtils::ToUpper ( std::string const &  source)
inlinestatic

Builds a string with upper case characters only.

Definition at line 56 of file StringUtils.h.

static std::string UA_CoMP::Util::StringUtils::TrimRight ( std::string const &  source,
std::string const &  t = " " 
)
inlinestatic

Trim characters at right end of string.

Definition at line 65 of file StringUtils.h.

Referenced by Trim().

Here is the caller graph for this function:

static std::string UA_CoMP::Util::StringUtils::TrimLeft ( std::string const &  source,
std::string const &  t = " " 
)
inlinestatic

Trim characters at left end of string.

Definition at line 72 of file StringUtils.h.

Referenced by Trim().

Here is the caller graph for this function:

static std::string UA_CoMP::Util::StringUtils::Trim ( std::string const &  source,
std::string const &  t = " " 
)
inlinestatic

Trim characters at both ends of string.

Definition at line 79 of file StringUtils.h.

References TrimLeft(), and TrimRight().

Here is the call graph for this function:


The documentation for this class was generated from the following file: