diff options
Diffstat (limited to 'xml2cmp/source/support/sistr.hxx')
-rw-r--r-- | xml2cmp/source/support/sistr.hxx | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/xml2cmp/source/support/sistr.hxx b/xml2cmp/source/support/sistr.hxx index f48d2e63f9e9..ab5abdac9608 100644 --- a/xml2cmp/source/support/sistr.hxx +++ b/xml2cmp/source/support/sistr.hxx @@ -39,12 +39,6 @@ class Simstr // Constructors, destructor, '=' and typecasts Simstr( const char * str = 0); - Simstr( // Creates Simstr of 'anzahl' times 'txt'. - const char * txt, - int anzahl); - Simstr( - char c, // Creates Simstr of 'anzahl' times 'c'. - int anzahl); Simstr( // Creates Simstr out of a copy of the described bytes within 'anyBytes'. // Adds a '\0' at the end. const char * anybytes, @@ -63,8 +57,6 @@ class Simstr // nevertheless THAT WILL BE NOT CHANGED! // Typecasts to 'const char*' are performed automatically. int l() const; // Length of string without '\0' at end. - char & ch( int n); // Reference to sz[n]. Allows change of this char. - // !!! No safety, if n is out of the allowed range! Simstr operator+( const Simstr & S) const; Simstr & operator+=( @@ -86,25 +78,11 @@ class Simstr // 'List of characters' - functions - // get - functions - char get( int n) const; - char get_front() const; - char get_back() const; - Simstr get( int startPos, - int anzahl) const; - Simstr get_front( - int anzahl) const; - Simstr get_back( - int anzahl) const; // insert - functions - void insert( int pos, - char c); void push_front( char c); void push_back( char c); - void insert( int pos, - const Simstr & S); void push_front( const Simstr & S); void push_back( @@ -114,64 +92,24 @@ class Simstr int pos, int anzahl = 1); void remove_trailing_blanks(); - void pop_front( - int anzahl = 1); - void pop_back( - int anzahl = 1); - void rem_back_from( - int removeStartPos); - void remove_all( - char c); - void remove_all( // Starts search left. - const Simstr & S); - void strip(char c); // Removes all characters == c from front and back. - // c == ' ' removes also TABs !!! - void empty(); // Changes object to the value "". // search functions int pos_first( char c) const; - int pos_first_after( // Sucht ab erstem char nach startSearchPos - char c, - int startSearchPos) const; int pos_last( char c) const; - int pos_first( - const Simstr & S) const; - int pos_last( - const Simstr & S) const; - int count( - char c) const; bool is_empty() const; // Only true if object == "". bool is_no_text() const; // String may contain spaces or tabs. // substitution functions - void replace( - int pos, - char c); - void replace( - int startPos, - int anzahl, - const Simstr & S); void replace_all( char oldCh, char newCh); - void replace_all( - const Simstr & oldS, - const Simstr & newS); - void to_lower(); - // token functions // get...-functions return the token, separated by char 'c' and leave the object unchanged. // take...-functions return the same, but remove the token and the corresponding separator from the object. - Simstr get_first_token( - char c) const; Simstr get_last_token( char c) const; - Simstr take_first_token( - char c); - Simstr take_last_token( - char c); private: char * sz; |