|
|
| version 1.73, 2001/04/05 16:30:41 | version 1.78, 2001/04/09 14:31:40 |
|---|---|
| Line 99 public: | Line 99 public: |
| */ | */ |
| UL_AS_IS, ///< leave all characters intact | UL_AS_IS, ///< leave all characters intact |
| UL_FILE_NAME, ///< filename | UL_FILE_NAME, ///< filename |
| UL_HEADER, ///< text in response header | UL_HTTP_HEADER, ///< text in HTTP response header |
| UL_MAIL_HEADER, ///< text in mail header | |
| UL_URI, ///< text in uri | UL_URI, ///< text in uri |
| UL_TABLE, ///< ^table:set body | UL_TABLE, ///< ^table:set body |
| UL_SQL, ///< ^table:sql body | UL_SQL, ///< ^table:sql body |
| Line 110 public: | Line 111 public: |
| public: | public: |
| String(Pool& apool, const char *src=0, bool tainted=false); | String(Pool& apool, const char *src=0, size_t src_size=0, bool tainted=false); |
| String(const String& src); | String(const String& src); |
| size_t size() const { return fsize; } | size_t size() const { return fsize; } |
| /// convert to C string, store to 'dest' which must be big enough for proper untaint | |
| char *store_to(char *dest, | |
| Untaint_lang lang=UL_UNSPECIFIED, SQL_Connection *connection=0) const; | |
| /// convert to C string. if 'lang' known, forcing 'lang' to it | /// convert to C string. if 'lang' known, forcing 'lang' to it |
| char *cstr(Untaint_lang lang=UL_UNSPECIFIED, SQL_Connection *connection=0) const { | char *cstr(Untaint_lang lang=UL_UNSPECIFIED, SQL_Connection *connection=0) const { |
| char *result=(char *)malloc(size()*UNTAINT_TIMES_BIGGER+1); | char *result=(char *)malloc(size()*UNTAINT_TIMES_BIGGER+1); |
| Line 163 public: | Line 167 public: |
| or marking ALL pieces of it with a @a lang when @a forced to. | or marking ALL pieces of it with a @a lang when @a forced to. |
| */ | */ |
| String& append(const String& src, Untaint_lang lang, bool forced=false); | String& append(const String& src, Untaint_lang lang, bool forced=false); |
| String& operator << (const String& src) { return append(src, UL_PASS_APPENDED); } | |
| String& operator << (const char *src) { return APPEND_CONST(src); } | |
| /// simple hash code of string. used by Hash | /// simple hash code of string. used by Hash |
| uint hash_code() const; | uint hash_code() const; |
| Line 244 private: | Line 250 private: |
| return append_here == link_row; | return append_here == link_row; |
| } | } |
| void expand(); | void expand(); |
| char *String::store_to(char *dest, | |
| Untaint_lang lang=UL_UNSPECIFIED, SQL_Connection *connection=0) const; | |
| private: //disabled | private: //disabled |