Replace dictionary with two arrays for Named Entity replacement
Currently the entity name is binary-searched and its replacement-value is accessed via found index
This commit is contained in:
@@ -10,9 +10,7 @@
|
||||
|
||||
@interface HTMLTokenizerEntities : NSObject
|
||||
|
||||
+ (NSArray *)entityNames;
|
||||
+ (NSString *)replacementForNamedCharacterEntity:(NSString *)entity;
|
||||
+ (NSArray *)entities;
|
||||
+ (NSString *)replacementAtIndex:(NSUInteger)index;
|
||||
|
||||
@end
|
||||
|
||||
extern NSArray * NAMES();
|
||||
|
||||
Reference in New Issue
Block a user