Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 25 lines (19 sloc) 0.446 kb
ee99867 @ccgus oh geeze
authored
1 //
2 // TDUppercaseWord.m
3 // TDParseKit
4 //
5 // Created by Todd Ditchendorf on 8/13/08.
6 // Copyright 2008 Todd Ditchendorf. All rights reserved.
7 //
8
9 #import "TDUppercaseWord.h"
10 #import "TDToken.h"
11
12 @implementation TDUppercaseWord
13
14 - (BOOL)qualifies:(id)obj {
15 TDToken *tok = (TDToken *)obj;
16 if (!tok.isWord) {
17 return NO;
18 }
19
20 NSString *s = tok.stringValue;
21 return s.length && isupper([s characterAtIndex:0]);
22 }
23
24 @end
Something went wrong with that request. Please try again.