Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tag: v1.0.1
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (17 sloc) 0.367 kB
//
// TDDigit.m
// TDParseKit
//
// Created by Todd Ditchendorf on 8/14/08.
// Copyright 2008 Todd Ditchendorf. All rights reserved.
//
#import "TDDigit.h"
@implementation TDDigit
+ (id)digit {
return [[[self alloc] initWithString:nil] autorelease];
}
- (BOOL)qualifies:(id)obj {
NSInteger c = [obj integerValue];
return isdigit((int)c);
}
@end
Jump to Line
Something went wrong with that request. Please try again.