Changeset 395 for cpp/frams/util/sstring-simple.h
- Timestamp:
- 06/23/15 00:50:52 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/util/sstring-simple.h
r385 r395 110 110 void operator+=(const SString&); ///< append other SString 111 111 112 intequals(const SString &s) const; ///< TRUE if equal113 intoperator==(const SString &s) const {return equals(s);} ///< TRUE if equal114 intoperator!=(const SString &s) const {return !equals(s);} ///< TRUE if not equal112 bool equals(const SString &s) const; ///< TRUE if equal 113 bool operator==(const SString &s) const {return equals(s);} ///< TRUE if equal 114 bool operator!=(const SString &s) const {return !equals(s);} ///< TRUE if not equal 115 115 bool operator<(const SString &s) const {return strcmp(getPtr(),s.getPtr())<1;} 116 116 const char* operator()(int p) const {return getPtr()+p;} ///< pointer to p'th character in SString … … 125 125 /// <B>pos</B> is moved accordingly. 126 126 /// returns <B>false</B> if no more tokens are available or <B>true</B> otherwise. 127 intgetNextToken(int& pos,SString &token,char separator) const;127 bool getNextToken(int& pos,SString &token,char separator) const; 128 128 129 129 void operator+=(char ch) {directAppend(1)[0]=ch;endAppend(1);} ///< append single character 130 130 131 intstartsWith(const char *pattern) const;131 bool startsWith(const char *pattern) const; 132 132 char charAt(int pos) const {return operator[](pos);} 133 133 uint32_t hash() const;
Note: See TracChangeset
for help on using the changeset viewer.