Homepage Demos Overview Downloads Tutorials Reference
Credits

string_util.h

Go to the documentation of this file.
00001 //-*-c++-*-
00002 #ifndef INCLUDED_string_util_h
00003 #define INCLUDED_string_util_h
00004 
00005 #include <string>
00006 #include <vector>
00007 
00008 namespace string_util {
00009   //! returns lower case version of @a s
00010   std::string makeLower(const std::string& s);
00011 
00012   //! returns @a str with @a pre removed - if @a pre is not fully matched, @a str is returned unchanged
00013   std::string removePrefix(const std::string& str, const std::string& pre);
00014   
00015   //! parses the input string into an arg list, with corresponding offsets of each arg in the original input
00016   bool parseArgs(const std::string& input, std::vector<std::string>& args, std::vector<unsigned int>& offsets); 
00017 };
00018 
00019 /*! @file
00020  * @brief Describes some useful functions for string manipulation in the string_util namespace
00021  * @author ejt (Creator)
00022  *
00023  * $Author: ejt $
00024  * $Name: tekkotsu-1_5 $
00025  * $Revision: 1.1 $
00026  * $State: Rel $
00027  * $Date: 2003/08/06 22:50:49 $
00028  */
00029 
00030 #endif

Tekkotsu v1.5
Generated Fri Oct 10 15:52:00 2003 by Doxygen 1.3.4