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

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,710 @@
1
+ // © 2019 and later: Unicode, Inc. and others.
2
+ // License & terms of use: http://www.unicode.org/copyright.html
3
+
4
+ // localematcher.h
5
+ // created: 2019may08 Markus W. Scherer
6
+
7
+ #ifndef __LOCALEMATCHER_H__
8
+ #define __LOCALEMATCHER_H__
9
+
10
+ #include <_foundation_unicode/utypes.h>
11
+
12
+ #if U_SHOW_CPLUSPLUS_API
13
+
14
+ #include <optional>
15
+
16
+ #include <_foundation_unicode/locid.h>
17
+ #include <_foundation_unicode/stringpiece.h>
18
+ #include <_foundation_unicode/uobject.h>
19
+
20
+ /**
21
+ * \file
22
+ * \brief C++ API: Locale matcher: User's desired locales vs. application's supported locales.
23
+ */
24
+
25
+ /**
26
+ * Builder option for whether the language subtag or the script subtag is most important.
27
+ *
28
+ * @see LocaleMatcher::Builder#setFavorSubtag(ULocMatchFavorSubtag)
29
+ * @stable ICU 65
30
+ */
31
+ enum ULocMatchFavorSubtag {
32
+ /**
33
+ * Language differences are most important, then script differences, then region differences.
34
+ * (This is the default behavior.)
35
+ *
36
+ * @stable ICU 65
37
+ */
38
+ ULOCMATCH_FAVOR_LANGUAGE,
39
+ /**
40
+ * Makes script differences matter relatively more than language differences.
41
+ *
42
+ * @stable ICU 65
43
+ */
44
+ ULOCMATCH_FAVOR_SCRIPT
45
+ };
46
+ #ifndef U_IN_DOXYGEN
47
+ typedef enum ULocMatchFavorSubtag ULocMatchFavorSubtag;
48
+ #endif
49
+
50
+ /**
51
+ * Builder option for whether all desired locales are treated equally or
52
+ * earlier ones are preferred.
53
+ *
54
+ * @see LocaleMatcher::Builder#setDemotionPerDesiredLocale(ULocMatchDemotion)
55
+ * @stable ICU 65
56
+ */
57
+ enum ULocMatchDemotion {
58
+ /**
59
+ * All desired locales are treated equally.
60
+ *
61
+ * @stable ICU 65
62
+ */
63
+ ULOCMATCH_DEMOTION_NONE,
64
+ /**
65
+ * Earlier desired locales are preferred.
66
+ *
67
+ * <p>From each desired locale to the next,
68
+ * the distance to any supported locale is increased by an additional amount
69
+ * which is at least as large as most region mismatches.
70
+ * A later desired locale has to have a better match with some supported locale
71
+ * due to more than merely having the same region subtag.
72
+ *
73
+ * <p>For example: <code>Supported={en, sv} desired=[en-GB, sv]</code>
74
+ * yields <code>Result(en-GB, en)</code> because
75
+ * with the demotion of sv its perfect match is no better than
76
+ * the region distance between the earlier desired locale en-GB and en=en-US.
77
+ *
78
+ * <p>Notes:
79
+ * <ul>
80
+ * <li>In some cases, language and/or script differences can be as small as
81
+ * the typical region difference. (Example: sr-Latn vs. sr-Cyrl)
82
+ * <li>It is possible for certain region differences to be larger than usual,
83
+ * and larger than the demotion.
84
+ * (As of CLDR 35 there is no such case, but
85
+ * this is possible in future versions of the data.)
86
+ * </ul>
87
+ *
88
+ * @stable ICU 65
89
+ */
90
+ ULOCMATCH_DEMOTION_REGION
91
+ };
92
+ #ifndef U_IN_DOXYGEN
93
+ typedef enum ULocMatchDemotion ULocMatchDemotion;
94
+ #endif
95
+
96
+ /**
97
+ * Builder option for whether to include or ignore one-way (fallback) match data.
98
+ * The LocaleMatcher uses CLDR languageMatch data which includes fallback (oneway=true) entries.
99
+ * Sometimes it is desirable to ignore those.
100
+ *
101
+ * <p>For example, consider a web application with the UI in a given language,
102
+ * with a link to another, related web app.
103
+ * The link should include the UI language, and the target server may also use
104
+ * the client’s Accept-Language header data.
105
+ * The target server has its own list of supported languages.
106
+ * One may want to favor UI language consistency, that is,
107
+ * if there is a decent match for the original UI language, we want to use it,
108
+ * but not if it is merely a fallback.
109
+ *
110
+ * @see LocaleMatcher::Builder#setDirection(ULocMatchDirection)
111
+ * @stable ICU 67
112
+ */
113
+ enum ULocMatchDirection {
114
+ /**
115
+ * Locale matching includes one-way matches such as Breton→French. (default)
116
+ *
117
+ * @stable ICU 67
118
+ */
119
+ ULOCMATCH_DIRECTION_WITH_ONE_WAY,
120
+ /**
121
+ * Locale matching limited to two-way matches including e.g. Danish↔Norwegian
122
+ * but ignoring one-way matches.
123
+ *
124
+ * @stable ICU 67
125
+ */
126
+ ULOCMATCH_DIRECTION_ONLY_TWO_WAY
127
+ };
128
+ #ifndef U_IN_DOXYGEN
129
+ typedef enum ULocMatchDirection ULocMatchDirection;
130
+ #endif
131
+
132
+ struct UHashtable;
133
+
134
+ U_NAMESPACE_BEGIN
135
+
136
+ struct LSR;
137
+
138
+ class LikelySubtags;
139
+ class LocaleDistance;
140
+ class LocaleLsrIterator;
141
+ class UVector;
142
+
143
+ /**
144
+ * Immutable class that picks the best match between a user's desired locales and
145
+ * an application's supported locales.
146
+ * Movable but not copyable.
147
+ *
148
+ * <p>Example:
149
+ * <pre>
150
+ * UErrorCode errorCode = U_ZERO_ERROR;
151
+ * LocaleMatcher matcher = LocaleMatcher::Builder().setSupportedLocales("fr, en-GB, en").build(errorCode);
152
+ * Locale *bestSupported = matcher.getBestLocale(Locale.US, errorCode); // "en"
153
+ * </pre>
154
+ *
155
+ * <p>A matcher takes into account when languages are close to one another,
156
+ * such as Danish and Norwegian,
157
+ * and when regional variants are close, like en-GB and en-AU as opposed to en-US.
158
+ *
159
+ * <p>If there are multiple supported locales with the same (language, script, region)
160
+ * likely subtags, then the current implementation returns the first of those locales.
161
+ * It ignores variant subtags (except for pseudolocale variants) and extensions.
162
+ * This may change in future versions.
163
+ *
164
+ * <p>For example, the current implementation does not distinguish between
165
+ * de, de-DE, de-Latn, de-1901, de-u-co-phonebk.
166
+ *
167
+ * <p>If you prefer one equivalent locale over another, then provide only the preferred one,
168
+ * or place it earlier in the list of supported locales.
169
+ *
170
+ * <p>Otherwise, the order of supported locales may have no effect on the best-match results.
171
+ * The current implementation compares each desired locale with supported locales
172
+ * in the following order:
173
+ * 1. Default locale, if supported;
174
+ * 2. CLDR "paradigm locales" like en-GB and es-419;
175
+ * 3. other supported locales.
176
+ * This may change in future versions.
177
+ *
178
+ * <p>Often a product will just need one matcher instance, built with the languages
179
+ * that it supports. However, it may want multiple instances with different
180
+ * default languages based on additional information, such as the domain.
181
+ *
182
+ * <p>This class is not intended for public subclassing.
183
+ *
184
+ * @stable ICU 65
185
+ */
186
+ class U_COMMON_API LocaleMatcher : public UMemory {
187
+ public:
188
+ /**
189
+ * Data for the best-matching pair of a desired and a supported locale.
190
+ * Movable but not copyable.
191
+ *
192
+ * @stable ICU 65
193
+ */
194
+ class U_COMMON_API Result : public UMemory {
195
+ public:
196
+ /**
197
+ * Move constructor; might modify the source.
198
+ * This object will have the same contents that the source object had.
199
+ *
200
+ * @param src Result to move contents from.
201
+ * @stable ICU 65
202
+ */
203
+ Result(Result &&src) noexcept;
204
+
205
+ /**
206
+ * Destructor.
207
+ *
208
+ * @stable ICU 65
209
+ */
210
+ ~Result();
211
+
212
+ /**
213
+ * Move assignment; might modify the source.
214
+ * This object will have the same contents that the source object had.
215
+ *
216
+ * @param src Result to move contents from.
217
+ * @stable ICU 65
218
+ */
219
+ Result &operator=(Result &&src) noexcept;
220
+
221
+ /**
222
+ * Returns the best-matching desired locale.
223
+ * nullptr if the list of desired locales is empty or if none matched well enough.
224
+ *
225
+ * @return the best-matching desired locale, or nullptr.
226
+ * @stable ICU 65
227
+ */
228
+ inline const Locale *getDesiredLocale() const { return desiredLocale; }
229
+
230
+ /**
231
+ * Returns the best-matching supported locale.
232
+ * If none matched well enough, this is the default locale.
233
+ * The default locale is nullptr if Builder::setNoDefaultLocale() was called,
234
+ * or if the list of supported locales is empty and no explicit default locale is set.
235
+ *
236
+ * @return the best-matching supported locale, or nullptr.
237
+ * @stable ICU 65
238
+ */
239
+ inline const Locale *getSupportedLocale() const { return supportedLocale; }
240
+
241
+ /**
242
+ * Returns the index of the best-matching desired locale in the input Iterable order.
243
+ * -1 if the list of desired locales is empty or if none matched well enough.
244
+ *
245
+ * @return the index of the best-matching desired locale, or -1.
246
+ * @stable ICU 65
247
+ */
248
+ inline int32_t getDesiredIndex() const { return desiredIndex; }
249
+
250
+ /**
251
+ * Returns the index of the best-matching supported locale in the
252
+ * constructor’s or builder’s input order (“set” Collection plus “added” locales).
253
+ * If the matcher was built from a locale list string, then the iteration order is that
254
+ * of a LocalePriorityList built from the same string.
255
+ * -1 if the list of supported locales is empty or if none matched well enough.
256
+ *
257
+ * @return the index of the best-matching supported locale, or -1.
258
+ * @stable ICU 65
259
+ */
260
+ inline int32_t getSupportedIndex() const { return supportedIndex; }
261
+
262
+ /**
263
+ * Takes the best-matching supported locale and adds relevant fields of the
264
+ * best-matching desired locale, such as the -t- and -u- extensions.
265
+ * May replace some fields of the supported locale.
266
+ * The result is the locale that should be used for date and number formatting, collation, etc.
267
+ * Returns the root locale if getSupportedLocale() returns nullptr.
268
+ *
269
+ * <p>Example: desired=ar-SA-u-nu-latn, supported=ar-EG, resolved locale=ar-SA-u-nu-latn
270
+ *
271
+ * @return a locale combining the best-matching desired and supported locales.
272
+ * @stable ICU 65
273
+ */
274
+ Locale makeResolvedLocale(UErrorCode &errorCode) const;
275
+
276
+ private:
277
+ Result(const Locale *desired, const Locale *supported,
278
+ int32_t desIndex, int32_t suppIndex, UBool owned) :
279
+ desiredLocale(desired), supportedLocale(supported),
280
+ desiredIndex(desIndex), supportedIndex(suppIndex),
281
+ desiredIsOwned(owned) {}
282
+
283
+ Result(const Result &other) = delete;
284
+ Result &operator=(const Result &other) = delete;
285
+
286
+ const Locale *desiredLocale;
287
+ const Locale *supportedLocale;
288
+ int32_t desiredIndex;
289
+ int32_t supportedIndex;
290
+ UBool desiredIsOwned;
291
+
292
+ friend class LocaleMatcher;
293
+ };
294
+
295
+ /**
296
+ * LocaleMatcher builder.
297
+ * Movable but not copyable.
298
+ *
299
+ * @stable ICU 65
300
+ */
301
+ class U_COMMON_API Builder : public UMemory {
302
+ public:
303
+ /**
304
+ * Constructs a builder used in chaining parameters for building a LocaleMatcher.
305
+ *
306
+ * @return a new Builder object
307
+ * @stable ICU 65
308
+ */
309
+ Builder() {}
310
+
311
+ /**
312
+ * Move constructor; might modify the source.
313
+ * This builder will have the same contents that the source builder had.
314
+ *
315
+ * @param src Builder to move contents from.
316
+ * @stable ICU 65
317
+ */
318
+ Builder(Builder &&src) noexcept;
319
+
320
+ /**
321
+ * Destructor.
322
+ *
323
+ * @stable ICU 65
324
+ */
325
+ ~Builder();
326
+
327
+ /**
328
+ * Move assignment; might modify the source.
329
+ * This builder will have the same contents that the source builder had.
330
+ *
331
+ * @param src Builder to move contents from.
332
+ * @stable ICU 65
333
+ */
334
+ Builder &operator=(Builder &&src) noexcept;
335
+
336
+ /**
337
+ * Parses an Accept-Language string
338
+ * (<a href="https://tools.ietf.org/html/rfc2616#section-14.4">RFC 2616 Section 14.4</a>),
339
+ * such as "af, en, fr;q=0.9", and sets the supported locales accordingly.
340
+ * Allows whitespace in more places but does not allow "*".
341
+ * Clears any previously set/added supported locales first.
342
+ *
343
+ * @param locales the Accept-Language string of locales to set
344
+ * @return this Builder object
345
+ * @stable ICU 65
346
+ */
347
+ Builder &setSupportedLocalesFromListString(StringPiece locales);
348
+
349
+ /**
350
+ * Copies the supported locales, preserving iteration order.
351
+ * Clears any previously set/added supported locales first.
352
+ * Duplicates are allowed, and are not removed.
353
+ *
354
+ * @param locales the list of locale
355
+ * @return this Builder object
356
+ * @stable ICU 65
357
+ */
358
+ Builder &setSupportedLocales(Locale::Iterator &locales);
359
+
360
+ /**
361
+ * Copies the supported locales from the begin/end range, preserving iteration order.
362
+ * Clears any previously set/added supported locales first.
363
+ * Duplicates are allowed, and are not removed.
364
+ *
365
+ * Each of the iterator parameter values must be an
366
+ * input iterator whose value is convertible to const Locale &.
367
+ *
368
+ * @param begin Start of range.
369
+ * @param end Exclusive end of range.
370
+ * @return this Builder object
371
+ * @stable ICU 65
372
+ */
373
+ template<typename Iter>
374
+ Builder &setSupportedLocales(Iter begin, Iter end) {
375
+ if (U_FAILURE(errorCode_)) { return *this; }
376
+ clearSupportedLocales();
377
+ while (begin != end) {
378
+ addSupportedLocale(*begin++);
379
+ }
380
+ return *this;
381
+ }
382
+
383
+ /**
384
+ * Copies the supported locales from the begin/end range, preserving iteration order.
385
+ * Calls the converter to convert each *begin to a Locale or const Locale &.
386
+ * Clears any previously set/added supported locales first.
387
+ * Duplicates are allowed, and are not removed.
388
+ *
389
+ * Each of the iterator parameter values must be an
390
+ * input iterator whose value is convertible to const Locale &.
391
+ *
392
+ * @param begin Start of range.
393
+ * @param end Exclusive end of range.
394
+ * @param converter Converter from *begin to const Locale & or compatible.
395
+ * @return this Builder object
396
+ * @stable ICU 65
397
+ */
398
+ template<typename Iter, typename Conv>
399
+ Builder &setSupportedLocalesViaConverter(Iter begin, Iter end, Conv converter) {
400
+ if (U_FAILURE(errorCode_)) { return *this; }
401
+ clearSupportedLocales();
402
+ while (begin != end) {
403
+ addSupportedLocale(converter(*begin++));
404
+ }
405
+ return *this;
406
+ }
407
+
408
+ /**
409
+ * Adds another supported locale.
410
+ * Duplicates are allowed, and are not removed.
411
+ *
412
+ * @param locale another locale
413
+ * @return this Builder object
414
+ * @stable ICU 65
415
+ */
416
+ Builder &addSupportedLocale(const Locale &locale);
417
+
418
+ /**
419
+ * Sets no default locale.
420
+ * There will be no explicit or implicit default locale.
421
+ * If there is no good match, then the matcher will return nullptr for the
422
+ * best supported locale.
423
+ *
424
+ * @stable ICU 68
425
+ */
426
+ Builder &setNoDefaultLocale();
427
+
428
+ /**
429
+ * Sets the default locale; if nullptr, or if it is not set explicitly,
430
+ * then the first supported locale is used as the default locale.
431
+ * There is no default locale at all (nullptr will be returned instead)
432
+ * if setNoDefaultLocale() is called.
433
+ *
434
+ * @param defaultLocale the default locale (will be copied)
435
+ * @return this Builder object
436
+ * @stable ICU 65
437
+ */
438
+ Builder &setDefaultLocale(const Locale *defaultLocale);
439
+
440
+ /**
441
+ * If ULOCMATCH_FAVOR_SCRIPT, then the language differences are smaller than script
442
+ * differences.
443
+ * This is used in situations (such as maps) where
444
+ * it is better to fall back to the same script than a similar language.
445
+ *
446
+ * @param subtag the subtag to favor
447
+ * @return this Builder object
448
+ * @stable ICU 65
449
+ */
450
+ Builder &setFavorSubtag(ULocMatchFavorSubtag subtag);
451
+
452
+ /**
453
+ * Option for whether all desired locales are treated equally or
454
+ * earlier ones are preferred (this is the default).
455
+ *
456
+ * @param demotion the demotion per desired locale to set.
457
+ * @return this Builder object
458
+ * @stable ICU 65
459
+ */
460
+ Builder &setDemotionPerDesiredLocale(ULocMatchDemotion demotion);
461
+
462
+ /**
463
+ * Option for whether to include or ignore one-way (fallback) match data.
464
+ * By default, they are included.
465
+ *
466
+ * @param matchDirection the match direction to set.
467
+ * @return this Builder object
468
+ * @stable ICU 67
469
+ */
470
+ Builder &setDirection(ULocMatchDirection matchDirection) {
471
+ if (U_SUCCESS(errorCode_)) {
472
+ direction_ = matchDirection;
473
+ }
474
+ return *this;
475
+ }
476
+
477
+ /**
478
+ * Sets the maximum distance for an acceptable match.
479
+ * The matcher will return a match for a pair of locales only if
480
+ * they match at least as well as the pair given here.
481
+ *
482
+ * For example, setMaxDistance(en-US, en-GB) limits matches to ones where the
483
+ * (desired, support) locales have a distance no greater than a region subtag difference.
484
+ * This is much stricter than the CLDR default.
485
+ *
486
+ * The details of locale matching are subject to changes in
487
+ * CLDR data and in the algorithm.
488
+ * Specifying a maximum distance in relative terms via a sample pair of locales
489
+ * insulates from changes that affect all distance metrics similarly,
490
+ * but some changes will necessarily affect relative distances between
491
+ * different pairs of locales.
492
+ *
493
+ * @param desired the desired locale for distance comparison.
494
+ * @param supported the supported locale for distance comparison.
495
+ * @return this Builder object
496
+ * @stable ICU 68
497
+ */
498
+ Builder &setMaxDistance(const Locale &desired, const Locale &supported);
499
+
500
+ /**
501
+ * Sets the UErrorCode if an error occurred while setting parameters.
502
+ * Preserves older error codes in the outErrorCode.
503
+ *
504
+ * @param outErrorCode Set to an error code if it does not contain one already
505
+ * and an error occurred while setting parameters.
506
+ * Otherwise unchanged.
507
+ * @return true if U_FAILURE(outErrorCode)
508
+ * @stable ICU 65
509
+ */
510
+ UBool copyErrorTo(UErrorCode &outErrorCode) const;
511
+
512
+ /**
513
+ * Builds and returns a new locale matcher.
514
+ * This builder can continue to be used.
515
+ *
516
+ * @param errorCode ICU error code. Its input value must pass the U_SUCCESS() test,
517
+ * or else the function returns immediately. Check for U_FAILURE()
518
+ * on output or use with function chaining. (See User Guide for details.)
519
+ * @return LocaleMatcher
520
+ * @stable ICU 65
521
+ */
522
+ LocaleMatcher build(UErrorCode &errorCode) const;
523
+
524
+ private:
525
+ friend class LocaleMatcher;
526
+
527
+ Builder(const Builder &other) = delete;
528
+ Builder &operator=(const Builder &other) = delete;
529
+
530
+ void clearSupportedLocales();
531
+ bool ensureSupportedLocaleVector();
532
+
533
+ UErrorCode errorCode_ = U_ZERO_ERROR;
534
+ UVector *supportedLocales_ = nullptr;
535
+ int32_t thresholdDistance_ = -1;
536
+ ULocMatchDemotion demotion_ = ULOCMATCH_DEMOTION_REGION;
537
+ Locale *defaultLocale_ = nullptr;
538
+ bool withDefault_ = true;
539
+ ULocMatchFavorSubtag favor_ = ULOCMATCH_FAVOR_LANGUAGE;
540
+ ULocMatchDirection direction_ = ULOCMATCH_DIRECTION_WITH_ONE_WAY;
541
+ Locale *maxDistanceDesired_ = nullptr;
542
+ Locale *maxDistanceSupported_ = nullptr;
543
+ };
544
+
545
+ // FYI No public LocaleMatcher constructors in C++; use the Builder.
546
+
547
+ /**
548
+ * Move copy constructor; might modify the source.
549
+ * This matcher will have the same settings that the source matcher had.
550
+ * @param src source matcher
551
+ * @stable ICU 65
552
+ */
553
+ LocaleMatcher(LocaleMatcher &&src) noexcept;
554
+
555
+ /**
556
+ * Destructor.
557
+ * @stable ICU 65
558
+ */
559
+ ~LocaleMatcher();
560
+
561
+ /**
562
+ * Move assignment operator; might modify the source.
563
+ * This matcher will have the same settings that the source matcher had.
564
+ * The behavior is undefined if *this and src are the same object.
565
+ * @param src source matcher
566
+ * @return *this
567
+ * @stable ICU 65
568
+ */
569
+ LocaleMatcher &operator=(LocaleMatcher &&src) noexcept;
570
+
571
+ /**
572
+ * Returns the supported locale which best matches the desired locale.
573
+ *
574
+ * @param desiredLocale Typically a user's language.
575
+ * @param errorCode ICU error code. Its input value must pass the U_SUCCESS() test,
576
+ * or else the function returns immediately. Check for U_FAILURE()
577
+ * on output or use with function chaining. (See User Guide for details.)
578
+ * @return the best-matching supported locale.
579
+ * @stable ICU 65
580
+ */
581
+ const Locale *getBestMatch(const Locale &desiredLocale, UErrorCode &errorCode) const;
582
+
583
+ /**
584
+ * Returns the supported locale which best matches one of the desired locales.
585
+ *
586
+ * @param desiredLocales Typically a user's languages, in order of preference (descending).
587
+ * @param errorCode ICU error code. Its input value must pass the U_SUCCESS() test,
588
+ * or else the function returns immediately. Check for U_FAILURE()
589
+ * on output or use with function chaining. (See User Guide for details.)
590
+ * @return the best-matching supported locale.
591
+ * @stable ICU 65
592
+ */
593
+ const Locale *getBestMatch(Locale::Iterator &desiredLocales, UErrorCode &errorCode) const;
594
+
595
+ /**
596
+ * Parses an Accept-Language string
597
+ * (<a href="https://tools.ietf.org/html/rfc2616#section-14.4">RFC 2616 Section 14.4</a>),
598
+ * such as "af, en, fr;q=0.9",
599
+ * and returns the supported locale which best matches one of the desired locales.
600
+ * Allows whitespace in more places but does not allow "*".
601
+ *
602
+ * @param desiredLocaleList Typically a user's languages, as an Accept-Language string.
603
+ * @param errorCode ICU error code. Its input value must pass the U_SUCCESS() test,
604
+ * or else the function returns immediately. Check for U_FAILURE()
605
+ * on output or use with function chaining. (See User Guide for details.)
606
+ * @return the best-matching supported locale.
607
+ * @stable ICU 65
608
+ */
609
+ const Locale *getBestMatchForListString(StringPiece desiredLocaleList, UErrorCode &errorCode) const;
610
+
611
+ /**
612
+ * Returns the best match between the desired locale and the supported locales.
613
+ * If the result's desired locale is not nullptr, then it is the address of the input locale.
614
+ * It has not been cloned.
615
+ *
616
+ * @param desiredLocale Typically a user's language.
617
+ * @param errorCode ICU error code. Its input value must pass the U_SUCCESS() test,
618
+ * or else the function returns immediately. Check for U_FAILURE()
619
+ * on output or use with function chaining. (See User Guide for details.)
620
+ * @return the best-matching pair of the desired and a supported locale.
621
+ * @stable ICU 65
622
+ */
623
+ Result getBestMatchResult(const Locale &desiredLocale, UErrorCode &errorCode) const;
624
+
625
+ /**
626
+ * Returns the best match between the desired and supported locales.
627
+ * If the result's desired locale is not nullptr, then it is a clone of
628
+ * the best-matching desired locale. The Result object owns the clone.
629
+ *
630
+ * @param desiredLocales Typically a user's languages, in order of preference (descending).
631
+ * @param errorCode ICU error code. Its input value must pass the U_SUCCESS() test,
632
+ * or else the function returns immediately. Check for U_FAILURE()
633
+ * on output or use with function chaining. (See User Guide for details.)
634
+ * @return the best-matching pair of a desired and a supported locale.
635
+ * @stable ICU 65
636
+ */
637
+ Result getBestMatchResult(Locale::Iterator &desiredLocales, UErrorCode &errorCode) const;
638
+
639
+ /**
640
+ * Returns true if the pair of locales matches acceptably.
641
+ * This is influenced by Builder options such as setDirection(), setFavorSubtag(),
642
+ * and setMaxDistance().
643
+ *
644
+ * @param desired The desired locale.
645
+ * @param supported The supported locale.
646
+ * @param errorCode ICU error code. Its input value must pass the U_SUCCESS() test,
647
+ * or else the function returns immediately. Check for U_FAILURE()
648
+ * on output or use with function chaining. (See User Guide for details.)
649
+ * @return true if the pair of locales matches acceptably.
650
+ * @stable ICU 68
651
+ */
652
+ UBool isMatch(const Locale &desired, const Locale &supported, UErrorCode &errorCode) const;
653
+
654
+ #ifndef U_HIDE_INTERNAL_API
655
+ /**
656
+ * Returns a fraction between 0 and 1, where 1 means that the languages are a
657
+ * perfect match, and 0 means that they are completely different.
658
+ *
659
+ * <p>This is mostly an implementation detail, and the precise values may change over time.
660
+ * The implementation may use either the maximized forms or the others ones, or both.
661
+ * The implementation may or may not rely on the forms to be consistent with each other.
662
+ *
663
+ * <p>Callers should construct and use a matcher rather than match pairs of locales directly.
664
+ *
665
+ * @param desired Desired locale.
666
+ * @param supported Supported locale.
667
+ * @param errorCode ICU error code. Its input value must pass the U_SUCCESS() test,
668
+ * or else the function returns immediately. Check for U_FAILURE()
669
+ * on output or use with function chaining. (See User Guide for details.)
670
+ * @return value between 0 and 1, inclusive.
671
+ * @internal (has a known user)
672
+ */
673
+ double internalMatch(const Locale &desired, const Locale &supported, UErrorCode &errorCode) const;
674
+ #endif // U_HIDE_INTERNAL_API
675
+
676
+ private:
677
+ LocaleMatcher(const Builder &builder, UErrorCode &errorCode);
678
+ LocaleMatcher(const LocaleMatcher &other) = delete;
679
+ LocaleMatcher &operator=(const LocaleMatcher &other) = delete;
680
+
681
+ int32_t putIfAbsent(const LSR &lsr, int32_t i, int32_t suppLength, UErrorCode &errorCode);
682
+
683
+ std::optional<int32_t> getBestSuppIndex(LSR desiredLSR, LocaleLsrIterator *remainingIter, UErrorCode &errorCode) const;
684
+
685
+ const LikelySubtags &likelySubtags;
686
+ const LocaleDistance &localeDistance;
687
+ int32_t thresholdDistance;
688
+ int32_t demotionPerDesiredLocale;
689
+ ULocMatchFavorSubtag favorSubtag;
690
+ ULocMatchDirection direction;
691
+
692
+ // These are in input order.
693
+ const Locale ** supportedLocales;
694
+ LSR *lsrs;
695
+ int32_t supportedLocalesLength;
696
+ // These are in preference order: 1. Default locale 2. paradigm locales 3. others.
697
+ UHashtable *supportedLsrToIndex; // Map<LSR, Integer>
698
+ // Array versions of the supportedLsrToIndex keys and values.
699
+ // The distance lookup loops over the supportedLSRs and returns the index of the best match.
700
+ const LSR **supportedLSRs;
701
+ int32_t *supportedIndexes;
702
+ int32_t supportedLSRsLength;
703
+ Locale *ownedDefaultLocale;
704
+ const Locale *defaultLocale;
705
+ };
706
+
707
+ U_NAMESPACE_END
708
+
709
+ #endif // U_SHOW_CPLUSPLUS_API
710
+ #endif // __LOCALEMATCHER_H__