亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? xmlprocessor.h

?? funambol windows mobile plugin source code, the source code is taken from the funambol site
?? H
字號:
/*
 * Copyright (C) 2003-2007 Funambol, Inc
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY, TITLE, NONINFRINGEMENT or FITNESS FOR A PARTICULAR
 * PURPOSE.  See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
 * 02111-1307  USA
 */

#ifndef INCL_XML_PROCESSOR
#define INCL_XML_PROCESSOR
/** @cond DEV */

#include "base/fscapi.h"
#include "base/util/StringBuffer.h"
#include "base/util/KeyValuePair.h"
#include "base/util/ArrayList.h"

#define DIM_TAG 32


/*
 * This class implements a minimalist XML processor used to extract
 * the content between a known tag, and to make an XML element with
 * a specified value.
 *
 */

class XMLProcessor  {

public:

    /*
     * Extracts the content of a tag into an XML message. It is supposed that the
     * message is a valid XML message. It returns NULL in case the tag is not
     * found or the XML fragment is not in the expected form.
     * The returned pointer (if not NULL) is allocated with the new operator and
     * must be discarded with the operator delete.
     *
     * @param xml the xml fragment
     * @param tag the tag we want the content
     * @param pos (OUTPUT) the position where the tag is found (ignored if NULL)
     *
     */
    static char* copyElementContent(const char*  xml, const char*  tag, unsigned int* pos = NULL);

    /*
     * It's like copyElementContent but it doesn't allocate new memory.
     *
     * @param xml the xml fragment
     * @param tag the tag we want the content
     * @param pos (OUTPUT) the position where the tag is found (ignored if NULL)
     * @param startPos (OUTPUT) the start position of the tag content (ignored if NULL)
     * @param endPos (OUTPUT) the end position of the tag content (ignored if NULL)
     */
    static const char*  getElementContent(const char*  xml, const char*  tag,
                    unsigned int* pos, unsigned int* startPos, unsigned int* endPos);

    /*
    * It returns the number of the tag in the xml string
    */
    static int countElementTag(const char*  xml, const char*  tag);

    static int countAnd(const char*  token);

    static int countChar(const char*  token, const char*  element);

    static const char* getNextTag(const char* xml, int* pos);
   /*
    * it's as copyElementContent but it doesn't get the content of a tag if
    * the parent match except.
    * The parent can be more than one. They have to be separated by &
    * i.e.
    *
    * copyElementContentExcept(xmlPtr, "Add", "Sync&Atomic", &post)
    *
    * The function returns "... to keep ... " content only
    *
    * <SyncBody>
    *   <Sync>
    *     <Add>... to avoid ...</Add>
    *   </Sync>
    *   <Add>... to keep ...</Add>
    *   <Sync>
    *     <Add>... to avoid ...</Add>
    *   </Sync>
    *    <Atomic>
    *     <Add>... to avoid ...</Add>
    *   </Atomic>
    * </SyncBody>
    */
    static char* copyElementContentExcept(const char* xml       ,
                                          const char* tag       ,
                                          const char* except    ,
                                          unsigned int* pos);

    static char* copyElementContentLevel(const char* xml,
                                         const char* tag,
                                         unsigned int* pos,
                                         int           lev = 0 ,  // the root value level
                                         int* startLevel   = NULL);

    /*
     * It returns the content of the buffer specified by startPos (initial position)
     * and and endPos (the end position)
     *
     * It allocates new memory that has to be freed by caller with delete [].
     *
     * @param xml the xml fragment
     * @param startPos the start position of the tag content
     * @param endPos  the end position of the tag content
     *
     */

    static char* copyContent(const char*  xml, unsigned int startPos, unsigned int endPos);

    /**
     * Create an XML element with the specified tag and value.
     *
     * @param tag - the tag we want the content
     * @param val - the element value
     */
    //static StringBuffer makeElement(const WCHAR* tag, const WCHAR* val);

    /**
     * Create an XML element with the specified tag, value and attribute list.
     *
     * @param tag - the tag we want the content
     * @param val - the element value
     * @param attr - attribute list, already formated - ex: enc="base64"
     */
    static StringBuffer makeElement(const char*  tag,
                                    const char*  val,
                                    const char*  attr = NULL);

    /**
     * Create an XML element with the specified tag, value and attribute list.
     *
     * @param tag - the tag we want the content
     * @param val - the element value
     * @param attr - attribute list, pairs of name and value
     */
    static StringBuffer makeElement(const char*  tag,
                                    const char*  val,
                                    ArrayList attrList);

	/**
	 * Same with bool value
	 */
    static StringBuffer makeElement(const char*  tag, bool val) {
        return makeElement( tag, (val?"true":"false") ) ;
    }

    /**
	 * Same with integer value
	 */
	static StringBuffer makeElement(const char*  tag, int val) {
        return makeElement( tag, StringBuffer().append(val) ) ;
    }

    /**
     * Extracts the attributes list from a tag into an XML message. It is supposed that the
     * message is a valid XML message. It returns NULL in case the tag is not
     * found or the XML fragment is not in the expected form. The calling function must
     * further parse the resultto extract attribute name and value
     *
     * @param xml the xml fragment
     * @param tag the tag whom attributes we want
     * @param startPos (OUTPUT) the start position of the tag attributes (ignored if NULL)
     * @param endPos (OUTPUT) the end position of the tag attributes (ignored if NULL)
     *
    */
    static const char*  getElementAttributes(
                                         const char*  xml,
                                         const char*  tag,
                                         unsigned int*  startPos,
                                         unsigned int*  endPos,
                                         bool escaped = false);

};

/** @endcond */
#endif

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91麻豆精品视频| 国产酒店精品激情| 国产精品污污网站在线观看| a4yy欧美一区二区三区| 91老司机福利 在线| 免费在线观看一区| 日韩电影在线免费看| 日韩欧美国产一区二区在线播放| 国产亚洲成年网址在线观看| 有码一区二区三区| 亚洲成人综合网站| 久久精品男人的天堂| 国产精品香蕉一区二区三区| 激情综合一区二区三区| 97se狠狠狠综合亚洲狠狠| 亚洲图片激情小说| 日韩专区一卡二卡| 久久久久久久综合| 欧美高清dvd| 国产精品麻豆久久久| 日韩电影在线一区二区三区| 成人动漫av在线| 日韩一区二区三区电影| 国产精品久久一级| 国产日韩欧美激情| 久久久青草青青国产亚洲免观| 亚洲少妇30p| 久久国产尿小便嘘嘘尿| 中文字幕一区不卡| 日韩高清欧美激情| 色综合久久久久综合体| 激情国产一区二区| 在线国产电影不卡| 欧美撒尿777hd撒尿| 国产精品麻豆久久久| 韩国av一区二区三区| 欧美一区二区三区免费观看视频| 一区二区三区在线免费视频| 成人亚洲精品久久久久软件| 日韩三级免费观看| 国产精品理伦片| 国产成人精品午夜视频免费| 制服丝袜成人动漫| 亚洲狠狠爱一区二区三区| 一个色在线综合| 97精品国产露脸对白| 欧美国产综合色视频| 亚洲色图视频网| av在线综合网| 中文幕一区二区三区久久蜜桃| 国产伦理精品不卡| 成人av网在线| 国产精品久久久久久户外露出| 国产综合久久久久久久久久久久| 欧美一级欧美一级在线播放| 亚洲v中文字幕| 欧美亚洲国产bt| 一区二区激情视频| 日本黄色一区二区| 一区二区三区四区精品在线视频| 欧美私人免费视频| 亚洲高清视频中文字幕| 欧美日韩亚洲综合| 日本不卡视频在线| 精品国产精品网麻豆系列| 久久99精品国产.久久久久久| 欧美成人a∨高清免费观看| 欧美久久久久中文字幕| 日韩制服丝袜av| 91精品国产综合久久福利| 亚洲成av人片在线观看| 欧美一区二区在线免费观看| 婷婷一区二区三区| 国产一区二区三区最好精华液| 久久综合色一综合色88| 国产激情精品久久久第一区二区| 日韩欧美国产一区二区三区| 精品亚洲porn| 国产精品久久久一区麻豆最新章节| 99免费精品视频| 亚洲香蕉伊在人在线观| 91传媒视频在线播放| 日韩福利电影在线| 久久久噜噜噜久噜久久综合| 91美女片黄在线观看91美女| 亚洲一区二区三区在线| 欧美mv日韩mv国产网站| 床上的激情91.| 亚洲大片免费看| www国产成人| 99精品视频一区| 日日摸夜夜添夜夜添亚洲女人| 精品国产百合女同互慰| av一区二区三区四区| 免费美女久久99| 亚洲欧洲成人自拍| 欧美一区二区大片| 一本色道久久综合精品竹菊| 日韩在线卡一卡二| 欧美国产一区在线| 欧美一卡二卡在线观看| 暴力调教一区二区三区| 天堂成人国产精品一区| 国产精品的网站| 亚洲一区二区四区蜜桃| 久久久久久免费| 欧美日韩精品一区视频| 成人a免费在线看| 亚洲精品乱码久久久久久日本蜜臀| 日韩免费在线观看| 在线观看国产日韩| 成人天堂资源www在线| 同产精品九九九| 综合久久一区二区三区| 久久一日本道色综合| 91精品福利在线一区二区三区| jlzzjlzz欧美大全| 国产精品资源站在线| 免费高清不卡av| 亚洲五月六月丁香激情| 亚洲精品国产a| 国产欧美久久久精品影院| 日韩欧美一级二级三级| 欧美精品免费视频| 欧美中文一区二区三区| 91首页免费视频| 成人av先锋影音| 丁香啪啪综合成人亚洲小说| 九色porny丨国产精品| 国产精品免费视频网站| 久久久精品国产99久久精品芒果| 在线观看国产一区二区| 日本韩国欧美一区| 91视视频在线观看入口直接观看www | 欧美图区在线视频| av中文字幕亚洲| av电影在线不卡| 国产99久久久精品| 国产成人福利片| 国产精品一区二区视频| 国产精品综合网| 国产精品88888| 国产成人av一区二区| 国产一区二区三区免费| 韩国一区二区在线观看| 美脚の诱脚舐め脚责91 | 国产99精品在线观看| 国产精品自拍在线| 粉嫩av亚洲一区二区图片| 国产sm精品调教视频网站| 成人在线视频一区二区| 波多野结衣中文字幕一区 | 欧美一区二区视频在线观看2022| 欧美猛男男办公室激情| 欧美精品一二三| 99国产精品99久久久久久| 色综合视频在线观看| 欧美亚洲国产bt| 日韩一级在线观看| 中文字幕精品一区二区三区精品| 综合分类小说区另类春色亚洲小说欧美| 中文欧美字幕免费| 国产精品看片你懂得| 亚洲一区二区三区四区五区中文| 亚洲国产一区二区在线播放| 国产精品久久国产精麻豆99网站| 亚洲男女一区二区三区| 亚洲成人av福利| 国产麻豆成人传媒免费观看| 99精品桃花视频在线观看| 欧美电影在哪看比较好| 久久色视频免费观看| 成人欧美一区二区三区黑人麻豆| 一个色妞综合视频在线观看| 毛片av一区二区| 99免费精品视频| 欧美一区二区免费观在线| 日本一区二区久久| 午夜国产精品影院在线观看| 狠狠色伊人亚洲综合成人| 97精品久久久久中文字幕| 91麻豆精品国产无毒不卡在线观看| 国产夜色精品一区二区av| 色系网站成人免费| 精品久久一区二区三区| 日韩激情中文字幕| 欧美无砖专区一中文字| 一卡二卡欧美日韩| 色综合咪咪久久| 日韩毛片高清在线播放| 国产精品1区2区3区在线观看| 91精品综合久久久久久| 亚洲国产精品天堂| 91福利国产精品| 亚洲欧美另类久久久精品| k8久久久一区二区三区| 亚洲少妇30p| 一本色道久久综合亚洲91| 一区二区在线观看免费| 91麻豆免费观看|