@swiftbrowser/wasm-sdk-foundation 0.0.0-stage → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (368) hide show
  1. package/LICENSE.txt +1445 -0
  2. package/README.md +24 -2
  3. package/files.json +366 -0
  4. package/package.json +18 -4
  5. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/HTMLparser.h +320 -0
  6. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/HTMLtree.h +147 -0
  7. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/SAX.h +204 -0
  8. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/SAX2.h +173 -0
  9. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/c14n.h +128 -0
  10. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/catalog.h +182 -0
  11. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/chvalid.h +230 -0
  12. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/debugXML.h +217 -0
  13. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/dict.h +81 -0
  14. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/encoding.h +233 -0
  15. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/entities.h +151 -0
  16. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/globals.h +529 -0
  17. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/hash.h +236 -0
  18. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/list.h +137 -0
  19. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/nanoftp.h +186 -0
  20. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/nanohttp.h +81 -0
  21. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/parser.h +1265 -0
  22. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/parserInternals.h +662 -0
  23. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/pattern.h +100 -0
  24. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/relaxng.h +218 -0
  25. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/schemasInternals.h +958 -0
  26. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/schematron.h +142 -0
  27. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/threads.h +94 -0
  28. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/tree.h +1314 -0
  29. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/uri.h +94 -0
  30. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/valid.h +448 -0
  31. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xinclude.h +129 -0
  32. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xlink.h +189 -0
  33. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlIO.h +369 -0
  34. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlautomata.h +146 -0
  35. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlerror.h +919 -0
  36. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlexports.h +50 -0
  37. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlmemory.h +228 -0
  38. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlmodule.h +57 -0
  39. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlreader.h +428 -0
  40. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlregexp.h +222 -0
  41. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlsave.h +88 -0
  42. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlschemas.h +246 -0
  43. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlschemastypes.h +152 -0
  44. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlstring.h +140 -0
  45. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlunicode.h +202 -0
  46. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlversion.h +526 -0
  47. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlwriter.h +488 -0
  48. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xpath.h +575 -0
  49. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xpathInternals.h +632 -0
  50. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xpointer.h +137 -0
  51. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFArray.h +673 -0
  52. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFAttributedString.h +157 -0
  53. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFAttributedStringPriv.h +25 -0
  54. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFAvailability.h +236 -0
  55. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBag.h +97 -0
  56. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBase.h +702 -0
  57. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBigNumber.h +76 -0
  58. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBinaryHeap.h +294 -0
  59. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBitVector.h +49 -0
  60. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBundle.h +349 -0
  61. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBundlePriv.h +334 -0
  62. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBundle_BinaryTypes.h +61 -0
  63. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBurstTrie.h +181 -0
  64. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFByteOrder.h +305 -0
  65. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFCalendar.h +116 -0
  66. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFCalendarPriv.h +52 -0
  67. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFCharacterSet.h +387 -0
  68. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFCharacterSetPriv.h +78 -0
  69. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFConstantKeys.h +128 -0
  70. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFData.h +79 -0
  71. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDate.h +113 -0
  72. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDateComponents.h +92 -0
  73. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDateFormatter.h +193 -0
  74. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDateFormatter_Private.h +31 -0
  75. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDateInterval.h +62 -0
  76. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDateIntervalFormatter.h +96 -0
  77. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDictionary.h +674 -0
  78. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFError.h +183 -0
  79. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFError_Private.h +27 -0
  80. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFKnownLocations.h +42 -0
  81. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFListFormatter.h +32 -0
  82. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFLocale.h +204 -0
  83. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFLocale_Private.h +35 -0
  84. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFLocking.h +124 -0
  85. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFLogUtilities.h +52 -0
  86. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFMachPort.h +53 -0
  87. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFMessagePort.h +66 -0
  88. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFNotificationCenter.h +81 -0
  89. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFNumber.h +129 -0
  90. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFNumberFormatter.h +174 -0
  91. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFNumber_Private.h +30 -0
  92. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFOverflow.h +88 -0
  93. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFPlugIn.h +124 -0
  94. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFPlugInCOM.h +117 -0
  95. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFPreferences.h +130 -0
  96. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFPriv.h +721 -0
  97. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFPropertyList.h +151 -0
  98. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFPropertyList_Private.h +19 -0
  99. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFRegularExpression.h +68 -0
  100. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFRelativeDateTimeFormatter.h +61 -0
  101. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFRunArray.h +57 -0
  102. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFRunLoop.h +203 -0
  103. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFRuntime.h +281 -0
  104. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFSet.h +491 -0
  105. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFSocket.h +220 -0
  106. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStorage.h +296 -0
  107. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStream.h +505 -0
  108. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStreamAbstract.h +181 -0
  109. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStreamPriv.h +126 -0
  110. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFString.h +915 -0
  111. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStringDefaultEncoding.h +45 -0
  112. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStringEncodingConverter.h +82 -0
  113. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStringEncodingConverterExt.h +121 -0
  114. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStringEncodingConverterPriv.h +47 -0
  115. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStringEncodingDatabase.h +23 -0
  116. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStringEncodingExt.h +184 -0
  117. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFString_Private.h +32 -0
  118. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFTargetConditionals.h +284 -0
  119. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFTimeZone.h +98 -0
  120. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFTree.h +330 -0
  121. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFURL.h +1256 -0
  122. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFURLAccess.h +128 -0
  123. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFURLComponents.h +123 -0
  124. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFURLPriv.h +879 -0
  125. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFUUID.h +78 -0
  126. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFUniChar.h +244 -0
  127. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFUnicodeDecomposition.h +35 -0
  128. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFUnicodePrecomposition.h +23 -0
  129. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFUserNotification.h +185 -0
  130. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFUtilities.h +27 -0
  131. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h +105 -0
  132. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForFoundationOnly.h +816 -0
  133. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForSwiftFoundationOnly.h +689 -0
  134. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/module.modulemap +8 -0
  135. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/static-module.map +7 -0
  136. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/CFUniCharBitmapData.h +17 -0
  137. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/CFUniCharBitmapData.inc.h +14707 -0
  138. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/CFUniCharBitmapDataAccess.h +16 -0
  139. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/_CShimsMacros.h +24 -0
  140. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/_CShimsTargetConditionals.h +56 -0
  141. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/_CStdlib.h +169 -0
  142. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/_FoundationCShims.h +32 -0
  143. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/bplist_shims.h +19 -0
  144. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/filemanager_shims.h +156 -0
  145. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/io_shims.h +89 -0
  146. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/module.modulemap +5 -0
  147. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/platform_shims.h +112 -0
  148. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/string_shims.h +52 -0
  149. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/uuid.h +81 -0
  150. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/alphaindex.h +766 -0
  151. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/appendable.h +239 -0
  152. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/basictz.h +248 -0
  153. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/brkiter.h +694 -0
  154. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/bytestream.h +307 -0
  155. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/bytestrie.h +568 -0
  156. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/bytestriebuilder.h +193 -0
  157. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/calendar.h +2609 -0
  158. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/caniter.h +215 -0
  159. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/casemap.h +497 -0
  160. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/char16ptr.h +384 -0
  161. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/chariter.h +734 -0
  162. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/choicfmt.h +601 -0
  163. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/coleitr.h +411 -0
  164. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/coll.h +1387 -0
  165. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/compactdecimalformat.h +196 -0
  166. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/curramt.h +133 -0
  167. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/currpinf.h +274 -0
  168. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/currunit.h +146 -0
  169. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/datefmt.h +968 -0
  170. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dbbi.h +48 -0
  171. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dcfmtsym.h +636 -0
  172. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/decimfmt.h +2233 -0
  173. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/displayoptions.h +270 -0
  174. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/docmain.h +247 -0
  175. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dtfmtsym.h +1055 -0
  176. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dtintrv.h +163 -0
  177. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dtitvfmt.h +1231 -0
  178. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dtitvinf.h +524 -0
  179. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dtptngen.h +676 -0
  180. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dtrule.h +256 -0
  181. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/edits.h +531 -0
  182. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/enumset.h +69 -0
  183. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/errorcode.h +144 -0
  184. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/fieldpos.h +298 -0
  185. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/filteredbrk.h +152 -0
  186. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/fmtable.h +758 -0
  187. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/format.h +316 -0
  188. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/formattednumber.h +215 -0
  189. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/formattedvalue.h +318 -0
  190. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/fpositer.h +124 -0
  191. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/gender.h +122 -0
  192. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/gregocal.h +737 -0
  193. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/icudataver.h +43 -0
  194. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/icuplug.h +391 -0
  195. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/idna.h +333 -0
  196. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/listformatter.h +291 -0
  197. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/localebuilder.h +309 -0
  198. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/localematcher.h +710 -0
  199. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/localpointer.h +609 -0
  200. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/locdspnm.h +211 -0
  201. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/locid.h +1293 -0
  202. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/measfmt.h +501 -0
  203. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/measunit.h +3928 -0
  204. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/measure.h +174 -0
  205. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/messagepattern.h +950 -0
  206. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/module.modulemap +209 -0
  207. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/msgfmt.h +1117 -0
  208. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/normalizer2.h +791 -0
  209. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/normlzr.h +816 -0
  210. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/nounit.h +86 -0
  211. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/numberformatter.h +2862 -0
  212. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/numberrangeformatter.h +802 -0
  213. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/numfmt.h +1299 -0
  214. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/numsys.h +220 -0
  215. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/parseerr.h +94 -0
  216. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/parsepos.h +237 -0
  217. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/platform.h +874 -0
  218. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/plurfmt.h +601 -0
  219. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/plurrule.h +591 -0
  220. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ptypes.h +66 -0
  221. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/putil.h +183 -0
  222. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/rbbi.h +902 -0
  223. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/rbnf.h +1153 -0
  224. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/rbtz.h +373 -0
  225. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/regex.h +1882 -0
  226. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/region.h +229 -0
  227. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/reldatefmt.h +758 -0
  228. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/rep.h +266 -0
  229. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/resbund.h +489 -0
  230. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/schriter.h +187 -0
  231. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/scientificnumberformatter.h +222 -0
  232. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/search.h +580 -0
  233. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/selfmt.h +374 -0
  234. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/simpleformatter.h +414 -0
  235. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/simplenumberformatter.h +326 -0
  236. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/simpletz.h +940 -0
  237. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/smpdtfmt.h +1383 -0
  238. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/sortkey.h +344 -0
  239. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/std_string.h +41 -0
  240. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/strenum.h +281 -0
  241. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/stringoptions.h +190 -0
  242. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/stringpiece.h +354 -0
  243. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/stringtriebuilder.h +426 -0
  244. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/stsearch.h +509 -0
  245. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/symtable.h +119 -0
  246. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tblcoll.h +886 -0
  247. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/timezone.h +1067 -0
  248. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tmunit.h +142 -0
  249. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tmutamt.h +174 -0
  250. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tmutfmt.h +238 -0
  251. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/translit.h +1593 -0
  252. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tzfmt.h +1102 -0
  253. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tznames.h +419 -0
  254. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tzrule.h +820 -0
  255. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tztrans.h +201 -0
  256. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ualoc.h +372 -0
  257. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uameasureformat.h +487 -0
  258. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uameasureunit.h +249 -0
  259. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uatimeunitformat.h +377 -0
  260. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uatimezone.h +114 -0
  261. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ubidi.h +2368 -0
  262. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ubiditransform.h +326 -0
  263. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ubrk.h +684 -0
  264. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucal.h +1825 -0
  265. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucasemap.h +388 -0
  266. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucat.h +160 -0
  267. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uchar.h +4410 -0
  268. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucharstrie.h +623 -0
  269. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucharstriebuilder.h +193 -0
  270. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uchriter.h +393 -0
  271. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uclean.h +262 -0
  272. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucnv.h +2053 -0
  273. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucnv_cb.h +164 -0
  274. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucnv_err.h +465 -0
  275. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucnvsel.h +193 -0
  276. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucol.h +1649 -0
  277. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucoleitr.h +344 -0
  278. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uconfig.h +501 -0
  279. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucpmap.h +158 -0
  280. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucptrie.h +645 -0
  281. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucsdet.h +426 -0
  282. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucurr.h +466 -0
  283. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udat.h +1767 -0
  284. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udata.h +454 -0
  285. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udateintervalformat.h +458 -0
  286. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udatintv.h +146 -0
  287. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udatpg.h +806 -0
  288. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udisplaycontext.h +233 -0
  289. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udisplayoptions.h +321 -0
  290. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uenum.h +209 -0
  291. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ufieldpositer.h +123 -0
  292. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uformattable.h +290 -0
  293. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uformattednumber.h +224 -0
  294. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uformattedvalue.h +445 -0
  295. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ugender.h +86 -0
  296. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uidna.h +794 -0
  297. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uiter.h +709 -0
  298. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uldnames.h +307 -0
  299. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ulistformatter.h +333 -0
  300. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uloc.h +1437 -0
  301. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ulocale.h +226 -0
  302. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ulocbuilder.h +437 -0
  303. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ulocdata.h +299 -0
  304. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/umachine.h +491 -0
  305. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/umisc.h +62 -0
  306. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/umsg.h +628 -0
  307. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/umutablecptrie.h +240 -0
  308. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unifilt.h +136 -0
  309. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unifunct.h +132 -0
  310. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unimatch.h +168 -0
  311. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unirepl.h +103 -0
  312. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uniset.h +1909 -0
  313. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unistr.h +5095 -0
  314. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unorm.h +476 -0
  315. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unorm2.h +626 -0
  316. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unum.h +1524 -0
  317. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unumberformatter.h +576 -0
  318. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unumberoptions.h +173 -0
  319. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unumberrangeformatter.h +471 -0
  320. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unumsys.h +176 -0
  321. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uobject.h +324 -0
  322. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uplrule.h +82 -0
  323. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/upluralrules.h +263 -0
  324. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/urbtok.h +276 -0
  325. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uregex.h +1617 -0
  326. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uregion.h +252 -0
  327. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ureldatefmt.h +510 -0
  328. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/urename.h +4026 -0
  329. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/urep.h +157 -0
  330. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ures.h +912 -0
  331. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uscript.h +742 -0
  332. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/usearch.h +911 -0
  333. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uset.h +1898 -0
  334. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/usetiter.h +323 -0
  335. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ushape.h +476 -0
  336. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/usimplenumberformatter.h +297 -0
  337. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uspoof.h +1852 -0
  338. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/usprep.h +274 -0
  339. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ustdio.h +1021 -0
  340. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ustream.h +69 -0
  341. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ustring.h +1719 -0
  342. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ustringtrie.h +97 -0
  343. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utext.h +1613 -0
  344. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utf.h +225 -0
  345. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utf16.h +740 -0
  346. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utf32.h +25 -0
  347. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utf8.h +882 -0
  348. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utf_old.h +1207 -0
  349. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utmscale.h +490 -0
  350. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utrace.h +506 -0
  351. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utrans.h +660 -0
  352. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utypes.h +826 -0
  353. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uvernum.h +191 -0
  354. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uversion.h +230 -0
  355. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/vtzone.h +471 -0
  356. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Foundation.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  357. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/FoundationEssentials.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  358. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/FoundationInternationalization.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  359. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/FoundationXML.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  360. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_FoundationCollections.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  361. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libCoreFoundation.a +0 -0
  362. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundation.a +0 -0
  363. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundationEssentials.a +0 -0
  364. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundationInternationalization.a +0 -0
  365. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundationXML.a +0 -0
  366. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/lib_CFXMLInterface.a +0 -0
  367. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCShims.a +0 -0
  368. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCollections.a +0 -0
@@ -0,0 +1,915 @@
1
+ /* CFString.h
2
+ Copyright (c) 1998-2019, Apple Inc. and the Swift project authors
3
+
4
+ Portions Copyright (c) 2014-2019, Apple Inc. and the Swift project authors
5
+ Licensed under Apache License v2.0 with Runtime Library Exception
6
+ See http://swift.org/LICENSE.txt for license information
7
+ See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8
+ */
9
+
10
+ #if !defined(__COREFOUNDATION_CFSTRING__)
11
+ #define __COREFOUNDATION_CFSTRING__ 1
12
+
13
+ #include "CFTargetConditionals.h"
14
+
15
+ #include "CFBase.h"
16
+ #include "CFArray.h"
17
+ #include "CFData.h"
18
+ #include "CFDictionary.h"
19
+ #include "CFCharacterSet.h"
20
+ #include "CFLocale.h"
21
+ #include <stdarg.h>
22
+
23
+ CF_IMPLICIT_BRIDGING_ENABLED
24
+ CF_EXTERN_C_BEGIN
25
+
26
+ /*
27
+ Please note: CFStrings are conceptually an array of Unicode characters.
28
+ However, in general, how a CFString stores this array is an implementation
29
+ detail. For instance, CFString might choose to use an array of 8-bit characters
30
+ to store its contents, or it might use multiple blocks of memory, or whatever.
31
+ This is especially true since CFString is toll-free bridged with NSString, enabling
32
+ any NSString instance to be used as a CFString. Furthermore, the implementation
33
+ may change depending on the default system encoding, the user's language,
34
+ or even a release or update of the OS.
35
+
36
+ What this means is that you should use the following advanced functions with care:
37
+
38
+ CFStringGetPascalStringPtr()
39
+ CFStringGetCStringPtr()
40
+ CFStringGetCharactersPtr()
41
+
42
+ These functions are provided for optimization only. They will either return the desired
43
+ pointer quickly, in constant time, or they return NULL. They might choose to return NULL
44
+ for many reasons; for instance it's possible that for users running in different
45
+ languages these sometimes return NULL; or in a future OS release the first two might
46
+ switch to always returning NULL. Never observing NULL returns in your usages of these
47
+ functions does not mean they won't ever return NULL. In fact, this happened with the
48
+ introduction of tagged pointer strings in OS X 10.10, and a year later iOS 9.
49
+ (But please note the CFStringGetCharactersPtr() exception mentioned further below.)
50
+
51
+ In your usages of these functions, if you get a NULL return, use the non-Ptr version
52
+ of the functions as shown in this example:
53
+
54
+ char buffer[BUFSIZE];
55
+ const char *ptr = CFStringGetCStringPtr(str, encoding);
56
+ if (ptr == NULL) {
57
+ if (CFStringGetCString(str, buffer, BUFSIZE, encoding)) ptr = buffer;
58
+ }
59
+
60
+ Note that CFStringGetCString() or CFStringGetPascalString() calls might still fail --- but
61
+ that will happen in two circumstances only: The conversion from the UniChar contents of CFString
62
+ to the specified encoding fails, or the buffer is too small. If they fail, that means
63
+ the conversion was not possible.
64
+
65
+ If you need a copy of the buffer in the above example, you might consider simply calling
66
+ CFStringGetCString() in all cases --- CFStringGetCStringPtr() is simply an optimization.
67
+
68
+ In addition, the following functions, which create immutable CFStrings from developer
69
+ supplied buffers without copying the buffers, might have to actually copy
70
+ under certain circumstances (If they do copy, the buffer will be dealt with by the
71
+ "contentsDeallocator" argument.):
72
+
73
+ CFStringCreateWithPascalStringNoCopy()
74
+ CFStringCreateWithCStringNoCopy()
75
+ CFStringCreateWithCharactersNoCopy()
76
+
77
+ You should of course never depend on the backing store of these CFStrings being
78
+ what you provided, and in other no circumstance should you change the contents
79
+ of that buffer (given that would break the invariant about the CFString being immutable).
80
+
81
+ Having said all this, there are actually ways to create a CFString where the backing store
82
+ is external, and can be manipulated by the developer or CFString itself:
83
+
84
+ CFStringCreateMutableWithExternalCharactersNoCopy()
85
+ CFStringSetExternalCharactersNoCopy()
86
+
87
+ A "contentsAllocator" is used to realloc or free the backing store by CFString.
88
+ kCFAllocatorNull can be provided to assure CFString will never realloc or free the buffer.
89
+ Developer can call CFStringSetExternalCharactersNoCopy() to update
90
+ CFString's idea of what's going on, if the buffer is changed externally. In these
91
+ strings, CFStringGetCharactersPtr() is guaranteed to return the external buffer.
92
+
93
+ These functions are here to allow wrapping a buffer of UniChar characters in a CFString,
94
+ allowing the buffer to passed into CFString functions and also manipulated via CFString
95
+ mutation functions. In general, developers should not use this technique for all strings,
96
+ as it prevents CFString from using certain optimizations.
97
+ */
98
+
99
+ /* Identifier for character encoding; the values are the same as Text Encoding Converter TextEncoding.
100
+ */
101
+ typedef UInt32 CFStringEncoding;
102
+
103
+ /* Platform-independent built-in encodings; always available on all platforms.
104
+ Call CFStringGetSystemEncoding() to get the default system encoding.
105
+ */
106
+ #define kCFStringEncodingInvalidId (0xffffffffU)
107
+ typedef CF_ENUM(CFStringEncoding, CFStringBuiltInEncodings) {
108
+ kCFStringEncodingMacRoman = 0,
109
+ kCFStringEncodingWindowsLatin1 = 0x0500, /* ANSI codepage 1252 */
110
+ kCFStringEncodingISOLatin1 = 0x0201, /* ISO 8859-1 */
111
+ kCFStringEncodingNextStepLatin = 0x0B01, /* NextStep encoding*/
112
+ kCFStringEncodingASCII = 0x0600, /* 0..127 (in creating CFString, values greater than 0x7F are treated as corresponding Unicode value) */
113
+ kCFStringEncodingUnicode = 0x0100, /* kTextEncodingUnicodeDefault + kTextEncodingDefaultFormat (aka kUnicode16BitFormat) */
114
+ kCFStringEncodingUTF8 = 0x08000100, /* kTextEncodingUnicodeDefault + kUnicodeUTF8Format */
115
+ kCFStringEncodingNonLossyASCII = 0x0BFF, /* 7bit Unicode variants used by Cocoa & Java */
116
+
117
+ kCFStringEncodingUTF16 = 0x0100, /* kTextEncodingUnicodeDefault + kUnicodeUTF16Format (alias of kCFStringEncodingUnicode) */
118
+ kCFStringEncodingUTF16BE = 0x10000100, /* kTextEncodingUnicodeDefault + kUnicodeUTF16BEFormat */
119
+ kCFStringEncodingUTF16LE = 0x14000100, /* kTextEncodingUnicodeDefault + kUnicodeUTF16LEFormat */
120
+
121
+ kCFStringEncodingUTF32 = 0x0c000100, /* kTextEncodingUnicodeDefault + kUnicodeUTF32Format */
122
+ kCFStringEncodingUTF32BE = 0x18000100, /* kTextEncodingUnicodeDefault + kUnicodeUTF32BEFormat */
123
+ kCFStringEncodingUTF32LE = 0x1c000100 /* kTextEncodingUnicodeDefault + kUnicodeUTF32LEFormat */
124
+ };
125
+
126
+
127
+ /* CFString type ID */
128
+ CF_EXPORT
129
+ CFTypeID CFStringGetTypeID(void);
130
+
131
+ /* CFSTR() allows creation of compile-time constant CFStringRefs; the argument
132
+ should be a constant C-string.
133
+
134
+ CFSTR(), not being a "Copy" or "Create" function, does not return a new
135
+ reference for you. So, you should not release the return value. This is
136
+ much like constant C or Pascal strings --- when you use "hello world"
137
+ in a program, you do not free it.
138
+
139
+ However, strings returned from CFSTR() can be retained and released in a
140
+ properly nested fashion, just like any other CF type. That is, if you pass
141
+ a CFSTR() return value to a function such as SetMenuItemWithCFString(), the
142
+ function can retain it, then later, when it's done with it, it can release it.
143
+
144
+ Non-7 bit characters (that is, above 127) in CFSTR() are supported, although care must
145
+ be taken in dealing with files containing them. If you can trust your editor and tools
146
+ to deal with non-ASCII characters in the source code, then you can use them directly
147
+ in CFSTR(); otherwise, you can represent such characters with their escaped octal
148
+ equivalents in the encoding the compiler will use to interpret them (for instance,
149
+ O-umlaut is \303\226 in UTF-8). UTF-8 is the recommended encoding here,
150
+ since it is the default choice with Mac OS X developer tools.
151
+ */
152
+
153
+ #if DEPLOYMENT_RUNTIME_SWIFT
154
+ #if TARGET_OS_MAC
155
+ #define _CF_CONSTANT_STRING_SWIFT_CLASS $s15SwiftFoundation19_NSCFConstantStringCN
156
+ #else
157
+ #define _CF_CONSTANT_STRING_SWIFT_CLASS $s10Foundation19_NSCFConstantStringCN
158
+ #endif
159
+
160
+ CF_EXPORT void *_CF_CONSTANT_STRING_SWIFT_CLASS[];
161
+ #endif
162
+
163
+ #if DEPLOYMENT_RUNTIME_SWIFT
164
+
165
+ struct __CFConstStr {
166
+ struct {
167
+ __ptrauth_cf_objc_isa_pointer uintptr_t _cfisa;
168
+ uintptr_t _swift_rc;
169
+ uint64_t _cfinfoa;
170
+ } _base;
171
+ uint8_t *_ptr;
172
+ #if TARGET_RT_64_BIT && defined(__BIG_ENDIAN__)
173
+ uint64_t _length;
174
+ #else // 32-bit:
175
+ uint32_t _length;
176
+ #endif // TARGET_RT_64_BIT && defined(__BIG_ENDIAN__)
177
+ };
178
+
179
+ #if __BIG_ENDIAN__
180
+ #define CFSTR(cStr) ({ \
181
+ static struct __CFConstStr str = {{(uintptr_t)&_CF_CONSTANT_STRING_SWIFT_CLASS, _CF_CONSTANT_OBJECT_STRONG_RC, 0x00000000C8070000}, (uint8_t *)(cStr), sizeof(cStr) - 1}; \
182
+ (CFStringRef)&str; \
183
+ })
184
+ #else // Little endian:
185
+ #define CFSTR(cStr) ({ \
186
+ static struct __CFConstStr str = {{(uintptr_t)&_CF_CONSTANT_STRING_SWIFT_CLASS, _CF_CONSTANT_OBJECT_STRONG_RC, 0x07C8}, (uint8_t *)(cStr), sizeof(cStr) - 1}; \
187
+ (CFStringRef)&str; \
188
+ })
189
+ #endif // __BIG_ENDIAN__
190
+
191
+ #else
192
+
193
+ #ifdef __CONSTANT_CFSTRINGS__
194
+ #define CFSTR(cStr) ((CFStringRef) __builtin___CFStringMakeConstantString ("" cStr ""))
195
+ #else
196
+ #define CFSTR(cStr) __CFStringMakeConstantString("" cStr "")
197
+ #endif
198
+
199
+ #endif
200
+
201
+ #if defined(__GNUC__) && (__GNUC__*10+__GNUC_MINOR__ >= 42) && defined(__APPLE_CC__) && (__APPLE_CC__ > 1) && !defined(__INTEL_COMPILER) && TARGET_OS_MAC
202
+ #define CF_FORMAT_FUNCTION(F,A) __attribute__((format(CFString, F, A)))
203
+ #define CF_FORMAT_ARGUMENT(A) __attribute__((format_arg(A)))
204
+ #else
205
+ #define CF_FORMAT_FUNCTION(F,A)
206
+ #define CF_FORMAT_ARGUMENT(A)
207
+ #endif
208
+
209
+ /*** Immutable string creation functions ***/
210
+
211
+ /* Functions to create basic immutable strings. The provided allocator is used for all memory activity in these functions.
212
+ */
213
+
214
+ /* The following four functions copy the provided buffer into CFString's internal storage. */
215
+ CF_EXPORT
216
+ CFStringRef CFStringCreateWithPascalString(CFAllocatorRef alloc, ConstStr255Param pStr, CFStringEncoding encoding);
217
+
218
+ CF_EXPORT
219
+ CFStringRef CFStringCreateWithCString(CFAllocatorRef alloc, const char *cStr, CFStringEncoding encoding);
220
+
221
+ /* The following takes an explicit length, and allows you to specify whether the data is an external format --- that is, whether to pay attention to the BOM character (if any) and do byte swapping if necessary
222
+ */
223
+ CF_EXPORT
224
+ CFStringRef CFStringCreateWithBytes(CFAllocatorRef alloc, const UInt8 *bytes, CFIndex numBytes, CFStringEncoding encoding, Boolean isExternalRepresentation);
225
+
226
+ CF_EXPORT
227
+ CFStringRef CFStringCreateWithCharacters(CFAllocatorRef alloc, const UniChar *chars, CFIndex numChars);
228
+
229
+
230
+ /* These functions try not to copy the provided buffer. The buffer will be deallocated
231
+ with the provided contentsDeallocator when it's no longer needed; to not free
232
+ the buffer, specify kCFAllocatorNull here. As usual, NULL means default allocator.
233
+
234
+ NOTE: Do not count on these buffers as being used by the string;
235
+ in some cases the CFString might free the buffer and use something else
236
+ (for instance if it decides to always use Unicode encoding internally).
237
+
238
+ NOTE: If you are not transferring ownership of the buffer to the CFString
239
+ (for instance, you supplied contentsDeallocator = kCFAllocatorNull), it is your
240
+ responsibility to assure the buffer does not go away during the lifetime of the string.
241
+ If the string is retained or copied, its lifetime might extend in ways you cannot
242
+ predict. So, for strings created with buffers whose lifetimes you cannot
243
+ guarantee, you need to be extremely careful --- do not hand it out to any
244
+ APIs which might retain or copy the strings.
245
+ */
246
+ CF_EXPORT
247
+ CFStringRef CFStringCreateWithPascalStringNoCopy(CFAllocatorRef alloc, ConstStr255Param pStr, CFStringEncoding encoding, CFAllocatorRef contentsDeallocator);
248
+
249
+ CF_EXPORT
250
+ CFStringRef CFStringCreateWithCStringNoCopy(CFAllocatorRef alloc, const char *cStr, CFStringEncoding encoding, CFAllocatorRef contentsDeallocator);
251
+
252
+ /* The following takes an explicit length, and allows you to specify whether the data is an external format --- that is, whether to pay attention to the BOM character (if any) and do byte swapping if necessary
253
+ */
254
+ CF_EXPORT
255
+ CFStringRef CFStringCreateWithBytesNoCopy(CFAllocatorRef alloc, const UInt8 *bytes, CFIndex numBytes, CFStringEncoding encoding, Boolean isExternalRepresentation, CFAllocatorRef contentsDeallocator);
256
+
257
+ CF_EXPORT
258
+ CFStringRef CFStringCreateWithCharactersNoCopy(CFAllocatorRef alloc, const UniChar *chars, CFIndex numChars, CFAllocatorRef contentsDeallocator);
259
+
260
+ /* Create copies of part or all of the string.
261
+ */
262
+ CF_EXPORT
263
+ CFStringRef CFStringCreateWithSubstring(CFAllocatorRef alloc, CFStringRef str, CFRange range);
264
+
265
+ CF_EXPORT
266
+ CFStringRef CFStringCreateCopy(CFAllocatorRef alloc, CFStringRef theString);
267
+
268
+ /* These functions create a CFString from the provided printf-like format string and arguments.
269
+ */
270
+ CF_EXPORT
271
+ CFStringRef CFStringCreateWithFormat(CFAllocatorRef alloc, CFDictionaryRef formatOptions, CFStringRef format, ...) CF_FORMAT_FUNCTION(3,4);
272
+
273
+ CF_EXPORT
274
+ CFStringRef CFStringCreateWithFormatAndArguments(CFAllocatorRef alloc, CFDictionaryRef formatOptions, CFStringRef format, va_list arguments) CF_FORMAT_FUNCTION(3,0);
275
+
276
+ /* Functions to create mutable strings. "maxLength", if not 0, is a hard bound on the length of the string. If 0, there is no limit on the length.
277
+ */
278
+ CF_EXPORT
279
+ CFMutableStringRef CFStringCreateMutable(CFAllocatorRef alloc, CFIndex maxLength);
280
+
281
+ CF_EXPORT
282
+ CFMutableStringRef CFStringCreateMutableCopy(CFAllocatorRef alloc, CFIndex maxLength, CFStringRef theString);
283
+
284
+ /* This function creates a mutable string that has a developer supplied and directly editable backing store.
285
+ The string will be manipulated within the provided buffer (if any) until it outgrows capacity; then the
286
+ externalCharactersAllocator will be consulted for more memory. When the CFString is deallocated, the
287
+ buffer will be freed with the externalCharactersAllocator. If you provide kCFAllocatorNull here, and the buffer
288
+ needs to grow, then CFString will switch to using the default allocator. See comments at top of this file for more info.
289
+ */
290
+ CF_EXPORT
291
+ CFMutableStringRef CFStringCreateMutableWithExternalCharactersNoCopy(CFAllocatorRef alloc, UniChar *chars, CFIndex numChars, CFIndex capacity, CFAllocatorRef externalCharactersAllocator);
292
+
293
+ /*** Basic accessors for the contents ***/
294
+
295
+ /* Number of 16-bit Unicode characters in the string.
296
+ */
297
+ CF_EXPORT
298
+ CFIndex CFStringGetLength(CFStringRef theString);
299
+
300
+ /* Extracting the contents of the string. For obtaining multiple characters, calling
301
+ CFStringGetCharacters() is more efficient than multiple calls to CFStringGetCharacterAtIndex().
302
+ If the length of the string is not known (so you can't use a fixed size buffer for CFStringGetCharacters()),
303
+ another method is to use is CFStringGetCharacterFromInlineBuffer() (see further below).
304
+ */
305
+ CF_EXPORT
306
+ UniChar CFStringGetCharacterAtIndex(CFStringRef theString, CFIndex idx);
307
+
308
+ CF_EXPORT
309
+ void CFStringGetCharacters(CFStringRef theString, CFRange range, UniChar *buffer);
310
+
311
+
312
+ /*** Conversion to other encodings ***/
313
+
314
+ /* These two convert into the provided buffer; they return false if conversion isn't possible
315
+ (due to conversion error, or not enough space in the provided buffer).
316
+ These functions do zero-terminate or put the length byte; the provided bufferSize should include
317
+ space for this (so pass 256 for Str255). More sophisticated usages can go through CFStringGetBytes().
318
+ These functions are equivalent to calling CFStringGetBytes() with
319
+ the range of the string; lossByte = 0; and isExternalRepresentation = false;
320
+ if successful, they then insert the leading length or terminating zero, as desired.
321
+ */
322
+ CF_EXPORT
323
+ Boolean CFStringGetPascalString(CFStringRef theString, StringPtr buffer, CFIndex bufferSize, CFStringEncoding encoding);
324
+
325
+ CF_EXPORT
326
+ Boolean CFStringGetCString(CFStringRef theString, char *buffer, CFIndex bufferSize, CFStringEncoding encoding);
327
+
328
+ /* These functions attempt to return in O(1) time the desired format for the string.
329
+ Note that although this means a pointer to the internal structure is being returned,
330
+ this can't always be counted on. Please see note at the top of the file for more
331
+ details.
332
+ */
333
+ CF_EXPORT
334
+ ConstStringPtr CFStringGetPascalStringPtr(CFStringRef theString, CFStringEncoding encoding); /* May return NULL at any time; be prepared for NULL, if not now, in some other time or place. See discussion at top of this file. */
335
+
336
+ CF_EXPORT
337
+ const char *CFStringGetCStringPtr(CFStringRef theString, CFStringEncoding encoding); /* May return NULL at any time; be prepared for NULL, if not now, in some other time or place. See discussion at top of this file. */
338
+
339
+ CF_EXPORT
340
+ const UniChar *CFStringGetCharactersPtr(CFStringRef theString); /* May return NULL at any time; be prepared for NULL, if not now, in some other time or place. See discussion at top of this file. */
341
+
342
+ /* The primitive conversion routine; allows you to convert a string piece at a time
343
+ into a fixed size buffer. Returns number of characters converted.
344
+ Characters that cannot be converted to the specified encoding are represented
345
+ with the byte specified by lossByte; if lossByte is 0, then lossy conversion
346
+ is not allowed and conversion stops, returning partial results.
347
+ Pass buffer==NULL if you don't care about the converted string (but just the convertability,
348
+ or number of bytes required).
349
+ maxBufLength indicates the maximum number of bytes to generate. It is ignored when buffer==NULL.
350
+ Does not zero-terminate. If you want to create Pascal or C string, allow one extra byte at start or end.
351
+ Setting isExternalRepresentation causes any extra bytes that would allow
352
+ the data to be made persistent to be included; for instance, the Unicode BOM. Note that
353
+ CFString prepends UTF encoded data with the Unicode BOM <http://www.unicode.org/faq/utf_bom.html>
354
+ when generating external representation if the target encoding allows. It's important to note that
355
+ only UTF-8, UTF-16, and UTF-32 define the handling of the byte order mark character, and the "LE"
356
+ and "BE" variants of UTF-16 and UTF-32 don't.
357
+ */
358
+ CF_EXPORT
359
+ CFIndex CFStringGetBytes(CFStringRef theString, CFRange range, CFStringEncoding encoding, UInt8 lossByte, Boolean isExternalRepresentation, UInt8 *buffer, CFIndex maxBufLen, CFIndex *usedBufLen);
360
+
361
+ /* Convenience functions String <-> Data. These generate "external" formats, that is, formats that
362
+ can be written out to disk. For instance, if the encoding is Unicode,
363
+ CFStringCreateFromExternalRepresentation() pays attention to the BOM character (if any)
364
+ and does byte swapping if necessary. Similarly CFStringCreateExternalRepresentation() will
365
+ include a BOM character if appropriate. See CFStringGetBytes() for more on this and lossByte.
366
+ */
367
+ CF_EXPORT
368
+ CFStringRef CFStringCreateFromExternalRepresentation(CFAllocatorRef alloc, CFDataRef data, CFStringEncoding encoding); /* May return NULL on conversion error */
369
+
370
+ CF_EXPORT
371
+ CFDataRef CFStringCreateExternalRepresentation(CFAllocatorRef alloc, CFStringRef theString, CFStringEncoding encoding, UInt8 lossByte); /* May return NULL on conversion error */
372
+
373
+ /* Hints about the contents of a string
374
+ */
375
+ CF_EXPORT
376
+ CFStringEncoding CFStringGetSmallestEncoding(CFStringRef theString); /* Result in O(n) time max */
377
+
378
+ CF_EXPORT
379
+ CFStringEncoding CFStringGetFastestEncoding(CFStringRef theString); /* Result in O(1) time max */
380
+
381
+ /* General encoding info
382
+ */
383
+ CF_EXPORT
384
+ CFStringEncoding CFStringGetSystemEncoding(void); /* The default encoding for the system; untagged 8-bit characters are usually in this encoding */
385
+
386
+ CF_EXPORT
387
+ CFIndex CFStringGetMaximumSizeForEncoding(CFIndex length, CFStringEncoding encoding); /* Max bytes a string of specified length (in UniChars) will take up if encoded */
388
+
389
+
390
+ /*** FileSystem path conversion functions ***/
391
+
392
+ /* Extract the contents of the string as a NULL-terminated 8-bit string appropriate for passing to POSIX APIs (for example, normalized for HFS+). The string is zero-terminated. false will be returned if the conversion results don't fit into the buffer. Use CFStringGetMaximumSizeOfFileSystemRepresentation() if you want to make sure the buffer is of sufficient length.
393
+ */
394
+ CF_EXPORT
395
+ Boolean CFStringGetFileSystemRepresentation(CFStringRef string, char *buffer, CFIndex maxBufLen);
396
+
397
+ /* Get the upper bound on the number of bytes required to hold the file system representation for the string. This result is returned quickly as a very rough approximation, and could be much larger than the actual space required. The result includes space for the zero termination. If you are allocating a buffer for long-term keeping, it's recommended that you reallocate it smaller (to be the right size) after calling CFStringGetFileSystemRepresentation().
398
+ */
399
+ CF_EXPORT
400
+ CFIndex CFStringGetMaximumSizeOfFileSystemRepresentation(CFStringRef string);
401
+
402
+ /* Create a CFString from the specified zero-terminated POSIX file system representation. If the conversion fails (possible due to bytes in the buffer not being a valid sequence of bytes for the appropriate character encoding), NULL is returned.
403
+ */
404
+ CF_EXPORT
405
+ CFStringRef CFStringCreateWithFileSystemRepresentation(CFAllocatorRef alloc, const char *buffer);
406
+
407
+
408
+ /*** Comparison functions. ***/
409
+
410
+ /* Find and compare flags; these are OR'ed together and provided as CFStringCompareFlags in the various functions.
411
+ */
412
+ typedef CF_OPTIONS(CFOptionFlags, CFStringCompareFlags) {
413
+ kCFCompareCaseInsensitive = 1,
414
+ kCFCompareBackwards = 4, /* Starting from the end of the string */
415
+ kCFCompareAnchored = 8, /* Only at the specified starting point */
416
+ kCFCompareNonliteral = 16, /* If specified, loose equivalence is performed (o-umlaut == o, umlaut) */
417
+ kCFCompareLocalized = 32, /* User's default locale is used for the comparisons */
418
+ kCFCompareNumerically = 64, /* Numeric comparison is used; that is, Foo2.txt < Foo7.txt < Foo25.txt */
419
+ kCFCompareDiacriticInsensitive API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0)) = 128, /* If specified, ignores diacritics (o-umlaut == o) */
420
+ kCFCompareWidthInsensitive API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0)) = 256, /* If specified, ignores width differences ('a' == UFF41) */
421
+ kCFCompareForcedOrdering API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0)) = 512 /* If specified, comparisons are forced to return either kCFCompareLessThan or kCFCompareGreaterThan if the strings are equivalent but not strictly equal, for stability when sorting (e.g. "aaa" > "AAA" with kCFCompareCaseInsensitive specified) */
422
+ };
423
+
424
+ /* The main comparison routine; compares specified range of the first string to (the full range of) the second string.
425
+ locale == NULL indicates canonical locale (the return value from CFLocaleGetSystem()).
426
+ kCFCompareNumerically, added in 10.2, does not work if kCFCompareLocalized is specified on systems before 10.3
427
+ kCFCompareBackwards and kCFCompareAnchored are not applicable.
428
+ rangeToCompare applies to the first string; that is, only the substring of theString1 specified by rangeToCompare is compared against all of theString2.
429
+ */
430
+ CF_EXPORT
431
+ CFComparisonResult CFStringCompareWithOptionsAndLocale(CFStringRef theString1, CFStringRef theString2, CFRange rangeToCompare, CFStringCompareFlags compareOptions, CFLocaleRef locale) API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
432
+
433
+ /* Comparison convenience. Uses the current user locale (the return value from CFLocaleCopyCurrent()) if kCFCompareLocalized. Refer to CFStringCompareWithOptionsAndLocale() for more info.
434
+ */
435
+ CF_EXPORT
436
+ CFComparisonResult CFStringCompareWithOptions(CFStringRef theString1, CFStringRef theString2, CFRange rangeToCompare, CFStringCompareFlags compareOptions);
437
+
438
+ /* Comparison convenience suitable for passing as sorting functions.
439
+ kCFCompareNumerically, added in 10.2, does not work if kCFCompareLocalized is specified on systems before 10.3
440
+ kCFCompareBackwards and kCFCompareAnchored are not applicable.
441
+ */
442
+ CF_EXPORT
443
+ CFComparisonResult CFStringCompare(CFStringRef theString1, CFStringRef theString2, CFStringCompareFlags compareOptions);
444
+
445
+ /* CFStringFindWithOptionsAndLocale() returns the found range in the CFRange * argument; you can pass NULL for simple discovery check.
446
+ locale == NULL indicates canonical locale (the return value from CFLocaleGetSystem()).
447
+ If stringToFind is the empty string (zero length), nothing is found.
448
+ Ignores the kCFCompareNumerically option.
449
+ Only the substring of theString specified by rangeToSearch is searched for stringToFind.
450
+ */
451
+ CF_EXPORT
452
+ Boolean CFStringFindWithOptionsAndLocale(CFStringRef theString, CFStringRef stringToFind, CFRange rangeToSearch, CFStringCompareFlags searchOptions, CFLocaleRef locale, CFRange *result) API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
453
+
454
+ /* Find convenience. Uses the current user locale (the return value from CFLocaleCopyCurrent()) if kCFCompareLocalized. Refer to CFStringFindWithOptionsAndLocale() for more info.
455
+ */
456
+ CF_EXPORT
457
+ Boolean CFStringFindWithOptions(CFStringRef theString, CFStringRef stringToFind, CFRange rangeToSearch, CFStringCompareFlags searchOptions, CFRange *result);
458
+
459
+ /* CFStringCreateArrayWithFindResults() returns an array of CFRange pointers, or NULL if there are no matches.
460
+ Overlapping instances are not found; so looking for "AA" in "AAA" finds just one range.
461
+ Post 10.1: If kCFCompareBackwards is provided, the scan is done from the end (which can give a different result), and
462
+ the results are stored in the array backwards (last found range in slot 0).
463
+ If stringToFind is the empty string (zero length), nothing is found.
464
+ kCFCompareAnchored causes just the consecutive instances at start (or end, if kCFCompareBackwards) to be reported. So, searching for "AB" in "ABABXAB..." you just get the first two occurrences.
465
+ Ignores the kCFCompareNumerically option.
466
+ Only the substring of theString specified by rangeToSearch is searched for stringToFind.
467
+ */
468
+ CF_EXPORT
469
+ CFArrayRef CFStringCreateArrayWithFindResults(CFAllocatorRef alloc, CFStringRef theString, CFStringRef stringToFind, CFRange rangeToSearch, CFStringCompareFlags compareOptions);
470
+
471
+ /* Find conveniences; see comments above concerning empty string and options.
472
+ */
473
+ CF_EXPORT
474
+ CFRange CFStringFind(CFStringRef theString, CFStringRef stringToFind, CFStringCompareFlags compareOptions);
475
+
476
+ CF_EXPORT
477
+ Boolean CFStringHasPrefix(CFStringRef theString, CFStringRef prefix);
478
+
479
+ CF_EXPORT
480
+ Boolean CFStringHasSuffix(CFStringRef theString, CFStringRef suffix);
481
+
482
+ /*!
483
+ @function CFStringGetRangeOfComposedCharactersAtIndex
484
+ Returns the range of the composed character sequence at the specified index.
485
+ @param theString The CFString which is to be searched. If this
486
+ parameter is not a valid CFString, the behavior is
487
+ undefined.
488
+ @param theIndex The index of the character contained in the
489
+ composed character sequence. If the index is
490
+ outside the index space of the string (0 to N-1 inclusive,
491
+ where N is the length of the string), the behavior is
492
+ undefined.
493
+ @result The range of the composed character sequence.
494
+ */
495
+ CF_EXPORT CFRange CFStringGetRangeOfComposedCharactersAtIndex(CFStringRef theString, CFIndex theIndex);
496
+
497
+ /*!
498
+ @function CFStringFindCharacterFromSet
499
+ Query the range of the first character contained in the specified character set.
500
+ @param theString The CFString which is to be searched. If this
501
+ parameter is not a valid CFString, the behavior is
502
+ undefined.
503
+ @param theSet The CFCharacterSet against which the membership
504
+ of characters is checked. If this parameter is not a valid
505
+ CFCharacterSet, the behavior is undefined.
506
+ @param rangeToSearch The range of characters within the string to search. If
507
+ the range location or end point (defined by the location
508
+ plus length minus 1) are outside the index space of the
509
+ string (0 to N-1 inclusive, where N is the length of the
510
+ string), the behavior is undefined. If the range length is
511
+ negative, the behavior is undefined. The range may be empty
512
+ (length 0), in which case no search is performed.
513
+ @param searchOptions The bitwise-or'ed option flags to control
514
+ the search behavior. The supported options are
515
+ kCFCompareBackwards andkCFCompareAnchored.
516
+ If other option flags are specified, the behavior
517
+ is undefined.
518
+ @param result The pointer to a CFRange supplied by the caller in
519
+ which the search result is stored. Note that the length
520
+ of this range can be more than 1, if for instance the
521
+ result is a composed character. If a pointer to an invalid
522
+ memory is specified, the behavior is undefined.
523
+ @result true, if at least a character which is a member of the character
524
+ set is found and result is filled, otherwise, false.
525
+ */
526
+ CF_EXPORT Boolean CFStringFindCharacterFromSet(CFStringRef theString, CFCharacterSetRef theSet, CFRange rangeToSearch, CFStringCompareFlags searchOptions, CFRange *result);
527
+
528
+ /* Find range of bounds of the line(s) that span the indicated range (startIndex, numChars),
529
+ taking into account various possible line separator sequences (CR, CRLF, LF, and Unicode NextLine, LineSeparator, ParagraphSeparator).
530
+ All return values are "optional" (provide NULL if you don't want them)
531
+ lineBeginIndex: index of first character in line
532
+ lineEndIndex: index of first character of the next line (including terminating line separator characters)
533
+ contentsEndIndex: index of the first line separator character
534
+ Thus, lineEndIndex - lineBeginIndex is the number of chars in the line, including the line separators
535
+ contentsEndIndex - lineBeginIndex is the number of chars in the line w/out the line separators
536
+ */
537
+ CF_EXPORT
538
+ void CFStringGetLineBounds(CFStringRef theString, CFRange range, CFIndex *lineBeginIndex, CFIndex *lineEndIndex, CFIndex *contentsEndIndex);
539
+
540
+ /* Same as CFStringGetLineBounds(), however, will only look for paragraphs. Won't stop at Unicode NextLine or LineSeparator characters.
541
+ */
542
+ CF_EXPORT
543
+ void CFStringGetParagraphBounds(CFStringRef string, CFRange range, CFIndex *parBeginIndex, CFIndex *parEndIndex, CFIndex *contentsEndIndex) API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
544
+
545
+ /*!
546
+ @function CFStringGetHyphenationLocationBeforeIndex
547
+ Retrieve the first potential hyphenation location found before the specified location.
548
+ @param string The CFString which is to be hyphenated. If this
549
+ parameter is not a valid CFString, the behavior is
550
+ undefined.
551
+ @param location An index in the string. If a valid hyphen index is returned, it
552
+ will be before this index.
553
+ @param limitRange The range of characters within the string to search. If
554
+ the range location or end point (defined by the location
555
+ plus length minus 1) are outside the index space of the
556
+ string (0 to N-1 inclusive, where N is the length of the
557
+ string), the behavior is undefined. If the range length is
558
+ negative, the behavior is undefined. The range may be empty
559
+ (length 0), in which case no hyphen location is generated.
560
+ @param options Reserved for future use.
561
+ @param locale Specifies which language's hyphenation conventions to use.
562
+ This must be a valid locale. Hyphenation data is not available
563
+ for all locales. You can use CFStringIsHyphenationAvailableForLocale
564
+ to test for availability of hyphenation data.
565
+ @param character The suggested hyphen character to insert. Pass NULL if you
566
+ do not need this information.
567
+ @result an index in the string where it is appropriate to insert a hyphen, if
568
+ one exists; else kCFNotFound
569
+ */
570
+ CF_EXPORT
571
+ CFIndex CFStringGetHyphenationLocationBeforeIndex(CFStringRef string, CFIndex location, CFRange limitRange, CFOptionFlags options, CFLocaleRef locale, UTF32Char *character) API_AVAILABLE(macos(10.7), ios(4.2), watchos(2.0), tvos(9.0));
572
+
573
+ CF_EXPORT
574
+ Boolean CFStringIsHyphenationAvailableForLocale(CFLocaleRef locale) API_AVAILABLE(macos(10.7), ios(4.3), watchos(2.0), tvos(9.0));
575
+
576
+ /*** Exploding and joining strings with a separator string ***/
577
+
578
+ CF_EXPORT
579
+ CFStringRef CFStringCreateByCombiningStrings(CFAllocatorRef alloc, CFArrayRef theArray, CFStringRef separatorString); /* Empty array returns empty string; one element array returns the element */
580
+
581
+ CF_EXPORT
582
+ CFArrayRef CFStringCreateArrayBySeparatingStrings(CFAllocatorRef alloc, CFStringRef theString, CFStringRef separatorString); /* No separators in the string returns array with that string; string == sep returns two empty strings */
583
+
584
+
585
+ /*** Parsing non-localized numbers from strings ***/
586
+
587
+ CF_EXPORT
588
+ SInt32 CFStringGetIntValue(CFStringRef str); /* Skips whitespace; returns 0 on error, MAX or -MAX on overflow */
589
+
590
+ CF_EXPORT
591
+ double CFStringGetDoubleValue(CFStringRef str); /* Skips whitespace; returns 0.0 on error */
592
+
593
+
594
+ /*** MutableString functions ***/
595
+
596
+ /* CFStringAppend("abcdef", "xxxxx") -> "abcdefxxxxx"
597
+ CFStringDelete("abcdef", CFRangeMake(2, 3)) -> "abf"
598
+ CFStringReplace("abcdef", CFRangeMake(2, 3), "xxxxx") -> "abxxxxxf"
599
+ CFStringReplaceAll("abcdef", "xxxxx") -> "xxxxx"
600
+ */
601
+ CF_EXPORT
602
+ void CFStringAppend(CFMutableStringRef theString, CFStringRef appendedString);
603
+
604
+ CF_EXPORT
605
+ void CFStringAppendCharacters(CFMutableStringRef theString, const UniChar *chars, CFIndex numChars);
606
+
607
+ CF_EXPORT
608
+ void CFStringAppendPascalString(CFMutableStringRef theString, ConstStr255Param pStr, CFStringEncoding encoding);
609
+
610
+ CF_EXPORT
611
+ void CFStringAppendCString(CFMutableStringRef theString, const char *cStr, CFStringEncoding encoding);
612
+
613
+ CF_EXPORT
614
+ void CFStringAppendFormat(CFMutableStringRef theString, CFDictionaryRef formatOptions, CFStringRef format, ...) CF_FORMAT_FUNCTION(3,4);
615
+
616
+ CF_EXPORT
617
+ void CFStringAppendFormatAndArguments(CFMutableStringRef theString, CFDictionaryRef formatOptions, CFStringRef format, va_list arguments) CF_FORMAT_FUNCTION(3,0);
618
+
619
+ CF_EXPORT
620
+ void CFStringInsert(CFMutableStringRef str, CFIndex idx, CFStringRef insertedStr);
621
+
622
+ CF_EXPORT
623
+ void CFStringDelete(CFMutableStringRef theString, CFRange range);
624
+
625
+ CF_EXPORT
626
+ void CFStringReplace(CFMutableStringRef theString, CFRange range, CFStringRef replacement);
627
+
628
+ CF_EXPORT
629
+ void CFStringReplaceAll(CFMutableStringRef theString, CFStringRef replacement); /* Replaces whole string */
630
+
631
+ /* Replace all occurrences of target in rangeToSearch of theString with replacement.
632
+ Pays attention to kCFCompareCaseInsensitive, kCFCompareBackwards, kCFCompareNonliteral, and kCFCompareAnchored.
633
+ kCFCompareBackwards can be used to do the replacement starting from the end, which could give a different result.
634
+ ex. AAAAA, replace AA with B -> BBA or ABB; latter if kCFCompareBackwards
635
+ kCFCompareAnchored assures only anchored but multiple instances are found (the instances must be consecutive at start or end)
636
+ ex. AAXAA, replace A with B -> BBXBB or BBXAA; latter if kCFCompareAnchored
637
+ Returns number of replacements performed.
638
+ */
639
+ CF_EXPORT
640
+ CFIndex CFStringFindAndReplace(CFMutableStringRef theString, CFStringRef stringToFind, CFStringRef replacementString, CFRange rangeToSearch, CFStringCompareFlags compareOptions);
641
+
642
+
643
+ /* This function will make the contents of a mutable CFString point directly at the specified UniChar array.
644
+ It works only with CFStrings created with CFStringCreateMutableWithExternalCharactersNoCopy().
645
+ This function does not free the previous buffer.
646
+ The string will be manipulated within the provided buffer (if any) until it outgrows capacity; then the
647
+ externalCharactersAllocator will be consulted for more memory.
648
+ See comments at the top of this file for more info.
649
+ */
650
+ CF_EXPORT
651
+ void CFStringSetExternalCharactersNoCopy(CFMutableStringRef theString, UniChar *chars, CFIndex length, CFIndex capacity); /* Works only on specially created mutable strings! */
652
+
653
+ /* CFStringPad() will pad or cut down a string to the specified size.
654
+ The pad string is used as the fill string; indexIntoPad specifies which character to start with.
655
+ CFStringPad("abc", " ", 9, 0) -> "abc "
656
+ CFStringPad("abc", ". ", 9, 1) -> "abc . . ."
657
+ CFStringPad("abcdef", ?, 3, ?) -> "abc"
658
+
659
+ CFStringTrim() will trim the specified string from both ends of the string.
660
+ CFStringTrimWhitespace() will do the same with white space characters (tab, newline, etc)
661
+ CFStringTrim(" abc ", " ") -> "abc"
662
+ CFStringTrim("* * * *abc * ", "* ") -> "*abc "
663
+ */
664
+ CF_EXPORT
665
+ void CFStringPad(CFMutableStringRef theString, CFStringRef padString, CFIndex length, CFIndex indexIntoPad);
666
+
667
+ CF_EXPORT
668
+ void CFStringTrim(CFMutableStringRef theString, CFStringRef trimString);
669
+
670
+ CF_EXPORT
671
+ void CFStringTrimWhitespace(CFMutableStringRef theString);
672
+
673
+ CF_EXPORT
674
+ void CFStringLowercase(CFMutableStringRef theString, CFLocaleRef locale);
675
+
676
+ CF_EXPORT
677
+ void CFStringUppercase(CFMutableStringRef theString, CFLocaleRef locale);
678
+
679
+ CF_EXPORT
680
+ void CFStringCapitalize(CFMutableStringRef theString, CFLocaleRef locale);
681
+
682
+ /*!
683
+ @typedef CFStringNormalizationForm
684
+ This is the type of Unicode normalization forms as described in
685
+ Unicode Technical Report #15. To normalize for use with file
686
+ system calls, use CFStringGetFileSystemRepresentation().
687
+ */
688
+ typedef CF_ENUM(CFIndex, CFStringNormalizationForm) {
689
+ kCFStringNormalizationFormD = 0, // Canonical Decomposition
690
+ kCFStringNormalizationFormKD, // Compatibility Decomposition
691
+ kCFStringNormalizationFormC, // Canonical Decomposition followed by Canonical Composition
692
+ kCFStringNormalizationFormKC // Compatibility Decomposition followed by Canonical Composition
693
+ };
694
+
695
+ /*!
696
+ @function CFStringNormalize
697
+ Normalizes the string into the specified form as described in
698
+ Unicode Technical Report #15.
699
+ @param theString The string which is to be normalized. If this
700
+ parameter is not a valid mutable CFString, the behavior is
701
+ undefined.
702
+ @param theForm The form into which the string is to be normalized.
703
+ If this parameter is not a valid CFStringNormalizationForm value,
704
+ the behavior is undefined.
705
+ */
706
+ CF_EXPORT void CFStringNormalize(CFMutableStringRef theString, CFStringNormalizationForm theForm);
707
+
708
+
709
+ /*!
710
+ @function CFStringFold
711
+ Folds the string into the form specified by the flags.
712
+ Character foldings are operations that convert any of a set of characters
713
+ sharing similar semantics into a single representative from that set.
714
+ This function can be used to preprocess strings that are to be compared,
715
+ searched, or indexed.
716
+ Note that folding does not include normalization, so it is necessary
717
+ to use CFStringNormalize in addition to CFStringFold in order to obtain
718
+ the effect of kCFCompareNonliteral.
719
+ @param theString The string which is to be folded. If this parameter is not
720
+ a valid mutable CFString, the behavior is undefined.
721
+ @param theFlags The equivalency flags which describes the character folding form.
722
+ Only those flags containing the word "insensitive" are recognized here; other flags are ignored.
723
+ Folding with kCFCompareCaseInsensitive removes case distinctions in accordance with the mapping
724
+ specified by ftp://ftp.unicode.org/Public/UNIDATA/CaseFolding.txt. Folding with
725
+ kCFCompareDiacriticInsensitive removes distinctions of accents and other diacritics. Folding
726
+ with kCFCompareWidthInsensitive removes character width distinctions by mapping characters in
727
+ the range U+FF00-U+FFEF to their ordinary equivalents.
728
+ @param theLocale The locale tailoring the character folding behavior. If NULL,
729
+ it's considered to be the system locale returned from CFLocaleGetSystem().
730
+ If non-NULL and not a valid CFLocale object, the behavior is undefined.
731
+ */
732
+
733
+ CF_EXPORT
734
+ void CFStringFold(CFMutableStringRef theString, CFStringCompareFlags theFlags, CFLocaleRef theLocale) API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
735
+
736
+ /* Perform string transliteration. The transformation represented by transform is applied to the given range of string, modifying it in place. Only the specified range will be modified, but the transform may look at portions of the string outside that range for context. NULL range pointer causes the whole string to be transformed. On return, range is modified to reflect the new range corresponding to the original range. reverse indicates that the inverse transform should be used instead, if it exists. If the transform is successful, true is returned; if unsuccessful, false. Reasons for the transform being unsuccessful include an invalid transform identifier, or attempting to reverse an irreversible transform.
737
+
738
+ You can pass one of the predefined transforms below, or any valid ICU transform ID as defined in the ICU User Guide. Note that we do not support arbitrary set of ICU transform rules.
739
+ */
740
+ CF_EXPORT
741
+ Boolean CFStringTransform(CFMutableStringRef string, CFRange *range, CFStringRef transform, Boolean reverse);
742
+
743
+ /* Transform identifiers for CFStringTransform()
744
+ */
745
+ CF_EXPORT const CFStringRef kCFStringTransformStripCombiningMarks;
746
+ CF_EXPORT const CFStringRef kCFStringTransformToLatin;
747
+ CF_EXPORT const CFStringRef kCFStringTransformFullwidthHalfwidth;
748
+ CF_EXPORT const CFStringRef kCFStringTransformLatinKatakana;
749
+ CF_EXPORT const CFStringRef kCFStringTransformLatinHiragana;
750
+ CF_EXPORT const CFStringRef kCFStringTransformHiraganaKatakana;
751
+ CF_EXPORT const CFStringRef kCFStringTransformMandarinLatin;
752
+ CF_EXPORT const CFStringRef kCFStringTransformLatinHangul;
753
+ CF_EXPORT const CFStringRef kCFStringTransformLatinArabic;
754
+ CF_EXPORT const CFStringRef kCFStringTransformLatinHebrew;
755
+ CF_EXPORT const CFStringRef kCFStringTransformLatinThai;
756
+ CF_EXPORT const CFStringRef kCFStringTransformLatinCyrillic;
757
+ CF_EXPORT const CFStringRef kCFStringTransformLatinGreek;
758
+ CF_EXPORT const CFStringRef kCFStringTransformToXMLHex;
759
+ CF_EXPORT const CFStringRef kCFStringTransformToUnicodeName;
760
+ CF_EXPORT const CFStringRef kCFStringTransformStripDiacritics API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
761
+
762
+
763
+ /*** General encoding related functionality ***/
764
+
765
+ /* This returns availability of the encoding on the system
766
+ */
767
+ CF_EXPORT
768
+ Boolean CFStringIsEncodingAvailable(CFStringEncoding encoding);
769
+
770
+ /* This function returns list of available encodings. The returned list is terminated with kCFStringEncodingInvalidId and owned by the system.
771
+ */
772
+ CF_EXPORT
773
+ const CFStringEncoding *CFStringGetListOfAvailableEncodings(void);
774
+
775
+ /* Returns name of the encoding; non-localized.
776
+ */
777
+ CF_EXPORT
778
+ CFStringRef CFStringGetNameOfEncoding(CFStringEncoding encoding);
779
+
780
+ /* ID mapping functions from/to Cocoa NSStringEncoding. Returns kCFStringEncodingInvalidId if no mapping exists.
781
+ */
782
+ CF_EXPORT
783
+ unsigned long CFStringConvertEncodingToNSStringEncoding(CFStringEncoding encoding);
784
+
785
+ CF_EXPORT
786
+ CFStringEncoding CFStringConvertNSStringEncodingToEncoding(unsigned long encoding);
787
+
788
+ /* ID mapping functions from/to Microsoft Windows codepage (covers both OEM & ANSI). Returns kCFStringEncodingInvalidId if no mapping exists.
789
+ */
790
+ CF_EXPORT
791
+ UInt32 CFStringConvertEncodingToWindowsCodepage(CFStringEncoding encoding);
792
+
793
+ CF_EXPORT
794
+ CFStringEncoding CFStringConvertWindowsCodepageToEncoding(UInt32 codepage);
795
+
796
+ /* ID mapping functions from/to IANA registry charset names. Returns kCFStringEncodingInvalidId if no mapping exists.
797
+ */
798
+ CF_EXPORT
799
+ CFStringEncoding CFStringConvertIANACharSetNameToEncoding(CFStringRef theString);
800
+
801
+ CF_EXPORT
802
+ CFStringRef CFStringConvertEncodingToIANACharSetName(CFStringEncoding encoding);
803
+
804
+ /* Returns the most compatible MacOS script value for the input encoding */
805
+ /* i.e. kCFStringEncodingMacRoman -> kCFStringEncodingMacRoman */
806
+ /* kCFStringEncodingWindowsLatin1 -> kCFStringEncodingMacRoman */
807
+ /* kCFStringEncodingISO_2022_JP -> kCFStringEncodingMacJapanese */
808
+ CF_EXPORT
809
+ CFStringEncoding CFStringGetMostCompatibleMacStringEncoding(CFStringEncoding encoding);
810
+
811
+
812
+
813
+ /* The next two functions allow fast access to the contents of a string,
814
+ assuming you are doing sequential or localized accesses. To use, call
815
+ CFStringInitInlineBuffer() with a CFStringInlineBuffer (on the stack, say),
816
+ and a range in the string to look at. Then call CFStringGetCharacterFromInlineBuffer()
817
+ as many times as you want, with a index into that range (relative to the start
818
+ of that range). These are INLINE functions and will end up calling CFString only
819
+ once in a while, to fill a buffer. CFStringGetCharacterFromInlineBuffer() returns 0 if
820
+ a location outside the original range is specified.
821
+ */
822
+ #define __kCFStringInlineBufferLength 64
823
+ typedef struct {
824
+ UniChar buffer[__kCFStringInlineBufferLength];
825
+ CFStringRef theString;
826
+ const UniChar *directUniCharBuffer;
827
+ const char *directCStringBuffer;
828
+ CFRange rangeToBuffer; /* Range in string to buffer */
829
+ CFIndex bufferedRangeStart; /* Start of range currently buffered (relative to rangeToBuffer.location) */
830
+ CFIndex bufferedRangeEnd; /* bufferedRangeStart + number of chars actually buffered */
831
+ } CFStringInlineBuffer;
832
+
833
+ #if defined(CF_INLINE)
834
+ CF_INLINE void CFStringInitInlineBuffer(CFStringRef str, CFStringInlineBuffer *buf, CFRange range) {
835
+ buf->theString = str;
836
+ buf->rangeToBuffer = range;
837
+ buf->directCStringBuffer = (buf->directUniCharBuffer = CFStringGetCharactersPtr(str)) ? NULL : CFStringGetCStringPtr(str, kCFStringEncodingASCII);
838
+ buf->bufferedRangeStart = buf->bufferedRangeEnd = 0;
839
+ }
840
+
841
+ CF_INLINE UniChar CFStringGetCharacterFromInlineBuffer(CFStringInlineBuffer *buf, CFIndex idx) {
842
+ if (idx < 0 || idx >= buf->rangeToBuffer.length) return 0;
843
+ if (buf->directUniCharBuffer) return buf->directUniCharBuffer[idx + buf->rangeToBuffer.location];
844
+ if (buf->directCStringBuffer) return (UniChar)(buf->directCStringBuffer[idx + buf->rangeToBuffer.location]);
845
+ if (idx >= buf->bufferedRangeEnd || idx < buf->bufferedRangeStart) {
846
+ if ((buf->bufferedRangeStart = idx - 4) < 0) buf->bufferedRangeStart = 0;
847
+ buf->bufferedRangeEnd = buf->bufferedRangeStart + __kCFStringInlineBufferLength;
848
+ if (buf->bufferedRangeEnd > buf->rangeToBuffer.length) buf->bufferedRangeEnd = buf->rangeToBuffer.length;
849
+ CFStringGetCharacters(buf->theString, CFRangeMake(buf->rangeToBuffer.location + buf->bufferedRangeStart, buf->bufferedRangeEnd - buf->bufferedRangeStart), buf->buffer);
850
+ }
851
+ return buf->buffer[idx - buf->bufferedRangeStart];
852
+ }
853
+
854
+ #else
855
+ /* If INLINE functions are not available, we do somewhat less powerful macros that work similarly (except be aware that the buf argument is evaluated multiple times).
856
+ */
857
+ #define CFStringInitInlineBuffer(str, buf, range) \
858
+ do {(buf)->theString = str; (buf)->rangeToBuffer = range; (buf)->directCStringBuffer = ((buf)->directUniCharBuffer = CFStringGetCharactersPtr(str)) ? NULL : CFStringGetCStringPtr(str, kCFStringEncodingASCII);} while (0)
859
+
860
+ #define CFStringGetCharacterFromInlineBuffer(buf, idx) \
861
+ (((idx) < 0 || (idx) >= (buf)->rangeToBuffer.length) ? 0 : ((buf)->directUniCharBuffer ? (buf)->directUniCharBuffer[(idx) + (buf)->rangeToBuffer.location] : ((buf)->directCStringBuffer ? (UniChar)((buf)->directCStringBuffer[(idx) + (buf)->rangeToBuffer.location]) : CFStringGetCharacterAtIndex((buf)->theString, (idx) + (buf)->rangeToBuffer.location))))
862
+
863
+ #endif /* CF_INLINE */
864
+
865
+
866
+
867
+ /* UTF-16 surrogate support
868
+ */
869
+ CF_INLINE Boolean CFStringIsSurrogateHighCharacter(UniChar character) {
870
+ return ((character >= 0xD800UL) && (character <= 0xDBFFUL) ? true : false);
871
+ }
872
+
873
+ CF_INLINE Boolean CFStringIsSurrogateLowCharacter(UniChar character) {
874
+ return ((character >= 0xDC00UL) && (character <= 0xDFFFUL) ? true : false);
875
+ }
876
+
877
+ CF_INLINE UTF32Char CFStringGetLongCharacterForSurrogatePair(UniChar surrogateHigh, UniChar surrogateLow) {
878
+ return (UTF32Char)(((surrogateHigh - 0xD800UL) << 10) + (surrogateLow - 0xDC00UL) + 0x0010000UL);
879
+ }
880
+
881
+ // Maps a UTF-32 character to a pair of UTF-16 surrogate characters. The buffer pointed by surrogates has to have space for at least 2 UTF-16 characters. Returns true if mapped to a surrogate pair.
882
+ CF_INLINE Boolean CFStringGetSurrogatePairForLongCharacter(UTF32Char character, UniChar *surrogates) {
883
+ if ((character > 0xFFFFUL) && (character < 0x110000UL)) { // Non-BMP character
884
+ character -= 0x10000;
885
+ if (NULL != surrogates) {
886
+ surrogates[0] = (UniChar)((character >> 10) + 0xD800UL);
887
+ surrogates[1] = (UniChar)((character & 0x3FF) + 0xDC00UL);
888
+ }
889
+ return true;
890
+ } else {
891
+ if (NULL != surrogates) *surrogates = (UniChar)character;
892
+ return false;
893
+ }
894
+ }
895
+
896
+ /* Rest of the stuff in this file is private and should not be used directly
897
+ */
898
+ /* For debugging only; output goes to stderr
899
+ Use CFShow() to printf the description of any CFType;
900
+ Use CFShowStr() to printf detailed info about a CFString
901
+ */
902
+ CF_EXPORT
903
+ void CFShow(CFTypeRef obj);
904
+
905
+ CF_EXPORT
906
+ void CFShowStr(CFStringRef str);
907
+
908
+ /* This function is private and should not be used directly */
909
+ CF_EXPORT
910
+ CFStringRef __CFStringMakeConstantString(const char *cStr) CF_FORMAT_ARGUMENT(1); /* Private; do not use */
911
+
912
+ CF_EXTERN_C_END
913
+ CF_IMPLICIT_BRIDGING_DISABLED
914
+
915
+ #endif /* ! __COREFOUNDATION_CFSTRING__ */