|
|
| version 1.25, 2024/10/26 15:46:52 | version 1.26, 2024/10/26 18:53:36 |
|---|---|
| Line 613 static void _create_or_append(Request& r | Line 613 static void _create_or_append(Request& r |
| int count=params.count(); | int count=params.count(); |
| for(int i=0; i<count; i++){ | if(array.count()){ |
| array+=&r.process(params[i]); | for(int i=0; i<count; i++) |
| array+=&r.process(params[i]); | |
| array.invalidate(); | |
| } else { | |
| for(int i=0; i<count; i++) | |
| array+=&r.process(params[i]); | |
| array.confirm_all_used(); | |
| } | } |
| array.invalidate(); | |
| } | } |
| static void _insert(Request& r, MethodParams& params) { | static void _insert(Request& r, MethodParams& params) { |
| Line 856 static void _sort(Request& r, MethodPara | Line 861 static void _sort(Request& r, MethodPara |
| for(pos=0; pos<count; pos++) | for(pos=0; pos<count; pos++) |
| array+=seq[pos].array_data; | array+=seq[pos].array_data; |
| array.invalidate(); | array.confirm_all_used(); |
| delete[] seq; | delete[] seq; |
| } | } |
| Line 873 static Value& SingleElementHash(String:: | Line 878 static Value& SingleElementHash(String:: |
| } | } |
| static void _at(Request& r, MethodParams& params) { | static void _at(Request& r, MethodParams& params) { |
| VArray& self=GET_SELF(r, VArray); | ArrayValue& array=GET_SELF(r, VArray).array(); |
| ArrayValue& array=self.array(); | |
| size_t count=array.used(); // not array.count() | size_t count=array.used(); // not array.count() |
| int pos=0; | int pos=0; |
| Line 1044 static void _compact(Request& r, MethodP | Line 1048 static void _compact(Request& r, MethodP |
| compact_undef=true; | compact_undef=true; |
| } | } |
| } | } |
| GET_SELF(r, VArray).array().compact(compact_undef); | ArrayValue& array=GET_SELF(r, VArray).array(); |
| array.compact(compact_undef); | |
| array.confirm_all_used(); | |
| } | } |