--- parser3/src/include/pa_string.h 2001/07/20 09:40:46 1.99 +++ parser3/src/include/pa_string.h 2001/09/11 09:20:57 1.102 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_string.h,v 1.99 2001/07/20 09:40:46 parser Exp $ + $Id: pa_string.h,v 1.102 2001/09/11 09:20:57 parser Exp $ */ #ifndef PA_STRING_H @@ -57,6 +57,7 @@ class Table; class Array; class SQL_Connection; +class Dictionary; /** Pooled string. @@ -105,6 +106,7 @@ public: UL_TABLE, ///< ^table:set body UL_SQL, ///< ^table:sql body UL_JS, ///< JavaScript code + UL_XML, ///< ^dom:set xml UL_HTML, ///< HTML code (for editing) UL_USER_HTML ///< HTML code with USER chars }; @@ -180,6 +182,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; @@ -221,6 +226,7 @@ public: }; 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;