--- parser3/src/include/pa_string.h 2001/07/20 09:40:46 1.99 +++ parser3/src/include/pa_string.h 2001/09/14 15:41:59 1.103 @@ -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.103 2001/09/14 15:41:59 parser Exp $ */ #ifndef PA_STRING_H @@ -57,6 +57,7 @@ class Table; class Array; class SQL_Connection; +class Dictionary; /** Pooled string. @@ -98,13 +99,14 @@ public: just a flag, that value not stored */ UL_AS_IS, ///< leave all characters intact - UL_FILE_NAME, ///< filename + UL_FILE_SPEC, ///< file specification UL_HTTP_HEADER, ///< text in HTTP response header UL_MAIL_HEADER, ///< text in mail header UL_URI, ///< text in uri 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;