Skip to content
Snippets Groups Projects
Commit e20b7077 authored by Khaled Noaman's avatar Khaled Noaman
Browse files

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
parent f270a4d3
No related branches found
No related tags found
Loading
Showing
with 1026 additions and 650 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment