|
|
| version 1.1, 2001/03/09 08:19:46 | version 1.2, 2001/03/10 11:03:47 |
|---|---|
| Line 31 static void _double(Request& r, Array *) | Line 31 static void _double(Request& r, Array *) |
| r.wcontext->write(value); | r.wcontext->write(value); |
| } | } |
| void initialize_string_class(Pool& pool) { | void initialize_string_class(Pool& pool, VClass& vclass) { |
| string_class=new(pool) VClass(pool); | |
| // ^string.length[] | // ^string.length[] |
| String& LENGTH_NAME=*new(pool) String(pool); | String& LENGTH_NAME=*new(pool) String(pool); |
| LENGTH_NAME.APPEND_CONST("length"); | LENGTH_NAME.APPEND_CONST("length"); |
| Line 44 void initialize_string_class(Pool& pool) | Line 42 void initialize_string_class(Pool& pool) |
| 0/*params_names*/, 0/*locals_names*/, | 0/*params_names*/, 0/*locals_names*/, |
| 0/*parser_code*/, _length | 0/*parser_code*/, _length |
| ); | ); |
| string_class->add_method(LENGTH_NAME, LENGTH_METHOD); | vclass.add_method(LENGTH_NAME, LENGTH_METHOD); |
| // ^string.int[] | // ^string.int[] |
| String& INT_NAME=*new(pool) String(pool); | String& INT_NAME=*new(pool) String(pool); |
| Line 56 void initialize_string_class(Pool& pool) | Line 54 void initialize_string_class(Pool& pool) |
| 0/*params_names*/, 0/*locals_names*/, | 0/*params_names*/, 0/*locals_names*/, |
| 0/*parser_code*/, _int | 0/*parser_code*/, _int |
| ); | ); |
| string_class->add_method(INT_NAME, INT_METHOD); | vclass.add_method(INT_NAME, INT_METHOD); |
| // ^string.double[] | // ^string.double[] |
| String& DOUBLE_NAME=*new(pool) String(pool); | String& DOUBLE_NAME=*new(pool) String(pool); |
| Line 68 void initialize_string_class(Pool& pool) | Line 66 void initialize_string_class(Pool& pool) |
| 0/*params_names*/, 0/*locals_names*/, | 0/*params_names*/, 0/*locals_names*/, |
| 0/*parser_code*/, _double | 0/*parser_code*/, _double |
| ); | ); |
| string_class->add_method(DOUBLE_NAME, DOUBLE_METHOD); | vclass.add_method(DOUBLE_NAME, DOUBLE_METHOD); |
| } | } |