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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (368) hide show
  1. package/LICENSE.txt +1445 -0
  2. package/README.md +24 -2
  3. package/files.json +366 -0
  4. package/package.json +18 -4
  5. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/HTMLparser.h +320 -0
  6. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/HTMLtree.h +147 -0
  7. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/SAX.h +204 -0
  8. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/SAX2.h +173 -0
  9. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/c14n.h +128 -0
  10. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/catalog.h +182 -0
  11. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/chvalid.h +230 -0
  12. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/debugXML.h +217 -0
  13. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/dict.h +81 -0
  14. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/encoding.h +233 -0
  15. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/entities.h +151 -0
  16. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/globals.h +529 -0
  17. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/hash.h +236 -0
  18. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/list.h +137 -0
  19. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/nanoftp.h +186 -0
  20. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/nanohttp.h +81 -0
  21. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/parser.h +1265 -0
  22. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/parserInternals.h +662 -0
  23. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/pattern.h +100 -0
  24. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/relaxng.h +218 -0
  25. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/schemasInternals.h +958 -0
  26. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/schematron.h +142 -0
  27. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/threads.h +94 -0
  28. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/tree.h +1314 -0
  29. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/uri.h +94 -0
  30. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/valid.h +448 -0
  31. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xinclude.h +129 -0
  32. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xlink.h +189 -0
  33. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlIO.h +369 -0
  34. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlautomata.h +146 -0
  35. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlerror.h +919 -0
  36. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlexports.h +50 -0
  37. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlmemory.h +228 -0
  38. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlmodule.h +57 -0
  39. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlreader.h +428 -0
  40. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlregexp.h +222 -0
  41. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlsave.h +88 -0
  42. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlschemas.h +246 -0
  43. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlschemastypes.h +152 -0
  44. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlstring.h +140 -0
  45. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlunicode.h +202 -0
  46. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlversion.h +526 -0
  47. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlwriter.h +488 -0
  48. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xpath.h +575 -0
  49. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xpathInternals.h +632 -0
  50. package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xpointer.h +137 -0
  51. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFArray.h +673 -0
  52. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFAttributedString.h +157 -0
  53. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFAttributedStringPriv.h +25 -0
  54. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFAvailability.h +236 -0
  55. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBag.h +97 -0
  56. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBase.h +702 -0
  57. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBigNumber.h +76 -0
  58. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBinaryHeap.h +294 -0
  59. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBitVector.h +49 -0
  60. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBundle.h +349 -0
  61. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBundlePriv.h +334 -0
  62. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBundle_BinaryTypes.h +61 -0
  63. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBurstTrie.h +181 -0
  64. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFByteOrder.h +305 -0
  65. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFCalendar.h +116 -0
  66. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFCalendarPriv.h +52 -0
  67. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFCharacterSet.h +387 -0
  68. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFCharacterSetPriv.h +78 -0
  69. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFConstantKeys.h +128 -0
  70. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFData.h +79 -0
  71. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDate.h +113 -0
  72. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDateComponents.h +92 -0
  73. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDateFormatter.h +193 -0
  74. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDateFormatter_Private.h +31 -0
  75. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDateInterval.h +62 -0
  76. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDateIntervalFormatter.h +96 -0
  77. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDictionary.h +674 -0
  78. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFError.h +183 -0
  79. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFError_Private.h +27 -0
  80. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFKnownLocations.h +42 -0
  81. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFListFormatter.h +32 -0
  82. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFLocale.h +204 -0
  83. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFLocale_Private.h +35 -0
  84. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFLocking.h +124 -0
  85. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFLogUtilities.h +52 -0
  86. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFMachPort.h +53 -0
  87. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFMessagePort.h +66 -0
  88. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFNotificationCenter.h +81 -0
  89. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFNumber.h +129 -0
  90. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFNumberFormatter.h +174 -0
  91. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFNumber_Private.h +30 -0
  92. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFOverflow.h +88 -0
  93. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFPlugIn.h +124 -0
  94. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFPlugInCOM.h +117 -0
  95. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFPreferences.h +130 -0
  96. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFPriv.h +721 -0
  97. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFPropertyList.h +151 -0
  98. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFPropertyList_Private.h +19 -0
  99. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFRegularExpression.h +68 -0
  100. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFRelativeDateTimeFormatter.h +61 -0
  101. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFRunArray.h +57 -0
  102. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFRunLoop.h +203 -0
  103. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFRuntime.h +281 -0
  104. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFSet.h +491 -0
  105. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFSocket.h +220 -0
  106. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStorage.h +296 -0
  107. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStream.h +505 -0
  108. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStreamAbstract.h +181 -0
  109. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStreamPriv.h +126 -0
  110. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFString.h +915 -0
  111. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStringDefaultEncoding.h +45 -0
  112. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStringEncodingConverter.h +82 -0
  113. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStringEncodingConverterExt.h +121 -0
  114. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStringEncodingConverterPriv.h +47 -0
  115. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStringEncodingDatabase.h +23 -0
  116. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStringEncodingExt.h +184 -0
  117. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFString_Private.h +32 -0
  118. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFTargetConditionals.h +284 -0
  119. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFTimeZone.h +98 -0
  120. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFTree.h +330 -0
  121. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFURL.h +1256 -0
  122. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFURLAccess.h +128 -0
  123. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFURLComponents.h +123 -0
  124. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFURLPriv.h +879 -0
  125. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFUUID.h +78 -0
  126. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFUniChar.h +244 -0
  127. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFUnicodeDecomposition.h +35 -0
  128. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFUnicodePrecomposition.h +23 -0
  129. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFUserNotification.h +185 -0
  130. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFUtilities.h +27 -0
  131. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h +105 -0
  132. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForFoundationOnly.h +816 -0
  133. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForSwiftFoundationOnly.h +689 -0
  134. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/module.modulemap +8 -0
  135. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/static-module.map +7 -0
  136. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/CFUniCharBitmapData.h +17 -0
  137. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/CFUniCharBitmapData.inc.h +14707 -0
  138. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/CFUniCharBitmapDataAccess.h +16 -0
  139. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/_CShimsMacros.h +24 -0
  140. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/_CShimsTargetConditionals.h +56 -0
  141. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/_CStdlib.h +169 -0
  142. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/_FoundationCShims.h +32 -0
  143. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/bplist_shims.h +19 -0
  144. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/filemanager_shims.h +156 -0
  145. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/io_shims.h +89 -0
  146. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/module.modulemap +5 -0
  147. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/platform_shims.h +112 -0
  148. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/string_shims.h +52 -0
  149. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/uuid.h +81 -0
  150. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/alphaindex.h +766 -0
  151. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/appendable.h +239 -0
  152. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/basictz.h +248 -0
  153. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/brkiter.h +694 -0
  154. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/bytestream.h +307 -0
  155. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/bytestrie.h +568 -0
  156. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/bytestriebuilder.h +193 -0
  157. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/calendar.h +2609 -0
  158. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/caniter.h +215 -0
  159. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/casemap.h +497 -0
  160. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/char16ptr.h +384 -0
  161. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/chariter.h +734 -0
  162. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/choicfmt.h +601 -0
  163. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/coleitr.h +411 -0
  164. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/coll.h +1387 -0
  165. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/compactdecimalformat.h +196 -0
  166. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/curramt.h +133 -0
  167. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/currpinf.h +274 -0
  168. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/currunit.h +146 -0
  169. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/datefmt.h +968 -0
  170. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dbbi.h +48 -0
  171. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dcfmtsym.h +636 -0
  172. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/decimfmt.h +2233 -0
  173. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/displayoptions.h +270 -0
  174. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/docmain.h +247 -0
  175. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dtfmtsym.h +1055 -0
  176. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dtintrv.h +163 -0
  177. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dtitvfmt.h +1231 -0
  178. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dtitvinf.h +524 -0
  179. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dtptngen.h +676 -0
  180. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dtrule.h +256 -0
  181. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/edits.h +531 -0
  182. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/enumset.h +69 -0
  183. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/errorcode.h +144 -0
  184. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/fieldpos.h +298 -0
  185. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/filteredbrk.h +152 -0
  186. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/fmtable.h +758 -0
  187. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/format.h +316 -0
  188. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/formattednumber.h +215 -0
  189. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/formattedvalue.h +318 -0
  190. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/fpositer.h +124 -0
  191. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/gender.h +122 -0
  192. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/gregocal.h +737 -0
  193. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/icudataver.h +43 -0
  194. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/icuplug.h +391 -0
  195. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/idna.h +333 -0
  196. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/listformatter.h +291 -0
  197. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/localebuilder.h +309 -0
  198. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/localematcher.h +710 -0
  199. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/localpointer.h +609 -0
  200. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/locdspnm.h +211 -0
  201. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/locid.h +1293 -0
  202. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/measfmt.h +501 -0
  203. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/measunit.h +3928 -0
  204. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/measure.h +174 -0
  205. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/messagepattern.h +950 -0
  206. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/module.modulemap +209 -0
  207. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/msgfmt.h +1117 -0
  208. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/normalizer2.h +791 -0
  209. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/normlzr.h +816 -0
  210. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/nounit.h +86 -0
  211. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/numberformatter.h +2862 -0
  212. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/numberrangeformatter.h +802 -0
  213. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/numfmt.h +1299 -0
  214. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/numsys.h +220 -0
  215. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/parseerr.h +94 -0
  216. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/parsepos.h +237 -0
  217. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/platform.h +874 -0
  218. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/plurfmt.h +601 -0
  219. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/plurrule.h +591 -0
  220. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ptypes.h +66 -0
  221. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/putil.h +183 -0
  222. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/rbbi.h +902 -0
  223. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/rbnf.h +1153 -0
  224. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/rbtz.h +373 -0
  225. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/regex.h +1882 -0
  226. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/region.h +229 -0
  227. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/reldatefmt.h +758 -0
  228. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/rep.h +266 -0
  229. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/resbund.h +489 -0
  230. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/schriter.h +187 -0
  231. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/scientificnumberformatter.h +222 -0
  232. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/search.h +580 -0
  233. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/selfmt.h +374 -0
  234. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/simpleformatter.h +414 -0
  235. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/simplenumberformatter.h +326 -0
  236. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/simpletz.h +940 -0
  237. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/smpdtfmt.h +1383 -0
  238. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/sortkey.h +344 -0
  239. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/std_string.h +41 -0
  240. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/strenum.h +281 -0
  241. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/stringoptions.h +190 -0
  242. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/stringpiece.h +354 -0
  243. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/stringtriebuilder.h +426 -0
  244. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/stsearch.h +509 -0
  245. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/symtable.h +119 -0
  246. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tblcoll.h +886 -0
  247. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/timezone.h +1067 -0
  248. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tmunit.h +142 -0
  249. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tmutamt.h +174 -0
  250. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tmutfmt.h +238 -0
  251. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/translit.h +1593 -0
  252. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tzfmt.h +1102 -0
  253. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tznames.h +419 -0
  254. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tzrule.h +820 -0
  255. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tztrans.h +201 -0
  256. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ualoc.h +372 -0
  257. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uameasureformat.h +487 -0
  258. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uameasureunit.h +249 -0
  259. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uatimeunitformat.h +377 -0
  260. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uatimezone.h +114 -0
  261. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ubidi.h +2368 -0
  262. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ubiditransform.h +326 -0
  263. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ubrk.h +684 -0
  264. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucal.h +1825 -0
  265. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucasemap.h +388 -0
  266. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucat.h +160 -0
  267. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uchar.h +4410 -0
  268. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucharstrie.h +623 -0
  269. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucharstriebuilder.h +193 -0
  270. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uchriter.h +393 -0
  271. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uclean.h +262 -0
  272. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucnv.h +2053 -0
  273. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucnv_cb.h +164 -0
  274. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucnv_err.h +465 -0
  275. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucnvsel.h +193 -0
  276. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucol.h +1649 -0
  277. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucoleitr.h +344 -0
  278. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uconfig.h +501 -0
  279. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucpmap.h +158 -0
  280. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucptrie.h +645 -0
  281. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucsdet.h +426 -0
  282. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucurr.h +466 -0
  283. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udat.h +1767 -0
  284. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udata.h +454 -0
  285. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udateintervalformat.h +458 -0
  286. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udatintv.h +146 -0
  287. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udatpg.h +806 -0
  288. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udisplaycontext.h +233 -0
  289. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udisplayoptions.h +321 -0
  290. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uenum.h +209 -0
  291. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ufieldpositer.h +123 -0
  292. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uformattable.h +290 -0
  293. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uformattednumber.h +224 -0
  294. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uformattedvalue.h +445 -0
  295. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ugender.h +86 -0
  296. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uidna.h +794 -0
  297. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uiter.h +709 -0
  298. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uldnames.h +307 -0
  299. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ulistformatter.h +333 -0
  300. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uloc.h +1437 -0
  301. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ulocale.h +226 -0
  302. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ulocbuilder.h +437 -0
  303. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ulocdata.h +299 -0
  304. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/umachine.h +491 -0
  305. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/umisc.h +62 -0
  306. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/umsg.h +628 -0
  307. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/umutablecptrie.h +240 -0
  308. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unifilt.h +136 -0
  309. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unifunct.h +132 -0
  310. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unimatch.h +168 -0
  311. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unirepl.h +103 -0
  312. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uniset.h +1909 -0
  313. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unistr.h +5095 -0
  314. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unorm.h +476 -0
  315. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unorm2.h +626 -0
  316. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unum.h +1524 -0
  317. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unumberformatter.h +576 -0
  318. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unumberoptions.h +173 -0
  319. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unumberrangeformatter.h +471 -0
  320. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unumsys.h +176 -0
  321. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uobject.h +324 -0
  322. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uplrule.h +82 -0
  323. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/upluralrules.h +263 -0
  324. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/urbtok.h +276 -0
  325. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uregex.h +1617 -0
  326. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uregion.h +252 -0
  327. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ureldatefmt.h +510 -0
  328. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/urename.h +4026 -0
  329. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/urep.h +157 -0
  330. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ures.h +912 -0
  331. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uscript.h +742 -0
  332. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/usearch.h +911 -0
  333. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uset.h +1898 -0
  334. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/usetiter.h +323 -0
  335. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ushape.h +476 -0
  336. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/usimplenumberformatter.h +297 -0
  337. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uspoof.h +1852 -0
  338. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/usprep.h +274 -0
  339. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ustdio.h +1021 -0
  340. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ustream.h +69 -0
  341. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ustring.h +1719 -0
  342. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ustringtrie.h +97 -0
  343. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utext.h +1613 -0
  344. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utf.h +225 -0
  345. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utf16.h +740 -0
  346. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utf32.h +25 -0
  347. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utf8.h +882 -0
  348. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utf_old.h +1207 -0
  349. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utmscale.h +490 -0
  350. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utrace.h +506 -0
  351. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utrans.h +660 -0
  352. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utypes.h +826 -0
  353. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uvernum.h +191 -0
  354. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uversion.h +230 -0
  355. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/vtzone.h +471 -0
  356. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Foundation.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  357. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/FoundationEssentials.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  358. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/FoundationInternationalization.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  359. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/FoundationXML.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  360. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_FoundationCollections.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
  361. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libCoreFoundation.a +0 -0
  362. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundation.a +0 -0
  363. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundationEssentials.a +0 -0
  364. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundationInternationalization.a +0 -0
  365. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundationXML.a +0 -0
  366. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/lib_CFXMLInterface.a +0 -0
  367. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCShims.a +0 -0
  368. package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCollections.a +0 -0
@@ -0,0 +1,1231 @@
1
+ // © 2016 and later: Unicode, Inc. and others.
2
+ // License & terms of use: http://www.unicode.org/copyright.html
3
+ /********************************************************************************
4
+ * Copyright (C) 2008-2016, International Business Machines Corporation and
5
+ * others. All Rights Reserved.
6
+ *******************************************************************************
7
+ *
8
+ * File DTITVFMT.H
9
+ *
10
+ *******************************************************************************
11
+ */
12
+
13
+ #ifndef __DTITVFMT_H__
14
+ #define __DTITVFMT_H__
15
+
16
+
17
+ #include <_foundation_unicode/utypes.h>
18
+
19
+ #if U_SHOW_CPLUSPLUS_API
20
+
21
+ /**
22
+ * \file
23
+ * \brief C++ API: Format and parse date interval in a language-independent manner.
24
+ */
25
+
26
+ #if !UCONFIG_NO_FORMATTING
27
+
28
+ #include <_foundation_unicode/ucal.h>
29
+ #include <_foundation_unicode/smpdtfmt.h>
30
+ #include <_foundation_unicode/dtintrv.h>
31
+ #include <_foundation_unicode/dtitvinf.h>
32
+ #include <_foundation_unicode/dtptngen.h>
33
+ #include <_foundation_unicode/formattedvalue.h>
34
+ #include <_foundation_unicode/udisplaycontext.h>
35
+ #if APPLE_ICU_CHANGES
36
+ // rdar://
37
+ // Apple-specific
38
+ #include <_foundation_unicode/udateintervalformat.h>
39
+ #endif // APPLE_ICU_CHANGES
40
+
41
+ U_NAMESPACE_BEGIN
42
+
43
+
44
+ class FormattedDateIntervalData;
45
+ class DateIntervalFormat;
46
+
47
+ /**
48
+ * An immutable class containing the result of a date interval formatting operation.
49
+ *
50
+ * Instances of this class are immutable and thread-safe.
51
+ *
52
+ * When calling nextPosition():
53
+ * The fields are returned from left to right. The special field category
54
+ * UFIELD_CATEGORY_DATE_INTERVAL_SPAN is used to indicate which datetime
55
+ * primitives came from which arguments: 0 means fromCalendar, and 1 means
56
+ * toCalendar. The span category will always occur before the
57
+ * corresponding fields in UFIELD_CATEGORY_DATE
58
+ * in the nextPosition() iterator.
59
+ *
60
+ * Not intended for public subclassing.
61
+ *
62
+ * @stable ICU 64
63
+ */
64
+ class U_I18N_API FormattedDateInterval : public UMemory, public FormattedValue {
65
+ public:
66
+ /**
67
+ * Default constructor; makes an empty FormattedDateInterval.
68
+ * @stable ICU 64
69
+ */
70
+ FormattedDateInterval() : fData(nullptr), fErrorCode(U_INVALID_STATE_ERROR) {}
71
+
72
+ /**
73
+ * Move constructor: Leaves the source FormattedDateInterval in an undefined state.
74
+ * @stable ICU 64
75
+ */
76
+ FormattedDateInterval(FormattedDateInterval&& src) noexcept;
77
+
78
+ /**
79
+ * Destruct an instance of FormattedDateInterval.
80
+ * @stable ICU 64
81
+ */
82
+ virtual ~FormattedDateInterval() override;
83
+
84
+ /** Copying not supported; use move constructor instead. */
85
+ FormattedDateInterval(const FormattedDateInterval&) = delete;
86
+
87
+ /** Copying not supported; use move assignment instead. */
88
+ FormattedDateInterval& operator=(const FormattedDateInterval&) = delete;
89
+
90
+ /**
91
+ * Move assignment: Leaves the source FormattedDateInterval in an undefined state.
92
+ * @stable ICU 64
93
+ */
94
+ FormattedDateInterval& operator=(FormattedDateInterval&& src) noexcept;
95
+
96
+ /** @copydoc FormattedValue::toString() */
97
+ UnicodeString toString(UErrorCode& status) const override;
98
+
99
+ /** @copydoc FormattedValue::toTempString() */
100
+ UnicodeString toTempString(UErrorCode& status) const override;
101
+
102
+ /** @copydoc FormattedValue::appendTo() */
103
+ Appendable &appendTo(Appendable& appendable, UErrorCode& status) const override;
104
+
105
+ /** @copydoc FormattedValue::nextPosition() */
106
+ UBool nextPosition(ConstrainedFieldPosition& cfpos, UErrorCode& status) const override;
107
+
108
+ private:
109
+ FormattedDateIntervalData *fData;
110
+ UErrorCode fErrorCode;
111
+ explicit FormattedDateInterval(FormattedDateIntervalData *results)
112
+ : fData(results), fErrorCode(U_ZERO_ERROR) {}
113
+ explicit FormattedDateInterval(UErrorCode errorCode)
114
+ : fData(nullptr), fErrorCode(errorCode) {}
115
+ friend class DateIntervalFormat;
116
+ };
117
+
118
+
119
+ /**
120
+ * DateIntervalFormat is a class for formatting and parsing date
121
+ * intervals in a language-independent manner.
122
+ * Only formatting is supported, parsing is not supported.
123
+ *
124
+ * <P>
125
+ * Date interval means from one date to another date,
126
+ * for example, from "Jan 11, 2008" to "Jan 18, 2008".
127
+ * We introduced class DateInterval to represent it.
128
+ * DateInterval is a pair of UDate, which is
129
+ * the standard milliseconds since 24:00 GMT, Jan 1, 1970.
130
+ *
131
+ * <P>
132
+ * DateIntervalFormat formats a DateInterval into
133
+ * text as compactly as possible.
134
+ * For example, the date interval format from "Jan 11, 2008" to "Jan 18,. 2008"
135
+ * is "Jan 11-18, 2008" for English.
136
+ * And it parses text into DateInterval,
137
+ * although initially, parsing is not supported.
138
+ *
139
+ * <P>
140
+ * There is no structural information in date time patterns.
141
+ * For any punctuations and string literals inside a date time pattern,
142
+ * we do not know whether it is just a separator, or a prefix, or a suffix.
143
+ * Without such information, so, it is difficult to generate a sub-pattern
144
+ * (or super-pattern) by algorithm.
145
+ * So, formatting a DateInterval is pattern-driven. It is very
146
+ * similar to formatting in SimpleDateFormat.
147
+ * We introduce class DateIntervalInfo to save date interval
148
+ * patterns, similar to date time pattern in SimpleDateFormat.
149
+ *
150
+ * <P>
151
+ * Logically, the interval patterns are mappings
152
+ * from (skeleton, the_largest_different_calendar_field)
153
+ * to (date_interval_pattern).
154
+ *
155
+ * <P>
156
+ * A skeleton
157
+ * <ol>
158
+ * <li>
159
+ * only keeps the field pattern letter and ignores all other parts
160
+ * in a pattern, such as space, punctuations, and string literals.
161
+ * </li>
162
+ * <li>
163
+ * hides the order of fields.
164
+ * </li>
165
+ * <li>
166
+ * might hide a field's pattern letter length.
167
+ * </li>
168
+ * </ol>
169
+ *
170
+ * For those non-digit calendar fields, the pattern letter length is
171
+ * important, such as MMM, MMMM, and MMMMM; EEE and EEEE,
172
+ * and the field's pattern letter length is honored.
173
+ *
174
+ * For the digit calendar fields, such as M or MM, d or dd, yy or yyyy,
175
+ * the field pattern length is ignored and the best match, which is defined
176
+ * in date time patterns, will be returned without honor the field pattern
177
+ * letter length in skeleton.
178
+ *
179
+ * <P>
180
+ * The calendar fields we support for interval formatting are:
181
+ * year, month, date, day-of-week, am-pm, hour, hour-of-day, minute, second,
182
+ * and millisecond.
183
+ * (though we do not currently have specific intervalFormat date for skeletons
184
+ * with seconds and millisecond).
185
+ * Those calendar fields can be defined in the following order:
186
+ * year > month > date > hour (in day) > minute > second > millisecond
187
+ *
188
+ * The largest different calendar fields between 2 calendars is the
189
+ * first different calendar field in above order.
190
+ *
191
+ * For example: the largest different calendar fields between "Jan 10, 2007"
192
+ * and "Feb 20, 2008" is year.
193
+ *
194
+ * <P>
195
+ * For other calendar fields, the compact interval formatting is not
196
+ * supported. And the interval format will be fall back to fall-back
197
+ * patterns, which is mostly "{date0} - {date1}".
198
+ *
199
+ * <P>
200
+ * There is a set of pre-defined static skeleton strings.
201
+ * There are pre-defined interval patterns for those pre-defined skeletons
202
+ * in locales' resource files.
203
+ * For example, for a skeleton UDAT_YEAR_ABBR_MONTH_DAY, which is &quot;yMMMd&quot;,
204
+ * in en_US, if the largest different calendar field between date1 and date2
205
+ * is &quot;year&quot;, the date interval pattern is &quot;MMM d, yyyy - MMM d, yyyy&quot;,
206
+ * such as &quot;Jan 10, 2007 - Jan 10, 2008&quot;.
207
+ * If the largest different calendar field between date1 and date2 is &quot;month&quot;,
208
+ * the date interval pattern is &quot;MMM d - MMM d, yyyy&quot;,
209
+ * such as &quot;Jan 10 - Feb 10, 2007&quot;.
210
+ * If the largest different calendar field between date1 and date2 is &quot;day&quot;,
211
+ * the date interval pattern is &quot;MMM d-d, yyyy&quot;, such as &quot;Jan 10-20, 2007&quot;.
212
+ *
213
+ * For date skeleton, the interval patterns when year, or month, or date is
214
+ * different are defined in resource files.
215
+ * For time skeleton, the interval patterns when am/pm, or hour, or minute is
216
+ * different are defined in resource files.
217
+ *
218
+ * <P>
219
+ * If a skeleton is not found in a locale's DateIntervalInfo, which means
220
+ * the interval patterns for the skeleton is not defined in resource file,
221
+ * the interval pattern will falls back to the interval "fallback" pattern
222
+ * defined in resource file.
223
+ * If the interval "fallback" pattern is not defined, the default fall-back
224
+ * is "{date0} - {data1}".
225
+ *
226
+ * <P>
227
+ * For the combination of date and time,
228
+ * The rule to generate interval patterns are:
229
+ * <ol>
230
+ * <li>
231
+ * when the year, month, or day differs, falls back to fall-back
232
+ * interval pattern, which mostly is the concatenate the two original
233
+ * expressions with a separator between,
234
+ * For example, interval pattern from "Jan 10, 2007 10:10 am"
235
+ * to "Jan 11, 2007 10:10am" is
236
+ * "Jan 10, 2007 10:10 am - Jan 11, 2007 10:10am"
237
+ * </li>
238
+ * <li>
239
+ * otherwise, present the date followed by the range expression
240
+ * for the time.
241
+ * For example, interval pattern from "Jan 10, 2007 10:10 am"
242
+ * to "Jan 10, 2007 11:10am" is "Jan 10, 2007 10:10 am - 11:10am"
243
+ * </li>
244
+ * </ol>
245
+ *
246
+ *
247
+ * <P>
248
+ * If two dates are the same, the interval pattern is the single date pattern.
249
+ * For example, interval pattern from "Jan 10, 2007" to "Jan 10, 2007" is
250
+ * "Jan 10, 2007".
251
+ *
252
+ * Or if the presenting fields between 2 dates have the exact same values,
253
+ * the interval pattern is the single date pattern.
254
+ * For example, if user only requests year and month,
255
+ * the interval pattern from "Jan 10, 2007" to "Jan 20, 2007" is "Jan 2007".
256
+ *
257
+ * <P>
258
+ * DateIntervalFormat needs the following information for correct
259
+ * formatting: time zone, calendar type, pattern, date format symbols,
260
+ * and date interval patterns.
261
+ * It can be instantiated in 2 ways:
262
+ * <ol>
263
+ * <li>
264
+ * create an instance using default or given locale plus given skeleton.
265
+ * Users are encouraged to created date interval formatter this way and
266
+ * to use the pre-defined skeleton macros, such as
267
+ * UDAT_YEAR_NUM_MONTH, which consists the calendar fields and
268
+ * the format style.
269
+ * </li>
270
+ * <li>
271
+ * create an instance using default or given locale plus given skeleton
272
+ * plus a given DateIntervalInfo.
273
+ * This factory method is for powerful users who want to provide their own
274
+ * interval patterns.
275
+ * Locale provides the timezone, calendar, and format symbols information.
276
+ * Local plus skeleton provides full pattern information.
277
+ * DateIntervalInfo provides the date interval patterns.
278
+ * </li>
279
+ * </ol>
280
+ *
281
+ * <P>
282
+ * For the calendar field pattern letter, such as G, y, M, d, a, h, H, m, s etc.
283
+ * DateIntervalFormat uses the same syntax as that of
284
+ * DateTime format.
285
+ *
286
+ * <P>
287
+ * Code Sample: general usage
288
+ * <pre>
289
+ * \code
290
+ * // the date interval object which the DateIntervalFormat formats on
291
+ * // and parses into
292
+ * DateInterval* dtInterval = new DateInterval(1000*3600*24, 1000*3600*24*2);
293
+ * UErrorCode status = U_ZERO_ERROR;
294
+ * DateIntervalFormat* dtIntervalFmt = DateIntervalFormat::createInstance(
295
+ * UDAT_YEAR_MONTH_DAY,
296
+ * Locale("en", "GB", ""), status);
297
+ * UnicodeUnicodeString dateIntervalString;
298
+ * FieldPosition pos = 0;
299
+ * // formatting
300
+ * dtIntervalFmt->format(dtInterval, dateIntervalUnicodeString, pos, status);
301
+ * delete dtIntervalFmt;
302
+ * \endcode
303
+ * </pre>
304
+ */
305
+ class U_I18N_API DateIntervalFormat : public Format {
306
+ public:
307
+
308
+ /**
309
+ * Construct a DateIntervalFormat from skeleton and the default locale.
310
+ *
311
+ * This is a convenient override of
312
+ * createInstance(const UnicodeString& skeleton, const Locale& locale,
313
+ * UErrorCode&)
314
+ * with the value of locale as default locale.
315
+ *
316
+ * @param skeleton the skeleton on which interval format based.
317
+ * @param status output param set to success/failure code on exit
318
+ * @return a date time interval formatter which the caller owns.
319
+ * @stable ICU 4.0
320
+ */
321
+ static DateIntervalFormat* U_EXPORT2 createInstance(
322
+ const UnicodeString& skeleton,
323
+ UErrorCode& status);
324
+
325
+ /**
326
+ * Construct a DateIntervalFormat from skeleton and a given locale.
327
+ * <P>
328
+ * In this factory method,
329
+ * the date interval pattern information is load from resource files.
330
+ * Users are encouraged to created date interval formatter this way and
331
+ * to use the pre-defined skeleton macros.
332
+ *
333
+ * <P>
334
+ * There are pre-defined skeletons (defined in udate.h) having predefined
335
+ * interval patterns in resource files.
336
+ * Users are encouraged to use those macros.
337
+ * For example:
338
+ * DateIntervalFormat::createInstance(UDAT_MONTH_DAY, status)
339
+ *
340
+ * The given Locale provides the interval patterns.
341
+ * For example, for en_GB, if skeleton is UDAT_YEAR_ABBR_MONTH_WEEKDAY_DAY,
342
+ * which is "yMMMEEEd",
343
+ * the interval patterns defined in resource file to above skeleton are:
344
+ * "EEE, d MMM, yyyy - EEE, d MMM, yyyy" for year differs,
345
+ * "EEE, d MMM - EEE, d MMM, yyyy" for month differs,
346
+ * "EEE, d - EEE, d MMM, yyyy" for day differs,
347
+ * @param skeleton the skeleton on which the interval format is based.
348
+ * @param locale the given locale
349
+ * @param status output param set to success/failure code on exit
350
+ * @return a date time interval formatter which the caller owns.
351
+ * @stable ICU 4.0
352
+ */
353
+
354
+ static DateIntervalFormat* U_EXPORT2 createInstance(
355
+ const UnicodeString& skeleton,
356
+ const Locale& locale,
357
+ UErrorCode& status);
358
+
359
+ /**
360
+ * Construct a DateIntervalFormat from skeleton
361
+ * DateIntervalInfo, and default locale.
362
+ *
363
+ * This is a convenient override of
364
+ * createInstance(const UnicodeString& skeleton, const Locale& locale,
365
+ * const DateIntervalInfo& dtitvinf, UErrorCode&)
366
+ * with the locale value as default locale.
367
+ *
368
+ * @param skeleton the skeleton on which interval format based.
369
+ * @param dtitvinf the DateIntervalInfo object.
370
+ * @param status output param set to success/failure code on exit
371
+ * @return a date time interval formatter which the caller owns.
372
+ * @stable ICU 4.0
373
+ */
374
+ static DateIntervalFormat* U_EXPORT2 createInstance(
375
+ const UnicodeString& skeleton,
376
+ const DateIntervalInfo& dtitvinf,
377
+ UErrorCode& status);
378
+
379
+ /**
380
+ * Construct a DateIntervalFormat from skeleton
381
+ * a DateIntervalInfo, and the given locale.
382
+ *
383
+ * <P>
384
+ * In this factory method, user provides its own date interval pattern
385
+ * information, instead of using those pre-defined data in resource file.
386
+ * This factory method is for powerful users who want to provide their own
387
+ * interval patterns.
388
+ * <P>
389
+ * There are pre-defined skeletons (defined in udate.h) having predefined
390
+ * interval patterns in resource files.
391
+ * Users are encouraged to use those macros.
392
+ * For example:
393
+ * DateIntervalFormat::createInstance(UDAT_MONTH_DAY, status)
394
+ *
395
+ * The DateIntervalInfo provides the interval patterns.
396
+ * and the DateIntervalInfo ownership remains to the caller.
397
+ *
398
+ * User are encouraged to set default interval pattern in DateIntervalInfo
399
+ * as well, if they want to set other interval patterns ( instead of
400
+ * reading the interval patterns from resource files).
401
+ * When the corresponding interval pattern for a largest calendar different
402
+ * field is not found ( if user not set it ), interval format fallback to
403
+ * the default interval pattern.
404
+ * If user does not provide default interval pattern, it fallback to
405
+ * "{date0} - {date1}"
406
+ *
407
+ * @param skeleton the skeleton on which interval format based.
408
+ * @param locale the given locale
409
+ * @param dtitvinf the DateIntervalInfo object.
410
+ * @param status output param set to success/failure code on exit
411
+ * @return a date time interval formatter which the caller owns.
412
+ * @stable ICU 4.0
413
+ */
414
+ static DateIntervalFormat* U_EXPORT2 createInstance(
415
+ const UnicodeString& skeleton,
416
+ const Locale& locale,
417
+ const DateIntervalInfo& dtitvinf,
418
+ UErrorCode& status);
419
+
420
+ /**
421
+ * Destructor.
422
+ * @stable ICU 4.0
423
+ */
424
+ virtual ~DateIntervalFormat();
425
+
426
+ /**
427
+ * Clone this Format object polymorphically. The caller owns the result and
428
+ * should delete it when done.
429
+ * @return A copy of the object.
430
+ * @stable ICU 4.0
431
+ */
432
+ virtual DateIntervalFormat* clone() const override;
433
+
434
+ /**
435
+ * Return true if the given Format objects are semantically equal. Objects
436
+ * of different subclasses are considered unequal.
437
+ * @param other the object to be compared with.
438
+ * @return true if the given Format objects are semantically equal.
439
+ * @stable ICU 4.0
440
+ */
441
+ virtual bool operator==(const Format& other) const override;
442
+
443
+ /**
444
+ * Return true if the given Format objects are not semantically equal.
445
+ * Objects of different subclasses are considered unequal.
446
+ * @param other the object to be compared with.
447
+ * @return true if the given Format objects are not semantically equal.
448
+ * @stable ICU 4.0
449
+ */
450
+ bool operator!=(const Format& other) const;
451
+
452
+
453
+ using Format::format;
454
+
455
+ /**
456
+ * Format an object to produce a string. This method handles Formattable
457
+ * objects with a DateInterval type.
458
+ * If a the Formattable object type is not a DateInterval,
459
+ * then it returns a failing UErrorCode.
460
+ *
461
+ * @param obj The object to format.
462
+ * Must be a DateInterval.
463
+ * @param appendTo Output parameter to receive result.
464
+ * Result is appended to existing contents.
465
+ * @param fieldPosition On input: an alignment field, if desired.
466
+ * On output: the offsets of the alignment field.
467
+ * There may be multiple instances of a given field type
468
+ * in an interval format; in this case the fieldPosition
469
+ * offsets refer to the first instance.
470
+ * @param status Output param filled with success/failure status.
471
+ * @return Reference to 'appendTo' parameter.
472
+ * @stable ICU 4.0
473
+ */
474
+ virtual UnicodeString& format(const Formattable& obj,
475
+ UnicodeString& appendTo,
476
+ FieldPosition& fieldPosition,
477
+ UErrorCode& status) const override;
478
+
479
+
480
+
481
+ /**
482
+ * Format a DateInterval to produce a string.
483
+ *
484
+ * @param dtInterval DateInterval to be formatted.
485
+ * @param appendTo Output parameter to receive result.
486
+ * Result is appended to existing contents.
487
+ * @param fieldPosition On input: an alignment field, if desired.
488
+ * On output: the offsets of the alignment field.
489
+ * There may be multiple instances of a given field type
490
+ * in an interval format; in this case the fieldPosition
491
+ * offsets refer to the first instance.
492
+ * @param status Output param filled with success/failure status.
493
+ * @return Reference to 'appendTo' parameter.
494
+ * @stable ICU 4.0
495
+ */
496
+ UnicodeString& format(const DateInterval* dtInterval,
497
+ UnicodeString& appendTo,
498
+ FieldPosition& fieldPosition,
499
+ UErrorCode& status) const ;
500
+
501
+ /**
502
+ * Format a DateInterval to produce a FormattedDateInterval.
503
+ *
504
+ * The FormattedDateInterval exposes field information about the formatted string.
505
+ *
506
+ * @param dtInterval DateInterval to be formatted.
507
+ * @param status Set if an error occurs.
508
+ * @return A FormattedDateInterval containing the format result.
509
+ * @stable ICU 64
510
+ */
511
+ FormattedDateInterval formatToValue(
512
+ const DateInterval& dtInterval,
513
+ UErrorCode& status) const;
514
+
515
+ /**
516
+ * Format 2 Calendars to produce a string.
517
+ *
518
+ * Note: "fromCalendar" and "toCalendar" are not const,
519
+ * since calendar is not const in SimpleDateFormat::format(Calendar&),
520
+ *
521
+ * @param fromCalendar calendar set to the from date in date interval
522
+ * to be formatted into date interval string
523
+ * @param toCalendar calendar set to the to date in date interval
524
+ * to be formatted into date interval string
525
+ * @param appendTo Output parameter to receive result.
526
+ * Result is appended to existing contents.
527
+ * @param fieldPosition On input: an alignment field, if desired.
528
+ * On output: the offsets of the alignment field.
529
+ * There may be multiple instances of a given field type
530
+ * in an interval format; in this case the fieldPosition
531
+ * offsets refer to the first instance.
532
+ * @param status Output param filled with success/failure status.
533
+ * Caller needs to make sure it is SUCCESS
534
+ * at the function entrance
535
+ * @return Reference to 'appendTo' parameter.
536
+ * @stable ICU 4.0
537
+ */
538
+ UnicodeString& format(Calendar& fromCalendar,
539
+ Calendar& toCalendar,
540
+ UnicodeString& appendTo,
541
+ FieldPosition& fieldPosition,
542
+ UErrorCode& status) const ;
543
+
544
+ /**
545
+ * Format 2 Calendars to produce a FormattedDateInterval.
546
+ *
547
+ * The FormattedDateInterval exposes field information about the formatted string.
548
+ *
549
+ * Note: "fromCalendar" and "toCalendar" are not const,
550
+ * since calendar is not const in SimpleDateFormat::format(Calendar&),
551
+ *
552
+ * @param fromCalendar calendar set to the from date in date interval
553
+ * to be formatted into date interval string
554
+ * @param toCalendar calendar set to the to date in date interval
555
+ * to be formatted into date interval string
556
+ * @param status Set if an error occurs.
557
+ * @return A FormattedDateInterval containing the format result.
558
+ * @stable ICU 64
559
+ */
560
+ FormattedDateInterval formatToValue(
561
+ Calendar& fromCalendar,
562
+ Calendar& toCalendar,
563
+ UErrorCode& status) const;
564
+
565
+ /**
566
+ * Date interval parsing is not supported. Please do not use.
567
+ * <P>
568
+ * This method should handle parsing of
569
+ * date time interval strings into Formattable objects with
570
+ * DateInterval type, which is a pair of UDate.
571
+ * <P>
572
+ * Before calling, set parse_pos.index to the offset you want to start
573
+ * parsing at in the source. After calling, parse_pos.index is the end of
574
+ * the text you parsed. If error occurs, index is unchanged.
575
+ * <P>
576
+ * When parsing, leading whitespace is discarded (with a successful parse),
577
+ * while trailing whitespace is left as is.
578
+ * <P>
579
+ * See Format::parseObject() for more.
580
+ *
581
+ * @param source The string to be parsed into an object.
582
+ * @param result Formattable to be set to the parse result.
583
+ * If parse fails, return contents are undefined.
584
+ * @param parse_pos The position to start parsing at. Since no parsing
585
+ * is supported, upon return this param is unchanged.
586
+ * @return A newly created Formattable* object, or nullptr
587
+ * on failure. The caller owns this and should
588
+ * delete it when done.
589
+ * @internal ICU 4.0
590
+ */
591
+ virtual void parseObject(const UnicodeString& source,
592
+ Formattable& result,
593
+ ParsePosition& parse_pos) const override;
594
+
595
+
596
+ /**
597
+ * Gets the date time interval patterns.
598
+ * @return the date time interval patterns associated with
599
+ * this date interval formatter.
600
+ * @stable ICU 4.0
601
+ */
602
+ const DateIntervalInfo* getDateIntervalInfo() const;
603
+
604
+ /**
605
+ * Set the date time interval patterns.
606
+ * @param newIntervalPatterns the given interval patterns to copy.
607
+ * @param status output param set to success/failure code on exit
608
+ * @stable ICU 4.0
609
+ */
610
+ void setDateIntervalInfo(const DateIntervalInfo& newIntervalPatterns,
611
+ UErrorCode& status);
612
+
613
+
614
+ /**
615
+ * Gets the date formatter. The DateIntervalFormat instance continues to own
616
+ * the returned DateFormatter object, and will use and possibly modify it
617
+ * during format operations. In a multi-threaded environment, the returned
618
+ * DateFormat can only be used if it is certain that no other threads are
619
+ * concurrently using this DateIntervalFormatter, even for nominally const
620
+ * functions.
621
+ *
622
+ * @return the date formatter associated with this date interval formatter.
623
+ * @stable ICU 4.0
624
+ */
625
+ const DateFormat* getDateFormat() const;
626
+
627
+ /**
628
+ * Returns a reference to the TimeZone used by this DateIntervalFormat's calendar.
629
+ * @return the time zone associated with the calendar of DateIntervalFormat.
630
+ * @stable ICU 4.8
631
+ */
632
+ virtual const TimeZone& getTimeZone() const;
633
+
634
+ /**
635
+ * Sets the time zone for the calendar used by this DateIntervalFormat object. The
636
+ * caller no longer owns the TimeZone object and should not delete it after this call.
637
+ * @param zoneToAdopt the TimeZone to be adopted.
638
+ * @stable ICU 4.8
639
+ */
640
+ virtual void adoptTimeZone(TimeZone* zoneToAdopt);
641
+
642
+ /**
643
+ * Sets the time zone for the calendar used by this DateIntervalFormat object.
644
+ * @param zone the new time zone.
645
+ * @stable ICU 4.8
646
+ */
647
+ virtual void setTimeZone(const TimeZone& zone);
648
+
649
+ /**
650
+ * Set a particular UDisplayContext value in the formatter, such as
651
+ * UDISPCTX_CAPITALIZATION_FOR_STANDALONE. This causes the formatted
652
+ * result to be capitalized appropriately for the context in which
653
+ * it is intended to be used, considering both the locale and the
654
+ * type of field at the beginning of the formatted result.
655
+ * @param value The UDisplayContext value to set.
656
+ * @param status Input/output status. If at entry this indicates a failure
657
+ * status, the function will do nothing; otherwise this will be
658
+ * updated with any new status from the function.
659
+ * @stable ICU 68
660
+ */
661
+ virtual void setContext(UDisplayContext value, UErrorCode& status);
662
+
663
+ /**
664
+ * Get the formatter's UDisplayContext value for the specified UDisplayContextType,
665
+ * such as UDISPCTX_TYPE_CAPITALIZATION.
666
+ * @param type The UDisplayContextType whose value to return
667
+ * @param status Input/output status. If at entry this indicates a failure
668
+ * status, the function will do nothing; otherwise this will be
669
+ * updated with any new status from the function.
670
+ * @return The UDisplayContextValue for the specified type.
671
+ * @stable ICU 68
672
+ */
673
+ virtual UDisplayContext getContext(UDisplayContextType type, UErrorCode& status) const;
674
+
675
+ #if APPLE_ICU_CHANGES
676
+ // rdar://
677
+ /**
678
+ * Change attributes for the DateIntervalFormat object.
679
+ * @param attr
680
+ * The attribute to change.
681
+ * @param value
682
+ * The new value for the attribute.
683
+ * @param status
684
+ * A UErrorCode to receive any errors.
685
+ * @internal
686
+ */
687
+ virtual void setAttribute(UDateIntervalFormatAttribute attr,
688
+ UDateIntervalFormatAttributeValue value,
689
+ UErrorCode &status);
690
+ #endif // APPLE_ICU_CHANGES
691
+
692
+ /**
693
+ * Return the class ID for this class. This is useful only for comparing to
694
+ * a return value from getDynamicClassID(). For example:
695
+ * <pre>
696
+ * . Base* polymorphic_pointer = createPolymorphicObject();
697
+ * . if (polymorphic_pointer->getDynamicClassID() ==
698
+ * . erived::getStaticClassID()) ...
699
+ * </pre>
700
+ * @return The class ID for all objects of this class.
701
+ * @stable ICU 4.0
702
+ */
703
+ static UClassID U_EXPORT2 getStaticClassID();
704
+
705
+ /**
706
+ * Returns a unique class ID POLYMORPHICALLY. Pure virtual override. This
707
+ * method is to implement a simple version of RTTI, since not all C++
708
+ * compilers support genuine RTTI. Polymorphic operator==() and clone()
709
+ * methods call this method.
710
+ *
711
+ * @return The class ID for this object. All objects of a
712
+ * given class have the same class ID. Objects of
713
+ * other classes have different class IDs.
714
+ * @stable ICU 4.0
715
+ */
716
+ virtual UClassID getDynamicClassID() const override;
717
+
718
+ protected:
719
+
720
+ /**
721
+ * Copy constructor.
722
+ * @stable ICU 4.0
723
+ */
724
+ DateIntervalFormat(const DateIntervalFormat&);
725
+
726
+ /**
727
+ * Assignment operator.
728
+ * @stable ICU 4.0
729
+ */
730
+ DateIntervalFormat& operator=(const DateIntervalFormat&);
731
+
732
+ private:
733
+
734
+ /*
735
+ * This is for ICU internal use only. Please do not use.
736
+ * Save the interval pattern information.
737
+ * Interval pattern consists of 2 single date patterns and the separator.
738
+ * For example, interval pattern "MMM d - MMM d, yyyy" consists
739
+ * a single date pattern "MMM d", another single date pattern "MMM d, yyyy",
740
+ * and a separator "-".
741
+ * The pattern is divided into 2 parts. For above example,
742
+ * the first part is "MMM d - ", and the second part is "MMM d, yyyy".
743
+ * Also, the first date appears in an interval pattern could be
744
+ * the earlier date or the later date.
745
+ * And such information is saved in the interval pattern as well.
746
+ */
747
+ struct PatternInfo {
748
+ UnicodeString firstPart;
749
+ UnicodeString secondPart;
750
+ /**
751
+ * Whether the first date in interval pattern is later date or not.
752
+ * Fallback format set the default ordering.
753
+ * And for a particular interval pattern, the order can be
754
+ * overridden by prefixing the interval pattern with "latestFirst:" or
755
+ * "earliestFirst:"
756
+ * For example, given 2 date, Jan 10, 2007 to Feb 10, 2007.
757
+ * if the fallback format is "{0} - {1}",
758
+ * and the pattern is "d MMM - d MMM yyyy", the interval format is
759
+ * "10 Jan - 10 Feb, 2007".
760
+ * If the pattern is "latestFirst:d MMM - d MMM yyyy",
761
+ * the interval format is "10 Feb - 10 Jan, 2007"
762
+ */
763
+ UBool laterDateFirst;
764
+ };
765
+
766
+
767
+ /**
768
+ * default constructor
769
+ * @internal (private)
770
+ */
771
+ DateIntervalFormat();
772
+
773
+ /**
774
+ * Construct a DateIntervalFormat from DateFormat,
775
+ * a DateIntervalInfo, and skeleton.
776
+ * DateFormat provides the timezone, calendar,
777
+ * full pattern, and date format symbols information.
778
+ * It should be a SimpleDateFormat object which
779
+ * has a pattern in it.
780
+ * the DateIntervalInfo provides the interval patterns.
781
+ *
782
+ * Note: the DateIntervalFormat takes ownership of both
783
+ * DateFormat and DateIntervalInfo objects.
784
+ * Caller should not delete them.
785
+ *
786
+ * @param locale the locale of this date interval formatter.
787
+ * @param dtItvInfo the DateIntervalInfo object to be adopted.
788
+ * @param skeleton the skeleton of the date formatter
789
+ * @param status output param set to success/failure code on exit
790
+ */
791
+ DateIntervalFormat(const Locale& locale, DateIntervalInfo* dtItvInfo,
792
+ const UnicodeString* skeleton, UErrorCode& status);
793
+
794
+
795
+ /**
796
+ * Construct a DateIntervalFormat from DateFormat
797
+ * and a DateIntervalInfo.
798
+ *
799
+ * It is a wrapper of the constructor.
800
+ *
801
+ * @param locale the locale of this date interval formatter.
802
+ * @param dtitvinf the DateIntervalInfo object to be adopted.
803
+ * @param skeleton the skeleton of this formatter.
804
+ * @param status Output param set to success/failure code.
805
+ * @return a date time interval formatter which the caller owns.
806
+ */
807
+ static DateIntervalFormat* U_EXPORT2 create(const Locale& locale,
808
+ DateIntervalInfo* dtitvinf,
809
+ const UnicodeString* skeleton,
810
+ UErrorCode& status);
811
+
812
+ /**
813
+ * Below are for generating interval patterns local to the formatter
814
+ */
815
+
816
+ /** Like fallbackFormat, but only formats the range part of the fallback. */
817
+ void fallbackFormatRange(
818
+ Calendar& fromCalendar,
819
+ Calendar& toCalendar,
820
+ UnicodeString& appendTo,
821
+ int8_t& firstIndex,
822
+ FieldPositionHandler& fphandler,
823
+ UErrorCode& status) const;
824
+
825
+ /**
826
+ * Format 2 Calendars using fall-back interval pattern
827
+ *
828
+ * The full pattern used in this fall-back format is the
829
+ * full pattern of the date formatter.
830
+ *
831
+ * gFormatterMutex must already be locked when calling this function.
832
+ *
833
+ * @param fromCalendar calendar set to the from date in date interval
834
+ * to be formatted into date interval string
835
+ * @param toCalendar calendar set to the to date in date interval
836
+ * to be formatted into date interval string
837
+ * @param fromToOnSameDay true iff from and to dates are on the same day
838
+ * (any difference is in ampm/hours or below)
839
+ * @param appendTo Output parameter to receive result.
840
+ * Result is appended to existing contents.
841
+ * @param firstIndex See formatImpl for more information.
842
+ * @param fphandler See formatImpl for more information.
843
+ * @param status output param set to success/failure code on exit
844
+ * @return Reference to 'appendTo' parameter.
845
+ * @internal (private)
846
+ */
847
+ UnicodeString& fallbackFormat(Calendar& fromCalendar,
848
+ Calendar& toCalendar,
849
+ UBool fromToOnSameDay,
850
+ UnicodeString& appendTo,
851
+ int8_t& firstIndex,
852
+ FieldPositionHandler& fphandler,
853
+ UErrorCode& status) const;
854
+
855
+
856
+
857
+ /**
858
+ * Initialize interval patterns locale to this formatter
859
+ *
860
+ * This code is a bit complicated since
861
+ * 1. the interval patterns saved in resource bundle files are interval
862
+ * patterns based on date or time only.
863
+ * It does not have interval patterns based on both date and time.
864
+ * Interval patterns on both date and time are algorithm generated.
865
+ *
866
+ * For example, it has interval patterns on skeleton "dMy" and "hm",
867
+ * but it does not have interval patterns on skeleton "dMyhm".
868
+ *
869
+ * The rule to generate interval patterns for both date and time skeleton are
870
+ * 1) when the year, month, or day differs, concatenate the two original
871
+ * expressions with a separator between,
872
+ * For example, interval pattern from "Jan 10, 2007 10:10 am"
873
+ * to "Jan 11, 2007 10:10am" is
874
+ * "Jan 10, 2007 10:10 am - Jan 11, 2007 10:10am"
875
+ *
876
+ * 2) otherwise, present the date followed by the range expression
877
+ * for the time.
878
+ * For example, interval pattern from "Jan 10, 2007 10:10 am"
879
+ * to "Jan 10, 2007 11:10am" is
880
+ * "Jan 10, 2007 10:10 am - 11:10am"
881
+ *
882
+ * 2. even a pattern does not request a certain calendar field,
883
+ * the interval pattern needs to include such field if such fields are
884
+ * different between 2 dates.
885
+ * For example, a pattern/skeleton is "hm", but the interval pattern
886
+ * includes year, month, and date when year, month, and date differs.
887
+ *
888
+ *
889
+ * @param status output param set to success/failure code on exit
890
+ */
891
+ void initializePattern(UErrorCode& status);
892
+
893
+
894
+
895
+ /**
896
+ * Set fall back interval pattern given a calendar field,
897
+ * a skeleton, and a date time pattern generator.
898
+ * @param field the largest different calendar field
899
+ * @param skeleton a skeleton
900
+ * @param status output param set to success/failure code on exit
901
+ */
902
+ void setFallbackPattern(UCalendarDateFields field,
903
+ const UnicodeString& skeleton,
904
+ UErrorCode& status);
905
+
906
+
907
+
908
+ /**
909
+ * Converts special hour metacharacters (such as 'j') in the skeleton into locale-appropriate
910
+ * pattern characters.
911
+ *
912
+ *
913
+ * @param skeleton The skeleton to convert
914
+ * @return A copy of the skeleton, which "j" and any other special hour metacharacters converted to the regular ones.
915
+ *
916
+ */
917
+ UnicodeString normalizeHourMetacharacters(const UnicodeString& skeleton) const;
918
+
919
+
920
+
921
+ /**
922
+ * get separated date and time skeleton from a combined skeleton.
923
+ *
924
+ * The difference between date skeleton and normalizedDateSkeleton are:
925
+ * 1. both 'y' and 'd' are appeared only once in normalizeDateSkeleton
926
+ * 2. 'E' and 'EE' are normalized into 'EEE'
927
+ * 3. 'MM' is normalized into 'M'
928
+ *
929
+ ** the difference between time skeleton and normalizedTimeSkeleton are:
930
+ * 1. both 'H' and 'h' are normalized as 'h' in normalized time skeleton,
931
+ * 2. 'a' is omitted in normalized time skeleton.
932
+ * 3. there is only one appearance for 'h', 'm','v', 'z' in normalized time
933
+ * skeleton
934
+ *
935
+ *
936
+ * @param skeleton given combined skeleton.
937
+ * @param date Output parameter for date only skeleton.
938
+ * @param normalizedDate Output parameter for normalized date only
939
+ *
940
+ * @param time Output parameter for time only skeleton.
941
+ * @param normalizedTime Output parameter for normalized time only
942
+ * skeleton.
943
+ *
944
+ */
945
+ static void U_EXPORT2 getDateTimeSkeleton(const UnicodeString& skeleton,
946
+ UnicodeString& date,
947
+ UnicodeString& normalizedDate,
948
+ UnicodeString& time,
949
+ UnicodeString& normalizedTime);
950
+
951
+
952
+
953
+ /**
954
+ * Generate date or time interval pattern from resource,
955
+ * and set them into the interval pattern locale to this formatter.
956
+ *
957
+ * It needs to handle the following:
958
+ * 1. need to adjust field width.
959
+ * For example, the interval patterns saved in DateIntervalInfo
960
+ * includes "dMMMy", but not "dMMMMy".
961
+ * Need to get interval patterns for dMMMMy from dMMMy.
962
+ * Another example, the interval patterns saved in DateIntervalInfo
963
+ * includes "hmv", but not "hmz".
964
+ * Need to get interval patterns for "hmz' from 'hmv'
965
+ *
966
+ * 2. there might be no pattern for 'y' differ for skeleton "Md",
967
+ * in order to get interval patterns for 'y' differ,
968
+ * need to look for it from skeleton 'yMd'
969
+ *
970
+ * @param dateSkeleton normalized date skeleton
971
+ * @param timeSkeleton normalized time skeleton
972
+ * @return whether the resource is found for the skeleton.
973
+ * true if interval pattern found for the skeleton,
974
+ * false otherwise.
975
+ */
976
+ UBool setSeparateDateTimePtn(const UnicodeString& dateSkeleton,
977
+ const UnicodeString& timeSkeleton);
978
+
979
+
980
+
981
+
982
+ /**
983
+ * Generate interval pattern from existing resource
984
+ *
985
+ * It not only save the interval patterns,
986
+ * but also return the extended skeleton and its best match skeleton.
987
+ *
988
+ * @param field largest different calendar field
989
+ * @param skeleton skeleton
990
+ * @param bestSkeleton the best match skeleton which has interval pattern
991
+ * defined in resource
992
+ * @param differenceInfo the difference between skeleton and best skeleton
993
+ * 0 means the best matched skeleton is the same as input skeleton
994
+ * 1 means the fields are the same, but field width are different
995
+ * 2 means the only difference between fields are v/z,
996
+ * -1 means there are other fields difference
997
+ *
998
+ * @param extendedSkeleton extended skeleton
999
+ * @param extendedBestSkeleton extended best match skeleton
1000
+ * @return whether the interval pattern is found
1001
+ * through extending skeleton or not.
1002
+ * true if interval pattern is found by
1003
+ * extending skeleton, false otherwise.
1004
+ */
1005
+ UBool setIntervalPattern(UCalendarDateFields field,
1006
+ const UnicodeString* skeleton,
1007
+ const UnicodeString* bestSkeleton,
1008
+ int8_t differenceInfo,
1009
+ UnicodeString* extendedSkeleton = nullptr,
1010
+ UnicodeString* extendedBestSkeleton = nullptr);
1011
+
1012
+ /**
1013
+ * Adjust field width in best match interval pattern to match
1014
+ * the field width in input skeleton.
1015
+ *
1016
+ * TODO (xji) make a general solution
1017
+ * The adjusting rule can be:
1018
+ * 1. always adjust
1019
+ * 2. never adjust
1020
+ * 3. default adjust, which means adjust according to the following rules
1021
+ * 3.1 always adjust string, such as MMM and MMMM
1022
+ * 3.2 never adjust between string and numeric, such as MM and MMM
1023
+ * 3.3 always adjust year
1024
+ * 3.4 do not adjust 'd', 'h', or 'm' if h presents
1025
+ * 3.5 do not adjust 'M' if it is numeric(?)
1026
+ *
1027
+ * Since date interval format is well-formed format,
1028
+ * date and time skeletons are normalized previously,
1029
+ * till this stage, the adjust here is only "adjust strings, such as MMM
1030
+ * and MMMM, EEE and EEEE.
1031
+ *
1032
+ * @param inputSkeleton the input skeleton
1033
+ * @param bestMatchSkeleton the best match skeleton
1034
+ * @param bestMatchIntervalPattern the best match interval pattern
1035
+ * @param differenceInfo the difference between 2 skeletons
1036
+ * 1 means only field width differs
1037
+ * 2 means v/z exchange
1038
+ * @param suppressDayPeriodField if true, remove the day period field from the pattern, if there is one
1039
+ * @param adjustedIntervalPattern adjusted interval pattern
1040
+ */
1041
+ static void U_EXPORT2 adjustFieldWidth(
1042
+ const UnicodeString& inputSkeleton,
1043
+ const UnicodeString& bestMatchSkeleton,
1044
+ const UnicodeString& bestMatchIntervalPattern,
1045
+ int8_t differenceInfo,
1046
+ UBool suppressDayPeriodField,
1047
+ UnicodeString& adjustedIntervalPattern);
1048
+
1049
+ /**
1050
+ * Does the same thing as UnicodeString::findAndReplace(), except that it won't perform
1051
+ * the substitution inside quoted literal text.
1052
+ * @param targetString The string to perform the find-replace operation on.
1053
+ * @param strToReplace The string to search for and replace in the target string.
1054
+ * @param strToReplaceWith The string to substitute in wherever `stringToReplace` was found.
1055
+ */
1056
+ static void U_EXPORT2 findReplaceInPattern(UnicodeString& targetString,
1057
+ const UnicodeString& strToReplace,
1058
+ const UnicodeString& strToReplaceWith);
1059
+
1060
+ /**
1061
+ * Concat a single date pattern with a time interval pattern,
1062
+ * set it into the intervalPatterns, while field is time field.
1063
+ * This is used to handle time interval patterns on skeleton with
1064
+ * both time and date. Present the date followed by
1065
+ * the range expression for the time.
1066
+ * @param format date and time format
1067
+ * @param datePattern date pattern
1068
+ * @param field time calendar field: AM_PM, HOUR, MINUTE
1069
+ * @param status output param set to success/failure code on exit
1070
+ */
1071
+ void concatSingleDate2TimeInterval(UnicodeString& format,
1072
+ const UnicodeString& datePattern,
1073
+ UCalendarDateFields field,
1074
+ UErrorCode& status);
1075
+
1076
+ /**
1077
+ * check whether a calendar field present in a skeleton.
1078
+ * @param field calendar field need to check
1079
+ * @param skeleton given skeleton on which to check the calendar field
1080
+ * @return true if field present in a skeleton.
1081
+ */
1082
+ static UBool U_EXPORT2 fieldExistsInSkeleton(UCalendarDateFields field,
1083
+ const UnicodeString& skeleton);
1084
+
1085
+
1086
+ /**
1087
+ * Split interval patterns into 2 part.
1088
+ * @param intervalPattern interval pattern
1089
+ * @return the index in interval pattern which split the pattern into 2 part
1090
+ */
1091
+ static int32_t U_EXPORT2 splitPatternInto2Part(const UnicodeString& intervalPattern);
1092
+
1093
+
1094
+ /**
1095
+ * Break interval patterns as 2 part and save them into pattern info.
1096
+ * @param field calendar field
1097
+ * @param intervalPattern interval pattern
1098
+ */
1099
+ void setIntervalPattern(UCalendarDateFields field,
1100
+ const UnicodeString& intervalPattern);
1101
+
1102
+
1103
+ /**
1104
+ * Break interval patterns as 2 part and save them into pattern info.
1105
+ * @param field calendar field
1106
+ * @param intervalPattern interval pattern
1107
+ * @param laterDateFirst whether later date appear first in interval pattern
1108
+ */
1109
+ void setIntervalPattern(UCalendarDateFields field,
1110
+ const UnicodeString& intervalPattern,
1111
+ UBool laterDateFirst);
1112
+
1113
+
1114
+ /**
1115
+ * Set pattern information.
1116
+ *
1117
+ * @param field calendar field
1118
+ * @param firstPart the first part in interval pattern
1119
+ * @param secondPart the second part in interval pattern
1120
+ * @param laterDateFirst whether the first date in intervalPattern
1121
+ * is earlier date or later date
1122
+ */
1123
+ void setPatternInfo(UCalendarDateFields field,
1124
+ const UnicodeString* firstPart,
1125
+ const UnicodeString* secondPart,
1126
+ UBool laterDateFirst);
1127
+
1128
+ /**
1129
+ * Format 2 Calendars to produce a string.
1130
+ * Implementation of the similar public format function.
1131
+ * Must be called with gFormatterMutex already locked.
1132
+ *
1133
+ * Note: "fromCalendar" and "toCalendar" are not const,
1134
+ * since calendar is not const in SimpleDateFormat::format(Calendar&),
1135
+ *
1136
+ * @param fromCalendar calendar set to the from date in date interval
1137
+ * to be formatted into date interval string
1138
+ * @param toCalendar calendar set to the to date in date interval
1139
+ * to be formatted into date interval string
1140
+ * @param appendTo Output parameter to receive result.
1141
+ * Result is appended to existing contents.
1142
+ * @param firstIndex 0 if the first output date is fromCalendar;
1143
+ * 1 if it corresponds to toCalendar;
1144
+ * -1 if there is only one date printed.
1145
+ * @param fphandler Handler for field position information.
1146
+ * The fields will be from the UDateFormatField enum.
1147
+ * @param status Output param filled with success/failure status.
1148
+ * Caller needs to make sure it is SUCCESS
1149
+ * at the function entrance
1150
+ * @return Reference to 'appendTo' parameter.
1151
+ * @internal (private)
1152
+ */
1153
+ UnicodeString& formatImpl(Calendar& fromCalendar,
1154
+ Calendar& toCalendar,
1155
+ UnicodeString& appendTo,
1156
+ int8_t& firstIndex,
1157
+ FieldPositionHandler& fphandler,
1158
+ UErrorCode& status) const ;
1159
+
1160
+ /** Version of formatImpl for DateInterval. */
1161
+ UnicodeString& formatIntervalImpl(const DateInterval& dtInterval,
1162
+ UnicodeString& appendTo,
1163
+ int8_t& firstIndex,
1164
+ FieldPositionHandler& fphandler,
1165
+ UErrorCode& status) const;
1166
+
1167
+
1168
+ // from calendar field to pattern letter
1169
+ static const char16_t fgCalendarFieldToPatternLetter[];
1170
+
1171
+
1172
+ /**
1173
+ * The interval patterns for this locale.
1174
+ */
1175
+ DateIntervalInfo* fInfo;
1176
+
1177
+ /**
1178
+ * The DateFormat object used to format single pattern
1179
+ */
1180
+ SimpleDateFormat* fDateFormat;
1181
+
1182
+ /**
1183
+ * The 2 calendars with the from and to date.
1184
+ * could re-use the calendar in fDateFormat,
1185
+ * but keeping 2 calendars make it clear and clean.
1186
+ */
1187
+ Calendar* fFromCalendar;
1188
+ Calendar* fToCalendar;
1189
+
1190
+ Locale fLocale;
1191
+
1192
+ /**
1193
+ * Following are interval information relevant (locale) to this formatter.
1194
+ */
1195
+ UnicodeString fSkeleton;
1196
+ PatternInfo fIntervalPatterns[DateIntervalInfo::kIPI_MAX_INDEX];
1197
+
1198
+ /**
1199
+ * Patterns for fallback formatting.
1200
+ */
1201
+ UnicodeString* fDatePattern;
1202
+ UnicodeString* fTimePattern;
1203
+ UnicodeString* fDateTimeFormat;
1204
+
1205
+ #if APPLE_ICU_CHANGES
1206
+ // rdar://
1207
+ /**
1208
+ * Atttributes
1209
+ */
1210
+ int32_t fMinimizeType;
1211
+ #endif // APPLE_ICU_CHANGES
1212
+
1213
+ /**
1214
+ * Other formatting information
1215
+ */
1216
+ UDisplayContext fCapitalizationContext;
1217
+ };
1218
+
1219
+ inline bool
1220
+ DateIntervalFormat::operator!=(const Format& other) const {
1221
+ return !operator==(other);
1222
+ }
1223
+
1224
+ U_NAMESPACE_END
1225
+
1226
+ #endif /* #if !UCONFIG_NO_FORMATTING */
1227
+
1228
+ #endif /* U_SHOW_CPLUSPLUS_API */
1229
+
1230
+ #endif // _DTITVFMT_H__
1231
+ //eof