Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forgot to init "content" in "operatorWithStartingToken"? #56

Open
Dafenng opened this issue Jan 10, 2013 · 1 comment
Open

Forgot to init "content" in "operatorWithStartingToken"? #56

Dafenng opened this issue Jan 10, 2013 · 1 comment

Comments

@Dafenng
Copy link

Dafenng commented Jan 10, 2013

NSString *content = nil;
NSCharacterSet *newLineSet = [NSCharacterSet newlineCharacterSet];
NSCharacterSet *tagSet = [NSCharacterSet characterSetWithCharactersInString:@"<>"];
NSString *separatorString = @"> <";

chars = [[NSMutableDictionary alloc] init];    
NSScanner *rangeScanner = [NSScanner scannerWithString:content]

It makes the warning "NSScanner: nil string argument", and makes this method meanless.

@federicocappelli
Copy link

this function have some problems:

  • (Operator *)operatorWithStartingToken:(NSString *)token

token is never used and the functions return nil every time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants