Public Member Functions

GStringManager Class Reference

#include <GStringManager.h>

Inheritance diagram for GStringManager:
GSingletonManager< GStringManager >

List of all members.

Public Member Functions

float nextFloatFromString (char *, int &)
int trimString (char *)
 read next numeric value from a string
int trimStringRight (char *)
 remove all whitespaces, tabs, newlines, etc. from a string
int firstWord (const char *, int &, char *)
 remove all whitespaces, tabs, newlines, etc. from the end of a string
int trimleft (char *)
 get first word from a string with a specified offset
int trimright (char *)
 trim whitespaces from the front of a string
int countslash (char *str)
 trim whitespaces from the end of a string
int getval (char *str, char *res, int &pos)
 count amount of slashes ('/') in a string
int getpart (char *str, char *result, int &pos)
 get a value from a slash-delimited list (e.g. "v 5/3/2"), return position of last found value
int combinePaths (char *str1, char *str2, char **result)
 get a part of a string (blank-delimited), (e.g. "hello" from "hello world")
bool endsWith (std::string str1, std::string str2)

Member Function Documentation

int GStringManager::combinePaths ( char *  str1,
char *  str2,
char **  result 
)

get a part of a string (blank-delimited), (e.g. "hello" from "hello world")

int GStringManager::countslash ( char *  str  ) 

trim whitespaces from the end of a string

bool GStringManager::endsWith ( std::string  str1,
std::string  str2 
)
int GStringManager::firstWord ( const char *  s,
int &  pos,
char *  d 
)

remove all whitespaces, tabs, newlines, etc. from the end of a string

int GStringManager::getpart ( char *  str,
char *  result,
int &  pos 
)

get a value from a slash-delimited list (e.g. "v 5/3/2"), return position of last found value

int GStringManager::getval ( char *  str,
char *  res,
int &  pos 
)

count amount of slashes ('/') in a string

float GStringManager::nextFloatFromString ( char *  string,
int &  pos 
)
int GStringManager::trimleft ( char *  str  ) 

get first word from a string with a specified offset

int GStringManager::trimright ( char *  str  ) 

trim whitespaces from the front of a string

int GStringManager::trimString ( char *  s  ) 

read next numeric value from a string

int GStringManager::trimStringRight ( char *   ) 

remove all whitespaces, tabs, newlines, etc. from a string


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Friends Defines