Files
HTMLKit/HTMLKit/HTMLCharacterToken.h
T
iska d8a55db4dc Change the implementation of the character token and string methods to reduce initialization overhead
All methods operate on the same NSString instance instead of creating a new character token, e.g. when
trimming or splitting the leading whitespace.
2015-04-12 18:33:10 +02:00

28 lines
595 B
Objective-C

//
// HTMLCharacterToken.h
// HTMLKit
//
// Created by Iska on 23/10/14.
// Copyright (c) 2014 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "HTMLToken.h"
@interface HTMLCharacterToken : HTMLToken
@property (nonatomic, copy) NSString *characters;
- (instancetype)initWithString:(NSString *)string;
- (void)appendString:(NSString *)string;
- (BOOL)isWhitespaceToken;
- (BOOL)isEmpty;
- (void)retainLeadingWhitespace;
- (void)trimLeadingWhitespace;
- (void)trimFormIndex:(NSUInteger)index;
- (HTMLCharacterToken *)tokenBySplitingLeadingWhiteSpace;
@end