Changeset 2171 for code/trunk/src/util/String.h
- Timestamp:
- Nov 10, 2008, 12:05:03 AM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/objecthierarchy merged: 2111-2115,2123,2132-2134,2143-2144,2153-2158,2160-2169
- Property svn:mergeinfo changed
-
code/trunk/src/util
- Property svn:mergeinfo changed
/code/branches/objecthierarchy/src/util merged: 2111,2114,2123,2155,2158,2161-2162
- Property svn:mergeinfo changed
-
code/trunk/src/util/String.h
r2087 r2171 28 28 29 29 /** 30 @file String.h30 @file 31 31 @brief Declaration of several string manipulation functions, used in many parts of the game. 32 32 */ … … 40 40 #include <sstream> 41 41 42 extern _UtilExport std::string BLANKSTRING; 43 _UtilExport std::string getUniqueNumberString(); 42 namespace orxonox 43 { 44 extern _UtilExport std::string BLANKSTRING; 45 _UtilExport std::string getUniqueNumberString(); 44 46 45 _UtilExport void strip(std::string* str);46 _UtilExport std::string getStripped(const std::string& str);47 _UtilExport void strip(std::string* str); 48 _UtilExport std::string getStripped(const std::string& str); 47 49 48 _UtilExport std::string removeTrailingWhitespaces(const std::string& str);50 _UtilExport std::string removeTrailingWhitespaces(const std::string& str); 49 51 50 _UtilExport size_t getNextQuote(const std::string& str, size_t start);51 _UtilExport bool isBetweenQuotes(const std::string& str, size_t pos);52 _UtilExport size_t getNextQuote(const std::string& str, size_t start); 53 _UtilExport bool isBetweenQuotes(const std::string& str, size_t pos); 52 54 53 _UtilExport bool hasStringBetweenQuotes(const std::string& str);54 _UtilExport std::string getStringBetweenQuotes(const std::string& str);55 _UtilExport bool hasStringBetweenQuotes(const std::string& str); 56 _UtilExport std::string getStringBetweenQuotes(const std::string& str); 55 57 56 _UtilExport std::string stripEnclosingQuotes(const std::string& str);57 _UtilExport std::string stripEnclosingBraces(const std::string& str);58 _UtilExport std::string stripEnclosingQuotes(const std::string& str); 59 _UtilExport std::string stripEnclosingBraces(const std::string& str); 58 60 59 _UtilExport bool isEmpty(const std::string& str);60 _UtilExport bool isComment(const std::string& str);61 _UtilExport bool isNumeric(const std::string& str);61 _UtilExport bool isEmpty(const std::string& str); 62 _UtilExport bool isComment(const std::string& str); 63 _UtilExport bool isNumeric(const std::string& str); 62 64 63 _UtilExport std::string addSlashes(const std::string& str);64 _UtilExport std::string removeSlashes(const std::string& str);65 _UtilExport std::string addSlashes(const std::string& str); 66 _UtilExport std::string removeSlashes(const std::string& str); 65 67 66 _UtilExport void lowercase(std::string* str);67 _UtilExport std::string getLowercase(const std::string& str);68 _UtilExport void lowercase(std::string* str); 69 _UtilExport std::string getLowercase(const std::string& str); 68 70 69 _UtilExport void uppercase(std::string* str);70 _UtilExport std::string getUppercase(const std::string& str);71 _UtilExport void uppercase(std::string* str); 72 _UtilExport std::string getUppercase(const std::string& str); 71 73 72 _UtilExport int nocaseCmp(const std::string& s1, const std::string& s2);73 _UtilExport int nocaseCmp(const std::string& s1, const std::string& s2, size_t len);74 _UtilExport int nocaseCmp(const std::string& s1, const std::string& s2); 75 _UtilExport int nocaseCmp(const std::string& s1, const std::string& s2, size_t len); 74 76 75 _UtilExport bool hasComment(const std::string& str); 76 _UtilExport std::string getComment(const std::string& str); 77 _UtilExport size_t getCommentPosition(const std::string& str); 78 _UtilExport size_t getNextCommentPosition(const std::string& str, size_t start = 0); 77 _UtilExport bool hasComment(const std::string& str); 78 _UtilExport std::string getComment(const std::string& str); 79 _UtilExport size_t getCommentPosition(const std::string& str); 80 _UtilExport size_t getNextCommentPosition(const std::string& str, size_t start = 0); 81 } 79 82 80 83 #endif /* _Util_String_H__ */
Note: See TracChangeset
for help on using the changeset viewer.