@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,1524 @@
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-2015, International Business Machines Corporation and others.
6
+ * All Rights Reserved.
7
+ * Modification History:
8
+ *
9
+ * Date Name Description
10
+ * 06/24/99 helena Integrated Alan's NF enhancements and Java2 bug fixes
11
+ *******************************************************************************
12
+ */
13
+
14
+ #ifndef _UNUM
15
+ #define _UNUM
16
+
17
+ #include <_foundation_unicode/utypes.h>
18
+
19
+ #if !UCONFIG_NO_FORMATTING
20
+
21
+ #include <_foundation_unicode/uloc.h>
22
+ #include <_foundation_unicode/ucurr.h>
23
+ #include <_foundation_unicode/umisc.h>
24
+ #include <_foundation_unicode/parseerr.h>
25
+ #include <_foundation_unicode/uformattable.h>
26
+ #include <_foundation_unicode/udisplaycontext.h>
27
+ #include <_foundation_unicode/ufieldpositer.h>
28
+ #include <_foundation_unicode/unumberoptions.h>
29
+
30
+ #if U_SHOW_CPLUSPLUS_API
31
+ #include <_foundation_unicode/localpointer.h>
32
+ #endif // U_SHOW_CPLUSPLUS_API
33
+
34
+ /**
35
+ * \file
36
+ * \brief C API: Compatibility APIs for number formatting.
37
+ *
38
+ * <h2> Number Format C API </h2>
39
+ *
40
+ * <p><strong>IMPORTANT:</strong> New users with are strongly encouraged to
41
+ * see if unumberformatter.h fits their use case. Although not deprecated,
42
+ * this header is provided for backwards compatibility only.
43
+ *
44
+ * Number Format C API Provides functions for
45
+ * formatting and parsing a number. Also provides methods for
46
+ * determining which locales have number formats, and what their names
47
+ * are.
48
+ * <P>
49
+ * UNumberFormat helps you to format and parse numbers for any locale.
50
+ * Your code can be completely independent of the locale conventions
51
+ * for decimal points, thousands-separators, or even the particular
52
+ * decimal digits used, or whether the number format is even decimal.
53
+ * There are different number format styles like decimal, currency,
54
+ * percent and spellout.
55
+ * <P>
56
+ * To format a number for the current Locale, use one of the static
57
+ * factory methods:
58
+ * <pre>
59
+ * \code
60
+ * UChar myString[20];
61
+ * double myNumber = 7.0;
62
+ * UErrorCode status = U_ZERO_ERROR;
63
+ * UNumberFormat* nf = unum_open(UNUM_DEFAULT, NULL, -1, NULL, NULL, &status);
64
+ * unum_formatDouble(nf, myNumber, myString, 20, NULL, &status);
65
+ * printf(" Example 1: %s\n", austrdup(myString) ); //austrdup( a function used to convert UChar* to char*)
66
+ * \endcode
67
+ * </pre>
68
+ * If you are formatting multiple numbers, it is more efficient to get
69
+ * the format and use it multiple times so that the system doesn't
70
+ * have to fetch the information about the local language and country
71
+ * conventions multiple times.
72
+ * <pre>
73
+ * \code
74
+ * uint32_t i, resultlength, reslenneeded;
75
+ * UErrorCode status = U_ZERO_ERROR;
76
+ * UFieldPosition pos;
77
+ * uint32_t a[] = { 123, 3333, -1234567 };
78
+ * const uint32_t a_len = sizeof(a) / sizeof(a[0]);
79
+ * UNumberFormat* nf;
80
+ * UChar* result = NULL;
81
+ *
82
+ * nf = unum_open(UNUM_DEFAULT, NULL, -1, NULL, NULL, &status);
83
+ * for (i = 0; i < a_len; i++) {
84
+ * resultlength=0;
85
+ * reslenneeded=unum_format(nf, a[i], NULL, resultlength, &pos, &status);
86
+ * result = NULL;
87
+ * if(status==U_BUFFER_OVERFLOW_ERROR){
88
+ * status=U_ZERO_ERROR;
89
+ * resultlength=reslenneeded+1;
90
+ * result=(UChar*)malloc(sizeof(UChar) * resultlength);
91
+ * unum_format(nf, a[i], result, resultlength, &pos, &status);
92
+ * }
93
+ * printf( " Example 2: %s\n", austrdup(result));
94
+ * free(result);
95
+ * }
96
+ * \endcode
97
+ * </pre>
98
+ * To format a number for a different Locale, specify it in the
99
+ * call to unum_open().
100
+ * <pre>
101
+ * \code
102
+ * UNumberFormat* nf = unum_open(UNUM_DEFAULT, NULL, -1, "fr_FR", NULL, &success)
103
+ * \endcode
104
+ * </pre>
105
+ * You can use a NumberFormat API unum_parse() to parse.
106
+ * <pre>
107
+ * \code
108
+ * UErrorCode status = U_ZERO_ERROR;
109
+ * int32_t pos=0;
110
+ * int32_t num;
111
+ * num = unum_parse(nf, str, u_strlen(str), &pos, &status);
112
+ * \endcode
113
+ * </pre>
114
+ * Use UNUM_DECIMAL to get the normal number format for that country.
115
+ * There are other static options available. Use UNUM_CURRENCY
116
+ * to get the currency number format for that country. Use UNUM_PERCENT
117
+ * to get a format for displaying percentages. With this format, a
118
+ * fraction from 0.53 is displayed as 53%.
119
+ * <P>
120
+ * Use a pattern to create either a DecimalFormat or a RuleBasedNumberFormat
121
+ * formatter. The pattern must conform to the syntax defined for those
122
+ * formatters.
123
+ * <P>
124
+ * You can also control the display of numbers with such function as
125
+ * unum_getAttributes() and unum_setAttributes(), which let you set the
126
+ * minimum fraction digits, grouping, etc.
127
+ * @see UNumberFormatAttributes for more details
128
+ * <P>
129
+ * You can also use forms of the parse and format methods with
130
+ * ParsePosition and UFieldPosition to allow you to:
131
+ * <ul type=round>
132
+ * <li>(a) progressively parse through pieces of a string.
133
+ * <li>(b) align the decimal point and other areas.
134
+ * </ul>
135
+ * <p>
136
+ * It is also possible to change or set the symbols used for a particular
137
+ * locale like the currency symbol, the grouping separator , monetary separator
138
+ * etc by making use of functions unum_setSymbols() and unum_getSymbols().
139
+ */
140
+
141
+ /** A number formatter.
142
+ * For usage in C programs.
143
+ * @stable ICU 2.0
144
+ */
145
+ typedef void* UNumberFormat;
146
+
147
+ /** The possible number format styles.
148
+ * @stable ICU 2.0
149
+ */
150
+ typedef enum UNumberFormatStyle {
151
+ /**
152
+ * Decimal format defined by a pattern string.
153
+ * @stable ICU 3.0
154
+ */
155
+ UNUM_PATTERN_DECIMAL=0,
156
+ /**
157
+ * Decimal format ("normal" style).
158
+ * @stable ICU 2.0
159
+ */
160
+ UNUM_DECIMAL=1,
161
+ /**
162
+ * Currency format (generic).
163
+ * Defaults to UNUM_CURRENCY_STANDARD style
164
+ * (using currency symbol, e.g., "$1.00", with non-accounting
165
+ * style for negative values e.g. using minus sign).
166
+ * The specific style may be specified using the -cf- locale key.
167
+ * @stable ICU 2.0
168
+ */
169
+ UNUM_CURRENCY=2,
170
+ /**
171
+ * Percent format
172
+ * @stable ICU 2.0
173
+ */
174
+ UNUM_PERCENT=3,
175
+ /**
176
+ * Scientific format
177
+ * @stable ICU 2.1
178
+ */
179
+ UNUM_SCIENTIFIC=4,
180
+ /**
181
+ * Spellout rule-based format. The default ruleset can be specified/changed using
182
+ * unum_setTextAttribute with UNUM_DEFAULT_RULESET; the available public rulesets
183
+ * can be listed using unum_getTextAttribute with UNUM_PUBLIC_RULESETS.
184
+ * @stable ICU 2.0
185
+ */
186
+ UNUM_SPELLOUT=5,
187
+ /**
188
+ * Ordinal rule-based format . The default ruleset can be specified/changed using
189
+ * unum_setTextAttribute with UNUM_DEFAULT_RULESET; the available public rulesets
190
+ * can be listed using unum_getTextAttribute with UNUM_PUBLIC_RULESETS.
191
+ * @stable ICU 3.0
192
+ */
193
+ UNUM_ORDINAL=6,
194
+ /**
195
+ * Duration rule-based format
196
+ * @stable ICU 3.0
197
+ */
198
+ UNUM_DURATION=7,
199
+ /**
200
+ * Numbering system rule-based format
201
+ * @stable ICU 4.2
202
+ */
203
+ UNUM_NUMBERING_SYSTEM=8,
204
+ /**
205
+ * Rule-based format defined by a pattern string.
206
+ * @stable ICU 3.0
207
+ */
208
+ UNUM_PATTERN_RULEBASED=9,
209
+ /**
210
+ * Currency format with an ISO currency code, e.g., "USD1.00".
211
+ * @stable ICU 4.8
212
+ */
213
+ UNUM_CURRENCY_ISO=10,
214
+ /**
215
+ * Currency format with a pluralized currency name,
216
+ * e.g., "1.00 US dollar" and "3.00 US dollars".
217
+ * @stable ICU 4.8
218
+ */
219
+ UNUM_CURRENCY_PLURAL=11,
220
+ /**
221
+ * Currency format for accounting, e.g., "($3.00)" for
222
+ * negative currency amount instead of "-$3.00" ({@link #UNUM_CURRENCY}).
223
+ * Overrides any style specified using -cf- key in locale.
224
+ * @stable ICU 53
225
+ */
226
+ UNUM_CURRENCY_ACCOUNTING=12,
227
+ /**
228
+ * Currency format with a currency symbol given CASH usage, e.g.,
229
+ * "NT$3" instead of "NT$3.23".
230
+ * @stable ICU 54
231
+ */
232
+ UNUM_CASH_CURRENCY=13,
233
+ /**
234
+ * Decimal format expressed using compact notation
235
+ * (short form, corresponds to UNumberCompactStyle=UNUM_SHORT)
236
+ * e.g. "23K", "45B"
237
+ * @stable ICU 56
238
+ */
239
+ UNUM_DECIMAL_COMPACT_SHORT=14,
240
+ /**
241
+ * Decimal format expressed using compact notation
242
+ * (long form, corresponds to UNumberCompactStyle=UNUM_LONG)
243
+ * e.g. "23 thousand", "45 billion"
244
+ * @stable ICU 56
245
+ */
246
+ UNUM_DECIMAL_COMPACT_LONG=15,
247
+ /**
248
+ * Currency format with a currency symbol, e.g., "$1.00",
249
+ * using non-accounting style for negative values (e.g. minus sign).
250
+ * Overrides any style specified using -cf- key in locale.
251
+ * @stable ICU 56
252
+ */
253
+ UNUM_CURRENCY_STANDARD=16,
254
+
255
+ #ifndef U_HIDE_DEPRECATED_API
256
+ /**
257
+ * One more than the highest normal UNumberFormatStyle value.
258
+ * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
259
+ */
260
+ UNUM_FORMAT_STYLE_COUNT=17,
261
+ #endif /* U_HIDE_DEPRECATED_API */
262
+
263
+ /**
264
+ * Default format
265
+ * @stable ICU 2.0
266
+ */
267
+ UNUM_DEFAULT = UNUM_DECIMAL,
268
+ /**
269
+ * Alias for UNUM_PATTERN_DECIMAL
270
+ * @stable ICU 3.0
271
+ */
272
+ UNUM_IGNORE = UNUM_PATTERN_DECIMAL
273
+ } UNumberFormatStyle;
274
+
275
+ /** The possible number format pad positions.
276
+ * @stable ICU 2.0
277
+ */
278
+ typedef enum UNumberFormatPadPosition {
279
+ UNUM_PAD_BEFORE_PREFIX,
280
+ UNUM_PAD_AFTER_PREFIX,
281
+ UNUM_PAD_BEFORE_SUFFIX,
282
+ UNUM_PAD_AFTER_SUFFIX
283
+ } UNumberFormatPadPosition;
284
+
285
+ /**
286
+ * Constants for specifying short or long format.
287
+ * @stable ICU 51
288
+ */
289
+ typedef enum UNumberCompactStyle {
290
+ /** @stable ICU 51 */
291
+ UNUM_SHORT,
292
+ /** @stable ICU 51 */
293
+ UNUM_LONG
294
+ /** @stable ICU 51 */
295
+ } UNumberCompactStyle;
296
+
297
+ /**
298
+ * Constants for specifying currency spacing
299
+ * @stable ICU 4.8
300
+ */
301
+ enum UCurrencySpacing {
302
+ /** @stable ICU 4.8 */
303
+ UNUM_CURRENCY_MATCH,
304
+ /** @stable ICU 4.8 */
305
+ UNUM_CURRENCY_SURROUNDING_MATCH,
306
+ /** @stable ICU 4.8 */
307
+ UNUM_CURRENCY_INSERT,
308
+
309
+ /* Do not conditionalize the following with #ifndef U_HIDE_DEPRECATED_API,
310
+ * it is needed for layout of DecimalFormatSymbols object. */
311
+ #ifndef U_FORCE_HIDE_DEPRECATED_API
312
+ /**
313
+ * One more than the highest normal UCurrencySpacing value.
314
+ * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
315
+ */
316
+ UNUM_CURRENCY_SPACING_COUNT
317
+ #endif // U_FORCE_HIDE_DEPRECATED_API
318
+ };
319
+ typedef enum UCurrencySpacing UCurrencySpacing; /**< @stable ICU 4.8 */
320
+
321
+
322
+ /**
323
+ * FieldPosition and UFieldPosition selectors for format fields
324
+ * defined by NumberFormat and UNumberFormat.
325
+ * @stable ICU 49
326
+ */
327
+ typedef enum UNumberFormatFields {
328
+ /** @stable ICU 49 */
329
+ UNUM_INTEGER_FIELD,
330
+ /** @stable ICU 49 */
331
+ UNUM_FRACTION_FIELD,
332
+ /** @stable ICU 49 */
333
+ UNUM_DECIMAL_SEPARATOR_FIELD,
334
+ /** @stable ICU 49 */
335
+ UNUM_EXPONENT_SYMBOL_FIELD,
336
+ /** @stable ICU 49 */
337
+ UNUM_EXPONENT_SIGN_FIELD,
338
+ /** @stable ICU 49 */
339
+ UNUM_EXPONENT_FIELD,
340
+ /** @stable ICU 49 */
341
+ UNUM_GROUPING_SEPARATOR_FIELD,
342
+ /** @stable ICU 49 */
343
+ UNUM_CURRENCY_FIELD,
344
+ /** @stable ICU 49 */
345
+ UNUM_PERCENT_FIELD,
346
+ /** @stable ICU 49 */
347
+ UNUM_PERMILL_FIELD,
348
+ /** @stable ICU 49 */
349
+ UNUM_SIGN_FIELD,
350
+ /** @stable ICU 64 */
351
+ UNUM_MEASURE_UNIT_FIELD,
352
+ /** @stable ICU 64 */
353
+ UNUM_COMPACT_FIELD,
354
+ /**
355
+ * Approximately sign. In ICU 70, this was categorized under the generic SIGN field.
356
+ * @stable ICU 71
357
+ */
358
+ UNUM_APPROXIMATELY_SIGN_FIELD,
359
+
360
+ #ifndef U_HIDE_DEPRECATED_API
361
+ /**
362
+ * One more than the highest normal UNumberFormatFields value.
363
+ * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
364
+ */
365
+ UNUM_FIELD_COUNT
366
+ #endif /* U_HIDE_DEPRECATED_API */
367
+ } UNumberFormatFields;
368
+
369
+
370
+ /**
371
+ * Selectors with special numeric values to use locale default minimum grouping
372
+ * digits for the DecimalFormat/UNumberFormat setMinimumGroupingDigits method.
373
+ * Do not use these constants with the [U]NumberFormatter API.
374
+ *
375
+ * @stable ICU 68
376
+ */
377
+ typedef enum UNumberFormatMinimumGroupingDigits {
378
+ /**
379
+ * Display grouping using the default strategy for all locales.
380
+ * @stable ICU 68
381
+ */
382
+ UNUM_MINIMUM_GROUPING_DIGITS_AUTO = -2,
383
+ /**
384
+ * Display grouping using locale defaults, except do not show grouping on
385
+ * values smaller than 10000 (such that there is a minimum of two digits
386
+ * before the first separator).
387
+ * @stable ICU 68
388
+ */
389
+ UNUM_MINIMUM_GROUPING_DIGITS_MIN2 = -3,
390
+ } UNumberFormatMinimumGroupingDigits;
391
+
392
+ /**
393
+ * Create and return a new UNumberFormat for formatting and parsing
394
+ * numbers. A UNumberFormat may be used to format numbers by calling
395
+ * {@link #unum_format }, and to parse numbers by calling {@link #unum_parse }.
396
+ * The caller must call {@link #unum_close } when done to release resources
397
+ * used by this object.
398
+ * @param style The type of number format to open: one of
399
+ * UNUM_DECIMAL, UNUM_CURRENCY, UNUM_PERCENT, UNUM_SCIENTIFIC,
400
+ * UNUM_CURRENCY_ISO, UNUM_CURRENCY_PLURAL, UNUM_SPELLOUT,
401
+ * UNUM_ORDINAL, UNUM_DURATION, UNUM_NUMBERING_SYSTEM,
402
+ * UNUM_PATTERN_DECIMAL, UNUM_PATTERN_RULEBASED, or UNUM_DEFAULT.
403
+ * If UNUM_PATTERN_DECIMAL or UNUM_PATTERN_RULEBASED is passed then the
404
+ * number format is opened using the given pattern, which must conform
405
+ * to the syntax described in DecimalFormat or RuleBasedNumberFormat,
406
+ * respectively.
407
+ *
408
+ * <p><strong>NOTE::</strong> New users with are strongly encouraged to
409
+ * use unumf_openForSkeletonAndLocale instead of unum_open.
410
+ *
411
+ * @param pattern A pattern specifying the format to use.
412
+ * This parameter is ignored unless the style is
413
+ * UNUM_PATTERN_DECIMAL or UNUM_PATTERN_RULEBASED.
414
+ * @param patternLength The number of characters in the pattern, or -1
415
+ * if null-terminated. This parameter is ignored unless the style is
416
+ * UNUM_PATTERN.
417
+ * @param locale A locale identifier to use to determine formatting
418
+ * and parsing conventions, or NULL to use the default locale.
419
+ * @param parseErr A pointer to a UParseError struct to receive the
420
+ * details of any parsing errors, or NULL if no parsing error details
421
+ * are desired.
422
+ * @param status A pointer to an input-output UErrorCode.
423
+ * @return A pointer to a newly created UNumberFormat, or NULL if an
424
+ * error occurred.
425
+ * @see unum_close
426
+ * @see DecimalFormat
427
+ * @stable ICU 2.0
428
+ */
429
+ U_CAPI UNumberFormat* U_EXPORT2
430
+ unum_open( UNumberFormatStyle style,
431
+ const UChar* pattern,
432
+ int32_t patternLength,
433
+ const char* locale,
434
+ UParseError* parseErr,
435
+ UErrorCode* status);
436
+
437
+
438
+ /**
439
+ * Close a UNumberFormat.
440
+ * Once closed, a UNumberFormat may no longer be used.
441
+ * @param fmt The formatter to close.
442
+ * @stable ICU 2.0
443
+ */
444
+ U_CAPI void U_EXPORT2
445
+ unum_close(UNumberFormat* fmt);
446
+
447
+ #if U_SHOW_CPLUSPLUS_API
448
+
449
+ U_NAMESPACE_BEGIN
450
+
451
+ /**
452
+ * \class LocalUNumberFormatPointer
453
+ * "Smart pointer" class, closes a UNumberFormat via unum_close().
454
+ * For most methods see the LocalPointerBase base class.
455
+ *
456
+ * @see LocalPointerBase
457
+ * @see LocalPointer
458
+ * @stable ICU 4.4
459
+ */
460
+ U_DEFINE_LOCAL_OPEN_POINTER(LocalUNumberFormatPointer, UNumberFormat, unum_close);
461
+
462
+ U_NAMESPACE_END
463
+
464
+ #endif
465
+
466
+ /**
467
+ * Open a copy of a UNumberFormat.
468
+ * This function performs a deep copy.
469
+ * @param fmt The format to copy
470
+ * @param status A pointer to an UErrorCode to receive any errors.
471
+ * @return A pointer to a UNumberFormat identical to fmt.
472
+ * @stable ICU 2.0
473
+ */
474
+ U_CAPI UNumberFormat* U_EXPORT2
475
+ unum_clone(const UNumberFormat *fmt,
476
+ UErrorCode *status);
477
+
478
+ /**
479
+ * Format an integer using a UNumberFormat.
480
+ * The integer will be formatted according to the UNumberFormat's locale.
481
+ * @param fmt The formatter to use.
482
+ * @param number The number to format.
483
+ * @param result A pointer to a buffer to receive the NULL-terminated formatted number. If
484
+ * the formatted number fits into dest but cannot be NULL-terminated (length == resultLength)
485
+ * then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number
486
+ * doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR.
487
+ * @param resultLength The maximum size of result.
488
+ * @param pos A pointer to a UFieldPosition. On input, position->field
489
+ * is read. On output, position->beginIndex and position->endIndex indicate
490
+ * the beginning and ending indices of field number position->field, if such
491
+ * a field exists. This parameter may be NULL, in which case no field
492
+ * @param status A pointer to an UErrorCode to receive any errors
493
+ * @return The total buffer size needed; if greater than resultLength, the output was truncated.
494
+ * @see unum_formatInt64
495
+ * @see unum_formatDouble
496
+ * @see unum_parse
497
+ * @see unum_parseInt64
498
+ * @see unum_parseDouble
499
+ * @see UFieldPosition
500
+ * @stable ICU 2.0
501
+ */
502
+ U_CAPI int32_t U_EXPORT2
503
+ unum_format( const UNumberFormat* fmt,
504
+ int32_t number,
505
+ UChar* result,
506
+ int32_t resultLength,
507
+ UFieldPosition *pos,
508
+ UErrorCode* status);
509
+
510
+ /**
511
+ * Format an int64 using a UNumberFormat.
512
+ * The int64 will be formatted according to the UNumberFormat's locale.
513
+ * @param fmt The formatter to use.
514
+ * @param number The number to format.
515
+ * @param result A pointer to a buffer to receive the NULL-terminated formatted number. If
516
+ * the formatted number fits into dest but cannot be NULL-terminated (length == resultLength)
517
+ * then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number
518
+ * doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR.
519
+ * @param resultLength The maximum size of result.
520
+ * @param pos A pointer to a UFieldPosition. On input, position->field
521
+ * is read. On output, position->beginIndex and position->endIndex indicate
522
+ * the beginning and ending indices of field number position->field, if such
523
+ * a field exists. This parameter may be NULL, in which case no field
524
+ * @param status A pointer to an UErrorCode to receive any errors
525
+ * @return The total buffer size needed; if greater than resultLength, the output was truncated.
526
+ * @see unum_format
527
+ * @see unum_formatDouble
528
+ * @see unum_parse
529
+ * @see unum_parseInt64
530
+ * @see unum_parseDouble
531
+ * @see UFieldPosition
532
+ * @stable ICU 2.0
533
+ */
534
+ U_CAPI int32_t U_EXPORT2
535
+ unum_formatInt64(const UNumberFormat *fmt,
536
+ int64_t number,
537
+ UChar* result,
538
+ int32_t resultLength,
539
+ UFieldPosition *pos,
540
+ UErrorCode* status);
541
+
542
+ /**
543
+ * Format a double using a UNumberFormat.
544
+ * The double will be formatted according to the UNumberFormat's locale.
545
+ * @param fmt The formatter to use.
546
+ * @param number The number to format.
547
+ * @param result A pointer to a buffer to receive the NULL-terminated formatted number. If
548
+ * the formatted number fits into dest but cannot be NULL-terminated (length == resultLength)
549
+ * then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number
550
+ * doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR.
551
+ * @param resultLength The maximum size of result.
552
+ * @param pos A pointer to a UFieldPosition. On input, position->field
553
+ * is read. On output, position->beginIndex and position->endIndex indicate
554
+ * the beginning and ending indices of field number position->field, if such
555
+ * a field exists. This parameter may be NULL, in which case no field
556
+ * @param status A pointer to an UErrorCode to receive any errors
557
+ * @return The total buffer size needed; if greater than resultLength, the output was truncated.
558
+ * @see unum_format
559
+ * @see unum_formatInt64
560
+ * @see unum_parse
561
+ * @see unum_parseInt64
562
+ * @see unum_parseDouble
563
+ * @see UFieldPosition
564
+ * @stable ICU 2.0
565
+ */
566
+ U_CAPI int32_t U_EXPORT2
567
+ unum_formatDouble( const UNumberFormat* fmt,
568
+ double number,
569
+ UChar* result,
570
+ int32_t resultLength,
571
+ UFieldPosition *pos, /* 0 if ignore */
572
+ UErrorCode* status);
573
+
574
+ /**
575
+ * Format a double using a UNumberFormat according to the UNumberFormat's locale,
576
+ * and initialize a UFieldPositionIterator that enumerates the subcomponents of
577
+ * the resulting string.
578
+ *
579
+ * @param format
580
+ * The formatter to use.
581
+ * @param number
582
+ * The number to format.
583
+ * @param result
584
+ * A pointer to a buffer to receive the NULL-terminated formatted
585
+ * number. If the formatted number fits into dest but cannot be
586
+ * NULL-terminated (length == resultLength) then the error code is set
587
+ * to U_STRING_NOT_TERMINATED_WARNING. If the formatted number doesn't
588
+ * fit into result then the error code is set to
589
+ * U_BUFFER_OVERFLOW_ERROR.
590
+ * @param resultLength
591
+ * The maximum size of result.
592
+ * @param fpositer
593
+ * A pointer to a UFieldPositionIterator created by {@link #ufieldpositer_open}
594
+ * (may be NULL if field position information is not needed, but in this
595
+ * case it's preferable to use {@link #unum_formatDouble}). Iteration
596
+ * information already present in the UFieldPositionIterator is deleted,
597
+ * and the iterator is reset to apply to the fields in the formatted
598
+ * string created by this function call. The field values and indexes
599
+ * returned by {@link #ufieldpositer_next} represent fields denoted by
600
+ * the UNumberFormatFields enum. Fields are not returned in a guaranteed
601
+ * order. Fields cannot overlap, but they may nest. For example, 1234
602
+ * could format as "1,234" which might consist of a grouping separator
603
+ * field for ',' and an integer field encompassing the entire string.
604
+ * @param status
605
+ * A pointer to an UErrorCode to receive any errors
606
+ * @return
607
+ * The total buffer size needed; if greater than resultLength, the
608
+ * output was truncated.
609
+ * @see unum_formatDouble
610
+ * @see unum_parse
611
+ * @see unum_parseDouble
612
+ * @see UFieldPositionIterator
613
+ * @see UNumberFormatFields
614
+ * @stable ICU 59
615
+ */
616
+ U_CAPI int32_t U_EXPORT2
617
+ unum_formatDoubleForFields(const UNumberFormat* format,
618
+ double number,
619
+ UChar* result,
620
+ int32_t resultLength,
621
+ UFieldPositionIterator* fpositer,
622
+ UErrorCode* status);
623
+
624
+
625
+ /**
626
+ * Format a decimal number using a UNumberFormat.
627
+ * The number will be formatted according to the UNumberFormat's locale.
628
+ * The syntax of the input number is a "numeric string"
629
+ * as defined in the Decimal Arithmetic Specification, available at
630
+ * http://speleotrove.com/decimal
631
+ * @param fmt The formatter to use.
632
+ * @param number The number to format.
633
+ * @param length The length of the input number, or -1 if the input is nul-terminated.
634
+ * @param result A pointer to a buffer to receive the NULL-terminated formatted number. If
635
+ * the formatted number fits into dest but cannot be NULL-terminated (length == resultLength)
636
+ * then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number
637
+ * doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR.
638
+ * @param resultLength The maximum size of result.
639
+ * @param pos A pointer to a UFieldPosition. On input, position->field
640
+ * is read. On output, position->beginIndex and position->endIndex indicate
641
+ * the beginning and ending indices of field number position->field, if such
642
+ * a field exists. This parameter may be NULL, in which case it is ignored.
643
+ * @param status A pointer to an UErrorCode to receive any errors
644
+ * @return The total buffer size needed; if greater than resultLength, the output was truncated.
645
+ * @see unum_format
646
+ * @see unum_formatInt64
647
+ * @see unum_parse
648
+ * @see unum_parseInt64
649
+ * @see unum_parseDouble
650
+ * @see UFieldPosition
651
+ * @stable ICU 4.4
652
+ */
653
+ U_CAPI int32_t U_EXPORT2
654
+ unum_formatDecimal( const UNumberFormat* fmt,
655
+ const char * number,
656
+ int32_t length,
657
+ UChar* result,
658
+ int32_t resultLength,
659
+ UFieldPosition *pos, /* 0 if ignore */
660
+ UErrorCode* status);
661
+
662
+ /**
663
+ * Format a double currency amount using a UNumberFormat.
664
+ * The double will be formatted according to the UNumberFormat's locale.
665
+ *
666
+ * To format an exact decimal value with a currency, use
667
+ * `unum_setTextAttribute(UNUM_CURRENCY_CODE, ...)` followed by unum_formatDecimal.
668
+ * Your UNumberFormat must be created with the UNUM_CURRENCY style. Alternatively,
669
+ * consider using unumf_openForSkeletonAndLocale.
670
+ *
671
+ * @param fmt the formatter to use
672
+ * @param number the number to format
673
+ * @param currency the 3-letter null-terminated ISO 4217 currency code
674
+ * @param result A pointer to a buffer to receive the NULL-terminated formatted number. If
675
+ * the formatted number fits into dest but cannot be NULL-terminated (length == resultLength)
676
+ * then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number
677
+ * doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR.
678
+ * @param resultLength the maximum number of UChars to write to result
679
+ * @param pos a pointer to a UFieldPosition. On input,
680
+ * position->field is read. On output, position->beginIndex and
681
+ * position->endIndex indicate the beginning and ending indices of
682
+ * field number position->field, if such a field exists. This
683
+ * parameter may be NULL, in which case it is ignored.
684
+ * @param status a pointer to an input-output UErrorCode
685
+ * @return the total buffer size needed; if greater than resultLength,
686
+ * the output was truncated.
687
+ * @see unum_formatDouble
688
+ * @see unum_parseDoubleCurrency
689
+ * @see UFieldPosition
690
+ * @stable ICU 3.0
691
+ */
692
+ U_CAPI int32_t U_EXPORT2
693
+ unum_formatDoubleCurrency(const UNumberFormat* fmt,
694
+ double number,
695
+ UChar* currency,
696
+ UChar* result,
697
+ int32_t resultLength,
698
+ UFieldPosition* pos,
699
+ UErrorCode* status);
700
+
701
+ /**
702
+ * Format a UFormattable into a string.
703
+ * @param fmt the formatter to use
704
+ * @param number the number to format, as a UFormattable
705
+ * @param result A pointer to a buffer to receive the NULL-terminated formatted number. If
706
+ * the formatted number fits into dest but cannot be NULL-terminated (length == resultLength)
707
+ * then the error code is set to U_STRING_NOT_TERMINATED_WARNING. If the formatted number
708
+ * doesn't fit into result then the error code is set to U_BUFFER_OVERFLOW_ERROR.
709
+ * @param resultLength the maximum number of UChars to write to result
710
+ * @param pos a pointer to a UFieldPosition. On input,
711
+ * position->field is read. On output, position->beginIndex and
712
+ * position->endIndex indicate the beginning and ending indices of
713
+ * field number position->field, if such a field exists. This
714
+ * parameter may be NULL, in which case it is ignored.
715
+ * @param status a pointer to an input-output UErrorCode
716
+ * @return the total buffer size needed; if greater than resultLength,
717
+ * the output was truncated. Will return 0 on error.
718
+ * @see unum_parseToUFormattable
719
+ * @stable ICU 52
720
+ */
721
+ U_CAPI int32_t U_EXPORT2
722
+ unum_formatUFormattable(const UNumberFormat* fmt,
723
+ const UFormattable *number,
724
+ UChar *result,
725
+ int32_t resultLength,
726
+ UFieldPosition *pos,
727
+ UErrorCode *status);
728
+
729
+ /**
730
+ * Parse a string into an integer using a UNumberFormat.
731
+ * The string will be parsed according to the UNumberFormat's locale.
732
+ * Note: parsing is not supported for styles UNUM_DECIMAL_COMPACT_SHORT
733
+ * and UNUM_DECIMAL_COMPACT_LONG.
734
+ * @param fmt The formatter to use.
735
+ * @param text The text to parse.
736
+ * @param textLength The length of text, or -1 if null-terminated.
737
+ * @param parsePos If not NULL, on input a pointer to an integer specifying the offset at which
738
+ * to begin parsing. If not NULL, on output the offset at which parsing ended.
739
+ * @param status A pointer to an UErrorCode to receive any errors
740
+ * @return The value of the parsed integer
741
+ * @see unum_parseInt64
742
+ * @see unum_parseDouble
743
+ * @see unum_format
744
+ * @see unum_formatInt64
745
+ * @see unum_formatDouble
746
+ * @stable ICU 2.0
747
+ */
748
+ U_CAPI int32_t U_EXPORT2
749
+ unum_parse( const UNumberFormat* fmt,
750
+ const UChar* text,
751
+ int32_t textLength,
752
+ int32_t *parsePos /* 0 = start */,
753
+ UErrorCode *status);
754
+
755
+ /**
756
+ * Parse a string into an int64 using a UNumberFormat.
757
+ * The string will be parsed according to the UNumberFormat's locale.
758
+ * Note: parsing is not supported for styles UNUM_DECIMAL_COMPACT_SHORT
759
+ * and UNUM_DECIMAL_COMPACT_LONG.
760
+ * @param fmt The formatter to use.
761
+ * @param text The text to parse.
762
+ * @param textLength The length of text, or -1 if null-terminated.
763
+ * @param parsePos If not NULL, on input a pointer to an integer specifying the offset at which
764
+ * to begin parsing. If not NULL, on output the offset at which parsing ended.
765
+ * @param status A pointer to an UErrorCode to receive any errors
766
+ * @return The value of the parsed integer
767
+ * @see unum_parse
768
+ * @see unum_parseDouble
769
+ * @see unum_format
770
+ * @see unum_formatInt64
771
+ * @see unum_formatDouble
772
+ * @stable ICU 2.8
773
+ */
774
+ U_CAPI int64_t U_EXPORT2
775
+ unum_parseInt64(const UNumberFormat* fmt,
776
+ const UChar* text,
777
+ int32_t textLength,
778
+ int32_t *parsePos /* 0 = start */,
779
+ UErrorCode *status);
780
+
781
+ /**
782
+ * Parse a string into a double using a UNumberFormat.
783
+ * The string will be parsed according to the UNumberFormat's locale.
784
+ * Note: parsing is not supported for styles UNUM_DECIMAL_COMPACT_SHORT
785
+ * and UNUM_DECIMAL_COMPACT_LONG.
786
+ * @param fmt The formatter to use.
787
+ * @param text The text to parse.
788
+ * @param textLength The length of text, or -1 if null-terminated.
789
+ * @param parsePos If not NULL, on input a pointer to an integer specifying the offset at which
790
+ * to begin parsing. If not NULL, on output the offset at which parsing ended.
791
+ * @param status A pointer to an UErrorCode to receive any errors
792
+ * @return The value of the parsed double
793
+ * @see unum_parse
794
+ * @see unum_parseInt64
795
+ * @see unum_format
796
+ * @see unum_formatInt64
797
+ * @see unum_formatDouble
798
+ * @stable ICU 2.0
799
+ */
800
+ U_CAPI double U_EXPORT2
801
+ unum_parseDouble( const UNumberFormat* fmt,
802
+ const UChar* text,
803
+ int32_t textLength,
804
+ int32_t *parsePos /* 0 = start */,
805
+ UErrorCode *status);
806
+
807
+
808
+ /**
809
+ * Parse a number from a string into an unformatted numeric string using a UNumberFormat.
810
+ * The input string will be parsed according to the UNumberFormat's locale.
811
+ * The syntax of the output is a "numeric string"
812
+ * as defined in the Decimal Arithmetic Specification, available at
813
+ * http://speleotrove.com/decimal
814
+ * Note: parsing is not supported for styles UNUM_DECIMAL_COMPACT_SHORT
815
+ * and UNUM_DECIMAL_COMPACT_LONG.
816
+ * @param fmt The formatter to use.
817
+ * @param text The text to parse.
818
+ * @param textLength The length of text, or -1 if null-terminated.
819
+ * @param parsePos If not NULL, on input a pointer to an integer specifying the offset at which
820
+ * to begin parsing. If not NULL, on output the offset at which parsing ended.
821
+ * @param outBuf A (char *) buffer to receive the parsed number as a string. The output string
822
+ * will be nul-terminated if there is sufficient space.
823
+ * @param outBufLength The size of the output buffer. May be zero, in which case
824
+ * the outBuf pointer may be NULL, and the function will return the
825
+ * size of the output string.
826
+ * @param status A pointer to an UErrorCode to receive any errors
827
+ * @return the length of the output string, not including any terminating nul.
828
+ * @see unum_parse
829
+ * @see unum_parseInt64
830
+ * @see unum_format
831
+ * @see unum_formatInt64
832
+ * @see unum_formatDouble
833
+ * @stable ICU 4.4
834
+ */
835
+ U_CAPI int32_t U_EXPORT2
836
+ unum_parseDecimal(const UNumberFormat* fmt,
837
+ const UChar* text,
838
+ int32_t textLength,
839
+ int32_t *parsePos /* 0 = start */,
840
+ char *outBuf,
841
+ int32_t outBufLength,
842
+ UErrorCode *status);
843
+
844
+ /**
845
+ * Parse a string into a double and a currency using a UNumberFormat.
846
+ * The string will be parsed according to the UNumberFormat's locale.
847
+ * @param fmt the formatter to use
848
+ * @param text the text to parse
849
+ * @param textLength the length of text, or -1 if null-terminated
850
+ * @param parsePos a pointer to an offset index into text at which to
851
+ * begin parsing. On output, *parsePos will point after the last
852
+ * parsed character. This parameter may be NULL, in which case parsing
853
+ * begins at offset 0.
854
+ * @param currency a pointer to the buffer to receive the parsed null-
855
+ * terminated currency. This buffer must have a capacity of at least
856
+ * 4 UChars.
857
+ * @param status a pointer to an input-output UErrorCode
858
+ * @return the parsed double
859
+ * @see unum_parseDouble
860
+ * @see unum_formatDoubleCurrency
861
+ * @stable ICU 3.0
862
+ */
863
+ U_CAPI double U_EXPORT2
864
+ unum_parseDoubleCurrency(const UNumberFormat* fmt,
865
+ const UChar* text,
866
+ int32_t textLength,
867
+ int32_t* parsePos, /* 0 = start */
868
+ UChar* currency,
869
+ UErrorCode* status);
870
+
871
+ /**
872
+ * Parse a UChar string into a UFormattable.
873
+ * Example code:
874
+ * \snippet test/cintltst/cnumtst.c unum_parseToUFormattable
875
+ * Note: parsing is not supported for styles UNUM_DECIMAL_COMPACT_SHORT
876
+ * and UNUM_DECIMAL_COMPACT_LONG.
877
+ * @param fmt the formatter to use
878
+ * @param result the UFormattable to hold the result. If NULL, a new UFormattable will be allocated (which the caller must close with ufmt_close).
879
+ * @param text the text to parse
880
+ * @param textLength the length of text, or -1 if null-terminated
881
+ * @param parsePos a pointer to an offset index into text at which to
882
+ * begin parsing. On output, *parsePos will point after the last
883
+ * parsed character. This parameter may be NULL in which case parsing
884
+ * begins at offset 0.
885
+ * @param status a pointer to an input-output UErrorCode
886
+ * @return the UFormattable. Will be ==result unless NULL was passed in for result, in which case it will be the newly opened UFormattable.
887
+ * @see ufmt_getType
888
+ * @see ufmt_close
889
+ * @stable ICU 52
890
+ */
891
+ U_CAPI UFormattable* U_EXPORT2
892
+ unum_parseToUFormattable(const UNumberFormat* fmt,
893
+ UFormattable *result,
894
+ const UChar* text,
895
+ int32_t textLength,
896
+ int32_t* parsePos, /* 0 = start */
897
+ UErrorCode* status);
898
+
899
+ /**
900
+ * Set the pattern used by a UNumberFormat. This can only be used
901
+ * on a DecimalFormat, other formats return U_UNSUPPORTED_ERROR
902
+ * in the status.
903
+ * @param format The formatter to set.
904
+ * @param localized true if the pattern is localized, false otherwise.
905
+ * @param pattern The new pattern
906
+ * @param patternLength The length of pattern, or -1 if null-terminated.
907
+ * @param parseError A pointer to UParseError to receive information
908
+ * about errors occurred during parsing, or NULL if no parse error
909
+ * information is desired.
910
+ * @param status A pointer to an input-output UErrorCode.
911
+ * @see unum_toPattern
912
+ * @see DecimalFormat
913
+ * @stable ICU 2.0
914
+ */
915
+ U_CAPI void U_EXPORT2
916
+ unum_applyPattern( UNumberFormat *format,
917
+ UBool localized,
918
+ const UChar *pattern,
919
+ int32_t patternLength,
920
+ UParseError *parseError,
921
+ UErrorCode *status
922
+ );
923
+
924
+ /**
925
+ * Get a locale for which decimal formatting patterns are available.
926
+ * A UNumberFormat in a locale returned by this function will perform the correct
927
+ * formatting and parsing for the locale. The results of this call are not
928
+ * valid for rule-based number formats.
929
+ * @param localeIndex The index of the desired locale.
930
+ * @return A locale for which number formatting patterns are available, or 0 if none.
931
+ * @see unum_countAvailable
932
+ * @stable ICU 2.0
933
+ */
934
+ U_CAPI const char* U_EXPORT2
935
+ unum_getAvailable(int32_t localeIndex);
936
+
937
+ /**
938
+ * Determine how many locales have decimal formatting patterns available. The
939
+ * results of this call are not valid for rule-based number formats.
940
+ * This function is useful for determining the loop ending condition for
941
+ * calls to {@link #unum_getAvailable }.
942
+ * @return The number of locales for which decimal formatting patterns are available.
943
+ * @see unum_getAvailable
944
+ * @stable ICU 2.0
945
+ */
946
+ U_CAPI int32_t U_EXPORT2
947
+ unum_countAvailable(void);
948
+
949
+ #if UCONFIG_HAVE_PARSEALLINPUT
950
+ /* The UNumberFormatAttributeValue type cannot be #ifndef U_HIDE_INTERNAL_API, needed for .h variable declaration */
951
+ /**
952
+ * @internal
953
+ */
954
+ typedef enum UNumberFormatAttributeValue {
955
+ #ifndef U_HIDE_INTERNAL_API
956
+ /** @internal */
957
+ UNUM_NO = 0,
958
+ /** @internal */
959
+ UNUM_YES = 1,
960
+ /** @internal */
961
+ UNUM_MAYBE = 2
962
+ #else
963
+ /** @internal */
964
+ UNUM_FORMAT_ATTRIBUTE_VALUE_HIDDEN
965
+ #endif /* U_HIDE_INTERNAL_API */
966
+ } UNumberFormatAttributeValue;
967
+ #endif
968
+
969
+ /** The possible UNumberFormat numeric attributes @stable ICU 2.0 */
970
+ typedef enum UNumberFormatAttribute {
971
+ /** Parse integers only */
972
+ UNUM_PARSE_INT_ONLY,
973
+ /** Use grouping separator */
974
+ UNUM_GROUPING_USED,
975
+ /** Always show decimal point */
976
+ UNUM_DECIMAL_ALWAYS_SHOWN,
977
+ /** Maximum integer digits */
978
+ UNUM_MAX_INTEGER_DIGITS,
979
+ /** Minimum integer digits */
980
+ UNUM_MIN_INTEGER_DIGITS,
981
+ /** Integer digits */
982
+ UNUM_INTEGER_DIGITS,
983
+ /** Maximum fraction digits */
984
+ UNUM_MAX_FRACTION_DIGITS,
985
+ /** Minimum fraction digits */
986
+ UNUM_MIN_FRACTION_DIGITS,
987
+ /** Fraction digits */
988
+ UNUM_FRACTION_DIGITS,
989
+ /** Multiplier */
990
+ UNUM_MULTIPLIER,
991
+ /** Grouping size */
992
+ UNUM_GROUPING_SIZE,
993
+ /** Rounding Mode */
994
+ UNUM_ROUNDING_MODE,
995
+ /** Rounding increment */
996
+ UNUM_ROUNDING_INCREMENT,
997
+ /** The width to which the output of <code>format()</code> is padded. */
998
+ UNUM_FORMAT_WIDTH,
999
+ /** The position at which padding will take place. */
1000
+ UNUM_PADDING_POSITION,
1001
+ /** Secondary grouping size */
1002
+ UNUM_SECONDARY_GROUPING_SIZE,
1003
+ /** Use significant digits
1004
+ * @stable ICU 3.0 */
1005
+ UNUM_SIGNIFICANT_DIGITS_USED,
1006
+ /** Minimum significant digits
1007
+ * @stable ICU 3.0 */
1008
+ UNUM_MIN_SIGNIFICANT_DIGITS,
1009
+ /** Maximum significant digits
1010
+ * @stable ICU 3.0 */
1011
+ UNUM_MAX_SIGNIFICANT_DIGITS,
1012
+ /** Lenient parse mode used by rule-based formats.
1013
+ * @stable ICU 3.0
1014
+ */
1015
+ UNUM_LENIENT_PARSE,
1016
+ #if UCONFIG_HAVE_PARSEALLINPUT
1017
+ /** Consume all input. (may use fastpath). Set to UNUM_YES (require fastpath), UNUM_NO (skip fastpath), or UNUM_MAYBE (heuristic).
1018
+ * This is an internal ICU API. Do not use.
1019
+ * @internal
1020
+ */
1021
+ UNUM_PARSE_ALL_INPUT = 20,
1022
+ #endif
1023
+ /**
1024
+ * Scale, which adjusts the position of the
1025
+ * decimal point when formatting. Amounts will be multiplied by 10 ^ (scale)
1026
+ * before they are formatted. The default value for the scale is 0 ( no adjustment ).
1027
+ *
1028
+ * <p>Example: setting the scale to 3, 123 formats as "123,000"
1029
+ * <p>Example: setting the scale to -4, 123 formats as "0.0123"
1030
+ *
1031
+ * This setting is analogous to getMultiplierScale() and setMultiplierScale() in decimfmt.h.
1032
+ *
1033
+ * @stable ICU 51 */
1034
+ UNUM_SCALE = 21,
1035
+
1036
+ /**
1037
+ * Minimum grouping digits; most commonly set to 2 to print "1000" instead of "1,000".
1038
+ * See DecimalFormat::getMinimumGroupingDigits().
1039
+ *
1040
+ * For better control over grouping strategies, use UNumberFormatter.
1041
+ *
1042
+ * @stable ICU 64
1043
+ */
1044
+ UNUM_MINIMUM_GROUPING_DIGITS = 22,
1045
+
1046
+ #if APPLE_ICU_CHANGES
1047
+ // rdar://
1048
+ #ifndef U_HIDE_INTERNAL_API
1049
+ /** Apple addition for rdar://39240173.
1050
+ * In open-source ICU 60 and earlier, unum_formatDouble pinned
1051
+ * double to string conversion at DBL_DIG=15 (from <float.h>)
1052
+ * significant digits; beginning in ICU 61, several extra digit
1053
+ * digits could be produced. However, by default Apple ICU
1054
+ * still pins to 15 digits if UNUM_SIGNIFICANT_DIGITS_USED is
1055
+ * false and UNUM_MAX_FRACTION_DIGITS > 15; this is to improve
1056
+ * compatibility with Numbers. This default can be overriden
1057
+ * by setting UNUM_FORMAT_WITH_FULL_PRECISION to true.
1058
+ * @internal */
1059
+ UNUM_FORMAT_WITH_FULL_PRECISION = 48,
1060
+ #endif /* U_HIDE_INTERNAL_API */
1061
+ #endif // APPLE_ICU_CHANGES
1062
+
1063
+ /**
1064
+ * if this attribute is set to 0, it is set to UNUM_CURRENCY_STANDARD purpose,
1065
+ * otherwise it is UNUM_CASH_CURRENCY purpose
1066
+ * Default: 0 (UNUM_CURRENCY_STANDARD purpose)
1067
+ * @stable ICU 54
1068
+ */
1069
+ UNUM_CURRENCY_USAGE = 23,
1070
+
1071
+ #ifndef U_HIDE_INTERNAL_API
1072
+ /** One below the first bitfield-boolean item.
1073
+ * All items after this one are stored in boolean form.
1074
+ * @internal */
1075
+ UNUM_MAX_NONBOOLEAN_ATTRIBUTE = 0x0FFF,
1076
+ #endif /* U_HIDE_INTERNAL_API */
1077
+
1078
+ /** If 1, specifies that if setting the "max integer digits" attribute would truncate a value, set an error status rather than silently truncating.
1079
+ * For example, formatting the value 1234 with 4 max int digits would succeed, but formatting 12345 would fail. There is no effect on parsing.
1080
+ * Default: 0 (not set)
1081
+ * @stable ICU 50
1082
+ */
1083
+ UNUM_FORMAT_FAIL_IF_MORE_THAN_MAX_DIGITS = 0x1000,
1084
+ /**
1085
+ * if this attribute is set to 1, specifies that, if the pattern doesn't contain an exponent, the exponent will not be parsed. If the pattern does contain an exponent, this attribute has no effect.
1086
+ * Has no effect on formatting.
1087
+ * Default: 0 (unset)
1088
+ * @stable ICU 50
1089
+ */
1090
+ UNUM_PARSE_NO_EXPONENT = 0x1001,
1091
+
1092
+ /**
1093
+ * if this attribute is set to 1, specifies that, if the pattern contains a
1094
+ * decimal mark the input is required to have one. If this attribute is set to 0,
1095
+ * specifies that input does not have to contain a decimal mark.
1096
+ * Has no effect on formatting.
1097
+ * Default: 0 (unset)
1098
+ * @stable ICU 54
1099
+ */
1100
+ UNUM_PARSE_DECIMAL_MARK_REQUIRED = 0x1002,
1101
+
1102
+ /**
1103
+ * Parsing: if set to 1, parsing is sensitive to case (lowercase/uppercase).
1104
+ *
1105
+ * @stable ICU 64
1106
+ */
1107
+ UNUM_PARSE_CASE_SENSITIVE = 0x1003,
1108
+
1109
+ /**
1110
+ * Formatting: if set to 1, whether to show the plus sign on non-negative numbers.
1111
+ *
1112
+ * For better control over sign display, use UNumberFormatter.
1113
+ *
1114
+ * @stable ICU 64
1115
+ */
1116
+ UNUM_SIGN_ALWAYS_SHOWN = 0x1004,
1117
+
1118
+ #ifndef U_HIDE_INTERNAL_API
1119
+ /** Limit of boolean attributes. (value should
1120
+ * not depend on U_HIDE conditionals)
1121
+ * @internal */
1122
+ UNUM_LIMIT_BOOLEAN_ATTRIBUTE = 0x1005,
1123
+ #endif /* U_HIDE_INTERNAL_API */
1124
+
1125
+ } UNumberFormatAttribute;
1126
+
1127
+ /**
1128
+ * Returns true if the formatter supports the specified attribute and false if not.
1129
+ * @param fmt The formatter to query.
1130
+ * @param attr The attribute to query. This can be any value of UNumberFormatterAttribute,
1131
+ * regardless of type.
1132
+ * @return True if the requested attribute is supported by the formatter; false if not.
1133
+ * @see unum_getAttribute
1134
+ * @see unum_setAttribute
1135
+ * @see unum_getDoubleAttribute
1136
+ * @see unum_setDoubleAttribute
1137
+ * @see unum_getTextAttribute
1138
+ * @see unum_setTextAttribute
1139
+ * @stable ICU 72
1140
+ */
1141
+ U_CAPI bool U_EXPORT2
1142
+ unum_hasAttribute(const UNumberFormat* fmt,
1143
+ UNumberFormatAttribute attr);
1144
+
1145
+ /**
1146
+ * Get a numeric attribute associated with a UNumberFormat.
1147
+ * An example of a numeric attribute is the number of integer digits a formatter will produce.
1148
+ * @param fmt The formatter to query.
1149
+ * @param attr The attribute to query; one of UNUM_PARSE_INT_ONLY, UNUM_GROUPING_USED,
1150
+ * UNUM_DECIMAL_ALWAYS_SHOWN, UNUM_MAX_INTEGER_DIGITS, UNUM_MIN_INTEGER_DIGITS, UNUM_INTEGER_DIGITS,
1151
+ * UNUM_MAX_FRACTION_DIGITS, UNUM_MIN_FRACTION_DIGITS, UNUM_FRACTION_DIGITS, UNUM_MULTIPLIER,
1152
+ * UNUM_GROUPING_SIZE, UNUM_ROUNDING_MODE, UNUM_FORMAT_WIDTH, UNUM_PADDING_POSITION, UNUM_SECONDARY_GROUPING_SIZE,
1153
+ * UNUM_SCALE, UNUM_MINIMUM_GROUPING_DIGITS.
1154
+ * @return The value of attr, or -1 if the formatter doesn't have the requested attribute. The caller should use unum_hasAttribute() to tell if the attribute
1155
+ * is available, rather than relaying on this function returning -1.
1156
+ * @see unum_hasAttribute
1157
+ * @see unum_setAttribute
1158
+ * @see unum_getDoubleAttribute
1159
+ * @see unum_setDoubleAttribute
1160
+ * @stable ICU 2.0
1161
+ */
1162
+ U_CAPI int32_t U_EXPORT2
1163
+ unum_getAttribute(const UNumberFormat* fmt,
1164
+ UNumberFormatAttribute attr);
1165
+
1166
+ /**
1167
+ * Set a numeric attribute associated with a UNumberFormat.
1168
+ * An example of a numeric attribute is the number of integer digits a formatter will produce. If the
1169
+ * formatter does not understand the attribute, the call is ignored. Rule-based formatters only understand
1170
+ * the lenient-parse attribute. The caller can use unum_hasAttribute() to find out if the formatter supports the attribute.
1171
+ * @param fmt The formatter to set.
1172
+ * @param attr The attribute to set; one of UNUM_PARSE_INT_ONLY, UNUM_GROUPING_USED,
1173
+ * UNUM_DECIMAL_ALWAYS_SHOWN, UNUM_MAX_INTEGER_DIGITS, UNUM_MIN_INTEGER_DIGITS, UNUM_INTEGER_DIGITS,
1174
+ * UNUM_MAX_FRACTION_DIGITS, UNUM_MIN_FRACTION_DIGITS, UNUM_FRACTION_DIGITS, UNUM_MULTIPLIER,
1175
+ * UNUM_GROUPING_SIZE, UNUM_ROUNDING_MODE, UNUM_FORMAT_WIDTH, UNUM_PADDING_POSITION, UNUM_SECONDARY_GROUPING_SIZE,
1176
+ * UNUM_LENIENT_PARSE, UNUM_SCALE, UNUM_MINIMUM_GROUPING_DIGITS.
1177
+ * @param newValue The new value of attr.
1178
+ * @see unum_hasAttribute
1179
+ * @see unum_getAttribute
1180
+ * @see unum_getDoubleAttribute
1181
+ * @see unum_setDoubleAttribute
1182
+ * @see unum_getTextAttribute
1183
+ * @see unum_setTextAttribute
1184
+ * @stable ICU 2.0
1185
+ */
1186
+ U_CAPI void U_EXPORT2
1187
+ unum_setAttribute( UNumberFormat* fmt,
1188
+ UNumberFormatAttribute attr,
1189
+ int32_t newValue);
1190
+
1191
+
1192
+ /**
1193
+ * Get a numeric attribute associated with a UNumberFormat.
1194
+ * An example of a numeric attribute is the number of integer digits a formatter will produce.
1195
+ * If the formatter does not understand the attribute, -1 is returned. The caller should use unum_hasAttribute()
1196
+ * to determine if the attribute is supported, rather than relying on this function returning -1.
1197
+ * @param fmt The formatter to query.
1198
+ * @param attr The attribute to query; e.g. UNUM_ROUNDING_INCREMENT.
1199
+ * @return The value of attr, or -1 if the formatter doesn't understand the attribute.
1200
+ * @see unum_hasAttribute
1201
+ * @see unum_getAttribute
1202
+ * @see unum_setAttribute
1203
+ * @see unum_setDoubleAttribute
1204
+ * @see unum_getTextAttribute
1205
+ * @see unum_setTextAttribute
1206
+ * @stable ICU 2.0
1207
+ */
1208
+ U_CAPI double U_EXPORT2
1209
+ unum_getDoubleAttribute(const UNumberFormat* fmt,
1210
+ UNumberFormatAttribute attr);
1211
+
1212
+ /**
1213
+ * Set a numeric attribute associated with a UNumberFormat.
1214
+ * An example of a numeric attribute is the number of integer digits a formatter will produce.
1215
+ * If the formatter does not understand the attribute, this call is ignored. The caller can use
1216
+ * unum_hasAttribute() to tell in advance whether the formatter understands the attribute.
1217
+ * @param fmt The formatter to set.
1218
+ * @param attr The attribute to set; e.g. UNUM_ROUNDING_INCREMENT.
1219
+ * @param newValue The new value of attr.
1220
+ * @see unum_hasAttribute
1221
+ * @see unum_getAttribute
1222
+ * @see unum_setAttribute
1223
+ * @see unum_getDoubleAttribute
1224
+ * @see unum_getTextAttribute
1225
+ * @see unum_setTextAttribute
1226
+ * @stable ICU 2.0
1227
+ */
1228
+ U_CAPI void U_EXPORT2
1229
+ unum_setDoubleAttribute( UNumberFormat* fmt,
1230
+ UNumberFormatAttribute attr,
1231
+ double newValue);
1232
+
1233
+ /** The possible UNumberFormat text attributes @stable ICU 2.0*/
1234
+ typedef enum UNumberFormatTextAttribute {
1235
+ /** Positive prefix */
1236
+ UNUM_POSITIVE_PREFIX,
1237
+ /** Positive suffix */
1238
+ UNUM_POSITIVE_SUFFIX,
1239
+ /** Negative prefix */
1240
+ UNUM_NEGATIVE_PREFIX,
1241
+ /** Negative suffix */
1242
+ UNUM_NEGATIVE_SUFFIX,
1243
+ /** The character used to pad to the format width. */
1244
+ UNUM_PADDING_CHARACTER,
1245
+ /** The ISO currency code */
1246
+ UNUM_CURRENCY_CODE,
1247
+ /**
1248
+ * The default rule set, such as "%spellout-numbering-year:", "%spellout-cardinal:",
1249
+ * "%spellout-ordinal-masculine-plural:", "%spellout-ordinal-feminine:", or
1250
+ * "%spellout-ordinal-neuter:". The available public rulesets can be listed using
1251
+ * unum_getTextAttribute with UNUM_PUBLIC_RULESETS. This is only available with
1252
+ * rule-based formatters.
1253
+ * @stable ICU 3.0
1254
+ */
1255
+ UNUM_DEFAULT_RULESET,
1256
+ /**
1257
+ * The public rule sets. This is only available with rule-based formatters.
1258
+ * This is a read-only attribute. The public rulesets are returned as a
1259
+ * single string, with each ruleset name delimited by ';' (semicolon). See the
1260
+ * CLDR LDML spec for more information about RBNF rulesets:
1261
+ * http://www.unicode.org/reports/tr35/tr35-numbers.html#Rule-Based_Number_Formatting
1262
+ * @stable ICU 3.0
1263
+ */
1264
+ UNUM_PUBLIC_RULESETS
1265
+ } UNumberFormatTextAttribute;
1266
+
1267
+ /**
1268
+ * Get a text attribute associated with a UNumberFormat.
1269
+ * An example of a text attribute is the suffix for positive numbers. If the formatter
1270
+ * does not understand the attribute, U_UNSUPPORTED_ERROR is returned as the status.
1271
+ * Rule-based formatters only understand UNUM_DEFAULT_RULESET and UNUM_PUBLIC_RULESETS.
1272
+ * @param fmt The formatter to query.
1273
+ * @param tag The attribute to query; one of UNUM_POSITIVE_PREFIX, UNUM_POSITIVE_SUFFIX,
1274
+ * UNUM_NEGATIVE_PREFIX, UNUM_NEGATIVE_SUFFIX, UNUM_PADDING_CHARACTER, UNUM_CURRENCY_CODE,
1275
+ * UNUM_DEFAULT_RULESET, or UNUM_PUBLIC_RULESETS.
1276
+ * @param result A pointer to a buffer to receive the attribute.
1277
+ * @param resultLength The maximum size of result.
1278
+ * @param status A pointer to an UErrorCode to receive any errors
1279
+ * @return The total buffer size needed; if greater than resultLength, the output was truncated.
1280
+ * @see unum_setTextAttribute
1281
+ * @see unum_getAttribute
1282
+ * @see unum_setAttribute
1283
+ * @stable ICU 2.0
1284
+ */
1285
+ U_CAPI int32_t U_EXPORT2
1286
+ unum_getTextAttribute( const UNumberFormat* fmt,
1287
+ UNumberFormatTextAttribute tag,
1288
+ UChar* result,
1289
+ int32_t resultLength,
1290
+ UErrorCode* status);
1291
+
1292
+ /**
1293
+ * Set a text attribute associated with a UNumberFormat.
1294
+ * An example of a text attribute is the suffix for positive numbers. Rule-based formatters
1295
+ * only understand UNUM_DEFAULT_RULESET.
1296
+ * @param fmt The formatter to set.
1297
+ * @param tag The attribute to set; one of UNUM_POSITIVE_PREFIX, UNUM_POSITIVE_SUFFIX,
1298
+ * UNUM_NEGATIVE_PREFIX, UNUM_NEGATIVE_SUFFIX, UNUM_PADDING_CHARACTER, UNUM_CURRENCY_CODE,
1299
+ * or UNUM_DEFAULT_RULESET.
1300
+ * @param newValue The new value of attr.
1301
+ * @param newValueLength The length of newValue, or -1 if null-terminated.
1302
+ * @param status A pointer to an UErrorCode to receive any errors
1303
+ * @see unum_getTextAttribute
1304
+ * @see unum_getAttribute
1305
+ * @see unum_setAttribute
1306
+ * @stable ICU 2.0
1307
+ */
1308
+ U_CAPI void U_EXPORT2
1309
+ unum_setTextAttribute( UNumberFormat* fmt,
1310
+ UNumberFormatTextAttribute tag,
1311
+ const UChar* newValue,
1312
+ int32_t newValueLength,
1313
+ UErrorCode *status);
1314
+
1315
+ /**
1316
+ * Extract the pattern from a UNumberFormat. The pattern will follow
1317
+ * the DecimalFormat pattern syntax.
1318
+ * @param fmt The formatter to query.
1319
+ * @param isPatternLocalized true if the pattern should be localized,
1320
+ * false otherwise. This is ignored if the formatter is a rule-based
1321
+ * formatter.
1322
+ * @param result A pointer to a buffer to receive the pattern.
1323
+ * @param resultLength The maximum size of result.
1324
+ * @param status A pointer to an input-output UErrorCode.
1325
+ * @return The total buffer size needed; if greater than resultLength,
1326
+ * the output was truncated.
1327
+ * @see unum_applyPattern
1328
+ * @see DecimalFormat
1329
+ * @stable ICU 2.0
1330
+ */
1331
+ U_CAPI int32_t U_EXPORT2
1332
+ unum_toPattern( const UNumberFormat* fmt,
1333
+ UBool isPatternLocalized,
1334
+ UChar* result,
1335
+ int32_t resultLength,
1336
+ UErrorCode* status);
1337
+
1338
+
1339
+ /**
1340
+ * Constants for specifying a number format symbol.
1341
+ * @stable ICU 2.0
1342
+ */
1343
+ typedef enum UNumberFormatSymbol {
1344
+ /** The decimal separator */
1345
+ UNUM_DECIMAL_SEPARATOR_SYMBOL = 0,
1346
+ /** The grouping separator */
1347
+ UNUM_GROUPING_SEPARATOR_SYMBOL = 1,
1348
+ /** The pattern separator */
1349
+ UNUM_PATTERN_SEPARATOR_SYMBOL = 2,
1350
+ /** The percent sign */
1351
+ UNUM_PERCENT_SYMBOL = 3,
1352
+ /** Zero*/
1353
+ UNUM_ZERO_DIGIT_SYMBOL = 4,
1354
+ /** Character representing a digit in the pattern */
1355
+ UNUM_DIGIT_SYMBOL = 5,
1356
+ /** The minus sign */
1357
+ UNUM_MINUS_SIGN_SYMBOL = 6,
1358
+ /** The plus sign */
1359
+ UNUM_PLUS_SIGN_SYMBOL = 7,
1360
+ /** The currency symbol */
1361
+ UNUM_CURRENCY_SYMBOL = 8,
1362
+ /** The international currency symbol */
1363
+ UNUM_INTL_CURRENCY_SYMBOL = 9,
1364
+ /** The monetary separator */
1365
+ UNUM_MONETARY_SEPARATOR_SYMBOL = 10,
1366
+ /** The exponential symbol */
1367
+ UNUM_EXPONENTIAL_SYMBOL = 11,
1368
+ /** Per mill symbol */
1369
+ UNUM_PERMILL_SYMBOL = 12,
1370
+ /** Escape padding character */
1371
+ UNUM_PAD_ESCAPE_SYMBOL = 13,
1372
+ /** Infinity symbol */
1373
+ UNUM_INFINITY_SYMBOL = 14,
1374
+ /** Nan symbol */
1375
+ UNUM_NAN_SYMBOL = 15,
1376
+ /** Significant digit symbol
1377
+ * @stable ICU 3.0 */
1378
+ UNUM_SIGNIFICANT_DIGIT_SYMBOL = 16,
1379
+ /** The monetary grouping separator
1380
+ * @stable ICU 3.6
1381
+ */
1382
+ UNUM_MONETARY_GROUPING_SEPARATOR_SYMBOL = 17,
1383
+ /** One
1384
+ * @stable ICU 4.6
1385
+ */
1386
+ UNUM_ONE_DIGIT_SYMBOL = 18,
1387
+ /** Two
1388
+ * @stable ICU 4.6
1389
+ */
1390
+ UNUM_TWO_DIGIT_SYMBOL = 19,
1391
+ /** Three
1392
+ * @stable ICU 4.6
1393
+ */
1394
+ UNUM_THREE_DIGIT_SYMBOL = 20,
1395
+ /** Four
1396
+ * @stable ICU 4.6
1397
+ */
1398
+ UNUM_FOUR_DIGIT_SYMBOL = 21,
1399
+ /** Five
1400
+ * @stable ICU 4.6
1401
+ */
1402
+ UNUM_FIVE_DIGIT_SYMBOL = 22,
1403
+ /** Six
1404
+ * @stable ICU 4.6
1405
+ */
1406
+ UNUM_SIX_DIGIT_SYMBOL = 23,
1407
+ /** Seven
1408
+ * @stable ICU 4.6
1409
+ */
1410
+ UNUM_SEVEN_DIGIT_SYMBOL = 24,
1411
+ /** Eight
1412
+ * @stable ICU 4.6
1413
+ */
1414
+ UNUM_EIGHT_DIGIT_SYMBOL = 25,
1415
+ /** Nine
1416
+ * @stable ICU 4.6
1417
+ */
1418
+ UNUM_NINE_DIGIT_SYMBOL = 26,
1419
+
1420
+ /** Multiplication sign
1421
+ * @stable ICU 54
1422
+ */
1423
+ UNUM_EXPONENT_MULTIPLICATION_SYMBOL = 27,
1424
+
1425
+ #ifndef U_HIDE_INTERNAL_API
1426
+ /** Approximately sign.
1427
+ * @internal
1428
+ */
1429
+ UNUM_APPROXIMATELY_SIGN_SYMBOL = 28,
1430
+ #endif
1431
+
1432
+ #ifndef U_HIDE_DEPRECATED_API
1433
+ /**
1434
+ * One more than the highest normal UNumberFormatSymbol value.
1435
+ * @deprecated ICU 58 The numeric value may change over time, see ICU ticket #12420.
1436
+ */
1437
+ UNUM_FORMAT_SYMBOL_COUNT = 29
1438
+ #endif /* U_HIDE_DEPRECATED_API */
1439
+ } UNumberFormatSymbol;
1440
+
1441
+ /**
1442
+ * Get a symbol associated with a UNumberFormat.
1443
+ * A UNumberFormat uses symbols to represent the special locale-dependent
1444
+ * characters in a number, for example the percent sign. This API is not
1445
+ * supported for rule-based formatters.
1446
+ * @param fmt The formatter to query.
1447
+ * @param symbol The UNumberFormatSymbol constant for the symbol to get
1448
+ * @param buffer The string buffer that will receive the symbol string;
1449
+ * if it is NULL, then only the length of the symbol is returned
1450
+ * @param size The size of the string buffer
1451
+ * @param status A pointer to an UErrorCode to receive any errors
1452
+ * @return The length of the symbol; the buffer is not modified if
1453
+ * <code>length&gt;=size</code>
1454
+ * @see unum_setSymbol
1455
+ * @stable ICU 2.0
1456
+ */
1457
+ U_CAPI int32_t U_EXPORT2
1458
+ unum_getSymbol(const UNumberFormat *fmt,
1459
+ UNumberFormatSymbol symbol,
1460
+ UChar *buffer,
1461
+ int32_t size,
1462
+ UErrorCode *status);
1463
+
1464
+ /**
1465
+ * Set a symbol associated with a UNumberFormat.
1466
+ * A UNumberFormat uses symbols to represent the special locale-dependent
1467
+ * characters in a number, for example the percent sign. This API is not
1468
+ * supported for rule-based formatters.
1469
+ * @param fmt The formatter to set.
1470
+ * @param symbol The UNumberFormatSymbol constant for the symbol to set
1471
+ * @param value The string to set the symbol to
1472
+ * @param length The length of the string, or -1 for a zero-terminated string
1473
+ * @param status A pointer to an UErrorCode to receive any errors.
1474
+ * @see unum_getSymbol
1475
+ * @stable ICU 2.0
1476
+ */
1477
+ U_CAPI void U_EXPORT2
1478
+ unum_setSymbol(UNumberFormat *fmt,
1479
+ UNumberFormatSymbol symbol,
1480
+ const UChar *value,
1481
+ int32_t length,
1482
+ UErrorCode *status);
1483
+
1484
+
1485
+ /**
1486
+ * Get the locale for this number format object.
1487
+ * You can choose between valid and actual locale.
1488
+ * @param fmt The formatter to get the locale from
1489
+ * @param type type of the locale we're looking for (valid or actual)
1490
+ * @param status error code for the operation
1491
+ * @return the locale name
1492
+ * @stable ICU 2.8
1493
+ */
1494
+ U_CAPI const char* U_EXPORT2
1495
+ unum_getLocaleByType(const UNumberFormat *fmt,
1496
+ ULocDataLocaleType type,
1497
+ UErrorCode* status);
1498
+
1499
+ /**
1500
+ * Set a particular UDisplayContext value in the formatter, such as
1501
+ * UDISPCTX_CAPITALIZATION_FOR_STANDALONE.
1502
+ * @param fmt The formatter for which to set a UDisplayContext value.
1503
+ * @param value The UDisplayContext value to set.
1504
+ * @param status A pointer to an UErrorCode to receive any errors
1505
+ * @stable ICU 53
1506
+ */
1507
+ U_CAPI void U_EXPORT2
1508
+ unum_setContext(UNumberFormat* fmt, UDisplayContext value, UErrorCode* status);
1509
+
1510
+ /**
1511
+ * Get the formatter's UDisplayContext value for the specified UDisplayContextType,
1512
+ * such as UDISPCTX_TYPE_CAPITALIZATION.
1513
+ * @param fmt The formatter to query.
1514
+ * @param type The UDisplayContextType whose value to return
1515
+ * @param status A pointer to an UErrorCode to receive any errors
1516
+ * @return The UDisplayContextValue for the specified type.
1517
+ * @stable ICU 53
1518
+ */
1519
+ U_CAPI UDisplayContext U_EXPORT2
1520
+ unum_getContext(const UNumberFormat *fmt, UDisplayContextType type, UErrorCode* status);
1521
+
1522
+ #endif /* #if !UCONFIG_NO_FORMATTING */
1523
+
1524
+ #endif