Changeset 1052 for code/trunk/src/util/String.h
- Timestamp:
- Apr 14, 2008, 3:42:49 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/util/String.h
r871 r1052 26 26 */ 27 27 28 #ifndef _ String_H__29 #define _ String_H__28 #ifndef _Util_String_H__ 29 #define _Util_String_H__ 30 30 31 31 #include <string> … … 34 34 #include "UtilPrereqs.h" 35 35 36 _UtilExport void strip(std::string* str);37 _UtilExport std::string getStripped(const std::string& str);36 _UtilExport void strip(std::string* str); 37 _UtilExport std::string getStripped(const std::string& str); 38 38 39 _UtilExport bool isEmpty(const std::string& str); 40 _UtilExport bool isComment(const std::string& str); 41 _UtilExport bool isNumeric(const std::string& str); 39 _UtilExport std::string removeTrailingWhitespaces(const std::string& str); 42 40 43 _UtilExport void lowercase(std::string* str);44 _UtilExport std::string getLowercase(const std::string& str);41 _UtilExport unsigned int getNextQuote(const std::string& str, unsigned int start); 42 _UtilExport bool isBetweenQuotes(const std::string& str, unsigned int pos); 45 43 46 _UtilExport void uppercase(std::string*str);47 _UtilExport std::string getUppercase(const std::string& str);44 _UtilExport bool hasStringBetweenQuotes(const std::string& str); 45 _UtilExport std::string getStringBetweenQuotes(const std::string& str); 48 46 49 _UtilExport int nocaseCmp(const std::string& s1, const std::string& s2); 50 _UtilExport int nocaseCmp(const std::string& s1, const std::string& s2, unsigned int len); 47 _UtilExport std::string stripEnclosingQuotes(const std::string& str); 48 49 _UtilExport bool isEmpty(const std::string& str); 50 _UtilExport bool isComment(const std::string& str); 51 _UtilExport bool isNumeric(const std::string& str); 52 53 _UtilExport std::string addSlashes(const std::string& str); 54 _UtilExport std::string removeSlashes(const std::string& str); 55 56 _UtilExport void lowercase(std::string* str); 57 _UtilExport std::string getLowercase(const std::string& str); 58 59 _UtilExport void uppercase(std::string* str); 60 _UtilExport std::string getUppercase(const std::string& str); 61 62 _UtilExport int nocaseCmp(const std::string& s1, const std::string& s2); 63 _UtilExport int nocaseCmp(const std::string& s1, const std::string& s2, unsigned int len); 64 65 _UtilExport bool hasComment(const std::string& str); 66 _UtilExport std::string getComment(const std::string& str); 67 _UtilExport unsigned int getCommentPosition(const std::string& str); 68 _UtilExport unsigned int getNextCommentPosition(const std::string& str, unsigned int start = 0); 51 69 52 70 //! The Convert class has some static member functions to convert strings to values and values to strings. … … 144 162 }; 145 163 146 #endif /* _ String_H__ */164 #endif /* _Util_String_H__ */
Note: See TracChangeset
for help on using the changeset viewer.