Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
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 upper case version of @a s 00013 std::string makeUpper(const std::string& s); 00014 00015 //! returns @a str with @a pre removed - if @a pre is not fully matched, @a str is returned unchanged 00016 std::string removePrefix(const std::string& str, const std::string& pre); 00017 00018 //! parses the input string into an arg list, with corresponding offsets of each arg in the original input 00019 bool parseArgs(const std::string& input, std::vector<std::string>& args, std::vector<unsigned int>& offsets); 00020 }; 00021 00022 /*! @file 00023 * @brief Describes some useful functions for string manipulation in the string_util namespace 00024 * @author ejt (Creator) 00025 * 00026 * $Author: ejt $ 00027 * $Name: tekkotsu-2_0 $ 00028 * $Revision: 1.2 $ 00029 * $State: Exp $ 00030 * $Date: 2004/01/14 20:45:28 $ 00031 */ 00032 00033 #endif
Tekkotsu v2.0 |
Generated Wed Jan 21 03:20:30 2004 by Doxygen 1.3.4 |