--- parser3/src/include/pa_string.h 2008/07/17 09:44:29 1.173 +++ parser3/src/include/pa_string.h 2009/01/25 01:59:42 1.175 @@ -8,7 +8,7 @@ #ifndef PA_STRING_H #define PA_STRING_H -static const char * const IDENT_STRING_H="$Date: 2008/07/17 09:44:29 $"; +static const char * const IDENT_STRING_H="$Date: 2009/01/25 01:59:42 $"; // includes #include "pa_types.h" @@ -97,6 +97,7 @@ public: L_HTML='H', ///< HTML code L_REGEX='R', ///< RegEx expression L_HTTP_COOKIE='C', ///< cookies encoded as %uXXXX for compartibility with js functions encode/decode + L_FILE_POST='f', ///temporary escaping zero-char // READ WARNING ABOVE BEFORE ADDING ANYTHING L_OPTIMIZE_BIT = 0x80 ///< flag, requiring cstr whitespace optimization }; @@ -519,6 +520,7 @@ public: double as_double() const { return pa_atod(cstr(), this); } int as_int() const { return pa_atoi(cstr(), this); } bool as_bool() const { return as_int()!=0; } + const String& escape(Charset& source_charset) const; private: //disabled