|
|
| version 1.141, 2002/08/01 11:41:16 | version 1.142, 2002/08/08 08:43:38 |
|---|---|
| Line 178 public: | Line 178 public: |
| /// simple hash code of string. used by Hash | /// simple hash code of string. used by Hash |
| uint hash_code() const; | uint hash_code() const; |
| /// extracts first char of a string | /// extracts first char of a string, if any |
| char first_char() const; | char first_char() const { |
| return is_empty()?*head.chunk.rows[0].item.ptr:0; | |
| } | |
| /// extracts [start, finish) piece of string | /// extracts [start, finish) piece of string |
| String& mid(size_t start, size_t finish) const; | String& mid(size_t start, size_t finish) const; |