StringCompare.pas 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695
  1. {
  2. File: CarbonCore/StringCompare.h
  3. Contains: Public interfaces for String Comparison and related operations
  4. The contents of this header file are deprecated.
  5. Copyright: © 1985-2011 by Apple Inc., all rights reserved.
  6. }
  7. {
  8. Modified for use with Free Pascal
  9. Version 308
  10. Please report any bugs to <[email protected]>
  11. }
  12. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  13. {$mode macpas}
  14. {$modeswitch cblocks}
  15. {$packenum 1}
  16. {$macro on}
  17. {$inline on}
  18. {$calling mwpascal}
  19. unit StringCompare;
  20. interface
  21. {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
  22. {$setc GAP_INTERFACES_VERSION := $0308}
  23. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  24. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  25. {$endc}
  26. {$ifc defined CPUPOWERPC and defined CPUI386}
  27. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  28. {$endc}
  29. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  30. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  31. {$endc}
  32. {$ifc not defined __ppc__ and defined CPUPOWERPC32}
  33. {$setc __ppc__ := 1}
  34. {$elsec}
  35. {$setc __ppc__ := 0}
  36. {$endc}
  37. {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
  38. {$setc __ppc64__ := 1}
  39. {$elsec}
  40. {$setc __ppc64__ := 0}
  41. {$endc}
  42. {$ifc not defined __i386__ and defined CPUI386}
  43. {$setc __i386__ := 1}
  44. {$elsec}
  45. {$setc __i386__ := 0}
  46. {$endc}
  47. {$ifc not defined __x86_64__ and defined CPUX86_64}
  48. {$setc __x86_64__ := 1}
  49. {$elsec}
  50. {$setc __x86_64__ := 0}
  51. {$endc}
  52. {$ifc not defined __arm__ and defined CPUARM}
  53. {$setc __arm__ := 1}
  54. {$elsec}
  55. {$setc __arm__ := 0}
  56. {$endc}
  57. {$ifc not defined __arm64__ and defined CPUAARCH64}
  58. {$setc __arm64__ := 1}
  59. {$elsec}
  60. {$setc __arm64__ := 0}
  61. {$endc}
  62. {$ifc defined cpu64}
  63. {$setc __LP64__ := 1}
  64. {$elsec}
  65. {$setc __LP64__ := 0}
  66. {$endc}
  67. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  68. {$error Conflicting definitions for __ppc__ and __i386__}
  69. {$endc}
  70. {$ifc defined __ppc__ and __ppc__}
  71. {$setc TARGET_CPU_PPC := TRUE}
  72. {$setc TARGET_CPU_PPC64 := FALSE}
  73. {$setc TARGET_CPU_X86 := FALSE}
  74. {$setc TARGET_CPU_X86_64 := FALSE}
  75. {$setc TARGET_CPU_ARM := FALSE}
  76. {$setc TARGET_CPU_ARM64 := FALSE}
  77. {$setc TARGET_OS_MAC := TRUE}
  78. {$setc TARGET_OS_IPHONE := FALSE}
  79. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  80. {$setc TARGET_OS_EMBEDDED := FALSE}
  81. {$elifc defined __ppc64__ and __ppc64__}
  82. {$setc TARGET_CPU_PPC := FALSE}
  83. {$setc TARGET_CPU_PPC64 := TRUE}
  84. {$setc TARGET_CPU_X86 := FALSE}
  85. {$setc TARGET_CPU_X86_64 := FALSE}
  86. {$setc TARGET_CPU_ARM := FALSE}
  87. {$setc TARGET_CPU_ARM64 := FALSE}
  88. {$setc TARGET_OS_MAC := TRUE}
  89. {$setc TARGET_OS_IPHONE := FALSE}
  90. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  91. {$setc TARGET_OS_EMBEDDED := FALSE}
  92. {$elifc defined __i386__ and __i386__}
  93. {$setc TARGET_CPU_PPC := FALSE}
  94. {$setc TARGET_CPU_PPC64 := FALSE}
  95. {$setc TARGET_CPU_X86 := TRUE}
  96. {$setc TARGET_CPU_X86_64 := FALSE}
  97. {$setc TARGET_CPU_ARM := FALSE}
  98. {$setc TARGET_CPU_ARM64 := FALSE}
  99. {$ifc defined(iphonesim)}
  100. {$setc TARGET_OS_MAC := FALSE}
  101. {$setc TARGET_OS_IPHONE := TRUE}
  102. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  103. {$elsec}
  104. {$setc TARGET_OS_MAC := TRUE}
  105. {$setc TARGET_OS_IPHONE := FALSE}
  106. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  107. {$endc}
  108. {$setc TARGET_OS_EMBEDDED := FALSE}
  109. {$elifc defined __x86_64__ and __x86_64__}
  110. {$setc TARGET_CPU_PPC := FALSE}
  111. {$setc TARGET_CPU_PPC64 := FALSE}
  112. {$setc TARGET_CPU_X86 := FALSE}
  113. {$setc TARGET_CPU_X86_64 := TRUE}
  114. {$setc TARGET_CPU_ARM := FALSE}
  115. {$setc TARGET_CPU_ARM64 := FALSE}
  116. {$ifc defined(iphonesim)}
  117. {$setc TARGET_OS_MAC := FALSE}
  118. {$setc TARGET_OS_IPHONE := TRUE}
  119. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  120. {$elsec}
  121. {$setc TARGET_OS_MAC := TRUE}
  122. {$setc TARGET_OS_IPHONE := FALSE}
  123. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  124. {$endc}
  125. {$setc TARGET_OS_EMBEDDED := FALSE}
  126. {$elifc defined __arm__ and __arm__}
  127. {$setc TARGET_CPU_PPC := FALSE}
  128. {$setc TARGET_CPU_PPC64 := FALSE}
  129. {$setc TARGET_CPU_X86 := FALSE}
  130. {$setc TARGET_CPU_X86_64 := FALSE}
  131. {$setc TARGET_CPU_ARM := TRUE}
  132. {$setc TARGET_CPU_ARM64 := FALSE}
  133. { will require compiler define when/if other Apple devices with ARM cpus ship }
  134. {$setc TARGET_OS_MAC := FALSE}
  135. {$setc TARGET_OS_IPHONE := TRUE}
  136. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  137. {$setc TARGET_OS_EMBEDDED := TRUE}
  138. {$elifc defined __arm64__ and __arm64__}
  139. {$setc TARGET_CPU_PPC := FALSE}
  140. {$setc TARGET_CPU_PPC64 := FALSE}
  141. {$setc TARGET_CPU_X86 := FALSE}
  142. {$setc TARGET_CPU_X86_64 := FALSE}
  143. {$setc TARGET_CPU_ARM := FALSE}
  144. {$setc TARGET_CPU_ARM64 := TRUE}
  145. { will require compiler define when/if other Apple devices with ARM cpus ship }
  146. {$setc TARGET_OS_MAC := FALSE}
  147. {$setc TARGET_OS_IPHONE := TRUE}
  148. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  149. {$setc TARGET_OS_EMBEDDED := TRUE}
  150. {$elsec}
  151. {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ nor __arm64__ is defined.}
  152. {$endc}
  153. {$ifc defined __LP64__ and __LP64__ }
  154. {$setc TARGET_CPU_64 := TRUE}
  155. {$elsec}
  156. {$setc TARGET_CPU_64 := FALSE}
  157. {$endc}
  158. {$ifc defined FPC_BIG_ENDIAN}
  159. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  160. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  161. {$elifc defined FPC_LITTLE_ENDIAN}
  162. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  163. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  164. {$elsec}
  165. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  166. {$endc}
  167. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  168. {$setc CALL_NOT_IN_CARBON := FALSE}
  169. {$setc OLDROUTINENAMES := FALSE}
  170. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  171. {$setc OPAQUE_UPP_TYPES := TRUE}
  172. {$setc OTCARBONAPPLICATION := TRUE}
  173. {$setc OTKERNEL := FALSE}
  174. {$setc PM_USE_SESSION_APIS := TRUE}
  175. {$setc TARGET_API_MAC_CARBON := TRUE}
  176. {$setc TARGET_API_MAC_OS8 := FALSE}
  177. {$setc TARGET_API_MAC_OSX := TRUE}
  178. {$setc TARGET_CARBON := TRUE}
  179. {$setc TARGET_CPU_68K := FALSE}
  180. {$setc TARGET_CPU_MIPS := FALSE}
  181. {$setc TARGET_CPU_SPARC := FALSE}
  182. {$setc TARGET_OS_UNIX := FALSE}
  183. {$setc TARGET_OS_WIN32 := FALSE}
  184. {$setc TARGET_RT_MAC_68881 := FALSE}
  185. {$setc TARGET_RT_MAC_CFM := FALSE}
  186. {$setc TARGET_RT_MAC_MACHO := TRUE}
  187. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  188. {$setc TYPE_BOOL := FALSE}
  189. {$setc TYPE_EXTENDED := FALSE}
  190. {$setc TYPE_LONGLONG := TRUE}
  191. uses MacTypes,MixedMode,TextCommon,Script;
  192. {$endc} {not MACOSALLINCLUDE}
  193. {$ifc TARGET_OS_MAC}
  194. {$ALIGN POWER}
  195. {
  196. Here are the current System 7 routine names and the translations to the older forms.
  197. Please use the newer forms in all new code and migrate the older names out of existing
  198. code as maintenance permits.
  199. NEW NAME OLD NAME OBSOLETE FORM (no handle)
  200. CompareString (Str255) IUCompPString (hp only) IUCompString (hp only)
  201. CompareText (ptr/len) IUMagPString IUMagString
  202. IdenticalString (Str255) IUEqualPString (hp only) IUEqualString (hp only)
  203. IdenticalText (ptr/len) IUMagIDPString IUMagIDString
  204. LanguageOrder IULangOrder
  205. ScriptOrder IUScriptOrder
  206. StringOrder (Str255) IUStringOrder (hp only)
  207. TextOrder (ptr/len) IUTextOrder
  208. RelString
  209. CmpString (a only)
  210. EqualString (hp only)
  211. ReplaceText
  212. Carbon only supports the new names. The old names are undefined for Carbon targets.
  213. InterfaceLib always has exported the old names. For C macros have been defined to allow
  214. the use of the new names. For Pascal and Assembly using the new names will result
  215. in link errors.
  216. }
  217. const
  218. { Special language code values for Language Order}
  219. systemCurLang = -2; { current (itlbLang) lang for system script}
  220. systemDefLang = -3; { default (table) lang for system script}
  221. currentCurLang = -4; { current (itlbLang) lang for current script}
  222. currentDefLang = -5; { default lang for current script}
  223. scriptCurLang = -6; { current (itlbLang) lang for specified script}
  224. scriptDefLang = -7; { default language for a specified script}
  225. { obsolete names}
  226. const
  227. iuSystemCurLang = systemCurLang;
  228. iuSystemDefLang = systemDefLang;
  229. iuCurrentCurLang = currentCurLang;
  230. iuCurrentDefLang = currentDefLang;
  231. iuScriptCurLang = scriptCurLang;
  232. iuScriptDefLang = scriptDefLang;
  233. {
  234. * These routines are available in Carbon with the new names.
  235. }
  236. {$ifc not TARGET_CPU_64}
  237. {
  238. * [Mac]ReplaceText() *** DEPRECATED ***
  239. *
  240. * Deprecated:
  241. * use CFStringReplace instead.
  242. *
  243. * Discussion:
  244. * This function is no longer recommended. Please use
  245. * CFStringReplace instead.
  246. *
  247. * Availability:
  248. * Mac OS X: in version 10.0 and later in CoreServices.framework [32-bit only] but deprecated in 10.4
  249. * CarbonLib: in CarbonLib 1.0 and later
  250. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  251. }
  252. function MacReplaceText( baseText: Handle; substitutionText: Handle; key: Str15 ): SInt16; external name '_MacReplaceText';
  253. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_4, __IPHONE_NA, __IPHONE_NA) *)
  254. {
  255. * ScriptOrder() *** DEPRECATED ***
  256. *
  257. * Deprecated:
  258. * use CFStringCompare or UCCompareText instead.
  259. *
  260. * Discussion:
  261. * This function is no longer recommended. Please use
  262. * CFStringCompare or UCCompareText instead.
  263. *
  264. * Availability:
  265. * Mac OS X: in version 10.0 and later in CoreServices.framework [32-bit only] but deprecated in 10.4
  266. * CarbonLib: in CarbonLib 1.0 and later
  267. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  268. }
  269. function ScriptOrder( script1: ScriptCode; script2: ScriptCode ): SInt16; external name '_ScriptOrder';
  270. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_4, __IPHONE_NA, __IPHONE_NA) *)
  271. {
  272. * [Mac]CompareString() *** DEPRECATED ***
  273. *
  274. * Deprecated:
  275. * use CFStringCompare or UCCompareText instead.
  276. *
  277. * Discussion:
  278. * This function is no longer recommended. Please use
  279. * CFStringCompare or UCCompareText instead.
  280. *
  281. * Availability:
  282. * Mac OS X: in version 10.0 and later in CoreServices.framework [32-bit only] but deprecated in 10.4
  283. * CarbonLib: in CarbonLib 1.0 and later
  284. * Non-Carbon CFM: not available
  285. }
  286. function MacCompareString( const (*var*) aStr: Str255; const (*var*) bStr: Str255; itl2Handle: Handle ): SInt16; external name '_MacCompareString';
  287. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_4, __IPHONE_NA, __IPHONE_NA) *)
  288. {
  289. * IdenticalString() *** DEPRECATED ***
  290. *
  291. * Deprecated:
  292. * use CFStringCompare instead.
  293. *
  294. * Discussion:
  295. * This function is no longer recommended. Please use
  296. * CFStringCompare instead.
  297. *
  298. * Availability:
  299. * Mac OS X: in version 10.0 and later in CoreServices.framework [32-bit only] but deprecated in 10.4
  300. * CarbonLib: in CarbonLib 1.0 and later
  301. * Non-Carbon CFM: not available
  302. }
  303. function IdenticalString( const (*var*) aStr: Str255; const (*var*) bStr: Str255; itl2Handle: Handle ): SInt16; external name '_IdenticalString';
  304. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_4, __IPHONE_NA, __IPHONE_NA) *)
  305. {
  306. * StringOrder() *** DEPRECATED ***
  307. *
  308. * Deprecated:
  309. * use CFStringCompare or UCCompareText instead.
  310. *
  311. * Discussion:
  312. * This function is no longer recommended. Please use
  313. * CFStringCompare or UCCompareText instead.
  314. *
  315. * Availability:
  316. * Mac OS X: in version 10.0 and later in CoreServices.framework [32-bit only] but deprecated in 10.4
  317. * CarbonLib: in CarbonLib 1.0 and later
  318. * Non-Carbon CFM: not available
  319. }
  320. function StringOrder( const (*var*) aStr: Str255; const (*var*) bStr: Str255; aScript: ScriptCode; bScript: ScriptCode; aLang: LangCode; bLang: LangCode ): SInt16; external name '_StringOrder';
  321. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_4, __IPHONE_NA, __IPHONE_NA) *)
  322. {
  323. * CompareText() *** DEPRECATED ***
  324. *
  325. * Deprecated:
  326. * use CFStringCompare or UCCompareText instead.
  327. *
  328. * Discussion:
  329. * This function is no longer recommended. Please use
  330. * CFStringCompare or UCCompareText instead.
  331. *
  332. * Availability:
  333. * Mac OS X: in version 10.0 and later in CoreServices.framework [32-bit only] but deprecated in 10.4
  334. * CarbonLib: in CarbonLib 1.0 and later
  335. * Non-Carbon CFM: not available
  336. }
  337. function CompareText( aPtr: {const} UnivPtr; bPtr: {const} UnivPtr; aLen: SInt16; bLen: SInt16; itl2Handle: Handle ): SInt16; external name '_CompareText';
  338. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_4, __IPHONE_NA, __IPHONE_NA) *)
  339. {
  340. * IdenticalText() *** DEPRECATED ***
  341. *
  342. * Deprecated:
  343. * use CFStringCompare instead.
  344. *
  345. * Discussion:
  346. * This function is no longer recommended. Please use
  347. * CFStringCompare instead.
  348. *
  349. * Availability:
  350. * Mac OS X: in version 10.0 and later in CoreServices.framework [32-bit only] but deprecated in 10.4
  351. * CarbonLib: in CarbonLib 1.0 and later
  352. * Non-Carbon CFM: not available
  353. }
  354. function IdenticalText( aPtr: {const} UnivPtr; bPtr: {const} UnivPtr; aLen: SInt16; bLen: SInt16; itl2Handle: Handle ): SInt16; external name '_IdenticalText';
  355. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_4, __IPHONE_NA, __IPHONE_NA) *)
  356. {
  357. * TextOrder() *** DEPRECATED ***
  358. *
  359. * Deprecated:
  360. * use CFStringCompare or UCCompareText instead.
  361. *
  362. * Discussion:
  363. * This function is no longer recommended. Please use
  364. * CFStringCompare or UCCompareText instead.
  365. *
  366. * Availability:
  367. * Mac OS X: in version 10.0 and later in CoreServices.framework [32-bit only] but deprecated in 10.4
  368. * CarbonLib: in CarbonLib 1.0 and later
  369. * Non-Carbon CFM: not available
  370. }
  371. function TextOrder( aPtr: {const} UnivPtr; bPtr: {const} UnivPtr; aLen: SInt16; bLen: SInt16; aScript: ScriptCode; bScript: ScriptCode; aLang: LangCode; bLang: LangCode ): SInt16; external name '_TextOrder';
  372. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_4, __IPHONE_NA, __IPHONE_NA) *)
  373. {
  374. * LanguageOrder() *** DEPRECATED ***
  375. *
  376. * Deprecated:
  377. * use CFStringCompare or UCCompareText instead.
  378. *
  379. * Discussion:
  380. * This function is no longer recommended. Please use
  381. * CFStringCompare or UCCompareText instead.
  382. *
  383. * Availability:
  384. * Mac OS X: in version 10.0 and later in CoreServices.framework [32-bit only] but deprecated in 10.4
  385. * CarbonLib: in CarbonLib 1.0 and later
  386. * Non-Carbon CFM: not available
  387. }
  388. function LanguageOrder( language1: LangCode; language2: LangCode ): SInt16; external name '_LanguageOrder';
  389. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_4, __IPHONE_NA, __IPHONE_NA) *)
  390. {
  391. * These routines are available in InterfaceLib with old names.
  392. * Macros are provided for C to allow source code use to the new names.
  393. }
  394. {$endc} {not TARGET_CPU_64}
  395. {
  396. * IUMagPString()
  397. *
  398. * Availability:
  399. * Mac OS X: not available
  400. * CarbonLib: not available
  401. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  402. }
  403. {
  404. * IUMagIDPString()
  405. *
  406. * Availability:
  407. * Mac OS X: not available
  408. * CarbonLib: not available
  409. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  410. }
  411. {
  412. * IUTextOrder()
  413. *
  414. * Availability:
  415. * Mac OS X: not available
  416. * CarbonLib: not available
  417. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  418. }
  419. {
  420. * IULangOrder()
  421. *
  422. * Availability:
  423. * Mac OS X: not available
  424. * CarbonLib: not available
  425. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  426. }
  427. {
  428. * IUScriptOrder()
  429. *
  430. * Availability:
  431. * Mac OS X: not available
  432. * CarbonLib: not available
  433. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  434. }
  435. {
  436. * IUMagString()
  437. *
  438. * Availability:
  439. * Mac OS X: not available
  440. * CarbonLib: not available
  441. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  442. }
  443. {
  444. * IUMagIDString()
  445. *
  446. * Availability:
  447. * Mac OS X: not available
  448. * CarbonLib: not available
  449. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  450. }
  451. {
  452. * IUCompPString()
  453. *
  454. * Availability:
  455. * Mac OS X: not available
  456. * CarbonLib: not available
  457. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  458. }
  459. {
  460. * IUEqualPString()
  461. *
  462. * Availability:
  463. * Mac OS X: not available
  464. * CarbonLib: not available
  465. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  466. }
  467. {
  468. * IUStringOrder()
  469. *
  470. * Availability:
  471. * Mac OS X: not available
  472. * CarbonLib: not available
  473. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  474. }
  475. {
  476. * IUCompString()
  477. *
  478. * Availability:
  479. * Mac OS X: not available
  480. * CarbonLib: not available
  481. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  482. }
  483. {
  484. * IUEqualString()
  485. *
  486. * Availability:
  487. * Mac OS X: not available
  488. * CarbonLib: not available
  489. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  490. }
  491. {
  492. * iucomppstring()
  493. *
  494. * Availability:
  495. * Mac OS X: not available
  496. * CarbonLib: not available
  497. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  498. }
  499. {
  500. * iuequalpstring()
  501. *
  502. * Availability:
  503. * Mac OS X: not available
  504. * CarbonLib: not available
  505. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  506. }
  507. {
  508. * iustringorder()
  509. *
  510. * Availability:
  511. * Mac OS X: not available
  512. * CarbonLib: not available
  513. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  514. }
  515. {
  516. * iucompstring()
  517. *
  518. * Availability:
  519. * Mac OS X: not available
  520. * CarbonLib: not available
  521. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  522. }
  523. {
  524. * iuequalstring()
  525. *
  526. * Availability:
  527. * Mac OS X: not available
  528. * CarbonLib: not available
  529. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  530. }
  531. {$ifc not TARGET_CPU_64}
  532. {
  533. * RelString() *** DEPRECATED ***
  534. *
  535. * Deprecated:
  536. * use CFStringCompare or UCCompareText instead.
  537. *
  538. * Discussion:
  539. * This function is no longer recommended. Please use
  540. * CFStringCompare or UCCompareText instead.
  541. *
  542. * Availability:
  543. * Mac OS X: in version 10.0 and later in CoreServices.framework [32-bit only] but deprecated in 10.4
  544. * CarbonLib: in CarbonLib 1.0 and later
  545. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  546. }
  547. function RelString( const (*var*) str1: Str255; const (*var*) str2: Str255; caseSensitive: Boolean; diacSensitive: Boolean ): SInt16; external name '_RelString';
  548. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_4, __IPHONE_NA, __IPHONE_NA) *)
  549. {
  550. * EqualString() *** DEPRECATED ***
  551. *
  552. * Deprecated:
  553. * use CFStringCompare instead.
  554. *
  555. * Discussion:
  556. * This function is no longer recommended. Please use
  557. * CFStringCompare instead.
  558. *
  559. * Availability:
  560. * Mac OS X: in version 10.0 and later in CoreServices.framework [32-bit only] but deprecated in 10.4
  561. * CarbonLib: in CarbonLib 1.0 and later
  562. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  563. }
  564. function EqualString( const (*var*) str1: Str255; const (*var*) str2: Str255; caseSensitive: Boolean; diacSensitive: Boolean ): Boolean; external name '_EqualString';
  565. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_4, __IPHONE_NA, __IPHONE_NA) *)
  566. {$endc} {not TARGET_CPU_64}
  567. {$ifc not TARGET_CPU_64}
  568. {
  569. * relstring() *** DEPRECATED ***
  570. *
  571. * Deprecated:
  572. * use CFStringCompare or UCCompareText instead.
  573. *
  574. * Discussion:
  575. * This function is no longer recommended. Please use
  576. * CFStringCompare or UCCompareText instead.
  577. *
  578. * Availability:
  579. * Mac OS X: in version 10.0 and later in CoreServices.framework [32-bit only] but deprecated in 10.4
  580. * CarbonLib: in CarbonLib 1.0 and later
  581. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  582. }
  583. (*
  584. no function overloading
  585. function relstring( str1: ConstCStringPtr; str2: ConstCStringPtr; caseSensitive: Boolean; diacSensitive: Boolean ): SInt16; external name '_relstring';
  586. *)
  587. // AVAILABLE_MAC_OS_X_VERSION_10_0_AND_LATER_BUT_DEPRECATED_IN_MAC_OS_X_VERSION_10_4;
  588. {
  589. * equalstring()
  590. *
  591. * Availability:
  592. * Mac OS X: not available [32-bit only]
  593. * CarbonLib: not available
  594. * Non-Carbon CFM: in InterfaceLib 7.1 and later
  595. }
  596. {$endc} {not TARGET_CPU_64}
  597. {$endc} {TARGET_OS_MAC}
  598. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  599. end.
  600. {$endc} {not MACOSALLINCLUDE}