Homepage Demos Overview Downloads Tutorials Reference
Credits

string_util.cc File Reference


Detailed Description

Implements some useful functions for string manipulation in the string_util namespace.

Author:
ejt (Creator)
Author
ejt
Name
tekkotsu-2_2_1
Revision
1.3
State
Exp
Date
2004/01/14 20:45:28

Definition in file string_util.cc.

#include "string_util.h"
#include <ctype.h>

Include dependency graph for string_util.cc:

Include dependency graph

Go to the source code of this file.

Namespaces

namespace  string_util

Functions

std::string makeLower (const std::string &s)
 returns lower case version of s
std::string makeUpper (const std::string &s)
 returns upper case version of s
std::string removePrefix (const std::string &str, const std::string &pre)
 returns str with pre removed - if pre is not fully matched, str is returned unchanged
bool parseArgs (const std::string &input, std::vector< std::string > &args, std::vector< unsigned int > &offsets)
 parses the input string into an arg list, with corresponding offsets of each arg in the original input


Function Documentation

std::string string_util::makeLower const std::string &  s  ) 
 

returns lower case version of s

Definition at line 6 of file string_util.cc.

Referenced by ControlBase::takeInput().

std::string string_util::makeUpper const std::string &  s  ) 
 

returns upper case version of s

Definition at line 14 of file string_util.cc.

bool string_util::parseArgs const std::string &  input,
std::vector< std::string > &  args,
std::vector< unsigned int > &  offsets
 

parses the input string into an arg list, with corresponding offsets of each arg in the original input

Definition at line 28 of file string_util.cc.

Referenced by ControlBase::takeInput(), and Controller::takeLine().

std::string string_util::removePrefix const std::string &  str,
const std::string &  pre
 

returns str with pre removed - if pre is not fully matched, str is returned unchanged

Definition at line 22 of file string_util.cc.


Tekkotsu v2.2.1
Generated Tue Nov 23 16:37:33 2004 by Doxygen 1.3.9.1