|
|
| version 1.97, 2001/07/07 17:59:02 | version 1.103, 2001/09/14 15:41:59 |
|---|---|
| Line 57 class Table; | Line 57 class Table; |
| class Array; | class Array; |
| class SQL_Connection; | class SQL_Connection; |
| class Dictionary; | |
| /** | /** |
| Pooled string. | Pooled string. |
| Line 98 public: | Line 99 public: |
| just a flag, that value not stored | just a flag, that value not stored |
| */ | */ |
| UL_AS_IS, ///< leave all characters intact | 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_HTTP_HEADER, ///< text in HTTP response header |
| UL_MAIL_HEADER, ///< text in mail 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 |
| UL_JS, ///< JavaScript code | UL_JS, ///< JavaScript code |
| UL_XML, ///< ^dom:set xml | |
| UL_HTML, ///< HTML code (for editing) | UL_HTML, ///< HTML code (for editing) |
| UL_USER_HTML ///< HTML code with USER chars | UL_USER_HTML ///< HTML code with USER chars |
| }; | }; |
| Line 114 public: | Line 116 public: |
| String(Pool& apool, const char *src=0, size_t src_size=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; } |
| /// makes store_to produce origin:text\n output | |
| void set_origins_mode(bool aorigins_mode) const { forigins_mode=aorigins_mode; } | |
| /// 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, | char *cstr(Untaint_lang lang=UL_UNSPECIFIED, |
| SQL_Connection *connection=0, | SQL_Connection *connection=0, |
| Line 178 public: | Line 182 public: |
| /// simple hash code of string. used by Hash | /// simple hash code of string. used by Hash |
| uint hash_code() const; | uint hash_code() const; |
| /// extracts first char of a string | |
| char first_char() const; | |
| /// extracts [start, finish) piece of string | /// extracts [start, finish) piece of string |
| String& mid(size_t start, size_t finish) const; | String& mid(size_t start, size_t finish) const; |
| Line 211 public: | Line 218 public: |
| const String& regexp, | const String& regexp, |
| const String *options, | const String *options, |
| Table **table, | Table **table, |
| Row_action row_action, void *info) const; | Row_action row_action, void *info, |
| bool *was_global=0) const; | |
| enum Change_case_kind { | enum Change_case_kind { |
| CC_UPPER, | CC_UPPER, |
| CC_LOWER | CC_LOWER |
| }; | }; |
| String& change_case(Pool& pool, const unsigned char *pcre_tables, | String& change_case(Pool& pool, const unsigned char *pcre_tables, |
| Change_case_kind kind) const; | Change_case_kind kind) const; |
| String& replace(Pool& pool, Dictionary& dict) const; | |
| double as_double() const; | double as_double() const; |
| int as_int() const; | int as_int() const; |
| Line 266 private: | Line 275 private: |
| // used rows in all chunks | // used rows in all chunks |
| int fused_rows; | int fused_rows; |
| /// origins_mode changes behaviour of store_to[cstr()] | |
| mutable bool forigins_mode; | |
| private: | private: |
| bool chunk_is_full() { | bool chunk_is_full() { |