Some design changes:
o Changed the TokenFactory from a single static instance, to a normal class. Each RegularExpression object will have its own instance of TokenFactory, and that instance will be passed to other classes that need to use a TokenFactory to create Token objects (with the exception of RangeTokenMap). o Added a new class RangeTokenMap to map a the different ranges in a given category to a specific RangeFactory object. In the old design RangeFactory had dual functionality (act as a Map, and as a factory for creating RangeToken(s)). The RangeTokenMap will have its own copy of the TokenFactory. There will be only one instance of the RangeTokenMap class, and that instance will be lazily deleted when XPlatformUtils::Terminate is called. git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@172607 13f79535-47bb-0310-9956-ffa450edef68
Showing
- src/util/regx/ASCIIRangeFactory.cpp 40 additions, 15 deletionssrc/util/regx/ASCIIRangeFactory.cpp
- src/util/regx/BlockRangeFactory.cpp 29 additions, 4 deletionssrc/util/regx/BlockRangeFactory.cpp
- src/util/regx/ConditionToken.hpp 1 addition, 1 deletionsrc/util/regx/ConditionToken.hpp
- src/util/regx/Makefile.in 17 additions, 0 deletionssrc/util/regx/Makefile.in
- src/util/regx/Match.hpp 6 additions, 5 deletionssrc/util/regx/Match.hpp
- src/util/regx/Op.hpp 12 additions, 22 deletionssrc/util/regx/Op.hpp
- src/util/regx/ParserForXMLSchema.cpp 52 additions, 34 deletionssrc/util/regx/ParserForXMLSchema.cpp
- src/util/regx/ParserForXMLSchema.hpp 17 additions, 33 deletionssrc/util/regx/ParserForXMLSchema.hpp
- src/util/regx/RangeFactory.cpp 15 additions, 174 deletionssrc/util/regx/RangeFactory.cpp
- src/util/regx/RangeFactory.hpp 8 additions, 181 deletionssrc/util/regx/RangeFactory.hpp
- src/util/regx/RangeToken.cpp 27 additions, 10 deletionssrc/util/regx/RangeToken.cpp
- src/util/regx/RangeToken.hpp 8 additions, 2 deletionssrc/util/regx/RangeToken.hpp
- src/util/regx/RangeTokenMap.cpp 281 additions, 0 deletionssrc/util/regx/RangeTokenMap.cpp
- src/util/regx/RangeTokenMap.hpp 267 additions, 0 deletionssrc/util/regx/RangeTokenMap.hpp
- src/util/regx/RegularExpression.cpp 32 additions, 10 deletionssrc/util/regx/RegularExpression.cpp
- src/util/regx/RegularExpression.hpp 3 additions, 0 deletionssrc/util/regx/RegularExpression.hpp
- src/util/regx/RegxParser.cpp 147 additions, 124 deletionssrc/util/regx/RegxParser.cpp
- src/util/regx/RegxParser.hpp 14 additions, 0 deletionssrc/util/regx/RegxParser.hpp
- src/util/regx/Token.cpp 33 additions, 19 deletionssrc/util/regx/Token.cpp
- src/util/regx/Token.hpp 17 additions, 16 deletionssrc/util/regx/Token.hpp
Loading
Please register or sign in to comment