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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (368) hide show
  1. package/LICENSE.txt +1445 -0
  2. package/README.md +24 -2
  3. package/files.json +366 -0
  4. package/package.json +18 -4
  5. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/HTMLparser.h +320 -0
  6. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/HTMLtree.h +147 -0
  7. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/SAX.h +204 -0
  8. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/SAX2.h +173 -0
  9. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/c14n.h +128 -0
  10. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/catalog.h +182 -0
  11. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/chvalid.h +230 -0
  12. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/debugXML.h +217 -0
  13. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/dict.h +81 -0
  14. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/encoding.h +233 -0
  15. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/entities.h +151 -0
  16. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/globals.h +529 -0
  17. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/hash.h +236 -0
  18. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/list.h +137 -0
  19. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/nanoftp.h +186 -0
  20. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/nanohttp.h +81 -0
  21. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/parser.h +1265 -0
  22. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/parserInternals.h +662 -0
  23. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/pattern.h +100 -0
  24. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/relaxng.h +218 -0
  25. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/schemasInternals.h +958 -0
  26. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/schematron.h +142 -0
  27. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/threads.h +94 -0
  28. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/tree.h +1314 -0
  29. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/uri.h +94 -0
  30. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/valid.h +448 -0
  31. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xinclude.h +129 -0
  32. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xlink.h +189 -0
  33. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlIO.h +369 -0
  34. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlautomata.h +146 -0
  35. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlerror.h +919 -0
  36. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlexports.h +50 -0
  37. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlmemory.h +228 -0
  38. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlmodule.h +57 -0
  39. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlreader.h +428 -0
  40. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlregexp.h +222 -0
  41. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlsave.h +88 -0
  42. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlschemas.h +246 -0
  43. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlschemastypes.h +152 -0
  44. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlstring.h +140 -0
  45. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlunicode.h +202 -0
  46. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlversion.h +526 -0
  47. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlwriter.h +488 -0
  48. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xpath.h +575 -0
  49. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xpathInternals.h +632 -0
  50. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xpointer.h +137 -0
  51. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFArray.h +673 -0
  52. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFAttributedString.h +157 -0
  53. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFAttributedStringPriv.h +25 -0
  54. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFAvailability.h +236 -0
  55. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBag.h +97 -0
  56. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBase.h +702 -0
  57. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBigNumber.h +76 -0
  58. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBinaryHeap.h +294 -0
  59. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBitVector.h +49 -0
  60. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBundle.h +349 -0
  61. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBundlePriv.h +334 -0
  62. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBundle_BinaryTypes.h +61 -0
  63. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBurstTrie.h +181 -0
  64. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFByteOrder.h +305 -0
  65. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFCalendar.h +116 -0
  66. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFCalendarPriv.h +52 -0
  67. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFCharacterSet.h +387 -0
  68. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFCharacterSetPriv.h +78 -0
  69. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFConstantKeys.h +128 -0
  70. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFData.h +79 -0
  71. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDate.h +113 -0
  72. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDateComponents.h +92 -0
  73. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDateFormatter.h +193 -0
  74. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDateFormatter_Private.h +31 -0
  75. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDateInterval.h +62 -0
  76. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDateIntervalFormatter.h +96 -0
  77. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDictionary.h +674 -0
  78. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFError.h +183 -0
  79. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFError_Private.h +27 -0
  80. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFKnownLocations.h +42 -0
  81. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFListFormatter.h +32 -0
  82. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFLocale.h +204 -0
  83. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFLocale_Private.h +35 -0
  84. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFLocking.h +124 -0
  85. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFLogUtilities.h +52 -0
  86. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFMachPort.h +53 -0
  87. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFMessagePort.h +66 -0
  88. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFNotificationCenter.h +81 -0
  89. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFNumber.h +129 -0
  90. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFNumberFormatter.h +174 -0
  91. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFNumber_Private.h +30 -0
  92. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFOverflow.h +88 -0
  93. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFPlugIn.h +124 -0
  94. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFPlugInCOM.h +117 -0
  95. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFPreferences.h +130 -0
  96. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFPriv.h +721 -0
  97. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFPropertyList.h +151 -0
  98. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFPropertyList_Private.h +19 -0
  99. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFRegularExpression.h +68 -0
  100. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFRelativeDateTimeFormatter.h +61 -0
  101. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFRunArray.h +57 -0
  102. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFRunLoop.h +203 -0
  103. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFRuntime.h +281 -0
  104. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFSet.h +491 -0
  105. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFSocket.h +220 -0
  106. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStorage.h +296 -0
  107. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStream.h +505 -0
  108. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStreamAbstract.h +181 -0
  109. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStreamPriv.h +126 -0
  110. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFString.h +915 -0
  111. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStringDefaultEncoding.h +45 -0
  112. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStringEncodingConverter.h +82 -0
  113. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStringEncodingConverterExt.h +121 -0
  114. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStringEncodingConverterPriv.h +47 -0
  115. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStringEncodingDatabase.h +23 -0
  116. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStringEncodingExt.h +184 -0
  117. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFString_Private.h +32 -0
  118. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFTargetConditionals.h +284 -0
  119. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFTimeZone.h +98 -0
  120. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFTree.h +330 -0
  121. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFURL.h +1256 -0
  122. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFURLAccess.h +128 -0
  123. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFURLComponents.h +123 -0
  124. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFURLPriv.h +879 -0
  125. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFUUID.h +78 -0
  126. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFUniChar.h +244 -0
  127. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFUnicodeDecomposition.h +35 -0
  128. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFUnicodePrecomposition.h +23 -0
  129. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFUserNotification.h +185 -0
  130. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFUtilities.h +27 -0
  131. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h +105 -0
  132. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForFoundationOnly.h +816 -0
  133. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForSwiftFoundationOnly.h +689 -0
  134. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/module.modulemap +8 -0
  135. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/static-module.map +7 -0
  136. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/CFUniCharBitmapData.h +17 -0
  137. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/CFUniCharBitmapData.inc.h +14707 -0
  138. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/CFUniCharBitmapDataAccess.h +16 -0
  139. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/_CShimsMacros.h +24 -0
  140. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/_CShimsTargetConditionals.h +56 -0
  141. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/_CStdlib.h +169 -0
  142. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/_FoundationCShims.h +32 -0
  143. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/bplist_shims.h +19 -0
  144. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/filemanager_shims.h +156 -0
  145. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/io_shims.h +89 -0
  146. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/module.modulemap +5 -0
  147. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/platform_shims.h +112 -0
  148. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/string_shims.h +52 -0
  149. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/uuid.h +81 -0
  150. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/alphaindex.h +766 -0
  151. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/appendable.h +239 -0
  152. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/basictz.h +248 -0
  153. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/brkiter.h +694 -0
  154. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/bytestream.h +307 -0
  155. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/bytestrie.h +568 -0
  156. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/bytestriebuilder.h +193 -0
  157. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/calendar.h +2609 -0
  158. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/caniter.h +215 -0
  159. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/casemap.h +497 -0
  160. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/char16ptr.h +384 -0
  161. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/chariter.h +734 -0
  162. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/choicfmt.h +601 -0
  163. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/coleitr.h +411 -0
  164. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/coll.h +1387 -0
  165. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/compactdecimalformat.h +196 -0
  166. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/curramt.h +133 -0
  167. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/currpinf.h +274 -0
  168. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/currunit.h +146 -0
  169. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/datefmt.h +968 -0
  170. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dbbi.h +48 -0
  171. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dcfmtsym.h +636 -0
  172. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/decimfmt.h +2233 -0
  173. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/displayoptions.h +270 -0
  174. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/docmain.h +247 -0
  175. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dtfmtsym.h +1055 -0
  176. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dtintrv.h +163 -0
  177. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dtitvfmt.h +1231 -0
  178. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dtitvinf.h +524 -0
  179. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dtptngen.h +676 -0
  180. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dtrule.h +256 -0
  181. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/edits.h +531 -0
  182. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/enumset.h +69 -0
  183. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/errorcode.h +144 -0
  184. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/fieldpos.h +298 -0
  185. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/filteredbrk.h +152 -0
  186. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/fmtable.h +758 -0
  187. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/format.h +316 -0
  188. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/formattednumber.h +215 -0
  189. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/formattedvalue.h +318 -0
  190. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/fpositer.h +124 -0
  191. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/gender.h +122 -0
  192. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/gregocal.h +737 -0
  193. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/icudataver.h +43 -0
  194. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/icuplug.h +391 -0
  195. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/idna.h +333 -0
  196. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/listformatter.h +291 -0
  197. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/localebuilder.h +309 -0
  198. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/localematcher.h +710 -0
  199. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/localpointer.h +609 -0
  200. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/locdspnm.h +211 -0
  201. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/locid.h +1293 -0
  202. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/measfmt.h +501 -0
  203. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/measunit.h +3928 -0
  204. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/measure.h +174 -0
  205. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/messagepattern.h +950 -0
  206. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/module.modulemap +209 -0
  207. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/msgfmt.h +1117 -0
  208. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/normalizer2.h +791 -0
  209. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/normlzr.h +816 -0
  210. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/nounit.h +86 -0
  211. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/numberformatter.h +2862 -0
  212. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/numberrangeformatter.h +802 -0
  213. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/numfmt.h +1299 -0
  214. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/numsys.h +220 -0
  215. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/parseerr.h +94 -0
  216. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/parsepos.h +237 -0
  217. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/platform.h +874 -0
  218. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/plurfmt.h +601 -0
  219. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/plurrule.h +591 -0
  220. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ptypes.h +66 -0
  221. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/putil.h +183 -0
  222. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/rbbi.h +902 -0
  223. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/rbnf.h +1153 -0
  224. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/rbtz.h +373 -0
  225. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/regex.h +1882 -0
  226. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/region.h +229 -0
  227. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/reldatefmt.h +758 -0
  228. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/rep.h +266 -0
  229. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/resbund.h +489 -0
  230. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/schriter.h +187 -0
  231. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/scientificnumberformatter.h +222 -0
  232. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/search.h +580 -0
  233. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/selfmt.h +374 -0
  234. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/simpleformatter.h +414 -0
  235. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/simplenumberformatter.h +326 -0
  236. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/simpletz.h +940 -0
  237. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/smpdtfmt.h +1383 -0
  238. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/sortkey.h +344 -0
  239. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/std_string.h +41 -0
  240. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/strenum.h +281 -0
  241. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/stringoptions.h +190 -0
  242. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/stringpiece.h +354 -0
  243. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/stringtriebuilder.h +426 -0
  244. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/stsearch.h +509 -0
  245. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/symtable.h +119 -0
  246. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tblcoll.h +886 -0
  247. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/timezone.h +1067 -0
  248. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tmunit.h +142 -0
  249. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tmutamt.h +174 -0
  250. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tmutfmt.h +238 -0
  251. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/translit.h +1593 -0
  252. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tzfmt.h +1102 -0
  253. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tznames.h +419 -0
  254. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tzrule.h +820 -0
  255. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tztrans.h +201 -0
  256. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ualoc.h +372 -0
  257. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uameasureformat.h +487 -0
  258. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uameasureunit.h +249 -0
  259. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uatimeunitformat.h +377 -0
  260. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uatimezone.h +114 -0
  261. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ubidi.h +2368 -0
  262. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ubiditransform.h +326 -0
  263. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ubrk.h +684 -0
  264. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucal.h +1825 -0
  265. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucasemap.h +388 -0
  266. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucat.h +160 -0
  267. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uchar.h +4410 -0
  268. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucharstrie.h +623 -0
  269. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucharstriebuilder.h +193 -0
  270. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uchriter.h +393 -0
  271. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uclean.h +262 -0
  272. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucnv.h +2053 -0
  273. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucnv_cb.h +164 -0
  274. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucnv_err.h +465 -0
  275. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucnvsel.h +193 -0
  276. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucol.h +1649 -0
  277. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucoleitr.h +344 -0
  278. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uconfig.h +501 -0
  279. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucpmap.h +158 -0
  280. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucptrie.h +645 -0
  281. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucsdet.h +426 -0
  282. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucurr.h +466 -0
  283. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udat.h +1767 -0
  284. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udata.h +454 -0
  285. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udateintervalformat.h +458 -0
  286. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udatintv.h +146 -0
  287. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udatpg.h +806 -0
  288. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udisplaycontext.h +233 -0
  289. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udisplayoptions.h +321 -0
  290. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uenum.h +209 -0
  291. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ufieldpositer.h +123 -0
  292. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uformattable.h +290 -0
  293. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uformattednumber.h +224 -0
  294. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uformattedvalue.h +445 -0
  295. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ugender.h +86 -0
  296. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uidna.h +794 -0
  297. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uiter.h +709 -0
  298. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uldnames.h +307 -0
  299. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ulistformatter.h +333 -0
  300. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uloc.h +1437 -0
  301. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ulocale.h +226 -0
  302. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ulocbuilder.h +437 -0
  303. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ulocdata.h +299 -0
  304. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/umachine.h +491 -0
  305. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/umisc.h +62 -0
  306. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/umsg.h +628 -0
  307. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/umutablecptrie.h +240 -0
  308. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unifilt.h +136 -0
  309. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unifunct.h +132 -0
  310. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unimatch.h +168 -0
  311. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unirepl.h +103 -0
  312. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uniset.h +1909 -0
  313. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unistr.h +5095 -0
  314. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unorm.h +476 -0
  315. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unorm2.h +626 -0
  316. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unum.h +1524 -0
  317. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unumberformatter.h +576 -0
  318. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unumberoptions.h +173 -0
  319. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unumberrangeformatter.h +471 -0
  320. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unumsys.h +176 -0
  321. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uobject.h +324 -0
  322. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uplrule.h +82 -0
  323. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/upluralrules.h +263 -0
  324. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/urbtok.h +276 -0
  325. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uregex.h +1617 -0
  326. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uregion.h +252 -0
  327. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ureldatefmt.h +510 -0
  328. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/urename.h +4026 -0
  329. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/urep.h +157 -0
  330. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ures.h +912 -0
  331. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uscript.h +742 -0
  332. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/usearch.h +911 -0
  333. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uset.h +1898 -0
  334. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/usetiter.h +323 -0
  335. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ushape.h +476 -0
  336. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/usimplenumberformatter.h +297 -0
  337. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uspoof.h +1852 -0
  338. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/usprep.h +274 -0
  339. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ustdio.h +1021 -0
  340. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ustream.h +69 -0
  341. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ustring.h +1719 -0
  342. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ustringtrie.h +97 -0
  343. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utext.h +1613 -0
  344. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utf.h +225 -0
  345. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utf16.h +740 -0
  346. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utf32.h +25 -0
  347. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utf8.h +882 -0
  348. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utf_old.h +1207 -0
  349. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utmscale.h +490 -0
  350. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utrace.h +506 -0
  351. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utrans.h +660 -0
  352. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utypes.h +826 -0
  353. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uvernum.h +191 -0
  354. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uversion.h +230 -0
  355. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/vtzone.h +471 -0
  356. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Foundation.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  357. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/FoundationEssentials.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  358. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/FoundationInternationalization.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  359. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/FoundationXML.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  360. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_FoundationCollections.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  361. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libCoreFoundation.a +0 -0
  362. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundation.a +0 -0
  363. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundationEssentials.a +0 -0
  364. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundationInternationalization.a +0 -0
  365. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundationXML.a +0 -0
  366. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/lib_CFXMLInterface.a +0 -0
  367. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCShims.a +0 -0
  368. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCollections.a +0 -0
@@ -0,0 +1,3928 @@
1
+ // © 2016 and later: Unicode, Inc. and others.
2
+ // License & terms of use: http://www.unicode.org/copyright.html
3
+ /*
4
+ **********************************************************************
5
+ * Copyright (c) 2004-2016, International Business Machines
6
+ * Corporation and others. All Rights Reserved.
7
+ **********************************************************************
8
+ * Author: Alan Liu
9
+ * Created: April 26, 2004
10
+ * Since: ICU 3.0
11
+ **********************************************************************
12
+ */
13
+ #ifndef __MEASUREUNIT_H__
14
+ #define __MEASUREUNIT_H__
15
+
16
+ #include <_foundation_unicode/utypes.h>
17
+
18
+ #if U_SHOW_CPLUSPLUS_API
19
+
20
+ #if !UCONFIG_NO_FORMATTING
21
+
22
+ #include <utility>
23
+ #include <_foundation_unicode/unistr.h>
24
+ #include <_foundation_unicode/localpointer.h>
25
+ #if APPLE_ICU_CHANGES
26
+ // rdar://
27
+ #include <_foundation_unicode/uameasureunit.h> // Apple-specific
28
+ #endif // APPLE_ICU_CHANGES
29
+
30
+ /**
31
+ * \file
32
+ * \brief C++ API: A unit for measuring a quantity.
33
+ */
34
+
35
+ U_NAMESPACE_BEGIN
36
+
37
+ class StringEnumeration;
38
+ class MeasureUnitImpl;
39
+
40
+ namespace number::impl {
41
+ class LongNameHandler;
42
+ } // namespace number::impl
43
+
44
+ /**
45
+ * Enumeration for unit complexity. There are three levels:
46
+ *
47
+ * - SINGLE: A single unit, optionally with a power and/or SI or binary prefix.
48
+ * Examples: hectare, square-kilometer, kilojoule, per-second, mebibyte.
49
+ * - COMPOUND: A unit composed of the product of multiple single units. Examples:
50
+ * meter-per-second, kilowatt-hour, kilogram-meter-per-square-second.
51
+ * - MIXED: A unit composed of the sum of multiple single units. Examples: foot+inch,
52
+ * hour+minute+second, degree+arcminute+arcsecond.
53
+ *
54
+ * The complexity determines which operations are available. For example, you cannot set the power
55
+ * or prefix of a compound unit.
56
+ *
57
+ * @stable ICU 67
58
+ */
59
+ enum UMeasureUnitComplexity {
60
+ /**
61
+ * A single unit, like kilojoule.
62
+ *
63
+ * @stable ICU 67
64
+ */
65
+ UMEASURE_UNIT_SINGLE,
66
+
67
+ /**
68
+ * A compound unit, like meter-per-second.
69
+ *
70
+ * @stable ICU 67
71
+ */
72
+ UMEASURE_UNIT_COMPOUND,
73
+
74
+ /**
75
+ * A mixed unit, like hour+minute.
76
+ *
77
+ * @stable ICU 67
78
+ */
79
+ UMEASURE_UNIT_MIXED
80
+ };
81
+
82
+
83
+ /**
84
+ * Enumeration for SI and binary prefixes, e.g. "kilo-", "nano-", "mebi-".
85
+ *
86
+ * Enum values should be treated as opaque: use umeas_getPrefixPower() and
87
+ * umeas_getPrefixBase() to find their corresponding values.
88
+ *
89
+ * @stable ICU 69
90
+ * @see umeas_getPrefixBase
91
+ * @see umeas_getPrefixPower
92
+ */
93
+ typedef enum UMeasurePrefix {
94
+ /**
95
+ * The absence of an SI or binary prefix.
96
+ *
97
+ * The integer representation of this enum value is an arbitrary
98
+ * implementation detail and should not be relied upon: use
99
+ * umeas_getPrefixPower() to obtain meaningful values.
100
+ *
101
+ * @stable ICU 69
102
+ */
103
+ UMEASURE_PREFIX_ONE = 30 + 0,
104
+
105
+ /**
106
+ * SI prefix: yotta, 10^24.
107
+ *
108
+ * @stable ICU 69
109
+ */
110
+ UMEASURE_PREFIX_YOTTA = UMEASURE_PREFIX_ONE + 24,
111
+
112
+ #ifndef U_HIDE_DRAFT_API
113
+ /**
114
+ * SI prefix: ronna, 10^27.
115
+ *
116
+ * @draft ICU 75
117
+ */
118
+ UMEASURE_PREFIX_RONNA = UMEASURE_PREFIX_ONE + 27,
119
+
120
+ /**
121
+ * SI prefix: quetta, 10^30.
122
+ *
123
+ * @draft ICU 75
124
+ */
125
+ UMEASURE_PREFIX_QUETTA = UMEASURE_PREFIX_ONE + 30,
126
+ #endif /* U_HIDE_DRAFT_API */
127
+
128
+ #ifndef U_HIDE_INTERNAL_API
129
+ /**
130
+ * ICU use only.
131
+ * Used to determine the set of base-10 SI prefixes.
132
+ * @internal
133
+ */
134
+ #ifndef U_HIDE_DRAFT_API
135
+ UMEASURE_PREFIX_INTERNAL_MAX_SI = UMEASURE_PREFIX_QUETTA,
136
+ #else /* U_HIDE_DRAFT_API */
137
+ UMEASURE_PREFIX_INTERNAL_MAX_SI = UMEASURE_PREFIX_YOTTA,
138
+ #endif /* U_HIDE_DRAFT_API */
139
+
140
+ #endif /* U_HIDE_INTERNAL_API */
141
+
142
+ /**
143
+ * SI prefix: zetta, 10^21.
144
+ *
145
+ * @stable ICU 69
146
+ */
147
+ UMEASURE_PREFIX_ZETTA = UMEASURE_PREFIX_ONE + 21,
148
+
149
+ /**
150
+ * SI prefix: exa, 10^18.
151
+ *
152
+ * @stable ICU 69
153
+ */
154
+ UMEASURE_PREFIX_EXA = UMEASURE_PREFIX_ONE + 18,
155
+
156
+ /**
157
+ * SI prefix: peta, 10^15.
158
+ *
159
+ * @stable ICU 69
160
+ */
161
+ UMEASURE_PREFIX_PETA = UMEASURE_PREFIX_ONE + 15,
162
+
163
+ /**
164
+ * SI prefix: tera, 10^12.
165
+ *
166
+ * @stable ICU 69
167
+ */
168
+ UMEASURE_PREFIX_TERA = UMEASURE_PREFIX_ONE + 12,
169
+
170
+ /**
171
+ * SI prefix: giga, 10^9.
172
+ *
173
+ * @stable ICU 69
174
+ */
175
+ UMEASURE_PREFIX_GIGA = UMEASURE_PREFIX_ONE + 9,
176
+
177
+ /**
178
+ * SI prefix: mega, 10^6.
179
+ *
180
+ * @stable ICU 69
181
+ */
182
+ UMEASURE_PREFIX_MEGA = UMEASURE_PREFIX_ONE + 6,
183
+
184
+ /**
185
+ * SI prefix: kilo, 10^3.
186
+ *
187
+ * @stable ICU 69
188
+ */
189
+ UMEASURE_PREFIX_KILO = UMEASURE_PREFIX_ONE + 3,
190
+
191
+ /**
192
+ * SI prefix: hecto, 10^2.
193
+ *
194
+ * @stable ICU 69
195
+ */
196
+ UMEASURE_PREFIX_HECTO = UMEASURE_PREFIX_ONE + 2,
197
+
198
+ /**
199
+ * SI prefix: deka, 10^1.
200
+ *
201
+ * @stable ICU 69
202
+ */
203
+ UMEASURE_PREFIX_DEKA = UMEASURE_PREFIX_ONE + 1,
204
+
205
+ /**
206
+ * SI prefix: deci, 10^-1.
207
+ *
208
+ * @stable ICU 69
209
+ */
210
+ UMEASURE_PREFIX_DECI = UMEASURE_PREFIX_ONE + -1,
211
+
212
+ /**
213
+ * SI prefix: centi, 10^-2.
214
+ *
215
+ * @stable ICU 69
216
+ */
217
+ UMEASURE_PREFIX_CENTI = UMEASURE_PREFIX_ONE + -2,
218
+
219
+ /**
220
+ * SI prefix: milli, 10^-3.
221
+ *
222
+ * @stable ICU 69
223
+ */
224
+ UMEASURE_PREFIX_MILLI = UMEASURE_PREFIX_ONE + -3,
225
+
226
+ /**
227
+ * SI prefix: micro, 10^-6.
228
+ *
229
+ * @stable ICU 69
230
+ */
231
+ UMEASURE_PREFIX_MICRO = UMEASURE_PREFIX_ONE + -6,
232
+
233
+ /**
234
+ * SI prefix: nano, 10^-9.
235
+ *
236
+ * @stable ICU 69
237
+ */
238
+ UMEASURE_PREFIX_NANO = UMEASURE_PREFIX_ONE + -9,
239
+
240
+ /**
241
+ * SI prefix: pico, 10^-12.
242
+ *
243
+ * @stable ICU 69
244
+ */
245
+ UMEASURE_PREFIX_PICO = UMEASURE_PREFIX_ONE + -12,
246
+
247
+ /**
248
+ * SI prefix: femto, 10^-15.
249
+ *
250
+ * @stable ICU 69
251
+ */
252
+ UMEASURE_PREFIX_FEMTO = UMEASURE_PREFIX_ONE + -15,
253
+
254
+ /**
255
+ * SI prefix: atto, 10^-18.
256
+ *
257
+ * @stable ICU 69
258
+ */
259
+ UMEASURE_PREFIX_ATTO = UMEASURE_PREFIX_ONE + -18,
260
+
261
+ /**
262
+ * SI prefix: zepto, 10^-21.
263
+ *
264
+ * @stable ICU 69
265
+ */
266
+ UMEASURE_PREFIX_ZEPTO = UMEASURE_PREFIX_ONE + -21,
267
+
268
+ /**
269
+ * SI prefix: yocto, 10^-24.
270
+ *
271
+ * @stable ICU 69
272
+ */
273
+ UMEASURE_PREFIX_YOCTO = UMEASURE_PREFIX_ONE + -24,
274
+
275
+ #ifndef U_HIDE_DRAFT_API
276
+ /**
277
+ * SI prefix: ronto, 10^-27.
278
+ *
279
+ * @draft ICU 75
280
+ */
281
+ UMEASURE_PREFIX_RONTO = UMEASURE_PREFIX_ONE + -27,
282
+
283
+ /**
284
+ * SI prefix: quecto, 10^-30.
285
+ *
286
+ * @draft ICU 75
287
+ */
288
+ UMEASURE_PREFIX_QUECTO = UMEASURE_PREFIX_ONE + -30,
289
+ #endif /* U_HIDE_DRAFT_API */
290
+
291
+ #ifndef U_HIDE_INTERNAL_API
292
+ /**
293
+ * ICU use only.
294
+ * Used to determine the set of base-10 SI prefixes.
295
+ * @internal
296
+ */
297
+ #ifndef U_HIDE_DRAFT_API
298
+ UMEASURE_PREFIX_INTERNAL_MIN_SI = UMEASURE_PREFIX_QUECTO,
299
+ #else /* U_HIDE_DRAFT_API */
300
+ UMEASURE_PREFIX_INTERNAL_MIN_SI = UMEASURE_PREFIX_YOCTO,
301
+ #endif /* U_HIDE_DRAFT_API */
302
+
303
+ #endif // U_HIDE_INTERNAL_API
304
+
305
+ // Cannot conditionalize the following with #ifndef U_HIDE_INTERNAL_API,
306
+ // used in definitions of non-internal enum values
307
+ /**
308
+ * ICU use only.
309
+ * Sets the arbitrary offset of the base-1024 binary prefixes' enum values.
310
+ * @internal
311
+ */
312
+ UMEASURE_PREFIX_INTERNAL_ONE_BIN = -60,
313
+
314
+ /**
315
+ * Binary prefix: kibi, 1024^1.
316
+ *
317
+ * @stable ICU 69
318
+ */
319
+ UMEASURE_PREFIX_KIBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 1,
320
+
321
+ #ifndef U_HIDE_INTERNAL_API
322
+ /**
323
+ * ICU use only.
324
+ * Used to determine the set of base-1024 binary prefixes.
325
+ * @internal
326
+ */
327
+ UMEASURE_PREFIX_INTERNAL_MIN_BIN = UMEASURE_PREFIX_KIBI,
328
+ #endif // U_HIDE_INTERNAL_API
329
+
330
+ /**
331
+ * Binary prefix: mebi, 1024^2.
332
+ *
333
+ * @stable ICU 69
334
+ */
335
+ UMEASURE_PREFIX_MEBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 2,
336
+
337
+ /**
338
+ * Binary prefix: gibi, 1024^3.
339
+ *
340
+ * @stable ICU 69
341
+ */
342
+ UMEASURE_PREFIX_GIBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 3,
343
+
344
+ /**
345
+ * Binary prefix: tebi, 1024^4.
346
+ *
347
+ * @stable ICU 69
348
+ */
349
+ UMEASURE_PREFIX_TEBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 4,
350
+
351
+ /**
352
+ * Binary prefix: pebi, 1024^5.
353
+ *
354
+ * @stable ICU 69
355
+ */
356
+ UMEASURE_PREFIX_PEBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 5,
357
+
358
+ /**
359
+ * Binary prefix: exbi, 1024^6.
360
+ *
361
+ * @stable ICU 69
362
+ */
363
+ UMEASURE_PREFIX_EXBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 6,
364
+
365
+ /**
366
+ * Binary prefix: zebi, 1024^7.
367
+ *
368
+ * @stable ICU 69
369
+ */
370
+ UMEASURE_PREFIX_ZEBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 7,
371
+
372
+ /**
373
+ * Binary prefix: yobi, 1024^8.
374
+ *
375
+ * @stable ICU 69
376
+ */
377
+ UMEASURE_PREFIX_YOBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 8,
378
+
379
+ #ifndef U_HIDE_INTERNAL_API
380
+ /**
381
+ * ICU use only.
382
+ * Used to determine the set of base-1024 binary prefixes.
383
+ * @internal
384
+ */
385
+ UMEASURE_PREFIX_INTERNAL_MAX_BIN = UMEASURE_PREFIX_YOBI,
386
+ #endif // U_HIDE_INTERNAL_API
387
+ } UMeasurePrefix;
388
+
389
+ /**
390
+ * Returns the base of the factor associated with the given unit prefix: the
391
+ * base is 10 for SI prefixes (kilo, micro) and 1024 for binary prefixes (kibi,
392
+ * mebi).
393
+ *
394
+ * @stable ICU 69
395
+ */
396
+ U_CAPI int32_t U_EXPORT2 umeas_getPrefixBase(UMeasurePrefix unitPrefix);
397
+
398
+ /**
399
+ * Returns the exponent of the factor associated with the given unit prefix, for
400
+ * example 3 for kilo, -6 for micro, 1 for kibi, 2 for mebi, 3 for gibi.
401
+ *
402
+ * @stable ICU 69
403
+ */
404
+ U_CAPI int32_t U_EXPORT2 umeas_getPrefixPower(UMeasurePrefix unitPrefix);
405
+
406
+ /**
407
+ * A unit such as length, mass, volume, currency, etc. A unit is
408
+ * coupled with a numeric amount to produce a Measure.
409
+ *
410
+ * @author Alan Liu
411
+ * @stable ICU 3.0
412
+ */
413
+ class U_I18N_API MeasureUnit: public UObject {
414
+ public:
415
+
416
+ /**
417
+ * Default constructor.
418
+ * Populates the instance with the base dimensionless unit, which means that there will be
419
+ * no unit on the formatted number.
420
+ * @stable ICU 3.0
421
+ */
422
+ MeasureUnit();
423
+
424
+ /**
425
+ * Copy constructor.
426
+ * @stable ICU 3.0
427
+ */
428
+ MeasureUnit(const MeasureUnit &other);
429
+
430
+ /**
431
+ * Move constructor.
432
+ * @stable ICU 67
433
+ */
434
+ MeasureUnit(MeasureUnit &&other) noexcept;
435
+
436
+ /**
437
+ * Construct a MeasureUnit from a CLDR Core Unit Identifier, defined in UTS
438
+ * 35. (Core unit identifiers and mixed unit identifiers are supported, long
439
+ * unit identifiers are not.) Validates and canonicalizes the identifier.
440
+ *
441
+ * <pre>
442
+ * MeasureUnit example = MeasureUnit::forIdentifier("furlong-per-nanosecond")
443
+ * </pre>
444
+ *
445
+ * @param identifier The CLDR Unit Identifier.
446
+ * @param status Set if the identifier is invalid.
447
+ * @stable ICU 67
448
+ */
449
+ static MeasureUnit forIdentifier(StringPiece identifier, UErrorCode& status);
450
+
451
+ #if APPLE_ICU_CHANGES
452
+ // rdar://
453
+ #ifndef U_HIDE_DRAFT_API
454
+ /**
455
+ * [Apple-specific] Create a MeasureUnit instance based on a UAMeasureUnit value.
456
+ * @param uaMeasureUnit The UAMeasureUnit to base the new object on.
457
+ * @param status Error code.
458
+ * @return A newly-created MeasureUnit for the unit specified by uaMeasureUnit.
459
+ */
460
+ static MeasureUnit* createFromUAMeasureUnit(UAMeasureUnit uaMeasureUnit, UErrorCode* status);
461
+ #endif // U_HIDE_DRAFT_API
462
+ #endif // APPLE_ICU_CHANGES
463
+
464
+ /**
465
+ * Copy assignment operator.
466
+ * @stable ICU 3.0
467
+ */
468
+ MeasureUnit &operator=(const MeasureUnit &other);
469
+
470
+ /**
471
+ * Move assignment operator.
472
+ * @stable ICU 67
473
+ */
474
+ MeasureUnit &operator=(MeasureUnit &&other) noexcept;
475
+
476
+ /**
477
+ * Returns a polymorphic clone of this object. The result will
478
+ * have the same class as returned by getDynamicClassID().
479
+ * @stable ICU 3.0
480
+ */
481
+ virtual MeasureUnit* clone() const;
482
+
483
+ /**
484
+ * Destructor
485
+ * @stable ICU 3.0
486
+ */
487
+ virtual ~MeasureUnit();
488
+
489
+ /**
490
+ * Equality operator. Return true if this object is equal
491
+ * to the given object.
492
+ * @stable ICU 3.0
493
+ */
494
+ virtual bool operator==(const UObject& other) const;
495
+
496
+ /**
497
+ * Inequality operator. Return true if this object is not equal
498
+ * to the given object.
499
+ * @stable ICU 53
500
+ */
501
+ bool operator!=(const UObject& other) const {
502
+ return !(*this == other);
503
+ }
504
+
505
+ /**
506
+ * Get the type.
507
+ *
508
+ * If the unit does not have a type, the empty string is returned.
509
+ *
510
+ * @stable ICU 53
511
+ */
512
+ const char *getType() const;
513
+
514
+ /**
515
+ * Get the sub type.
516
+ *
517
+ * If the unit does not have a subtype, the empty string is returned.
518
+ *
519
+ * @stable ICU 53
520
+ */
521
+ const char *getSubtype() const;
522
+
523
+ #if APPLE_ICU_CHANGES
524
+ // rdar://
525
+ #ifndef U_HIDE_DRAFT_API
526
+ /**
527
+ * [Apple-specific] Returns the UAMeasureUnit value corresponding to this object's unit.
528
+ */
529
+ UAMeasureUnit getUAMeasureUnit() const;
530
+
531
+ /**
532
+ * [Apple-specific] Fills in the provided array with one or more UAMeasureUnits corresponding to this MeasureUnit.
533
+ * @param units A pointer to an array to fill with the results
534
+ * @param unitsCapacity The number of UAMeasureUnits the result array can hold.
535
+ * @param status The error code.
536
+ * @return The actual number of single units in this MeasureUnit.
537
+ */
538
+ int32_t getUAMeasureUnits(UAMeasureUnit* units, int32_t unitsCapacity, UErrorCode& status) const;
539
+ #endif // U_HIDE_DRAFT_API
540
+ #endif // APPLE_ICU_CHANGES
541
+
542
+ /**
543
+ * Get CLDR Unit Identifier for this MeasureUnit, as defined in UTS 35.
544
+ *
545
+ * @return The string form of this unit, owned by this MeasureUnit.
546
+ * @stable ICU 67
547
+ */
548
+ const char* getIdentifier() const;
549
+
550
+ /**
551
+ * Compute the complexity of the unit. See UMeasureUnitComplexity for more information.
552
+ *
553
+ * @param status Set if an error occurs.
554
+ * @return The unit complexity.
555
+ * @stable ICU 67
556
+ */
557
+ UMeasureUnitComplexity getComplexity(UErrorCode& status) const;
558
+
559
+ /**
560
+ * Creates a MeasureUnit which is this SINGLE unit augmented with the specified prefix.
561
+ * For example, UMEASURE_PREFIX_KILO for "kilo", or UMEASURE_PREFIX_KIBI for "kibi".
562
+ *
563
+ * There is sufficient locale data to format all standard prefixes.
564
+ *
565
+ * NOTE: Only works on SINGLE units. If this is a COMPOUND or MIXED unit, an error will
566
+ * occur. For more information, see UMeasureUnitComplexity.
567
+ *
568
+ * @param prefix The prefix, from UMeasurePrefix.
569
+ * @param status Set if this is not a SINGLE unit or if another error occurs.
570
+ * @return A new SINGLE unit.
571
+ * @stable ICU 69
572
+ */
573
+ MeasureUnit withPrefix(UMeasurePrefix prefix, UErrorCode& status) const;
574
+
575
+ /**
576
+ * Returns the current SI or binary prefix of this SINGLE unit. For example,
577
+ * if the unit has the prefix "kilo", then UMEASURE_PREFIX_KILO is
578
+ * returned.
579
+ *
580
+ * NOTE: Only works on SINGLE units. If this is a COMPOUND or MIXED unit, an error will
581
+ * occur. For more information, see UMeasureUnitComplexity.
582
+ *
583
+ * @param status Set if this is not a SINGLE unit or if another error occurs.
584
+ * @return The prefix of this SINGLE unit, from UMeasurePrefix.
585
+ * @see umeas_getPrefixBase
586
+ * @see umeas_getPrefixPower
587
+ * @stable ICU 69
588
+ */
589
+ UMeasurePrefix getPrefix(UErrorCode& status) const;
590
+
591
+ /**
592
+ * Creates a MeasureUnit which is this SINGLE unit augmented with the specified dimensionality
593
+ * (power). For example, if dimensionality is 2, the unit will be squared.
594
+ *
595
+ * NOTE: Only works on SINGLE units. If this is a COMPOUND or MIXED unit, an error will
596
+ * occur. For more information, see UMeasureUnitComplexity.
597
+ *
598
+ * For the base dimensionless unit, withDimensionality does nothing.
599
+ *
600
+ * @param dimensionality The dimensionality (power).
601
+ * @param status Set if this is not a SINGLE unit or if another error occurs.
602
+ * @return A new SINGLE unit.
603
+ * @stable ICU 67
604
+ */
605
+ MeasureUnit withDimensionality(int32_t dimensionality, UErrorCode& status) const;
606
+
607
+ /**
608
+ * Gets the dimensionality (power) of this MeasureUnit. For example, if the unit is square,
609
+ * then 2 is returned.
610
+ *
611
+ * NOTE: Only works on SINGLE units. If this is a COMPOUND or MIXED unit, an error will
612
+ * occur. For more information, see UMeasureUnitComplexity.
613
+ *
614
+ * For the base dimensionless unit, getDimensionality returns 0.
615
+ *
616
+ * @param status Set if this is not a SINGLE unit or if another error occurs.
617
+ * @return The dimensionality (power) of this simple unit.
618
+ * @stable ICU 67
619
+ */
620
+ int32_t getDimensionality(UErrorCode& status) const;
621
+
622
+ /**
623
+ * Gets the reciprocal of this MeasureUnit, with the numerator and denominator flipped.
624
+ *
625
+ * For example, if the receiver is "meter-per-second", the unit "second-per-meter" is returned.
626
+ *
627
+ * NOTE: Only works on SINGLE and COMPOUND units. If this is a MIXED unit, an error will
628
+ * occur. For more information, see UMeasureUnitComplexity.
629
+ *
630
+ * @param status Set if this is a MIXED unit or if another error occurs.
631
+ * @return The reciprocal of the target unit.
632
+ * @stable ICU 67
633
+ */
634
+ MeasureUnit reciprocal(UErrorCode& status) const;
635
+
636
+ /**
637
+ * Gets the product of this unit with another unit. This is a way to build units from
638
+ * constituent parts.
639
+ *
640
+ * The numerator and denominator are preserved through this operation.
641
+ *
642
+ * For example, if the receiver is "kilowatt" and the argument is "hour-per-day", then the
643
+ * unit "kilowatt-hour-per-day" is returned.
644
+ *
645
+ * NOTE: Only works on SINGLE and COMPOUND units. If either unit (receiver and argument) is a
646
+ * MIXED unit, an error will occur. For more information, see UMeasureUnitComplexity.
647
+ *
648
+ * @param other The MeasureUnit to multiply with the target.
649
+ * @param status Set if this or other is a MIXED unit or if another error occurs.
650
+ * @return The product of the target unit with the provided unit.
651
+ * @stable ICU 67
652
+ */
653
+ MeasureUnit product(const MeasureUnit& other, UErrorCode& status) const;
654
+
655
+ /**
656
+ * Gets the list of SINGLE units contained within a MIXED or COMPOUND unit.
657
+ *
658
+ * Examples:
659
+ * - Given "meter-kilogram-per-second", three units will be returned: "meter",
660
+ * "kilogram", and "per-second".
661
+ * - Given "hour+minute+second", three units will be returned: "hour", "minute",
662
+ * and "second".
663
+ *
664
+ * If this is a SINGLE unit, an array of length 1 will be returned.
665
+ *
666
+ * @param status Set if an error occurs.
667
+ * @return A pair with the list of units as a LocalArray and the number of units in the list.
668
+ * @stable ICU 68
669
+ */
670
+ inline std::pair<LocalArray<MeasureUnit>, int32_t> splitToSingleUnits(UErrorCode& status) const;
671
+
672
+ /**
673
+ * getAvailable gets all of the available units.
674
+ * If there are too many units to fit into destCapacity then the
675
+ * error code is set to U_BUFFER_OVERFLOW_ERROR.
676
+ *
677
+ * @param destArray destination buffer.
678
+ * @param destCapacity number of MeasureUnit instances available at dest.
679
+ * @param errorCode ICU error code.
680
+ * @return number of available units.
681
+ * @stable ICU 53
682
+ */
683
+ static int32_t getAvailable(
684
+ MeasureUnit *destArray,
685
+ int32_t destCapacity,
686
+ UErrorCode &errorCode);
687
+
688
+ /**
689
+ * getAvailable gets all of the available units for a specific type.
690
+ * If there are too many units to fit into destCapacity then the
691
+ * error code is set to U_BUFFER_OVERFLOW_ERROR.
692
+ *
693
+ * @param type the type
694
+ * @param destArray destination buffer.
695
+ * @param destCapacity number of MeasureUnit instances available at dest.
696
+ * @param errorCode ICU error code.
697
+ * @return number of available units for type.
698
+ * @stable ICU 53
699
+ */
700
+ static int32_t getAvailable(
701
+ const char *type,
702
+ MeasureUnit *destArray,
703
+ int32_t destCapacity,
704
+ UErrorCode &errorCode);
705
+
706
+ /**
707
+ * getAvailableTypes gets all of the available types. Caller owns the
708
+ * returned StringEnumeration and must delete it when finished using it.
709
+ *
710
+ * @param errorCode ICU error code.
711
+ * @return the types.
712
+ * @stable ICU 53
713
+ */
714
+ static StringEnumeration* getAvailableTypes(UErrorCode &errorCode);
715
+
716
+ /**
717
+ * Return the class ID for this class. This is useful only for comparing to
718
+ * a return value from getDynamicClassID(). For example:
719
+ * <pre>
720
+ * . Base* polymorphic_pointer = createPolymorphicObject();
721
+ * . if (polymorphic_pointer->getDynamicClassID() ==
722
+ * . Derived::getStaticClassID()) ...
723
+ * </pre>
724
+ * @return The class ID for all objects of this class.
725
+ * @stable ICU 53
726
+ */
727
+ static UClassID U_EXPORT2 getStaticClassID();
728
+
729
+ /**
730
+ * Returns a unique class ID POLYMORPHICALLY. Pure virtual override. This
731
+ * method is to implement a simple version of RTTI, since not all C++
732
+ * compilers support genuine RTTI. Polymorphic operator==() and clone()
733
+ * methods call this method.
734
+ *
735
+ * @return The class ID for this object. All objects of a
736
+ * given class have the same class ID. Objects of
737
+ * other classes have different class IDs.
738
+ * @stable ICU 53
739
+ */
740
+ virtual UClassID getDynamicClassID() const override;
741
+
742
+ #ifndef U_HIDE_INTERNAL_API
743
+ /**
744
+ * ICU use only.
745
+ * Returns associated array index for this measure unit.
746
+ * @internal
747
+ */
748
+ int32_t getOffset() const;
749
+ #endif /* U_HIDE_INTERNAL_API */
750
+
751
+ // All code between the "Start generated createXXX methods" comment and
752
+ // the "End generated createXXX methods" comment is auto generated code
753
+ // and must not be edited manually. For instructions on how to correctly
754
+ // update this code, refer to:
755
+ // docs/processes/release/tasks/updating-measure-unit.md
756
+ //
757
+ // Start generated createXXX methods
758
+
759
+ /**
760
+ * Returns by pointer, unit of acceleration: g-force.
761
+ * Caller owns returned value and must free it.
762
+ * Also see {@link #getGForce()}.
763
+ * @param status ICU error code.
764
+ * @stable ICU 53
765
+ */
766
+ static MeasureUnit *createGForce(UErrorCode &status);
767
+
768
+ /**
769
+ * Returns by value, unit of acceleration: g-force.
770
+ * Also see {@link #createGForce()}.
771
+ * @stable ICU 64
772
+ */
773
+ static MeasureUnit getGForce();
774
+
775
+ /**
776
+ * Returns by pointer, unit of acceleration: meter-per-square-second.
777
+ * Caller owns returned value and must free it.
778
+ * Also see {@link #getMeterPerSecondSquared()}.
779
+ * @param status ICU error code.
780
+ * @stable ICU 54
781
+ */
782
+ static MeasureUnit *createMeterPerSecondSquared(UErrorCode &status);
783
+
784
+ /**
785
+ * Returns by value, unit of acceleration: meter-per-square-second.
786
+ * Also see {@link #createMeterPerSecondSquared()}.
787
+ * @stable ICU 64
788
+ */
789
+ static MeasureUnit getMeterPerSecondSquared();
790
+
791
+ /**
792
+ * Returns by pointer, unit of angle: arc-minute.
793
+ * Caller owns returned value and must free it.
794
+ * Also see {@link #getArcMinute()}.
795
+ * @param status ICU error code.
796
+ * @stable ICU 53
797
+ */
798
+ static MeasureUnit *createArcMinute(UErrorCode &status);
799
+
800
+ /**
801
+ * Returns by value, unit of angle: arc-minute.
802
+ * Also see {@link #createArcMinute()}.
803
+ * @stable ICU 64
804
+ */
805
+ static MeasureUnit getArcMinute();
806
+
807
+ /**
808
+ * Returns by pointer, unit of angle: arc-second.
809
+ * Caller owns returned value and must free it.
810
+ * Also see {@link #getArcSecond()}.
811
+ * @param status ICU error code.
812
+ * @stable ICU 53
813
+ */
814
+ static MeasureUnit *createArcSecond(UErrorCode &status);
815
+
816
+ /**
817
+ * Returns by value, unit of angle: arc-second.
818
+ * Also see {@link #createArcSecond()}.
819
+ * @stable ICU 64
820
+ */
821
+ static MeasureUnit getArcSecond();
822
+
823
+ /**
824
+ * Returns by pointer, unit of angle: degree.
825
+ * Caller owns returned value and must free it.
826
+ * Also see {@link #getDegree()}.
827
+ * @param status ICU error code.
828
+ * @stable ICU 53
829
+ */
830
+ static MeasureUnit *createDegree(UErrorCode &status);
831
+
832
+ /**
833
+ * Returns by value, unit of angle: degree.
834
+ * Also see {@link #createDegree()}.
835
+ * @stable ICU 64
836
+ */
837
+ static MeasureUnit getDegree();
838
+
839
+ /**
840
+ * Returns by pointer, unit of angle: radian.
841
+ * Caller owns returned value and must free it.
842
+ * Also see {@link #getRadian()}.
843
+ * @param status ICU error code.
844
+ * @stable ICU 54
845
+ */
846
+ static MeasureUnit *createRadian(UErrorCode &status);
847
+
848
+ /**
849
+ * Returns by value, unit of angle: radian.
850
+ * Also see {@link #createRadian()}.
851
+ * @stable ICU 64
852
+ */
853
+ static MeasureUnit getRadian();
854
+
855
+ /**
856
+ * Returns by pointer, unit of angle: revolution.
857
+ * Caller owns returned value and must free it.
858
+ * Also see {@link #getRevolutionAngle()}.
859
+ * @param status ICU error code.
860
+ * @stable ICU 56
861
+ */
862
+ static MeasureUnit *createRevolutionAngle(UErrorCode &status);
863
+
864
+ /**
865
+ * Returns by value, unit of angle: revolution.
866
+ * Also see {@link #createRevolutionAngle()}.
867
+ * @stable ICU 64
868
+ */
869
+ static MeasureUnit getRevolutionAngle();
870
+
871
+ /**
872
+ * Returns by pointer, unit of area: acre.
873
+ * Caller owns returned value and must free it.
874
+ * Also see {@link #getAcre()}.
875
+ * @param status ICU error code.
876
+ * @stable ICU 53
877
+ */
878
+ static MeasureUnit *createAcre(UErrorCode &status);
879
+
880
+ /**
881
+ * Returns by value, unit of area: acre.
882
+ * Also see {@link #createAcre()}.
883
+ * @stable ICU 64
884
+ */
885
+ static MeasureUnit getAcre();
886
+
887
+ /**
888
+ * Returns by pointer, unit of area: dunam.
889
+ * Caller owns returned value and must free it.
890
+ * Also see {@link #getDunam()}.
891
+ * @param status ICU error code.
892
+ * @stable ICU 64
893
+ */
894
+ static MeasureUnit *createDunam(UErrorCode &status);
895
+
896
+ /**
897
+ * Returns by value, unit of area: dunam.
898
+ * Also see {@link #createDunam()}.
899
+ * @stable ICU 64
900
+ */
901
+ static MeasureUnit getDunam();
902
+
903
+ /**
904
+ * Returns by pointer, unit of area: hectare.
905
+ * Caller owns returned value and must free it.
906
+ * Also see {@link #getHectare()}.
907
+ * @param status ICU error code.
908
+ * @stable ICU 53
909
+ */
910
+ static MeasureUnit *createHectare(UErrorCode &status);
911
+
912
+ /**
913
+ * Returns by value, unit of area: hectare.
914
+ * Also see {@link #createHectare()}.
915
+ * @stable ICU 64
916
+ */
917
+ static MeasureUnit getHectare();
918
+
919
+ /**
920
+ * Returns by pointer, unit of area: square-centimeter.
921
+ * Caller owns returned value and must free it.
922
+ * Also see {@link #getSquareCentimeter()}.
923
+ * @param status ICU error code.
924
+ * @stable ICU 54
925
+ */
926
+ static MeasureUnit *createSquareCentimeter(UErrorCode &status);
927
+
928
+ /**
929
+ * Returns by value, unit of area: square-centimeter.
930
+ * Also see {@link #createSquareCentimeter()}.
931
+ * @stable ICU 64
932
+ */
933
+ static MeasureUnit getSquareCentimeter();
934
+
935
+ /**
936
+ * Returns by pointer, unit of area: square-foot.
937
+ * Caller owns returned value and must free it.
938
+ * Also see {@link #getSquareFoot()}.
939
+ * @param status ICU error code.
940
+ * @stable ICU 53
941
+ */
942
+ static MeasureUnit *createSquareFoot(UErrorCode &status);
943
+
944
+ /**
945
+ * Returns by value, unit of area: square-foot.
946
+ * Also see {@link #createSquareFoot()}.
947
+ * @stable ICU 64
948
+ */
949
+ static MeasureUnit getSquareFoot();
950
+
951
+ /**
952
+ * Returns by pointer, unit of area: square-inch.
953
+ * Caller owns returned value and must free it.
954
+ * Also see {@link #getSquareInch()}.
955
+ * @param status ICU error code.
956
+ * @stable ICU 54
957
+ */
958
+ static MeasureUnit *createSquareInch(UErrorCode &status);
959
+
960
+ /**
961
+ * Returns by value, unit of area: square-inch.
962
+ * Also see {@link #createSquareInch()}.
963
+ * @stable ICU 64
964
+ */
965
+ static MeasureUnit getSquareInch();
966
+
967
+ /**
968
+ * Returns by pointer, unit of area: square-kilometer.
969
+ * Caller owns returned value and must free it.
970
+ * Also see {@link #getSquareKilometer()}.
971
+ * @param status ICU error code.
972
+ * @stable ICU 53
973
+ */
974
+ static MeasureUnit *createSquareKilometer(UErrorCode &status);
975
+
976
+ /**
977
+ * Returns by value, unit of area: square-kilometer.
978
+ * Also see {@link #createSquareKilometer()}.
979
+ * @stable ICU 64
980
+ */
981
+ static MeasureUnit getSquareKilometer();
982
+
983
+ /**
984
+ * Returns by pointer, unit of area: square-meter.
985
+ * Caller owns returned value and must free it.
986
+ * Also see {@link #getSquareMeter()}.
987
+ * @param status ICU error code.
988
+ * @stable ICU 53
989
+ */
990
+ static MeasureUnit *createSquareMeter(UErrorCode &status);
991
+
992
+ /**
993
+ * Returns by value, unit of area: square-meter.
994
+ * Also see {@link #createSquareMeter()}.
995
+ * @stable ICU 64
996
+ */
997
+ static MeasureUnit getSquareMeter();
998
+
999
+ /**
1000
+ * Returns by pointer, unit of area: square-mile.
1001
+ * Caller owns returned value and must free it.
1002
+ * Also see {@link #getSquareMile()}.
1003
+ * @param status ICU error code.
1004
+ * @stable ICU 53
1005
+ */
1006
+ static MeasureUnit *createSquareMile(UErrorCode &status);
1007
+
1008
+ /**
1009
+ * Returns by value, unit of area: square-mile.
1010
+ * Also see {@link #createSquareMile()}.
1011
+ * @stable ICU 64
1012
+ */
1013
+ static MeasureUnit getSquareMile();
1014
+
1015
+ /**
1016
+ * Returns by pointer, unit of area: square-yard.
1017
+ * Caller owns returned value and must free it.
1018
+ * Also see {@link #getSquareYard()}.
1019
+ * @param status ICU error code.
1020
+ * @stable ICU 54
1021
+ */
1022
+ static MeasureUnit *createSquareYard(UErrorCode &status);
1023
+
1024
+ /**
1025
+ * Returns by value, unit of area: square-yard.
1026
+ * Also see {@link #createSquareYard()}.
1027
+ * @stable ICU 64
1028
+ */
1029
+ static MeasureUnit getSquareYard();
1030
+
1031
+ /**
1032
+ * Returns by pointer, unit of concentr: item.
1033
+ * Caller owns returned value and must free it.
1034
+ * Also see {@link #getItem()}.
1035
+ * @param status ICU error code.
1036
+ * @stable ICU 70
1037
+ */
1038
+ static MeasureUnit *createItem(UErrorCode &status);
1039
+
1040
+ /**
1041
+ * Returns by value, unit of concentr: item.
1042
+ * Also see {@link #createItem()}.
1043
+ * @stable ICU 70
1044
+ */
1045
+ static MeasureUnit getItem();
1046
+
1047
+ /**
1048
+ * Returns by pointer, unit of concentr: karat.
1049
+ * Caller owns returned value and must free it.
1050
+ * Also see {@link #getKarat()}.
1051
+ * @param status ICU error code.
1052
+ * @stable ICU 54
1053
+ */
1054
+ static MeasureUnit *createKarat(UErrorCode &status);
1055
+
1056
+ /**
1057
+ * Returns by value, unit of concentr: karat.
1058
+ * Also see {@link #createKarat()}.
1059
+ * @stable ICU 64
1060
+ */
1061
+ static MeasureUnit getKarat();
1062
+
1063
+ /**
1064
+ * Returns by pointer, unit of concentr: milligram-ofglucose-per-deciliter.
1065
+ * Caller owns returned value and must free it.
1066
+ * Also see {@link #getMilligramOfglucosePerDeciliter()}.
1067
+ * @param status ICU error code.
1068
+ * @stable ICU 69
1069
+ */
1070
+ static MeasureUnit *createMilligramOfglucosePerDeciliter(UErrorCode &status);
1071
+
1072
+ /**
1073
+ * Returns by value, unit of concentr: milligram-ofglucose-per-deciliter.
1074
+ * Also see {@link #createMilligramOfglucosePerDeciliter()}.
1075
+ * @stable ICU 69
1076
+ */
1077
+ static MeasureUnit getMilligramOfglucosePerDeciliter();
1078
+
1079
+ /**
1080
+ * Returns by pointer, unit of concentr: milligram-per-deciliter.
1081
+ * Caller owns returned value and must free it.
1082
+ * Also see {@link #getMilligramPerDeciliter()}.
1083
+ * @param status ICU error code.
1084
+ * @stable ICU 57
1085
+ */
1086
+ static MeasureUnit *createMilligramPerDeciliter(UErrorCode &status);
1087
+
1088
+ /**
1089
+ * Returns by value, unit of concentr: milligram-per-deciliter.
1090
+ * Also see {@link #createMilligramPerDeciliter()}.
1091
+ * @stable ICU 64
1092
+ */
1093
+ static MeasureUnit getMilligramPerDeciliter();
1094
+
1095
+ /**
1096
+ * Returns by pointer, unit of concentr: millimole-per-liter.
1097
+ * Caller owns returned value and must free it.
1098
+ * Also see {@link #getMillimolePerLiter()}.
1099
+ * @param status ICU error code.
1100
+ * @stable ICU 57
1101
+ */
1102
+ static MeasureUnit *createMillimolePerLiter(UErrorCode &status);
1103
+
1104
+ /**
1105
+ * Returns by value, unit of concentr: millimole-per-liter.
1106
+ * Also see {@link #createMillimolePerLiter()}.
1107
+ * @stable ICU 64
1108
+ */
1109
+ static MeasureUnit getMillimolePerLiter();
1110
+
1111
+ /**
1112
+ * Returns by pointer, unit of concentr: mole.
1113
+ * Caller owns returned value and must free it.
1114
+ * Also see {@link #getMole()}.
1115
+ * @param status ICU error code.
1116
+ * @stable ICU 64
1117
+ */
1118
+ static MeasureUnit *createMole(UErrorCode &status);
1119
+
1120
+ /**
1121
+ * Returns by value, unit of concentr: mole.
1122
+ * Also see {@link #createMole()}.
1123
+ * @stable ICU 64
1124
+ */
1125
+ static MeasureUnit getMole();
1126
+
1127
+ /**
1128
+ * Returns by pointer, unit of concentr: percent.
1129
+ * Caller owns returned value and must free it.
1130
+ * Also see {@link #getPercent()}.
1131
+ * @param status ICU error code.
1132
+ * @stable ICU 63
1133
+ */
1134
+ static MeasureUnit *createPercent(UErrorCode &status);
1135
+
1136
+ /**
1137
+ * Returns by value, unit of concentr: percent.
1138
+ * Also see {@link #createPercent()}.
1139
+ * @stable ICU 64
1140
+ */
1141
+ static MeasureUnit getPercent();
1142
+
1143
+ /**
1144
+ * Returns by pointer, unit of concentr: permille.
1145
+ * Caller owns returned value and must free it.
1146
+ * Also see {@link #getPermille()}.
1147
+ * @param status ICU error code.
1148
+ * @stable ICU 63
1149
+ */
1150
+ static MeasureUnit *createPermille(UErrorCode &status);
1151
+
1152
+ /**
1153
+ * Returns by value, unit of concentr: permille.
1154
+ * Also see {@link #createPermille()}.
1155
+ * @stable ICU 64
1156
+ */
1157
+ static MeasureUnit getPermille();
1158
+
1159
+ /**
1160
+ * Returns by pointer, unit of concentr: permillion.
1161
+ * Caller owns returned value and must free it.
1162
+ * Also see {@link #getPartPerMillion()}.
1163
+ * @param status ICU error code.
1164
+ * @stable ICU 57
1165
+ */
1166
+ static MeasureUnit *createPartPerMillion(UErrorCode &status);
1167
+
1168
+ /**
1169
+ * Returns by value, unit of concentr: permillion.
1170
+ * Also see {@link #createPartPerMillion()}.
1171
+ * @stable ICU 64
1172
+ */
1173
+ static MeasureUnit getPartPerMillion();
1174
+
1175
+ /**
1176
+ * Returns by pointer, unit of concentr: permyriad.
1177
+ * Caller owns returned value and must free it.
1178
+ * Also see {@link #getPermyriad()}.
1179
+ * @param status ICU error code.
1180
+ * @stable ICU 64
1181
+ */
1182
+ static MeasureUnit *createPermyriad(UErrorCode &status);
1183
+
1184
+ /**
1185
+ * Returns by value, unit of concentr: permyriad.
1186
+ * Also see {@link #createPermyriad()}.
1187
+ * @stable ICU 64
1188
+ */
1189
+ static MeasureUnit getPermyriad();
1190
+
1191
+ /**
1192
+ * Returns by pointer, unit of consumption: liter-per-100-kilometer.
1193
+ * Caller owns returned value and must free it.
1194
+ * Also see {@link #getLiterPer100Kilometers()}.
1195
+ * @param status ICU error code.
1196
+ * @stable ICU 56
1197
+ */
1198
+ static MeasureUnit *createLiterPer100Kilometers(UErrorCode &status);
1199
+
1200
+ /**
1201
+ * Returns by value, unit of consumption: liter-per-100-kilometer.
1202
+ * Also see {@link #createLiterPer100Kilometers()}.
1203
+ * @stable ICU 64
1204
+ */
1205
+ static MeasureUnit getLiterPer100Kilometers();
1206
+
1207
+ /**
1208
+ * Returns by pointer, unit of consumption: liter-per-kilometer.
1209
+ * Caller owns returned value and must free it.
1210
+ * Also see {@link #getLiterPerKilometer()}.
1211
+ * @param status ICU error code.
1212
+ * @stable ICU 54
1213
+ */
1214
+ static MeasureUnit *createLiterPerKilometer(UErrorCode &status);
1215
+
1216
+ /**
1217
+ * Returns by value, unit of consumption: liter-per-kilometer.
1218
+ * Also see {@link #createLiterPerKilometer()}.
1219
+ * @stable ICU 64
1220
+ */
1221
+ static MeasureUnit getLiterPerKilometer();
1222
+
1223
+ /**
1224
+ * Returns by pointer, unit of consumption: mile-per-gallon.
1225
+ * Caller owns returned value and must free it.
1226
+ * Also see {@link #getMilePerGallon()}.
1227
+ * @param status ICU error code.
1228
+ * @stable ICU 54
1229
+ */
1230
+ static MeasureUnit *createMilePerGallon(UErrorCode &status);
1231
+
1232
+ /**
1233
+ * Returns by value, unit of consumption: mile-per-gallon.
1234
+ * Also see {@link #createMilePerGallon()}.
1235
+ * @stable ICU 64
1236
+ */
1237
+ static MeasureUnit getMilePerGallon();
1238
+
1239
+ /**
1240
+ * Returns by pointer, unit of consumption: mile-per-gallon-imperial.
1241
+ * Caller owns returned value and must free it.
1242
+ * Also see {@link #getMilePerGallonImperial()}.
1243
+ * @param status ICU error code.
1244
+ * @stable ICU 57
1245
+ */
1246
+ static MeasureUnit *createMilePerGallonImperial(UErrorCode &status);
1247
+
1248
+ /**
1249
+ * Returns by value, unit of consumption: mile-per-gallon-imperial.
1250
+ * Also see {@link #createMilePerGallonImperial()}.
1251
+ * @stable ICU 64
1252
+ */
1253
+ static MeasureUnit getMilePerGallonImperial();
1254
+
1255
+ /**
1256
+ * Returns by pointer, unit of digital: bit.
1257
+ * Caller owns returned value and must free it.
1258
+ * Also see {@link #getBit()}.
1259
+ * @param status ICU error code.
1260
+ * @stable ICU 54
1261
+ */
1262
+ static MeasureUnit *createBit(UErrorCode &status);
1263
+
1264
+ /**
1265
+ * Returns by value, unit of digital: bit.
1266
+ * Also see {@link #createBit()}.
1267
+ * @stable ICU 64
1268
+ */
1269
+ static MeasureUnit getBit();
1270
+
1271
+ /**
1272
+ * Returns by pointer, unit of digital: byte.
1273
+ * Caller owns returned value and must free it.
1274
+ * Also see {@link #getByte()}.
1275
+ * @param status ICU error code.
1276
+ * @stable ICU 54
1277
+ */
1278
+ static MeasureUnit *createByte(UErrorCode &status);
1279
+
1280
+ /**
1281
+ * Returns by value, unit of digital: byte.
1282
+ * Also see {@link #createByte()}.
1283
+ * @stable ICU 64
1284
+ */
1285
+ static MeasureUnit getByte();
1286
+
1287
+ /**
1288
+ * Returns by pointer, unit of digital: gigabit.
1289
+ * Caller owns returned value and must free it.
1290
+ * Also see {@link #getGigabit()}.
1291
+ * @param status ICU error code.
1292
+ * @stable ICU 54
1293
+ */
1294
+ static MeasureUnit *createGigabit(UErrorCode &status);
1295
+
1296
+ /**
1297
+ * Returns by value, unit of digital: gigabit.
1298
+ * Also see {@link #createGigabit()}.
1299
+ * @stable ICU 64
1300
+ */
1301
+ static MeasureUnit getGigabit();
1302
+
1303
+ /**
1304
+ * Returns by pointer, unit of digital: gigabyte.
1305
+ * Caller owns returned value and must free it.
1306
+ * Also see {@link #getGigabyte()}.
1307
+ * @param status ICU error code.
1308
+ * @stable ICU 54
1309
+ */
1310
+ static MeasureUnit *createGigabyte(UErrorCode &status);
1311
+
1312
+ /**
1313
+ * Returns by value, unit of digital: gigabyte.
1314
+ * Also see {@link #createGigabyte()}.
1315
+ * @stable ICU 64
1316
+ */
1317
+ static MeasureUnit getGigabyte();
1318
+
1319
+ /**
1320
+ * Returns by pointer, unit of digital: kilobit.
1321
+ * Caller owns returned value and must free it.
1322
+ * Also see {@link #getKilobit()}.
1323
+ * @param status ICU error code.
1324
+ * @stable ICU 54
1325
+ */
1326
+ static MeasureUnit *createKilobit(UErrorCode &status);
1327
+
1328
+ /**
1329
+ * Returns by value, unit of digital: kilobit.
1330
+ * Also see {@link #createKilobit()}.
1331
+ * @stable ICU 64
1332
+ */
1333
+ static MeasureUnit getKilobit();
1334
+
1335
+ /**
1336
+ * Returns by pointer, unit of digital: kilobyte.
1337
+ * Caller owns returned value and must free it.
1338
+ * Also see {@link #getKilobyte()}.
1339
+ * @param status ICU error code.
1340
+ * @stable ICU 54
1341
+ */
1342
+ static MeasureUnit *createKilobyte(UErrorCode &status);
1343
+
1344
+ /**
1345
+ * Returns by value, unit of digital: kilobyte.
1346
+ * Also see {@link #createKilobyte()}.
1347
+ * @stable ICU 64
1348
+ */
1349
+ static MeasureUnit getKilobyte();
1350
+
1351
+ /**
1352
+ * Returns by pointer, unit of digital: megabit.
1353
+ * Caller owns returned value and must free it.
1354
+ * Also see {@link #getMegabit()}.
1355
+ * @param status ICU error code.
1356
+ * @stable ICU 54
1357
+ */
1358
+ static MeasureUnit *createMegabit(UErrorCode &status);
1359
+
1360
+ /**
1361
+ * Returns by value, unit of digital: megabit.
1362
+ * Also see {@link #createMegabit()}.
1363
+ * @stable ICU 64
1364
+ */
1365
+ static MeasureUnit getMegabit();
1366
+
1367
+ /**
1368
+ * Returns by pointer, unit of digital: megabyte.
1369
+ * Caller owns returned value and must free it.
1370
+ * Also see {@link #getMegabyte()}.
1371
+ * @param status ICU error code.
1372
+ * @stable ICU 54
1373
+ */
1374
+ static MeasureUnit *createMegabyte(UErrorCode &status);
1375
+
1376
+ /**
1377
+ * Returns by value, unit of digital: megabyte.
1378
+ * Also see {@link #createMegabyte()}.
1379
+ * @stable ICU 64
1380
+ */
1381
+ static MeasureUnit getMegabyte();
1382
+
1383
+ /**
1384
+ * Returns by pointer, unit of digital: petabyte.
1385
+ * Caller owns returned value and must free it.
1386
+ * Also see {@link #getPetabyte()}.
1387
+ * @param status ICU error code.
1388
+ * @stable ICU 63
1389
+ */
1390
+ static MeasureUnit *createPetabyte(UErrorCode &status);
1391
+
1392
+ /**
1393
+ * Returns by value, unit of digital: petabyte.
1394
+ * Also see {@link #createPetabyte()}.
1395
+ * @stable ICU 64
1396
+ */
1397
+ static MeasureUnit getPetabyte();
1398
+
1399
+ /**
1400
+ * Returns by pointer, unit of digital: terabit.
1401
+ * Caller owns returned value and must free it.
1402
+ * Also see {@link #getTerabit()}.
1403
+ * @param status ICU error code.
1404
+ * @stable ICU 54
1405
+ */
1406
+ static MeasureUnit *createTerabit(UErrorCode &status);
1407
+
1408
+ /**
1409
+ * Returns by value, unit of digital: terabit.
1410
+ * Also see {@link #createTerabit()}.
1411
+ * @stable ICU 64
1412
+ */
1413
+ static MeasureUnit getTerabit();
1414
+
1415
+ /**
1416
+ * Returns by pointer, unit of digital: terabyte.
1417
+ * Caller owns returned value and must free it.
1418
+ * Also see {@link #getTerabyte()}.
1419
+ * @param status ICU error code.
1420
+ * @stable ICU 54
1421
+ */
1422
+ static MeasureUnit *createTerabyte(UErrorCode &status);
1423
+
1424
+ /**
1425
+ * Returns by value, unit of digital: terabyte.
1426
+ * Also see {@link #createTerabyte()}.
1427
+ * @stable ICU 64
1428
+ */
1429
+ static MeasureUnit getTerabyte();
1430
+
1431
+ /**
1432
+ * Returns by pointer, unit of duration: century.
1433
+ * Caller owns returned value and must free it.
1434
+ * Also see {@link #getCentury()}.
1435
+ * @param status ICU error code.
1436
+ * @stable ICU 56
1437
+ */
1438
+ static MeasureUnit *createCentury(UErrorCode &status);
1439
+
1440
+ /**
1441
+ * Returns by value, unit of duration: century.
1442
+ * Also see {@link #createCentury()}.
1443
+ * @stable ICU 64
1444
+ */
1445
+ static MeasureUnit getCentury();
1446
+
1447
+ /**
1448
+ * Returns by pointer, unit of duration: day.
1449
+ * Caller owns returned value and must free it.
1450
+ * Also see {@link #getDay()}.
1451
+ * @param status ICU error code.
1452
+ * @stable ICU 53
1453
+ */
1454
+ static MeasureUnit *createDay(UErrorCode &status);
1455
+
1456
+ /**
1457
+ * Returns by value, unit of duration: day.
1458
+ * Also see {@link #createDay()}.
1459
+ * @stable ICU 64
1460
+ */
1461
+ static MeasureUnit getDay();
1462
+
1463
+ /**
1464
+ * Returns by pointer, unit of duration: day-person.
1465
+ * Caller owns returned value and must free it.
1466
+ * Also see {@link #getDayPerson()}.
1467
+ * @param status ICU error code.
1468
+ * @stable ICU 64
1469
+ */
1470
+ static MeasureUnit *createDayPerson(UErrorCode &status);
1471
+
1472
+ /**
1473
+ * Returns by value, unit of duration: day-person.
1474
+ * Also see {@link #createDayPerson()}.
1475
+ * @stable ICU 64
1476
+ */
1477
+ static MeasureUnit getDayPerson();
1478
+
1479
+ /**
1480
+ * Returns by pointer, unit of duration: decade.
1481
+ * Caller owns returned value and must free it.
1482
+ * Also see {@link #getDecade()}.
1483
+ * @param status ICU error code.
1484
+ * @stable ICU 65
1485
+ */
1486
+ static MeasureUnit *createDecade(UErrorCode &status);
1487
+
1488
+ /**
1489
+ * Returns by value, unit of duration: decade.
1490
+ * Also see {@link #createDecade()}.
1491
+ * @stable ICU 65
1492
+ */
1493
+ static MeasureUnit getDecade();
1494
+
1495
+ /**
1496
+ * Returns by pointer, unit of duration: hour.
1497
+ * Caller owns returned value and must free it.
1498
+ * Also see {@link #getHour()}.
1499
+ * @param status ICU error code.
1500
+ * @stable ICU 53
1501
+ */
1502
+ static MeasureUnit *createHour(UErrorCode &status);
1503
+
1504
+ /**
1505
+ * Returns by value, unit of duration: hour.
1506
+ * Also see {@link #createHour()}.
1507
+ * @stable ICU 64
1508
+ */
1509
+ static MeasureUnit getHour();
1510
+
1511
+ /**
1512
+ * Returns by pointer, unit of duration: microsecond.
1513
+ * Caller owns returned value and must free it.
1514
+ * Also see {@link #getMicrosecond()}.
1515
+ * @param status ICU error code.
1516
+ * @stable ICU 54
1517
+ */
1518
+ static MeasureUnit *createMicrosecond(UErrorCode &status);
1519
+
1520
+ /**
1521
+ * Returns by value, unit of duration: microsecond.
1522
+ * Also see {@link #createMicrosecond()}.
1523
+ * @stable ICU 64
1524
+ */
1525
+ static MeasureUnit getMicrosecond();
1526
+
1527
+ /**
1528
+ * Returns by pointer, unit of duration: millisecond.
1529
+ * Caller owns returned value and must free it.
1530
+ * Also see {@link #getMillisecond()}.
1531
+ * @param status ICU error code.
1532
+ * @stable ICU 53
1533
+ */
1534
+ static MeasureUnit *createMillisecond(UErrorCode &status);
1535
+
1536
+ /**
1537
+ * Returns by value, unit of duration: millisecond.
1538
+ * Also see {@link #createMillisecond()}.
1539
+ * @stable ICU 64
1540
+ */
1541
+ static MeasureUnit getMillisecond();
1542
+
1543
+ /**
1544
+ * Returns by pointer, unit of duration: minute.
1545
+ * Caller owns returned value and must free it.
1546
+ * Also see {@link #getMinute()}.
1547
+ * @param status ICU error code.
1548
+ * @stable ICU 53
1549
+ */
1550
+ static MeasureUnit *createMinute(UErrorCode &status);
1551
+
1552
+ /**
1553
+ * Returns by value, unit of duration: minute.
1554
+ * Also see {@link #createMinute()}.
1555
+ * @stable ICU 64
1556
+ */
1557
+ static MeasureUnit getMinute();
1558
+
1559
+ /**
1560
+ * Returns by pointer, unit of duration: month.
1561
+ * Caller owns returned value and must free it.
1562
+ * Also see {@link #getMonth()}.
1563
+ * @param status ICU error code.
1564
+ * @stable ICU 53
1565
+ */
1566
+ static MeasureUnit *createMonth(UErrorCode &status);
1567
+
1568
+ /**
1569
+ * Returns by value, unit of duration: month.
1570
+ * Also see {@link #createMonth()}.
1571
+ * @stable ICU 64
1572
+ */
1573
+ static MeasureUnit getMonth();
1574
+
1575
+ /**
1576
+ * Returns by pointer, unit of duration: month-person.
1577
+ * Caller owns returned value and must free it.
1578
+ * Also see {@link #getMonthPerson()}.
1579
+ * @param status ICU error code.
1580
+ * @stable ICU 64
1581
+ */
1582
+ static MeasureUnit *createMonthPerson(UErrorCode &status);
1583
+
1584
+ /**
1585
+ * Returns by value, unit of duration: month-person.
1586
+ * Also see {@link #createMonthPerson()}.
1587
+ * @stable ICU 64
1588
+ */
1589
+ static MeasureUnit getMonthPerson();
1590
+
1591
+ /**
1592
+ * Returns by pointer, unit of duration: nanosecond.
1593
+ * Caller owns returned value and must free it.
1594
+ * Also see {@link #getNanosecond()}.
1595
+ * @param status ICU error code.
1596
+ * @stable ICU 54
1597
+ */
1598
+ static MeasureUnit *createNanosecond(UErrorCode &status);
1599
+
1600
+ /**
1601
+ * Returns by value, unit of duration: nanosecond.
1602
+ * Also see {@link #createNanosecond()}.
1603
+ * @stable ICU 64
1604
+ */
1605
+ static MeasureUnit getNanosecond();
1606
+
1607
+ #ifndef U_HIDE_DRAFT_API
1608
+ /**
1609
+ * Returns by pointer, unit of duration: night.
1610
+ * Caller owns returned value and must free it.
1611
+ * Also see {@link #getNight()}.
1612
+ * @param status ICU error code.
1613
+ * @draft ICU 76
1614
+ */
1615
+ static MeasureUnit *createNight(UErrorCode &status);
1616
+
1617
+ /**
1618
+ * Returns by value, unit of duration: night.
1619
+ * Also see {@link #createNight()}.
1620
+ * @draft ICU 76
1621
+ */
1622
+ static MeasureUnit getNight();
1623
+ #endif /* U_HIDE_DRAFT_API */
1624
+
1625
+ /**
1626
+ * Returns by pointer, unit of duration: quarter.
1627
+ * Caller owns returned value and must free it.
1628
+ * Also see {@link #getQuarter()}.
1629
+ * @param status ICU error code.
1630
+ * @stable ICU 72
1631
+ */
1632
+ static MeasureUnit *createQuarter(UErrorCode &status);
1633
+
1634
+ /**
1635
+ * Returns by value, unit of duration: quarter.
1636
+ * Also see {@link #createQuarter()}.
1637
+ * @stable ICU 72
1638
+ */
1639
+ static MeasureUnit getQuarter();
1640
+
1641
+ /**
1642
+ * Returns by pointer, unit of duration: second.
1643
+ * Caller owns returned value and must free it.
1644
+ * Also see {@link #getSecond()}.
1645
+ * @param status ICU error code.
1646
+ * @stable ICU 53
1647
+ */
1648
+ static MeasureUnit *createSecond(UErrorCode &status);
1649
+
1650
+ /**
1651
+ * Returns by value, unit of duration: second.
1652
+ * Also see {@link #createSecond()}.
1653
+ * @stable ICU 64
1654
+ */
1655
+ static MeasureUnit getSecond();
1656
+
1657
+ /**
1658
+ * Returns by pointer, unit of duration: week.
1659
+ * Caller owns returned value and must free it.
1660
+ * Also see {@link #getWeek()}.
1661
+ * @param status ICU error code.
1662
+ * @stable ICU 53
1663
+ */
1664
+ static MeasureUnit *createWeek(UErrorCode &status);
1665
+
1666
+ /**
1667
+ * Returns by value, unit of duration: week.
1668
+ * Also see {@link #createWeek()}.
1669
+ * @stable ICU 64
1670
+ */
1671
+ static MeasureUnit getWeek();
1672
+
1673
+ /**
1674
+ * Returns by pointer, unit of duration: week-person.
1675
+ * Caller owns returned value and must free it.
1676
+ * Also see {@link #getWeekPerson()}.
1677
+ * @param status ICU error code.
1678
+ * @stable ICU 64
1679
+ */
1680
+ static MeasureUnit *createWeekPerson(UErrorCode &status);
1681
+
1682
+ /**
1683
+ * Returns by value, unit of duration: week-person.
1684
+ * Also see {@link #createWeekPerson()}.
1685
+ * @stable ICU 64
1686
+ */
1687
+ static MeasureUnit getWeekPerson();
1688
+
1689
+ /**
1690
+ * Returns by pointer, unit of duration: year.
1691
+ * Caller owns returned value and must free it.
1692
+ * Also see {@link #getYear()}.
1693
+ * @param status ICU error code.
1694
+ * @stable ICU 53
1695
+ */
1696
+ static MeasureUnit *createYear(UErrorCode &status);
1697
+
1698
+ /**
1699
+ * Returns by value, unit of duration: year.
1700
+ * Also see {@link #createYear()}.
1701
+ * @stable ICU 64
1702
+ */
1703
+ static MeasureUnit getYear();
1704
+
1705
+ /**
1706
+ * Returns by pointer, unit of duration: year-person.
1707
+ * Caller owns returned value and must free it.
1708
+ * Also see {@link #getYearPerson()}.
1709
+ * @param status ICU error code.
1710
+ * @stable ICU 64
1711
+ */
1712
+ static MeasureUnit *createYearPerson(UErrorCode &status);
1713
+
1714
+ /**
1715
+ * Returns by value, unit of duration: year-person.
1716
+ * Also see {@link #createYearPerson()}.
1717
+ * @stable ICU 64
1718
+ */
1719
+ static MeasureUnit getYearPerson();
1720
+
1721
+ /**
1722
+ * Returns by pointer, unit of electric: ampere.
1723
+ * Caller owns returned value and must free it.
1724
+ * Also see {@link #getAmpere()}.
1725
+ * @param status ICU error code.
1726
+ * @stable ICU 54
1727
+ */
1728
+ static MeasureUnit *createAmpere(UErrorCode &status);
1729
+
1730
+ /**
1731
+ * Returns by value, unit of electric: ampere.
1732
+ * Also see {@link #createAmpere()}.
1733
+ * @stable ICU 64
1734
+ */
1735
+ static MeasureUnit getAmpere();
1736
+
1737
+ /**
1738
+ * Returns by pointer, unit of electric: milliampere.
1739
+ * Caller owns returned value and must free it.
1740
+ * Also see {@link #getMilliampere()}.
1741
+ * @param status ICU error code.
1742
+ * @stable ICU 54
1743
+ */
1744
+ static MeasureUnit *createMilliampere(UErrorCode &status);
1745
+
1746
+ /**
1747
+ * Returns by value, unit of electric: milliampere.
1748
+ * Also see {@link #createMilliampere()}.
1749
+ * @stable ICU 64
1750
+ */
1751
+ static MeasureUnit getMilliampere();
1752
+
1753
+ /**
1754
+ * Returns by pointer, unit of electric: ohm.
1755
+ * Caller owns returned value and must free it.
1756
+ * Also see {@link #getOhm()}.
1757
+ * @param status ICU error code.
1758
+ * @stable ICU 54
1759
+ */
1760
+ static MeasureUnit *createOhm(UErrorCode &status);
1761
+
1762
+ /**
1763
+ * Returns by value, unit of electric: ohm.
1764
+ * Also see {@link #createOhm()}.
1765
+ * @stable ICU 64
1766
+ */
1767
+ static MeasureUnit getOhm();
1768
+
1769
+ /**
1770
+ * Returns by pointer, unit of electric: volt.
1771
+ * Caller owns returned value and must free it.
1772
+ * Also see {@link #getVolt()}.
1773
+ * @param status ICU error code.
1774
+ * @stable ICU 54
1775
+ */
1776
+ static MeasureUnit *createVolt(UErrorCode &status);
1777
+
1778
+ /**
1779
+ * Returns by value, unit of electric: volt.
1780
+ * Also see {@link #createVolt()}.
1781
+ * @stable ICU 64
1782
+ */
1783
+ static MeasureUnit getVolt();
1784
+
1785
+ /**
1786
+ * Returns by pointer, unit of energy: british-thermal-unit.
1787
+ * Caller owns returned value and must free it.
1788
+ * Also see {@link #getBritishThermalUnit()}.
1789
+ * @param status ICU error code.
1790
+ * @stable ICU 64
1791
+ */
1792
+ static MeasureUnit *createBritishThermalUnit(UErrorCode &status);
1793
+
1794
+ /**
1795
+ * Returns by value, unit of energy: british-thermal-unit.
1796
+ * Also see {@link #createBritishThermalUnit()}.
1797
+ * @stable ICU 64
1798
+ */
1799
+ static MeasureUnit getBritishThermalUnit();
1800
+
1801
+ /**
1802
+ * Returns by pointer, unit of energy: calorie.
1803
+ * Caller owns returned value and must free it.
1804
+ * Also see {@link #getCalorie()}.
1805
+ * @param status ICU error code.
1806
+ * @stable ICU 54
1807
+ */
1808
+ static MeasureUnit *createCalorie(UErrorCode &status);
1809
+
1810
+ /**
1811
+ * Returns by value, unit of energy: calorie.
1812
+ * Also see {@link #createCalorie()}.
1813
+ * @stable ICU 64
1814
+ */
1815
+ static MeasureUnit getCalorie();
1816
+
1817
+ /**
1818
+ * Returns by pointer, unit of energy: electronvolt.
1819
+ * Caller owns returned value and must free it.
1820
+ * Also see {@link #getElectronvolt()}.
1821
+ * @param status ICU error code.
1822
+ * @stable ICU 64
1823
+ */
1824
+ static MeasureUnit *createElectronvolt(UErrorCode &status);
1825
+
1826
+ /**
1827
+ * Returns by value, unit of energy: electronvolt.
1828
+ * Also see {@link #createElectronvolt()}.
1829
+ * @stable ICU 64
1830
+ */
1831
+ static MeasureUnit getElectronvolt();
1832
+
1833
+ /**
1834
+ * Returns by pointer, unit of energy: foodcalorie.
1835
+ * Caller owns returned value and must free it.
1836
+ * Also see {@link #getFoodcalorie()}.
1837
+ * @param status ICU error code.
1838
+ * @stable ICU 54
1839
+ */
1840
+ static MeasureUnit *createFoodcalorie(UErrorCode &status);
1841
+
1842
+ /**
1843
+ * Returns by value, unit of energy: foodcalorie.
1844
+ * Also see {@link #createFoodcalorie()}.
1845
+ * @stable ICU 64
1846
+ */
1847
+ static MeasureUnit getFoodcalorie();
1848
+
1849
+ /**
1850
+ * Returns by pointer, unit of energy: joule.
1851
+ * Caller owns returned value and must free it.
1852
+ * Also see {@link #getJoule()}.
1853
+ * @param status ICU error code.
1854
+ * @stable ICU 54
1855
+ */
1856
+ static MeasureUnit *createJoule(UErrorCode &status);
1857
+
1858
+ /**
1859
+ * Returns by value, unit of energy: joule.
1860
+ * Also see {@link #createJoule()}.
1861
+ * @stable ICU 64
1862
+ */
1863
+ static MeasureUnit getJoule();
1864
+
1865
+ /**
1866
+ * Returns by pointer, unit of energy: kilocalorie.
1867
+ * Caller owns returned value and must free it.
1868
+ * Also see {@link #getKilocalorie()}.
1869
+ * @param status ICU error code.
1870
+ * @stable ICU 54
1871
+ */
1872
+ static MeasureUnit *createKilocalorie(UErrorCode &status);
1873
+
1874
+ /**
1875
+ * Returns by value, unit of energy: kilocalorie.
1876
+ * Also see {@link #createKilocalorie()}.
1877
+ * @stable ICU 64
1878
+ */
1879
+ static MeasureUnit getKilocalorie();
1880
+
1881
+ /**
1882
+ * Returns by pointer, unit of energy: kilojoule.
1883
+ * Caller owns returned value and must free it.
1884
+ * Also see {@link #getKilojoule()}.
1885
+ * @param status ICU error code.
1886
+ * @stable ICU 54
1887
+ */
1888
+ static MeasureUnit *createKilojoule(UErrorCode &status);
1889
+
1890
+ /**
1891
+ * Returns by value, unit of energy: kilojoule.
1892
+ * Also see {@link #createKilojoule()}.
1893
+ * @stable ICU 64
1894
+ */
1895
+ static MeasureUnit getKilojoule();
1896
+
1897
+ /**
1898
+ * Returns by pointer, unit of energy: kilowatt-hour.
1899
+ * Caller owns returned value and must free it.
1900
+ * Also see {@link #getKilowattHour()}.
1901
+ * @param status ICU error code.
1902
+ * @stable ICU 54
1903
+ */
1904
+ static MeasureUnit *createKilowattHour(UErrorCode &status);
1905
+
1906
+ /**
1907
+ * Returns by value, unit of energy: kilowatt-hour.
1908
+ * Also see {@link #createKilowattHour()}.
1909
+ * @stable ICU 64
1910
+ */
1911
+ static MeasureUnit getKilowattHour();
1912
+
1913
+ /**
1914
+ * Returns by pointer, unit of energy: therm-us.
1915
+ * Caller owns returned value and must free it.
1916
+ * Also see {@link #getThermUs()}.
1917
+ * @param status ICU error code.
1918
+ * @stable ICU 65
1919
+ */
1920
+ static MeasureUnit *createThermUs(UErrorCode &status);
1921
+
1922
+ /**
1923
+ * Returns by value, unit of energy: therm-us.
1924
+ * Also see {@link #createThermUs()}.
1925
+ * @stable ICU 65
1926
+ */
1927
+ static MeasureUnit getThermUs();
1928
+
1929
+ /**
1930
+ * Returns by pointer, unit of force: kilowatt-hour-per-100-kilometer.
1931
+ * Caller owns returned value and must free it.
1932
+ * Also see {@link #getKilowattHourPer100Kilometer()}.
1933
+ * @param status ICU error code.
1934
+ * @stable ICU 70
1935
+ */
1936
+ static MeasureUnit *createKilowattHourPer100Kilometer(UErrorCode &status);
1937
+
1938
+ /**
1939
+ * Returns by value, unit of force: kilowatt-hour-per-100-kilometer.
1940
+ * Also see {@link #createKilowattHourPer100Kilometer()}.
1941
+ * @stable ICU 70
1942
+ */
1943
+ static MeasureUnit getKilowattHourPer100Kilometer();
1944
+
1945
+ /**
1946
+ * Returns by pointer, unit of force: newton.
1947
+ * Caller owns returned value and must free it.
1948
+ * Also see {@link #getNewton()}.
1949
+ * @param status ICU error code.
1950
+ * @stable ICU 64
1951
+ */
1952
+ static MeasureUnit *createNewton(UErrorCode &status);
1953
+
1954
+ /**
1955
+ * Returns by value, unit of force: newton.
1956
+ * Also see {@link #createNewton()}.
1957
+ * @stable ICU 64
1958
+ */
1959
+ static MeasureUnit getNewton();
1960
+
1961
+ /**
1962
+ * Returns by pointer, unit of force: pound-force.
1963
+ * Caller owns returned value and must free it.
1964
+ * Also see {@link #getPoundForce()}.
1965
+ * @param status ICU error code.
1966
+ * @stable ICU 64
1967
+ */
1968
+ static MeasureUnit *createPoundForce(UErrorCode &status);
1969
+
1970
+ /**
1971
+ * Returns by value, unit of force: pound-force.
1972
+ * Also see {@link #createPoundForce()}.
1973
+ * @stable ICU 64
1974
+ */
1975
+ static MeasureUnit getPoundForce();
1976
+
1977
+ /**
1978
+ * Returns by pointer, unit of frequency: gigahertz.
1979
+ * Caller owns returned value and must free it.
1980
+ * Also see {@link #getGigahertz()}.
1981
+ * @param status ICU error code.
1982
+ * @stable ICU 54
1983
+ */
1984
+ static MeasureUnit *createGigahertz(UErrorCode &status);
1985
+
1986
+ /**
1987
+ * Returns by value, unit of frequency: gigahertz.
1988
+ * Also see {@link #createGigahertz()}.
1989
+ * @stable ICU 64
1990
+ */
1991
+ static MeasureUnit getGigahertz();
1992
+
1993
+ /**
1994
+ * Returns by pointer, unit of frequency: hertz.
1995
+ * Caller owns returned value and must free it.
1996
+ * Also see {@link #getHertz()}.
1997
+ * @param status ICU error code.
1998
+ * @stable ICU 54
1999
+ */
2000
+ static MeasureUnit *createHertz(UErrorCode &status);
2001
+
2002
+ /**
2003
+ * Returns by value, unit of frequency: hertz.
2004
+ * Also see {@link #createHertz()}.
2005
+ * @stable ICU 64
2006
+ */
2007
+ static MeasureUnit getHertz();
2008
+
2009
+ /**
2010
+ * Returns by pointer, unit of frequency: kilohertz.
2011
+ * Caller owns returned value and must free it.
2012
+ * Also see {@link #getKilohertz()}.
2013
+ * @param status ICU error code.
2014
+ * @stable ICU 54
2015
+ */
2016
+ static MeasureUnit *createKilohertz(UErrorCode &status);
2017
+
2018
+ /**
2019
+ * Returns by value, unit of frequency: kilohertz.
2020
+ * Also see {@link #createKilohertz()}.
2021
+ * @stable ICU 64
2022
+ */
2023
+ static MeasureUnit getKilohertz();
2024
+
2025
+ /**
2026
+ * Returns by pointer, unit of frequency: megahertz.
2027
+ * Caller owns returned value and must free it.
2028
+ * Also see {@link #getMegahertz()}.
2029
+ * @param status ICU error code.
2030
+ * @stable ICU 54
2031
+ */
2032
+ static MeasureUnit *createMegahertz(UErrorCode &status);
2033
+
2034
+ /**
2035
+ * Returns by value, unit of frequency: megahertz.
2036
+ * Also see {@link #createMegahertz()}.
2037
+ * @stable ICU 64
2038
+ */
2039
+ static MeasureUnit getMegahertz();
2040
+
2041
+ /**
2042
+ * Returns by pointer, unit of graphics: dot.
2043
+ * Caller owns returned value and must free it.
2044
+ * Also see {@link #getDot()}.
2045
+ * @param status ICU error code.
2046
+ * @stable ICU 68
2047
+ */
2048
+ static MeasureUnit *createDot(UErrorCode &status);
2049
+
2050
+ /**
2051
+ * Returns by value, unit of graphics: dot.
2052
+ * Also see {@link #createDot()}.
2053
+ * @stable ICU 68
2054
+ */
2055
+ static MeasureUnit getDot();
2056
+
2057
+ /**
2058
+ * Returns by pointer, unit of graphics: dot-per-centimeter.
2059
+ * Caller owns returned value and must free it.
2060
+ * Also see {@link #getDotPerCentimeter()}.
2061
+ * @param status ICU error code.
2062
+ * @stable ICU 65
2063
+ */
2064
+ static MeasureUnit *createDotPerCentimeter(UErrorCode &status);
2065
+
2066
+ /**
2067
+ * Returns by value, unit of graphics: dot-per-centimeter.
2068
+ * Also see {@link #createDotPerCentimeter()}.
2069
+ * @stable ICU 65
2070
+ */
2071
+ static MeasureUnit getDotPerCentimeter();
2072
+
2073
+ /**
2074
+ * Returns by pointer, unit of graphics: dot-per-inch.
2075
+ * Caller owns returned value and must free it.
2076
+ * Also see {@link #getDotPerInch()}.
2077
+ * @param status ICU error code.
2078
+ * @stable ICU 65
2079
+ */
2080
+ static MeasureUnit *createDotPerInch(UErrorCode &status);
2081
+
2082
+ /**
2083
+ * Returns by value, unit of graphics: dot-per-inch.
2084
+ * Also see {@link #createDotPerInch()}.
2085
+ * @stable ICU 65
2086
+ */
2087
+ static MeasureUnit getDotPerInch();
2088
+
2089
+ /**
2090
+ * Returns by pointer, unit of graphics: em.
2091
+ * Caller owns returned value and must free it.
2092
+ * Also see {@link #getEm()}.
2093
+ * @param status ICU error code.
2094
+ * @stable ICU 65
2095
+ */
2096
+ static MeasureUnit *createEm(UErrorCode &status);
2097
+
2098
+ /**
2099
+ * Returns by value, unit of graphics: em.
2100
+ * Also see {@link #createEm()}.
2101
+ * @stable ICU 65
2102
+ */
2103
+ static MeasureUnit getEm();
2104
+
2105
+ /**
2106
+ * Returns by pointer, unit of graphics: megapixel.
2107
+ * Caller owns returned value and must free it.
2108
+ * Also see {@link #getMegapixel()}.
2109
+ * @param status ICU error code.
2110
+ * @stable ICU 65
2111
+ */
2112
+ static MeasureUnit *createMegapixel(UErrorCode &status);
2113
+
2114
+ /**
2115
+ * Returns by value, unit of graphics: megapixel.
2116
+ * Also see {@link #createMegapixel()}.
2117
+ * @stable ICU 65
2118
+ */
2119
+ static MeasureUnit getMegapixel();
2120
+
2121
+ /**
2122
+ * Returns by pointer, unit of graphics: pixel.
2123
+ * Caller owns returned value and must free it.
2124
+ * Also see {@link #getPixel()}.
2125
+ * @param status ICU error code.
2126
+ * @stable ICU 65
2127
+ */
2128
+ static MeasureUnit *createPixel(UErrorCode &status);
2129
+
2130
+ /**
2131
+ * Returns by value, unit of graphics: pixel.
2132
+ * Also see {@link #createPixel()}.
2133
+ * @stable ICU 65
2134
+ */
2135
+ static MeasureUnit getPixel();
2136
+
2137
+ /**
2138
+ * Returns by pointer, unit of graphics: pixel-per-centimeter.
2139
+ * Caller owns returned value and must free it.
2140
+ * Also see {@link #getPixelPerCentimeter()}.
2141
+ * @param status ICU error code.
2142
+ * @stable ICU 65
2143
+ */
2144
+ static MeasureUnit *createPixelPerCentimeter(UErrorCode &status);
2145
+
2146
+ /**
2147
+ * Returns by value, unit of graphics: pixel-per-centimeter.
2148
+ * Also see {@link #createPixelPerCentimeter()}.
2149
+ * @stable ICU 65
2150
+ */
2151
+ static MeasureUnit getPixelPerCentimeter();
2152
+
2153
+ /**
2154
+ * Returns by pointer, unit of graphics: pixel-per-inch.
2155
+ * Caller owns returned value and must free it.
2156
+ * Also see {@link #getPixelPerInch()}.
2157
+ * @param status ICU error code.
2158
+ * @stable ICU 65
2159
+ */
2160
+ static MeasureUnit *createPixelPerInch(UErrorCode &status);
2161
+
2162
+ /**
2163
+ * Returns by value, unit of graphics: pixel-per-inch.
2164
+ * Also see {@link #createPixelPerInch()}.
2165
+ * @stable ICU 65
2166
+ */
2167
+ static MeasureUnit getPixelPerInch();
2168
+
2169
+ /**
2170
+ * Returns by pointer, unit of length: astronomical-unit.
2171
+ * Caller owns returned value and must free it.
2172
+ * Also see {@link #getAstronomicalUnit()}.
2173
+ * @param status ICU error code.
2174
+ * @stable ICU 54
2175
+ */
2176
+ static MeasureUnit *createAstronomicalUnit(UErrorCode &status);
2177
+
2178
+ /**
2179
+ * Returns by value, unit of length: astronomical-unit.
2180
+ * Also see {@link #createAstronomicalUnit()}.
2181
+ * @stable ICU 64
2182
+ */
2183
+ static MeasureUnit getAstronomicalUnit();
2184
+
2185
+ /**
2186
+ * Returns by pointer, unit of length: centimeter.
2187
+ * Caller owns returned value and must free it.
2188
+ * Also see {@link #getCentimeter()}.
2189
+ * @param status ICU error code.
2190
+ * @stable ICU 53
2191
+ */
2192
+ static MeasureUnit *createCentimeter(UErrorCode &status);
2193
+
2194
+ /**
2195
+ * Returns by value, unit of length: centimeter.
2196
+ * Also see {@link #createCentimeter()}.
2197
+ * @stable ICU 64
2198
+ */
2199
+ static MeasureUnit getCentimeter();
2200
+
2201
+ /**
2202
+ * Returns by pointer, unit of length: decimeter.
2203
+ * Caller owns returned value and must free it.
2204
+ * Also see {@link #getDecimeter()}.
2205
+ * @param status ICU error code.
2206
+ * @stable ICU 54
2207
+ */
2208
+ static MeasureUnit *createDecimeter(UErrorCode &status);
2209
+
2210
+ /**
2211
+ * Returns by value, unit of length: decimeter.
2212
+ * Also see {@link #createDecimeter()}.
2213
+ * @stable ICU 64
2214
+ */
2215
+ static MeasureUnit getDecimeter();
2216
+
2217
+ /**
2218
+ * Returns by pointer, unit of length: earth-radius.
2219
+ * Caller owns returned value and must free it.
2220
+ * Also see {@link #getEarthRadius()}.
2221
+ * @param status ICU error code.
2222
+ * @stable ICU 68
2223
+ */
2224
+ static MeasureUnit *createEarthRadius(UErrorCode &status);
2225
+
2226
+ /**
2227
+ * Returns by value, unit of length: earth-radius.
2228
+ * Also see {@link #createEarthRadius()}.
2229
+ * @stable ICU 68
2230
+ */
2231
+ static MeasureUnit getEarthRadius();
2232
+
2233
+ /**
2234
+ * Returns by pointer, unit of length: fathom.
2235
+ * Caller owns returned value and must free it.
2236
+ * Also see {@link #getFathom()}.
2237
+ * @param status ICU error code.
2238
+ * @stable ICU 54
2239
+ */
2240
+ static MeasureUnit *createFathom(UErrorCode &status);
2241
+
2242
+ /**
2243
+ * Returns by value, unit of length: fathom.
2244
+ * Also see {@link #createFathom()}.
2245
+ * @stable ICU 64
2246
+ */
2247
+ static MeasureUnit getFathom();
2248
+
2249
+ /**
2250
+ * Returns by pointer, unit of length: foot.
2251
+ * Caller owns returned value and must free it.
2252
+ * Also see {@link #getFoot()}.
2253
+ * @param status ICU error code.
2254
+ * @stable ICU 53
2255
+ */
2256
+ static MeasureUnit *createFoot(UErrorCode &status);
2257
+
2258
+ /**
2259
+ * Returns by value, unit of length: foot.
2260
+ * Also see {@link #createFoot()}.
2261
+ * @stable ICU 64
2262
+ */
2263
+ static MeasureUnit getFoot();
2264
+
2265
+ /**
2266
+ * Returns by pointer, unit of length: furlong.
2267
+ * Caller owns returned value and must free it.
2268
+ * Also see {@link #getFurlong()}.
2269
+ * @param status ICU error code.
2270
+ * @stable ICU 54
2271
+ */
2272
+ static MeasureUnit *createFurlong(UErrorCode &status);
2273
+
2274
+ /**
2275
+ * Returns by value, unit of length: furlong.
2276
+ * Also see {@link #createFurlong()}.
2277
+ * @stable ICU 64
2278
+ */
2279
+ static MeasureUnit getFurlong();
2280
+
2281
+ /**
2282
+ * Returns by pointer, unit of length: inch.
2283
+ * Caller owns returned value and must free it.
2284
+ * Also see {@link #getInch()}.
2285
+ * @param status ICU error code.
2286
+ * @stable ICU 53
2287
+ */
2288
+ static MeasureUnit *createInch(UErrorCode &status);
2289
+
2290
+ /**
2291
+ * Returns by value, unit of length: inch.
2292
+ * Also see {@link #createInch()}.
2293
+ * @stable ICU 64
2294
+ */
2295
+ static MeasureUnit getInch();
2296
+
2297
+ /**
2298
+ * Returns by pointer, unit of length: kilometer.
2299
+ * Caller owns returned value and must free it.
2300
+ * Also see {@link #getKilometer()}.
2301
+ * @param status ICU error code.
2302
+ * @stable ICU 53
2303
+ */
2304
+ static MeasureUnit *createKilometer(UErrorCode &status);
2305
+
2306
+ /**
2307
+ * Returns by value, unit of length: kilometer.
2308
+ * Also see {@link #createKilometer()}.
2309
+ * @stable ICU 64
2310
+ */
2311
+ static MeasureUnit getKilometer();
2312
+
2313
+ /**
2314
+ * Returns by pointer, unit of length: light-year.
2315
+ * Caller owns returned value and must free it.
2316
+ * Also see {@link #getLightYear()}.
2317
+ * @param status ICU error code.
2318
+ * @stable ICU 53
2319
+ */
2320
+ static MeasureUnit *createLightYear(UErrorCode &status);
2321
+
2322
+ /**
2323
+ * Returns by value, unit of length: light-year.
2324
+ * Also see {@link #createLightYear()}.
2325
+ * @stable ICU 64
2326
+ */
2327
+ static MeasureUnit getLightYear();
2328
+
2329
+ /**
2330
+ * Returns by pointer, unit of length: meter.
2331
+ * Caller owns returned value and must free it.
2332
+ * Also see {@link #getMeter()}.
2333
+ * @param status ICU error code.
2334
+ * @stable ICU 53
2335
+ */
2336
+ static MeasureUnit *createMeter(UErrorCode &status);
2337
+
2338
+ /**
2339
+ * Returns by value, unit of length: meter.
2340
+ * Also see {@link #createMeter()}.
2341
+ * @stable ICU 64
2342
+ */
2343
+ static MeasureUnit getMeter();
2344
+
2345
+ /**
2346
+ * Returns by pointer, unit of length: micrometer.
2347
+ * Caller owns returned value and must free it.
2348
+ * Also see {@link #getMicrometer()}.
2349
+ * @param status ICU error code.
2350
+ * @stable ICU 54
2351
+ */
2352
+ static MeasureUnit *createMicrometer(UErrorCode &status);
2353
+
2354
+ /**
2355
+ * Returns by value, unit of length: micrometer.
2356
+ * Also see {@link #createMicrometer()}.
2357
+ * @stable ICU 64
2358
+ */
2359
+ static MeasureUnit getMicrometer();
2360
+
2361
+ /**
2362
+ * Returns by pointer, unit of length: mile.
2363
+ * Caller owns returned value and must free it.
2364
+ * Also see {@link #getMile()}.
2365
+ * @param status ICU error code.
2366
+ * @stable ICU 53
2367
+ */
2368
+ static MeasureUnit *createMile(UErrorCode &status);
2369
+
2370
+ /**
2371
+ * Returns by value, unit of length: mile.
2372
+ * Also see {@link #createMile()}.
2373
+ * @stable ICU 64
2374
+ */
2375
+ static MeasureUnit getMile();
2376
+
2377
+ /**
2378
+ * Returns by pointer, unit of length: mile-scandinavian.
2379
+ * Caller owns returned value and must free it.
2380
+ * Also see {@link #getMileScandinavian()}.
2381
+ * @param status ICU error code.
2382
+ * @stable ICU 56
2383
+ */
2384
+ static MeasureUnit *createMileScandinavian(UErrorCode &status);
2385
+
2386
+ /**
2387
+ * Returns by value, unit of length: mile-scandinavian.
2388
+ * Also see {@link #createMileScandinavian()}.
2389
+ * @stable ICU 64
2390
+ */
2391
+ static MeasureUnit getMileScandinavian();
2392
+
2393
+ /**
2394
+ * Returns by pointer, unit of length: millimeter.
2395
+ * Caller owns returned value and must free it.
2396
+ * Also see {@link #getMillimeter()}.
2397
+ * @param status ICU error code.
2398
+ * @stable ICU 53
2399
+ */
2400
+ static MeasureUnit *createMillimeter(UErrorCode &status);
2401
+
2402
+ /**
2403
+ * Returns by value, unit of length: millimeter.
2404
+ * Also see {@link #createMillimeter()}.
2405
+ * @stable ICU 64
2406
+ */
2407
+ static MeasureUnit getMillimeter();
2408
+
2409
+ /**
2410
+ * Returns by pointer, unit of length: nanometer.
2411
+ * Caller owns returned value and must free it.
2412
+ * Also see {@link #getNanometer()}.
2413
+ * @param status ICU error code.
2414
+ * @stable ICU 54
2415
+ */
2416
+ static MeasureUnit *createNanometer(UErrorCode &status);
2417
+
2418
+ /**
2419
+ * Returns by value, unit of length: nanometer.
2420
+ * Also see {@link #createNanometer()}.
2421
+ * @stable ICU 64
2422
+ */
2423
+ static MeasureUnit getNanometer();
2424
+
2425
+ /**
2426
+ * Returns by pointer, unit of length: nautical-mile.
2427
+ * Caller owns returned value and must free it.
2428
+ * Also see {@link #getNauticalMile()}.
2429
+ * @param status ICU error code.
2430
+ * @stable ICU 54
2431
+ */
2432
+ static MeasureUnit *createNauticalMile(UErrorCode &status);
2433
+
2434
+ /**
2435
+ * Returns by value, unit of length: nautical-mile.
2436
+ * Also see {@link #createNauticalMile()}.
2437
+ * @stable ICU 64
2438
+ */
2439
+ static MeasureUnit getNauticalMile();
2440
+
2441
+ /**
2442
+ * Returns by pointer, unit of length: parsec.
2443
+ * Caller owns returned value and must free it.
2444
+ * Also see {@link #getParsec()}.
2445
+ * @param status ICU error code.
2446
+ * @stable ICU 54
2447
+ */
2448
+ static MeasureUnit *createParsec(UErrorCode &status);
2449
+
2450
+ /**
2451
+ * Returns by value, unit of length: parsec.
2452
+ * Also see {@link #createParsec()}.
2453
+ * @stable ICU 64
2454
+ */
2455
+ static MeasureUnit getParsec();
2456
+
2457
+ /**
2458
+ * Returns by pointer, unit of length: picometer.
2459
+ * Caller owns returned value and must free it.
2460
+ * Also see {@link #getPicometer()}.
2461
+ * @param status ICU error code.
2462
+ * @stable ICU 53
2463
+ */
2464
+ static MeasureUnit *createPicometer(UErrorCode &status);
2465
+
2466
+ /**
2467
+ * Returns by value, unit of length: picometer.
2468
+ * Also see {@link #createPicometer()}.
2469
+ * @stable ICU 64
2470
+ */
2471
+ static MeasureUnit getPicometer();
2472
+
2473
+ /**
2474
+ * Returns by pointer, unit of length: point.
2475
+ * Caller owns returned value and must free it.
2476
+ * Also see {@link #getPoint()}.
2477
+ * @param status ICU error code.
2478
+ * @stable ICU 59
2479
+ */
2480
+ static MeasureUnit *createPoint(UErrorCode &status);
2481
+
2482
+ /**
2483
+ * Returns by value, unit of length: point.
2484
+ * Also see {@link #createPoint()}.
2485
+ * @stable ICU 64
2486
+ */
2487
+ static MeasureUnit getPoint();
2488
+
2489
+ /**
2490
+ * Returns by pointer, unit of length: solar-radius.
2491
+ * Caller owns returned value and must free it.
2492
+ * Also see {@link #getSolarRadius()}.
2493
+ * @param status ICU error code.
2494
+ * @stable ICU 64
2495
+ */
2496
+ static MeasureUnit *createSolarRadius(UErrorCode &status);
2497
+
2498
+ /**
2499
+ * Returns by value, unit of length: solar-radius.
2500
+ * Also see {@link #createSolarRadius()}.
2501
+ * @stable ICU 64
2502
+ */
2503
+ static MeasureUnit getSolarRadius();
2504
+
2505
+ /**
2506
+ * Returns by pointer, unit of length: yard.
2507
+ * Caller owns returned value and must free it.
2508
+ * Also see {@link #getYard()}.
2509
+ * @param status ICU error code.
2510
+ * @stable ICU 53
2511
+ */
2512
+ static MeasureUnit *createYard(UErrorCode &status);
2513
+
2514
+ /**
2515
+ * Returns by value, unit of length: yard.
2516
+ * Also see {@link #createYard()}.
2517
+ * @stable ICU 64
2518
+ */
2519
+ static MeasureUnit getYard();
2520
+
2521
+ /**
2522
+ * Returns by pointer, unit of light: candela.
2523
+ * Caller owns returned value and must free it.
2524
+ * Also see {@link #getCandela()}.
2525
+ * @param status ICU error code.
2526
+ * @stable ICU 68
2527
+ */
2528
+ static MeasureUnit *createCandela(UErrorCode &status);
2529
+
2530
+ /**
2531
+ * Returns by value, unit of light: candela.
2532
+ * Also see {@link #createCandela()}.
2533
+ * @stable ICU 68
2534
+ */
2535
+ static MeasureUnit getCandela();
2536
+
2537
+ /**
2538
+ * Returns by pointer, unit of light: lumen.
2539
+ * Caller owns returned value and must free it.
2540
+ * Also see {@link #getLumen()}.
2541
+ * @param status ICU error code.
2542
+ * @stable ICU 68
2543
+ */
2544
+ static MeasureUnit *createLumen(UErrorCode &status);
2545
+
2546
+ /**
2547
+ * Returns by value, unit of light: lumen.
2548
+ * Also see {@link #createLumen()}.
2549
+ * @stable ICU 68
2550
+ */
2551
+ static MeasureUnit getLumen();
2552
+
2553
+ /**
2554
+ * Returns by pointer, unit of light: lux.
2555
+ * Caller owns returned value and must free it.
2556
+ * Also see {@link #getLux()}.
2557
+ * @param status ICU error code.
2558
+ * @stable ICU 54
2559
+ */
2560
+ static MeasureUnit *createLux(UErrorCode &status);
2561
+
2562
+ /**
2563
+ * Returns by value, unit of light: lux.
2564
+ * Also see {@link #createLux()}.
2565
+ * @stable ICU 64
2566
+ */
2567
+ static MeasureUnit getLux();
2568
+
2569
+ /**
2570
+ * Returns by pointer, unit of light: solar-luminosity.
2571
+ * Caller owns returned value and must free it.
2572
+ * Also see {@link #getSolarLuminosity()}.
2573
+ * @param status ICU error code.
2574
+ * @stable ICU 64
2575
+ */
2576
+ static MeasureUnit *createSolarLuminosity(UErrorCode &status);
2577
+
2578
+ /**
2579
+ * Returns by value, unit of light: solar-luminosity.
2580
+ * Also see {@link #createSolarLuminosity()}.
2581
+ * @stable ICU 64
2582
+ */
2583
+ static MeasureUnit getSolarLuminosity();
2584
+
2585
+ /**
2586
+ * Returns by pointer, unit of mass: carat.
2587
+ * Caller owns returned value and must free it.
2588
+ * Also see {@link #getCarat()}.
2589
+ * @param status ICU error code.
2590
+ * @stable ICU 54
2591
+ */
2592
+ static MeasureUnit *createCarat(UErrorCode &status);
2593
+
2594
+ /**
2595
+ * Returns by value, unit of mass: carat.
2596
+ * Also see {@link #createCarat()}.
2597
+ * @stable ICU 64
2598
+ */
2599
+ static MeasureUnit getCarat();
2600
+
2601
+ /**
2602
+ * Returns by pointer, unit of mass: dalton.
2603
+ * Caller owns returned value and must free it.
2604
+ * Also see {@link #getDalton()}.
2605
+ * @param status ICU error code.
2606
+ * @stable ICU 64
2607
+ */
2608
+ static MeasureUnit *createDalton(UErrorCode &status);
2609
+
2610
+ /**
2611
+ * Returns by value, unit of mass: dalton.
2612
+ * Also see {@link #createDalton()}.
2613
+ * @stable ICU 64
2614
+ */
2615
+ static MeasureUnit getDalton();
2616
+
2617
+ /**
2618
+ * Returns by pointer, unit of mass: earth-mass.
2619
+ * Caller owns returned value and must free it.
2620
+ * Also see {@link #getEarthMass()}.
2621
+ * @param status ICU error code.
2622
+ * @stable ICU 64
2623
+ */
2624
+ static MeasureUnit *createEarthMass(UErrorCode &status);
2625
+
2626
+ /**
2627
+ * Returns by value, unit of mass: earth-mass.
2628
+ * Also see {@link #createEarthMass()}.
2629
+ * @stable ICU 64
2630
+ */
2631
+ static MeasureUnit getEarthMass();
2632
+
2633
+ /**
2634
+ * Returns by pointer, unit of mass: grain.
2635
+ * Caller owns returned value and must free it.
2636
+ * Also see {@link #getGrain()}.
2637
+ * @param status ICU error code.
2638
+ * @stable ICU 68
2639
+ */
2640
+ static MeasureUnit *createGrain(UErrorCode &status);
2641
+
2642
+ /**
2643
+ * Returns by value, unit of mass: grain.
2644
+ * Also see {@link #createGrain()}.
2645
+ * @stable ICU 68
2646
+ */
2647
+ static MeasureUnit getGrain();
2648
+
2649
+ /**
2650
+ * Returns by pointer, unit of mass: gram.
2651
+ * Caller owns returned value and must free it.
2652
+ * Also see {@link #getGram()}.
2653
+ * @param status ICU error code.
2654
+ * @stable ICU 53
2655
+ */
2656
+ static MeasureUnit *createGram(UErrorCode &status);
2657
+
2658
+ /**
2659
+ * Returns by value, unit of mass: gram.
2660
+ * Also see {@link #createGram()}.
2661
+ * @stable ICU 64
2662
+ */
2663
+ static MeasureUnit getGram();
2664
+
2665
+ /**
2666
+ * Returns by pointer, unit of mass: kilogram.
2667
+ * Caller owns returned value and must free it.
2668
+ * Also see {@link #getKilogram()}.
2669
+ * @param status ICU error code.
2670
+ * @stable ICU 53
2671
+ */
2672
+ static MeasureUnit *createKilogram(UErrorCode &status);
2673
+
2674
+ /**
2675
+ * Returns by value, unit of mass: kilogram.
2676
+ * Also see {@link #createKilogram()}.
2677
+ * @stable ICU 64
2678
+ */
2679
+ static MeasureUnit getKilogram();
2680
+
2681
+ /**
2682
+ * Returns by pointer, unit of mass: microgram.
2683
+ * Caller owns returned value and must free it.
2684
+ * Also see {@link #getMicrogram()}.
2685
+ * @param status ICU error code.
2686
+ * @stable ICU 54
2687
+ */
2688
+ static MeasureUnit *createMicrogram(UErrorCode &status);
2689
+
2690
+ /**
2691
+ * Returns by value, unit of mass: microgram.
2692
+ * Also see {@link #createMicrogram()}.
2693
+ * @stable ICU 64
2694
+ */
2695
+ static MeasureUnit getMicrogram();
2696
+
2697
+ /**
2698
+ * Returns by pointer, unit of mass: milligram.
2699
+ * Caller owns returned value and must free it.
2700
+ * Also see {@link #getMilligram()}.
2701
+ * @param status ICU error code.
2702
+ * @stable ICU 54
2703
+ */
2704
+ static MeasureUnit *createMilligram(UErrorCode &status);
2705
+
2706
+ /**
2707
+ * Returns by value, unit of mass: milligram.
2708
+ * Also see {@link #createMilligram()}.
2709
+ * @stable ICU 64
2710
+ */
2711
+ static MeasureUnit getMilligram();
2712
+
2713
+ /**
2714
+ * Returns by pointer, unit of mass: ounce.
2715
+ * Caller owns returned value and must free it.
2716
+ * Also see {@link #getOunce()}.
2717
+ * @param status ICU error code.
2718
+ * @stable ICU 53
2719
+ */
2720
+ static MeasureUnit *createOunce(UErrorCode &status);
2721
+
2722
+ /**
2723
+ * Returns by value, unit of mass: ounce.
2724
+ * Also see {@link #createOunce()}.
2725
+ * @stable ICU 64
2726
+ */
2727
+ static MeasureUnit getOunce();
2728
+
2729
+ /**
2730
+ * Returns by pointer, unit of mass: ounce-troy.
2731
+ * Caller owns returned value and must free it.
2732
+ * Also see {@link #getOunceTroy()}.
2733
+ * @param status ICU error code.
2734
+ * @stable ICU 54
2735
+ */
2736
+ static MeasureUnit *createOunceTroy(UErrorCode &status);
2737
+
2738
+ /**
2739
+ * Returns by value, unit of mass: ounce-troy.
2740
+ * Also see {@link #createOunceTroy()}.
2741
+ * @stable ICU 64
2742
+ */
2743
+ static MeasureUnit getOunceTroy();
2744
+
2745
+ /**
2746
+ * Returns by pointer, unit of mass: pound.
2747
+ * Caller owns returned value and must free it.
2748
+ * Also see {@link #getPound()}.
2749
+ * @param status ICU error code.
2750
+ * @stable ICU 53
2751
+ */
2752
+ static MeasureUnit *createPound(UErrorCode &status);
2753
+
2754
+ /**
2755
+ * Returns by value, unit of mass: pound.
2756
+ * Also see {@link #createPound()}.
2757
+ * @stable ICU 64
2758
+ */
2759
+ static MeasureUnit getPound();
2760
+
2761
+ /**
2762
+ * Returns by pointer, unit of mass: solar-mass.
2763
+ * Caller owns returned value and must free it.
2764
+ * Also see {@link #getSolarMass()}.
2765
+ * @param status ICU error code.
2766
+ * @stable ICU 64
2767
+ */
2768
+ static MeasureUnit *createSolarMass(UErrorCode &status);
2769
+
2770
+ /**
2771
+ * Returns by value, unit of mass: solar-mass.
2772
+ * Also see {@link #createSolarMass()}.
2773
+ * @stable ICU 64
2774
+ */
2775
+ static MeasureUnit getSolarMass();
2776
+
2777
+ /**
2778
+ * Returns by pointer, unit of mass: stone.
2779
+ * Caller owns returned value and must free it.
2780
+ * Also see {@link #getStone()}.
2781
+ * @param status ICU error code.
2782
+ * @stable ICU 54
2783
+ */
2784
+ static MeasureUnit *createStone(UErrorCode &status);
2785
+
2786
+ /**
2787
+ * Returns by value, unit of mass: stone.
2788
+ * Also see {@link #createStone()}.
2789
+ * @stable ICU 64
2790
+ */
2791
+ static MeasureUnit getStone();
2792
+
2793
+ /**
2794
+ * Returns by pointer, unit of mass: ton.
2795
+ * Caller owns returned value and must free it.
2796
+ * Also see {@link #getTon()}.
2797
+ * @param status ICU error code.
2798
+ * @stable ICU 54
2799
+ */
2800
+ static MeasureUnit *createTon(UErrorCode &status);
2801
+
2802
+ /**
2803
+ * Returns by value, unit of mass: ton.
2804
+ * Also see {@link #createTon()}.
2805
+ * @stable ICU 64
2806
+ */
2807
+ static MeasureUnit getTon();
2808
+
2809
+ /**
2810
+ * Returns by pointer, unit of mass: tonne.
2811
+ * Caller owns returned value and must free it.
2812
+ * Also see {@link #getTonne()}.
2813
+ * @param status ICU error code.
2814
+ * @stable ICU 72
2815
+ */
2816
+ static MeasureUnit *createTonne(UErrorCode &status);
2817
+
2818
+ /**
2819
+ * Returns by value, unit of mass: tonne.
2820
+ * Also see {@link #createTonne()}.
2821
+ * @stable ICU 72
2822
+ */
2823
+ static MeasureUnit getTonne();
2824
+
2825
+ /**
2826
+ * Returns by pointer, unit of mass: metric-ton
2827
+ * (renamed to tonne in CLDR 42 / ICU 72).
2828
+ * Caller owns returned value and must free it.
2829
+ * Note: In ICU 74 this will be deprecated in favor of
2830
+ * createTonne(), which is currently draft but will
2831
+ * become stable in ICU 74, and which uses the preferred naming.
2832
+ * Also see {@link #getMetricTon()} and {@link #createTonne()}.
2833
+ * @param status ICU error code.
2834
+ * @stable ICU 54
2835
+ */
2836
+ static MeasureUnit *createMetricTon(UErrorCode &status);
2837
+
2838
+ /**
2839
+ * Returns by value, unit of mass: metric-ton
2840
+ * (renamed to tonne in CLDR 42 / ICU 72).
2841
+ * Note: In ICU 74 this will be deprecated in favor of
2842
+ * getTonne(), which is currently draft but will
2843
+ * become stable in ICU 74, and which uses the preferred naming.
2844
+ * Also see {@link #createMetricTon()} and {@link #getTonne()}.
2845
+ * @stable ICU 64
2846
+ */
2847
+ static MeasureUnit getMetricTon();
2848
+
2849
+ /**
2850
+ * Returns by pointer, unit of power: gigawatt.
2851
+ * Caller owns returned value and must free it.
2852
+ * Also see {@link #getGigawatt()}.
2853
+ * @param status ICU error code.
2854
+ * @stable ICU 54
2855
+ */
2856
+ static MeasureUnit *createGigawatt(UErrorCode &status);
2857
+
2858
+ /**
2859
+ * Returns by value, unit of power: gigawatt.
2860
+ * Also see {@link #createGigawatt()}.
2861
+ * @stable ICU 64
2862
+ */
2863
+ static MeasureUnit getGigawatt();
2864
+
2865
+ /**
2866
+ * Returns by pointer, unit of power: horsepower.
2867
+ * Caller owns returned value and must free it.
2868
+ * Also see {@link #getHorsepower()}.
2869
+ * @param status ICU error code.
2870
+ * @stable ICU 53
2871
+ */
2872
+ static MeasureUnit *createHorsepower(UErrorCode &status);
2873
+
2874
+ /**
2875
+ * Returns by value, unit of power: horsepower.
2876
+ * Also see {@link #createHorsepower()}.
2877
+ * @stable ICU 64
2878
+ */
2879
+ static MeasureUnit getHorsepower();
2880
+
2881
+ /**
2882
+ * Returns by pointer, unit of power: kilowatt.
2883
+ * Caller owns returned value and must free it.
2884
+ * Also see {@link #getKilowatt()}.
2885
+ * @param status ICU error code.
2886
+ * @stable ICU 53
2887
+ */
2888
+ static MeasureUnit *createKilowatt(UErrorCode &status);
2889
+
2890
+ /**
2891
+ * Returns by value, unit of power: kilowatt.
2892
+ * Also see {@link #createKilowatt()}.
2893
+ * @stable ICU 64
2894
+ */
2895
+ static MeasureUnit getKilowatt();
2896
+
2897
+ /**
2898
+ * Returns by pointer, unit of power: megawatt.
2899
+ * Caller owns returned value and must free it.
2900
+ * Also see {@link #getMegawatt()}.
2901
+ * @param status ICU error code.
2902
+ * @stable ICU 54
2903
+ */
2904
+ static MeasureUnit *createMegawatt(UErrorCode &status);
2905
+
2906
+ /**
2907
+ * Returns by value, unit of power: megawatt.
2908
+ * Also see {@link #createMegawatt()}.
2909
+ * @stable ICU 64
2910
+ */
2911
+ static MeasureUnit getMegawatt();
2912
+
2913
+ /**
2914
+ * Returns by pointer, unit of power: milliwatt.
2915
+ * Caller owns returned value and must free it.
2916
+ * Also see {@link #getMilliwatt()}.
2917
+ * @param status ICU error code.
2918
+ * @stable ICU 54
2919
+ */
2920
+ static MeasureUnit *createMilliwatt(UErrorCode &status);
2921
+
2922
+ /**
2923
+ * Returns by value, unit of power: milliwatt.
2924
+ * Also see {@link #createMilliwatt()}.
2925
+ * @stable ICU 64
2926
+ */
2927
+ static MeasureUnit getMilliwatt();
2928
+
2929
+ /**
2930
+ * Returns by pointer, unit of power: watt.
2931
+ * Caller owns returned value and must free it.
2932
+ * Also see {@link #getWatt()}.
2933
+ * @param status ICU error code.
2934
+ * @stable ICU 53
2935
+ */
2936
+ static MeasureUnit *createWatt(UErrorCode &status);
2937
+
2938
+ /**
2939
+ * Returns by value, unit of power: watt.
2940
+ * Also see {@link #createWatt()}.
2941
+ * @stable ICU 64
2942
+ */
2943
+ static MeasureUnit getWatt();
2944
+
2945
+ /**
2946
+ * Returns by pointer, unit of pressure: atmosphere.
2947
+ * Caller owns returned value and must free it.
2948
+ * Also see {@link #getAtmosphere()}.
2949
+ * @param status ICU error code.
2950
+ * @stable ICU 63
2951
+ */
2952
+ static MeasureUnit *createAtmosphere(UErrorCode &status);
2953
+
2954
+ /**
2955
+ * Returns by value, unit of pressure: atmosphere.
2956
+ * Also see {@link #createAtmosphere()}.
2957
+ * @stable ICU 64
2958
+ */
2959
+ static MeasureUnit getAtmosphere();
2960
+
2961
+ /**
2962
+ * Returns by pointer, unit of pressure: bar.
2963
+ * Caller owns returned value and must free it.
2964
+ * Also see {@link #getBar()}.
2965
+ * @param status ICU error code.
2966
+ * @stable ICU 65
2967
+ */
2968
+ static MeasureUnit *createBar(UErrorCode &status);
2969
+
2970
+ /**
2971
+ * Returns by value, unit of pressure: bar.
2972
+ * Also see {@link #createBar()}.
2973
+ * @stable ICU 65
2974
+ */
2975
+ static MeasureUnit getBar();
2976
+
2977
+ /**
2978
+ * Returns by pointer, unit of pressure: gasoline-energy-density.
2979
+ * Caller owns returned value and must free it.
2980
+ * Also see {@link #getGasolineEnergyDensity()}.
2981
+ * @param status ICU error code.
2982
+ * @stable ICU 74
2983
+ */
2984
+ static MeasureUnit *createGasolineEnergyDensity(UErrorCode &status);
2985
+
2986
+ /**
2987
+ * Returns by value, unit of pressure: gasoline-energy-density.
2988
+ * Also see {@link #createGasolineEnergyDensity()}.
2989
+ * @stable ICU 74
2990
+ */
2991
+ static MeasureUnit getGasolineEnergyDensity();
2992
+
2993
+ /**
2994
+ * Returns by pointer, unit of pressure: hectopascal.
2995
+ * Caller owns returned value and must free it.
2996
+ * Also see {@link #getHectopascal()}.
2997
+ * @param status ICU error code.
2998
+ * @stable ICU 53
2999
+ */
3000
+ static MeasureUnit *createHectopascal(UErrorCode &status);
3001
+
3002
+ /**
3003
+ * Returns by value, unit of pressure: hectopascal.
3004
+ * Also see {@link #createHectopascal()}.
3005
+ * @stable ICU 64
3006
+ */
3007
+ static MeasureUnit getHectopascal();
3008
+
3009
+ /**
3010
+ * Returns by pointer, unit of pressure: inch-ofhg.
3011
+ * Caller owns returned value and must free it.
3012
+ * Also see {@link #getInchHg()}.
3013
+ * @param status ICU error code.
3014
+ * @stable ICU 53
3015
+ */
3016
+ static MeasureUnit *createInchHg(UErrorCode &status);
3017
+
3018
+ /**
3019
+ * Returns by value, unit of pressure: inch-ofhg.
3020
+ * Also see {@link #createInchHg()}.
3021
+ * @stable ICU 64
3022
+ */
3023
+ static MeasureUnit getInchHg();
3024
+
3025
+ /**
3026
+ * Returns by pointer, unit of pressure: kilopascal.
3027
+ * Caller owns returned value and must free it.
3028
+ * Also see {@link #getKilopascal()}.
3029
+ * @param status ICU error code.
3030
+ * @stable ICU 64
3031
+ */
3032
+ static MeasureUnit *createKilopascal(UErrorCode &status);
3033
+
3034
+ /**
3035
+ * Returns by value, unit of pressure: kilopascal.
3036
+ * Also see {@link #createKilopascal()}.
3037
+ * @stable ICU 64
3038
+ */
3039
+ static MeasureUnit getKilopascal();
3040
+
3041
+ /**
3042
+ * Returns by pointer, unit of pressure: megapascal.
3043
+ * Caller owns returned value and must free it.
3044
+ * Also see {@link #getMegapascal()}.
3045
+ * @param status ICU error code.
3046
+ * @stable ICU 64
3047
+ */
3048
+ static MeasureUnit *createMegapascal(UErrorCode &status);
3049
+
3050
+ /**
3051
+ * Returns by value, unit of pressure: megapascal.
3052
+ * Also see {@link #createMegapascal()}.
3053
+ * @stable ICU 64
3054
+ */
3055
+ static MeasureUnit getMegapascal();
3056
+
3057
+ /**
3058
+ * Returns by pointer, unit of pressure: millibar.
3059
+ * Caller owns returned value and must free it.
3060
+ * Also see {@link #getMillibar()}.
3061
+ * @param status ICU error code.
3062
+ * @stable ICU 53
3063
+ */
3064
+ static MeasureUnit *createMillibar(UErrorCode &status);
3065
+
3066
+ /**
3067
+ * Returns by value, unit of pressure: millibar.
3068
+ * Also see {@link #createMillibar()}.
3069
+ * @stable ICU 64
3070
+ */
3071
+ static MeasureUnit getMillibar();
3072
+
3073
+ /**
3074
+ * Returns by pointer, unit of pressure: millimeter-ofhg.
3075
+ * Caller owns returned value and must free it.
3076
+ * Also see {@link #getMillimeterOfMercury()}.
3077
+ * @param status ICU error code.
3078
+ * @stable ICU 54
3079
+ */
3080
+ static MeasureUnit *createMillimeterOfMercury(UErrorCode &status);
3081
+
3082
+ /**
3083
+ * Returns by value, unit of pressure: millimeter-ofhg.
3084
+ * Also see {@link #createMillimeterOfMercury()}.
3085
+ * @stable ICU 64
3086
+ */
3087
+ static MeasureUnit getMillimeterOfMercury();
3088
+
3089
+ /**
3090
+ * Returns by pointer, unit of pressure: pascal.
3091
+ * Caller owns returned value and must free it.
3092
+ * Also see {@link #getPascal()}.
3093
+ * @param status ICU error code.
3094
+ * @stable ICU 65
3095
+ */
3096
+ static MeasureUnit *createPascal(UErrorCode &status);
3097
+
3098
+ /**
3099
+ * Returns by value, unit of pressure: pascal.
3100
+ * Also see {@link #createPascal()}.
3101
+ * @stable ICU 65
3102
+ */
3103
+ static MeasureUnit getPascal();
3104
+
3105
+ /**
3106
+ * Returns by pointer, unit of pressure: pound-force-per-square-inch.
3107
+ * Caller owns returned value and must free it.
3108
+ * Also see {@link #getPoundPerSquareInch()}.
3109
+ * @param status ICU error code.
3110
+ * @stable ICU 54
3111
+ */
3112
+ static MeasureUnit *createPoundPerSquareInch(UErrorCode &status);
3113
+
3114
+ /**
3115
+ * Returns by value, unit of pressure: pound-force-per-square-inch.
3116
+ * Also see {@link #createPoundPerSquareInch()}.
3117
+ * @stable ICU 64
3118
+ */
3119
+ static MeasureUnit getPoundPerSquareInch();
3120
+
3121
+ /**
3122
+ * Returns by pointer, unit of speed: beaufort.
3123
+ * Caller owns returned value and must free it.
3124
+ * Also see {@link #getBeaufort()}.
3125
+ * @param status ICU error code.
3126
+ * @stable ICU 73
3127
+ */
3128
+ static MeasureUnit *createBeaufort(UErrorCode &status);
3129
+
3130
+ /**
3131
+ * Returns by value, unit of speed: beaufort.
3132
+ * Also see {@link #createBeaufort()}.
3133
+ * @stable ICU 73
3134
+ */
3135
+ static MeasureUnit getBeaufort();
3136
+
3137
+ /**
3138
+ * Returns by pointer, unit of speed: kilometer-per-hour.
3139
+ * Caller owns returned value and must free it.
3140
+ * Also see {@link #getKilometerPerHour()}.
3141
+ * @param status ICU error code.
3142
+ * @stable ICU 53
3143
+ */
3144
+ static MeasureUnit *createKilometerPerHour(UErrorCode &status);
3145
+
3146
+ /**
3147
+ * Returns by value, unit of speed: kilometer-per-hour.
3148
+ * Also see {@link #createKilometerPerHour()}.
3149
+ * @stable ICU 64
3150
+ */
3151
+ static MeasureUnit getKilometerPerHour();
3152
+
3153
+ /**
3154
+ * Returns by pointer, unit of speed: knot.
3155
+ * Caller owns returned value and must free it.
3156
+ * Also see {@link #getKnot()}.
3157
+ * @param status ICU error code.
3158
+ * @stable ICU 56
3159
+ */
3160
+ static MeasureUnit *createKnot(UErrorCode &status);
3161
+
3162
+ /**
3163
+ * Returns by value, unit of speed: knot.
3164
+ * Also see {@link #createKnot()}.
3165
+ * @stable ICU 64
3166
+ */
3167
+ static MeasureUnit getKnot();
3168
+
3169
+ #ifndef U_HIDE_DRAFT_API
3170
+ /**
3171
+ * Returns by pointer, unit of speed: light-speed.
3172
+ * Caller owns returned value and must free it.
3173
+ * Also see {@link #getLightSpeed()}.
3174
+ * @param status ICU error code.
3175
+ * @draft ICU 76
3176
+ */
3177
+ static MeasureUnit *createLightSpeed(UErrorCode &status);
3178
+
3179
+ /**
3180
+ * Returns by value, unit of speed: light-speed.
3181
+ * Also see {@link #createLightSpeed()}.
3182
+ * @draft ICU 76
3183
+ */
3184
+ static MeasureUnit getLightSpeed();
3185
+ #endif /* U_HIDE_DRAFT_API */
3186
+
3187
+ /**
3188
+ * Returns by pointer, unit of speed: meter-per-second.
3189
+ * Caller owns returned value and must free it.
3190
+ * Also see {@link #getMeterPerSecond()}.
3191
+ * @param status ICU error code.
3192
+ * @stable ICU 53
3193
+ */
3194
+ static MeasureUnit *createMeterPerSecond(UErrorCode &status);
3195
+
3196
+ /**
3197
+ * Returns by value, unit of speed: meter-per-second.
3198
+ * Also see {@link #createMeterPerSecond()}.
3199
+ * @stable ICU 64
3200
+ */
3201
+ static MeasureUnit getMeterPerSecond();
3202
+
3203
+ /**
3204
+ * Returns by pointer, unit of speed: mile-per-hour.
3205
+ * Caller owns returned value and must free it.
3206
+ * Also see {@link #getMilePerHour()}.
3207
+ * @param status ICU error code.
3208
+ * @stable ICU 53
3209
+ */
3210
+ static MeasureUnit *createMilePerHour(UErrorCode &status);
3211
+
3212
+ /**
3213
+ * Returns by value, unit of speed: mile-per-hour.
3214
+ * Also see {@link #createMilePerHour()}.
3215
+ * @stable ICU 64
3216
+ */
3217
+ static MeasureUnit getMilePerHour();
3218
+
3219
+ /**
3220
+ * Returns by pointer, unit of temperature: celsius.
3221
+ * Caller owns returned value and must free it.
3222
+ * Also see {@link #getCelsius()}.
3223
+ * @param status ICU error code.
3224
+ * @stable ICU 53
3225
+ */
3226
+ static MeasureUnit *createCelsius(UErrorCode &status);
3227
+
3228
+ /**
3229
+ * Returns by value, unit of temperature: celsius.
3230
+ * Also see {@link #createCelsius()}.
3231
+ * @stable ICU 64
3232
+ */
3233
+ static MeasureUnit getCelsius();
3234
+
3235
+ /**
3236
+ * Returns by pointer, unit of temperature: fahrenheit.
3237
+ * Caller owns returned value and must free it.
3238
+ * Also see {@link #getFahrenheit()}.
3239
+ * @param status ICU error code.
3240
+ * @stable ICU 53
3241
+ */
3242
+ static MeasureUnit *createFahrenheit(UErrorCode &status);
3243
+
3244
+ /**
3245
+ * Returns by value, unit of temperature: fahrenheit.
3246
+ * Also see {@link #createFahrenheit()}.
3247
+ * @stable ICU 64
3248
+ */
3249
+ static MeasureUnit getFahrenheit();
3250
+
3251
+ /**
3252
+ * Returns by pointer, unit of temperature: generic.
3253
+ * Caller owns returned value and must free it.
3254
+ * Also see {@link #getGenericTemperature()}.
3255
+ * @param status ICU error code.
3256
+ * @stable ICU 56
3257
+ */
3258
+ static MeasureUnit *createGenericTemperature(UErrorCode &status);
3259
+
3260
+ /**
3261
+ * Returns by value, unit of temperature: generic.
3262
+ * Also see {@link #createGenericTemperature()}.
3263
+ * @stable ICU 64
3264
+ */
3265
+ static MeasureUnit getGenericTemperature();
3266
+
3267
+ /**
3268
+ * Returns by pointer, unit of temperature: kelvin.
3269
+ * Caller owns returned value and must free it.
3270
+ * Also see {@link #getKelvin()}.
3271
+ * @param status ICU error code.
3272
+ * @stable ICU 54
3273
+ */
3274
+ static MeasureUnit *createKelvin(UErrorCode &status);
3275
+
3276
+ /**
3277
+ * Returns by value, unit of temperature: kelvin.
3278
+ * Also see {@link #createKelvin()}.
3279
+ * @stable ICU 64
3280
+ */
3281
+ static MeasureUnit getKelvin();
3282
+
3283
+ /**
3284
+ * Returns by pointer, unit of torque: newton-meter.
3285
+ * Caller owns returned value and must free it.
3286
+ * Also see {@link #getNewtonMeter()}.
3287
+ * @param status ICU error code.
3288
+ * @stable ICU 64
3289
+ */
3290
+ static MeasureUnit *createNewtonMeter(UErrorCode &status);
3291
+
3292
+ /**
3293
+ * Returns by value, unit of torque: newton-meter.
3294
+ * Also see {@link #createNewtonMeter()}.
3295
+ * @stable ICU 64
3296
+ */
3297
+ static MeasureUnit getNewtonMeter();
3298
+
3299
+ /**
3300
+ * Returns by pointer, unit of torque: pound-force-foot.
3301
+ * Caller owns returned value and must free it.
3302
+ * Also see {@link #getPoundFoot()}.
3303
+ * @param status ICU error code.
3304
+ * @stable ICU 64
3305
+ */
3306
+ static MeasureUnit *createPoundFoot(UErrorCode &status);
3307
+
3308
+ /**
3309
+ * Returns by value, unit of torque: pound-force-foot.
3310
+ * Also see {@link #createPoundFoot()}.
3311
+ * @stable ICU 64
3312
+ */
3313
+ static MeasureUnit getPoundFoot();
3314
+
3315
+ /**
3316
+ * Returns by pointer, unit of volume: acre-foot.
3317
+ * Caller owns returned value and must free it.
3318
+ * Also see {@link #getAcreFoot()}.
3319
+ * @param status ICU error code.
3320
+ * @stable ICU 54
3321
+ */
3322
+ static MeasureUnit *createAcreFoot(UErrorCode &status);
3323
+
3324
+ /**
3325
+ * Returns by value, unit of volume: acre-foot.
3326
+ * Also see {@link #createAcreFoot()}.
3327
+ * @stable ICU 64
3328
+ */
3329
+ static MeasureUnit getAcreFoot();
3330
+
3331
+ /**
3332
+ * Returns by pointer, unit of volume: barrel.
3333
+ * Caller owns returned value and must free it.
3334
+ * Also see {@link #getBarrel()}.
3335
+ * @param status ICU error code.
3336
+ * @stable ICU 64
3337
+ */
3338
+ static MeasureUnit *createBarrel(UErrorCode &status);
3339
+
3340
+ /**
3341
+ * Returns by value, unit of volume: barrel.
3342
+ * Also see {@link #createBarrel()}.
3343
+ * @stable ICU 64
3344
+ */
3345
+ static MeasureUnit getBarrel();
3346
+
3347
+ /**
3348
+ * Returns by pointer, unit of volume: bushel.
3349
+ * Caller owns returned value and must free it.
3350
+ * Also see {@link #getBushel()}.
3351
+ * @param status ICU error code.
3352
+ * @stable ICU 54
3353
+ */
3354
+ static MeasureUnit *createBushel(UErrorCode &status);
3355
+
3356
+ /**
3357
+ * Returns by value, unit of volume: bushel.
3358
+ * Also see {@link #createBushel()}.
3359
+ * @stable ICU 64
3360
+ */
3361
+ static MeasureUnit getBushel();
3362
+
3363
+ /**
3364
+ * Returns by pointer, unit of volume: centiliter.
3365
+ * Caller owns returned value and must free it.
3366
+ * Also see {@link #getCentiliter()}.
3367
+ * @param status ICU error code.
3368
+ * @stable ICU 54
3369
+ */
3370
+ static MeasureUnit *createCentiliter(UErrorCode &status);
3371
+
3372
+ /**
3373
+ * Returns by value, unit of volume: centiliter.
3374
+ * Also see {@link #createCentiliter()}.
3375
+ * @stable ICU 64
3376
+ */
3377
+ static MeasureUnit getCentiliter();
3378
+
3379
+ /**
3380
+ * Returns by pointer, unit of volume: cubic-centimeter.
3381
+ * Caller owns returned value and must free it.
3382
+ * Also see {@link #getCubicCentimeter()}.
3383
+ * @param status ICU error code.
3384
+ * @stable ICU 54
3385
+ */
3386
+ static MeasureUnit *createCubicCentimeter(UErrorCode &status);
3387
+
3388
+ /**
3389
+ * Returns by value, unit of volume: cubic-centimeter.
3390
+ * Also see {@link #createCubicCentimeter()}.
3391
+ * @stable ICU 64
3392
+ */
3393
+ static MeasureUnit getCubicCentimeter();
3394
+
3395
+ /**
3396
+ * Returns by pointer, unit of volume: cubic-foot.
3397
+ * Caller owns returned value and must free it.
3398
+ * Also see {@link #getCubicFoot()}.
3399
+ * @param status ICU error code.
3400
+ * @stable ICU 54
3401
+ */
3402
+ static MeasureUnit *createCubicFoot(UErrorCode &status);
3403
+
3404
+ /**
3405
+ * Returns by value, unit of volume: cubic-foot.
3406
+ * Also see {@link #createCubicFoot()}.
3407
+ * @stable ICU 64
3408
+ */
3409
+ static MeasureUnit getCubicFoot();
3410
+
3411
+ /**
3412
+ * Returns by pointer, unit of volume: cubic-inch.
3413
+ * Caller owns returned value and must free it.
3414
+ * Also see {@link #getCubicInch()}.
3415
+ * @param status ICU error code.
3416
+ * @stable ICU 54
3417
+ */
3418
+ static MeasureUnit *createCubicInch(UErrorCode &status);
3419
+
3420
+ /**
3421
+ * Returns by value, unit of volume: cubic-inch.
3422
+ * Also see {@link #createCubicInch()}.
3423
+ * @stable ICU 64
3424
+ */
3425
+ static MeasureUnit getCubicInch();
3426
+
3427
+ /**
3428
+ * Returns by pointer, unit of volume: cubic-kilometer.
3429
+ * Caller owns returned value and must free it.
3430
+ * Also see {@link #getCubicKilometer()}.
3431
+ * @param status ICU error code.
3432
+ * @stable ICU 53
3433
+ */
3434
+ static MeasureUnit *createCubicKilometer(UErrorCode &status);
3435
+
3436
+ /**
3437
+ * Returns by value, unit of volume: cubic-kilometer.
3438
+ * Also see {@link #createCubicKilometer()}.
3439
+ * @stable ICU 64
3440
+ */
3441
+ static MeasureUnit getCubicKilometer();
3442
+
3443
+ /**
3444
+ * Returns by pointer, unit of volume: cubic-meter.
3445
+ * Caller owns returned value and must free it.
3446
+ * Also see {@link #getCubicMeter()}.
3447
+ * @param status ICU error code.
3448
+ * @stable ICU 54
3449
+ */
3450
+ static MeasureUnit *createCubicMeter(UErrorCode &status);
3451
+
3452
+ /**
3453
+ * Returns by value, unit of volume: cubic-meter.
3454
+ * Also see {@link #createCubicMeter()}.
3455
+ * @stable ICU 64
3456
+ */
3457
+ static MeasureUnit getCubicMeter();
3458
+
3459
+ /**
3460
+ * Returns by pointer, unit of volume: cubic-mile.
3461
+ * Caller owns returned value and must free it.
3462
+ * Also see {@link #getCubicMile()}.
3463
+ * @param status ICU error code.
3464
+ * @stable ICU 53
3465
+ */
3466
+ static MeasureUnit *createCubicMile(UErrorCode &status);
3467
+
3468
+ /**
3469
+ * Returns by value, unit of volume: cubic-mile.
3470
+ * Also see {@link #createCubicMile()}.
3471
+ * @stable ICU 64
3472
+ */
3473
+ static MeasureUnit getCubicMile();
3474
+
3475
+ /**
3476
+ * Returns by pointer, unit of volume: cubic-yard.
3477
+ * Caller owns returned value and must free it.
3478
+ * Also see {@link #getCubicYard()}.
3479
+ * @param status ICU error code.
3480
+ * @stable ICU 54
3481
+ */
3482
+ static MeasureUnit *createCubicYard(UErrorCode &status);
3483
+
3484
+ /**
3485
+ * Returns by value, unit of volume: cubic-yard.
3486
+ * Also see {@link #createCubicYard()}.
3487
+ * @stable ICU 64
3488
+ */
3489
+ static MeasureUnit getCubicYard();
3490
+
3491
+ /**
3492
+ * Returns by pointer, unit of volume: cup.
3493
+ * Caller owns returned value and must free it.
3494
+ * Also see {@link #getCup()}.
3495
+ * @param status ICU error code.
3496
+ * @stable ICU 54
3497
+ */
3498
+ static MeasureUnit *createCup(UErrorCode &status);
3499
+
3500
+ /**
3501
+ * Returns by value, unit of volume: cup.
3502
+ * Also see {@link #createCup()}.
3503
+ * @stable ICU 64
3504
+ */
3505
+ static MeasureUnit getCup();
3506
+
3507
+ /**
3508
+ * Returns by pointer, unit of volume: cup-metric.
3509
+ * Caller owns returned value and must free it.
3510
+ * Also see {@link #getCupMetric()}.
3511
+ * @param status ICU error code.
3512
+ * @stable ICU 56
3513
+ */
3514
+ static MeasureUnit *createCupMetric(UErrorCode &status);
3515
+
3516
+ /**
3517
+ * Returns by value, unit of volume: cup-metric.
3518
+ * Also see {@link #createCupMetric()}.
3519
+ * @stable ICU 64
3520
+ */
3521
+ static MeasureUnit getCupMetric();
3522
+
3523
+ /**
3524
+ * Returns by pointer, unit of volume: deciliter.
3525
+ * Caller owns returned value and must free it.
3526
+ * Also see {@link #getDeciliter()}.
3527
+ * @param status ICU error code.
3528
+ * @stable ICU 54
3529
+ */
3530
+ static MeasureUnit *createDeciliter(UErrorCode &status);
3531
+
3532
+ /**
3533
+ * Returns by value, unit of volume: deciliter.
3534
+ * Also see {@link #createDeciliter()}.
3535
+ * @stable ICU 64
3536
+ */
3537
+ static MeasureUnit getDeciliter();
3538
+
3539
+ /**
3540
+ * Returns by pointer, unit of volume: dessert-spoon.
3541
+ * Caller owns returned value and must free it.
3542
+ * Also see {@link #getDessertSpoon()}.
3543
+ * @param status ICU error code.
3544
+ * @stable ICU 68
3545
+ */
3546
+ static MeasureUnit *createDessertSpoon(UErrorCode &status);
3547
+
3548
+ /**
3549
+ * Returns by value, unit of volume: dessert-spoon.
3550
+ * Also see {@link #createDessertSpoon()}.
3551
+ * @stable ICU 68
3552
+ */
3553
+ static MeasureUnit getDessertSpoon();
3554
+
3555
+ /**
3556
+ * Returns by pointer, unit of volume: dessert-spoon-imperial.
3557
+ * Caller owns returned value and must free it.
3558
+ * Also see {@link #getDessertSpoonImperial()}.
3559
+ * @param status ICU error code.
3560
+ * @stable ICU 68
3561
+ */
3562
+ static MeasureUnit *createDessertSpoonImperial(UErrorCode &status);
3563
+
3564
+ /**
3565
+ * Returns by value, unit of volume: dessert-spoon-imperial.
3566
+ * Also see {@link #createDessertSpoonImperial()}.
3567
+ * @stable ICU 68
3568
+ */
3569
+ static MeasureUnit getDessertSpoonImperial();
3570
+
3571
+ /**
3572
+ * Returns by pointer, unit of volume: dram.
3573
+ * Caller owns returned value and must free it.
3574
+ * Also see {@link #getDram()}.
3575
+ * @param status ICU error code.
3576
+ * @stable ICU 68
3577
+ */
3578
+ static MeasureUnit *createDram(UErrorCode &status);
3579
+
3580
+ /**
3581
+ * Returns by value, unit of volume: dram.
3582
+ * Also see {@link #createDram()}.
3583
+ * @stable ICU 68
3584
+ */
3585
+ static MeasureUnit getDram();
3586
+
3587
+ /**
3588
+ * Returns by pointer, unit of volume: drop.
3589
+ * Caller owns returned value and must free it.
3590
+ * Also see {@link #getDrop()}.
3591
+ * @param status ICU error code.
3592
+ * @stable ICU 68
3593
+ */
3594
+ static MeasureUnit *createDrop(UErrorCode &status);
3595
+
3596
+ /**
3597
+ * Returns by value, unit of volume: drop.
3598
+ * Also see {@link #createDrop()}.
3599
+ * @stable ICU 68
3600
+ */
3601
+ static MeasureUnit getDrop();
3602
+
3603
+ /**
3604
+ * Returns by pointer, unit of volume: fluid-ounce.
3605
+ * Caller owns returned value and must free it.
3606
+ * Also see {@link #getFluidOunce()}.
3607
+ * @param status ICU error code.
3608
+ * @stable ICU 54
3609
+ */
3610
+ static MeasureUnit *createFluidOunce(UErrorCode &status);
3611
+
3612
+ /**
3613
+ * Returns by value, unit of volume: fluid-ounce.
3614
+ * Also see {@link #createFluidOunce()}.
3615
+ * @stable ICU 64
3616
+ */
3617
+ static MeasureUnit getFluidOunce();
3618
+
3619
+ /**
3620
+ * Returns by pointer, unit of volume: fluid-ounce-imperial.
3621
+ * Caller owns returned value and must free it.
3622
+ * Also see {@link #getFluidOunceImperial()}.
3623
+ * @param status ICU error code.
3624
+ * @stable ICU 64
3625
+ */
3626
+ static MeasureUnit *createFluidOunceImperial(UErrorCode &status);
3627
+
3628
+ /**
3629
+ * Returns by value, unit of volume: fluid-ounce-imperial.
3630
+ * Also see {@link #createFluidOunceImperial()}.
3631
+ * @stable ICU 64
3632
+ */
3633
+ static MeasureUnit getFluidOunceImperial();
3634
+
3635
+ /**
3636
+ * Returns by pointer, unit of volume: gallon.
3637
+ * Caller owns returned value and must free it.
3638
+ * Also see {@link #getGallon()}.
3639
+ * @param status ICU error code.
3640
+ * @stable ICU 54
3641
+ */
3642
+ static MeasureUnit *createGallon(UErrorCode &status);
3643
+
3644
+ /**
3645
+ * Returns by value, unit of volume: gallon.
3646
+ * Also see {@link #createGallon()}.
3647
+ * @stable ICU 64
3648
+ */
3649
+ static MeasureUnit getGallon();
3650
+
3651
+ /**
3652
+ * Returns by pointer, unit of volume: gallon-imperial.
3653
+ * Caller owns returned value and must free it.
3654
+ * Also see {@link #getGallonImperial()}.
3655
+ * @param status ICU error code.
3656
+ * @stable ICU 57
3657
+ */
3658
+ static MeasureUnit *createGallonImperial(UErrorCode &status);
3659
+
3660
+ /**
3661
+ * Returns by value, unit of volume: gallon-imperial.
3662
+ * Also see {@link #createGallonImperial()}.
3663
+ * @stable ICU 64
3664
+ */
3665
+ static MeasureUnit getGallonImperial();
3666
+
3667
+ /**
3668
+ * Returns by pointer, unit of volume: hectoliter.
3669
+ * Caller owns returned value and must free it.
3670
+ * Also see {@link #getHectoliter()}.
3671
+ * @param status ICU error code.
3672
+ * @stable ICU 54
3673
+ */
3674
+ static MeasureUnit *createHectoliter(UErrorCode &status);
3675
+
3676
+ /**
3677
+ * Returns by value, unit of volume: hectoliter.
3678
+ * Also see {@link #createHectoliter()}.
3679
+ * @stable ICU 64
3680
+ */
3681
+ static MeasureUnit getHectoliter();
3682
+
3683
+ /**
3684
+ * Returns by pointer, unit of volume: jigger.
3685
+ * Caller owns returned value and must free it.
3686
+ * Also see {@link #getJigger()}.
3687
+ * @param status ICU error code.
3688
+ * @stable ICU 68
3689
+ */
3690
+ static MeasureUnit *createJigger(UErrorCode &status);
3691
+
3692
+ /**
3693
+ * Returns by value, unit of volume: jigger.
3694
+ * Also see {@link #createJigger()}.
3695
+ * @stable ICU 68
3696
+ */
3697
+ static MeasureUnit getJigger();
3698
+
3699
+ /**
3700
+ * Returns by pointer, unit of volume: liter.
3701
+ * Caller owns returned value and must free it.
3702
+ * Also see {@link #getLiter()}.
3703
+ * @param status ICU error code.
3704
+ * @stable ICU 53
3705
+ */
3706
+ static MeasureUnit *createLiter(UErrorCode &status);
3707
+
3708
+ /**
3709
+ * Returns by value, unit of volume: liter.
3710
+ * Also see {@link #createLiter()}.
3711
+ * @stable ICU 64
3712
+ */
3713
+ static MeasureUnit getLiter();
3714
+
3715
+ /**
3716
+ * Returns by pointer, unit of volume: megaliter.
3717
+ * Caller owns returned value and must free it.
3718
+ * Also see {@link #getMegaliter()}.
3719
+ * @param status ICU error code.
3720
+ * @stable ICU 54
3721
+ */
3722
+ static MeasureUnit *createMegaliter(UErrorCode &status);
3723
+
3724
+ /**
3725
+ * Returns by value, unit of volume: megaliter.
3726
+ * Also see {@link #createMegaliter()}.
3727
+ * @stable ICU 64
3728
+ */
3729
+ static MeasureUnit getMegaliter();
3730
+
3731
+ /**
3732
+ * Returns by pointer, unit of volume: milliliter.
3733
+ * Caller owns returned value and must free it.
3734
+ * Also see {@link #getMilliliter()}.
3735
+ * @param status ICU error code.
3736
+ * @stable ICU 54
3737
+ */
3738
+ static MeasureUnit *createMilliliter(UErrorCode &status);
3739
+
3740
+ /**
3741
+ * Returns by value, unit of volume: milliliter.
3742
+ * Also see {@link #createMilliliter()}.
3743
+ * @stable ICU 64
3744
+ */
3745
+ static MeasureUnit getMilliliter();
3746
+
3747
+ /**
3748
+ * Returns by pointer, unit of volume: pinch.
3749
+ * Caller owns returned value and must free it.
3750
+ * Also see {@link #getPinch()}.
3751
+ * @param status ICU error code.
3752
+ * @stable ICU 68
3753
+ */
3754
+ static MeasureUnit *createPinch(UErrorCode &status);
3755
+
3756
+ /**
3757
+ * Returns by value, unit of volume: pinch.
3758
+ * Also see {@link #createPinch()}.
3759
+ * @stable ICU 68
3760
+ */
3761
+ static MeasureUnit getPinch();
3762
+
3763
+ /**
3764
+ * Returns by pointer, unit of volume: pint.
3765
+ * Caller owns returned value and must free it.
3766
+ * Also see {@link #getPint()}.
3767
+ * @param status ICU error code.
3768
+ * @stable ICU 54
3769
+ */
3770
+ static MeasureUnit *createPint(UErrorCode &status);
3771
+
3772
+ /**
3773
+ * Returns by value, unit of volume: pint.
3774
+ * Also see {@link #createPint()}.
3775
+ * @stable ICU 64
3776
+ */
3777
+ static MeasureUnit getPint();
3778
+
3779
+ /**
3780
+ * Returns by pointer, unit of volume: pint-metric.
3781
+ * Caller owns returned value and must free it.
3782
+ * Also see {@link #getPintMetric()}.
3783
+ * @param status ICU error code.
3784
+ * @stable ICU 56
3785
+ */
3786
+ static MeasureUnit *createPintMetric(UErrorCode &status);
3787
+
3788
+ /**
3789
+ * Returns by value, unit of volume: pint-metric.
3790
+ * Also see {@link #createPintMetric()}.
3791
+ * @stable ICU 64
3792
+ */
3793
+ static MeasureUnit getPintMetric();
3794
+
3795
+ /**
3796
+ * Returns by pointer, unit of volume: quart.
3797
+ * Caller owns returned value and must free it.
3798
+ * Also see {@link #getQuart()}.
3799
+ * @param status ICU error code.
3800
+ * @stable ICU 54
3801
+ */
3802
+ static MeasureUnit *createQuart(UErrorCode &status);
3803
+
3804
+ /**
3805
+ * Returns by value, unit of volume: quart.
3806
+ * Also see {@link #createQuart()}.
3807
+ * @stable ICU 64
3808
+ */
3809
+ static MeasureUnit getQuart();
3810
+
3811
+ /**
3812
+ * Returns by pointer, unit of volume: quart-imperial.
3813
+ * Caller owns returned value and must free it.
3814
+ * Also see {@link #getQuartImperial()}.
3815
+ * @param status ICU error code.
3816
+ * @stable ICU 68
3817
+ */
3818
+ static MeasureUnit *createQuartImperial(UErrorCode &status);
3819
+
3820
+ /**
3821
+ * Returns by value, unit of volume: quart-imperial.
3822
+ * Also see {@link #createQuartImperial()}.
3823
+ * @stable ICU 68
3824
+ */
3825
+ static MeasureUnit getQuartImperial();
3826
+
3827
+ /**
3828
+ * Returns by pointer, unit of volume: tablespoon.
3829
+ * Caller owns returned value and must free it.
3830
+ * Also see {@link #getTablespoon()}.
3831
+ * @param status ICU error code.
3832
+ * @stable ICU 54
3833
+ */
3834
+ static MeasureUnit *createTablespoon(UErrorCode &status);
3835
+
3836
+ /**
3837
+ * Returns by value, unit of volume: tablespoon.
3838
+ * Also see {@link #createTablespoon()}.
3839
+ * @stable ICU 64
3840
+ */
3841
+ static MeasureUnit getTablespoon();
3842
+
3843
+ /**
3844
+ * Returns by pointer, unit of volume: teaspoon.
3845
+ * Caller owns returned value and must free it.
3846
+ * Also see {@link #getTeaspoon()}.
3847
+ * @param status ICU error code.
3848
+ * @stable ICU 54
3849
+ */
3850
+ static MeasureUnit *createTeaspoon(UErrorCode &status);
3851
+
3852
+ /**
3853
+ * Returns by value, unit of volume: teaspoon.
3854
+ * Also see {@link #createTeaspoon()}.
3855
+ * @stable ICU 64
3856
+ */
3857
+ static MeasureUnit getTeaspoon();
3858
+
3859
+ // End generated createXXX methods
3860
+
3861
+ protected:
3862
+
3863
+ #ifndef U_HIDE_INTERNAL_API
3864
+ /**
3865
+ * For ICU use only.
3866
+ * @internal
3867
+ */
3868
+ void initTime(const char *timeId);
3869
+
3870
+ /**
3871
+ * For ICU use only.
3872
+ * @internal
3873
+ */
3874
+ void initCurrency(StringPiece isoCurrency);
3875
+
3876
+ #endif /* U_HIDE_INTERNAL_API */
3877
+
3878
+ private:
3879
+
3880
+ // Used by new draft APIs in ICU 67. If non-null, fImpl is owned by the
3881
+ // MeasureUnit.
3882
+ MeasureUnitImpl* fImpl;
3883
+
3884
+ // An index into a static string list in measunit.cpp. If set to -1, fImpl
3885
+ // is in use instead of fTypeId and fSubTypeId.
3886
+ int16_t fSubTypeId;
3887
+ // An index into a static string list in measunit.cpp. If set to -1, fImpl
3888
+ // is in use instead of fTypeId and fSubTypeId.
3889
+ int8_t fTypeId;
3890
+
3891
+ MeasureUnit(int32_t typeId, int32_t subTypeId);
3892
+ MeasureUnit(MeasureUnitImpl&& impl);
3893
+ void setTo(int32_t typeId, int32_t subTypeId);
3894
+ static MeasureUnit *create(int typeId, int subTypeId, UErrorCode &status);
3895
+
3896
+ /**
3897
+ * Sets output's typeId and subTypeId according to subType, if subType is a
3898
+ * valid/known identifier.
3899
+ *
3900
+ * @return Whether subType is known to ICU. If false, output was not
3901
+ * modified.
3902
+ */
3903
+ static bool findBySubType(StringPiece subType, MeasureUnit* output);
3904
+
3905
+ /** Internal version of public API */
3906
+ LocalArray<MeasureUnit> splitToSingleUnitsImpl(int32_t& outCount, UErrorCode& status) const;
3907
+
3908
+ friend class MeasureUnitImpl;
3909
+
3910
+ // For access to findBySubType
3911
+ friend class number::impl::LongNameHandler;
3912
+ };
3913
+
3914
+ // inline impl of @stable ICU 68 method
3915
+ inline std::pair<LocalArray<MeasureUnit>, int32_t>
3916
+ MeasureUnit::splitToSingleUnits(UErrorCode& status) const {
3917
+ int32_t length;
3918
+ auto array = splitToSingleUnitsImpl(length, status);
3919
+ return std::make_pair(std::move(array), length);
3920
+ }
3921
+
3922
+ U_NAMESPACE_END
3923
+
3924
+ #endif // !UNCONFIG_NO_FORMATTING
3925
+
3926
+ #endif /* U_SHOW_CPLUSPLUS_API */
3927
+
3928
+ #endif // __MEASUREUNIT_H__