Homepage
Demos
Overview
Downloads
Dev. Resources
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_4_1
Revision
1.4
State
Exp
Date
2005/06/01 05:47:49

Definition in file string_util.cc.

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

Include dependency graph for string_util.cc:

Go to the source code of this file.

Namespaces

namespace  string_util

Functions

std::string string_util::makeLower (const std::string &s)
 returns lower case version of s
std::string string_util::makeUpper (const std::string &s)
 returns upper case version of s
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
std::string string_util::trim (const std::string &str)
 removes whitespace (as defined by isspace()) from the beginning and end of str, and returns the result
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


Tekkotsu v2.4.1
Generated Tue Aug 16 16:34:34 2005 by Doxygen 1.4.4