/packages/cocoaint/src/foundation/NSCharacterSet.inc
Pascal | 105 lines | 52 code | 20 blank | 33 comment | 0 complexity | a4204f0bfe61694bed77740f3bb3f357 MD5 | raw file
Possible License(s): LGPL-2.0, LGPL-2.1, LGPL-3.0
1{ Parsed from Foundation.framework NSCharacterSet.h } 2 3{$ifdef TYPES} 4{$ifndef NSCHARACTERSET_PAS_T} 5{$define NSCHARACTERSET_PAS_T} 6 7{ Constants } 8 9const 10 NSOpenStepUnicodeReservedBase = $F400; 11 12{$endif} 13{$endif} 14 15{$ifdef RECORDS} 16{$ifndef NSCHARACTERSET_PAS_R} 17{$define NSCHARACTERSET_PAS_R} 18 19{$endif} 20{$endif} 21 22{$ifdef FUNCTIONS} 23{$ifndef NSCHARACTERSET_PAS_F} 24{$define NSCHARACTERSET_PAS_F} 25 26{$endif} 27{$endif} 28 29{$ifdef EXTERNAL_SYMBOLS} 30{$ifndef NSCHARACTERSET_PAS_S} 31{$define NSCHARACTERSET_PAS_S} 32 33{$endif} 34{$endif} 35 36{$ifdef FORWARD} 37 NSCharacterSet = objcclass; 38 NSCharacterSetPointer = ^NSCharacterSet; 39 NSCharacterSetPtr = NSCharacterSetPointer; 40 NSMutableCharacterSet = objcclass; 41 NSMutableCharacterSetPointer = ^NSMutableCharacterSet; 42 NSMutableCharacterSetPtr = NSMutableCharacterSetPointer; 43 44{$endif} 45 46{$ifdef CLASSES} 47{$ifndef NSCHARACTERSET_PAS_C} 48{$define NSCHARACTERSET_PAS_C} 49 50{ NSCharacterSet } 51 NSCharacterSet = objcclass external (NSObject, NSCopyingProtocol, NSMutableCopyingProtocol, NSCodingProtocol) 52 53 public 54 class function controlCharacterSet: id; message 'controlCharacterSet'; 55 class function whitespaceCharacterSet: id; message 'whitespaceCharacterSet'; 56 class function whitespaceAndNewlineCharacterSet: id; message 'whitespaceAndNewlineCharacterSet'; 57 class function decimalDigitCharacterSet: id; message 'decimalDigitCharacterSet'; 58 class function letterCharacterSet: id; message 'letterCharacterSet'; 59 class function lowercaseLetterCharacterSet: id; message 'lowercaseLetterCharacterSet'; 60 class function uppercaseLetterCharacterSet: id; message 'uppercaseLetterCharacterSet'; 61 class function nonBaseCharacterSet: id; message 'nonBaseCharacterSet'; 62 class function alphanumericCharacterSet: id; message 'alphanumericCharacterSet'; 63 class function decomposableCharacterSet: id; message 'decomposableCharacterSet'; 64 class function illegalCharacterSet: id; message 'illegalCharacterSet'; 65 class function punctuationCharacterSet: id; message 'punctuationCharacterSet'; 66 class function capitalizedLetterCharacterSet: id; message 'capitalizedLetterCharacterSet'; 67 class function symbolCharacterSet: id; message 'symbolCharacterSet'; 68 class function newlineCharacterSet: id; message 'newlineCharacterSet'; 69 class function characterSetWithRange(aRange: NSRange): id; message 'characterSetWithRange:'; 70 class function characterSetWithCharactersInString(aString: NSString): id; message 'characterSetWithCharactersInString:'; 71 class function characterSetWithBitmapRepresentation(data: NSData): id; message 'characterSetWithBitmapRepresentation:'; 72 class function characterSetWithContentsOfFile(fName: NSString): id; message 'characterSetWithContentsOfFile:'; 73 function characterIsMember(aCharacter: unichar): Boolean; message 'characterIsMember:'; 74 function bitmapRepresentation: NSData; message 'bitmapRepresentation'; 75 function invertedSet: NSCharacterSet; message 'invertedSet'; 76 function longCharacterIsMember(theLongChar: UTF32Char): Boolean; message 'longCharacterIsMember:'; 77 function isSupersetOfSet(theOtherSet: NSCharacterSet): Boolean; message 'isSupersetOfSet:'; 78 function hasMemberInPlane(thePlane: cuint8): Boolean; message 'hasMemberInPlane:'; 79 80 { Adopted Protocols } 81 function copyWithZone(zone_: NSZonePtr): id; 82 function mutableCopyWithZone(zone_: NSZonePtr): id; 83 procedure encodeWithCoder(aCoder: NSCoder); 84 function initWithCoder(aDecoder: NSCoder): id; 85 end; 86 87{ NSMutableCharacterSet } 88 NSMutableCharacterSet = objcclass external (NSCharacterSet, NSCopyingProtocol, NSMutableCopyingProtocol) 89 90 public 91 procedure addCharactersInRange(aRange: NSRange); message 'addCharactersInRange:'; 92 procedure removeCharactersInRange(aRange: NSRange); message 'removeCharactersInRange:'; 93 procedure addCharactersInString(aString: NSString); message 'addCharactersInString:'; 94 procedure removeCharactersInString(aString: NSString); message 'removeCharactersInString:'; 95 procedure formUnionWithCharacterSet(otherSet: NSCharacterSet); message 'formUnionWithCharacterSet:'; 96 procedure formIntersectionWithCharacterSet(otherSet: NSCharacterSet); message 'formIntersectionWithCharacterSet:'; 97 procedure invert; message 'invert'; 98 99 { Adopted Protocols } 100 function copyWithZone(zone_: NSZonePtr): id; 101 function mutableCopyWithZone(zone_: NSZonePtr): id; 102 end; 103 104{$endif} 105{$endif}