Diff for /parser3/src/classes/string.C between versions 1.6 and 1.7

version 1.6, 2001/03/11 12:04:43 version 1.7, 2001/03/12 09:08:46
Line 17  VClass *string_class; Line 17  VClass *string_class;
   
 // methods  // methods
   
 static void _length(Request& r, Array *) {  static void _length(Request& r, const String&, Array *) {
         Pool& pool=r.pool();          Pool& pool=r.pool();
         Value& value=*new(pool) VDouble(pool, r.self->as_string().size());          Value& value=*new(pool) VDouble(pool, r.self->as_string().size());
         r.wcontext->write(value, String::Untaint_lang::NO /*always object, not string*/);          r.wcontext->write(value, String::Untaint_lang::NO /*always object, not string*/);
 }  }
   
 static void _int(Request& r, Array *) {  static void _int(Request& r, const String&, Array *) {
         Pool& pool=r.pool();          Pool& pool=r.pool();
         Value& value=*new(pool) VInt(pool, static_cast<int>(r.self->get_double()));          Value& value=*new(pool) VInt(pool, static_cast<int>(r.self->get_double()));
         r.wcontext->write(value, String::Untaint_lang::NO /*always object, not string*/);          r.wcontext->write(value, String::Untaint_lang::NO /*always object, not string*/);
 }  }
   
 static void _double(Request& r, Array *) {  static void _double(Request& r, const String&, Array *) {
         Pool& pool=r.pool();          Pool& pool=r.pool();
         Value& value=*new(pool) VDouble(pool, r.self->get_double());          Value& value=*new(pool) VDouble(pool, r.self->get_double());
         r.wcontext->write(value, String::Untaint_lang::NO /*always object, not string*/);          r.wcontext->write(value, String::Untaint_lang::NO /*always object, not string*/);

Removed from v.1.6  
changed lines
  Added in v.1.7


E-mail: