|
|
| version 1.95, 2016/11/01 23:10:41 | version 1.99, 2024/09/11 21:07:36 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: @b dom parser class. | Parser: @b dom parser class. |
| Copyright (c) 2001-2015 Art. Lebedev Studio (http://www.artlebedev.com) | Copyright (c) 2001-2023 Art. Lebedev Studio (http://www.artlebedev.com) |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru> |
| */ | */ |
| #include "classes.h" | #include "classes.h" |
| #ifdef XML | #ifdef XML |
| Line 233 struct AccumulateFoundInfo | Line 233 struct AccumulateFoundInfo |
| static void AccumulateFound(xmlNode& node, AccumulateFoundInfo* info) | static void AccumulateFound(xmlNode& node, AccumulateFoundInfo* info) |
| { | { |
| info->hash->put( | info->hash->put( |
| String::Body::Format(info->index++), | pa_uitoa(info->index++), |
| &info->vdoc->wrap(node)); | &info->vdoc->wrap(node)); |
| } | } |
| template<typename I> static void | template<typename I> static void |
| Line 725 static void selectNodesHandler(Request&, | Line 725 static void selectNodesHandler(Request&, |
| if(int size=res->nodesetval->nodeNr) { | if(int size=res->nodesetval->nodeNr) { |
| HashStringValue& hash=vhash.hash(); | HashStringValue& hash=vhash.hash(); |
| for(int i=0; i<size; i++) | for(int i=0; i<size; i++) |
| hash.put( | hash.put(pa_uitoa(i), &xdoc.wrap(*res->nodesetval->nodeTab[i])); |
| String::Body::Format(i), | |
| &xdoc.wrap(*res->nodesetval->nodeTab[i])); | |
| } | } |
| break; | break; |
| default: | default: |