Changeset 849 for code/branches/core/src/util/SubString.h
- Timestamp:
- Mar 5, 2008, 1:33:08 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core/src/util/SubString.h
r836 r849 23 23 * Co-authors: 24 24 * Benjamin Grauer 25 * Fabian 'x3n' Landau 25 26 * 26 // 27 27 28 // splitLine 28 29 // STL string tokenizer … … 31 32 // Version 1.0 32 33 // Copyright (c) 2005 Clemens Wacha. All rights reserved. 33 // 34 35 * Extended by Fabian 'x3n' Landau with the SL_PARENTHESES mode. 34 36 */ 35 37 … … 76 78 SL_SAFEESCAPE, //!< In safe mode with the internal escape character, that escapes even the savemode character. 77 79 SL_COMMENT, //!< In Comment mode. 80 SL_PARENTHESES, //!< Between parentheses (usually '(' and ')') 81 SL_PARENTHESESESCAPE, //!< Between parentheses with the internal escape character, that escapes even the closing paranthesis character. 78 82 } SPLIT_LINE_STATE; 79 83 … … 84 88 SubString(const std::string& string, 85 89 const std::string& delimiters, const std::string& delimiterNeighbours = "", bool emptyEntries=false, 86 char escapeChar ='\\', char safemode_char = '"', char comment_char = '\0');90 char escapeChar ='\\', char safemode_char = '"', char openparenthesis_char = '(', char closeparenthesis_char = ')', char comment_char = '\0'); 87 91 SubString(unsigned int argc, const char** argv); 88 92 /** @brief create a Substring as a copy of another one. @param subString the SubString to copy. */ … … 107 111 unsigned int split(const std::string& string, 108 112 const std::string& delimiters, const std::string& delimiterNeighbours = "", bool emptyEntries = false, 109 char escapeChar ='\\', char safemode_char = '"', char comment_char = '\0');113 char escapeChar ='\\', char safemode_char = '"', char openparenthesis_char = '(', char closeparenthesis_char = ')', char comment_char = '\0'); 110 114 std::string join(const std::string& delimiter = " ") const; 111 115 //////////////////////////////////////// … … 139 143 char escape_char = '\\', 140 144 char safemode_char = '"', 145 char openparenthesis_char = '(', 146 char closeparenthesis_char = ')', 141 147 char comment_char = '\0', 142 148 SPLIT_LINE_STATE start_state = SL_NORMAL);
Note: See TracChangeset
for help on using the changeset viewer.