CFCharacterSet.pas 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460
  1. { CFCharacterSet.h
  2. Copyright (c) 1999-2005, Apple, Inc. All rights reserved.
  3. }
  4. { Pascal Translation Updated: Peter N Lewis, <[email protected]>, September 2005 }
  5. {
  6. Modified for use with Free Pascal
  7. Version 210
  8. Please report any bugs to <[email protected]>
  9. }
  10. {$mode macpas}
  11. {$packenum 1}
  12. {$macro on}
  13. {$inline on}
  14. {$calling mwpascal}
  15. unit CFCharacterSet;
  16. interface
  17. {$setc UNIVERSAL_INTERFACES_VERSION := $0342}
  18. {$setc GAP_INTERFACES_VERSION := $0210}
  19. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  20. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  21. {$endc}
  22. {$ifc defined CPUPOWERPC and defined CPUI386}
  23. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  24. {$endc}
  25. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  26. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  27. {$endc}
  28. {$ifc not defined __ppc__ and defined CPUPOWERPC}
  29. {$setc __ppc__ := 1}
  30. {$elsec}
  31. {$setc __ppc__ := 0}
  32. {$endc}
  33. {$ifc not defined __i386__ and defined CPUI386}
  34. {$setc __i386__ := 1}
  35. {$elsec}
  36. {$setc __i386__ := 0}
  37. {$endc}
  38. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  39. {$error Conflicting definitions for __ppc__ and __i386__}
  40. {$endc}
  41. {$ifc defined __ppc__ and __ppc__}
  42. {$setc TARGET_CPU_PPC := TRUE}
  43. {$setc TARGET_CPU_X86 := FALSE}
  44. {$elifc defined __i386__ and __i386__}
  45. {$setc TARGET_CPU_PPC := FALSE}
  46. {$setc TARGET_CPU_X86 := TRUE}
  47. {$elsec}
  48. {$error Neither __ppc__ nor __i386__ is defined.}
  49. {$endc}
  50. {$setc TARGET_CPU_PPC_64 := FALSE}
  51. {$ifc defined FPC_BIG_ENDIAN}
  52. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  53. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  54. {$elifc defined FPC_LITTLE_ENDIAN}
  55. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  56. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  57. {$elsec}
  58. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  59. {$endc}
  60. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  61. {$setc CALL_NOT_IN_CARBON := FALSE}
  62. {$setc OLDROUTINENAMES := FALSE}
  63. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  64. {$setc OPAQUE_UPP_TYPES := TRUE}
  65. {$setc OTCARBONAPPLICATION := TRUE}
  66. {$setc OTKERNEL := FALSE}
  67. {$setc PM_USE_SESSION_APIS := TRUE}
  68. {$setc TARGET_API_MAC_CARBON := TRUE}
  69. {$setc TARGET_API_MAC_OS8 := FALSE}
  70. {$setc TARGET_API_MAC_OSX := TRUE}
  71. {$setc TARGET_CARBON := TRUE}
  72. {$setc TARGET_CPU_68K := FALSE}
  73. {$setc TARGET_CPU_MIPS := FALSE}
  74. {$setc TARGET_CPU_SPARC := FALSE}
  75. {$setc TARGET_OS_MAC := TRUE}
  76. {$setc TARGET_OS_UNIX := FALSE}
  77. {$setc TARGET_OS_WIN32 := FALSE}
  78. {$setc TARGET_RT_MAC_68881 := FALSE}
  79. {$setc TARGET_RT_MAC_CFM := FALSE}
  80. {$setc TARGET_RT_MAC_MACHO := TRUE}
  81. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  82. {$setc TYPE_BOOL := FALSE}
  83. {$setc TYPE_EXTENDED := FALSE}
  84. {$setc TYPE_LONGLONG := TRUE}
  85. uses MacTypes,CFBase,CFData;
  86. {$ALIGN POWER}
  87. {!
  88. @header CFCharacterSet
  89. CFCharacterSet represents a set, or a bag, of Unicode characters.
  90. The API consists of 3 groups:
  91. 1) creation/manipulation of CFCharacterSet instances,
  92. 2) query of a single Unicode character membership,
  93. and 3) bitmap representation related (reading/writing).
  94. Conceptually, CFCharacterSet is a 136K byte bitmap array of
  95. which each bit represents a Unicode code point. It could
  96. contain the Unicode characters in ISO 10646 Basic Multilingual
  97. Plane (BMP) and characters in Plane 1 through Plane 16
  98. accessible via surrogate paris in the Unicode Transformation
  99. Format, 16-bit encoding form (UTF-16). In other words, it can
  100. store values from 0x00000 to 0x10FFFF in the Unicode
  101. Transformation Format, 32-bit encoding form (UTF-32). However,
  102. in general, how CFCharacterSet stores the information is an
  103. implementation detail. Note even CFData used for the external
  104. bitmap representation rarely has 136K byte. For detailed
  105. discussion of the external bitmap representation, refer to the
  106. comments for CFCharacterSetCreateWithBitmapRepresentation below.
  107. Note that the existance of non-BMP characters in a character set
  108. does not imply the membership of the corresponding surrogate
  109. characters. For example, a character set with U+10000 does not
  110. match with U+D800.
  111. }
  112. {!
  113. @typedef CFCharacterSetRef
  114. This is the type of a reference to immutable CFCharacterSets.
  115. }
  116. type
  117. CFCharacterSetRef = ^SInt32; { an opaque 32-bit type }
  118. CFCharacterSetRefPtr = ^CFCharacterSetRef;
  119. {!
  120. @typedef CFMutableCharacterSetRef
  121. This is the type of a reference to mutable CFMutableCharacterSets.
  122. }
  123. type
  124. CFMutableCharacterSetRef = CFCharacterSetRef;
  125. CFMutableCharacterSetRefPtr = ^CFMutableCharacterSetRef;
  126. {!
  127. @typedef CFCharacterSetPredefinedSet
  128. Type of the predefined CFCharacterSet selector values.
  129. }
  130. type
  131. CFCharacterSetPredefinedSet = SInt32;
  132. const
  133. kCFCharacterSetControl = 1; { Control character set (Unicode General Category Cc and Cf) }
  134. kCFCharacterSetWhitespace = 2; { Whitespace character set (Unicode General Category Zs and U0009 CHARACTER TABULATION) }
  135. kCFCharacterSetWhitespaceAndNewline = 3; { Whitespace and Newline character set (Unicode General Category Z*, U000A ~ U000D, and U0085) }
  136. kCFCharacterSetDecimalDigit = 4; { Decimal digit character set }
  137. kCFCharacterSetLetter = 5; { Letter character set (Unicode General Category L* & M*) }
  138. kCFCharacterSetLowercaseLetter = 6; { Lowercase character set (Unicode General Category Ll) }
  139. kCFCharacterSetUppercaseLetter = 7; { Uppercase character set (Unicode General Category Lu and Lt) }
  140. kCFCharacterSetNonBase = 8; { Non-base character set (Unicode General Category M*) }
  141. kCFCharacterSetDecomposable = 9; { Canonically decomposable character set }
  142. kCFCharacterSetAlphaNumeric = 10; { Alpha Numeric character set (Unicode General Category L*, M*, & N*) }
  143. kCFCharacterSetPunctuation = 11; { Punctuation character set (Unicode General Category P*) }
  144. kCFCharacterSetIllegal = 12; { Illegal character set }
  145. {#if MAC_OS_X_VERSION_10_2 <= MAC_OS_X_VERSION_MAX_ALLOWED}
  146. kCFCharacterSetCapitalizedLetter = 13; { Titlecase character set (Unicode General Category Lt) }
  147. {#endif}
  148. {#if MAC_OS_X_VERSION_10_3 <= MAC_OS_X_VERSION_MAX_ALLOWED}
  149. kCFCharacterSetSymbol = 14; { Symbol character set (Unicode General Category S*) }
  150. {#endif}
  151. {!
  152. @function CFCharacterSetGetTypeID
  153. Returns the type identifier of all CFCharacterSet instances.
  154. }
  155. function CFCharacterSetGetTypeID: CFTypeID; external name '_CFCharacterSetGetTypeID';
  156. {!
  157. @function CFCharacterSetGetPredefined
  158. Returns a predefined CFCharacterSet instance.
  159. @param theSetIdentifier The CFCharacterSetPredefinedSet selector
  160. which specifies the predefined character set. If the
  161. value is not in CFCharacterSetPredefinedSet, the behavior
  162. is undefined.
  163. @result A reference to the predefined immutable CFCharacterSet.
  164. This instance is owned by CF.
  165. }
  166. function CFCharacterSetGetPredefined( theSetIdentifier: CFCharacterSetPredefinedSet ): CFCharacterSetRef; external name '_CFCharacterSetGetPredefined';
  167. {!
  168. @function CFCharacterSetCreateWithCharactersInRange
  169. Creates a new immutable character set with the values from the given range.
  170. @param alloc The CFAllocator which should be used to allocate
  171. memory for the array and its storage for values. This
  172. parameter may be NULL in which case the current default
  173. CFAllocator is used. If this reference is not a valid
  174. CFAllocator, the behavior is undefined.
  175. @param theRange The CFRange which should be used to specify the
  176. Unicode range the character set is filled with. It
  177. accepts the range in 32-bit in the UTF-32 format. The
  178. valid character point range is from 0x00000 to 0x10FFFF.
  179. If the range is outside of the valid Unicode character
  180. point, the behavior is undefined.
  181. @result A reference to the new immutable CFCharacterSet.
  182. }
  183. function CFCharacterSetCreateWithCharactersInRange( alloc: CFAllocatorRef; theRange: CFRange ): CFCharacterSetRef; external name '_CFCharacterSetCreateWithCharactersInRange';
  184. {!
  185. @function CFCharacterSetCreateWithCharactersInString
  186. Creates a new immutable character set with the values in the given string.
  187. @param alloc The CFAllocator which should be used to allocate
  188. memory for the array and its storage for values. This
  189. parameter may be NULL in which case the current default
  190. CFAllocator is used. If this reference is not a valid
  191. CFAllocator, the behavior is undefined.
  192. @param theString The CFString which should be used to specify
  193. the Unicode characters the character set is filled with.
  194. If this parameter is not a valid CFString, the behavior
  195. is undefined.
  196. @result A reference to the new immutable CFCharacterSet.
  197. }
  198. function CFCharacterSetCreateWithCharactersInString( alloc: CFAllocatorRef; theString: CFStringRef ): CFCharacterSetRef; external name '_CFCharacterSetCreateWithCharactersInString';
  199. {!
  200. @function CFCharacterSetCreateWithBitmapRepresentation
  201. Creates a new immutable character set with the bitmap representtion in the given data.
  202. @param alloc The CFAllocator which should be used to allocate
  203. memory for the array and its storage for values. This
  204. parameter may be NULL in which case the current default
  205. CFAllocator is used. If this reference is not a valid
  206. CFAllocator, the behavior is undefined.
  207. @param theData The CFData which should be used to specify the
  208. bitmap representation of the Unicode character points
  209. the character set is filled with. The bitmap
  210. representation could contain all the Unicode character
  211. range starting from BMP to Plane 16. The first 8K bytes
  212. of the data represents the BMP range. The BMP range 8K
  213. bytes can be followed by zero to sixteen 8K byte
  214. bitmaps, each one with the plane index byte prepended.
  215. For example, the bitmap representing the BMP and Plane 2
  216. has the size of 16385 bytes (8K bytes for BMP, 1 byte
  217. index + 8K bytes bitmap for Plane 2). The plane index
  218. byte, in this case, contains the integer value two. If
  219. this parameter is not a valid CFData or it contains a
  220. Plane index byte outside of the valid Plane range
  221. (1 to 16), the behavior is undefined.
  222. @result A reference to the new immutable CFCharacterSet.
  223. }
  224. function CFCharacterSetCreateWithBitmapRepresentation( alloc: CFAllocatorRef; theData: CFDataRef ): CFCharacterSetRef; external name '_CFCharacterSetCreateWithBitmapRepresentation';
  225. {#if MAC_OS_X_VERSION_10_2 <= MAC_OS_X_VERSION_MAX_ALLOWED}
  226. {!
  227. @function CFCharacterSetCreateInvertedSet
  228. Creates a new immutable character set that is the invert of the specified character set.
  229. @param alloc The CFAllocator which should be used to allocate
  230. memory for the array and its storage for values. This
  231. parameter may be NULL in which case the current default
  232. CFAllocator is used. If this reference is not a valid
  233. CFAllocator, the behavior is undefined.
  234. @param theSet The CFCharacterSet which is to be inverted. If this
  235. parameter is not a valid CFCharacterSet, the behavior is
  236. undefined.
  237. @result A reference to the new immutable CFCharacterSet.
  238. }
  239. function CFCharacterSetCreateInvertedSet( alloc: CFAllocatorRef; theSet: CFCharacterSetRef ): CFCharacterSetRef; external name '_CFCharacterSetCreateInvertedSet';
  240. {!
  241. @function CFCharacterSetIsSupersetOfSet
  242. Reports whether or not the character set is a superset of the character set specified as the second parameter.
  243. @param theSet The character set to be checked for the membership of theOtherSet.
  244. If this parameter is not a valid CFCharacterSet, the behavior is undefined.
  245. @param theOtherset The character set to be checked whether or not it is a subset of theSet.
  246. If this parameter is not a valid CFCharacterSet, the behavior is undefined.
  247. }
  248. function CFCharacterSetIsSupersetOfSet( theSet: CFCharacterSetRef; theOtherset: CFCharacterSetRef ): Boolean; external name '_CFCharacterSetIsSupersetOfSet';
  249. {!
  250. @function CFCharacterSetHasMemberInPlane
  251. Reports whether or not the character set contains at least one member character in the specified plane.
  252. @param theSet The character set to be checked for the membership. If this
  253. parameter is not a valid CFCharacterSet, the behavior is undefined.
  254. @param thePlane The plane number to be checked for the membership.
  255. The valid value range is from 0 to 16. If the value is outside of the valid
  256. plane number range, the behavior is undefined.
  257. }
  258. function CFCharacterSetHasMemberInPlane( theSet: CFCharacterSetRef; thePlane: CFIndex ): Boolean; external name '_CFCharacterSetHasMemberInPlane';
  259. {#endif}
  260. {!
  261. @function CFCharacterSetCreateMutable
  262. Creates a new empty mutable character set.
  263. @param allocator The CFAllocator which should be used to allocate
  264. memory for the array and its storage for values. This
  265. parameter may be NULL in which case the current default
  266. CFAllocator is used. If this reference is not a valid
  267. CFAllocator, the behavior is undefined.
  268. @result A reference to the new mutable CFCharacterSet.
  269. }
  270. function CFCharacterSetCreateMutable( alloc: CFAllocatorRef ): CFMutableCharacterSetRef; external name '_CFCharacterSetCreateMutable';
  271. {#if MAC_OS_X_VERSION_10_3 <= MAC_OS_X_VERSION_MAX_ALLOWED}
  272. {!
  273. @function CFCharacterSetCreateCopy
  274. Creates a new character set with the values from the given character set. This function tries to compact the backing store where applicable.
  275. @param allocator The CFAllocator which should be used to allocate
  276. memory for the array and its storage for values. This
  277. parameter may be NULL in which case the current default
  278. CFAllocator is used. If this reference is not a valid
  279. CFAllocator, the behavior is undefined.
  280. @param theSet The CFCharacterSet which is to be copied. If this
  281. parameter is not a valid CFCharacterSet, the behavior is
  282. undefined.
  283. @result A reference to the new CFCharacterSet.
  284. }
  285. function CFCharacterSetCreateCopy( alloc: CFAllocatorRef; theSet: CFCharacterSetRef ): CFCharacterSetRef; external name '_CFCharacterSetCreateCopy';
  286. (* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
  287. {#endif} { MAC_OS_X_VERSION_10_3 <= MAC_OS_X_VERSION_MAX_ALLOWED }
  288. {!
  289. @function CFCharacterSetCreateMutableCopy
  290. Creates a new mutable character set with the values from the given character set.
  291. @param allocator The CFAllocator which should be used to allocate
  292. memory for the array and its storage for values. This
  293. parameter may be NULL in which case the current default
  294. CFAllocator is used. If this reference is not a valid
  295. CFAllocator, the behavior is undefined.
  296. @param theSet The CFCharacterSet which is to be copied. If this
  297. parameter is not a valid CFCharacterSet, the behavior is
  298. undefined.
  299. @result A reference to the new mutable CFCharacterSet.
  300. }
  301. function CFCharacterSetCreateMutableCopy( alloc: CFAllocatorRef; theSet: CFCharacterSetRef ): CFMutableCharacterSetRef; external name '_CFCharacterSetCreateMutableCopy';
  302. {!
  303. @function CFCharacterSetIsCharacterMember
  304. Reports whether or not the Unicode character is in the character set.
  305. @param theSet The character set to be searched. If this parameter
  306. is not a valid CFCharacterSet, the behavior is undefined.
  307. @param theChar The Unicode character for which to test against the
  308. character set. Note that this function takes 16-bit Unicode
  309. character value; hence, it does not support access to the
  310. non-BMP planes.
  311. @result true, if the value is in the character set, otherwise false.
  312. }
  313. function CFCharacterSetIsCharacterMember( theSet: CFCharacterSetRef; theChar: UniChar ): Boolean; external name '_CFCharacterSetIsCharacterMember';
  314. {#if MAC_OS_X_VERSION_10_2 <= MAC_OS_X_VERSION_MAX_ALLOWED}
  315. {!
  316. @function CFCharacterSetIsLongCharacterMember
  317. Reports whether or not the UTF-32 character is in the character set.
  318. @param theSet The character set to be searched. If this parameter
  319. is not a valid CFCharacterSet, the behavior is undefined.
  320. @param theChar The UTF-32 character for which to test against the
  321. character set.
  322. @result true, if the value is in the character set, otherwise false.
  323. }
  324. function CFCharacterSetIsLongCharacterMember( theSet: CFCharacterSetRef; theChar: UTF32Char ): Boolean; external name '_CFCharacterSetIsLongCharacterMember';
  325. {#endif}
  326. {!
  327. @function CFCharacterSetCreateBitmapRepresentation
  328. Creates a new immutable data with the bitmap representation from the given character set.
  329. @param allocator The CFAllocator which should be used to allocate
  330. memory for the array and its storage for values. This
  331. parameter may be NULL in which case the current default
  332. CFAllocator is used. If this reference is not a valid
  333. CFAllocator, the behavior is undefined.
  334. @param theSet The CFCharacterSet which is to be used create the
  335. bitmap representation from. Refer to the comments for
  336. CFCharacterSetCreateWithBitmapRepresentation for the
  337. detailed discussion of the bitmap representation format.
  338. If this parameter is not a valid CFCharacterSet, the
  339. behavior is undefined.
  340. @result A reference to the new immutable CFData.
  341. }
  342. function CFCharacterSetCreateBitmapRepresentation( alloc: CFAllocatorRef; theSet: CFCharacterSetRef ): CFDataRef; external name '_CFCharacterSetCreateBitmapRepresentation';
  343. {!
  344. @function CFCharacterSetAddCharactersInRange
  345. Adds the given range to the charaacter set.
  346. @param theSet The character set to which the range is to be added.
  347. If this parameter is not a valid mutable CFCharacterSet,
  348. the behavior is undefined.
  349. @param theRange The range to add to the character set. It accepts
  350. the range in 32-bit in the UTF-32 format. The valid
  351. character point range is from 0x00000 to 0x10FFFF. If the
  352. range is outside of the valid Unicode character point,
  353. the behavior is undefined.
  354. }
  355. procedure CFCharacterSetAddCharactersInRange( theSet: CFMutableCharacterSetRef; theRange: CFRange ); external name '_CFCharacterSetAddCharactersInRange';
  356. {!
  357. @function CFCharacterSetRemoveCharactersInRange
  358. Removes the given range from the charaacter set.
  359. @param theSet The character set from which the range is to be
  360. removed. If this parameter is not a valid mutable
  361. CFCharacterSet, the behavior is undefined.
  362. @param theRange The range to remove from the character set.
  363. It accepts the range in 32-bit in the UTF-32 format.
  364. The valid character point range is from 0x00000 to 0x10FFFF.
  365. If the range is outside of the valid Unicode character point,
  366. the behavior is undefined.
  367. }
  368. procedure CFCharacterSetRemoveCharactersInRange( theSet: CFMutableCharacterSetRef; theRange: CFRange ); external name '_CFCharacterSetRemoveCharactersInRange';
  369. {!
  370. @function CFCharacterSetAddCharactersInString
  371. Adds the characters in the given string to the charaacter set.
  372. @param theSet The character set to which the characters in the
  373. string are to be added. If this parameter is not a
  374. valid mutable CFCharacterSet, the behavior is undefined.
  375. @param theString The string to add to the character set.
  376. If this parameter is not a valid CFString, the behavior
  377. is undefined.
  378. }
  379. procedure CFCharacterSetAddCharactersInString( theSet: CFMutableCharacterSetRef; theString: CFStringRef ); external name '_CFCharacterSetAddCharactersInString';
  380. {!
  381. @function CFCharacterSetRemoveCharactersInString
  382. Removes the characters in the given string from the charaacter set.
  383. @param theSet The character set from which the characters in the
  384. string are to be remove. If this parameter is not a
  385. valid mutable CFCharacterSet, the behavior is undefined.
  386. @param theString The string to remove from the character set.
  387. If this parameter is not a valid CFString, the behavior
  388. is undefined.
  389. }
  390. procedure CFCharacterSetRemoveCharactersInString( theSet: CFMutableCharacterSetRef; theString: CFStringRef ); external name '_CFCharacterSetRemoveCharactersInString';
  391. {!
  392. @function CFCharacterSetUnion
  393. Forms the union with the given character set.
  394. @param theSet The destination character set into which the
  395. union of the two character sets is stored. If this
  396. parameter is not a valid mutable CFCharacterSet, the
  397. behavior is undefined.
  398. @param theOtherSet The character set with which the union is
  399. formed. If this parameter is not a valid CFCharacterSet,
  400. the behavior is undefined.
  401. }
  402. procedure CFCharacterSetUnion( theSet: CFMutableCharacterSetRef; theOtherSet: CFCharacterSetRef ); external name '_CFCharacterSetUnion';
  403. {!
  404. @function CFCharacterSetIntersect
  405. Forms the intersection with the given character set.
  406. @param theSet The destination character set into which the
  407. intersection of the two character sets is stored.
  408. If this parameter is not a valid mutable CFCharacterSet,
  409. the behavior is undefined.
  410. @param theOtherSet The character set with which the intersection
  411. is formed. If this parameter is not a valid CFCharacterSet,
  412. the behavior is undefined.
  413. }
  414. procedure CFCharacterSetIntersect( theSet: CFMutableCharacterSetRef; theOtherSet: CFCharacterSetRef ); external name '_CFCharacterSetIntersect';
  415. {!
  416. @function CFCharacterSetInvert
  417. Inverts the content of the given character set.
  418. @param theSet The character set to be inverted.
  419. If this parameter is not a valid mutable CFCharacterSet,
  420. the behavior is undefined.
  421. }
  422. procedure CFCharacterSetInvert( theSet: CFMutableCharacterSetRef ); external name '_CFCharacterSetInvert';
  423. end.