@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
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
/* CFError.h
|
|
2
|
+
Copyright (c) 2006-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
|
+
@header CFError
|
|
12
|
+
@discussion
|
|
13
|
+
CFErrors are used to encompass information about errors. At minimum, errors are identified by their domain (a string) and an error code within that domain. In addition a "userInfo" dictionary supplied at creation time enables providing additional info that might be useful for the interpretation and reporting of the error. This dictionary can even contain an "underlying" error, which is wrapped as an error bubbles up through various layers.
|
|
14
|
+
|
|
15
|
+
CFErrors have the ability to provide human-readable descriptions for the errors; in fact, they are designed to provide localizable, end-user presentable errors that can appear in the UI. CFError has a number of predefined userInfo keys to enable developers to supply the info.
|
|
16
|
+
|
|
17
|
+
Usage recommendation for CFErrors is to return them as by-ref parameters in functions. This enables the caller to pass NULL in when they don't actually want information about the error. The presence of an error should be reported by other means, for instance a NULL or false return value from the function call proper:
|
|
18
|
+
|
|
19
|
+
CFError *error;
|
|
20
|
+
if (!ReadFromFile(fd, &error)) {
|
|
21
|
+
... process error ...
|
|
22
|
+
CFRelease(error); // If an error occurs, the returned CFError must be released.
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
It is the responsibility of anyone returning CFErrors this way to:
|
|
26
|
+
- Not touch the error argument if no error occurs
|
|
27
|
+
- Create and assign the error for return only if the error argument is non-NULL
|
|
28
|
+
|
|
29
|
+
In addition, it's recommended that CFErrors be used in error situations only (not status), and where there are multiple possible errors to distinguish between. For instance there is no plan to add CFErrors to existing APIs in CF which currently don't return errors; in many cases, there is one possible reason for failure, and a false or NULL return is enough to indicate it.
|
|
30
|
+
|
|
31
|
+
CFError is toll-free bridged to NSError in Foundation. NSError in Foundation has some additional guidelines which makes it easy to automatically report errors to users and even try to recover from them. See http://developer.apple.com/documentation/Cocoa/Conceptual/ErrorHandlingCocoa/ErrorHandling/chapter_1_section_1.html for more info on NSError programming guidelines.
|
|
32
|
+
*/
|
|
33
|
+
|
|
34
|
+
#if !defined(__COREFOUNDATION_CFERROR__)
|
|
35
|
+
#define __COREFOUNDATION_CFERROR__ 1
|
|
36
|
+
|
|
37
|
+
#include "CFBase.h"
|
|
38
|
+
#include "CFString.h"
|
|
39
|
+
#include "CFDictionary.h"
|
|
40
|
+
|
|
41
|
+
CF_IMPLICIT_BRIDGING_ENABLED
|
|
42
|
+
CF_EXTERN_C_BEGIN
|
|
43
|
+
|
|
44
|
+
typedef CFStringRef CFErrorDomain CF_EXTENSIBLE_STRING_ENUM;
|
|
45
|
+
|
|
46
|
+
/*!
|
|
47
|
+
@typedef CFErrorRef
|
|
48
|
+
This is the type of a reference to CFErrors. CFErrorRef is toll-free bridged with NSError.
|
|
49
|
+
*/
|
|
50
|
+
typedef struct CF_BRIDGED_TYPE(NSError) __CFError * CFErrorRef;
|
|
51
|
+
|
|
52
|
+
/*!
|
|
53
|
+
@function CFErrorGetTypeID
|
|
54
|
+
Returns the type identifier of all CFError instances.
|
|
55
|
+
*/
|
|
56
|
+
CF_EXPORT
|
|
57
|
+
CFTypeID CFErrorGetTypeID(void) API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
// Predefined domains; value of "code" will correspond to preexisting values in these domains.
|
|
61
|
+
CF_EXPORT const CFErrorDomain kCFErrorDomainPOSIX API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
|
|
62
|
+
CF_EXPORT const CFErrorDomain kCFErrorDomainOSStatus API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
|
|
63
|
+
CF_EXPORT const CFErrorDomain kCFErrorDomainMach API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
|
|
64
|
+
CF_EXPORT const CFErrorDomain kCFErrorDomainCocoa API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
|
|
65
|
+
|
|
66
|
+
// Keys in userInfo for localizable, end-user presentable error messages. At minimum provide kCFErrorLocalizedDescriptionKey, or add kCFErrorLocalizedFailureKey into errors generated by lower levels to have it combine with kCFErrorLocalizedFailureReasonKey.
|
|
67
|
+
CF_EXPORT const CFStringRef kCFErrorLocalizedDescriptionKey API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0)); // Key to identify the end user-presentable description in userInfo. Should be one or more complete sentence(s) describing both what failed and why. For instance 'You can't save the file "To Do List" because the volume "Macintosh HD" is out of space.'
|
|
68
|
+
CF_EXPORT const CFStringRef kCFErrorLocalizedFailureKey API_AVAILABLE(macos(10.13), ios(11.0), watchos(4.0), tvos(11.0)); // Key to identify the end user-presentable failing operation ("what failed") description in userInfo. Should be one or more complete sentence(s), for instance 'The file "To Do List" couldn't be saved.'
|
|
69
|
+
CF_EXPORT const CFStringRef kCFErrorLocalizedFailureReasonKey API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0)); // Key to identify the end user-presentable failure reason ("why it failed") description in userInfo. Should be one or more complete sentence(s), for instance 'The volume "Macintosh HD" is out of space.'
|
|
70
|
+
CF_EXPORT const CFStringRef kCFErrorLocalizedRecoverySuggestionKey API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0)); // Key to identify the end user-presentable recovery suggestion in userInfo. Should be one or more complete sentence(s), for instance 'Remove some files from the volume, and then try again.'
|
|
71
|
+
|
|
72
|
+
// If you do not have localizable error strings, you can provide a value for this key instead.
|
|
73
|
+
CF_EXPORT const CFStringRef kCFErrorDescriptionKey API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0)); // Key to identify the description in the userInfo dictionary. Should be a complete sentence if possible. Should not contain domain name or error code.
|
|
74
|
+
|
|
75
|
+
// Other keys in userInfo.
|
|
76
|
+
CF_EXPORT const CFStringRef kCFErrorUnderlyingErrorKey API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0)); // Key to identify the underlying error in userInfo.
|
|
77
|
+
CF_EXPORT const CFStringRef kCFErrorURLKey API_AVAILABLE(macos(10.7), ios(5.0), watchos(2.0), tvos(9.0)); // Key to identify associated URL in userInfo. Typically one of this or kCFErrorFilePathKey is provided.
|
|
78
|
+
CF_EXPORT const CFStringRef kCFErrorFilePathKey API_AVAILABLE(macos(10.7), ios(5.0), watchos(2.0), tvos(9.0)); // Key to identify associated file path in userInfo. Typically one of this or kCFErrorURLKey is provided.
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
/*!
|
|
82
|
+
@function CFErrorCreate
|
|
83
|
+
@abstract Creates a new CFError.
|
|
84
|
+
@param allocator The CFAllocator which should be used to allocate memory for the error. This parameter may be NULL in which case the
|
|
85
|
+
current default CFAllocator is used. If this reference is not a valid CFAllocator, the behavior is undefined.
|
|
86
|
+
@param domain A CFString identifying the error domain. If this reference is NULL or is otherwise not a valid CFString, the behavior is undefined.
|
|
87
|
+
@param code A CFIndex identifying the error code. The code is interpreted within the context of the error domain.
|
|
88
|
+
@param userInfo A CFDictionary created with kCFCopyStringDictionaryKeyCallBacks and kCFTypeDictionaryValueCallBacks. It will be copied with CFDictionaryCreateCopy().
|
|
89
|
+
If no userInfo dictionary is desired, NULL may be passed in as a convenience, in which case an empty userInfo dictionary will be assigned.
|
|
90
|
+
@result A reference to the new CFError.
|
|
91
|
+
*/
|
|
92
|
+
CF_EXPORT
|
|
93
|
+
CFErrorRef CFErrorCreate(CFAllocatorRef allocator, CFErrorDomain domain, CFIndex code, CFDictionaryRef userInfo) API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
|
|
94
|
+
|
|
95
|
+
/*!
|
|
96
|
+
@function CFErrorCreateWithUserInfoKeysAndValues
|
|
97
|
+
@abstract Creates a new CFError without having to create an intermediate userInfo dictionary.
|
|
98
|
+
@param allocator The CFAllocator which should be used to allocate memory for the error. This parameter may be NULL in which case the
|
|
99
|
+
current default CFAllocator is used. If this reference is not a valid CFAllocator, the behavior is undefined.
|
|
100
|
+
@param domain A CFString identifying the error domain. If this reference is NULL or is otherwise not a valid CFString, the behavior is undefined.
|
|
101
|
+
@param code A CFIndex identifying the error code. The code is interpreted within the context of the error domain.
|
|
102
|
+
@param userInfoKeys An array of numUserInfoValues CFStrings used as keys in creating the userInfo dictionary. NULL is valid only if numUserInfoValues is 0.
|
|
103
|
+
@param userInfoValues An array of numUserInfoValues CF types used as values in creating the userInfo dictionary. NULL is valid only if numUserInfoValues is 0.
|
|
104
|
+
@param numUserInfoValues CFIndex representing the number of keys and values in the userInfoKeys and userInfoValues arrays.
|
|
105
|
+
@result A reference to the new CFError. numUserInfoValues CF types are gathered from each of userInfoKeys and userInfoValues to create the userInfo dictionary.
|
|
106
|
+
*/
|
|
107
|
+
CF_EXPORT
|
|
108
|
+
CFErrorRef CFErrorCreateWithUserInfoKeysAndValues(CFAllocatorRef allocator, CFErrorDomain domain, CFIndex code, const void *const *userInfoKeys, const void *const *userInfoValues, CFIndex numUserInfoValues) API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
|
|
109
|
+
|
|
110
|
+
/*!
|
|
111
|
+
@function CFErrorGetDomain
|
|
112
|
+
@abstract Returns the error domain the CFError was created with.
|
|
113
|
+
@param err The CFError whose error domain is to be returned. If this reference is not a valid CFError, the behavior is undefined.
|
|
114
|
+
@result The error domain of the CFError. Since this is a "Get" function, the caller shouldn't CFRelease the return value.
|
|
115
|
+
*/
|
|
116
|
+
CF_EXPORT
|
|
117
|
+
CFErrorDomain CFErrorGetDomain(CFErrorRef err) API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
|
|
118
|
+
|
|
119
|
+
/*!
|
|
120
|
+
@function CFErrorGetCode
|
|
121
|
+
@abstract Returns the error code the CFError was created with.
|
|
122
|
+
@param err The CFError whose error code is to be returned. If this reference is not a valid CFError, the behavior is undefined.
|
|
123
|
+
@result The error code of the CFError (not an error return for the current call).
|
|
124
|
+
*/
|
|
125
|
+
CF_EXPORT
|
|
126
|
+
CFIndex CFErrorGetCode(CFErrorRef err) API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
|
|
127
|
+
|
|
128
|
+
/*!
|
|
129
|
+
@function CFErrorCopyUserInfo
|
|
130
|
+
@abstract Returns CFError userInfo dictionary.
|
|
131
|
+
@discussion Returns a dictionary containing the same keys and values as in the userInfo dictionary the CFError was created with. Returns an empty dictionary if NULL was supplied to CFErrorCreate().
|
|
132
|
+
@param err The CFError whose error user info is to be returned. If this reference is not a valid CFError, the behavior is undefined.
|
|
133
|
+
@result The user info of the CFError.
|
|
134
|
+
*/
|
|
135
|
+
CF_EXPORT
|
|
136
|
+
CFDictionaryRef CFErrorCopyUserInfo(CFErrorRef err) API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
|
|
137
|
+
|
|
138
|
+
/*!
|
|
139
|
+
@function CFErrorCopyDescription
|
|
140
|
+
@abstract Returns a human-presentable description for the error. CFError creators should strive to make sure the return value is human-presentable and localized by providing a value for kCFErrorLocalizedDescriptionKey at the time of CFError creation.
|
|
141
|
+
@discussion This is a complete sentence or two which says what failed and why it failed. Please refer to header comments for -[NSError localizedDescription] for details on the steps used to compute this; but roughly:
|
|
142
|
+
- Use value of kCFErrorLocalizedDescriptionKey as-is if provided.
|
|
143
|
+
- Use value of kCFErrorLocalizedFailureKey if provided, optionally followed by kCFErrorLocalizedFailureReasonKey if available.
|
|
144
|
+
- Use value of kCFErrorLocalizedFailureReasonKey, combining with a generic failure message such as: "Operation code not be completed. " + kCFErrorLocalizedFailureReasonKey.
|
|
145
|
+
- If all of the above fail, generate a semi-user presentable string from kCFErrorDescriptionKey, the domain, and code. Something like: "Operation could not be completed. Error domain/code occurred. " or "Operation could not be completed. " + kCFErrorDescriptionKey + " (Error domain/code)"
|
|
146
|
+
Toll-free bridged NSError instances might provide additional behaviors for manufacturing a description string. Do not count on the exact contents or format of the returned string, it might change.
|
|
147
|
+
@param err The CFError whose description is to be returned. If this reference is not a valid CFError, the behavior is undefined.
|
|
148
|
+
@result A CFString with human-presentable description of the CFError. Never NULL.
|
|
149
|
+
*/
|
|
150
|
+
CF_EXPORT
|
|
151
|
+
CFStringRef CFErrorCopyDescription(CFErrorRef err) API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
|
|
152
|
+
|
|
153
|
+
/*!
|
|
154
|
+
@function CFErrorCopyFailureReason
|
|
155
|
+
@abstract Returns a human-presentable failure reason for the error. May return NULL. CFError creators should strive to make sure the return value is human-presentable and localized by providing a value for kCFErrorLocalizedFailureReasonKey at the time of CFError creation.
|
|
156
|
+
@discussion This is a complete sentence which describes why the operation failed. In many cases this will be just the "because" part of the description (but as a complete sentence, which makes localization easier). By default this looks for kCFErrorLocalizedFailureReasonKey in the user info. Toll-free bridged NSError instances might provide additional behaviors for manufacturing this value. If no user-presentable string is available, returns NULL.
|
|
157
|
+
Example Description: "Could not save file 'Letter' in folder 'Documents' because the volume 'MyDisk' doesn't have enough space."
|
|
158
|
+
Corresponding FailureReason: "The volume 'MyDisk' doesn't have enough space."
|
|
159
|
+
@param err The CFError whose failure reason is to be returned. If this reference is not a valid CFError, the behavior is undefined.
|
|
160
|
+
@result A CFString with the localized, end-user presentable failure reason of the CFError, or NULL.
|
|
161
|
+
*/
|
|
162
|
+
CF_EXPORT
|
|
163
|
+
CFStringRef CFErrorCopyFailureReason(CFErrorRef err) API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
|
|
164
|
+
|
|
165
|
+
/*!
|
|
166
|
+
@function CFErrorCopyRecoverySuggestion
|
|
167
|
+
@abstract Returns a human presentable recovery suggestion for the error. May return NULL. CFError creators should strive to make sure the return value is human-presentable and localized by providing a value for kCFErrorLocalizedRecoverySuggestionKey at the time of CFError creation.
|
|
168
|
+
@discussion This is the string that can be displayed as the "informative" (aka "secondary") message on an alert panel. By default this looks for kCFErrorLocalizedRecoverySuggestionKey in the user info. Toll-free bridged NSError instances might provide additional behaviors for manufacturing this value. If no user-presentable string is available, returns NULL.
|
|
169
|
+
Example Description: "Could not save file 'Letter' in folder 'Documents' because the volume 'MyDisk' doesn't have enough space."
|
|
170
|
+
Corresponding RecoverySuggestion: "Remove some files from the volume and try again."
|
|
171
|
+
@param err The CFError whose recovery suggestion is to be returned. If this reference is not a valid CFError, the behavior is undefined.
|
|
172
|
+
@result A CFString with the localized, end-user presentable recovery suggestion of the CFError, or NULL.
|
|
173
|
+
*/
|
|
174
|
+
CF_EXPORT
|
|
175
|
+
CFStringRef CFErrorCopyRecoverySuggestion(CFErrorRef err) API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
CF_EXTERN_C_END
|
|
180
|
+
CF_IMPLICIT_BRIDGING_DISABLED
|
|
181
|
+
|
|
182
|
+
#endif /* ! __COREFOUNDATION_CFERROR__ */
|
|
183
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* CFError_Private.h
|
|
2
|
+
Copyright (c) 2006-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
|
+
This is Apple-internal SPI for CFError.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
#if !defined(__COREFOUNDATION_CFERRORPRIVATE__)
|
|
13
|
+
#define __COREFOUNDATION_CFERRORPRIVATE__ 1
|
|
14
|
+
|
|
15
|
+
#include "CFError.h"
|
|
16
|
+
|
|
17
|
+
CF_EXTERN_C_BEGIN
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
/* A key for "true" debugging descriptions which should never be shown to the user. It's only used when the CFError is shown to the console, and nothing else is available. For instance the rather terse and techie OSStatus descriptions are in this boat.
|
|
21
|
+
*/
|
|
22
|
+
CF_EXPORT const CFStringRef kCFErrorDebugDescriptionKey API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
|
|
23
|
+
|
|
24
|
+
CF_EXTERN_C_END
|
|
25
|
+
|
|
26
|
+
#endif /* ! __COREFOUNDATION_CFERRORPRIVATE__ */
|
|
27
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* CFKnownLocations.h
|
|
2
|
+
Copyright (c) 1999-2017, Apple Inc. and the Swift project authors
|
|
3
|
+
|
|
4
|
+
Portions Copyright (c) 2014-2017, 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_CFKNOWNLOCATIONS__)
|
|
11
|
+
#define __COREFOUNDATION_CFKNOWNLOCATIONS__ 1
|
|
12
|
+
|
|
13
|
+
#include "CFBase.h"
|
|
14
|
+
#include "CFURL.h"
|
|
15
|
+
|
|
16
|
+
CF_ASSUME_NONNULL_BEGIN
|
|
17
|
+
|
|
18
|
+
typedef CF_ENUM(CFIndex, CFKnownLocationUser) {
|
|
19
|
+
_kCFKnownLocationUserAny,
|
|
20
|
+
_kCFKnownLocationUserCurrent,
|
|
21
|
+
_kCFKnownLocationUserByName,
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/* A note on support:
|
|
25
|
+
|
|
26
|
+
- We document that CFPreferences… can only take AnyUser or CurrentUser as users.
|
|
27
|
+
- The code we shipped so far accepted the name of any one user on the current system as an alternative, but:
|
|
28
|
+
- For platforms that use the XDG spec to identify a configuration path in a user's home, we cannot determine that path for any user other than the one we're currently running as.
|
|
29
|
+
|
|
30
|
+
So:
|
|
31
|
+
- We're keeping that behavior when building Core Foundation for Darwin/ObjC for compatibility, hence the _EXTENSIBLE above; on those platforms, the …ByName enum will continue working to get locations for arbitrary usernames. But:
|
|
32
|
+
- For Swift and any new platform, we are enforcing the documented constraint. Using a user value other than …Any or …Current above will assert (or return NULL if asserts are off).
|
|
33
|
+
|
|
34
|
+
See CFKnownLocations.c for a summary of what paths are returned.
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
// The username parameter is ignored for any user constant other than …ByName. …ByName with a NULL username is the same as …Current.
|
|
38
|
+
extern CFURLRef _Nullable _CFKnownLocationCreatePreferencesURLForUser(CFKnownLocationUser user, CFStringRef _Nullable username);
|
|
39
|
+
|
|
40
|
+
CF_ASSUME_NONNULL_END
|
|
41
|
+
|
|
42
|
+
#endif /* __COREFOUNDATION_CFKNOWNLOCATIONS__ */
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* CFListFormatter.h
|
|
2
|
+
Copyright (c) 2018-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
|
+
#ifndef __COREFOUNDATION_CFLISTFORMATTER_h
|
|
11
|
+
#define __COREFOUNDATION_CFLISTFORMATTER_h
|
|
12
|
+
|
|
13
|
+
#include "CFBase.h"
|
|
14
|
+
#include "CFLocale.h"
|
|
15
|
+
|
|
16
|
+
CF_IMPLICIT_BRIDGING_ENABLED
|
|
17
|
+
CF_EXTERN_C_BEGIN
|
|
18
|
+
CF_ASSUME_NONNULL_BEGIN
|
|
19
|
+
|
|
20
|
+
typedef struct CF_BRIDGED_TYPE(id) __CFListFormatter *CFListFormatterRef;
|
|
21
|
+
|
|
22
|
+
CF_EXPORT
|
|
23
|
+
CFTypeID _CFListFormatterGetTypeID(void);
|
|
24
|
+
|
|
25
|
+
CFListFormatterRef _Nullable _CFListFormatterCreate(CFAllocatorRef allocator, CFLocaleRef locale);
|
|
26
|
+
CFStringRef _Nullable _CFListFormatterCreateStringByJoiningStrings(CFAllocatorRef allocator, CFListFormatterRef formatter, const CFArrayRef strings);
|
|
27
|
+
|
|
28
|
+
CF_ASSUME_NONNULL_END
|
|
29
|
+
CF_EXTERN_C_END
|
|
30
|
+
CF_IMPLICIT_BRIDGING_DISABLED
|
|
31
|
+
|
|
32
|
+
#endif // __COREFOUNDATION_CFLISTFORMATTER_h
|
package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFLocale.h
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
/* CFLocale.h
|
|
2
|
+
Copyright (c) 2002-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_CFLOCALE__)
|
|
11
|
+
#define __COREFOUNDATION_CFLOCALE__ 1
|
|
12
|
+
|
|
13
|
+
#include "CFBase.h"
|
|
14
|
+
#include "CFArray.h"
|
|
15
|
+
#include "CFDictionary.h"
|
|
16
|
+
#include "CFNotificationCenter.h"
|
|
17
|
+
|
|
18
|
+
CF_IMPLICIT_BRIDGING_ENABLED
|
|
19
|
+
CF_EXTERN_C_BEGIN
|
|
20
|
+
|
|
21
|
+
typedef CFStringRef CFLocaleIdentifier CF_EXTENSIBLE_STRING_ENUM;
|
|
22
|
+
typedef CFStringRef CFLocaleKey CF_STRING_ENUM;
|
|
23
|
+
|
|
24
|
+
typedef const struct CF_BRIDGED_TYPE(NSLocale) __CFLocale *CFLocaleRef;
|
|
25
|
+
|
|
26
|
+
CF_EXPORT
|
|
27
|
+
CFTypeID CFLocaleGetTypeID(void);
|
|
28
|
+
|
|
29
|
+
CF_EXPORT
|
|
30
|
+
CFLocaleRef CFLocaleGetSystem(void);
|
|
31
|
+
// Returns the "root", canonical locale. Contains fixed "backstop" settings.
|
|
32
|
+
|
|
33
|
+
CF_EXPORT
|
|
34
|
+
CFLocaleRef CFLocaleCopyCurrent(void);
|
|
35
|
+
// Returns the logical "user" locale for the current user.
|
|
36
|
+
// [This is Copy in the sense that you get a retain you have to release,
|
|
37
|
+
// but we may return the same cached object over and over.] Settings
|
|
38
|
+
// you get from this locale do not change under you as CFPreferences
|
|
39
|
+
// are changed (for safety and correctness). Generally you would not
|
|
40
|
+
// grab this and hold onto it forever, but use it to do the operations
|
|
41
|
+
// you need to do at the moment, then throw it away. (The non-changing
|
|
42
|
+
// ensures that all the results of your operations are consistent.)
|
|
43
|
+
|
|
44
|
+
CF_EXPORT
|
|
45
|
+
CFArrayRef CFLocaleCopyAvailableLocaleIdentifiers(void);
|
|
46
|
+
// Returns an array of CFStrings that represents all locales for
|
|
47
|
+
// which locale data is available.
|
|
48
|
+
|
|
49
|
+
CF_EXPORT
|
|
50
|
+
CFArrayRef CFLocaleCopyISOLanguageCodes(void);
|
|
51
|
+
// Returns an array of CFStrings that represents all known legal ISO
|
|
52
|
+
// language codes. Note: many of these will not have any supporting
|
|
53
|
+
// locale data in Mac OS X.
|
|
54
|
+
|
|
55
|
+
CF_EXPORT
|
|
56
|
+
CFArrayRef CFLocaleCopyISOCountryCodes(void);
|
|
57
|
+
// Returns an array of CFStrings that represents all known legal ISO
|
|
58
|
+
// country codes. Note: many of these will not have any supporting
|
|
59
|
+
// locale data in Mac OS X.
|
|
60
|
+
|
|
61
|
+
CF_EXPORT
|
|
62
|
+
CFArrayRef CFLocaleCopyISOCurrencyCodes(void);
|
|
63
|
+
// Returns an array of CFStrings that represents all known legal ISO
|
|
64
|
+
// currency codes. Note: some of these currencies may be obsolete, or
|
|
65
|
+
// represent other financial instruments.
|
|
66
|
+
|
|
67
|
+
CF_EXPORT
|
|
68
|
+
CFArrayRef CFLocaleCopyCommonISOCurrencyCodes(void) API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
|
|
69
|
+
// Returns an array of CFStrings that represents ISO currency codes for
|
|
70
|
+
// currencies in common use.
|
|
71
|
+
|
|
72
|
+
CF_EXPORT
|
|
73
|
+
CFArrayRef CFLocaleCopyPreferredLanguages(void) API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
|
|
74
|
+
// Returns the array of canonicalized CFString locale IDs that the user prefers.
|
|
75
|
+
|
|
76
|
+
CF_EXPORT
|
|
77
|
+
CFLocaleIdentifier CFLocaleCreateCanonicalLanguageIdentifierFromString(CFAllocatorRef allocator, CFStringRef localeIdentifier);
|
|
78
|
+
// Map an arbitrary language identification string (something close at
|
|
79
|
+
// least) to a canonical language identifier.
|
|
80
|
+
|
|
81
|
+
CF_EXPORT
|
|
82
|
+
CFLocaleIdentifier CFLocaleCreateCanonicalLocaleIdentifierFromString(CFAllocatorRef allocator, CFStringRef localeIdentifier);
|
|
83
|
+
// Map an arbitrary locale identification string (something close at
|
|
84
|
+
// least) to the canonical identifier.
|
|
85
|
+
|
|
86
|
+
CF_EXPORT
|
|
87
|
+
CFLocaleIdentifier CFLocaleCreateCanonicalLocaleIdentifierFromScriptManagerCodes(CFAllocatorRef allocator, LangCode lcode, RegionCode rcode);
|
|
88
|
+
// Map a Mac OS LangCode and RegionCode to the canonical locale identifier.
|
|
89
|
+
|
|
90
|
+
CF_EXPORT
|
|
91
|
+
CFLocaleIdentifier CFLocaleCreateLocaleIdentifierFromWindowsLocaleCode(CFAllocatorRef allocator, uint32_t lcid) API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0));
|
|
92
|
+
// Map a Windows LCID to the canonical locale identifier.
|
|
93
|
+
|
|
94
|
+
CF_EXPORT
|
|
95
|
+
uint32_t CFLocaleGetWindowsLocaleCodeFromLocaleIdentifier(CFLocaleIdentifier localeIdentifier) API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0));
|
|
96
|
+
// Map a locale identifier to a Windows LCID.
|
|
97
|
+
|
|
98
|
+
typedef CF_ENUM(CFIndex, CFLocaleLanguageDirection) {
|
|
99
|
+
kCFLocaleLanguageDirectionUnknown = 0,
|
|
100
|
+
kCFLocaleLanguageDirectionLeftToRight = 1,
|
|
101
|
+
kCFLocaleLanguageDirectionRightToLeft = 2,
|
|
102
|
+
kCFLocaleLanguageDirectionTopToBottom = 3,
|
|
103
|
+
kCFLocaleLanguageDirectionBottomToTop = 4
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
CF_EXPORT
|
|
107
|
+
CFLocaleLanguageDirection CFLocaleGetLanguageCharacterDirection(CFStringRef isoLangCode) API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0));
|
|
108
|
+
|
|
109
|
+
CF_EXPORT
|
|
110
|
+
CFLocaleLanguageDirection CFLocaleGetLanguageLineDirection(CFStringRef isoLangCode) API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0));
|
|
111
|
+
|
|
112
|
+
CF_EXPORT
|
|
113
|
+
CFDictionaryRef CFLocaleCreateComponentsFromLocaleIdentifier(CFAllocatorRef allocator, CFLocaleIdentifier localeID);
|
|
114
|
+
// Parses a locale ID consisting of language, script, country, variant,
|
|
115
|
+
// and keyword/value pairs into a dictionary. The keys are the constant
|
|
116
|
+
// CFStrings corresponding to the locale ID components, and the values
|
|
117
|
+
// will correspond to constants where available.
|
|
118
|
+
// Example: "en_US@calendar=japanese" yields a dictionary with three
|
|
119
|
+
// entries: kCFLocaleLanguageCode=en, kCFLocaleCountryCode=US, and
|
|
120
|
+
// kCFLocaleCalendarIdentifier=kCFJapaneseCalendar.
|
|
121
|
+
|
|
122
|
+
CF_EXPORT
|
|
123
|
+
CFLocaleIdentifier CFLocaleCreateLocaleIdentifierFromComponents(CFAllocatorRef allocator, CFDictionaryRef dictionary);
|
|
124
|
+
// Reverses the actions of CFLocaleCreateDictionaryFromLocaleIdentifier,
|
|
125
|
+
// creating a single string from the data in the dictionary. The
|
|
126
|
+
// dictionary {kCFLocaleLanguageCode=en, kCFLocaleCountryCode=US,
|
|
127
|
+
// kCFLocaleCalendarIdentifier=kCFJapaneseCalendar} becomes
|
|
128
|
+
// "en_US@calendar=japanese".
|
|
129
|
+
|
|
130
|
+
CF_EXPORT
|
|
131
|
+
CFLocaleRef CFLocaleCreate(CFAllocatorRef allocator, CFLocaleIdentifier localeIdentifier);
|
|
132
|
+
// Returns a CFLocaleRef for the locale named by the "arbitrary" locale identifier.
|
|
133
|
+
|
|
134
|
+
CF_EXPORT
|
|
135
|
+
CFLocaleRef CFLocaleCreateCopy(CFAllocatorRef allocator, CFLocaleRef locale);
|
|
136
|
+
// Having gotten a CFLocale from somebody, code should make a copy
|
|
137
|
+
// if it is going to use it for several operations
|
|
138
|
+
// or hold onto it. In the future, there may be mutable locales.
|
|
139
|
+
|
|
140
|
+
CF_EXPORT
|
|
141
|
+
CFLocaleIdentifier CFLocaleGetIdentifier(CFLocaleRef locale);
|
|
142
|
+
// Returns the locale's identifier. This may not be the same string
|
|
143
|
+
// that the locale was created with (CFLocale may canonicalize it).
|
|
144
|
+
|
|
145
|
+
CF_EXPORT
|
|
146
|
+
CFTypeRef CFLocaleGetValue(CFLocaleRef locale, CFLocaleKey key);
|
|
147
|
+
// Returns the value for the given key. This is how settings and state
|
|
148
|
+
// are accessed via a CFLocale. Values might be of any CF type.
|
|
149
|
+
|
|
150
|
+
CF_EXPORT
|
|
151
|
+
CFStringRef CFLocaleCopyDisplayNameForPropertyValue(CFLocaleRef displayLocale, CFLocaleKey key, CFStringRef value);
|
|
152
|
+
// Returns the display name for the given value. The key tells what
|
|
153
|
+
// the value is, and is one of the usual locale property keys, though
|
|
154
|
+
// not all locale property keys have values with display name values.
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
CF_EXPORT const CFNotificationName kCFLocaleCurrentLocaleDidChangeNotification API_AVAILABLE(macos(10.5), ios(2.0), watchos(2.0), tvos(9.0));
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
// Locale Keys
|
|
161
|
+
CF_EXPORT const CFLocaleKey kCFLocaleIdentifier;
|
|
162
|
+
CF_EXPORT const CFLocaleKey kCFLocaleLanguageCode;
|
|
163
|
+
CF_EXPORT const CFLocaleKey kCFLocaleCountryCode;
|
|
164
|
+
CF_EXPORT const CFLocaleKey kCFLocaleScriptCode;
|
|
165
|
+
CF_EXPORT const CFLocaleKey kCFLocaleVariantCode;
|
|
166
|
+
|
|
167
|
+
CF_EXPORT const CFLocaleKey kCFLocaleExemplarCharacterSet;
|
|
168
|
+
CF_EXPORT const CFLocaleKey kCFLocaleCalendarIdentifier;
|
|
169
|
+
CF_EXPORT const CFLocaleKey kCFLocaleCalendar;
|
|
170
|
+
CF_EXPORT const CFLocaleKey kCFLocaleCollationIdentifier;
|
|
171
|
+
CF_EXPORT const CFLocaleKey kCFLocaleUsesMetricSystem;
|
|
172
|
+
CF_EXPORT const CFLocaleKey kCFLocaleMeasurementSystem; // "Metric", "U.S." or "U.K."
|
|
173
|
+
CF_EXPORT const CFLocaleKey kCFLocaleDecimalSeparator;
|
|
174
|
+
CF_EXPORT const CFLocaleKey kCFLocaleGroupingSeparator;
|
|
175
|
+
CF_EXPORT const CFLocaleKey kCFLocaleCurrencySymbol;
|
|
176
|
+
CF_EXPORT const CFLocaleKey kCFLocaleCurrencyCode; // ISO 3-letter currency code
|
|
177
|
+
CF_EXPORT const CFLocaleKey kCFLocaleCollatorIdentifier API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0));
|
|
178
|
+
CF_EXPORT const CFLocaleKey kCFLocaleQuotationBeginDelimiterKey API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0));
|
|
179
|
+
CF_EXPORT const CFLocaleKey kCFLocaleQuotationEndDelimiterKey API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0));
|
|
180
|
+
CF_EXPORT const CFLocaleKey kCFLocaleAlternateQuotationBeginDelimiterKey API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0));
|
|
181
|
+
CF_EXPORT const CFLocaleKey kCFLocaleAlternateQuotationEndDelimiterKey API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0));
|
|
182
|
+
|
|
183
|
+
// Values for kCFLocaleCalendarIdentifier
|
|
184
|
+
typedef CFStringRef CFCalendarIdentifier CF_STRING_ENUM;
|
|
185
|
+
|
|
186
|
+
CF_EXPORT const CFCalendarIdentifier kCFGregorianCalendar;
|
|
187
|
+
CF_EXPORT const CFCalendarIdentifier kCFBuddhistCalendar;
|
|
188
|
+
CF_EXPORT const CFCalendarIdentifier kCFChineseCalendar;
|
|
189
|
+
CF_EXPORT const CFCalendarIdentifier kCFHebrewCalendar;
|
|
190
|
+
CF_EXPORT const CFCalendarIdentifier kCFIslamicCalendar;
|
|
191
|
+
CF_EXPORT const CFCalendarIdentifier kCFIslamicCivilCalendar;
|
|
192
|
+
CF_EXPORT const CFCalendarIdentifier kCFJapaneseCalendar;
|
|
193
|
+
CF_EXPORT const CFCalendarIdentifier kCFRepublicOfChinaCalendar API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0));
|
|
194
|
+
CF_EXPORT const CFCalendarIdentifier kCFPersianCalendar API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0));
|
|
195
|
+
CF_EXPORT const CFCalendarIdentifier kCFIndianCalendar API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0));
|
|
196
|
+
CF_EXPORT const CFCalendarIdentifier kCFISO8601Calendar API_AVAILABLE(macos(10.6), ios(4.0), watchos(2.0), tvos(9.0));
|
|
197
|
+
CF_EXPORT const CFCalendarIdentifier kCFIslamicTabularCalendar API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0));
|
|
198
|
+
CF_EXPORT const CFCalendarIdentifier kCFIslamicUmmAlQuraCalendar API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0));
|
|
199
|
+
|
|
200
|
+
CF_EXTERN_C_END
|
|
201
|
+
CF_IMPLICIT_BRIDGING_DISABLED
|
|
202
|
+
|
|
203
|
+
#endif /* ! __COREFOUNDATION_CFLOCALE__ */
|
|
204
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* CFLocale_Private.h
|
|
2
|
+
Copyright (c) 2016-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_CFLOCALE_PRIVATE__)
|
|
11
|
+
#define __COREFOUNDATION_CFLOCALE_PRIVATE__ 1
|
|
12
|
+
|
|
13
|
+
#include "CoreFoundation.h"
|
|
14
|
+
|
|
15
|
+
/// Returns the user’s preferred locale as-is, without attempting to match the locale’s language to the main bundle, unlike `CFLocaleCopyCurrent`.
|
|
16
|
+
CF_EXPORT CFLocaleRef _CFLocaleCopyPreferred(void) API_AVAILABLE(macosx(10.13), ios(11.0), watchos(4.0), tvos(11.0));
|
|
17
|
+
|
|
18
|
+
typedef CF_ENUM(CFIndex, _CFLocaleCalendarDirection) {
|
|
19
|
+
_kCFLocaleCalendarDirectionLeftToRight = 0,
|
|
20
|
+
_kCFLocaleCalendarDirectionRightToLeft = 1
|
|
21
|
+
} API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0));
|
|
22
|
+
|
|
23
|
+
CF_EXPORT _CFLocaleCalendarDirection _CFLocaleGetCalendarDirection(void) API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0));
|
|
24
|
+
|
|
25
|
+
CF_EXPORT const CFLocaleKey kCFLocaleMeasurementSystem API_AVAILABLE(macosx(10.13), ios(11.0), watchos(4.0), tvos(11.0));
|
|
26
|
+
CF_EXPORT const CFStringRef kCFLocaleMeasurementSystemMetric API_AVAILABLE(macosx(10.13), ios(11.0), watchos(4.0), tvos(11.0));
|
|
27
|
+
CF_EXPORT const CFStringRef kCFLocaleMeasurementSystemUS API_AVAILABLE(macosx(10.13), ios(11.0), watchos(4.0), tvos(11.0));
|
|
28
|
+
CF_EXPORT const CFStringRef kCFLocaleMeasurementSystemUK API_AVAILABLE(macosx(10.13), ios(11.0), watchos(4.0), tvos(11.0));
|
|
29
|
+
|
|
30
|
+
CF_EXPORT const CFLocaleKey kCFLocaleTemperatureUnit API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0));
|
|
31
|
+
CF_EXPORT const CFStringRef kCFLocaleTemperatureUnitCelsius API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0));
|
|
32
|
+
CF_EXPORT const CFStringRef kCFLocaleTemperatureUnitFahrenheit API_AVAILABLE(macosx(10.12), ios(10.0), watchos(3.0), tvos(10.0));
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
#endif /* __COREFOUNDATION_CFLOCALE_PRIVATE__ */
|
package/wasm32-unknown-wasip1/swift.xctoolchain/usr/lib/swift_static/CoreFoundation/CFLocking.h
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/* CFLocking.h
|
|
2
|
+
Copyright (c) 1998-2018, Apple Inc. and the Swift project authors
|
|
3
|
+
|
|
4
|
+
Portions Copyright (c) 2014-2018, 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
|
+
NOT TO BE USED OUTSIDE CF!
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
#if !defined(__COREFOUNDATION_CFLOCKING_H__)
|
|
15
|
+
#define __COREFOUNDATION_CFLOCKING_H__ 1
|
|
16
|
+
|
|
17
|
+
#include "CFTargetConditionals.h"
|
|
18
|
+
|
|
19
|
+
#if TARGET_OS_MAC
|
|
20
|
+
|
|
21
|
+
#include <pthread.h>
|
|
22
|
+
|
|
23
|
+
typedef pthread_mutex_t CFLock_t;
|
|
24
|
+
|
|
25
|
+
#define CFLockInit ((pthread_mutex_t)PTHREAD_ERRORCHECK_MUTEX_INITIALIZER)
|
|
26
|
+
#define CF_LOCK_INIT_FOR_STRUCTS(X) (X = CFLockInit)
|
|
27
|
+
|
|
28
|
+
#define __CFLock(LP) ({ (void)pthread_mutex_lock(LP); })
|
|
29
|
+
|
|
30
|
+
#define __CFUnlock(LP) ({ (void)pthread_mutex_unlock(LP); })
|
|
31
|
+
|
|
32
|
+
#define __CFLockTry(LP) ({ pthread_mutex_trylock(LP) == 0; })
|
|
33
|
+
|
|
34
|
+
// SPI to permit initialization of values in Swift
|
|
35
|
+
static inline CFLock_t __CFLockInit(void) { return CFLockInit; }
|
|
36
|
+
|
|
37
|
+
#elif TARGET_OS_WIN32
|
|
38
|
+
|
|
39
|
+
#define NOMINMAX
|
|
40
|
+
#define VC_EXTRALEAN
|
|
41
|
+
#define WIN32_LEAN_AND_MEAN
|
|
42
|
+
#include <Windows.h>
|
|
43
|
+
#include <synchapi.h>
|
|
44
|
+
|
|
45
|
+
typedef int32_t CFLock_t;
|
|
46
|
+
#define CFLockInit 0
|
|
47
|
+
#define CF_LOCK_INIT_FOR_STRUCTS(X) (X = CFLockInit)
|
|
48
|
+
|
|
49
|
+
CF_INLINE void __CFLock(volatile CFLock_t *lock) {
|
|
50
|
+
while (InterlockedCompareExchange((long volatile *)lock, ~0, 0) != 0) {
|
|
51
|
+
Sleep(0);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
CF_INLINE void __CFUnlock(volatile CFLock_t *lock) {
|
|
56
|
+
MemoryBarrier();
|
|
57
|
+
*lock = 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
CF_INLINE Boolean __CFLockTry(volatile CFLock_t *lock) {
|
|
61
|
+
return (InterlockedCompareExchange((long volatile *)lock, ~0, 0) == 0);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// SPI to permit initialization of values in Swift
|
|
65
|
+
static inline CFLock_t __CFLockInit(void) { return CFLockInit; }
|
|
66
|
+
|
|
67
|
+
#elif TARGET_OS_LINUX || TARGET_OS_BSD
|
|
68
|
+
|
|
69
|
+
#include <stdint.h>
|
|
70
|
+
#include <unistd.h>
|
|
71
|
+
|
|
72
|
+
typedef int32_t CFLock_t;
|
|
73
|
+
#define CFLockInit 0
|
|
74
|
+
#define CF_LOCK_INIT_FOR_STRUCTS(X) (X = CFLockInit)
|
|
75
|
+
|
|
76
|
+
CF_INLINE void __CFLock(volatile CFLock_t *lock) {
|
|
77
|
+
while (__sync_val_compare_and_swap(lock, 0, ~0) != 0) {
|
|
78
|
+
sleep(0);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
CF_INLINE void __CFUnlock(volatile CFLock_t *lock) {
|
|
83
|
+
__sync_synchronize();
|
|
84
|
+
*lock = 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
CF_INLINE Boolean __CFLockTry(volatile CFLock_t *lock) {
|
|
88
|
+
return (__sync_val_compare_and_swap(lock, 0, ~0) == 0);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// SPI to permit initialization of values in Swift
|
|
92
|
+
static inline CFLock_t __CFLockInit(void) { return CFLockInit; }
|
|
93
|
+
|
|
94
|
+
typedef CFLock_t OSSpinLock;
|
|
95
|
+
#define OS_SPINLOCK_INIT CFLockInit
|
|
96
|
+
#define OSSpinLockLock(lock) __CFLock(lock)
|
|
97
|
+
#define OSSpinLockUnlock(lock) __CFUnlock(lock)
|
|
98
|
+
|
|
99
|
+
#elif TARGET_OS_WASI
|
|
100
|
+
|
|
101
|
+
// Empty shims until https://bugs.swift.org/browse/SR-12097 is resolved.
|
|
102
|
+
typedef int32_t CFLock_t;
|
|
103
|
+
typedef CFLock_t OSSpinLock;
|
|
104
|
+
#define CFLockInit 0
|
|
105
|
+
#define CF_LOCK_INIT_FOR_STRUCTS(X) (X = CFLockInit)
|
|
106
|
+
#define OS_SPINLOCK_INIT CFLockInit
|
|
107
|
+
|
|
108
|
+
#define OSSpinLockLock(lock) __CFLock(lock)
|
|
109
|
+
#define OSSpinLockUnlock(lock) __CFUnlock(lock)
|
|
110
|
+
#define __CFLock(A) do {} while (0)
|
|
111
|
+
#define __CFUnlock(A) do {} while (0)
|
|
112
|
+
|
|
113
|
+
static inline CFLock_t __CFLockInit(void) { return CFLockInit; }
|
|
114
|
+
|
|
115
|
+
#else
|
|
116
|
+
|
|
117
|
+
#warning CF locks not defined for this platform -- CF is not thread-safe
|
|
118
|
+
#define __CFLock(A) do {} while (0)
|
|
119
|
+
#define __CFUnlock(A) do {} while (0)
|
|
120
|
+
|
|
121
|
+
#endif
|
|
122
|
+
|
|
123
|
+
#endif
|
|
124
|
+
|