Changeset 1791 for code/trunk/src/util/String.cc
- Timestamp:
- Sep 16, 2008, 3:46:25 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/util/String.cc
r1625 r1791 27 27 */ 28 28 29 /** 30 @file String.cc 31 @brief Implementation of several string manipulation functions. 32 */ 33 29 34 #include "String.h" 30 35 … … 33 38 34 39 /** 35 @brief Blank string as variable so you can use const std::string& even 36 if you have to return "". 40 @brief Blank string as variable so you can use const std::string& even if you have to return "". 37 41 */ 38 42 std::string blankString = ""; … … 273 277 } 274 278 279 /** 280 @brief Adds backslashes to the given string which makes special chars visible. Existing slashes will be doubled. 281 @param str The string to manipulate 282 @return The string with added slashes 283 */ 275 284 std::string addSlashes(const std::string& str) 276 285 { … … 291 300 } 292 301 302 /** 303 @brief Removes backslashes from the given string. Double backslashes are interpreted as one backslash. 304 @param str The string to manipulate 305 @return The string with removed slashes 306 */ 293 307 std::string removeSlashes(const std::string& str) 294 308 {
Note: See TracChangeset
for help on using the changeset viewer.