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:
iska
2014-10-31 18:25:54 +01:00
parent c04d4a35f3
commit 2fa0e793e0
4 changed files with 22 additions and 31 deletions
+2 -4
View File
@@ -10,9 +10,7 @@
@interface HTMLTokenizerEntities : NSObject
+ (NSArray *)entityNames;
+ (NSString *)replacementForNamedCharacterEntity:(NSString *)entity;
+ (NSArray *)entities;
+ (NSString *)replacementAtIndex:(NSUInteger)index;
@end
extern NSArray * NAMES();