--- parser3/src/include/pa_string.h 2001/04/26 14:55:25 1.84 +++ parser3/src/include/pa_string.h 2001/05/14 13:18:07 1.87 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_string.h,v 1.84 2001/04/26 14:55:25 paf Exp $ + $Id: pa_string.h,v 1.87 2001/05/14 13:18:07 parser Exp $ */ #ifndef PA_STRING_H @@ -109,7 +109,7 @@ public: UL_SQL, ///< ^table:sql body UL_JS, ///< JavaScript code UL_HTML, ///< HTML code (for editing) - UL_HTML_TYPO ///< HTML code with TYPOgraphic replacements (for showing) + UL_USER_HTML ///< HTML code with USER chars }; public: @@ -193,20 +193,33 @@ public: void split(Array& result, size_t *pos_after_ref, const char *delim, size_t delim_size, - Untaint_lang lang, int limit=-1) const; + Untaint_lang lang=UL_UNSPECIFIED, int limit=-1) const; void split(Array& result, size_t *pos_after_ref, const String& delim, - Untaint_lang lang, int limit=-1) const; + Untaint_lang lang=UL_UNSPECIFIED, int limit=-1) const; typedef void (*Row_action)(Table& table, Array *row, int start, int finish, void *info); + /** + @return true if fills table. + table format is defined and fixed[can be used by others]: + @verbatim + prematch/match/postmatch/1/2/3/... + @endverbatim + */ bool match(const unsigned char *pcre_tables, const String *aorigin, const String& regexp, const String *options, Table **table, Row_action row_action, void *info) const; + enum Change_case_kind { + CC_UPPER, + CC_LOWER + }; + String& change_case(Pool& pool, const unsigned char *pcre_tables, + Change_case_kind kind) const; #ifndef NO_STRING_ORIGIN /// origin of string. calculated by first row