@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,1437 @@
1
+ // © 2016 and later: Unicode, Inc. and others.
2
+ // License & terms of use: http://www.unicode.org/copyright.html
3
+ /*
4
+ **********************************************************************
5
+ * Copyright (C) 1997-2016, International Business Machines
6
+ * Corporation and others. All Rights Reserved.
7
+ **********************************************************************
8
+ *
9
+ * File ULOC.H
10
+ *
11
+ * Modification History:
12
+ *
13
+ * Date Name Description
14
+ * 04/01/97 aliu Creation.
15
+ * 08/22/98 stephen JDK 1.2 sync.
16
+ * 12/08/98 rtg New C API for Locale
17
+ * 03/30/99 damiba overhaul
18
+ * 03/31/99 helena Javadoc for uloc functions.
19
+ * 04/15/99 Madhu Updated Javadoc
20
+ ********************************************************************************
21
+ */
22
+
23
+ #ifndef ULOC_H
24
+ #define ULOC_H
25
+
26
+ #include <_foundation_unicode/utypes.h>
27
+ #include <_foundation_unicode/uenum.h>
28
+
29
+ /**
30
+ * \file
31
+ * \brief C API: Locale ID functionality similar to C++ class Locale
32
+ *
33
+ * <h2> ULoc C API for Locale </h2>
34
+ * A <code>Locale</code> represents a specific geographical, political,
35
+ * or cultural region. An operation that requires a <code>Locale</code> to perform
36
+ * its task is called <em>locale-sensitive</em> and uses the <code>Locale</code>
37
+ * to tailor information for the user. For example, displaying a number
38
+ * is a locale-sensitive operation--the number should be formatted
39
+ * according to the customs/conventions of the user's native country,
40
+ * region, or culture. In the C APIs, a locales is simply a const char string.
41
+ *
42
+ * <P>
43
+ * You create a <code>Locale</code> with one of the three options listed below.
44
+ * Each of the component is separated by '_' in the locale string.
45
+ * \htmlonly<blockquote>\endhtmlonly
46
+ * <pre>
47
+ * \code
48
+ * newLanguage
49
+ *
50
+ * newLanguage + newCountry
51
+ *
52
+ * newLanguage + newCountry + newVariant
53
+ * \endcode
54
+ * </pre>
55
+ * \htmlonly</blockquote>\endhtmlonly
56
+ * The first option is a valid <STRONG>ISO
57
+ * Language Code.</STRONG> These codes are the lower-case two-letter
58
+ * codes as defined by ISO-639.
59
+ * You can find a full list of these codes at a number of sites, such as:
60
+ * <BR><a href ="http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt">
61
+ * http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt</a>
62
+ *
63
+ * <P>
64
+ * The second option includes an additional <STRONG>ISO Country
65
+ * Code.</STRONG> These codes are the upper-case two-letter codes
66
+ * as defined by ISO-3166.
67
+ * You can find a full list of these codes at a number of sites, such as:
68
+ * <BR><a href="http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html">
69
+ * http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html</a>
70
+ *
71
+ * <P>
72
+ * The third option requires another additional information--the
73
+ * <STRONG>Variant.</STRONG>
74
+ * The Variant codes are vendor and browser-specific.
75
+ * For example, use WIN for Windows, MAC for Macintosh, and POSIX for POSIX.
76
+ * Where there are two variants, separate them with an underscore, and
77
+ * put the most important one first. For
78
+ * example, a Traditional Spanish collation might be referenced, with
79
+ * "ES", "ES", "Traditional_WIN".
80
+ *
81
+ * <P>
82
+ * Because a <code>Locale</code> is just an identifier for a region,
83
+ * no validity check is performed when you specify a <code>Locale</code>.
84
+ * If you want to see whether particular resources are available for the
85
+ * <code>Locale</code> you asked for, you must query those resources. For
86
+ * example, ask the <code>UNumberFormat</code> for the locales it supports
87
+ * using its <code>getAvailable</code> method.
88
+ * <BR><STRONG>Note:</STRONG> When you ask for a resource for a particular
89
+ * locale, you get back the best available match, not necessarily
90
+ * precisely what you asked for. For more information, look at
91
+ * <code>UResourceBundle</code>.
92
+ *
93
+ * <P>
94
+ * The <code>Locale</code> provides a number of convenient constants
95
+ * that you can use to specify the commonly used
96
+ * locales. For example, the following refers to a locale
97
+ * for the United States:
98
+ * \htmlonly<blockquote>\endhtmlonly
99
+ * <pre>
100
+ * \code
101
+ * ULOC_US
102
+ * \endcode
103
+ * </pre>
104
+ * \htmlonly</blockquote>\endhtmlonly
105
+ *
106
+ * <P>
107
+ * Once you've specified a locale you can query it for information about
108
+ * itself. Use <code>uloc_getCountry</code> to get the ISO Country Code and
109
+ * <code>uloc_getLanguage</code> to get the ISO Language Code. You can
110
+ * use <code>uloc_getDisplayCountry</code> to get the
111
+ * name of the country suitable for displaying to the user. Similarly,
112
+ * you can use <code>uloc_getDisplayLanguage</code> to get the name of
113
+ * the language suitable for displaying to the user. Interestingly,
114
+ * the <code>uloc_getDisplayXXX</code> methods are themselves locale-sensitive
115
+ * and have two versions: one that uses the default locale and one
116
+ * that takes a locale as an argument and displays the name or country in
117
+ * a language appropriate to that locale.
118
+ *
119
+ * <P>
120
+ * The ICU provides a number of services that perform locale-sensitive
121
+ * operations. For example, the <code>unum_xxx</code> functions format
122
+ * numbers, currency, or percentages in a locale-sensitive manner.
123
+ * </P>
124
+ * \htmlonly<blockquote>\endhtmlonly
125
+ * <pre>
126
+ * \code
127
+ * UErrorCode success = U_ZERO_ERROR;
128
+ * UNumberFormat *nf;
129
+ * const char* myLocale = "fr_FR";
130
+ *
131
+ * nf = unum_open( UNUM_DEFAULT, NULL, success );
132
+ * unum_close(nf);
133
+ * nf = unum_open( UNUM_CURRENCY, NULL, success );
134
+ * unum_close(nf);
135
+ * nf = unum_open( UNUM_PERCENT, NULL, success );
136
+ * unum_close(nf);
137
+ * \endcode
138
+ * </pre>
139
+ * \htmlonly</blockquote>\endhtmlonly
140
+ * Each of these methods has two variants; one with an explicit locale
141
+ * and one without; the latter using the default locale.
142
+ * \htmlonly<blockquote>\endhtmlonly
143
+ * <pre>
144
+ * \code
145
+ *
146
+ * nf = unum_open( UNUM_DEFAULT, myLocale, success );
147
+ * unum_close(nf);
148
+ * nf = unum_open( UNUM_CURRENCY, myLocale, success );
149
+ * unum_close(nf);
150
+ * nf = unum_open( UNUM_PERCENT, myLocale, success );
151
+ * unum_close(nf);
152
+ * \endcode
153
+ * </pre>
154
+ * \htmlonly</blockquote>\endhtmlonly
155
+ * A <code>Locale</code> is the mechanism for identifying the kind of services
156
+ * (<code>UNumberFormat</code>) that you would like to get. The locale is
157
+ * <STRONG>just</STRONG> a mechanism for identifying these services.
158
+ *
159
+ * <P>
160
+ * Each international service that performs locale-sensitive operations
161
+ * allows you
162
+ * to get all the available objects of that type. You can sift
163
+ * through these objects by language, country, or variant,
164
+ * and use the display names to present a menu to the user.
165
+ * For example, you can create a menu of all the collation objects
166
+ * suitable for a given language. Such classes implement these
167
+ * three class methods:
168
+ * \htmlonly<blockquote>\endhtmlonly
169
+ * <pre>
170
+ * \code
171
+ * const char* uloc_getAvailable(int32_t index);
172
+ * int32_t uloc_countAvailable();
173
+ * int32_t
174
+ * uloc_getDisplayName(const char* localeID,
175
+ * const char* inLocaleID,
176
+ * UChar* result,
177
+ * int32_t maxResultSize,
178
+ * UErrorCode* err);
179
+ *
180
+ * \endcode
181
+ * </pre>
182
+ * \htmlonly</blockquote>\endhtmlonly
183
+ * <P>
184
+ * Concerning POSIX/RFC1766 Locale IDs,
185
+ * the getLanguage/getCountry/getVariant/getName functions do understand
186
+ * the POSIX type form of language_COUNTRY.ENCODING\@VARIANT
187
+ * and if there is not an ICU-stype variant, uloc_getVariant() for example
188
+ * will return the one listed after the \@at sign. As well, the hyphen
189
+ * "-" is recognized as a country/variant separator similarly to RFC1766.
190
+ * So for example, "en-us" will be interpreted as en_US.
191
+ * As a result, uloc_getName() is far from a no-op, and will have the
192
+ * effect of converting POSIX/RFC1766 IDs into ICU form, although it does
193
+ * NOT map any of the actual codes (i.e. russian->ru) in any way.
194
+ * Applications should call uloc_getName() at the point where a locale ID
195
+ * is coming from an external source (user entry, OS, web browser)
196
+ * and pass the resulting string to other ICU functions. For example,
197
+ * don't use de-de\@EURO as an argument to resourcebundle.
198
+ *
199
+ * @see UResourceBundle
200
+ */
201
+
202
+ /** Useful constant for this language. @stable ICU 2.0 */
203
+ #define ULOC_CHINESE "zh"
204
+ /** Useful constant for this language. @stable ICU 2.0 */
205
+ #define ULOC_ENGLISH "en"
206
+ /** Useful constant for this language. @stable ICU 2.0 */
207
+ #define ULOC_FRENCH "fr"
208
+ /** Useful constant for this language. @stable ICU 2.0 */
209
+ #define ULOC_GERMAN "de"
210
+ /** Useful constant for this language. @stable ICU 2.0 */
211
+ #define ULOC_ITALIAN "it"
212
+ /** Useful constant for this language. @stable ICU 2.0 */
213
+ #define ULOC_JAPANESE "ja"
214
+ /** Useful constant for this language. @stable ICU 2.0 */
215
+ #define ULOC_KOREAN "ko"
216
+ /** Useful constant for this language. @stable ICU 2.0 */
217
+ #define ULOC_SIMPLIFIED_CHINESE "zh_CN"
218
+ /** Useful constant for this language. @stable ICU 2.0 */
219
+ #define ULOC_TRADITIONAL_CHINESE "zh_TW"
220
+
221
+ /** Useful constant for this country/region. @stable ICU 2.0 */
222
+ #define ULOC_CANADA "en_CA"
223
+ /** Useful constant for this country/region. @stable ICU 2.0 */
224
+ #define ULOC_CANADA_FRENCH "fr_CA"
225
+ /** Useful constant for this country/region. @stable ICU 2.0 */
226
+ #define ULOC_CHINA "zh_CN"
227
+ /** Useful constant for this country/region. @stable ICU 2.0 */
228
+ #define ULOC_PRC "zh_CN"
229
+ /** Useful constant for this country/region. @stable ICU 2.0 */
230
+ #define ULOC_FRANCE "fr_FR"
231
+ /** Useful constant for this country/region. @stable ICU 2.0 */
232
+ #define ULOC_GERMANY "de_DE"
233
+ /** Useful constant for this country/region. @stable ICU 2.0 */
234
+ #define ULOC_ITALY "it_IT"
235
+ /** Useful constant for this country/region. @stable ICU 2.0 */
236
+ #define ULOC_JAPAN "ja_JP"
237
+ /** Useful constant for this country/region. @stable ICU 2.0 */
238
+ #define ULOC_KOREA "ko_KR"
239
+ /** Useful constant for this country/region. @stable ICU 2.0 */
240
+ #define ULOC_TAIWAN "zh_TW"
241
+ /** Useful constant for this country/region. @stable ICU 2.0 */
242
+ #define ULOC_UK "en_GB"
243
+ /** Useful constant for this country/region. @stable ICU 2.0 */
244
+ #define ULOC_US "en_US"
245
+
246
+ /**
247
+ * Useful constant for the maximum size of the language part of a locale ID.
248
+ * (including the terminating NULL).
249
+ * @stable ICU 2.0
250
+ */
251
+ #define ULOC_LANG_CAPACITY 12
252
+
253
+ /**
254
+ * Useful constant for the maximum size of the country part of a locale ID
255
+ * (including the terminating NULL).
256
+ * @stable ICU 2.0
257
+ */
258
+ #define ULOC_COUNTRY_CAPACITY 4
259
+ /**
260
+ * Useful constant for the maximum size of the whole locale ID
261
+ * (including the terminating NULL and all keywords).
262
+ * @stable ICU 2.0
263
+ */
264
+ #define ULOC_FULLNAME_CAPACITY 157
265
+
266
+ /**
267
+ * Useful constant for the maximum size of the script part of a locale ID
268
+ * (including the terminating NULL).
269
+ * @stable ICU 2.8
270
+ */
271
+ #define ULOC_SCRIPT_CAPACITY 6
272
+
273
+ /**
274
+ * Useful constant for the maximum size of keywords in a locale
275
+ * @stable ICU 2.8
276
+ */
277
+ #define ULOC_KEYWORDS_CAPACITY 96
278
+
279
+ /**
280
+ * Useful constant for the maximum total size of keywords and their values in a locale
281
+ * @stable ICU 2.8
282
+ */
283
+ #define ULOC_KEYWORD_AND_VALUES_CAPACITY 100
284
+
285
+ /**
286
+ * Invariant character separating keywords from the locale string
287
+ * @stable ICU 2.8
288
+ */
289
+ #define ULOC_KEYWORD_SEPARATOR '@'
290
+
291
+ /**
292
+ * Unicode code point for '@' separating keywords from the locale string.
293
+ * @see ULOC_KEYWORD_SEPARATOR
294
+ * @stable ICU 4.6
295
+ */
296
+ #define ULOC_KEYWORD_SEPARATOR_UNICODE 0x40
297
+
298
+ /**
299
+ * Invariant character for assigning value to a keyword
300
+ * @stable ICU 2.8
301
+ */
302
+ #define ULOC_KEYWORD_ASSIGN '='
303
+
304
+ /**
305
+ * Unicode code point for '=' for assigning value to a keyword.
306
+ * @see ULOC_KEYWORD_ASSIGN
307
+ * @stable ICU 4.6
308
+ */
309
+ #define ULOC_KEYWORD_ASSIGN_UNICODE 0x3D
310
+
311
+ /**
312
+ * Invariant character separating keywords
313
+ * @stable ICU 2.8
314
+ */
315
+ #define ULOC_KEYWORD_ITEM_SEPARATOR ';'
316
+
317
+ /**
318
+ * Unicode code point for ';' separating keywords
319
+ * @see ULOC_KEYWORD_ITEM_SEPARATOR
320
+ * @stable ICU 4.6
321
+ */
322
+ #define ULOC_KEYWORD_ITEM_SEPARATOR_UNICODE 0x3B
323
+
324
+ /**
325
+ * Constants for *_getLocale()
326
+ * Allow user to select whether she wants information on
327
+ * requested, valid or actual locale.
328
+ * For example, a collator for "en_US_CALIFORNIA" was
329
+ * requested. In the current state of ICU (2.0),
330
+ * the requested locale is "en_US_CALIFORNIA",
331
+ * the valid locale is "en_US" (most specific locale supported by ICU)
332
+ * and the actual locale is "root" (the collation data comes unmodified
333
+ * from the UCA)
334
+ * The locale is considered supported by ICU if there is a core ICU bundle
335
+ * for that locale (although it may be empty).
336
+ * @stable ICU 2.1
337
+ */
338
+ typedef enum {
339
+ /** This is locale the data actually comes from
340
+ * @stable ICU 2.1
341
+ */
342
+ ULOC_ACTUAL_LOCALE = 0,
343
+ /** This is the most specific locale supported by ICU
344
+ * @stable ICU 2.1
345
+ */
346
+ ULOC_VALID_LOCALE = 1,
347
+
348
+ #ifndef U_HIDE_DEPRECATED_API
349
+ /** This is the requested locale
350
+ * @deprecated ICU 2.8
351
+ */
352
+ ULOC_REQUESTED_LOCALE = 2,
353
+
354
+ /**
355
+ * One more than the highest normal ULocDataLocaleType value.
356
+ * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
357
+ */
358
+ ULOC_DATA_LOCALE_TYPE_LIMIT = 3
359
+ #endif // U_HIDE_DEPRECATED_API
360
+ } ULocDataLocaleType;
361
+
362
+ #ifndef U_HIDE_SYSTEM_API
363
+ /**
364
+ * Gets ICU's default locale.
365
+ * The returned string is a snapshot in time, and will remain valid
366
+ * and unchanged even when uloc_setDefault() is called.
367
+ * The returned storage is owned by ICU, and must not be altered or deleted
368
+ * by the caller.
369
+ *
370
+ * @return the ICU default locale
371
+ * @system
372
+ * @stable ICU 2.0
373
+ */
374
+ U_CAPI const char* U_EXPORT2
375
+ uloc_getDefault(void);
376
+
377
+ /**
378
+ * Sets ICU's default locale.
379
+ * By default (without calling this function), ICU's default locale will be based
380
+ * on information obtained from the underlying system environment.
381
+ * <p>
382
+ * Changes to ICU's default locale do not propagate back to the
383
+ * system environment.
384
+ * <p>
385
+ * Changes to ICU's default locale to not affect any ICU services that
386
+ * may already be open based on the previous default locale value.
387
+ *
388
+ * @param localeID the new ICU default locale. A value of NULL will try to get
389
+ * the system's default locale.
390
+ * @param status the error information if the setting of default locale fails
391
+ * @system
392
+ * @stable ICU 2.0
393
+ */
394
+ U_CAPI void U_EXPORT2
395
+ uloc_setDefault(const char* localeID,
396
+ UErrorCode* status);
397
+ #endif /* U_HIDE_SYSTEM_API */
398
+
399
+ /**
400
+ * Gets the language code for the specified locale.
401
+ *
402
+ * This function may return with a failure error code for certain kinds of inputs
403
+ * but does not fully check for well-formed locale IDs / language tags.
404
+ *
405
+ * @param localeID the locale to get the ISO language code with
406
+ * @param language the language code for localeID
407
+ * @param languageCapacity the size of the language buffer to store the
408
+ * language code with
409
+ * @param err error information if retrieving the language code failed
410
+ * @return the actual buffer size needed for the language code. If it's greater
411
+ * than languageCapacity, the returned language code will be truncated.
412
+ * @stable ICU 2.0
413
+ */
414
+ U_CAPI int32_t U_EXPORT2
415
+ uloc_getLanguage(const char* localeID,
416
+ char* language,
417
+ int32_t languageCapacity,
418
+ UErrorCode* err);
419
+
420
+ /**
421
+ * Gets the script code for the specified locale.
422
+ *
423
+ * This function may return with a failure error code for certain kinds of inputs
424
+ * but does not fully check for well-formed locale IDs / language tags.
425
+ *
426
+ * @param localeID the locale to get the ISO language code with
427
+ * @param script the language code for localeID
428
+ * @param scriptCapacity the size of the language buffer to store the
429
+ * language code with
430
+ * @param err error information if retrieving the language code failed
431
+ * @return the actual buffer size needed for the language code. If it's greater
432
+ * than scriptCapacity, the returned language code will be truncated.
433
+ * @stable ICU 2.8
434
+ */
435
+ U_CAPI int32_t U_EXPORT2
436
+ uloc_getScript(const char* localeID,
437
+ char* script,
438
+ int32_t scriptCapacity,
439
+ UErrorCode* err);
440
+
441
+ /**
442
+ * Gets the country code for the specified locale.
443
+ *
444
+ * This function may return with a failure error code for certain kinds of inputs
445
+ * but does not fully check for well-formed locale IDs / language tags.
446
+ *
447
+ * @param localeID the locale to get the country code with
448
+ * @param country the country code for localeID
449
+ * @param countryCapacity the size of the country buffer to store the
450
+ * country code with
451
+ * @param err error information if retrieving the country code failed
452
+ * @return the actual buffer size needed for the country code. If it's greater
453
+ * than countryCapacity, the returned country code will be truncated.
454
+ * @stable ICU 2.0
455
+ */
456
+ U_CAPI int32_t U_EXPORT2
457
+ uloc_getCountry(const char* localeID,
458
+ char* country,
459
+ int32_t countryCapacity,
460
+ UErrorCode* err);
461
+
462
+ /**
463
+ * Gets the variant code for the specified locale.
464
+ *
465
+ * This function may return with a failure error code for certain kinds of inputs
466
+ * but does not fully check for well-formed locale IDs / language tags.
467
+ *
468
+ * @param localeID the locale to get the variant code with
469
+ * @param variant the variant code for localeID
470
+ * @param variantCapacity the size of the variant buffer to store the
471
+ * variant code with
472
+ * @param err error information if retrieving the variant code failed
473
+ * @return the actual buffer size needed for the variant code. If it's greater
474
+ * than variantCapacity, the returned variant code will be truncated.
475
+ * @stable ICU 2.0
476
+ */
477
+ U_CAPI int32_t U_EXPORT2
478
+ uloc_getVariant(const char* localeID,
479
+ char* variant,
480
+ int32_t variantCapacity,
481
+ UErrorCode* err);
482
+
483
+
484
+ /**
485
+ * Gets the full name for the specified locale.
486
+ *
487
+ * This function may return with a failure error code for certain kinds of inputs
488
+ * but does not fully check for well-formed locale IDs / language tags.
489
+ *
490
+ * Note: This has the effect of 'canonicalizing' the ICU locale ID to
491
+ * a certain extent. Upper and lower case are set as needed.
492
+ * It does NOT map aliased names in any way.
493
+ * See the top of this header file.
494
+ * This API supports preflighting.
495
+ *
496
+ * @param localeID the locale to get the full name with
497
+ * @param name fill in buffer for the name without keywords.
498
+ * @param nameCapacity capacity of the fill in buffer.
499
+ * @param err error information if retrieving the full name failed
500
+ * @return the actual buffer size needed for the full name. If it's greater
501
+ * than nameCapacity, the returned full name will be truncated.
502
+ * @stable ICU 2.0
503
+ */
504
+ U_CAPI int32_t U_EXPORT2
505
+ uloc_getName(const char* localeID,
506
+ char* name,
507
+ int32_t nameCapacity,
508
+ UErrorCode* err);
509
+
510
+ /**
511
+ * Gets the full name for the specified locale.
512
+ * Note: This has the effect of 'canonicalizing' the string to
513
+ * a certain extent. Upper and lower case are set as needed,
514
+ * and if the components were in 'POSIX' format they are changed to
515
+ * ICU format. It does NOT map aliased names in any way.
516
+ * See the top of this header file.
517
+ *
518
+ * @param localeID the locale to get the full name with
519
+ * @param name the full name for localeID
520
+ * @param nameCapacity the size of the name buffer to store the
521
+ * full name with
522
+ * @param err error information if retrieving the full name failed
523
+ * @return the actual buffer size needed for the full name. If it's greater
524
+ * than nameCapacity, the returned full name will be truncated.
525
+ * @stable ICU 2.8
526
+ */
527
+ U_CAPI int32_t U_EXPORT2
528
+ uloc_canonicalize(const char* localeID,
529
+ char* name,
530
+ int32_t nameCapacity,
531
+ UErrorCode* err);
532
+
533
+ #if APPLE_ICU_CHANGES
534
+ // rdar://74314220 #189 Add ualoc_canonicalForm, C wrapper for Locale::createCanonical
535
+ /**
536
+ * Put the specified localeID into full canonical form, including
537
+ * mapping of aliases (in addition to the behavior of
538
+ * uloc_canonicalize). This is a C wrapper for C++ Locale::createCanonical.
539
+ * This is currently Apple-specific but in uloc.h instead of ualoc.h
540
+ * because this capability might be needed on Safari for Windows.
541
+ * At some point this capability will be in open-source ICU, see
542
+ * https://unicode-org.atlassian.net/browse/ICU-21506
543
+ *
544
+ * @param localeID the locale ID to convert to canonical form
545
+ * @param name the buffer for the canonical ID result
546
+ * @param nameCapacity the size of the name buffer
547
+ * @param err error information if retrieving the full name failed
548
+ * @return the actual buffer size needed for the full name. If it's greater
549
+ * than nameCapacity, the returned full name will be truncated.
550
+ * @internal
551
+ */
552
+ U_CAPI int32_t U_EXPORT2
553
+ ualoc_canonicalForm(const char* localeID,
554
+ char* name,
555
+ int32_t nameCapacity,
556
+ UErrorCode* err);
557
+ #endif // APPLE_ICU_CHANGES
558
+
559
+ /**
560
+ * Gets the ISO language code for the specified locale.
561
+ *
562
+ * @param localeID the locale to get the ISO language code with
563
+ * @return language the ISO language code for localeID
564
+ * @stable ICU 2.0
565
+ */
566
+ U_CAPI const char* U_EXPORT2
567
+ uloc_getISO3Language(const char* localeID);
568
+
569
+
570
+ /**
571
+ * Gets the ISO country code for the specified locale.
572
+ *
573
+ * @param localeID the locale to get the ISO country code with
574
+ * @return country the ISO country code for localeID
575
+ * @stable ICU 2.0
576
+ */
577
+ U_CAPI const char* U_EXPORT2
578
+ uloc_getISO3Country(const char* localeID);
579
+
580
+ /**
581
+ * Gets the Win32 LCID value for the specified locale.
582
+ * If the ICU locale is not recognized by Windows, 0 will be returned.
583
+ *
584
+ * LCIDs were deprecated with Windows Vista and Microsoft recommends
585
+ * that developers use BCP47 style tags instead (uloc_toLanguageTag).
586
+ *
587
+ * @param localeID the locale to get the Win32 LCID value with
588
+ * @return country the Win32 LCID for localeID
589
+ * @stable ICU 2.0
590
+ */
591
+ U_CAPI uint32_t U_EXPORT2
592
+ uloc_getLCID(const char* localeID);
593
+
594
+ /**
595
+ * Gets the language name suitable for display for the specified locale.
596
+ *
597
+ * @param locale the locale to get the ISO language code with
598
+ * @param displayLocale Specifies the locale to be used to display the name. In
599
+ * other words, if the locale's language code is "en", passing
600
+ * Locale::getFrench() for inLocale would result in "Anglais",
601
+ * while passing Locale::getGerman() for inLocale would result
602
+ * in "Englisch".
603
+ * @param language the displayable language code for localeID
604
+ * @param languageCapacity the size of the language buffer to store the
605
+ * displayable language code with.
606
+ * @param status error information if retrieving the displayable language code
607
+ * failed. U_USING_DEFAULT_WARNING indicates that no data was
608
+ * found from the locale resources and a case canonicalized
609
+ * language code is placed into language as fallback.
610
+ * @return the actual buffer size needed for the displayable language code. If
611
+ * it's greater than languageCapacity, the returned language
612
+ * code will be truncated.
613
+ * @stable ICU 2.0
614
+ */
615
+ U_CAPI int32_t U_EXPORT2
616
+ uloc_getDisplayLanguage(const char* locale,
617
+ const char* displayLocale,
618
+ UChar* language,
619
+ int32_t languageCapacity,
620
+ UErrorCode* status);
621
+
622
+ /**
623
+ * Gets the script name suitable for display for the specified locale.
624
+ *
625
+ * @param locale the locale to get the displayable script code with. NULL may be
626
+ * used to specify the default.
627
+ * @param displayLocale Specifies the locale to be used to display the name. In
628
+ * other words, if the locale's language code is "en", passing
629
+ * Locale::getFrench() for inLocale would result in "", while
630
+ * passing Locale::getGerman() for inLocale would result in "".
631
+ * NULL may be used to specify the default.
632
+ * @param script the displayable script for the localeID.
633
+ * @param scriptCapacity the size of the script buffer to store the displayable
634
+ * script code with.
635
+ * @param status error information if retrieving the displayable script code
636
+ * failed. U_USING_DEFAULT_WARNING indicates that no data was
637
+ * found from the locale resources and a case canonicalized
638
+ * script code is placed into script as fallback.
639
+ * @return the actual buffer size needed for the displayable script code. If
640
+ * it's greater than scriptCapacity, the returned displayable
641
+ * script code will be truncated.
642
+ * @stable ICU 2.8
643
+ */
644
+ U_CAPI int32_t U_EXPORT2
645
+ uloc_getDisplayScript(const char* locale,
646
+ const char* displayLocale,
647
+ UChar* script,
648
+ int32_t scriptCapacity,
649
+ UErrorCode* status);
650
+
651
+ /**
652
+ * Gets the country name suitable for display for the specified locale.
653
+ * Warning: this is for the region part of a valid locale ID; it cannot just be
654
+ * the region code (like "FR"). To get the display name for a region alone, or
655
+ * for other options, use ULocaleDisplayNames instead.
656
+ *
657
+ * @param locale the locale to get the displayable country code with. NULL may
658
+ * be used to specify the default.
659
+ * @param displayLocale Specifies the locale to be used to display the name. In
660
+ * other words, if the locale's language code is "en", passing
661
+ * Locale::getFrench() for inLocale would result in "Anglais",
662
+ * while passing Locale::getGerman() for inLocale would result
663
+ * in "Englisch". NULL may be used to specify the default.
664
+ * @param country the displayable country code for localeID.
665
+ * @param countryCapacity the size of the country buffer to store the
666
+ * displayable country code with.
667
+ * @param status error information if retrieving the displayable country code
668
+ * failed. U_USING_DEFAULT_WARNING indicates that no data was
669
+ * found from the locale resources and a case canonicalized
670
+ * country code is placed into country as fallback.
671
+ * @return the actual buffer size needed for the displayable country code. If
672
+ * it's greater than countryCapacity, the returned displayable
673
+ * country code will be truncated.
674
+ * @stable ICU 2.0
675
+ */
676
+ U_CAPI int32_t U_EXPORT2
677
+ uloc_getDisplayCountry(const char* locale,
678
+ const char* displayLocale,
679
+ UChar* country,
680
+ int32_t countryCapacity,
681
+ UErrorCode* status);
682
+
683
+
684
+ /**
685
+ * Gets the variant name suitable for display for the specified locale.
686
+ *
687
+ * @param locale the locale to get the displayable variant code with. NULL may
688
+ * be used to specify the default.
689
+ * @param displayLocale Specifies the locale to be used to display the name. In
690
+ * other words, if the locale's language code is "en", passing
691
+ * Locale::getFrench() for inLocale would result in "Anglais",
692
+ * while passing Locale::getGerman() for inLocale would result
693
+ * in "Englisch". NULL may be used to specify the default.
694
+ * @param variant the displayable variant code for localeID.
695
+ * @param variantCapacity the size of the variant buffer to store the
696
+ * displayable variant code with.
697
+ * @param status error information if retrieving the displayable variant code
698
+ * failed. U_USING_DEFAULT_WARNING indicates that no data was
699
+ * found from the locale resources and a case canonicalized
700
+ * variant code is placed into variant as fallback.
701
+ * @return the actual buffer size needed for the displayable variant code. If
702
+ * it's greater than variantCapacity, the returned displayable
703
+ * variant code will be truncated.
704
+ * @stable ICU 2.0
705
+ */
706
+ U_CAPI int32_t U_EXPORT2
707
+ uloc_getDisplayVariant(const char* locale,
708
+ const char* displayLocale,
709
+ UChar* variant,
710
+ int32_t variantCapacity,
711
+ UErrorCode* status);
712
+
713
+ /**
714
+ * Gets the keyword name suitable for display for the specified locale. E.g:
715
+ * for the locale string de_DE\@collation=PHONEBOOK, this API gets the display
716
+ * string for the keyword collation.
717
+ * Usage:
718
+ * <code>
719
+ * UErrorCode status = U_ZERO_ERROR;
720
+ * const char* keyword =NULL;
721
+ * int32_t keywordLen = 0;
722
+ * int32_t keywordCount = 0;
723
+ * UChar displayKeyword[256];
724
+ * int32_t displayKeywordLen = 0;
725
+ * UEnumeration* keywordEnum = uloc_openKeywords("de_DE@collation=PHONEBOOK;calendar=TRADITIONAL", &status);
726
+ * for(keywordCount = uenum_count(keywordEnum, &status); keywordCount > 0 ; keywordCount--){
727
+ * if(U_FAILURE(status)){
728
+ * ...something went wrong so handle the error...
729
+ * break;
730
+ * }
731
+ * // the uenum_next returns NUL terminated string
732
+ * keyword = uenum_next(keywordEnum, &keywordLen, &status);
733
+ * displayKeywordLen = uloc_getDisplayKeyword(keyword, "en_US", displayKeyword, 256);
734
+ * ... do something interesting .....
735
+ * }
736
+ * uenum_close(keywordEnum);
737
+ * </code>
738
+ * @param keyword The keyword whose display string needs to be returned.
739
+ * @param displayLocale Specifies the locale to be used to display the name. In other words,
740
+ * if the locale's language code is "en", passing Locale::getFrench() for
741
+ * inLocale would result in "Anglais", while passing Locale::getGerman()
742
+ * for inLocale would result in "Englisch". NULL may be used to specify the default.
743
+ * @param dest the buffer to which the displayable keyword should be written.
744
+ * @param destCapacity The size of the buffer (number of UChars). If it is 0, then
745
+ * dest may be NULL and the function will only return the length of the
746
+ * result without writing any of the result string (pre-flighting).
747
+ * @param status error information if retrieving the displayable string failed.
748
+ * Should not be NULL and should not indicate failure on entry.
749
+ * U_USING_DEFAULT_WARNING indicates that no data was found from the locale
750
+ * resources and the keyword is placed into dest as fallback.
751
+ * @return the actual buffer size needed for the displayable variant code.
752
+ * @see #uloc_openKeywords
753
+ * @stable ICU 2.8
754
+ */
755
+ U_CAPI int32_t U_EXPORT2
756
+ uloc_getDisplayKeyword(const char* keyword,
757
+ const char* displayLocale,
758
+ UChar* dest,
759
+ int32_t destCapacity,
760
+ UErrorCode* status);
761
+ /**
762
+ * Gets the value of the keyword suitable for display for the specified locale.
763
+ * E.g: for the locale string de_DE\@collation=PHONEBOOK, this API gets the display
764
+ * string for PHONEBOOK, in the display locale, when "collation" is specified as the keyword.
765
+ *
766
+ * @param locale The locale to get the displayable variant code with. NULL may be used to specify the default.
767
+ * @param keyword The keyword for whose value should be used.
768
+ * @param displayLocale Specifies the locale to be used to display the name. In other words,
769
+ * if the locale's language code is "en", passing Locale::getFrench() for
770
+ * inLocale would result in "Anglais", while passing Locale::getGerman()
771
+ * for inLocale would result in "Englisch". NULL may be used to specify the default.
772
+ * @param dest the buffer to which the displayable keyword should be written.
773
+ * @param destCapacity The size of the buffer (number of UChars). If it is 0, then
774
+ * dest may be NULL and the function will only return the length of the
775
+ * result without writing any of the result string (pre-flighting).
776
+ * @param status error information if retrieving the displayable string failed.
777
+ * Should not be NULL and must not indicate failure on entry.
778
+ * U_USING_DEFAULT_WARNING indicates that no data was found from the locale
779
+ * resources and the value of the keyword is placed into dest as fallback.
780
+ * @return the actual buffer size needed for the displayable variant code.
781
+ * @stable ICU 2.8
782
+ */
783
+ U_CAPI int32_t U_EXPORT2
784
+ uloc_getDisplayKeywordValue( const char* locale,
785
+ const char* keyword,
786
+ const char* displayLocale,
787
+ UChar* dest,
788
+ int32_t destCapacity,
789
+ UErrorCode* status);
790
+ /**
791
+ * Gets the full name suitable for display for the specified locale.
792
+ *
793
+ * @param localeID the locale to get the displayable name with. NULL may be used to specify the default.
794
+ * @param inLocaleID Specifies the locale to be used to display the name. In other words,
795
+ * if the locale's language code is "en", passing Locale::getFrench() for
796
+ * inLocale would result in "Anglais", while passing Locale::getGerman()
797
+ * for inLocale would result in "Englisch". NULL may be used to specify the default.
798
+ * @param result the displayable name for localeID
799
+ * @param maxResultSize the size of the name buffer to store the
800
+ * displayable full name with
801
+ * @param err error information if retrieving the displayable name failed
802
+ * @return the actual buffer size needed for the displayable name. If it's greater
803
+ * than maxResultSize, the returned displayable name will be truncated.
804
+ * @stable ICU 2.0
805
+ */
806
+ U_CAPI int32_t U_EXPORT2
807
+ uloc_getDisplayName(const char* localeID,
808
+ const char* inLocaleID,
809
+ UChar* result,
810
+ int32_t maxResultSize,
811
+ UErrorCode* err);
812
+
813
+
814
+ /**
815
+ * Gets the specified locale from a list of available locales.
816
+ *
817
+ * This method corresponds to uloc_openAvailableByType called with the
818
+ * ULOC_AVAILABLE_DEFAULT type argument.
819
+ *
820
+ * The return value is a pointer to an item of a locale name array. Both this
821
+ * array and the pointers it contains are owned by ICU and should not be
822
+ * deleted or written through by the caller. The locale name is terminated by
823
+ * a null pointer.
824
+ *
825
+ * @param n the specific locale name index of the available locale list;
826
+ * should not exceed the number returned by uloc_countAvailable.
827
+ * @return a specified locale name of all available locales
828
+ * @stable ICU 2.0
829
+ */
830
+ U_CAPI const char* U_EXPORT2
831
+ uloc_getAvailable(int32_t n);
832
+
833
+ /**
834
+ * Gets the size of the all available locale list.
835
+ *
836
+ * @return the size of the locale list
837
+ * @stable ICU 2.0
838
+ */
839
+ U_CAPI int32_t U_EXPORT2 uloc_countAvailable(void);
840
+
841
+ /**
842
+ * Types for uloc_getAvailableByType and uloc_countAvailableByType.
843
+ *
844
+ * @stable ICU 65
845
+ */
846
+ typedef enum ULocAvailableType {
847
+ /**
848
+ * Locales that return data when passed to ICU APIs,
849
+ * but not including legacy or alias locales.
850
+ *
851
+ * @stable ICU 65
852
+ */
853
+ ULOC_AVAILABLE_DEFAULT,
854
+
855
+ /**
856
+ * Legacy or alias locales that return data when passed to ICU APIs.
857
+ * Examples of supported legacy or alias locales:
858
+ *
859
+ * - iw (alias to he)
860
+ * - mo (alias to ro)
861
+ * - zh_CN (alias to zh_Hans_CN)
862
+ * - sr_BA (alias to sr_Cyrl_BA)
863
+ * - ars (alias to ar_SA)
864
+ *
865
+ * The locales in this set are disjoint from the ones in
866
+ * ULOC_AVAILABLE_DEFAULT. To get both sets at the same time, use
867
+ * ULOC_AVAILABLE_WITH_LEGACY_ALIASES.
868
+ *
869
+ * @stable ICU 65
870
+ */
871
+ ULOC_AVAILABLE_ONLY_LEGACY_ALIASES,
872
+
873
+ /**
874
+ * The union of the locales in ULOC_AVAILABLE_DEFAULT and
875
+ * ULOC_AVAILABLE_ONLY_LEGACY_ALIAS.
876
+ *
877
+ * @stable ICU 65
878
+ */
879
+ ULOC_AVAILABLE_WITH_LEGACY_ALIASES,
880
+
881
+ #ifndef U_HIDE_INTERNAL_API
882
+ /**
883
+ * @internal
884
+ */
885
+ ULOC_AVAILABLE_COUNT
886
+ #endif /* U_HIDE_INTERNAL_API */
887
+ } ULocAvailableType;
888
+
889
+ /**
890
+ * Gets a list of available locales according to the type argument, allowing
891
+ * the user to access different sets of supported locales in ICU.
892
+ *
893
+ * The returned UEnumeration must be closed by the caller.
894
+ *
895
+ * @param type Type choice from ULocAvailableType.
896
+ * @param status Set if an error occurred.
897
+ * @return a UEnumeration owned by the caller, or nullptr on failure.
898
+ * @stable ICU 65
899
+ */
900
+ U_CAPI UEnumeration* U_EXPORT2
901
+ uloc_openAvailableByType(ULocAvailableType type, UErrorCode* status);
902
+
903
+ /**
904
+ *
905
+ * Gets a list of all available 2-letter language codes defined in ISO 639,
906
+ * plus additional 3-letter codes determined to be useful for locale generation as
907
+ * defined by Unicode CLDR. This is a pointer
908
+ * to an array of pointers to arrays of char. All of these pointers are owned
909
+ * by ICU-- do not delete them, and do not write through them. The array is
910
+ * terminated with a null pointer.
911
+ * @return a list of all available language codes
912
+ * @stable ICU 2.0
913
+ */
914
+ U_CAPI const char* const* U_EXPORT2
915
+ uloc_getISOLanguages(void);
916
+
917
+ /**
918
+ *
919
+ * Gets a list of all available 2-letter country codes which are valid regular
920
+ * region codes in CLDR; these are based on the non-deprecated alpha-2 region
921
+ * codes in ISO 3166-1. The return value is a pointer to an array of pointers
922
+ * to C strings. All of these pointers are owned by ICU; do not delete them, and
923
+ * do not write through them. The array is terminated with a null pointer.
924
+ * @return a list of all available country codes
925
+ * @stable ICU 2.0
926
+ */
927
+ U_CAPI const char* const* U_EXPORT2
928
+ uloc_getISOCountries(void);
929
+
930
+ /**
931
+ * Truncate the locale ID string to get the parent locale ID.
932
+ * Copies the part of the string before the last underscore.
933
+ * The parent locale ID will be an empty string if there is no
934
+ * underscore, or if there is only one underscore at localeID[0].
935
+ *
936
+ * @param localeID Input locale ID string.
937
+ * @param parent Output string buffer for the parent locale ID.
938
+ * @param parentCapacity Size of the output buffer.
939
+ * @param err A UErrorCode value.
940
+ * @return The length of the parent locale ID.
941
+ * @stable ICU 2.0
942
+ */
943
+ U_CAPI int32_t U_EXPORT2
944
+ uloc_getParent(const char* localeID,
945
+ char* parent,
946
+ int32_t parentCapacity,
947
+ UErrorCode* err);
948
+
949
+
950
+
951
+
952
+ /**
953
+ * Gets the full name for the specified locale, like uloc_getName(),
954
+ * but without keywords.
955
+ *
956
+ * Note: This has the effect of 'canonicalizing' the string to
957
+ * a certain extent. Upper and lower case are set as needed,
958
+ * and if the components were in 'POSIX' format they are changed to
959
+ * ICU format. It does NOT map aliased names in any way.
960
+ * See the top of this header file.
961
+ *
962
+ * This API strips off the keyword part, so "de_DE\@collation=phonebook"
963
+ * will become "de_DE".
964
+ * This API supports preflighting.
965
+ *
966
+ * @param localeID the locale to get the full name with
967
+ * @param name fill in buffer for the name without keywords.
968
+ * @param nameCapacity capacity of the fill in buffer.
969
+ * @param err error information if retrieving the full name failed
970
+ * @return the actual buffer size needed for the full name. If it's greater
971
+ * than nameCapacity, the returned full name will be truncated.
972
+ * @stable ICU 2.8
973
+ */
974
+ U_CAPI int32_t U_EXPORT2
975
+ uloc_getBaseName(const char* localeID,
976
+ char* name,
977
+ int32_t nameCapacity,
978
+ UErrorCode* err);
979
+
980
+ /**
981
+ * Gets an enumeration of keywords for the specified locale. Enumeration
982
+ * must get disposed of by the client using uenum_close function.
983
+ *
984
+ * @param localeID the locale to get the variant code with
985
+ * @param status error information if retrieving the keywords failed
986
+ * @return enumeration of keywords or NULL if there are no keywords.
987
+ * @stable ICU 2.8
988
+ */
989
+ U_CAPI UEnumeration* U_EXPORT2
990
+ uloc_openKeywords(const char* localeID,
991
+ UErrorCode* status);
992
+
993
+ /**
994
+ * Get the value for a keyword. Locale name does not need to be normalized.
995
+ *
996
+ * @param localeID locale name containing the keyword ("de_DE@currency=EURO;collation=PHONEBOOK")
997
+ * @param keywordName name of the keyword for which we want the value; must not be
998
+ * NULL or empty, and must consist only of [A-Za-z0-9]. Case insensitive.
999
+ * @param buffer receiving buffer
1000
+ * @param bufferCapacity capacity of receiving buffer
1001
+ * @param status containing error code: e.g. buffer not big enough or ill-formed localeID
1002
+ * or keywordName parameters.
1003
+ * @return the length of keyword value
1004
+ * @stable ICU 2.8
1005
+ */
1006
+ U_CAPI int32_t U_EXPORT2
1007
+ uloc_getKeywordValue(const char* localeID,
1008
+ const char* keywordName,
1009
+ char* buffer, int32_t bufferCapacity,
1010
+ UErrorCode* status);
1011
+
1012
+
1013
+ /**
1014
+ * Sets or removes the value of the specified keyword.
1015
+ *
1016
+ * For removing all keywords, use uloc_getBaseName().
1017
+ *
1018
+ * NOTE: Unlike almost every other ICU function which takes a
1019
+ * buffer, this function will NOT truncate the output text, and will
1020
+ * not update the buffer with unterminated text setting a status of
1021
+ * U_STRING_NOT_TERMINATED_WARNING. If a BUFFER_OVERFLOW_ERROR is received,
1022
+ * it means a terminated version of the updated locale ID would not fit
1023
+ * in the buffer, and the original buffer is untouched. This is done to
1024
+ * prevent incorrect or possibly even malformed locales from being generated
1025
+ * and used.
1026
+ *
1027
+ * @param keywordName name of the keyword to be set; must not be
1028
+ * NULL or empty, and must consist only of [A-Za-z0-9]. Case insensitive.
1029
+ * @param keywordValue value of the keyword to be set. If 0-length or
1030
+ * NULL, will result in the keyword being removed; no error is given if
1031
+ * that keyword does not exist. Otherwise, must consist only of
1032
+ * [A-Za-z0-9] and [/_+-].
1033
+ * @param buffer input buffer containing well-formed locale ID to be
1034
+ * modified.
1035
+ * @param bufferCapacity capacity of receiving buffer
1036
+ * @param status containing error code: e.g. buffer not big enough
1037
+ * or ill-formed keywordName or keywordValue parameters, or ill-formed
1038
+ * locale ID in buffer on input.
1039
+ * @return the length needed for the buffer
1040
+ * @see uloc_getKeywordValue
1041
+ * @stable ICU 3.2
1042
+ */
1043
+ U_CAPI int32_t U_EXPORT2
1044
+ uloc_setKeywordValue(const char* keywordName,
1045
+ const char* keywordValue,
1046
+ char* buffer, int32_t bufferCapacity,
1047
+ UErrorCode* status);
1048
+
1049
+ /**
1050
+ * Returns whether the locale's script is written right-to-left.
1051
+ * If there is no script subtag, then the likely script is used, see uloc_addLikelySubtags().
1052
+ * If no likely script is known, then false is returned.
1053
+ *
1054
+ * A script is right-to-left according to the CLDR script metadata
1055
+ * which corresponds to whether the script's letters have Bidi_Class=R or AL.
1056
+ *
1057
+ * Returns true for "ar" and "en-Hebr", false for "zh" and "fa-Cyrl".
1058
+ *
1059
+ * @param locale input locale ID
1060
+ * @return true if the locale's script is written right-to-left
1061
+ * @stable ICU 54
1062
+ */
1063
+ U_CAPI UBool U_EXPORT2
1064
+ uloc_isRightToLeft(const char *locale);
1065
+
1066
+ /**
1067
+ * enums for the return value for the character and line orientation
1068
+ * functions.
1069
+ * @stable ICU 4.0
1070
+ */
1071
+ typedef enum {
1072
+ ULOC_LAYOUT_LTR = 0, /* left-to-right. */
1073
+ ULOC_LAYOUT_RTL = 1, /* right-to-left. */
1074
+ ULOC_LAYOUT_TTB = 2, /* top-to-bottom. */
1075
+ ULOC_LAYOUT_BTT = 3, /* bottom-to-top. */
1076
+ ULOC_LAYOUT_UNKNOWN
1077
+ } ULayoutType;
1078
+
1079
+ /**
1080
+ * Get the layout character orientation for the specified locale.
1081
+ *
1082
+ * @param localeId locale name
1083
+ * @param status Error status
1084
+ * @return an enum indicating the layout orientation for characters.
1085
+ * @stable ICU 4.0
1086
+ */
1087
+ U_CAPI ULayoutType U_EXPORT2
1088
+ uloc_getCharacterOrientation(const char* localeId,
1089
+ UErrorCode *status);
1090
+
1091
+ /**
1092
+ * Get the layout line orientation for the specified locale.
1093
+ *
1094
+ * @param localeId locale name
1095
+ * @param status Error status
1096
+ * @return an enum indicating the layout orientation for lines.
1097
+ * @stable ICU 4.0
1098
+ */
1099
+ U_CAPI ULayoutType U_EXPORT2
1100
+ uloc_getLineOrientation(const char* localeId,
1101
+ UErrorCode *status);
1102
+
1103
+ /**
1104
+ * Output values which uloc_acceptLanguage() writes to the 'outResult' parameter.
1105
+ *
1106
+ * @see uloc_acceptLanguageFromHTTP
1107
+ * @see uloc_acceptLanguage
1108
+ * @stable ICU 3.2
1109
+ */
1110
+ typedef enum {
1111
+ /**
1112
+ * No exact match was found.
1113
+ * @stable ICU 3.2
1114
+ */
1115
+ ULOC_ACCEPT_FAILED = 0,
1116
+ /**
1117
+ * An exact match was found.
1118
+ * @stable ICU 3.2
1119
+ */
1120
+ ULOC_ACCEPT_VALID = 1,
1121
+ /**
1122
+ * A fallback was found. For example, the Accept-Language list includes 'ja_JP'
1123
+ * and is matched with available locale 'ja'.
1124
+ * @stable ICU 3.2
1125
+ */
1126
+ ULOC_ACCEPT_FALLBACK = 2 /* */
1127
+ } UAcceptResult;
1128
+
1129
+ /**
1130
+ * Based on a HTTP header from a web browser and a list of available locales,
1131
+ * determine an acceptable locale for the user.
1132
+ *
1133
+ * This is a thin wrapper over C++ class LocaleMatcher.
1134
+ *
1135
+ * @param result - buffer to accept the result locale
1136
+ * @param resultAvailable the size of the result buffer.
1137
+ * @param outResult - An out parameter that contains the fallback status
1138
+ * @param httpAcceptLanguage - "Accept-Language:" header as per HTTP.
1139
+ * @param availableLocales - list of available locales to match
1140
+ * @param status ICU error code. Its input value must pass the U_SUCCESS() test,
1141
+ * or else the function returns immediately. Check for U_FAILURE()
1142
+ * on output or use with function chaining. (See User Guide for details.)
1143
+ * @return length needed for the locale.
1144
+ * @stable ICU 3.2
1145
+ */
1146
+ U_CAPI int32_t U_EXPORT2
1147
+ uloc_acceptLanguageFromHTTP(char *result, int32_t resultAvailable,
1148
+ UAcceptResult *outResult,
1149
+ const char *httpAcceptLanguage,
1150
+ UEnumeration* availableLocales,
1151
+ UErrorCode *status);
1152
+
1153
+ /**
1154
+ * Based on a list of available locales,
1155
+ * determine an acceptable locale for the user.
1156
+ *
1157
+ * This is a thin wrapper over C++ class LocaleMatcher.
1158
+ *
1159
+ * @param result - buffer to accept the result locale
1160
+ * @param resultAvailable the size of the result buffer.
1161
+ * @param outResult - An out parameter that contains the fallback status
1162
+ * @param acceptList - list of acceptable languages
1163
+ * @param acceptListCount - count of acceptList items
1164
+ * @param availableLocales - list of available locales to match
1165
+ * @param status ICU error code. Its input value must pass the U_SUCCESS() test,
1166
+ * or else the function returns immediately. Check for U_FAILURE()
1167
+ * on output or use with function chaining. (See User Guide for details.)
1168
+ * @return length needed for the locale.
1169
+ * @stable ICU 3.2
1170
+ */
1171
+ U_CAPI int32_t U_EXPORT2
1172
+ uloc_acceptLanguage(char *result, int32_t resultAvailable,
1173
+ UAcceptResult *outResult, const char **acceptList,
1174
+ int32_t acceptListCount,
1175
+ UEnumeration* availableLocales,
1176
+ UErrorCode *status);
1177
+
1178
+
1179
+ /**
1180
+ * Gets the ICU locale ID for the specified Win32 LCID value.
1181
+ *
1182
+ * @param hostID the Win32 LCID to translate
1183
+ * @param locale the output buffer for the ICU locale ID, which will be NUL-terminated
1184
+ * if there is room.
1185
+ * @param localeCapacity the size of the output buffer
1186
+ * @param status an error is returned if the LCID is unrecognized or the output buffer
1187
+ * is too small
1188
+ * @return actual the actual size of the locale ID, not including NUL-termination
1189
+ * @stable ICU 3.8
1190
+ */
1191
+ U_CAPI int32_t U_EXPORT2
1192
+ uloc_getLocaleForLCID(uint32_t hostID, char *locale, int32_t localeCapacity,
1193
+ UErrorCode *status);
1194
+
1195
+
1196
+ /**
1197
+ * Add the likely subtags for a provided locale ID, per the algorithm described
1198
+ * in the following CLDR technical report:
1199
+ *
1200
+ * http://www.unicode.org/reports/tr35/#Likely_Subtags
1201
+ *
1202
+ * If localeID is already in the maximal form, or there is no data available
1203
+ * for maximization, it will be copied to the output buffer. For example,
1204
+ * "sh" cannot be maximized, since there is no reasonable maximization.
1205
+ *
1206
+ * Examples:
1207
+ *
1208
+ * "und_Zzzz" maximizes to "en_Latn_US"
1209
+ *
1210
+ * "en" maximizes to "en_Latn_US"
1211
+ *
1212
+ * "de" maximizes to "de_Latn_DE"
1213
+ *
1214
+ * "sr" maximizes to "sr_Cyrl_RS"
1215
+ *
1216
+ * "zh_Hani" maximizes to "zh_Hani_CN"
1217
+ *
1218
+ *
1219
+ * @param localeID The locale to maximize
1220
+ * @param maximizedLocaleID The maximized locale
1221
+ * @param maximizedLocaleIDCapacity The capacity of the maximizedLocaleID buffer
1222
+ * @param err Error information if maximizing the locale failed. If the length
1223
+ * of the localeID and the null-terminator is greater than the maximum allowed size,
1224
+ * or the localeId is not well-formed, the error code is U_ILLEGAL_ARGUMENT_ERROR.
1225
+ * @return The actual buffer size needed for the maximized locale. If it's
1226
+ * greater than maximizedLocaleIDCapacity, the returned ID will be truncated.
1227
+ * On error, the return value is -1.
1228
+ * @stable ICU 4.0
1229
+ */
1230
+ U_CAPI int32_t U_EXPORT2
1231
+ uloc_addLikelySubtags(const char* localeID,
1232
+ char* maximizedLocaleID,
1233
+ int32_t maximizedLocaleIDCapacity,
1234
+ UErrorCode* err);
1235
+
1236
+
1237
+ /**
1238
+ * Minimize the subtags for a provided locale ID, per the algorithm described
1239
+ * in the following CLDR technical report:
1240
+ *
1241
+ * http://www.unicode.org/reports/tr35/#Likely_Subtags
1242
+ *
1243
+ * If localeID is already in the minimal form, or there is no data available
1244
+ * for minimization, it will be copied to the output buffer. Since the
1245
+ * minimization algorithm relies on proper maximization, see the comments
1246
+ * for uloc_addLikelySubtags for reasons why there might not be any data.
1247
+ *
1248
+ * Examples:
1249
+ *
1250
+ * "en_Latn_US" minimizes to "en"
1251
+ *
1252
+ * "de_Latn_US" minimizes to "de"
1253
+ *
1254
+ * "sr_Cyrl_RS" minimizes to "sr"
1255
+ *
1256
+ * "zh_Hant_TW" minimizes to "zh_TW" (The region is preferred to the
1257
+ * script, and minimizing to "zh" would imply "zh_Hans_CN".)
1258
+ *
1259
+ * @param localeID The locale to minimize
1260
+ * @param minimizedLocaleID The minimized locale
1261
+ * @param minimizedLocaleIDCapacity The capacity of the minimizedLocaleID buffer
1262
+ * @param err Error information if minimizing the locale failed. If the length
1263
+ * of the localeID and the null-terminator is greater than the maximum allowed size,
1264
+ * or the localeId is not well-formed, the error code is U_ILLEGAL_ARGUMENT_ERROR.
1265
+ * @return The actual buffer size needed for the minimized locale. If it's
1266
+ * greater than minimizedLocaleIDCapacity, the returned ID will be truncated.
1267
+ * On error, the return value is -1.
1268
+ * @stable ICU 4.0
1269
+ */
1270
+ U_CAPI int32_t U_EXPORT2
1271
+ uloc_minimizeSubtags(const char* localeID,
1272
+ char* minimizedLocaleID,
1273
+ int32_t minimizedLocaleIDCapacity,
1274
+ UErrorCode* err);
1275
+
1276
+ /**
1277
+ * Returns a locale ID for the specified BCP47 language tag string.
1278
+ * If the specified language tag contains any ill-formed subtags,
1279
+ * the first such subtag and all following subtags are ignored.
1280
+ * <p>
1281
+ * This implements the 'Language-Tag' production of BCP 47, and so
1282
+ * supports legacy language tags (marked as “Type: grandfathered” in BCP 47)
1283
+ * (regular and irregular) as well as private use language tags.
1284
+ *
1285
+ * Private use tags are represented as 'x-whatever',
1286
+ * and legacy tags are converted to their canonical replacements where they exist.
1287
+ *
1288
+ * Note that a few legacy tags have no modern replacement;
1289
+ * these will be converted using the fallback described in
1290
+ * the first paragraph, so some information might be lost.
1291
+ *
1292
+ * @param langtag the input BCP47 language tag.
1293
+ * @param localeID the output buffer receiving a locale ID for the
1294
+ * specified BCP47 language tag.
1295
+ * @param localeIDCapacity the size of the locale ID output buffer.
1296
+ * @param parsedLength if not NULL, successfully parsed length
1297
+ * for the input language tag is set.
1298
+ * @param err error information if receiving the locald ID
1299
+ * failed.
1300
+ * @return the length of the locale ID.
1301
+ * @stable ICU 4.2
1302
+ */
1303
+ U_CAPI int32_t U_EXPORT2
1304
+ uloc_forLanguageTag(const char* langtag,
1305
+ char* localeID,
1306
+ int32_t localeIDCapacity,
1307
+ int32_t* parsedLength,
1308
+ UErrorCode* err);
1309
+
1310
+ /**
1311
+ * Returns a well-formed language tag for this locale ID.
1312
+ * <p>
1313
+ * <b>Note</b>: When <code>strict</code> is false, any locale
1314
+ * fields which do not satisfy the BCP47 syntax requirement will
1315
+ * be omitted from the result. When <code>strict</code> is
1316
+ * true, this function sets U_ILLEGAL_ARGUMENT_ERROR to the
1317
+ * <code>err</code> if any locale fields do not satisfy the
1318
+ * BCP47 syntax requirement.
1319
+ * @param localeID the input locale ID
1320
+ * @param langtag the output buffer receiving BCP47 language
1321
+ * tag for the locale ID.
1322
+ * @param langtagCapacity the size of the BCP47 language tag
1323
+ * output buffer.
1324
+ * @param strict boolean value indicating if the function returns
1325
+ * an error for an ill-formed input locale ID.
1326
+ * @param err error information if receiving the language
1327
+ * tag failed.
1328
+ * @return The length of the BCP47 language tag.
1329
+ * @stable ICU 4.2
1330
+ */
1331
+ U_CAPI int32_t U_EXPORT2
1332
+ uloc_toLanguageTag(const char* localeID,
1333
+ char* langtag,
1334
+ int32_t langtagCapacity,
1335
+ UBool strict,
1336
+ UErrorCode* err);
1337
+
1338
+ /**
1339
+ * Converts the specified keyword (legacy key, or BCP 47 Unicode locale
1340
+ * extension key) to the equivalent BCP 47 Unicode locale extension key.
1341
+ * For example, BCP 47 Unicode locale extension key "co" is returned for
1342
+ * the input keyword "collation".
1343
+ * <p>
1344
+ * When the specified keyword is unknown, but satisfies the BCP syntax,
1345
+ * then the pointer to the input keyword itself will be returned.
1346
+ * For example,
1347
+ * <code>uloc_toUnicodeLocaleKey("ZZ")</code> returns "ZZ".
1348
+ *
1349
+ * @param keyword the input locale keyword (either legacy key
1350
+ * such as "collation" or BCP 47 Unicode locale extension
1351
+ * key such as "co").
1352
+ * @return the well-formed BCP 47 Unicode locale extension key,
1353
+ * or NULL if the specified locale keyword cannot be
1354
+ * mapped to a well-formed BCP 47 Unicode locale extension
1355
+ * key.
1356
+ * @see uloc_toLegacyKey
1357
+ * @stable ICU 54
1358
+ */
1359
+ U_CAPI const char* U_EXPORT2
1360
+ uloc_toUnicodeLocaleKey(const char* keyword);
1361
+
1362
+ /**
1363
+ * Converts the specified keyword value (legacy type, or BCP 47
1364
+ * Unicode locale extension type) to the well-formed BCP 47 Unicode locale
1365
+ * extension type for the specified keyword (category). For example, BCP 47
1366
+ * Unicode locale extension type "phonebk" is returned for the input
1367
+ * keyword value "phonebook", with the keyword "collation" (or "co").
1368
+ * <p>
1369
+ * When the specified keyword is not recognized, but the specified value
1370
+ * satisfies the syntax of the BCP 47 Unicode locale extension type,
1371
+ * or when the specified keyword allows 'variable' type and the specified
1372
+ * value satisfies the syntax, then the pointer to the input type value itself
1373
+ * will be returned.
1374
+ * For example,
1375
+ * <code>uloc_toUnicodeLocaleType("Foo", "Bar")</code> returns "Bar",
1376
+ * <code>uloc_toUnicodeLocaleType("variableTop", "00A4")</code> returns "00A4".
1377
+ *
1378
+ * @param keyword the locale keyword (either legacy key such as
1379
+ * "collation" or BCP 47 Unicode locale extension
1380
+ * key such as "co").
1381
+ * @param value the locale keyword value (either legacy type
1382
+ * such as "phonebook" or BCP 47 Unicode locale extension
1383
+ * type such as "phonebk").
1384
+ * @return the well-formed BCP47 Unicode locale extension type,
1385
+ * or NULL if the locale keyword value cannot be mapped to
1386
+ * a well-formed BCP 47 Unicode locale extension type.
1387
+ * @see uloc_toLegacyType
1388
+ * @stable ICU 54
1389
+ */
1390
+ U_CAPI const char* U_EXPORT2
1391
+ uloc_toUnicodeLocaleType(const char* keyword, const char* value);
1392
+
1393
+ /**
1394
+ * Converts the specified keyword (BCP 47 Unicode locale extension key, or
1395
+ * legacy key) to the legacy key. For example, legacy key "collation" is
1396
+ * returned for the input BCP 47 Unicode locale extension key "co".
1397
+ *
1398
+ * @param keyword the input locale keyword (either BCP 47 Unicode locale
1399
+ * extension key or legacy key).
1400
+ * @return the well-formed legacy key, or NULL if the specified
1401
+ * keyword cannot be mapped to a well-formed legacy key.
1402
+ * @see toUnicodeLocaleKey
1403
+ * @stable ICU 54
1404
+ */
1405
+ U_CAPI const char* U_EXPORT2
1406
+ uloc_toLegacyKey(const char* keyword);
1407
+
1408
+ /**
1409
+ * Converts the specified keyword value (BCP 47 Unicode locale extension type,
1410
+ * or legacy type or type alias) to the canonical legacy type. For example,
1411
+ * the legacy type "phonebook" is returned for the input BCP 47 Unicode
1412
+ * locale extension type "phonebk" with the keyword "collation" (or "co").
1413
+ * <p>
1414
+ * When the specified keyword is not recognized, but the specified value
1415
+ * satisfies the syntax of legacy key, or when the specified keyword
1416
+ * allows 'variable' type and the specified value satisfies the syntax,
1417
+ * then the pointer to the input type value itself will be returned.
1418
+ * For example,
1419
+ * <code>uloc_toLegacyType("Foo", "Bar")</code> returns "Bar",
1420
+ * <code>uloc_toLegacyType("vt", "00A4")</code> returns "00A4".
1421
+ *
1422
+ * @param keyword the locale keyword (either legacy keyword such as
1423
+ * "collation" or BCP 47 Unicode locale extension
1424
+ * key such as "co").
1425
+ * @param value the locale keyword value (either BCP 47 Unicode locale
1426
+ * extension type such as "phonebk" or legacy keyword value
1427
+ * such as "phonebook").
1428
+ * @return the well-formed legacy type, or NULL if the specified
1429
+ * keyword value cannot be mapped to a well-formed legacy
1430
+ * type.
1431
+ * @see toUnicodeLocaleType
1432
+ * @stable ICU 54
1433
+ */
1434
+ U_CAPI const char* U_EXPORT2
1435
+ uloc_toLegacyType(const char* keyword, const char* value);
1436
+
1437
+ #endif /*_ULOC*/