|
|
| version 1.333, 2016/09/21 21:48:37 | version 1.334, 2016/09/29 18:49:43 |
|---|---|
| Line 781 static void _menu(Request& r, MethodPara | Line 781 static void _menu(Request& r, MethodPara |
| for(size_t row=0; row<table.count(); row++) { | for(size_t row=0; row<table.count(); row++) { |
| table.set_current(row); | table.set_current(row); |
| StringOrValue sv_processed=r.process(body_code); | Value& sv_processed=r.process(body_code); |
| Request::Skip lskip=r.get_skip(); r.set_skip(Request::SKIP_NOTHING); | Request::Skip lskip=r.get_skip(); r.set_skip(Request::SKIP_NOTHING); |
| const String* s_processed=sv_processed.get_string(); | const String* s_processed=sv_processed.get_string(); |
| Line 829 static void table_row_to_hash(Table::ele | Line 829 static void table_row_to_hash(Table::ele |
| const String* key; | const String* key; |
| if(info->key_code) { | if(info->key_code) { |
| info->table->set_current(info->row++); // change context row | info->table->set_current(info->row++); // change context row |
| StringOrValue sv_processed=info->r->process(*info->key_code); | Value& sv_processed=info->r->process(*info->key_code); |
| key=&sv_processed.as_string(); | key=&sv_processed.as_string(); |
| } else { | } else { |
| key=info->key_field<row->count()?row->get(info->key_field):0; | key=info->key_field<row->count()?row->get(info->key_field):0; |
| Line 884 static void table_row_to_hash(Table::ele | Line 884 static void table_row_to_hash(Table::ele |
| case C_CODE: { | case C_CODE: { |
| if(!info->key_code) | if(!info->key_code) |
| info->table->set_current(info->row++); // change context row | info->table->set_current(info->row++); // change context row |
| exist=info->hash->put_dont_replace(*key, &info->r->process(*info->value_code).as_value()); | exist=info->hash->put_dont_replace(*key, &info->r->process(*info->value_code)); |
| break; | break; |
| } | } |
| } | } |
| Line 1174 static void _foreach(Request& r, MethodP | Line 1174 static void _foreach(Request& r, MethodP |
| if(value_var_name) | if(value_var_name) |
| r.put_element(*var_context, *value_var_name, new VTable(&table)); | r.put_element(*var_context, *value_var_name, new VTable(&table)); |
| StringOrValue sv_processed=r.process(body_code); | Value& sv_processed=r.process(body_code); |
| Request::Skip lskip=r.get_skip(); r.set_skip(Request::SKIP_NOTHING); | Request::Skip lskip=r.get_skip(); r.set_skip(Request::SKIP_NOTHING); |
| const String* s_processed=sv_processed.get_string(); | const String* s_processed=sv_processed.get_string(); |