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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? regularexpression.hpp

?? IBM的解析xml的工具Xerces的源代碼
?? HPP
?? 第 1 頁 / 共 2 頁
字號:
/* * Copyright 2001-2004 The Apache Software Foundation. *  * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at *  *      http://www.apache.org/licenses/LICENSE-2.0 *  * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *//* * $Id: RegularExpression.hpp,v 1.19 2004/09/08 13:56:47 peiyongz Exp $ */#if !defined(REGULAREXPRESSION_HPP)#define REGULAREXPRESSION_HPP// ---------------------------------------------------------------------------//  Includes// ---------------------------------------------------------------------------#include <xercesc/util/RefArrayVectorOf.hpp>#include <xercesc/util/XMLString.hpp>#include <xercesc/util/Janitor.hpp>#include <xercesc/util/Mutexes.hpp>#include <xercesc/util/regx/Op.hpp>#include <xercesc/util/regx/TokenFactory.hpp>#include <xercesc/util/regx/BMPattern.hpp>#include <xercesc/util/regx/ModifierToken.hpp>#include <xercesc/util/regx/ConditionToken.hpp>#include <xercesc/util/regx/OpFactory.hpp>XERCES_CPP_NAMESPACE_BEGIN// ---------------------------------------------------------------------------//  Forward Declaration// ---------------------------------------------------------------------------class RangeToken;class Match;class XMLUTIL_EXPORT RegularExpression : public XMemory{public:    // -----------------------------------------------------------------------    //  Public Constructors and Destructor    // -----------------------------------------------------------------------    RegularExpression    (        const char* const pattern        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager    );    RegularExpression    (        const char* const pattern        , const char* const options        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager    );    RegularExpression    (        const XMLCh* const pattern        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager    );    RegularExpression    (        const XMLCh* const pattern        , const XMLCh* const options        , MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager    );    ~RegularExpression();    // -----------------------------------------------------------------------    //  Public Constants    // -----------------------------------------------------------------------    static const unsigned int   MARK_PARENS;    static const unsigned int   IGNORE_CASE;    static const unsigned int   SINGLE_LINE;    static const unsigned int   MULTIPLE_LINE;    static const unsigned int   EXTENDED_COMMENT;    static const unsigned int   USE_UNICODE_CATEGORY;    static const unsigned int   UNICODE_WORD_BOUNDARY;    static const unsigned int   PROHIBIT_HEAD_CHARACTER_OPTIMIZATION;    static const unsigned int   PROHIBIT_FIXED_STRING_OPTIMIZATION;    static const unsigned int   XMLSCHEMA_MODE;    static const unsigned int   SPECIAL_COMMA;    static const unsigned short WT_IGNORE;    static const unsigned short WT_LETTER;    static const unsigned short WT_OTHER;    // -----------------------------------------------------------------------    //  Public Helper methods    // -----------------------------------------------------------------------    static int getOptionValue(const XMLCh ch);    // -----------------------------------------------------------------------    //  Matching methods    // -----------------------------------------------------------------------    bool matches(const char* const matchString, MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);    bool matches(const char* const matchString, const int start,                 const int end, MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);    bool matches(const char* const matchString, Match* const pMatch, MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);    bool matches(const char* const matchString, const int start,                 const int end, Match* const pMatch, MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);    bool matches(const XMLCh* const matchString, MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);    bool matches(const XMLCh* const matchString, const int start,                 const int end, MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);    bool matches(const XMLCh* const matchString, Match* const pMatch, MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);    bool matches(const XMLCh* const matchString, const int start,                 const int end, Match* const pMatch, MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);    // -----------------------------------------------------------------------    //  Tokenize methods    // -----------------------------------------------------------------------    // Note: The caller owns the string vector that is returned, and is responsible    //       for deleting it.    RefArrayVectorOf<XMLCh> *tokenize(const char* const matchString);    RefArrayVectorOf<XMLCh> *tokenize(const char* const matchString, const int start,                                      const int end);    RefArrayVectorOf<XMLCh> *tokenize(const XMLCh* const matchString);    RefArrayVectorOf<XMLCh> *tokenize(const XMLCh* const matchString,                                      const int start, const int end);    // -----------------------------------------------------------------------    //  Replace methods    // -----------------------------------------------------------------------    // Note: The caller owns the XMLCh* that is returned, and is responsible for    //       deleting it.    XMLCh *replace(const char* const matchString, const char* const replaceString);    XMLCh *replace(const char* const matchString, const char* const replaceString,                   const int start, const int end);    XMLCh *replace(const XMLCh* const matchString, const XMLCh* const replaceString);    XMLCh *replace(const XMLCh* const matchString, const XMLCh* const replaceString,                   const int start, const int end);private:    // -----------------------------------------------------------------------    //  Private data types    // -----------------------------------------------------------------------    class XMLUTIL_EXPORT Context : public XMemory    {        public :            Context(MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);            ~Context();            inline const XMLCh* getString() const { return fString; }            void reset(const XMLCh* const string, const int stringLen,                       const int start, const int limit, const int noClosures);            bool nextCh(XMLInt32& ch, int& offset, const short direction);                        bool      fAdoptMatch;            int       fStart;            int       fLimit;            int       fLength;    // fLimit - fStart            int       fSize;            int       fStringMaxLen;            int*      fOffsets;            Match*    fMatch;            XMLCh*    fString;            MemoryManager* fMemoryManager;            friend class Janitor<Context>;    };    // -----------------------------------------------------------------------    //  Unimplemented constructors and operators    // -----------------------------------------------------------------------    RegularExpression(const RegularExpression&);    RegularExpression& operator=(const RegularExpression&);    // -----------------------------------------------------------------------    //  Cleanup methods    // -----------------------------------------------------------------------    void cleanUp();    // -----------------------------------------------------------------------    //  Setter methods    // -----------------------------------------------------------------------    void setPattern(const XMLCh* const pattern, const XMLCh* const options=0);    // -----------------------------------------------------------------------    //  Private Helper methods    // -----------------------------------------------------------------------    void prepare();    int parseOptions(const XMLCh* const options);    bool isSet(const int options, const int flag);    unsigned short getWordType(const XMLCh* const target, const int begin,                               const int end, const int offset);    unsigned short getCharType(const XMLCh ch);    unsigned short getPreviousWordType(const XMLCh* const target,                                       const int start, const int end,                                       int offset);    /**      *    Matching helpers      */    int match(Context* const context, const Op* const operations, int offset,              const short direction);    bool matchIgnoreCase(const XMLInt32 ch1, const XMLInt32 ch2);    /**      *    Helper methods used by match(Context* ...)      */    bool matchChar(Context* const context, const XMLInt32 ch, int& offset,                   const short direction, const bool ignoreCase);    bool matchDot(Context* const context, int& offset, const short direction);    bool matchRange(Context* const context, const Op* const op,                    int& offset, const short direction, const bool ignoreCase);    bool matchAnchor(Context* const context, const XMLInt32 ch,                     const int offset);    bool matchBackReference(Context* const context, const XMLInt32 ch,                            int& offset, const short direction,                            const bool ignoreCase);    bool matchString(Context* const context, const XMLCh* const literal,                     int& offset, const short direction, const bool ignoreCase);    int  matchUnion(Context* const context, const Op* const op, int offset,                    const short direction);    int matchCapture(Context* const context, const Op* const op, int offset,                     const short direction);    bool matchCondition(Context* const context, const Op* const op, int offset,                        const short direction);    int matchModifier(Context* const context, const Op* const op, int offset,                      const short direction);    /**     *    Tokenize helper     *     *    This overloaded tokenize is for internal use only. It provides a way to     *    keep track of the sub-expressions in each match of the pattern.     *     *    It is called by the other tokenize methods, and by the replace method.     *    The caller is responsible for the deletion of the returned     *    RefArrayVectorOf<XMLCh*>     */    RefArrayVectorOf<XMLCh> *tokenize(const XMLCh* const matchString,                                      const int start, const int end,                                      RefVectorOf<Match> *subEx);    /**     *    Replace helpers     *     *    Note: the caller owns the XMLCh* that is returned     */    const XMLCh *subInExp(const XMLCh* const repString,                          const XMLCh* const origString,                          const Match* subEx);    /**     *    Converts a token tree into an operation tree     */    void compile(const Token* const token);    Op*  compile(const Token* const token, Op* const next,                 const bool reverse);    /**      *    Helper methods used by compile      */    Op* compileSingle(const Token* const token, Op* const next,                      const unsigned short tokType);    Op* compileUnion(const Token* const token, Op* const next,                     const bool reverse);    Op* compileCondition(const Token* const token, Op* const next,                         const bool reverse);    Op* compileParenthesis(const Token* const token, Op* const next,                           const bool reverse);    Op* compileLook(const Token* const token, const Op* const next,                    const bool reverse, const unsigned short tokType);    Op* compileConcat(const Token* const token, Op* const next,                      const bool reverse);    Op* compileClosure(const Token* const token, Op* const next,                       const bool reverse, const unsigned short tokType);    // -----------------------------------------------------------------------    //  Private data members    // -----------------------------------------------------------------------    bool               fHasBackReferences;    bool               fFixedStringOnly;    int                fNoGroups;    int                fMinLength;    int                fNoClosures;    unsigned int       fOptions;    BMPattern*         fBMPattern;    XMLCh*             fPattern;    XMLCh*             fFixedString;    Op*                fOperations;    Token*             fTokenTree;    RangeToken*        fFirstChar;    static RangeToken* fWordRange;    OpFactory          fOpFactory;    XMLMutex           fMutex;    TokenFactory*      fTokenFactory;    MemoryManager*     fMemoryManager;};  // ---------------------------------------------------------------------------  //  RegularExpression: Cleanup methods  // ---------------------------------------------------------------------------  inline void RegularExpression::cleanUp() {      fMemoryManager->deallocate(fPattern);//delete [] fPattern;      fMemoryManager->deallocate(fFixedString);//delete [] fFixedString;      

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
www成人在线观看| 欧美性受xxxx| 久久综合五月天婷婷伊人| 久久99精品一区二区三区三区| 日韩亚洲欧美在线| 激情小说欧美图片| 国产精品久久久久一区二区三区共| 成人午夜电影小说| 国产精品的网站| 欧美在线免费视屏| 美女脱光内衣内裤视频久久影院| 精品成人a区在线观看| 岛国精品一区二区| 亚洲精品少妇30p| 欧美一区二区三区四区在线观看 | 久久精品国产成人一区二区三区| 日韩视频一区二区在线观看| 国产成人免费av在线| 亚洲欧洲日本在线| 欧美伦理视频网站| 国产一区二区三区国产| 国产精品国模大尺度视频| 欧美三级资源在线| 蜜臀av性久久久久蜜臀aⅴ| 欧美国产精品专区| 欧日韩精品视频| 韩国av一区二区三区在线观看 | ...中文天堂在线一区| 欧美三级午夜理伦三级中视频| 日韩不卡一区二区三区 | 精品欧美一区二区久久| 成人精品免费看| 性做久久久久久久免费看| 久久品道一品道久久精品| 在线视频一区二区三区| 国产精品一区二区在线看| 一区二区三区鲁丝不卡| 久久久国产精品麻豆| 在线观看视频欧美| 国产不卡视频在线播放| 五月开心婷婷久久| 国产精品无圣光一区二区| 91精品国产高清一区二区三区蜜臀| 国产成人在线电影| 免费观看成人鲁鲁鲁鲁鲁视频| 中文天堂在线一区| 日韩欧美国产一区二区在线播放 | 久久欧美中文字幕| 欧美剧在线免费观看网站 | 欧美一区午夜视频在线观看| 成人av在线电影| 久久99国产乱子伦精品免费| 一级中文字幕一区二区| 日本一区二区久久| 日韩欧美二区三区| 欧美日韩在线综合| 91麻豆福利精品推荐| 国产成人免费视频| 国产中文字幕精品| 九九视频精品免费| 日韩电影在线看| 亚洲va欧美va人人爽午夜| 亚洲人成在线播放网站岛国| 国产欧美一区二区在线观看| 日韩欧美www| 8x8x8国产精品| 欧美日韩免费视频| 91福利国产成人精品照片| 北条麻妃国产九九精品视频| 成人精品视频网站| 丁香桃色午夜亚洲一区二区三区| 久久精品国产99| 久久国产精品免费| 免费av网站大全久久| 日本美女视频一区二区| 日本麻豆一区二区三区视频| 日韩av电影免费观看高清完整版在线观看| 亚洲综合丁香婷婷六月香| 亚洲视频免费看| 尤物av一区二区| 亚洲一区二区三区美女| 亚洲成人先锋电影| 五月婷婷色综合| 日韩国产精品久久久久久亚洲| 日韩高清一区二区| 狠狠色综合日日| 国产精品一区在线观看你懂的| 处破女av一区二区| 99久久免费视频.com| 色一区在线观看| 精品视频色一区| 欧美精品乱人伦久久久久久| 日韩一卡二卡三卡国产欧美| 日韩精品最新网址| 国产婷婷色一区二区三区| 欧美国产综合色视频| 亚洲欧洲99久久| 亚洲一区影音先锋| 免费观看日韩av| 成人激情综合网站| 91黄色激情网站| 91精品国产入口在线| 精品电影一区二区| 国产欧美精品一区二区色综合朱莉 | 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 国产欧美日产一区| 亚洲精品v日韩精品| 日本成人中文字幕| 粉嫩嫩av羞羞动漫久久久| 色婷婷精品久久二区二区蜜臂av | 99久久精品免费精品国产| 综合色中文字幕| 精品美女一区二区| 中文幕一区二区三区久久蜜桃| 亚洲色图在线播放| 天天影视色香欲综合网老头| 九九精品一区二区| 91亚洲午夜精品久久久久久| 欧美一区二区黄| 国产精品免费视频一区| 亚洲综合成人网| 精品无人码麻豆乱码1区2区| 一本大道av一区二区在线播放| 日韩一区二区免费高清| 国产精品成人网| 久久99久久久久| 欧美中文字幕久久| 久久久久久久久久久电影| 亚洲成av人片一区二区三区| 国产传媒一区在线| 91精品国产麻豆| 一区二区高清视频在线观看| 激情成人综合网| 欧美一区二区在线观看| 亚洲三级电影全部在线观看高清| 美女在线视频一区| 欧美性极品少妇| 一区在线中文字幕| 狠狠色丁香久久婷婷综合丁香| 欧美性生活一区| 中文字幕一区二区三| 国内精品免费**视频| 911国产精品| 亚洲综合网站在线观看| 成人app软件下载大全免费| 久久综合av免费| 老司机精品视频在线| 欧美日韩中文国产| 亚洲男人的天堂网| av亚洲精华国产精华| 久久久久88色偷偷免费| 免费在线观看成人| 欧美日韩第一区日日骚| 亚洲午夜在线视频| 在线精品视频小说1| 最新国产の精品合集bt伙计| 成人免费看视频| 久久久综合视频| 激情综合亚洲精品| 精品电影一区二区三区 | 久久精品国产成人一区二区三区| 欧美精品第一页| 亚洲成国产人片在线观看| 在线观看日韩毛片| 亚洲精品国产无天堂网2021| 91色视频在线| 亚洲精品国产一区二区精华液 | 这里只有精品99re| 亚洲成年人网站在线观看| 欧美图区在线视频| 午夜电影久久久| 91精品国产黑色紧身裤美女| 久久精品国内一区二区三区| 日韩欧美黄色影院| 国产在线精品不卡| 久久久不卡网国产精品二区| 美国一区二区三区在线播放| 亚洲精品一区二区三区福利| 成人一区二区在线观看| 亚洲日穴在线视频| 欧美日韩一区小说| 蜜桃一区二区三区在线| 久久久久国产一区二区三区四区| 国产一区在线视频| 中文字幕av一区二区三区高| av午夜一区麻豆| 最好看的中文字幕久久| 色婷婷亚洲精品| 午夜av一区二区| 久久综合精品国产一区二区三区| 国产成人日日夜夜| 国产精品美女久久福利网站| 高清在线成人网| 亚洲男人都懂的| 欧美人牲a欧美精品| 亚洲综合色区另类av| 欧美艳星brazzers| 日韩高清不卡一区二区三区| 久久精品视频免费| av中文字幕在线不卡|