decimalDigitCharacterSet
Index>Foundation>NSCharacterSet>
数字の文字セットを返します
解説
数字の文字セットを返します。
2バイト領域では不具合が出ます。
返り値
( NSCharacterSet * )
文字セット
引数
フレームワーク
Foundation
クラス
NSCharacterSet
Class Methods
使用可能
10.0
参照
+ alphanumericCharacterSet
例文
#import "SetImage.h" @implementation SetImage - (IBAction)set:(id)sender { UTF32Char currentChar ; NSCharacterSet *chrSet; int i; chrSet = [NSCharacterSet decimalDigitCharacterSet] ; for ( i=1 ; i<=22000 ; i++){ currentChar = (UTF32Char)i; if ([chrSet longCharacterIsMember:currentChar]) { [tv insertText:[NSString stringWithFormat:@"%c",currentChar]]; } } } @end