Changeset 9756 in orxonox.OLD for branches/new_class_id/src/lib/util/substring.h
- Timestamp:
- Sep 18, 2006, 9:37:01 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/substring.h
r9736 r9756 33 33 { 34 34 public: 35 //! An enumerator for the State the Parser is in 35 36 typedef enum { 36 SL_NORMAL, 37 SL_ESCAPE, 38 SL_SAFEMODE, 39 SL_SAFEESCAPE, 40 SL_COMMENT, 37 SL_NORMAL, //!< Normal state 38 SL_ESCAPE, //!< After an escape character 39 SL_SAFEMODE, //!< In safe mode (between "" mostly). 40 SL_SAFEESCAPE, //!< In safe mode with the internal escape character, that escapes even the savemode character. 41 SL_COMMENT, //!< In Comment mode. 41 42 } SPLIT_LINE_STATE; 42 43 … … 48 49 const std::string& delimiters, const std::string& delimiterNeighbours = "", bool emptyEntries=false, 49 50 char escapeChar ='\\', char safemode_char = '"', char comment_char = '\0'); 51 SubString(unsigned int argc, const char** argv); 50 52 /** @brief create a Substring as a copy of another one. @param subString the SubString to copy. */ 51 SubString(unsigned int argc, const char** argv);52 53 SubString(const SubString& subString) { *this = subString; }; 53 54 SubString(const SubString& subString, unsigned int subSetBegin);
Note: See TracChangeset
for help on using the changeset viewer.