NSCharacterSet

作者: 秀才不才 | 来源:发表于2016-05-31 13:46 被阅读287次
    • (NSCharacterSet *)controlCharacterSet; //控制符
      • (NSCharacterSet *)whitespaceCharacterSet; //空格
      • (NSCharacterSet *)whitespaceAndNewlineCharacterSet;//首位空格
      • (NSCharacterSet *)decimalDigitCharacterSet; //小数
      • (NSCharacterSet *)letterCharacterSet; //文字
      • (NSCharacterSet *)lowercaseLetterCharacterSet; //小写字母
      • (NSCharacterSet *)uppercaseLetterCharacterSet; //大写字母
      • (NSCharacterSet *)nonBaseCharacterSet; //非基础
      • (NSCharacterSet *)alphanumericCharacterSet; //字母数字
      • (NSCharacterSet *)decomposableCharacterSet; //可分解
      • (NSCharacterSet *)illegalCharacterSet; //非法
      • (NSCharacterSet *)punctuationCharacterSet; //标点
      • (NSCharacterSet *)capitalizedLetterCharacterSet; //大写
      • (NSCharacterSet *)symbolCharacterSet; //符号
      • (NSCharacterSet *)newlineCharacterSet NS_AVAILABLE(10_5, 2_0);//换行符

    </a>
    + (NSCharacterSet *)characterSetWithRange:(NSRange)aRange;
    + (NSCharacterSet *)characterSetWithCharactersInString:(NSString *)aString;
    + (NSCharacterSet *)characterSetWithBitmapRepresentation:(NSData *)data;
    + (NSCharacterSet *)characterSetWithContentsOfFile:(NSString *)fName;

    - (instancetype) initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
    
    - (BOOL)characterIsMember:(unichar)aCharacter;
    @property (readonly, copy) NSData *bitmapRepresentation;
    @property (readonly, copy) NSCharacterSet *invertedSet;
    
    - (BOOL)longCharacterIsMember:(UTF32Char)theLongChar;
    
    - (BOOL)isSupersetOfSet:(NSCharacterSet *)theOtherSet;
    - (BOOL)hasMemberInPlane:(uint8_t)thePlane;

    相关文章

      网友评论

        本文标题:NSCharacterSet

        本文链接:https://www.haomeiwen.com/subject/rlhcdttx.html