@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.
- package/LICENSE.txt +1445 -0
- package/README.md +24 -2
- package/files.json +366 -0
- package/package.json +18 -4
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/HTMLparser.h +320 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/HTMLtree.h +147 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/SAX.h +204 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/SAX2.h +173 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/c14n.h +128 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/catalog.h +182 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/chvalid.h +230 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/debugXML.h +217 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/dict.h +81 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/encoding.h +233 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/entities.h +151 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/globals.h +529 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/hash.h +236 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/list.h +137 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/nanoftp.h +186 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/nanohttp.h +81 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/parser.h +1265 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/parserInternals.h +662 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/pattern.h +100 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/relaxng.h +218 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/schemasInternals.h +958 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/schematron.h +142 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/threads.h +94 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/tree.h +1314 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/uri.h +94 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/valid.h +448 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xinclude.h +129 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xlink.h +189 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlIO.h +369 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlautomata.h +146 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlerror.h +919 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlexports.h +50 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlmemory.h +228 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlmodule.h +57 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlreader.h +428 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlregexp.h +222 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlsave.h +88 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlschemas.h +246 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlschemastypes.h +152 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlstring.h +140 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlunicode.h +202 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlversion.h +526 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xmlwriter.h +488 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xpath.h +575 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xpathInternals.h +632 -0
- package/wasm32-unknown-wasip1/WASI.sdk/include/libxml2/libxml/xpointer.h +137 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFArray.h +673 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFAttributedString.h +157 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFAttributedStringPriv.h +25 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFAvailability.h +236 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBag.h +97 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBase.h +702 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBigNumber.h +76 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBinaryHeap.h +294 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBitVector.h +49 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBundle.h +349 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBundlePriv.h +334 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBundle_BinaryTypes.h +61 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFBurstTrie.h +181 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFByteOrder.h +305 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFCalendar.h +116 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFCalendarPriv.h +52 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFCharacterSet.h +387 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFCharacterSetPriv.h +78 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFConstantKeys.h +128 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFData.h +79 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDate.h +113 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDateComponents.h +92 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDateFormatter.h +193 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDateFormatter_Private.h +31 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDateInterval.h +62 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDateIntervalFormatter.h +96 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFDictionary.h +674 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFError.h +183 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFError_Private.h +27 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFKnownLocations.h +42 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFListFormatter.h +32 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFLocale.h +204 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFLocale_Private.h +35 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFLocking.h +124 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFLogUtilities.h +52 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFMachPort.h +53 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFMessagePort.h +66 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFNotificationCenter.h +81 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFNumber.h +129 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFNumberFormatter.h +174 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFNumber_Private.h +30 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFOverflow.h +88 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFPlugIn.h +124 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFPlugInCOM.h +117 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFPreferences.h +130 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFPriv.h +721 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFPropertyList.h +151 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFPropertyList_Private.h +19 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFRegularExpression.h +68 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFRelativeDateTimeFormatter.h +61 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFRunArray.h +57 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFRunLoop.h +203 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFRuntime.h +281 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFSet.h +491 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFSocket.h +220 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStorage.h +296 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStream.h +505 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStreamAbstract.h +181 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStreamPriv.h +126 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFString.h +915 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStringDefaultEncoding.h +45 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStringEncodingConverter.h +82 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStringEncodingConverterExt.h +121 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStringEncodingConverterPriv.h +47 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStringEncodingDatabase.h +23 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFStringEncodingExt.h +184 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFString_Private.h +32 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFTargetConditionals.h +284 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFTimeZone.h +98 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFTree.h +330 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFURL.h +1256 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFURLAccess.h +128 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFURLComponents.h +123 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFURLPriv.h +879 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFUUID.h +78 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFUniChar.h +244 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFUnicodeDecomposition.h +35 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFUnicodePrecomposition.h +23 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFUserNotification.h +185 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFUtilities.h +27 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CoreFoundation.h +105 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForFoundationOnly.h +816 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/ForSwiftFoundationOnly.h +689 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/module.modulemap +8 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/static-module.map +7 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/CFUniCharBitmapData.h +17 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/CFUniCharBitmapData.inc.h +14707 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/CFUniCharBitmapDataAccess.h +16 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/_CShimsMacros.h +24 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/_CShimsTargetConditionals.h +56 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/_CStdlib.h +169 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/_FoundationCShims.h +32 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/bplist_shims.h +19 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/filemanager_shims.h +156 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/io_shims.h +89 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/module.modulemap +5 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/platform_shims.h +112 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/string_shims.h +52 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_FoundationCShims/uuid.h +81 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/alphaindex.h +766 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/appendable.h +239 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/basictz.h +248 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/brkiter.h +694 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/bytestream.h +307 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/bytestrie.h +568 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/bytestriebuilder.h +193 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/calendar.h +2609 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/caniter.h +215 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/casemap.h +497 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/char16ptr.h +384 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/chariter.h +734 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/choicfmt.h +601 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/coleitr.h +411 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/coll.h +1387 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/compactdecimalformat.h +196 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/curramt.h +133 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/currpinf.h +274 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/currunit.h +146 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/datefmt.h +968 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dbbi.h +48 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dcfmtsym.h +636 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/decimfmt.h +2233 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/displayoptions.h +270 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/docmain.h +247 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dtfmtsym.h +1055 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dtintrv.h +163 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dtitvfmt.h +1231 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dtitvinf.h +524 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dtptngen.h +676 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/dtrule.h +256 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/edits.h +531 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/enumset.h +69 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/errorcode.h +144 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/fieldpos.h +298 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/filteredbrk.h +152 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/fmtable.h +758 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/format.h +316 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/formattednumber.h +215 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/formattedvalue.h +318 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/fpositer.h +124 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/gender.h +122 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/gregocal.h +737 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/icudataver.h +43 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/icuplug.h +391 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/idna.h +333 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/listformatter.h +291 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/localebuilder.h +309 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/localematcher.h +710 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/localpointer.h +609 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/locdspnm.h +211 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/locid.h +1293 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/measfmt.h +501 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/measunit.h +3928 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/measure.h +174 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/messagepattern.h +950 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/module.modulemap +209 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/msgfmt.h +1117 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/normalizer2.h +791 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/normlzr.h +816 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/nounit.h +86 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/numberformatter.h +2862 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/numberrangeformatter.h +802 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/numfmt.h +1299 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/numsys.h +220 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/parseerr.h +94 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/parsepos.h +237 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/platform.h +874 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/plurfmt.h +601 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/plurrule.h +591 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ptypes.h +66 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/putil.h +183 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/rbbi.h +902 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/rbnf.h +1153 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/rbtz.h +373 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/regex.h +1882 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/region.h +229 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/reldatefmt.h +758 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/rep.h +266 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/resbund.h +489 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/schriter.h +187 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/scientificnumberformatter.h +222 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/search.h +580 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/selfmt.h +374 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/simpleformatter.h +414 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/simplenumberformatter.h +326 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/simpletz.h +940 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/smpdtfmt.h +1383 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/sortkey.h +344 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/std_string.h +41 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/strenum.h +281 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/stringoptions.h +190 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/stringpiece.h +354 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/stringtriebuilder.h +426 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/stsearch.h +509 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/symtable.h +119 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tblcoll.h +886 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/timezone.h +1067 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tmunit.h +142 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tmutamt.h +174 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tmutfmt.h +238 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/translit.h +1593 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tzfmt.h +1102 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tznames.h +419 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tzrule.h +820 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/tztrans.h +201 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ualoc.h +372 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uameasureformat.h +487 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uameasureunit.h +249 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uatimeunitformat.h +377 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uatimezone.h +114 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ubidi.h +2368 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ubiditransform.h +326 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ubrk.h +684 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucal.h +1825 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucasemap.h +388 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucat.h +160 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uchar.h +4410 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucharstrie.h +623 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucharstriebuilder.h +193 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uchriter.h +393 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uclean.h +262 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucnv.h +2053 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucnv_cb.h +164 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucnv_err.h +465 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucnvsel.h +193 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucol.h +1649 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucoleitr.h +344 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uconfig.h +501 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucpmap.h +158 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucptrie.h +645 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucsdet.h +426 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ucurr.h +466 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udat.h +1767 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udata.h +454 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udateintervalformat.h +458 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udatintv.h +146 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udatpg.h +806 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udisplaycontext.h +233 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/udisplayoptions.h +321 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uenum.h +209 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ufieldpositer.h +123 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uformattable.h +290 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uformattednumber.h +224 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uformattedvalue.h +445 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ugender.h +86 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uidna.h +794 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uiter.h +709 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uldnames.h +307 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ulistformatter.h +333 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uloc.h +1437 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ulocale.h +226 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ulocbuilder.h +437 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ulocdata.h +299 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/umachine.h +491 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/umisc.h +62 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/umsg.h +628 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/umutablecptrie.h +240 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unifilt.h +136 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unifunct.h +132 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unimatch.h +168 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unirepl.h +103 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uniset.h +1909 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unistr.h +5095 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unorm.h +476 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unorm2.h +626 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unum.h +1524 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unumberformatter.h +576 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unumberoptions.h +173 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unumberrangeformatter.h +471 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/unumsys.h +176 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uobject.h +324 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uplrule.h +82 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/upluralrules.h +263 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/urbtok.h +276 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uregex.h +1617 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uregion.h +252 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ureldatefmt.h +510 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/urename.h +4026 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/urep.h +157 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ures.h +912 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uscript.h +742 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/usearch.h +911 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uset.h +1898 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/usetiter.h +323 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ushape.h +476 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/usimplenumberformatter.h +297 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uspoof.h +1852 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/usprep.h +274 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ustdio.h +1021 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ustream.h +69 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ustring.h +1719 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/ustringtrie.h +97 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utext.h +1613 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utf.h +225 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utf16.h +740 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utf32.h +25 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utf8.h +882 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utf_old.h +1207 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utmscale.h +490 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utrace.h +506 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utrans.h +660 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/utypes.h +826 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uvernum.h +191 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/uversion.h +230 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/_foundation_unicode/vtzone.h +471 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/Foundation.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/FoundationEssentials.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/FoundationInternationalization.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/FoundationXML.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/_FoundationCollections.swiftmodule/wasm32-unknown-wasip1.swiftmodule +0 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libCoreFoundation.a +0 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundation.a +0 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundationEssentials.a +0 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundationInternationalization.a +0 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/libFoundationXML.a +0 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/lib_CFXMLInterface.a +0 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCShims.a +0 -0
- package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/wasi/lib_FoundationCollections.a +0 -0
package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFLogUtilities.h
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* CFLogUtilities.h
|
|
2
|
+
Copyright (c) 2004-2019, Apple Inc. and the Swift project authors
|
|
3
|
+
|
|
4
|
+
Portions Copyright (c) 2014-2019, Apple Inc. and the Swift project authors
|
|
5
|
+
Licensed under Apache License v2.0 with Runtime Library Exception
|
|
6
|
+
See http://swift.org/LICENSE.txt for license information
|
|
7
|
+
See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/*
|
|
11
|
+
APPLE SPI: NOT TO BE USED OUTSIDE APPLE!
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
#if !defined(__COREFOUNDATION_CFLOGUTILITIES__)
|
|
15
|
+
#define __COREFOUNDATION_CFLOGUTILITIES__ 1
|
|
16
|
+
|
|
17
|
+
#include "CFBase.h"
|
|
18
|
+
#include "CFString.h"
|
|
19
|
+
|
|
20
|
+
CF_EXTERN_C_BEGIN
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
// Legal level values for CFLog()
|
|
24
|
+
typedef int32_t CFLogLevel;
|
|
25
|
+
enum {
|
|
26
|
+
kCFLogLevelEmergency = 0,
|
|
27
|
+
kCFLogLevelAlert = 1,
|
|
28
|
+
kCFLogLevelCritical = 2,
|
|
29
|
+
kCFLogLevelError = 3,
|
|
30
|
+
kCFLogLevelWarning = 4,
|
|
31
|
+
kCFLogLevelNotice = 5,
|
|
32
|
+
kCFLogLevelInfo = 6,
|
|
33
|
+
kCFLogLevelDebug = 7,
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
CF_EXPORT void CFLog(CFLogLevel level, CFStringRef format, ...) CF_NO_TAIL_CALL CF_FORMAT_FUNCTION(2, 3);
|
|
37
|
+
/* Passing in a level value which is outside the range of 0-7 will cause the the call to do nothing.
|
|
38
|
+
CFLog() logs the message using the asl.h API, and uses the level parameter as the log level.
|
|
39
|
+
Note that the asl subsystem ignores some log levels by default.
|
|
40
|
+
CFLog() is not fast, and is not going to be guaranteed to be fast.
|
|
41
|
+
Even "no-op" CFLogs are not necessarily fast.
|
|
42
|
+
If you care about performance, you shouldn't be logging.
|
|
43
|
+
*/
|
|
44
|
+
|
|
45
|
+
#if DEPLOYMENT_RUNTIME_SWIFT
|
|
46
|
+
CF_EXPORT void CFLog1(CFLogLevel lev, CFStringRef message);
|
|
47
|
+
#endif
|
|
48
|
+
|
|
49
|
+
CF_EXTERN_C_END
|
|
50
|
+
|
|
51
|
+
#endif /* ! __COREFOUNDATION_CFLOGUTILITIES__ */
|
|
52
|
+
|
package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFMachPort.h
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/* CFMachPort.h
|
|
2
|
+
Copyright (c) 1998-2019, Apple Inc. and the Swift project authors
|
|
3
|
+
|
|
4
|
+
Portions Copyright (c) 2014-2019, Apple Inc. and the Swift project authors
|
|
5
|
+
Licensed under Apache License v2.0 with Runtime Library Exception
|
|
6
|
+
See http://swift.org/LICENSE.txt for license information
|
|
7
|
+
See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#if !defined(__COREFOUNDATION_CFMACHPORT__)
|
|
11
|
+
#define __COREFOUNDATION_CFMACHPORT__ 1
|
|
12
|
+
|
|
13
|
+
#include "CFRunLoop.h"
|
|
14
|
+
#if TARGET_OS_MAC
|
|
15
|
+
#include <mach/port.h>
|
|
16
|
+
|
|
17
|
+
CF_IMPLICIT_BRIDGING_ENABLED
|
|
18
|
+
CF_EXTERN_C_BEGIN
|
|
19
|
+
|
|
20
|
+
typedef struct CF_BRIDGED_MUTABLE_TYPE(NSMachPort) __CFMachPort * CFMachPortRef;
|
|
21
|
+
|
|
22
|
+
typedef struct {
|
|
23
|
+
CFIndex version;
|
|
24
|
+
void * info;
|
|
25
|
+
const void *(*retain)(const void *info);
|
|
26
|
+
void (*release)(const void *info);
|
|
27
|
+
CFStringRef (*copyDescription)(const void *info);
|
|
28
|
+
} CFMachPortContext;
|
|
29
|
+
|
|
30
|
+
typedef void (*CFMachPortCallBack)(CFMachPortRef port, void *msg, CFIndex size, void *info);
|
|
31
|
+
typedef void (*CFMachPortInvalidationCallBack)(CFMachPortRef port, void *info);
|
|
32
|
+
|
|
33
|
+
CF_EXPORT CFTypeID CFMachPortGetTypeID(void);
|
|
34
|
+
|
|
35
|
+
CF_EXPORT CFMachPortRef CFMachPortCreate(CFAllocatorRef allocator, CFMachPortCallBack callout, CFMachPortContext *context, Boolean *shouldFreeInfo);
|
|
36
|
+
CF_EXPORT CFMachPortRef CFMachPortCreateWithPort(CFAllocatorRef allocator, mach_port_t portNum, CFMachPortCallBack callout, CFMachPortContext *context, Boolean *shouldFreeInfo);
|
|
37
|
+
|
|
38
|
+
CF_EXPORT mach_port_t CFMachPortGetPort(CFMachPortRef port);
|
|
39
|
+
CF_EXPORT void CFMachPortGetContext(CFMachPortRef port, CFMachPortContext *context);
|
|
40
|
+
CF_EXPORT void CFMachPortInvalidate(CFMachPortRef port);
|
|
41
|
+
CF_EXPORT Boolean CFMachPortIsValid(CFMachPortRef port);
|
|
42
|
+
CF_EXPORT CFMachPortInvalidationCallBack CFMachPortGetInvalidationCallBack(CFMachPortRef port);
|
|
43
|
+
CF_EXPORT void CFMachPortSetInvalidationCallBack(CFMachPortRef port, CFMachPortInvalidationCallBack callout);
|
|
44
|
+
|
|
45
|
+
CF_EXPORT CFRunLoopSourceRef CFMachPortCreateRunLoopSource(CFAllocatorRef allocator, CFMachPortRef port, CFIndex order);
|
|
46
|
+
|
|
47
|
+
CF_EXTERN_C_END
|
|
48
|
+
CF_IMPLICIT_BRIDGING_DISABLED
|
|
49
|
+
|
|
50
|
+
#endif
|
|
51
|
+
|
|
52
|
+
#endif /* ! __COREFOUNDATION_CFMACHPORT__ */
|
|
53
|
+
|
package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFMessagePort.h
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* CFMessagePort.h
|
|
2
|
+
Copyright (c) 1998-2019, Apple Inc. and the Swift project authors
|
|
3
|
+
|
|
4
|
+
Portions Copyright (c) 2014-2019, Apple Inc. and the Swift project authors
|
|
5
|
+
Licensed under Apache License v2.0 with Runtime Library Exception
|
|
6
|
+
See http://swift.org/LICENSE.txt for license information
|
|
7
|
+
See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#if !defined(__COREFOUNDATION_CFMESSAGEPORT__)
|
|
11
|
+
#define __COREFOUNDATION_CFMESSAGEPORT__ 1
|
|
12
|
+
|
|
13
|
+
#include "CFString.h"
|
|
14
|
+
#include "CFRunLoop.h"
|
|
15
|
+
#include "CFData.h"
|
|
16
|
+
|
|
17
|
+
CF_IMPLICIT_BRIDGING_ENABLED
|
|
18
|
+
CF_EXTERN_C_BEGIN
|
|
19
|
+
|
|
20
|
+
typedef struct CF_BRIDGED_MUTABLE_TYPE(NSMessagePort) __CFMessagePort * CFMessagePortRef;
|
|
21
|
+
|
|
22
|
+
CF_ENUM(SInt32) {
|
|
23
|
+
kCFMessagePortSuccess = 0,
|
|
24
|
+
kCFMessagePortSendTimeout = -1,
|
|
25
|
+
kCFMessagePortReceiveTimeout = -2,
|
|
26
|
+
kCFMessagePortIsInvalid = -3,
|
|
27
|
+
kCFMessagePortTransportError = -4,
|
|
28
|
+
kCFMessagePortBecameInvalidError = -5
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
typedef struct {
|
|
32
|
+
CFIndex version;
|
|
33
|
+
void * info;
|
|
34
|
+
const void *(*retain)(const void *info);
|
|
35
|
+
void (*release)(const void *info);
|
|
36
|
+
CFStringRef (*copyDescription)(const void *info);
|
|
37
|
+
} CFMessagePortContext;
|
|
38
|
+
|
|
39
|
+
typedef CFDataRef (*CFMessagePortCallBack)(CFMessagePortRef local, SInt32 msgid, CFDataRef data, void *info);
|
|
40
|
+
/* If callout wants to keep a hold of the data past the return of the callout, it must COPY the data. This includes the case where the data is given to some routine which _might_ keep a hold of it; System will release returned CFData. */
|
|
41
|
+
typedef void (*CFMessagePortInvalidationCallBack)(CFMessagePortRef ms, void *info);
|
|
42
|
+
|
|
43
|
+
CF_EXPORT CFTypeID CFMessagePortGetTypeID(void);
|
|
44
|
+
|
|
45
|
+
CF_EXPORT CFMessagePortRef CFMessagePortCreateLocal(CFAllocatorRef allocator, CFStringRef name, CFMessagePortCallBack callout, CFMessagePortContext *context, Boolean *shouldFreeInfo);
|
|
46
|
+
CF_EXPORT CFMessagePortRef CFMessagePortCreateRemote(CFAllocatorRef allocator, CFStringRef name);
|
|
47
|
+
|
|
48
|
+
CF_EXPORT Boolean CFMessagePortIsRemote(CFMessagePortRef ms);
|
|
49
|
+
CF_EXPORT CFStringRef CFMessagePortGetName(CFMessagePortRef ms);
|
|
50
|
+
CF_EXPORT Boolean CFMessagePortSetName(CFMessagePortRef ms, CFStringRef newName);
|
|
51
|
+
CF_EXPORT void CFMessagePortGetContext(CFMessagePortRef ms, CFMessagePortContext *context);
|
|
52
|
+
CF_EXPORT void CFMessagePortInvalidate(CFMessagePortRef ms);
|
|
53
|
+
CF_EXPORT Boolean CFMessagePortIsValid(CFMessagePortRef ms);
|
|
54
|
+
CF_EXPORT CFMessagePortInvalidationCallBack CFMessagePortGetInvalidationCallBack(CFMessagePortRef ms);
|
|
55
|
+
CF_EXPORT void CFMessagePortSetInvalidationCallBack(CFMessagePortRef ms, CFMessagePortInvalidationCallBack callout);
|
|
56
|
+
|
|
57
|
+
/* NULL replyMode argument means no return value expected, don't wait for it */
|
|
58
|
+
CF_EXPORT SInt32 CFMessagePortSendRequest(CFMessagePortRef remote, SInt32 msgid, CFDataRef data, CFTimeInterval sendTimeout, CFTimeInterval rcvTimeout, CFStringRef replyMode, CFDataRef *returnData);
|
|
59
|
+
|
|
60
|
+
CF_EXPORT CFRunLoopSourceRef CFMessagePortCreateRunLoopSource(CFAllocatorRef allocator, CFMessagePortRef local, CFIndex order);
|
|
61
|
+
|
|
62
|
+
CF_EXTERN_C_END
|
|
63
|
+
CF_IMPLICIT_BRIDGING_DISABLED
|
|
64
|
+
|
|
65
|
+
#endif /* ! __COREFOUNDATION_CFMESSAGEPORT__ */
|
|
66
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* CFNotificationCenter.h
|
|
2
|
+
Copyright (c) 1998-2019, Apple Inc. and the Swift project authors
|
|
3
|
+
|
|
4
|
+
Portions Copyright (c) 2014-2019, Apple Inc. and the Swift project authors
|
|
5
|
+
Licensed under Apache License v2.0 with Runtime Library Exception
|
|
6
|
+
See http://swift.org/LICENSE.txt for license information
|
|
7
|
+
See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#if !defined(__COREFOUNDATION_CFNOTIFICATIONCENTER__)
|
|
11
|
+
#define __COREFOUNDATION_CFNOTIFICATIONCENTER__ 1
|
|
12
|
+
|
|
13
|
+
#include "CFBase.h"
|
|
14
|
+
#include "CFDictionary.h"
|
|
15
|
+
|
|
16
|
+
CF_IMPLICIT_BRIDGING_ENABLED
|
|
17
|
+
CF_EXTERN_C_BEGIN
|
|
18
|
+
|
|
19
|
+
typedef CFStringRef CFNotificationName CF_EXTENSIBLE_STRING_ENUM;
|
|
20
|
+
|
|
21
|
+
typedef struct CF_BRIDGED_MUTABLE_TYPE(id) __CFNotificationCenter * CFNotificationCenterRef;
|
|
22
|
+
|
|
23
|
+
typedef void (*CFNotificationCallback)(CFNotificationCenterRef center, void *observer, CFNotificationName name, const void *object, CFDictionaryRef userInfo);
|
|
24
|
+
|
|
25
|
+
typedef CF_ENUM(CFIndex, CFNotificationSuspensionBehavior) {
|
|
26
|
+
CFNotificationSuspensionBehaviorDrop = 1,
|
|
27
|
+
// The server will not queue any notifications with this name and object while the process/app is in the background.
|
|
28
|
+
CFNotificationSuspensionBehaviorCoalesce = 2,
|
|
29
|
+
// The server will only queue the last notification of the specified name and object; earlier notifications are dropped.
|
|
30
|
+
CFNotificationSuspensionBehaviorHold = 3,
|
|
31
|
+
// The server will hold all matching notifications until the queue has been filled (queue size determined by the server) at which point the server may flush queued notifications.
|
|
32
|
+
CFNotificationSuspensionBehaviorDeliverImmediately = 4
|
|
33
|
+
// The server will deliver notifications matching this registration whether or not the process is in the background. When a notification with this suspension behavior is matched, it has the effect of first flushing any queued notifications.
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
CF_EXPORT CFTypeID CFNotificationCenterGetTypeID(void);
|
|
37
|
+
|
|
38
|
+
CF_EXPORT CFNotificationCenterRef CFNotificationCenterGetLocalCenter(void);
|
|
39
|
+
|
|
40
|
+
#if TARGET_OS_OSX || TARGET_OS_WIN32
|
|
41
|
+
CF_EXPORT CFNotificationCenterRef CFNotificationCenterGetDistributedCenter(void);
|
|
42
|
+
#endif
|
|
43
|
+
|
|
44
|
+
CF_EXPORT CFNotificationCenterRef CFNotificationCenterGetDarwinNotifyCenter(void);
|
|
45
|
+
// The Darwin Notify Center is based on the <notify.h> API.
|
|
46
|
+
// For this center, there are limitations in the API. There are no notification "objects",
|
|
47
|
+
// "userInfo" cannot be passed in the notification, and there are no suspension behaviors
|
|
48
|
+
// (always "deliver immediately"). Other limitations in the <notify.h> API as described in
|
|
49
|
+
// that header will also apply.
|
|
50
|
+
// - In the CFNotificationCallback, the 'object' and 'userInfo' parameters must be ignored.
|
|
51
|
+
// - CFNotificationCenterAddObserver(): the 'object' and 'suspensionBehavior' arguments are ignored.
|
|
52
|
+
// - CFNotificationCenterAddObserver(): the 'name' argument may not be NULL (for this center).
|
|
53
|
+
// - CFNotificationCenterRemoveObserver(): the 'object' argument is ignored.
|
|
54
|
+
// - CFNotificationCenterPostNotification(): the 'object', 'userInfo', and 'deliverImmediately' arguments are ignored.
|
|
55
|
+
// - CFNotificationCenterPostNotificationWithOptions(): the 'object', 'userInfo', and 'options' arguments are ignored.
|
|
56
|
+
// The Darwin Notify Center has no notion of per-user sessions, all notifications are system-wide.
|
|
57
|
+
// As with distributed notifications, the main thread's run loop must be running in one of the
|
|
58
|
+
// common modes (usually kCFRunLoopDefaultMode) for Darwin-style notifications to be delivered.
|
|
59
|
+
// NOTE: NULL or 0 should be passed for all ignored arguments to ensure future compatibility.
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
CF_EXPORT void CFNotificationCenterAddObserver(CFNotificationCenterRef center, const void *observer, CFNotificationCallback callBack, CFStringRef name, const void *object, CFNotificationSuspensionBehavior suspensionBehavior);
|
|
63
|
+
|
|
64
|
+
CF_EXPORT void CFNotificationCenterRemoveObserver(CFNotificationCenterRef center, const void *observer, CFNotificationName name, const void *object);
|
|
65
|
+
CF_EXPORT void CFNotificationCenterRemoveEveryObserver(CFNotificationCenterRef center, const void *observer);
|
|
66
|
+
|
|
67
|
+
CF_EXPORT void CFNotificationCenterPostNotification(CFNotificationCenterRef center, CFNotificationName name, const void *object, CFDictionaryRef userInfo, Boolean deliverImmediately);
|
|
68
|
+
|
|
69
|
+
CF_ENUM(CFOptionFlags) {
|
|
70
|
+
kCFNotificationDeliverImmediately = (1UL << 0),
|
|
71
|
+
kCFNotificationPostToAllSessions = (1UL << 1)
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
CF_EXPORT void CFNotificationCenterPostNotificationWithOptions(CFNotificationCenterRef center, CFNotificationName name, const void *object, CFDictionaryRef userInfo, CFOptionFlags options);
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
CF_EXTERN_C_END
|
|
78
|
+
CF_IMPLICIT_BRIDGING_DISABLED
|
|
79
|
+
|
|
80
|
+
#endif /* ! __COREFOUNDATION_CFNOTIFICATIONCENTER__ */
|
|
81
|
+
|
package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFNumber.h
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/* CFNumber.h
|
|
2
|
+
Copyright (c) 1999-2019, Apple Inc. and the Swift project authors
|
|
3
|
+
|
|
4
|
+
Portions Copyright (c) 2014-2019, Apple Inc. and the Swift project authors
|
|
5
|
+
Licensed under Apache License v2.0 with Runtime Library Exception
|
|
6
|
+
See http://swift.org/LICENSE.txt for license information
|
|
7
|
+
See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#if !defined(__COREFOUNDATION_CFNUMBER__)
|
|
11
|
+
#define __COREFOUNDATION_CFNUMBER__ 1
|
|
12
|
+
|
|
13
|
+
#include "CFBase.h"
|
|
14
|
+
|
|
15
|
+
CF_IMPLICIT_BRIDGING_ENABLED
|
|
16
|
+
CF_EXTERN_C_BEGIN
|
|
17
|
+
|
|
18
|
+
typedef const struct CF_BRIDGED_TYPE(NSNumber) __CFBoolean * CFBooleanRef;
|
|
19
|
+
|
|
20
|
+
CF_EXPORT
|
|
21
|
+
const CFBooleanRef kCFBooleanTrue;
|
|
22
|
+
CF_EXPORT
|
|
23
|
+
const CFBooleanRef kCFBooleanFalse;
|
|
24
|
+
|
|
25
|
+
CF_EXPORT
|
|
26
|
+
CFTypeID CFBooleanGetTypeID(void);
|
|
27
|
+
|
|
28
|
+
CF_EXPORT
|
|
29
|
+
Boolean CFBooleanGetValue(CFBooleanRef boolean);
|
|
30
|
+
|
|
31
|
+
typedef CF_ENUM(CFIndex, CFNumberType) {
|
|
32
|
+
/* Fixed-width types */
|
|
33
|
+
kCFNumberSInt8Type = 1,
|
|
34
|
+
kCFNumberSInt16Type = 2,
|
|
35
|
+
kCFNumberSInt32Type = 3,
|
|
36
|
+
kCFNumberSInt64Type = 4,
|
|
37
|
+
kCFNumberFloat32Type = 5,
|
|
38
|
+
kCFNumberFloat64Type = 6, /* 64-bit IEEE 754 */
|
|
39
|
+
/* Basic C types */
|
|
40
|
+
kCFNumberCharType = 7,
|
|
41
|
+
kCFNumberShortType = 8,
|
|
42
|
+
kCFNumberIntType = 9,
|
|
43
|
+
kCFNumberLongType = 10,
|
|
44
|
+
kCFNumberLongLongType = 11,
|
|
45
|
+
kCFNumberFloatType = 12,
|
|
46
|
+
kCFNumberDoubleType = 13,
|
|
47
|
+
/* Other */
|
|
48
|
+
kCFNumberCFIndexType = 14,
|
|
49
|
+
kCFNumberNSIntegerType API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0)) = 15,
|
|
50
|
+
kCFNumberCGFloatType API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0)) = 16,
|
|
51
|
+
kCFNumberMaxType = 16
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
typedef const struct CF_BRIDGED_TYPE(NSNumber) __CFNumber * CFNumberRef;
|
|
55
|
+
|
|
56
|
+
CF_EXPORT
|
|
57
|
+
const CFNumberRef kCFNumberPositiveInfinity;
|
|
58
|
+
CF_EXPORT
|
|
59
|
+
const CFNumberRef kCFNumberNegativeInfinity;
|
|
60
|
+
CF_EXPORT
|
|
61
|
+
const CFNumberRef kCFNumberNaN;
|
|
62
|
+
|
|
63
|
+
CF_EXPORT
|
|
64
|
+
CFTypeID CFNumberGetTypeID(void);
|
|
65
|
+
|
|
66
|
+
/*
|
|
67
|
+
Creates a CFNumber with the given value. The type of number pointed
|
|
68
|
+
to by the valuePtr is specified by type. If type is a floating point
|
|
69
|
+
type and the value represents one of the infinities or NaN, the
|
|
70
|
+
well-defined CFNumber for that value is returned. If either of
|
|
71
|
+
valuePtr or type is an invalid value, the result is undefined.
|
|
72
|
+
*/
|
|
73
|
+
CF_EXPORT
|
|
74
|
+
CFNumberRef CFNumberCreate(CFAllocatorRef allocator, CFNumberType theType, const void *valuePtr);
|
|
75
|
+
|
|
76
|
+
/*
|
|
77
|
+
Returns the storage format of the CFNumber's value. Note that
|
|
78
|
+
this is not necessarily the type provided in CFNumberCreate().
|
|
79
|
+
*/
|
|
80
|
+
CF_EXPORT
|
|
81
|
+
CFNumberType CFNumberGetType(CFNumberRef number);
|
|
82
|
+
|
|
83
|
+
/*
|
|
84
|
+
Returns the size in bytes of the type of the number.
|
|
85
|
+
*/
|
|
86
|
+
CF_EXPORT
|
|
87
|
+
CFIndex CFNumberGetByteSize(CFNumberRef number);
|
|
88
|
+
|
|
89
|
+
/*
|
|
90
|
+
Returns true if the type of the CFNumber's value is one of
|
|
91
|
+
the defined floating point types.
|
|
92
|
+
*/
|
|
93
|
+
CF_EXPORT
|
|
94
|
+
Boolean CFNumberIsFloatType(CFNumberRef number);
|
|
95
|
+
|
|
96
|
+
/*
|
|
97
|
+
Copies the CFNumber's value into the space pointed to by
|
|
98
|
+
valuePtr, as the specified type. If conversion needs to take
|
|
99
|
+
place, the conversion rules follow human expectation and not
|
|
100
|
+
C's promotion and truncation rules. If the conversion is
|
|
101
|
+
lossy, or the value is out of range, false is returned. Best
|
|
102
|
+
attempt at conversion will still be in *valuePtr.
|
|
103
|
+
*/
|
|
104
|
+
CF_EXPORT
|
|
105
|
+
Boolean CFNumberGetValue(CFNumberRef number, CFNumberType theType, void *valuePtr);
|
|
106
|
+
|
|
107
|
+
/*
|
|
108
|
+
Compares the two CFNumber instances. If conversion of the
|
|
109
|
+
types of the values is needed, the conversion and comparison
|
|
110
|
+
follow human expectations and not C's promotion and comparison
|
|
111
|
+
rules. Negative zero compares less than positive zero.
|
|
112
|
+
Positive infinity compares greater than everything except
|
|
113
|
+
itself, to which it compares equal. Negative infinity compares
|
|
114
|
+
less than everything except itself, to which it compares equal.
|
|
115
|
+
Unlike standard practice, if both numbers are NaN, then they
|
|
116
|
+
compare equal; if only one of the numbers is NaN, then the NaN
|
|
117
|
+
compares greater than the other number if it is negative, and
|
|
118
|
+
smaller than the other number if it is positive. (Note that in
|
|
119
|
+
CFEqual() with two CFNumbers, if either or both of the numbers
|
|
120
|
+
is NaN, true is returned.)
|
|
121
|
+
*/
|
|
122
|
+
CF_EXPORT
|
|
123
|
+
CFComparisonResult CFNumberCompare(CFNumberRef number, CFNumberRef otherNumber, void *context);
|
|
124
|
+
|
|
125
|
+
CF_EXTERN_C_END
|
|
126
|
+
CF_IMPLICIT_BRIDGING_DISABLED
|
|
127
|
+
|
|
128
|
+
#endif /* ! __COREFOUNDATION_CFNUMBER__ */
|
|
129
|
+
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/* CFNumberFormatter.h
|
|
2
|
+
Copyright (c) 2003-2019, Apple Inc. and the Swift project authors
|
|
3
|
+
|
|
4
|
+
Portions Copyright (c) 2014-2019, Apple Inc. and the Swift project authors
|
|
5
|
+
Licensed under Apache License v2.0 with Runtime Library Exception
|
|
6
|
+
See http://swift.org/LICENSE.txt for license information
|
|
7
|
+
See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#if !defined(__COREFOUNDATION_CFNUMBERFORMATTER__)
|
|
11
|
+
#define __COREFOUNDATION_CFNUMBERFORMATTER__ 1
|
|
12
|
+
|
|
13
|
+
#include "CFBase.h"
|
|
14
|
+
#include "CFNumber.h"
|
|
15
|
+
#include "CFLocale.h"
|
|
16
|
+
|
|
17
|
+
CF_IMPLICIT_BRIDGING_ENABLED
|
|
18
|
+
CF_EXTERN_C_BEGIN
|
|
19
|
+
|
|
20
|
+
typedef CFStringRef CFNumberFormatterKey CF_STRING_ENUM;
|
|
21
|
+
|
|
22
|
+
typedef struct CF_BRIDGED_MUTABLE_TYPE(id) __CFNumberFormatter *CFNumberFormatterRef;
|
|
23
|
+
|
|
24
|
+
// CFNumberFormatters are not thread-safe. Do not use one from multiple threads!
|
|
25
|
+
|
|
26
|
+
CF_EXPORT
|
|
27
|
+
CFTypeID CFNumberFormatterGetTypeID(void);
|
|
28
|
+
|
|
29
|
+
typedef CF_ENUM(CFIndex, CFNumberFormatterStyle) { // number format styles
|
|
30
|
+
kCFNumberFormatterNoStyle = 0,
|
|
31
|
+
kCFNumberFormatterDecimalStyle = 1,
|
|
32
|
+
kCFNumberFormatterCurrencyStyle = 2,
|
|
33
|
+
kCFNumberFormatterPercentStyle = 3,
|
|
34
|
+
kCFNumberFormatterScientificStyle = 4,
|
|
35
|
+
kCFNumberFormatterSpellOutStyle = 5,
|
|
36
|
+
kCFNumberFormatterOrdinalStyle API_AVAILABLE(macos(10.11), ios(9.0), watchos(2.0), tvos(9.0)) = 6,
|
|
37
|
+
kCFNumberFormatterCurrencyISOCodeStyle API_AVAILABLE(macos(10.11), ios(9.0), watchos(2.0), tvos(9.0)) = 8,
|
|
38
|
+
kCFNumberFormatterCurrencyPluralStyle API_AVAILABLE(macos(10.11), ios(9.0), watchos(2.0), tvos(9.0)) = 9,
|
|
39
|
+
kCFNumberFormatterCurrencyAccountingStyle API_AVAILABLE(macos(10.11), ios(9.0), watchos(2.0), tvos(9.0)) = 10,
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
CF_EXPORT
|
|
44
|
+
CFNumberFormatterRef CFNumberFormatterCreate(CFAllocatorRef allocator, CFLocaleRef locale, CFNumberFormatterStyle style);
|
|
45
|
+
// Returns a CFNumberFormatter, localized to the given locale, which
|
|
46
|
+
// will format numbers to the given style.
|
|
47
|
+
|
|
48
|
+
CF_EXPORT
|
|
49
|
+
CFLocaleRef CFNumberFormatterGetLocale(CFNumberFormatterRef formatter);
|
|
50
|
+
|
|
51
|
+
CF_EXPORT
|
|
52
|
+
CFNumberFormatterStyle CFNumberFormatterGetStyle(CFNumberFormatterRef formatter);
|
|
53
|
+
// Get the properties with which the number formatter was created.
|
|
54
|
+
|
|
55
|
+
CF_EXPORT
|
|
56
|
+
CFStringRef CFNumberFormatterGetFormat(CFNumberFormatterRef formatter);
|
|
57
|
+
|
|
58
|
+
CF_EXPORT
|
|
59
|
+
void CFNumberFormatterSetFormat(CFNumberFormatterRef formatter, CFStringRef formatString);
|
|
60
|
+
// Set the format description string of the number formatter. This
|
|
61
|
+
// overrides the style settings. The format of the format string
|
|
62
|
+
// is as defined by the ICU library, and is similar to that found
|
|
63
|
+
// in Microsoft Excel and NSNumberFormatter.
|
|
64
|
+
// The number formatter starts with a default format string defined
|
|
65
|
+
// by the style argument with which it was created.
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
CF_EXPORT
|
|
69
|
+
CFStringRef CFNumberFormatterCreateStringWithNumber(CFAllocatorRef allocator, CFNumberFormatterRef formatter, CFNumberRef number);
|
|
70
|
+
|
|
71
|
+
CF_EXPORT
|
|
72
|
+
CFStringRef CFNumberFormatterCreateStringWithValue(CFAllocatorRef allocator, CFNumberFormatterRef formatter, CFNumberType numberType, const void *valuePtr);
|
|
73
|
+
// Create a string representation of the given number or value
|
|
74
|
+
// using the current state of the number formatter.
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
typedef CF_OPTIONS(CFOptionFlags, CFNumberFormatterOptionFlags) {
|
|
78
|
+
kCFNumberFormatterParseIntegersOnly = 1 /* only parse integers */
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
CF_EXPORT
|
|
82
|
+
CFNumberRef CFNumberFormatterCreateNumberFromString(CFAllocatorRef allocator, CFNumberFormatterRef formatter, CFStringRef string, CFRange *rangep, CFOptionFlags options);
|
|
83
|
+
|
|
84
|
+
CF_EXPORT
|
|
85
|
+
Boolean CFNumberFormatterGetValueFromString(CFNumberFormatterRef formatter, CFStringRef string, CFRange *rangep, CFNumberType numberType, void *valuePtr);
|
|
86
|
+
// Parse a string representation of a number using the current state
|
|
87
|
+
// of the number formatter. The range parameter specifies the range
|
|
88
|
+
// of the string in which the parsing should occur in input, and on
|
|
89
|
+
// output indicates the extent that was used; this parameter can
|
|
90
|
+
// be NULL, in which case the whole string may be used. The
|
|
91
|
+
// return value indicates whether some number was computed and
|
|
92
|
+
// (if valuePtr is not NULL) stored at the location specified by
|
|
93
|
+
// valuePtr. The numberType indicates the type of value pointed
|
|
94
|
+
// to by valuePtr.
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
CF_EXPORT
|
|
98
|
+
void CFNumberFormatterSetProperty(CFNumberFormatterRef formatter, CFNumberFormatterKey key, CFTypeRef value);
|
|
99
|
+
|
|
100
|
+
CF_EXPORT
|
|
101
|
+
CFTypeRef CFNumberFormatterCopyProperty(CFNumberFormatterRef formatter, CFNumberFormatterKey key);
|
|
102
|
+
// Set and get various properties of the number formatter, the set of
|
|
103
|
+
// which may be expanded in the future.
|
|
104
|
+
|
|
105
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterCurrencyCode; // CFString
|
|
106
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterDecimalSeparator; // CFString
|
|
107
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterCurrencyDecimalSeparator; // CFString
|
|
108
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterAlwaysShowDecimalSeparator; // CFBoolean
|
|
109
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterGroupingSeparator; // CFString
|
|
110
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterUseGroupingSeparator; // CFBoolean
|
|
111
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterPercentSymbol; // CFString
|
|
112
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterZeroSymbol; // CFString
|
|
113
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterNaNSymbol; // CFString
|
|
114
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterInfinitySymbol; // CFString
|
|
115
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterMinusSign; // CFString
|
|
116
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterPlusSign; // CFString
|
|
117
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterCurrencySymbol; // CFString
|
|
118
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterExponentSymbol; // CFString
|
|
119
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterMinIntegerDigits; // CFNumber
|
|
120
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterMaxIntegerDigits; // CFNumber
|
|
121
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterMinFractionDigits; // CFNumber
|
|
122
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterMaxFractionDigits; // CFNumber
|
|
123
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterGroupingSize; // CFNumber
|
|
124
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterSecondaryGroupingSize; // CFNumber
|
|
125
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterRoundingMode; // CFNumber
|
|
126
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterRoundingIncrement; // CFNumber
|
|
127
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterFormatWidth; // CFNumber
|
|
128
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterPaddingPosition; // CFNumber
|
|
129
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterPaddingCharacter; // CFString
|
|
130
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterDefaultFormat; // CFString
|
|
131
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterMultiplier; // CFNumber
|
|
132
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterPositivePrefix; // CFString
|
|
133
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterPositiveSuffix; // CFString
|
|
134
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterNegativePrefix; // CFString
|
|
135
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterNegativeSuffix; // CFString
|
|
136
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterPerMillSymbol; // CFString
|
|
137
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterInternationalCurrencySymbol; // CFString
|
|
138
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterCurrencyGroupingSeparator API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0)); // CFString
|
|
139
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterIsLenient API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0)); // CFBoolean
|
|
140
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterUseSignificantDigits API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0)); // CFBoolean
|
|
141
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterMinSignificantDigits API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0)); // CFNumber
|
|
142
|
+
CF_EXPORT const CFNumberFormatterKey kCFNumberFormatterMaxSignificantDigits API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0)); // CFNumber
|
|
143
|
+
|
|
144
|
+
typedef CF_ENUM(CFIndex, CFNumberFormatterRoundingMode) {
|
|
145
|
+
kCFNumberFormatterRoundCeiling = 0,
|
|
146
|
+
kCFNumberFormatterRoundFloor = 1,
|
|
147
|
+
kCFNumberFormatterRoundDown = 2,
|
|
148
|
+
kCFNumberFormatterRoundUp = 3,
|
|
149
|
+
kCFNumberFormatterRoundHalfEven = 4,
|
|
150
|
+
kCFNumberFormatterRoundHalfDown = 5,
|
|
151
|
+
kCFNumberFormatterRoundHalfUp = 6
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
typedef CF_ENUM(CFIndex, CFNumberFormatterPadPosition) {
|
|
155
|
+
kCFNumberFormatterPadBeforePrefix = 0,
|
|
156
|
+
kCFNumberFormatterPadAfterPrefix = 1,
|
|
157
|
+
kCFNumberFormatterPadBeforeSuffix = 2,
|
|
158
|
+
kCFNumberFormatterPadAfterSuffix = 3
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
CF_EXPORT
|
|
163
|
+
Boolean CFNumberFormatterGetDecimalInfoForCurrencyCode(CFStringRef currencyCode, int32_t *defaultFractionDigits, double *roundingIncrement);
|
|
164
|
+
// Returns the number of fraction digits that should be displayed, and
|
|
165
|
+
// the rounding increment (or 0.0 if no rounding is done by the currency)
|
|
166
|
+
// for the given currency. Returns false if the currency code is unknown
|
|
167
|
+
// or the information is not available.
|
|
168
|
+
// Not localized because these are properties of the currency.
|
|
169
|
+
|
|
170
|
+
CF_EXTERN_C_END
|
|
171
|
+
CF_IMPLICIT_BRIDGING_DISABLED
|
|
172
|
+
|
|
173
|
+
#endif /* ! __COREFOUNDATION_CFNUMBERFORMATTER__ */
|
|
174
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* CFNumber_Private.h
|
|
2
|
+
Copyright (c) 1999-2019, Apple Inc. and the Swift project authors
|
|
3
|
+
|
|
4
|
+
Portions Copyright (c) 2014-2019, Apple Inc. and the Swift project authors
|
|
5
|
+
Licensed under Apache License v2.0 with Runtime Library Exception
|
|
6
|
+
See http://swift.org/LICENSE.txt for license information
|
|
7
|
+
See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#if !defined(__COREFOUNDATION_CFNUMBER_PRIVATE__)
|
|
11
|
+
#define __COREFOUNDATION_CFNUMBER_PRIVATE__ 1
|
|
12
|
+
|
|
13
|
+
#include "CFNumber.h"
|
|
14
|
+
|
|
15
|
+
CF_IMPLICIT_BRIDGING_ENABLED
|
|
16
|
+
CF_EXTERN_C_BEGIN
|
|
17
|
+
|
|
18
|
+
typedef struct {
|
|
19
|
+
int64_t high;
|
|
20
|
+
uint64_t low;
|
|
21
|
+
} CFSInt128Struct;
|
|
22
|
+
|
|
23
|
+
enum {
|
|
24
|
+
kCFNumberSInt128Type = 17
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
CF_EXTERN_C_END
|
|
28
|
+
CF_IMPLICIT_BRIDGING_DISABLED
|
|
29
|
+
|
|
30
|
+
#endif /* ! __COREFOUNDATION_CFNUMBER_PRIVATE__ */
|
package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFOverflow.h
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* CFOverflow.h
|
|
2
|
+
Copyright (c) 2017-2019, Apple Inc. and the Swift project authors
|
|
3
|
+
|
|
4
|
+
Portions Copyright (c) 2017-2019, Apple Inc. and the Swift project authors
|
|
5
|
+
Licensed under Apache License v2.0 with Runtime Library Exception
|
|
6
|
+
See http://swift.org/LICENSE.txt for license information
|
|
7
|
+
See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
#ifndef CFOverflow_h
|
|
11
|
+
#define CFOverflow_h
|
|
12
|
+
|
|
13
|
+
#include "CFBase.h"
|
|
14
|
+
|
|
15
|
+
static bool __os_warn_unused(bool x) __attribute__((__warn_unused_result__));
|
|
16
|
+
static bool __os_warn_unused(bool x) { return x; }
|
|
17
|
+
|
|
18
|
+
#if __has_builtin(__builtin_add_overflow) && \
|
|
19
|
+
__has_builtin(__builtin_sub_overflow) && \
|
|
20
|
+
__has_builtin(__builtin_mul_overflow)
|
|
21
|
+
|
|
22
|
+
#define os_add_overflow(a, b, res) __os_warn_unused(__builtin_add_overflow((a), (b), (res)))
|
|
23
|
+
#define os_sub_overflow(a, b, res) __os_warn_unused(__builtin_sub_overflow((a), (b), (res)))
|
|
24
|
+
#define os_mul_overflow(a, b, res) __os_warn_unused(__builtin_mul_overflow((a), (b), (res)))
|
|
25
|
+
|
|
26
|
+
#else
|
|
27
|
+
#error Missing compiler support for overflow checking
|
|
28
|
+
#endif
|
|
29
|
+
|
|
30
|
+
typedef CF_ENUM(uint8_t, _CFOverflowResult) {
|
|
31
|
+
_CFOverflowResultOK = 0,
|
|
32
|
+
_CFOverflowResultNegativeParameters,
|
|
33
|
+
_CFOverflowResultOverflows,
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
// Overflow utilities for positive integers
|
|
37
|
+
CF_INLINE _CFOverflowResult _CFPositiveIntegerProductWouldOverflow(CFIndex si_a, CFIndex si_b, CFIndex * /*_Nullable*/ outSum) {
|
|
38
|
+
_CFOverflowResult result = _CFOverflowResultOK;
|
|
39
|
+
CFIndex sum = 0;
|
|
40
|
+
if (si_a < 0 || si_b < 0) {
|
|
41
|
+
// we explicitly only implement a subset of the overflow checking, so report failure if out of domain
|
|
42
|
+
result = _CFOverflowResultNegativeParameters;
|
|
43
|
+
} else {
|
|
44
|
+
if (os_mul_overflow(si_a, si_b, &sum)) {
|
|
45
|
+
result = _CFOverflowResultOverflows;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
if (outSum) {
|
|
49
|
+
*outSum = sum;
|
|
50
|
+
}
|
|
51
|
+
return result;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
CF_INLINE _CFOverflowResult _CFPointerSumWouldOverflow(void const *p, size_t n, void * /*_Nullable*/ * /*_Nullable*/ outSum) {
|
|
55
|
+
_CFOverflowResult result = _CFOverflowResultOK;
|
|
56
|
+
#if TARGET_RT_64_BIT
|
|
57
|
+
uint64_t sum = 0;
|
|
58
|
+
uint64_t const lhs = (uint64_t)p;
|
|
59
|
+
uint64_t const rhs = (uint64_t)n;
|
|
60
|
+
#else
|
|
61
|
+
uint32_t sum = 0;
|
|
62
|
+
uint32_t const lhs = (uint32_t)p;
|
|
63
|
+
uint32_t const rhs = (uint32_t)n;
|
|
64
|
+
#endif
|
|
65
|
+
if (os_add_overflow(lhs, rhs, &sum)) {
|
|
66
|
+
result = _CFOverflowResultOverflows;
|
|
67
|
+
}
|
|
68
|
+
if (outSum) {
|
|
69
|
+
*outSum = (void *)sum;
|
|
70
|
+
}
|
|
71
|
+
return result;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
#if TARGET_OS_WIN32
|
|
75
|
+
CF_INLINE bool _CFMultiplyBufferSizeWithoutOverflow(size_t a, size_t b, size_t *res) {
|
|
76
|
+
int32_t res32 = 0;
|
|
77
|
+
if (!os_mul_overflow((int32_t)a, (int32_t)b, &res32)) {
|
|
78
|
+
*res = res32;
|
|
79
|
+
return true;
|
|
80
|
+
} else {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
#else
|
|
85
|
+
#define _CFMultiplyBufferSizeWithoutOverflow(a, b, res) (os_mul_overflow((a), (b), (res)) == 0)
|
|
86
|
+
#endif
|
|
87
|
+
|
|
88
|
+
#endif /* CFOverflow_h */
|