--- parser3/src/include/pa_string.h 2001/07/18 10:06:04 1.98 +++ parser3/src/include/pa_string.h 2001/08/28 09:27:42 1.101 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_string.h,v 1.98 2001/07/18 10:06:04 parser Exp $ + $Id: pa_string.h,v 1.101 2001/08/28 09:27:42 parser Exp $ */ #ifndef PA_STRING_H @@ -57,6 +57,7 @@ class Table; class Array; class SQL_Connection; +class Dictionary; /** Pooled string. @@ -180,6 +181,9 @@ public: /// simple hash code of string. used by Hash uint hash_code() const; + /// extracts first char of a string + char first_char() const; + /// extracts [start, finish) piece of string String& mid(size_t start, size_t finish) const; @@ -213,13 +217,15 @@ public: const String& regexp, const String *options, Table **table, - Row_action row_action, void *info) const; + Row_action row_action, void *info, + bool *was_global=0) const; enum Change_case_kind { CC_UPPER, CC_LOWER }; String& change_case(Pool& pool, const unsigned char *pcre_tables, Change_case_kind kind) const; + String& replace(Pool& pool, Dictionary& dict) const; double as_double() const; int as_int() const;