/packages/cocoaint/src/foundation/NSCharacterSet.inc

https://github.com/slibre/freepascal · Pascal · 105 lines · 52 code · 20 blank · 33 comment · 0 complexity · a4204f0bfe61694bed77740f3bb3f357 MD5 · raw file

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