|
|
| version 1.98, 2001/09/26 10:32:25 | version 1.103, 2001/10/15 11:48:04 |
|---|---|
| Line 140 public: | Line 140 public: |
| /// returns the mime type of 'user_file_name_cstr' | /// returns the mime type of 'user_file_name_cstr' |
| const String& mime_type_of(const char *user_file_name_cstr); | const String& mime_type_of(const char *user_file_name_cstr); |
| /// PCRE character tables | |
| const unsigned char *pcre_tables(); | |
| public: | public: |
| /// info from web server | /// info from web server |
| Line 172 public: | Line 175 public: |
| /// connection | /// connection |
| SQL_Connection *connection; | SQL_Connection *connection; |
| /// PCRE character tables | |
| unsigned char *pcre_tables; | |
| /// classes configured data | /// classes configured data |
| Hash classes_conf; | Hash classes_conf; |
| private: // core data | private: // core data |
| /// classes | /// classes |
| Line 195 private: // core data | Line 195 private: // core data |
| */ | */ |
| uint anti_endless_execute_recoursion; | uint anti_endless_execute_recoursion; |
| /// charset->pcre_tables | |
| Hash CTYPE; | |
| private: // compile.C | private: // compile.C |
| VStateless_class& real_compile(COMPILE_PARAMS); | VStateless_class& real_compile(COMPILE_PARAMS); |
| Line 278 public: | Line 281 public: |
| return get_as(index, false, msg); | return get_as(index, false, msg); |
| } | } |
| /// handy expression auto-processing to double | /// handy expression auto-processing to double |
| double as_double(int index, Request& r) { | double as_double(int index, const char *msg, Request& r) { |
| return get_processed(index, r).as_double(); | return get_processed(index, msg, r).as_double(); |
| } | } |
| /// handy expression auto-processing to int | /// handy expression auto-processing to int |
| int as_int(int index, Request& r) { | int as_int(int index, const char *msg, Request& r) { |
| return get_processed(index, r).as_int(); | return get_processed(index, msg, r).as_int(); |
| } | |
| /// handy expression auto-processing to bool | |
| bool as_bool(int index, const char *msg, Request& r) { | |
| return get_processed(index, msg, r).as_bool(); | |
| } | } |
| /// handy string ensurer | /// handy string ensurer |
| const String& as_string(int index, const char *msg) { | const String& as_string(int index, const char *msg) { |
| Line 302 private: | Line 309 private: |
| return result; | return result; |
| } | } |
| Value& get_processed(int index, Request& r) { | Value& get_processed(int index, const char *msg, Request& r) { |
| return r.process(get(index), | return r.process(as_junction(index, msg), |
| 0/*no name*/, | 0/*no name*/, |
| false/*don't intercept string*/); | false/*don't intercept string*/); |
| } | } |