@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,802 @@
1
+ // © 2018 and later: Unicode, Inc. and others.
2
+ // License & terms of use: http://www.unicode.org/copyright.html
3
+
4
+ #ifndef __NUMBERRANGEFORMATTER_H__
5
+ #define __NUMBERRANGEFORMATTER_H__
6
+
7
+ #include <_foundation_unicode/utypes.h>
8
+
9
+ #if U_SHOW_CPLUSPLUS_API
10
+
11
+ #if !UCONFIG_NO_FORMATTING
12
+
13
+ #if U_HAVE_ATOMICS
14
+ #include <atomic>
15
+ #endif
16
+ #include <_foundation_unicode/appendable.h>
17
+ #include <_foundation_unicode/fieldpos.h>
18
+ #include <_foundation_unicode/formattedvalue.h>
19
+ #include <_foundation_unicode/fpositer.h>
20
+ #include <_foundation_unicode/numberformatter.h>
21
+ #include <_foundation_unicode/unumberrangeformatter.h>
22
+
23
+ /**
24
+ * \file
25
+ * \brief C++ API: Library for localized formatting of number, currency, and unit ranges.
26
+ *
27
+ * The main entrypoint to the formatting of ranges of numbers, including currencies and other units of measurement.
28
+ * <p>
29
+ * Usage example:
30
+ * <p>
31
+ * <pre>
32
+ * NumberRangeFormatter::with()
33
+ * .identityFallback(UNUM_IDENTITY_FALLBACK_APPROXIMATELY_OR_SINGLE_VALUE)
34
+ * .numberFormatterFirst(NumberFormatter::with().adoptUnit(MeasureUnit::createMeter()))
35
+ * .numberFormatterSecond(NumberFormatter::with().adoptUnit(MeasureUnit::createKilometer()))
36
+ * .locale("en-GB")
37
+ * .formatFormattableRange(750, 1.2, status)
38
+ * .toString(status);
39
+ * // => "750 m - 1.2 km"
40
+ * </pre>
41
+ * <p>
42
+ * Like NumberFormatter, NumberRangeFormatter instances (i.e., LocalizedNumberRangeFormatter
43
+ * and UnlocalizedNumberRangeFormatter) are immutable and thread-safe. This API is based on the
44
+ * <em>fluent</em> design pattern popularized by libraries such as Google's Guava.
45
+ *
46
+ * @author Shane Carr
47
+ */
48
+
49
+
50
+ U_NAMESPACE_BEGIN
51
+
52
+ // Forward declarations:
53
+ class PluralRules;
54
+
55
+ namespace number { // icu::number
56
+
57
+ // Forward declarations:
58
+ class UnlocalizedNumberRangeFormatter;
59
+ class LocalizedNumberRangeFormatter;
60
+ class FormattedNumberRange;
61
+
62
+ namespace impl {
63
+
64
+ // Forward declarations:
65
+ struct RangeMacroProps;
66
+ class DecimalQuantity;
67
+ class UFormattedNumberRangeData;
68
+ class NumberRangeFormatterImpl;
69
+ struct UFormattedNumberRangeImpl;
70
+
71
+ } // namespace impl
72
+
73
+ /**
74
+ * \cond
75
+ * Export an explicit template instantiation. See datefmt.h
76
+ * (When building DLLs for Windows this is required.)
77
+ */
78
+ #if U_PLATFORM == U_PF_WINDOWS && !defined(U_IN_DOXYGEN) && !defined(U_STATIC_IMPLEMENTATION)
79
+ } // namespace icu::number
80
+ U_NAMESPACE_END
81
+
82
+ #if U_HAVE_ATOMICS
83
+ template struct U_I18N_API std::atomic< U_NAMESPACE_QUALIFIER number::impl::NumberRangeFormatterImpl*>;
84
+ #endif
85
+
86
+ U_NAMESPACE_BEGIN
87
+ namespace number { // icu::number
88
+ #endif
89
+ /** \endcond */
90
+
91
+ // Other helper classes would go here, but there are none.
92
+
93
+ namespace impl { // icu::number::impl
94
+
95
+ // Do not enclose entire MacroProps with #ifndef U_HIDE_INTERNAL_API, needed for a protected field
96
+ /** @internal */
97
+ struct U_I18N_API RangeMacroProps : public UMemory {
98
+ /** @internal */
99
+ UnlocalizedNumberFormatter formatter1; // = NumberFormatter::with();
100
+
101
+ /** @internal */
102
+ UnlocalizedNumberFormatter formatter2; // = NumberFormatter::with();
103
+
104
+ /** @internal */
105
+ bool singleFormatter = true;
106
+
107
+ /** @internal */
108
+ UNumberRangeCollapse collapse = UNUM_RANGE_COLLAPSE_AUTO;
109
+
110
+ /** @internal */
111
+ UNumberRangeIdentityFallback identityFallback = UNUM_IDENTITY_FALLBACK_APPROXIMATELY;
112
+
113
+ /** @internal */
114
+ Locale locale;
115
+
116
+ // NOTE: Uses default copy and move constructors.
117
+
118
+ /**
119
+ * Check all members for errors.
120
+ * @internal
121
+ */
122
+ bool copyErrorTo(UErrorCode &status) const {
123
+ return formatter1.copyErrorTo(status) || formatter2.copyErrorTo(status);
124
+ }
125
+ };
126
+
127
+ } // namespace impl
128
+
129
+ /**
130
+ * An abstract base class for specifying settings related to number formatting. This class is implemented by
131
+ * {@link UnlocalizedNumberRangeFormatter} and {@link LocalizedNumberRangeFormatter}. This class is not intended for
132
+ * public subclassing.
133
+ */
134
+ template<typename Derived>
135
+ class U_I18N_API NumberRangeFormatterSettings {
136
+ public:
137
+ /**
138
+ * Sets the NumberFormatter instance to use for the numbers in the range. The same formatter is applied to both
139
+ * sides of the range.
140
+ * <p>
141
+ * The NumberFormatter instances must not have a locale applied yet; the locale specified on the
142
+ * NumberRangeFormatter will be used.
143
+ *
144
+ * @param formatter
145
+ * The formatter to use for both numbers in the range.
146
+ * @return The fluent chain.
147
+ * @stable ICU 63
148
+ */
149
+ Derived numberFormatterBoth(const UnlocalizedNumberFormatter &formatter) const &;
150
+
151
+ /**
152
+ * Overload of numberFormatterBoth() for use on an rvalue reference.
153
+ *
154
+ * @param formatter
155
+ * The formatter to use for both numbers in the range.
156
+ * @return The fluent chain.
157
+ * @see #numberFormatterBoth
158
+ * @stable ICU 63
159
+ */
160
+ Derived numberFormatterBoth(const UnlocalizedNumberFormatter &formatter) &&;
161
+
162
+ /**
163
+ * Overload of numberFormatterBoth() for use on an rvalue reference.
164
+ *
165
+ * @param formatter
166
+ * The formatter to use for both numbers in the range.
167
+ * @return The fluent chain.
168
+ * @see #numberFormatterBoth
169
+ * @stable ICU 63
170
+ */
171
+ Derived numberFormatterBoth(UnlocalizedNumberFormatter &&formatter) const &;
172
+
173
+ /**
174
+ * Overload of numberFormatterBoth() for use on an rvalue reference.
175
+ *
176
+ * @param formatter
177
+ * The formatter to use for both numbers in the range.
178
+ * @return The fluent chain.
179
+ * @see #numberFormatterBoth
180
+ * @stable ICU 63
181
+ */
182
+ Derived numberFormatterBoth(UnlocalizedNumberFormatter &&formatter) &&;
183
+
184
+ /**
185
+ * Sets the NumberFormatter instance to use for the first number in the range.
186
+ * <p>
187
+ * The NumberFormatter instances must not have a locale applied yet; the locale specified on the
188
+ * NumberRangeFormatter will be used.
189
+ *
190
+ * @param formatterFirst
191
+ * The formatter to use for the first number in the range.
192
+ * @return The fluent chain.
193
+ * @stable ICU 63
194
+ */
195
+ Derived numberFormatterFirst(const UnlocalizedNumberFormatter &formatterFirst) const &;
196
+
197
+ /**
198
+ * Overload of numberFormatterFirst() for use on an rvalue reference.
199
+ *
200
+ * @param formatterFirst
201
+ * The formatter to use for the first number in the range.
202
+ * @return The fluent chain.
203
+ * @see #numberFormatterFirst
204
+ * @stable ICU 63
205
+ */
206
+ Derived numberFormatterFirst(const UnlocalizedNumberFormatter &formatterFirst) &&;
207
+
208
+ /**
209
+ * Overload of numberFormatterFirst() for use on an rvalue reference.
210
+ *
211
+ * @param formatterFirst
212
+ * The formatter to use for the first number in the range.
213
+ * @return The fluent chain.
214
+ * @see #numberFormatterFirst
215
+ * @stable ICU 63
216
+ */
217
+ Derived numberFormatterFirst(UnlocalizedNumberFormatter &&formatterFirst) const &;
218
+
219
+ /**
220
+ * Overload of numberFormatterFirst() for use on an rvalue reference.
221
+ *
222
+ * @param formatterFirst
223
+ * The formatter to use for the first number in the range.
224
+ * @return The fluent chain.
225
+ * @see #numberFormatterFirst
226
+ * @stable ICU 63
227
+ */
228
+ Derived numberFormatterFirst(UnlocalizedNumberFormatter &&formatterFirst) &&;
229
+
230
+ /**
231
+ * Sets the NumberFormatter instance to use for the second number in the range.
232
+ * <p>
233
+ * The NumberFormatter instances must not have a locale applied yet; the locale specified on the
234
+ * NumberRangeFormatter will be used.
235
+ *
236
+ * @param formatterSecond
237
+ * The formatter to use for the second number in the range.
238
+ * @return The fluent chain.
239
+ * @stable ICU 63
240
+ */
241
+ Derived numberFormatterSecond(const UnlocalizedNumberFormatter &formatterSecond) const &;
242
+
243
+ /**
244
+ * Overload of numberFormatterSecond() for use on an rvalue reference.
245
+ *
246
+ * @param formatterSecond
247
+ * The formatter to use for the second number in the range.
248
+ * @return The fluent chain.
249
+ * @see #numberFormatterSecond
250
+ * @stable ICU 63
251
+ */
252
+ Derived numberFormatterSecond(const UnlocalizedNumberFormatter &formatterSecond) &&;
253
+
254
+ /**
255
+ * Overload of numberFormatterSecond() for use on an rvalue reference.
256
+ *
257
+ * @param formatterSecond
258
+ * The formatter to use for the second number in the range.
259
+ * @return The fluent chain.
260
+ * @see #numberFormatterSecond
261
+ * @stable ICU 63
262
+ */
263
+ Derived numberFormatterSecond(UnlocalizedNumberFormatter &&formatterSecond) const &;
264
+
265
+ /**
266
+ * Overload of numberFormatterSecond() for use on an rvalue reference.
267
+ *
268
+ * @param formatterSecond
269
+ * The formatter to use for the second number in the range.
270
+ * @return The fluent chain.
271
+ * @see #numberFormatterSecond
272
+ * @stable ICU 63
273
+ */
274
+ Derived numberFormatterSecond(UnlocalizedNumberFormatter &&formatterSecond) &&;
275
+
276
+ /**
277
+ * Sets the aggressiveness of "collapsing" fields across the range separator. Possible values:
278
+ * <p>
279
+ * <ul>
280
+ * <li>ALL: "3-5K miles"</li>
281
+ * <li>UNIT: "3K - 5K miles"</li>
282
+ * <li>NONE: "3K miles - 5K miles"</li>
283
+ * <li>AUTO: usually UNIT or NONE, depending on the locale and formatter settings</li>
284
+ * </ul>
285
+ * <p>
286
+ * The default value is AUTO.
287
+ *
288
+ * @param collapse
289
+ * The collapsing strategy to use for this range.
290
+ * @return The fluent chain.
291
+ * @stable ICU 63
292
+ */
293
+ Derived collapse(UNumberRangeCollapse collapse) const &;
294
+
295
+ /**
296
+ * Overload of collapse() for use on an rvalue reference.
297
+ *
298
+ * @param collapse
299
+ * The collapsing strategy to use for this range.
300
+ * @return The fluent chain.
301
+ * @see #collapse
302
+ * @stable ICU 63
303
+ */
304
+ Derived collapse(UNumberRangeCollapse collapse) &&;
305
+
306
+ /**
307
+ * Sets the behavior when the two sides of the range are the same. This could happen if the same two numbers are
308
+ * passed to the formatFormattableRange function, or if different numbers are passed to the function but they
309
+ * become the same after rounding rules are applied. Possible values:
310
+ * <p>
311
+ * <ul>
312
+ * <li>SINGLE_VALUE: "5 miles"</li>
313
+ * <li>APPROXIMATELY_OR_SINGLE_VALUE: "~5 miles" or "5 miles", depending on whether the number was the same before
314
+ * rounding was applied</li>
315
+ * <li>APPROXIMATELY: "~5 miles"</li>
316
+ * <li>RANGE: "5-5 miles" (with collapse=UNIT)</li>
317
+ * </ul>
318
+ * <p>
319
+ * The default value is APPROXIMATELY.
320
+ *
321
+ * @param identityFallback
322
+ * The strategy to use when formatting two numbers that end up being the same.
323
+ * @return The fluent chain.
324
+ * @stable ICU 63
325
+ */
326
+ Derived identityFallback(UNumberRangeIdentityFallback identityFallback) const &;
327
+
328
+ /**
329
+ * Overload of identityFallback() for use on an rvalue reference.
330
+ *
331
+ * @param identityFallback
332
+ * The strategy to use when formatting two numbers that end up being the same.
333
+ * @return The fluent chain.
334
+ * @see #identityFallback
335
+ * @stable ICU 63
336
+ */
337
+ Derived identityFallback(UNumberRangeIdentityFallback identityFallback) &&;
338
+
339
+ /**
340
+ * Returns the current (Un)LocalizedNumberRangeFormatter as a LocalPointer
341
+ * wrapping a heap-allocated copy of the current object.
342
+ *
343
+ * This is equivalent to new-ing the move constructor with a value object
344
+ * as the argument.
345
+ *
346
+ * @return A wrapped (Un)LocalizedNumberRangeFormatter pointer, or a wrapped
347
+ * nullptr on failure.
348
+ * @stable ICU 64
349
+ */
350
+ LocalPointer<Derived> clone() const &;
351
+
352
+ /**
353
+ * Overload of clone for use on an rvalue reference.
354
+ *
355
+ * @return A wrapped (Un)LocalizedNumberRangeFormatter pointer, or a wrapped
356
+ * nullptr on failure.
357
+ * @stable ICU 64
358
+ */
359
+ LocalPointer<Derived> clone() &&;
360
+
361
+ /**
362
+ * Sets the UErrorCode if an error occurred in the fluent chain.
363
+ * Preserves older error codes in the outErrorCode.
364
+ * @return true if U_FAILURE(outErrorCode)
365
+ * @stable ICU 63
366
+ */
367
+ UBool copyErrorTo(UErrorCode &outErrorCode) const {
368
+ if (U_FAILURE(outErrorCode)) {
369
+ // Do not overwrite the older error code
370
+ return true;
371
+ }
372
+ fMacros.copyErrorTo(outErrorCode);
373
+ return U_FAILURE(outErrorCode);
374
+ }
375
+
376
+ // NOTE: Uses default copy and move constructors.
377
+
378
+ private:
379
+ impl::RangeMacroProps fMacros;
380
+
381
+ // Don't construct me directly! Use (Un)LocalizedNumberFormatter.
382
+ NumberRangeFormatterSettings() = default;
383
+
384
+ friend class LocalizedNumberRangeFormatter;
385
+ friend class UnlocalizedNumberRangeFormatter;
386
+ };
387
+
388
+ // Explicit instantiations in source/i18n/numrange_fluent.cpp.
389
+ // (MSVC treats imports/exports of explicit instantiations differently.)
390
+ #ifndef _MSC_VER
391
+ extern template class NumberRangeFormatterSettings<UnlocalizedNumberRangeFormatter>;
392
+ extern template class NumberRangeFormatterSettings<LocalizedNumberRangeFormatter>;
393
+ #endif
394
+
395
+ /**
396
+ * A NumberRangeFormatter that does not yet have a locale. In order to format, a locale must be specified.
397
+ *
398
+ * Instances of this class are immutable and thread-safe.
399
+ *
400
+ * @see NumberRangeFormatter
401
+ * @stable ICU 63
402
+ */
403
+ class U_I18N_API UnlocalizedNumberRangeFormatter
404
+ : public NumberRangeFormatterSettings<UnlocalizedNumberRangeFormatter>, public UMemory {
405
+
406
+ public:
407
+ /**
408
+ * Associate the given locale with the number range formatter. The locale is used for picking the
409
+ * appropriate symbols, formats, and other data for number display.
410
+ *
411
+ * @param locale
412
+ * The locale to use when loading data for number formatting.
413
+ * @return The fluent chain.
414
+ * @stable ICU 63
415
+ */
416
+ LocalizedNumberRangeFormatter locale(const icu::Locale &locale) const &;
417
+
418
+ /**
419
+ * Overload of locale() for use on an rvalue reference.
420
+ *
421
+ * @param locale
422
+ * The locale to use when loading data for number formatting.
423
+ * @return The fluent chain.
424
+ * @see #locale
425
+ * @stable ICU 63
426
+ */
427
+ LocalizedNumberRangeFormatter locale(const icu::Locale &locale) &&;
428
+
429
+ /**
430
+ * Default constructor: puts the formatter into a valid but undefined state.
431
+ *
432
+ * @stable ICU 63
433
+ */
434
+ UnlocalizedNumberRangeFormatter() = default;
435
+
436
+ /**
437
+ * Returns a copy of this UnlocalizedNumberRangeFormatter.
438
+ * @stable ICU 63
439
+ */
440
+ UnlocalizedNumberRangeFormatter(const UnlocalizedNumberRangeFormatter &other);
441
+
442
+ /**
443
+ * Move constructor:
444
+ * The source UnlocalizedNumberRangeFormatter will be left in a valid but undefined state.
445
+ * @stable ICU 63
446
+ */
447
+ UnlocalizedNumberRangeFormatter(UnlocalizedNumberRangeFormatter&& src) noexcept;
448
+
449
+ /**
450
+ * Copy assignment operator.
451
+ * @stable ICU 63
452
+ */
453
+ UnlocalizedNumberRangeFormatter& operator=(const UnlocalizedNumberRangeFormatter& other);
454
+
455
+ /**
456
+ * Move assignment operator:
457
+ * The source UnlocalizedNumberRangeFormatter will be left in a valid but undefined state.
458
+ * @stable ICU 63
459
+ */
460
+ UnlocalizedNumberRangeFormatter& operator=(UnlocalizedNumberRangeFormatter&& src) noexcept;
461
+
462
+ private:
463
+ explicit UnlocalizedNumberRangeFormatter(
464
+ const NumberRangeFormatterSettings<UnlocalizedNumberRangeFormatter>& other);
465
+
466
+ explicit UnlocalizedNumberRangeFormatter(
467
+ NumberRangeFormatterSettings<UnlocalizedNumberRangeFormatter>&& src) noexcept;
468
+
469
+ explicit UnlocalizedNumberRangeFormatter(const impl::RangeMacroProps &macros);
470
+
471
+ explicit UnlocalizedNumberRangeFormatter(impl::RangeMacroProps &&macros);
472
+
473
+ // To give the fluent setters access to this class's constructor:
474
+ friend class NumberRangeFormatterSettings<UnlocalizedNumberRangeFormatter>;
475
+
476
+ // To give NumberRangeFormatter::with() access to this class's constructor:
477
+ friend class NumberRangeFormatter;
478
+
479
+ // To give LNRF::withoutLocale() access to this class's constructor:
480
+ friend class LocalizedNumberRangeFormatter;
481
+ };
482
+
483
+ /**
484
+ * A NumberRangeFormatter that has a locale associated with it; this means .formatRange() methods are available.
485
+ *
486
+ * Instances of this class are immutable and thread-safe.
487
+ *
488
+ * @see NumberFormatter
489
+ * @stable ICU 63
490
+ */
491
+ class U_I18N_API LocalizedNumberRangeFormatter
492
+ : public NumberRangeFormatterSettings<LocalizedNumberRangeFormatter>, public UMemory {
493
+ public:
494
+ /**
495
+ * Format the given Formattables to a string using the settings specified in the NumberRangeFormatter fluent setting
496
+ * chain.
497
+ *
498
+ * @param first
499
+ * The first number in the range, usually to the left in LTR locales.
500
+ * @param second
501
+ * The second number in the range, usually to the right in LTR locales.
502
+ * @param status
503
+ * Set if an error occurs while formatting.
504
+ * @return A FormattedNumberRange object; call .toString() to get the string.
505
+ * @stable ICU 63
506
+ */
507
+ FormattedNumberRange formatFormattableRange(
508
+ const Formattable& first, const Formattable& second, UErrorCode& status) const;
509
+
510
+ #ifndef U_HIDE_DRAFT_API
511
+ /**
512
+ * Disassociate the locale from this formatter.
513
+ *
514
+ * @return The fluent chain.
515
+ * @draft ICU 75
516
+ */
517
+ UnlocalizedNumberRangeFormatter withoutLocale() const &;
518
+
519
+ /**
520
+ * Overload of withoutLocale() for use on an rvalue reference.
521
+ *
522
+ * @return The fluent chain.
523
+ * @see #withoutLocale
524
+ * @draft ICU 75
525
+ */
526
+ UnlocalizedNumberRangeFormatter withoutLocale() &&;
527
+ #endif // U_HIDE_DRAFT_API
528
+
529
+ /**
530
+ * Default constructor: puts the formatter into a valid but undefined state.
531
+ *
532
+ * @stable ICU 63
533
+ */
534
+ LocalizedNumberRangeFormatter() = default;
535
+
536
+ /**
537
+ * Returns a copy of this LocalizedNumberRangeFormatter.
538
+ * @stable ICU 63
539
+ */
540
+ LocalizedNumberRangeFormatter(const LocalizedNumberRangeFormatter &other);
541
+
542
+ /**
543
+ * Move constructor:
544
+ * The source LocalizedNumberRangeFormatter will be left in a valid but undefined state.
545
+ * @stable ICU 63
546
+ */
547
+ LocalizedNumberRangeFormatter(LocalizedNumberRangeFormatter&& src) noexcept;
548
+
549
+ /**
550
+ * Copy assignment operator.
551
+ * @stable ICU 63
552
+ */
553
+ LocalizedNumberRangeFormatter& operator=(const LocalizedNumberRangeFormatter& other);
554
+
555
+ /**
556
+ * Move assignment operator:
557
+ * The source LocalizedNumberRangeFormatter will be left in a valid but undefined state.
558
+ * @stable ICU 63
559
+ */
560
+ LocalizedNumberRangeFormatter& operator=(LocalizedNumberRangeFormatter&& src) noexcept;
561
+
562
+ #ifndef U_HIDE_INTERNAL_API
563
+
564
+ /**
565
+ * @param results
566
+ * The results object. This method will mutate it to save the results.
567
+ * @param equalBeforeRounding
568
+ * Whether the number was equal before copying it into a DecimalQuantity.
569
+ * Used for determining the identity fallback behavior.
570
+ * @param status
571
+ * Set if an error occurs while formatting.
572
+ * @internal
573
+ */
574
+ void formatImpl(impl::UFormattedNumberRangeData& results, bool equalBeforeRounding,
575
+ UErrorCode& status) const;
576
+
577
+ #endif /* U_HIDE_INTERNAL_API */
578
+
579
+ /**
580
+ * Destruct this LocalizedNumberRangeFormatter, cleaning up any memory it might own.
581
+ * @stable ICU 63
582
+ */
583
+ ~LocalizedNumberRangeFormatter();
584
+
585
+ private:
586
+ #if U_HAVE_ATOMICS
587
+ std::atomic<impl::NumberRangeFormatterImpl*> fAtomicFormatter = {};
588
+ #else
589
+ impl::NumberRangeFormatterImpl* fAtomicFormatter = nullptr;
590
+ #endif
591
+
592
+ const impl::NumberRangeFormatterImpl* getFormatter(UErrorCode& stauts) const;
593
+
594
+ explicit LocalizedNumberRangeFormatter(
595
+ const NumberRangeFormatterSettings<LocalizedNumberRangeFormatter>& other);
596
+
597
+ explicit LocalizedNumberRangeFormatter(
598
+ NumberRangeFormatterSettings<LocalizedNumberRangeFormatter>&& src) noexcept;
599
+
600
+ LocalizedNumberRangeFormatter(const impl::RangeMacroProps &macros, const Locale &locale);
601
+
602
+ LocalizedNumberRangeFormatter(impl::RangeMacroProps &&macros, const Locale &locale);
603
+
604
+ // To give the fluent setters access to this class's constructor:
605
+ friend class NumberRangeFormatterSettings<UnlocalizedNumberRangeFormatter>;
606
+ friend class NumberRangeFormatterSettings<LocalizedNumberRangeFormatter>;
607
+
608
+ // To give UnlocalizedNumberRangeFormatter::locale() access to this class's constructor:
609
+ friend class UnlocalizedNumberRangeFormatter;
610
+ };
611
+
612
+ /**
613
+ * The result of a number range formatting operation. This class allows the result to be exported in several data types,
614
+ * including a UnicodeString and a FieldPositionIterator.
615
+ *
616
+ * Instances of this class are immutable and thread-safe.
617
+ *
618
+ * @stable ICU 63
619
+ */
620
+ class U_I18N_API FormattedNumberRange : public UMemory, public FormattedValue {
621
+ public:
622
+ // Copybrief: this method is older than the parent method
623
+ /**
624
+ * @copybrief FormattedValue::toString()
625
+ *
626
+ * For more information, see FormattedValue::toString()
627
+ *
628
+ * @stable ICU 63
629
+ */
630
+ UnicodeString toString(UErrorCode& status) const override;
631
+
632
+ // Copydoc: this method is new in ICU 64
633
+ /** @copydoc FormattedValue::toTempString() */
634
+ UnicodeString toTempString(UErrorCode& status) const override;
635
+
636
+ // Copybrief: this method is older than the parent method
637
+ /**
638
+ * @copybrief FormattedValue::appendTo()
639
+ *
640
+ * For more information, see FormattedValue::appendTo()
641
+ *
642
+ * @stable ICU 63
643
+ */
644
+ Appendable &appendTo(Appendable &appendable, UErrorCode& status) const override;
645
+
646
+ // Copydoc: this method is new in ICU 64
647
+ /** @copydoc FormattedValue::nextPosition() */
648
+ UBool nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const override;
649
+
650
+ /**
651
+ * Extracts the formatted range as a pair of decimal numbers. This endpoint
652
+ * is useful for obtaining the exact number being printed after scaling
653
+ * and rounding have been applied by the number range formatting pipeline.
654
+ *
655
+ * The syntax of the unformatted numbers is a "numeric string"
656
+ * as defined in the Decimal Arithmetic Specification, available at
657
+ * http://speleotrove.com/decimal
658
+ *
659
+ * Example C++17 call site:
660
+ *
661
+ * auto [ first, second ] = range.getDecimalNumbers<std::string>(status);
662
+ *
663
+ * @tparam StringClass A string class compatible with StringByteSink;
664
+ * for example, std::string.
665
+ * @param status Set if an error occurs.
666
+ * @return A pair of StringClasses containing the numeric strings.
667
+ * @stable ICU 68
668
+ */
669
+ template<typename StringClass>
670
+ inline std::pair<StringClass, StringClass> getDecimalNumbers(UErrorCode& status) const;
671
+
672
+ /**
673
+ * Returns whether the pair of numbers was successfully formatted as a range or whether an identity fallback was
674
+ * used. For example, if the first and second number were the same either before or after rounding occurred, an
675
+ * identity fallback was used.
676
+ *
677
+ * @return An indication the resulting identity situation in the formatted number range.
678
+ * @stable ICU 63
679
+ * @see UNumberRangeIdentityFallback
680
+ */
681
+ UNumberRangeIdentityResult getIdentityResult(UErrorCode& status) const;
682
+
683
+ /**
684
+ * Default constructor; makes an empty FormattedNumberRange.
685
+ * @stable ICU 70
686
+ */
687
+ FormattedNumberRange()
688
+ : fData(nullptr), fErrorCode(U_INVALID_STATE_ERROR) {}
689
+
690
+ /**
691
+ * Copying not supported; use move constructor instead.
692
+ */
693
+ FormattedNumberRange(const FormattedNumberRange&) = delete;
694
+
695
+ /**
696
+ * Copying not supported; use move assignment instead.
697
+ */
698
+ FormattedNumberRange& operator=(const FormattedNumberRange&) = delete;
699
+
700
+ /**
701
+ * Move constructor:
702
+ * Leaves the source FormattedNumberRange in an undefined state.
703
+ * @stable ICU 63
704
+ */
705
+ FormattedNumberRange(FormattedNumberRange&& src) noexcept;
706
+
707
+ /**
708
+ * Move assignment:
709
+ * Leaves the source FormattedNumberRange in an undefined state.
710
+ * @stable ICU 63
711
+ */
712
+ FormattedNumberRange& operator=(FormattedNumberRange&& src) noexcept;
713
+
714
+ /**
715
+ * Destruct an instance of FormattedNumberRange, cleaning up any memory it might own.
716
+ * @stable ICU 63
717
+ */
718
+ ~FormattedNumberRange();
719
+
720
+ private:
721
+ // Can't use LocalPointer because UFormattedNumberRangeData is forward-declared
722
+ const impl::UFormattedNumberRangeData *fData;
723
+
724
+ // Error code for the terminal methods
725
+ UErrorCode fErrorCode;
726
+
727
+ /**
728
+ * Internal constructor from data type. Adopts the data pointer.
729
+ */
730
+ explicit FormattedNumberRange(impl::UFormattedNumberRangeData *results)
731
+ : fData(results), fErrorCode(U_ZERO_ERROR) {}
732
+
733
+ explicit FormattedNumberRange(UErrorCode errorCode)
734
+ : fData(nullptr), fErrorCode(errorCode) {}
735
+
736
+ void getDecimalNumbers(ByteSink& sink1, ByteSink& sink2, UErrorCode& status) const;
737
+
738
+ const impl::UFormattedNumberRangeData* getData(UErrorCode& status) const;
739
+
740
+ // To allow PluralRules to access the underlying data
741
+ friend class ::icu::PluralRules;
742
+
743
+ // To give LocalizedNumberRangeFormatter format methods access to this class's constructor:
744
+ friend class LocalizedNumberRangeFormatter;
745
+
746
+ // To give C API access to internals
747
+ friend struct impl::UFormattedNumberRangeImpl;
748
+ };
749
+
750
+ // inline impl of @stable ICU 68 method
751
+ template<typename StringClass>
752
+ std::pair<StringClass, StringClass> FormattedNumberRange::getDecimalNumbers(UErrorCode& status) const {
753
+ StringClass str1;
754
+ StringClass str2;
755
+ StringByteSink<StringClass> sink1(&str1);
756
+ StringByteSink<StringClass> sink2(&str2);
757
+ getDecimalNumbers(sink1, sink2, status);
758
+ return std::make_pair(str1, str2);
759
+ }
760
+
761
+ /**
762
+ * See the main description in numberrangeformatter.h for documentation and examples.
763
+ *
764
+ * @stable ICU 63
765
+ */
766
+ class U_I18N_API NumberRangeFormatter final {
767
+ public:
768
+ /**
769
+ * Call this method at the beginning of a NumberRangeFormatter fluent chain in which the locale is not currently
770
+ * known at the call site.
771
+ *
772
+ * @return An {@link UnlocalizedNumberRangeFormatter}, to be used for chaining.
773
+ * @stable ICU 63
774
+ */
775
+ static UnlocalizedNumberRangeFormatter with();
776
+
777
+ /**
778
+ * Call this method at the beginning of a NumberRangeFormatter fluent chain in which the locale is known at the call
779
+ * site.
780
+ *
781
+ * @param locale
782
+ * The locale from which to load formats and symbols for number range formatting.
783
+ * @return A {@link LocalizedNumberRangeFormatter}, to be used for chaining.
784
+ * @stable ICU 63
785
+ */
786
+ static LocalizedNumberRangeFormatter withLocale(const Locale &locale);
787
+
788
+ /**
789
+ * Use factory methods instead of the constructor to create a NumberFormatter.
790
+ */
791
+ NumberRangeFormatter() = delete;
792
+ };
793
+
794
+ } // namespace number
795
+ U_NAMESPACE_END
796
+
797
+ #endif /* #if !UCONFIG_NO_FORMATTING */
798
+
799
+ #endif /* U_SHOW_CPLUSPLUS_API */
800
+
801
+ #endif // __NUMBERRANGEFORMATTER_H__
802
+