diff options
author | Pixel <Pixel> | 2001-10-27 11:15:57 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-10-27 11:15:57 +0000 |
commit | 54e62a566c003363078aa5273a728c0a0657b3a0 (patch) | |
tree | 542f106033e7f702feaaba8672873e6244c8baf1 /include/String.h | |
parent | ec2ecbd35bea64c88ab783b06100edc65c418048 (diff) |
Reworking on it...
Diffstat (limited to 'include/String.h')
-rw-r--r-- | include/String.h | 60 |
1 files changed, 32 insertions, 28 deletions
diff --git a/include/String.h b/include/String.h index 65bf0ac..463abfc 100644 --- a/include/String.h +++ b/include/String.h @@ -47,37 +47,41 @@ class String : public Base { String(int); String(double); ~String(); - char * set(char *, ...); - char * to_charp(size_t = 0, ssize_t = -1) const; - int to_int() const; - double to_double() const; - String to_sqldate() const; - String to_sqltime() const; - String from_sqldate() const; - String from_sqltime() const; - double datedif(const String &) const; - bool is_date() const; - bool is_number() const; - bool is_float() const; - bool is_time() const; - size_t strlen() const; - ssize_t strchr(char, size_t = 0) const; - ssize_t strrchr(char) const; - ssize_t strstr(const String &) const; - int strchrcnt(char) const; - String & operator=(const String &); - String operator+(const String &) const; - String & operator+=(const String &); - bool operator!=(const String &) const; - bool operator==(const String &) const; - bool operator<=(const String &) const; - bool operator>=(const String &) const; - bool operator<(const String &) const; - bool operator>(const String &) const; - char operator[](size_t i) const; + char * set(char *, ...); + char * to_charp(size_t = 0, ssize_t = -1) const; + String extract(size_t = 0, ssize_t = -1) const; + char * strdup(size_t = 0, ssize_t = -1) const; + int to_int() const; + double to_double() const; + String to_sqldate() const; + String to_sqltime() const; + String from_sqldate() const; + String from_sqltime() const; + double datedif(const String &) const; + bool is_date() const; + bool is_number() const; + bool is_float() const; + bool is_time() const; + size_t strlen() const; + ssize_t strchr(char, size_t = 0) const; + ssize_t strrchr(char) const; + ssize_t strstr(const String &) const; + int strchrcnt(char) const; + String & operator=(const String &); + String operator+(const String &) const; + String & operator+=(const String &); + bool operator!=(const String &) const; + bool operator==(const String &) const; + bool operator<=(const String &) const; + bool operator>=(const String &) const; + bool operator<(const String &) const; + bool operator>(const String &) const; + char operator[](size_t i) const; private: + String(int hs, const char *); static char t[BUFSIZ]; char * str; + size_t siz; }; ostream & operator<<(ostream &, const String &); |