code
stringlengths 3
10M
| language
stringclasses 31
values |
|---|---|
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Transport.build/Internet/ClientStream.swift.o : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Streams/Stream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Streams/ReadableStream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Streams/WriteableStream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Streams/FoundationStream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Internet/ServerStream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Internet/InternetStream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Internet/ClientStream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Streams/StreamError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Exports.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Internet/Port.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Transport.build/ClientStream~partial.swiftmodule : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Streams/Stream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Streams/ReadableStream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Streams/WriteableStream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Streams/FoundationStream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Internet/ServerStream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Internet/InternetStream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Internet/ClientStream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Streams/StreamError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Exports.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Internet/Port.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Transport.build/ClientStream~partial.swiftdoc : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Streams/Stream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Streams/ReadableStream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Streams/WriteableStream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Streams/FoundationStream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Internet/ServerStream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Internet/InternetStream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Internet/ClientStream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Streams/StreamError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Exports.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sockets.git-972942978533733666/Sources/Transport/Internet/Port.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes
|
D
|
/Users/varaprasadp/Desktop/React/Example/ios/build/Build/Intermediates/Example.build/Debug-iphonesimulator/Example.build/Objects-normal/x86_64/RNYAxisChartViewBase.o : /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/RNChartViewBase.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/RNBarLineChartViewBase.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bar/RNBarChartViewBase.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/RNYAxisChartViewBase.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/combine/RNCombinedChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/pie/RNPieChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bubble/RNBubbleChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/line/RNLineChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/candlestick/RNCandleStickChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bar/RNBarChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bar/RNHorizontalBarChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/radar/RNRadarChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/scatter/RNScatterChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/BalloonMarker.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/formatters/LargeValueFormatter.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/utils/BridgeUtils.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/utils/ChartDataSetConfigUtils.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/utils/EntryToDictionaryUtils.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/DataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/combine/CombinedDataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/pie/PieDataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bubble/BubbleDataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/candlestick/CandleDataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/line/LineDataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bar/BarDataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/radar/RadarDataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/scatter/ScatterDataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/combine/RNCombinedChartView.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/pie/RNPieChartView.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bubble/RNBubbleChartView.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/line/RNLineChartView.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/candlestick/RNCandleStickChartView.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bar/RNBarChartView.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bar/RNHorizontalBarChartView.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/radar/RNRadarChartView.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/scatter/RNScatterChartView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Modules/SwiftyJSON.swiftmodule/x86_64.swiftmodule /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/Charts/Charts.framework/Modules/Charts.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/yoga/Yoga.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Headers/SwiftyJSON-umbrella.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/Charts/Charts.framework/Headers/Charts-umbrella.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBridge.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBridgeModule.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBorderStyle.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTTextDecorationLineType.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTAnimationType.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTFrameUpdate.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBridgeDelegate.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTInvalidating.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTLog.h /Users/varaprasadp/Desktop/React/Example/ios/Example-Bridging-Header.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTJavaScriptLoader.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTUIManager.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTViewManager.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTEventDispatcher.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTEventEmitter.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTDefines.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/yoga/YGEnums.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/yoga/YGMacros.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTPointerEvents.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/UIView+React.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Headers/SwiftyJSON-Swift.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/Charts/Charts.framework/Headers/Charts-Swift.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTComponent.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTAssert.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTConvert.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTRootView.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Modules/module.modulemap /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/Charts/Charts.framework/Modules/module.modulemap
/Users/varaprasadp/Desktop/React/Example/ios/build/Build/Intermediates/Example.build/Debug-iphonesimulator/Example.build/Objects-normal/x86_64/RNYAxisChartViewBase~partial.swiftmodule : /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/RNChartViewBase.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/RNBarLineChartViewBase.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bar/RNBarChartViewBase.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/RNYAxisChartViewBase.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/combine/RNCombinedChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/pie/RNPieChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bubble/RNBubbleChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/line/RNLineChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/candlestick/RNCandleStickChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bar/RNBarChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bar/RNHorizontalBarChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/radar/RNRadarChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/scatter/RNScatterChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/BalloonMarker.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/formatters/LargeValueFormatter.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/utils/BridgeUtils.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/utils/ChartDataSetConfigUtils.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/utils/EntryToDictionaryUtils.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/DataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/combine/CombinedDataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/pie/PieDataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bubble/BubbleDataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/candlestick/CandleDataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/line/LineDataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bar/BarDataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/radar/RadarDataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/scatter/ScatterDataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/combine/RNCombinedChartView.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/pie/RNPieChartView.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bubble/RNBubbleChartView.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/line/RNLineChartView.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/candlestick/RNCandleStickChartView.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bar/RNBarChartView.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bar/RNHorizontalBarChartView.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/radar/RNRadarChartView.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/scatter/RNScatterChartView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Modules/SwiftyJSON.swiftmodule/x86_64.swiftmodule /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/Charts/Charts.framework/Modules/Charts.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/yoga/Yoga.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Headers/SwiftyJSON-umbrella.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/Charts/Charts.framework/Headers/Charts-umbrella.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBridge.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBridgeModule.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBorderStyle.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTTextDecorationLineType.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTAnimationType.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTFrameUpdate.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBridgeDelegate.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTInvalidating.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTLog.h /Users/varaprasadp/Desktop/React/Example/ios/Example-Bridging-Header.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTJavaScriptLoader.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTUIManager.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTViewManager.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTEventDispatcher.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTEventEmitter.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTDefines.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/yoga/YGEnums.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/yoga/YGMacros.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTPointerEvents.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/UIView+React.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Headers/SwiftyJSON-Swift.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/Charts/Charts.framework/Headers/Charts-Swift.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTComponent.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTAssert.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTConvert.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTRootView.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Modules/module.modulemap /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/Charts/Charts.framework/Modules/module.modulemap
/Users/varaprasadp/Desktop/React/Example/ios/build/Build/Intermediates/Example.build/Debug-iphonesimulator/Example.build/Objects-normal/x86_64/RNYAxisChartViewBase~partial.swiftdoc : /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/RNChartViewBase.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/RNBarLineChartViewBase.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bar/RNBarChartViewBase.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/RNYAxisChartViewBase.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/combine/RNCombinedChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/pie/RNPieChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bubble/RNBubbleChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/line/RNLineChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/candlestick/RNCandleStickChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bar/RNBarChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bar/RNHorizontalBarChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/radar/RNRadarChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/scatter/RNScatterChartManager.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/BalloonMarker.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/formatters/LargeValueFormatter.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/utils/BridgeUtils.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/utils/ChartDataSetConfigUtils.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/utils/EntryToDictionaryUtils.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/DataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/combine/CombinedDataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/pie/PieDataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bubble/BubbleDataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/candlestick/CandleDataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/line/LineDataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bar/BarDataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/radar/RadarDataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/scatter/ScatterDataExtract.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/combine/RNCombinedChartView.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/pie/RNPieChartView.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bubble/RNBubbleChartView.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/line/RNLineChartView.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/candlestick/RNCandleStickChartView.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bar/RNBarChartView.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/bar/RNHorizontalBarChartView.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/radar/RNRadarChartView.swift /Users/varaprasadp/Desktop/React/ios/ReactNativeCharts/scatter/RNScatterChartView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Modules/SwiftyJSON.swiftmodule/x86_64.swiftmodule /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/Charts/Charts.framework/Modules/Charts.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/yoga/Yoga.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Headers/SwiftyJSON-umbrella.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/Charts/Charts.framework/Headers/Charts-umbrella.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBridge.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBridgeModule.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBorderStyle.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTTextDecorationLineType.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTAnimationType.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTFrameUpdate.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTBridgeDelegate.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTInvalidating.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTLog.h /Users/varaprasadp/Desktop/React/Example/ios/Example-Bridging-Header.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTJavaScriptLoader.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTUIManager.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTViewManager.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTEventDispatcher.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTEventEmitter.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTDefines.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/yoga/YGEnums.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/yoga/YGMacros.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTPointerEvents.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/UIView+React.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Headers/SwiftyJSON-Swift.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/Charts/Charts.framework/Headers/Charts-Swift.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTComponent.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTAssert.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTConvert.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/include/React/RCTRootView.h /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Modules/module.modulemap /Users/varaprasadp/Desktop/React/Example/ios/build/Build/Products/Debug-iphonesimulator/Charts/Charts.framework/Modules/module.modulemap
|
D
|
/*******************************************************************************
@file Iterator.d
Copyright (c) 2004 Kris Bell
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for damages
of any kind arising from the use of this software.
Permission is hereby granted to anyone to use this software for any
purpose, including commercial applications, and to alter it and/or
redistribute it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must
not claim that you wrote the original software. If you use this
software in a product, an acknowledgment within documentation of
said product would be appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must
not be misrepresented as being the original software.
3. This notice may not be removed or altered from any distribution
of the source.
4. Derivative works are permitted, but they must carry this notice
in full and credit the original source.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@version Initial version, December 2005
@author Kris
*******************************************************************************/
module mango.text.Iterator;
public import mango.io.Buffer;
private import mango.text.Text;
/*******************************************************************************
The base class for a set of pattern tokenizers.
There are two types of tokenizers supported ~ exclusive and
inclusive. The former are the more common kind, where a token
is delimited by elements that are considered foreign. Examples
include space, comma, and end-of-line delineation. Inclusive
tokens are just the opposite: they look for patterns in the
text that should be part of the token itself ~ everything else
is considered foreign. Currently the only inclusive token type
is exposed by RegexToken; everything else is of the exclusive
variety.
The content provided to Tokenizers is supposed to be entirely
read-only. All current tokenizers abide by this rule, but it's
possible a user could mutate the content through a token slice.
To enforce the desired read-only aspect, the code would have to
introduce redundant copying or the compiler would have to support
read-only arrays.
See LineToken, CharToken, RegexToken, QuotedToken, and SetToken.
*******************************************************************************/
class IteratorT(T)
{
protected T[] slice;
protected IBuffer buffer;
/***********************************************************************
The pattern scanner, implemented via subclasses
***********************************************************************/
abstract protected uint scan (void[] data);
/***********************************************************************
Uninitialized instance ~ use set() to configure input
***********************************************************************/
this () {}
/***********************************************************************
Instantiate with a buffer
***********************************************************************/
this (IBuffer buffer)
{
set (buffer);
}
/***********************************************************************
Instantiate with a conduit
***********************************************************************/
this (IConduit conduit)
{
set (conduit);
}
/***********************************************************************
Instantiate with a string
***********************************************************************/
this (T[] string)
{
set (string);
}
/***********************************************************************
Set the provided string as the scanning source
***********************************************************************/
final void set (T[] string)
{
if (buffer is null)
buffer = new Buffer (string, string.length);
else
buffer.setValidContent(string).setConduit(null);
}
/***********************************************************************
Set the provided conduit as the scanning source
***********************************************************************/
final void set (IConduit conduit)
{
if (buffer is null)
buffer = new Buffer (conduit);
else
buffer.clear.setConduit (conduit);
}
/***********************************************************************
Set the current buffer to scan
***********************************************************************/
final void set (IBuffer buffer)
{
this.buffer = buffer;
}
/***********************************************************************
Return the current token as a slice of the content
***********************************************************************/
final T[] get ()
{
return slice;
}
/***********************************************************************
Trim spaces from the left and right of the current token.
Note that this is done in-place on the current slice. The
content itself is not affected
***********************************************************************/
IteratorT trim ()
{
slice = TextT!(T).trim (slice);
return this;
}
/***********************************************************************
Return the associated buffer. This can be provided to
a Reader or another Iterator ~ each will stay in synch
with one another
***********************************************************************/
final IBuffer getBuffer ()
{
return buffer;
}
/**********************************************************************
Iterate over the set of tokens. This should really
provide read-only access to the tokens, but D does
not support that at this time
**********************************************************************/
int opApply (int delegate(inout T[]) dg)
{
int result = 0;
while (next)
{
T[] t = get ();
result = dg (t);
if (result)
break;
}
return result;
}
/**********************************************************************
Iterate over the set of tokens. This should really
provide read-only access to the tokens, but D does
not support that at this time
**********************************************************************/
int opApply (int delegate(inout uint, inout T[]) dg)
{
int result = 0;
uint count = 0;
while (next)
{
count++;
T[] t = get ();
result = dg (count, t);
if (result)
break;
}
return result;
}
/**********************************************************************
Visit each token by passing them to the provided delegate
**********************************************************************/
bool visit (bool delegate(T[]) dg)
{
while (next)
if (! dg (get))
return false;
return true;
}
/***********************************************************************
Locate the next token.
Returns true if a token is found; false otherwise
***********************************************************************/
final bool next ()
{
return buffer.next (&scan) || slice.length > 0;
}
/***********************************************************************
Set the content of the current slice
***********************************************************************/
protected final uint set (T* content, uint start, uint end)
{
slice = content [start .. end];
return end;
}
/***********************************************************************
Convert void[] from buffer into an appropriate array
***********************************************************************/
protected final T[] convert (void[] data)
{
return cast(T[]) data [0 .. data.length & ~(T.sizeof-1)];
}
/***********************************************************************
Called when a scanner fails to find a matching pattern.
This may cause more content to be loaded, and a rescan
initiated
***********************************************************************/
protected final uint notFound (T[] content)
{
slice = content;
return IConduit.Eof;
}
/***********************************************************************
Invoked when a scanner matches a pattern. The provided
value should be the index of the last element of the
matching pattern, which is converted back to a void[]
index.
***********************************************************************/
protected final uint found (uint i)
{
return (i + 1) * T.sizeof;
}
/***********************************************************************
See if set of characters holds a particular instance
***********************************************************************/
protected bool has (T[] set, T match)
{
foreach (T c; set)
if (match is c)
return true;
return false;
}
}
alias IteratorT!(char) Iterator;
|
D
|
module mach.range.sort.insertionsort;
private:
import mach.types : Rebindable;
import mach.traits : ElementType, hasNumericLength, isFiniteIterable;
import mach.range.sort.common;
public:
/// Determine whether a type is able to be insertion sorted.
alias canInsertionSort = canBoundedRandomAccessSort;
template canCopyInsertionSort(T){
enum bool canCopyInsertionSort = isFiniteIterable!T;
}
template canCopyInsertionSort(alias compare, T){
enum bool canCopyInsertionSort = (
canCopyInsertionSort!T && isSortComparison!(compare, T)
);
}
alias insertionsort = linearinsertionsort;
/// Sorts an input using insertion sort.
/// https://en.wikipedia.org/wiki/Insertion_sort
///
/// Input requirements: Finite, known length, random access reads & writes.
/// Input is mutated: Yes.
/// Sorting is eager: Yes.
/// Sorting is adaptive: Yes.
/// Sorting is stable: Yes.
///
/// The inputted comparison function should return true when the first input
/// must precede the second in the sorted output and false otherwise.
///
/// Why to use it:
/// Relatively efficient for small data sets, by virtue of its simplicity.
/// Why not to use it:
/// Makes many writes, especially compared to the similar selection sort.
auto linearinsertionsort(alias compare = DefaultSortCompare, T)(auto ref T input) if(
canInsertionSort!(compare, T)
){
for(size_t i = 1; i < input.length; i++){
auto x = input[i];
size_t j = i;
while(j > 0 && compare(x, input[j - 1])){
input[j] = input[j - 1];
j--;
}
input[j] = x;
}
return input;
}
/// Sorts an input using binary insertion sort.
/// https://en.wikipedia.org/wiki/Insertion_sort
/// http://jeffreystedfast.blogspot.com/2007/02/binary-insertion-sort.html
///
/// Input requirements: Finite, known length, random access reads & writes.
/// Input is mutated: Yes.
/// Sorting is eager: Yes.
/// Sorting is adaptive: Yes.
/// Sorting is stable: Yes.
///
/// The inputted comparison function should return true when the first input
/// must precede the second in the sorted output and false otherwise.
///
/// Why to use it:
/// Performs fewer comparisons than a linear insertion sort.
/// Why not to use it:
/// Demands some additional overhead relative to linear insertion sort.
auto binaryinsertionsort(alias compare = DefaultSortCompare, T)(auto ref T input) if(
canInsertionSort!(compare, T)
){
for(size_t i = 1; i < input.length; i++){
size_t low = 0;
size_t high = i;
size_t mid = i / 2;
while(true){
if(!compare(input[i], input[mid])){
low = mid + 1;
}else{
high = mid;
}
mid = low + ((high - low) / 2);
if(low >= high) break;
}
if(mid < i){
auto x = input[i];
size_t j = i;
while(j > mid){
input[j] = input[j - 1];
j--;
}
input[j] = x;
}
}
return input;
}
/// Sorts an input using a modified insertion sort.
/// https://en.wikipedia.org/wiki/Insertion_sort
///
/// Input requirements: Finite (more performant when length is known)
/// Input is mutated: No.
/// Sorting is eager: Yes.
/// Sorting is adaptive: Yes.
/// Sorting is stable: Yes.
///
/// The inputted comparison function should return true when the first input
/// must precede the second in the sorted output and false otherwise.
///
/// Why to use it:
/// The only restriction upon input is that it is a finite iterable.
/// The input is not modified.
/// Why not to use it:
/// Allocates additional memory.
/// Not especially efficient.
auto copyinsertionsort(alias compare = DefaultSortCompare, T)(auto ref T input) if(
canCopyInsertionSort!(compare, T)
){
Rebindable!(ElementType!T)[] array;
static if(hasNumericLength!T){
array.reserve(input.length);
}
foreach(item; input){
if(array.length == 0 || !compare(item, array[$ - 1])){
array ~= item;
}else{
// Find the last element not less than the new one
size_t i = array.length - 1;
while(i > 0){
if(!compare(item, array[i - 1])) break;
i--;
}
// Shift elements that should follow the new insertion
immutable jlimit = array.length;
array.length += 1;
for(size_t j = jlimit; j > i; j--){
array[j] = array[j - 1];
}
// Place the new element where it belongs
array[i] = item;
}
}
return array;
}
version(unittest){
private:
import mach.test;
}
unittest{
tests("Insertion sort", {
tests("Linear", {
testsort!linearinsertionsort;
teststablesort!linearinsertionsort;
});
tests("Binary", {
testsort!binaryinsertionsort;
teststablesort!binaryinsertionsort;
});
tests("Copy", {
testsort!copyinsertionsort;
teststablesort!copyinsertionsort;
testcopysort!copyinsertionsort;
});
});
}
|
D
|
; Copyright (C) 2008 The Android Open Source Project
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
.source T_aput_wide_1.java
.class public dot.junit.opcodes.aput_wide.d.T_aput_wide_1
.super java/lang/Object
.method public <init>()V
.limit regs 1
invoke-direct {v0}, java/lang/Object/<init>()V
return-void
.end method
.method public run([JIJ)V
.limit regs 14
aput-wide v12, v10, v11
return-void
.end method
|
D
|
characterized by asymmetry in the spatial arrangement or placement of parts or components
|
D
|
discuss the terms of an arrangement
succeed in passing through, around, or over
|
D
|
// Copyright © 2012, Jakob Bornecrantz. All rights reserved.
// See copyright notice in src/charge/charge.d (GPLv2 only).
/**
* Source file for c memory helpers.
*/
module charge.sys.memory;
static import std.c.stdlib;
version(MemDump) {
import std.stdio : writefln;
import std.string : toString;
}
private struct MemHeader
{
private:
size_t size;
char *file;
uint line;
uint magic;
static size_t memory;
public:
static size_t getMemory()
{
return memory;
}
static MemHeader* fromData(void *ptr)
{
if (ptr is null)
return null;
return &(cast(MemHeader*)ptr)[-1];
}
void* getData()
{
return &this[1];
}
static void* cAlloc(size_t size)
{
MemHeader *ret;
ret = cast(typeof(ret))std.c.stdlib.malloc(size + MemHeader.sizeof);
ret.size = size;
memory += size;
return ret.getData();
}
static void* cRealloc(void *ptr, size_t newSize)
{
if (ptr is null)
return cAlloc(newSize);
if (newSize == 0) {
cFree(ptr);
return null;
}
auto mem = fromData(ptr);
memory -= mem.size;
memory += newSize;
mem.size = newSize;
mem = cast(MemHeader*)std.c.stdlib.realloc(mem, newSize + MemHeader.sizeof);
return mem.getData();
}
static void cFree(void *ptr)
{
if (ptr is null)
return;
auto mem = fromData(ptr);
memory -= mem.size;
mem.size = 0;
std.c.stdlib.free(mem);
}
}
static extern(C) void* charge_malloc_dbg(size_t size, char* file, uint line)
{
auto ret = MemHeader.cAlloc(size);
auto mem = MemHeader.fromData(ret);
mem.file = file;
mem.line = line;
version(MemDump) {
writefln(" malloc %s:%s %s (%s)", toString(file), line, ret, size);
}
return ret;
}
static extern(C) void* charge_realloc_dbg(void *ptr, size_t size, char* file, uint line)
{
auto ret = MemHeader.cRealloc(ptr, size);
auto mem = MemHeader.fromData(ret);
mem.file = file;
mem.line = line;
version(MemDump) {
writefln("realloc %s:%s %s (%s)", toString(file), line, ret, size);
}
return ret;
}
static extern(C) void charge_free_dbg(void *ptr)
{
auto mem = MemHeader.fromData(ptr);
version(MemDump) {
if (ptr != null)
writefln(" free %s:%s %s (%s)", toString(mem.file), mem.line, ptr, mem.size);
else
writefln(" free %s:%s %s (%s)", "<int>", 0, ptr, 0);
}
MemHeader.cFree(ptr);
}
static extern(C) void* charge_malloc(size_t size)
{
return charge_malloc_dbg(size, "<D>", 0);
}
static extern(C) void* charge_realloc(void *ptr, size_t size)
{
return charge_realloc_dbg(ptr, size, "<D>", 0);
}
static extern(C) void charge_free(void *ptr)
{
return charge_free_dbg(ptr);
}
|
D
|
// ***************************
// Food growing per attitudes
const int Berrys_HP_Incease = 5;
const int Berrys_Needed = 32;
var int Berrys_Counter;//Inreasing Hp by ...
const int Apple_STR_Incease = 1;
const int Apple_Needed = 18;
var int Apple_Counter;//Inreasing Str by ...
const int Joint_MANA_Incease = 2;
const int Joint_Needed = 70;//Joint1+1/Joint2+2/...
var int Joint_Counter;//Inreasing Mana by ...
//DEX, what it shoud be?
//const int Joint_DEX_Incease = 2;
//const int Joint_Needed = 70;//Joint1+1/Joint2+2/...
//var int Joint_Counter;//Inreasing Mana by ...
VAR INT RESPAWN_DUR_MINUS;
//Temporary (hero?) attitudes: (using f.e. when adding attitudes)
VAR INT STR_TP_BONUS;
VAR INT DEX_TP_BONUS;
VAR INT HP_TP_BONUS;
VAR INT MP_TP_BONUS;
VAR INT SEARCH_4_JACKTREASURE;
VAR INT GAME_STARTED;
VAR INT R_USES;
//EQUIP WEAPON BUGFIX
VAR INT EQWEAPFIX;
//Art Events
VAR INT QUESTSTART;
VAR INT USEONEOFSWITCH;
VAR INT BETTERSWITCH;//if hero use better switch next switch open secret room ;)
VAR INT GL_MD_TURNHERO2MEATBUG;
VAR INT MD_TURNOFFLIGHTERS;
VAR INT MD_FINALBATTLE;
VAR INT MD_FINALBATTLE_WAVE;
VAR INT MD_INSERTMR;
//end
//time
//AMUNITION
//A/B_MUNITION MOVED TO I_FUNCTIONS
VAR INT LAST_A_MUNITION;
CONST INT A_POINT=0;
CONST INT A_POINT_15=1;
CONST INT A_POINT_25=2;
CONST INT A_FIRE=3;
CONST INT A_ICE=4;
CONST INT A_POISON=5;
CONST INT A_BLUNT=6;
VAR INT LAST_B_MUNITION;
CONST INT B_POINT=0;
CONST INT B_POINT_10=1;
CONST INT B_POINT_25=2;
CONST INT B_FIRE=3;
CONST INT B_ICE=4;
CONST INT B_POISON=5;
CONST INT B_BLUNT=6;
//END AMUNITION
VAR INT HOUR;
VAR INT MINUTE;
//all
//Challenge
/////////////////////
//SPECIAL WEAPONS
/////////////////////
CONST INT MAX_NPCWITHSPECWEAP=10;
CONST INT NPC1=0;
CONST INT NPC2=1;
CONST INT NPC3=2;
CONST INT NPC4=3;
CONST INT NPC5=4;
CONST INT NPC6=5;
CONST INT NPC7=6;
CONST INT NPC8=7;
CONST INT NPC9=8;
CONST INT NPC10=9;
VAR INT READYWEAPNPC[MAX_NPCWITHSPECWEAP];//Instance
VAR INT EQUIPWEAPNPC[MAX_NPCWITHSPECWEAP];//Instance
VAR INT LASTNPCWITHSPECWEAPON;//for checking next NPC is free and can create SWD effect on him
VAR INT NPCWITHSPECWEAPON[MAX_NPCWITHSPECWEAP];//NPCs Instance
VAR INT NPCHAVESPECWEAPON[MAX_NPCWITHSPECWEAP];//BOOL//4 checking and adding new NPCWITHSPECWEAPON
/////////////////////////
VAR INT ICESWDUSED;
VAR INT TIMEACTIVED;
//
//
VAR INT BLOOPS;
//
VAR INT GLOBAL_FINISHHERO;
////////////////////////////////DAY/////////////////
// Ork: To może tak, odtąd...
VAR INT LAST_DAY;
VAR INT DAY;
VAR INT WEEKDAY;
CONST INT PON=0;
CONST INT WT=1;
CONST INT SR=2;
CONST INT CZW=3;
CONST INT PT=4;
CONST INT SOB=5;
CONST INT ND=6;
VAR INT WEEK;
VAR INT WEEKTYPE;
CONST INT REST=0;
CONST INT ATTACK=1;
CONST INT CHALLENGE=2;
////
VAR INT GRDCHALLENGE;
VAR INT SENDCASTLETRIGGERON;
VAR INT CASTELEPORTACTIVE;
//CHallenge
VAR INT TODAY_ARE_CHALLENGE;//bool
VAR INT HERO_IN_CHALLENGE;//bool
//INSTANCES
VAR INT I_TM1LD;
VAR INT I_TM1M1;
VAR INT I_TM1M2;
VAR INT I_TM1M3;
VAR INT I_TM2LD;
VAR INT I_TM2M1;
VAR INT I_TM2M2;
VAR INT I_TM2M3;
//C_NPC
VAR C_NPC NPC_TM1LD;
VAR C_NPC NPC_TM1M1;
VAR C_NPC NPC_TM1M2;
VAR C_NPC NPC_TM1M3;
VAR C_NPC NPC_TM2LD;
VAR C_NPC NPC_TM2M1;
VAR C_NPC NPC_TM2M2;
VAR C_NPC NPC_TM2M3;
// ... dotąd -> WYJEBAĆ - ork
////////////////////////////////////////
//...::....G R D A T T A C K V A R ' S...::....
////////////////////////////////////////
//Now GRD Attack
VAR INT GRDATTACKNOW;//0=none,1=nr.1,2=nr.2.....
VAR INT GRDSINATTACK;
//
VAR INT GRDRND;
VAR INT GRDNUMSPAWNED;
VAR INT GRDATTACKSAMOUNT;
VAR INT GRDDIFICULTALL;
VAR INT GRDDIFICULT1ST;//Always
//Added Grds Dificult
VAR INT ADDGRDDIFICULT1ST;
VAR STRING GRDATTACKWP;
VAR INT GRDATTACKWPINT;
VAR INT HC_WP_WARRIOR;
VAR INT HC_WP_RANGED;
VAR INT HC_WP_MAGE;
///////////////////////////////////
CONST INT DURSTIGEBAUERN=10;
//////////////
VAR INT SLF_FIRE;
/******************
Zmienne globalne
******************/
var int jack_yes;
var int jack_no;
var int lee_offer;
var int lee_offer_condition;
VAR INT GEORG_GUARD;//georg na wpusci
VAR INT REBEL_CAMP_TRUST;//zaufanie w obozie rebeliantów.
VAR INT WHISTLER_LIST;//potrzebne do zadań ze świstakiem
VAR INT GARRY_OUT;//potrzebne do sprawdzania czy Garry jest już po zmianie profesji
VAR INT WHISTLER_LAST_APPROVE;//cd zadań ze świstakiem
VAR INT DRAX_GETLOST;//drax
VAR INT Q_N_AGAIN;//zmienna jak na true to znaczy, że podpadliśmy cavalornowi i mamy przewalone u wszystkich rebeliantów.
VAR INT Q_Y;//zmienna odp za to czy gracz zgodził się pomóc cavalornowi w poszukiwaniu rekrutów.
VAR INT PACHO_ORE;//ruda gomeza i pacho
VAR INT SCORPIO_TRAITOR;//czy powiedzieliśmy skorpio o planie pacho
VAR INT HRABIA_LOG;//sprawdza czy już wiemy o hrabim
VAR INT DRAX_WARN;//ostrzeżenie draxa
VAR INT ORC_APPEAR;//ostrzeżenie draxa
VAR INT HARK_TRIAL;
VAR INT MIS_PACHO_CHESTOPENED;
VAR INT MIS_PACHOSPLIT;
VAR INT MIS_PACHOEARLCAMCANBEENABLED;
VAR INT MIS_TELEPORTEARL;
VAR INT Hrabia_teleport;
var int Saturas_saves_Rick;
var int Leren_teleport_after_ritual;
var int Xardas_teleport_after_ritual;
var int Tondral_death;
var int Lester_butcher;
var int Necro_teleport_after_deaths_beast;
var int Necro_teleport_on_ritual;
var int Raven_teleport_to_EN;
var int Raven_teleport_to_hidden;
var int repaired_axe_Rick;
var int Rick_meets_informant;
var int Rick_goesTo_freemine;
var int Raven_fights_Rick;
var int Rick_death;
var int equipment_to_OC;
var int isOpenedGateOC;
var int inserted_alter_ego;
var int Scorpio_teacher;
//MIS_Katrakanat_pieces
VAR INT MIS_KATRAKANAT_PIECES_COLLECTED;
VAR INT MIS_KATRAKANAT_PIECE1_COLLECTED,MIS_KATRAKANAT_PIECE2_COLLECTED,MIS_KATRAKANAT_PIECE3_COLLECTED,MIS_KATRAKANAT_PIECE4_COLLECTED,MIS_KATRAKANAT_PIECE5_COLLECTED,MIS_KATRAKANAT_PIECE6_COLLECTED;
//MIS_Tritetra
VAR INT MIS_TRITETRA_ON;
VAR INT MIS_TRITETRA_INNOS_PIECES,MIS_TRITETRA_ADANOS_PIECES,MIS_TRITETRA_BELIAR_PIECES;
VAR INT MIS_TRITETRA_INNOS_COUNTER,MIS_TRITETRA_ADANOS_COUNTER,MIS_TRITETRA_BELIAR_COUNTER;
VAR INT MIS_TRITETRA_INNOS_COUNTER_MAX;
VAR INT MIS_TRITETRA_ADANOS_COUNTER_MAX;
/**************
zmienne określające którego npca zaufanie zdobyliśmy. Będa potrzebne do końcowego dialogu u cavalorna.
**************/
VAR INT WHISTLER_TRUST;
VAR INT CAVALORN_TRUST;
VAR INT RATFORD_TRUST;
VAR INT DRAX_TRUST;
VAR INT QUENTIN_TRUST;
VAR INT AIDAN_TRUST;
VAR INT FINGERS_TRUST;
VAR INT TONY_TRUST;
VAR INT VAM_TRUST;
VAR INT FOX_TRUST;
VAR INT GESTATH_TRUST;
VAR INT CARLSON_TRUST;
VAR INT ALIGATOR_TRUST;
VAR INT SCORPION_TRUST;
VAR INT PACHO_TRUST;
VAR INT SNAF_TRUST;
VAR INT SNAF_WOLFS_KILLED;
VAR INT HANIS_TRUST;
VAR INT FISK_TRUST;
var int quentin_fight;//1= walka z quetinem;2=ucieczka bohatera;-1=boh nie chcial walczyc
VAR INT KNOW_JACKALLIGATOR;//bool
VAR INT KNOW_PACHOANDSCORPIO;//bool
VAR INT KNOW_GESTATH;//bool
VAR INT KNOW_CARLSON;//bool
var int Day_PachoJoinsORCamp;//Zmienna opóźniająca quest który daje swistak (+2 dni), przechowuje dzien w ktorym Pacho pojawil sie w OR(wraz z Skorpionem) -orc
//*Chapter 2**********
VAR INT SPY_OK;//zmienna potrzebna do zadania z wykryciem szpiega w obozie
VAR INT SPY_COUNT;//zlicza to ile wie dick
VAR INT TH_HERO_KNOWPWD;
VAR INT TH_TRUST;//When talk with Kira init num been set to 1
VAR INT FOX_STEW;
VAR INT TONY_SPY;
VAR INT CAV_TROL;
VAR INT TROL_CMP_TRUST;
VAR INT SNOW_KNOW;
VAR INT TABLOR_BEAST;
VAR INT TABLOR_TROL;
VAR INT TABLOR_SHADOW;
VAR INT BUKHART_TRAIT;
VAR INT DEBT_READ;
VAR INT DEBT_COUNTER;
VAR INT KIRA_TRIAL;
VAR INT DICK_PATROL_CHOICE;
VAR INT PATROL_TRIAL;
VAR INT KATAR_RYTUAL;
VAR INT OPEN_KART;
VAR INT MILTEN_INGED;
VAR INT MAG_PROVE;
VAR INT MAG_KNOWS;
VAR INT GRD_ATTACK_FINISH;
VAR INT PACHO_HEROSERVEDHARK;
VAR INT BURHART_DOING_BAD;
//*****************************
//*Chapter 3**********
VAR INT DICK_CHOOSE;
VAR INT EQQUIP_CHECK;
VAR INT EQQUIP_CHECK_MAG;
VAR INT BUDDLER_JOIN;
VAR INT KIRA_HELP;
VAR INT RATFORD_HELP;
VAR INT CAV_TAKE;
VAR INT RODNEY_MAG;
var int Hero_GotoGYD;
var int removeNamelessFromWorldZen;
VAR INT OTHERS_HELP;
VAR INT OLDCAMPGRDS;
VAR INT HERO_MEETS_INFORMATOR;
VAR INT MAP3_READBYDICK;
VAR INT MAP4_READBYDICK;
VAR INT ORNAMENT_WAIT;
VAR INT RITUAL_TIME_OK;
VAR INT LEE_FREE;
VAR INT RYTUAL_BREAK;
VAR INT SWORD_STOLEN;
VAR INT OR_PREALARM;
var int Leaf_OCSpy_notpermanent;
var int talking_with_Truan;
//*Chapter 4**********
VAR INT LEE_BACK;
VAR INT GRD_NC_PASS;
VAR INT LARES_DONE;
VAR INT LARES_COOPERATE;
VAR INT PLUSK_ANGRY;
VAR INT PLUSK_FEAR;
VAR INT PLUSK_DRINK;
VAR INT WOLF_COOPERATE;
VAR INT MINERS_WORK;
VAR INT XARDAS_AGREE;
VAR INT MYXIR_RITUAL;
VAR INT PLACE_CHANGE;
VAR INT DICK_TRIAL;
VAR INT ALMAN_READ;
VAR INT ALM_LOG_READ;
VAR INT LESTER_JOINT;
var int Dream_finished;
VAR INT FOCUS_GET;
VAR INT NECROMANT_AGREE;
VAR INT RITUAL_END;
var int freemine_ready_to_opened;
var int isFirstTalkingInDream;
var int drankPoisonInDream;
//*Chapter 5**********
var int EvtCave_HelperTimer;
VAR INT TASK_CHOICE;
VAR INT PASSAGE_KNOW;
VAR INT MERC_DONE;
VAR INT CONVOY_LIST_READ;
VAR INT ORKAN_WAIT;
VAR INT MERC_TRAP;
//*Chapter 6**********
VAR INT CHEST_KNOW;
VAR INT MOBUSE;
CONST INT CHEST_USED=1;
VAR INT CHEST_CONF;
VAR INT DIEGO_DEAD;
VAR INT NECRO_APPEAR;
//****SIde quests****************
var int STRANGE_DEMON_KNOW;
//************Orle gniazdo*****
var int nia_rest;
var int investigation;//w sumie niepotrzebne, zrezygnowałem bo wcześniej zmienne się resetowały przecież.
//**********************
VAR INT DRAX_SELL;
VAR INT STONE_NOTE_READ;
VAR INT FINGERS_PROOFS;
VAR INT RAVEN_LIST;
VAR INT HELP_MARTIN;
VAR INT KUVA_HELP;
VAR INT KAPITEL;
VAR INT PLAY_LUTE;
VAR INT FIRSTJOINT;
VAR INT SECONDJOINT;
VAR INT THIRDJOINT;
VAR INT WISSEN_ALMANACH;
//Aidan
VAR INT KNOW_AIDAN_IS_NOVICE;//Novice in BlackSmith not from B.H.
VAR INT KNOW_AIDAN_AFTER;
VAR INT HEAR_ABOUT_AIDAN_SPECIALS;
VAR INT AIDAN_TRADING;
VAR INT KNOW_AIDAN_DONT_LIKE_WORK;
//Tony
VAR INT TONY_MEMBERS;
VAR INT TONY_JOBS;
VAR INT TONY_CHIEF;
VAR INT TONY_GUARDS;
VAR INT TONY_SHADOWS;
VAR INT TONY_DIGGERS;
VAR INT TONY_OREBARON;
//Teams [Z czasów turnieju na to kto zabije wiecej straznikow :D ]
VAR INT TEAM_A;//1,2,3,4
VAR INT TEAM_B;//1,2,3,4
VAR STRING TEAM_A_NAME;//1,2
VAR STRING TEAM_B_NAME;//1,2
VAR INT TEAMAKILLS;
VAR INT TEAMBKILLS;
//------------
//Magic SWD
VAR INT MAGIC_SWD_EQUIPED;//bool
//
//..........................................
VAR INT POINTS_OC;
VAR INT POINTS_NC;
VAR INT POINTS_ST;
VAR INT LOADGAMECOUNTER;
VAR INT LAST_LOADGAMECOUNTER;
VAR INT WORLDS_INITS;
//*****************
//Animals variants
//*****************
VAR INT SHEEPORHAMMEL;
//
//********************
///Trophies
//********************
VAR INT KNOWS_GETTEETH; //1 | 5+LVL | 5 LP //Ząb/Kieł:
VAR INT KNOWS_GETCLAWS; //2 | 10+LVL | 5 LP //Pazury:
VAR INT KNOWS_GETFUR;//3 | 3xLVL+30 | 5 LP //Futro:
VAR INT KNOWS_GETHIDE;//4 | 3xLVL+30 | 5 LP //Skóra: Topielec, waran, ognisty waran
VAR INT KNOWS_GETTONGUE;//5 | 10xLVL | 5 LP //Język: ognisty waran, waran, jaszczuroczłek, aligator
VAR INT KNOWS_GETMCMANDIBLES;//6 | | 1 LP //Wnętrznosci pełzacza
VAR INT KNOWS_GETMCTHREAD; //7 | | 1 LP //Nić pełzacza
VAR INT KNOWS_GETMCPLATES;//8 | | 1 LP //Płytki pancerza pełzacza
VAR INT KNOWS_GETBFSTING;//9 | | 1 LP //Ządło: Krwiopijca
VAR INT KNOWS_GETWINGS; //10 | | 1 LP //Skrzydła: Krwiopijca
VAR INT KNOWS_GETHORN; //11 | | 3 LP //Róg: Cieniostwór, smoczy zębacz
VAR INT KNOWS_GETLIVER; //12 | | 1 LP //Wątroba: kretoszczur
VAR INT KNOWS_GETFEATHER;//13 | | 1 LP //Pióro: Scierwojad, harpie
VAR INT KNOWS_GETWTF;//14 | | 1 LP //Jelita: cieniostwór
VAR INT KNOWS_GETWOOL;//15 | | 1 LP //Wełna
VAR INT KNOWS_GETHEART; //16 | | 3 LP //Serce: Golemy
CONST INT LPCOST_GETTEETH=5;
CONST INT LPCOST_GETCLAWS=5;
CONST INT LPCOST_GETFUR =5;
CONST INT LPCOST_GETHIDE =5;
CONST INT LPCOST_GETTONGUE=5;
CONST INT LPCOST_GETMCMANDIBLES=1;
CONST INT LPCOST_GETMCTHREAD =1;
CONST INT LPCOST_GETMCPLATES =1;
CONST INT LPCOST_GETBFSTING =1;
CONST INT LPCOST_GETWINGS=1;
CONST INT LPCOST_GETHORN=3;
CONST INT LPCOST_GETLIVER=1;
CONST INT LPCOST_GETFEATHER =1;
CONST INT LPCOST_GETWTF =1;
CONST INT LPCOST_GETWOOL =1;
CONST INT LPCOST_GETHEART=3;
CONST STRING TEXT_LERN_GETTEETH="Usuwanie kłów (koszt: 5 punktów umiejętności, 250 bryłek rudy)";
CONST STRING TEXT_LERN_GETCLAWS="Usuwanie pazurów (koszt: 5 punktów umiejętności, 250 bryłek rudy)";
CONST STRING TEXT_LERN_GETFUR ="Ściąganie futer (koszt: 5 punktów umiejętności, 250 bryłek rudy)";
CONST STRING TEXT_LERN_GETHIDE ="Skórowanie gadów (koszt: 5 punktów umiejętności, 250 bryłek rudy)";
CONST STRING TEXT_LERN_GETTONGUE="Usuwanie języka (koszt: 5 punktów umiejętności, 250 bryłek rudy)";
CONST STRING TEXT_LERN_GETMCMANDIBLES="Usuwanie żuwaczek (koszt: 1 punkt umiejętności, 50 bryłek rudy)";
CONST STRING TEXT_LERN_GETMCTHREAD ="Pozyskiwanie sieci pełzacza (koszt: 1 punkt umiejętności, 50 bryłek rudy)";
CONST STRING TEXT_LERN_GETMCPLATES ="Usuwanie pancerza pełzaczy (koszt: 1 punkt umiejętności, 50 bryłek rudy)";
CONST STRING TEXT_LERN_GETBFSTING ="Usuwanie żądła (koszt: 1 punkt umiejętności, 50 bryłek rudy)";
CONST STRING TEXT_LERN_GETWINGS="Usuwanie skrzydeł (koszt: 1 punkt umiejętności, 50 bryłek rudy)";
CONST STRING TEXT_LERN_GETHORN="Usuwanie rogów (koszt: 3 punkty umiejętności, 150 bryłek rudy)";
CONST STRING TEXT_LERN_GETLIVER="Usuwanie wątroby (koszt: 1 punkt umiejętności, 50 bryłek rudy)";
CONST STRING TEXT_LERN_GETFEATHER ="Usuwanie piór (koszt: 1 punkt umiejętności, 50 bryłek rudy)";
CONST STRING TEXT_LERN_GETWTF ="Usuwanie jelita cieniostwora (koszt: 1 punkt umiejętności, 50 bryłek rudy)";
CONST STRING TEXT_LERN_GETWOOL ="Pozyskiwanie wełny (koszt: 1 punkt umiejętności, 50 bryłek rudy)";
CONST STRING TEXT_LERN_GETHEART="Usuwanie serc (koszt: 3 punkty umiejętności, 150 bryłek rudy)";
const int ANIMALTROPHY_ORECOST_PER_LP = 50;
const string name_learning_strength = "Nauka: siła.";
const string name_learning_dexterity = "Nauka: zręczność.";
const string name_learning_sneak = "Nauka: skradanie się (10 PN).";
const string name_learning_bow = "Naucz mnie posługiwać się łukiem.";
const string name_learning_smith = "Nauka kowalstwa.";
const string name_learning_picklock = "Nauka: otwieranie zamków.";
const string name_learning_pickpocket = "Nauka: kradzież.";
const string name_learning_combat_1h = "Naucz mnie walczyć bronią jednoręczną.";
const string name_learning_combat_2h = "Naucz mnie walczyć bronią dwuręczną.";
const string name_learning_regeneration_HP = "Naucz mnie regeneracji życia.";
const string name_learning_regeneration_mana = "Naucz mnie regeneracji many.";
const string name_learning_mana = "Nauka: mana.";
const string name_learning_quick_learning = "Szybka nauka.";
const string name_learning_alchemy = "Nauka alchemii.";
const string name_learning_magic = "Nauka: magia.";
const string name_learning_animaltrophy = "Nauka: oprawianie zwierzyny.";
const string name_learning_crossbow = "Naucz mnie posługiwać się kuszą.";
const string name_learning_evasion = "Naucz mnie unikania ciosów.";
const string name_learning_runesword = "Naucz mnie posługiwać się mieczem runicznym (30 PN).";
var int PupilBugfix2;
var int INEXTREMOPLAYING;
var int MCPLATESDELIVERED;
var int Enter_To_Magtower;
var int GetTheWittenRing;
var int GetTheRamonAmulet;
var int EnteredOldMine;
var int EnteredFreeMine;
var int FreeMineOrc_LookingUluMulu;
var int Black_mag_arrived;
var int necro_dead;
const int BecomeRBL_Level = 10;
//const int BecomeHUN_Level = 15;
//const int BecomeMAG_Level = 15;
//#####################################################################
//##
//##
//## Erfahrungspunkte
//##
//##
//#####################################################################
const int XP_GilbertFound = 200;
//*************************
//Czas Zapłaty varibles/constants
//*************************
//guardsadded = 0;
VAR INT GUARDSADDED;
CONST INT MAXGUARDS=5;//Czyli 4
VAR INT GUARDSKILLED;
CONST INT GUARDSINCHALLENGE=40;
VAR INT SPAWNTIME;
VAR INT CHALLENGESTATE;
VAR INT GRDTALENTS;
VAR INT GRDDIFICULT;
VAR INT CAVESTATUEDESTROYED;
/*-------------------------------------------------------------------------
LOG EINTRAGS VARIABLEN
( da die Logeinträge nicht einfach so in permanenten Infos stehen dürfen!)
--------------------------------------------------------------------------*/
VAR INT LOG_GORNATOTHFIGHT;
VAR INT LOG_GORNATOTHTRAIN;
VAR INT LOG_WOLFTRAIN;
VAR INT LOG_BAALCADARSELL;
VAR INT LOG_BAALCADARTRAIN;
VAR INT LOG_DIEGOTRAIN;
VAR INT LOG_SCORPIOCROSSBOW;
VAR INT LOG_THORUSTRAIN;
VAR INT LOG_THORUSFIGHT;
VAR INT LOG_WEDGELEARN;
VAR INT LOG_SCATTYTRAIN;
VAR INT LOG_CAVALORNTRAIN;
VAR INT DEXTER_TRADED;
VAR INT SCORPIO_EXILE;
//------------------------------------------------------------------------
//Allgemeine Hilfsvariablen
//------------------------------------------------------------------------
VAR INT LEFTYDEAD;
//test
//*********MISC***************
VAR INT TRIG_FIRST_SEND;//bool
VAR STRING MOBNAME;
VAR STRING FPNAME;
VAR INT WORLD_CURRENT;
CONST INT WORLD_UNDEF=0;
CONST INT WORLD_WORLDZEN=10;
CONST INT WORLD_FREEMINE = 1;
CONST INT WORLD_OGY = 2;
CONST INT WORLD_MONASTERYDUNGEONZEN=3;
CONST INT WORLD_CATACOMBS =4;
CONST INT WORLD_OTEMPLE=5;
CONST INT WORLD_DREAM01 =6;//psi dream
CONST INT WORLD_OR_DEEP = 7;
CONST INT WORLD_NECROLOCATION = 8;
CONST INT WORLD_LABYRINTH = 9;
//Respawn system bugfix
var int LastDayIn_WORLDZEN ;
var int LastDayIn_FREEMINE ;
var int LastDayIn_OGY ;
var int LastDayIn_MONASTERYDUNGEONZEN;
var int LastDayIn_CATACOMBS ;
var int LastDayIn_OTEMPLE ;
var int LastDayIn_PSIDREAM ;
var int LastDayIn_ORMINE ;
CONST INT PSI_DREAM_FGT_TIME=2;
//#####################################################################
//##
//## Storyline Var's
//##
//#####################################################################
VAR INT NC_ARRIVED;
VAR INT PSI_ARRIVED;
//#####################################################################
//##
//## Mission Var's
//##
//#####################################################################
VAR INT RECRUITS_ARRIVED;
|
D
|
module dpp.translation.docs;
import dpp.from;
/** Get the attached comments at the location of the cursor */
string getComment(in from!"clang".Cursor cursor) @safe {
import std.typecons: Nullable;
string docStr = "";
Nullable!string nullableComment = cursor.raw_comment();
if(!nullableComment.isNull) {
docStr = nullableComment.get();
}
return docStr;
}
|
D
|
/*------------------------------------------------------------------------
Sitzender Ork
------------------------------------------------------------------------*/
instance Grd_277_Gardist_SITTINGORK(C_INFO)
{
npc = Grd_277_Gardist;
condition = Grd_277_Gardist_SITTINGORK_Condition;
information = Grd_277_Gardist_SITTINGORK_Info;
important = 0;
permanent = 0;
// description = "What's with that Orc?";
// description = "Was ist mit dem Ork da?";
description = "Co je s tím skřetem?";
};
func int Grd_277_Gardist_SITTINGORK_Condition()
{
if (Ian_gearwheel != LOG_SUCCESS)
{
return TRUE;
};
};
func void Grd_277_Gardist_SITTINGORK_Info()
{
// AI_Output(other,self,"Grd_277_Gardist_SITTINGORK_Info_15_01"); //What's with that Orc?
// AI_Output(other,self,"Grd_277_Gardist_SITTINGORK_Info_15_01"); //Was ist mit dem Ork da?
AI_Output(other,self,"Grd_277_Gardist_SITTINGORK_Info_15_01"); //Co je s tím skřetem?
// AI_Output(self,other,"Grd_277_Gardist_SITTINGORK_Info_06_02"); //He's our prisoner. He's lucky that the gearwheel of the masher has broken. That's why this son of a bitch is being allowed to have a break.
// AI_Output(self,other,"Grd_277_Gardist_SITTINGORK_Info_06_02"); //Unser Gefangener. Sein Glück, dass das Zahnrad des Stampfers gebrochen ist. So kann dieser Hundesohn ausruhen.
//#Needs_Attention: zkurvysyn hmmm :) nieje to moc drsne vs original?
//Je to náš vězeň. Má štěstí, že ozubené kolo drtičky je rozbité. Proto si ten čubčí syn může dopřávat přestávku.
AI_Output(self,other,"Grd_277_Gardist_SITTINGORK_Info_06_02"); //Je to náš zajatec. Má štěstí, že ozubené kolo drtičky je rozbité. Proto tu teď ten zkurvysyn může odpočívat.
// AI_Output(self,other,"Grd_277_Gardist_SITTINGORK_Info_06_03"); //As soon as the masher is repaired, it's back to work for him. He's not here to laze around all the time!
// AI_Output(self,other,"Grd_277_Gardist_SITTINGORK_Info_06_03"); //Wenn der Stampfer repariert ist, wird er wieder arbeiten. Schließlich ist er nicht zum Faulenzen hier!
AI_Output(self,other,"Grd_277_Gardist_SITTINGORK_Info_06_03"); //Jakmile bude drtička opravená, bude zase pracovat! Ostatně, není tu od toho, aby se povaloval!
};
/*------------------------------------------------------------------------
WORKINGORK
------------------------------------------------------------------------*/
instance Grd_277_Gardist_WORKINGORK(C_INFO)
{
npc = Grd_277_Gardist;
condition = Grd_277_Gardist_WORKINGORK_Condition;
information = Grd_277_Gardist_WORKINGORK_Info;
important = 0;
permanent = 0;
// description = "I see the masher has already been repaired.";
// description = "Ich sehe, der Stampfer ist schon repariert.";
description = "Vidím, že drtička je už opravená.";
};
func int Grd_277_Gardist_WORKINGORK_Condition()
{
if (Ian_gearwheel == LOG_SUCCESS)
{
return TRUE;
};
};
func void Grd_277_Gardist_WORKINGORK_Info()
{
// AI_Output(other,self,"Grd_277_Gardist_WORKINGORK_Info_15_01"); //I see the masher has already been repaired.
// AI_Output(other,self,"Grd_277_Gardist_WORKINGORK_Info_15_01"); //Ich sehe, der Stampfer ist schon repariert.
AI_Output(other,self,"Grd_277_Gardist_WORKINGORK_Info_15_01"); //Vidím, že drtička je už opravená.
// AI_Output(self,other,"Grd_277_Gardist_WORKINGORK_Info_06_02"); //Yeah, we're fast when it comes to making people work.
// AI_Output(self,other,"Grd_277_Gardist_WORKINGORK_Info_06_02"); //Ja, wenn es darum geht, die Leute zum Arbeiten zu bringen, sind wir ziemlich schnell.
AI_Output(self,other,"Grd_277_Gardist_WORKINGORK_Info_06_02"); //Ano, když mají lidi pracovat, tak jsme rychlí.
};
|
D
|
module net.server.server;
/* The daemon runs an instance of this. This can take many connections
* from other people's NetClients.
*
* The game runs a NetServer instance if you click (I want to be server)
* in the lobby. Then, the game creates a NetClient too, connects to the
* local NetServer, and treats that NetServer without knowing it's local.
*/
import std.algorithm;
import derelict.enet.enet;
import net.server.ihotelob;
import net.server.hotel;
import net.enetglob;
import net.packetid;
import net.permu;
import net.structs;
import net.versioning;
class NetServer : IHotelObserver {
private:
ENetHost* _host;
Profile[PlNr] _profiles;
Hotel _hotel;
public:
this(in int port)
{
initializeEnet();
ENetAddress address;
address.host = ENET_HOST_ANY;
address.port = port & 0xFFFF;
_hotel = Hotel(this);
_host = enet_host_create(&address,
127, // max connections. PlNr is ubyte, redesign PlNr if want more
2, // allow up to 2 channels to be used, 0 and 1
0, // assume any amount of incoming bandwidth
0); // assume any amount of outgoing bandwidth
if (_host is null)
assert (false, "error creating enet server host");
}
~this()
{
if (_host) {
enet_host_destroy(_host);
_host = null;
}
_hotel.dispose();
deinitializeEnet();
}
bool anyoneConnected() const { return _profiles.length != 0; }
void calc()
{
assert (_host);
ENetEvent event;
while (enet_host_service(_host, &event, 0) > 0)
final switch (event.type) {
case ENET_EVENT_TYPE_NONE:
assert (false, "enet_host_service should have returned 0");
case ENET_EVENT_TYPE_CONNECT:
// Don't write the player's information into _profiles.
// We will do that when the peer sends its hello packet.
break;
case ENET_EVENT_TYPE_RECEIVE:
receivePacket(event.peer, event.packet);
enet_packet_destroy(event.packet);
break;
case ENET_EVENT_TYPE_DISCONNECT:
broadcastDisconnection(event.peer);
break;
}
enet_host_flush(_host);
}
// ############################################################################
// ######################################################### friend class Hotel
const(Profile[PlNr]) allPlayers() const @nogc { return _profiles; }
// This doesn't notify anyone, they must do it on a packet receive
void unreadyAllInRoom(Room roomWithChange) @nogc
{
foreach (ref profile; _profiles)
if (profile.room == roomWithChange)
profile.setNotReady();
}
void sendLevelByChooser(PlNr receiv, const(ubyte[]) level, PlNr from) @nogc
{
if (_host.peers + receiv is null)
return;
PacketHeader header;
header.packetID = PacketStoC.peerLevelFile;
header.plNr = from;
auto p = createPacket(header.len + level.length);
header.serializeTo(p.data[0 .. header.len]);
p.data[header.len .. p.dataLength] = level[0 .. $];
enet_peer_send(_host.peers + receiv, 0, p);
}
// describeRoom will send 1 or 2 packets to receiv.
void describeRoom(PlNr receiv, const(ubyte[]) level, PlNr from)
{
auto informMover = ProfileListPacket();
informMover.header.packetID = PacketStoC.peersAlreadyInYourNewRoom;
informMover.header.plNr = receiv;
immutable toRoom = _profiles[receiv].room;
_profiles.byKeyValue
.filter!(kv => kv.value.room == toRoom) // including themself
.each!((kv) {
informMover.indices ~= kv.key;
informMover.profiles ~= kv.value;
});
enet_peer_send(_host.peers + receiv, 0, informMover.createPacket());
if (toRoom == Room(0))
informLobbyistAboutRooms(receiv);
else if (level)
sendLevelByChooser(receiv, level, from);
}
void informLobbyistAboutRooms(PlNr receiv)
{
assert (_host);
assert (_host.peers);
assert (receiv in _profiles);
assert (_profiles[receiv].room == 0);
enet_peer_send(_host.peers + receiv, 0,roomsForLobbyists.createPacket);
}
void sendPeerEnteredYourRoom(PlNr receiv, PlNr mover)
{
assert (_host);
assert (_host.peers);
auto pa = ProfilePacket();
pa.header.packetID = PacketStoC.peerJoinsYourRoom;
pa.header.plNr = mover;
pa.profile = _profiles[mover];
enet_peer_send(_host.peers + receiv, 0, pa.createPacket);
}
void sendPeerLeftYourRoom(PlNr receiv, PlNr mover)
{
assert (_host);
assert (_host.peers);
assert (receiv in _profiles);
assert (mover in _profiles);
auto pa = RoomChangePacket();
pa.header.packetID = PacketStoC.peerLeftYourRoom;
pa.header.plNr = mover;
pa.room = _profiles[mover].room;
enet_peer_send(_host.peers + receiv, 0, pa.createPacket);
}
void startGame(PlNr roomOwner, int permuLength)
{
unreadyAllInRoom(_profiles[roomOwner].room);
auto pa = StartGameWithPermuPacket(permuLength);
pa.header.packetID = PacketStoC.gameStartsWithPermu;
pa.header.plNr = roomOwner;
broadcastToRoom(pa);
}
// ############################################################################
private:
void receivePacket(ENetPeer* peer, ENetPacket* got)
{
assert (_host);
assert (peer);
assert (got);
if (got.dataLength < 1)
return;
/* Convention:
* When we make a struct from the packet data, this struct contains
* a header, but we don't trust header.plNr. To see who sent this
* packet, we always infer the plNr from peerToPlNr.
*/
with (PacketCtoS) switch (got.data[0]) {
case hello: receiveHello(peer, got); break;
case toExistingRoom: receiveRoomChange(peer, got); break;
case createRoom: receiveCreateRoom(peer, got); break;
case myProfile: receiveProfileChange(peer, got); break;
case chatMessage: receiveChat(peer, got); break;
case levelFile: receiveLevel(peer, got); break;
default: break;
}
}
PlNr peerToPlNr(ENetPeer* peer) const
{
return PlNr((peer - _host.peers) & 0xFF);
}
template broadcastTemplate(bool includingSubject) {
// This examines the struct's header for what room to broadcast.
// This can or cannot broadcast to packet.header.plNr.
void broadcastTemplate(Struct)(in Struct st)
if (!is (Struct == ENetPacket*))
{
assert (_host);
if (auto subject = st.header.plNr in _profiles)
_profiles.byKeyValue
.filter!(kv => kv.value.room == subject.room
&& (includingSubject || kv.key != st.header.plNr))
.each!(kv => enet_peer_send(_host.peers + kv.key,
0, st.createPacket));
}
}
alias broadcastToRoom = broadcastTemplate!true;
alias broadcastToOthersInRoom = broadcastTemplate!false;
void broadcastDisconnection(ENetPeer* peer)
{
auto discon = SomeoneDisconnectedPacket();
discon.packetID = PacketStoC.peerDisconnected;
discon.plNr = peerToPlNr(peer);
broadcastToOthersInRoom(discon);
_profiles.remove(discon.plNr);
}
RoomListPacket roomsForLobbyists()
{
Profile[Room] temp;
foreach (profile; _profiles)
temp[profile.room] = profile;
temp.remove(Room(0));
RoomListPacket roomList;
roomList.header.packetID = PacketStoC.listOfExistingRooms;
// We don't need to set a player number on this packet of general info
roomList.indices = temp.keys;
roomList.profiles = temp.values;
return roomList;
}
void receiveHello(ENetPeer* peer, ENetPacket* got)
{
immutable hello = HelloPacket(got);
auto answer = HelloAnswerPacket();
immutable plNr = peerToPlNr(peer);
answer.header.plNr = plNr;
answer.header.packetID = hello.fromVersion.compatibleWith(gameVersion)
? PacketStoC.youGoodHeresPlNr
: hello.fromVersion < gameVersion
? PacketStoC.youTooOld : PacketStoC.youTooNew;
enet_peer_send(peer, 0, answer.createPacket());
_profiles.remove(plNr);
if (answer.header.packetID == PacketStoC.youGoodHeresPlNr) {
_profiles[plNr] = hello.profile;
_profiles[plNr].room = Room(0);
_hotel.newPlayerInLobby(plNr);
}
else {
// Remove peer, so that it won't get the broadcast, but don't
// generate any packets. The peer already got our answer packet
// and will disconnect themself.
enet_peer_reset(peer);
auto misfit = SomeoneMisfitsPacket();
misfit.header.packetID = hello.fromVersion < gameVersion
? PacketStoC.someoneTooOld : PacketStoC.someoneTooNew;
misfit.header.plNr = plNr;
misfit.misfitProfile = hello.profile;
misfit.misfitVersion = hello.fromVersion;
misfit.serverVersion = gameVersion;
enet_host_broadcast(_host, 0, misfit.createPacket());
}
}
void receiveRoomChange(ENetPeer* peer, ENetPacket* got)
{
auto wish = RoomChangePacket(got);
wish.header.plNr = peerToPlNr(peer);
auto oldProfile = wish.header.plNr in _profiles;
immutable oldRoom = oldProfile ? oldProfile.room : Room(0);
if (! oldProfile || oldProfile.room == wish.room)
return;
oldProfile.room = wish.room;
_hotel.playerHasMoved(wish.header.plNr, oldRoom, wish.room);
}
void receiveCreateRoom(ENetPeer* peer, ENetPacket* got)
{
immutable plNr = peerToPlNr(peer);
auto oldProfile = plNr in _profiles;
immutable oldRoom = oldProfile ? oldProfile.room : Room(0);
immutable newRoom = _hotel.firstFreeRoomElseLobby();
if (! oldProfile || oldProfile.room == newRoom)
return;
oldProfile.room = newRoom;
_hotel.playerHasMoved(plNr, oldRoom, newRoom);
}
void receiveProfileChange(ENetPeer* peer, ENetPacket* got)
{
auto changed = ProfilePacket(got);
auto plNr = peerToPlNr(peer);
auto oldProfile = plNr in _profiles;
if (! oldProfile) {
// Do nothing, even though we should never get here.
// Let this function put the profile into _profiles and broadcast.
}
else if (oldProfile.room != changed.profile.room)
// room changes require another packet in our protocol
return;
else if (oldProfile.wouldForceAllNotReadyOnReplace(changed.profile))
unreadyAllInRoom(_profiles[plNr].room);
_profiles[plNr] = changed.profile;
changed.header.packetID = PacketStoC.peerProfile;
changed.header.plNr = plNr;
broadcastToRoom(changed); // including to the sender!
_hotel.maybeStartGame(_profiles[plNr].room);
}
void receiveChat(ENetPeer* peer, ENetPacket* got)
{
auto answer = ChatPacket(got);
auto plNr = peerToPlNr(peer);
auto profile = plNr in _profiles;
if (! profile)
return;
answer.header.plNr = plNr;
answer.header.packetID = PacketStoC.peerChatMessage;
broadcastToRoom(answer);
}
void receiveLevel(ENetPeer* peer, ENetPacket* got)
{
auto plNr = peerToPlNr(peer);
auto profile = plNr in _profiles;
// Any level data is okay, even an empty one.
// We don't impose a max size. We probably should.
if (! profile || got.dataLength < 2)
return;
_hotel.receiveLevel(profile.room, plNr, got.data[2 .. got.dataLength]);
unreadyAllInRoom(profile.room);
}
}
|
D
|
PLONG PLAT ED95 KD LOMAGAGE HIMAGAGE SLAT SLONG RESULTNO DP DM WT ROCKTYPE
283.600006 83.1999969 4.4000001 84.1999969 2 4 -38 142.5 140 6.19999981 6.19999981 0.912561576 sediments, limestone, extrusives
21.8999996 87.1999969 3.5 52 0 4 -37 143.399994 9069 4.4000001 4.4000001 0.966731536 extrusives, basalts
52 88 1.89999998 323 0 1 -38 140.699997 1147 2 2.79999995 0.472222222 extrusives, basalts, baked contacts
216 82 1.60000002 999.900024 0 1 -38 140.699997 1148 1.60000002 2.29999995 0.4375 extrusives, basalts
244.5 81.6999969 9.80000019 0 2 10 -9.60000038 119.300003 1209 5.80000019 10.6999998 0.606060606 extrusives
249.300003 82.3000031 8.60000038 0 2 10 -9.69999981 120.099998 1208 5.0999999 9.39999962 0.466666667 sediments, tuffs
264.399994 75 15.6000004 0 2 65 -8.80000019 126.699997 1206 10.3999996 18 0.444444444 extrusives, intrusives
282.5 75.8000031 13 10 0 1 -37 150 1835 16.5 20.7000008 0.464285714 sediments
280.799988 73.9000015 0 0 0 1 -37 147 1833 0 0 0.853125 sediments, redbeds
326.700012 73.3000031 5 75 0 1 -33 149 1834 6.9000001 8.30000019 0.92578125 sediments
282.100006 86.3000031 4.80000019 37 0 5 -38 143.5 1818 5.5 7.19999981 0.961 extrusives
266.299988 86.5999985 1.5 82 0 5 -38.5 143.5 1897 1.89999998 1.89999998 0.970905525 extrusives
236.600006 78.5 0 7.5 0 35 -17.2000008 131.5 1894 0 0 0.4375 sediments, red mudstones
56 83 6 56 0 5 -38 143.5 1859 8 8 0.8815427 extrusives
23.7999992 84.1999969 5.0999999 78.9000015 0 1 -34 144 1963 5.30000019 7.30000019 0.88794926 sediments, baked
|
D
|
/* crypto/bn/bn.h */
/* Copyright (C) 1995-1997 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young (eay@cryptsoft.com).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson (tjh@cryptsoft.com).
*
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* "This product includes cryptographic software written by
* Eric Young (eay@cryptsoft.com)"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
* 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
*
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
* [including the GNU Public Licence.]
*/
/* ====================================================================
* Copyright (c) 1998-2006 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. All advertising materials mentioning features or use of this
* software must display the following acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
*
* 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
* endorse or promote products derived from this software without
* prior written permission. For written permission, please contact
* openssl-core@openssl.org.
*
* 5. Products derived from this software may not be called "OpenSSL"
* nor may "OpenSSL" appear in their names without prior written
* permission of the OpenSSL Project.
*
* 6. Redistributions of any form whatsoever must retain the following
* acknowledgment:
* "This product includes software developed by the OpenSSL Project
* for use in the OpenSSL Toolkit (http://www.openssl.org/)"
*
* THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
* EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
* ====================================================================
*
* This product includes cryptographic software written by Eric Young
* (eay@cryptsoft.com). This product includes software written by Tim
* Hudson (tjh@cryptsoft.com).
*
*/
/* ====================================================================
* Copyright 2002 Sun Microsystems, Inc. ALL RIGHTS RESERVED.
*
* Portions of the attached software ("Contribution") are developed by
* SUN MICROSYSTEMS, INC., and are contributed to the OpenSSL project.
*
* The Contribution is licensed pursuant to the Eric Young open source
* license provided above.
*
* The binary polynomial arithmetic software is originally written by
* Sheueling Chang Shantz and Douglas Stebila of Sun Microsystems Laboratories.
*
*/
module deimos.openssl.bn;
import deimos.openssl._d_util;
public import deimos.openssl.e_os2;
version(OPENSSL_NO_FP_API) {} else {
import core.stdc.stdio; /* FILE */
}
public import deimos.openssl.ossl_typ;
public import deimos.openssl.crypto;
extern (C):
nothrow:
/+ Not ported, internal only.
/* These preprocessor symbols control various aspects of the bignum headers and
* library code. They're not defined by any "normal" configuration, as they are
* intended for development and testing purposes. NB: defining all three can be
* useful for debugging application code as well as openssl itself.
*
* BN_DEBUG - turn on various debugging alterations to the bignum code
* BN_DEBUG_RAND - uses random poisoning of unused words to trip up
* mismanagement of bignum internals. You must also define BN_DEBUG.
*/
/* #define BN_DEBUG */
/* #define BN_DEBUG_RAND */
// #ifndef OPENSSL_SMALL_FOOTPRINT
// #define BN_MUL_COMBA
// #define BN_SQR_COMBA
// #define BN_RECURSION
// #endif
/* This next option uses the C libraries (2 word)/(1 word) function.
* If it is not defined, I use my C version (which is slower).
* The reason for this flag is that when the particular C compiler
* library routine is used, and the library is linked with a different
* compiler, the library is missing. This mostly happens when the
* library is built with gcc and then linked using normal cc. This would
* be a common occurrence because gcc normally produces code that is
* 2 times faster than system compilers for the big number stuff.
* For machines with only one compiler (or shared libraries), this should
* be on. Again this in only really a problem on machines
* using "long long's", are 32bit, and are not using my assembler code. */
#if defined(OPENSSL_SYS_MSDOS) || defined(OPENSSL_SYS_WINDOWS) || \
defined(OPENSSL_SYS_WIN32) || defined(linux)
# ifndef BN_DIV2W
# define BN_DIV2W
# endif
#endif
/* assuming c_long is 64bit - this is the DEC Alpha
* c_ulong c_long is only 64 bits :-(, don't define
* BN_LLONG for the DEC Alpha */
#ifdef SIXTY_FOUR_BIT_LONG
alias c_ulong BN_ULLONG; c_long
alias c_ulong BN_ULONG;
alias c_long BN_LONG;
enum BN_BITS = 128;
enum BN_BYTES = 8;
enum BN_BITS2 = 64;
enum BN_BITS4 = 32;
#define BN_MASK (0xffffffffffffffffffffffffffffffffLL)
#define BN_MASK2 (0xffffffffffffffffL)
#define BN_MASK2l (0xffffffffL)
#define BN_MASK2h (0xffffffff00000000L)
#define BN_MASK2h1 (0xffffffff80000000L)
#define BN_TBIT (0x8000000000000000L)
enum BN_DEC_CONV = (10000000000000000000UL);
enum BN_DEC_FMT1 = "%lu";
enum BN_DEC_FMT2 = "%019lu";
enum BN_DEC_NUM = 19;
enum BN_HEX_FMT1 = "%lX";
enum BN_HEX_FMT2 = "%016lX";
#endif
/* This is where the c_long long data type is 64 bits, but c_long is 32.
* For machines where there are 64bit registers, this is the mode to use.
* IRIX, on R4000 and above should use this mode, along with the relevant
* assembler code :-). Do NOT define BN_LLONG.
*/
#ifdef SIXTY_FOUR_BIT
#undef BN_LLONG
#undef BN_ULLONG
alias c_ulong BN_ULONG; c_long
alias c_long BN_LONG; long
enum BN_BITS = 128;
enum BN_BYTES = 8;
enum BN_BITS2 = 64;
enum BN_BITS4 = 32;
#define BN_MASK2 (0xffffffffffffffffLL)
#define BN_MASK2l (0xffffffffL)
#define BN_MASK2h (0xffffffff00000000LL)
#define BN_MASK2h1 (0xffffffff80000000LL)
#define BN_TBIT (0x8000000000000000LL)
enum BN_DEC_CONV = (10000000000000000000ULL);
enum BN_DEC_FMT1 = "%llu";
enum BN_DEC_FMT2 = "%019llu";
enum BN_DEC_NUM = 19;
enum BN_HEX_FMT1 = "%llX";
enum BN_HEX_FMT2 = "%016llX";
#endif
#ifdef THIRTY_TWO_BIT+/
// #ifdef BN_LLONG
// # if defined(_WIN32) && !defined(__GNUC__)
// # define BN_ULLONG unsigned __int64
// # define BN_MASK (0xffffffffffffffffI64)
// # else
// # define BN_ULLONG c_ulong c_long
// # define BN_MASK (0xffffffffffffffffLL)
// # endif
// #endif
// FIXME: Is this correct?
alias ulong BN_ULLONG;
alias uint BN_ULONG;
alias int BN_LONG;
enum BN_BITS = 64;
enum BN_BYTES = 4;
enum BN_BITS2 = 32;
enum BN_BITS4 = 16;
enum BN_MASK2 = 0xffffffff;
enum BN_MASK2l = 0xffff;
enum BN_MASK2h1 = 0xffff8000;
enum BN_MASK2h = 0xffff0000;
enum BN_TBIT = 0x80000000;
enum BN_DEC_CONV = 1000000000;
enum BN_DEC_FMT1 = "%u";
enum BN_DEC_FMT2 = "%09u";
enum BN_DEC_NUM = 9;
enum BN_HEX_FMT1 = "%X";
enum BN_HEX_FMT2 = "%08X";
/+#endif
/* 2011-02-22 SMS.
* In various places, a size_t variable or a type cast to size_t was
* used to perform integer-only operations on pointers. This failed on
* VMS with 64-bit pointers (CC /POINTER_SIZE = 64) because size_t is
* still only 32 bits. What's needed in these cases is an integer type
* with the same size as a pointer, which size_t is not certain to be.
* The only fix here is VMS-specific.
*/
#if defined(OPENSSL_SYS_VMS)
# if __INITIAL_POINTER_SIZE == 64
# define PTR_SIZE_INT c_long long
# else /* __INITIAL_POINTER_SIZE == 64 */
# define PTR_SIZE_INT int
# endif /* __INITIAL_POINTER_SIZE == 64 [else] */
#else /* defined(OPENSSL_SYS_VMS) */
# define PTR_SIZE_INT size_t
#endif /* defined(OPENSSL_SYS_VMS) [else] */
+/
enum BN_DEFAULT_BITS = 1280;
enum BN_FLG_MALLOCED = 0x01;
enum BN_FLG_STATIC_DATA = 0x02;
enum BN_FLG_CONSTTIME = 0x04; /* avoid leaking exponent information through timing,
* BN_mod_exp_mont() will call BN_mod_exp_mont_consttime,
* BN_div() will call BN_div_no_branch,
* BN_mod_inverse() will call BN_mod_inverse_no_branch.
*/
version(OPENSSL_NO_DEPRECATED) {} else {
alias BN_FLG_CONSTTIME BN_FLG_EXP_CONSTTIME; /* deprecated name for the flag */
/* avoid leaking exponent information through timings
* (BN_mod_exp_mont() will call BN_mod_exp_mont_consttime) */
}
version(OPENSSL_NO_DEPRECATED) {} else {
enum BN_FLG_FREE = 0x8000; /* used for debuging */
}
void BN_set_flags()(BIGNUM* b, int n) { b.flags |= n; }
int BN_get_flags()(const(BIGNUM)* b, int n) { return b.flags & n; }
/* get a clone of a BIGNUM with changed flags, for* temporary* use only
* (the two BIGNUMs cannot not be used in parallel!) */
void BN_with_flags()(BIGNUM* dest, BIGNUM* b, int n) {
dest.d=b.d;
dest.top=b.top;
dest.dmax=b.dmax;
dest.neg=b.neg;
dest.flags=(dest.flags & BN_FLG_MALLOCED)
| (b.flags & ~BN_FLG_MALLOCED)
| BN_FLG_STATIC_DATA
| n;
}
/* Already declared in ossl_typ.h */
version (none) {
alias bignum_st BIGNUM;
/* Used for temp variables (declaration hidden in bn_lcl.h) */
alias bignum_ctx BN_CTX;
alias bn_blinding_st BN_BLINDING;
alias bn_mont_ctx_st BN_MONT_CTX;
alias bn_recp_ctx_st BN_RECP_CTX;
alias bn_gencb_st BN_GENCB;
}
struct bignum_st
{
BN_ULONG* d; /* Pointer to an array of 'BN_BITS2' bit chunks. */
int top; /* Index of last used d +1. */
/* The next are internal book keeping for bn_expand. */
int dmax; /* Size of the d array. */
int neg; /* one if the number is negative */
int flags;
};
/* Used for montgomery multiplication */
struct bn_mont_ctx_st
{
int ri; /* number of bits in R */
BIGNUM RR; /* used to convert to montgomery form */
BIGNUM N; /* The modulus */
BIGNUM Ni; /* R*(1/R mod N) - N*Ni = 1
* (Ni is only stored for bignum algorithm) */
BN_ULONG[2] n0;/* least significant word(s) of Ni;
(type changed with 0.9.9, was "BN_ULONG n0;" before) */
int flags;
};
/* Used for reciprocal division/mod functions
* It cannot be shared between threads
*/
struct bn_recp_ctx_st
{
BIGNUM N; /* the divisor */
BIGNUM Nr; /* the reciprocal */
int num_bits;
int shift;
int flags;
};
/* Used for slow "generation" functions. */
struct bn_gencb_st
{
uint ver; /* To handle binary (in)compatibility */
void* arg; /* callback-specific data */
union cb_
{
/* if(ver==1) - handles old style callbacks */
ExternC!(void function(int, int, void*)) cb_1;
/* if(ver==2) - new callback style */
ExternC!(int function(int, int, BN_GENCB*)) cb_2;
}
cb_ cb;
};
/* Wrapper function to make using BN_GENCB easier, */
int BN_GENCB_call(BN_GENCB* cb, int a, int b);
/* Macro to populate a BN_GENCB structure with an "old"-style callback */
void BN_GENCB_set_old()(gencb, callback, cb_arg) {
BN_GENCB* tmp_gencb = (gencb);
tmp_gencb.ver = 1;
tmp_gencb.arg = (cb_arg);
tmp_gencb.cb.cb_1 = (callback);
}
/* Macro to populate a BN_GENCB structure with a "new"-style callback */
void BN_GENCB_set()(gencb, callback, cb_arg) {
BN_GENCB* tmp_gencb = (gencb);
tmp_gencb.ver = 2;
tmp_gencb.arg = (cb_arg);
tmp_gencb.cb.cb_2 = (callback);
}
enum BN_prime_checks = 0; /* default: select number of iterations
based on the size of the number */
/* number of Miller-Rabin iterations for an error rate of less than 2^-80
* for random 'b'-bit input, b >= 100 (taken from table 4.4 in the Handbook
* of Applied Cryptography [Menezes, van Oorschot, Vanstone; CRC Press 1996];
* original paper: Damgaard, Landrock, Pomerance: Average case error estimates
* for the strong probable prime test. -- Math. Comp. 61 (1993) 177-194) */
auto BN_prime_checks_for_size(T)(T b) {
return ((b) >= 1300 ? 2 :
(b) >= 850 ? 3 :
(b) >= 650 ? 4 :
(b) >= 550 ? 5 :
(b) >= 450 ? 6 :
(b) >= 400 ? 7 :
(b) >= 350 ? 8 :
(b) >= 300 ? 9 :
(b) >= 250 ? 12 :
(b) >= 200 ? 15 :
(b) >= 150 ? 18 :
/* b >= 100 */ 27);
}
auto BN_num_bytes()(const(BIGNUM)* a) { return (BN_num_bits(a)+7)/8; }
/* Note that BN_abs_is_word didn't work reliably for w == 0 until 0.9.8 */
auto BN_abs_is_word()(const(BIGNUM)* a, BN_ULONG w) { return (((a.top == 1) && (a.d[0] == (w))) ||
(((w) == 0) && (a.top == 0))); }
auto BN_is_zero()(const(BIGNUM)* a) { return (a.top == 0); }
auto BN_is_one()(const(BIGNUM)* a) { return (BN_abs_is_word((a),1) && !a.neg); }
auto BN_is_word()(const(BIGNUM)* a, BN_ULONG w) { return (BN_abs_is_word((a),(w)) && (!(w) || !a.neg)); }
auto BN_is_odd()(const(BIGNUM)* a) { return ((a.top > 0) && (a.d[0] & 1)); }
auto BN_one()(BIGNUM* a) { return BN_set_word((a),1); }
auto BN_zero_ex()(BIGNUM* a) {
a.top = 0;
a.neg = 0;
}
version (OPENSSL_NO_DEPRECATED) {
alias BN_zero_ex BN_zero;
} else {
auto BN_zero()(BIGNUM* a) { return BN_set_word(a,0); }
}
const(BIGNUM)* BN_value_one();
char* BN_options();
BN_CTX* BN_CTX_new();
version(OPENSSL_NO_DEPRECATED) {} else {
void BN_CTX_init(BN_CTX* c);
}
void BN_CTX_free(BN_CTX* c);
void BN_CTX_start(BN_CTX* ctx);
BIGNUM* BN_CTX_get(BN_CTX* ctx);
void BN_CTX_end(BN_CTX* ctx);
int BN_rand(BIGNUM* rnd, int bits, int top,int bottom);
int BN_pseudo_rand(BIGNUM* rnd, int bits, int top,int bottom);
int BN_rand_range(BIGNUM* rnd, const(BIGNUM)* range);
int BN_pseudo_rand_range(BIGNUM* rnd, const(BIGNUM)* range);
int BN_num_bits(const(BIGNUM)* a);
int BN_num_bits_word(BN_ULONG);
BIGNUM* BN_new();
void BN_init(BIGNUM*);
void BN_clear_free(BIGNUM* a);
BIGNUM* BN_copy(BIGNUM* a, const(BIGNUM)* b);
void BN_swap(BIGNUM* a, BIGNUM* b);
BIGNUM* BN_bin2bn(const(ubyte)* s,int len,BIGNUM* ret);
int BN_bn2bin(const(BIGNUM)* a, ubyte* to);
BIGNUM* BN_mpi2bn(const(ubyte)* s,int len,BIGNUM* ret);
int BN_bn2mpi(const(BIGNUM)* a, ubyte* to);
int BN_sub(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* b);
int BN_usub(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* b);
int BN_uadd(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* b);
int BN_add(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* b);
int BN_mul(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* b, BN_CTX* ctx);
int BN_sqr(BIGNUM* r, const(BIGNUM)* a,BN_CTX* ctx);
/** BN_set_negative sets sign of a BIGNUM
* \param b pointer to the BIGNUM object
* \param n 0 if the BIGNUM b should be positive and a value != 0 otherwise
*/
void BN_set_negative(BIGNUM* b, int n);
/** BN_is_negative returns 1 if the BIGNUM is negative
* \param a pointer to the BIGNUM object
* \return 1 if a < 0 and 0 otherwise
*/
auto BN_is_negative()(const(BIGNUM)* a) { return a.neg != 0; }
int BN_div(BIGNUM* dv, BIGNUM* rem, const(BIGNUM)* m, const(BIGNUM)* d,
BN_CTX* ctx);
auto BN_mod()(BIGNUM* rem,const(BIGNUM)* m,const(BIGNUM)* d,BN_CTX* ctx) { return BN_div(null,(rem),(m),(d),(ctx)); }
int BN_nnmod(BIGNUM* r, const(BIGNUM)* m, const(BIGNUM)* d, BN_CTX* ctx);
int BN_mod_add(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* b, const(BIGNUM)* m, BN_CTX* ctx);
int BN_mod_add_quick(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* b, const(BIGNUM)* m);
int BN_mod_sub(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* b, const(BIGNUM)* m, BN_CTX* ctx);
int BN_mod_sub_quick(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* b, const(BIGNUM)* m);
int BN_mod_mul(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* b,
const(BIGNUM)* m, BN_CTX* ctx);
int BN_mod_sqr(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* m, BN_CTX* ctx);
int BN_mod_lshift1(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* m, BN_CTX* ctx);
int BN_mod_lshift1_quick(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* m);
int BN_mod_lshift(BIGNUM* r, const(BIGNUM)* a, int n, const(BIGNUM)* m, BN_CTX* ctx);
int BN_mod_lshift_quick(BIGNUM* r, const(BIGNUM)* a, int n, const(BIGNUM)* m);
BN_ULONG BN_mod_word(const(BIGNUM)* a, BN_ULONG w);
BN_ULONG BN_div_word(BIGNUM* a, BN_ULONG w);
int BN_mul_word(BIGNUM* a, BN_ULONG w);
int BN_add_word(BIGNUM* a, BN_ULONG w);
int BN_sub_word(BIGNUM* a, BN_ULONG w);
int BN_set_word(BIGNUM* a, BN_ULONG w);
BN_ULONG BN_get_word(const(BIGNUM)* a);
int BN_cmp(const(BIGNUM)* a, const(BIGNUM)* b);
void BN_free(BIGNUM* a);
int BN_is_bit_set(const(BIGNUM)* a, int n);
int BN_lshift(BIGNUM* r, const(BIGNUM)* a, int n);
int BN_lshift1(BIGNUM* r, const(BIGNUM)* a);
int BN_exp(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* p,BN_CTX* ctx);
int BN_mod_exp(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* p,
const(BIGNUM)* m,BN_CTX* ctx);
int BN_mod_exp_mont(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* p,
const(BIGNUM)* m, BN_CTX* ctx, BN_MONT_CTX* m_ctx);
int BN_mod_exp_mont_consttime(BIGNUM* rr, const(BIGNUM)* a, const(BIGNUM)* p,
const(BIGNUM)* m, BN_CTX* ctx, BN_MONT_CTX* in_mont);
int BN_mod_exp_mont_word(BIGNUM* r, BN_ULONG a, const(BIGNUM)* p,
const(BIGNUM)* m, BN_CTX* ctx, BN_MONT_CTX* m_ctx);
int BN_mod_exp2_mont(BIGNUM* r, const(BIGNUM)* a1, const(BIGNUM)* p1,
const(BIGNUM)* a2, const(BIGNUM)* p2,const(BIGNUM)* m,
BN_CTX* ctx,BN_MONT_CTX* m_ctx);
int BN_mod_exp_simple(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* p,
const(BIGNUM)* m,BN_CTX* ctx);
int BN_mask_bits(BIGNUM* a,int n);
version(OPENSSL_NO_FP_API) {} else {
int BN_print_fp(FILE* fp, const(BIGNUM)* a);
}
// #ifdef HEADER_BIO_H
import deimos.openssl.bio;
int BN_print(BIO* fp, const(BIGNUM)* a);
// #else
// int BN_print(void* fp, const(BIGNUM)* a);
// #endif
int BN_reciprocal(BIGNUM* r, const(BIGNUM)* m, int len, BN_CTX* ctx);
int BN_rshift(BIGNUM* r, const(BIGNUM)* a, int n);
int BN_rshift1(BIGNUM* r, const(BIGNUM)* a);
void BN_clear(BIGNUM* a);
BIGNUM* BN_dup(const(BIGNUM)* a);
int BN_ucmp(const(BIGNUM)* a, const(BIGNUM)* b);
int BN_set_bit(BIGNUM* a, int n);
int BN_clear_bit(BIGNUM* a, int n);
char* BN_bn2hex(const(BIGNUM)* a);
char* BN_bn2dec(const(BIGNUM)* a);
int BN_hex2bn(BIGNUM** a, const(char)* str);
int BN_dec2bn(BIGNUM** a, const(char)* str);
int BN_asc2bn(BIGNUM** a, const(char)* str);
int BN_gcd(BIGNUM* r,const(BIGNUM)* a,const(BIGNUM)* b,BN_CTX* ctx);
int BN_kronecker(const(BIGNUM)* a,const(BIGNUM)* b,BN_CTX* ctx); /* returns -2 for error */
BIGNUM* BN_mod_inverse(BIGNUM* ret,
const(BIGNUM)* a, const(BIGNUM)* n,BN_CTX* ctx);
BIGNUM* BN_mod_sqrt(BIGNUM* ret,
const(BIGNUM)* a, const(BIGNUM)* n,BN_CTX* ctx);
void BN_consttime_swap(BN_ULONG swap, BIGNUM *a, BIGNUM *b, int nwords);
/* Deprecated versions */
version(OPENSSL_NO_DEPRECATED) {} else {
BIGNUM* BN_generate_prime(BIGNUM* ret,int bits,int safe,
const(BIGNUM)* add, const(BIGNUM)* rem,
ExternC!(void function(int,int,void*)) callback,void* cb_arg);
int BN_is_prime(const(BIGNUM)* p,int nchecks,
ExternC!(void function(int,int,void*)) callback,
BN_CTX* ctx,void* cb_arg);
int BN_is_prime_fasttest(const(BIGNUM)* p,int nchecks,
ExternC!(void function(int,int,void*)) callback,BN_CTX* ctx,void* cb_arg,
int do_trial_division);
} /* !defined(OPENSSL_NO_DEPRECATED) */
/* Newer versions */
int BN_generate_prime_ex(BIGNUM* ret,int bits,int safe, const(BIGNUM)* add,
const(BIGNUM)* rem, BN_GENCB* cb);
int BN_is_prime_ex(const(BIGNUM)* p,int nchecks, BN_CTX* ctx, BN_GENCB* cb);
int BN_is_prime_fasttest_ex(const(BIGNUM)* p,int nchecks, BN_CTX* ctx,
int do_trial_division, BN_GENCB* cb);
int BN_X931_generate_Xpq(BIGNUM *Xp, BIGNUM *Xq, int nbits, BN_CTX *ctx);
int BN_X931_derive_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2,
const(BIGNUM)* Xp, const(BIGNUM)* Xp1, const(BIGNUM)* Xp2,
const(BIGNUM)* e, BN_CTX *ctx, BN_GENCB *cb);
int BN_X931_generate_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2,
BIGNUM *Xp1, BIGNUM *Xp2,
const(BIGNUM)* Xp,
const(BIGNUM)* e, BN_CTX *ctx,
BN_GENCB *cb);
BN_MONT_CTX* BN_MONT_CTX_new();
void BN_MONT_CTX_init(BN_MONT_CTX* ctx);
int BN_mod_mul_montgomery(BIGNUM* r,const(BIGNUM)* a,const(BIGNUM)* b,
BN_MONT_CTX* mont, BN_CTX* ctx);
auto BN_to_montgomery()(BIGNUM* r,const(BIGNUM)* a,BN_MONT_CTX* mont,BN_CTX* ctx) {
BN_mod_mul_montgomery((r),(a),&(mont.RR),(mont),(ctx));
}
int BN_from_montgomery(BIGNUM* r,const(BIGNUM)* a,
BN_MONT_CTX* mont, BN_CTX* ctx);
void BN_MONT_CTX_free(BN_MONT_CTX* mont);
int BN_MONT_CTX_set(BN_MONT_CTX* mont,const(BIGNUM)* mod,BN_CTX* ctx);
BN_MONT_CTX* BN_MONT_CTX_copy(BN_MONT_CTX* to,BN_MONT_CTX* from);
BN_MONT_CTX* BN_MONT_CTX_set_locked(BN_MONT_CTX** pmont, int lock,
const(BIGNUM)* mod, BN_CTX* ctx);
/* BN_BLINDING flags */
enum BN_BLINDING_NO_UPDATE = 0x00000001;
enum BN_BLINDING_NO_RECREATE = 0x00000002;
BN_BLINDING* BN_BLINDING_new(const(BIGNUM)* A, const(BIGNUM)* Ai, BIGNUM* mod);
void BN_BLINDING_free(BN_BLINDING* b);
int BN_BLINDING_update(BN_BLINDING* b,BN_CTX* ctx);
int BN_BLINDING_convert(BIGNUM* n, BN_BLINDING* b, BN_CTX* ctx);
int BN_BLINDING_invert(BIGNUM* n, BN_BLINDING* b, BN_CTX* ctx);
int BN_BLINDING_convert_ex(BIGNUM* n, BIGNUM* r, BN_BLINDING* b, BN_CTX*);
int BN_BLINDING_invert_ex(BIGNUM* n, const(BIGNUM)* r, BN_BLINDING* b, BN_CTX*);
version(OPENSSL_NO_DEPRECATED) {} else {
c_ulong BN_BLINDING_get_thread_id(const(BN_BLINDING)*);
void BN_BLINDING_set_thread_id(BN_BLINDING*, c_ulong);
}
CRYPTO_THREADID* BN_BLINDING_thread_id(BN_BLINDING*);
c_ulong BN_BLINDING_get_flags(const(BN_BLINDING)*);
void BN_BLINDING_set_flags(BN_BLINDING*, c_ulong);
BN_BLINDING* BN_BLINDING_create_param(BN_BLINDING* b,
const(BIGNUM)* e, BIGNUM* m, BN_CTX* ctx,
ExternC!(int function(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* p,
const(BIGNUM)* m, BN_CTX* ctx, BN_MONT_CTX* m_ctx)) bn_mod_exp,
BN_MONT_CTX* m_ctx);
version(OPENSSL_NO_DEPRECATED) {} else {
void BN_set_params(int mul,int high,int low,int mont);
int BN_get_params(int which); /* 0, mul, 1 high, 2 low, 3 mont */
}
void BN_RECP_CTX_init(BN_RECP_CTX* recp);
BN_RECP_CTX* BN_RECP_CTX_new();
void BN_RECP_CTX_free(BN_RECP_CTX* recp);
int BN_RECP_CTX_set(BN_RECP_CTX* recp,const(BIGNUM)* rdiv,BN_CTX* ctx);
int BN_mod_mul_reciprocal(BIGNUM* r, const(BIGNUM)* x, const(BIGNUM)* y,
BN_RECP_CTX* recp,BN_CTX* ctx);
int BN_mod_exp_recp(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* p,
const(BIGNUM)* m, BN_CTX* ctx);
int BN_div_recp(BIGNUM* dv, BIGNUM* rem, const(BIGNUM)* m,
BN_RECP_CTX* recp, BN_CTX* ctx);
version(OPENSSL_NO_EC2M) {} else {
/* Functions for arithmetic over binary polynomials represented by BIGNUMs.
*
* The BIGNUM::neg property of BIGNUMs representing binary polynomials is
* ignored.
*
* Note that input arguments are not const so that their bit arrays can
* be expanded to the appropriate size if needed.
*/
int BN_GF2m_add(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* b); /*r = a + b*/
alias BN_GF2m_add BN_GF2m_sub;
int BN_GF2m_mod(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* p); /*r=a mod p*/
int BN_GF2m_mod_mul(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* b,
const(BIGNUM)* p, BN_CTX* ctx); /* r = (a* b) mod p */
int BN_GF2m_mod_sqr(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* p,
BN_CTX* ctx); /* r = (a* a) mod p */
int BN_GF2m_mod_inv(BIGNUM* r, const(BIGNUM)* b, const(BIGNUM)* p,
BN_CTX* ctx); /* r = (1 / b) mod p */
int BN_GF2m_mod_div(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* b,
const(BIGNUM)* p, BN_CTX* ctx); /* r = (a / b) mod p */
int BN_GF2m_mod_exp(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* b,
const(BIGNUM)* p, BN_CTX* ctx); /* r = (a ^ b) mod p */
int BN_GF2m_mod_sqrt(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* p,
BN_CTX* ctx); /* r = sqrt(a) mod p */
int BN_GF2m_mod_solve_quad(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* p,
BN_CTX* ctx); /* r^2 + r = a mod p */
alias BN_ucmp BN_GF2m_cmp;
/* Some functions allow for representation of the irreducible polynomials
* as an uint[], say p. The irreducible f(t) is then of the form:
* t^p[0] + t^p[1] + ... + t^p[k]
* where m = p[0] > p[1] > ... > p[k] = 0.
*/
int BN_GF2m_mod_arr(BIGNUM* r, const(BIGNUM)* a, const int[] p);
/* r = a mod p */
int BN_GF2m_mod_mul_arr(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* b,
const int[] p, BN_CTX* ctx); /* r = (a* b) mod p */
int BN_GF2m_mod_sqr_arr(BIGNUM* r, const(BIGNUM)* a, const int[] p,
BN_CTX* ctx); /* r = (a* a) mod p */
int BN_GF2m_mod_inv_arr(BIGNUM* r, const(BIGNUM)* b, const int[] p,
BN_CTX* ctx); /* r = (1 / b) mod p */
int BN_GF2m_mod_div_arr(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* b,
const int[] p, BN_CTX* ctx); /* r = (a / b) mod p */
int BN_GF2m_mod_exp_arr(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* b,
const int[] p, BN_CTX* ctx); /* r = (a ^ b) mod p */
int BN_GF2m_mod_sqrt_arr(BIGNUM* r, const(BIGNUM)* a,
const int[] p, BN_CTX* ctx); /* r = sqrt(a) mod p */
int BN_GF2m_mod_solve_quad_arr(BIGNUM* r, const(BIGNUM)* a,
const int[] p, BN_CTX* ctx); /* r^2 + r = a mod p */
int BN_GF2m_poly2arr(const(BIGNUM)* a, int[] p, int max);
int BN_GF2m_arr2poly(const int[] p, BIGNUM* a);
}
/* faster mod functions for the 'NIST primes'
* 0 <= a < p^2 */
int BN_nist_mod_192(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* p, BN_CTX* ctx);
int BN_nist_mod_224(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* p, BN_CTX* ctx);
int BN_nist_mod_256(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* p, BN_CTX* ctx);
int BN_nist_mod_384(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* p, BN_CTX* ctx);
int BN_nist_mod_521(BIGNUM* r, const(BIGNUM)* a, const(BIGNUM)* p, BN_CTX* ctx);
const(BIGNUM)* BN_get0_nist_prime_192();
const(BIGNUM)* BN_get0_nist_prime_224();
const(BIGNUM)* BN_get0_nist_prime_256();
const(BIGNUM)* BN_get0_nist_prime_384();
const(BIGNUM)* BN_get0_nist_prime_521();
/* library internal functions */
auto bn_expand()(BIGNUM* a, int bits) { return ((((((bits+BN_BITS2-1))/BN_BITS2)) <= a.dmax)?
(a):bn_expand2((a),(bits+BN_BITS2-1)/BN_BITS2)); }
auto bn_wexpand()(BIGNUM* a, int words) { return (((words) <= a.dmax)?(a):bn_expand2((a),(words))); }
BIGNUM* bn_expand2(BIGNUM* a, int words);
version(OPENSSL_NO_DEPRECATED) {} else {
BIGNUM* bn_dup_expand(const(BIGNUM)* a, int words); /* unused */
}
/+ FIXME: Not yet ported.
/* Bignum consistency macros
* There is one "API" macro, bn_fix_top(), for stripping leading zeroes from
* bignum data after direct manipulations on the data. There is also an
* "internal" macro, bn_check_top(), for verifying that there are no leading
* zeroes. Unfortunately, some auditing is required due to the fact that
* bn_fix_top() has become an overabused duct-tape because bignum data is
* occasionally passed around in an inconsistent state. So the following
* changes have been made to sort this out_;
* - bn_fix_top()s implementation has been moved to bn_correct_top()
* - if BN_DEBUG isn't defined, bn_fix_top() maps to bn_correct_top(), and
* bn_check_top() is as before.
* - if BN_DEBUG* is* defined;
* - bn_check_top() tries to pollute unused words even if the bignum 'top' is
* consistent. (ed: only if BN_DEBUG_RAND is defined)
* - bn_fix_top() maps to bn_check_top() rather than "fixing" anything.
* The idea is to have debug builds flag up inconsistent bignums when they
* occur. If that occurs in a bn_fix_top(), we examine the code in question; if
* the use of bn_fix_top() was appropriate (ie. it follows directly after code
* that manipulates the bignum) it is converted to bn_correct_top(), and if it
* was not appropriate, we convert it permanently to bn_check_top() and track
* down the cause of the bug. Eventually, no internal code should be using the
* bn_fix_top() macro. External applications and libraries should try this with
* their own code too, both in terms of building against the openssl headers
* with BN_DEBUG defined* and* linking with a version of OpenSSL built with it
* defined. This not only improves external code, it provides more test
* coverage for openssl's own code.
*/
#ifdef BN_DEBUG
/* We only need assert() when debugging */
#include <assert.h>
#ifdef BN_DEBUG_RAND
/* To avoid "make update" cvs wars due to BN_DEBUG, use some tricks */
#ifndef RAND_pseudo_bytes
int RAND_pseudo_bytes(ubyte* buf,int num);
#define BN_DEBUG_TRIX
#endif
#define bn_pollute(a) \
do { \
const(BIGNUM)* _bnum1 = (a); \
if(_bnum1->top < _bnum1->dmax) { \
ubyte _tmp_char; \
/* We cast away const without the compiler knowing, any \
** genuinely* constant variables that aren't mutable \
* wouldn't be constructed with top!=dmax. */ \
BN_ULONG* _not_const; \
memcpy(&_not_const, &_bnum1->d, sizeof(BN_ULONG*)); \
RAND_pseudo_bytes(&_tmp_char, 1); \
memset((ubyte*)(_not_const + _bnum1->top), _tmp_char, \
(_bnum1->dmax - _bnum1->top) * sizeof(BN_ULONG)); \
} \
} while(0)
#ifdef BN_DEBUG_TRIX
#undef RAND_pseudo_bytes
#endif
#else
#define bn_pollute(a)
#endif
#define bn_check_top(a) \
do { \
const(BIGNUM)* _bnum2 = (a); \
if (_bnum2 != NULL) { \
assert((_bnum2->top == 0) || \
(_bnum2->d[_bnum2->top - 1] != 0)); \
bn_pollute(_bnum2); \
} \
} while(0)
#define bn_fix_top(a) bn_check_top(a)
#define bn_check_size(bn, bits) bn_wcheck_size(bn, ((bits+BN_BITS2-1))/BN_BITS2)
#define bn_wcheck_size(bn, words) \
do { \
const BIGNUM *_bnum2 = (bn); \
assert(words <= (_bnum2)->dmax && words >= (_bnum2)->top); \
} while(0)
#else /* !BN_DEBUG */
+/
void bn_pollute()(BIGNUM* a) {}
void bn_check_top()(BIGNUM* a) {}
alias bn_correct_top bn_fix_top;
void bn_check_size()(BIGNUM* bn, size_t bits) {}
void bn_wcheck_size()(BIGNUM* bn, size_t words) {}
// #endif
auto bn_correct_top()(BIGNUM* a) {
BN_ULONG* ftl;
int tmp_top = a.top;
if (tmp_top > 0)
{
for (ftl= &(a.d[tmp_top-1]); tmp_top > 0; tmp_top--)
if (*(ftl--)) break;
a.top = tmp_top;
}
bn_pollute(a);
}
BN_ULONG bn_mul_add_words(BN_ULONG* rp, const(BN_ULONG)* ap, int num, BN_ULONG w);
BN_ULONG bn_mul_words(BN_ULONG* rp, const(BN_ULONG)* ap, int num, BN_ULONG w);
void bn_sqr_words(BN_ULONG* rp, const(BN_ULONG)* ap, int num);
BN_ULONG bn_div_words(BN_ULONG h, BN_ULONG l, BN_ULONG d);
BN_ULONG bn_add_words(BN_ULONG* rp, const(BN_ULONG)* ap, const(BN_ULONG)* bp,int num);
BN_ULONG bn_sub_words(BN_ULONG* rp, const(BN_ULONG)* ap, const(BN_ULONG)* bp,int num);
/* Primes from RFC 2409 */
BIGNUM* get_rfc2409_prime_768(BIGNUM* bn);
BIGNUM* get_rfc2409_prime_1024(BIGNUM* bn);
/* Primes from RFC 3526 */
BIGNUM* get_rfc3526_prime_1536(BIGNUM* bn);
BIGNUM* get_rfc3526_prime_2048(BIGNUM* bn);
BIGNUM* get_rfc3526_prime_3072(BIGNUM* bn);
BIGNUM* get_rfc3526_prime_4096(BIGNUM* bn);
BIGNUM* get_rfc3526_prime_6144(BIGNUM* bn);
BIGNUM* get_rfc3526_prime_8192(BIGNUM* bn);
int BN_bntest_rand(BIGNUM* rnd, int bits, int top,int bottom);
/* BEGIN ERROR CODES */
/* The following lines are auto generated by the script mkerr.pl. Any changes
* made after this point may be overwritten when the script is next run.
*/
void ERR_load_BN_strings();
/* Error codes for the BN functions. */
/* Function codes. */
enum BN_F_BNRAND = 127;
enum BN_F_BN_BLINDING_CONVERT_EX = 100;
enum BN_F_BN_BLINDING_CREATE_PARAM = 128;
enum BN_F_BN_BLINDING_INVERT_EX = 101;
enum BN_F_BN_BLINDING_NEW = 102;
enum BN_F_BN_BLINDING_UPDATE = 103;
enum BN_F_BN_BN2DEC = 104;
enum BN_F_BN_BN2HEX = 105;
enum BN_F_BN_CTX_GET = 116;
enum BN_F_BN_CTX_NEW = 106;
enum BN_F_BN_CTX_START = 129;
enum BN_F_BN_DIV = 107;
enum BN_F_BN_DIV_NO_BRANCH = 138;
enum BN_F_BN_DIV_RECP = 130;
enum BN_F_BN_EXP = 123;
enum BN_F_BN_EXPAND2 = 108;
enum BN_F_BN_EXPAND_INTERNAL = 120;
enum BN_F_BN_GF2M_MOD = 131;
enum BN_F_BN_GF2M_MOD_EXP = 132;
enum BN_F_BN_GF2M_MOD_MUL = 133;
enum BN_F_BN_GF2M_MOD_SOLVE_QUAD = 134;
enum BN_F_BN_GF2M_MOD_SOLVE_QUAD_ARR = 135;
enum BN_F_BN_GF2M_MOD_SQR = 136;
enum BN_F_BN_GF2M_MOD_SQRT = 137;
enum BN_F_BN_MOD_EXP2_MONT = 118;
enum BN_F_BN_MOD_EXP_MONT = 109;
enum BN_F_BN_MOD_EXP_MONT_CONSTTIME = 124;
enum BN_F_BN_MOD_EXP_MONT_WORD = 117;
enum BN_F_BN_MOD_EXP_RECP = 125;
enum BN_F_BN_MOD_EXP_SIMPLE = 126;
enum BN_F_BN_MOD_INVERSE = 110;
enum BN_F_BN_MOD_INVERSE_NO_BRANCH = 139;
enum BN_F_BN_MOD_LSHIFT_QUICK = 119;
enum BN_F_BN_MOD_MUL_RECIPROCAL = 111;
enum BN_F_BN_MOD_SQRT = 121;
enum BN_F_BN_MPI2BN = 112;
enum BN_F_BN_NEW = 113;
enum BN_F_BN_RAND = 114;
enum BN_F_BN_RAND_RANGE = 122;
enum BN_F_BN_USUB = 115;
/* Reason codes. */
enum BN_R_ARG2_LT_ARG3 = 100;
enum BN_R_BAD_RECIPROCAL = 101;
enum BN_R_BIGNUM_TOO_LONG = 114;
enum BN_R_CALLED_WITH_EVEN_MODULUS = 102;
enum BN_R_DIV_BY_ZERO = 103;
enum BN_R_ENCODING_ERROR = 104;
enum BN_R_EXPAND_ON_STATIC_BIGNUM_DATA = 105;
enum BN_R_INPUT_NOT_REDUCED = 110;
enum BN_R_INVALID_LENGTH = 106;
enum BN_R_INVALID_RANGE = 115;
enum BN_R_NOT_A_SQUARE = 111;
enum BN_R_NOT_INITIALIZED = 107;
enum BN_R_NO_INVERSE = 108;
enum BN_R_NO_SOLUTION = 116;
enum BN_R_P_IS_NOT_PRIME = 112;
enum BN_R_TOO_MANY_ITERATIONS = 113;
enum BN_R_TOO_MANY_TEMPORARY_VARIABLES = 109;
|
D
|
<?xml version="1.0" encoding="ASCII" standalone="no"?>
<di:SashWindowsMngr xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmi:version="2.0">
<pageList>
<availablePage>
<emfPageIdentifier href="VAR_1_MobileMedia-8361159315.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</availablePage>
</pageList>
<sashModel currentSelection="//@sashModel/@windows.0/@children.0">
<windows>
<children xsi:type="di:TabFolder">
<children>
<emfPageIdentifier href="VAR_1_MobileMedia-8361159315.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</children>
</children>
</windows>
</sashModel>
</di:SashWindowsMngr>
|
D
|
export declare class EuaraTool {
constructor();
create (packageName: string, version: string, outputfile: string);
addSigner(manifestFile: string, signer: ManifestSigner );
sign(manifestFile: string, signerName: string, privateKeyFile: string);
verify(manifestFile: string, signerName: string);
}
export declare enum ManifestSignatureStatuses {
NULL = 0,
MISSING = 1 << 0,
SIGNED = 1 << 1,
VALID = 1 << 2,
INVALID = 1 << 3
}
export declare class EuaraToolConfig {
npmRegistry: string ;
package: string;
manifestFile: string;
version: string;
}
export declare class ManifestSignatureStatus {
name: string;
status: ManifestSignatureStatuses;
isMissing: boolean;
isSigned: boolean;
isValid: boolean;
isInvalid: boolean;
}
export declare class ManifestState {
signatures: ManifestSignatureStatus[];
isValid: boolean;
isInvalid: boolean;
missingSignatures: boolean;
isNew: boolean;
}
export declare class Manifest {
manifestVersion: string;
name: string;
version: string;
checksum: string;
releaseType: ManifestReleaseType;
signers: ManifestSigner[];
signingRules: SigningRules;
signatures: ManifestSignature[];
}
export declare class ManifestReleaseType {
rollback: boolean;
release: boolean;
addSigner: boolean;
removeSigner: boolean;
updateSigningRules: boolean;
}
export declare class SigningRules {
signaturesNeededRelease: number;
signaturesNeededToRollback: number;
signaturesNeededToRemoveSigner: number;
signaturesNeededToAddSigner: number;
}
export declare class ManifestSigner {
name: string;
email: string;
publickey: string;
type: ManifestSignerType;
addedByManifest: string;
}
export declare class ManifestSignature {
name: string;
signature: string;
}
export declare enum ManifestSignerType {
developer,
signer
}
|
D
|
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
*
* Copyright: Copyright (C) 1999-2019 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 http://www.digitalmars.com, Walter Bright)
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/irstate.d, _irstate.d)
* Documentation: https://dlang.org/phobos/dmd_irstate.html
* Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/irstate.d
*/
module dmd.irstate;
import dmd.root.array;
import dmd.arraytypes;
import dmd.backend.type;
import dmd.dclass;
import dmd.dmodule;
import dmd.dsymbol;
import dmd.func;
import dmd.identifier;
import dmd.statement;
import dmd.globals;
import dmd.mtype;
import dmd.backend.cc;
import dmd.backend.el;
/****************************************
* Our label symbol
*/
struct Label
{
block *lblock; // The block to which the label is defined.
}
/***********************************************************
*/
struct IRState
{
IRState* prev;
Statement statement;
Module m; // module
private FuncDeclaration symbol; // function that code is being generate for
Identifier ident;
Symbol* shidden; // hidden parameter to function
Symbol* sthis; // 'this' parameter to function (member and nested)
Symbol* sclosure; // pointer to closure instance
Blockx* blx;
Dsymbols* deferToObj; // array of Dsymbol's to run toObjFile(bool multiobj) on later
elem* ehidden; // transmit hidden pointer to CallExp::toElem()
Symbol* startaddress;
Array!(elem*)* varsInScope; // variables that are in scope that will need destruction later
Label*[void*]* labels; // table of labels used/declared in function
const Param* params; // command line parameters
bool mayThrow; // the expression being evaluated may throw
block* breakBlock;
block* contBlock;
block* switchBlock;
block* defaultBlock;
block* finallyBlock;
this(IRState* irs, Statement s)
{
prev = irs;
statement = s;
if (irs)
{
m = irs.m;
shidden = irs.shidden;
sclosure = irs.sclosure;
sthis = irs.sthis;
blx = irs.blx;
deferToObj = irs.deferToObj;
varsInScope = irs.varsInScope;
labels = irs.labels;
params = irs.params;
mayThrow = irs.mayThrow;
}
}
this(Module m, FuncDeclaration fd, Array!(elem*)* varsInScope, Dsymbols* deferToObj, Label*[void*]* labels,
const Param* params)
{
this.m = m;
this.symbol = fd;
this.varsInScope = varsInScope;
this.deferToObj = deferToObj;
this.labels = labels;
this.params = params;
mayThrow = global.params.useExceptions
&& ClassDeclaration.throwable
&& !(fd && fd.eh_none);
}
/****
* Access labels AA from C++ code.
* Params:
* s = key
* Returns:
* pointer to value if it's there, null if not
*/
Label** lookupLabel(Statement s)
{
return cast(void*)s in *labels;
}
/****
* Access labels AA from C++ code.
* Params:
* s = key
* label = value
*/
void insertLabel(Statement s, Label* label)
{
(*labels)[cast(void*)s] = label;
}
block* getBreakBlock(Identifier ident)
{
IRState* bc;
if (ident)
{
Statement related = null;
block* ret = null;
for (bc = &this; bc; bc = bc.prev)
{
// The label for a breakBlock may actually be some levels up (e.g.
// on a try/finally wrapping a loop). We'll see if this breakBlock
// is the one to return once we reach that outer statement (which
// in many cases will be this same statement).
if (bc.breakBlock)
{
related = bc.statement.getRelatedLabeled();
ret = bc.breakBlock;
}
if (bc.statement == related && bc.prev.ident == ident)
return ret;
}
}
else
{
for (bc = &this; bc; bc = bc.prev)
{
if (bc.breakBlock)
return bc.breakBlock;
}
}
return null;
}
block* getContBlock(Identifier ident)
{
IRState* bc;
if (ident)
{
block* ret = null;
for (bc = &this; bc; bc = bc.prev)
{
// The label for a contBlock may actually be some levels up (e.g.
// on a try/finally wrapping a loop). We'll see if this contBlock
// is the one to return once we reach that outer statement (which
// in many cases will be this same statement).
if (bc.contBlock)
{
ret = bc.contBlock;
}
if (bc.prev && bc.prev.ident == ident)
return ret;
}
}
else
{
for (bc = &this; bc; bc = bc.prev)
{
if (bc.contBlock)
return bc.contBlock;
}
}
return null;
}
block* getSwitchBlock()
{
IRState* bc;
for (bc = &this; bc; bc = bc.prev)
{
if (bc.switchBlock)
return bc.switchBlock;
}
return null;
}
block* getDefaultBlock()
{
IRState* bc;
for (bc = &this; bc; bc = bc.prev)
{
if (bc.defaultBlock)
return bc.defaultBlock;
}
return null;
}
block* getFinallyBlock()
{
IRState* bc;
for (bc = &this; bc; bc = bc.prev)
{
if (bc.finallyBlock)
return bc.finallyBlock;
}
return null;
}
FuncDeclaration getFunc()
{
for (auto bc = &this; 1; bc = bc.prev)
{
if (!bc.prev)
return bc.symbol;
}
}
/**********************
* Returns:
* true if do array bounds checking for the current function
*/
bool arrayBoundsCheck()
{
bool result;
final switch (global.params.useArrayBounds)
{
case CHECKENABLE.off:
result = false;
break;
case CHECKENABLE.on:
result = true;
break;
case CHECKENABLE.safeonly:
{
result = false;
FuncDeclaration fd = getFunc();
if (fd)
{
Type t = fd.type;
if (t.ty == Tfunction && (cast(TypeFunction)t).trust == TRUST.safe)
result = true;
}
break;
}
case CHECKENABLE._default:
assert(0);
}
return result;
}
/****************************
* Returns:
* true if in a nothrow section of code
*/
bool isNothrow()
{
return !mayThrow;
}
}
|
D
|
/Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Intermediates/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Download.o : /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Alamofire.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Download.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Error.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Manager.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/MultipartFormData.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Notifications.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/ParameterEncoding.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Request.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Response.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/ResponseSerialization.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Result.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/ServerTrustPolicy.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Stream.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Timeline.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Upload.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Validation.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Intermediates/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
/Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Intermediates/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Download~partial.swiftmodule : /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Alamofire.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Download.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Error.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Manager.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/MultipartFormData.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Notifications.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/ParameterEncoding.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Request.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Response.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/ResponseSerialization.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Result.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/ServerTrustPolicy.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Stream.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Timeline.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Upload.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Validation.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Intermediates/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
/Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Intermediates/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Download~partial.swiftdoc : /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Alamofire.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Download.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Error.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Manager.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/MultipartFormData.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Notifications.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/ParameterEncoding.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Request.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Response.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/ResponseSerialization.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Result.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/ServerTrustPolicy.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Stream.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Timeline.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Upload.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Alamofire/Source/Validation.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Intermediates/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
|
D
|
// REQUIRED_ARGS: -o-
/*
TEST_OUTPUT:
---
fail_compilation/fail13775.d(17): Error: cannot cast expression `ubytes[0..2]` of type `ubyte[2]` to `ubyte[1]`
fail_compilation/fail13775.d(18): Error: cannot cast expression `ubytes[0..2]` of type `ubyte[2]` to `ubyte[3]`
fail_compilation/fail13775.d(19): Error: cannot cast expression `ubytes[0..2]` of type `ubyte[2]` to `byte[1]`
fail_compilation/fail13775.d(20): Error: cannot cast expression `ubytes[0..2]` of type `ubyte[2]` to `byte[3]`
---
*/
void main()
{
ubyte[4] ubytes = [1,2,3,4];
// CT-known slicing succeeds but sizes cannot match
auto ng1 = cast(ubyte[1]) ubytes[0 .. 2]; // ubyte[2] to ubyte[1]
auto ng2 = cast(ubyte[3]) ubytes[0 .. 2]; // ubyte[2] to ubyte[3]
auto ng3 = cast( byte[1]) ubytes[0 .. 2]; // ubyte[2] to byte[1]
auto ng4 = cast( byte[3]) ubytes[0 .. 2]; // ubyte[2] to byte[3]
}
|
D
|
a daily written record of (usually personal) experiences and observations
a periodical dedicated to a particular subject
a ledger in which transactions have been recorded as they occurred
a record book as a physical object
the part of the axle contained by a bearing
|
D
|
/Users/augustomachado/github/rust_snake_game/snake_game/target/debug/deps/piston-542f8580b34459de.rmeta: /Users/augustomachado/.cargo/registry/src/github.com-1ecc6299db9ec823/piston-0.53.0/./src/lib.rs
/Users/augustomachado/github/rust_snake_game/snake_game/target/debug/deps/piston-542f8580b34459de.d: /Users/augustomachado/.cargo/registry/src/github.com-1ecc6299db9ec823/piston-0.53.0/./src/lib.rs
/Users/augustomachado/.cargo/registry/src/github.com-1ecc6299db9ec823/piston-0.53.0/./src/lib.rs:
|
D
|
the original amount of a debt on which interest is calculated
the educator who has executive authority for a school
an actor who plays a principal role
capital as contrasted with the income derived from it
(criminal law) any person involved in a criminal offense, regardless of whether the person profits from such involvement
the major party to a financial transaction at a stock exchange
most important element
|
D
|
/Users/petercernak/vapor/TILApp/Build/Intermediates.noindex/TILApp.build/Debug/FluentPostgreSQL.build/Objects-normal/x86_64/PostgreSQLDatabase+KeyedCacheSupporting.o : /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/FluentPostgreSQLSchema.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/Deprecated.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLDatabase+SchemaSupporting.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLDatabase+KeyedCacheSupporting.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLDatabase+JoinSupporting.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLDatabase+MigrationSupporting.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLDatabase+TransactionSupporting.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLDatabase+QuerySupporting.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLUUIDModel.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLModel.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLStringModel.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLEnum.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/FluentPostgreSQLProvider.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/Utilities.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/Exports.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/Fluent+PostgreSQLUpsert.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/FluentPostgreSQLQuery.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/petercernak/vapor/TILApp/Build/Products/Debug/SQL.framework/Modules/SQL.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/PostgreSQL.framework/Modules/PostgreSQL.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/FluentSQL.framework/Modules/FluentSQL.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/NIOOpenSSL.framework/Modules/NIOOpenSSL.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/NIO.framework/Modules/NIO.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/NIOTLS.framework/Modules/NIOTLS.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Async.framework/Modules/Async.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Command.framework/Modules/Command.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Service.framework/Modules/Service.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Console.framework/Modules/Console.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Core.framework/Modules/Core.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Logging.framework/Modules/Logging.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Debugging.framework/Modules/Debugging.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/COperatingSystem.framework/Modules/COperatingSystem.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Random.framework/Modules/Random.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Crypto.framework/Modules/Crypto.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/NIOConcurrencyHelpers.framework/Modules/NIOConcurrencyHelpers.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Bits.framework/Modules/Bits.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/NIOFoundationCompat.framework/Modules/NIOFoundationCompat.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/DatabaseKit.framework/Modules/DatabaseKit.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Fluent.framework/Modules/Fluent.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /usr/local/Cellar/libressl/2.6.4/include/openssl/asn1.h /usr/local/Cellar/libressl/2.6.4/include/openssl/tls1.h /usr/local/Cellar/libressl/2.6.4/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.6.4/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.6.4/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.6.4/include/openssl/pem2.h /usr/local/Cellar/libressl/2.6.4/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.6.4/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.6.4/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.6.4/include/openssl/md5.h /usr/local/Cellar/libressl/2.6.4/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.6.4/include/openssl/x509.h /usr/local/Cellar/libressl/2.6.4/include/openssl/sha.h /usr/local/Cellar/libressl/2.6.4/include/openssl/dsa.h /usr/local/Cellar/libressl/2.6.4/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.6.4/include/openssl/rsa.h /usr/local/Cellar/libressl/2.6.4/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.6.4/include/openssl/hmac.h /usr/local/Cellar/libressl/2.6.4/include/openssl/ec.h /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio.git--2128188973977302459/Sources/CNIOAtomics/include/cpp_magic.h /usr/local/Cellar/libressl/2.6.4/include/openssl/rand.h /usr/local/Cellar/libressl/2.6.4/include/openssl/conf.h /usr/local/Cellar/libressl/2.6.4/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.6.4/include/openssl/dh.h /usr/local/Cellar/libressl/2.6.4/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.6.4/include/openssl/lhash.h /usr/local/Cellar/libressl/2.6.4/include/openssl/stack.h /usr/local/Cellar/libressl/2.6.4/include/openssl/safestack.h /usr/local/Cellar/libressl/2.6.4/include/openssl/ssl.h /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio-ssl.git-4185672342095147391/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/petercernak/vapor/TILApp/.build/checkouts/crypto.git--4097429712292640209/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/2.6.4/include/openssl/pem.h /usr/local/Cellar/libressl/2.6.4/include/openssl/bn.h /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio.git--2128188973977302459/Sources/CNIODarwin/include/c_nio_darwin.h /usr/local/Cellar/libressl/2.6.4/include/openssl/bio.h /usr/local/Cellar/libressl/2.6.4/include/openssl/crypto.h /usr/local/Cellar/libressl/2.6.4/include/openssl/srtp.h /usr/local/Cellar/libressl/2.6.4/include/openssl/evp.h /usr/local/Cellar/libressl/2.6.4/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.6.4/include/openssl/buffer.h /usr/local/Cellar/libressl/2.6.4/include/openssl/err.h /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio.git--2128188973977302459/Sources/CNIOAtomics/include/c-atomics.h /usr/local/Cellar/libressl/2.6.4/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.6.4/include/openssl/objects.h /usr/local/Cellar/libressl/2.6.4/include/openssl/opensslv.h /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio.git--2128188973977302459/Sources/CNIOLinux/include/c_nio_linux.h /usr/local/Cellar/libressl/2.6.4/include/openssl/x509_vfy.h /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIOSHA1/module.modulemap /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio-ssl-support.git--5344386155445180204/module.modulemap /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio-zlib-support.git--6538424668019974428/module.modulemap /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIOOpenSSL/module.modulemap /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CCryptoOpenSSL/module.modulemap /Users/petercernak/vapor/TILApp/.build/checkouts/crypto.git--4097429712292640209/Sources/CBase32/include/module.modulemap /Users/petercernak/vapor/TILApp/.build/checkouts/crypto.git--4097429712292640209/Sources/CBcrypt/include/module.modulemap /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIODarwin/module.modulemap /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIOAtomics/module.modulemap /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIOLinux/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/petercernak/vapor/TILApp/Build/Intermediates.noindex/TILApp.build/Debug/FluentPostgreSQL.build/Objects-normal/x86_64/PostgreSQLDatabase+KeyedCacheSupporting~partial.swiftmodule : /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/FluentPostgreSQLSchema.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/Deprecated.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLDatabase+SchemaSupporting.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLDatabase+KeyedCacheSupporting.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLDatabase+JoinSupporting.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLDatabase+MigrationSupporting.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLDatabase+TransactionSupporting.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLDatabase+QuerySupporting.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLUUIDModel.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLModel.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLStringModel.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLEnum.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/FluentPostgreSQLProvider.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/Utilities.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/Exports.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/Fluent+PostgreSQLUpsert.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/FluentPostgreSQLQuery.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/petercernak/vapor/TILApp/Build/Products/Debug/SQL.framework/Modules/SQL.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/PostgreSQL.framework/Modules/PostgreSQL.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/FluentSQL.framework/Modules/FluentSQL.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/NIOOpenSSL.framework/Modules/NIOOpenSSL.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/NIO.framework/Modules/NIO.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/NIOTLS.framework/Modules/NIOTLS.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Async.framework/Modules/Async.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Command.framework/Modules/Command.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Service.framework/Modules/Service.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Console.framework/Modules/Console.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Core.framework/Modules/Core.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Logging.framework/Modules/Logging.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Debugging.framework/Modules/Debugging.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/COperatingSystem.framework/Modules/COperatingSystem.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Random.framework/Modules/Random.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Crypto.framework/Modules/Crypto.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/NIOConcurrencyHelpers.framework/Modules/NIOConcurrencyHelpers.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Bits.framework/Modules/Bits.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/NIOFoundationCompat.framework/Modules/NIOFoundationCompat.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/DatabaseKit.framework/Modules/DatabaseKit.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Fluent.framework/Modules/Fluent.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /usr/local/Cellar/libressl/2.6.4/include/openssl/asn1.h /usr/local/Cellar/libressl/2.6.4/include/openssl/tls1.h /usr/local/Cellar/libressl/2.6.4/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.6.4/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.6.4/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.6.4/include/openssl/pem2.h /usr/local/Cellar/libressl/2.6.4/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.6.4/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.6.4/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.6.4/include/openssl/md5.h /usr/local/Cellar/libressl/2.6.4/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.6.4/include/openssl/x509.h /usr/local/Cellar/libressl/2.6.4/include/openssl/sha.h /usr/local/Cellar/libressl/2.6.4/include/openssl/dsa.h /usr/local/Cellar/libressl/2.6.4/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.6.4/include/openssl/rsa.h /usr/local/Cellar/libressl/2.6.4/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.6.4/include/openssl/hmac.h /usr/local/Cellar/libressl/2.6.4/include/openssl/ec.h /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio.git--2128188973977302459/Sources/CNIOAtomics/include/cpp_magic.h /usr/local/Cellar/libressl/2.6.4/include/openssl/rand.h /usr/local/Cellar/libressl/2.6.4/include/openssl/conf.h /usr/local/Cellar/libressl/2.6.4/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.6.4/include/openssl/dh.h /usr/local/Cellar/libressl/2.6.4/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.6.4/include/openssl/lhash.h /usr/local/Cellar/libressl/2.6.4/include/openssl/stack.h /usr/local/Cellar/libressl/2.6.4/include/openssl/safestack.h /usr/local/Cellar/libressl/2.6.4/include/openssl/ssl.h /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio-ssl.git-4185672342095147391/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/petercernak/vapor/TILApp/.build/checkouts/crypto.git--4097429712292640209/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/2.6.4/include/openssl/pem.h /usr/local/Cellar/libressl/2.6.4/include/openssl/bn.h /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio.git--2128188973977302459/Sources/CNIODarwin/include/c_nio_darwin.h /usr/local/Cellar/libressl/2.6.4/include/openssl/bio.h /usr/local/Cellar/libressl/2.6.4/include/openssl/crypto.h /usr/local/Cellar/libressl/2.6.4/include/openssl/srtp.h /usr/local/Cellar/libressl/2.6.4/include/openssl/evp.h /usr/local/Cellar/libressl/2.6.4/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.6.4/include/openssl/buffer.h /usr/local/Cellar/libressl/2.6.4/include/openssl/err.h /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio.git--2128188973977302459/Sources/CNIOAtomics/include/c-atomics.h /usr/local/Cellar/libressl/2.6.4/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.6.4/include/openssl/objects.h /usr/local/Cellar/libressl/2.6.4/include/openssl/opensslv.h /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio.git--2128188973977302459/Sources/CNIOLinux/include/c_nio_linux.h /usr/local/Cellar/libressl/2.6.4/include/openssl/x509_vfy.h /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIOSHA1/module.modulemap /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio-ssl-support.git--5344386155445180204/module.modulemap /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio-zlib-support.git--6538424668019974428/module.modulemap /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIOOpenSSL/module.modulemap /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CCryptoOpenSSL/module.modulemap /Users/petercernak/vapor/TILApp/.build/checkouts/crypto.git--4097429712292640209/Sources/CBase32/include/module.modulemap /Users/petercernak/vapor/TILApp/.build/checkouts/crypto.git--4097429712292640209/Sources/CBcrypt/include/module.modulemap /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIODarwin/module.modulemap /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIOAtomics/module.modulemap /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIOLinux/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/petercernak/vapor/TILApp/Build/Intermediates.noindex/TILApp.build/Debug/FluentPostgreSQL.build/Objects-normal/x86_64/PostgreSQLDatabase+KeyedCacheSupporting~partial.swiftdoc : /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/FluentPostgreSQLSchema.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/Deprecated.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLDatabase+SchemaSupporting.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLDatabase+KeyedCacheSupporting.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLDatabase+JoinSupporting.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLDatabase+MigrationSupporting.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLDatabase+TransactionSupporting.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLDatabase+QuerySupporting.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLUUIDModel.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLModel.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLStringModel.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/PostgreSQLEnum.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/FluentPostgreSQLProvider.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/Utilities.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/Exports.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/Fluent+PostgreSQLUpsert.swift /Users/petercernak/vapor/TILApp/.build/checkouts/fluent-postgresql.git--3690760182702486550/Sources/FluentPostgreSQL/FluentPostgreSQLQuery.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/petercernak/vapor/TILApp/Build/Products/Debug/SQL.framework/Modules/SQL.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/PostgreSQL.framework/Modules/PostgreSQL.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/FluentSQL.framework/Modules/FluentSQL.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/NIOOpenSSL.framework/Modules/NIOOpenSSL.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/NIO.framework/Modules/NIO.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/NIOTLS.framework/Modules/NIOTLS.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Async.framework/Modules/Async.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Command.framework/Modules/Command.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Service.framework/Modules/Service.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Console.framework/Modules/Console.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Core.framework/Modules/Core.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Logging.framework/Modules/Logging.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Debugging.framework/Modules/Debugging.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/COperatingSystem.framework/Modules/COperatingSystem.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Random.framework/Modules/Random.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Crypto.framework/Modules/Crypto.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/NIOConcurrencyHelpers.framework/Modules/NIOConcurrencyHelpers.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Bits.framework/Modules/Bits.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/NIOFoundationCompat.framework/Modules/NIOFoundationCompat.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/DatabaseKit.framework/Modules/DatabaseKit.swiftmodule/x86_64.swiftmodule /Users/petercernak/vapor/TILApp/Build/Products/Debug/Fluent.framework/Modules/Fluent.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /usr/local/Cellar/libressl/2.6.4/include/openssl/asn1.h /usr/local/Cellar/libressl/2.6.4/include/openssl/tls1.h /usr/local/Cellar/libressl/2.6.4/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.6.4/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.6.4/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.6.4/include/openssl/pem2.h /usr/local/Cellar/libressl/2.6.4/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.6.4/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.6.4/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.6.4/include/openssl/md5.h /usr/local/Cellar/libressl/2.6.4/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.6.4/include/openssl/x509.h /usr/local/Cellar/libressl/2.6.4/include/openssl/sha.h /usr/local/Cellar/libressl/2.6.4/include/openssl/dsa.h /usr/local/Cellar/libressl/2.6.4/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.6.4/include/openssl/rsa.h /usr/local/Cellar/libressl/2.6.4/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.6.4/include/openssl/hmac.h /usr/local/Cellar/libressl/2.6.4/include/openssl/ec.h /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio.git--2128188973977302459/Sources/CNIOAtomics/include/cpp_magic.h /usr/local/Cellar/libressl/2.6.4/include/openssl/rand.h /usr/local/Cellar/libressl/2.6.4/include/openssl/conf.h /usr/local/Cellar/libressl/2.6.4/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.6.4/include/openssl/dh.h /usr/local/Cellar/libressl/2.6.4/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.6.4/include/openssl/lhash.h /usr/local/Cellar/libressl/2.6.4/include/openssl/stack.h /usr/local/Cellar/libressl/2.6.4/include/openssl/safestack.h /usr/local/Cellar/libressl/2.6.4/include/openssl/ssl.h /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio-ssl.git-4185672342095147391/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/petercernak/vapor/TILApp/.build/checkouts/crypto.git--4097429712292640209/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/2.6.4/include/openssl/pem.h /usr/local/Cellar/libressl/2.6.4/include/openssl/bn.h /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio.git--2128188973977302459/Sources/CNIODarwin/include/c_nio_darwin.h /usr/local/Cellar/libressl/2.6.4/include/openssl/bio.h /usr/local/Cellar/libressl/2.6.4/include/openssl/crypto.h /usr/local/Cellar/libressl/2.6.4/include/openssl/srtp.h /usr/local/Cellar/libressl/2.6.4/include/openssl/evp.h /usr/local/Cellar/libressl/2.6.4/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.6.4/include/openssl/buffer.h /usr/local/Cellar/libressl/2.6.4/include/openssl/err.h /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio.git--2128188973977302459/Sources/CNIOAtomics/include/c-atomics.h /usr/local/Cellar/libressl/2.6.4/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.6.4/include/openssl/objects.h /usr/local/Cellar/libressl/2.6.4/include/openssl/opensslv.h /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio.git--2128188973977302459/Sources/CNIOLinux/include/c_nio_linux.h /usr/local/Cellar/libressl/2.6.4/include/openssl/x509_vfy.h /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIOSHA1/module.modulemap /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio-ssl-support.git--5344386155445180204/module.modulemap /Users/petercernak/vapor/TILApp/.build/checkouts/swift-nio-zlib-support.git--6538424668019974428/module.modulemap /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIOOpenSSL/module.modulemap /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CCryptoOpenSSL/module.modulemap /Users/petercernak/vapor/TILApp/.build/checkouts/crypto.git--4097429712292640209/Sources/CBase32/include/module.modulemap /Users/petercernak/vapor/TILApp/.build/checkouts/crypto.git--4097429712292640209/Sources/CBcrypt/include/module.modulemap /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIODarwin/module.modulemap /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIOAtomics/module.modulemap /Users/petercernak/vapor/TILApp/TILApp.xcodeproj/GeneratedModuleMap/CNIOLinux/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
var int u2ise;
var int uise;
var int hitcounter;
const int absorbedenemy = 0;
var int sise;
INSTANCE ItMw_uriziel_u (C_Item)
{
name = "URIZIEL";
mainflag = ITEM_KAT_NF;
flags = ITEM_2HD_SWD;
material = MAT_METAL;
value = 0;
damageTotal = 30;
damagetype = DAM_EDGE;
range = Range_Special_2H_4;
cond_atr[2] = ATR_STRENGTH;
cond_value[2] = 0;
visual = "ItMw_110_2h_sword_smith_05.3DS";
description = name;
TEXT[1] = "Das Schwert ist stumpf und der Edelstein matt und kraftlos";
TEXT[2] = NAME_Damage; COUNT[2] = damageTotal;
TEXT[3] = NAME_Str_needed; COUNT[3] = cond_value[2];
TEXT[4] = NAME_ADDON_BONUS_2H; COUNT[4] = Waffenbonus_10;
TEXT[5] = NAME_Value; COUNT[5] = value;
};
INSTANCE ItMw_uriziel (C_Item)
{
name = "URIZIEL";
mainflag = ITEM_KAT_NF;
flags = ITEM_2HD_SWD;
material = MAT_METAL;
value = 0;
damageTotal = 100;
damagetype = DAM_EDGE;
range = Range_Special_2H_4;
on_equip = Equip_up;
on_unequip = UnEquip_up;
cond_atr[2] = ATR_STRENGTH;
cond_value[2] = 0;
visual = "uriziel.3ds";
description = name;
TEXT[1] = "Das legendäre Uriziel";
TEXT[2] = NAME_Damage; COUNT[2] = damagetotal;
TEXT[3] = NAME_Str_needed; COUNT[3] = cond_value[2];
TEXT[4] = NAME_ADDON_BONUS_2H; COUNT[4] = Waffenbonus_10;
TEXT[5] = NAME_Value; COUNT[5] = value;
};
FUNC VOID Equip_up()
{
uise = TRUE;
};
FUNC VOID UnEquip_up()
{
uise = FALSE;
};
INSTANCE ItMw_uriziel2 (C_Item)
{
name = "URIZIEL";
mainflag = ITEM_KAT_NF;
flags = ITEM_2HD_SWD;
material = MAT_METAL;
value = 0;
damageTotal = 170;
damagetype = DAM_EDGE;
range = Range_Special_2H_4;
on_equip = Equip_u2p;
on_unequip = UnEquip_u2p;
cond_atr[2] = ATR_STRENGTH;
cond_value[2] = 0;
visual = "uriziel2.3ds";
description = name;
TEXT[1] = "Das legendäre Uriziel ist nun bis zum Anschlag voll mit magischer Energie";
TEXT[2] = NAME_Damage; COUNT[2] = damagetotal;
TEXT[3] = NAME_Str_needed; COUNT[3] = cond_value[2];
TEXT[4] = NAME_ADDON_BONUS_2H; COUNT[4] = Waffenbonus_10;
TEXT[5] = NAME_Value; COUNT[5] = value;
};
FUNC VOID Equip_u2p()
{
u2ise = TRUE;
if Npc_IsPlayer (self)
{
B_AddFightSkill (self, NPC_TALENT_2H, Waffenbonus_10);
B_MeleeWeaponChange(0, Waffenbonus_10, 0);
};
};
FUNC VOID UnEquip_u2p()
{
u2ise = FALSE;
if (Npc_IsPlayer (self) && (meleeWeaponChangedHero || scriptPatchWeaponChange == FALSE))
{
B_AddFightSkill (self, NPC_TALENT_2H, - Waffenbonus_10);
B_MeleeWeaponUndoChange();
};
};
INSTANCE ItMw_GHS (C_Item)
{
name = "Schwert des Gildenherren";
mainflag = ITEM_KAT_NF;
flags = ITEM_2HD_SWD;
material = MAT_METAL;
value = 0;
damageTotal = 60;
damagetype = DAM_EDGE;
range = RANGE_Sld2hSchwert;
cond_atr[2] = ATR_STRENGTH;
cond_value[2] = 0;
visual = "ItMw_035_2h_sld_sword_01.3DS";
description = name;
TEXT[2] = NAME_Damage; COUNT[2] = damageTotal;
TEXT[3] = NAME_Str_needed; COUNT[3] = cond_value[2];
TEXT[4] = NAME_TwoHanded;
TEXT[5] = NAME_Value; COUNT[5] = value;
};
INSTANCE ItMw_Retonsschwert (C_Item)
{
name = "Retons Schwert";
mainflag = ITEM_KAT_NF;
flags = ITEM_SWD;
material = MAT_METAL;
value = 500;
damageTotal = 25;
damagetype = DAM_EDGE;
range = Range_ShortSword2;
cond_atr[2] = ATR_STRENGTH;
cond_value[2] = 10;
visual = "ItMw_012_1h_Sword_short_02.3DS";
description = name;
TEXT[2] = NAME_Damage; COUNT[2] = damageTotal;
TEXT[3] = NAME_Str_needed; COUNT[3] = cond_value[2];
TEXT[4] = NAME_OneHanded;
TEXT[5] = NAME_Value; COUNT[5] = value;
};
INSTANCE ItMw_norhammer(C_Item)
{
name = "Schmiedehammer";
mainflag = ITEM_KAT_NF;
flags = ITEM_AXE;
material = MAT_METAL;
value = Value_Schmiedehammer;
damageTotal = Damage_Schmiedehammer;
damagetype = DAM_BLUNT;
range = Range_Schmiedehammer;
cond_atr[2] = ATR_STRENGTH;
cond_value[2] = Condition_Schmiedehammer;
visual = "ItMw_010_1h_sledgehammer_01.3DS";
description = name;
TEXT[1] = "Ein großes 'N' ist in den Hammerkopf eingraviert";
TEXT[2] = NAME_Damage; COUNT[2] = damageTotal;
TEXT[3] = NAME_Str_needed; COUNT[3] = cond_value[2];
TEXT[4] = NAME_OneHanded;
TEXT[5] = NAME_Value; COUNT[5] = value;
};
instance ItRw_marvinbogen (C_Item)
{
name = "Bogen für Marvin";
mainflag = ITEM_KAT_FF;
flags = ITEM_BOW;
material = MAT_WOOD;
value = 100;
damageTotal = Damage_Jagdbogen;
damagetype = DAM_POINT;
munition = ItRw_Arrow;
cond_atr[2] = ATR_DEXTERITY;
cond_value[2] = Condition_Jagdbogen;
visual = "ItRw_Bow_M_01.mms";
description = name;
TEXT[2] = NAME_Damage; COUNT[2] = damageTotal;
TEXT[3] = NAME_Dex_needed; COUNT[3] = cond_value[2];
TEXT[5] = NAME_Value; COUNT[5] = value;
};
INSTANCE ItMw_marvinschwert (C_Item)
{
name = "Schwert für Marvin";
mainflag = ITEM_KAT_NF;
flags = ITEM_2HD_SWD;
material = MAT_METAL;
value = 100;
damageTotal = 50;
damagetype = DAM_EDGE;
range = RANGE_Sld2hSchwert;
cond_atr[2] = ATR_STRENGTH;
cond_value[2] = 50;
visual = "ItMw_035_2h_sld_sword_01.3DS";
description = name;
TEXT[2] = NAME_Damage; COUNT[2] = damageTotal;
TEXT[3] = NAME_Str_needed; COUNT[3] = cond_value[2];
TEXT[4] = NAME_TwoHanded;
TEXT[5] = NAME_Value; COUNT[5] = value;
};
INSTANCE ItMw_innosdolch (C_Item)
{
name = "Innosdolch";
mainflag = ITEM_KAT_NF;
flags = ITEM_SWD;
material = MAT_METAL;
effect = "SPELLFX_FIREBOW";
value = Value_VLKDolch;
damageTotal = Damage_VLKDolch;
damagetype = DAM_EDGE;
range = RANGE_VLKDolch;
cond_atr[2] = ATR_STRENGTH;
cond_value[2] = Condition_VLKDolch;
visual = "Itmw_005_1h_dagger_01.3DS";
description = name;
TEXT[2] = NAME_Damage; COUNT[2] = damageTotal;
TEXT[3] = NAME_Str_needed; COUNT[3] = cond_value[2];
TEXT[4] = NAME_OneHanded;
TEXT[5] = NAME_Value; COUNT[5] = value;
};
INSTANCE ItMw_adanosdolch (C_Item)
{
name = "Adanosdolch";
mainflag = ITEM_KAT_NF;
flags = ITEM_SWD;
material = MAT_METAL;
effect = "SPELLFX_CROSSBOW";
value = Value_VLKDolch;
damageTotal = Damage_VLKDolch;
damagetype = DAM_EDGE;
range = RANGE_VLKDolch;
cond_atr[2] = ATR_STRENGTH;
cond_value[2] = Condition_VLKDolch;
visual = "Itmw_005_1h_dagger_01.3DS";
description = name;
TEXT[2] = NAME_Damage; COUNT[2] = damageTotal;
TEXT[3] = NAME_Str_needed; COUNT[3] = cond_value[2];
TEXT[4] = NAME_OneHanded;
TEXT[5] = NAME_Value; COUNT[5] = value;
};
INSTANCE ItMw_beliardolch (C_Item)
{
name = "Beliardolch";
mainflag = ITEM_KAT_NF;
flags = ITEM_SWD;
material = MAT_METAL;
effect = "SPELLFX_FIRESWORDBLACK";
value = Value_VLKDolch;
damageTotal = Damage_VLKDolch;
damagetype = DAM_EDGE;
range = RANGE_VLKDolch;
cond_atr[2] = ATR_STRENGTH;
cond_value[2] = Condition_VLKDolch;
visual = "Itmw_005_1h_dagger_01.3DS";
description = name;
TEXT[2] = NAME_Damage; COUNT[2] = damageTotal;
TEXT[3] = NAME_Str_needed; COUNT[3] = cond_value[2];
TEXT[4] = NAME_OneHanded;
TEXT[5] = NAME_Value; COUNT[5] = value;
};
INSTANCE ItMw_saphiel (C_Item)
{
name = "Saphiel";
mainflag = ITEM_KAT_NF;
flags = ITEM_2HD_SWD;
material = MAT_METAL;
value = 10000;
damageTotal = 150;
damagetype = DAM_EDGE;
range = 170;
on_equip = Equip_s;
on_unequip = UnEquip_s;
cond_atr[2] = ATR_STRENGTH;
cond_value[2] = 100;
visual = "ItMw_040_2h_PAL_sword_heavy_RAW_01.3DS";
description = name;
TEXT[1] = "Absorbiert gegnerische Energie und stärkt Träger";
TEXT[2] = NAME_Damage; COUNT[2] = damageTotal;
TEXT[3] = NAME_Str_needed; COUNT[3] = cond_value[2];
TEXT[4] = NAME_TwoHanded;
TEXT[5] = NAME_Value; COUNT[5] = value;
};
FUNC VOID Equip_s()
{
sise = TRUE;
};
FUNC VOID UnEquip_s()
{
sise = FALSE;
};
|
D
|
module polyplex.math.quaternion;
import polyplex.math.vector;
static import Mathf = polyplex.math.mathf;
import std.traits;
alias Quaternion = QuaternionT!float;
/**
A quaternion is a way of representing a rotation in three dimensions by
storing a rotation and an angle. It properly forms a topological 3-sphere,
which allows it to avoid the gimbal lock that plagues the more
human-readable euler angle.
Read more here:
https://euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/geometric/orthogonal
**/
struct QuaternionT(T) if (__traits(isFloating, T)) {
/// Holds rotation (xyz) and angle (w)
public Vector4T!T data;
public immutable alias Type = T;
// convert to string Q<x, y, z, w>
public alias ToString = toString;
public string toString() {
return "Q" ~ data.toString();
}
// -- Accessors, just call data vector
public @property auto opDispatch(string swizzle_list, U=void)() pure const nothrow {
return data.opDispatch!(swizzle_list);
}
public @property auto opDispatch(string swizzle_list, U)(U x) pure nothrow {
return data.opDispatch!(swizzle_list, U)(x);
}
unittest {
assert(__traits(compiles, QuaternionT!T(float3(0.2f), 0.2f).xy));
assert(QuaternionT!T(Vector4T!T(4)).xwz == Vector3T!T(4));
}
/// Constructs a quaternion from a vector
public this(Vector4T!T vec) pure nothrow { data = vec; }
/// Constructs a quaternion from another quaternion
public this(QuaternionT!T quat) pure nothrow { data = quat.data; }
/// Constructs a quaternion from an axis and an angle theta
public this(Vector3T!T axis, T theta) pure nothrow {
// adjust axis and theta
axis = axis.Normalize();
theta = theta/cast(T)2;
T sin_theta = Mathf.Sin(theta);
// Set data
data.w = Mathf.Cos(theta);
data.x = sin_theta*axis.x;
data.y = sin_theta*axis.x;
data.z = sin_theta*axis.x;
}
unittest {
assert(__traits(compiles, QuaternionT!T(Vector3T!T(0.3f), 0.5f)));
}
/// Constructs identity of a quaternion
public static QuaternionT!T Identity() pure nothrow {
QuaternionT!T q;
q.x = q.y = q.z = 0;
q.w = 1;
return q;
}
/// Constructs a quaternion from euler angle
public static QuaternionT!T ToQuaternion(T pitch, T roll, T yaw) pure nothrow {
QuaternionT!T q;
// adjust angles
pitch *= cast(T)0.5f;
roll *= cast(T)0.5f;
yaw *= cast(T)0.5f;
T cy = Mathf.Cos(yaw), sy = Mathf.Sin(yaw);
T cr = Mathf.Cos(roll), sr = Mathf.Sin(roll);
T cp = Mathf.Cos(pitch), sp = Mathf.Sin(pitch);
q.w = cy*cr*cp + sy*sr*sp;
q.x = cy*sr*cp - sy*cr*sp;
q.y = cy*cr*sp + sy*sr*cp;
q.z = sy*cr*cp - cy*sr*sp;
return q;
}
/// Constructs a quaternion from euler angle vector
public static QuaternionT!T ToQuaternion(Vector3T!T vec) pure nothrow {
return ToQuaternion(vec.x, vec.y, vec.z);
}
unittest {
assert(__traits(compiles, ToQuaternion(Vector3T!T(0.2f))));
assert(__traits(compiles, ToQuaternion(0.2f, 0.5f, 0.6f)));
}
/// Returns the euler angle equivalent of this quaternion, in the form of
/// <roll, pitch, yaw>
public Vector3T!T ToEulerAngle() pure const nothrow {
Vector3T!T euler;
QuaternionT!T q = this;
// calculate roll
T sinr = 2 * (q.w*q.x + q.y*q.z);
T cosr = 1 - 2*(q.x*q.x + q.y*q.y);
euler.X = Mathf.ATan2(sinr, cosr);
// calculate pitch
T sinp = Mathf.Clamp(2*(q.w*q.y - q.z*q.x), cast(T)-1, cast(T)1);
euler.Y = Mathf.ASin(sinp);
// calculate yaw
T siny = 2 * (q.w*q.z + q.x*q.y);
T cosy = 1 - 2*(q.y*q.y + q.z*q.z);
euler.Z = Mathf.ATan2(siny, cosy);
return euler;
}
/// Sets euler angle as member parameters, equivalent of this quaternion
public void ToEulerAngle(ref T roll, ref T pitch, ref T yaw) pure const nothrow {
Vector3T!T euler = ToEulerAngle();
roll = euler.x;
pitch = euler.y;
yaw = euler.z;
}
unittest {
auto q = QuaternionT!T(Vector3T!T(0.3f), 0.5f);
T r, p, y;
assert(__traits(compiles, q.ToEulerAngle));
assert(__traits(compiles, q.ToEulerAngle(r, p, y)));
}
/// Returns a normalized quaternion
public QuaternionT!T Normalize ( ) pure const nothrow {
return QuaternionT!T(data.Normalize);
}
unittest {
assert(__traits(compiles, QuaternionT!T.ToQuaternion(Vector3T!T(0.3)).Normalize));
}
/// Returns a conjugated quaternion
public QuaternionT!T Conjugate ( ) pure const nothrow {
return QuaternionT!T(float4(-data.x, -data.y, -data.z, data.w));
}
unittest {
assert(__traits(compiles, QuaternionT!T(Vector3T!T(0.2f), 0.4f).Normalize.Conjugate));
}
// Returns a scaled quaternion
public QuaternionT!T Scale(T scale) pure const nothrow {
return QuaternionT!T(data*scale);
}
unittest {
assert(__traits(compiles, QuaternionT!T(Vector3T!T(0.2f), 0.4f).Scale(0.5)));
}
/// quaternion * quaternion
public QuaternionT!T opBinary(string op, U)(U rhs) pure const nothrow
if (is(U : QuaternionT!T) && op == "*") {
QuaternionT!T v;
QuaternionT!T lhs = this;
v.x = lhs.x * rhs.w + lhs.y * rhs.z - lhs.z * rhs.y + lhs.w * rhs.x;
v.y = -lhs.x * rhs.z + lhs.y * rhs.w + lhs.z * rhs.x + lhs.w * rhs.y;
v.z = lhs.x * rhs.y - lhs.y * rhs.x + lhs.z * rhs.w + lhs.w * rhs.z;
v.w = -lhs.x * rhs.x - lhs.y * rhs.y - lhs.z * rhs.z + lhs.w * rhs.w;
return v;
}
/// quaternion *= quaternion
public void opOpAssign(string op, U)(U rhs) pure nothrow
if (is(U : QuaternionT!T) && op == "*") {
this = this * rhs;
}
/// quaternion + quaternion
public QuaternionT!T opBinary(string op, U)(U rhs) pure const nothrow
if(is(U : QuaternionT!T) && op == "+") {
return QuaternionT!T(this.data + rhs.data);
}
/// quaternion += quaternion
public void opOpAssign(string op, U)(U rhs) pure nothrow
if (is(U : QuaternionT!T) && op == "+") {
this = this + rhs;
}
unittest {
QuaternionT!T q = QuaternionT!T(float4(0.4f));
assert(__traits(compiles, q*q+q));
q *= q;
q += q;
}
}
|
D
|
instance DIA_RUEN_EXIT(C_Info)
{
npc = vlk_6007_ruen;
nr = 999;
condition = dia_ruen_exit_condition;
information = dia_ruen_exit_info;
permanent = TRUE;
description = Dialog_Ende;
};
func int dia_ruen_exit_condition()
{
return TRUE;
};
func void dia_ruen_exit_info()
{
AI_StopProcessInfos(self);
};
instance DIA_RUEN_HELLO(C_Info)
{
npc = vlk_6007_ruen;
nr = 1;
condition = dia_ruen_hello_condition;
information = dia_ruen_hello_info;
permanent = TRUE;
important = FALSE;
description = "Jak se ti daří?";
};
func int dia_ruen_hello_condition()
{
if(MEETRUEN == 0)
{
return TRUE;
};
};
func void dia_ruen_hello_info()
{
AI_Output(other,self,"DIA_Ruen_Hello_01_00"); //Jak se ti daří?
AI_Output(self,other,"DIA_Ruen_Hello_01_01"); //... stůj! Tys ten chlapík, co se tu objevil!
AI_Output(self,other,"DIA_Ruen_Hello_01_02"); //Všichni mluví jen o tobě...
AI_Output(self,other,"DIA_Ruen_Hello_01_03"); //Ano, brácho. Lov tady je čím dál, tím nebezpečnější.
AI_Output(self,other,"DIA_Ruen_Hello_01_04"); //Je to jakoby ses tím potvorám vrhal přímo do tlamy.
AI_Output(self,other,"DIA_Ruen_Hello_01_05"); //A v noci máš přímo husí kůži!
AI_Output(self,other,"DIA_Ruen_Hello_01_06"); //Jenom v téhle jeskyni se můžeš cítit víceméně bezpečně.
AI_Output(self,other,"DIA_Ruen_Hello_01_07"); //Život tady není procházka růžovou zahradou!
AI_Output(other,self,"DIA_Ruen_Hello_01_08"); //A co lovíte?
AI_Output(self,other,"DIA_Ruen_Hello_01_09"); //Nejvíce wargy. Řeknu ti, ďábelsky nebezpečné monstra!
AI_Output(self,other,"DIA_Ruen_Hello_01_10"); //Néže bychom si měli z čeho vybírat. Skoro nic jiné tady není.
AI_Output(other,self,"DIA_Ruen_Hello_01_11"); //Taky jste lovci?
AI_Output(self,other,"DIA_Ruen_Hello_01_12"); //Všichni tady jsme lovci. Taky tady nemůžeš kromě lovení nic dělat.
MEETRUEN = 1;
};
instance DIA_RUEN_HELLO_TWO(C_Info)
{
npc = vlk_6007_ruen;
nr = 1;
condition = dia_ruen_hello_two_condition;
information = dia_ruen_hello_two_info;
permanent = TRUE;
important = FALSE;
description = "Můžeš mě naučit lovit?";
};
func int dia_ruen_hello_two_condition()
{
if(MEETRUEN == 1)
{
return TRUE;
};
};
func void dia_ruen_hello_two_info()
{
AI_Output(other,self,"DIA_Ruen_Hello_Two_01_01"); //Můžeš mě naučit lovit?
AI_Output(self,other,"DIA_Ruen_Hello_Two_01_02"); //Bohužel ne moc.
AI_Output(self,other,"DIA_Ruen_Hello_Two_01_03"); //Pokud se chceš naučit něco víc, raději si promluv s Bargusem.
AI_Output(self,other,"DIA_Ruen_Hello_Two_01_04"); //Je tady nejlepší! Promluv si s ním. Je v jeskyni nalevo.
AI_Output(other,self,"DIA_Ruen_Hello_Two_01_05"); //A kdo jiný tady mě může něco naučit?
AI_Output(self,other,"DIA_Ruen_Hello_Two_01_06"); //Jak jsem ti řekl, Bagrus tě může naučit lovit a brát trofeje ze zvířat.
AI_Output(self,other,"DIA_Ruen_Hello_Two_01_07"); //U Gunmare hledej šípy! A právě on ti může vysvětlit, jak lépe zacházet s lukem.
AI_Output(self,other,"DIA_Ruen_Hello_Two_01_08"); //Gillimor ti může objasnit výrobu některých léčivých lektvarů. Je tady něco jako alchymista.
AI_Output(self,other,"DIA_Ruen_Hello_Two_01_09"); //Emnol je prostě hora svalů! Pokud se chceš stát silnějším, jdi k němu. Ukáže ti několik cviků, které zvednou tvojí sílu.
AI_Output(self,other,"DIA_Ruen_Hello_Two_01_10"); //Pokud chceš lépe zacházet s chladnou ocelí - nezáleží jestli jedno- nebo obouručnou, Kardor ti to může ukázat. Nikdo mezi námi se mu v tom nevyrovná!
AI_Output(self,other,"DIA_Ruen_Hello_Two_01_11"); //Nofeld ti ukáže, jak být obratnějším.
AI_Output(self,other,"DIA_Ruen_Hello_Two_01_12"); //Hasan ti může prodat věci ze skladu, na který dohlíží.
AI_Output(self,other,"DIA_Ruen_Hello_Two_01_13"); //Možná ti něco ukáže i někdo jiný.
AI_Output(other,self,"DIA_Ruen_Hello_Two_01_14"); //A ty?
AI_Output(self,other,"DIA_Ruen_Hello_Two_01_15"); //Já?!... Hmmm... Bojím se, že ne.
AI_Output(other,self,"DIA_Ruen_Hello_Two_01_16"); //Fajn. A děkuji ti.
AI_Output(self,other,"DIA_Ruen_Hello_Two_01_17"); //Není zač.
Log_CreateTopic(TOPIC_TEACHERSINVALLEY,LOG_NOTE);
B_LogEntry(TOPIC_TEACHERSINVALLEY,"Bagrus je nejlepším lovcem v táboře. Může mi ukázat, jak vybírat trofeje ze zvířat.");
B_LogEntry(TOPIC_TEACHERSINVALLEY,"Gunmar se specializuje na střelbu s lukem. Ruen mi řekl, že právě on má tady nejlepší šípy.");
B_LogEntry(TOPIC_TEACHERSINVALLEY,"Gillimor mě může naučit připravit různé lektvary.");
B_LogEntry(TOPIC_TEACHERSINVALLEY,"Emnol mi pomůže zvýšit mojí sílu.");
B_LogEntry(TOPIC_TEACHERSINVALLEY,"Kardor mi může ukázat několik triků s chladnými zbraněmi.");
B_LogEntry(TOPIC_TEACHERSINVALLEY,"Nofeld mi pomůže zvýšit mojí obratnost.");
B_LogEntry(TOPIC_TEACHERSINVALLEY,"Hasan obchoduje s různými věcmi. Můžu ho najít v skladě.");
BARGUSTEACHER = TRUE;
GUNMARTEACHER = TRUE;
GILLIMORTEACHER = TRUE;
EMNOLTEACHER = TRUE;
KARDORTEACHER = TRUE;
NOFELDTEACHER = TRUE;
HASANTEACHER = TRUE;
MEETRUEN = 2;
};
instance DIA_RUEN_HELLO_SKLEP(C_Info)
{
npc = vlk_6007_ruen;
nr = 1;
condition = dia_ruen_hello_sklep_condition;
information = dia_ruen_hello_sklep_info;
permanent = TRUE;
important = FALSE;
description = "(zeptat se na kryptu v údolí)";
};
func int dia_ruen_hello_sklep_condition()
{
if((MEETHARUMTWO == TRUE) && (RUENSKLEPKNOWN == FALSE))
{
return TRUE;
};
};
func void dia_ruen_hello_sklep_info()
{
AI_Output(other,self,"DIA_Ruen_Hello_Sklep_01_00"); //Elvais mi řekl, že když jste lovili, našla se jedna krypta.
AI_Output(self,other,"DIA_Ruen_Hello_Sklep_01_01"); //Ano, něco takovýho. Říkám ti, hrozné místo!
AI_Output(self,other,"DIA_Ruen_Hello_Sklep_01_03"); //A co s ním chceš?
AI_Output(other,self,"DIA_Ruen_Hello_Sklep_01_04"); //Chci ho navštívit. Elvais mi také řekl, že jste odtamtud přinesli nějaké starobylé věci.
AI_Output(other,self,"DIA_Ruen_Hello_Sklep_01_05"); //A některé podle něho obsahovali velice zajímavé informace.
AI_Output(other,self,"DIA_Ruen_Hello_Sklep_01_06"); //Myslím, že bych se tam měl jít kouknout. Může mě tam čekat něco zajímavé.
AI_Output(self,other,"DIA_Ruen_Hello_Sklep_01_07"); //Radím ti, drž se od té krypty dál. Je to sídlo zla.
AI_Output(self,other,"DIA_Ruen_Hello_Sklep_01_08"); //Hemží se to tam monstry! Nikdy jsem jich neviděl na jednom místě víc.
AI_Output(other,self,"DIA_Ruen_Hello_Sklep_01_09"); //Nějak se s nimi vypořádám. Mohl bys mi přesněji říct, kde se krypta nachází?
AI_Output(self,other,"DIA_Ruen_Hello_Sklep_01_10"); //Nebudu ti bránit, jsi odvážný, chlape! Tvá věc...
AI_Output(self,other,"DIA_Ruen_Hello_Sklep_01_11"); //Jen se obávám, že ti nemůžu přesně říct, kde je.
AI_Output(self,other,"DIA_Ruen_Hello_Sklep_01_12"); //Jen tak se objevila. A nebyl čas pamatovat si cestu.
AI_Output(self,other,"DIA_Ruen_Hello_Sklep_01_13"); //Vím jen, že je někde v jeskyni při kamenném kruhu.
AI_Output(other,self,"DIA_Ruen_Hello_Sklep_01_14"); //Kamenném kruhu?
AI_Output(self,other,"DIA_Ruen_Hello_Sklep_01_15"); //Ano, kamenném kruhu. Je severně od nášho tábora.
AI_Output(other,self,"DIA_Ruen_Hello_Sklep_01_16"); //Ano... protože teď vůbec není problém ho najít!
AI_Output(self,other,"DIA_Ruen_Hello_Sklep_01_17"); //Chlape, řekl jsem ti vše, co vím.
B_LogEntry(TOPIC_URNAZULRAGE,"Mluvil jsem s Ruenem o té kryptě. Řekl mi, že je severně od tábora, v jeskyni při kamenném kruhu.");
RUENSKLEPKNOWN = TRUE;
};
instance DIA_RUEN_HELLO_LAST(C_Info)
{
npc = vlk_6007_ruen;
nr = 1;
condition = dia_ruen_hello_last_condition;
information = dia_ruen_hello_last_info;
permanent = TRUE;
important = FALSE;
description = "Je to vše?";
};
func int dia_ruen_hello_last_condition()
{
if(RUENSKLEPKNOWN == TRUE)
{
return TRUE;
};
};
func void dia_ruen_hello_last_info()
{
AI_Output(other,self,"DIA_Ruen_Hello_Last_01_00"); //Je to vše?
AI_Output(self,other,"DIA_Ruen_Hello_Last_01_01"); //Zatím.
};
|
D
|
/**
* Forms the symbols available to all D programs. Includes Object, which is
* the root of the class object hierarchy. This module is implicitly
* imported.
*
* Copyright: Copyright Digital Mars 2000 - 2011.
* License: $(WEB www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
* Authors: Walter Bright, Sean Kelly
*/
module object;
private
{
extern (C) Object _d_newclass(const TypeInfo_Class ci);
extern (C) void rt_finalize(void *data, bool det=true);
}
// NOTE: For some reason, this declaration method doesn't work
// in this particular file (and this file only). It must
// be a DMD thing.
//alias typeof(int.sizeof) size_t;
//alias typeof(cast(void*)0 - cast(void*)0) ptrdiff_t;
version(D_LP64)
{
alias ulong size_t;
alias long ptrdiff_t;
}
else
{
alias uint size_t;
alias int ptrdiff_t;
}
alias ptrdiff_t sizediff_t; //For backwards compatibility only.
alias size_t hash_t; //For backwards compatibility only.
alias bool equals_t; //For backwards compatibility only.
alias immutable(char)[] string;
alias immutable(wchar)[] wstring;
alias immutable(dchar)[] dstring;
version (D_ObjectiveC) public import core.attribute : selector;
/**
* All D class objects inherit from Object.
*/
class Object
{
/**
* Convert Object to a human readable string.
*/
string toString()
{
return typeid(this).name;
}
/**
* Compute hash function for Object.
*/
size_t toHash() @trusted nothrow
{
// BUG: this prevents a compacting GC from working, needs to be fixed
return cast(size_t)cast(void*)this;
}
/**
* Compare with another Object obj.
* Returns:
* $(TABLE
* $(TR $(TD this < obj) $(TD < 0))
* $(TR $(TD this == obj) $(TD 0))
* $(TR $(TD this > obj) $(TD > 0))
* )
*/
int opCmp(Object o)
{
// BUG: this prevents a compacting GC from working, needs to be fixed
//return cast(int)cast(void*)this - cast(int)cast(void*)o;
throw new Exception("need opCmp for class " ~ typeid(this).name);
//return this !is o;
}
/**
* Test whether $(D this) is equal to $(D o).
* The default implementation only compares by identity (using the $(D is) operator).
* Generally, overrides for $(D opEquals) should attempt to compare objects by their contents.
*/
bool opEquals(Object o)
{
return this is o;
}
interface Monitor
{
void lock();
void unlock();
}
/**
* Create instance of class specified by the fully qualified name
* classname.
* The class must either have no constructors or have
* a default constructor.
* Returns:
* null if failed
* Example:
* ---
* module foo.bar;
*
* class C
* {
* this() { x = 10; }
* int x;
* }
*
* void main()
* {
* auto c = cast(C)Object.factory("foo.bar.C");
* assert(c !is null && c.x == 10);
* }
* ---
*/
static Object factory(string classname)
{
auto ci = TypeInfo_Class.find(classname);
if (ci)
{
return ci.create();
}
return null;
}
}
auto opEquals(Object lhs, Object rhs)
{
// If aliased to the same object or both null => equal
if (lhs is rhs) return true;
// If either is null => non-equal
if (lhs is null || rhs is null) return false;
// If same exact type => one call to method opEquals
if (typeid(lhs) is typeid(rhs) ||
!__ctfe && typeid(lhs).opEquals(typeid(rhs)))
/* CTFE doesn't like typeid much. 'is' works, but opEquals doesn't
(issue 7147). But CTFE also guarantees that equal TypeInfos are
always identical. So, no opEquals needed during CTFE. */
{
return lhs.opEquals(rhs);
}
// General case => symmetric calls to method opEquals
return lhs.opEquals(rhs) && rhs.opEquals(lhs);
}
/************************
* Returns true if lhs and rhs are equal.
*/
auto opEquals(const Object lhs, const Object rhs)
{
// A hack for the moment.
return opEquals(cast()lhs, cast()rhs);
}
private extern(C) void _d_setSameMutex(shared Object ownee, shared Object owner) nothrow;
void setSameMutex(shared Object ownee, shared Object owner)
{
_d_setSameMutex(ownee, owner);
}
/**
* Information about an interface.
* When an object is accessed via an interface, an Interface* appears as the
* first entry in its vtbl.
*/
struct Interface
{
TypeInfo_Class classinfo; /// .classinfo for this interface (not for containing class)
void*[] vtbl;
size_t offset; /// offset to Interface 'this' from Object 'this'
}
/**
* Array of pairs giving the offset and type information for each
* member in an aggregate.
*/
struct OffsetTypeInfo
{
size_t offset; /// Offset of member from start of object
TypeInfo ti; /// TypeInfo for this member
}
/**
* Runtime type information about a type.
* Can be retrieved for any type using a
* $(GLINK2 expression,TypeidExpression, TypeidExpression).
*/
class TypeInfo
{
override string toString() const pure @safe nothrow
{
return typeid(this).name;
}
override size_t toHash() @trusted const nothrow
{
import core.internal.traits : externDFunc;
alias hashOf = externDFunc!("rt.util.hash.hashOf",
size_t function(const(void)[], size_t) @trusted pure nothrow @nogc);
return hashOf(this.toString(), 0);
}
override int opCmp(Object o)
{
import core.internal.traits : externDFunc;
alias dstrcmp = externDFunc!("core.internal.string.dstrcmp",
int function(scope const char[] s1, scope const char[] s2) @trusted pure nothrow @nogc);
if (this is o)
return 0;
TypeInfo ti = cast(TypeInfo)o;
if (ti is null)
return 1;
return dstrcmp(this.toString(), ti.toString());
}
override bool opEquals(Object o)
{
/* TypeInfo instances are singletons, but duplicates can exist
* across DLL's. Therefore, comparing for a name match is
* sufficient.
*/
if (this is o)
return true;
auto ti = cast(const TypeInfo)o;
return ti && this.toString() == ti.toString();
}
/**
* Computes a hash of the instance of a type.
* Params:
* p = pointer to start of instance of the type
* Returns:
* the hash
* Bugs:
* fix https://issues.dlang.org/show_bug.cgi?id=12516 e.g. by changing this to a truly safe interface.
*/
size_t getHash(in void* p) @trusted nothrow const { return cast(size_t)p; }
/// Compares two instances for equality.
bool equals(in void* p1, in void* p2) const { return p1 == p2; }
/// Compares two instances for <, ==, or >.
int compare(in void* p1, in void* p2) const { return _xopCmp(p1, p2); }
/// Returns size of the type.
@property size_t tsize() nothrow pure const @safe @nogc { return 0; }
/// Swaps two instances of the type.
void swap(void* p1, void* p2) const
{
size_t n = tsize;
for (size_t i = 0; i < n; i++)
{
byte t = (cast(byte *)p1)[i];
(cast(byte*)p1)[i] = (cast(byte*)p2)[i];
(cast(byte*)p2)[i] = t;
}
}
/** Get TypeInfo for 'next' type, as defined by what kind of type this is,
null if none. */
@property inout(TypeInfo) next() nothrow pure inout @nogc { return null; }
/**
* Return default initializer. If the type should be initialized to all
* zeros, an array with a null ptr and a length equal to the type size will
* be returned. For static arrays, this returns the default initializer for
* a single element of the array, use `tsize` to get the correct size.
*/
abstract const(void)[] initializer() nothrow pure const @safe @nogc;
/** Get flags for type: 1 means GC should scan for pointers,
2 means arg of this type is passed in XMM register */
@property uint flags() nothrow pure const @safe @nogc { return 0; }
/// Get type information on the contents of the type; null if not available
const(OffsetTypeInfo)[] offTi() const { return null; }
/// Run the destructor on the object and all its sub-objects
void destroy(void* p) const {}
/// Run the postblit on the object and all its sub-objects
void postblit(void* p) const {}
/// Return alignment of type
@property size_t talign() nothrow pure const @safe @nogc { return tsize; }
/** Return internal info on arguments fitting into 8byte.
* See X86-64 ABI 3.2.3
*/
version (X86_64) int argTypes(out TypeInfo arg1, out TypeInfo arg2) @safe nothrow
{
arg1 = this;
return 0;
}
/** Return info used by the garbage collector to do precise collection.
*/
@property immutable(void)* rtInfo() nothrow pure const @safe @nogc { return null; }
}
class TypeInfo_Typedef : TypeInfo
{
override string toString() const { return name; }
override bool opEquals(Object o)
{
if (this is o)
return true;
auto c = cast(const TypeInfo_Typedef)o;
return c && this.name == c.name &&
this.base == c.base;
}
override size_t getHash(in void* p) const { return base.getHash(p); }
override bool equals(in void* p1, in void* p2) const { return base.equals(p1, p2); }
override int compare(in void* p1, in void* p2) const { return base.compare(p1, p2); }
override @property size_t tsize() nothrow pure const { return base.tsize; }
override void swap(void* p1, void* p2) const { return base.swap(p1, p2); }
override @property inout(TypeInfo) next() nothrow pure inout { return base.next; }
override @property uint flags() nothrow pure const { return base.flags; }
override const(void)[] initializer() const
{
return m_init.length ? m_init : base.initializer();
}
override @property size_t talign() nothrow pure const { return base.talign; }
version (X86_64) override int argTypes(out TypeInfo arg1, out TypeInfo arg2)
{
return base.argTypes(arg1, arg2);
}
override @property immutable(void)* rtInfo() const { return base.rtInfo; }
TypeInfo base;
string name;
void[] m_init;
}
unittest // issue 12233
{
static assert(is(typeof(TypeInfo.init) == TypeInfo));
assert(TypeInfo.init is null);
}
class TypeInfo_Enum : TypeInfo_Typedef
{
}
// Please make sure to keep this in sync with TypeInfo_P (src/rt/typeinfo/ti_ptr.d)
class TypeInfo_Pointer : TypeInfo
{
override string toString() const { return m_next.toString() ~ "*"; }
override bool opEquals(Object o)
{
if (this is o)
return true;
auto c = cast(const TypeInfo_Pointer)o;
return c && this.m_next == c.m_next;
}
override size_t getHash(in void* p) @trusted const
{
return cast(size_t)*cast(void**)p;
}
override bool equals(in void* p1, in void* p2) const
{
return *cast(void**)p1 == *cast(void**)p2;
}
override int compare(in void* p1, in void* p2) const
{
if (*cast(void**)p1 < *cast(void**)p2)
return -1;
else if (*cast(void**)p1 > *cast(void**)p2)
return 1;
else
return 0;
}
override @property size_t tsize() nothrow pure const
{
return (void*).sizeof;
}
override const(void)[] initializer() const @trusted
{
return (cast(void *)null)[0 .. (void*).sizeof];
}
override void swap(void* p1, void* p2) const
{
void* tmp = *cast(void**)p1;
*cast(void**)p1 = *cast(void**)p2;
*cast(void**)p2 = tmp;
}
override @property inout(TypeInfo) next() nothrow pure inout { return m_next; }
override @property uint flags() nothrow pure const { return 1; }
TypeInfo m_next;
}
class TypeInfo_Array : TypeInfo
{
override string toString() const { return value.toString() ~ "[]"; }
override bool opEquals(Object o)
{
if (this is o)
return true;
auto c = cast(const TypeInfo_Array)o;
return c && this.value == c.value;
}
override size_t getHash(in void* p) @trusted const
{
void[] a = *cast(void[]*)p;
return getArrayHash(value, a.ptr, a.length);
}
override bool equals(in void* p1, in void* p2) const
{
void[] a1 = *cast(void[]*)p1;
void[] a2 = *cast(void[]*)p2;
if (a1.length != a2.length)
return false;
size_t sz = value.tsize;
for (size_t i = 0; i < a1.length; i++)
{
if (!value.equals(a1.ptr + i * sz, a2.ptr + i * sz))
return false;
}
return true;
}
override int compare(in void* p1, in void* p2) const
{
void[] a1 = *cast(void[]*)p1;
void[] a2 = *cast(void[]*)p2;
size_t sz = value.tsize;
size_t len = a1.length;
if (a2.length < len)
len = a2.length;
for (size_t u = 0; u < len; u++)
{
int result = value.compare(a1.ptr + u * sz, a2.ptr + u * sz);
if (result)
return result;
}
return cast(int)a1.length - cast(int)a2.length;
}
override @property size_t tsize() nothrow pure const
{
return (void[]).sizeof;
}
override const(void)[] initializer() const @trusted
{
return (cast(void *)null)[0 .. (void[]).sizeof];
}
override void swap(void* p1, void* p2) const
{
void[] tmp = *cast(void[]*)p1;
*cast(void[]*)p1 = *cast(void[]*)p2;
*cast(void[]*)p2 = tmp;
}
TypeInfo value;
override @property inout(TypeInfo) next() nothrow pure inout
{
return value;
}
override @property uint flags() nothrow pure const { return 1; }
override @property size_t talign() nothrow pure const
{
return (void[]).alignof;
}
version (X86_64) override int argTypes(out TypeInfo arg1, out TypeInfo arg2)
{
arg1 = typeid(size_t);
arg2 = typeid(void*);
return 0;
}
}
class TypeInfo_StaticArray : TypeInfo
{
override string toString() const
{
import core.internal.traits : externDFunc;
alias sizeToTempString = externDFunc!("core.internal.string.unsignedToTempString",
char[] function(ulong, return char[], uint) @safe pure nothrow @nogc);
char[20] tmpBuff = void;
return value.toString() ~ "[" ~ sizeToTempString(len, tmpBuff, 10) ~ "]";
}
override bool opEquals(Object o)
{
if (this is o)
return true;
auto c = cast(const TypeInfo_StaticArray)o;
return c && this.len == c.len &&
this.value == c.value;
}
override size_t getHash(in void* p) @trusted const
{
return getArrayHash(value, p, len);
}
override bool equals(in void* p1, in void* p2) const
{
size_t sz = value.tsize;
for (size_t u = 0; u < len; u++)
{
if (!value.equals(p1 + u * sz, p2 + u * sz))
return false;
}
return true;
}
override int compare(in void* p1, in void* p2) const
{
size_t sz = value.tsize;
for (size_t u = 0; u < len; u++)
{
int result = value.compare(p1 + u * sz, p2 + u * sz);
if (result)
return result;
}
return 0;
}
override @property size_t tsize() nothrow pure const
{
return len * value.tsize;
}
override void swap(void* p1, void* p2) const
{
import core.memory;
import core.stdc.string : memcpy;
void* tmp;
size_t sz = value.tsize;
ubyte[16] buffer;
void* pbuffer;
if (sz < buffer.sizeof)
tmp = buffer.ptr;
else
tmp = pbuffer = (new void[sz]).ptr;
for (size_t u = 0; u < len; u += sz)
{
size_t o = u * sz;
memcpy(tmp, p1 + o, sz);
memcpy(p1 + o, p2 + o, sz);
memcpy(p2 + o, tmp, sz);
}
if (pbuffer)
GC.free(pbuffer);
}
override const(void)[] initializer() nothrow pure const
{
return value.initializer();
}
override @property inout(TypeInfo) next() nothrow pure inout { return value; }
override @property uint flags() nothrow pure const { return value.flags; }
override void destroy(void* p) const
{
auto sz = value.tsize;
p += sz * len;
foreach (i; 0 .. len)
{
p -= sz;
value.destroy(p);
}
}
override void postblit(void* p) const
{
auto sz = value.tsize;
foreach (i; 0 .. len)
{
value.postblit(p);
p += sz;
}
}
TypeInfo value;
size_t len;
override @property size_t talign() nothrow pure const
{
return value.talign;
}
version (X86_64) override int argTypes(out TypeInfo arg1, out TypeInfo arg2)
{
arg1 = typeid(void*);
return 0;
}
}
class TypeInfo_AssociativeArray : TypeInfo
{
override string toString() const
{
return value.toString() ~ "[" ~ key.toString() ~ "]";
}
override bool opEquals(Object o)
{
if (this is o)
return true;
auto c = cast(const TypeInfo_AssociativeArray)o;
return c && this.key == c.key &&
this.value == c.value;
}
override bool equals(in void* p1, in void* p2) @trusted const
{
return !!_aaEqual(this, *cast(const void**) p1, *cast(const void**) p2);
}
override hash_t getHash(in void* p) nothrow @trusted const
{
return _aaGetHash(cast(void*)p, this);
}
// BUG: need to add the rest of the functions
override @property size_t tsize() nothrow pure const
{
return (char[int]).sizeof;
}
override const(void)[] initializer() const @trusted
{
return (cast(void *)null)[0 .. (char[int]).sizeof];
}
override @property inout(TypeInfo) next() nothrow pure inout { return value; }
override @property uint flags() nothrow pure const { return 1; }
TypeInfo value;
TypeInfo key;
override @property size_t talign() nothrow pure const
{
return (char[int]).alignof;
}
version (X86_64) override int argTypes(out TypeInfo arg1, out TypeInfo arg2)
{
arg1 = typeid(void*);
return 0;
}
}
class TypeInfo_Vector : TypeInfo
{
override string toString() const { return "__vector(" ~ base.toString() ~ ")"; }
override bool opEquals(Object o)
{
if (this is o)
return true;
auto c = cast(const TypeInfo_Vector)o;
return c && this.base == c.base;
}
override size_t getHash(in void* p) const { return base.getHash(p); }
override bool equals(in void* p1, in void* p2) const { return base.equals(p1, p2); }
override int compare(in void* p1, in void* p2) const { return base.compare(p1, p2); }
override @property size_t tsize() nothrow pure const { return base.tsize; }
override void swap(void* p1, void* p2) const { return base.swap(p1, p2); }
override @property inout(TypeInfo) next() nothrow pure inout { return base.next; }
override @property uint flags() nothrow pure const { return base.flags; }
override const(void)[] initializer() nothrow pure const
{
return base.initializer();
}
override @property size_t talign() nothrow pure const { return 16; }
version (X86_64) override int argTypes(out TypeInfo arg1, out TypeInfo arg2)
{
return base.argTypes(arg1, arg2);
}
TypeInfo base;
}
class TypeInfo_Function : TypeInfo
{
override string toString() const
{
import core.demangle : demangleType;
alias SafeDemangleFunctionType = char[] function (const(char)[] buf, char[] dst = null) @safe nothrow pure;
SafeDemangleFunctionType demangle = ( () @trusted => cast(SafeDemangleFunctionType)(&demangleType) ) ();
return (() @trusted => cast(string)(demangle(deco))) ();
}
override bool opEquals(Object o)
{
if (this is o)
return true;
auto c = cast(const TypeInfo_Function)o;
return c && this.deco == c.deco;
}
// BUG: need to add the rest of the functions
override @property size_t tsize() nothrow pure const
{
return 0; // no size for functions
}
override const(void)[] initializer() const @safe
{
return null;
}
TypeInfo next;
/**
* Mangled function type string
*/
string deco;
}
unittest
{
abstract class C
{
void func();
void func(int a);
int func(int a, int b);
}
alias functionTypes = typeof(__traits(getVirtualFunctions, C, "func"));
assert(typeid(functionTypes[0]).toString() == "void function()");
assert(typeid(functionTypes[1]).toString() == "void function(int)");
assert(typeid(functionTypes[2]).toString() == "int function(int, int)");
}
class TypeInfo_Delegate : TypeInfo
{
override string toString() const
{
return cast(string)(next.toString() ~ " delegate()");
}
override bool opEquals(Object o)
{
if (this is o)
return true;
auto c = cast(const TypeInfo_Delegate)o;
return c && this.deco == c.deco;
}
override size_t getHash(in void* p) @trusted const
{
return hashOf(*cast(void delegate()*)p);
}
override bool equals(in void* p1, in void* p2) const
{
auto dg1 = *cast(void delegate()*)p1;
auto dg2 = *cast(void delegate()*)p2;
return dg1 == dg2;
}
override int compare(in void* p1, in void* p2) const
{
auto dg1 = *cast(void delegate()*)p1;
auto dg2 = *cast(void delegate()*)p2;
if (dg1 < dg2)
return -1;
else if (dg1 > dg2)
return 1;
else
return 0;
}
override @property size_t tsize() nothrow pure const
{
alias int delegate() dg;
return dg.sizeof;
}
override const(void)[] initializer() const @trusted
{
return (cast(void *)null)[0 .. (int delegate()).sizeof];
}
override @property uint flags() nothrow pure const { return 1; }
TypeInfo next;
string deco;
override @property size_t talign() nothrow pure const
{
alias int delegate() dg;
return dg.alignof;
}
version (X86_64) override int argTypes(out TypeInfo arg1, out TypeInfo arg2)
{
arg1 = typeid(void*);
arg2 = typeid(void*);
return 0;
}
}
unittest
{
// Bugzilla 15367
void f1() {}
void f2() {}
// TypeInfo_Delegate.getHash
int[void delegate()] aa;
assert(aa.length == 0);
aa[&f1] = 1;
assert(aa.length == 1);
aa[&f1] = 1;
assert(aa.length == 1);
auto a1 = [&f2, &f1];
auto a2 = [&f2, &f1];
// TypeInfo_Delegate.equals
for (auto i = 0; i < 2; i++)
assert(a1[i] == a2[i]);
assert(a1 == a2);
// TypeInfo_Delegate.compare
for (auto i = 0; i < 2; i++)
assert(a1[i] <= a2[i]);
assert(a1 <= a2);
}
/**
* Runtime type information about a class.
* Can be retrieved from an object instance by using the
* $(DDSUBLINK spec/property,classinfo, .classinfo) property.
*/
class TypeInfo_Class : TypeInfo
{
override string toString() const { return info.name; }
override bool opEquals(Object o)
{
if (this is o)
return true;
auto c = cast(const TypeInfo_Class)o;
return c && this.info.name == c.info.name;
}
override size_t getHash(in void* p) @trusted const
{
auto o = *cast(Object*)p;
return o ? o.toHash() : 0;
}
override bool equals(in void* p1, in void* p2) const
{
Object o1 = *cast(Object*)p1;
Object o2 = *cast(Object*)p2;
return (o1 is o2) || (o1 && o1.opEquals(o2));
}
override int compare(in void* p1, in void* p2) const
{
Object o1 = *cast(Object*)p1;
Object o2 = *cast(Object*)p2;
int c = 0;
// Regard null references as always being "less than"
if (o1 !is o2)
{
if (o1)
{
if (!o2)
c = 1;
else
c = o1.opCmp(o2);
}
else
c = -1;
}
return c;
}
override @property size_t tsize() nothrow pure const
{
return Object.sizeof;
}
override const(void)[] initializer() nothrow pure const @safe
{
return m_init;
}
override @property uint flags() nothrow pure const { return 1; }
override @property const(OffsetTypeInfo)[] offTi() nothrow pure const
{
return m_offTi;
}
@property auto info() @safe nothrow pure const { return this; }
@property auto typeinfo() @safe nothrow pure const { return this; }
byte[] m_init; /** class static initializer
* (init.length gives size in bytes of class)
*/
string name; /// class name
void*[] vtbl; /// virtual function pointer table
Interface[] interfaces; /// interfaces this class implements
TypeInfo_Class base; /// base class
void* destructor;
void function(Object) classInvariant;
enum ClassFlags : uint
{
isCOMclass = 0x1,
noPointers = 0x2,
hasOffTi = 0x4,
hasCtor = 0x8,
hasGetMembers = 0x10,
hasTypeInfo = 0x20,
isAbstract = 0x40,
isCPPclass = 0x80,
hasDtor = 0x100,
}
ClassFlags m_flags;
void* deallocator;
OffsetTypeInfo[] m_offTi;
void function(Object) defaultConstructor; // default Constructor
immutable(void)* m_RTInfo; // data for precise GC
override @property immutable(void)* rtInfo() const { return m_RTInfo; }
/**
* Search all modules for TypeInfo_Class corresponding to classname.
* Returns: null if not found
*/
static const(TypeInfo_Class) find(in char[] classname)
{
foreach (m; ModuleInfo)
{
if (m)
{
//writefln("module %s, %d", m.name, m.localClasses.length);
foreach (c; m.localClasses)
{
if (c is null)
continue;
//writefln("\tclass %s", c.name);
if (c.name == classname)
return c;
}
}
}
return null;
}
/**
* Create instance of Object represented by 'this'.
*/
Object create() const
{
if (m_flags & 8 && !defaultConstructor)
return null;
if (m_flags & 64) // abstract
return null;
Object o = _d_newclass(this);
if (m_flags & 8 && defaultConstructor)
{
defaultConstructor(o);
}
return o;
}
}
alias TypeInfo_Class ClassInfo;
unittest
{
// Bugzilla 14401
static class X
{
int a;
}
assert(typeid(X).initializer is typeid(X).m_init);
assert(typeid(X).initializer.length == typeid(const(X)).initializer.length);
assert(typeid(X).initializer.length == typeid(shared(X)).initializer.length);
assert(typeid(X).initializer.length == typeid(immutable(X)).initializer.length);
}
class TypeInfo_Interface : TypeInfo
{
override string toString() const { return info.name; }
override bool opEquals(Object o)
{
if (this is o)
return true;
auto c = cast(const TypeInfo_Interface)o;
return c && this.info.name == typeid(c).name;
}
override size_t getHash(in void* p) @trusted const
{
Interface* pi = **cast(Interface ***)*cast(void**)p;
Object o = cast(Object)(*cast(void**)p - pi.offset);
assert(o);
return o.toHash();
}
override bool equals(in void* p1, in void* p2) const
{
Interface* pi = **cast(Interface ***)*cast(void**)p1;
Object o1 = cast(Object)(*cast(void**)p1 - pi.offset);
pi = **cast(Interface ***)*cast(void**)p2;
Object o2 = cast(Object)(*cast(void**)p2 - pi.offset);
return o1 == o2 || (o1 && o1.opCmp(o2) == 0);
}
override int compare(in void* p1, in void* p2) const
{
Interface* pi = **cast(Interface ***)*cast(void**)p1;
Object o1 = cast(Object)(*cast(void**)p1 - pi.offset);
pi = **cast(Interface ***)*cast(void**)p2;
Object o2 = cast(Object)(*cast(void**)p2 - pi.offset);
int c = 0;
// Regard null references as always being "less than"
if (o1 != o2)
{
if (o1)
{
if (!o2)
c = 1;
else
c = o1.opCmp(o2);
}
else
c = -1;
}
return c;
}
override @property size_t tsize() nothrow pure const
{
return Object.sizeof;
}
override const(void)[] initializer() const @trusted
{
return (cast(void *)null)[0 .. Object.sizeof];
}
override @property uint flags() nothrow pure const { return 1; }
TypeInfo_Class info;
}
class TypeInfo_Struct : TypeInfo
{
override string toString() const { return name; }
override bool opEquals(Object o)
{
if (this is o)
return true;
auto s = cast(const TypeInfo_Struct)o;
return s && this.name == s.name &&
this.initializer().length == s.initializer().length;
}
override size_t getHash(in void* p) @trusted pure nothrow const
{
assert(p);
if (xtoHash)
{
return (*xtoHash)(p);
}
else
{
import core.internal.traits : externDFunc;
alias hashOf = externDFunc!("rt.util.hash.hashOf",
size_t function(const(void)[], size_t) @trusted pure nothrow @nogc);
return hashOf(p[0 .. initializer().length], 0);
}
}
override bool equals(in void* p1, in void* p2) @trusted pure nothrow const
{
import core.stdc.string : memcmp;
if (!p1 || !p2)
return false;
else if (xopEquals)
return (*xopEquals)(p1, p2);
else if (p1 == p2)
return true;
else
// BUG: relies on the GC not moving objects
return memcmp(p1, p2, initializer().length) == 0;
}
override int compare(in void* p1, in void* p2) @trusted pure nothrow const
{
import core.stdc.string : memcmp;
// Regard null references as always being "less than"
if (p1 != p2)
{
if (p1)
{
if (!p2)
return true;
else if (xopCmp)
return (*xopCmp)(p2, p1);
else
// BUG: relies on the GC not moving objects
return memcmp(p1, p2, initializer().length);
}
else
return -1;
}
return 0;
}
override @property size_t tsize() nothrow pure const
{
return initializer().length;
}
override const(void)[] initializer() nothrow pure const @safe
{
return m_init;
}
override @property uint flags() nothrow pure const { return m_flags; }
override @property size_t talign() nothrow pure const { return m_align; }
final override void destroy(void* p) const
{
if (xdtor)
{
if (m_flags & StructFlags.isDynamicType)
(*xdtorti)(p, this);
else
(*xdtor)(p);
}
}
override void postblit(void* p) const
{
if (xpostblit)
(*xpostblit)(p);
}
string name;
void[] m_init; // initializer; m_init.ptr == null if 0 initialize
@safe pure nothrow
{
size_t function(in void*) xtoHash;
bool function(in void*, in void*) xopEquals;
int function(in void*, in void*) xopCmp;
string function(in void*) xtoString;
enum StructFlags : uint
{
hasPointers = 0x1,
isDynamicType = 0x2, // built at runtime, needs type info in xdtor
}
StructFlags m_flags;
}
union
{
void function(void*) xdtor;
void function(void*, const TypeInfo_Struct ti) xdtorti;
}
void function(void*) xpostblit;
uint m_align;
override @property immutable(void)* rtInfo() const { return m_RTInfo; }
version (X86_64)
{
override int argTypes(out TypeInfo arg1, out TypeInfo arg2)
{
arg1 = m_arg1;
arg2 = m_arg2;
return 0;
}
TypeInfo m_arg1;
TypeInfo m_arg2;
}
immutable(void)* m_RTInfo; // data for precise GC
}
unittest
{
struct S
{
bool opEquals(ref const S rhs) const
{
return false;
}
}
S s;
assert(!typeid(S).equals(&s, &s));
}
class TypeInfo_Tuple : TypeInfo
{
TypeInfo[] elements;
override string toString() const
{
string s = "(";
foreach (i, element; elements)
{
if (i)
s ~= ',';
s ~= element.toString();
}
s ~= ")";
return s;
}
override bool opEquals(Object o)
{
if (this is o)
return true;
auto t = cast(const TypeInfo_Tuple)o;
if (t && elements.length == t.elements.length)
{
for (size_t i = 0; i < elements.length; i++)
{
if (elements[i] != t.elements[i])
return false;
}
return true;
}
return false;
}
override size_t getHash(in void* p) const
{
assert(0);
}
override bool equals(in void* p1, in void* p2) const
{
assert(0);
}
override int compare(in void* p1, in void* p2) const
{
assert(0);
}
override @property size_t tsize() nothrow pure const
{
assert(0);
}
override const(void)[] initializer() const @trusted
{
assert(0);
}
override void swap(void* p1, void* p2) const
{
assert(0);
}
override void destroy(void* p) const
{
assert(0);
}
override void postblit(void* p) const
{
assert(0);
}
override @property size_t talign() nothrow pure const
{
assert(0);
}
version (X86_64) override int argTypes(out TypeInfo arg1, out TypeInfo arg2)
{
assert(0);
}
}
class TypeInfo_Const : TypeInfo
{
override string toString() const
{
return cast(string) ("const(" ~ base.toString() ~ ")");
}
//override bool opEquals(Object o) { return base.opEquals(o); }
override bool opEquals(Object o)
{
if (this is o)
return true;
if (typeid(this) != typeid(o))
return false;
auto t = cast(TypeInfo_Const)o;
return base.opEquals(t.base);
}
override size_t getHash(in void *p) const { return base.getHash(p); }
override bool equals(in void *p1, in void *p2) const { return base.equals(p1, p2); }
override int compare(in void *p1, in void *p2) const { return base.compare(p1, p2); }
override @property size_t tsize() nothrow pure const { return base.tsize; }
override void swap(void *p1, void *p2) const { return base.swap(p1, p2); }
override @property inout(TypeInfo) next() nothrow pure inout { return base.next; }
override @property uint flags() nothrow pure const { return base.flags; }
override const(void)[] initializer() nothrow pure const
{
return base.initializer();
}
override @property size_t talign() nothrow pure const { return base.talign; }
version (X86_64) override int argTypes(out TypeInfo arg1, out TypeInfo arg2)
{
return base.argTypes(arg1, arg2);
}
TypeInfo base;
}
class TypeInfo_Invariant : TypeInfo_Const
{
override string toString() const
{
return cast(string) ("immutable(" ~ base.toString() ~ ")");
}
}
class TypeInfo_Shared : TypeInfo_Const
{
override string toString() const
{
return cast(string) ("shared(" ~ base.toString() ~ ")");
}
}
class TypeInfo_Inout : TypeInfo_Const
{
override string toString() const
{
return cast(string) ("inout(" ~ base.toString() ~ ")");
}
}
///////////////////////////////////////////////////////////////////////////////
// ModuleInfo
///////////////////////////////////////////////////////////////////////////////
enum
{
MIctorstart = 0x1, // we've started constructing it
MIctordone = 0x2, // finished construction
MIstandalone = 0x4, // module ctor does not depend on other module
// ctors being done first
MItlsctor = 8,
MItlsdtor = 0x10,
MIctor = 0x20,
MIdtor = 0x40,
MIxgetMembers = 0x80,
MIictor = 0x100,
MIunitTest = 0x200,
MIimportedModules = 0x400,
MIlocalClasses = 0x800,
MIname = 0x1000,
}
struct ModuleInfo
{
uint _flags;
uint _index; // index into _moduleinfo_array[]
version (all)
{
deprecated("ModuleInfo cannot be copy-assigned because it is a variable-sized struct.")
void opAssign(in ModuleInfo m) { _flags = m._flags; _index = m._index; }
}
else
{
@disable this();
@disable this(this) const;
}
const:
private void* addrOf(int flag) nothrow pure @nogc
in
{
assert(flag >= MItlsctor && flag <= MIname);
assert(!(flag & (flag - 1)) && !(flag & ~(flag - 1) << 1));
}
body
{
import core.stdc.string : strlen;
void* p = cast(void*)&this + ModuleInfo.sizeof;
if (flags & MItlsctor)
{
if (flag == MItlsctor) return p;
p += typeof(tlsctor).sizeof;
}
if (flags & MItlsdtor)
{
if (flag == MItlsdtor) return p;
p += typeof(tlsdtor).sizeof;
}
if (flags & MIctor)
{
if (flag == MIctor) return p;
p += typeof(ctor).sizeof;
}
if (flags & MIdtor)
{
if (flag == MIdtor) return p;
p += typeof(dtor).sizeof;
}
if (flags & MIxgetMembers)
{
if (flag == MIxgetMembers) return p;
p += typeof(xgetMembers).sizeof;
}
if (flags & MIictor)
{
if (flag == MIictor) return p;
p += typeof(ictor).sizeof;
}
if (flags & MIunitTest)
{
if (flag == MIunitTest) return p;
p += typeof(unitTest).sizeof;
}
if (flags & MIimportedModules)
{
if (flag == MIimportedModules) return p;
p += size_t.sizeof + *cast(size_t*)p * typeof(importedModules[0]).sizeof;
}
if (flags & MIlocalClasses)
{
if (flag == MIlocalClasses) return p;
p += size_t.sizeof + *cast(size_t*)p * typeof(localClasses[0]).sizeof;
}
if (true || flags & MIname) // always available for now
{
if (flag == MIname) return p;
p += strlen(cast(immutable char*)p);
}
assert(0);
}
@property uint index() nothrow pure @nogc { return _index; }
@property uint flags() nothrow pure @nogc { return _flags; }
@property void function() tlsctor() nothrow pure @nogc
{
return flags & MItlsctor ? *cast(typeof(return)*)addrOf(MItlsctor) : null;
}
@property void function() tlsdtor() nothrow pure @nogc
{
return flags & MItlsdtor ? *cast(typeof(return)*)addrOf(MItlsdtor) : null;
}
@property void* xgetMembers() nothrow pure @nogc
{
return flags & MIxgetMembers ? *cast(typeof(return)*)addrOf(MIxgetMembers) : null;
}
@property void function() ctor() nothrow pure @nogc
{
return flags & MIctor ? *cast(typeof(return)*)addrOf(MIctor) : null;
}
@property void function() dtor() nothrow pure @nogc
{
return flags & MIdtor ? *cast(typeof(return)*)addrOf(MIdtor) : null;
}
@property void function() ictor() nothrow pure @nogc
{
return flags & MIictor ? *cast(typeof(return)*)addrOf(MIictor) : null;
}
@property void function() unitTest() nothrow pure @nogc
{
return flags & MIunitTest ? *cast(typeof(return)*)addrOf(MIunitTest) : null;
}
@property immutable(ModuleInfo*)[] importedModules() nothrow pure @nogc
{
if (flags & MIimportedModules)
{
auto p = cast(size_t*)addrOf(MIimportedModules);
return (cast(immutable(ModuleInfo*)*)(p + 1))[0 .. *p];
}
return null;
}
@property TypeInfo_Class[] localClasses() nothrow pure @nogc
{
if (flags & MIlocalClasses)
{
auto p = cast(size_t*)addrOf(MIlocalClasses);
return (cast(TypeInfo_Class*)(p + 1))[0 .. *p];
}
return null;
}
@property string name() nothrow pure @nogc
{
if (true || flags & MIname) // always available for now
{
import core.stdc.string : strlen;
auto p = cast(immutable char*)addrOf(MIname);
return p[0 .. strlen(p)];
}
// return null;
}
static int opApply(scope int delegate(ModuleInfo*) dg)
{
import core.internal.traits : externDFunc;
alias moduleinfos_apply = externDFunc!("rt.minfo.moduleinfos_apply",
int function(scope int delegate(immutable(ModuleInfo*))));
// Bugzilla 13084 - enforcing immutable ModuleInfo would break client code
return moduleinfos_apply(
(immutable(ModuleInfo*)m) => dg(cast(ModuleInfo*)m));
}
}
unittest
{
ModuleInfo* m1;
foreach (m; ModuleInfo)
{
m1 = m;
}
}
///////////////////////////////////////////////////////////////////////////////
// Throwable
///////////////////////////////////////////////////////////////////////////////
/**
* The base class of all thrown objects.
*
* All thrown objects must inherit from Throwable. Class $(D Exception), which
* derives from this class, represents the category of thrown objects that are
* safe to catch and handle. In principle, one should not catch Throwable
* objects that are not derived from $(D Exception), as they represent
* unrecoverable runtime errors. Certain runtime guarantees may fail to hold
* when these errors are thrown, making it unsafe to continue execution after
* catching them.
*/
class Throwable : Object
{
interface TraceInfo
{
int opApply(scope int delegate(ref const(char[]))) const;
int opApply(scope int delegate(ref size_t, ref const(char[]))) const;
string toString() const;
}
string msg; /// A message describing the error.
/**
* The _file name and line number of the D source code corresponding with
* where the error was thrown from.
*/
string file;
size_t line; /// ditto
/**
* The stack trace of where the error happened. This is an opaque object
* that can either be converted to $(D string), or iterated over with $(D
* foreach) to extract the items in the stack trace (as strings).
*/
TraceInfo info;
/**
* A reference to the _next error in the list. This is used when a new
* $(D Throwable) is thrown from inside a $(D catch) block. The originally
* caught $(D Exception) will be chained to the new $(D Throwable) via this
* field.
*/
Throwable next;
@nogc @safe pure nothrow this(string msg, Throwable next = null)
{
this.msg = msg;
this.next = next;
//this.info = _d_traceContext();
}
@nogc @safe pure nothrow this(string msg, string file, size_t line, Throwable next = null)
{
this(msg, next);
this.file = file;
this.line = line;
//this.info = _d_traceContext();
}
/**
* Overrides $(D Object.toString) and returns the error message.
* Internally this forwards to the $(D toString) overload that
* takes a $(D_PARAM sink) delegate.
*/
override string toString()
{
string s;
toString((buf) { s ~= buf; });
return s;
}
/**
* The Throwable hierarchy uses a toString overload that takes a
* $(D_PARAM _sink) delegate to avoid GC allocations, which cannot be
* performed in certain error situations. Override this $(D
* toString) method to customize the error message.
*/
void toString(scope void delegate(in char[]) sink) const
{
import core.internal.traits : externDFunc;
alias sizeToTempString = externDFunc!("core.internal.string.unsignedToTempString",
char[] function(ulong, return char[], uint) @safe pure nothrow @nogc);
char[20] tmpBuff = void;
sink(typeid(this).name);
sink("@"); sink(file);
sink("("); sink(sizeToTempString(line, tmpBuff, 10)); sink(")");
if (msg.length)
{
sink(": "); sink(msg);
}
if (info)
{
try
{
sink("\n----------------");
foreach (t; info)
{
sink("\n"); sink(t);
}
}
catch (Throwable)
{
// ignore more errors
}
}
}
}
/**
* The base class of all errors that are safe to catch and handle.
*
* In principle, only thrown objects derived from this class are safe to catch
* inside a $(D catch) block. Thrown objects not derived from Exception
* represent runtime errors that should not be caught, as certain runtime
* guarantees may not hold, making it unsafe to continue program execution.
*/
class Exception : Throwable
{
/**
* Creates a new instance of Exception. The next parameter is used
* internally and should always be $(D null) when passed by user code.
* This constructor does not automatically throw the newly-created
* Exception; the $(D throw) statement should be used for that purpose.
*/
@nogc @safe pure nothrow this(string msg, string file = __FILE__, size_t line = __LINE__, Throwable next = null)
{
super(msg, file, line, next);
}
@nogc @safe pure nothrow this(string msg, Throwable next, string file = __FILE__, size_t line = __LINE__)
{
super(msg, file, line, next);
}
}
unittest
{
{
auto e = new Exception("msg");
assert(e.file == __FILE__);
assert(e.line == __LINE__ - 2);
assert(e.next is null);
assert(e.msg == "msg");
}
{
auto e = new Exception("msg", new Exception("It's an Exception!"), "hello", 42);
assert(e.file == "hello");
assert(e.line == 42);
assert(e.next !is null);
assert(e.msg == "msg");
}
{
auto e = new Exception("msg", "hello", 42, new Exception("It's an Exception!"));
assert(e.file == "hello");
assert(e.line == 42);
assert(e.next !is null);
assert(e.msg == "msg");
}
}
/**
* The base class of all unrecoverable runtime errors.
*
* This represents the category of $(D Throwable) objects that are $(B not)
* safe to catch and handle. In principle, one should not catch Error
* objects, as they represent unrecoverable runtime errors.
* Certain runtime guarantees may fail to hold when these errors are
* thrown, making it unsafe to continue execution after catching them.
*/
class Error : Throwable
{
/**
* Creates a new instance of Error. The next parameter is used
* internally and should always be $(D null) when passed by user code.
* This constructor does not automatically throw the newly-created
* Error; the $(D throw) statement should be used for that purpose.
*/
@nogc @safe pure nothrow this(string msg, Throwable next = null)
{
super(msg, next);
bypassedException = null;
}
@nogc @safe pure nothrow this(string msg, string file, size_t line, Throwable next = null)
{
super(msg, file, line, next);
bypassedException = null;
}
/** The first $(D Exception) which was bypassed when this Error was thrown,
or $(D null) if no $(D Exception)s were pending. */
Throwable bypassedException;
}
unittest
{
{
auto e = new Error("msg");
assert(e.file is null);
assert(e.line == 0);
assert(e.next is null);
assert(e.msg == "msg");
assert(e.bypassedException is null);
}
{
auto e = new Error("msg", new Exception("It's an Exception!"));
assert(e.file is null);
assert(e.line == 0);
assert(e.next !is null);
assert(e.msg == "msg");
assert(e.bypassedException is null);
}
{
auto e = new Error("msg", "hello", 42, new Exception("It's an Exception!"));
assert(e.file == "hello");
assert(e.line == 42);
assert(e.next !is null);
assert(e.msg == "msg");
assert(e.bypassedException is null);
}
}
/* Used in Exception Handling LSDA tables to 'wrap' C++ type info
* so it can be distinguished from D TypeInfo
*/
class __cpp_type_info_ptr
{
void* ptr; // opaque pointer to C++ RTTI type info
}
extern (C)
{
// from druntime/src/rt/aaA.d
// size_t _aaLen(in void* p) pure nothrow @nogc;
private void* _aaGetY(void** paa, const TypeInfo_AssociativeArray ti, in size_t valuesize, in void* pkey) pure nothrow;
// inout(void)* _aaGetRvalueX(inout void* p, in TypeInfo keyti, in size_t valuesize, in void* pkey);
inout(void)[] _aaValues(inout void* p, in size_t keysize, in size_t valuesize, const TypeInfo tiValArray) pure nothrow;
inout(void)[] _aaKeys(inout void* p, in size_t keysize, const TypeInfo tiKeyArray) pure nothrow;
void* _aaRehash(void** pp, in TypeInfo keyti) pure nothrow;
void _aaClear(void* p) pure nothrow;
// alias _dg_t = extern(D) int delegate(void*);
// int _aaApply(void* aa, size_t keysize, _dg_t dg);
// alias _dg2_t = extern(D) int delegate(void*, void*);
// int _aaApply2(void* aa, size_t keysize, _dg2_t dg);
private struct AARange { void* impl; size_t idx; }
AARange _aaRange(void* aa) pure nothrow @nogc;
bool _aaRangeEmpty(AARange r) pure nothrow @nogc;
void* _aaRangeFrontKey(AARange r) pure nothrow @nogc;
void* _aaRangeFrontValue(AARange r) pure nothrow @nogc;
void _aaRangePopFront(ref AARange r) pure nothrow @nogc;
int _aaEqual(in TypeInfo tiRaw, in void* e1, in void* e2);
hash_t _aaGetHash(in void* aa, in TypeInfo tiRaw) nothrow;
/*
_d_assocarrayliteralTX marked as pure, because aaLiteral can be called from pure code.
This is a typesystem hole, however this is existing hole.
Early compiler didn't check purity of toHash or postblit functions, if key is a UDT thus
copiler allowed to create AA literal with keys, which have impure unsafe toHash methods.
*/
void* _d_assocarrayliteralTX(const TypeInfo_AssociativeArray ti, void[] keys, void[] values) pure;
}
void* aaLiteral(Key, Value)(Key[] keys, Value[] values) @trusted pure
{
return _d_assocarrayliteralTX(typeid(Value[Key]), *cast(void[]*)&keys, *cast(void[]*)&values);
}
alias AssociativeArray(Key, Value) = Value[Key];
void clear(T : Value[Key], Value, Key)(T aa)
{
_aaClear(*cast(void **) &aa);
}
void clear(T : Value[Key], Value, Key)(T* aa)
{
_aaClear(*cast(void **) aa);
}
T rehash(T : Value[Key], Value, Key)(T aa)
{
_aaRehash(cast(void**)&aa, typeid(Value[Key]));
return aa;
}
T rehash(T : Value[Key], Value, Key)(T* aa)
{
_aaRehash(cast(void**)aa, typeid(Value[Key]));
return *aa;
}
T rehash(T : shared Value[Key], Value, Key)(T aa)
{
_aaRehash(cast(void**)&aa, typeid(Value[Key]));
return aa;
}
T rehash(T : shared Value[Key], Value, Key)(T* aa)
{
_aaRehash(cast(void**)aa, typeid(Value[Key]));
return *aa;
}
V[K] dup(T : V[K], K, V)(T aa)
{
//pragma(msg, "K = ", K, ", V = ", V);
// Bug10720 - check whether V is copyable
static assert(is(typeof({ V v = aa[K.init]; })),
"cannot call " ~ T.stringof ~ ".dup because " ~ V.stringof ~ " is not copyable");
V[K] result;
//foreach (k, ref v; aa)
// result[k] = v; // Bug13701 - won't work if V is not mutable
ref V duplicateElem(ref K k, ref const V v) @trusted pure nothrow
{
import core.stdc.string : memcpy;
void* pv = _aaGetY(cast(void**)&result, typeid(V[K]), V.sizeof, &k);
memcpy(pv, &v, V.sizeof);
return *cast(V*)pv;
}
if (auto postblit = _getPostblit!V())
{
foreach (k, ref v; aa)
postblit(duplicateElem(k, v));
}
else
{
foreach (k, ref v; aa)
duplicateElem(k, v);
}
return result;
}
V[K] dup(T : V[K], K, V)(T* aa)
{
return (*aa).dup;
}
auto byKey(T : V[K], K, V)(T aa) pure nothrow @nogc
{
import core.internal.traits : substInout;
static struct Result
{
AARange r;
pure nothrow @nogc:
@property bool empty() { return _aaRangeEmpty(r); }
@property ref front() { return *cast(substInout!K*)_aaRangeFrontKey(r); }
void popFront() { _aaRangePopFront(r); }
@property Result save() { return this; }
}
return Result(_aaRange(cast(void*)aa));
}
auto byKey(T : V[K], K, V)(T* aa) pure nothrow @nogc
{
return (*aa).byKey();
}
auto byValue(T : V[K], K, V)(T aa) pure nothrow @nogc
{
import core.internal.traits : substInout;
static struct Result
{
AARange r;
pure nothrow @nogc:
@property bool empty() { return _aaRangeEmpty(r); }
@property ref front() { return *cast(substInout!V*)_aaRangeFrontValue(r); }
void popFront() { _aaRangePopFront(r); }
@property Result save() { return this; }
}
return Result(_aaRange(cast(void*)aa));
}
auto byValue(T : V[K], K, V)(T* aa) pure nothrow @nogc
{
return (*aa).byValue();
}
auto byKeyValue(T : V[K], K, V)(T aa) pure nothrow @nogc
{
import core.internal.traits : substInout;
static struct Result
{
AARange r;
pure nothrow @nogc:
@property bool empty() { return _aaRangeEmpty(r); }
@property auto front() @trusted
{
static struct Pair
{
// We save the pointers here so that the Pair we return
// won't mutate when Result.popFront is called afterwards.
private void* keyp;
private void* valp;
@property ref key() inout { return *cast(substInout!K*)keyp; }
@property ref value() inout { return *cast(substInout!V*)valp; }
}
return Pair(_aaRangeFrontKey(r),
_aaRangeFrontValue(r));
}
void popFront() { _aaRangePopFront(r); }
@property Result save() { return this; }
}
return Result(_aaRange(cast(void*)aa));
}
auto byKeyValue(T : V[K], K, V)(T* aa) pure nothrow @nogc
{
return (*aa).byKeyValue();
}
Key[] keys(T : Value[Key], Value, Key)(T aa) @property
{
auto a = cast(void[])_aaKeys(cast(inout(void)*)aa, Key.sizeof, typeid(Key[]));
auto res = *cast(Key[]*)&a;
_doPostblit(res);
return res;
}
Key[] keys(T : Value[Key], Value, Key)(T *aa) @property
{
return (*aa).keys;
}
Value[] values(T : Value[Key], Value, Key)(T aa) @property
{
auto a = cast(void[])_aaValues(cast(inout(void)*)aa, Key.sizeof, Value.sizeof, typeid(Value[]));
auto res = *cast(Value[]*)&a;
_doPostblit(res);
return res;
}
Value[] values(T : Value[Key], Value, Key)(T *aa) @property
{
return (*aa).values;
}
unittest
{
static struct T
{
static size_t count;
this(this) { ++count; }
}
T[int] aa;
T t;
aa[0] = t;
aa[1] = t;
assert(T.count == 2);
auto vals = aa.values;
assert(vals.length == 2);
assert(T.count == 4);
T.count = 0;
int[T] aa2;
aa2[t] = 0;
assert(T.count == 1);
aa2[t] = 1;
assert(T.count == 1);
auto keys = aa2.keys;
assert(keys.length == 1);
assert(T.count == 2);
}
inout(V) get(K, V)(inout(V[K]) aa, K key, lazy inout(V) defaultValue)
{
auto p = key in aa;
return p ? *p : defaultValue;
}
inout(V) get(K, V)(inout(V[K])* aa, K key, lazy inout(V) defaultValue)
{
return (*aa).get(key, defaultValue);
}
pure nothrow unittest
{
int[int] a;
foreach (i; a.byKey)
{
assert(false);
}
foreach (i; a.byValue)
{
assert(false);
}
}
pure /*nothrow */ unittest
{
auto a = [ 1:"one", 2:"two", 3:"three" ];
auto b = a.dup;
assert(b == [ 1:"one", 2:"two", 3:"three" ]);
int[] c;
foreach (k; a.byKey)
{
c ~= k;
}
assert(c.length == 3);
assert(c[0] == 1 || c[1] == 1 || c[2] == 1);
assert(c[0] == 2 || c[1] == 2 || c[2] == 2);
assert(c[0] == 3 || c[1] == 3 || c[2] == 3);
}
pure nothrow unittest
{
// test for bug 5925
const a = [4:0];
const b = [4:0];
assert(a == b);
}
pure nothrow unittest
{
// test for bug 9052
static struct Json {
Json[string] aa;
void opAssign(Json) {}
size_t length() const { return aa.length; }
// This length() instantiates AssociativeArray!(string, const(Json)) to call AA.length(), and
// inside ref Slot opAssign(Slot p); (which is automatically generated by compiler in Slot),
// this.value = p.value would actually fail, because both side types of the assignment
// are const(Json).
}
}
pure nothrow unittest
{
// test for bug 8583: ensure Slot and aaA are on the same page wrt value alignment
string[byte] aa0 = [0: "zero"];
string[uint[3]] aa1 = [[1,2,3]: "onetwothree"];
ushort[uint[3]] aa2 = [[9,8,7]: 987];
ushort[uint[4]] aa3 = [[1,2,3,4]: 1234];
string[uint[5]] aa4 = [[1,2,3,4,5]: "onetwothreefourfive"];
assert(aa0.byValue.front == "zero");
assert(aa1.byValue.front == "onetwothree");
assert(aa2.byValue.front == 987);
assert(aa3.byValue.front == 1234);
assert(aa4.byValue.front == "onetwothreefourfive");
}
pure nothrow unittest
{
// test for bug 10720
static struct NC
{
@disable this(this) { }
}
NC[string] aa;
static assert(!is(aa.nonExistingField));
}
pure nothrow unittest
{
// bug 5842
string[string] test = null;
test["test1"] = "test1";
test.remove("test1");
test.rehash;
test["test3"] = "test3"; // causes divide by zero if rehash broke the AA
}
pure nothrow unittest
{
string[] keys = ["a", "b", "c", "d", "e", "f"];
// Test forward range capabilities of byKey
{
int[string] aa;
foreach (key; keys)
aa[key] = 0;
auto keyRange = aa.byKey();
auto savedKeyRange = keyRange.save;
// Consume key range once
size_t keyCount = 0;
while (!keyRange.empty)
{
aa[keyRange.front]++;
keyCount++;
keyRange.popFront();
}
foreach (key; keys)
{
assert(aa[key] == 1);
}
assert(keyCount == keys.length);
// Verify it's possible to iterate the range the second time
keyCount = 0;
while (!savedKeyRange.empty)
{
aa[savedKeyRange.front]++;
keyCount++;
savedKeyRange.popFront();
}
foreach (key; keys)
{
assert(aa[key] == 2);
}
assert(keyCount == keys.length);
}
// Test forward range capabilities of byValue
{
size_t[string] aa;
foreach (i; 0 .. keys.length)
{
aa[keys[i]] = i;
}
auto valRange = aa.byValue();
auto savedValRange = valRange.save;
// Consume value range once
int[] hasSeen;
hasSeen.length = keys.length;
while (!valRange.empty)
{
assert(hasSeen[valRange.front] == 0);
hasSeen[valRange.front]++;
valRange.popFront();
}
foreach (sawValue; hasSeen) { assert(sawValue == 1); }
// Verify it's possible to iterate the range the second time
hasSeen = null;
hasSeen.length = keys.length;
while (!savedValRange.empty)
{
assert(!hasSeen[savedValRange.front]);
hasSeen[savedValRange.front] = true;
savedValRange.popFront();
}
foreach (sawValue; hasSeen) { assert(sawValue); }
}
}
pure nothrow unittest
{
// expanded test for 5842: increase AA size past the point where the AA
// stops using binit, in order to test another code path in rehash.
int[int] aa;
foreach (int i; 0 .. 32)
aa[i] = i;
foreach (int i; 0 .. 32)
aa.remove(i);
aa.rehash;
aa[1] = 1;
}
pure nothrow unittest
{
// bug 13078
shared string[][string] map;
map.rehash;
}
pure nothrow unittest
{
// bug 11761: test forward range functionality
auto aa = ["a": 1];
void testFwdRange(R, T)(R fwdRange, T testValue)
{
assert(!fwdRange.empty);
assert(fwdRange.front == testValue);
static assert(is(typeof(fwdRange.save) == typeof(fwdRange)));
auto saved = fwdRange.save;
fwdRange.popFront();
assert(fwdRange.empty);
assert(!saved.empty);
assert(saved.front == testValue);
saved.popFront();
assert(saved.empty);
}
testFwdRange(aa.byKey, "a");
testFwdRange(aa.byValue, 1);
//testFwdRange(aa.byPair, tuple("a", 1));
}
unittest
{
// Issue 9119
int[string] aa;
assert(aa.byKeyValue.empty);
aa["a"] = 1;
aa["b"] = 2;
aa["c"] = 3;
auto pairs = aa.byKeyValue;
auto savedPairs = pairs.save;
size_t count = 0;
while (!pairs.empty)
{
assert(pairs.front.key in aa);
assert(pairs.front.value == aa[pairs.front.key]);
count++;
pairs.popFront();
}
assert(count == aa.length);
// Verify that saved range can iterate over the AA again
count = 0;
while (!savedPairs.empty)
{
assert(savedPairs.front.key in aa);
assert(savedPairs.front.value == aa[savedPairs.front.key]);
count++;
savedPairs.popFront();
}
assert(count == aa.length);
}
unittest
{
// Verify iteration with const.
auto aa = [1:2, 3:4];
foreach (const t; aa.byKeyValue)
{
auto k = t.key;
auto v = t.value;
}
}
unittest
{
// test for bug 14626
static struct S
{
string[string] aa;
inout(string) key() inout { return aa.byKey().front; }
inout(string) val() inout { return aa.byValue().front; }
auto keyval() inout { return aa.byKeyValue().front; }
}
S s = S(["a":"b"]);
assert(s.key() == "a");
assert(s.val() == "b");
assert(s.keyval().key == "a");
assert(s.keyval().value == "b");
void testInoutKeyVal(inout(string) key)
{
inout(string)[typeof(key)] aa;
foreach (i; aa.byKey()) {}
foreach (i; aa.byValue()) {}
foreach (i; aa.byKeyValue()) {}
}
const int[int] caa;
static assert(is(typeof(caa.byValue().front) == const int));
}
private void _destructRecurse(S)(ref S s)
if (is(S == struct))
{
static if (__traits(hasMember, S, "__xdtor") &&
// Bugzilla 14746: Check that it's the exact member of S.
__traits(isSame, S, __traits(parent, s.__xdtor)))
s.__xdtor();
}
private void _destructRecurse(E, size_t n)(ref E[n] arr)
{
import core.internal.traits : hasElaborateDestructor;
static if (hasElaborateDestructor!E)
{
foreach_reverse (ref elem; arr)
_destructRecurse(elem);
}
}
// Public and explicitly undocumented
void _postblitRecurse(S)(ref S s)
if (is(S == struct))
{
static if (__traits(hasMember, S, "__xpostblit") &&
// Bugzilla 14746: Check that it's the exact member of S.
__traits(isSame, S, __traits(parent, s.__xpostblit)))
s.__xpostblit();
}
// Ditto
void _postblitRecurse(E, size_t n)(ref E[n] arr)
{
import core.internal.traits : hasElaborateCopyConstructor;
static if (hasElaborateCopyConstructor!E)
{
size_t i;
scope(failure)
{
for (; i != 0; --i)
{
_destructRecurse(arr[i - 1]); // What to do if this throws?
}
}
for (i = 0; i < arr.length; ++i)
_postblitRecurse(arr[i]);
}
}
// Test destruction/postblit order
@safe nothrow pure unittest
{
string[] order;
struct InnerTop
{
~this() @safe nothrow pure
{
order ~= "destroy inner top";
}
this(this) @safe nothrow pure
{
order ~= "copy inner top";
}
}
struct InnerMiddle {}
version(none) // https://issues.dlang.org/show_bug.cgi?id=14242
struct InnerElement
{
static char counter = '1';
~this() @safe nothrow pure
{
order ~= "destroy inner element #" ~ counter++;
}
this(this) @safe nothrow pure
{
order ~= "copy inner element #" ~ counter++;
}
}
struct InnerBottom
{
~this() @safe nothrow pure
{
order ~= "destroy inner bottom";
}
this(this) @safe nothrow pure
{
order ~= "copy inner bottom";
}
}
struct S
{
char[] s;
InnerTop top;
InnerMiddle middle;
version(none) InnerElement[3] array; // https://issues.dlang.org/show_bug.cgi?id=14242
int a;
InnerBottom bottom;
~this() @safe nothrow pure { order ~= "destroy outer"; }
this(this) @safe nothrow pure { order ~= "copy outer"; }
}
string[] destructRecurseOrder;
{
S s;
_destructRecurse(s);
destructRecurseOrder = order;
order = null;
}
assert(order.length);
assert(destructRecurseOrder == order);
order = null;
S s;
_postblitRecurse(s);
assert(order.length);
auto postblitRecurseOrder = order;
order = null;
S s2 = s;
assert(order.length);
assert(postblitRecurseOrder == order);
}
// Test static struct
nothrow @safe @nogc unittest
{
static int i = 0;
static struct S { ~this() nothrow @safe @nogc { i = 42; } }
S s;
_destructRecurse(s);
assert(i == 42);
}
unittest
{
// Bugzilla 14746
static struct HasDtor
{
~this() { assert(0); }
}
static struct Owner
{
HasDtor* ptr;
alias ptr this;
}
Owner o;
assert(o.ptr is null);
destroy(o); // must not reach in HasDtor.__dtor()
}
unittest
{
// Bugzilla 14746
static struct HasPostblit
{
this(this) { assert(0); }
}
static struct Owner
{
HasPostblit* ptr;
alias ptr this;
}
Owner o;
assert(o.ptr is null);
_postblitRecurse(o); // must not reach in HasPostblit.__postblit()
}
// Test handling of fixed-length arrays
// Separate from first test because of https://issues.dlang.org/show_bug.cgi?id=14242
unittest
{
string[] order;
struct S
{
char id;
this(this)
{
order ~= "copy #" ~ id;
}
~this()
{
order ~= "destroy #" ~ id;
}
}
string[] destructRecurseOrder;
{
S[3] arr = [S('1'), S('2'), S('3')];
_destructRecurse(arr);
destructRecurseOrder = order;
order = null;
}
assert(order.length);
assert(destructRecurseOrder == order);
order = null;
S[3] arr = [S('1'), S('2'), S('3')];
_postblitRecurse(arr);
assert(order.length);
auto postblitRecurseOrder = order;
order = null;
auto arrCopy = arr;
assert(order.length);
assert(postblitRecurseOrder == order);
}
// Test handling of failed postblit
// Not nothrow or @safe because of https://issues.dlang.org/show_bug.cgi?id=14242
/+ nothrow @safe +/ unittest
{
static class FailedPostblitException : Exception { this() nothrow @safe { super(null); } }
static string[] order;
static struct Inner
{
char id;
@safe:
this(this)
{
order ~= "copy inner #" ~ id;
if(id == '2')
throw new FailedPostblitException();
}
~this() nothrow
{
order ~= "destroy inner #" ~ id;
}
}
static struct Outer
{
Inner inner1, inner2, inner3;
nothrow @safe:
this(char first, char second, char third)
{
inner1 = Inner(first);
inner2 = Inner(second);
inner3 = Inner(third);
}
this(this)
{
order ~= "copy outer";
}
~this()
{
order ~= "destroy outer";
}
}
auto outer = Outer('1', '2', '3');
try _postblitRecurse(outer);
catch(FailedPostblitException) {}
catch(Exception) assert(false);
auto postblitRecurseOrder = order;
order = null;
try auto copy = outer;
catch(FailedPostblitException) {}
catch(Exception) assert(false);
assert(postblitRecurseOrder == order);
order = null;
Outer[3] arr = [Outer('1', '1', '1'), Outer('1', '2', '3'), Outer('3', '3', '3')];
try _postblitRecurse(arr);
catch(FailedPostblitException) {}
catch(Exception) assert(false);
postblitRecurseOrder = order;
order = null;
try auto arrCopy = arr;
catch(FailedPostblitException) {}
catch(Exception) assert(false);
assert(postblitRecurseOrder == order);
}
/++
Destroys the given object and puts it in an invalid state. It's used to
destroy an object so that any cleanup which its destructor or finalizer
does is done and so that it no longer references any other objects. It does
$(I not) initiate a GC cycle or free any GC memory.
+/
void destroy(T)(T obj) if (is(T == class))
{
rt_finalize(cast(void*)obj);
}
void destroy(T)(T obj) if (is(T == interface))
{
destroy(cast(Object)obj);
}
version(unittest) unittest
{
interface I { }
{
class A: I { string s = "A"; this() {} }
auto a = new A, b = new A;
a.s = b.s = "asd";
destroy(a);
assert(a.s == "A");
I i = b;
destroy(i);
assert(b.s == "A");
}
{
static bool destroyed = false;
class B: I
{
string s = "B";
this() {}
~this()
{
destroyed = true;
}
}
auto a = new B, b = new B;
a.s = b.s = "asd";
destroy(a);
assert(destroyed);
assert(a.s == "B");
destroyed = false;
I i = b;
destroy(i);
assert(destroyed);
assert(b.s == "B");
}
// this test is invalid now that the default ctor is not run after clearing
version(none)
{
class C
{
string s;
this()
{
s = "C";
}
}
auto a = new C;
a.s = "asd";
destroy(a);
assert(a.s == "C");
}
}
void destroy(T)(ref T obj) if (is(T == struct))
{
_destructRecurse(obj);
() @trusted {
auto buf = (cast(ubyte*) &obj)[0 .. T.sizeof];
auto init = cast(ubyte[])typeid(T).initializer();
if (init.ptr is null) // null ptr means initialize to 0s
buf[] = 0;
else
buf[] = init[];
} ();
}
version(unittest) nothrow @safe @nogc unittest
{
{
struct A { string s = "A"; }
A a;
a.s = "asd";
destroy(a);
assert(a.s == "A");
}
{
static int destroyed = 0;
struct C
{
string s = "C";
~this() nothrow @safe @nogc
{
destroyed ++;
}
}
struct B
{
C c;
string s = "B";
~this() nothrow @safe @nogc
{
destroyed ++;
}
}
B a;
a.s = "asd";
a.c.s = "jkl";
destroy(a);
assert(destroyed == 2);
assert(a.s == "B");
assert(a.c.s == "C" );
}
}
void destroy(T : U[n], U, size_t n)(ref T obj) if (!is(T == struct))
{
foreach_reverse (ref e; obj[])
destroy(e);
}
version(unittest) unittest
{
int[2] a;
a[0] = 1;
a[1] = 2;
destroy(a);
assert(a == [ 0, 0 ]);
}
unittest
{
static struct vec2f {
float[2] values;
alias values this;
}
vec2f v;
destroy!vec2f(v);
}
unittest
{
// Bugzilla 15009
static string op;
static struct S
{
int x;
this(int x) { op ~= "C" ~ cast(char)('0'+x); this.x = x; }
this(this) { op ~= "P" ~ cast(char)('0'+x); }
~this() { op ~= "D" ~ cast(char)('0'+x); }
}
{
S[2] a1 = [S(1), S(2)];
op = "";
}
assert(op == "D2D1"); // built-in scope destruction
{
S[2] a1 = [S(1), S(2)];
op = "";
destroy(a1);
assert(op == "D2D1"); // consistent with built-in behavior
}
{
S[2][2] a2 = [[S(1), S(2)], [S(3), S(4)]];
op = "";
}
assert(op == "D4D3D2D1");
{
S[2][2] a2 = [[S(1), S(2)], [S(3), S(4)]];
op = "";
destroy(a2);
assert(op == "D4D3D2D1", op);
}
}
void destroy(T)(ref T obj)
if (!is(T == struct) && !is(T == interface) && !is(T == class) && !_isStaticArray!T)
{
obj = T.init;
}
template _isStaticArray(T : U[N], U, size_t N)
{
enum bool _isStaticArray = true;
}
template _isStaticArray(T)
{
enum bool _isStaticArray = false;
}
version(unittest) unittest
{
{
int a = 42;
destroy(a);
assert(a == 0);
}
{
float a = 42;
destroy(a);
assert(isnan(a));
}
}
version (unittest)
{
private bool isnan(float x)
{
return x != x;
}
}
private
{
extern (C) void _d_arrayshrinkfit(const TypeInfo ti, void[] arr) nothrow;
extern (C) size_t _d_arraysetcapacity(const TypeInfo ti, size_t newcapacity, void *arrptr) pure nothrow;
}
/**
* (Property) Get the current capacity of a slice. The capacity is the size
* that the slice can grow to before the underlying array must be
* reallocated or extended.
*
* If an append must reallocate a slice with no possibility of extension, then
* 0 is returned. This happens when the slice references a static array, or
* if another slice references elements past the end of the current slice.
*
* Note: The capacity of a slice may be impacted by operations on other slices.
*/
@property size_t capacity(T)(T[] arr) pure nothrow @trusted
{
return _d_arraysetcapacity(typeid(T[]), 0, cast(void *)&arr);
}
///
@safe unittest
{
//Static array slice: no capacity
int[4] sarray = [1, 2, 3, 4];
int[] slice = sarray[];
assert(sarray.capacity == 0);
//Appending to slice will reallocate to a new array
slice ~= 5;
assert(slice.capacity >= 5);
//Dynamic array slices
int[] a = [1, 2, 3, 4];
int[] b = a[1 .. $];
int[] c = a[1 .. $ - 1];
debug(SENTINEL) {} else // non-zero capacity very much depends on the array and GC implementation
{
assert(a.capacity != 0);
assert(a.capacity == b.capacity + 1); //both a and b share the same tail
}
assert(c.capacity == 0); //an append to c must relocate c.
}
/**
* Reserves capacity for a slice. The capacity is the size
* that the slice can grow to before the underlying array must be
* reallocated or extended.
*
* The return value is the new capacity of the array (which may be larger than
* the requested capacity).
*/
size_t reserve(T)(ref T[] arr, size_t newcapacity) pure nothrow @trusted
{
return _d_arraysetcapacity(typeid(T[]), newcapacity, cast(void *)&arr);
}
///
unittest
{
//Static array slice: no capacity. Reserve relocates.
int[4] sarray = [1, 2, 3, 4];
int[] slice = sarray[];
auto u = slice.reserve(8);
assert(u >= 8);
assert(sarray.ptr !is slice.ptr);
assert(slice.capacity == u);
//Dynamic array slices
int[] a = [1, 2, 3, 4];
a.reserve(8); //prepare a for appending 4 more items
auto p = a.ptr;
u = a.capacity;
a ~= [5, 6, 7, 8];
assert(p == a.ptr); //a should not have been reallocated
assert(u == a.capacity); //a should not have been extended
}
// Issue 6646: should be possible to use array.reserve from SafeD.
@safe unittest
{
int[] a;
a.reserve(10);
}
/**
* Assume that it is safe to append to this array. Appends made to this array
* after calling this function may append in place, even if the array was a
* slice of a larger array to begin with.
*
* Use this only when it is certain there are no elements in use beyond the
* array in the memory block. If there are, those elements will be
* overwritten by appending to this array.
*
* Calling this function, and then using references to data located after the
* given array results in undefined behavior.
*
* Returns:
* The input is returned.
*/
auto ref inout(T[]) assumeSafeAppend(T)(auto ref inout(T[]) arr) nothrow
{
_d_arrayshrinkfit(typeid(T[]), *(cast(void[]*)&arr));
return arr;
}
///
unittest
{
int[] a = [1, 2, 3, 4];
// Without assumeSafeAppend. Appending relocates.
int[] b = a [0 .. 3];
b ~= 5;
assert(a.ptr != b.ptr);
debug(SENTINEL) {} else
{
// With assumeSafeAppend. Appending overwrites.
int[] c = a [0 .. 3];
c.assumeSafeAppend() ~= 5;
assert(a.ptr == c.ptr);
}
}
unittest
{
int[] arr;
auto newcap = arr.reserve(2000);
assert(newcap >= 2000);
assert(newcap == arr.capacity);
auto ptr = arr.ptr;
foreach(i; 0..2000)
arr ~= i;
assert(ptr == arr.ptr);
arr = arr[0..1];
arr.assumeSafeAppend();
arr ~= 5;
assert(ptr == arr.ptr);
}
unittest
{
int[] arr = [1, 2, 3];
void foo(ref int[] i)
{
i ~= 5;
}
arr = arr[0 .. 2];
foo(assumeSafeAppend(arr)); //pass by ref
assert(arr[]==[1, 2, 5]);
arr = arr[0 .. 1].assumeSafeAppend(); //pass by value
}
// https://issues.dlang.org/show_bug.cgi?id=10574
unittest
{
int[] a;
immutable(int[]) b;
auto a2 = &assumeSafeAppend(a);
auto b2 = &assumeSafeAppend(b);
auto a3 = assumeSafeAppend(a[]);
auto b3 = assumeSafeAppend(b[]);
assert(is(typeof(*a2) == int[]));
assert(is(typeof(*b2) == immutable(int[])));
assert(is(typeof(a3) == int[]));
assert(is(typeof(b3) == immutable(int[])));
}
version (none)
{
// enforce() copied from Phobos std.contracts for destroy(), left out until
// we decide whether to use it.
T _enforce(T, string file = __FILE__, int line = __LINE__)
(T value, lazy const(char)[] msg = null)
{
if (!value) bailOut(file, line, msg);
return value;
}
T _enforce(T, string file = __FILE__, int line = __LINE__)
(T value, scope void delegate() dg)
{
if (!value) dg();
return value;
}
T _enforce(T)(T value, lazy Exception ex)
{
if (!value) throw ex();
return value;
}
private void _bailOut(string file, int line, in char[] msg)
{
char[21] buf;
throw new Exception(cast(string)(file ~ "(" ~ ulongToString(buf[], line) ~ "): " ~ (msg ? msg : "Enforcement failed")));
}
}
/***************************************
* Helper function used to see if two containers of different
* types have the same contents in the same sequence.
*/
bool _ArrayEq(T1, T2)(T1[] a1, T2[] a2)
{
if (a1.length != a2.length)
return false;
// This is function is used as a compiler intrinsic and explicitly written
// in a lowered flavor to use as few CTFE instructions as possible.
size_t idx = 0;
auto length = a1.length;
for(;idx < length;++idx)
{
if (a1[idx] != a2[idx])
return false;
}
return true;
}
/**
Calculates the hash value of $(D arg) with $(D seed) initial value.
Result may be non-equals with `typeid(T).getHash(&arg)`
The $(D seed) value may be used for hash chaining:
----
struct Test
{
int a;
string b;
MyObject c;
size_t toHash() const @safe pure nothrow
{
size_t hash = a.hashOf();
hash = b.hashOf(hash);
size_t h1 = c.myMegaHash();
hash = h1.hashOf(hash); //Mix two hash values
return hash;
}
}
----
*/
size_t hashOf(T)(auto ref T arg, size_t seed = 0)
{
import core.internal.hash;
return core.internal.hash.hashOf(arg, seed);
}
unittest
{
// Issue # 16654 / 16764
auto a = [1];
auto b = a.dup;
assert(hashOf(a) == hashOf(b));
}
bool _xopEquals(in void*, in void*)
{
throw new Error("TypeInfo.equals is not implemented");
}
bool _xopCmp(in void*, in void*)
{
throw new Error("TypeInfo.compare is not implemented");
}
void __ctfeWrite(const string s) @nogc @safe pure nothrow {}
/******************************************
* Create RTInfo for type T
*/
template RTInfo(T)
{
enum RTInfo = is(T == int) ? cast(immutable(void)*)0xDEADBEEF : null;
}
// lhs == rhs lowers to __equals(lhs, rhs) for dynamic arrays
bool __equals(T1, T2)(T1[] lhs, T2[] rhs)
{
import core.internal.traits : Unqual;
alias U1 = Unqual!T1;
alias U2 = Unqual!T2;
static @trusted ref R at(R)(R[] r, size_t i) { return r.ptr[i]; }
static @trusted R trustedCast(R, S)(S[] r) { return cast(R) r; }
if (lhs.length != rhs.length)
return false;
if (lhs.length == 0 && rhs.length == 0)
return true;
static if (is(U1 == void) && is(U2 == void))
{
return __equals(trustedCast!(ubyte[])(lhs), trustedCast!(ubyte[])(rhs));
}
else static if (is(U1 == void))
{
return __equals(trustedCast!(ubyte[])(lhs), rhs);
}
else static if (is(U2 == void))
{
return __equals(lhs, trustedCast!(ubyte[])(rhs));
}
else static if (!is(U1 == U2))
{
// This should replace src/object.d _ArrayEq which
// compares arrays of different types such as long & int,
// char & wchar.
// Compiler lowers to __ArrayEq in dmd/src/opover.d
foreach (const u; 0 .. lhs.length)
{
if (at(lhs, u) != at(rhs, u))
return false;
}
return true;
}
else static if (__traits(isIntegral, U1))
{
if (!__ctfe)
{
import core.stdc.string : memcmp;
return () @trusted { return memcmp(cast(void*)lhs.ptr, cast(void*)rhs.ptr, lhs.length * U1.sizeof) == 0; }();
}
else
{
foreach (const u; 0 .. lhs.length)
{
if (at(lhs, u) != at(rhs, u))
return false;
}
return true;
}
}
else
{
foreach (const u; 0 .. lhs.length)
{
static if (__traits(compiles, __equals(at(lhs, u), at(rhs, u))))
{
if (!__equals(at(lhs, u), at(rhs, u)))
return false;
}
else static if (__traits(isFloating, U1))
{
if (at(lhs, u) != at(rhs, u))
return false;
}
else static if (is(U1 : Object) && is(U2 : Object))
{
if (!(cast(Object)at(lhs, u) is cast(Object)at(rhs, u)
|| at(lhs, u) && (cast(Object)at(lhs, u)).opEquals(cast(Object)at(rhs, u))))
return false;
}
else static if (__traits(hasMember, U1, "opEquals"))
{
if (!at(lhs, u).opEquals(at(rhs, u)))
return false;
}
else static if (is(U1 == delegate))
{
if (at(lhs, u) != at(rhs, u))
return false;
}
else static if (is(U1 == U11*, U11))
{
if (at(lhs, u) != at(rhs, u))
return false;
}
else
{
if (at(lhs, u).tupleof != at(rhs, u).tupleof)
return false;
}
}
return true;
}
}
unittest {
assert(__equals([], []));
assert(!__equals([1, 2], [1, 2, 3]));
}
unittest
{
struct A
{
int a;
}
auto arr1 = [A(0), A(2)];
auto arr2 = [A(0), A(1)];
auto arr3 = [A(0), A(1)];
assert(arr1 != arr2);
assert(arr2 == arr3);
}
unittest
{
struct A
{
int a;
int b;
bool opEquals(const A other)
{
return this.a == other.b && this.b == other.a;
}
}
auto arr1 = [A(1, 0), A(0, 1)];
auto arr2 = [A(1, 0), A(0, 1)];
auto arr3 = [A(0, 1), A(1, 0)];
assert(arr1 != arr2);
assert(arr2 == arr3);
}
// Compare class and interface objects for ordering.
private int __cmp(Obj)(Obj lhs, Obj rhs)
if (is(Obj : Object))
{
if (lhs is rhs)
return 0;
// Regard null references as always being "less than"
if (!lhs)
return -1;
if (!rhs)
return 1;
return lhs.opCmp(rhs);
}
int __cmp(T)(const T[] lhs, const T[] rhs) @trusted
if (__traits(isScalar, T))
{
// Compute U as the implementation type for T
static if (is(T == ubyte) || is(T == void) || is(T == bool))
alias U = char;
else static if (is(T == wchar))
alias U = ushort;
else static if (is(T == dchar))
alias U = uint;
else static if (is(T == ifloat))
alias U = float;
else static if (is(T == idouble))
alias U = double;
else static if (is(T == ireal))
alias U = real;
else
alias U = T;
static if (is(U == char))
{
import core.internal.string : dstrcmp;
return dstrcmp(cast(char[]) lhs, cast(char[]) rhs);
}
else static if (!is(U == T))
{
// Reuse another implementation
return __cmp(cast(U[]) lhs, cast(U[]) rhs);
}
else
{
immutable len = lhs.length <= rhs.length ? lhs.length : rhs.length;
foreach (const u; 0 .. len)
{
static if (__traits(isFloating, T))
{
immutable a = lhs.ptr[u], b = rhs.ptr[u];
static if (is(T == cfloat) || is(T == cdouble)
|| is(T == creal))
{
// Use rt.cmath2._Ccmp instead ?
auto r = (a.re > b.re) - (a.re < b.re);
if (!r) r = (a.im > b.im) - (a.im < b.im);
}
else
{
const r = (a > b) - (a < b);
}
if (r) return r;
}
else if (lhs.ptr[u] != rhs.ptr[u])
return lhs.ptr[u] < rhs.ptr[u] ? -1 : 1;
}
return lhs.length < rhs.length ? -1 : (lhs.length > rhs.length);
}
}
// This function is called by the compiler when dealing with array
// comparisons in the semantic analysis phase of CmpExp. The ordering
// comparison is lowered to a call to this template.
int __cmp(T1, T2)(T1[] s1, T2[] s2)
if (!__traits(isScalar, T1))
{
import core.internal.traits : Unqual;
alias U1 = Unqual!T1;
alias U2 = Unqual!T2;
static assert(is(U1 == U2), "Internal error.");
static if (is(U1 == void))
static @trusted ref inout(ubyte) at(inout(void)[] r, size_t i) { return (cast(inout(ubyte)*) r.ptr)[i]; }
else
static @trusted ref R at(R)(R[] r, size_t i) { return r.ptr[i]; }
// All unsigned byte-wide types = > dstrcmp
immutable len = s1.length <= s2.length ? s1.length : s2.length;
foreach (const u; 0 .. len)
{
static if (__traits(compiles, __cmp(at(s1, u), at(s2, u))))
{
auto c = __cmp(at(s1, u), at(s2, u));
if (c != 0)
return c;
}
else static if (__traits(compiles, at(s1, u).opCmp(at(s2, u))))
{
auto c = at(s1, u).opCmp(at(s2, u));
if (c != 0)
return c;
}
else static if (__traits(compiles, at(s1, u) < at(s2, u)))
{
if (at(s1, u) != at(s2, u))
return at(s1, u) < at(s2, u) ? -1 : 1;
}
else
{
// TODO: fix this legacy bad behavior, see
// https://issues.dlang.org/show_bug.cgi?id=17244
import core.stdc.string : memcmp;
return (() @trusted => memcmp(&at(s1, u), &at(s2, u), U1.sizeof))();
}
}
return s1.length < s2.length ? -1 : (s1.length > s2.length);
}
// integral types
@safe unittest
{
void compareMinMax(T)()
{
T[2] a = [T.max, T.max];
T[2] b = [T.min, T.min];
assert(__cmp(a, b) > 0);
assert(__cmp(b, a) < 0);
}
compareMinMax!int;
compareMinMax!uint;
compareMinMax!long;
compareMinMax!ulong;
compareMinMax!short;
compareMinMax!ushort;
compareMinMax!byte;
compareMinMax!dchar;
compareMinMax!wchar;
}
// char types (dstrcmp)
@safe unittest
{
void compareMinMax(T)()
{
T[2] a = [T.max, T.max];
T[2] b = [T.min, T.min];
assert(__cmp(a, b) > 0);
assert(__cmp(b, a) < 0);
}
compareMinMax!ubyte;
compareMinMax!bool;
compareMinMax!char;
compareMinMax!(const char);
string s1 = "aaaa";
string s2 = "bbbb";
assert(__cmp(s2, s1) > 0);
assert(__cmp(s1, s2) < 0);
}
// fp types
@safe unittest
{
void compareMinMax(T)()
{
T[2] a = [T.max, T.max];
T[2] b = [T.min_normal, T.min_normal];
assert(__cmp(a, b) > 0);
assert(__cmp(b, a) < 0);
}
compareMinMax!real;
compareMinMax!float;
compareMinMax!double;
compareMinMax!ireal;
compareMinMax!ifloat;
compareMinMax!idouble;
compareMinMax!creal;
//compareMinMax!cfloat;
compareMinMax!cdouble;
// qualifiers
compareMinMax!(const real);
compareMinMax!(immutable real);
}
// void[]
@safe unittest
{
void[] a;
const(void)[] b;
(() @trusted
{
a = cast(void[]) "bb";
b = cast(const(void)[]) "aa";
})();
assert(__cmp(a, b) > 0);
assert(__cmp(b, a) < 0);
}
// objects
@safe unittest
{
class C
{
int i;
this(int i) { this.i = i; }
override int opCmp(Object c) const @safe
{
return i - (cast(C)c).i;
}
}
auto c1 = new C(1);
auto c2 = new C(2);
assert(__cmp(c1, null) > 0);
assert(__cmp(null, c1) < 0);
assert(__cmp(c1, c1) == 0);
assert(__cmp(c1, c2) < 0);
assert(__cmp(c2, c1) > 0);
assert(__cmp([c1, c1][], [c2, c2][]) < 0);
assert(__cmp([c2, c2], [c1, c1]) > 0);
}
// structs
@safe unittest
{
struct C
{
ubyte i;
this(ubyte i) { this.i = i; }
}
auto c1 = C(1);
auto c2 = C(2);
assert(__cmp([c1, c1][], [c2, c2][]) < 0);
assert(__cmp([c2, c2], [c1, c1]) > 0);
}
// Helper functions
private inout(TypeInfo) getElement(inout TypeInfo value) @trusted pure nothrow
{
TypeInfo element = cast() value;
for(;;)
{
if(auto qualified = cast(TypeInfo_Const) element)
element = qualified.base;
else if(auto redefined = cast(TypeInfo_Typedef) element) // typedef & enum
element = redefined.base;
else if(auto staticArray = cast(TypeInfo_StaticArray) element)
element = staticArray.value;
else if(auto vector = cast(TypeInfo_Vector) element)
element = vector.base;
else
break;
}
return cast(inout) element;
}
private size_t getArrayHash(in TypeInfo element, in void* ptr, in size_t count) @trusted nothrow
{
if(!count)
return 0;
const size_t elementSize = element.tsize;
if(!elementSize)
return 0;
static bool hasCustomToHash(in TypeInfo value) @trusted pure nothrow
{
const element = getElement(value);
if(const struct_ = cast(const TypeInfo_Struct) element)
return !!struct_.xtoHash;
return cast(const TypeInfo_Array) element
|| cast(const TypeInfo_AssociativeArray) element
|| cast(const ClassInfo) element
|| cast(const TypeInfo_Interface) element;
}
import core.internal.traits : externDFunc;
alias hashOf = externDFunc!("rt.util.hash.hashOf",
size_t function(const(void)[], size_t) @trusted pure nothrow @nogc);
if(!hasCustomToHash(element))
return hashOf(ptr[0 .. elementSize * count], 0);
size_t hash = 0;
foreach(size_t i; 0 .. count)
hash += element.getHash(ptr + i * elementSize);
return hash;
}
// Tests ensure TypeInfo_Array.getHash uses element hash functions instead of hashing array data
unittest
{
class C
{
int i;
this(in int i) { this.i = i; }
override hash_t toHash() { return 0; }
}
C[] a1 = [new C(11)], a2 = [new C(12)];
assert(typeid(C[]).getHash(&a1) == typeid(C[]).getHash(&a2));
}
unittest
{
struct S
{
int i;
hash_t toHash() const @safe nothrow { return 0; }
}
S[] a1 = [S(11)], a2 = [S(12)];
assert(typeid(S[]).getHash(&a1) == typeid(S[]).getHash(&a2));
}
@safe unittest
{
struct S
{
int i;
const @safe nothrow:
hash_t toHash() { return 0; }
bool opEquals(const S) { return true; }
int opCmp(const S) { return 0; }
}
int[S[]] aa = [[S(11)] : 13];
assert(aa[[S(12)]] == 13);
}
/// Provide the .dup array property.
@property auto dup(T)(T[] a)
if (!is(const(T) : T))
{
import core.internal.traits : Unconst;
static assert(is(T : Unconst!T), "Cannot implicitly convert type "~T.stringof~
" to "~Unconst!T.stringof~" in dup.");
// wrap unsafe _dup in @trusted to preserve @safe postblit
static if (__traits(compiles, (T b) @safe { T a = b; }))
return _trustedDup!(T, Unconst!T)(a);
else
return _dup!(T, Unconst!T)(a);
}
/// ditto
// const overload to support implicit conversion to immutable (unique result, see DIP29)
@property T[] dup(T)(const(T)[] a)
if (is(const(T) : T))
{
// wrap unsafe _dup in @trusted to preserve @safe postblit
static if (__traits(compiles, (T b) @safe { T a = b; }))
return _trustedDup!(const(T), T)(a);
else
return _dup!(const(T), T)(a);
}
/// Provide the .idup array property.
@property immutable(T)[] idup(T)(T[] a)
{
static assert(is(T : immutable(T)), "Cannot implicitly convert type "~T.stringof~
" to immutable in idup.");
// wrap unsafe _dup in @trusted to preserve @safe postblit
static if (__traits(compiles, (T b) @safe { T a = b; }))
return _trustedDup!(T, immutable(T))(a);
else
return _dup!(T, immutable(T))(a);
}
/// ditto
@property immutable(T)[] idup(T:void)(const(T)[] a)
{
return a.dup;
}
private U[] _trustedDup(T, U)(T[] a) @trusted
{
return _dup!(T, U)(a);
}
private U[] _dup(T, U)(T[] a) // pure nothrow depends on postblit
{
if (__ctfe)
{
static if (is(T : void))
assert(0, "Cannot dup a void[] array at compile time.");
else
{
U[] res;
foreach (ref e; a)
res ~= e;
return res;
}
}
import core.stdc.string : memcpy;
void[] arr = _d_newarrayU(typeid(T[]), a.length);
memcpy(arr.ptr, cast(const(void)*)a.ptr, T.sizeof * a.length);
auto res = *cast(U[]*)&arr;
static if (!is(T : void))
_doPostblit(res);
return res;
}
private extern (C) void[] _d_newarrayU(const TypeInfo ti, size_t length) pure nothrow;
/**************
* Get the postblit for type T.
* Returns:
* null if no postblit is necessary
* function pointer for struct postblits
* delegate for class postblits
*/
private auto _getPostblit(T)() @trusted pure nothrow @nogc
{
// infer static postblit type, run postblit if any
static if (is(T == struct))
{
import core.internal.traits : Unqual;
// use typeid(Unqual!T) here to skip TypeInfo_Const/Shared/...
alias _PostBlitType = typeof(function (ref T t){ T a = t; });
return cast(_PostBlitType)typeid(Unqual!T).xpostblit;
}
else if ((&typeid(T).postblit).funcptr !is &TypeInfo.postblit)
{
alias _PostBlitType = typeof(delegate (ref T t){ T a = t; });
return cast(_PostBlitType)&typeid(T).postblit;
}
else
return null;
}
private void _doPostblit(T)(T[] arr)
{
// infer static postblit type, run postblit if any
if (auto postblit = _getPostblit!T())
{
foreach (ref elem; arr)
postblit(elem);
}
}
unittest
{
static struct S1 { int* p; }
static struct S2 { @disable this(); }
static struct S3 { @disable this(this); }
int dg1() pure nothrow @safe
{
{
char[] m;
string i;
m = m.dup;
i = i.idup;
m = i.dup;
i = m.idup;
}
{
S1[] m;
immutable(S1)[] i;
m = m.dup;
i = i.idup;
static assert(!is(typeof(m.idup)));
static assert(!is(typeof(i.dup)));
}
{
S3[] m;
immutable(S3)[] i;
static assert(!is(typeof(m.dup)));
static assert(!is(typeof(i.idup)));
}
{
shared(S1)[] m;
m = m.dup;
static assert(!is(typeof(m.idup)));
}
{
int[] a = (inout(int)) { inout(const(int))[] a; return a.dup; }(0);
}
return 1;
}
int dg2() pure nothrow @safe
{
{
S2[] m = [S2.init, S2.init];
immutable(S2)[] i = [S2.init, S2.init];
m = m.dup;
m = i.dup;
i = m.idup;
i = i.idup;
}
return 2;
}
enum a = dg1();
enum b = dg2();
assert(dg1() == a);
assert(dg2() == b);
}
unittest
{
static struct Sunpure { this(this) @safe nothrow {} }
static struct Sthrow { this(this) @safe pure {} }
static struct Sunsafe { this(this) @system pure nothrow {} }
static assert( __traits(compiles, () { [].dup!Sunpure; }));
static assert(!__traits(compiles, () pure { [].dup!Sunpure; }));
static assert( __traits(compiles, () { [].dup!Sthrow; }));
static assert(!__traits(compiles, () nothrow { [].dup!Sthrow; }));
static assert( __traits(compiles, () { [].dup!Sunsafe; }));
static assert(!__traits(compiles, () @safe { [].dup!Sunsafe; }));
static assert( __traits(compiles, () { [].idup!Sunpure; }));
static assert(!__traits(compiles, () pure { [].idup!Sunpure; }));
static assert( __traits(compiles, () { [].idup!Sthrow; }));
static assert(!__traits(compiles, () nothrow { [].idup!Sthrow; }));
static assert( __traits(compiles, () { [].idup!Sunsafe; }));
static assert(!__traits(compiles, () @safe { [].idup!Sunsafe; }));
}
unittest
{
static int*[] pureFoo() pure { return null; }
{ char[] s; immutable x = s.dup; }
{ immutable x = (cast(int*[])null).dup; }
{ immutable x = pureFoo(); }
{ immutable x = pureFoo().dup; }
}
unittest
{
auto a = [1, 2, 3];
auto b = a.dup;
debug(SENTINEL) {} else
assert(b.capacity >= 3);
}
unittest
{
// Bugzilla 12580
void[] m = [0];
shared(void)[] s = [cast(shared)1];
immutable(void)[] i = [cast(immutable)2];
s = s.dup;
static assert(is(typeof(s.dup) == shared(void)[]));
m = i.dup;
i = m.dup;
i = i.idup;
i = m.idup;
i = s.idup;
i = s.dup;
static assert(!__traits(compiles, m = s.dup));
}
unittest
{
// Bugzilla 13809
static struct S
{
this(this) {}
~this() {}
}
S[] arr;
auto a = arr.dup;
}
unittest
{
// Bugzilla 16504
static struct S
{
__gshared int* gp;
int* p;
// postblit and hence .dup could escape
this(this) { gp = p; }
}
int p;
scope arr = [S(&p)];
auto a = arr.dup; // dup does escape
}
|
D
|
import std.stdio;
import std.file;
import std.string;
import std.regex;
import std.conv;
class Reindeer{
this(string n, int s, int ft, int rt){
name = n;
speed = s;
fly_time = ft;
rest_time = rt;
time = fly_time;
}
void print(){
writefln("{%s (%d)}", name, pos);
}
void increment(){
time -= 1;
if (flying){
pos += speed;
}
if (time == 0){
if (flying){
time = rest_time;
flying = false;
}else{
time = fly_time;
flying = true;
}
}
}
string name;
int speed;
int fly_time;
int rest_time;
int pos = 0;
int time;
bool flying = true;
}
void printAllReindeer(Reindeer[] reindeer){
writeln("\n#####");
foreach (r; reindeer){
r.print();
}
writeln("#####");
}
Reindeer findLeader(Reindeer[] reindeer){
Reindeer max;
int max_val = 0;
foreach (r; reindeer){
if (r.pos >= max_val){
max = r;
max_val = r.pos;
}
}
return max;
}
int main(string[] args){
if (args.length != 3){
writefln("Needs an input file and # of seconds!");
return 1;
}
string filepath = args[1];
int seconds = to!int(args[2]);
Reindeer[] all_reindeer;
foreach (line; File(filepath, "r").byLine){
line = line.strip();
writeln(line);
auto re = regex(`(.*) can fly (\d+) km\/s for (\d+) seconds, but then must rest for (\d+) seconds.`);
if (auto captures = matchFirst(line, re)){
string name = to!string(captures[1]);
int speed = to!int(captures[2]);
int fly_time = to!int(captures[3]);
int rest_time = to!int(captures[4]);
Reindeer reindeer = new Reindeer(name, speed, fly_time, rest_time);
all_reindeer ~= reindeer;
}
}
for (int i=0; i<seconds; i++){
foreach (reindeer; all_reindeer){
reindeer.increment();
}
}
printAllReindeer(all_reindeer);
Reindeer winner = findLeader(all_reindeer);
writefln("Winner is %s at distance %d", winner.name, winner.pos);
return 0;
}
|
D
|
/*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
* Port to the D programming language:
* Frank Benoit <benoit@tionex.de>
*******************************************************************************/
module org.eclipse.swt.dnd.DND;
import java.lang.all;
import org.eclipse.swt.SWT;
import org.eclipse.swt.SWTError;
import org.eclipse.swt.SWTException;
version(Tango){
import tango.util.Convert;
} else { // Phobos
import std.conv;
}
/**
*
* Class DND contains all the constants used in defining a
* DragSource or a DropTarget.
*
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
*/
public class DND {
/**
* The transfer mechanism for data that is being cut
* and then pasted or copied and then pasted (value is 1).
*
* @see Clipboard
*
* @since 3.1
*/
public const static int CLIPBOARD = 1 << 0;
/**
* The transfer mechanism for clients that use the selection
* mechanism (value is 2).
*
* @see Clipboard
*
* @since 3.1
*/
public const static int SELECTION_CLIPBOARD = 1 << 1;
/**
* Drag and Drop Operation: no drag/drop operation performed
* (value is 0).
*/
public const static int DROP_NONE = 0;
/**
* Drag and Drop Operation: a copy of the data in the drag source is
* added to the drop target (value is 1 << 0).
*/
public const static int DROP_COPY = 1 << 0;
/**
* Drag and Drop Operation: a copy of the data is added to the drop target and
* the original data is removed from the drag source (value is 1 << 1).
*/
public const static int DROP_MOVE = 1 << 1;
/**
* Drag and Drop Operation: the drop target makes a link to the data in
* the drag source (value is 1 << 2).
*/
public const static int DROP_LINK = 1 << 2;
/**
* Drag and Drop Operation: the drop target moves the data and the drag source removes
* any references to the data and updates its display. This is not available on all platforms
* and is only used when a non-SWT application is the drop target. In this case, the SWT
* drag source is informed in the dragFinished event that the drop target has moved the data.
* (value is 1 << 3).
*
* @see DragSourceListener#dragFinished
*/
public const static int DROP_TARGET_MOVE = 1 << 3;
/**
* Drag and Drop Operation: During a dragEnter event or a dragOperationChanged, if no modifier keys
* are pressed, the operation is set to DROP_DEFAULT. The application can choose what the default
* operation should be by setting a new value in the operation field. If no value is choosen, the
* default operation for the platform will be selected (value is 1 << 4).
*
* @see DropTargetListener#dragEnter
* @see DropTargetListener#dragOperationChanged
* @since 2.0
*/
public const static int DROP_DEFAULT = 1 << 4;
/**
* DragSource Event: the drop has successfully completed or has been terminated (such as hitting
* the ESC key); perform cleanup such as removing data on a move operation (value is 2000).
*/
public static const int DragEnd = 2000;
/**
* DragSource Event: the data to be dropped is required from the drag source (value is 2001).
*/
public static const int DragSetData = 2001;
/**
* DropTarget Event: the cursor has entered the drop target boundaries (value is 2002).
*/
public static const int DragEnter = 2002;
/**
* DropTarget Event: the cursor has left the drop target boundaries OR the drop
* operation has been cancelled (such as by hitting ECS) OR the drop is about to
* happen (user has released the mouse button over this target) (value is 2003).
*/
public static const int DragLeave = 2003;
/**
* DropTarget Event: the cursor is over the drop target (value is 2004).
*/
public static const int DragOver = 2004;
/**
* DropTarget Event: the operation being performed has changed usually due to the user
* changing the selected modifier keys while dragging (value is 2005).
*/
public static const int DragOperationChanged = 2005;
/**
* DropTarget Event: the data has been dropped (value is 2006).
*/
public static const int Drop = 2006;
/**
* DropTarget Event: the drop target is given a last chance to modify the drop (value is 2007).
*/
public static const int DropAccept = 2007;
/**
* DragSource Event: a drag is about to begin (value is 2008).
*/
public static const int DragStart = 2008;
/**
* DropTarget drag under effect: No effect is shown (value is 0).
*/
public static const int FEEDBACK_NONE = 0;
/**
* DropTarget drag under effect: The item under the cursor is selected; applies to tables
* and trees (value is 1).
*/
public static const int FEEDBACK_SELECT = 1;
/**
* DropTarget drag under effect: An insertion mark is shown before the item under the cursor; applies to
* trees (value is 2).
*/
public static const int FEEDBACK_INSERT_BEFORE = 2;
/**
* DropTarget drag under effect:An insertion mark is shown after the item under the cursor; applies to
* trees (value is 4).
*/
public static const int FEEDBACK_INSERT_AFTER = 4;
/**
* DropTarget drag under effect: The widget is scrolled up or down to allow the user to drop on items that
* are not currently visible; applies to tables and trees (value is 8).
*/
public static const int FEEDBACK_SCROLL = 8;
/**
* DropTarget drag under effect: The item currently under the cursor is expanded to allow the user to
* select a drop target from a sub item; applies to trees (value is 16).
*/
public static const int FEEDBACK_EXPAND = 16;
/**
* Error code: drag source can not be initialized (value is 2000).
*/
public static const int ERROR_CANNOT_INIT_DRAG = 2000;
/**
* Error code: drop target cannot be initialized (value is 2001).
*/
public static const int ERROR_CANNOT_INIT_DROP = 2001;
/**
* Error code: Data can not be set on system clipboard (value is 2002).
*/
public static const int ERROR_CANNOT_SET_CLIPBOARD = 2002;
/**
* Error code: Data does not have correct format for type (value is 2003).
* @since 3.1
*/
public static const int ERROR_INVALID_DATA = 2003;
/**
* DropTarget Key: The string constant for looking up the drop target
* for a control using <code>getData(String)</code>. When a drop target
* is created for a control, it is stored as a property in the control
* using <code>setData(String, Object)</code>.
*
* @since 3.4
*/
public static const String DROP_TARGET_KEY = "DropTarget"; //$NON-NLS-1$
/**
* DragSource Key: The string constant for looking up the drag source
* for a control using <code>getData(String)</code>. When a drag source
* is created for a control, it is stored as a property in the control
* using <code>setData(String, Object)</code>.
*
* @since 3.4
*/
public static const String DRAG_SOURCE_KEY = "DragSource"; //$NON-NLS-1$
static const String INIT_DRAG_MESSAGE = "Cannot initialize Drag"; //$NON-NLS-1$
static const String INIT_DROP_MESSAGE = "Cannot initialize Drop"; //$NON-NLS-1$
static const String CANNOT_SET_CLIPBOARD_MESSAGE = "Cannot set data in clipboard"; //$NON-NLS-1$
static const String INVALID_DATA_MESSAGE = "Data does not have correct format for type"; //$NON-NLS-1$
/**
* Throws an appropriate exception based on the passed in error code.
*
* @param code the DND error code
*/
public static void error (int code) {
error (code, 0);
}
/**
* Throws an appropriate exception based on the passed in error code.
* The <code>hresult</code> argument should be either 0, or the
* platform specific error code.
* <p>
* In DND, errors are reported by throwing one of three exceptions:
* <dl>
* <dd>java.lang.IllegalArgumentException</dd>
* <dt>thrown whenever one of the API methods is invoked with an illegal argument</dt>
* <dd>org.eclipse.swt.SWTException (extends java.lang.RuntimeException)</dd>
* <dt>thrown whenever a recoverable error happens internally in SWT</dt>
* <dd>org.eclipse.swt.SWTError (extends java.lang.Error)</dd>
* <dt>thrown whenever a <b>non-recoverable</b> error happens internally in SWT</dt>
* </dl>
* This method provides the logic which maps between error codes
* and one of the above exceptions.
* </p>
*
* @param code the DND error code.
* @param hresult the platform specific error code.
*
* @see SWTError
* @see SWTException
* @see IllegalArgumentException
*/
public static void error (int code, int hresult) {
switch (code) {
/* OS Failure/Limit (fatal, may occur only on some platforms) */
case DND.ERROR_CANNOT_INIT_DRAG:{
String msg = DND.INIT_DRAG_MESSAGE;
if (hresult !is 0) msg ~= " result = "~to!(String)(hresult); //$NON-NLS-1$
throw new SWTError (code, msg);
}
case DND.ERROR_CANNOT_INIT_DROP:{
String msg = DND.INIT_DROP_MESSAGE;
if (hresult !is 0) msg ~= " result = "~to!(String)(hresult); //$NON-NLS-1$
throw new SWTError (code, msg);
}
case DND.ERROR_CANNOT_SET_CLIPBOARD:{
String msg = DND.CANNOT_SET_CLIPBOARD_MESSAGE;
if (hresult !is 0) msg ~= " result = "~to!(String)(hresult); //$NON-NLS-1$
throw new SWTError (code, msg);
}
case DND.ERROR_INVALID_DATA:{
String msg = DND.INVALID_DATA_MESSAGE;
if (hresult !is 0) msg ~= " result = "~to!(String)(hresult); //$NON-NLS-1$
throw new SWTException (code, msg);
}
default:
}
/* Unknown/Undefined Error */
SWT.error(code);
}
}
|
D
|
/Users/haruna/Documents/iOSdev/yelpy/Build/Intermediates/Yelpy.build/Debug-iphonesimulator/Yelpy.build/Objects-normal/x86_64/API.o : /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Network/API.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/SceneDelegate.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/AppDelegate.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Cells/ChatCell.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Cells/RestaurantCell.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Controllers/PostImageViewController.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Controllers/LoginViewController.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Controllers/DetailsViewController.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Controllers/RestaurantsViewController.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Controllers/ChatViewController.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Extra/YelpStars.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Models/Restaurant.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreLocation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/MapKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Modules/AlamofireImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/lottie-ios/Lottie.framework/Modules/Lottie.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/SkeletonView/SkeletonView.framework/Modules/SkeletonView.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFACL.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Headers/AlamofireImage-umbrella.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/Parse-umbrella.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/lottie-ios/Lottie.framework/Headers/lottie-ios-umbrella.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/Bolts-umbrella.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/SkeletonView/SkeletonView.framework/Headers/SkeletonView-umbrella.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFGeneric.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFCloud+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPush+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUser+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFAnonymousUtils+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileObject+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFQuery+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFCloud.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationTokenSource.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFTaskCompletionSource.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFRole.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPurchase.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/Parse.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUserAuthenticationDelegate.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFConfig.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFSubclassing.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPush.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFTask.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationToken.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPolygon.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFSession.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFRelation.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFInstallation.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationTokenRegistration.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/ParseClientConfiguration.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFDecoder.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFEncoder.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFNetworkActivityIndicatorManager.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileUploadController.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUser.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFExecutor.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFAnalytics.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFAnonymousUtils.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject+Subclass.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/Bolts.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFConstants.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFCloud+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFConfig+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPush+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUser+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileObject+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFQuery+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileObject.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFProduct.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Headers/AlamofireImage-Swift.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/lottie-ios/Lottie.framework/Headers/Lottie-Swift.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/SkeletonView/SkeletonView.framework/Headers/SkeletonView-Swift.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileUploadResult.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFGeoPoint.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFQuery.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Modules/module.modulemap /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/lottie-ios/Lottie.framework/Modules/module.modulemap /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Modules/module.modulemap /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Modules/module.modulemap /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/SkeletonView/SkeletonView.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/StoreKit.framework/Headers/StoreKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/MapKit.framework/Headers/MapKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/haruna/Documents/iOSdev/yelpy/Build/Intermediates/Yelpy.build/Debug-iphonesimulator/Yelpy.build/Objects-normal/x86_64/API~partial.swiftmodule : /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Network/API.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/SceneDelegate.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/AppDelegate.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Cells/ChatCell.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Cells/RestaurantCell.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Controllers/PostImageViewController.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Controllers/LoginViewController.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Controllers/DetailsViewController.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Controllers/RestaurantsViewController.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Controllers/ChatViewController.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Extra/YelpStars.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Models/Restaurant.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreLocation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/MapKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Modules/AlamofireImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/lottie-ios/Lottie.framework/Modules/Lottie.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/SkeletonView/SkeletonView.framework/Modules/SkeletonView.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFACL.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Headers/AlamofireImage-umbrella.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/Parse-umbrella.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/lottie-ios/Lottie.framework/Headers/lottie-ios-umbrella.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/Bolts-umbrella.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/SkeletonView/SkeletonView.framework/Headers/SkeletonView-umbrella.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFGeneric.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFCloud+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPush+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUser+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFAnonymousUtils+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileObject+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFQuery+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFCloud.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationTokenSource.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFTaskCompletionSource.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFRole.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPurchase.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/Parse.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUserAuthenticationDelegate.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFConfig.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFSubclassing.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPush.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFTask.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationToken.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPolygon.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFSession.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFRelation.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFInstallation.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationTokenRegistration.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/ParseClientConfiguration.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFDecoder.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFEncoder.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFNetworkActivityIndicatorManager.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileUploadController.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUser.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFExecutor.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFAnalytics.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFAnonymousUtils.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject+Subclass.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/Bolts.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFConstants.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFCloud+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFConfig+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPush+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUser+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileObject+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFQuery+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileObject.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFProduct.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Headers/AlamofireImage-Swift.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/lottie-ios/Lottie.framework/Headers/Lottie-Swift.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/SkeletonView/SkeletonView.framework/Headers/SkeletonView-Swift.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileUploadResult.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFGeoPoint.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFQuery.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Modules/module.modulemap /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/lottie-ios/Lottie.framework/Modules/module.modulemap /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Modules/module.modulemap /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Modules/module.modulemap /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/SkeletonView/SkeletonView.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/StoreKit.framework/Headers/StoreKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/MapKit.framework/Headers/MapKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/haruna/Documents/iOSdev/yelpy/Build/Intermediates/Yelpy.build/Debug-iphonesimulator/Yelpy.build/Objects-normal/x86_64/API~partial.swiftdoc : /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Network/API.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/SceneDelegate.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/AppDelegate.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Cells/ChatCell.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Cells/RestaurantCell.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Controllers/PostImageViewController.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Controllers/LoginViewController.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Controllers/DetailsViewController.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Controllers/RestaurantsViewController.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Controllers/ChatViewController.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Extra/YelpStars.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Models/Restaurant.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreLocation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/MapKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Modules/AlamofireImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/lottie-ios/Lottie.framework/Modules/Lottie.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/SkeletonView/SkeletonView.framework/Modules/SkeletonView.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFACL.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Headers/AlamofireImage-umbrella.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/Parse-umbrella.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/lottie-ios/Lottie.framework/Headers/lottie-ios-umbrella.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/Bolts-umbrella.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/SkeletonView/SkeletonView.framework/Headers/SkeletonView-umbrella.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFGeneric.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFCloud+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPush+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUser+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFAnonymousUtils+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileObject+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFQuery+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFCloud.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationTokenSource.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFTaskCompletionSource.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFRole.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPurchase.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/Parse.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUserAuthenticationDelegate.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFConfig.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFSubclassing.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPush.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFTask.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationToken.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPolygon.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFSession.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFRelation.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFInstallation.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationTokenRegistration.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/ParseClientConfiguration.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFDecoder.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFEncoder.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFNetworkActivityIndicatorManager.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileUploadController.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUser.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFExecutor.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFAnalytics.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFAnonymousUtils.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject+Subclass.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/Bolts.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFConstants.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFCloud+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFConfig+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPush+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUser+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileObject+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFQuery+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileObject.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFProduct.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Headers/AlamofireImage-Swift.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/lottie-ios/Lottie.framework/Headers/Lottie-Swift.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/SkeletonView/SkeletonView.framework/Headers/SkeletonView-Swift.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileUploadResult.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFGeoPoint.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFQuery.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Modules/module.modulemap /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/lottie-ios/Lottie.framework/Modules/module.modulemap /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Modules/module.modulemap /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Modules/module.modulemap /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/SkeletonView/SkeletonView.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/StoreKit.framework/Headers/StoreKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/MapKit.framework/Headers/MapKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/haruna/Documents/iOSdev/yelpy/Build/Intermediates/Yelpy.build/Debug-iphonesimulator/Yelpy.build/Objects-normal/x86_64/API~partial.swiftsourceinfo : /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Network/API.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/SceneDelegate.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/AppDelegate.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Cells/ChatCell.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Cells/RestaurantCell.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Controllers/PostImageViewController.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Controllers/LoginViewController.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Controllers/DetailsViewController.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Controllers/RestaurantsViewController.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Controllers/ChatViewController.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Extra/YelpStars.swift /Users/haruna/Documents/iOSdev/yelpy/Yelpy/Models/Restaurant.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreLocation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/MapKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Modules/AlamofireImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/lottie-ios/Lottie.framework/Modules/Lottie.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/SkeletonView/SkeletonView.framework/Modules/SkeletonView.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFACL.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Headers/AlamofireImage-umbrella.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/Parse-umbrella.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/lottie-ios/Lottie.framework/Headers/lottie-ios-umbrella.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/Bolts-umbrella.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/SkeletonView/SkeletonView.framework/Headers/SkeletonView-umbrella.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFGeneric.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFCloud+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPush+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUser+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFAnonymousUtils+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileObject+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFQuery+Deprecated.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFCloud.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationTokenSource.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFTaskCompletionSource.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFRole.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPurchase.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/Parse.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUserAuthenticationDelegate.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFConfig.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFSubclassing.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPush.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFTask.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationToken.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPolygon.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFSession.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFRelation.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFInstallation.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationTokenRegistration.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/ParseClientConfiguration.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFDecoder.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFEncoder.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFNetworkActivityIndicatorManager.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileUploadController.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUser.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFExecutor.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFAnalytics.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFAnonymousUtils.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject+Subclass.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/Bolts.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFConstants.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFCloud+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFConfig+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPush+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUser+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileObject+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFQuery+Synchronous.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileObject.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFProduct.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Headers/AlamofireImage-Swift.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/lottie-ios/Lottie.framework/Headers/Lottie-Swift.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/SkeletonView/SkeletonView.framework/Headers/SkeletonView-Swift.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileUploadResult.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFGeoPoint.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFQuery.h /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/AlamofireImage/AlamofireImage.framework/Modules/module.modulemap /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/lottie-ios/Lottie.framework/Modules/module.modulemap /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Modules/module.modulemap /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Modules/module.modulemap /Users/haruna/Documents/iOSdev/yelpy/Build/Products/Debug-iphonesimulator/SkeletonView/SkeletonView.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/StoreKit.framework/Headers/StoreKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/MapKit.framework/Headers/MapKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.7.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
/*
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
module derelict.freeimage.functions;
private
{
import core.stdc.config;
import derelict.freeimage.types;
import derelict.util.system;
}
extern(System)
{
alias nothrow void function(BOOL load_local_plugins_only = FALSE) da_FreeImage_Initialise;
alias nothrow void function() da_FreeImage_DeInitialise;
alias nothrow const(char)* function() da_FreeImage_GetVersion;
alias nothrow const(char)* function() da_FreeImage_GetCopyrightMessage;
// Message output functions -------------------------------------------------
alias nothrow void function(FreeImage_OutputMessageFunctionStdCall omf) da_FreeImage_SetOutputMessageStdCall;
alias nothrow void function(FreeImage_OutputMessageFunction omf) da_FreeImage_SetOutputMessage;
// interacts badly with stdcall mangling
alias nothrow void function(int fif, const(char)* fmt, ...) da_FreeImage_OutputMessageProc;
// Allocate / Clone / Unload routines ---------------------------------------
alias nothrow FIBITMAP* function(int width, int height, int bpp, uint red_mask = 0, uint green_mask = 0, uint blue_mask = 0) da_FreeImage_Allocate;
alias nothrow FIBITMAP* function(FREE_IMAGE_TYPE type, int width, int height, int bpp = 8, uint red_mask = 0, uint green_mask = 0, uint blue_mask = 0) da_FreeImage_AllocateT;
alias nothrow FIBITMAP* function(FIBITMAP* dib) da_FreeImage_Clone;
alias nothrow void function(FIBITMAP* dib) da_FreeImage_Unload;
// Header loading routines
alias nothrow BOOL function(FIBITMAP* dib) da_FreeImage_HasPixels;
// Load / Save routines -----------------------------------------------------
alias nothrow FIBITMAP* function(FREE_IMAGE_FORMAT fif, const(char)* filename, int flags = 0) da_FreeImage_Load;
alias nothrow FIBITMAP* function(FREE_IMAGE_FORMAT fif, const(wchar_t)* filename, int flags = 0) da_FreeImage_LoadU;
alias nothrow FIBITMAP* function(FREE_IMAGE_FORMAT fif, FreeImageIO* io, fi_handle handle, int flags = 0) da_FreeImage_LoadFromHandle;
alias nothrow BOOL function(FREE_IMAGE_FORMAT fif, FIBITMAP* dib, const(char)* filename, int flags = 0) da_FreeImage_Save;
alias nothrow BOOL function(FREE_IMAGE_FORMAT fif, FIBITMAP* dib, const(wchar_t)* filename, int flags = 0) da_FreeImage_SaveU;
alias nothrow BOOL function(FREE_IMAGE_FORMAT fif, FIBITMAP* dib, FreeImageIO* io, fi_handle handle, int flags = 0) da_FreeImage_SaveToHandle;
// Memory I/O stream routines -----------------------------------------------
alias nothrow FIMEMORY* function(BYTE* data = null, DWORD size_in_bytes = 0) da_FreeImage_OpenMemory;
alias nothrow void function(FIMEMORY* stream) da_FreeImage_CloseMemory;
alias nothrow FIBITMAP* function(FREE_IMAGE_FORMAT fif, FIMEMORY* stream, int flags = 0) da_FreeImage_LoadFromMemory;
alias nothrow BOOL function(FREE_IMAGE_FORMAT fif, FIBITMAP* dib, FIMEMORY* stream, int flags = 0) da_FreeImage_SaveToMemory;
alias nothrow c_long function(FIMEMORY* stream) da_FreeImage_TellMemory;
alias nothrow BOOL function(FIMEMORY* stream, c_long offset, int origin) da_FreeImage_SeekMemory;
alias nothrow BOOL function(FIMEMORY* stream, BYTE**data, DWORD* size_in_bytes) da_FreeImage_AcquireMemory;
alias nothrow uint function(void* buffer, uint size, uint count, FIMEMORY* stream) da_FreeImage_ReadMemory;
alias nothrow uint function(const(void*) buffer, uint size, uint count, FIMEMORY* stream) da_FreeImage_WriteMemory;
alias nothrow FIMULTIBITMAP* function(FREE_IMAGE_FORMAT fif, FIMEMORY* stream, int flags = 0) da_FreeImage_LoadMultiBitmapFromMemory;
alias nothrow BOOL function(FREE_IMAGE_FORMAT fif, FIMULTIBITMAP* bitmap, FIMEMORY* stream, int flags) da_FreeImage_SaveMultiBitmapToMemory;
// Plugin Interface ---------------------------------------------------------
alias nothrow FREE_IMAGE_FORMAT function(FI_InitProc proc_address, const(char)* format = null, const(char)* description = null, const(char)* extension = null, const(char)* regexpr = null) da_FreeImage_RegisterLocalPlugin;
static if (Derelict_OS_Windows)
alias nothrow FREE_IMAGE_FORMAT function(const(char)* path, const(char)* format = null, const(char)* description = null, const(char)* extension = null, const(char)* regexpr = null) da_FreeImage_RegisterExternalPlugin;
alias nothrow int function() da_FreeImage_GetFIFCount;
alias nothrow int function(FREE_IMAGE_FORMAT fif, BOOL enable) da_FreeImage_SetPluginEnabled;
alias nothrow int function(FREE_IMAGE_FORMAT fif) da_FreeImage_IsPluginEnabled;
alias nothrow FREE_IMAGE_FORMAT function (const(char)* format) da_FreeImage_GetFIFFromFormat;
alias nothrow FREE_IMAGE_FORMAT function (const(char)* mime) da_FreeImage_GetFIFFromMime;
alias nothrow const(char)* function (FREE_IMAGE_FORMAT fif) da_FreeImage_GetFormatFromFIF;
alias nothrow const(char)* function (FREE_IMAGE_FORMAT fif) da_FreeImage_GetFIFExtensionList;
alias nothrow const(char)* function (FREE_IMAGE_FORMAT fif) da_FreeImage_GetFIFDescription;
alias nothrow const(char)* function (FREE_IMAGE_FORMAT fif) da_FreeImage_GetFIFRegExpr;
alias nothrow const(char)* function (FREE_IMAGE_FORMAT fif) da_FreeImage_GetFIFMimeType;
alias nothrow FREE_IMAGE_FORMAT function(const(char)* filename) da_FreeImage_GetFIFFromFilename;
alias nothrow FREE_IMAGE_FORMAT function(const(wchar_t)* filename) da_FreeImage_GetFIFFromFilenameU;
alias nothrow BOOL function(FREE_IMAGE_FORMAT fif) da_FreeImage_FIFSupportsReading;
alias nothrow BOOL function(FREE_IMAGE_FORMAT fif) da_FreeImage_FIFSupportsWriting;
alias nothrow BOOL function(FREE_IMAGE_FORMAT fif, int bpp) da_FreeImage_FIFSupportsExportBPP;
alias nothrow BOOL function(FREE_IMAGE_FORMAT fif, FREE_IMAGE_TYPE type) da_FreeImage_FIFSupportsExportType;
alias nothrow BOOL function(FREE_IMAGE_FORMAT fif) da_FreeImage_FIFSupportsICCProfiles;
alias nothrow BOOL function(FREE_IMAGE_FORMAT fif) da_FreeImage_FIFSupportsNoPixels;
// Multipaging interface ----------------------------------------------------
alias nothrow FIMULTIBITMAP* function(FREE_IMAGE_FORMAT fif, const(char)* filename, BOOL create_new, BOOL read_only, BOOL keep_cache_in_memory = FALSE, int flags = 0) da_FreeImage_OpenMultiBitmap;
alias nothrow FIMULTIBITMAP* function(FREE_IMAGE_FORMAT fif, FreeImageIO* io, fi_handle handle, int flags = 0) da_FreeImage_OpenMultiBitmapFromHandle;
alias nothrow BOOL function(FREE_IMAGE_FORMAT fif, FIMULTIBITMAP* bitmap, FreeImageIO* io, fi_handle handle, int flags = 0) da_FreeImage_SaveMultiBitmapToHandle;
alias nothrow BOOL function(FIMULTIBITMAP* bitmap, int flags = 0) da_FreeImage_CloseMultiBitmap;
alias nothrow int function(FIMULTIBITMAP* bitmap) da_FreeImage_GetPageCount;
alias nothrow void function(FIMULTIBITMAP* bitmap, FIBITMAP*data) da_FreeImage_AppendPage;
alias nothrow void function(FIMULTIBITMAP* bitmap, int page, FIBITMAP*data) da_FreeImage_InsertPage;
alias nothrow void function(FIMULTIBITMAP* bitmap, int page) da_FreeImage_DeletePage;
alias nothrow FIBITMAP* function(FIMULTIBITMAP* bitmap, int page) da_FreeImage_LockPage;
alias nothrow void function(FIMULTIBITMAP* bitmap, FIBITMAP*data, BOOL changed) da_FreeImage_UnlockPage;
alias nothrow BOOL function(FIMULTIBITMAP* bitmap, int target, int source) da_FreeImage_MovePage;
alias nothrow BOOL function(FIMULTIBITMAP* bitmap, int* pages, int* count) da_FreeImage_GetLockedPageNumbers;
// Filetype request routines ------------------------------------------------
alias nothrow FREE_IMAGE_FORMAT function(const(char)* filename, int size = 0) da_FreeImage_GetFileType;
alias nothrow FREE_IMAGE_FORMAT function(const(wchar_t)* filename, int size = 0) da_FreeImage_GetFileTypeU;
alias nothrow FREE_IMAGE_FORMAT function(FreeImageIO* io, fi_handle handle, int size = 0) da_FreeImage_GetFileTypeFromHandle;
alias nothrow FREE_IMAGE_FORMAT function(FIMEMORY* stream, int size = 0) da_FreeImage_GetFileTypeFromMemory;
// Image type request routine -----------------------------------------------
alias nothrow FREE_IMAGE_TYPE function(FIBITMAP* dib) da_FreeImage_GetImageType;
// FreeImage helper routines ------------------------------------------------
alias nothrow BOOL function() da_FreeImage_IsLittleEndian;
alias nothrow BOOL function(const(char)* szColor, BYTE* nRed, BYTE* nGreen, BYTE* nBlue) da_FreeImage_LookupX11Color;
alias nothrow BOOL function(const(char)* szColor, BYTE* nRed, BYTE* nGreen, BYTE* nBlue) da_FreeImage_LookupSVGColor;
// Pixel access routines ----------------------------------------------------
alias nothrow BYTE* function(FIBITMAP* dib) da_FreeImage_GetBits;
alias nothrow BYTE* function(FIBITMAP* dib, int scanline) da_FreeImage_GetScanLine;
alias nothrow BOOL function(FIBITMAP* dib, uint x, uint y, BYTE* value) da_FreeImage_GetPixelIndex;
alias nothrow BOOL function(FIBITMAP* dib, uint x, uint y, RGBQUAD* value) da_FreeImage_GetPixelColor;
alias nothrow BOOL function(FIBITMAP* dib, uint x, uint y, BYTE* value) da_FreeImage_SetPixelIndex;
alias nothrow BOOL function(FIBITMAP* dib, uint x, uint y, RGBQUAD* value) da_FreeImage_SetPixelColor;
// DIB info routines --------------------------------------------------------
alias nothrow uint function(FIBITMAP* dib) da_FreeImage_GetColorsUsed;
alias nothrow uint function(FIBITMAP* dib) da_FreeImage_GetBPP;
alias nothrow uint function(FIBITMAP* dib) da_FreeImage_GetWidth;
alias nothrow uint function(FIBITMAP* dib) da_FreeImage_GetHeight;
alias nothrow uint function(FIBITMAP* dib) da_FreeImage_GetLine;
alias nothrow uint function(FIBITMAP* dib) da_FreeImage_GetPitch;
alias nothrow uint function(FIBITMAP* dib) da_FreeImage_GetDIBSize;
alias nothrow RGBQUAD* function(FIBITMAP* dib) da_FreeImage_GetPalette;
alias nothrow uint function(FIBITMAP* dib) da_FreeImage_GetDotsPerMeterX;
alias nothrow uint function(FIBITMAP* dib) da_FreeImage_GetDotsPerMeterY;
alias nothrow void function(FIBITMAP* dib, uint res) da_FreeImage_SetDotsPerMeterX;
alias nothrow void function(FIBITMAP* dib, uint res) da_FreeImage_SetDotsPerMeterY;
alias nothrow BITMAPINFOHEADER* function(FIBITMAP* dib) da_FreeImage_GetInfoHeader;
alias nothrow BITMAPINFO* function(FIBITMAP* dib) da_FreeImage_GetInfo;
alias nothrow FREE_IMAGE_COLOR_TYPE function(FIBITMAP* dib) da_FreeImage_GetColorType;
alias nothrow uint function(FIBITMAP* dib) da_FreeImage_GetRedMask;
alias nothrow uint function(FIBITMAP* dib) da_FreeImage_GetGreenMask;
alias nothrow uint function(FIBITMAP* dib) da_FreeImage_GetBlueMask;
alias nothrow uint function(FIBITMAP* dib) da_FreeImage_GetTransparencyCount;
alias nothrow BYTE* function(FIBITMAP* dib) da_FreeImage_GetTransparencyTable;
alias nothrow void function(FIBITMAP* dib, BOOL enabled) da_FreeImage_SetTransparent;
alias nothrow void function(FIBITMAP* dib, BYTE* table, int count) da_FreeImage_SetTransparencyTable;
alias nothrow BOOL function(FIBITMAP* dib) da_FreeImage_IsTransparent;
alias nothrow void function(FIBITMAP* dib, int index) da_FreeImage_SetTransparentIndex;
alias nothrow int function(FIBITMAP* dib) da_FreeImage_GetTransparentIndex;
alias nothrow BOOL function(FIBITMAP* dib) da_FreeImage_HasBackgroundColor;
alias nothrow BOOL function(FIBITMAP* dib, RGBQUAD* bkcolor) da_FreeImage_GetBackgroundColor;
alias nothrow BOOL function(FIBITMAP* dib, RGBQUAD* bkcolor) da_FreeImage_SetBackgroundColor;
alias nothrow FIBITMAP* function(FIBITMAP* dib) da_FreeImage_GetThumbnail;
alias nothrow BOOL function(FIBITMAP* dib, FIBITMAP*thumbnail) da_FreeImage_SetThumbnail;
// ICC profile routines -----------------------------------------------------
alias nothrow FIICCPROFILE* function(FIBITMAP* dib) da_FreeImage_GetICCProfile;
alias nothrow FIICCPROFILE* function(FIBITMAP* dib, void* data, c_long size) da_FreeImage_CreateICCProfile;
alias nothrow void function(FIBITMAP* dib) da_FreeImage_DestroyICCProfile;
// Line conversion routines -------------------------------------------------
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels) da_FreeImage_ConvertLine1To4;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels, RGBQUAD* palette) da_FreeImage_ConvertLine8To4;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels) da_FreeImage_ConvertLine16To4_555;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels) da_FreeImage_ConvertLine16To4_565;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels) da_FreeImage_ConvertLine24To4;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels) da_FreeImage_ConvertLine32To4;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels) da_FreeImage_ConvertLine1To8;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels) da_FreeImage_ConvertLine4To8;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels) da_FreeImage_ConvertLine16To8_555;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels) da_FreeImage_ConvertLine16To8_565;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels) da_FreeImage_ConvertLine24To8;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels) da_FreeImage_ConvertLine32To8;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels, RGBQUAD* palette) da_FreeImage_ConvertLine1To16_555;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels, RGBQUAD* palette) da_FreeImage_ConvertLine4To16_555;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels, RGBQUAD* palette) da_FreeImage_ConvertLine8To16_555;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels) da_FreeImage_ConvertLine16_565_To16_555;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels) da_FreeImage_ConvertLine24To16_555;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels) da_FreeImage_ConvertLine32To16_555;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels, RGBQUAD* palette) da_FreeImage_ConvertLine1To16_565;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels, RGBQUAD* palette) da_FreeImage_ConvertLine4To16_565;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels, RGBQUAD* palette) da_FreeImage_ConvertLine8To16_565;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels) da_FreeImage_ConvertLine16_555_To16_565;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels) da_FreeImage_ConvertLine24To16_565;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels) da_FreeImage_ConvertLine32To16_565;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels, RGBQUAD* palette) da_FreeImage_ConvertLine1To24;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels, RGBQUAD* palette) da_FreeImage_ConvertLine4To24;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels, RGBQUAD* palette) da_FreeImage_ConvertLine8To24;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels) da_FreeImage_ConvertLine16To24_555;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels) da_FreeImage_ConvertLine16To24_565;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels) da_FreeImage_ConvertLine32To24;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels, RGBQUAD* palette) da_FreeImage_ConvertLine1To32;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels, RGBQUAD* palette) da_FreeImage_ConvertLine4To32;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels, RGBQUAD* palette) da_FreeImage_ConvertLine8To32;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels) da_FreeImage_ConvertLine16To32_555;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels) da_FreeImage_ConvertLine16To32_565;
alias nothrow void function(BYTE* target, BYTE* source, int width_in_pixels) da_FreeImage_ConvertLine24To32;
// Smart conversion routines ------------------------------------------------
alias nothrow FIBITMAP* function(FIBITMAP* dib) da_FreeImage_ConvertTo4Bits;
alias nothrow FIBITMAP* function(FIBITMAP* dib) da_FreeImage_ConvertTo8Bits;
alias nothrow FIBITMAP* function(FIBITMAP* dib) da_FreeImage_ConvertToGreyscale;
alias nothrow FIBITMAP* function(FIBITMAP* dib) da_FreeImage_ConvertTo16Bits555;
alias nothrow FIBITMAP* function(FIBITMAP* dib) da_FreeImage_ConvertTo16Bits565;
alias nothrow FIBITMAP* function(FIBITMAP* dib) da_FreeImage_ConvertTo24Bits;
alias nothrow FIBITMAP* function(FIBITMAP* dib) da_FreeImage_ConvertTo32Bits;
alias nothrow FIBITMAP* function(FIBITMAP* dib, FREE_IMAGE_QUANTIZE quantize) da_FreeImage_ColorQuantize;
alias nothrow FIBITMAP* function(FIBITMAP* dib, FREE_IMAGE_QUANTIZE quantize = FIQ_WUQUANT, int PaletteSize = 256, int ReserveSize = 0, RGBQUAD* ReservePalette = null) da_FreeImage_ColorQuantizeEx;
alias nothrow FIBITMAP* function(FIBITMAP* dib, BYTE T) da_FreeImage_Threshold;
alias nothrow FIBITMAP* function(FIBITMAP* dib, FREE_IMAGE_DITHER algorithm) da_FreeImage_Dither;
alias nothrow FIBITMAP* function(BYTE* bits, int width, int height, int pitch, uint bpp, uint red_mask, uint green_mask, uint blue_mask, BOOL topdown = FALSE) da_FreeImage_ConvertFromRawBits;
alias nothrow void function(BYTE* bits, FIBITMAP* dib, int pitch, uint bpp, uint red_mask, uint green_mask, uint blue_mask, BOOL topdown = FALSE) da_FreeImage_ConvertToRawBits;
alias nothrow FIBITMAP* function(FIBITMAP* dib) da_FreeImage_ConvertToFloat;
alias nothrow FIBITMAP* function(FIBITMAP* dib) da_FreeImage_ConvertToRGBF;
alias nothrow FIBITMAP* function(FIBITMAP* dib) da_FreeImage_ConvertToUINT16;
alias nothrow FIBITMAP* function(FIBITMAP* dib) da_FreeImage_ConvertToRGB16;
alias nothrow FIBITMAP* function(FIBITMAP* src, BOOL scale_linear = TRUE) da_FreeImage_ConvertToStandardType;
alias nothrow FIBITMAP* function(FIBITMAP* src, FREE_IMAGE_TYPE dst_type, BOOL scale_linear = TRUE) da_FreeImage_ConvertToType;
// tone mapping operators
alias nothrow FIBITMAP* function(FIBITMAP* dib, FREE_IMAGE_TMO tmo, double first_param = 0, double second_param = 0) da_FreeImage_ToneMapping;
alias nothrow FIBITMAP* function(FIBITMAP* src, double gamma = 2.2, double exposure = 0) da_FreeImage_TmoDrago03;
alias nothrow FIBITMAP* function(FIBITMAP* src, double intensity = 0, double contrast = 0) da_FreeImage_TmoReinhard05;
alias nothrow FIBITMAP* function(FIBITMAP* src, double intensity = 0, double contrast = 0, double adaptation = 1, double color_correction = 0) da_FreeImage_TmoReinhard05Ex;
alias nothrow FIBITMAP* function(FIBITMAP* src, double color_saturation = 0.5, double attenuation = 0.85) da_FreeImage_TmoFattal02;
// ZLib interface -----------------------------------------------------------
alias nothrow DWORD function(BYTE* target, DWORD target_size, BYTE* source, DWORD source_size) da_FreeImage_ZLibCompress;
alias nothrow DWORD function(BYTE* target, DWORD target_size, BYTE* source, DWORD source_size) da_FreeImage_ZLibUncompress;
alias nothrow DWORD function(BYTE* target, DWORD target_size, BYTE* source, DWORD source_size) da_FreeImage_ZLibGZip;
alias nothrow DWORD function(BYTE* target, DWORD target_size, BYTE* source, DWORD source_size) da_FreeImage_ZLibGUnzip;
alias nothrow DWORD function(DWORD crc, BYTE* source, DWORD source_size) da_FreeImage_ZLibCRC32;
// --------------------------------------------------------------------------
// Metadata routines --------------------------------------------------------
// --------------------------------------------------------------------------
// tag creation / destruction
alias nothrow FITAG* function() da_FreeImage_CreateTag;
alias nothrow void function(FITAG* tag) da_FreeImage_DeleteTag;
alias nothrow FITAG* function(FITAG* tag) da_FreeImage_CloneTag;
// tag getters and setters
alias nothrow const(char)* function(FITAG* tag) da_FreeImage_GetTagKey;
alias nothrow const(char)* function(FITAG* tag) da_FreeImage_GetTagDescription;
alias nothrow WORD function(FITAG* tag) da_FreeImage_GetTagID;
alias nothrow FREE_IMAGE_MDTYPE function(FITAG* tag) da_FreeImage_GetTagType;
alias nothrow DWORD function(FITAG* tag) da_FreeImage_GetTagCount;
alias nothrow DWORD function(FITAG* tag) da_FreeImage_GetTagLength;
alias nothrow const(void)* function(FITAG* tag) da_FreeImage_GetTagValue;
alias nothrow BOOL function (FITAG* tag, const(char)* key) da_FreeImage_SetTagKey;
alias nothrow BOOL function (FITAG* tag, const(char)* description) da_FreeImage_SetTagDescription;
alias nothrow BOOL function (FITAG* tag, WORD id) da_FreeImage_SetTagID;
alias nothrow BOOL function (FITAG* tag, FREE_IMAGE_MDTYPE type) da_FreeImage_SetTagType;
alias nothrow BOOL function (FITAG* tag, DWORD count) da_FreeImage_SetTagCount;
alias nothrow BOOL function (FITAG* tag, DWORD length) da_FreeImage_SetTagLength;
alias nothrow BOOL function (FITAG* tag, const(void)* value) da_FreeImage_SetTagValue;
// iterator
alias nothrow FIMETADATA* function(FREE_IMAGE_MDMODEL model, FIBITMAP* dib, FITAG** tag) da_FreeImage_FindFirstMetadata;
alias nothrow BOOL function(FIMETADATA* mdhandle, FITAG** tag) da_FreeImage_FindNextMetadata;
alias nothrow void function(FIMETADATA* mdhandle) da_FreeImage_FindCloseMetadata;
// metadata setter and getter
alias nothrow BOOL function(FREE_IMAGE_MDMODEL model, FIBITMAP* dib, const(char)* key, FITAG** tag) da_FreeImage_GetMetadata;
alias nothrow BOOL function(FREE_IMAGE_MDMODEL model, FIBITMAP* dib, const(char)* key, FITAG* tag) da_FreeImage_SetMetadata;
// helpers
alias nothrow uint function(FREE_IMAGE_MDMODEL model, FIBITMAP* dib) da_FreeImage_GetMetadataCount;
alias nothrow BOOL function(FIBITMAP* dst, FIBITMAP* src) da_FreeImage_CloneMetadata;
// tag to C string conversion
alias nothrow const(char)* function(FREE_IMAGE_MDMODEL model, FITAG* tag, char* Make = null) da_FreeImage_TagToString;
// --------------------------------------------------------------------------
// Image manipulation toolkit -----------------------------------------------
// --------------------------------------------------------------------------
// rotation and flipping
/// @deprecated see FreeImage_Rotate
alias nothrow FIBITMAP* function(FIBITMAP* dib, double angle) da_FreeImage_RotateClassic;
alias nothrow FIBITMAP* function(FIBITMAP* dib, double angle, const(void*) bkcolor = null) da_FreeImage_Rotate;
alias nothrow FIBITMAP* function(FIBITMAP* dib, double angle, double x_shift, double y_shift, double x_origin, double y_origin, BOOL use_mask) da_FreeImage_RotateEx;
alias nothrow BOOL function(FIBITMAP* dib) da_FreeImage_FlipHorizontal;
alias nothrow BOOL function(FIBITMAP* dib) da_FreeImage_FlipVertical;
alias nothrow BOOL function(const(char)* src_file, const(char)* dst_file, FREE_IMAGE_JPEG_OPERATION operation, BOOL perfect = FALSE) da_FreeImage_JPEGTransform;
alias nothrow BOOL function(const(wchar_t)* src_file, const(wchar_t)* dst_file, FREE_IMAGE_JPEG_OPERATION operation, BOOL perfect = FALSE) da_FreeImage_JPEGTransformU;
// upsampling / downsampling
alias nothrow FIBITMAP* function(FIBITMAP* dib, int dst_width, int dst_height, FREE_IMAGE_FILTER filter) da_FreeImage_Rescale;
alias nothrow FIBITMAP* function(FIBITMAP* dib, int max_pixel_size, BOOL convert = TRUE) da_FreeImage_MakeThumbnail;
// color manipulation routines (point operations)
alias nothrow BOOL function(FIBITMAP* dib, BYTE* LUT, FREE_IMAGE_COLOR_CHANNEL channel) da_FreeImage_AdjustCurve;
alias nothrow BOOL function(FIBITMAP* dib, double gamma) da_FreeImage_AdjustGamma;
alias nothrow BOOL function(FIBITMAP* dib, double percentage) da_FreeImage_AdjustBrightness;
alias nothrow BOOL function(FIBITMAP* dib, double percentage) da_FreeImage_AdjustContrast;
alias nothrow BOOL function(FIBITMAP* dib) da_FreeImage_Invert;
alias nothrow BOOL function(FIBITMAP* dib, DWORD* histo, FREE_IMAGE_COLOR_CHANNEL channel = FICC_BLACK) da_FreeImage_GetHistogram;
alias nothrow int function(BYTE* LUT, double brightness, double contrast, double gamma, BOOL invert) da_FreeImage_GetAdjustColorsLookupTable;
alias nothrow BOOL function(FIBITMAP* dib, double brightness, double contrast, double gamma, BOOL invert = FALSE) da_FreeImage_AdjustColors;
alias nothrow uint function(FIBITMAP* dib, RGBQUAD* srccolors, RGBQUAD* dstcolors, uint count, BOOL ignore_alpha, BOOL swap) da_FreeImage_ApplyColorMapping;
alias nothrow uint function(FIBITMAP* dib, RGBQUAD* color_a, RGBQUAD* color_b, BOOL ignore_alpha) da_FreeImage_SwapColors;
alias nothrow uint function(FIBITMAP* dib, BYTE* srcindices, BYTE* dstindices, uint count, BOOL swap) da_FreeImage_ApplyPaletteIndexMapping;
alias nothrow uint function(FIBITMAP* dib, BYTE* index_a, BYTE* index_b) da_FreeImage_SwapPaletteIndices;
// channel processing routines
alias nothrow FIBITMAP* function(FIBITMAP* dib, FREE_IMAGE_COLOR_CHANNEL channel) da_FreeImage_GetChannel;
alias nothrow BOOL function(FIBITMAP*dst, FIBITMAP*src, FREE_IMAGE_COLOR_CHANNEL channel) da_FreeImage_SetChannel;
alias nothrow FIBITMAP* function(FIBITMAP*src, FREE_IMAGE_COLOR_CHANNEL channel) da_FreeImage_GetComplexChannel;
alias nothrow BOOL function(FIBITMAP*dst, FIBITMAP*src, FREE_IMAGE_COLOR_CHANNEL channel) da_FreeImage_SetComplexChannel;
// copy / paste / composite routines
alias nothrow FIBITMAP* function(FIBITMAP* dib, int left, int top, int right, int bottom) da_FreeImage_Copy;
alias nothrow BOOL function(FIBITMAP*dst, FIBITMAP*src, int left, int top, int alpha) da_FreeImage_Paste;
alias nothrow FIBITMAP* function(FIBITMAP*fg, BOOL useFileBkg = FALSE, RGBQUAD* appBkColor = null, FIBITMAP*bg = null) da_FreeImage_Composite;
alias nothrow BOOL function(const(char)* src_file, const(char)* dst_file, int left, int top, int right, int bottom) da_FreeImage_JPEGCrop;
alias nothrow BOOL function(const(wchar_t)* src_file, const(wchar_t)* dst_file, int left, int top, int right, int bottom) da_FreeImage_JPEGCropU;
alias nothrow BOOL function(FIBITMAP* dib) da_FreeImage_PreMultiplyWithAlpha;
// background filling routines
alias nothrow BOOL function(FIBITMAP* dib, const(void*) color, int options = 0) da_FreeImage_FillBackground;
alias nothrow FIBITMAP* function(FIBITMAP*src, int left, int top, int right, int bottom, const(void*) color, int options = 0) da_FreeImage_EnlargeCanvas;
alias nothrow FIBITMAP* function(int width, int height, int bpp, const(RGBQUAD)* color, int options = 0, const(RGBQUAD)* palette = null, uint red_mask = 0, uint green_mask = 0, uint blue_mask = 0) da_FreeImage_AllocateEx;
alias nothrow FIBITMAP* function(FREE_IMAGE_TYPE type, int width, int height, int bpp, const(void*) color, int options = 0, const(RGBQUAD)* palette = null, uint red_mask = 0, uint green_mask = 0, uint blue_mask = 0) da_FreeImage_AllocateExT;
// miscellaneous algorithms
alias nothrow FIBITMAP* function(FIBITMAP*Laplacian, int ncycle = 3) da_FreeImage_MultigridPoissonSolver;
}
__gshared
{
da_FreeImage_Initialise FreeImage_Initialise;
da_FreeImage_DeInitialise FreeImage_DeInitialise;
da_FreeImage_GetVersion FreeImage_GetVersion;
da_FreeImage_GetCopyrightMessage FreeImage_GetCopyrightMessage;
da_FreeImage_SetOutputMessageStdCall FreeImage_SetOutputMessageStdCall;
da_FreeImage_SetOutputMessage FreeImage_SetOutputMessage;
// interacts badly with stdcall mangling
da_FreeImage_OutputMessageProc FreeImage_OutputMessageProc;
da_FreeImage_Allocate FreeImage_Allocate;
da_FreeImage_AllocateT FreeImage_AllocateT;
da_FreeImage_Clone FreeImage_Clone;
da_FreeImage_Unload FreeImage_Unload;
da_FreeImage_HasPixels FreeImage_HasPixels;
da_FreeImage_Load FreeImage_Load;
da_FreeImage_LoadU FreeImage_LoadU;
da_FreeImage_LoadFromHandle FreeImage_LoadFromHandle;
da_FreeImage_Save FreeImage_Save;
da_FreeImage_SaveU FreeImage_SaveU;
da_FreeImage_SaveToHandle FreeImage_SaveToHandle;
da_FreeImage_OpenMemory FreeImage_OpenMemory;
da_FreeImage_CloseMemory FreeImage_CloseMemory;
da_FreeImage_LoadFromMemory FreeImage_LoadFromMemory;
da_FreeImage_SaveToMemory FreeImage_SaveToMemory;
da_FreeImage_TellMemory FreeImage_TellMemory;
da_FreeImage_SeekMemory FreeImage_SeekMemory;
da_FreeImage_AcquireMemory FreeImage_AcquireMemory;
da_FreeImage_ReadMemory FreeImage_ReadMemory;
da_FreeImage_WriteMemory FreeImage_WriteMemory;
da_FreeImage_LoadMultiBitmapFromMemory FreeImage_LoadMultiBitmapFromMemory;
da_FreeImage_SaveMultiBitmapToMemory FreeImage_SaveMultiBitmapToMemory;
da_FreeImage_RegisterLocalPlugin FreeImage_RegisterLocalPlugin;
static if (Derelict_OS_Windows)
da_FreeImage_RegisterExternalPlugin FreeImage_RegisterExternalPlugin;
da_FreeImage_GetFIFCount FreeImage_GetFIFCount;
da_FreeImage_SetPluginEnabled FreeImage_SetPluginEnabled;
da_FreeImage_IsPluginEnabled FreeImage_IsPluginEnabled;
da_FreeImage_GetFIFFromFormat FreeImage_GetFIFFromFormat;
da_FreeImage_GetFIFFromMime FreeImage_GetFIFFromMime;
da_FreeImage_GetFormatFromFIF FreeImage_GetFormatFromFIF;
da_FreeImage_GetFIFExtensionList FreeImage_GetFIFExtensionList;
da_FreeImage_GetFIFDescription FreeImage_GetFIFDescription;
da_FreeImage_GetFIFRegExpr FreeImage_GetFIFRegExpr;
da_FreeImage_GetFIFMimeType FreeImage_GetFIFMimeType;
da_FreeImage_GetFIFFromFilename FreeImage_GetFIFFromFilename;
da_FreeImage_GetFIFFromFilenameU FreeImage_GetFIFFromFilenameU;
da_FreeImage_FIFSupportsReading FreeImage_FIFSupportsReading;
da_FreeImage_FIFSupportsWriting FreeImage_FIFSupportsWriting;
da_FreeImage_FIFSupportsExportBPP FreeImage_FIFSupportsExportBPP;
da_FreeImage_FIFSupportsExportType FreeImage_FIFSupportsExportType;
da_FreeImage_FIFSupportsICCProfiles FreeImage_FIFSupportsICCProfiles;
da_FreeImage_FIFSupportsNoPixels FreeImage_FIFSupportsNoPixels;
da_FreeImage_OpenMultiBitmap FreeImage_OpenMultiBitmap;
da_FreeImage_OpenMultiBitmapFromHandle FreeImage_OpenMultiBitmapFromHandle;
da_FreeImage_SaveMultiBitmapToHandle FreeImage_SaveMultiBitmapToHandle;
da_FreeImage_CloseMultiBitmap FreeImage_CloseMultiBitmap;
da_FreeImage_GetPageCount FreeImage_GetPageCount;
da_FreeImage_AppendPage FreeImage_AppendPage;
da_FreeImage_InsertPage FreeImage_InsertPage;
da_FreeImage_DeletePage FreeImage_DeletePage;
da_FreeImage_LockPage FreeImage_LockPage;
da_FreeImage_UnlockPage FreeImage_UnlockPage;
da_FreeImage_MovePage FreeImage_MovePage;
da_FreeImage_GetLockedPageNumbers FreeImage_GetLockedPageNumbers;
da_FreeImage_GetFileType FreeImage_GetFileType;
da_FreeImage_GetFileTypeU FreeImage_GetFileTypeU;
da_FreeImage_GetFileTypeFromHandle FreeImage_GetFileTypeFromHandle;
da_FreeImage_GetFileTypeFromMemory FreeImage_GetFileTypeFromMemory;
da_FreeImage_GetImageType FreeImage_GetImageType;
da_FreeImage_IsLittleEndian FreeImage_IsLittleEndian;
da_FreeImage_LookupX11Color FreeImage_LookupX11Color;
da_FreeImage_LookupSVGColor FreeImage_LookupSVGColor;
da_FreeImage_GetBits FreeImage_GetBits;
da_FreeImage_GetScanLine FreeImage_GetScanLine;
da_FreeImage_GetPixelIndex FreeImage_GetPixelIndex;
da_FreeImage_GetPixelColor FreeImage_GetPixelColor;
da_FreeImage_SetPixelIndex FreeImage_SetPixelIndex;
da_FreeImage_SetPixelColor FreeImage_SetPixelColor;
da_FreeImage_GetColorsUsed FreeImage_GetColorsUsed;
da_FreeImage_GetBPP FreeImage_GetBPP;
da_FreeImage_GetWidth FreeImage_GetWidth;
da_FreeImage_GetHeight FreeImage_GetHeight;
da_FreeImage_GetLine FreeImage_GetLine;
da_FreeImage_GetPitch FreeImage_GetPitch;
da_FreeImage_GetDIBSize FreeImage_GetDIBSize;
da_FreeImage_GetPalette FreeImage_GetPalette;
da_FreeImage_GetDotsPerMeterX FreeImage_GetDotsPerMeterX;
da_FreeImage_GetDotsPerMeterY FreeImage_GetDotsPerMeterY;
da_FreeImage_SetDotsPerMeterX FreeImage_SetDotsPerMeterX;
da_FreeImage_SetDotsPerMeterY FreeImage_SetDotsPerMeterY;
da_FreeImage_GetInfoHeader FreeImage_GetInfoHeader;
da_FreeImage_GetInfo FreeImage_GetInfo;
da_FreeImage_GetColorType FreeImage_GetColorType;
da_FreeImage_GetRedMask FreeImage_GetRedMask;
da_FreeImage_GetGreenMask FreeImage_GetGreenMask;
da_FreeImage_GetBlueMask FreeImage_GetBlueMask;
da_FreeImage_GetTransparencyCount FreeImage_GetTransparencyCount;
da_FreeImage_GetTransparencyTable FreeImage_GetTransparencyTable;
da_FreeImage_SetTransparent FreeImage_SetTransparent;
da_FreeImage_SetTransparencyTable FreeImage_SetTransparencyTable;
da_FreeImage_IsTransparent FreeImage_IsTransparent;
da_FreeImage_SetTransparentIndex FreeImage_SetTransparentIndex;
da_FreeImage_GetTransparentIndex FreeImage_GetTransparentIndex;
da_FreeImage_HasBackgroundColor FreeImage_HasBackgroundColor;
da_FreeImage_GetBackgroundColor FreeImage_GetBackgroundColor;
da_FreeImage_SetBackgroundColor FreeImage_SetBackgroundColor;
da_FreeImage_GetThumbnail FreeImage_GetThumbnail;
da_FreeImage_SetThumbnail FreeImage_SetThumbnail;
da_FreeImage_GetICCProfile FreeImage_GetICCProfile;
da_FreeImage_CreateICCProfile FreeImage_CreateICCProfile;
da_FreeImage_DestroyICCProfile FreeImage_DestroyICCProfile;
da_FreeImage_ConvertLine1To4 FreeImage_ConvertLine1To4;
da_FreeImage_ConvertLine8To4 FreeImage_ConvertLine8To4;
da_FreeImage_ConvertLine16To4_555 FreeImage_ConvertLine16To4_555;
da_FreeImage_ConvertLine16To4_565 FreeImage_ConvertLine16To4_565;
da_FreeImage_ConvertLine24To4 FreeImage_ConvertLine24To4;
da_FreeImage_ConvertLine32To4 FreeImage_ConvertLine32To4;
da_FreeImage_ConvertLine1To8 FreeImage_ConvertLine1To8;
da_FreeImage_ConvertLine4To8 FreeImage_ConvertLine4To8;
da_FreeImage_ConvertLine16To8_555 FreeImage_ConvertLine16To8_555;
da_FreeImage_ConvertLine16To8_565 FreeImage_ConvertLine16To8_565;
da_FreeImage_ConvertLine24To8 FreeImage_ConvertLine24To8;
da_FreeImage_ConvertLine32To8 FreeImage_ConvertLine32To8;
da_FreeImage_ConvertLine1To16_555 FreeImage_ConvertLine1To16_555;
da_FreeImage_ConvertLine4To16_555 FreeImage_ConvertLine4To16_555;
da_FreeImage_ConvertLine8To16_555 FreeImage_ConvertLine8To16_555;
da_FreeImage_ConvertLine16_565_To16_555 FreeImage_ConvertLine16_565_To16_555;
da_FreeImage_ConvertLine24To16_555 FreeImage_ConvertLine24To16_555;
da_FreeImage_ConvertLine32To16_555 FreeImage_ConvertLine32To16_555;
da_FreeImage_ConvertLine1To16_565 FreeImage_ConvertLine1To16_565;
da_FreeImage_ConvertLine4To16_565 FreeImage_ConvertLine4To16_565;
da_FreeImage_ConvertLine8To16_565 FreeImage_ConvertLine8To16_565;
da_FreeImage_ConvertLine16_555_To16_565 FreeImage_ConvertLine16_555_To16_565;
da_FreeImage_ConvertLine24To16_565 FreeImage_ConvertLine24To16_565;
da_FreeImage_ConvertLine32To16_565 FreeImage_ConvertLine32To16_565;
da_FreeImage_ConvertLine1To24 FreeImage_ConvertLine1To24;
da_FreeImage_ConvertLine4To24 FreeImage_ConvertLine4To24;
da_FreeImage_ConvertLine8To24 FreeImage_ConvertLine8To24;
da_FreeImage_ConvertLine16To24_555 FreeImage_ConvertLine16To24_555;
da_FreeImage_ConvertLine16To24_565 FreeImage_ConvertLine16To24_565;
da_FreeImage_ConvertLine32To24 FreeImage_ConvertLine32To24;
da_FreeImage_ConvertLine1To32 FreeImage_ConvertLine1To32;
da_FreeImage_ConvertLine4To32 FreeImage_ConvertLine4To32;
da_FreeImage_ConvertLine8To32 FreeImage_ConvertLine8To32;
da_FreeImage_ConvertLine16To32_555 FreeImage_ConvertLine16To32_555;
da_FreeImage_ConvertLine16To32_565 FreeImage_ConvertLine16To32_565;
da_FreeImage_ConvertLine24To32 FreeImage_ConvertLine24To32;
da_FreeImage_ConvertTo4Bits FreeImage_ConvertTo4Bits;
da_FreeImage_ConvertTo8Bits FreeImage_ConvertTo8Bits;
da_FreeImage_ConvertToGreyscale FreeImage_ConvertToGreyscale;
da_FreeImage_ConvertTo16Bits555 FreeImage_ConvertTo16Bits555;
da_FreeImage_ConvertTo16Bits565 FreeImage_ConvertTo16Bits565;
da_FreeImage_ConvertTo24Bits FreeImage_ConvertTo24Bits;
da_FreeImage_ConvertTo32Bits FreeImage_ConvertTo32Bits;
da_FreeImage_ColorQuantize FreeImage_ColorQuantize;
da_FreeImage_ColorQuantizeEx FreeImage_ColorQuantizeEx;
da_FreeImage_Threshold FreeImage_Threshold;
da_FreeImage_Dither FreeImage_Dither;
da_FreeImage_ConvertFromRawBits FreeImage_ConvertFromRawBits;
da_FreeImage_ConvertToRawBits FreeImage_ConvertToRawBits;
da_FreeImage_ConvertToFloat FreeImage_ConvertToFloat;
da_FreeImage_ConvertToRGBF FreeImage_ConvertToRGBF;
da_FreeImage_ConvertToUINT16 FreeImage_ConvertToUINT16;
da_FreeImage_ConvertToRGB16 FreeImage_ConvertToRGB16;
da_FreeImage_ConvertToStandardType FreeImage_ConvertToStandardType;
da_FreeImage_ConvertToType FreeImage_ConvertToType;
da_FreeImage_ToneMapping FreeImage_ToneMapping;
da_FreeImage_TmoDrago03 FreeImage_TmoDrago03;
da_FreeImage_TmoReinhard05 FreeImage_TmoReinhard05;
da_FreeImage_TmoReinhard05Ex FreeImage_TmoReinhard05Ex;
da_FreeImage_TmoFattal02 FreeImage_TmoFattal02;
da_FreeImage_ZLibCompress FreeImage_ZLibCompress;
da_FreeImage_ZLibUncompress FreeImage_ZLibUncompress;
da_FreeImage_ZLibGZip FreeImage_ZLibGZip;
da_FreeImage_ZLibGUnzip FreeImage_ZLibGUnzip;
da_FreeImage_ZLibCRC32 FreeImage_ZLibCRC32;
// Commented out because of weird "Error: forward reference of FITAG"
da_FreeImage_CreateTag FreeImage_CreateTag;
da_FreeImage_DeleteTag FreeImage_DeleteTag;
da_FreeImage_CloneTag FreeImage_CloneTag;
da_FreeImage_GetTagKey FreeImage_GetTagKey;
da_FreeImage_GetTagDescription FreeImage_GetTagDescription;
da_FreeImage_GetTagID FreeImage_GetTagID;
da_FreeImage_GetTagType FreeImage_GetTagType;
da_FreeImage_GetTagCount FreeImage_GetTagCount;
da_FreeImage_GetTagLength FreeImage_GetTagLength;
da_FreeImage_GetTagValue FreeImage_GetTagValue;
da_FreeImage_SetTagKey FreeImage_SetTagKey;
da_FreeImage_SetTagDescription FreeImage_SetTagDescription;
da_FreeImage_SetTagID FreeImage_SetTagID;
da_FreeImage_SetTagType FreeImage_SetTagType;
da_FreeImage_SetTagCount FreeImage_SetTagCount;
da_FreeImage_SetTagLength FreeImage_SetTagLength;
da_FreeImage_SetTagValue FreeImage_SetTagValue;
da_FreeImage_FindFirstMetadata FreeImage_FindFirstMetadata;
da_FreeImage_FindNextMetadata FreeImage_FindNextMetadata;
da_FreeImage_FindCloseMetadata FreeImage_FindCloseMetadata;
da_FreeImage_GetMetadata FreeImage_GetMetadata;
da_FreeImage_SetMetadata FreeImage_SetMetadata;
da_FreeImage_GetMetadataCount FreeImage_GetMetadataCount;
da_FreeImage_CloneMetadata FreeImage_CloneMetadata;
da_FreeImage_TagToString FreeImage_TagToString;
da_FreeImage_RotateClassic FreeImage_RotateClassic;
da_FreeImage_Rotate FreeImage_Rotate;
da_FreeImage_RotateEx FreeImage_RotateEx;
da_FreeImage_FlipHorizontal FreeImage_FlipHorizontal;
da_FreeImage_FlipVertical FreeImage_FlipVertical;
da_FreeImage_JPEGTransform FreeImage_JPEGTransform;
da_FreeImage_JPEGTransformU FreeImage_JPEGTransformU;
da_FreeImage_Rescale FreeImage_Rescale;
da_FreeImage_MakeThumbnail FreeImage_MakeThumbnail;
da_FreeImage_AdjustCurve FreeImage_AdjustCurve;
da_FreeImage_AdjustGamma FreeImage_AdjustGamma;
da_FreeImage_AdjustBrightness FreeImage_AdjustBrightness;
da_FreeImage_AdjustContrast FreeImage_AdjustContrast;
da_FreeImage_Invert FreeImage_Invert;
da_FreeImage_GetHistogram FreeImage_GetHistogram;
da_FreeImage_GetAdjustColorsLookupTable FreeImage_GetAdjustColorsLookupTable;
da_FreeImage_AdjustColors FreeImage_AdjustColors;
da_FreeImage_ApplyColorMapping FreeImage_ApplyColorMapping;
da_FreeImage_SwapColors FreeImage_SwapColors;
da_FreeImage_ApplyPaletteIndexMapping FreeImage_ApplyPaletteIndexMapping;
da_FreeImage_SwapPaletteIndices FreeImage_SwapPaletteIndices;
da_FreeImage_GetChannel FreeImage_GetChannel;
da_FreeImage_SetChannel FreeImage_SetChannel;
da_FreeImage_GetComplexChannel FreeImage_GetComplexChannel;
da_FreeImage_SetComplexChannel FreeImage_SetComplexChannel;
da_FreeImage_Copy FreeImage_Copy;
da_FreeImage_Paste FreeImage_Paste;
da_FreeImage_Composite FreeImage_Composite;
da_FreeImage_JPEGCrop FreeImage_JPEGCrop;
da_FreeImage_JPEGCropU FreeImage_JPEGCropU;
da_FreeImage_PreMultiplyWithAlpha FreeImage_PreMultiplyWithAlpha;
da_FreeImage_FillBackground FreeImage_FillBackground;
da_FreeImage_EnlargeCanvas FreeImage_EnlargeCanvas;
da_FreeImage_AllocateEx FreeImage_AllocateEx;
da_FreeImage_AllocateExT FreeImage_AllocateExT;
da_FreeImage_MultigridPoissonSolver FreeImage_MultigridPoissonSolver;
}
|
D
|
<?xml version="1.0" encoding="ASCII" standalone="no"?>
<di:SashWindowsMngr xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmi:version="2.0">
<pageList>
<availablePage>
<emfPageIdentifier href="VAR_20_agm-4547951141.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</availablePage>
</pageList>
<sashModel currentSelection="//@sashModel/@windows.0/@children.0">
<windows>
<children xsi:type="di:TabFolder">
<children>
<emfPageIdentifier href="VAR_20_agm-4547951141.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</children>
</children>
</windows>
</sashModel>
</di:SashWindowsMngr>
|
D
|
import std.stdio;
import std.string;
import std.conv;
import std.algorithm;
import std.range;
import std.format;
import std.concurrency;
void main(string[] args)
{
stdin.byLine.map!((x){
int[4] a;
x.formattedRead("%d-%d,%d-%d", a[0], a[1], a[2], a[3]);
return a;
}).count!(a => (a[0] >= a[2] && a[1] <= a[3]) || (a[2] >= a[0] && a[3] <= a[1]))
.writeln;
}
|
D
|
/* typinf.d -- D runtime type identification
* Copyright (C) 2018 Free Software Foundation, Inc.
*
* GCC is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* GCC is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GCC; see the file COPYING3. If not see
* <http://www.gnu.org/licenses/>.
*/
module dmd.typinf;
import dmd.dscope;
import dmd.globals;
import dmd.mtype;
/****************************************************
* Gets the type of the `TypeInfo` object associated with `t`
* Params:
* loc = the location for reporting line nunbers in errors
* t = the type to get the type of the `TypeInfo` object for
* sc = the scope
* Returns:
* The type of the `TypeInfo` object associated with `t`
*/
extern (C++) Type getTypeInfoType(Loc loc, Type t, Scope* sc);
|
D
|
/// Generate by tools
module org.restlet.data.Range;
import java.lang.exceptions;
public class Range
{
public this()
{
implMissing();
}
}
|
D
|
/++
This internal module, with the help of the luad.conversions package, takes care of converting between D and Lua types.
The conversion rules are as follows, where conversion goes both ways:
$(DL
$(DT boolean
$(DD bool)
)
$(DT number
$(DD lua_Integer (default int))
$(DD lua_Number (default double))
)
$(DT string
$(DD string, const(char)[], char[])
$(DD const(char)*)
$(DD char)
$(DD immutable(void)[], const(void)[], void[] (binary data))
)
$(DT table
$(DD $(LINKSUBMODULE2 conversions,assocarrays,associative arrays))
$(DD $(LINKSUBMODULE2 conversions,arrays,arrays))
$(DD $(LINKSUBMODULE2 conversions,structs,structs))
$(DD $(LINKMODULE2 table,LuaTable))
)
$(DT function (see $(LINKSUBMODULE conversions,functions))
$(DD function pointers)
$(DD delegates)
$(DD $(LINKMODULE2 lfunction,LuaFunction))
)
$(DT userdata
$(DD $(LINKSUBMODULE2 conversions,classes,classes))
)
$(DT nil
$(DD the special identifier nil)
$(DD null class references)
)
$(DT any of the above
$(DD $(LINKMODULE2 base,LuaObject))
$(DD $(LINKMODULE2 dynamic,LuaDynamic))
$(DD $(LINKSUBMODULE2 conversions,variant,Algebraic) (when given a compatible value))
)
)
The conversions are checked in the specified order. For example, even though bool is implicitly convertible
to lua_Integer, it will be converted to a boolean because boolean has precedence.
wchar and dchar are explicitly disallowed. Lua strings consist of 8-bit characters, if you want to push UTF-16 or UTF-32 strings, convert to UTF-8 first.
Additionally, the following types are pushable to Lua, but can't be retrieved back:
$(DL
$(DT function
$(DD lua_CFunction)
)
)
+/
module luad.stack;
import std.traits;
import std.typecons;
import luad.c.all;
import luad.base;
import luad.table;
import luad.lfunction;
import luad.dynamic;
import luad.conversions.functions;
import luad.conversions.arrays;
import luad.conversions.structs;
import luad.conversions.assocarrays;
import luad.conversions.classes;
import luad.conversions.variant;
/**
* Push a value of any type to the stack.
* Params:
* L = stack to push to
* value = value to push
*/
void pushValue(T)(lua_State* L, T value)
{
static if(is(T : LuaObject))
value.push();
else static if(is(T == LuaDynamic))
value.object.push();
else static if(is(T == Nil))
lua_pushnil(L);
else static if(is(T == bool))
lua_pushboolean(L, cast(bool)value);
else static if(is(T == char))
lua_pushlstring(L, &value, 1);
else static if(is(T : lua_Integer))
lua_pushinteger(L, value);
else static if(is(T : lua_Number))
lua_pushnumber(L, value);
else static if(is(T : const(char)[]))
lua_pushlstring(L, value.ptr, value.length);
else static if(isVoidArray!T)
lua_pushlstring(L, cast(const(char)*)value.ptr, value.length);
else static if(is(T : const(char)*))
lua_pushstring(L, value);
else static if(isVariant!T)
pushVariant(L, value);
else static if(isAssociativeArray!T)
pushAssocArray(L, value);
else static if(isArray!T)
pushArray(L, value);
else static if(is(T == struct))
pushStruct(L, value);
// luaCFunction's are directly pushed
else static if(is(T == lua_CFunction) && functionLinkage!T == "C")
lua_pushcfunction(L, value);
// other functions are wrapped
else static if(isSomeFunction!T)
pushFunction(L, value);
else static if(is(T == class))
{
if(value is null)
lua_pushnil(L);
else
pushClassInstance(L, value);
}
else
static assert(false, "Unsupported type `" ~ T.stringof ~ "` in stack push operation");
}
template isVoidArray(T)
{
enum isVoidArray = is(T == void[]) ||
is(T == const(void)[]) ||
is(T == const(void[])) ||
is(T == immutable(void)[]) ||
is(T == immutable(void[]));
}
/**
* Get the associated Lua type for T.
* Returns: Lua type for T
*/
template luaTypeOf(T)
{
static if(is(T == bool))
enum luaTypeOf = LUA_TBOOLEAN;
else static if(is(T == Nil))
enum luaTypeOf = LUA_TNIL;
else static if(is(T : const(char)[]) || is(T : const(char)*) || is(T == char) || isVoidArray!T)
enum luaTypeOf = LUA_TSTRING;
else static if(is(T : lua_Integer) || is(T : lua_Number))
enum luaTypeOf = LUA_TNUMBER;
else static if(isSomeFunction!T || is(T == LuaFunction))
enum luaTypeOf = LUA_TFUNCTION;
else static if(isArray!T || isAssociativeArray!T || is(T == struct) || is(T == LuaTable))
enum luaTypeOf = LUA_TTABLE;
else static if(is(T : Object))
enum luaTypeOf = LUA_TUSERDATA;
else
static assert(false, "No Lua type defined for `" ~ T.stringof ~ "`");
}
// generic type mismatch message
private void defaultTypeMismatch(lua_State* L, int idx, int expectedType)
{
luaL_error(L, "expected %s, got %s", lua_typename(L, expectedType), luaL_typename(L, idx));
}
// type mismatch for function arguments of unexpected type
private void argumentTypeMismatch(lua_State* L, int idx, int expectedType)
{
luaL_typerror(L, idx, lua_typename(L, expectedType));
}
/**
* Get a value of any type from the stack.
* Params:
* T = type of value
* typeMismatchHandler = function called to produce an error in case of an invalid conversion.
* L = stack to get from
* idx = value stack index
*/
T getValue(T, alias typeMismatchHandler = defaultTypeMismatch)(lua_State* L, int idx)
{
debug //ensure unchanged stack
{
int _top = lua_gettop(L);
scope(success) assert(lua_gettop(L) == _top);
}
//ambiguous types
static if(is(T == wchar) || is(T : const(wchar)[]) ||
is(T == dchar) || is(T : const(dchar)[]))
{
static assert("Ambiguous type " ~ T.stringof ~ " in stack push operation. Consider converting before pushing.");
}
static if(!is(T == LuaObject) && !is(T == LuaDynamic) && !isVariant!T)
{
int type = lua_type(L, idx);
enum expectedType = luaTypeOf!T;
if(type != expectedType)
typeMismatchHandler(L, idx, expectedType);
}
static if(is(T == LuaFunction)) // WORKAROUND: bug #6036
{
LuaFunction func;
func.object = LuaObject(L, idx);
return func;
}
else static if(is(T == LuaDynamic)) // ditto
{
LuaDynamic obj;
obj.object = LuaObject(L, idx);
return obj;
}
else static if(is(T : LuaObject))
return T(L, idx);
else static if(is(T == Nil))
return nil;
else static if(is(T == bool))
return lua_toboolean(L, idx);
else static if(is(T == char))
return *lua_tostring(L, idx); // TODO: better define this
else static if(is(T : lua_Integer))
return cast(T)lua_tointeger(L, idx);
else static if(is(T : lua_Number))
return cast(T)lua_tonumber(L, idx);
else static if(is(T : const(char)[]) || isVoidArray!T)
{
size_t len;
const(char)* str = lua_tolstring(L, idx, &len);
static if(is(T == char[]) || is(T == void[]))
return str[0 .. len].dup;
else
return str[0 .. len].idup;
}
else static if(is(T : const(char)*))
return lua_tostring(L, idx);
else static if(isAssociativeArray!T)
return getAssocArray!T(L, idx);
else static if(isArray!T)
return getArray!T(L, idx);
else static if(isVariant!T)
{
if(!isAllowedType!T(L, idx))
luaL_error(L, "Type not allowed in Variant: %s", luaL_typename(L, idx));
return getVariant!T(L, idx);
}
else static if(is(T == struct))
return getStruct!T(L, idx);
else static if(isSomeFunction!T)
return getFunction!T(L, idx);
else static if(is(T : Object))
return getClassInstance!T(L, idx);
else
{
static assert(false, "Unsupported type `" ~ T.stringof ~ "` in stack read operation");
}
}
/**
* Same as calling getValue!(T, typeMismatchHandler)(L, -1), then popping one value from the stack.
* See_Also: getValue
*/
T popValue(T, alias typeMismatchHandler = defaultTypeMismatch)(lua_State* L)
{
scope(success) lua_pop(L, 1);
return getValue!(T, typeMismatchHandler)(L, -1);
}
/**
* Pop a number of elements from the stack.
* Params:
* T = wrapper type to use
* L = stack to pop from
* n = number of elements to pop
* Returns:
* array of popped elements, or a null array if n = 0
*/
T[] popStack(T = LuaObject)(lua_State* L, size_t n)
{
if(n == 0) // Don't allocate an array in this case
return null;
auto stack = new T[n];
foreach(i; 0 .. n)
{
stack[i] = getValue!T(L, cast(int)(-n + i));
}
lua_pop(L, cast(int)n);
return stack;
}
/// Get a function argument from the stack.
auto getArgument(T, int narg)(lua_State* L, int idx)
{
alias ParameterTypeTuple!T Args;
static if(narg == -1) // varargs causes this
alias ForeachType!(Args[$-1]) Arg;
else
alias Args[narg] Arg;
static if(is(typeof(Variadic.TYPESAFE)))
enum isVarargs = variadicFunctionStyle!T == Variadic.TYPESAFE;
else // Phobos >= 2.055
enum isVarargs = variadicFunctionStyle!T == Variadic.typesafe;
static if(isVarargs && narg == Args.length-1)
{
alias Args[narg] LastArg;
alias ForeachType!LastArg ElemType;
auto top = lua_gettop(L);
auto size = top - idx + 1;
LastArg result = new LastArg(size);
foreach(i; 0 .. size)
{
result[i] = getArgument!(T, -1)(L, idx + i);
}
return result;
}
else static if(is(Arg == const(char)[]) || is(Arg == const(void)[]) ||
is(Arg == const(char[])) || is(Arg == const(void[])))
{
if(lua_type(L, idx) != LUA_TSTRING)
argumentTypeMismatch(L, idx, LUA_TSTRING);
size_t len;
const(char)* cstr = lua_tolstring(L, idx, &len);
return cstr[0 .. len];
}
else
return getValue!(Arg, argumentTypeMismatch)(L, idx);
}
template isVariableReturnType(T)
{
enum isVariableReturnType = is(T : const(LuaObject)[]);
}
/// Used for getting a suitable nresults argument to lua_call or lua_pcall.
template returnTypeSize(T)
{
static if(isVariableReturnType!T)
enum returnTypeSize = LUA_MULTRET;
else static if(isTuple!T)
enum returnTypeSize = T.Types.length;
else static if(isStaticArray!T)
enum returnTypeSize = T.length;
else static if(is(T == void))
enum returnTypeSize = 0;
else
enum returnTypeSize = 1;
}
/**
* Pop return values from stack.
* Defaults to popValue, but has special handling for LuaObject[], Tuple!(...), static arrays and void.
* Params:
* nret = number of return values
* Returns:
* Return value, collection of return values, or nothing
*/
T popReturnValues(T)(lua_State* L, size_t nret)
{
static if(isVariableReturnType!T)
return popStack(L, nret);
else static if(isTuple!T)
{
if(nret < T.Types.length)
luaL_error(L, "expected %d return values, got %d", T.Types.length, nret);
return popTuple!T(L);
}
else static if(isStaticArray!T)
{
T ret;
fillStaticArray(L, ret);
return ret;
}
else static if(is(T == void))
return;
else
{
if(nret < 1)
luaL_error(L, "expected return value of type %s, got nil", lua_typename(L, luaTypeOf!T));
return popValue!T(L);
}
}
/**
* Push return values to the stack.
* Defaults to pushValue, but has special handling for LuaObject[], Tuple!(...) and static arrays.
*/
int pushReturnValues(T)(lua_State* L, T value)
{
static if(isVariableReturnType!T)
{
foreach(obj; value)
{
assert(obj.state == L);
obj.push();
}
return value.length;
}
else static if(isTuple!T)
{
pushTuple(L, value);
return T.Types.length;
}
else static if(isStaticArray!T)
{
pushStaticArray(L, value);
return value.length;
}
else
{
pushValue(L, value);
return 1;
}
}
/// Pops a Tuple from the values at the top of the stack.
T popTuple(T)(lua_State* L) if(isTuple!T)
{
T tup;
foreach(i, Elem; T.Types)
tup[i] = getValue!Elem(L, cast(int)(-T.Types.length + i));
lua_pop(L, T.Types.length);
return tup;
}
/// Pushes all the values in a Tuple to the stack.
void pushTuple(T)(lua_State* L, ref T tup) if(isTuple!T)
{
foreach(i, Elem; T.Types)
pushValue(L, tup[i]);
}
/**
* Call a Lua function and handle its return values.
* Params:
* T = type of return value or container of return values
* nargs = number of arguments
* Returns:
* Zero, one or all return values as T, taking into account void, LuaObject[] and Tuple returns
*/
T callWithRet(T)(lua_State* L, int nargs)
{
static if(isVariableReturnType!T)
auto frame = lua_gettop(L) - nargs - 1; // the size of the stack before arguments and the function
lua_call(L, nargs, returnTypeSize!T);
static if(isVariableReturnType!T)
auto nret = lua_gettop(L) - frame;
else
auto nret = returnTypeSize!T;
return popReturnValues!T(L, nret);
}
private extern(C) int printf(const(char)* fmt, ...);
/// Print the Lua stack to stdout.
void printStack(lua_State* L)
{
auto top = lua_gettop(L);
foreach(n; 0 .. top)
{
auto str = luaL_tolstring(L, n + 1, null);
printf("\t[%d] %s (%s)\r\n", n + 1, str, luaL_typename(L, n + 1));
}
lua_pop(L, top); // luaL_tolstring always pushes one
}
version(unittest) import luad.testing;
unittest
{
lua_State* L = luaL_newstate();
scope(success) lua_close(L);
// pushValue and popValue
//number
pushValue(L, cast(ubyte)123);
assert(lua_isnumber(L, -1) && (popValue!ubyte(L) == 123));
pushValue(L, cast(short)123);
assert(lua_isnumber(L, -1) && (popValue!short(L) == 123));
pushValue(L, 123);
assert(lua_isnumber(L, -1) && (popValue!int(L) == 123));
pushValue(L, 123UL);
assert(lua_isnumber(L, -1) && (popValue!ulong(L) == 123));
pushValue(L, 1.2f);
assert(lua_isnumber(L, -1) && (popValue!float(L) == 1.2f));
pushValue(L, 1.23);
assert(lua_isnumber(L, -1) && (popValue!double(L) == 1.23));
//string
string istr = "foobar";
pushValue(L, istr);
assert(lua_isstring(L, -1) && (popValue!string(L) == "foobar"));
char[] str = "baz".dup;
pushValue(L, str);
assert(lua_isstring(L, -1) && (popValue!(char[])(L) == "baz"));
const(char)* cstr = "hi";
pushValue(L, cstr);
assert(lua_isstring(L, -1) && (strcmp(cstr, popValue!(const(char)*)(L)) == 0));
//char
pushValue(L, '\t');
assert(lua_isstring(L, -1) && getValue!string(L, -1) == "\t");
assert(popValue!char(L) == '\t');
//boolean
pushValue(L, true);
assert(lua_isboolean(L, -1) && (popValue!bool(L) == true));
assert(lua_gettop(L) == 0, "bad popValue semantics for primitives");
//void arrays
immutable void[] iarr = "foobar";
pushValue(L, iarr);
assert(lua_isstring(L, -1) && popValue!(typeof(iarr))(L) == "foobar");
void[] arr ="baz".dup;
pushValue(L, arr);
assert(lua_isstring(L, -1) && popValue!(void[])(L) == "baz");
//popStack
extern(C) static int luacfunc(lua_State* L)
{
return 0;
}
pushValue(L, &luacfunc);
pushValue(L, "test");
pushValue(L, 123);
pushValue(L, true);
assert(lua_gettop(L) == 4);
auto stack = popStack(L, lua_gettop(L));
assert(lua_gettop(L) == 0);
assert(stack[0].type == LuaType.Function);
assert(stack[1].type == LuaType.String);
assert(stack[2].type == LuaType.Number);
assert(stack[3].type == LuaType.Boolean);
}
|
D
|
instance DIA_SLD_751_Soeldner_INTRO(C_Info)
{
npc = SLD_751_Soeldner;
condition = DIA_SLD_751_Soeldner_INTRO_CONDITION;
information = DIA_SLD_751_Soeldner_INTRO_INFO;
important = 1;
permanent = 0;
};
func int DIA_SLD_751_Soeldner_INTRO_CONDITION()
{
if(Npc_GetDistToNpc(self,hero) < 300)
{
return 1;
};
};
func void DIA_SLD_751_Soeldner_INTRO_INFO()
{
AI_Output(self,other,"DIA_SLD_751_Soeldner_INTRO_INFO_01_01"); //Á, návštěvník! Nedělej tady žádné rozbroje, jinak to schytáš!
};
instance DIA_SLD_751_Soeldner_EXIT_1(C_Info)
{
nr = 999;
npc = SLD_751_Soeldner;
condition = DIA_SLD_751_Soeldner_EXIT_1_CONDITION;
information = DIA_SLD_751_Soeldner_EXIT_1_INFO;
important = 0;
permanent = 0;
description = "Raději půjdu!";
};
func int DIA_SLD_751_Soeldner_EXIT_1_CONDITION()
{
return 1;
};
func void DIA_SLD_751_Soeldner_EXIT_1_INFO()
{
AI_Output(other,self,"DIA_SLD_751_Soeldner_EXIT_1_INFO_15_01"); //Raději půjdu!
AI_Output(self,other,"DIA_SLD_751_Soeldner_EXIT_1_INFO_01_02"); //To doufám.
AI_StopProcessInfos(self);
};
instance DIA_SLD_751_Soeldner_EXIT_2(C_Info)
{
nr = 999;
npc = SLD_751_Soeldner;
condition = DIA_SLD_751_Soeldner_EXIT_2_CONDITION;
information = DIA_SLD_751_Soeldner_EXIT_2_INFO;
important = 0;
permanent = 1;
description = "Musím jít dál.";
};
func int DIA_SLD_751_Soeldner_EXIT_2_CONDITION()
{
if(Npc_KnowsInfo(hero,DIA_SLD_751_Soeldner_EXIT_1))
{
return 1;
};
};
func void DIA_SLD_751_Soeldner_EXIT_2_INFO()
{
AI_Output(other,self,"DIA_SLD_751_Soeldner_EXIT_2_INFO_15_01"); //Musím jít dál.
AI_Output(self,other,"DIA_SLD_751_Soeldner_EXIT_2_INFO_01_02"); //Tak běž.
AI_StopProcessInfos(self);
};
instance DIA_SLD_751_Soeldner_UMSEHEN(C_Info)
{
npc = SLD_751_Soeldner;
condition = DIA_SLD_751_Soeldner_UMSEHEN_CONDITION;
information = DIA_SLD_751_Soeldner_UMSEHEN_INFO;
important = 0;
permanent = 0;
description = "Chci se tu porozhlédnout.";
};
func int DIA_SLD_751_Soeldner_UMSEHEN_CONDITION()
{
return 1;
};
func void DIA_SLD_751_Soeldner_UMSEHEN_INFO()
{
AI_Output(other,self,"DIA_SLD_751_Soeldner_UMSEHEN_INFO_15_01"); //Chci se tu porozhlédnout.
AI_Output(self,other,"DIA_SLD_751_Soeldner_UMSEHEN_INFO_01_02"); //Pak dávej pozor, abys nikomu nešlápl na nohu.
};
instance DIA_SLD_751_Soeldner_INMINE(C_Info)
{
npc = SLD_751_Soeldner;
condition = DIA_SLD_751_Soeldner_INMINE_CONDITION;
information = DIA_SLD_751_Soeldner_INMINE_INFO;
important = 0;
permanent = 0;
description = "Chci jít do dolu.";
};
func int DIA_SLD_751_Soeldner_INMINE_CONDITION()
{
return 1;
};
func void DIA_SLD_751_Soeldner_INMINE_INFO()
{
AI_Output(other,self,"DIA_SLD_751_Soeldner_INMINE_INFO_15_01"); //Chci jít do dolu.
AI_Output(self,other,"DIA_SLD_751_Soeldner_INMINE_INFO_01_02"); //Nevěřím, že se ti to povede. Promluv si ale s Okylem.
};
|
D
|
<?xml version="1.0" encoding="ASCII" standalone="no"?>
<di:SashWindowsMngr xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmi:version="2.0">
<pageList>
<availablePage>
<emfPageIdentifier href="VAR_4_MobileMedia-8271674613.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</availablePage>
</pageList>
<sashModel currentSelection="//@sashModel/@windows.0/@children.0">
<windows>
<children xsi:type="di:TabFolder">
<children>
<emfPageIdentifier href="VAR_4_MobileMedia-8271674613.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</children>
</children>
</windows>
</sashModel>
</di:SashWindowsMngr>
|
D
|
module android.java.android.view.textservice.SpellCheckerInfo_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import2 = android.java.java.lang.CharSequence_d_interface;
import import1 = android.java.android.os.Parcel_d_interface;
import import6 = android.java.android.view.textservice.SpellCheckerSubtype_d_interface;
import import0 = android.java.android.content.ComponentName_d_interface;
import import7 = android.java.java.lang.Class_d_interface;
import import4 = android.java.android.graphics.drawable.Drawable_d_interface;
import import3 = android.java.android.content.pm.PackageManager_d_interface;
import import5 = android.java.android.content.pm.ServiceInfo_d_interface;
final class SpellCheckerInfo : IJavaObject {
static immutable string[] _d_canCastTo = [
"android/os/Parcelable",
];
@Import string getId();
@Import import0.ComponentName getComponent();
@Import string getPackageName();
@Import void writeToParcel(import1.Parcel, int);
@Import import2.CharSequence loadLabel(import3.PackageManager);
@Import import4.Drawable loadIcon(import3.PackageManager);
@Import import5.ServiceInfo getServiceInfo();
@Import string getSettingsActivity();
@Import int getSubtypeCount();
@Import import6.SpellCheckerSubtype getSubtypeAt(int);
@Import int describeContents();
@Import import7.Class getClass();
@Import int hashCode();
@Import bool equals(IJavaObject);
@Import @JavaName("toString") string toString_();
override string toString() { return arsd.jni.javaObjectToString(this); }
@Import void notify();
@Import void notifyAll();
@Import void wait(long);
@Import void wait(long, int);
@Import void wait();
mixin IJavaObjectImplementation!(false);
public static immutable string _javaParameterString = "Landroid/view/textservice/SpellCheckerInfo;";
}
|
D
|
module android.java.android.util.LayoutDirection;
public import android.java.android.util.LayoutDirection_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!LayoutDirection;
import import0 = android.java.java.lang.Class;
|
D
|
/home/ubuntu/substrate-node-template/target/release/wbuild-runner/node-template-runtime6620869906145500559/target/x86_64-unknown-linux-gnu/release/deps/semver-8ab4b6ab81a83ac3.rmeta: /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/semver-0.9.0/src/lib.rs /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/semver-0.9.0/src/version.rs /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/semver-0.9.0/src/version_req.rs
/home/ubuntu/substrate-node-template/target/release/wbuild-runner/node-template-runtime6620869906145500559/target/x86_64-unknown-linux-gnu/release/deps/libsemver-8ab4b6ab81a83ac3.rlib: /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/semver-0.9.0/src/lib.rs /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/semver-0.9.0/src/version.rs /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/semver-0.9.0/src/version_req.rs
/home/ubuntu/substrate-node-template/target/release/wbuild-runner/node-template-runtime6620869906145500559/target/x86_64-unknown-linux-gnu/release/deps/semver-8ab4b6ab81a83ac3.d: /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/semver-0.9.0/src/lib.rs /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/semver-0.9.0/src/version.rs /home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/semver-0.9.0/src/version_req.rs
/home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/semver-0.9.0/src/lib.rs:
/home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/semver-0.9.0/src/version.rs:
/home/ubuntu/.cargo/registry/src/github.com-1ecc6299db9ec823/semver-0.9.0/src/version_req.rs:
|
D
|
/**
* Copyright: Copyright 2016 Mojo
* Authors: Mojo
* License: $(LINK2 https://github.com/coop-mojo/moecoop/blob/master/LICENSE, MIT License)
*/
module coop.mui.model.character;
class Character
{
import std.container.rbtree;
this(string n, string baseDir)
{
import std.file;
import std.path;
dir_ = baseDir;
name_ = n;
if (buildPath(dir_, name_).exists)
{
import std.algorithm;
import std.array;
import std.conv;
auto binderDir = buildPath(dir_, name_, "バインダー").to!string;
mkdirRecurse(binderDir);
filedMap_ = dirEntries(binderDir, "*.json", SpanMode.breadth)
.map!(s => s.readBindersInfo)
.joiner
.assocArray;
auto configFile = buildPath(dir_, name_, "config.json");
if (configFile.exists)
{
import vibe.data.json;
url = configFile.readText.parseJsonString["URL"].get!string;
}
}
}
import coop.common: RecipeInfo;
auto hasSkillFor(double[string] skill)
{
import std.algorithm;
return skill.byKeyValue.all!(kv => (kv.key in skills) && skills[kv.key] >= kv.value);
}
auto hasRecipe(string recipe, string binder = "")
{
import std.array;
import std.algorithm;
if (binder.empty)
{
return filedMap_.values.canFind!(binder => recipe in binder);
}
else
{
return (binder in filedMap_) && (recipe in filedMap_[binder]);
}
}
auto markFiledRecipe(string recipe, string binder)
{
if (binder !in filedMap_)
filedMap_[binder] = new RedBlackTree!string;
filedMap_[binder].insert(recipe);
}
auto unmarkFiledRecipe(string recipe, string binder)
in{
assert(binder in filedMap_);
assert(recipe in filedMap_[binder]);
} body {
filedMap_[binder].removeKey(recipe);
}
@property auto name()
{
return name_;
}
@property auto name(string newName)
{
name_ = newName;
}
@property auto url() @safe pure nothrow @nogc
{
return url_;
}
@property auto url(string u)
{
import coop.mui.model.skills;
import std.exception;
import std.traits;
import std.typecons;
url_ = u;
skills = parseSimulatorURL(url_).ifThrown!SkillSimulatorException(ReturnType!parseSimulatorURL.init)[2];
}
auto save()
{
import std.conv;
import std.file;
import std.path;
auto dir = buildPath(dir_, name_);
if (!dir.exists)
{
mkdirRecurse(dir.to!string);
}
writeURLInfo;
writeBindersInfo;
}
auto deleteConfig()
{
import std.conv;
import std.file;
import std.path;
auto configDir = buildPath(dir_, name_);
if (configDir.exists)
{
configDir.to!string.rmdirRecurse;
}
}
auto baseDirectory()
{
return dir_;
}
private:
auto writeURLInfo()
{
import vibe.data.json;
import std.path;
import std.stdio;
auto file = buildPath(dir_, name_, "config.json");
auto vals = [
"URL": Json(url),
];
auto f = File(file, "w");
f.write(vals.serializeToPrettyJson);
}
auto writeBindersInfo()
{
import std.conv;
import std.file;
import std.json;
import std.path;
auto binderDir = buildPath(dir_, name_, "バインダー").to!string;
if (binderDir.exists)
{
rmdirRecurse(binderDir);
}
mkdirRecurse(binderDir);
JSONValue[string] binderFiles;
foreach(kv; filedMap_.byKeyValue)
{
import std.algorithm;
import std.array;
import std.exception;
import std.regex;
auto binder = kv.key.to!string;
auto elems = kv.value.array;
if (elems.empty) continue;
auto fileName = binder
.replaceFirst(ctRegex!r" No\.(\d)+$", "")
.replaceFirst(ctRegex!r"/", "_")
.to!string;
bool[string] jsonElems;
elems.each!(r => jsonElems[r.to!string] = true);
if (fileName !in binderFiles)
{
binderFiles[fileName] = JSONValue([binder: jsonElems]);
}
else
{
enforce(binderFiles[fileName].type == JSON_TYPE.OBJECT);
binderFiles[fileName][binder] = jsonElems;
}
}
foreach(kv; binderFiles.byKeyValue)
{
import std.stdio;
auto path = buildPath(binderDir, kv.key~".json");
auto f = File(path, "w");
f.write(kv.value.toPrettyString);
}
}
RedBlackTree!string[string] filedMap_;
string name_;
string dir_;
string url_;
double[string] skills;
}
auto readBindersInfo(string file)
{
import std.algorithm;
import std.exception;
import std.file;
import std.json;
auto json = file.readText.parseJSON;
enforce(json.type == JSON_TYPE.OBJECT);
return json.object.byKeyValue.map!((kv) {
import std.container.rbtree;
import std.conv;
import std.typecons;
auto binder = kv.key.to!string;
auto recipes = make!(RedBlackTree!string)(kv.value.object.keys.to!(string[]));
return tuple(binder, recipes);
});
}
|
D
|
func int spell_logic_control(var int manainvested)
{
printdebugnpc(PD_MAGIC,"Spell_Logic_Control");
if(!Npc_IsInState(other,zs_controlled))
{
printdebugnpc(PD_MAGIC,"npc is valid...");
printdebugnpc(PD_MAGIC,"manainvested 0...starting ZS_PsiDefense on npc");
Npc_ChangeAttribute(self,ATR_MANA,-1);
if(!Npc_IsInState(other,zs_psidefense))
{
b_fullstop(other);
AI_StartState(other,zs_psidefense,1,"");
};
if(other.flags != NPC_FLAG_IMMORTAL)
{
printdebugnpc(PD_MAGIC,"npc is not immortal, sub mana");
if(manainvested >= other.level)
{
printdebugnpc(PD_MAGIC,"controlled success, starting states");
AI_StartState(self,zs_pc_controlling,0,"");
Npc_SetActiveSpellInfo(self,1);
Npc_ChangeAttribute(self,ATR_MANA,+1);
return SPL_SENDCAST;
};
return SPL_NEXTLEVEL;
}
else
{
if(manainvested >= 1)
{
printdebugnpc(PD_MAGIC,"npc is immortal");
b_sayoverlay(self,other,"$AARGH_1");
AI_PlayAni(self,"T_PSI_VICTIM");
AI_Wait(self,3.5);
return SPL_DONTINVEST;
};
};
return SPL_NEXTLEVEL;
}
else
{
printdebugnpc(PD_MAGIC,"npc is not valid...");
return SPL_SENDSTOP;
};
return SPL_DONTINVEST;
};
|
D
|
module test;
int shit(int test)
{
return 0;
}
|
D
|
/**
* Internal reflection templates for implementing mocking behaviour.
*
* License:
* MIT. See LICENSE for full details.
*/
module dunit.reflection;
/**
* Imports.
*/
import dunit.toolkit;
import std.array;
import std.range;
import std.string;
import std.traits;
/**
* Generate a string containing the protection level of the passed function.
*
* Params:
* func = The function to inspect.
*/
private template MethodProtection(func...) if (func.length == 1 && isCallable!(func))
{
enum MethodProtection = __traits(getProtection, func);
}
unittest
{
class T
{
public void method1(){}
protected void method2(){}
private void method3(){}
}
MethodProtection!(T.method1).assertEqual("public");
MethodProtection!(T.method2).assertEqual("protected");
MethodProtection!(T.method3).assertEqual("private");
}
/**
* Generate a string containing the synchronization of the passed function.
*
* Params:
* func = The function to inspect.
*/
private template MethodSynchonization(func...) if (func.length == 1 && isCallable!(func))
{
enum MethodSynchonization = isMethodShared!(func) ? "shared" : "";
}
unittest
{
class T
{
public void method1() shared {}
public synchronized void method2(){}
public void method3(){}
}
MethodSynchonization!(T.method1).assertEqual("shared");
MethodSynchonization!(T.method2).assertEqual("shared");
MethodSynchonization!(T.method3).assertEqual("");
}
/**
* Generate a string containing the attributes of the passed function.
*
* Params:
* func = The function to inspect.
*/
private template MethodAttributes(func...) if (func.length == 1 && isCallable!(func))
{
private string getMethodAttributes()
{
string code = "";
with (FunctionAttribute)
{
static if (functionAttributes!(func) & property)
{
code ~= "@property ";
}
static if (functionAttributes!(func) & trusted)
{
code ~= "@trusted ";
}
static if (functionAttributes!(func) & safe)
{
code ~= "@safe ";
}
static if (functionAttributes!(func) & pure_)
{
code ~= "pure ";
}
static if (functionAttributes!(func) & nothrow_)
{
code ~= "nothrow ";
}
static if (functionAttributes!(func) & ref_)
{
code ~= "ref ";
}
}
return code.stripRight();
}
enum MethodAttributes = getMethodAttributes();
}
unittest
{
class T
{
public @property @trusted void method1(){}
public @safe pure nothrow void method2(){}
public ref int method3(ref int foo){return foo;}
}
MethodAttributes!(T.method1).assertEqual("@property @trusted");
MethodAttributes!(T.method2).assertEqual("@safe pure nothrow");
MethodAttributes!(T.method3).assertEqual("ref");
}
/**
* Generate a string containing the return type of the passed function.
*
* Params:
* func = The function to inspect.
*/
private template MethodReturnType(func...) if (func.length == 1 && isCallable!(func))
{
enum MethodReturnType = ReturnType!(func).stringof;
}
unittest
{
class T
{
public int method1(){return 1;}
public string method2(){return "foo";}
public char method3(){return 'a';}
}
MethodReturnType!(T.method1).assertEqual("int");
MethodReturnType!(T.method2).assertEqual("string");
MethodReturnType!(T.method3).assertEqual("char");
}
/**
* Generate a string containing the name of the passed function.
*
* Params:
* func = The function to inspect.
*/
private template MethodName(func...) if (func.length == 1 && isCallable!(func))
{
enum MethodName = __traits(identifier, func);
}
unittest
{
class T
{
public void method1(){}
public void method2(){}
public void method3(){}
}
MethodName!(T.method1).assertEqual("method1");
MethodName!(T.method2).assertEqual("method2");
MethodName!(T.method3).assertEqual("method3");
}
/**
* Generate a string array containing the storage classes of each parameter (if any) of the passed function.
*
* Params:
* func = The function to inspect.
*/
private template MethodParameterStorageClasses(func...) if (func.length == 1 && isCallable!(func))
{
private string[] getMethodParameterStorageClasses()
{
string[] storageClasses;
string code;
foreach (storageClass; ParameterStorageClassTuple!(func))
{
code = "";
static if (storageClass == ParameterStorageClass.scope_)
{
code ~= "scope ";
}
static if (storageClass == ParameterStorageClass.lazy_)
{
code ~= "lazy ";
}
static if (storageClass == ParameterStorageClass.out_)
{
code ~= "out ";
}
static if (storageClass == ParameterStorageClass.ref_)
{
code ~= "ref ";
}
storageClasses ~= code;
}
return storageClasses;
}
enum MethodParameterStorageClasses = getMethodParameterStorageClasses();
}
unittest
{
class T
{
public void method1(scope int* foo){}
public void method2(lazy int bar){}
public void method3(out int baz){}
public void method4(ref int qux){}
}
MethodParameterStorageClasses!(T.method1).assertEqual(["scope "]);
MethodParameterStorageClasses!(T.method2).assertEqual(["lazy "]);
MethodParameterStorageClasses!(T.method3).assertEqual(["out "]);
MethodParameterStorageClasses!(T.method4).assertEqual(["ref "]);
}
/**
* Generate a string array containing the parameter types of the passed function.
*
* Params:
* func = The function to inspect.
*/
private template MethodParameterTypes(func...) if (func.length == 1 && isCallable!(func))
{
private string[] getMethodParameterTypes()
{
string[] types;
foreach (type; ParameterTypeTuple!(func))
{
types ~= type.stringof;
}
return types;
}
enum MethodParameterTypes = getMethodParameterTypes();
}
unittest
{
class T
{
public void method1(const int foo){}
public void method2(string bar){}
public void method3(bool baz){}
}
MethodParameterTypes!(T.method1).assertEqual(["const(int)"]);
MethodParameterTypes!(T.method2).assertEqual(["string"]);
MethodParameterTypes!(T.method3).assertEqual(["bool"]);
}
/**
* Generate a string array containing the parameter identifiers of the passed function.
*
* Params:
* func = The function to inspect.
*/
private template MethodParameterIdentifiers(func...) if (func.length == 1 && isCallable!(func))
{
private string[] getMethodParameterIdentifiers()
{
string[] names;
foreach (name; ParameterIdentifierTuple!(func))
{
names ~= name;
}
return names;
}
enum MethodParameterIdentifiers = getMethodParameterIdentifiers();
}
unittest
{
class T
{
public void method1(const int foo){}
public void method2(string bar){}
public void method3(bool baz){}
}
MethodParameterIdentifiers!(T.method1).assertEqual(["foo"]);
MethodParameterIdentifiers!(T.method2).assertEqual(["bar"]);
MethodParameterIdentifiers!(T.method3).assertEqual(["baz"]);
}
/**
* Generate a string array containing the default values of each parameter (if any) of the passed function.
*
* Params:
* func = The function to inspect.
*/
private template MethodParameterDefaultValues(func...) if (func.length == 1 && isCallable!(func))
{
private string[] getMethodParameterDefaultValues()
{
string[] defaultValues;
foreach (defaultValue; ParameterDefaultValueTuple!(func))
{
static if (is(defaultValue == void))
{
defaultValues ~= "";
}
else
{
defaultValues ~= " = " ~ defaultValue.stringof;
}
}
return defaultValues;
}
enum MethodParameterDefaultValues = getMethodParameterDefaultValues();
}
unittest
{
class T
{
public void method1(const int foo){}
public void method2(string bar = "qux"){}
public void method3(bool baz = true){}
}
MethodParameterDefaultValues!(T.method1).assertEqual([""]);
MethodParameterDefaultValues!(T.method2).assertEqual([" = \"qux\""]);
MethodParameterDefaultValues!(T.method3).assertEqual([" = true"]);
}
/**
* Generate a string containing the full parameter signature of the passed function.
*
* Params:
* func = The function to inspect.
*/
private template MethodParameters(func...) if (func.length == 1 && isCallable!(func))
{
private string getMethodParameters()
{
string[] storageClasses = MethodParameterStorageClasses!(func);
string[] types = MethodParameterTypes!(func);
string[] names = MethodParameterIdentifiers!(func);
string[] defaultValues = MethodParameterDefaultValues!(func);
string[] parameters;
foreach (storageClass, type, name, defaultValue; zip(storageClasses, types, names, defaultValues))
{
parameters ~= format("%s%s %s%s", storageClass, type, name, defaultValue);
}
return format("(%s)", parameters.join(", "));
}
enum MethodParameters = getMethodParameters();
}
unittest
{
class T
{
public void method1(const int foo){}
public void method2(string bar = "qux"){}
public void method3(bool baz = true){}
}
MethodParameters!(T.method1).assertEqual("(const(int) foo)");
MethodParameters!(T.method2).assertEqual("(string bar = \"qux\")");
MethodParameters!(T.method3).assertEqual("(bool baz = true)");
}
/**
* Generate a string containing the mangled name of the passed function.
*
* Params:
* func = The function to inspect.
*/
private template MethodMangledName(func...) if (func.length == 1 && isCallable!(func))
{
enum MethodMangledName = mangledName!(func);
}
/**
* Returns true if the passed function is nothrow, false if not.
*
* Params:
* func = The function to inspect.
*/
private template isMethodNoThrow(func...) if (func.length == 1 && isCallable!(func))
{
enum isMethodNoThrow = cast(bool)(functionAttributes!(func) & FunctionAttribute.nothrow_);
}
unittest
{
class T
{
public void method1() nothrow {}
public void method2() {}
}
isMethodNoThrow!(T.method1).assertTrue();
isMethodNoThrow!(T.method2).assertFalse();
}
/**
* Returns true if the passed function is const, false if not.
*
* Params:
* func = The function to inspect.
*/
private template isMethodConst(func...) if (func.length == 1 && isCallable!(func))
{
enum isMethodConst = !isMutable!(FunctionTypeOf!(func));
}
unittest
{
class T
{
public void method1() const {}
public void method2() immutable {}
public void method3(){}
}
isMethodConst!(T.method1).assertTrue();
isMethodConst!(T.method2).assertTrue();
isMethodConst!(T.method3).assertFalse();
}
/**
* Returns true if the passed function is shared or synchronized, false if not.
*
* Params:
* func = The function to inspect.
*/
private template isMethodShared(func...) if (func.length == 1 && isCallable!(func))
{
enum isMethodShared = is(shared(FunctionTypeOf!(func)) == FunctionTypeOf!(func));
}
unittest
{
static class T
{
public synchronized void method1() {}
public void method2(int value) shared {}
public void method3(int value) shared const pure nothrow @safe @property {}
public shared(T) method4() shared { return null; }
public shared(T) method5() { return null; }
public void method6() {}
}
isMethodShared!(T.method1).assertTrue();
isMethodShared!(T.method2).assertTrue();
isMethodShared!(T.method3).assertTrue();
isMethodShared!(T.method4).assertTrue();
isMethodShared!(T.method5).assertFalse();
isMethodShared!(T.method6).assertFalse();
}
/**
* Generate a string containing the body of the passed function.
*
* Params:
* hasParent = true if this function is replacing a parent implementation.
* func = The function to inspect and generate code for.
*/
private template MethodBody(bool hasParent, func...)
{
private string getMethodBody()
{
string code = "";
code ~= "\ttry\n";
code ~= "\t{\n";
static if (!isMethodConst!(func))
{
code ~= "\t\tif (\"" ~ MethodSignature!(func) ~ "\" in this._methodCount)\n";
code ~= "\t\t{\n";
code ~= "\t\t\tthis._methodCount[\"" ~ MethodSignature!(func) ~ "\"].actual++;\n";
code ~= "\t\t}\n";
}
code ~= "\t\tif (this." ~ MethodMangledName!(func) ~ ")\n";
code ~= "\t\t{\n";
code ~= "\t\t\treturn this." ~ MethodMangledName!(func) ~ "(" ~ MethodParameterIdentifiers!(func).join(", ") ~ ");\n";
code ~= "\t\t}\n";
code ~= "\t\telse\n";
code ~= "\t\t{\n";
static if (hasParent)
{
code ~= "\t\t\tif (this._useParentMethods)\n";
code ~= "\t\t\t{\n";
code ~= "\t\t\t\treturn super." ~ MethodName!(func) ~ "(" ~ MethodParameterIdentifiers!(func).join(", ") ~ ");\n";
code ~= "\t\t\t}\n";
code ~= "\t\t\telse\n";
code ~= "\t\t\t{\n";
code ~= "\t\t\t\tauto error = new DUnitAssertError(\"Mock method not implemented\", this._disableMethodsLocation.file, this._disableMethodsLocation.line);\n";
code ~= "\t\t\t\terror.addInfo(\"Method\", this.className ~ \"." ~ MethodSignature!(func) ~ "\");\n";
code ~= "\t\t\t\tthrow error;\n";
code ~= "\t\t\t}\n";
}
else
{
code ~= "\t\t\t\tauto error = new DUnitAssertError(\"Mock method not implemented\", this._disableMethodsLocation.file, this._disableMethodsLocation.line);\n";
code ~= "\t\t\t\terror.addInfo(\"Method\", this.className ~ \"." ~ MethodSignature!(func) ~ "\");\n";
code ~= "\t\t\t\tthrow error;\n";
}
code ~= "\t\t}\n";
code ~= "\t}\n";
code ~= "\tcatch(Exception ex)\n";
code ~= "\t{\n";
static if (isMethodNoThrow!(func))
{
code ~= "\t\tassert(false, ex.msg);\n";
}
else
{
code ~= "\t\tthrow ex;\n";
}
code ~= "\t}\n";
code ~= "\tassert(false, \"Critical error occurred!\");\n";
return code;
}
enum MethodBody = getMethodBody();
}
/**
* Generate a string containing the code for a delegate property.
*
* Params:
* func = The function to inspect.
*/
private template MethodDelegateProperty(func...) if (func.length == 1 && isCallable!(func))
{
private string getMethodDelegateProperty()
{
return format("private %s %s;\n", MethodDelegateSignature!(func), MethodMangledName!(func));
}
enum MethodDelegateProperty = getMethodDelegateProperty();
}
/**
* Generate a string containing the entire code for the passed method.
*
* Params:
* hasParent = true if this function is replacing a parent implementation.
* func = The function to inspect and generate code for.
*/
private template Method(bool hasParent, func...) if (func.length == 1 && isCallable!(func))
{
private string getMethod()
{
string code = "";
static if (hasParent)
{
code ~= "override ";
}
code ~= MethodProtection!(func) ~ " ";
code ~= MethodAttributes!(func) ~ " ";
code ~= MethodReturnType!(func) ~ " ";
code ~= MethodName!(func);
code ~= MethodParameters!(func) ~ (isMethodConst!(func) ? " const \n" : "\n");
code ~= "{\n";
code ~= MethodBody!(hasParent, func);
code ~= "}\n";
return code;
}
enum Method = getMethod();
}
/**
* Iterate through the methods of T generating code using the generator.
*
* Params:
* T = The class to inspect.
* generator = The template to use to generate code for each method.
* index = The beginning index of the members.
*/
public template DUnitMethodIterator(T, string generator, int index = 0) if (is(T == class) || is(T == interface))
{
private string getResult()
{
string code = "";
static if (index < __traits(allMembers, T).length)
{
static if (MemberFunctionsTuple!(T, __traits(allMembers, T)[index]).length)
{
foreach (func; __traits(getVirtualMethods, T, __traits(allMembers, T)[index]))
{
static if (!__traits(isFinalFunction, func))
{
mixin("code ~= " ~ generator ~ ";");
}
}
}
code ~= DUnitMethodIterator!(T, generator, index + 1);
}
return code;
}
enum DUnitMethodIterator = getResult();
}
/**
* Generate a string containing the entire override code for the passed constructor.
*
* Params:
* T = The class to inspect.
* func = The function to inspect.
*/
private template Constructor(T, func...) if (is(T == class) && func.length == 1 && isCallable!(func))
{
private string getConstructor()
{
string code = "";
code ~= "this";
code ~= MethodParameters!(func) ~ "\n";
code ~= "{\n";
code ~= "\tsuper(" ~ MethodParameterIdentifiers!(func).join(", ") ~ ");\n";
code ~= "}\n";
return code;
}
enum Constructor = getConstructor();
}
unittest
{
class T
{
this(int foo, int bar)
{
}
}
string code = "this(int foo, int bar)
{
super(foo, bar);
}\n";
Constructor!(T, T.__ctor).assertEqual(code);
}
/**
* Iterate through the constructors of T generating code using the generator.
*
* Params:
* T = The class to inspect.
* generator = The template to use to generate code for each constructor.
*/
public template DUnitConstructorIterator(T, string generator) if (is(T == class))
{
private string getResult()
{
string code = "";
static if (__traits(hasMember, T, "__ctor"))
{
foreach (func; __traits(getOverloads, T, "__ctor"))
{
mixin("code ~= " ~ generator ~ ";");
}
}
return code;
}
enum DUnitConstructorIterator = getResult();
}
unittest
{
class A
{
this(){}
this(int foo, int bar)
{
}
}
class B {}
string code = "this()
{
super();
}
this(int foo, int bar)
{
super(foo, bar);
}\n";
DUnitConstructorIterator!(A, "Constructor!(T, func)").assertEqual(code);
DUnitConstructorIterator!(B, "Constructor!(T, func)").assertEqual("");
}
/**
* Generate a string containing the parameter signature of the passed function.
*
* Params:
* func = The function to inspect.
*/
private template MethodParameterSignature(func...) if (func.length == 1 && isCallable!(func))
{
private string getMethodParameterSignature()
{
string[] storageClasses = MethodParameterStorageClasses!(func);
string[] types = MethodParameterTypes!(func);
string[] parameters;
foreach (storageClass, type; zip(storageClasses, types))
{
parameters ~= format("%s%s", storageClass, type);
}
return parameters.join(", ");
}
enum MethodParameterSignature = getMethodParameterSignature();
}
unittest
{
class T
{
public void method1(const int foo, string bar){}
public void method2(string baz, bool qux){}
public void method3(ref char quux){}
}
MethodParameterSignature!(T.method1).assertEqual("const(int), string");
MethodParameterSignature!(T.method2).assertEqual("string, bool");
MethodParameterSignature!(T.method3).assertEqual("ref char");
}
/**
* Generate a string containing the signature of the passed function.
*
* Params:
* func = The function to inspect.
*/
private template MethodSignature(func...) if (func.length == 1 && isCallable!(func))
{
private string getMethodSignature()
{
return format("%s:%s(%s)", MethodReturnType!(func), MethodName!(func), MethodParameterSignature!(func));
}
enum MethodSignature = getMethodSignature();
}
unittest
{
class T
{
public int method1(const int foo, string bar){return 1;}
public void method2(string baz, bool qux){}
public bool method3(ref char quux){return true;}
}
MethodSignature!(T.method1).assertEqual("int:method1(const(int), string)");
MethodSignature!(T.method2).assertEqual("void:method2(string, bool)");
MethodSignature!(T.method3).assertEqual("bool:method3(ref char)");
}
/**
* Generate a string containing the delegate signature of the passed function.
*
* Bugs:
* The 'ref' attribute is not supported in the delegate signature due to a compiler bug.
* Once this bug is fixed we can enable it. http://d.puremagic.com/issues/show_bug.cgi?id=5050
*
* Params:
* func = The function to inspect.
*/
private template MethodDelegateSignature(func...) if (func.length == 1 && isCallable!(func))
{
private string getMethodDelegateSignature()
{
return format("%s delegate(%s) %s", MethodReturnType!(func), MethodParameterSignature!(func), MethodAttributes!(func))
.replace(" ref", "")
.stripRight();
}
enum MethodDelegateSignature = getMethodDelegateSignature();
}
unittest
{
interface T
{
public void method1(const int foo, string bar) @safe pure nothrow;
public void method2(string baz, bool qux);
public void method3(ref char quux);
public ref int method4(string bux);
}
MethodDelegateSignature!(T.method1).assertEqual("void delegate(const(int), string) @safe pure nothrow");
MethodDelegateSignature!(T.method2).assertEqual("void delegate(string, bool)");
MethodDelegateSignature!(T.method3).assertEqual("void delegate(ref char)");
MethodDelegateSignature!(T.method4).assertEqual("int delegate(string)");
}
/**
* Generate a string containing the signature switch.
*
* Params:
* func = The function to inspect.
*/
private template MethodSignatureSwitch(func...) if (func.length == 1 && isCallable!(func))
{
private string getMethodSignatureSwitch()
{
string code = "";
code ~= "case \"" ~ MethodSignature!(func) ~ "\":\n";
code ~= "\tthis." ~ MethodMangledName!(func) ~ " = cast(" ~ MethodDelegateSignature!(func) ~ ")delegate_;\n";
code ~= "\tbreak;\n";
return code;
}
enum MethodSignatureSwitch = getMethodSignatureSwitch();
}
|
D
|
// URL: https://atcoder.jp/contests/abc100/tasks/abc100_a
import std.algorithm, std.container, std.conv, std.math, std.range, std.typecons, std.stdio, std.string;
auto rdsp(){return readln.splitter;}
void pick(R,T)(ref R r,ref T t){t=r.front.to!T;r.popFront;}
void pickV(R,T...)(ref R r,ref T t){foreach(ref v;t)pick(r,v);}
void readV(T...)(ref T t){auto r=rdsp;foreach(ref v;t)pick(r,v);}
void readA(T)(size_t n,ref T[]t){t=new T[](n);auto r=rdsp;foreach(ref v;t)pick(r,v);}
void readM(T)(size_t r,size_t c,ref T[][]t){t=new T[][](r);foreach(ref v;t)readA(c,v);}
void readC(T...)(size_t n,ref T t){foreach(ref v;t)v=new typeof(v)(n);foreach(i;0..n){auto r=rdsp;foreach(ref v;t)pick(r,v[i]);}}
void readS(T)(size_t n,ref T t){t=new T(n);foreach(ref v;t){auto r=rdsp;foreach(ref j;v.tupleof)pick(r,j);}}
void writeA(T)(size_t n,T t){foreach(i,v;t.enumerate){write(v);if(i<n-1)write(" ");}writeln;}
version(unittest) {} else
void main()
{
int a, b; readV(a, b);
writeln(a <= 8 && b <= 8 ? "Yay!" : ":(");
}
|
D
|
/Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/build/TestProjectForSibersCompanyByKurilovP.build/Debug-iphonesimulator/TestProjectForSibersCompanyByKurilovP.build/Objects-normal/x86_64/Character.o : /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Extensions/UIImageView+Cache.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Models/ErrorResponse.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/AppDelegate.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterImageScreen/CharactersImageViewModel.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterDetailScreen/CharacterDetailViewModel.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterDetailScreen/ChararcterDetailCellViewModels/CharacterImageCellViewModel.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharactersListScreen/ChararcterCellViewModels/CharacterTableCellViewModel.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterDetailScreen/ChararcterDetailCellViewModels/ChararcterDetailCellViewModel.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharactersListScreen/CharactersListViewModel.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterDetailScreen/Cells/CharacterImageTableCell.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterDetailScreen/Cells/CharacterDetailTableCell.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharactersListScreen/Cells/CharacterTableCell.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Base/DefaultCell.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Protocols/CharacterImageViewModelProtocol.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Protocols/CharacterDetailViewModelProtocol.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Protocols/CharacterDetailTableCellViewModelProtocol.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Protocols/CharactersListTableCellViewModelProtocol.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Protocols/CharactersListViewModelProtocol.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Helper/DiscardableImageCacheItem.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Models/Origin.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Models/Location.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Extensions/UITextField+ClearButton.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Models/Info.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Service/NetworkManager.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterImageScreen/CharactersImageController.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterDetailScreen/СharacterDetailController.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharactersListScreen/CharactersListController.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Helper/HudHelper.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Models/Character.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Service/NetworkManagerError.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharactersListScreen/CharactersListCoordinator.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Service/Requests/RequestFeeds.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Extensions/UIColor+AppColors.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Service/Requests/NetworkRequests.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Helper/ReachabilityConnect.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Service/Result.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Helper/Constant.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Service/NetworkEndpoint.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Base/Alert.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterImageScreen/CharacterImageView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/build/TestProjectForSibersCompanyByKurilovP.build/Debug-iphonesimulator/TestProjectForSibersCompanyByKurilovP.build/Objects-normal/x86_64/Character~partial.swiftmodule : /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Extensions/UIImageView+Cache.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Models/ErrorResponse.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/AppDelegate.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterImageScreen/CharactersImageViewModel.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterDetailScreen/CharacterDetailViewModel.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterDetailScreen/ChararcterDetailCellViewModels/CharacterImageCellViewModel.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharactersListScreen/ChararcterCellViewModels/CharacterTableCellViewModel.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterDetailScreen/ChararcterDetailCellViewModels/ChararcterDetailCellViewModel.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharactersListScreen/CharactersListViewModel.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterDetailScreen/Cells/CharacterImageTableCell.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterDetailScreen/Cells/CharacterDetailTableCell.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharactersListScreen/Cells/CharacterTableCell.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Base/DefaultCell.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Protocols/CharacterImageViewModelProtocol.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Protocols/CharacterDetailViewModelProtocol.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Protocols/CharacterDetailTableCellViewModelProtocol.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Protocols/CharactersListTableCellViewModelProtocol.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Protocols/CharactersListViewModelProtocol.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Helper/DiscardableImageCacheItem.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Models/Origin.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Models/Location.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Extensions/UITextField+ClearButton.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Models/Info.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Service/NetworkManager.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterImageScreen/CharactersImageController.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterDetailScreen/СharacterDetailController.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharactersListScreen/CharactersListController.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Helper/HudHelper.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Models/Character.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Service/NetworkManagerError.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharactersListScreen/CharactersListCoordinator.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Service/Requests/RequestFeeds.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Extensions/UIColor+AppColors.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Service/Requests/NetworkRequests.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Helper/ReachabilityConnect.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Service/Result.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Helper/Constant.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Service/NetworkEndpoint.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Base/Alert.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterImageScreen/CharacterImageView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/build/TestProjectForSibersCompanyByKurilovP.build/Debug-iphonesimulator/TestProjectForSibersCompanyByKurilovP.build/Objects-normal/x86_64/Character~partial.swiftdoc : /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Extensions/UIImageView+Cache.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Models/ErrorResponse.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/AppDelegate.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterImageScreen/CharactersImageViewModel.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterDetailScreen/CharacterDetailViewModel.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterDetailScreen/ChararcterDetailCellViewModels/CharacterImageCellViewModel.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharactersListScreen/ChararcterCellViewModels/CharacterTableCellViewModel.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterDetailScreen/ChararcterDetailCellViewModels/ChararcterDetailCellViewModel.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharactersListScreen/CharactersListViewModel.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterDetailScreen/Cells/CharacterImageTableCell.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterDetailScreen/Cells/CharacterDetailTableCell.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharactersListScreen/Cells/CharacterTableCell.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Base/DefaultCell.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Protocols/CharacterImageViewModelProtocol.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Protocols/CharacterDetailViewModelProtocol.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Protocols/CharacterDetailTableCellViewModelProtocol.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Protocols/CharactersListTableCellViewModelProtocol.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Protocols/CharactersListViewModelProtocol.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Helper/DiscardableImageCacheItem.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Models/Origin.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Models/Location.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Extensions/UITextField+ClearButton.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Models/Info.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Service/NetworkManager.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterImageScreen/CharactersImageController.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterDetailScreen/СharacterDetailController.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharactersListScreen/CharactersListController.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Helper/HudHelper.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Models/Character.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Service/NetworkManagerError.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharactersListScreen/CharactersListCoordinator.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Service/Requests/RequestFeeds.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Extensions/UIColor+AppColors.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Service/Requests/NetworkRequests.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Helper/ReachabilityConnect.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Service/Result.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Helper/Constant.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Service/NetworkEndpoint.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Base/Alert.swift /Users/pavelkurilov/Library/Mobile\ Documents/com~apple~CloudDocs/TestProjectForSibersCompanyByKurilovP/TestProjectForSibersCompanyByKurilovP/Screens/CharacterImageScreen/CharacterImageView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
module controller.exception;
import std.exception;
class DiffBotException : Exception {
this (string message) {
super (message);
}
}
|
D
|
module mahjong.domain.scoring;
import std.algorithm;
import std.array;
import std.conv;
import std.math;
import std.range;
import mahjong.domain.enums;
import mahjong.domain.ingame;
import mahjong.domain.metagame;
import mahjong.domain.player;
import mahjong.domain.result;
import mahjong.domain.tile;
import mahjong.domain.wall;
import mahjong.domain.wrappers;
import mahjong.domain.yaku;
import mahjong.domain.mahjong;
import mahjong.domain.opts;
import mahjong.util.range;
Scoring calculateScoring(const MahjongData mahjong, const Metagame metagame)
{
auto yaku = mahjong.result.determineYaku(mahjong.player, metagame);
auto miniPoints = mahjong.calculateMiniPoints(metagame.leadingWind);
auto amountOfDoras = mahjong.countAmountOfDoras(metagame.wall);
return new Scoring(yaku, miniPoints, amountOfDoras, metagame.counters, mahjong.player.isClosedHand, metagame.amountOfPlayers);
}
class Scoring
{
private this(const(Yaku)[] yakus, size_t miniPoints,
size_t amountOfDoras, size_t amountOfCounters,
bool isClosedHand, AmountOfPlayers amountOfPlayers)
{
this.yakus = yakus;
this.miniPoints = miniPoints.roundMiniPoints;
this.amountOfDoras = amountOfDoras;
this.amountOfCounters = amountOfCounters;
_isClosedHand = isClosedHand;
_amountOfPlayers = amountOfPlayers;
}
const(Yaku)[] yakus;
const size_t miniPoints;
const size_t amountOfDoras;
const size_t amountOfCounters;
private bool _isClosedHand;
private AmountOfPlayers _amountOfPlayers;
Payment calculatePayment(bool isWinningPlayerEast)
{
auto fan = yakus.sum!(yaku => yaku.convertToFan(_isClosedHand));
fan += amountOfDoras;
if(fan >= 5)
{
return calculatePaymentForLimitHands(fan, isWinningPlayerEast);
}
return calculatePaymentForNonLimitHands(fan, isWinningPlayerEast);
}
private Payment calculatePaymentForLimitHands(size_t amountOfFan, bool isWinningPlayerEast)
{
auto rawPayment = findRawPaymentForLimitHands(amountOfFan);
return new Payment(rawPayment.east, rawPayment.nonEast, amountOfCounters, isWinningPlayerEast, _amountOfPlayers);
}
private Payment calculatePaymentForNonLimitHands(size_t amountOfFan, bool isWinningPlayerEast)
{
auto rawPayment = prelimitScores[amountOfFan][miniPoints];
return new Payment(rawPayment.east, rawPayment.nonEast, amountOfCounters, isWinningPlayerEast, _amountOfPlayers);
}
}
unittest
{
auto scoring = new Scoring([Yaku.nagashiMangan], 30, 0, 0, false, AmountOfPlayers(4));
auto payment = scoring.calculatePayment(false);
assert(payment.east == 4000, "Payment should be issued for a mangan");
assert(payment.nonEast == 2000, "Payment should be issued for a mangan");
assert(payment.ron == 8000, "Payment should be issued for a mangan");
}
unittest
{
auto scoring = new Scoring([Yaku.nagashiMangan], 30, 0, 1, false, AmountOfPlayers(4));
auto payment = scoring.calculatePayment(false);
assert(payment.east == 4100, "Every player should pay 100 extra for every counter");
assert(payment.nonEast == 2100, "Every player should pay 100 extra for every counter");
assert(payment.ron == 8300, "A grand total of 300 extra is paid.");
}
unittest
{
auto scoring = new Scoring([Yaku.menzenTsumo, Yaku.fanpai, Yaku.rinshanKaihou], 46, 0, 0, false, AmountOfPlayers(4));
auto payment = scoring.calculatePayment(false);
assert(payment.east == 3200, "3 fan 50 is 3200 for east");
assert(payment.nonEast == 1600, "3 fan 50 is 1600 for non-east");
assert(payment.ron == 6400, "3 fan 50 is 6400 for all");
}
unittest
{
auto scoring = new Scoring([Yaku.chiiToitsu], 25, 0, 0, false, AmountOfPlayers(4));
auto payment = scoring.calculatePayment(false);
// Tsumo is not possible.
assert(payment.ron == 1600, "2 fan 25 mp equals 2000 in a non-east ron");
}
unittest
{
auto scoring = new Scoring([Yaku.riichi], 30, 4, 0, false, AmountOfPlayers(4));
auto payment = scoring.calculatePayment(false);
assert(payment.ron == 8000, "1 yaku + 4 dora is a mangan");
}
class Payment
{
this(int east, int nonEast, size_t counters, bool isWinningPlayerEast,
AmountOfPlayers amountOfPlayers)
{
_amountOfPlayers = amountOfPlayers.value.to!int;
auto extraPaymentForCounters = 100 * counters.to!int;
this.east = east + extraPaymentForCounters;
// If the winning player is east, all non-easy players pay the east level.
this.nonEast = (isWinningPlayerEast ? east : nonEast) + extraPaymentForCounters;
}
private const int _amountOfPlayers;
const int east;
const int nonEast;
int ron() @property
{
// Sum the payments of every player.
return east + (_amountOfPlayers - 2) * nonEast;
}
}
unittest
{
auto payment = new Payment(2000, 1000, 0, false, AmountOfPlayers(4));
assert(payment.east == 2000, "The east value should have been initialized at 2000");
assert(payment.nonEast == 1000, "The non-east value should have been initialized at the base value of 1000");
assert(payment.ron == 4000, "The ron payment should be east + 2*non-east");
}
unittest
{
auto payment = new Payment(2000, 1000, 4, false, AmountOfPlayers(4));
assert(payment.east == 2400, "Each player pays 400 extra");
assert(payment.nonEast == 1400, "Each player pays 400 extra");
assert(payment.ron == 5200, "Each players pays 400 extra, totalling 1200 extra");
}
unittest
{
auto payment = new Payment(2000, 1000, 0, true, AmountOfPlayers(4));
assert(payment.east == 2000, "The east value should again have been initialized at 2000");
assert(payment.nonEast == 2000, "Because east won, the non-east players also pay 2000");
assert(payment.ron == 6000, "The ron payment should be 3*east");
}
unittest
{
auto payment = new Payment(2000, 1000, 0, false, AmountOfPlayers(2));
assert(payment.east == 2000, "The east value should have been initialized at 2000");
// Non east is not actually relevant.
assert(payment.ron == 2000, "The ron payment should be simply east, because there are no other players.");
}
unittest
{
auto payment = new Payment(2000, 1000, 0, true, AmountOfPlayers(2));
assert(payment.east == 2000, "The east value should have been initialized at 2000 and is invariant of who won.");
// Non east is not actually relevant.
assert(payment.ron == 2000, "The ron payment should be simply east, because there are no other players and is invariant of who won.");
}
unittest
{
auto payment = new Payment(2000, 1000, 3, true, AmountOfPlayers(2));
assert(payment.east == 2300, "The payment should be upped by 100 for each counter.");
// Non east is not actually relevant.
assert(payment.ron == 2300, "As there is only one other player, the total payment is also upped with only 100 per counter..");
}
Transaction[] toTransactions(const(MahjongData)[] data, const Metagame metagame)
{
auto mahjongTransactions = data.flatMap!(d => extractTransactions(d, metagame));
auto riichiTransactions = getRiichiTransactions(metagame, data);
auto allTransactions = chain(mahjongTransactions, riichiTransactions);
return allTransactions.mergeTransactions;
}
@("A win in a two-player game results in a plus and a minus transaction")
unittest
{
import fluent.asserts;
import mahjong.domain.set;
auto wall = new MockWall(new Tile(Types.dragon, Dragons.red));
auto player1 = new Player();
player1.game = new Ingame(PlayerWinds.east);
player1.drawTile(wall);
auto player2 = new Player();
player2.game = new Ingame(PlayerWinds.south);
auto metagame = new Metagame([player1, player2], new DefaultBambooOpts);
metagame.wall = new MockWall(new Tile(Types.ball, Numbers.one));
auto mahjongData = MahjongData(player1, true, [new SevenPairsSet(player1.closedHand.tiles)]);
auto transactions = [mahjongData].toTransactions(metagame);
transactions.length.should.equal(2);
}
@("When a game is decided by a ron, only the discarding and the winning player have transactions")
unittest
{
import fluent.asserts;
import mahjong.domain.creation;
import mahjong.domain.set;
auto player1 = new Player();
player1.game = new Ingame(PlayerWinds.east);
player1.closedHand.tiles = "🀃🀃🀃🀄🀄🀚🀚🀚🀝🀝🀝🀡🀡"d.convertToTiles;
auto player2 = new Player();
player2.game = new Ingame(PlayerWinds.south);
auto player3 = new Player();
player3.game = new Ingame(PlayerWinds.west);
auto tile = new Tile(Types.dragon, Dragons.red);
tile.isDrawnBy(player2);
tile.isDiscarded;
auto metagame = new Metagame([player1, player2, player3], new DefaultBambooOpts);
metagame.wall = new MockWall(new Tile(Types.ball, Numbers.one));
player1.ron(tile, metagame);
auto mahjongData1 = MahjongData(player1, true, [new SevenPairsSet(player1.closedHand.tiles)]);
auto transactions = [mahjongData1].toTransactions(metagame);
transactions.length.should.equal(2);
}
@("In the case of a double ron, the losing player's transactions get combined")
unittest
{
import fluent.asserts;
import mahjong.domain.creation;
import mahjong.domain.set;
auto player1 = new Player();
player1.game = new Ingame(PlayerWinds.east);
player1.closedHand.tiles = "🀃🀃🀃🀄🀄🀚🀚🀚🀝🀝🀝🀡🀡"d.convertToTiles;
auto player2 = new Player();
player2.game = new Ingame(PlayerWinds.south);
auto player3 = new Player();
player3.game = new Ingame(PlayerWinds.west);
player3.closedHand.tiles = "🀃🀃🀃🀄🀄🀚🀚🀚🀝🀝🀝🀡🀡"d.convertToTiles;
auto tile = new Tile(Types.dragon, Dragons.red);
tile.isDrawnBy(player2);
tile.isDiscarded;
auto metagame = new Metagame([player1, player2, player3], new DefaultBambooOpts);
metagame.wall = new MockWall(new Tile(Types.ball, Numbers.one));
player1.ron(tile, metagame);
player3.ron(tile, metagame);
auto mahjongData1 = MahjongData(player1, true, [new SevenPairsSet(player1.closedHand.tiles)]);
auto mahjongData2 = MahjongData(player3, true, [new SevenPairsSet(player3.closedHand.tiles)]);
auto transactions = [mahjongData1, mahjongData2].toTransactions(metagame);
transactions.length.should.equal(3);
}
private Transaction[] extractTransactions(const MahjongData data, const Metagame metagame)
{
auto scoring = data.calculateScoring(metagame);
auto payment = scoring.calculatePayment(data.player.isEast);
Transaction[] transactions;
if(data.isTsumo || data.isNagashiMangan)
{
foreach(player; metagame.otherPlayers(data.player))
{
auto amount = player.isEast ? -payment.east : -payment.nonEast;
transactions ~= new Transaction(player, amount);
}
}
else
{
auto payingPlayer = metagame.players.first!(p => data.player.lastTile.isOwnedBy(p));
transactions ~= new Transaction(payingPlayer, -payment.ron);
}
transactions ~= new Transaction(data.player, payment.ron);
return transactions;
}
private Transaction[] getRiichiTransactions(const Metagame metagame, const MahjongData[] mahjongData) pure
{
if(metagame.amountOfRiichiSticks == 0) return null;
if(mahjongData.length == 1)
{
auto player = mahjongData[0].player;
return [new Transaction(player, metagame.amountOfRiichiSticks * metagame.riichiFare)];
}
return splitRiichiSticksPerPlayer(metagame, mahjongData);
}
unittest
{
import fluent.asserts;
auto metagame = new RiichiStickMetagame(0);
auto transactions = getRiichiTransactions(metagame, [MahjongData()]);
transactions.length.should.equal(0)
.because("there are no riichi sticks");
}
unittest
{
import fluent.asserts;
auto winningPlayer = new Player;
auto metagame = new RiichiStickMetagame(42);
auto mahjongData = MahjongData(winningPlayer, true, null);
auto transactions = getRiichiTransactions(metagame,[mahjongData]);
transactions.length.should.equal(1);
winningPlayer.shouldGet(42_000, transactions);
}
private Transaction[] splitRiichiSticksPerPlayer(const Metagame metagame, const MahjongData[] mahjongData) pure
{
int[const(Player)] riichiSticksPerPlayer;
int i = 1;
foreach(player; mahjongData.map!(x => x.player).cycle)
{
if(int* sticks = player in riichiSticksPerPlayer)
{
(*sticks)++;
}
else
{
riichiSticksPerPlayer[player] = 1;
}
++i;
if(i > metagame.amountOfRiichiSticks) break;
}
return mahjongData
.map!(md => new Transaction(md.player, riichiSticksPerPlayer[md.player] * metagame.riichiFare))
.array;
}
unittest
{
import fluent.asserts;
auto player1 = new Player;
auto player2 = new Player;
auto metagame = new RiichiStickMetagame(42);
auto mahjongData = [
MahjongData(player1, true, null),
MahjongData(player2, true, null)
];
auto transactions = getRiichiTransactions(metagame, mahjongData);
transactions.length.should.equal(2);
player1.shouldGet(21_000, transactions);
player2.shouldGet(21_000, transactions);
}
unittest
{
import fluent.asserts;
auto player1 = new Player;
auto player2 = new Player;
auto metagame = new RiichiStickMetagame(41);
auto mahjongData = [
MahjongData(player1, true, null),
MahjongData(player2, true, null)
];
auto transactions = getRiichiTransactions(metagame, mahjongData);
transactions.length.should.equal(2);
player1.shouldGet(21_000, transactions);
player2.shouldGet(20_000, transactions);
}
Transaction[] calculateTenpaiTransactions(const Metagame metagame)
{
const(Player)[] tenpaiPlayers;
const(Player)[] nonTenpaiPlayers;
foreach(player; metagame.players)
{
if(player.isTenpai)
{
tenpaiPlayers ~= player;
}
else
{
nonTenpaiPlayers ~= player;
}
}
if(tenpaiPlayers.length == 0 || nonTenpaiPlayers.length == 0) return null;
int total = (metagame.players.length.to!int-1) * metagame.riichiFare;
return tenpaiPlayers.map!(p => new Transaction(p, total/tenpaiPlayers.length.to!int))
.chain(nonTenpaiPlayers.map!(p => new Transaction(p, -total/nonTenpaiPlayers.length.to!int)))
.array;
}
@("When no-one is tenpai, there shouldn't be any transactions")
unittest
{
import fluent.asserts;
auto metagame = new Metagame(
[createNonTenpaiPlayer, createNonTenpaiPlayer, createNonTenpaiPlayer, createNonTenpaiPlayer],
new DefaultGameOpts);
auto transactions = metagame.calculateTenpaiTransactions;
transactions.length.should.equal(0);
}
@("If one player is tenpai, everyone should pay that player")
unittest
{
import fluent.asserts;
auto winner = createTenpaiPlayer;
auto loser1 = createNonTenpaiPlayer;
auto loser2 = createNonTenpaiPlayer;
auto loser3 = createNonTenpaiPlayer;
auto metagame = new Metagame(
[winner, loser1, loser2, loser3],
new DefaultGameOpts);
auto transactions = metagame.calculateTenpaiTransactions;
transactions.length.should.equal(4);
winner.shouldGet(3_000, transactions);
loser1.shouldGet(-1_000, transactions);
loser2.shouldGet(-1_000, transactions);
loser3.shouldGet(-1_000, transactions);
}
@("If two players are tenpai, the penalty and gains are split")
unittest
{
import fluent.asserts;
auto winner1 = createTenpaiPlayer;
auto winner2 = createTenpaiPlayer;
auto loser1 = createNonTenpaiPlayer;
auto loser2 = createNonTenpaiPlayer;
auto metagame = new Metagame(
[winner1, winner2, loser1, loser2],
new DefaultGameOpts);
auto transactions = metagame.calculateTenpaiTransactions;
transactions.length.should.equal(4);
winner1.shouldGet(1_500, transactions);
winner2.shouldGet(1_500, transactions);
loser1.shouldGet(-1_500, transactions);
loser2.shouldGet(-1_500, transactions);
}
@("If three players are tenpai, the last one is should pay them all")
unittest
{
import fluent.asserts;
auto winner1 = createTenpaiPlayer;
auto winner2 = createTenpaiPlayer;
auto winner3 = createTenpaiPlayer;
auto loser = createNonTenpaiPlayer;
auto metagame = new Metagame(
[winner1, winner2, winner3, loser],
new DefaultGameOpts);
auto transactions = metagame.calculateTenpaiTransactions;
transactions.length.should.equal(4);
winner1.shouldGet(1_000, transactions);
winner2.shouldGet(1_000, transactions);
winner3.shouldGet(1_000, transactions);
loser.shouldGet(-3_000, transactions);
}
@("If everyone is tenpai, no transactions are generated")
unittest
{
import fluent.asserts;
auto winner1 = createTenpaiPlayer;
auto winner2 = createTenpaiPlayer;
auto winner3 = createTenpaiPlayer;
auto winner4 = createTenpaiPlayer;
auto metagame = new Metagame(
[winner1, winner2, winner3, winner4],
new DefaultGameOpts);
auto transactions = metagame.calculateTenpaiTransactions;
transactions.length.should.equal(0);
}
private Transaction[] mergeTransactions(Transactions)(Transactions transactions) pure
if(isInputRange!Transactions && is(ElementType!Transactions : Transaction))
{
Transaction[const Player] mergedTransactions;
foreach(transaction; transactions)
{
if(transaction.player in mergedTransactions)
{
mergedTransactions[transaction.player] = mergedTransactions[transaction.player] + transaction;
}
else
{
mergedTransactions[transaction.player] = transaction;
}
}
return mergedTransactions.values;
}
class Transaction
{
this(const Player player, const int amount) pure
{
this.player = player;
this.amount = amount;
}
const Player player;
const int amount;
Transaction opBinary(string op)(Transaction rhs) pure
in
{
assert(player is rhs.player, "Cannot sum the transactions of two players");
}
body
{
static if(op == "+") return new Transaction(player, amount + rhs.amount);
else static if(op == "-") return new Transaction(player, amount - rhs.amount);
else static assert(false, "Operator " ~ op ~ " not supported");
}
bool isPayment() pure const @property
{
return amount < 0;
}
}
unittest
{
auto player = new Player();
auto transactionA = new Transaction(player, 1234);
auto transactionB = new Transaction(player, 5678);
auto sumOfTransactions = transactionA + transactionB;
assert(sumOfTransactions.amount == 6912, "The transactions are summed together.");
auto differenceOfTransactions = transactionB - transactionA;
assert(differenceOfTransactions.amount == 4444, "The transactions should be subtracted.");
}
unittest
{
import std.exception;
import core.exception;
auto player = new Player();
auto player2 = new Player();
auto transactionA = new Transaction(player, 123);
auto transactionB = new Transaction(player2, 456);
assertThrown!AssertError(transactionA + transactionB, "Summing transactions of two different player is not allowed.");
}
private enum prelimitScores = initializePreLimitPayments();
private enum limitScores = initializeLimitPayments();
private struct RawPayment
{
const int east;
const int nonEast;
}
private RawPayment[size_t][size_t] initializePreLimitPayments()
{
RawPayment[size_t][size_t] prelimitPayments;
prelimitPayments[1] = [
30: RawPayment( 500, 300),
40: RawPayment( 700, 400),
50: RawPayment( 800, 400),
60: RawPayment(1000, 500),
70: RawPayment(1200, 600)
];
prelimitPayments[2] = [
20: RawPayment( 700, 400),
25: RawPayment( 800, 400),
30: RawPayment(1000, 500),
40: RawPayment(1300, 700),
50: RawPayment(1600, 800),
60: RawPayment(2000,1000),
70: RawPayment(2300,1200)
];
prelimitPayments[3] = [
20: RawPayment(1300, 700),
25: RawPayment(1600, 800),
30: RawPayment(2000,1000),
40: RawPayment(2600,1300),
50: RawPayment(3200,1600),
60: RawPayment(3900,2000),
70: RawPayment(4000,2000)
];
prelimitPayments[4] = [
20: RawPayment(2600,1300),
25: RawPayment(3200,1600),
30: RawPayment(3900,2000),
40: RawPayment(4000,2000),
50: RawPayment(4000,2000),
60: RawPayment(4000,2000),
70: RawPayment(4000,2000)
];
return prelimitPayments;
}
private RawPayment[size_t] initializeLimitPayments()
{
return [
5: RawPayment( 4000, 2000),
6: RawPayment( 6000, 3000),
8: RawPayment( 8000, 4000),
11:RawPayment(12000, 6000),
13:RawPayment(16000, 8000)
];
}
private RawPayment findRawPaymentForLimitHands(size_t amountOfFan)
{
return limitScores.byKeyValue
.filter!(kv => kv.key <= amountOfFan).array
.sort!((a,b) => a.key < b.key)
.array.back.value;
}
unittest
{
assert(limitScores[5] == findRawPaymentForLimitHands(5), "With five fan, the payment for five fan should be returned");
assert(limitScores[6] == findRawPaymentForLimitHands(6), "With six fan, the payment for six fan should be returned");
assert(limitScores[6] == findRawPaymentForLimitHands(7), "With seven fan, the payment for six fan should be returned");
assert(limitScores[8] == findRawPaymentForLimitHands(8), "With eight fan, the payment for eight fan should be returned");
assert(limitScores[8] == findRawPaymentForLimitHands(9), "With nine fan, the payment for eight fan should be returned");
assert(limitScores[8] == findRawPaymentForLimitHands(10), "With ten fan, the payment for eight fan should be returned");
assert(limitScores[11] == findRawPaymentForLimitHands(11), "With eleven fan, the payment for eleven fan should be returned");
assert(limitScores[11] == findRawPaymentForLimitHands(12), "With twelve fan, the payment for eleven fan should be returned");
assert(limitScores[13] == findRawPaymentForLimitHands(13), "With thirteen fan, the payment for a yakuman should be returned");
assert(limitScores[13] == findRawPaymentForLimitHands(25), "With over thirteen fan, the payment for a yakuman should be returned");
}
private size_t roundMiniPoints(size_t miniPoints)
{
if(miniPoints == 25) return 25;
return ceil(miniPoints/10.).to!size_t*10;
}
unittest
{
assert(20 == roundMiniPoints(20), "When the number is dividable by 10, the rounded minipoints don't change");
assert(25 == roundMiniPoints(25), "25 is the magic number that should stay itself.");
assert(30 == roundMiniPoints(22), "22 should be rounded up to 30.");
assert(30 == roundMiniPoints(30), "When the number is dividable by 10, the rounded minipoints don't change");
}
private size_t countAmountOfDoras(const MahjongData mahjongResult, const Wall wall) pure
{
auto doraIndicators = wall.doraIndicators;
size_t doras = 0;
foreach(doraIndicator; doraIndicators)
{
auto dora = doraIndicator.getDoraValue;
doras += mahjongResult.tiles.count!(tile => dora.hasEqualValue(tile));
}
return doras;
}
unittest
{
import mahjong.domain.set;
auto doraIndicator = new Tile(Types.bamboo, Numbers.eight);
auto mahjongResult = MahjongData(null, false,
[new ChiSet([
new Tile(Types.bamboo, Numbers.six),
new Tile(Types.bamboo, Numbers.seven),
new Tile(Types.bamboo, Numbers.eight)
])]);
auto doras = mahjongResult.countAmountOfDoras(new DoraIndicatorWall([doraIndicator]));
assert(doras == 0, "No doras should be found");
}
unittest
{
import mahjong.domain.set;
auto doraIndicator = new Tile(Types.bamboo, Numbers.five);
auto mahjongResult = MahjongData(null, false,
[new ChiSet([
new Tile(Types.bamboo, Numbers.six),
new Tile(Types.bamboo, Numbers.seven),
new Tile(Types.bamboo, Numbers.eight)
])]);
auto doras = mahjongResult.countAmountOfDoras(new DoraIndicatorWall([doraIndicator]));
assert(doras == 1, "Only one dora should be found");
}
unittest
{
import mahjong.domain.set;
auto doraIndicator = new Tile(Types.bamboo, Numbers.five);
auto mahjongResult = MahjongData(null, false,
[new PonSet([
new Tile(Types.bamboo, Numbers.six),
new Tile(Types.bamboo, Numbers.six),
new Tile(Types.bamboo, Numbers.six)
])]);
auto doras = mahjongResult.countAmountOfDoras(
new DoraIndicatorWall([doraIndicator]));
assert(doras == 3, "All three tiles are doras");
}
unittest
{
import mahjong.domain.set;
auto doraIndicator = new Tile(Types.bamboo, Numbers.five);
auto mahjongResult = MahjongData(null, false,
[new ChiSet([
new Tile(Types.bamboo, Numbers.six),
new Tile(Types.bamboo, Numbers.seven),
new Tile(Types.bamboo, Numbers.eight)
])]);
auto doras = mahjongResult.countAmountOfDoras(
new DoraIndicatorWall([doraIndicator, doraIndicator]));
assert(doras == 2, "When the indicator is in there twice, the doras count double");
}
private const(ComparativeTile) getDoraValue(const Tile doraIndicator) pure
{
return ComparativeTile(doraIndicator.type,
(doraIndicator.value + 1) % doraIndicator.type.amountOfTiles);
}
unittest
{
auto doraIndicator = new Tile(Types.dragon, Dragons.green);
auto dora = doraIndicator.getDoraValue;
assert(ComparativeTile(Types.dragon, Dragons.red) == dora, "Green dragon points to red dragon as a dora");
}
unittest
{
auto doraIndicator = new Tile(Types.dragon, Dragons.white);
auto dora = doraIndicator.getDoraValue;
assert(ComparativeTile(Types.dragon, Dragons.green) == dora, "White dragon points to green dragon as a dora");
}
unittest
{
auto doraIndicator = new Tile(Types.wind, Winds.south);
auto dora = doraIndicator.getDoraValue;
assert(ComparativeTile(Types.wind, Winds.west) == dora, "West should be a dora");
}
unittest
{
auto doraIndicator = new Tile(Types.wind, Winds.north);
auto dora = doraIndicator.getDoraValue;
assert(ComparativeTile(Types.wind, Winds.east) == dora, "East should be a dora");
}
unittest
{
auto doraIndicator = new Tile(Types.bamboo, Numbers.five);
auto dora = doraIndicator.getDoraValue;
assert(ComparativeTile(Types.bamboo, Numbers.six) == dora, "Bamboo six should be a dora");
}
unittest
{
auto doraIndicator = new Tile(Types.bamboo, Numbers.nine);
auto dora = doraIndicator.getDoraValue;
assert(ComparativeTile(Types.bamboo, Numbers.one) == dora, "Bamboo one should be a dora");
}
enum limit_hands {mangan = 5, haneman = 6, baiman = 8,
sanbaiman = 11, yakuman = 13, double_yakuman = 26,
triple_yakuman = 39, quadra_yakuman = 52, penta_yakuman = 65,
hexa_yakuman = 78, septa_yakuman = 91};
version(unittest)
{
class RiichiStickMetagame : Metagame
{
this(int amountOfRiichiSticks)
{
super([new Player()], new DefaultGameOpts);
_amountOfRiichiSticks = amountOfRiichiSticks;
}
private int _amountOfRiichiSticks;
override int amountOfRiichiSticks() pure const
{
return _amountOfRiichiSticks;
}
}
private Player createNonTenpaiPlayer()
{
auto player = new Player;
player.game = new Ingame(PlayerWinds.east, "🀇🀇🀇🀈🀈🀈🀈🀌🀌🀊🀊🀆🀆"d);
return player;
}
private Player createTenpaiPlayer()
{
auto player = new Player;
player.game = new Ingame(PlayerWinds.east, "🀀🀀🀓🀔🀕🀅🀅🀜🀝🀝🀞🀞🀟"d);
return player;
}
private void shouldGet(Player player, int amount, Transaction[] transactions)
{
import fluent.asserts;
auto result = transactions.find!(tx => tx.player == player);
if(amount == 0)
{
if(result.empty) return;
// Not having a transaction also counts as not getting anything
}
result.empty.should.equal(false);
result.front.amount.should.equal(amount);
}
class DoraIndicatorWall : Wall
{
this(const(Tile)[] doraIndicators)
{
super(new DefaultGameOpts);
_doraIndicators = doraIndicators;
}
private const(Tile)[] _doraIndicators;
override const(Tile)[] doraIndicators() pure const @property
{
return _doraIndicators;
}
}
}
|
D
|
// Written in the D programming language.
/**
A one-stop shop for converting values from one type to another.
$(SCRIPT inhibitQuickIndex = 1;)
$(BOOKTABLE,
$(TR $(TH Category) $(TH Functions))
$(TR $(TD Generic) $(TD
$(LREF asOriginalType)
$(LREF castFrom)
$(LREF emplace)
$(LREF parse)
$(LREF to)
$(LREF toChars)
))
$(TR $(TD Strings) $(TD
$(LREF text)
$(LREF wtext)
$(LREF dtext)
$(LREF hexString)
))
$(TR $(TD Numeric) $(TD
$(LREF octal)
$(LREF roundTo)
$(LREF signed)
$(LREF unsigned)
))
$(TR $(TD Exceptions) $(TD
$(LREF ConvException)
$(LREF ConvOverflowException)
))
)
Copyright: Copyright The D Language Foundation 2007-.
License: $(HTTP boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: $(HTTP digitalmars.com, Walter Bright),
$(HTTP erdani.org, Andrei Alexandrescu),
Shin Fujishiro,
Adam D. Ruppe,
Kenji Hara
Source: $(PHOBOSSRC std/conv.d)
*/
module std.conv;
public import std.ascii : LetterCase;
import std.meta;
import std.range.primitives;
import std.traits;
// Same as std.string.format, but "self-importing".
// Helps reduce code and imports, particularly in static asserts.
// Also helps with missing imports errors.
package template convFormat()
{
import std.format : format;
alias convFormat = format;
}
/* ************* Exceptions *************** */
/**
* Thrown on conversion errors.
*/
class ConvException : Exception
{
import std.exception : basicExceptionCtors;
///
mixin basicExceptionCtors;
}
///
@safe unittest
{
import std.exception : assertThrown;
assertThrown!ConvException(to!int("abc"));
}
private auto convError(S, T)(S source, string fn = __FILE__, size_t ln = __LINE__)
{
string msg;
if (source.empty)
msg = "Unexpected end of input when converting from type " ~ S.stringof ~ " to type " ~ T.stringof;
else
{
ElementType!S el = source.front;
if (el == '\n')
msg = text("Unexpected '\\n' when converting from type " ~ S.stringof ~ " to type " ~ T.stringof);
else
msg = text("Unexpected '", el,
"' when converting from type " ~ S.stringof ~ " to type " ~ T.stringof);
}
return new ConvException(msg, fn, ln);
}
private auto convError(S, T)(S source, int radix, string fn = __FILE__, size_t ln = __LINE__)
{
string msg;
if (source.empty)
msg = text("Unexpected end of input when converting from type " ~ S.stringof ~ " base ", radix,
" to type " ~ T.stringof);
else
msg = text("Unexpected '", source.front,
"' when converting from type " ~ S.stringof ~ " base ", radix,
" to type " ~ T.stringof);
return new ConvException(msg, fn, ln);
}
@safe pure/* nothrow*/ // lazy parameter bug
private auto parseError(lazy string msg, string fn = __FILE__, size_t ln = __LINE__)
{
return new ConvException(text("Can't parse string: ", msg), fn, ln);
}
private void parseCheck(alias source)(dchar c, string fn = __FILE__, size_t ln = __LINE__)
{
if (source.empty)
throw parseError(text("unexpected end of input when expecting", "\"", c, "\""));
if (source.front != c)
throw parseError(text("\"", c, "\" is missing"), fn, ln);
source.popFront();
}
private
{
T toStr(T, S)(S src)
if (isSomeString!T)
{
// workaround for Bugzilla 14198
static if (is(S == bool) && is(typeof({ T s = "string"; })))
{
return src ? "true" : "false";
}
else
{
import std.array : appender;
import std.format : FormatSpec, formatValue;
auto w = appender!T();
FormatSpec!(ElementEncodingType!T) f;
formatValue(w, src, f);
return w.data;
}
}
template isExactSomeString(T)
{
enum isExactSomeString = isSomeString!T && !is(T == enum);
}
template isEnumStrToStr(S, T)
{
enum isEnumStrToStr = isImplicitlyConvertible!(S, T) &&
is(S == enum) && isExactSomeString!T;
}
template isNullToStr(S, T)
{
enum isNullToStr = isImplicitlyConvertible!(S, T) &&
(is(Unqual!S == typeof(null))) && isExactSomeString!T;
}
}
/**
* Thrown on conversion overflow errors.
*/
class ConvOverflowException : ConvException
{
@safe pure nothrow
this(string s, string fn = __FILE__, size_t ln = __LINE__)
{
super(s, fn, ln);
}
}
///
@safe unittest
{
import std.exception : assertThrown;
assertThrown!ConvOverflowException(to!ubyte(1_000_000));
}
/**
The `to` template converts a value from one type _to another.
The source type is deduced and the target type must be specified, for example the
expression `to!int(42.0)` converts the number 42 from
`double` _to `int`. The conversion is "safe", i.e.,
it checks for overflow; `to!int(4.2e10)` would throw the
`ConvOverflowException` exception. Overflow checks are only
inserted when necessary, e.g., `to!double(42)` does not do
any checking because any `int` fits in a `double`.
Conversions from string _to numeric types differ from the C equivalents
`atoi()` and `atol()` by checking for overflow and not allowing whitespace.
For conversion of strings _to signed types, the grammar recognized is:
$(PRE $(I Integer): $(I Sign UnsignedInteger)
$(I UnsignedInteger)
$(I Sign):
$(B +)
$(B -))
For conversion _to unsigned types, the grammar recognized is:
$(PRE $(I UnsignedInteger):
$(I DecimalDigit)
$(I DecimalDigit) $(I UnsignedInteger))
*/
template to(T)
{
T to(A...)(A args)
if (A.length > 0)
{
return toImpl!T(args);
}
// Fix issue 6175
T to(S)(ref S arg)
if (isStaticArray!S)
{
return toImpl!T(arg);
}
// Fix issue 16108
T to(S)(ref S arg)
if (isAggregateType!S && !isCopyable!S)
{
return toImpl!T(arg);
}
}
/**
* Converting a value _to its own type (useful mostly for generic code)
* simply returns its argument.
*/
@safe pure unittest
{
int a = 42;
int b = to!int(a);
double c = to!double(3.14); // c is double with value 3.14
}
/**
* Converting among numeric types is a safe way _to cast them around.
*
* Conversions from floating-point types _to integral types allow loss of
* precision (the fractional part of a floating-point number). The
* conversion is truncating towards zero, the same way a cast would
* truncate. (_To round a floating point value when casting _to an
* integral, use `roundTo`.)
*/
@safe pure unittest
{
import std.exception : assertThrown;
int a = 420;
assert(to!long(a) == a);
assertThrown!ConvOverflowException(to!byte(a));
assert(to!int(4.2e6) == 4200000);
assertThrown!ConvOverflowException(to!uint(-3.14));
assert(to!uint(3.14) == 3);
assert(to!uint(3.99) == 3);
assert(to!int(-3.99) == -3);
}
/**
* When converting strings _to numeric types, note that the D hexadecimal and binary
* literals are not handled. Neither the prefixes that indicate the base, nor the
* horizontal bar used _to separate groups of digits are recognized. This also
* applies to the suffixes that indicate the type.
*
* _To work around this, you can specify a radix for conversions involving numbers.
*/
@safe pure unittest
{
auto str = to!string(42, 16);
assert(str == "2A");
auto i = to!int(str, 16);
assert(i == 42);
}
/**
* Conversions from integral types _to floating-point types always
* succeed, but might lose accuracy. The largest integers with a
* predecessor representable in floating-point format are `2^24-1` for
* `float`, `2^53-1` for `double`, and `2^64-1` for `real` (when
* `real` is 80-bit, e.g. on Intel machines).
*/
@safe pure unittest
{
// 2^24 - 1, largest proper integer representable as float
int a = 16_777_215;
assert(to!int(to!float(a)) == a);
assert(to!int(to!float(-a)) == -a);
}
/**
Conversion from string types to char types enforces the input
to consist of a single code point, and said code point must
fit in the target type. Otherwise, $(LREF ConvException) is thrown.
*/
@safe pure unittest
{
import std.exception : assertThrown;
assert(to!char("a") == 'a');
assertThrown(to!char("ñ")); // 'ñ' does not fit into a char
assert(to!wchar("ñ") == 'ñ');
assertThrown(to!wchar("😃")); // '😃' does not fit into a wchar
assert(to!dchar("😃") == '😃');
// Using wstring or dstring as source type does not affect the result
assert(to!char("a"w) == 'a');
assert(to!char("a"d) == 'a');
// Two code points cannot be converted to a single one
assertThrown(to!char("ab"));
}
/**
* Converting an array _to another array type works by converting each
* element in turn. Associative arrays can be converted _to associative
* arrays as long as keys and values can in turn be converted.
*/
@safe pure unittest
{
import std.string : split;
int[] a = [1, 2, 3];
auto b = to!(float[])(a);
assert(b == [1.0f, 2, 3]);
string str = "1 2 3 4 5 6";
auto numbers = to!(double[])(split(str));
assert(numbers == [1.0, 2, 3, 4, 5, 6]);
int[string] c;
c["a"] = 1;
c["b"] = 2;
auto d = to!(double[wstring])(c);
assert(d["a"w] == 1 && d["b"w] == 2);
}
/**
* Conversions operate transitively, meaning that they work on arrays and
* associative arrays of any complexity.
*
* This conversion works because `to!short` applies _to an `int`, `to!wstring`
* applies _to a `string`, `to!string` applies _to a `double`, and
* `to!(double[])` applies _to an `int[]`. The conversion might throw an
* exception because `to!short` might fail the range check.
*/
@safe unittest
{
int[string][double[int[]]] a;
auto b = to!(short[wstring][string[double[]]])(a);
}
/**
* Object-to-object conversions by dynamic casting throw exception when
* the source is non-null and the target is null.
*/
@safe pure unittest
{
import std.exception : assertThrown;
// Testing object conversions
class A {}
class B : A {}
class C : A {}
A a1 = new A, a2 = new B, a3 = new C;
assert(to!B(a2) is a2);
assert(to!C(a3) is a3);
assertThrown!ConvException(to!B(a3));
}
/**
* Stringize conversion from all types is supported.
* $(UL
* $(LI String _to string conversion works for any two string types having
* (`char`, `wchar`, `dchar`) character widths and any
* combination of qualifiers (mutable, `const`, or `immutable`).)
* $(LI Converts array (other than strings) _to string.
* Each element is converted by calling `to!T`.)
* $(LI Associative array _to string conversion.
* Each element is converted by calling `to!T`.)
* $(LI Object _to string conversion calls `toString` against the object or
* returns `"null"` if the object is null.)
* $(LI Struct _to string conversion calls `toString` against the struct if
* it is defined.)
* $(LI For structs that do not define `toString`, the conversion _to string
* produces the list of fields.)
* $(LI Enumerated types are converted _to strings as their symbolic names.)
* $(LI Boolean values are converted to `"true"` or `"false"`.)
* $(LI `char`, `wchar`, `dchar` _to a string type.)
* $(LI Unsigned or signed integers _to strings.
* $(DL $(DT [special case])
* $(DD Convert integral value _to string in $(D_PARAM radix) radix.
* radix must be a value from 2 to 36.
* value is treated as a signed value only if radix is 10.
* The characters A through Z are used to represent values 10 through 36
* and their case is determined by the $(D_PARAM letterCase) parameter.)))
* $(LI All floating point types _to all string types.)
* $(LI Pointer to string conversions convert the pointer to a `size_t` value.
* If pointer is `char*`, treat it as C-style strings.
* In that case, this function is `@system`.))
* See $(REF formatValue, std,format) on how toString should be defined.
*/
@system pure unittest // @system due to cast and ptr
{
// Conversion representing dynamic/static array with string
long[] a = [ 1, 3, 5 ];
assert(to!string(a) == "[1, 3, 5]");
// Conversion representing associative array with string
int[string] associativeArray = ["0":1, "1":2];
assert(to!string(associativeArray) == `["0":1, "1":2]` ||
to!string(associativeArray) == `["1":2, "0":1]`);
// char* to string conversion
assert(to!string(cast(char*) null) == "");
assert(to!string("foo\0".ptr) == "foo");
// Conversion reinterpreting void array to string
auto w = "abcx"w;
const(void)[] b = w;
assert(b.length == 8);
auto c = to!(wchar[])(b);
assert(c == "abcx");
}
// Tests for issue 6175
@safe pure nothrow unittest
{
char[9] sarr = "blablabla";
auto darr = to!(char[])(sarr);
assert(sarr.ptr == darr.ptr);
assert(sarr.length == darr.length);
}
// Tests for issue 7348
@safe pure /+nothrow+/ unittest
{
assert(to!string(null) == "null");
assert(text(null) == "null");
}
// Tests for issue 11390
@safe pure /+nothrow+/ unittest
{
const(typeof(null)) ctn;
immutable(typeof(null)) itn;
assert(to!string(ctn) == "null");
assert(to!string(itn) == "null");
}
// Tests for issue 8729: do NOT skip leading WS
@safe pure unittest
{
import std.exception;
static foreach (T; AliasSeq!(byte, ubyte, short, ushort, int, uint, long, ulong))
{
assertThrown!ConvException(to!T(" 0"));
assertThrown!ConvException(to!T(" 0", 8));
}
static foreach (T; AliasSeq!(float, double, real))
{
assertThrown!ConvException(to!T(" 0"));
}
assertThrown!ConvException(to!bool(" true"));
alias NullType = typeof(null);
assertThrown!ConvException(to!NullType(" null"));
alias ARR = int[];
assertThrown!ConvException(to!ARR(" [1]"));
alias AA = int[int];
assertThrown!ConvException(to!AA(" [1:1]"));
}
/**
If the source type is implicitly convertible to the target type, $(D
to) simply performs the implicit conversion.
*/
private T toImpl(T, S)(S value)
if (isImplicitlyConvertible!(S, T) &&
!isEnumStrToStr!(S, T) && !isNullToStr!(S, T))
{
template isSignedInt(T)
{
enum isSignedInt = isIntegral!T && isSigned!T;
}
alias isUnsignedInt = isUnsigned;
// Conversion from integer to integer, and changing its sign
static if (isUnsignedInt!S && isSignedInt!T && S.sizeof == T.sizeof)
{ // unsigned to signed & same size
import std.exception : enforce;
enforce(value <= cast(S) T.max,
new ConvOverflowException("Conversion positive overflow"));
}
else static if (isSignedInt!S && isUnsignedInt!T)
{ // signed to unsigned
import std.exception : enforce;
enforce(0 <= value,
new ConvOverflowException("Conversion negative overflow"));
}
return value;
}
@safe pure nothrow unittest
{
enum E { a } // Issue 9523 - Allow identity enum conversion
auto e = to!E(E.a);
assert(e == E.a);
}
@safe pure nothrow unittest
{
int a = 42;
auto b = to!long(a);
assert(a == b);
}
// Tests for issue 6377
@safe pure unittest
{
import std.exception;
// Conversion between same size
static foreach (S; AliasSeq!(byte, short, int, long))
{{
alias U = Unsigned!S;
static foreach (Sint; AliasSeq!(S, const S, immutable S))
static foreach (Uint; AliasSeq!(U, const U, immutable U))
{{
// positive overflow
Uint un = Uint.max;
assertThrown!ConvOverflowException(to!Sint(un),
text(Sint.stringof, ' ', Uint.stringof, ' ', un));
// negative overflow
Sint sn = -1;
assertThrown!ConvOverflowException(to!Uint(sn),
text(Sint.stringof, ' ', Uint.stringof, ' ', un));
}}
}}
// Conversion between different size
static foreach (i, S1; AliasSeq!(byte, short, int, long))
static foreach ( S2; AliasSeq!(byte, short, int, long)[i+1..$])
{{
alias U1 = Unsigned!S1;
alias U2 = Unsigned!S2;
static assert(U1.sizeof < S2.sizeof);
// small unsigned to big signed
static foreach (Uint; AliasSeq!(U1, const U1, immutable U1))
static foreach (Sint; AliasSeq!(S2, const S2, immutable S2))
{{
Uint un = Uint.max;
assertNotThrown(to!Sint(un));
assert(to!Sint(un) == un);
}}
// big unsigned to small signed
static foreach (Uint; AliasSeq!(U2, const U2, immutable U2))
static foreach (Sint; AliasSeq!(S1, const S1, immutable S1))
{{
Uint un = Uint.max;
assertThrown(to!Sint(un));
}}
static assert(S1.sizeof < U2.sizeof);
// small signed to big unsigned
static foreach (Sint; AliasSeq!(S1, const S1, immutable S1))
static foreach (Uint; AliasSeq!(U2, const U2, immutable U2))
{{
Sint sn = -1;
assertThrown!ConvOverflowException(to!Uint(sn));
}}
// big signed to small unsigned
static foreach (Sint; AliasSeq!(S2, const S2, immutable S2))
static foreach (Uint; AliasSeq!(U1, const U1, immutable U1))
{{
Sint sn = -1;
assertThrown!ConvOverflowException(to!Uint(sn));
}}
}}
}
/*
Converting static arrays forwards to their dynamic counterparts.
*/
private T toImpl(T, S)(ref S s)
if (isStaticArray!S)
{
return toImpl!(T, typeof(s[0])[])(s);
}
@safe pure nothrow unittest
{
char[4] test = ['a', 'b', 'c', 'd'];
static assert(!isInputRange!(Unqual!(char[4])));
assert(to!string(test) == test);
}
/**
When source type supports member template function opCast, it is used.
*/
private T toImpl(T, S)(S value)
if (!isImplicitlyConvertible!(S, T) &&
is(typeof(S.init.opCast!T()) : T) &&
!isExactSomeString!T &&
!is(typeof(T(value))))
{
return value.opCast!T();
}
@safe pure unittest
{
static struct Test
{
struct T
{
this(S s) @safe pure { }
}
struct S
{
T opCast(U)() @safe pure { assert(false); }
}
}
cast(void) to!(Test.T)(Test.S());
// make sure std.conv.to is doing the same thing as initialization
Test.S s;
Test.T t = s;
}
@safe pure unittest
{
class B
{
T opCast(T)() { return 43; }
}
auto b = new B;
assert(to!int(b) == 43);
struct S
{
T opCast(T)() { return 43; }
}
auto s = S();
assert(to!int(s) == 43);
}
/**
When target type supports 'converting construction', it is used.
$(UL $(LI If target type is struct, `T(value)` is used.)
$(LI If target type is class, $(D new T(value)) is used.))
*/
private T toImpl(T, S)(S value)
if (!isImplicitlyConvertible!(S, T) &&
is(T == struct) && is(typeof(T(value))))
{
return T(value);
}
// Bugzilla 3961
@safe pure unittest
{
struct Int
{
int x;
}
Int i = to!Int(1);
static struct Int2
{
int x;
this(int x) @safe pure { this.x = x; }
}
Int2 i2 = to!Int2(1);
static struct Int3
{
int x;
static Int3 opCall(int x) @safe pure
{
Int3 i;
i.x = x;
return i;
}
}
Int3 i3 = to!Int3(1);
}
// Bugzilla 6808
@safe pure unittest
{
static struct FakeBigInt
{
this(string s) @safe pure {}
}
string s = "101";
auto i3 = to!FakeBigInt(s);
}
/// ditto
private T toImpl(T, S)(S value)
if (!isImplicitlyConvertible!(S, T) &&
is(T == class) && is(typeof(new T(value))))
{
return new T(value);
}
@safe pure unittest
{
static struct S
{
int x;
}
static class C
{
int x;
this(int x) @safe pure { this.x = x; }
}
static class B
{
int value;
this(S src) @safe pure { value = src.x; }
this(C src) @safe pure { value = src.x; }
}
S s = S(1);
auto b1 = to!B(s); // == new B(s)
assert(b1.value == 1);
C c = new C(2);
auto b2 = to!B(c); // == new B(c)
assert(b2.value == 2);
auto c2 = to!C(3); // == new C(3)
assert(c2.x == 3);
}
@safe pure unittest
{
struct S
{
class A
{
this(B b) @safe pure {}
}
class B : A
{
this() @safe pure { super(this); }
}
}
S.B b = new S.B();
S.A a = to!(S.A)(b); // == cast(S.A) b
// (do not run construction conversion like new S.A(b))
assert(b is a);
static class C : Object
{
this() @safe pure {}
this(Object o) @safe pure {}
}
Object oc = new C();
C a2 = to!C(oc); // == new C(a)
// Construction conversion overrides down-casting conversion
assert(a2 !is a); //
}
/**
Object-to-object conversions by dynamic casting throw exception when the source is
non-null and the target is null.
*/
private T toImpl(T, S)(S value)
if (!isImplicitlyConvertible!(S, T) &&
(is(S == class) || is(S == interface)) && !is(typeof(value.opCast!T()) : T) &&
(is(T == class) || is(T == interface)) && !is(typeof(new T(value))))
{
static if (is(T == immutable))
{
// immutable <- immutable
enum isModConvertible = is(S == immutable);
}
else static if (is(T == const))
{
static if (is(T == shared))
{
// shared const <- shared
// shared const <- shared const
// shared const <- immutable
enum isModConvertible = is(S == shared) || is(S == immutable);
}
else
{
// const <- mutable
// const <- immutable
enum isModConvertible = !is(S == shared);
}
}
else
{
static if (is(T == shared))
{
// shared <- shared mutable
enum isModConvertible = is(S == shared) && !is(S == const);
}
else
{
// (mutable) <- (mutable)
enum isModConvertible = is(Unqual!S == S);
}
}
static assert(isModConvertible, "Bad modifier conversion: "~S.stringof~" to "~T.stringof);
auto result = ()@trusted{ return cast(T) value; }();
if (!result && value)
{
throw new ConvException("Cannot convert object of static type "
~S.classinfo.name~" and dynamic type "~value.classinfo.name
~" to type "~T.classinfo.name);
}
return result;
}
// Unittest for 6288
@safe pure unittest
{
import std.exception;
alias Identity(T) = T;
alias toConst(T) = const T;
alias toShared(T) = shared T;
alias toSharedConst(T) = shared const T;
alias toImmutable(T) = immutable T;
template AddModifier(int n)
if (0 <= n && n < 5)
{
static if (n == 0) alias AddModifier = Identity;
else static if (n == 1) alias AddModifier = toConst;
else static if (n == 2) alias AddModifier = toShared;
else static if (n == 3) alias AddModifier = toSharedConst;
else static if (n == 4) alias AddModifier = toImmutable;
}
interface I {}
interface J {}
class A {}
class B : A {}
class C : B, I, J {}
class D : I {}
static foreach (m1; 0 .. 5) // enumerate modifiers
static foreach (m2; 0 .. 5) // ditto
{{
alias srcmod = AddModifier!m1;
alias tgtmod = AddModifier!m2;
// Compile time convertible equals to modifier convertible.
static if (isImplicitlyConvertible!(srcmod!Object, tgtmod!Object))
{
// Test runtime conversions: class to class, class to interface,
// interface to class, and interface to interface
// Check that the runtime conversion to succeed
srcmod!A ac = new srcmod!C();
srcmod!I ic = new srcmod!C();
assert(to!(tgtmod!C)(ac) !is null); // A(c) to C
assert(to!(tgtmod!I)(ac) !is null); // A(c) to I
assert(to!(tgtmod!C)(ic) !is null); // I(c) to C
assert(to!(tgtmod!J)(ic) !is null); // I(c) to J
// Check that the runtime conversion fails
srcmod!A ab = new srcmod!B();
srcmod!I id = new srcmod!D();
assertThrown(to!(tgtmod!C)(ab)); // A(b) to C
assertThrown(to!(tgtmod!I)(ab)); // A(b) to I
assertThrown(to!(tgtmod!C)(id)); // I(d) to C
assertThrown(to!(tgtmod!J)(id)); // I(d) to J
}
else
{
// Check that the conversion is rejected statically
static assert(!is(typeof(to!(tgtmod!C)(srcmod!A.init)))); // A to C
static assert(!is(typeof(to!(tgtmod!I)(srcmod!A.init)))); // A to I
static assert(!is(typeof(to!(tgtmod!C)(srcmod!I.init)))); // I to C
static assert(!is(typeof(to!(tgtmod!J)(srcmod!I.init)))); // I to J
}
}}
}
/**
Handles type _to string conversions
*/
private T toImpl(T, S)(S value)
if (!(isImplicitlyConvertible!(S, T) &&
!isEnumStrToStr!(S, T) && !isNullToStr!(S, T)) &&
!isInfinite!S && isExactSomeString!T)
{
static if (isExactSomeString!S && value[0].sizeof == ElementEncodingType!T.sizeof)
{
// string-to-string with incompatible qualifier conversion
static if (is(ElementEncodingType!T == immutable))
{
// conversion (mutable|const) -> immutable
return value.idup;
}
else
{
// conversion (immutable|const) -> mutable
return value.dup;
}
}
else static if (isExactSomeString!S)
{
import std.array : appender;
// other string-to-string
//Use Appender directly instead of toStr, which also uses a formatedWrite
auto w = appender!T();
w.put(value);
return w.data;
}
else static if (isIntegral!S && !is(S == enum))
{
// other integral-to-string conversions with default radix
return toImpl!(T, S)(value, 10);
}
else static if (is(S == void[]) || is(S == const(void)[]) || is(S == immutable(void)[]))
{
import core.stdc.string : memcpy;
import std.exception : enforce;
// Converting void array to string
alias Char = Unqual!(ElementEncodingType!T);
auto raw = cast(const(ubyte)[]) value;
enforce(raw.length % Char.sizeof == 0,
new ConvException("Alignment mismatch in converting a "
~ S.stringof ~ " to a "
~ T.stringof));
auto result = new Char[raw.length / Char.sizeof];
()@trusted{ memcpy(result.ptr, value.ptr, value.length); }();
return cast(T) result;
}
else static if (isPointer!S && isSomeChar!(PointerTarget!S))
{
// This is unsafe because we cannot guarantee that the pointer is null terminated.
return () @system {
static if (is(S : const(char)*))
import core.stdc.string : strlen;
else
size_t strlen(S s) nothrow
{
S p = s;
while (*p++) {}
return p-s-1;
}
return toImpl!T(value ? value[0 .. strlen(value)].dup : null);
}();
}
else static if (isSomeString!T && is(S == enum))
{
static if (isSwitchable!(OriginalType!S) && EnumMembers!S.length <= 50)
{
switch (value)
{
foreach (member; NoDuplicates!(EnumMembers!S))
{
case member:
return to!T(enumRep!(immutable(T), S, member));
}
default:
}
}
else
{
foreach (member; EnumMembers!S)
{
if (value == member)
return to!T(enumRep!(immutable(T), S, member));
}
}
import std.array : appender;
import std.format : FormatSpec, formatValue;
//Default case, delegate to format
//Note: we don't call toStr directly, to avoid duplicate work.
auto app = appender!T();
app.put("cast(" ~ S.stringof ~ ")");
FormatSpec!char f;
formatValue(app, cast(OriginalType!S) value, f);
return app.data;
}
else
{
// other non-string values runs formatting
return toStr!T(value);
}
}
// Bugzilla 14042
@system unittest
{
immutable(char)* ptr = "hello".ptr;
auto result = ptr.to!(char[]);
}
// Bugzilla 8384
@system unittest
{
void test1(T)(T lp, string cmp)
{
static foreach (e; AliasSeq!(char, wchar, dchar))
{
test2!(e[])(lp, cmp);
test2!(const(e)[])(lp, cmp);
test2!(immutable(e)[])(lp, cmp);
}
}
void test2(D, S)(S lp, string cmp)
{
assert(to!string(to!D(lp)) == cmp);
}
static foreach (e; AliasSeq!("Hello, world!", "Hello, world!"w, "Hello, world!"d))
{
test1(e, "Hello, world!");
test1(e.ptr, "Hello, world!");
}
static foreach (e; AliasSeq!("", ""w, ""d))
{
test1(e, "");
test1(e.ptr, "");
}
}
/*
To string conversion for non copy-able structs
*/
private T toImpl(T, S)(ref S value)
if (!(isImplicitlyConvertible!(S, T) &&
!isEnumStrToStr!(S, T) && !isNullToStr!(S, T)) &&
!isInfinite!S && isExactSomeString!T && !isCopyable!S && !isStaticArray!S)
{
import std.array : appender;
import std.format : FormatSpec, formatValue;
auto w = appender!T();
FormatSpec!(ElementEncodingType!T) f;
formatValue(w, value, f);
return w.data;
}
// Bugzilla 16108
@system unittest
{
static struct A
{
int val;
bool flag;
string toString() { return text(val, ":", flag); }
@disable this(this);
}
auto a = A();
assert(to!string(a) == "0:false");
static struct B
{
int val;
bool flag;
@disable this(this);
}
auto b = B();
assert(to!string(b) == "B(0, false)");
}
// Bugzilla 20070
@safe unittest
{
void writeThem(T)(ref inout(T) them)
{
assert(them.to!string == "[1, 2, 3, 4]");
}
const(uint)[4] vals = [ 1, 2, 3, 4 ];
writeThem(vals);
}
/*
Check whether type `T` can be used in a switch statement.
This is useful for compile-time generation of switch case statements.
*/
private template isSwitchable(E)
{
enum bool isSwitchable = is(typeof({
switch (E.init) { default: }
}));
}
//
@safe unittest
{
static assert(isSwitchable!int);
static assert(!isSwitchable!double);
static assert(!isSwitchable!real);
}
//Static representation of the index I of the enum S,
//In representation T.
//T must be an immutable string (avoids un-necessary initializations).
private template enumRep(T, S, S value)
if (is (T == immutable) && isExactSomeString!T && is(S == enum))
{
static T enumRep = toStr!T(value);
}
@safe pure unittest
{
import std.exception;
void dg()
{
// string to string conversion
alias Chars = AliasSeq!(char, wchar, dchar);
foreach (LhsC; Chars)
{
alias LhStrings = AliasSeq!(LhsC[], const(LhsC)[], immutable(LhsC)[]);
foreach (Lhs; LhStrings)
{
foreach (RhsC; Chars)
{
alias RhStrings = AliasSeq!(RhsC[], const(RhsC)[], immutable(RhsC)[]);
foreach (Rhs; RhStrings)
{
Lhs s1 = to!Lhs("wyda");
Rhs s2 = to!Rhs(s1);
//writeln(Lhs.stringof, " -> ", Rhs.stringof);
assert(s1 == to!Lhs(s2));
}
}
}
}
foreach (T; Chars)
{
foreach (U; Chars)
{
T[] s1 = to!(T[])("Hello, world!");
auto s2 = to!(U[])(s1);
assert(s1 == to!(T[])(s2));
auto s3 = to!(const(U)[])(s1);
assert(s1 == to!(T[])(s3));
auto s4 = to!(immutable(U)[])(s1);
assert(s1 == to!(T[])(s4));
}
}
}
dg();
assertCTFEable!dg;
}
@safe pure unittest
{
// Conversion representing bool value with string
bool b;
assert(to!string(b) == "false");
b = true;
assert(to!string(b) == "true");
}
@safe pure unittest
{
// Conversion representing character value with string
alias AllChars =
AliasSeq!( char, const( char), immutable( char),
wchar, const(wchar), immutable(wchar),
dchar, const(dchar), immutable(dchar));
foreach (Char1; AllChars)
{
foreach (Char2; AllChars)
{
Char1 c = 'a';
assert(to!(Char2[])(c)[0] == c);
}
uint x = 4;
assert(to!(Char1[])(x) == "4");
}
string s = "foo";
string s2;
foreach (char c; s)
{
s2 ~= to!string(c);
}
assert(s2 == "foo");
}
@safe pure nothrow unittest
{
import std.exception;
// Conversion representing integer values with string
static foreach (Int; AliasSeq!(ubyte, ushort, uint, ulong))
{
assert(to!string(Int(0)) == "0");
assert(to!string(Int(9)) == "9");
assert(to!string(Int(123)) == "123");
}
static foreach (Int; AliasSeq!(byte, short, int, long))
{
assert(to!string(Int(0)) == "0");
assert(to!string(Int(9)) == "9");
assert(to!string(Int(123)) == "123");
assert(to!string(Int(-0)) == "0");
assert(to!string(Int(-9)) == "-9");
assert(to!string(Int(-123)) == "-123");
assert(to!string(const(Int)(6)) == "6");
}
assert(wtext(int.max) == "2147483647"w);
assert(wtext(int.min) == "-2147483648"w);
assert(to!string(0L) == "0");
assertCTFEable!(
{
assert(to!string(1uL << 62) == "4611686018427387904");
assert(to!string(0x100000000) == "4294967296");
assert(to!string(-138L) == "-138");
});
}
@safe unittest // sprintf issue
{
double[2] a = [ 1.5, 2.5 ];
assert(to!string(a) == "[1.5, 2.5]");
}
@system unittest
{
// Conversion representing class object with string
class A
{
override string toString() const { return "an A"; }
}
A a;
assert(to!string(a) == "null");
a = new A;
assert(to!string(a) == "an A");
// Bug 7660
class C { override string toString() const { return "C"; } }
struct S { C c; alias c this; }
S s; s.c = new C();
assert(to!string(s) == "C");
}
@safe unittest
{
// Conversion representing struct object with string
struct S1
{
string toString() { return "wyda"; }
}
assert(to!string(S1()) == "wyda");
struct S2
{
int a = 42;
float b = 43.5;
}
S2 s2;
assert(to!string(s2) == "S2(42, 43.5)");
// Test for issue 8080
struct S8080
{
short[4] data;
alias data this;
string toString() { return "<S>"; }
}
S8080 s8080;
assert(to!string(s8080) == "<S>");
}
@safe unittest
{
// Conversion representing enum value with string
enum EB : bool { a = true }
enum EU : uint { a = 0, b = 1, c = 2 } // base type is unsigned
enum EI : int { a = -1, b = 0, c = 1 } // base type is signed (bug 7909)
enum EF : real { a = 1.414, b = 1.732, c = 2.236 }
enum EC : char { a = 'x', b = 'y' }
enum ES : string { a = "aaa", b = "bbb" }
static foreach (E; AliasSeq!(EB, EU, EI, EF, EC, ES))
{
assert(to! string(E.a) == "a"c);
assert(to!wstring(E.a) == "a"w);
assert(to!dstring(E.a) == "a"d);
}
// Test an value not corresponding to an enum member.
auto o = cast(EU) 5;
assert(to! string(o) == "cast(EU)5"c);
assert(to!wstring(o) == "cast(EU)5"w);
assert(to!dstring(o) == "cast(EU)5"d);
}
@safe unittest
{
enum E
{
foo,
doo = foo, // check duplicate switch statements
bar,
}
//Test regression 12494
assert(to!string(E.foo) == "foo");
assert(to!string(E.doo) == "foo");
assert(to!string(E.bar) == "bar");
static foreach (S; AliasSeq!(string, wstring, dstring, const(char[]), const(wchar[]), const(dchar[])))
{{
auto s1 = to!S(E.foo);
auto s2 = to!S(E.foo);
assert(s1 == s2);
// ensure we don't allocate when it's unnecessary
assert(s1 is s2);
}}
static foreach (S; AliasSeq!(char[], wchar[], dchar[]))
{{
auto s1 = to!S(E.foo);
auto s2 = to!S(E.foo);
assert(s1 == s2);
// ensure each mutable array is unique
assert(s1 !is s2);
}}
}
// ditto
@trusted pure private T toImpl(T, S)(S value, uint radix, LetterCase letterCase = LetterCase.upper)
if (isIntegral!S &&
isExactSomeString!T)
in
{
assert(radix >= 2 && radix <= 36);
}
do
{
alias EEType = Unqual!(ElementEncodingType!T);
T toStringRadixConvert(size_t bufLen)(uint runtimeRadix = 0)
{
Unsigned!(Unqual!S) div = void, mValue = unsigned(value);
size_t index = bufLen;
EEType[bufLen] buffer = void;
char baseChar = letterCase == LetterCase.lower ? 'a' : 'A';
char mod = void;
do
{
div = cast(S)(mValue / runtimeRadix );
mod = cast(ubyte)(mValue % runtimeRadix);
mod += mod < 10 ? '0' : baseChar - 10;
buffer[--index] = cast(char) mod;
mValue = div;
} while (mValue);
return cast(T) buffer[index .. $].dup;
}
import std.array : array;
switch (radix)
{
case 10:
// The (value+0) is so integral promotions happen to the type
return toChars!(10, EEType)(value + 0).array;
case 16:
// The unsigned(unsigned(value)+0) is so unsigned integral promotions happen to the type
if (letterCase == letterCase.upper)
return toChars!(16, EEType, LetterCase.upper)(unsigned(unsigned(value) + 0)).array;
else
return toChars!(16, EEType, LetterCase.lower)(unsigned(unsigned(value) + 0)).array;
case 2:
return toChars!(2, EEType)(unsigned(unsigned(value) + 0)).array;
case 8:
return toChars!(8, EEType)(unsigned(unsigned(value) + 0)).array;
default:
return toStringRadixConvert!(S.sizeof * 6)(radix);
}
}
@safe pure nothrow unittest
{
static foreach (Int; AliasSeq!(uint, ulong))
{
assert(to!string(Int(16), 16) == "10");
assert(to!string(Int(15), 2u) == "1111");
assert(to!string(Int(1), 2u) == "1");
assert(to!string(Int(0x1234AF), 16u) == "1234AF");
assert(to!string(Int(0x1234BCD), 16u, LetterCase.upper) == "1234BCD");
assert(to!string(Int(0x1234AF), 16u, LetterCase.lower) == "1234af");
}
static foreach (Int; AliasSeq!(int, long))
{
assert(to!string(Int(-10), 10u) == "-10");
}
assert(to!string(byte(-10), 16) == "F6");
assert(to!string(long.min) == "-9223372036854775808");
assert(to!string(long.max) == "9223372036854775807");
}
/**
Narrowing numeric-numeric conversions throw when the value does not
fit in the narrower type.
*/
private T toImpl(T, S)(S value)
if (!isImplicitlyConvertible!(S, T) &&
(isNumeric!S || isSomeChar!S || isBoolean!S) &&
(isNumeric!T || isSomeChar!T || isBoolean!T) && !is(T == enum))
{
static if (isFloatingPoint!S && isIntegral!T)
{
import std.math : isNaN;
if (value.isNaN) throw new ConvException("Input was NaN");
}
enum sSmallest = mostNegative!S;
enum tSmallest = mostNegative!T;
static if (sSmallest < 0)
{
// possible underflow converting from a signed
static if (tSmallest == 0)
{
immutable good = value >= 0;
}
else
{
static assert(tSmallest < 0);
immutable good = value >= tSmallest;
}
if (!good)
throw new ConvOverflowException("Conversion negative overflow");
}
static if (S.max > T.max)
{
// possible overflow
if (value > T.max)
throw new ConvOverflowException("Conversion positive overflow");
}
return (ref value)@trusted{ return cast(T) value; }(value);
}
@safe pure unittest
{
import std.exception;
dchar a = ' ';
assert(to!char(a) == ' ');
a = 300;
assert(collectException(to!char(a)));
dchar from0 = 'A';
char to0 = to!char(from0);
wchar from1 = 'A';
char to1 = to!char(from1);
char from2 = 'A';
char to2 = to!char(from2);
char from3 = 'A';
wchar to3 = to!wchar(from3);
char from4 = 'A';
dchar to4 = to!dchar(from4);
}
@safe unittest
{
import std.exception;
// Narrowing conversions from enum -> integral should be allowed, but they
// should throw at runtime if the enum value doesn't fit in the target
// type.
enum E1 : ulong { A = 1, B = 1UL << 48, C = 0 }
assert(to!int(E1.A) == 1);
assert(to!bool(E1.A) == true);
assertThrown!ConvOverflowException(to!int(E1.B)); // E1.B overflows int
assertThrown!ConvOverflowException(to!bool(E1.B)); // E1.B overflows bool
assert(to!bool(E1.C) == false);
enum E2 : long { A = -1L << 48, B = -1 << 31, C = 1 << 31 }
assertThrown!ConvOverflowException(to!int(E2.A)); // E2.A overflows int
assertThrown!ConvOverflowException(to!uint(E2.B)); // E2.B overflows uint
assert(to!int(E2.B) == -1 << 31); // but does not overflow int
assert(to!int(E2.C) == 1 << 31); // E2.C does not overflow int
enum E3 : int { A = -1, B = 1, C = 255, D = 0 }
assertThrown!ConvOverflowException(to!ubyte(E3.A));
assertThrown!ConvOverflowException(to!bool(E3.A));
assert(to!byte(E3.A) == -1);
assert(to!byte(E3.B) == 1);
assert(to!ubyte(E3.C) == 255);
assert(to!bool(E3.B) == true);
assertThrown!ConvOverflowException(to!byte(E3.C));
assertThrown!ConvOverflowException(to!bool(E3.C));
assert(to!bool(E3.D) == false);
}
@safe unittest
{
import std.exception;
import std.math : isNaN;
double d = double.nan;
float f = to!float(d);
assert(f.isNaN);
assert(to!double(f).isNaN);
assertThrown!ConvException(to!int(d));
assertThrown!ConvException(to!int(f));
auto ex = collectException(d.to!int);
assert(ex.msg == "Input was NaN");
}
/**
Array-to-array conversion (except when target is a string type)
converts each element in turn by using `to`.
*/
private T toImpl(T, S)(S value)
if (!isImplicitlyConvertible!(S, T) &&
!isSomeString!S && isDynamicArray!S &&
!isExactSomeString!T && isArray!T)
{
alias E = typeof(T.init[0]);
static if (isStaticArray!T)
{
import std.exception : enforce;
auto res = to!(E[])(value);
enforce!ConvException(T.length == res.length,
convFormat("Length mismatch when converting to static array: %s vs %s", T.length, res.length));
return res[0 .. T.length];
}
else
{
import std.array : appender;
auto w = appender!(E[])();
w.reserve(value.length);
foreach (ref e; value)
{
w.put(to!E(e));
}
return w.data;
}
}
@safe pure unittest
{
import std.exception;
// array to array conversions
uint[] a = [ 1u, 2, 3 ];
auto b = to!(float[])(a);
assert(b == [ 1.0f, 2, 3 ]);
immutable(int)[3] d = [ 1, 2, 3 ];
b = to!(float[])(d);
assert(b == [ 1.0f, 2, 3 ]);
uint[][] e = [ a, a ];
auto f = to!(float[][])(e);
assert(f[0] == b && f[1] == b);
// Test for bug 8264
struct Wrap
{
string wrap;
alias wrap this;
}
Wrap[] warr = to!(Wrap[])(["foo", "bar"]); // should work
// Issue 12633
import std.conv : to;
const s2 = ["10", "20"];
immutable int[2] a3 = s2.to!(int[2]);
assert(a3 == [10, 20]);
// verify length mismatches are caught
immutable s4 = [1, 2, 3, 4];
foreach (i; [1, 4])
{
auto ex = collectException(s4[0 .. i].to!(int[2]));
assert(ex && ex.msg == "Length mismatch when converting to static array: 2 vs " ~ [cast(char)(i + '0')],
ex ? ex.msg : "Exception was not thrown!");
}
}
@safe unittest
{
auto b = [ 1.0f, 2, 3 ];
auto c = to!(string[])(b);
assert(c[0] == "1" && c[1] == "2" && c[2] == "3");
}
/**
Associative array to associative array conversion converts each key
and each value in turn.
*/
private T toImpl(T, S)(S value)
if (!isImplicitlyConvertible!(S, T) && isAssociativeArray!S &&
isAssociativeArray!T && !is(T == enum))
{
/* This code is potentially unsafe.
*/
alias K2 = KeyType!T;
alias V2 = ValueType!T;
// While we are "building" the AA, we need to unqualify its values, and only re-qualify at the end
Unqual!V2[K2] result;
foreach (k1, v1; value)
{
// Cast values temporarily to Unqual!V2 to store them to result variable
result[to!K2(k1)] = cast(Unqual!V2) to!V2(v1);
}
// Cast back to original type
return cast(T) result;
}
@safe unittest
{
// hash to hash conversions
int[string] a;
a["0"] = 1;
a["1"] = 2;
auto b = to!(double[dstring])(a);
assert(b["0"d] == 1 && b["1"d] == 2);
}
@safe unittest // Bugzilla 8705, from doc
{
import std.exception;
int[string][double[int[]]] a;
auto b = to!(short[wstring][string[double[]]])(a);
a = [null:["hello":int.max]];
assertThrown!ConvOverflowException(to!(short[wstring][string[double[]]])(a));
}
@system unittest // Extra cases for AA with qualifiers conversion
{
int[][int[]] a;// = [[], []];
auto b = to!(immutable(short[])[immutable short[]])(a);
double[dstring][int[long[]]] c;
auto d = to!(immutable(short[immutable wstring])[immutable string[double[]]])(c);
}
@safe unittest
{
import std.algorithm.comparison : equal;
import std.array : byPair;
int[int] a;
assert(a.to!(int[int]) == a);
assert(a.to!(const(int)[int]).byPair.equal(a.byPair));
}
version (unittest)
private void testIntegralToFloating(Integral, Floating)()
{
Integral a = 42;
auto b = to!Floating(a);
assert(a == b);
assert(a == to!Integral(b));
}
version (unittest)
private void testFloatingToIntegral(Floating, Integral)()
{
bool convFails(Source, Target, E)(Source src)
{
try
cast(void) to!Target(src);
catch (E)
return true;
return false;
}
// convert some value
Floating a = 4.2e1;
auto b = to!Integral(a);
assert(is(typeof(b) == Integral) && b == 42);
// convert some negative value (if applicable)
a = -4.2e1;
static if (Integral.min < 0)
{
b = to!Integral(a);
assert(is(typeof(b) == Integral) && b == -42);
}
else
{
// no go for unsigned types
assert(convFails!(Floating, Integral, ConvOverflowException)(a));
}
// convert to the smallest integral value
a = 0.0 + Integral.min;
static if (Integral.min < 0)
{
a = -a; // -Integral.min not representable as an Integral
assert(convFails!(Floating, Integral, ConvOverflowException)(a)
|| Floating.sizeof <= Integral.sizeof);
}
a = 0.0 + Integral.min;
assert(to!Integral(a) == Integral.min);
--a; // no more representable as an Integral
assert(convFails!(Floating, Integral, ConvOverflowException)(a)
|| Floating.sizeof <= Integral.sizeof);
a = 0.0 + Integral.max;
assert(to!Integral(a) == Integral.max || Floating.sizeof <= Integral.sizeof);
++a; // no more representable as an Integral
assert(convFails!(Floating, Integral, ConvOverflowException)(a)
|| Floating.sizeof <= Integral.sizeof);
// convert a value with a fractional part
a = 3.14;
assert(to!Integral(a) == 3);
a = 3.99;
assert(to!Integral(a) == 3);
static if (Integral.min < 0)
{
a = -3.14;
assert(to!Integral(a) == -3);
a = -3.99;
assert(to!Integral(a) == -3);
}
}
@safe pure unittest
{
alias AllInts = AliasSeq!(byte, ubyte, short, ushort, int, uint, long, ulong);
alias AllFloats = AliasSeq!(float, double, real);
alias AllNumerics = AliasSeq!(AllInts, AllFloats);
// test with same type
{
foreach (T; AllNumerics)
{
T a = 42;
auto b = to!T(a);
assert(is(typeof(a) == typeof(b)) && a == b);
}
}
// test that floating-point numbers convert properly to largest ints
// see http://oregonstate.edu/~peterseb/mth351/docs/351s2001_fp80x87.html
// look for "largest fp integer with a predecessor"
{
// float
int a = 16_777_215; // 2^24 - 1
assert(to!int(to!float(a)) == a);
assert(to!int(to!float(-a)) == -a);
// double
long b = 9_007_199_254_740_991; // 2^53 - 1
assert(to!long(to!double(b)) == b);
assert(to!long(to!double(-b)) == -b);
// real
static if (real.mant_dig >= 64)
{
ulong c = 18_446_744_073_709_551_615UL; // 2^64 - 1
assert(to!ulong(to!real(c)) == c);
}
}
// test conversions floating => integral
{
// AllInts[0 .. $ - 1] should be AllInts
// @@@ BUG IN COMPILER @@@
foreach (Integral; AllInts[0 .. $ - 1])
{
foreach (Floating; AllFloats)
{
testFloatingToIntegral!(Floating, Integral)();
}
}
}
// test conversion integral => floating
{
foreach (Integral; AllInts[0 .. $ - 1])
{
foreach (Floating; AllFloats)
{
testIntegralToFloating!(Integral, Floating)();
}
}
}
// test parsing
{
foreach (T; AllNumerics)
{
// from type immutable(char)[2]
auto a = to!T("42");
assert(a == 42);
// from type char[]
char[] s1 = "42".dup;
a = to!T(s1);
assert(a == 42);
// from type char[2]
char[2] s2;
s2[] = "42";
a = to!T(s2);
assert(a == 42);
// from type immutable(wchar)[2]
a = to!T("42"w);
assert(a == 42);
}
}
}
@safe unittest
{
alias AllInts = AliasSeq!(byte, ubyte, short, ushort, int, uint, long, ulong);
alias AllFloats = AliasSeq!(float, double, real);
alias AllNumerics = AliasSeq!(AllInts, AllFloats);
// test conversions to string
{
foreach (T; AllNumerics)
{
T a = 42;
string s = to!string(a);
assert(s == "42", s);
wstring ws = to!wstring(a);
assert(ws == "42"w, to!string(ws));
dstring ds = to!dstring(a);
assert(ds == "42"d, to!string(ds));
// array test
T[] b = new T[2];
b[0] = 42;
b[1] = 33;
assert(to!string(b) == "[42, 33]");
}
}
// test array to string conversion
foreach (T ; AllNumerics)
{
auto a = [to!T(1), 2, 3];
assert(to!string(a) == "[1, 2, 3]");
}
// test enum to int conversion
enum Testing { Test1, Test2 }
Testing t;
auto a = to!string(t);
assert(a == "Test1");
}
/**
String, or string-like input range, to non-string conversion runs parsing.
$(UL
$(LI When the source is a wide string, it is first converted to a narrow
string and then parsed.)
$(LI When the source is a narrow string, normal text parsing occurs.))
*/
private T toImpl(T, S)(S value)
if (isInputRange!S && isSomeChar!(ElementEncodingType!S) &&
!isExactSomeString!T && is(typeof(parse!T(value))))
{
scope(success)
{
if (!value.empty)
{
throw convError!(S, T)(value);
}
}
return parse!T(value);
}
/// ditto
private T toImpl(T, S)(S value, uint radix)
if (isInputRange!S && !isInfinite!S && isSomeChar!(ElementEncodingType!S) &&
isIntegral!T && is(typeof(parse!T(value, radix))))
{
scope(success)
{
if (!value.empty)
{
throw convError!(S, T)(value);
}
}
return parse!T(value, radix);
}
@safe pure unittest
{
// Issue 6668 - ensure no collaterals thrown
try { to!uint("-1"); }
catch (ConvException e) { assert(e.next is null); }
}
@safe pure unittest
{
static foreach (Str; AliasSeq!(string, wstring, dstring))
{{
Str a = "123";
assert(to!int(a) == 123);
assert(to!double(a) == 123);
}}
// 6255
auto n = to!int("FF", 16);
assert(n == 255);
}
// bugzilla 15800
@safe unittest
{
import std.utf : byCodeUnit, byChar, byWchar, byDchar;
assert(to!int(byCodeUnit("10")) == 10);
assert(to!int(byCodeUnit("10"), 10) == 10);
assert(to!int(byCodeUnit("10"w)) == 10);
assert(to!int(byCodeUnit("10"w), 10) == 10);
assert(to!int(byChar("10")) == 10);
assert(to!int(byChar("10"), 10) == 10);
assert(to!int(byWchar("10")) == 10);
assert(to!int(byWchar("10"), 10) == 10);
assert(to!int(byDchar("10")) == 10);
assert(to!int(byDchar("10"), 10) == 10);
}
/**
String, or string-like input range, to char type not directly
supported by parse parses the first dchar of the source.
Returns: the first code point of the input range, converted
to type T.
Throws: ConvException if the input range contains more than
a single code point, or if the code point does not
fit into a code unit of type T.
*/
private T toImpl(T, S)(S value)
if (isSomeChar!T && !is(typeof(parse!T(value))) &&
is(typeof(parse!dchar(value))))
{
import std.utf : encode;
immutable dchar codepoint = parse!dchar(value);
if (!value.empty)
throw new ConvException(convFormat("Cannot convert \"%s\" to %s because it " ~
"contains more than a single code point.",
value, T.stringof));
T[dchar.sizeof / T.sizeof] decodedCodepoint;
if (encode(decodedCodepoint, codepoint) != 1)
throw new ConvException(convFormat("First code point '%s' of \"%s\" does not fit into a " ~
"single %s code unit", codepoint, value, T.stringof));
return decodedCodepoint[0];
}
@safe pure unittest
{
import std.exception : assertThrown;
assert(toImpl!wchar("a") == 'a');
assert(toImpl!char("a"d) == 'a');
assert(toImpl!char("a"w) == 'a');
assert(toImpl!wchar("a"d) == 'a');
assertThrown!ConvException(toImpl!wchar("ab"));
assertThrown!ConvException(toImpl!char("😃"d));
}
/**
Convert a value that is implicitly convertible to the enum base type
into an Enum value. If the value does not match any enum member values
a ConvException is thrown.
Enums with floating-point or string base types are not supported.
*/
private T toImpl(T, S)(S value)
if (is(T == enum) && !is(S == enum)
&& is(typeof(value == OriginalType!T.init))
&& !isFloatingPoint!(OriginalType!T) && !isSomeString!(OriginalType!T))
{
foreach (Member; EnumMembers!T)
{
if (Member == value)
return Member;
}
throw new ConvException(convFormat("Value (%s) does not match any member value of enum '%s'", value, T.stringof));
}
@safe pure unittest
{
import std.exception;
enum En8143 : int { A = 10, B = 20, C = 30, D = 20 }
enum En8143[][] m3 = to!(En8143[][])([[10, 30], [30, 10]]);
static assert(m3 == [[En8143.A, En8143.C], [En8143.C, En8143.A]]);
En8143 en1 = to!En8143(10);
assert(en1 == En8143.A);
assertThrown!ConvException(to!En8143(5)); // matches none
En8143[][] m1 = to!(En8143[][])([[10, 30], [30, 10]]);
assert(m1 == [[En8143.A, En8143.C], [En8143.C, En8143.A]]);
}
/***************************************************************
Rounded conversion from floating point to integral.
Rounded conversions do not work with non-integral target types.
*/
template roundTo(Target)
{
Target roundTo(Source)(Source value)
{
import std.math : abs, log2, trunc;
static assert(isFloatingPoint!Source);
static assert(isIntegral!Target);
// If value >= 2 ^^ (real.mant_dig - 1), the number is an integer
// and adding 0.5 won't work, but we allready know, that we do
// not have to round anything.
if (log2(abs(value)) >= real.mant_dig - 1)
return to!Target(value);
return to!Target(trunc(value + (value < 0 ? -0.5L : 0.5L)));
}
}
///
@safe unittest
{
assert(roundTo!int(3.14) == 3);
assert(roundTo!int(3.49) == 3);
assert(roundTo!int(3.5) == 4);
assert(roundTo!int(3.999) == 4);
assert(roundTo!int(-3.14) == -3);
assert(roundTo!int(-3.49) == -3);
assert(roundTo!int(-3.5) == -4);
assert(roundTo!int(-3.999) == -4);
assert(roundTo!(const int)(to!(const double)(-3.999)) == -4);
}
@safe unittest
{
import std.exception;
// boundary values
static foreach (Int; AliasSeq!(byte, ubyte, short, ushort, int, uint))
{
assert(roundTo!Int(Int.min - 0.4L) == Int.min);
assert(roundTo!Int(Int.max + 0.4L) == Int.max);
assertThrown!ConvOverflowException(roundTo!Int(Int.min - 0.5L));
assertThrown!ConvOverflowException(roundTo!Int(Int.max + 0.5L));
}
}
@safe unittest
{
import std.exception;
assertThrown!ConvException(roundTo!int(float.init));
auto ex = collectException(roundTo!int(float.init));
assert(ex.msg == "Input was NaN");
}
// issue 5232
@safe pure unittest
{
real r1 = ulong.max;
assert(roundTo!ulong(r1) == ulong.max);
real r2 = ulong.max - 1;
assert(roundTo!ulong(r2) == ulong.max - 1);
real r3 = ulong.max / 2;
assert(roundTo!ulong(r3) == ulong.max / 2);
real r4 = ulong.max / 2 + 1;
assert(roundTo!ulong(r4) == ulong.max / 2 + 1);
// this is only an issue on computers where real == double
long l = -(2L ^^ double.mant_dig) + 1;
double r5 = l;
assert(roundTo!long(r5) == l);
}
/**
The `parse` family of functions works quite like the `to`
family, except that:
$(OL
$(LI It only works with character ranges as input.)
$(LI It takes the input by reference. (This means that rvalues - such
as string literals - are not accepted: use `to` instead.))
$(LI It advances the input to the position following the conversion.)
$(LI It does not throw if it could not convert the entire input.))
This overload converts a character input range to a `bool`.
Params:
Target = the type to convert to
source = the lvalue of an $(REF_ALTTEXT input range, isInputRange, std,range,primitives)
Returns:
A `bool`
Throws:
A $(LREF ConvException) if the range does not represent a `bool`.
Note:
All character input range conversions using $(LREF to) are forwarded
to `parse` and do not require lvalues.
*/
Target parse(Target, Source)(ref Source source)
if (isInputRange!Source &&
isSomeChar!(ElementType!Source) &&
is(Unqual!Target == bool))
{
import std.ascii : toLower;
static if (isNarrowString!Source)
{
import std.string : representation;
auto s = source.representation;
}
else
{
alias s = source;
}
if (!s.empty)
{
auto c1 = toLower(s.front);
bool result = c1 == 't';
if (result || c1 == 'f')
{
s.popFront();
foreach (c; result ? "rue" : "alse")
{
if (s.empty || toLower(s.front) != c)
goto Lerr;
s.popFront();
}
static if (isNarrowString!Source)
source = cast(Source) s;
return result;
}
}
Lerr:
throw parseError("bool should be case-insensitive 'true' or 'false'");
}
///
@safe unittest
{
auto s = "true";
bool b = parse!bool(s);
assert(b);
}
@safe unittest
{
import std.algorithm.comparison : equal;
import std.exception;
struct InputString
{
string _s;
@property auto front() { return _s.front; }
@property bool empty() { return _s.empty; }
void popFront() { _s.popFront(); }
}
auto s = InputString("trueFALSETrueFalsetRUEfALSE");
assert(parse!bool(s) == true);
assert(s.equal("FALSETrueFalsetRUEfALSE"));
assert(parse!bool(s) == false);
assert(s.equal("TrueFalsetRUEfALSE"));
assert(parse!bool(s) == true);
assert(s.equal("FalsetRUEfALSE"));
assert(parse!bool(s) == false);
assert(s.equal("tRUEfALSE"));
assert(parse!bool(s) == true);
assert(s.equal("fALSE"));
assert(parse!bool(s) == false);
assert(s.empty);
foreach (ss; ["tfalse", "ftrue", "t", "f", "tru", "fals", ""])
{
s = InputString(ss);
assertThrown!ConvException(parse!bool(s));
}
}
/**
Parses a character $(REF_ALTTEXT input range, isInputRange, std,range,primitives)
to an integral value.
Params:
Target = the integral type to convert to
s = the lvalue of an input range
Returns:
A number of type `Target`
Throws:
A $(LREF ConvException) If an overflow occurred during conversion or
if no character of the input was meaningfully converted.
*/
Target parse(Target, Source)(ref Source s)
if (isSomeChar!(ElementType!Source) &&
isIntegral!Target && !is(Target == enum))
{
static if (Target.sizeof < int.sizeof)
{
// smaller types are handled like integers
auto v = .parse!(Select!(Target.min < 0, int, uint))(s);
auto result = ()@trusted{ return cast(Target) v; }();
if (result == v)
return result;
throw new ConvOverflowException("Overflow in integral conversion");
}
else
{
// int or larger types
static if (Target.min < 0)
bool sign = false;
else
enum bool sign = false;
enum char maxLastDigit = Target.min < 0 ? 7 : 5;
uint c;
static if (isNarrowString!Source)
{
import std.string : representation;
auto source = s.representation;
}
else
{
alias source = s;
}
if (source.empty)
goto Lerr;
c = source.front;
static if (Target.min < 0)
{
switch (c)
{
case '-':
sign = true;
goto case '+';
case '+':
source.popFront();
if (source.empty)
goto Lerr;
c = source.front;
break;
default:
break;
}
}
c -= '0';
if (c <= 9)
{
Target v = cast(Target) c;
source.popFront();
while (!source.empty)
{
c = cast(typeof(c)) (source.front - '0');
if (c > 9)
break;
if (v >= 0 && (v < Target.max/10 ||
(v == Target.max/10 && c <= maxLastDigit + sign)))
{
// Note: `v` can become negative here in case of parsing
// the most negative value:
v = cast(Target) (v * 10 + c);
source.popFront();
}
else
throw new ConvOverflowException("Overflow in integral conversion");
}
if (sign)
v = -v;
static if (isNarrowString!Source)
s = cast(Source) source;
return v;
}
Lerr:
static if (isNarrowString!Source)
throw convError!(Source, Target)(cast(Source) source);
else
throw convError!(Source, Target)(source);
}
}
///
@safe pure unittest
{
string s = "123";
auto a = parse!int(s);
assert(a == 123);
// parse only accepts lvalues
static assert(!__traits(compiles, parse!int("123")));
}
///
@safe pure unittest
{
import std.string : tr;
string test = "123 \t 76.14";
auto a = parse!uint(test);
assert(a == 123);
assert(test == " \t 76.14"); // parse bumps string
test = tr(test, " \t\n\r", "", "d"); // skip ws
assert(test == "76.14");
auto b = parse!double(test);
assert(b == 76.14);
assert(test == "");
}
@safe pure unittest
{
static foreach (Int; AliasSeq!(byte, ubyte, short, ushort, int, uint, long, ulong))
{
{
assert(to!Int("0") == 0);
static if (isSigned!Int)
{
assert(to!Int("+0") == 0);
assert(to!Int("-0") == 0);
}
}
static if (Int.sizeof >= byte.sizeof)
{
assert(to!Int("6") == 6);
assert(to!Int("23") == 23);
assert(to!Int("68") == 68);
assert(to!Int("127") == 0x7F);
static if (isUnsigned!Int)
{
assert(to!Int("255") == 0xFF);
}
static if (isSigned!Int)
{
assert(to!Int("+6") == 6);
assert(to!Int("+23") == 23);
assert(to!Int("+68") == 68);
assert(to!Int("+127") == 0x7F);
assert(to!Int("-6") == -6);
assert(to!Int("-23") == -23);
assert(to!Int("-68") == -68);
assert(to!Int("-128") == -128);
}
}
static if (Int.sizeof >= short.sizeof)
{
assert(to!Int("468") == 468);
assert(to!Int("32767") == 0x7FFF);
static if (isUnsigned!Int)
{
assert(to!Int("65535") == 0xFFFF);
}
static if (isSigned!Int)
{
assert(to!Int("+468") == 468);
assert(to!Int("+32767") == 0x7FFF);
assert(to!Int("-468") == -468);
assert(to!Int("-32768") == -32768);
}
}
static if (Int.sizeof >= int.sizeof)
{
assert(to!Int("2147483647") == 0x7FFFFFFF);
static if (isUnsigned!Int)
{
assert(to!Int("4294967295") == 0xFFFFFFFF);
}
static if (isSigned!Int)
{
assert(to!Int("+2147483647") == 0x7FFFFFFF);
assert(to!Int("-2147483648") == -2147483648);
}
}
static if (Int.sizeof >= long.sizeof)
{
assert(to!Int("9223372036854775807") == 0x7FFFFFFFFFFFFFFF);
static if (isUnsigned!Int)
{
assert(to!Int("18446744073709551615") == 0xFFFFFFFFFFFFFFFF);
}
static if (isSigned!Int)
{
assert(to!Int("+9223372036854775807") == 0x7FFFFFFFFFFFFFFF);
assert(to!Int("-9223372036854775808") == 0x8000000000000000);
}
}
}
}
@safe pure unittest
{
import std.exception;
immutable string[] errors =
[
"",
"-",
"+",
"-+",
" ",
" 0",
"0 ",
"- 0",
"1-",
"xx",
"123h",
"-+1",
"--1",
"+-1",
"++1",
];
immutable string[] unsignedErrors =
[
"+5",
"-78",
];
// parsing error check
static foreach (Int; AliasSeq!(byte, ubyte, short, ushort, int, uint, long, ulong))
{
foreach (j, s; errors)
assertThrown!ConvException(to!Int(s));
// parse!SomeUnsigned cannot parse head sign.
static if (isUnsigned!Int)
{
foreach (j, s; unsignedErrors)
assertThrown!ConvException(to!Int(s));
}
}
immutable string[] positiveOverflowErrors =
[
"128", // > byte.max
"256", // > ubyte.max
"32768", // > short.max
"65536", // > ushort.max
"2147483648", // > int.max
"4294967296", // > uint.max
"9223372036854775808", // > long.max
"18446744073709551616", // > ulong.max
];
// positive overflow check
static foreach (i, Int; AliasSeq!(byte, ubyte, short, ushort, int, uint, long, ulong))
{
foreach (j, s; positiveOverflowErrors[i..$])
assertThrown!ConvOverflowException(to!Int(s));
}
immutable string[] negativeOverflowErrors =
[
"-129", // < byte.min
"-32769", // < short.min
"-2147483649", // < int.min
"-9223372036854775809", // < long.min
];
// negative overflow check
static foreach (i, Int; AliasSeq!(byte, short, int, long))
{
foreach (j, s; negativeOverflowErrors[i..$])
assertThrown!ConvOverflowException(to!Int(s));
}
}
@safe pure unittest
{
void checkErrMsg(string input, dchar charInMsg, dchar charNotInMsg)
{
try
{
int x = input.to!int();
assert(false, "Invalid conversion did not throw");
}
catch (ConvException e)
{
// Ensure error message contains failing character, not the character
// beyond.
import std.algorithm.searching : canFind;
assert( e.msg.canFind(charInMsg) &&
!e.msg.canFind(charNotInMsg));
}
catch (Exception e)
{
assert(false, "Did not throw ConvException");
}
}
checkErrMsg("@$", '@', '$');
checkErrMsg("@$123", '@', '$');
checkErrMsg("1@$23", '@', '$');
checkErrMsg("1@$", '@', '$');
checkErrMsg("1@$2", '@', '$');
checkErrMsg("12@$", '@', '$');
}
@safe pure unittest
{
import std.exception;
assertCTFEable!({ string s = "1234abc"; assert(parse! int(s) == 1234 && s == "abc"); });
assertCTFEable!({ string s = "-1234abc"; assert(parse! int(s) == -1234 && s == "abc"); });
assertCTFEable!({ string s = "1234abc"; assert(parse!uint(s) == 1234 && s == "abc"); });
}
// Issue 13931
@safe pure unittest
{
import std.exception;
assertThrown!ConvOverflowException("-21474836480".to!int());
assertThrown!ConvOverflowException("-92233720368547758080".to!long());
}
// Issue 14396
@safe pure unittest
{
struct StrInputRange
{
this (string s) { str = s; }
char front() const @property { return str[front_index]; }
char popFront() { return str[front_index++]; }
bool empty() const @property { return str.length <= front_index; }
string str;
size_t front_index = 0;
}
auto input = StrInputRange("777");
assert(parse!int(input) == 777);
}
// issue 9621
@safe pure unittest
{
string s1 = "[ \"\\141\", \"\\0\", \"\\41\", \"\\418\" ]";
assert(parse!(string[])(s1) == ["a", "\0", "!", "!8"]);
}
/// ditto
Target parse(Target, Source)(ref Source source, uint radix)
if (isSomeChar!(ElementType!Source) &&
isIntegral!Target && !is(Target == enum))
in
{
assert(radix >= 2 && radix <= 36);
}
do
{
import core.checkedint : mulu, addu;
import std.exception : enforce;
if (radix == 10)
return parse!Target(source);
enforce!ConvException(!source.empty, "s must not be empty in integral parse");
immutable uint beyond = (radix < 10 ? '0' : 'a'-10) + radix;
Target v = 0;
static if (isNarrowString!Source)
{
import std.string : representation;
auto s = source.representation;
}
else
{
alias s = source;
}
auto found = false;
do
{
uint c = s.front;
if (c < '0')
break;
if (radix < 10)
{
if (c >= beyond)
break;
}
else
{
if (c > '9')
{
c |= 0x20;//poorman's tolower
if (c < 'a' || c >= beyond)
break;
c -= 'a'-10-'0';
}
}
bool overflow = false;
auto nextv = v.mulu(radix, overflow).addu(c - '0', overflow);
enforce!ConvOverflowException(!overflow && nextv <= Target.max, "Overflow in integral conversion");
v = cast(Target) nextv;
s.popFront();
found = true;
} while (!s.empty);
if (!found)
{
static if (isNarrowString!Source)
throw convError!(Source, Target)(cast(Source) source);
else
throw convError!(Source, Target)(source);
}
static if (isNarrowString!Source)
source = cast(Source) s;
return v;
}
@safe pure unittest
{
string s; // parse doesn't accept rvalues
foreach (i; 2 .. 37)
{
assert(parse!int(s = "0", i) == 0);
assert(parse!int(s = "1", i) == 1);
assert(parse!byte(s = "10", i) == i);
}
assert(parse!int(s = "0011001101101", 2) == 0b0011001101101);
assert(parse!int(s = "765", 8) == octal!765);
assert(parse!int(s = "fCDe", 16) == 0xfcde);
// 6609
assert(parse!int(s = "-42", 10) == -42);
assert(parse!ubyte(s = "ff", 16) == 0xFF);
}
@safe pure unittest // bugzilla 7302
{
import std.range : cycle;
auto r = cycle("2A!");
auto u = parse!uint(r, 16);
assert(u == 42);
assert(r.front == '!');
}
@safe pure unittest // bugzilla 13163
{
import std.exception;
foreach (s; ["fff", "123"])
assertThrown!ConvOverflowException(s.parse!ubyte(16));
}
@safe pure unittest // bugzilla 17282
{
auto str = "0=\x00\x02\x55\x40&\xff\xf0\n\x00\x04\x55\x40\xff\xf0~4+10\n";
assert(parse!uint(str) == 0);
}
@safe pure unittest // bugzilla 18248
{
import std.exception : assertThrown;
auto str = ";";
assertThrown(str.parse!uint(16));
}
/**
* Takes a string representing an `enum` type and returns that type.
*
* Params:
* Target = the `enum` type to convert to
* s = the lvalue of the range to _parse
*
* Returns:
* An `enum` of type `Target`
*
* Throws:
* A $(LREF ConvException) if type `Target` does not have a member
* represented by `s`.
*/
Target parse(Target, Source)(ref Source s)
if (isSomeString!Source && !is(Source == enum) &&
is(Target == enum))
{
import std.algorithm.searching : startsWith;
Target result;
size_t longest_match = 0;
foreach (i, e; EnumMembers!Target)
{
auto ident = __traits(allMembers, Target)[i];
if (longest_match < ident.length && s.startsWith(ident))
{
result = e;
longest_match = ident.length ;
}
}
if (longest_match > 0)
{
s = s[longest_match .. $];
return result ;
}
throw new ConvException(
Target.stringof ~ " does not have a member named '"
~ to!string(s) ~ "'");
}
///
@safe unittest
{
enum EnumType : bool { a = true, b = false, c = a }
auto str = "a";
assert(parse!EnumType(str) == EnumType.a);
}
@safe unittest
{
import std.exception;
enum EB : bool { a = true, b = false, c = a }
enum EU { a, b, c }
enum EI { a = -1, b = 0, c = 1 }
enum EF : real { a = 1.414, b = 1.732, c = 2.236 }
enum EC : char { a = 'a', b = 'b', c = 'c' }
enum ES : string { a = "aaa", b = "bbb", c = "ccc" }
static foreach (E; AliasSeq!(EB, EU, EI, EF, EC, ES))
{
assert(to!E("a"c) == E.a);
assert(to!E("b"w) == E.b);
assert(to!E("c"d) == E.c);
assertThrown!ConvException(to!E("d"));
}
}
@safe pure unittest // bugzilla 4744
{
enum A { member1, member11, member111 }
assert(to!A("member1" ) == A.member1 );
assert(to!A("member11" ) == A.member11 );
assert(to!A("member111") == A.member111);
auto s = "member1111";
assert(parse!A(s) == A.member111 && s == "1");
}
/**
* Parses a character range to a floating point number.
*
* Params:
* Target = a floating point type
* source = the lvalue of the range to _parse
*
* Returns:
* A floating point number of type `Target`
*
* Throws:
* A $(LREF ConvException) if `source` is empty, if no number could be
* parsed, or if an overflow occurred.
*/
Target parse(Target, Source)(ref Source source)
if (isInputRange!Source && isSomeChar!(ElementType!Source) && !is(Source == enum) &&
isFloatingPoint!Target && !is(Target == enum))
{
import std.ascii : isDigit, isAlpha, toLower, toUpper, isHexDigit;
import std.exception : enforce;
static if (isNarrowString!Source)
{
import std.string : representation;
auto p = source.representation;
}
else
{
alias p = source;
}
static immutable real[14] negtab =
[ 1e-4096L,1e-2048L,1e-1024L,1e-512L,1e-256L,1e-128L,1e-64L,1e-32L,
1e-16L,1e-8L,1e-4L,1e-2L,1e-1L,1.0L ];
static immutable real[13] postab =
[ 1e+4096L,1e+2048L,1e+1024L,1e+512L,1e+256L,1e+128L,1e+64L,1e+32L,
1e+16L,1e+8L,1e+4L,1e+2L,1e+1L ];
ConvException bailOut()(string msg = null, string fn = __FILE__, size_t ln = __LINE__)
{
if (msg == null)
msg = "Floating point conversion error";
return new ConvException(text(msg, " for input \"", source, "\"."), fn, ln);
}
enforce(!p.empty, bailOut());
bool sign = false;
switch (p.front)
{
case '-':
sign = true;
p.popFront();
enforce(!p.empty, bailOut());
if (toLower(p.front) == 'i')
goto case 'i';
break;
case '+':
p.popFront();
enforce(!p.empty, bailOut());
break;
case 'i': case 'I':
// inf
p.popFront();
enforce(!p.empty && toUpper(p.front) == 'N',
bailOut("error converting input to floating point"));
p.popFront();
enforce(!p.empty && toUpper(p.front) == 'F',
bailOut("error converting input to floating point"));
// skip past the last 'f'
p.popFront();
static if (isNarrowString!Source)
source = cast(Source) p;
return sign ? -Target.infinity : Target.infinity;
default: {}
}
bool isHex = false;
bool startsWithZero = p.front == '0';
if (startsWithZero)
{
p.popFront();
if (p.empty)
{
static if (isNarrowString!Source)
source = cast(Source) p;
return sign ? -0.0 : 0.0;
}
isHex = p.front == 'x' || p.front == 'X';
if (isHex) p.popFront();
}
else if (toLower(p.front) == 'n')
{
// nan
p.popFront();
enforce(!p.empty && toUpper(p.front) == 'A',
bailOut("error converting input to floating point"));
p.popFront();
enforce(!p.empty && toUpper(p.front) == 'N',
bailOut("error converting input to floating point"));
// skip past the last 'n'
p.popFront();
static if (isNarrowString!Source)
source = cast(Source) p;
return typeof(return).nan;
}
/*
* The following algorithm consists of 2 steps:
* 1) parseDigits processes the textual input into msdec and possibly
* lsdec/msscale variables, followed by the exponent parser which sets
* exp below.
* Hex: input is 0xaaaaa...p+000... where aaaa is the mantissa in hex
* and 000 is the exponent in decimal format with base 2.
* Decimal: input is 0.00333...p+000... where 0.0033 is the mantissa
* in decimal and 000 is the exponent in decimal format with base 10.
* 2) Convert msdec/lsdec and exp into native real format
*/
real ldval = 0.0;
char dot = 0; /* if decimal point has been seen */
int exp = 0;
ulong msdec = 0, lsdec = 0;
ulong msscale = 1;
bool sawDigits;
enum { hex, decimal }
// sets msdec, lsdec/msscale, and sawDigits by parsing the mantissa digits
void parseDigits(alias FloatFormat)()
{
static if (FloatFormat == hex)
{
enum uint base = 16;
enum ulong msscaleMax = 0x1000_0000_0000_0000UL; // largest power of 16 a ulong holds
enum ubyte expIter = 4; // iterate the base-2 exponent by 4 for every hex digit
alias checkDigit = isHexDigit;
/*
* convert letter to binary representation: First clear bit
* to convert lower space chars to upperspace, then -('A'-10)
* converts letter A to 10, letter B to 11, ...
*/
alias convertDigit = (int x) => isAlpha(x) ? ((x & ~0x20) - ('A' - 10)) : x - '0';
sawDigits = false;
}
else static if (FloatFormat == decimal)
{
enum uint base = 10;
enum ulong msscaleMax = 10_000_000_000_000_000_000UL; // largest power of 10 a ulong holds
enum ubyte expIter = 1; // iterate the base-10 exponent once for every decimal digit
alias checkDigit = isDigit;
alias convertDigit = (int x) => x - '0';
// Used to enforce that any mantissa digits are present
sawDigits = startsWithZero;
}
else
static assert(false, "Unrecognized floating-point format used.");
while (!p.empty)
{
int i = p.front;
while (checkDigit(i))
{
sawDigits = true; /* must have at least 1 digit */
i = convertDigit(i);
if (msdec < (ulong.max - base)/base)
{
// For base 16: Y = ... + y3*16^3 + y2*16^2 + y1*16^1 + y0*16^0
msdec = msdec * base + i;
}
else if (msscale < msscaleMax)
{
lsdec = lsdec * base + i;
msscale *= base;
}
else
{
exp += expIter;
}
exp -= dot;
p.popFront();
if (p.empty)
break;
i = p.front;
if (i == '_')
{
p.popFront();
if (p.empty)
break;
i = p.front;
}
}
if (i == '.' && !dot)
{
p.popFront();
dot += expIter;
}
else
break;
}
// Have we seen any mantissa digits so far?
enforce(sawDigits, bailOut("no digits seen"));
static if (FloatFormat == hex)
enforce(!p.empty && (p.front == 'p' || p.front == 'P'),
bailOut("Floating point parsing: exponent is required"));
}
if (isHex)
parseDigits!hex;
else
parseDigits!decimal;
if (isHex || (!p.empty && (p.front == 'e' || p.front == 'E')))
{
char sexp = 0;
int e = 0;
p.popFront();
enforce(!p.empty, new ConvException("Unexpected end of input"));
switch (p.front)
{
case '-': sexp++;
goto case;
case '+': p.popFront();
break;
default: {}
}
sawDigits = false;
while (!p.empty && isDigit(p.front))
{
if (e < 0x7FFFFFFF / 10 - 10) // prevent integer overflow
{
e = e * 10 + p.front - '0';
}
p.popFront();
sawDigits = true;
}
exp += (sexp) ? -e : e;
enforce(sawDigits, new ConvException("No digits seen."));
}
ldval = msdec;
if (msscale != 1) /* if stuff was accumulated in lsdec */
ldval = ldval * msscale + lsdec;
if (isHex)
{
import std.math : ldexp;
// Exponent is power of 2, not power of 10
ldval = ldexp(ldval,exp);
}
else if (ldval)
{
uint u = 0;
int pow = 4096;
while (exp > 0)
{
while (exp >= pow)
{
ldval *= postab[u];
exp -= pow;
}
pow >>= 1;
u++;
}
while (exp < 0)
{
while (exp <= -pow)
{
ldval *= negtab[u];
enforce(ldval != 0, new ConvException("Range error"));
exp += pow;
}
pow >>= 1;
u++;
}
}
// if overflow occurred
enforce(ldval != real.infinity, new ConvException("Range error"));
static if (isNarrowString!Source)
source = cast(Source) p;
return sign ? -ldval : ldval;
}
///
@safe unittest
{
import std.math : approxEqual;
auto str = "123.456";
assert(parse!double(str).approxEqual(123.456));
}
@safe unittest
{
import std.exception;
import std.math : isNaN, fabs, isInfinity;
// Compare reals with given precision
bool feq(in real rx, in real ry, in real precision = 0.000001L)
{
if (rx == ry)
return 1;
if (isNaN(rx))
return cast(bool) isNaN(ry);
if (isNaN(ry))
return 0;
return cast(bool)(fabs(rx - ry) <= precision);
}
// Make given typed literal
F Literal(F)(F f)
{
return f;
}
static foreach (Float; AliasSeq!(float, double, real))
{
assert(to!Float("123") == Literal!Float(123));
assert(to!Float("+123") == Literal!Float(+123));
assert(to!Float("-123") == Literal!Float(-123));
assert(to!Float("123e2") == Literal!Float(123e2));
assert(to!Float("123e+2") == Literal!Float(123e+2));
assert(to!Float("123e-2") == Literal!Float(123e-2));
assert(to!Float("123.") == Literal!Float(123.0));
assert(to!Float(".375") == Literal!Float(.375));
assert(to!Float("1.23375E+2") == Literal!Float(1.23375E+2));
assert(to!Float("0") is 0.0);
assert(to!Float("-0") is -0.0);
assert(isNaN(to!Float("nan")));
assertThrown!ConvException(to!Float("\x00"));
}
// min and max
float f = to!float("1.17549e-38");
assert(feq(cast(real) f, cast(real) 1.17549e-38));
assert(feq(cast(real) f, cast(real) float.min_normal));
f = to!float("3.40282e+38");
assert(to!string(f) == to!string(3.40282e+38));
// min and max
double d = to!double("2.22508e-308");
assert(feq(cast(real) d, cast(real) 2.22508e-308));
assert(feq(cast(real) d, cast(real) double.min_normal));
d = to!double("1.79769e+308");
assert(to!string(d) == to!string(1.79769e+308));
assert(to!string(d) == to!string(double.max));
auto z = real.max / 2L;
static assert(is(typeof(z) == real));
assert(!isNaN(z));
assert(!isInfinity(z));
string a = to!string(z);
real b = to!real(a);
string c = to!string(b);
assert(c == a, "\n" ~ c ~ "\n" ~ a);
assert(to!string(to!real(to!string(real.max / 2L))) == to!string(real.max / 2L));
// min and max
real r = to!real(to!string(real.min_normal));
version (NetBSD)
{
// NetBSD notice
// to!string returns 3.3621e-4932L. It is less than real.min_normal and it is subnormal value
// Simple C code
// long double rd = 3.3621e-4932L;
// printf("%Le\n", rd);
// has unexpected result: 1.681050e-4932
//
// Bug report: http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=50937
}
else
{
assert(to!string(r) == to!string(real.min_normal));
}
r = to!real(to!string(real.max));
assert(to!string(r) == to!string(real.max));
real pi = 3.1415926535897932384626433832795028841971693993751;
string fullPrecision = "3.1415926535897932384626433832795028841971693993751";
assert(feq(parse!real(fullPrecision), pi, 2*real.epsilon));
real x = 0x1.FAFAFAFAFAFAFAFAFAFAFAFAFAFAFAFAAFAAFAFAFAFAFAFAFAP-252;
string full = "0x1.FAFAFAFAFAFAFAFAFAFAFAFAFAFAFAFAAFAAFAFAFAFAFAFAFAP-252";
assert(parse!real(full) == x);
}
// Tests for the double implementation
@system unittest
{
// @system because strtod is not @safe.
static if (real.mant_dig == 53)
{
import core.stdc.stdlib, std.exception, std.math;
//Should be parsed exactly: 53 bit mantissa
string s = "0x1A_BCDE_F012_3456p10";
auto x = parse!real(s);
assert(x == 0x1A_BCDE_F012_3456p10L);
//1 bit is implicit
assert(((*cast(ulong*)&x) & 0x000F_FFFF_FFFF_FFFF) == 0xA_BCDE_F012_3456);
assert(strtod("0x1ABCDEF0123456p10", null) == x);
//Should be parsed exactly: 10 bit mantissa
s = "0x3FFp10";
x = parse!real(s);
assert(x == 0x03FFp10);
//1 bit is implicit
assert(((*cast(ulong*)&x) & 0x000F_FFFF_FFFF_FFFF) == 0x000F_F800_0000_0000);
assert(strtod("0x3FFp10", null) == x);
//60 bit mantissa, round up
s = "0xFFF_FFFF_FFFF_FFFFp10";
x = parse!real(s);
assert(approxEqual(x, 0xFFF_FFFF_FFFF_FFFFp10));
//1 bit is implicit
assert(((*cast(ulong*)&x) & 0x000F_FFFF_FFFF_FFFF) == 0x0000_0000_0000_0000);
assert(strtod("0xFFFFFFFFFFFFFFFp10", null) == x);
//60 bit mantissa, round down
s = "0xFFF_FFFF_FFFF_FF90p10";
x = parse!real(s);
assert(approxEqual(x, 0xFFF_FFFF_FFFF_FF90p10));
//1 bit is implicit
assert(((*cast(ulong*)&x) & 0x000F_FFFF_FFFF_FFFF) == 0x000F_FFFF_FFFF_FFFF);
assert(strtod("0xFFFFFFFFFFFFF90p10", null) == x);
//61 bit mantissa, round up 2
s = "0x1F0F_FFFF_FFFF_FFFFp10";
x = parse!real(s);
assert(approxEqual(x, 0x1F0F_FFFF_FFFF_FFFFp10));
//1 bit is implicit
assert(((*cast(ulong*)&x) & 0x000F_FFFF_FFFF_FFFF) == 0x000F_1000_0000_0000);
assert(strtod("0x1F0FFFFFFFFFFFFFp10", null) == x);
//61 bit mantissa, round down 2
s = "0x1F0F_FFFF_FFFF_FF10p10";
x = parse!real(s);
assert(approxEqual(x, 0x1F0F_FFFF_FFFF_FF10p10));
//1 bit is implicit
assert(((*cast(ulong*)&x) & 0x000F_FFFF_FFFF_FFFF) == 0x000F_0FFF_FFFF_FFFF);
assert(strtod("0x1F0FFFFFFFFFFF10p10", null) == x);
//Huge exponent
s = "0x1F_FFFF_FFFF_FFFFp900";
x = parse!real(s);
assert(strtod("0x1FFFFFFFFFFFFFp900", null) == x);
//exponent too big -> converror
s = "";
assertThrown!ConvException(x = parse!real(s));
assert(strtod("0x1FFFFFFFFFFFFFp1024", null) == real.infinity);
//-exponent too big -> 0
s = "0x1FFFFFFFFFFFFFp-2000";
x = parse!real(s);
assert(x == 0);
assert(strtod("0x1FFFFFFFFFFFFFp-2000", null) == x);
}
}
@system unittest
{
import core.stdc.errno;
import core.stdc.stdlib;
import std.math : floatTraits, RealFormat;
errno = 0; // In case it was set by another unittest in a different module.
struct longdouble
{
static if (floatTraits!real.realFormat == RealFormat.ieeeQuadruple)
{
ushort[8] value;
}
else static if (floatTraits!real.realFormat == RealFormat.ieeeExtended)
{
ushort[5] value;
}
else static if (floatTraits!real.realFormat == RealFormat.ieeeDouble)
{
ushort[4] value;
}
else
static assert(false, "Not implemented");
}
real ld;
longdouble x;
real ld1;
longdouble x1;
int i;
static if (floatTraits!real.realFormat == RealFormat.ieeeQuadruple)
enum s = "0x1.FFFFFFFFFFFFFFFFFFFFFFFFFFFFp-16382";
else static if (floatTraits!real.realFormat == RealFormat.ieeeExtended)
enum s = "0x1.FFFFFFFFFFFFFFFEp-16382";
else static if (floatTraits!real.realFormat == RealFormat.ieeeDouble)
enum s = "0x1.FFFFFFFFFFFFFFFEp-1000";
else
static assert(false, "Floating point format for real not supported");
auto s2 = s.idup;
ld = parse!real(s2);
assert(s2.empty);
x = *cast(longdouble *)&ld;
static if (floatTraits!real.realFormat == RealFormat.ieeeExtended)
{
version (CRuntime_Microsoft)
ld1 = 0x1.FFFFFFFFFFFFFFFEp-16382L; // strtold currently mapped to strtod
else
ld1 = strtold(s.ptr, null);
}
else
ld1 = strtold(s.ptr, null);
x1 = *cast(longdouble *)&ld1;
assert(x1 == x && ld1 == ld);
assert(!errno);
s2 = "1.0e5";
ld = parse!real(s2);
assert(s2.empty);
x = *cast(longdouble *)&ld;
ld1 = strtold("1.0e5", null);
x1 = *cast(longdouble *)&ld1;
}
@safe pure unittest
{
import std.exception;
// Bugzilla 4959
{
auto s = "0 ";
auto x = parse!double(s);
assert(s == " ");
assert(x == 0.0);
}
// Bugzilla 3369
assert(to!float("inf") == float.infinity);
assert(to!float("-inf") == -float.infinity);
// Bugzilla 6160
assert(6_5.536e3L == to!real("6_5.536e3")); // 2^16
assert(0x1000_000_000_p10 == to!real("0x1000_000_000_p10")); // 7.03687e+13
// Bugzilla 6258
assertThrown!ConvException(to!real("-"));
assertThrown!ConvException(to!real("in"));
// Bugzilla 7055
assertThrown!ConvException(to!float("INF2"));
//extra stress testing
auto ssOK = ["1.", "1.1.1", "1.e5", "2e1e", "2a", "2e1_1", "3.4_",
"inf", "-inf", "infa", "-infa", "inf2e2", "-inf2e2",
"nan", "-NAN", "+NaN", "-nAna", "NAn2e2", "-naN2e2"];
auto ssKO = ["", " ", "2e", "2e+", "2e-", "2ee", "2e++1", "2e--1", "2e_1",
"+inf", "-in", "I", "+N", "-NaD", "0x3.F"];
foreach (s; ssOK)
parse!double(s);
foreach (s; ssKO)
assertThrown!ConvException(parse!double(s));
}
/**
Parsing one character off a range returns the first element and calls `popFront`.
Params:
Target = the type to convert to
s = the lvalue of an $(REF_ALTTEXT input range, isInputRange, std,range,primitives)
Returns:
A character of type `Target`
Throws:
A $(LREF ConvException) if the range is empty.
*/
Target parse(Target, Source)(ref Source s)
if (isSomeString!Source && !is(Source == enum) &&
staticIndexOf!(Unqual!Target, dchar, Unqual!(ElementEncodingType!Source)) >= 0)
{
if (s.empty)
throw convError!(Source, Target)(s);
static if (is(Unqual!Target == dchar))
{
Target result = s.front;
s.popFront();
return result;
}
else
{
// Special case: okay so parse a Char off a Char[]
Target result = s[0];
s = s[1 .. $];
return result;
}
}
@safe pure unittest
{
static foreach (Str; AliasSeq!(string, wstring, dstring))
{
static foreach (Char; AliasSeq!(char, wchar, dchar))
{{
static if (is(Unqual!Char == dchar) ||
Char.sizeof == ElementEncodingType!Str.sizeof)
{
Str s = "aaa";
assert(parse!Char(s) == 'a');
assert(s == "aa");
}
}}
}
}
/// ditto
Target parse(Target, Source)(ref Source s)
if (!isSomeString!Source && isInputRange!Source && isSomeChar!(ElementType!Source) &&
isSomeChar!Target && Target.sizeof >= ElementType!Source.sizeof && !is(Target == enum))
{
if (s.empty)
throw convError!(Source, Target)(s);
Target result = s.front;
s.popFront();
return result;
}
///
@safe pure unittest
{
auto s = "Hello, World!";
char first = parse!char(s);
assert(first == 'H');
assert(s == "ello, World!");
}
/*
Tests for to!bool and parse!bool
*/
@safe pure unittest
{
import std.exception;
assert(to!bool("TruE") == true);
assert(to!bool("faLse"d) == false);
assertThrown!ConvException(to!bool("maybe"));
auto t = "TrueType";
assert(parse!bool(t) == true);
assert(t == "Type");
auto f = "False killer whale"d;
assert(parse!bool(f) == false);
assert(f == " killer whale"d);
auto m = "maybe";
assertThrown!ConvException(parse!bool(m));
assert(m == "maybe"); // m shouldn't change on failure
auto s = "true";
auto b = parse!(const(bool))(s);
assert(b == true);
}
/**
Parsing a character range to `typeof(null)` returns `null` if the range
spells `"null"`. This function is case insensitive.
Params:
Target = the type to convert to
s = the lvalue of an $(REF_ALTTEXT input range, isInputRange, std,range,primitives)
Returns:
`null`
Throws:
A $(LREF ConvException) if the range doesn't represent `null`.
*/
Target parse(Target, Source)(ref Source s)
if (isInputRange!Source &&
isSomeChar!(ElementType!Source) &&
is(Unqual!Target == typeof(null)))
{
import std.ascii : toLower;
foreach (c; "null")
{
if (s.empty || toLower(s.front) != c)
throw parseError("null should be case-insensitive 'null'");
s.popFront();
}
return null;
}
///
@safe pure unittest
{
import std.exception : assertThrown;
alias NullType = typeof(null);
auto s1 = "null";
assert(parse!NullType(s1) is null);
assert(s1 == "");
auto s2 = "NUll"d;
assert(parse!NullType(s2) is null);
assert(s2 == "");
auto m = "maybe";
assertThrown!ConvException(parse!NullType(m));
assert(m == "maybe"); // m shouldn't change on failure
auto s = "NULL";
assert(parse!(const NullType)(s) is null);
}
//Used internally by parse Array/AA, to remove ascii whites
package void skipWS(R)(ref R r)
{
import std.ascii : isWhite;
static if (isSomeString!R)
{
//Implementation inspired from stripLeft.
foreach (i, c; r)
{
if (!isWhite(c))
{
r = r[i .. $];
return;
}
}
r = r[0 .. 0]; //Empty string with correct type.
return;
}
else
{
for (; !r.empty && isWhite(r.front); r.popFront())
{}
}
}
/**
* Parses an array from a string given the left bracket (default $(D
* '[')), right bracket (default `']'`), and element separator (by
* default `','`). A trailing separator is allowed.
*
* Params:
* s = The string to parse
* lbracket = the character that starts the array
* rbracket = the character that ends the array
* comma = the character that separates the elements of the array
*
* Returns:
* An array of type `Target`
*/
Target parse(Target, Source)(ref Source s, dchar lbracket = '[', dchar rbracket = ']', dchar comma = ',')
if (isSomeString!Source && !is(Source == enum) &&
isDynamicArray!Target && !is(Target == enum))
{
import std.array : appender;
auto result = appender!Target();
parseCheck!s(lbracket);
skipWS(s);
if (s.empty)
throw convError!(Source, Target)(s);
if (s.front == rbracket)
{
s.popFront();
return result.data;
}
for (;; s.popFront(), skipWS(s))
{
if (!s.empty && s.front == rbracket)
break;
result ~= parseElement!(WideElementType!Target)(s);
skipWS(s);
if (s.empty)
throw convError!(Source, Target)(s);
if (s.front != comma)
break;
}
parseCheck!s(rbracket);
return result.data;
}
///
@safe pure unittest
{
auto s1 = `[['h', 'e', 'l', 'l', 'o'], "world"]`;
auto a1 = parse!(string[])(s1);
assert(a1 == ["hello", "world"]);
auto s2 = `["aaa", "bbb", "ccc"]`;
auto a2 = parse!(string[])(s2);
assert(a2 == ["aaa", "bbb", "ccc"]);
}
@safe unittest // Bugzilla 9615
{
string s0 = "[1,2, ]";
string s1 = "[1,2, \t\v\r\n]";
string s2 = "[1,2]";
assert(s0.parse!(int[]) == [1,2]);
assert(s1.parse!(int[]) == [1,2]);
assert(s2.parse!(int[]) == [1,2]);
string s3 = `["a","b",]`;
string s4 = `["a","b"]`;
assert(s3.parse!(string[]) == ["a","b"]);
assert(s4.parse!(string[]) == ["a","b"]);
import std.exception : assertThrown;
string s5 = "[,]";
string s6 = "[, \t,]";
assertThrown!ConvException(parse!(string[])(s5));
assertThrown!ConvException(parse!(int[])(s6));
}
@safe unittest
{
int[] a = [1, 2, 3, 4, 5];
auto s = to!string(a);
assert(to!(int[])(s) == a);
}
@safe unittest
{
int[][] a = [ [1, 2] , [3], [4, 5] ];
auto s = to!string(a);
assert(to!(int[][])(s) == a);
}
@safe unittest
{
int[][][] ia = [ [[1,2],[3,4],[5]] , [[6],[],[7,8,9]] , [[]] ];
char[] s = to!(char[])(ia);
int[][][] ia2;
ia2 = to!(typeof(ia2))(s);
assert( ia == ia2);
}
@safe pure unittest
{
import std.exception;
//Check proper failure
auto s = "[ 1 , 2 , 3 ]";
foreach (i ; 0 .. s.length-1)
{
auto ss = s[0 .. i];
assertThrown!ConvException(parse!(int[])(ss));
}
int[] arr = parse!(int[])(s);
}
@safe pure unittest
{
//Checks parsing of strings with escaped characters
string s1 = `[
"Contains a\0null!",
"tab\there",
"line\nbreak",
"backslash \\ slash / question \?",
"number \x35 five",
"unicode \u65E5 sun",
"very long \U000065E5 sun"
]`;
//Note: escaped characters purposefully replaced and isolated to guarantee
//there are no typos in the escape syntax
string[] s2 = [
"Contains a" ~ '\0' ~ "null!",
"tab" ~ '\t' ~ "here",
"line" ~ '\n' ~ "break",
"backslash " ~ '\\' ~ " slash / question ?",
"number 5 five",
"unicode 日 sun",
"very long 日 sun"
];
assert(s2 == parse!(string[])(s1));
assert(s1.empty);
}
/// ditto
Target parse(Target, Source)(ref Source s, dchar lbracket = '[', dchar rbracket = ']', dchar comma = ',')
if (isExactSomeString!Source &&
isStaticArray!Target && !is(Target == enum))
{
static if (hasIndirections!Target)
Target result = Target.init[0].init;
else
Target result = void;
parseCheck!s(lbracket);
skipWS(s);
if (s.empty)
throw convError!(Source, Target)(s);
if (s.front == rbracket)
{
static if (result.length != 0)
goto Lmanyerr;
else
{
s.popFront();
return result;
}
}
for (size_t i = 0; ; s.popFront(), skipWS(s))
{
if (i == result.length)
goto Lmanyerr;
result[i++] = parseElement!(ElementType!Target)(s);
skipWS(s);
if (s.empty)
throw convError!(Source, Target)(s);
if (s.front != comma)
{
if (i != result.length)
goto Lfewerr;
break;
}
}
parseCheck!s(rbracket);
return result;
Lmanyerr:
throw parseError(text("Too many elements in input, ", result.length, " elements expected."));
Lfewerr:
throw parseError(text("Too few elements in input, ", result.length, " elements expected."));
}
@safe pure unittest
{
import std.exception;
auto s1 = "[1,2,3,4]";
auto sa1 = parse!(int[4])(s1);
assert(sa1 == [1,2,3,4]);
auto s2 = "[[1],[2,3],[4]]";
auto sa2 = parse!(int[][3])(s2);
assert(sa2 == [[1],[2,3],[4]]);
auto s3 = "[1,2,3]";
assertThrown!ConvException(parse!(int[4])(s3));
auto s4 = "[1,2,3,4,5]";
assertThrown!ConvException(parse!(int[4])(s4));
}
/**
* Parses an associative array from a string given the left bracket (default $(D
* '[')), right bracket (default `']'`), key-value separator (default $(D
* ':')), and element seprator (by default `','`).
*
* Params:
* s = the string to parse
* lbracket = the character that starts the associative array
* rbracket = the character that ends the associative array
* keyval = the character that associates the key with the value
* comma = the character that separates the elements of the associative array
*
* Returns:
* An associative array of type `Target`
*/
Target parse(Target, Source)(ref Source s, dchar lbracket = '[',
dchar rbracket = ']', dchar keyval = ':', dchar comma = ',')
if (isSomeString!Source && !is(Source == enum) &&
isAssociativeArray!Target && !is(Target == enum))
{
alias KeyType = typeof(Target.init.keys[0]);
alias ValType = typeof(Target.init.values[0]);
Target result;
parseCheck!s(lbracket);
skipWS(s);
if (s.empty)
throw convError!(Source, Target)(s);
if (s.front == rbracket)
{
s.popFront();
return result;
}
for (;; s.popFront(), skipWS(s))
{
auto key = parseElement!KeyType(s);
skipWS(s);
parseCheck!s(keyval);
skipWS(s);
auto val = parseElement!ValType(s);
skipWS(s);
result[key] = val;
if (s.empty)
throw convError!(Source, Target)(s);
if (s.front != comma)
break;
}
parseCheck!s(rbracket);
return result;
}
///
@safe pure unittest
{
auto s1 = "[1:10, 2:20, 3:30]";
auto aa1 = parse!(int[int])(s1);
assert(aa1 == [1:10, 2:20, 3:30]);
auto s2 = `["aaa":10, "bbb":20, "ccc":30]`;
auto aa2 = parse!(int[string])(s2);
assert(aa2 == ["aaa":10, "bbb":20, "ccc":30]);
auto s3 = `["aaa":[1], "bbb":[2,3], "ccc":[4,5,6]]`;
auto aa3 = parse!(int[][string])(s3);
assert(aa3 == ["aaa":[1], "bbb":[2,3], "ccc":[4,5,6]]);
}
@safe pure unittest
{
import std.exception;
//Check proper failure
auto s = "[1:10, 2:20, 3:30]";
foreach (i ; 0 .. s.length-1)
{
auto ss = s[0 .. i];
assertThrown!ConvException(parse!(int[int])(ss));
}
int[int] aa = parse!(int[int])(s);
}
private dchar parseEscape(Source)(ref Source s)
if (isInputRange!Source && isSomeChar!(ElementType!Source))
{
parseCheck!s('\\');
if (s.empty)
throw parseError("Unterminated escape sequence");
dchar getHexDigit()(ref Source s_ = s) // workaround
{
import std.ascii : isAlpha, isHexDigit;
if (s_.empty)
throw parseError("Unterminated escape sequence");
s_.popFront();
if (s_.empty)
throw parseError("Unterminated escape sequence");
dchar c = s_.front;
if (!isHexDigit(c))
throw parseError("Hex digit is missing");
return isAlpha(c) ? ((c & ~0x20) - ('A' - 10)) : c - '0';
}
// We need to do octals separate, because they need a lookahead to find out,
// where the escape sequence ends.
auto first = s.front;
if (first >= '0' && first <= '7')
{
dchar c1 = s.front;
s.popFront();
if (s.empty) return c1 - '0';
dchar c2 = s.front;
if (c2 < '0' || c2 > '7') return c1 - '0';
s.popFront();
dchar c3 = s.front;
if (c3 < '0' || c3 > '7') return 8 * (c1 - '0') + (c2 - '0');
s.popFront();
if (c1 > '3')
throw parseError("Octal sequence is larger than \\377");
return 64 * (c1 - '0') + 8 * (c2 - '0') + (c3 - '0');
}
dchar result;
switch (first)
{
case '"': result = '\"'; break;
case '\'': result = '\''; break;
case '?': result = '\?'; break;
case '\\': result = '\\'; break;
case 'a': result = '\a'; break;
case 'b': result = '\b'; break;
case 'f': result = '\f'; break;
case 'n': result = '\n'; break;
case 'r': result = '\r'; break;
case 't': result = '\t'; break;
case 'v': result = '\v'; break;
case 'x':
result = getHexDigit() << 4;
result |= getHexDigit();
break;
case 'u':
result = getHexDigit() << 12;
result |= getHexDigit() << 8;
result |= getHexDigit() << 4;
result |= getHexDigit();
break;
case 'U':
result = getHexDigit() << 28;
result |= getHexDigit() << 24;
result |= getHexDigit() << 20;
result |= getHexDigit() << 16;
result |= getHexDigit() << 12;
result |= getHexDigit() << 8;
result |= getHexDigit() << 4;
result |= getHexDigit();
break;
default:
throw parseError("Unknown escape character " ~ to!string(s.front));
}
if (s.empty)
throw parseError("Unterminated escape sequence");
s.popFront();
return result;
}
@safe pure unittest
{
string[] s1 = [
`\"`, `\'`, `\?`, `\\`, `\a`, `\b`, `\f`, `\n`, `\r`, `\t`, `\v`, //Normal escapes
`\141`,
`\x61`,
`\u65E5`, `\U00012456`
//`\&`, `\"`, //@@@9621@@@ Named Character Entities.
];
const(dchar)[] s2 = [
'\"', '\'', '\?', '\\', '\a', '\b', '\f', '\n', '\r', '\t', '\v', //Normal escapes
'\141',
'\x61',
'\u65E5', '\U00012456'
//'\&', '\"', //@@@9621@@@ Named Character Entities.
];
foreach (i ; 0 .. s1.length)
{
assert(s2[i] == parseEscape(s1[i]));
assert(s1[i].empty);
}
}
@safe pure unittest
{
import std.exception;
string[] ss = [
`hello!`, //Not an escape
`\`, //Premature termination
`\/`, //Not an escape
`\gggg`, //Not an escape
`\xzz`, //Not an hex
`\x0`, //Premature hex end
`\XB9`, //Not legal hex syntax
`\u!!`, //Not a unicode hex
`\777`, //Octal is larger than a byte
`\80`, //Wrong digit at beginning of octal
`\u123`, //Premature hex end
`\U123123` //Premature hex end
];
foreach (s ; ss)
assertThrown!ConvException(parseEscape(s));
}
// Undocumented
Target parseElement(Target, Source)(ref Source s)
if (isInputRange!Source && isSomeChar!(ElementType!Source) && !is(Source == enum) &&
isExactSomeString!Target)
{
import std.array : appender;
auto result = appender!Target();
// parse array of chars
if (s.empty)
throw convError!(Source, Target)(s);
if (s.front == '[')
return parse!Target(s);
parseCheck!s('\"');
if (s.empty)
throw convError!(Source, Target)(s);
if (s.front == '\"')
{
s.popFront();
return result.data;
}
while (true)
{
if (s.empty)
throw parseError("Unterminated quoted string");
switch (s.front)
{
case '\"':
s.popFront();
return result.data;
case '\\':
result.put(parseEscape(s));
break;
default:
result.put(s.front);
s.popFront();
break;
}
}
assert(0);
}
// ditto
Target parseElement(Target, Source)(ref Source s)
if (isInputRange!Source && isSomeChar!(ElementType!Source) && !is(Source == enum) &&
is(CharTypeOf!Target == dchar) && !is(Target == enum))
{
Unqual!Target c;
parseCheck!s('\'');
if (s.empty)
throw convError!(Source, Target)(s);
if (s.front != '\\')
{
c = s.front;
s.popFront();
}
else
c = parseEscape(s);
parseCheck!s('\'');
return c;
}
// ditto
Target parseElement(Target, Source)(ref Source s)
if (isInputRange!Source && isSomeChar!(ElementType!Source) &&
!isSomeString!Target && !isSomeChar!Target)
{
return parse!Target(s);
}
// Use this when parsing a type that will ultimately be appended to a
// string.
package template WideElementType(T)
{
alias E = ElementType!T;
static if (isSomeChar!E)
alias WideElementType = dchar;
else
alias WideElementType = E;
}
/***************************************************************
* Convenience functions for converting one or more arguments
* of any type into _text (the three character widths).
*/
string text(T...)(T args)
if (T.length > 0) { return textImpl!string(args); }
///ditto
wstring wtext(T...)(T args)
if (T.length > 0) { return textImpl!wstring(args); }
///ditto
dstring dtext(T...)(T args)
if (T.length > 0) { return textImpl!dstring(args); }
///
@safe unittest
{
assert( text(42, ' ', 1.5, ": xyz") == "42 1.5: xyz"c);
assert(wtext(42, ' ', 1.5, ": xyz") == "42 1.5: xyz"w);
assert(dtext(42, ' ', 1.5, ": xyz") == "42 1.5: xyz"d);
}
@safe unittest
{
char c = 'h';
wchar w = '你';
dchar d = 'እ';
assert( text(c, "ello", ' ', w, "好 ", d, "ው ሰላም ነው") == "hello 你好 እው ሰላም ነው"c);
assert(wtext(c, "ello", ' ', w, "好 ", d, "ው ሰላም ነው") == "hello 你好 እው ሰላም ነው"w);
assert(dtext(c, "ello", ' ', w, "好 ", d, "ው ሰላም ነው") == "hello 你好 እው ሰላም ነው"d);
string cs = "今日は";
wstring ws = "여보세요";
dstring ds = "Здравствуйте";
assert( text(cs, ' ', ws, " ", ds) == "今日は 여보세요 Здравствуйте"c);
assert(wtext(cs, ' ', ws, " ", ds) == "今日は 여보세요 Здравствуйте"w);
assert(dtext(cs, ' ', ws, " ", ds) == "今日は 여보세요 Здравствуйте"d);
}
private S textImpl(S, U...)(U args)
{
static if (U.length == 0)
{
return null;
}
else static if (U.length == 1)
{
return to!S(args[0]);
}
else
{
import std.array : appender;
import std.traits : isSomeChar, isSomeString;
auto app = appender!S();
// assume that on average, parameters will have less
// than 20 elements
app.reserve(U.length * 20);
foreach (arg; args)
{
static if (
isSomeChar!(typeof(arg)) || isSomeString!(typeof(arg)) ||
( isInputRange!(typeof(arg)) && isSomeChar!(ElementType!(typeof(arg))) )
)
app.put(arg);
else static if (
is(Unqual!(typeof(arg)) == uint) || is(Unqual!(typeof(arg)) == ulong) ||
is(Unqual!(typeof(arg)) == int) || is(Unqual!(typeof(arg)) == long)
)
// https://issues.dlang.org/show_bug.cgi?id=17712#c15
app.put(textImpl!(S)(arg));
else
app.put(to!S(arg));
}
return app.data;
}
}
/***************************************************************
The `octal` facility provides a means to declare a number in base 8.
Using `octal!177` or `octal!"177"` for 127 represented in octal
(same as 0177 in C).
The rules for strings are the usual for literals: If it can fit in an
`int`, it is an `int`. Otherwise, it is a `long`. But, if the
user specifically asks for a `long` with the `L` suffix, always
give the `long`. Give an unsigned iff it is asked for with the $(D
U) or `u` suffix. _Octals created from integers preserve the type
of the passed-in integral.
See_Also:
$(LREF parse) for parsing octal strings at runtime.
*/
template octal(string num)
if (isOctalLiteral(num))
{
static if ((octalFitsInInt!num && !literalIsLong!num) && !literalIsUnsigned!num)
enum octal = octal!int(num);
else static if ((!octalFitsInInt!num || literalIsLong!num) && !literalIsUnsigned!num)
enum octal = octal!long(num);
else static if ((octalFitsInInt!num && !literalIsLong!num) && literalIsUnsigned!num)
enum octal = octal!uint(num);
else static if ((!octalFitsInInt!(num) || literalIsLong!(num)) && literalIsUnsigned!(num))
enum octal = octal!ulong(num);
else
static assert(false);
}
/// Ditto
template octal(alias decimalInteger)
if (is(typeof(decimalInteger)) && isIntegral!(typeof(decimalInteger)))
{
enum octal = octal!(typeof(decimalInteger))(to!string(decimalInteger));
}
///
@safe unittest
{
// same as 0177
auto x = octal!177;
// octal is a compile-time device
enum y = octal!160;
// Create an unsigned octal
auto z = octal!"1_000_000u";
}
/*
Takes a string, num, which is an octal literal, and returns its
value, in the type T specified.
*/
private T octal(T)(const string num)
{
assert(isOctalLiteral(num));
T value = 0;
foreach (const char s; num)
{
if (s < '0' || s > '7') // we only care about digits; skip the rest
// safe to skip - this is checked out in the assert so these
// are just suffixes
continue;
value *= 8;
value += s - '0';
}
return value;
}
@safe unittest
{
int a = octal!int("10");
assert(a == 8);
}
/*
Take a look at int.max and int.max+1 in octal and the logic for this
function follows directly.
*/
private template octalFitsInInt(string octalNum)
{
// note it is important to strip the literal of all
// non-numbers. kill the suffix and underscores lest they mess up
// the number of digits here that we depend on.
enum bool octalFitsInInt = strippedOctalLiteral(octalNum).length < 11 ||
strippedOctalLiteral(octalNum).length == 11 &&
strippedOctalLiteral(octalNum)[0] == '1';
}
private string strippedOctalLiteral(string original)
{
string stripped = "";
foreach (c; original)
if (c >= '0' && c <= '7')
stripped ~= c;
return stripped;
}
private template literalIsLong(string num)
{
static if (num.length > 1)
// can be xxL or xxLu according to spec
enum literalIsLong = (num[$-1] == 'L' || num[$-2] == 'L');
else
enum literalIsLong = false;
}
private template literalIsUnsigned(string num)
{
static if (num.length > 1)
// can be xxU or xxUL according to spec
enum literalIsUnsigned = (num[$-1] == 'u' || num[$-2] == 'u')
// both cases are allowed too
|| (num[$-1] == 'U' || num[$-2] == 'U');
else
enum literalIsUnsigned = false;
}
/*
Returns if the given string is a correctly formatted octal literal.
The format is specified in spec/lex.html. The leading zero is allowed, but
not required.
*/
@safe pure nothrow @nogc
private bool isOctalLiteral(const string num)
{
if (num.length == 0)
return false;
// Must start with a number. To avoid confusion, literals that
// start with a '0' are not allowed
if (num[0] == '0' && num.length > 1)
return false;
if (num[0] < '0' || num[0] > '7')
return false;
foreach (i, c; num)
{
if ((c < '0' || c > '7') && c != '_') // not a legal character
{
if (i < num.length - 2)
return false;
else // gotta check for those suffixes
{
if (c != 'U' && c != 'u' && c != 'L')
return false;
if (i != num.length - 1)
{
// if we're not the last one, the next one must
// also be a suffix to be valid
char c2 = num[$-1];
if (c2 != 'U' && c2 != 'u' && c2 != 'L')
return false; // spam at the end of the string
if (c2 == c)
return false; // repeats are disallowed
}
}
}
}
return true;
}
@safe unittest
{
// ensure that you get the right types, even with embedded underscores
auto w = octal!"100_000_000_000";
static assert(!is(typeof(w) == int));
auto w2 = octal!"1_000_000_000";
static assert(is(typeof(w2) == int));
static assert(octal!"45" == 37);
static assert(octal!"0" == 0);
static assert(octal!"7" == 7);
static assert(octal!"10" == 8);
static assert(octal!"666" == 438);
static assert(octal!45 == 37);
static assert(octal!0 == 0);
static assert(octal!7 == 7);
static assert(octal!10 == 8);
static assert(octal!666 == 438);
static assert(octal!"66_6" == 438);
static assert(octal!2520046213 == 356535435);
static assert(octal!"2520046213" == 356535435);
static assert(octal!17777777777 == int.max);
static assert(!__traits(compiles, octal!823));
static assert(!__traits(compiles, octal!"823"));
static assert(!__traits(compiles, octal!"_823"));
static assert(!__traits(compiles, octal!"spam"));
static assert(!__traits(compiles, octal!"77%"));
static assert(is(typeof(octal!"17777777777") == int));
static assert(octal!"17777777777" == int.max);
static assert(is(typeof(octal!"20000000000U") == ulong)); // Shouldn't this be uint?
static assert(octal!"20000000000" == uint(int.max) + 1);
static assert(is(typeof(octal!"777777777777777777777") == long));
static assert(octal!"777777777777777777777" == long.max);
static assert(is(typeof(octal!"1000000000000000000000U") == ulong));
static assert(octal!"1000000000000000000000" == ulong(long.max) + 1);
int a;
long b;
// biggest value that should fit in an it
a = octal!"17777777777";
assert(a == int.max);
// should not fit in the int
static assert(!__traits(compiles, a = octal!"20000000000"));
// ... but should fit in a long
b = octal!"20000000000";
assert(b == 1L + int.max);
b = octal!"1L";
assert(b == 1);
b = octal!1L;
assert(b == 1);
}
/+
emplaceRef is a package function for phobos internal use. It works like
emplace, but takes its argument by ref (as opposed to "by pointer").
This makes it easier to use, easier to be safe, and faster in a non-inline
build.
Furthermore, emplaceRef optionally takes a type parameter, which specifies
the type we want to build. This helps to build qualified objects on mutable
buffer, without breaking the type system with unsafe casts.
+/
package void emplaceRef(T, UT, Args...)(ref UT chunk, auto ref Args args)
{
static if (args.length == 0)
{
static assert(is(typeof({static T i;})),
convFormat("Cannot emplace a %1$s because %1$s.this() is annotated with @disable.", T.stringof));
static if (is(T == class)) static assert(!isAbstractClass!T,
T.stringof ~ " is abstract and it can't be emplaced");
emplaceInitializer(chunk);
}
else static if (
!is(T == struct) && Args.length == 1 /* primitives, enums, arrays */
||
Args.length == 1 && is(typeof({T t = args[0];})) /* conversions */
||
is(typeof(T(args))) /* general constructors */)
{
static struct S
{
T payload;
this(ref Args x)
{
static if (Args.length == 1)
static if (is(typeof(payload = x[0])))
payload = x[0];
else
payload = T(x[0]);
else
payload = T(x);
}
}
if (__ctfe)
{
static if (is(typeof(chunk = T(args))))
chunk = T(args);
else static if (args.length == 1 && is(typeof(chunk = args[0])))
chunk = args[0];
else assert(0, "CTFE emplace doesn't support "
~ T.stringof ~ " from " ~ Args.stringof);
}
else
{
S* p = () @trusted { return cast(S*) &chunk; }();
static if (UT.sizeof > 0)
emplaceInitializer(*p);
p.__ctor(args);
}
}
else static if (is(typeof(chunk.__ctor(args))))
{
// This catches the rare case of local types that keep a frame pointer
emplaceInitializer(chunk);
chunk.__ctor(args);
}
else
{
//We can't emplace. Try to diagnose a disabled postblit.
static assert(!(Args.length == 1 && is(Args[0] : T)),
convFormat("Cannot emplace a %1$s because %1$s.this(this) is annotated with @disable.", T.stringof));
//We can't emplace.
static assert(false,
convFormat("%s cannot be emplaced from %s.", T.stringof, Args[].stringof));
}
}
// ditto
package void emplaceRef(UT, Args...)(ref UT chunk, auto ref Args args)
if (is(UT == Unqual!UT))
{
emplaceRef!(UT, UT)(chunk, args);
}
//emplace helper functions
private void emplaceInitializer(T)(scope ref T chunk) @trusted pure nothrow
{
static if (!hasElaborateAssign!T && isAssignable!T)
chunk = T.init;
else
{
static if (__traits(isZeroInit, T))
{
import core.stdc.string : memset;
memset(&chunk, 0, T.sizeof);
}
else
{
import core.stdc.string : memcpy;
static immutable T init = T.init;
memcpy(&chunk, &init, T.sizeof);
}
}
}
// emplace
/**
Given a pointer `chunk` to uninitialized memory (but already typed
as `T`), constructs an object of non-`class` type `T` at that
address. If `T` is a class, initializes the class reference to null.
Returns: A pointer to the newly constructed object (which is the same
as `chunk`).
*/
T* emplace(T)(T* chunk) @safe pure nothrow
{
emplaceRef!T(*chunk);
return chunk;
}
///
@system unittest
{
static struct S
{
int i = 42;
}
S[2] s2 = void;
emplace(&s2);
assert(s2[0].i == 42 && s2[1].i == 42);
}
///
@system unittest
{
interface I {}
class K : I {}
K k = void;
emplace(&k);
assert(k is null);
I i = void;
emplace(&i);
assert(i is null);
}
/**
Given a pointer `chunk` to uninitialized memory (but already typed
as a non-class type `T`), constructs an object of type `T` at
that address from arguments `args`. If `T` is a class, initializes
the class reference to `args[0]`.
This function can be `@trusted` if the corresponding constructor of
`T` is `@safe`.
Returns: A pointer to the newly constructed object (which is the same
as `chunk`).
*/
T* emplace(T, Args...)(T* chunk, auto ref Args args)
if (is(T == struct) || Args.length == 1)
{
emplaceRef!T(*chunk, args);
return chunk;
}
///
@system unittest
{
int a;
int b = 42;
assert(*emplace!int(&a, b) == 42);
}
@system unittest
{
shared int i;
emplace(&i, 42);
assert(i == 42);
}
private @nogc pure nothrow @safe
void testEmplaceChunk(void[] chunk, size_t typeSize, size_t typeAlignment)
{
assert(chunk.length >= typeSize, "emplace: Chunk size too small.");
assert((cast(size_t) chunk.ptr) % typeAlignment == 0, "emplace: Chunk is not aligned.");
}
/**
Given a raw memory area `chunk` (but already typed as a class type `T`),
constructs an object of `class` type `T` at that address. The constructor
is passed the arguments `Args`.
If `T` is an inner class whose `outer` field can be used to access an instance
of the enclosing class, then `Args` must not be empty, and the first member of it
must be a valid initializer for that `outer` field. Correct initialization of
this field is essential to access members of the outer class inside `T` methods.
Note:
This function is `@safe` if the corresponding constructor of `T` is `@safe`.
Returns: The newly constructed object.
*/
T emplace(T, Args...)(T chunk, auto ref Args args)
if (is(T == class))
{
static assert(!isAbstractClass!T, T.stringof ~
" is abstract and it can't be emplaced");
// Initialize the object in its pre-ctor state
enum classSize = __traits(classInstanceSize, T);
(() @trusted => (cast(void*) chunk)[0 .. classSize] = typeid(T).initializer[])();
static if (isInnerClass!T)
{
static assert(Args.length > 0,
"Initializing an inner class requires a pointer to the outer class");
static assert(is(Args[0] : typeof(T.outer)),
"The first argument must be a pointer to the outer class");
chunk.outer = args[0];
alias args1 = args[1..$];
}
else alias args1 = args;
// Call the ctor if any
static if (is(typeof(chunk.__ctor(args1))))
{
// T defines a genuine constructor accepting args
// Go the classic route: write .init first, then call ctor
chunk.__ctor(args1);
}
else
{
static assert(args1.length == 0 && !is(typeof(&T.__ctor)),
"Don't know how to initialize an object of type "
~ T.stringof ~ " with arguments " ~ typeof(args1).stringof);
}
return chunk;
}
///
@safe unittest
{
() @safe {
class SafeClass
{
int x;
@safe this(int x) { this.x = x; }
}
auto buf = new void[__traits(classInstanceSize, SafeClass)];
auto support = (() @trusted => cast(SafeClass)(buf.ptr))();
auto safeClass = emplace!SafeClass(support, 5);
assert(safeClass.x == 5);
class UnsafeClass
{
int x;
@system this(int x) { this.x = x; }
}
auto buf2 = new void[__traits(classInstanceSize, UnsafeClass)];
auto support2 = (() @trusted => cast(UnsafeClass)(buf2.ptr))();
static assert(!__traits(compiles, emplace!UnsafeClass(support2, 5)));
static assert(!__traits(compiles, emplace!UnsafeClass(buf2, 5)));
}();
}
@safe unittest
{
class Outer
{
int i = 3;
class Inner
{
@safe auto getI() { return i; }
}
}
auto outerBuf = new void[__traits(classInstanceSize, Outer)];
auto outerSupport = (() @trusted => cast(Outer)(outerBuf.ptr))();
auto innerBuf = new void[__traits(classInstanceSize, Outer.Inner)];
auto innerSupport = (() @trusted => cast(Outer.Inner)(innerBuf.ptr))();
auto inner = innerSupport.emplace!(Outer.Inner)(outerSupport.emplace!Outer);
assert(inner.getI == 3);
}
/**
Given a raw memory area `chunk`, constructs an object of `class` type `T` at
that address. The constructor is passed the arguments `Args`.
If `T` is an inner class whose `outer` field can be used to access an instance
of the enclosing class, then `Args` must not be empty, and the first member of it
must be a valid initializer for that `outer` field. Correct initialization of
this field is essential to access members of the outer class inside `T` methods.
Preconditions:
`chunk` must be at least as large as `T` needs and should have an alignment
multiple of `T`'s alignment. (The size of a `class` instance is obtained by using
$(D __traits(classInstanceSize, T))).
Note:
This function can be `@trusted` if the corresponding constructor of `T` is `@safe`.
Returns: The newly constructed object.
*/
T emplace(T, Args...)(void[] chunk, auto ref Args args)
if (is(T == class))
{
enum classSize = __traits(classInstanceSize, T);
testEmplaceChunk(chunk, classSize, classInstanceAlignment!T);
return emplace!T(cast(T)(chunk.ptr), args);
}
///
@system unittest
{
static class C
{
int i;
this(int i){this.i = i;}
}
auto buf = new void[__traits(classInstanceSize, C)];
auto c = emplace!C(buf, 5);
assert(c.i == 5);
}
@system unittest
{
class Outer
{
int i = 3;
class Inner
{
auto getI() { return i; }
}
}
auto outerBuf = new void[__traits(classInstanceSize, Outer)];
auto innerBuf = new void[__traits(classInstanceSize, Outer.Inner)];
auto inner = innerBuf.emplace!(Outer.Inner)(outerBuf.emplace!Outer);
assert(inner.getI == 3);
}
@nogc pure nothrow @safe unittest
{
int var = 6;
align(__conv_EmplaceTestClass.alignof) ubyte[__traits(classInstanceSize, __conv_EmplaceTestClass)] buf;
auto support = (() @trusted => cast(__conv_EmplaceTestClass)(buf.ptr))();
auto k = emplace!__conv_EmplaceTestClass(support, 5, var);
assert(k.i == 5);
assert(var == 7);
}
/**
Given a raw memory area `chunk`, constructs an object of non-$(D
class) type `T` at that address. The constructor is passed the
arguments `args`, if any.
Preconditions:
`chunk` must be at least as large
as `T` needs and should have an alignment multiple of `T`'s
alignment.
Note:
This function can be `@trusted` if the corresponding constructor of
`T` is `@safe`.
Returns: A pointer to the newly constructed object.
*/
T* emplace(T, Args...)(void[] chunk, auto ref Args args)
if (!is(T == class))
{
testEmplaceChunk(chunk, T.sizeof, T.alignof);
emplaceRef!(T, Unqual!T)(*cast(Unqual!T*) chunk.ptr, args);
return cast(T*) chunk.ptr;
}
///
@system unittest
{
struct S
{
int a, b;
}
auto buf = new void[S.sizeof];
S s;
s.a = 42;
s.b = 43;
auto s1 = emplace!S(buf, s);
assert(s1.a == 42 && s1.b == 43);
}
// Bulk of emplace unittests starts here
@system unittest /* unions */
{
static union U
{
string a;
int b;
struct
{
long c;
int[] d;
}
}
U u1 = void;
U u2 = { "hello" };
emplace(&u1, u2);
assert(u1.a == "hello");
}
version (unittest) private struct __conv_EmplaceTest
{
int i = 3;
this(int i)
{
assert(this.i == 3 && i == 5);
this.i = i;
}
this(int i, ref int j)
{
assert(i == 5 && j == 6);
this.i = i;
++j;
}
@disable:
this();
this(this);
void opAssign();
}
version (unittest) private class __conv_EmplaceTestClass
{
int i = 3;
this(int i) @nogc @safe pure nothrow
{
assert(this.i == 3 && i == 5);
this.i = i;
}
this(int i, ref int j) @nogc @safe pure nothrow
{
assert(i == 5 && j == 6);
this.i = i;
++j;
}
}
@system unittest // bugzilla 15772
{
abstract class Foo {}
class Bar: Foo {}
void[] memory;
// test in emplaceInitializer
static assert(!is(typeof(emplace!Foo(cast(Foo*) memory.ptr))));
static assert( is(typeof(emplace!Bar(cast(Bar*) memory.ptr))));
// test in the emplace overload that takes void[]
static assert(!is(typeof(emplace!Foo(memory))));
static assert( is(typeof(emplace!Bar(memory))));
}
@system unittest
{
struct S { @disable this(); }
S s = void;
static assert(!__traits(compiles, emplace(&s)));
emplace(&s, S.init);
}
@system unittest
{
struct S1
{}
struct S2
{
void opAssign(S2);
}
S1 s1 = void;
S2 s2 = void;
S1[2] as1 = void;
S2[2] as2 = void;
emplace(&s1);
emplace(&s2);
emplace(&as1);
emplace(&as2);
}
@system unittest
{
static struct S1
{
this(this) @disable;
}
static struct S2
{
this() @disable;
}
S1[2] ss1 = void;
S2[2] ss2 = void;
emplace(&ss1);
static assert(!__traits(compiles, emplace(&ss2)));
S1 s1 = S1.init;
S2 s2 = S2.init;
static assert(!__traits(compiles, emplace(&ss1, s1)));
emplace(&ss2, s2);
}
@system unittest
{
struct S
{
immutable int i;
}
S s = void;
S[2] ss1 = void;
S[2] ss2 = void;
emplace(&s, 5);
assert(s.i == 5);
emplace(&ss1, s);
assert(ss1[0].i == 5 && ss1[1].i == 5);
emplace(&ss2, ss1);
assert(ss2 == ss1);
}
//Start testing emplace-args here
@system unittest
{
interface I {}
class K : I {}
K k = null, k2 = new K;
assert(k !is k2);
emplace!K(&k, k2);
assert(k is k2);
I i = null;
assert(i !is k);
emplace!I(&i, k);
assert(i is k);
}
@system unittest
{
static struct S
{
int i = 5;
void opAssign(S){assert(0);}
}
S[2] sa = void;
S[2] sb;
emplace(&sa, sb);
assert(sa[0].i == 5 && sa[1].i == 5);
}
//Start testing emplace-struct here
// Test constructor branch
@system unittest
{
struct S
{
double x = 5, y = 6;
this(int a, int b)
{
assert(x == 5 && y == 6);
x = a;
y = b;
}
}
auto s1 = new void[S.sizeof];
auto s2 = S(42, 43);
assert(*emplace!S(cast(S*) s1.ptr, s2) == s2);
assert(*emplace!S(cast(S*) s1, 44, 45) == S(44, 45));
}
@system unittest
{
__conv_EmplaceTest k = void;
emplace(&k, 5);
assert(k.i == 5);
}
@system unittest
{
int var = 6;
__conv_EmplaceTest k = void;
emplace(&k, 5, var);
assert(k.i == 5);
assert(var == 7);
}
// Test matching fields branch
@system unittest
{
struct S { uint n; }
S s;
emplace!S(&s, 2U);
assert(s.n == 2);
}
@safe unittest
{
struct S { int a, b; this(int){} }
S s;
static assert(!__traits(compiles, emplace!S(&s, 2, 3)));
}
@system unittest
{
struct S { int a, b = 7; }
S s1 = void, s2 = void;
emplace!S(&s1, 2);
assert(s1.a == 2 && s1.b == 7);
emplace!S(&s2, 2, 3);
assert(s2.a == 2 && s2.b == 3);
}
//opAssign
@system unittest
{
static struct S
{
int i = 5;
void opAssign(int){assert(0);}
void opAssign(S){assert(0);}
}
S sa1 = void;
S sa2 = void;
S sb1 = S(1);
emplace(&sa1, sb1);
emplace(&sa2, 2);
assert(sa1.i == 1);
assert(sa2.i == 2);
}
//postblit precedence
@system unittest
{
//Works, but breaks in "-w -O" because of @@@9332@@@.
//Uncomment test when 9332 is fixed.
static struct S
{
int i;
this(S other){assert(false);}
this(int i){this.i = i;}
this(this){}
}
S a = void;
assert(is(typeof({S b = a;}))); //Postblit
assert(is(typeof({S b = S(a);}))); //Constructor
auto b = S(5);
emplace(&a, b);
assert(a.i == 5);
static struct S2
{
int* p;
this(const S2){}
}
static assert(!is(immutable S2 : S2));
S2 s2 = void;
immutable is2 = (immutable S2).init;
emplace(&s2, is2);
}
//nested structs and postblit
@system unittest
{
static struct S
{
int* p;
this(int i){p = [i].ptr;}
this(this)
{
if (p)
p = [*p].ptr;
}
}
static struct SS
{
S s;
void opAssign(const SS)
{
assert(0);
}
}
SS ssa = void;
SS ssb = SS(S(5));
emplace(&ssa, ssb);
assert(*ssa.s.p == 5);
assert(ssa.s.p != ssb.s.p);
}
//disabled postblit
@system unittest
{
static struct S1
{
int i;
@disable this(this);
}
S1 s1 = void;
emplace(&s1, 1);
assert(s1.i == 1);
static assert(!__traits(compiles, emplace(&s1, S1.init)));
static struct S2
{
int i;
@disable this(this);
this(ref S2){}
}
S2 s2 = void;
static assert(!__traits(compiles, emplace(&s2, 1)));
emplace(&s2, S2.init);
static struct SS1
{
S1 s;
}
SS1 ss1 = void;
emplace(&ss1);
static assert(!__traits(compiles, emplace(&ss1, SS1.init)));
static struct SS2
{
S2 s;
}
SS2 ss2 = void;
emplace(&ss2);
static assert(!__traits(compiles, emplace(&ss2, SS2.init)));
// SS1 sss1 = s1; //This doesn't compile
// SS1 sss1 = SS1(s1); //This doesn't compile
// So emplace shouldn't compile either
static assert(!__traits(compiles, emplace(&sss1, s1)));
static assert(!__traits(compiles, emplace(&sss2, s2)));
}
//Imutability
@system unittest
{
//Castable immutability
{
static struct S1
{
int i;
}
static assert(is( immutable(S1) : S1));
S1 sa = void;
auto sb = immutable(S1)(5);
emplace(&sa, sb);
assert(sa.i == 5);
}
//Un-castable immutability
{
static struct S2
{
int* p;
}
static assert(!is(immutable(S2) : S2));
S2 sa = void;
auto sb = immutable(S2)(null);
assert(!__traits(compiles, emplace(&sa, sb)));
}
}
@system unittest
{
static struct S
{
immutable int i;
immutable(int)* j;
}
S s = void;
emplace(&s, 1, null);
emplace(&s, 2, &s.i);
assert(s is S(2, &s.i));
}
//Context pointer
@system unittest
{
int i = 0;
{
struct S1
{
void foo(){++i;}
}
S1 sa = void;
S1 sb;
emplace(&sa, sb);
sa.foo();
assert(i == 1);
}
{
struct S2
{
void foo(){++i;}
this(this){}
}
S2 sa = void;
S2 sb;
emplace(&sa, sb);
sa.foo();
assert(i == 2);
}
}
//Alias this
@system unittest
{
static struct S
{
int i;
}
//By Ref
{
static struct SS1
{
int j;
S s;
alias s this;
}
S s = void;
SS1 ss = SS1(1, S(2));
emplace(&s, ss);
assert(s.i == 2);
}
//By Value
{
static struct SS2
{
int j;
S s;
S foo() @property{return s;}
alias foo this;
}
S s = void;
SS2 ss = SS2(1, S(2));
emplace(&s, ss);
assert(s.i == 2);
}
}
version (unittest)
{
//Ambiguity
private struct __std_conv_S
{
int i;
this(__std_conv_SS ss) {assert(0);}
static opCall(__std_conv_SS ss)
{
__std_conv_S s; s.i = ss.j;
return s;
}
}
private struct __std_conv_SS
{
int j;
__std_conv_S s;
ref __std_conv_S foo() return @property {s.i = j; return s;}
alias foo this;
}
}
@system unittest
{
static assert(is(__std_conv_SS : __std_conv_S));
__std_conv_S s = void;
__std_conv_SS ss = __std_conv_SS(1);
__std_conv_S sTest1 = ss; //this calls "SS alias this" (and not "S.this(SS)")
emplace(&s, ss); //"alias this" should take precedence in emplace over "opCall"
assert(s.i == 1);
}
//Nested classes
@system unittest
{
class A{}
static struct S
{
A a;
}
S s1 = void;
S s2 = S(new A);
emplace(&s1, s2);
assert(s1.a is s2.a);
}
//safety & nothrow & CTFE
@system unittest
{
//emplace should be safe for anything with no elaborate opassign
static struct S1
{
int i;
}
static struct S2
{
int i;
this(int j)@safe nothrow{i = j;}
}
int i;
S1 s1 = void;
S2 s2 = void;
auto pi = &i;
auto ps1 = &s1;
auto ps2 = &s2;
void foo() @safe nothrow
{
emplace(pi);
emplace(pi, 5);
emplace(ps1);
emplace(ps1, 5);
emplace(ps1, S1.init);
emplace(ps2);
emplace(ps2, 5);
emplace(ps2, S2.init);
}
foo();
T bar(T)() @property
{
T t/+ = void+/; //CTFE void illegal
emplace(&t, 5);
return t;
}
// CTFE
enum a = bar!int;
static assert(a == 5);
enum b = bar!S1;
static assert(b.i == 5);
enum c = bar!S2;
static assert(c.i == 5);
// runtime
auto aa = bar!int;
assert(aa == 5);
auto bb = bar!S1;
assert(bb.i == 5);
auto cc = bar!S2;
assert(cc.i == 5);
}
@system unittest
{
struct S
{
int[2] get(){return [1, 2];}
alias get this;
}
struct SS
{
int[2] ii;
}
struct ISS
{
int[2] ii;
}
S s;
SS ss = void;
ISS iss = void;
emplace(&ss, s);
emplace(&iss, s);
assert(ss.ii == [1, 2]);
assert(iss.ii == [1, 2]);
}
//disable opAssign
@system unittest
{
static struct S
{
@disable void opAssign(S);
}
S s;
emplace(&s, S.init);
}
//opCall
@system unittest
{
int i;
//Without constructor
{
static struct S1
{
int i;
static S1 opCall(int*){assert(0);}
}
S1 s = void;
static assert(!__traits(compiles, emplace(&s, 1)));
}
//With constructor
{
static struct S2
{
int i = 0;
static S2 opCall(int*){assert(0);}
static S2 opCall(int){assert(0);}
this(int i){this.i = i;}
}
S2 s = void;
emplace(&s, 1);
assert(s.i == 1);
}
//With postblit ambiguity
{
static struct S3
{
int i = 0;
static S3 opCall(ref S3){assert(0);}
}
S3 s = void;
emplace(&s, S3.init);
}
}
@safe unittest //@@@9559@@@
{
import std.algorithm.iteration : map;
import std.array : array;
import std.typecons : Nullable;
alias I = Nullable!int;
auto ints = [0, 1, 2].map!(i => i & 1 ? I.init : I(i))();
auto asArray = array(ints);
}
@system unittest //http://forum.dlang.org/post/nxbdgtdlmwscocbiypjs@forum.dlang.org
{
import std.array : array;
import std.datetime : SysTime, UTC;
import std.math : isNaN;
static struct A
{
double i;
}
static struct B
{
invariant()
{
if (j == 0)
assert(a.i.isNaN(), "why is 'j' zero?? and i is not NaN?");
else
assert(!a.i.isNaN());
}
SysTime when; // comment this line avoid the breakage
int j;
A a;
}
B b1 = B.init;
assert(&b1); // verify that default eyes invariants are ok;
auto b2 = B(SysTime(0, UTC()), 1, A(1));
assert(&b2);
auto b3 = B(SysTime(0, UTC()), 1, A(1));
assert(&b3);
auto arr = [b2, b3];
assert(arr[0].j == 1);
assert(arr[1].j == 1);
auto a2 = arr.array(); // << bang, invariant is raised, also if b2 and b3 are good
}
//static arrays
@system unittest
{
static struct S
{
int[2] ii;
}
static struct IS
{
immutable int[2] ii;
}
int[2] ii;
S s = void;
IS ims = void;
ubyte ub = 2;
emplace(&s, ub);
emplace(&s, ii);
emplace(&ims, ub);
emplace(&ims, ii);
uint[2] uu;
static assert(!__traits(compiles, {S ss = S(uu);}));
static assert(!__traits(compiles, emplace(&s, uu)));
}
@system unittest
{
int[2] sii;
int[2] sii2;
uint[2] uii;
uint[2] uii2;
emplace(&sii, 1);
emplace(&sii, 1U);
emplace(&uii, 1);
emplace(&uii, 1U);
emplace(&sii, sii2);
//emplace(&sii, uii2); //Sorry, this implementation doesn't know how to...
//emplace(&uii, sii2); //Sorry, this implementation doesn't know how to...
emplace(&uii, uii2);
emplace(&sii, sii2[]);
//emplace(&sii, uii2[]); //Sorry, this implementation doesn't know how to...
//emplace(&uii, sii2[]); //Sorry, this implementation doesn't know how to...
emplace(&uii, uii2[]);
}
@system unittest
{
bool allowDestruction = false;
struct S
{
int i;
this(this){}
~this(){assert(allowDestruction);}
}
S s = S(1);
S[2] ss1 = void;
S[2] ss2 = void;
S[2] ss3 = void;
emplace(&ss1, s);
emplace(&ss2, ss1);
emplace(&ss3, ss2[]);
assert(ss1[1] == s);
assert(ss2[1] == s);
assert(ss3[1] == s);
allowDestruction = true;
}
@system unittest
{
//Checks postblit, construction, and context pointer
int count = 0;
struct S
{
this(this)
{
++count;
}
~this()
{
--count;
}
}
S s;
{
S[4] ss = void;
emplace(&ss, s);
assert(count == 4);
}
assert(count == 0);
}
@system unittest
{
struct S
{
int i;
}
S s;
S[2][2][2] sss = void;
emplace(&sss, s);
}
@system unittest //Constness
{
import std.stdio;
int a = void;
emplaceRef!(const int)(a, 5);
immutable i = 5;
const(int)* p = void;
emplaceRef!(const int*)(p, &i);
struct S
{
int* p;
}
alias IS = immutable(S);
S s = void;
emplaceRef!IS(s, IS());
S[2] ss = void;
emplaceRef!(IS[2])(ss, IS());
IS[2] iss = IS.init;
emplaceRef!(IS[2])(ss, iss);
emplaceRef!(IS[2])(ss, iss[]);
}
pure nothrow @safe @nogc unittest
{
int i;
emplaceRef(i);
emplaceRef!int(i);
emplaceRef(i, 5);
emplaceRef!int(i, 5);
}
// Test attribute propagation for UDTs
pure nothrow @safe /* @nogc */ unittest
{
static struct Safe
{
this(this) pure nothrow @safe @nogc {}
}
Safe safe = void;
emplaceRef(safe, Safe());
Safe[1] safeArr = [Safe()];
Safe[1] uninitializedSafeArr = void;
emplaceRef(uninitializedSafeArr, safe);
emplaceRef(uninitializedSafeArr, safeArr);
static struct Unsafe
{
this(this) @system {}
}
Unsafe unsafe = void;
static assert(!__traits(compiles, emplaceRef(unsafe, Unsafe())));
Unsafe[1] unsafeArr = [Unsafe()];
Unsafe[1] uninitializedUnsafeArr = void;
static assert(!__traits(compiles, emplaceRef(uninitializedUnsafeArr, unsafe)));
static assert(!__traits(compiles, emplaceRef(uninitializedUnsafeArr, unsafeArr)));
}
@system unittest
{
// Issue 15313
static struct Node
{
int payload;
Node* next;
uint refs;
}
import core.stdc.stdlib : malloc;
void[] buf = malloc(Node.sizeof)[0 .. Node.sizeof];
import std.conv : emplace;
const Node* n = emplace!(const Node)(buf, 42, null, 10);
assert(n.payload == 42);
assert(n.next == null);
assert(n.refs == 10);
}
@system unittest
{
int var = 6;
auto k = emplace!__conv_EmplaceTest(new void[__conv_EmplaceTest.sizeof], 5, var);
assert(k.i == 5);
assert(var == 7);
}
@system unittest
{
class A
{
int x = 5;
int y = 42;
this(int z)
{
assert(x == 5 && y == 42);
x = y = z;
}
}
void[] buf;
static align(A.alignof) byte[__traits(classInstanceSize, A)] sbuf;
buf = sbuf[];
auto a = emplace!A(buf, 55);
assert(a.x == 55 && a.y == 55);
// emplace in bigger buffer
buf = new byte[](__traits(classInstanceSize, A) + 10);
a = emplace!A(buf, 55);
assert(a.x == 55 && a.y == 55);
// need ctor args
static assert(!is(typeof(emplace!A(buf))));
}
// Bulk of emplace unittests ends here
@safe unittest
{
import std.algorithm.comparison : equal;
import std.algorithm.iteration : map;
// Check fix for http://d.puremagic.com/issues/show_bug.cgi?id=2971
assert(equal(map!(to!int)(["42", "34", "345"]), [42, 34, 345]));
}
// Undocumented for the time being
void toTextRange(T, W)(T value, W writer)
if (isIntegral!T && isOutputRange!(W, char))
{
import core.internal.string : SignedStringBuf, signedToTempString,
UnsignedStringBuf, unsignedToTempString;
if (value < 0)
{
SignedStringBuf buf = void;
put(writer, signedToTempString(value, buf, 10));
}
else
{
UnsignedStringBuf buf = void;
put(writer, unsignedToTempString(value, buf, 10));
}
}
@safe unittest
{
import std.array : appender;
auto result = appender!(char[])();
toTextRange(-1, result);
assert(result.data == "-1");
}
/**
Returns the corresponding _unsigned value for `x` (e.g. if `x` has type
`int`, it returns $(D cast(uint) x)). The advantage compared to the cast
is that you do not need to rewrite the cast if `x` later changes type
(e.g from `int` to `long`).
Note that the result is always mutable even if the original type was const
or immutable. In order to retain the constness, use $(REF Unsigned, std,traits).
*/
auto unsigned(T)(T x)
if (isIntegral!T)
{
return cast(Unqual!(Unsigned!T))x;
}
///
@safe unittest
{
import std.traits : Unsigned;
immutable int s = 42;
auto u1 = unsigned(s); //not qualified
static assert(is(typeof(u1) == uint));
Unsigned!(typeof(s)) u2 = unsigned(s); //same qualification
static assert(is(typeof(u2) == immutable uint));
immutable u3 = unsigned(s); //explicitly qualified
}
@safe unittest
{
static foreach (T; AliasSeq!(byte, ubyte))
{
static assert(is(typeof(unsigned(cast(T) 1)) == ubyte));
static assert(is(typeof(unsigned(cast(const T) 1)) == ubyte));
static assert(is(typeof(unsigned(cast(immutable T) 1)) == ubyte));
}
static foreach (T; AliasSeq!(short, ushort))
{
static assert(is(typeof(unsigned(cast(T) 1)) == ushort));
static assert(is(typeof(unsigned(cast(const T) 1)) == ushort));
static assert(is(typeof(unsigned(cast(immutable T) 1)) == ushort));
}
static foreach (T; AliasSeq!(int, uint))
{
static assert(is(typeof(unsigned(cast(T) 1)) == uint));
static assert(is(typeof(unsigned(cast(const T) 1)) == uint));
static assert(is(typeof(unsigned(cast(immutable T) 1)) == uint));
}
static foreach (T; AliasSeq!(long, ulong))
{
static assert(is(typeof(unsigned(cast(T) 1)) == ulong));
static assert(is(typeof(unsigned(cast(const T) 1)) == ulong));
static assert(is(typeof(unsigned(cast(immutable T) 1)) == ulong));
}
}
auto unsigned(T)(T x)
if (isSomeChar!T)
{
// All characters are unsigned
static assert(T.min == 0);
return cast(Unqual!T) x;
}
@safe unittest
{
static foreach (T; AliasSeq!(char, wchar, dchar))
{
static assert(is(typeof(unsigned(cast(T)'A')) == T));
static assert(is(typeof(unsigned(cast(const T)'A')) == T));
static assert(is(typeof(unsigned(cast(immutable T)'A')) == T));
}
}
/**
Returns the corresponding _signed value for `x` (e.g. if `x` has type
`uint`, it returns $(D cast(int) x)). The advantage compared to the cast
is that you do not need to rewrite the cast if `x` later changes type
(e.g from `uint` to `ulong`).
Note that the result is always mutable even if the original type was const
or immutable. In order to retain the constness, use $(REF Signed, std,traits).
*/
auto signed(T)(T x)
if (isIntegral!T)
{
return cast(Unqual!(Signed!T))x;
}
///
@safe unittest
{
import std.traits : Signed;
immutable uint u = 42;
auto s1 = signed(u); //not qualified
static assert(is(typeof(s1) == int));
Signed!(typeof(u)) s2 = signed(u); //same qualification
static assert(is(typeof(s2) == immutable int));
immutable s3 = signed(u); //explicitly qualified
}
@system unittest
{
static foreach (T; AliasSeq!(byte, ubyte))
{
static assert(is(typeof(signed(cast(T) 1)) == byte));
static assert(is(typeof(signed(cast(const T) 1)) == byte));
static assert(is(typeof(signed(cast(immutable T) 1)) == byte));
}
static foreach (T; AliasSeq!(short, ushort))
{
static assert(is(typeof(signed(cast(T) 1)) == short));
static assert(is(typeof(signed(cast(const T) 1)) == short));
static assert(is(typeof(signed(cast(immutable T) 1)) == short));
}
static foreach (T; AliasSeq!(int, uint))
{
static assert(is(typeof(signed(cast(T) 1)) == int));
static assert(is(typeof(signed(cast(const T) 1)) == int));
static assert(is(typeof(signed(cast(immutable T) 1)) == int));
}
static foreach (T; AliasSeq!(long, ulong))
{
static assert(is(typeof(signed(cast(T) 1)) == long));
static assert(is(typeof(signed(cast(const T) 1)) == long));
static assert(is(typeof(signed(cast(immutable T) 1)) == long));
}
}
@safe unittest
{
// issue 10874
enum Test { a = 0 }
ulong l = 0;
auto t = l.to!Test;
}
// asOriginalType
/**
Returns the representation of an enumerated value, i.e. the value converted to
the base type of the enumeration.
*/
OriginalType!E asOriginalType(E)(E value)
if (is(E == enum))
{
return value;
}
///
@safe unittest
{
enum A { a = 42 }
static assert(is(typeof(A.a.asOriginalType) == int));
assert(A.a.asOriginalType == 42);
enum B : double { a = 43 }
static assert(is(typeof(B.a.asOriginalType) == double));
assert(B.a.asOriginalType == 43);
}
/**
A wrapper on top of the built-in cast operator that allows one to restrict
casting of the original type of the value.
A common issue with using a raw cast is that it may silently continue to
compile even if the value's type has changed during refactoring,
which breaks the initial assumption about the cast.
Params:
From = The type to cast from. The programmer must ensure it is legal
to make this cast.
*/
template castFrom(From)
{
/**
Params:
To = The type _to cast _to.
value = The value _to cast. It must be of type `From`,
otherwise a compile-time error is emitted.
Returns:
the value after the cast, returned by reference if possible.
*/
auto ref to(To, T)(auto ref T value) @system
{
static assert(
is(From == T),
"the value to cast is not of specified type '" ~ From.stringof ~
"', it is of type '" ~ T.stringof ~ "'"
);
static assert(
is(typeof(cast(To) value)),
"can't cast from '" ~ From.stringof ~ "' to '" ~ To.stringof ~ "'"
);
return cast(To) value;
}
}
///
@system unittest
{
// Regular cast, which has been verified to be legal by the programmer:
{
long x;
auto y = cast(int) x;
}
// However this will still compile if 'x' is changed to be a pointer:
{
long* x;
auto y = cast(int) x;
}
// castFrom provides a more reliable alternative to casting:
{
long x;
auto y = castFrom!long.to!int(x);
}
// Changing the type of 'x' will now issue a compiler error,
// allowing bad casts to be caught before it's too late:
{
long* x;
static assert(
!__traits(compiles, castFrom!long.to!int(x))
);
// if cast is still needed, must be changed to:
auto y = castFrom!(long*).to!int(x);
}
}
// https://issues.dlang.org/show_bug.cgi?id=16667
@system unittest
{
ubyte[] a = ['a', 'b', 'c'];
assert(castFrom!(ubyte[]).to!(string)(a) == "abc");
}
/**
Check the correctness of a string for `hexString`.
The result is true if and only if the input string is composed of whitespace
characters (\f\n\r\t\v lineSep paraSep nelSep) and
an even number of hexadecimal digits (regardless of the case).
*/
@safe pure @nogc
private bool isHexLiteral(String)(scope const String hexData)
{
import std.ascii : isHexDigit;
import std.uni : lineSep, paraSep, nelSep;
size_t i;
foreach (const dchar c; hexData)
{
switch (c)
{
case ' ':
case '\t':
case '\v':
case '\f':
case '\r':
case '\n':
case lineSep:
case paraSep:
case nelSep:
continue;
default:
break;
}
if (c.isHexDigit)
++i;
else
return false;
}
return !(i & 1);
}
@safe unittest
{
// test all the hex digits
static assert( ("0123456789abcdefABCDEF").isHexLiteral);
// empty or white strings are not valid
static assert( "\r\n\t".isHexLiteral);
// but are accepted if the count of hex digits is even
static assert( "A\r\n\tB".isHexLiteral);
}
@safe unittest
{
import std.ascii;
// empty/whites
static assert( "".isHexLiteral);
static assert( " \r".isHexLiteral);
static assert( whitespace.isHexLiteral);
static assert( ""w.isHexLiteral);
static assert( " \r"w.isHexLiteral);
static assert( ""d.isHexLiteral);
static assert( " \r"d.isHexLiteral);
static assert( "\u2028\u2029\u0085"d.isHexLiteral);
// odd x strings
static assert( !("5" ~ whitespace).isHexLiteral);
static assert( !"123".isHexLiteral);
static assert( !"1A3".isHexLiteral);
static assert( !"1 23".isHexLiteral);
static assert( !"\r\n\tC".isHexLiteral);
static assert( !"123"w.isHexLiteral);
static assert( !"1A3"w.isHexLiteral);
static assert( !"1 23"w.isHexLiteral);
static assert( !"\r\n\tC"w.isHexLiteral);
static assert( !"123"d.isHexLiteral);
static assert( !"1A3"d.isHexLiteral);
static assert( !"1 23"d.isHexLiteral);
static assert( !"\r\n\tC"d.isHexLiteral);
// even x strings with invalid charset
static assert( !"12gG".isHexLiteral);
static assert( !"2A 3q".isHexLiteral);
static assert( !"12gG"w.isHexLiteral);
static assert( !"2A 3q"w.isHexLiteral);
static assert( !"12gG"d.isHexLiteral);
static assert( !"2A 3q"d.isHexLiteral);
// valid x strings
static assert( ("5A" ~ whitespace).isHexLiteral);
static assert( ("5A 01A C FF de 1b").isHexLiteral);
static assert( ("0123456789abcdefABCDEF").isHexLiteral);
static assert( (" 012 34 5 6789 abcd ef\rAB\nCDEF").isHexLiteral);
static assert( ("5A 01A C FF de 1b"w).isHexLiteral);
static assert( ("0123456789abcdefABCDEF"w).isHexLiteral);
static assert( (" 012 34 5 6789 abcd ef\rAB\nCDEF"w).isHexLiteral);
static assert( ("5A 01A C FF de 1b"d).isHexLiteral);
static assert( ("0123456789abcdefABCDEF"d).isHexLiteral);
static assert( (" 012 34 5 6789 abcd ef\rAB\nCDEF"d).isHexLiteral);
// library version allows what's pointed by issue 10454
static assert( ("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF").isHexLiteral);
}
/**
Converts a hex literal to a string at compile time.
Takes a string made of hexadecimal digits and returns
the matching string by converting each pair of digits to a character.
The input string can also include white characters, which can be used
to keep the literal string readable in the source code.
The function is intended to replace the hexadecimal literal strings
starting with `'x'`, which could be removed to simplify the core language.
Params:
hexData = string to be converted.
Returns:
a `string`, a `wstring` or a `dstring`, according to the type of hexData.
*/
template hexString(string hexData)
if (hexData.isHexLiteral)
{
enum hexString = mixin(hexToString(hexData));
}
/// ditto
template hexString(wstring hexData)
if (hexData.isHexLiteral)
{
enum wstring hexString = mixin(hexToString(hexData));
}
/// ditto
template hexString(dstring hexData)
if (hexData.isHexLiteral)
{
enum dstring hexString = mixin(hexToString(hexData));
}
///
@safe unittest
{
// conversion at compile time
auto string1 = hexString!"304A314B";
assert(string1 == "0J1K");
auto string2 = hexString!"304A314B"w;
assert(string2 == "0J1K"w);
auto string3 = hexString!"304A314B"d;
assert(string3 == "0J1K"d);
}
@safe nothrow pure private
{
/* These are meant to be used with CTFE.
* They cause the instantiations of hexStrLiteral()
* to be in Phobos, not user code.
*/
string hexToString(string s)
{
return hexStrLiteral(s);
}
wstring hexToString(wstring s)
{
return hexStrLiteral(s);
}
dstring hexToString(dstring s)
{
return hexStrLiteral(s);
}
}
/*
Turn a hexadecimal string into a regular string literal.
I.e. "dead beef" is transformed into "\xde\xad\xbe\xef"
suitable for use in a mixin.
Params:
hexData is string, wstring, or dstring and validated by isHexLiteral()
*/
@trusted nothrow pure
private auto hexStrLiteral(String)(scope String hexData)
{
import std.ascii : isHexDigit;
alias C = Unqual!(ElementEncodingType!String); // char, wchar or dchar
C[] result;
result.length = 1 + hexData.length * 2 + 1; // don't forget the " "
/* Use a pointer because we know it won't overrun,
* and this will reduce the size of the function substantially
* by not doing the array bounds checks.
* This is why this function is @trusted.
*/
auto r = result.ptr;
r[0] = '"';
size_t cnt = 0;
foreach (c; hexData)
{
if (c.isHexDigit)
{
if ((cnt & 1) == 0)
{
r[1 + cnt] = '\\';
r[1 + cnt + 1] = 'x';
cnt += 2;
}
r[1 + cnt] = c;
++cnt;
}
}
r[1 + cnt] = '"';
result.length = 1 + cnt + 1; // trim off any excess length
return result;
}
@safe unittest
{
// compile time
assert(hexString!"46 47 48 49 4A 4B" == "FGHIJK");
assert(hexString!"30\r\n\t\f\v31 32 33 32 31 30" == "0123210");
assert(hexString!"ab cd" == hexString!"ABCD");
}
/**
* Convert integer to a range of characters.
* Intended to be lightweight and fast.
*
* Params:
* radix = 2, 8, 10, 16
* Char = character type for output
* letterCase = lower for deadbeef, upper for DEADBEEF
* value = integer to convert. Can be uint or ulong. If radix is 10, can also be
* int or long.
* Returns:
* Random access range with slicing and everything
*/
auto toChars(ubyte radix = 10, Char = char, LetterCase letterCase = LetterCase.lower, T)(T value)
pure nothrow @nogc @safe
if ((radix == 2 || radix == 8 || radix == 10 || radix == 16) &&
(is(Unqual!T == uint) || is(Unqual!T == ulong) ||
radix == 10 && (is(Unqual!T == int) || is(Unqual!T == long))))
{
alias UT = Unqual!T;
static if (radix == 10)
{
/* uint.max is 42_9496_7295
* int.max is 21_4748_3647
* ulong.max is 1844_6744_0737_0955_1615
* long.max is 922_3372_0368_5477_5807
*/
static struct Result
{
void initialize(UT value)
{
bool neg = false;
if (value < 10)
{
if (value >= 0)
{
lwr = 0;
upr = 1;
buf[0] = cast(char)(cast(uint) value + '0');
return;
}
value = -value;
neg = true;
}
auto i = cast(uint) buf.length - 1;
while (cast(Unsigned!UT) value >= 10)
{
buf[i] = cast(ubyte)('0' + cast(Unsigned!UT) value % 10);
value = unsigned(value) / 10;
--i;
}
buf[i] = cast(char)(cast(uint) value + '0');
if (neg)
{
buf[i - 1] = '-';
--i;
}
lwr = i;
upr = cast(uint) buf.length;
}
@property size_t length() { return upr - lwr; }
alias opDollar = length;
@property bool empty() { return upr == lwr; }
@property Char front() { return buf[lwr]; }
void popFront() { ++lwr; }
@property Char back() { return buf[upr - 1]; }
void popBack() { --upr; }
@property Result save() { return this; }
Char opIndex(size_t i) { return buf[lwr + i]; }
Result opSlice(size_t lwr, size_t upr)
{
Result result = void;
result.buf = buf;
result.lwr = cast(uint)(this.lwr + lwr);
result.upr = cast(uint)(this.lwr + upr);
return result;
}
private:
uint lwr = void, upr = void;
char[(UT.sizeof == 4) ? 10 + isSigned!T : 20] buf = void;
}
Result result = void;
result.initialize(value);
return result;
}
else
{
static if (radix == 2)
enum SHIFT = 1;
else static if (radix == 8)
enum SHIFT = 3;
else static if (radix == 16)
enum SHIFT = 4;
else
static assert(0);
static struct Result
{
this(UT value)
{
this.value = value;
ubyte len = 1;
while (value >>>= SHIFT)
++len;
this.len = len;
}
@property size_t length() { return len; }
@property bool empty() { return len == 0; }
@property Char front() { return opIndex(0); }
void popFront() { --len; }
@property Char back() { return opIndex(len - 1); }
void popBack()
{
value >>>= SHIFT;
--len;
}
@property Result save() { return this; }
Char opIndex(size_t i)
{
Char c = (value >>> ((len - i - 1) * SHIFT)) & ((1 << SHIFT) - 1);
return cast(Char)((radix < 10 || c < 10) ? c + '0'
: (letterCase == LetterCase.upper ? c + 'A' - 10
: c + 'a' - 10));
}
Result opSlice(size_t lwr, size_t upr)
{
Result result = void;
result.value = value >>> ((len - upr) * SHIFT);
result.len = cast(ubyte)(upr - lwr);
return result;
}
private:
UT value;
ubyte len;
}
return Result(value);
}
}
///
@safe unittest
{
import std.algorithm.comparison : equal;
assert(toChars(1).equal("1"));
assert(toChars(1_000_000).equal("1000000"));
assert(toChars!(2)(2U).equal("10"));
assert(toChars!(16)(255U).equal("ff"));
assert(toChars!(16, char, LetterCase.upper)(255U).equal("FF"));
}
@safe unittest
{
import std.array;
import std.range;
{
assert(toChars!2(0u).array == "0");
assert(toChars!2(0Lu).array == "0");
assert(toChars!2(1u).array == "1");
assert(toChars!2(1Lu).array == "1");
auto r = toChars!2(2u);
assert(r.length == 2);
assert(r[0] == '1');
assert(r[1 .. 2].array == "0");
auto s = r.save;
assert(r.array == "10");
assert(s.retro.array == "01");
}
{
assert(toChars!8(0u).array == "0");
assert(toChars!8(0Lu).array == "0");
assert(toChars!8(1u).array == "1");
assert(toChars!8(1234567Lu).array == "4553207");
auto r = toChars!8(8u);
assert(r.length == 2);
assert(r[0] == '1');
assert(r[1 .. 2].array == "0");
auto s = r.save;
assert(r.array == "10");
assert(s.retro.array == "01");
}
{
assert(toChars!10(0u).array == "0");
assert(toChars!10(0Lu).array == "0");
assert(toChars!10(1u).array == "1");
assert(toChars!10(1234567Lu).array == "1234567");
assert(toChars!10(uint.max).array == "4294967295");
assert(toChars!10(ulong.max).array == "18446744073709551615");
auto r = toChars(10u);
assert(r.length == 2);
assert(r[0] == '1');
assert(r[1 .. 2].array == "0");
auto s = r.save;
assert(r.array == "10");
assert(s.retro.array == "01");
}
{
assert(toChars!10(0).array == "0");
assert(toChars!10(0L).array == "0");
assert(toChars!10(1).array == "1");
assert(toChars!10(1234567L).array == "1234567");
assert(toChars!10(int.max).array == "2147483647");
assert(toChars!10(long.max).array == "9223372036854775807");
assert(toChars!10(-int.max).array == "-2147483647");
assert(toChars!10(-long.max).array == "-9223372036854775807");
assert(toChars!10(int.min).array == "-2147483648");
assert(toChars!10(long.min).array == "-9223372036854775808");
auto r = toChars!10(10);
assert(r.length == 2);
assert(r[0] == '1');
assert(r[1 .. 2].array == "0");
auto s = r.save;
assert(r.array == "10");
assert(s.retro.array == "01");
}
{
assert(toChars!(16)(0u).array == "0");
assert(toChars!(16)(0Lu).array == "0");
assert(toChars!(16)(10u).array == "a");
assert(toChars!(16, char, LetterCase.upper)(0x12AF34567Lu).array == "12AF34567");
auto r = toChars!(16)(16u);
assert(r.length == 2);
assert(r[0] == '1');
assert(r[1 .. 2].array == "0");
auto s = r.save;
assert(r.array == "10");
assert(s.retro.array == "01");
}
}
@safe unittest // opSlice (issue 16192)
{
import std.meta : AliasSeq;
static struct Test { ubyte radix; uint number; }
alias tests = AliasSeq!(
Test(2, 0b1_0110_0111u),
Test(2, 0b10_1100_1110u),
Test(8, octal!123456701u),
Test(8, octal!1234567012u),
Test(10, 123456789u),
Test(10, 1234567890u),
Test(16, 0x789ABCDu),
Test(16, 0x789ABCDEu),
);
foreach (test; tests)
{
enum ubyte radix = test.radix;
auto original = toChars!radix(test.number);
// opSlice vs popFront
auto r = original.save;
size_t i = 0;
for (; !r.empty; r.popFront(), ++i)
{
assert(original[i .. original.length].tupleof == r.tupleof);
// tupleof is used to work around issue 16216.
}
// opSlice vs popBack
r = original.save;
i = 0;
for (; !r.empty; r.popBack(), ++i)
{
assert(original[0 .. original.length - i].tupleof == r.tupleof);
}
// opSlice vs both popFront and popBack
r = original.save;
i = 0;
for (; r.length >= 2; r.popFront(), r.popBack(), ++i)
{
assert(original[i .. original.length - i].tupleof == r.tupleof);
}
}
}
|
D
|
a solicitation for money or food (especially in the street by an apparently penniless person)
call upon in supplication
make a solicitation or entreaty for something
ask to obtain free
dodge, avoid answering, or take for granted
|
D
|
module rmdc_main;
import std.stdio;
import std.datetime;
import rmd_concurrent;
import argv_expand;
// This demonstrates use of wildArgvs to expand the args
// and the use of the concurrent remove to speed up remove of files and directories.
// The args can be any list of files or folders.
// They will be removed.
const int THREADS = 14;
int main(string[] argv)
{
if (argv.length < 2){
writeln ("Removes files or directories.");
writeln ("Wildcard expansion is provided for the basename.");
writeln (r"Example: rmd d:\mydir\*.bat d:\mydir\*.asm d:\mydir\tempdir");
return 0;
}
auto sw = StopWatch(AutoStart.yes);
foreach( dir; wildArgvs(argv[1..$])){
writeln("removing: "~ dir );
rmdConcurrent(dir,THREADS);
}
writeln("finished! time:", sw.peek().msecs, " ms");
return 0;
}
|
D
|
module fsicalmanagement.facade.event_facade;
/**
* Provides functionality to get, create and remove events.
*/
class EventFacade
{
import fsicalmanagement.dataaccess.event_repository : EventRepository;
import fsicalmanagement.model.event : Event, EventType;
import std.datetime.date : Date;
import std.range.interfaces : InputRange;
import std.typecons : Nullable;
import vibe.core.log : logInfo;
private:
EventRepository eventRepository;
public:
///
this(EventRepository eventRepository) @safe @nogc pure nothrow
{
this.eventRepository = eventRepository;
}
/**
* Gets all events.
*
* Returns: An `InputRange` containing all `Event`s.
*/
InputRange!Event getAllEvents() @safe
{
return eventRepository.findAll;
}
/**
* Creates an event.
* Params:
* begin = The date when the event begins or when it takes place if it is
* a single day event.
* end = The date when the event ends or `null`, which makes the event a
* single day event.
* description = The description of the event.
* name = The name of the event.
* type = The type of the event.
* shout = A flag specifying if the event should be announced.
*
* Returns: The created `Event`.
*
* Throws: `Exception` if $(D_PARAM end) is not after $(D_PARAM begin).
*/
Event createEvent(const Date begin, const Nullable!Date end,
const string description, const string name, const EventType type, const bool shout) @safe
{
import core.time : days;
import std.array : replace;
import std.exception : enforce;
if (!end.isNull)
enforce(end - begin >= 1.days, "Multiday events need to last at least one day.");
immutable event = eventRepository.save(Event("", begin, end, name,
description.replace("\r", ""), type, shout));
logInfo("Stored event %s", event);
return event;
}
/**
* Removes an event.
* Params:
* id = The id of the event to remove.
*/
void removeEventById(const string id) @safe
{
eventRepository.deleteById(id);
logInfo("Deleted event with id %s", id);
}
}
|
D
|
<?xml version="1.0" encoding="ASCII" standalone="no"?>
<di:SashWindowsMngr xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmi:version="2.0">
<pageList>
<availablePage>
<emfPageIdentifier href="VAR_1_BeT-1974142132.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</availablePage>
</pageList>
<sashModel currentSelection="//@sashModel/@windows.0/@children.0">
<windows>
<children xsi:type="di:TabFolder">
<children>
<emfPageIdentifier href="VAR_1_BeT-1974142132.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</children>
</children>
</windows>
</sashModel>
</di:SashWindowsMngr>
|
D
|
module dparser.result;
import std.conv : to;
abstract class Result(T)
{
@property @safe pure bool isSuccess();
@property @safe pure bool isFailure();
@property pure Success!T toSuccess();
@property pure Failure!T toFailure();
}
template ResultType(R)
{
static if (is(R == Result!T, T))
alias ResultType = T;
else {
import std.format : format;
static assert(false, format!"Expected any Result, but: %s"(R.stringof));
}
}
/**
* パーズ成功を表す型
*/
class Success(T): Result!T
{
T value;
string next;
this(T value, string next) {
this.value = value;
this.next = next;
}
@property @safe
override pure
bool isSuccess() {
return true;
}
@property @safe
override pure
bool isFailure() {
return false;
}
@property
override pure
Success!T toSuccess() {
return this;
}
@property
override pure
Failure!T toFailure() {
throw new Exception("Call Success#toFailure.");
}
@property
override
string toString() {
return "Success(" ~ this.value.to!string ~ ", " ~ next ~ ")";
}
}
Success!T success(T)(T value, string next)
{
return new Success!T(value, next);
}
/**
* パーズ失敗を表す型
*/
class Failure(T): Result!T
{
string message;
string next;
this(in string message, in string next) {
this.message = message;
this.next = next;
}
@property @safe
override pure
bool isSuccess() {
return false;
}
@property @safe
override pure
bool isFailure() {
return true;
}
@property
override pure
Success!T toSuccess() {
throw new Exception("Call Failure#toSuccess.");
}
@property
override pure
Failure!T toFailure() {
return this;
}
@property
pure
Result!U of(U)() {
return failure!U(this.message, this.next);
}
@property
override
string toString() {
return "Failure(" ~ message ~ ", " ~ next ~ ")";
}
}
Failure!T failure(T)(string message, string next)
{
return new Failure!T(message, next);
}
|
D
|
/Users/linhht/Documents/demo-chat/newChatDemo/ios/Build/Intermediates.noindex/newChatDemo.build/Debug-iphonesimulator/newChatDemo.build/Objects-normal/x86_64/SoundRecordingView.o : /Users/linhht/Documents/demo-chat/newChatDemo/ios/Applozic/Applozic/SoundRecordingView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/linhht/Documents/demo-chat/newChatDemo/ios/newChatDemo-Bridging-Header.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes
/Users/linhht/Documents/demo-chat/newChatDemo/ios/Build/Intermediates.noindex/newChatDemo.build/Debug-iphonesimulator/newChatDemo.build/Objects-normal/x86_64/SoundRecordingView~partial.swiftmodule : /Users/linhht/Documents/demo-chat/newChatDemo/ios/Applozic/Applozic/SoundRecordingView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/linhht/Documents/demo-chat/newChatDemo/ios/newChatDemo-Bridging-Header.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes
/Users/linhht/Documents/demo-chat/newChatDemo/ios/Build/Intermediates.noindex/newChatDemo.build/Debug-iphonesimulator/newChatDemo.build/Objects-normal/x86_64/SoundRecordingView~partial.swiftdoc : /Users/linhht/Documents/demo-chat/newChatDemo/ios/Applozic/Applozic/SoundRecordingView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/linhht/Documents/demo-chat/newChatDemo/ios/newChatDemo-Bridging-Header.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVFoundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/AVKit.framework/Headers/AVKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/AudioToolbox.framework/Headers/AudioToolbox.apinotes
|
D
|
/******************************************************************************
Defines a class to encapsulate and manage MXNet handles
Copyright:
Copyright (c) 2017 dunnhumby Germany GmbH.
License:
Boost Software License Version 1.0. See accompanying LICENSE.txt for
details, or <https://www.boost.org/LICENSE_1_0.txt>
******************************************************************************/
module mxnet.Handle;
import mxnet.Exception;
import ocean.meta.types.Qualifiers;
version (unittest)
{
import core.stdc.stdlib;
import ocean.core.Test;
}
/******************************************************************************
Exception to be thrown in case of an error involving an MXNet handle
instance (e.g. if a handle is null when it should not be)
In the typical use-case only one global reusable instance of this exception
will ever exist per thread, and it will only ever be thrown from within the
`MXNetHandle` class defined in this module. When catching exceptions of
this type, take care to not store shallow copies, since the exception data
may later be rewritten in place by other handle-related failures.
******************************************************************************/
public class MXNetHandleException : MXNetException
{
}
/******************************************************************************
Exception instance to be thrown in case of an error involving an MXNet
handle instance (e.g. if a handle is null when it should not be)
Since this is a reusable instance, take care not to store shallow copies
of it, since the exception data will be rewritten in place by other later
handle-related failures.
******************************************************************************/
package MXNetHandleException mxnet_handle_exception;
private static this ()
{
mxnet_handle_exception = new MXNetHandleException;
}
/******************************************************************************
Count of the total number of MXNetHandle instances (of any type) wrapping
a non-null handle pointer. This should match the total number of handles
allocated by the D library. Should be >= 0; if its value ever becomes
negative, this indicates a bug in the D library code where some handles
are being wrapped without that being tracked.
******************************************************************************/
private long mxnet_handle_count = 0;
/******************************************************************************
Module destructor that outputs an error message if `mxnet_handle_count`
is non-zero when it is invoked. This offers an extra safety check to
confirm that all MXNet C API handles are being freed correctly before
a program exits.
Note that it is entirely possible for this module destructor to be called
before the destructors of individual `MXNetHandle` class instances. This
means that the error message may trigger even if a program is cleaning up
after itself adequately. Build with `-debug=MXNetHandle` to track down
any apparently unfreed handles.
******************************************************************************/
static ~this ()
{
if (mxnet_handle_count != 0)
{
debugReport("{} MXNet handle(s) in use at shutdown!\n",
mxnet_handle_count);
}
}
/******************************************************************************
Returns:
Current number of MXNet handles allocated by the D library.
This should be >= 0; if it is negative, this indicates a bug in the
D library code where some handle allocation is not being tracked.
******************************************************************************/
public long handleCount ()
{
return mxnet_handle_count;
}
/******************************************************************************
Manages an MXNet handle
The C API of MXNet defines handles which reference MXNet objects. A single
handle corresponds to a specific instance. For example when creating an
n-dimensional array a handle is returned to reference the created array.
For each kind of MXNet object the C API defines functions expecting
an handle to communicate which object the function is applied to. Handles
should be freed to clean up their resources. This class implements a
function for freeing the underlying resources manually. This function is
called on destruction to enable automatic release of the resources.
Requesting MXNet resources quickly but not releasing them in a timely
manner may result in resource over-consumption. Making it may seem as if
there are not enough resources left when in fact they only haven't been
reclaimed yet. To reclaim the MXNet resource (handled by an MXNetHandle)
quickly after its usage consider manually freeing the handle. You can also
use `scope (exit)` here. Another approach is to `scope` allocate the handle
thereby calling its destructor when the handle goes out of scope. Note
when relying on the GC for destruction you have no control when the
destructor is actually called, hence when the resource is freed.
Params:
HandleType = type of the underlying handle
FreeHandleFunction = function to free the handle
******************************************************************************/
public class MXNetHandle (HandleType, alias FreeHandleFunction)
{
import core.stdc.stdlib : abort;
import mxnet.API;
import ocean.core.Traits;
/***************************************************************************
Underlying handle used to interact with C library
The underlying handle is not allowed to be shared between different
instances, otherwise the handle could be freed more than once.
The handle is allowed to be null, in which case the instance will be
considered to be empty, i.e., it does not reference any object.
***************************************************************************/
private HandleType c_api_handle;
/***************************************************************************
Constructs an MXNetHandle from a given handle
You should never construct different instances with the same handle,
because freeing a handle of one instance would leave the other
instances with a dangling handle.
Params:
mxnet_handle = C API handle; the handle can be null to pre-allocate
a class instance whose handle will be set later
***************************************************************************/
public this (HandleType mxnet_handle)
out
{
assert(this.handle() is mxnet_handle);
}
body
{
if (mxnet_handle !is null)
{
this.handle(mxnet_handle);
}
}
/***************************************************************************
Applies a function to the underlying handle, together with the provided
function arguments
Params:
MXNetFunction = MXNet function to apply to the wrapped handle;
it is assumed that the handle will be the first
function parameter
file = file from which the call originates
line = line from which the call originates
Args = variadic list of the types of arguments to be passed when
calling `MXNetFunction` in addition to the handle itself
args = arguments to pass to `MXNetFunction` in addition to the
wrapped handle
Throws:
`MXNetHandleException` if the underlying handle is null;
`MXNetAPIException` if the call to `MXNetFunction` fails
Take care not to store shallow copies of the `MXNetAPIException`
instance, as it is a unique reusable instance whose data may be
rewritten in-place by later API failures.
***************************************************************************/
public void apply (alias MXNetFunction,
istring file = __FILE__, int line = __LINE__,
Args...) (Args args)
{
mxnet_handle_exception.enforce(this.exists(),
"Cannot apply " ~ identifier!(MXNetFunction) ~ " to null handle!",
file, line);
invoke!(MXNetFunction, file, line)(this.c_api_handle, args);
}
unittest
{
scope null_handle = new MXNetHandle!(int*, freeMXNetHandleMemory)(null);
testThrown!(MXNetHandleException)(null_handle.apply!(mxNetHandleFails)());
testThrown!(MXNetHandleException)(null_handle.apply!(mxNetHandleSucceeds)(5));
int* h = cast(int*) malloc(int.sizeof);
scope valid_handle = new MXNetHandle!(int*, freeMXNetHandleMemory)(h);
scope(exit) valid_handle.freeHandle();
testThrown!(MXNetAPIException)(valid_handle.apply!(mxNetHandleFails)());
valid_handle.apply!(mxNetHandleSucceeds)(6);
test!("==")(*h, 6);
valid_handle.apply!(mxNetHandleSucceeds)(7);
test!("==")(*h, 7);
}
/***************************************************************************
Gives access to the underlying handle
Use this handle with care. This is provided as a mechanism to use the C
API directly when needed.
Returns:
the underlying handle used with the C library
***************************************************************************/
public HandleType handle ()
{
return this.c_api_handle;
}
/***************************************************************************
Returns true if this handle references an underlying objects
When no underlying object is referenced the handle is null.
Returns:
true if the handle is non-null, otherwise false
***************************************************************************/
public bool exists () const
{
return this.c_api_handle !is null;
}
/***************************************************************************
Sets the underlying handle
This frees any existing underlying handle and replaces it with the
provided handle.
Note that you must ensure that no two instances share the same handle
as this would result in double freeing of the same handle.
Params:
mxnet_handle = the C API handle this instance's handle is to be
set to
file = file name where this function is called from; defaults to
__FILE__
line = line number in file where this function is called from;
defaults to __LINE__
***************************************************************************/
public void handle (HandleType mxnet_handle,
istring file = __FILE__, uint line = __LINE__)
{
// if the 'new' handle is the same as the existing one, then the latter
// should not be freed, as it would leave us with a dangling reference
if (this.c_api_handle is mxnet_handle)
{
debug (MXNetHandle)
{
debugReport("Attempting to overwrite handle {:x} with itself "
~ "at {}:{}\n",
this.c_api_handle, file, line);
}
return;
}
this.freeHandle();
this.c_api_handle = mxnet_handle;
// increment the handle count if the new handle is non-null
if (this.c_api_handle !is null)
{
++mxnet_handle_count;
debug (MXNetHandle)
{
debugReport("New handle: {:x} ({} allocated in total)\n",
this.c_api_handle, handleCount());
}
}
}
unittest
{
alias void* HandleType;
alias MXNetHandle!(HandleType, freeMXNetHandleMemory) Memory;
{
HandleType some_handle = malloc(1);
scope h = new Memory(some_handle);
test(h.handle !is null);
h.handle = null;
test(h.handle is null);
}
// change the handle to itself testing the issue of double freeing
{
HandleType some_handle = malloc(1);
scope h = new Memory(some_handle);
scope(exit) h.freeHandle();
test(h.handle !is null);
h.handle = some_handle;
test(h.handle is some_handle);
}
}
/***************************************************************************
Frees the underlying handle
***************************************************************************/
public void freeHandle ()
{
// failure to free will abort, so we can decrement
// the handle count before the free attempt
if (this.c_api_handle !is null)
{
--mxnet_handle_count;
debug (MXNetHandle)
{
debugReport("Freeing handle: {:x} ({} still allocated)\n",
this.c_api_handle, handleCount());
}
if (handleCount() < 0)
{
debugReport("Allocated handle count is negative!\n");
abort();
}
}
if (FreeHandleFunction(this.c_api_handle) != 0)
{
debugReport("Could not free MXNet handle using {}@{}:{}\n",
identifier!(FreeHandleFunction), __FILE__, __LINE__);
abort();
}
this.c_api_handle = null;
}
/***************************************************************************
Destructs this handle freeing its underlying resources
***************************************************************************/
public ~this ()
{
debug (MXNetHandleManualFree)
{
if (this.exists())
{
// Relying on the GC calling this destructor to free the handle
// is problematic since it may not be in-time. For this reason,
// we recommend users of `MXNetHandle` to free MXNet resources
// by calling `freeHandle` manually, and never relying on the
// destructor.
//
// If this policy is followed, then the handle should already
// have been freed by the time the destructor is initiated.
// This debug check should help in tracking down any handles
// for which this has not been done.
debugReport("Non-null handle {:x} in MXNetHandle destructor!\n",
this.c_api_handle);
}
}
this.freeHandle();
}
}
/******************************************************************************
Writes a formatted string to standard error
The function itself does not allocate. But the string conversion method
`toString` for arguments of user-defined type might. As such these
allocations depend on the implementation of `toString`. In summary the
execution of this function performs no allocation (including GC
allocations) unless an argument cannot be formatted without.
As such the function is designed for outputting debug messages in
circumstances where GC allocations and throwing is not permitted. Most
notably this includes the execution of destructors.
Params:
fmt = format string to use
args = variadic arguments to format according to fmt
*******************************************************************************/
private void debugReport (Args...) (cstring fmt, Args args)
{
import core.sys.posix.unistd : write, STDERR_FILENO;
import ocean.text.convert.Formatter : sformat;
sformat((cstring str) { write(STDERR_FILENO, str.ptr, str.length); },
fmt, args);
}
unittest
{
testNoAlloc(debugReport("Debug reporting works: {} at {}:{}\n",
true, __FILE__, __LINE__));
}
version (unittest)
{
/***************************************************************************
Frees memory using `free`
This function is used in testing as an example for a
`FreeHandleFunction`. This allows testing `MXNetHandle` with the handle
representing a pointer to `malloc`ed memory.
The function returns an int to match the return type of the freeing
functions in the MXNet C API. In particular it always returns zero
since C's free function does not indicate any status. Note though
freeing an already freed pointer is undefined.
Returns:
always zero to indicate successful freeing
***************************************************************************/
// NOTE: public only so that `ocean.core.Traits.identifier` can access it
public int freeMXNetHandleMemory (void* ptr)
{
free(ptr);
return 0;
}
/***************************************************************************
Fake MXNet handle function that returns a failure value
Params:
h = fake MXNet handle (a pointer to integer); is not used
Returns:
1 (MXNet failure value)
***************************************************************************/
// NOTE: public only so that `ocean.core.Traits.identifier` can access it
public int mxNetHandleFails (int* h) { return 1; }
/***************************************************************************
Fake MXNet handle function that takes an `int*` handle and sets the
value it points to to the provided integer value
Params:
h = fake MXNet handle (a pointer to integer); must be non-null
n = value to which to set the integer pointed to by h
Returns:
0 (MXNet success value)
***************************************************************************/
// NOTE: public only so that `ocean.core.Traits.identifier` can access it
public int mxNetHandleSucceeds (int* h, int n)
{
assert(h !is null);
*h = n;
return 0;
}
}
|
D
|
/Users/zyang/SNGithub/Cosmos/Build/Intermediates/Cosmos.build/Debug-iphonesimulator/Cosmos.build/Objects-normal/x86_64/View+Animation.o : /Users/zyang/SNGithub/Cosmos/Cosmos/Curve.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Shape+Creation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Wedge.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Image.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Checkerboard.swift /Users/zyang/SNGithub/Cosmos/Cosmos/RegularPolygon.swift /Users/zyang/SNGithub/Cosmos/Cosmos/EventSource.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIImage+AddRemove.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Bloom.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Rectangle.swift /Users/zyang/SNGithub/Cosmos/Cosmos/AstrologicalSignProvider.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ScreenRecorder.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ImageLayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/HueAdjust.swift /Users/zyang/SNGithub/Cosmos/Cosmos/QuadCurve.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Vector.swift /Users/zyang/SNGithub/Cosmos/Cosmos/AppDelegate.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Image+Filter.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Stars.swift /Users/zyang/SNGithub/Cosmos/Cosmos/StarsBig.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+Shadow.swift /Users/zyang/SNGithub/Cosmos/Cosmos/StarsBackground.swift /Users/zyang/SNGithub/Cosmos/Cosmos/PlayerLayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Sepia.swift /Users/zyang/SNGithub/Cosmos/Cosmos/StarsSmall.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Transform.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Pixel.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Shape.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Line.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+Animation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Arc.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIGestureRecognizer+Closure.swift /Users/zyang/SNGithub/Cosmos/Cosmos/MenuShadow.swift /Users/zyang/SNGithub/Cosmos/Cosmos/GradientLayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/StoredAnimation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/MenuIcons.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Ellipse.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Foundation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+Border.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Rect.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIViewController+C4View.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Size.swift /Users/zyang/SNGithub/Cosmos/Cosmos/TextShape.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Image+Crop.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Color.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Star.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Circle.swift /Users/zyang/SNGithub/Cosmos/Cosmos/LinearGradient.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Font.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Movie.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Point.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Sharpen.swift /Users/zyang/SNGithub/Cosmos/Cosmos/DotScreen.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Filter.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Timer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Path.swift /Users/zyang/SNGithub/Cosmos/Cosmos/InfiniteScrollView.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIView+AddRemove.swift /Users/zyang/SNGithub/Cosmos/Cosmos/MenuSelector.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ViewAnimation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/CanvasController.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Animation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Generator.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+KeyValues.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+Render.swift /Users/zyang/SNGithub/Cosmos/Cosmos/InfoPanel.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ColorBurn.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Gradient.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Triangle.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Twirl.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Menu.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Math.swift /Users/zyang/SNGithub/Cosmos/Cosmos/SignLines.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Polygon.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Layer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ShapeLayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Image+Generator.swift /Users/zyang/SNGithub/Cosmos/Cosmos/GaussianBlur.swift /Users/zyang/SNGithub/Cosmos/Cosmos/WorkSpace.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIImage+Color.swift /Users/zyang/SNGithub/Cosmos/Cosmos/AudioPlayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/MenuRings.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule
/Users/zyang/SNGithub/Cosmos/Build/Intermediates/Cosmos.build/Debug-iphonesimulator/Cosmos.build/Objects-normal/x86_64/View+Animation~partial.swiftmodule : /Users/zyang/SNGithub/Cosmos/Cosmos/Curve.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Shape+Creation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Wedge.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Image.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Checkerboard.swift /Users/zyang/SNGithub/Cosmos/Cosmos/RegularPolygon.swift /Users/zyang/SNGithub/Cosmos/Cosmos/EventSource.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIImage+AddRemove.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Bloom.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Rectangle.swift /Users/zyang/SNGithub/Cosmos/Cosmos/AstrologicalSignProvider.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ScreenRecorder.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ImageLayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/HueAdjust.swift /Users/zyang/SNGithub/Cosmos/Cosmos/QuadCurve.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Vector.swift /Users/zyang/SNGithub/Cosmos/Cosmos/AppDelegate.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Image+Filter.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Stars.swift /Users/zyang/SNGithub/Cosmos/Cosmos/StarsBig.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+Shadow.swift /Users/zyang/SNGithub/Cosmos/Cosmos/StarsBackground.swift /Users/zyang/SNGithub/Cosmos/Cosmos/PlayerLayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Sepia.swift /Users/zyang/SNGithub/Cosmos/Cosmos/StarsSmall.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Transform.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Pixel.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Shape.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Line.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+Animation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Arc.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIGestureRecognizer+Closure.swift /Users/zyang/SNGithub/Cosmos/Cosmos/MenuShadow.swift /Users/zyang/SNGithub/Cosmos/Cosmos/GradientLayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/StoredAnimation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/MenuIcons.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Ellipse.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Foundation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+Border.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Rect.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIViewController+C4View.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Size.swift /Users/zyang/SNGithub/Cosmos/Cosmos/TextShape.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Image+Crop.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Color.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Star.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Circle.swift /Users/zyang/SNGithub/Cosmos/Cosmos/LinearGradient.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Font.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Movie.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Point.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Sharpen.swift /Users/zyang/SNGithub/Cosmos/Cosmos/DotScreen.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Filter.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Timer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Path.swift /Users/zyang/SNGithub/Cosmos/Cosmos/InfiniteScrollView.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIView+AddRemove.swift /Users/zyang/SNGithub/Cosmos/Cosmos/MenuSelector.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ViewAnimation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/CanvasController.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Animation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Generator.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+KeyValues.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+Render.swift /Users/zyang/SNGithub/Cosmos/Cosmos/InfoPanel.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ColorBurn.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Gradient.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Triangle.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Twirl.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Menu.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Math.swift /Users/zyang/SNGithub/Cosmos/Cosmos/SignLines.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Polygon.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Layer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ShapeLayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Image+Generator.swift /Users/zyang/SNGithub/Cosmos/Cosmos/GaussianBlur.swift /Users/zyang/SNGithub/Cosmos/Cosmos/WorkSpace.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIImage+Color.swift /Users/zyang/SNGithub/Cosmos/Cosmos/AudioPlayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/MenuRings.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule
/Users/zyang/SNGithub/Cosmos/Build/Intermediates/Cosmos.build/Debug-iphonesimulator/Cosmos.build/Objects-normal/x86_64/View+Animation~partial.swiftdoc : /Users/zyang/SNGithub/Cosmos/Cosmos/Curve.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Shape+Creation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Wedge.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Image.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Checkerboard.swift /Users/zyang/SNGithub/Cosmos/Cosmos/RegularPolygon.swift /Users/zyang/SNGithub/Cosmos/Cosmos/EventSource.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIImage+AddRemove.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Bloom.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Rectangle.swift /Users/zyang/SNGithub/Cosmos/Cosmos/AstrologicalSignProvider.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ScreenRecorder.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ImageLayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/HueAdjust.swift /Users/zyang/SNGithub/Cosmos/Cosmos/QuadCurve.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Vector.swift /Users/zyang/SNGithub/Cosmos/Cosmos/AppDelegate.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Image+Filter.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Stars.swift /Users/zyang/SNGithub/Cosmos/Cosmos/StarsBig.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+Shadow.swift /Users/zyang/SNGithub/Cosmos/Cosmos/StarsBackground.swift /Users/zyang/SNGithub/Cosmos/Cosmos/PlayerLayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Sepia.swift /Users/zyang/SNGithub/Cosmos/Cosmos/StarsSmall.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Transform.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Pixel.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Shape.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Line.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+Animation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Arc.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIGestureRecognizer+Closure.swift /Users/zyang/SNGithub/Cosmos/Cosmos/MenuShadow.swift /Users/zyang/SNGithub/Cosmos/Cosmos/GradientLayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/StoredAnimation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/MenuIcons.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Ellipse.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Foundation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+Border.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Rect.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIViewController+C4View.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Size.swift /Users/zyang/SNGithub/Cosmos/Cosmos/TextShape.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Image+Crop.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Color.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Star.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Circle.swift /Users/zyang/SNGithub/Cosmos/Cosmos/LinearGradient.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Font.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Movie.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Point.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Sharpen.swift /Users/zyang/SNGithub/Cosmos/Cosmos/DotScreen.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Filter.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Timer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Path.swift /Users/zyang/SNGithub/Cosmos/Cosmos/InfiniteScrollView.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIView+AddRemove.swift /Users/zyang/SNGithub/Cosmos/Cosmos/MenuSelector.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ViewAnimation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/CanvasController.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Animation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Generator.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+KeyValues.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+Render.swift /Users/zyang/SNGithub/Cosmos/Cosmos/InfoPanel.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ColorBurn.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Gradient.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Triangle.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Twirl.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Menu.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Math.swift /Users/zyang/SNGithub/Cosmos/Cosmos/SignLines.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Polygon.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Layer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ShapeLayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Image+Generator.swift /Users/zyang/SNGithub/Cosmos/Cosmos/GaussianBlur.swift /Users/zyang/SNGithub/Cosmos/Cosmos/WorkSpace.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIImage+Color.swift /Users/zyang/SNGithub/Cosmos/Cosmos/AudioPlayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/MenuRings.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule
|
D
|
/+
Copyright (c) 2006 Eric Anderton
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
+/
/**
Provides Mango binary Reader support, with a few enhancements
Authors: Eric Anderton
License: BSD Derivative (see source for details)
Copyright: 2006 Eric Anderton
*/
module ddl.DDLReader;
private import ddl.Utils;
private import mango.io.Reader;
private import mango.io.Buffer;
private import mango.io.model.IBuffer;
private import mango.io.model.IConduit;
debug private import mango.io.Stdout;
public class DDLReader : Reader{
public this(void[] data){
super(new Buffer(data,data.length));
}
public this (IBuffer buffer){
super(buffer);
}
public this (IConduit conduit){
super(conduit);
}
public DDLReader peek(inout ubyte x){
x = (cast(ubyte[])buffer.get(1,false))[0];
return this;
}
public DDLReader peek(inout ubyte[] x,uint elements = uint.max){
if(elements == uint.max)
elements = buffer.readable;
assert(elements <= buffer.readable);
x = (cast(ubyte[])buffer.get(elements,false));
return this;
}
//props to Kris for suggesting this method of getting 100% of the remaining data in a conduit
DDLReader getAll(inout void[] x)
{
IConduit conduit = getBuffer.getConduit();
x = getBuffer.get(getBuffer.readable); //exhaust the buffer
if(conduit){
static const uint BUFFER_LEN = 8192;
void[] content = new void[BUFFER_LEN];
uint filled = 0;
while(true){
uint chunk = conduit.read(content[filled..$]);
if (chunk is conduit.Eof)
break;
filled += chunk;
if (content.length - filled < 1024)
content.length = content.length + BUFFER_LEN;
}
if(filled > 0){
x ~= content [0..filled]; // add on additional data
}
}
return this;
}
bool hasMore(){
//TODO: instead of try-catch, check for underflow instead
try{
void[] result = getBuffer().get(1,false);
return result != null;
}
catch(Exception e){
return false;
}
}
// perform a seek relative to the current buffer position and status using the conduit
// NOTE: this will clear out the current buffer
void seek(ulong offset, ISeekable.SeekAnchor anchor=ISeekable.SeekAnchor.Begin){
IConduit conduit = getBuffer.getConduit();
if(conduit){
ISeekable seekableConduit = cast(ISeekable)(conduit);
assert(seekableConduit);
// seek and wipe out the buffer
switch(anchor){
case ISeekable.SeekAnchor.Begin:
case ISeekable.SeekAnchor.End:
seekableConduit.seek(offset,anchor);
break;
case ISeekable.SeekAnchor.Current:
seekableConduit.seek(offset - getBuffer.readable,anchor);
break;
}
getBuffer.clear();
}
else{ // no conduit for buffer
switch(anchor){
case ISeekable.SeekAnchor.Begin:
getBuffer.skip(offset-getBuffer.getPosition);
break;
case ISeekable.SeekAnchor.End:
getBuffer.skip(getBuffer.readable-offset);
break;
case ISeekable.SeekAnchor.Current:
getBuffer.skip(offset);
break;
}
}
}
// get the position relative to the current buffer position and status
ulong getPosition(){
IConduit conduit = getBuffer.getConduit();
if(conduit){
ISeekable seekableConduit = cast(ISeekable)(conduit);
assert(seekableConduit);
return seekableConduit.getPosition() - getBuffer.readable;
}
else{
return(getBuffer.getPosition);
}
}
// override to provide debug support
debug (REMOVE) override protected IReader decodeArray (void[]* x, uint bytes, uint width, uint type){
try{
return super.decodeArray(x,bytes,width,type);
}
catch(Exception e){
Stdout.println("Exception thrown while decoding array (%0.8X) %d bytes, width %d, type %d",x,bytes,width,type);
throw e;
}
return this;
}
// override to provide debug support
debug override protected uint read (void *dst, uint bytes, uint type){
try{
return super.read(dst,bytes,type);
}
catch(Exception e){
Stdout.println("Exception thrown while reading (%0.8X) %d bytes, type %d",dst,bytes,type);
throw e;
}
return 0;
}
}
|
D
|
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Vapor.build/Hash/Config+Hash.swift.o : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Body+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+FormData.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewData.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/FormData+Polymorphic.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/StructuredData+FormURLEncoded.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/Request+FormURLEncoded.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Command.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Log+Convenience.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringCharacterSequence.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Resource.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/HTTP+Node.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/AcceptLanguage.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cache/Config+Cache.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+Codable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+Codable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Configurable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSONRepresentable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringInitializable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/RequestInitializable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Console.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Vapor+Console.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/MediaType.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Config+Middleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Date/DateMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/File+Response.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Resolve.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Serve.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/DumpConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Config+ServerConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/ServerConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoEncoding.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Chaining.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Droplet+Routing.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Config+Log.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RoutesLog.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Config+Hash.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogLevel.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Config+Mail.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mail.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/ProviderInstall.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/HashProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CipherProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactoryProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactoryProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Int+Random.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Version.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSConfiguration.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Subscription.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Run.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mailgun.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Config+Provider.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Responder.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileManager.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/ConsoleLogger.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/Config+Cipher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoCipher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/CryptoHasher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/BCryptHasher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/StaticViewRenderer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/EngineServer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/SecurityLayer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider+Resources.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Directories.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Bytes.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/InitProtocols.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Config+Sessions.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Responder+Helpers.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSockets/WebSockets.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/EngineClient.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/FoundationClient.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Response+Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Request+Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Event.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/Accept.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+Multipart.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer+Request.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Config+View.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/View.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorView.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/Config+ServerFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Config+ClientFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/JSON.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/SMTP.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/HTTP.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/FormData.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Cache.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Branches.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Cookies.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Configs.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sessions.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/WebSockets.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/BCrypt.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Vapor.build/Config+Hash~partial.swiftmodule : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Body+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+FormData.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewData.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/FormData+Polymorphic.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/StructuredData+FormURLEncoded.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/Request+FormURLEncoded.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Command.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Log+Convenience.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringCharacterSequence.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Resource.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/HTTP+Node.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/AcceptLanguage.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cache/Config+Cache.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+Codable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+Codable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Configurable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSONRepresentable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringInitializable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/RequestInitializable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Console.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Vapor+Console.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/MediaType.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Config+Middleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Date/DateMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/File+Response.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Resolve.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Serve.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/DumpConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Config+ServerConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/ServerConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoEncoding.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Chaining.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Droplet+Routing.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Config+Log.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RoutesLog.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Config+Hash.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogLevel.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Config+Mail.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mail.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/ProviderInstall.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/HashProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CipherProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactoryProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactoryProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Int+Random.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Version.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSConfiguration.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Subscription.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Run.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mailgun.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Config+Provider.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Responder.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileManager.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/ConsoleLogger.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/Config+Cipher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoCipher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/CryptoHasher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/BCryptHasher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/StaticViewRenderer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/EngineServer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/SecurityLayer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider+Resources.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Directories.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Bytes.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/InitProtocols.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Config+Sessions.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Responder+Helpers.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSockets/WebSockets.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/EngineClient.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/FoundationClient.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Response+Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Request+Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Event.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/Accept.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+Multipart.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer+Request.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Config+View.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/View.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorView.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/Config+ServerFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Config+ClientFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/JSON.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/SMTP.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/HTTP.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/FormData.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Cache.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Branches.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Cookies.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Configs.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sessions.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/WebSockets.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/BCrypt.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Vapor.build/Config+Hash~partial.swiftdoc : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Body+JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSON.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+FormData.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewData.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/FormData+Polymorphic.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/StructuredData+FormURLEncoded.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/Request+FormURLEncoded.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Command.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Log+Convenience.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringCharacterSequence.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Resource.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/HTTP+Node.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/AcceptLanguage.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cache/Config+Cache.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+Codable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+Codable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Configurable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSONRepresentable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringInitializable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/RequestInitializable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Console.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Vapor+Console.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/MediaType.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Config+Middleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Date/DateMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorMiddleware.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/File+Response.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Resolve.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Serve.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/DumpConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Config+ServerConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/ServerConfig.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoEncoding.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Chaining.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Droplet+Routing.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Config+Log.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RoutesLog.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Config+Hash.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogLevel.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Config+Mail.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mail.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/ProviderInstall.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/HashProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CipherProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactoryProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactoryProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Int+Random.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Version.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSConfiguration.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Subscription.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Run.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mailgun.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Config+Provider.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Responder.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileManager.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/ConsoleLogger.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/Config+Cipher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoCipher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/CryptoHasher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/BCryptHasher.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/StaticViewRenderer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/EngineServer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/SecurityLayer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider+Resources.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Directories.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Bytes.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/InitProtocols.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Config+Sessions.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Responder+Helpers.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSockets/WebSockets.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/EngineClient.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/FoundationClient.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Response+Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Request+Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Event.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/Accept.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+Multipart.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer+Request.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Config+View.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/View.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorView.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/Config+ServerFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Config+ClientFactory.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/JSON.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/SMTP.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/HTTP.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/FormData.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Cache.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Routing.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Branches.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Cookies.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Configs.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sessions.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/WebSockets.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/BCrypt.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Multipart.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
|
D
|
import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop, core.stdc.string;
immutable long MOD = 10^^9 + 7;
long[][] matmul(long[][] m1, long[][] m2) {
int n = m1.length.to!int;
long[][] ret = new long[][](n, n);
foreach (i; 0..n) foreach (j; 0..n) foreach (k; 0..n) {
(ret[i][j] += m1[i][k] * m2[k][j] % MOD) %= MOD;
}
return ret;
}
long[][] matpow(long[][] m, long x) {
int n = m.length.to!int;
long[][] ret = new long[][](n, n);
foreach (i; 0..n) ret[i][i] = 1;
while (x) {
if (x % 2) ret = matmul(ret, m);
m = matmul(m, m);
x /= 2;
}
return ret;
}
long powmod(long a, long x) {
long ret = 1;
while (x) {
if (x & 1) ret = ret * a % MOD;
a = a * a % MOD;
x /= 2;
}
return ret;
}
void main() {
auto N = readln.chomp.to!long;
long[][] hoge = [[1, 1], [1, 0]];
long ans = 1;
foreach (i; 0..N) {
auto s = readln.split;
auto C = s[0].to!long;
auto D = s[1].to!BigInt % (MOD - 1);
if (D == 0) D = MOD - 1;
auto F = matpow(hoge, C+1)[0][0];
ans = ans * powmod(F, D) % MOD;
}
ans.writeln;
}
|
D
|
int main() {
int a;
int b;
int c;
int d;
int z;
a = ReadInteger();
b = ReadInteger();
c = ReadInteger();
d = ReadInteger();
z = a + (b * 5);
a = z * d;
z = 2 * a + ((a + b) / (c + d));
b = z / a;
c = b * a + z;
d = a - b - c - d - z;
Print(a);
Print(b);
Print(c);
Print(d);
Print(z);
}
|
D
|
/Users/sol369/Desktop/curben-oc/DerivedData/curben/Build/Intermediates/Pods.build/Debug-iphonesimulator/ImageViewer.build/Objects-normal/x86_64/CGSize.o : /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryPagingDataSource.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryItemsDataSource.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryDisplacedViewsDataSource.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ItemControllerDelegate.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryItemsDelegate.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CGSize.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIBezierPath.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Thumbnails\ Controller/ThumbnailCell.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/Bool.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryItem.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIApplication.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryConfiguration.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GallerySwipeToDismissTransition.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIButton.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/VideoScrubber.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Slider.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UISlider.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ImageFadeInHandler.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ItemBaseController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ItemController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ImageViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/VideoViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Thumbnails\ Controller/ThumbnailsViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CALayer.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CAShapeLayer.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/AVPlayer.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIColor.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/LayoutEnums.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/UtilityFunctions.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CGRect.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CGPoint.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIView.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIImageView.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/VideoView.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/BlurView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AudioToolbox.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/sol369/Desktop/curben-oc/Pods/Target\ Support\ Files/ImageViewer/ImageViewer-umbrella.h /Users/sol369/Desktop/curben-oc/DerivedData/curben/Build/Intermediates/Pods.build/Debug-iphonesimulator/ImageViewer.build/unextended-module.modulemap
/Users/sol369/Desktop/curben-oc/DerivedData/curben/Build/Intermediates/Pods.build/Debug-iphonesimulator/ImageViewer.build/Objects-normal/x86_64/CGSize~partial.swiftmodule : /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryPagingDataSource.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryItemsDataSource.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryDisplacedViewsDataSource.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ItemControllerDelegate.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryItemsDelegate.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CGSize.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIBezierPath.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Thumbnails\ Controller/ThumbnailCell.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/Bool.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryItem.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIApplication.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryConfiguration.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GallerySwipeToDismissTransition.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIButton.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/VideoScrubber.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Slider.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UISlider.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ImageFadeInHandler.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ItemBaseController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ItemController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ImageViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/VideoViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Thumbnails\ Controller/ThumbnailsViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CALayer.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CAShapeLayer.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/AVPlayer.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIColor.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/LayoutEnums.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/UtilityFunctions.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CGRect.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CGPoint.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIView.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIImageView.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/VideoView.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/BlurView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AudioToolbox.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/sol369/Desktop/curben-oc/Pods/Target\ Support\ Files/ImageViewer/ImageViewer-umbrella.h /Users/sol369/Desktop/curben-oc/DerivedData/curben/Build/Intermediates/Pods.build/Debug-iphonesimulator/ImageViewer.build/unextended-module.modulemap
/Users/sol369/Desktop/curben-oc/DerivedData/curben/Build/Intermediates/Pods.build/Debug-iphonesimulator/ImageViewer.build/Objects-normal/x86_64/CGSize~partial.swiftdoc : /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryPagingDataSource.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryItemsDataSource.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryDisplacedViewsDataSource.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ItemControllerDelegate.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryItemsDelegate.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CGSize.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIBezierPath.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Thumbnails\ Controller/ThumbnailCell.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/Bool.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryItem.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIApplication.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryConfiguration.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GallerySwipeToDismissTransition.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIButton.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/VideoScrubber.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Slider.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UISlider.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ImageFadeInHandler.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ItemBaseController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ItemController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/ImageViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/VideoViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Thumbnails\ Controller/ThumbnailsViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/GalleryViewController.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CALayer.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CAShapeLayer.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/AVPlayer.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIColor.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/LayoutEnums.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/UtilityFunctions.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CGRect.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/CGPoint.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIView.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/Extensions/UIImageView.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/VideoView.swift /Users/sol369/Desktop/curben-oc/Pods/ImageViewer/ImageViewer/Source/BlurView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AudioToolbox.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/sol369/Desktop/curben-oc/Pods/Target\ Support\ Files/ImageViewer/ImageViewer-umbrella.h /Users/sol369/Desktop/curben-oc/DerivedData/curben/Build/Intermediates/Pods.build/Debug-iphonesimulator/ImageViewer.build/unextended-module.modulemap
|
D
|
of or like a feeble old woman
|
D
|
void main() {
import std.stdio;
immutable fileName = "input_loop1.d";
foreach (const line; fileName.File.byLine) {
pragma(msg, typeof(line)); // Prints: const(char[])
// line is a transient slice, so if you need to
// retain it for later use, you have to .dup or .idup it.
line.writeln; // Do something with each line.
}
// Keeping the line terminators:
foreach (const line; fileName.File.byLine(KeepTerminator.yes)) {
// line is a transient slice.
line.writeln;
}
foreach (const string line; fileName.File.lines) {
// line is a transient slice.
line.writeln;
}
}
|
D
|
func void B_AssessQuietSound()
{
PrintDebugNpc(PD_ZS_FRAME,"B_AssessQuietSound");
PrintGlobals(PD_ZS_FRAME);
if(Npc_GetDistToItem(self,item) > PERC_DIST_DIALOG)
{
PrintDebugNpc(PD_ZS_FRAME,"... to far");
return;
};
if(Npc_CanSeeSource(self))
{
PrintDebugNpc(PD_ZS_Check,"...kann Geräuschquelle sehen!");
if(Snd_IsSourceNpc(self))
{
PrintDebugNpc(PD_ZS_Check,"...Geräuschquelle ist SC!");
if(Npc_GetTempAttitude(self,other) == ATT_HOSTILE)
{
PrintDebugNpc(PD_ZS_Check,"...SC ist HOSTILE!");
Npc_ClearAIQueue(self);
AI_StartState(self,ZS_AssessEnemy,0,"");
};
};
}
else
{
PrintDebugNpc(PD_ZS_Check,"...kann NICHT Geräuschquelle sehen!");
if(Snd_IsSourceNpc(self))
{
Npc_ClearAIQueue(self);
AI_StartState(self,ZS_AssessQuietSound,0,"");
};
};
};
|
D
|
PLONG PLAT ED95 KD LOMAGAGE HIMAGAGE SLAT SLONG RESULTNO DP DM ROCKTYPE
273 54 4 0 46 48 -33.5 151.300003 1769 6 6 intrusives, basalt
306.399994 74.1999969 4.30000019 0 52 55 -31.8999996 151.300003 8785 5.9000001 5.9000001 extrusives, basalts
333.200012 64.6999969 6.5999999 0 52 55 -31.8999996 151.300003 8786 10.3000002 11.6999998 extrusives, basalts
314 70 6 132 48 50 -33.2999992 151.199997 1844 9 10 intrusives, basalt
305.600006 70.5 3.5999999 48.5 52 54 -32 151.399994 1892 5.30000019 5.30000019 extrusives
314 66 5.5999999 161 48 50 -33.2999992 151.199997 1969 8.5 9.80000019 intrusives, basalt
278 66 2.0999999 333 48 50 -33.2999992 151.199997 1596 2.5999999 3.29999995 intrusives, basalt
|
D
|
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric;
void main()
{
auto np = readln.split.to!(int[]);
auto N = np[0];
auto P = np[1];
int even, odd;
foreach (a; readln.split.to!(int[])) {
if (a%2 == 0) {
++even;
} else {
++odd;
}
}
long r = 2L^^even;
if (odd == 0) {
writeln(P == 1 ? 0 : r);
} else {
writeln(r * 2^^(odd-1));
}
}
|
D
|
module armstrong_numbers;
bool isArmstrongNumber(int number) {
return true;
}
unittest
{
immutable int allTestsEnabled = 0;
// Zero is an Armstrong number
assert(isArmstrongNumber(0));
static if (allTestsEnabled)
{
// Single digit numbers are Armstrong numbers
assert(isArmstrongNumber(5));
// There are no 2 digit Armstrong numbers
assert(!isArmstrongNumber(10));
// Three digit number that is an Armstrong number
assert(isArmstrongNumber(153));
// Three digit number that is not an Armstrong number
assert(!isArmstrongNumber(100));
// Four digit number that is an Armstrong number
assert(isArmstrongNumber(9474));
// Four digit number that is not an Armstrong number
assert(!isArmstrongNumber(9475));
// Seven digit number that is an Armstrong number
assert(isArmstrongNumber(9926315));
// Seven digit number that is not an Armstrong number
assert(!isArmstrongNumber(9926314));
}
}
|
D
|
/home/zbf/workspace/git/RTAP/target/debug/deps/rand_core-712e7556effce09b.rmeta: /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand_core-0.3.1/src/lib.rs
/home/zbf/workspace/git/RTAP/target/debug/deps/librand_core-712e7556effce09b.rlib: /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand_core-0.3.1/src/lib.rs
/home/zbf/workspace/git/RTAP/target/debug/deps/rand_core-712e7556effce09b.d: /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand_core-0.3.1/src/lib.rs
/home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand_core-0.3.1/src/lib.rs:
|
D
|
/Users/Polina/XcodeApp/diplom_prj/CoreML_test/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/SkipWhile.o : /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Deprecated.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Cancelable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/ObservableType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/ObserverType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Reactive.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/RecursiveLock.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Errors.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Event.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/First.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Rx.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/Platform.Linux.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/Polina/XcodeApp/diplom_prj/CoreML_test/build/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap
/Users/Polina/XcodeApp/diplom_prj/CoreML_test/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/SkipWhile~partial.swiftmodule : /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Deprecated.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Cancelable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/ObservableType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/ObserverType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Reactive.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/RecursiveLock.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Errors.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Event.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/First.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Rx.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/Platform.Linux.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/Polina/XcodeApp/diplom_prj/CoreML_test/build/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap
/Users/Polina/XcodeApp/diplom_prj/CoreML_test/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/SkipWhile~partial.swiftdoc : /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Deprecated.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Cancelable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/ObservableType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/ObserverType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Reactive.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/RecursiveLock.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Errors.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Event.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/First.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Rx.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/Platform/Platform.Linux.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Polina/XcodeApp/diplom_prj/CoreML_test/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/Polina/XcodeApp/diplom_prj/CoreML_test/build/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap
|
D
|
a situation that is ideal for rapid development (especially of something bad
a bed of earth covered with glass and heated by rotting manure to promote the growth of plants
|
D
|
/Users/nikhilsridhar/Desktop/Shopp/Shopp/Build/Intermediates/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/MultipartFormData.o : /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/MultipartFormData.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/Timeline.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/Alamofire.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/Response.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/TaskDelegate.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/SessionDelegate.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/ParameterEncoding.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/Validation.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/ResponseSerialization.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/SessionManager.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/AFError.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/Notifications.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/Result.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/Request.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/ServerTrustPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/nikhilsridhar/Desktop/Shopp/Shopp/Build/Intermediates/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/nikhilsridhar/Desktop/Shopp/Shopp/Build/Intermediates/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/MultipartFormData~partial.swiftmodule : /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/MultipartFormData.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/Timeline.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/Alamofire.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/Response.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/TaskDelegate.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/SessionDelegate.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/ParameterEncoding.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/Validation.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/ResponseSerialization.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/SessionManager.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/AFError.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/Notifications.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/Result.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/Request.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/ServerTrustPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/nikhilsridhar/Desktop/Shopp/Shopp/Build/Intermediates/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/nikhilsridhar/Desktop/Shopp/Shopp/Build/Intermediates/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/MultipartFormData~partial.swiftdoc : /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/MultipartFormData.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/Timeline.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/Alamofire.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/Response.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/TaskDelegate.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/SessionDelegate.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/ParameterEncoding.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/Validation.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/ResponseSerialization.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/SessionManager.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/AFError.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/Notifications.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/Result.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/Request.swift /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Alamofire/Source/ServerTrustPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/nikhilsridhar/Desktop/Shopp/Shopp/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/nikhilsridhar/Desktop/Shopp/Shopp/Build/Intermediates/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
|
D
|
module android.java.org.json.JSONArray_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import1 = android.java.org.json.JSONTokener_d_interface;
import import3 = android.java.org.json.JSONObject_d_interface;
import import0 = android.java.java.util.Collection_d_interface;
import import2 = android.java.org.json.JSONArray_d_interface;
import import4 = android.java.java.lang.Class_d_interface;
final class JSONArray : IJavaObject {
static immutable string[] _d_canCastTo = [
];
@Import this(arsd.jni.Default);
@Import this(import0.Collection);
@Import this(import1.JSONTokener);
@Import this(string);
@Import this(IJavaObject);
@Import int length();
@Import import2.JSONArray put(bool);
@Import import2.JSONArray put(double);
@Import import2.JSONArray put(int);
@Import import2.JSONArray put(long);
@Import import2.JSONArray put(IJavaObject);
@Import import2.JSONArray put(int, bool);
@Import import2.JSONArray put(int, double);
@Import import2.JSONArray put(int, int);
@Import import2.JSONArray put(int, long);
@Import import2.JSONArray put(int, IJavaObject);
@Import bool isNull(int);
@Import IJavaObject get(int);
@Import IJavaObject opt(int);
@Import IJavaObject remove(int);
@Import bool getBoolean(int);
@Import bool optBoolean(int);
@Import bool optBoolean(int, bool);
@Import double getDouble(int);
@Import double optDouble(int);
@Import double optDouble(int, double);
@Import int getInt(int);
@Import int optInt(int);
@Import int optInt(int, int);
@Import long getLong(int);
@Import long optLong(int);
@Import long optLong(int, long);
@Import string getString(int);
@Import string optString(int);
@Import string optString(int, string);
@Import import2.JSONArray getJSONArray(int);
@Import import2.JSONArray optJSONArray(int);
@Import import3.JSONObject getJSONObject(int);
@Import import3.JSONObject optJSONObject(int);
@Import import3.JSONObject toJSONObject(import2.JSONArray);
@Import string join(string);
@Import @JavaName("toString") string toString_();
override string toString() { return arsd.jni.javaObjectToString(this); }
@Import @JavaName("toString") string toString_(int);
@Import bool equals(IJavaObject);
@Import int hashCode();
@Import import4.Class getClass();
@Import void notify();
@Import void notifyAll();
@Import void wait(long);
@Import void wait(long, int);
@Import void wait();
mixin IJavaObjectImplementation!(false);
public static immutable string _javaParameterString = "Lorg/json/JSONArray;";
}
|
D
|
module instauser.basic.tests;
import std.algorithm;
import std.base64;
import std.conv;
import std.digest.crc;
import std.digest.md;
import std.digest.ripemd;
import std.digest.sha;
import std.exception;
import instauser.basic.digest;
import instauser.basic.exceptions;
import instauser.basic.hash;
import instauser.basic.password;
import instauser.basic.salt;
version(InstaUserBasic_Unittest)
{
version(InstaUserBasic_Unittest_Quiet) {} else
version = Loud_Unittest;
version(Loud_Unittest)
import std.stdio;
void unitlog(string str)
{
version(Loud_Unittest)
{
writeln("unittest InstaUser-Basic: ", str);
stdout.flush();
}
}
}
version(InstaUserBasic_Unittest)
unittest
{
// For validity of sanity checks, these sha/md5 and base64 strings
// were NOT generated using Phobos.
auto plainText1 = dupPassword("hello world");
enum md5Hash1 = cast(ubyte[16]) x"5eb63bbbe01eeed093cb22bb8f5acdc3";
enum md5Hash1Base64 = "XrY7u+Ae7tCTyyK7j1rNww==";
enum sha1Hash1 = cast(ubyte[20]) x"2aae6c35c94fcfb415dbe95f408b9ce91ee846ed";
enum sha1Hash1Base64 = "Kq5sNclPz7QV2+lfQIuc6R7oRu0=";
enum sha512Hash1 = cast(ubyte[64]) x"309ecc489c12d6eb4cc40f50c902f2b4d0ed77ee511a7c7a9bcd3ca86d4cd86f989dd35bc5ff499670da34255b45b0cfd830e81f605dcf7dc5542e93ae9cd76f";
enum sha512Hash1Base64 = "MJ7MSJwS1utMxA9QyQLytNDtd+5RGnx6m808qG1M2G+YndNbxf9JlnDaNCVbRbDP2DDoH2Bdz33FVC6TrpzXbw==";
auto plainText2 = dupPassword("some salt");
enum md5Hash2 = cast(ubyte[16]) x"befbc24b5c6a74591c0d8e6397b8a398";
enum md5Hash2Base64 = "vvvCS1xqdFkcDY5jl7ijmA==";
enum sha1Hash2 = cast(ubyte[20]) x"78bc8b0e186b0aa698f12dc27736b492e4dacfc8";
enum sha1Hash2Base64 = "eLyLDhhrCqaY8S3Cdza0kuTaz8g=";
enum sha512Hash2 = cast(ubyte[64]) x"637246608760dc79f00d3ad4fd26c246bb217e10f811cdbf6fe602c3981e98b8cadacadc452808ae393ac46e8a7e967aa99711d7fd7ed6c055264787f8043693";
enum sha512Hash2Base64 = "Y3JGYIdg3HnwDTrU/SbCRrshfhD4Ec2/b+YCw5gemLjK2srcRSgIrjk6xG6KfpZ6qZcR1/1+1sBVJkeH+AQ2kw==";
unitlog("Sanity checking unittest's data");
assert(md5Of(plainText1.data) == md5Hash1);
assert(md5Of(plainText2.data) == md5Hash2);
assert(sha1Of(plainText1.data) == sha1Hash1);
assert(sha1Of(plainText2.data) == sha1Hash2);
assert(sha512Of(plainText1.data) == sha512Hash1);
assert(sha512Of(plainText2.data) == sha512Hash2);
assert(Base64.encode(md5Hash1) == md5Hash1Base64);
assert(Base64.encode(md5Hash2) == md5Hash2Base64);
assert(Base64.encode(sha1Hash1) == sha1Hash1Base64);
assert(Base64.encode(sha1Hash2) == sha1Hash2Base64);
assert(Base64.encode(sha512Hash1) == sha512Hash1Base64);
assert(Base64.encode(sha512Hash2) == sha512Hash2Base64);
unitlog("Testing Hash.toString");
Hash!SHA1 result1;
result1.hash = cast(AnyDigestType!SHA1) sha1Hash1;
result1.salt = cast(Salt) sha1Hash2;
assert( result1.toString() == text("[SHA1]", sha1Hash2Base64, "$", sha1Hash1Base64) );
Hash!MD5 result1_md5;
result1_md5.hash = cast(AnyDigestType!MD5) md5Hash1;
result1_md5.salt = cast(Salt) md5Hash2;
assert( result1_md5.toString() == text("[MD5]", md5Hash2Base64, "$", md5Hash1Base64) );
Hash!SHA512 result1_512;
result1_512.hash = cast(AnyDigestType!SHA512) sha512Hash1;
result1_512.salt = cast(Salt) sha512Hash2;
assert( result1_512.toString() == text("[SHA512]", sha512Hash2Base64, "$", sha512Hash1Base64) );
unitlog("Testing Hash.toString - crypt(3)");
assertThrown!UnknownDigestException( result1.toCryptString() );
assert( result1_md5.toCryptString() == text("$1$", md5Hash2Base64, "$", md5Hash1Base64) );
assert( result1_512.toCryptString() == text("$6$", sha512Hash2Base64, "$", sha512Hash1Base64) );
unitlog("Testing makeHash([digest,] pass, salt [, salter])");
void altSalter(TDigest)(ref TDigest digest, Password password, Salt salt)
{
// Reverse order
digest.put(password.data);
digest.put(cast(immutable(ubyte)[])salt);
}
auto result2 = makeHash!SHA1(plainText1, cast(Salt)sha1Hash2[]);
auto result2AltSalter = makeHash!SHA1(plainText1, cast(Salt)sha1Hash2[], &altSalter!SHA1);
auto result3 = makeHash(new SHA1Digest(), plainText1, cast(Salt)sha1Hash2[]);
auto result3AltSalter = makeHash(new SHA1Digest(), plainText1, cast(Salt)sha1Hash2[], &altSalter!Digest);
assert(result2.salt == result3.salt);
assert(result2.hash == result3.hash);
assert(result2.toString() == result3.toString());
assert(result2.toString() == makeHash!SHA1(plainText1, cast(Salt)sha1Hash2[]).toString());
assert(result2.salt == result1.salt);
assert(result2AltSalter.salt == result3AltSalter.salt);
assert(result2AltSalter.hash == result3AltSalter.hash);
assert(result2AltSalter.toString() == result3AltSalter.toString());
assert(result2AltSalter.toString() == makeHash!SHA1(plainText1, cast(Salt)sha1Hash2[], &altSalter!SHA1).toString());
assert(result2.salt == result2AltSalter.salt);
assert(result2.hash != result2AltSalter.hash);
assert(result2.toString() != result2AltSalter.toString());
auto result2_512 = makeHash!SHA512(plainText1, cast(Salt)sha512Hash2[]);
auto result2_512AltSalter = makeHash!SHA512(plainText1, cast(Salt)sha512Hash2[], &altSalter!SHA512);
auto result3_512 = makeHash(new SHA512Digest(), plainText1, cast(Salt)sha512Hash2[]);
auto result3_512AltSalter = makeHash(new SHA512Digest(), plainText1, cast(Salt)sha512Hash2[], &altSalter!Digest);
assert(result2_512.salt == result3_512.salt);
assert(result2_512.hash == result3_512.hash);
assert(result2_512.toString() == result3_512.toString());
assert(result2_512.toString() == makeHash!SHA512(plainText1, cast(Salt)sha512Hash2[]).toString());
assert(result2_512.salt == result1_512.salt);
assert(result2_512AltSalter.salt == result3_512AltSalter.salt);
assert(result2_512AltSalter.hash == result3_512AltSalter.hash);
assert(result2_512AltSalter.toString() == result3_512AltSalter.toString());
assert(result2_512AltSalter.toString() == makeHash!SHA512(plainText1, cast(Salt)sha512Hash2[], &altSalter!SHA512).toString());
assert(result2_512.salt == result2_512AltSalter.salt);
assert(result2_512.hash != result2_512AltSalter.hash);
assert(result2_512.toString() != result2_512AltSalter.toString());
assertThrown!UnknownDigestException( makeHash(cast(SHA1Digest)null, plainText1, cast(Salt)sha1Hash2[]) );
assertThrown!UnknownDigestException( makeHash(cast(Digest)null, plainText1, cast(Salt)sha1Hash2[]) );
unitlog("Testing makeHash(pass)");
import instauser.basic.random : randomPassword;
auto resultRand1 = makeHash!SHA1(randomPassword());
auto resultRand2 = makeHash!SHA1(randomPassword());
assert(resultRand1.salt != result1.salt);
assert(resultRand1.salt != resultRand2.salt);
assert(resultRand1.hash != resultRand2.hash);
unitlog("Testing parseHash()");
auto result2Parsed = parseInstaUserHash( result2_512.toString() );
assert(result2_512.salt == result2Parsed.salt);
assert(result2_512.hash == result2Parsed.hash);
assert(result2_512.toString() == result2Parsed.toString());
assert(makeHash(result2Parsed.digest, plainText1, result2Parsed.salt) == result2Parsed);
assertThrown!ConvException(parseInstaUserHash( result2_512.toCryptString() ));
assert(parseHash( result2_512.toString() ).salt == parseInstaUserHash( result2_512.toString() ).salt);
assert(parseHash( result2_512.toString() ).hash == parseInstaUserHash( result2_512.toString() ).hash);
assert(parseHash( result2_512.toString() ).toString() == parseInstaUserHash( result2_512.toString() ).toString());
assert(parseHash( result2_512.toString() ).toCryptString() == parseInstaUserHash( result2_512.toString() ).toCryptString());
unitlog("Testing parseHash() - crypt(3)");
auto result2ParsedCrypt = parseCryptHash( result2_512.toCryptString() );
assert(result2_512.salt == result2ParsedCrypt.salt);
assert(result2_512.hash == result2ParsedCrypt.hash);
assert(result2_512.toString() == result2ParsedCrypt.toString());
assert(makeHash(result2ParsedCrypt.digest, plainText1, result2ParsedCrypt.salt) == result2ParsedCrypt);
assertThrown!ConvException(parseCryptHash( result2_512.toString() ));
assert(parseHash( result2_512.toCryptString() ).salt == parseCryptHash( result2_512.toCryptString() ).salt);
assert(parseHash( result2_512.toCryptString() ).hash == parseCryptHash( result2_512.toCryptString() ).hash);
assert(parseHash( result2_512.toCryptString() ).toString() == parseCryptHash( result2_512.toCryptString() ).toString());
assert(parseHash( result2_512.toCryptString() ).toCryptString() == parseCryptHash( result2_512.toCryptString() ).toCryptString());
auto desCryptHash = "sa5JEXtYx/rm6";
assertThrown!UnknownDigestException( parseHash(desCryptHash) );
assert(collectExceptionMsg( parseHash(desCryptHash) ).canFind("DES"));
unitlog("Testing isSameHash");
assert(isSameHash (plainText1, result2));
assert(isSameHash!SHA1(plainText1, result2.hash, result2.salt));
assert(isSameHash (plainText1, result2.hash, result2.salt, new SHA1Digest()));
assert(isSameHash!SHA1(plainText1, result2AltSalter, &altSalter!SHA1));
assert(isSameHash!SHA1(plainText1, result2AltSalter.hash, result2AltSalter.salt, &altSalter!SHA1));
assert(isSameHash (plainText1, result2AltSalter.hash, result2AltSalter.salt, new SHA1Digest(), &altSalter!Digest));
assert(!isSameHash (dupPassword("bad pass"), result2));
assert(!isSameHash!SHA1(dupPassword("bad pass"), result2.hash, result2.salt));
assert(!isSameHash (dupPassword("bad pass"), result2.hash, result2.salt, new SHA1Digest()));
assert(!isSameHash!SHA1(dupPassword("bad pass"), result2AltSalter, &altSalter!SHA1));
assert(!isSameHash!SHA1(dupPassword("bad pass"), result2AltSalter.hash, result2AltSalter.salt, &altSalter!SHA1));
assert(!isSameHash (dupPassword("bad pass"), result2AltSalter.hash, result2AltSalter.salt, new SHA1Digest(), &altSalter!Digest));
Hash!SHA1Digest ooHashSHA1Digest;
ooHashSHA1Digest.salt = result2.salt;
ooHashSHA1Digest.hash = result2.hash;
ooHashSHA1Digest.digest = new SHA1Digest();
assert( isSameHash(plainText1, ooHashSHA1Digest) );
ooHashSHA1Digest.digest = null;
assert( isSameHash(plainText1, ooHashSHA1Digest) );
Hash!Digest ooHashDigest;
ooHashDigest.salt = result2.salt;
ooHashDigest.hash = result2.hash;
ooHashDigest.digest = new SHA1Digest();
assert( isSameHash(plainText1, ooHashDigest) );
ooHashDigest.digest = null;
assertThrown!UnknownDigestException( isSameHash(plainText1, ooHashDigest) );
assert( isSameHash(plainText1, parseHash(result2.toString())) );
auto wrongSalt = result2;
wrongSalt.salt = wrongSalt.salt[4..$-1];
assert(!isSameHash (plainText1, wrongSalt));
assert(!isSameHash!SHA1(plainText1, wrongSalt.hash, wrongSalt.salt));
assert(!isSameHash (plainText1, wrongSalt.hash, wrongSalt.salt, new SHA1Digest()));
Hash!MD5 wrongDigest;
wrongDigest.salt = result2.salt;
wrongDigest.hash = cast(ubyte[16])result2.hash[0..16];
assert(!isSameHash (plainText1, wrongDigest));
assert(!isSameHash!MD5(plainText1, wrongDigest.hash, wrongDigest.salt));
assert(!isSameHash (plainText1, wrongDigest.hash, wrongDigest.salt, new MD5Digest()));
}
|
D
|
PLONG PLAT ED95 KD LOMAGAGE HIMAGAGE SLAT SLONG RESULTNO DP DM WT ROCKTYPE
273 54 4 0 46 48 -33.5 151.300003 1769 6 6 1 intrusives, basalt
292.5 65.5 1.60000002 262.700012 34 39 -38.7999992 143.399994 7097 2.5 2.5 1 sediments, red-brown clays
264.399994 75 15.6000004 0 2 65 -8.80000019 126.699997 1206 10.3999996 18 0.238095238 extrusives, intrusives
317 63 14 16 23 56 -32.5 151 1840 20 20 0.454545455 extrusives, basalts
305 73 17 29 23 56 -42 147 1821 25 29 0.454545455 extrusives, basalts
275.5 71.0999985 3.5 45.5 33 36 -31.7000008 150.199997 1891 4.80000019 4.80000019 1 extrusives
274 66 27.6000004 8.60000038 25 65 -41.2999992 145.899994 1873 39.7999992 46.9000015 0.375 intrusives, granite
321 64 6 27.5 25 65 -35.5999985 137.5 1874 10 11 0.375 sediments
294 75 11 7 25 65 -41.0999985 146.100006 1871 16.2999992 18.8999996 0.375 sediments, sandstone
315 66 10.5 18 25 65 -41 145.5 1872 18.2000008 19.6000004 0.375 extrusives, sediments
|
D
|
/*
TEST_OUTPUT:
---
fail_compilation/ice8100.d(11): Error: class ice8100.Bar!bool.Bar is forward referenced when looking for 'Q'
fail_compilation/ice8100.d(11): Error: template instance ice8100.Foo!(Bar!bool) error instantiating
fail_compilation/ice8100.d(12): instantiated from here: Bar!bool
---
*/
class Foo(T1) { T1.Q r; }
class Bar(T2) : Foo!(Bar!T2) {}
Bar!bool b;
|
D
|
relating to or associated with necromancy
given to or produced by or used in the art of conjuring up the dead
|
D
|
/Users/martyn/Development/AppCoordinatorsLearning/DerivedData/AppCoordinatorsLearning/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Observable.o : /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Deprecated.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/Internal/AnonymousInvocable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Subjects/Variable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Cancelable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Concurrency/SynchronizedSubscribeType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/ObservableType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/ObserverType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Reactive.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/Platform/RecursiveLock.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/ImmediateScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Errors.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Event.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Rx.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/Platform/Platform.Linux.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/martyn/Development/AppCoordinatorsLearning/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/martyn/Development/AppCoordinatorsLearning/DerivedData/AppCoordinatorsLearning/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/objc/ObjectiveC.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/Darwin.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/martyn/Development/AppCoordinatorsLearning/DerivedData/AppCoordinatorsLearning/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Observable~partial.swiftmodule : /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Deprecated.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/Internal/AnonymousInvocable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Subjects/Variable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Cancelable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Concurrency/SynchronizedSubscribeType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/ObservableType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/ObserverType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Reactive.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/Platform/RecursiveLock.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/ImmediateScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Errors.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Event.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Rx.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/Platform/Platform.Linux.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/martyn/Development/AppCoordinatorsLearning/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/martyn/Development/AppCoordinatorsLearning/DerivedData/AppCoordinatorsLearning/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/objc/ObjectiveC.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/Darwin.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/martyn/Development/AppCoordinatorsLearning/DerivedData/AppCoordinatorsLearning/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Observable~partial.swiftdoc : /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Deprecated.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/Internal/AnonymousInvocable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Subjects/Variable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Cancelable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Concurrency/SynchronizedSubscribeType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/ObservableType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/ObserverType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Reactive.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/Platform/RecursiveLock.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/ImmediateScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Errors.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Event.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Rx.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/Platform/Platform.Linux.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/martyn/Development/AppCoordinatorsLearning/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/martyn/Development/AppCoordinatorsLearning/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/martyn/Development/AppCoordinatorsLearning/DerivedData/AppCoordinatorsLearning/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/objc/ObjectiveC.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/usr/include/Darwin.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Users/martyn/Downloads/Xcode9.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
|
D
|
/home/swapnil/MyGitHubRepos/RUST_Learning/guessing_game/target/debug/deps/librand_core-0b8ec73350e6003a.rlib: /home/swapnil/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_core-0.2.2/src/lib.rs
/home/swapnil/MyGitHubRepos/RUST_Learning/guessing_game/target/debug/deps/rand_core-0b8ec73350e6003a.d: /home/swapnil/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_core-0.2.2/src/lib.rs
/home/swapnil/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_core-0.2.2/src/lib.rs:
|
D
|
module UnrealScript.TribesGame.TrDaDShell;
import ScriptClasses;
import UnrealScript.Helpers;
import UnrealScript.Engine.InterpActor;
extern(C++) interface TrDaDShell : InterpActor
{
public extern(D):
private static __gshared ScriptClass mStaticClass;
@property final static ScriptClass StaticClass() { mixin(MGSCC("Class TribesGame.TrDaDShell")); }
private static __gshared TrDaDShell mDefaultProperties;
@property final static TrDaDShell DefaultProperties() { mixin(MGDPC("TrDaDShell", "TrDaDShell TribesGame.Default__TrDaDShell")); }
static struct Functions
{
private static __gshared
{
ScriptFunction mReplicatedEvent;
ScriptFunction mPostBeginPlay;
ScriptFunction mStartRotation;
ScriptFunction mStopRotation;
}
public @property static final
{
ScriptFunction ReplicatedEvent() { mixin(MGF("mReplicatedEvent", "Function TribesGame.TrDaDShell.ReplicatedEvent")); }
ScriptFunction PostBeginPlay() { mixin(MGF("mPostBeginPlay", "Function TribesGame.TrDaDShell.PostBeginPlay")); }
ScriptFunction StartRotation() { mixin(MGF("mStartRotation", "Function TribesGame.TrDaDShell.StartRotation")); }
ScriptFunction StopRotation() { mixin(MGF("mStopRotation", "Function TribesGame.TrDaDShell.StopRotation")); }
}
}
@property final
{
auto ref
{
// ERROR: Unsupported object class 'ComponentProperty' for the property named 'c_ShieldMesh2'!
// ERROR: Unsupported object class 'ComponentProperty' for the property named 'c_ShieldMesh1'!
// ERROR: Unsupported object class 'ComponentProperty' for the property named 'c_ShieldMesh0'!
}
bool r_bShield0Up() { mixin(MGBPC(588, 0x1)); }
bool r_bShield0Up(bool val) { mixin(MSBPC(588, 0x1)); }
bool r_bShield1Up() { mixin(MGBPC(588, 0x2)); }
bool r_bShield1Up(bool val) { mixin(MSBPC(588, 0x2)); }
bool r_bShield2Up() { mixin(MGBPC(588, 0x4)); }
bool r_bShield2Up(bool val) { mixin(MSBPC(588, 0x4)); }
bool r_bIsRotating() { mixin(MGBPC(588, 0x8)); }
bool r_bIsRotating(bool val) { mixin(MSBPC(588, 0x8)); }
}
final:
void ReplicatedEvent(ScriptName VarName)
{
ubyte params[8];
params[] = 0;
*cast(ScriptName*)params.ptr = VarName;
(cast(ScriptObject)this).ProcessEvent(Functions.ReplicatedEvent, params.ptr, cast(void*)0);
}
void PostBeginPlay()
{
(cast(ScriptObject)this).ProcessEvent(Functions.PostBeginPlay, cast(void*)0, cast(void*)0);
}
void StartRotation()
{
(cast(ScriptObject)this).ProcessEvent(Functions.StartRotation, cast(void*)0, cast(void*)0);
}
void StopRotation()
{
(cast(ScriptObject)this).ProcessEvent(Functions.StopRotation, cast(void*)0, cast(void*)0);
}
}
|
D
|
module AODCore.shader;
import std.string;
import derelict.opengl3.gl3;
/**
Allows you to implement GLSL shaders into the rendering of AoD
*/
struct Shader {
GLuint id;
public:
/** postblist */
this ( this ) {
id = id;
}
/** Generates a GL Shader.*/
this ( string vertex_file,
string fragment_file = "",
string tess_ctrl_file = "",
string tess_eval_file = "",
string compute_file = "" ) {
bool is_frag = fragment_file != "",
is_tesc = tess_ctrl_file != "",
is_tese = tess_eval_file != "",
is_comp = compute_file != "";
// --- create program/shaders
id = glCreateProgram();
GLuint vertex_ID = glCreateShader ( GL_VERTEX_SHADER ) ,
fragment_ID = glCreateShader ( GL_FRAGMENT_SHADER ) ,
tess_ctrl_ID = glCreateShader ( GL_TESS_CONTROL_SHADER ) ,
tess_eval_ID = glCreateShader ( GL_TESS_EVALUATION_SHADER ) ,
compute_ID = glCreateShader ( GL_COMPUTE_SHADER ) ;
// --- compile shader source & attach to program
auto Create_Shader = (GLuint ID, GLuint progID, string fname, bool empty) {
if ( !empty ) return;
// compile shader
static import std.file;
char* fil = cast(char*)(std.file.read(fname).ptr);
glShaderSource ( ID, 1, &fil, null );
glCompileShader(ID);
// -- check for error --
GLint compile_status;
glGetShaderiv(ID, GL_COMPILE_STATUS, &compile_status);
if ( compile_status == GL_FALSE ) {
import std.stdio : writeln;
writeln(fname ~ " shader compilation failed");
writeln("--------------------------------------");
GLchar[256] error_message;
glGetShaderInfoLog(ID, 256, null, error_message.ptr);
writeln(error_message);
writeln("--------------------------------------");
return;
}
// attach
glAttachShader(progID, ID);
};
Create_Shader( vertex_ID , id , vertex_file , true );
Create_Shader( fragment_ID , id , fragment_file , is_frag );
Create_Shader( tess_ctrl_ID , id , tess_ctrl_file , is_tesc );
Create_Shader( tess_eval_ID , id , tess_eval_file , is_tese );
Create_Shader( compute_ID , id , compute_file , is_comp );
// --- link program
glLinkProgram ( id );
// --- cleanup
glDeleteShader(vertex_ID ) ;
glDeleteShader(fragment_ID ) ;
glDeleteShader(tess_ctrl_ID ) ;
glDeleteShader(tess_eval_ID ) ;
glDeleteShader(compute_ID ) ;
}
void Bind() {
glUseProgram ( id );
}
static void Unbind() {
glUseProgram ( 0 );
}
/** Returns the program/shader ID */
GLuint R_Shader_ID() {
return id;
}
}
|
D
|
/***********************************************************************\
* d3d10misc.d *
* *
* Windows API header module *
* *
* Placed into public domain *
\***********************************************************************/
module os.win32.directx.d3d10misc;
private import os.win32.windows;
private import os.win32.directx.dxgi;
private import os.win32.directx.d3d10;
extern (C) const GUID IID_ID3D10Blob = {
0x8BA5FB08, 0x5195, 0x40E2, [0xAC, 0x58, 0x0D, 0x98, 0x9C, 0x3A, 0x01, 0x02]
};
interface ID3D10Blob : IUnknown {
extern(Windows) :
LPVOID GetBufferPointer();
SIZE_T GetBufferSize();
}
enum D3D10_DRIVER_TYPE {
D3D10_DRIVER_TYPE_HARDWARE = 0,
D3D10_DRIVER_TYPE_REFERENCE = 1,
D3D10_DRIVER_TYPE_NULL = 2,
D3D10_DRIVER_TYPE_SOFTWARE = 3
}
extern (C) const GUID GUID_DeviceType = {
0xD722FB4D, 0x7A68, 0x437A, [0xB2, 0x0C, 0x58, 0x04, 0xEE, 0x24, 0x94, 0xA6]
};
extern(Windows) {
HRESULT D3D10CreateDevice(IDXGIAdapter pAdapter,
D3D10_DRIVER_TYPE DriverType, HMODULE Software, UINT Flags,
UINT SDKVersion, ID3D10Device* ppDevice);
HRESULT D3D10CreateDeviceAndSwapChain(IDXGIAdapter pAdapter,
D3D10_DRIVER_TYPE DriverType, HMODULE Software, UINT Flags,
UINT SDKVersion, DXGI_SWAP_CHAIN_DESC* pSwapChainDesc,
IDXGISwapChain* ppSwapChain, ID3D10Device* ppDevice);
HRESULT D3D10CreateBlob(SIZE_T NumBytes, ID3D10Blob* ppBuffer);
}
|
D
|
/***********************************\
BINARYMACHINES
\***********************************/
/*--------------------
Enginecalls
--------------------*/
const int CREATE_ALWAYS = 2;
const int OPEN_EXISTING = 3;
const int GENERIC_ALL = 1073741824;
const int GENERIC_READ = -2147483648;
const int FILE_SHARE_READ = 1;
const int FILE_SHARE_WRITE = 2;
const int FILE_SHARE_DELETE = 4;
const int FILE_ATTRIBUTE_NORMAL = 128;
func int WIN_GetLastError() {
const int call = 0;
if(CALL_Begin(call)) {
CALL__stdcall(GetLastError);
call = CALL_End();
};
return CALL_RetValAsInt();
};
func int WIN_CreateFile(
var string lpFileName,
var int dwDesiredAccess,
var int dwShareMode,
var int lpSecurityAttributes,
var int dwCreationDisposition,
var int dwFlagsAndAttributes,
var int hTemplateFile) {
const int call = 0;
var zString zstr; zstr = MEM_PtrToInst(_@s(lpFileName));
if(CALL_Begin(call)) {
CALL_IntParam(_@(hTemplateFile));
CALL_IntParam(_@(dwFlagsAndAttributes));
CALL_IntParam(_@(dwCreationDisposition));
CALL_IntParam(_@(lpSecurityAttributes));
CALL_IntParam(_@(dwShareMode));
CALL_IntParam(_@(dwDesiredAccess));
CALL_PtrParam(_@(zstr.ptr));
CALL__stdcall(CreateFileA);
call = CALL_End();
};
return CALL_RetValAsPtr();
};
func void WIN_WriteFile(
var int hFile,
var int lpBuffer,
var int nNumberOfBytesToWrite,
var int lpNumberOfBytesWritten,
var int lpOverlapped) {
const int call = 0;
if(CALL_Begin(call)) {
CALL_IntParam(_@(lpOverlapped));
CALL_IntParam(_@(lpNumberOfBytesWritten));
CALL_IntParam(_@(nNumberOfBytesToWrite));
CALL_IntParam(_@(lpBuffer));
CALL_IntParam(_@(hFile));
CALL__stdcall(WriteFile);
call = CALL_End();
};
};
func void WIN_ReadFile(
var int hFile,
var int lpBuffer,
var int nNumberOfBytesToRead,
var int lpNumberOfBytesRead,
var int lpOverlapped) {
const int call = 0;
if(CALL_Begin(call)) {
CALL_IntParam(_@(lpOverlapped));
CALL_IntParam(_@(lpNumberOfBytesRead));
CALL_IntParam(_@(nNumberOfBytesToRead));
CALL_IntParam(_@(lpBuffer));
CALL_IntParam(_@(hFile));
CALL__stdcall(ReadFile);
call = CALL_End();
};
};
func void WIN_CloseHandle(
var int hObject) {
const int call = 0;
if(CALL_Begin(call)) {
CALL_IntParam(_@(hObject));
CALL__stdcall(CloseHandle);
call = CALL_End();
};
};
func int WIN_GetFileSize(
var int hFile,
var int lpFileSizeHigh) {
const int call = 0;
if(CALL_Begin(call)) {
CALL_IntParam(_@(lpFileSizeHigh));
CALL_IntParam(_@(hFile));
CALL__stdcall(GetFileSize);
call = CALL_End();
};
return CALL_RetValAsInt();
};
/*--------------------
Konstanten
--------------------*/
const int _BIN_BufferLength = 32768;
/*--------------------
Variablen
--------------------*/
var int _bin_open; // Handle des Streams
var int _bin_mode; // Mode (Write/Read)
var int _bin_crsr; // Cursor
var string _bin_prefix; // Debug-Präfix
const int _bin_ccnt = 0; // Aktueller Content
const int _bin_clen = 0; // Aktuelle Streamlänge
/*--------------------
Hilfsfunktionen
--------------------*/
func void _BIN_Err(var string msg) {
var int r;
r = MEM_MessageBox(msg, _bin_prefix, MB_OK | MB_ICONERROR);
};
func int _BIN_nRunning() {
if(_bin_open) {
_BIN_Err("Der aktuelle Stream muss zuerst geschlossen werden bevor ein weiterer geöffnet werden kann.");
return 0;
};
return 1;
};
func int _BIN_Running() {
if(!_bin_open) {
_BIN_Err("Es ist kein Stream aktiv.");
return 0;
};
return 1;
};
func int _BIN_nMode(var int m) {
if(_bin_mode != m) {
_BIN_Err("Falscher Modus.");
return 0;
};
return 1;
};
func void _BIN_StreamLen(var int nlen) {
nlen += _bin_crsr;
if(nlen >= _bin_clen) {
var int len; len = _bin_clen;
var int pos; pos = MEM_StackPos.position;
if(nlen >= len) {
len = len<<1;
pos = MEM_StackPos.position;
};
_bin_ccnt = MEM_Realloc(_bin_ccnt, _bin_clen, len);
_bin_clen = len;
};
};
func int _BIN_EOF(var int len) {
if(_bin_crsr + len > _bin_clen) {
_BIN_Err("Das Ende des Streams wurde bereits erreicht.");
return 1;
};
return 0;
};
/*============
BinaryWriter
============*/
func int BW_NewFile(var string file) {
_bin_prefix = "BW_NewFile";
if(!_BIN_nRunning()) { return 0; };
_bin_open = WIN_CreateFile(file, GENERIC_ALL, FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, 0, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0);
if(_bin_open==-1) {
_bin_open = 0;
var string err; err = ConcatStrings(file, " - Datei konnte nicht erstellt werden. Fehlercode ");
_BIN_Err(ConcatStrings(err, IntToString(WIN_GetLastError())));
return 0;
};
if(!_bin_ccnt) {
_bin_clen = _BIN_BufferLength;
_bin_ccnt = MEM_Alloc(_bin_clen);
};
_bin_mode = 0;
_bin_crsr = 0;
return 1;
};
func void BW(var int data, var int length) {
_bin_prefix = "BW";
if(!_BIN_Running()||!_BIN_nMode(0)) { return; };
if(length < 1) { length = 1; };
if(length > 4) { length = 4; };
_BIN_StreamLen(4);
MEM_WriteInt(_bin_ccnt + _bin_crsr, data);
_bin_crsr += length;
};
func void BW_Int(var int data) { BW(data, 4); };
func void BW_Byte(var int data) { BW(data, 1); };
func void BW_Char(var string data) { BW(Str_GetCharAt(data, 0), 1); };
func void BW_Text(var string data) {
_bin_prefix = "BW_Text";
if(!_BIN_Running()||!_BIN_nMode(0)) { return; };
var zString zstr; zstr = MEM_PtrToInst(_@s(data));
if(!zstr.len) { return; };
_BIN_StreamLen(zstr.len+4);
MEM_CopyBytes(zstr.ptr, _bin_ccnt + _bin_crsr, zstr.len);
_bin_crsr += zstr.len;
};
func void BW_String(var string data) {
_bin_prefix = "BW_String";
if(!_BIN_Running()||!_BIN_nMode(0)) { return; };
BW(STR_Len(data), 4);
BW_Text(data);
};
func void BW_Bytes(var int dataPtr, var int length) {
_bin_prefix = "BW_Struct";
if(!_BIN_Running()||!_BIN_nMode(0)||!length||!dataPtr) { return; };
_BIN_StreamLen(length);
MEM_CopyBytes(dataPtr, _bin_ccnt + _bin_crsr, length);
_bin_crsr += length;
};
func void BW_NextLine() { BW(2573, 2); };
func void BW_Close() {
_bin_prefix = "BW_Close";
if(!_BIN_Running()||!_BIN_nMode(0)) { return; };
var int ptr;
WIN_WriteFile(_bin_open, _bin_ccnt, _bin_crsr, _@(ptr), 0);
WIN_CloseHandle(_bin_open);
_bin_open = 0;
};
/*============
BinaryReader
============*/
func int BR_OpenFile(var string file) {
_bin_prefix = "BR_OpenFile";
if(!_BIN_nRunning()) { return 0; };
_bin_open = WIN_CreateFile(file, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
if(_bin_open==-1) {
_bin_open = 0;
var string err; err = ConcatStrings(file, " - Datei konnte nicht geöffnet werden. Fehlercode ");
_BIN_Err(ConcatStrings(err, IntToString(WIN_GetLastError())));
return 0;
};
var int len; len = WIN_GetFileSize(_bin_open, 0);
if(len > _bin_clen) {
if (_bin_ccnt) { MEM_Free(_bin_ccnt); };
_bin_ccnt = MEM_Alloc(len);
_bin_clen = len;
};
var int ptr; ptr = MEM_Alloc(4);
WIN_ReadFile(_bin_open, _bin_ccnt, len, ptr, 0);
MEM_Free(ptr);
WIN_CloseHandle(_bin_open);
_bin_mode = 1;
_bin_crsr = 0;
return 1;
};
func int BR(var int length) {
_bin_prefix = "BR";
if(!_BIN_Running()||!_BIN_nMode(1)) { return 0; };
if(length < 1) { length = 1; };
if(length > 4) { length = 4; };
if(_BIN_EOF(length)) { return 0; };
var int b; b = MEM_ReadInt(_bin_ccnt + _bin_crsr);
if(length < 4) {
b = b&((256<<((length-1)<<3))-1);
};
_bin_crsr += length;
return b;
};
func int BR_Int() { return BR(4); };
func int BR_Byte() { return BR(1); };
func string BR_Char() {
var string str; str = "";
var zString zstr; zstr = MEM_PtrToInst(_@s(str));
zstr.ptr = MEM_Alloc(3)+1;
MEM_WriteByte(zstr.ptr, BR(1));
zstr.len = 1;
zstr.res = 1;
return str;
};
func string BR_Text(var int len) {
_bin_prefix = "BR_Text";
if(!_BIN_Running()||!_BIN_nMode(1)) { return ""; };
var string str; str = "";
var zString zstr; zstr = MEM_PtrToInst(_@s(str));
zstr.ptr = MEM_Alloc(len+2)+1;
MEM_CopyBytes(_bin_ccnt + _bin_crsr, zstr.ptr, len);
_bin_crsr += len;
zstr.len = len;
zstr.res = len;
return str;
};
func string BR_TextLine() {
var int s; s = _bin_crsr;
var int p; p = MEM_StackPos.position;
if(BR(2) != 2573) {
_bin_crsr -= 1;
MEM_StackPos.position = p;
};
var int e; e = _bin_crsr;
_bin_crsr = s;
var string str; str = BR_Text(e-s-2);
_bin_crsr = e;
return str;
};
func void BR_NextLine() {
var int p; p = MEM_StackPos.position;
if(BR(2) != 2573) {
_bin_crsr -= 1;
MEM_StackPos.position = p;
};
};
func string BR_String() {
return BR_Text(BR_Int());
};
func int BR_Bytes(var int length) {
var int ptr;
if(length <= 4) {
ptr = MEM_Alloc(4);
MEM_WriteInt(ptr, BR(length));
return ptr;
};
_bin_prefix = "BR_Bytes";
if(!_BIN_Running()||!_BIN_nMode(1)) { return 0; };
if(_bin_crsr + length > _bin_clen) {
_bin_Err("Die angegebene Struktur ist in dieser Datei nicht vollständig enthalten.");
return 0;
};
ptr = MEM_Alloc(length);
MEM_CopyBytes(_bin_ccnt + _bin_crsr, ptr, length);
_bin_crsr += length;
return ptr;
};
func void BR_Close() {
_bin_prefix = "BR_Close";
if(!_BIN_Running()||!_BIN_nMode(1)) { return; };
_bin_open = 0;
};
|
D
|
/*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
* Port to the D programming language:
* Frank Benoit <benoit@tionex.de>
*******************************************************************************/
module dwt.ole.win32.OleListener;
import dwt.ole.win32.OleEvent;
/**
* Implementers of <code>OleListener</code> provide a simple
* <code>handleEvent()</code> method that is used internally
* by DWT to dispatch events.
* <p>
* After creating an instance of a class that implements this
* interface it can be added to an <code>OleControlSite</code>
* using the <code>addEventListener()</code> method and removed
* using the <code>removeEventListener()</code> method. When the
* specified event occurs, <code>handleEvent()</code> will be
* sent to the instance.
* </p>
*
* @see OleControlSite
*/
public interface OleListener {
/**
* Sent when an event that the receiver has registered for occurs.
*
* @param event the event which occurred
*/
public void handleEvent(OleEvent event);
}
|
D
|
/home/liyun/clink/zkp_test/ckb-zkp/target/debug/deps/digest-8a2edef9b5418eaf.rmeta: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/lib.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/digest.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/dyn_digest.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/errors.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/fixed.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/variable.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/xof.rs
/home/liyun/clink/zkp_test/ckb-zkp/target/debug/deps/libdigest-8a2edef9b5418eaf.rlib: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/lib.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/digest.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/dyn_digest.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/errors.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/fixed.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/variable.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/xof.rs
/home/liyun/clink/zkp_test/ckb-zkp/target/debug/deps/digest-8a2edef9b5418eaf.d: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/lib.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/digest.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/dyn_digest.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/errors.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/fixed.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/variable.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/xof.rs
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/lib.rs:
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/digest.rs:
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/dyn_digest.rs:
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/errors.rs:
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/fixed.rs:
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/variable.rs:
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/digest-0.9.0/src/xof.rs:
|
D
|
module snippet152;
import dwt.DWT;
import dwt.widgets.Display;
import dwt.widgets.Shell;
import dwt.widgets.Event;
import dwt.widgets.Listener;
import dwt.widgets.Label;
import dwt.widgets.Menu;
import dwt.widgets.MenuItem;
import dwt.layout.FormLayout;
import dwt.layout.FormData;
import dwt.layout.FormAttachment;
import dwt.dwthelper.utils;
void main() {
Display display = new Display();
Shell shell = new Shell(display);
FormLayout layout = new FormLayout();
shell.setLayout(layout);
Label label = new Label(shell, DWT.BORDER);
Listener armListener = new class Listener {
public void handleEvent(Event event) {
MenuItem item = cast(MenuItem) event.widget;
label.setText(item.getText());
label.update();
}
};
Listener showListener = new class Listener {
public void handleEvent(Event event) {
Menu menu = cast(Menu) event.widget;
MenuItem item = menu.getParentItem();
if (item !is null) {
label.setText(item.getText());
label.update();
}
}
};
Listener hideListener = new class Listener {
public void handleEvent(Event event) {
label.setText("");
label.update();
}
};
FormData labelData = new FormData();
labelData.left = new FormAttachment(0);
labelData.right = new FormAttachment(100);
labelData.bottom = new FormAttachment(100);
label.setLayoutData(labelData);
Menu menuBar = new Menu(shell, DWT.BAR);
shell.setMenuBar(menuBar);
MenuItem fileItem = new MenuItem(menuBar, DWT.CASCADE);
fileItem.setText("File");
fileItem.addListener(DWT.Arm, armListener);
MenuItem editItem = new MenuItem(menuBar, DWT.CASCADE);
editItem.setText("Edit");
editItem.addListener(DWT.Arm, armListener);
Menu fileMenu = new Menu(shell, DWT.DROP_DOWN);
fileMenu.addListener(DWT.Hide, hideListener);
fileMenu.addListener(DWT.Show, showListener);
fileItem.setMenu(fileMenu);
String[] fileStrings = [ "New", "Close", "Exit" ];
for (int i = 0; i < fileStrings.length; i++) {
MenuItem item = new MenuItem(fileMenu, DWT.PUSH);
item.setText(fileStrings[i]);
item.addListener(DWT.Arm, armListener);
}
Menu editMenu = new Menu(shell, DWT.DROP_DOWN);
editMenu.addListener(DWT.Hide, hideListener);
editMenu.addListener(DWT.Show, showListener);
String[] editStrings = [ "Cut", "Copy", "Paste" ];
editItem.setMenu(editMenu);
for (int i = 0; i < editStrings.length; i++) {
MenuItem item = new MenuItem(editMenu, DWT.PUSH);
item.setText(editStrings[i]);
item.addListener(DWT.Arm, armListener);
}
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) display.sleep();
}
display.dispose();
}
|
D
|
/Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/SQLite.build/Query/SQLiteQuery+Expression+Compare.swift.o : /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Expression+0.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Row/SQLiteData.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Utilities/Deprecated.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Database/SQLiteStorage.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+CreateTable.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+DropTable.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+AlterTable.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Row/SQLiteDataConvertible.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+TableName.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+TypeName.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Row/SQLiteDataType.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Expression+Compare.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Database/SQLiteDatabase.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Update.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Delete.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+With.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Expression+Literal.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Join.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Column.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+IndexedColumn.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Row/SQLiteColumn.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Database/SQLiteConnection.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Direction.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+ColumnDefinition.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+ConflictResolution.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+DropTableBuilder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+AlterTableBuilder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+UpdateBuilder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+CreateBuilder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+DeleteBuilder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+SelectBuilder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+InsertBuilder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Codable/SQLiteDataDecoder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Codable/SQLiteRowDecoder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Codable/SQLiteQueryExpressionEncoder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Codable/SQLiteQueryEncoder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuerySerializer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Utilities/SQLiteError.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Expression+UnaryOperator.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Expression+BinaryOperator.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+SetValues.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Utilities/Exports.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Select.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Database/SQLiteStatement.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+TableConstraint.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+ColumnConstraint.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Insert.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+ForeignKey.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+TableOrSubquery.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/SQLite.build/SQLiteQuery+Expression+Compare~partial.swiftmodule : /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Expression+0.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Row/SQLiteData.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Utilities/Deprecated.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Database/SQLiteStorage.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+CreateTable.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+DropTable.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+AlterTable.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Row/SQLiteDataConvertible.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+TableName.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+TypeName.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Row/SQLiteDataType.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Expression+Compare.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Database/SQLiteDatabase.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Update.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Delete.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+With.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Expression+Literal.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Join.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Column.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+IndexedColumn.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Row/SQLiteColumn.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Database/SQLiteConnection.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Direction.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+ColumnDefinition.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+ConflictResolution.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+DropTableBuilder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+AlterTableBuilder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+UpdateBuilder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+CreateBuilder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+DeleteBuilder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+SelectBuilder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+InsertBuilder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Codable/SQLiteDataDecoder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Codable/SQLiteRowDecoder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Codable/SQLiteQueryExpressionEncoder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Codable/SQLiteQueryEncoder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuerySerializer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Utilities/SQLiteError.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Expression+UnaryOperator.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Expression+BinaryOperator.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+SetValues.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Utilities/Exports.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Select.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Database/SQLiteStatement.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+TableConstraint.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+ColumnConstraint.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Insert.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+ForeignKey.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+TableOrSubquery.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/SQLite.build/SQLiteQuery+Expression+Compare~partial.swiftdoc : /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Expression+0.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Row/SQLiteData.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Utilities/Deprecated.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Database/SQLiteStorage.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+CreateTable.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+DropTable.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+AlterTable.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Row/SQLiteDataConvertible.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+TableName.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+TypeName.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Row/SQLiteDataType.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Expression+Compare.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Database/SQLiteDatabase.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Update.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Delete.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+With.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Expression+Literal.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Join.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Column.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+IndexedColumn.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Row/SQLiteColumn.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Database/SQLiteConnection.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Direction.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+ColumnDefinition.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+ConflictResolution.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+DropTableBuilder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+AlterTableBuilder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+UpdateBuilder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+CreateBuilder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+DeleteBuilder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+SelectBuilder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+InsertBuilder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Codable/SQLiteDataDecoder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Codable/SQLiteRowDecoder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Codable/SQLiteQueryExpressionEncoder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Codable/SQLiteQueryEncoder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuerySerializer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Utilities/SQLiteError.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Expression+UnaryOperator.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Expression+BinaryOperator.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+SetValues.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Utilities/Exports.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Select.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Database/SQLiteStatement.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+TableConstraint.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+ColumnConstraint.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+Insert.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+ForeignKey.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/sqlite.git--8232814251736334455/Sources/SQLite/Query/SQLiteQuery+TableOrSubquery.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
|
D
|
/**
* Miscellaneous declarations, including typedef, alias, variable declarations including the
* implicit this declaration, type tuples, ClassInfo, ModuleInfo and various TypeInfos.
*
* Copyright: Copyright (C) 1999-2023 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 https://www.digitalmars.com, Walter Bright)
* License: $(LINK2 https://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/declaration.d, _declaration.d)
* Documentation: https://dlang.org/phobos/dmd_declaration.html
* Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/declaration.d
*/
module dmd.declaration;
import core.stdc.stdio;
import dmd.aggregate;
import dmd.arraytypes;
import dmd.astenums;
import dmd.attrib;
import dmd.ctorflow;
import dmd.dclass;
import dmd.delegatize;
import dmd.dscope;
import dmd.dstruct;
import dmd.dsymbol;
import dmd.dsymbolsem;
import dmd.dtemplate;
import dmd.errors;
import dmd.expression;
import dmd.func;
import dmd.globals;
import dmd.gluelayer;
import dmd.id;
import dmd.identifier;
import dmd.init;
import dmd.initsem;
import dmd.intrange;
import dmd.location;
import dmd.mtype;
import dmd.common.outbuffer;
import dmd.root.rootobject;
import dmd.target;
import dmd.tokens;
import dmd.typesem;
import dmd.visitor;
/************************************
* Check to see the aggregate type is nested and its context pointer is
* accessible from the current scope.
* Returns true if error occurs.
*/
bool checkFrameAccess(Loc loc, Scope* sc, AggregateDeclaration ad, size_t iStart = 0)
{
Dsymbol sparent = ad.toParentLocal();
Dsymbol sparent2 = ad.toParent2();
Dsymbol s = sc.func;
if (ad.isNested() && s)
{
//printf("ad = %p %s [%s], parent:%p\n", ad, ad.toChars(), ad.loc.toChars(), ad.parent);
//printf("sparent = %p %s [%s], parent: %s\n", sparent, sparent.toChars(), sparent.loc.toChars(), sparent.parent,toChars());
//printf("sparent2 = %p %s [%s], parent: %s\n", sparent2, sparent2.toChars(), sparent2.loc.toChars(), sparent2.parent,toChars());
if (!ensureStaticLinkTo(s, sparent) || sparent != sparent2 && !ensureStaticLinkTo(s, sparent2))
{
error(loc, "cannot access frame pointer of `%s`", ad.toPrettyChars());
return true;
}
}
bool result = false;
for (size_t i = iStart; i < ad.fields.length; i++)
{
VarDeclaration vd = ad.fields[i];
Type tb = vd.type.baseElemOf();
if (tb.ty == Tstruct)
{
result |= checkFrameAccess(loc, sc, (cast(TypeStruct)tb).sym);
}
}
return result;
}
/***********************************************
* Mark variable v as modified if it is inside a constructor that var
* is a field in.
* Also used to allow immutable globals to be initialized inside a static constructor.
* Returns:
* true if it's an initialization of v
*/
bool modifyFieldVar(Loc loc, Scope* sc, VarDeclaration var, Expression e1)
{
//printf("modifyFieldVar(var = %s)\n", var.toChars());
Dsymbol s = sc.func;
while (1)
{
FuncDeclaration fd = null;
if (s)
fd = s.isFuncDeclaration();
if (fd &&
((fd.isCtorDeclaration() && var.isField()) ||
((fd.isStaticCtorDeclaration() || fd.isCrtCtor) && !var.isField())) &&
fd.toParentDecl() == var.toParent2() &&
(!e1 || e1.op == EXP.this_))
{
bool result = true;
var.ctorinit = true;
//printf("setting ctorinit\n");
if (var.isField() && sc.ctorflow.fieldinit.length && !sc.intypeof)
{
assert(e1);
auto mustInit = ((var.storage_class & STC.nodefaultctor) != 0 ||
var.type.needsNested());
const dim = sc.ctorflow.fieldinit.length;
auto ad = fd.isMemberDecl();
assert(ad);
size_t i;
for (i = 0; i < dim; i++) // same as findFieldIndexByName in ctfeexp.c ?
{
if (ad.fields[i] == var)
break;
}
assert(i < dim);
auto fieldInit = &sc.ctorflow.fieldinit[i];
const fi = fieldInit.csx;
if (fi & CSX.this_ctor)
{
if (var.type.isMutable() && e1.type.isMutable())
result = false;
else
{
const(char)* modStr = !var.type.isMutable() ? MODtoChars(var.type.mod) : MODtoChars(e1.type.mod);
.error(loc, "%s field `%s` initialized multiple times", modStr, var.toChars());
.errorSupplemental(fieldInit.loc, "Previous initialization is here.");
}
}
else if (sc.inLoop || (fi & CSX.label))
{
if (!mustInit && var.type.isMutable() && e1.type.isMutable())
result = false;
else
{
const(char)* modStr = !var.type.isMutable() ? MODtoChars(var.type.mod) : MODtoChars(e1.type.mod);
.error(loc, "%s field `%s` initialization is not allowed in loops or after labels", modStr, var.toChars());
}
}
fieldInit.csx |= CSX.this_ctor;
fieldInit.loc = e1.loc;
if (var.overlapped) // https://issues.dlang.org/show_bug.cgi?id=15258
{
foreach (j, v; ad.fields)
{
if (v is var || !var.isOverlappedWith(v))
continue;
v.ctorinit = true;
sc.ctorflow.fieldinit[j].csx = CSX.this_ctor;
}
}
}
else if (fd != sc.func)
{
if (var.type.isMutable())
result = false;
else if (sc.func.fes)
{
const(char)* p = var.isField() ? "field" : var.kind();
.error(loc, "%s %s `%s` initialization is not allowed in foreach loop",
MODtoChars(var.type.mod), p, var.toChars());
}
else
{
const(char)* p = var.isField() ? "field" : var.kind();
.error(loc, "%s %s `%s` initialization is not allowed in nested function `%s`",
MODtoChars(var.type.mod), p, var.toChars(), sc.func.toChars());
}
}
else if (fd.isStaticCtorDeclaration() && !fd.isSharedStaticCtorDeclaration() &&
var.type.isImmutable())
{
.error(loc, "%s %s `%s` initialization is not allowed in `static this`",
MODtoChars(var.type.mod), var.kind(), var.toChars());
errorSupplemental(loc, "Use `shared static this` instead.");
}
return result;
}
else
{
if (s)
{
s = s.toParentP(var.toParent2());
continue;
}
}
break;
}
return false;
}
/******************************************
*/
extern (C++) void ObjectNotFound(Identifier id)
{
error(Loc.initial, "`%s` not found. object.d may be incorrectly installed or corrupt.", id.toChars());
fatal();
}
/* Accumulator for successive matches.
*/
struct MatchAccumulator
{
int count; // number of matches found so far
MATCH last = MATCH.nomatch; // match level of lastf
FuncDeclaration lastf; // last matching function we found
FuncDeclaration nextf; // if ambiguous match, this is the "other" function
}
/***********************************************************
*/
extern (C++) abstract class Declaration : Dsymbol
{
Type type;
Type originalType; // before semantic analysis
StorageClass storage_class = STC.undefined_;
Visibility visibility;
LINK _linkage = LINK.default_; // may be `LINK.system`; use `resolvedLinkage()` to resolve it
short inuse; // used to detect cycles
ubyte adFlags; // control re-assignment of AliasDeclaration (put here for packing reasons)
enum wasRead = 1; // set if AliasDeclaration was read
enum ignoreRead = 2; // ignore any reads of AliasDeclaration
enum nounderscore = 4; // don't prepend _ to mangled name
Symbol* isym; // import version of csym
// overridden symbol with pragma(mangle, "...")
const(char)[] mangleOverride;
final extern (D) this(Identifier ident)
{
super(ident);
visibility = Visibility(Visibility.Kind.undefined);
}
final extern (D) this(const ref Loc loc, Identifier ident)
{
super(loc, ident);
visibility = Visibility(Visibility.Kind.undefined);
}
override const(char)* kind() const
{
return "declaration";
}
override final uinteger_t size(const ref Loc loc)
{
assert(type);
const sz = type.size();
if (sz == SIZE_INVALID)
errors = true;
return sz;
}
/**
* Issue an error if an attempt to call a disabled method is made
*
* If the declaration is disabled but inside a disabled function,
* returns `true` but do not issue an error message.
*
* Params:
* loc = Location information of the call
* sc = Scope in which the call occurs
* isAliasedDeclaration = if `true` searches overload set
*
* Returns:
* `true` if this `Declaration` is `@disable`d, `false` otherwise.
*/
extern (D) final bool checkDisabled(Loc loc, Scope* sc, bool isAliasedDeclaration = false)
{
if (!(storage_class & STC.disable))
return false;
if (sc.func && sc.func.storage_class & STC.disable)
return true;
if (auto p = toParent())
{
if (auto postblit = isPostBlitDeclaration())
{
/* https://issues.dlang.org/show_bug.cgi?id=21885
*
* If the generated postblit is disabled, it
* means that one of the fields has a disabled
* postblit. Print the first field that has
* a disabled postblit.
*/
if (postblit.isGenerated())
{
auto sd = p.isStructDeclaration();
assert(sd);
for (size_t i = 0; i < sd.fields.length; i++)
{
auto structField = sd.fields[i];
if (structField.overlapped)
continue;
Type tv = structField.type.baseElemOf();
if (tv.ty != Tstruct)
continue;
auto sdv = (cast(TypeStruct)tv).sym;
if (!sdv.postblit)
continue;
if (sdv.postblit.isDisabled())
{
p.error(loc, "is not copyable because field `%s` is not copyable", structField.toChars());
return true;
}
}
}
p.error(loc, "is not copyable because it has a disabled postblit");
return true;
}
}
// if the function is @disabled, maybe there
// is an overload in the overload set that isn't
if (isAliasedDeclaration)
{
FuncDeclaration fd = isFuncDeclaration();
if (fd)
{
for (FuncDeclaration ovl = fd; ovl; ovl = cast(FuncDeclaration)ovl.overnext)
if (!(ovl.storage_class & STC.disable))
return false;
}
}
if (auto ctor = isCtorDeclaration())
{
if (ctor.isCpCtor && ctor.isGenerated())
{
.error(loc, "generating an `inout` copy constructor for `struct %s` failed, therefore instances of it are uncopyable", parent.toPrettyChars());
return true;
}
}
error(loc, "cannot be used because it is annotated with `@disable`");
return true;
}
/*************************************
* Check to see if declaration can be modified in this context (sc).
* Issue error if not.
* Params:
* loc = location for error messages
* e1 = `null` or `this` expression when this declaration is a field
* sc = context
* flag = if the first bit is set it means do not issue error message for
* invalid modification; if the second bit is set, it means that
this declaration is a field and a subfield of it is modified.
* Returns:
* Modifiable.yes or Modifiable.initialization
*/
extern (D) final Modifiable checkModify(Loc loc, Scope* sc, Expression e1, ModifyFlags flag)
{
VarDeclaration v = isVarDeclaration();
if (v && v.canassign)
return Modifiable.initialization;
if (isParameter() || isResult())
{
for (Scope* scx = sc; scx; scx = scx.enclosing)
{
if (scx.func == parent && (scx.flags & SCOPE.contract))
{
const(char)* s = isParameter() && parent.ident != Id.ensure ? "parameter" : "result";
if (!(flag & ModifyFlags.noError))
error(loc, "cannot modify %s `%s` in contract", s, toChars());
return Modifiable.initialization; // do not report type related errors
}
}
}
if (e1 && e1.op == EXP.this_ && isField())
{
VarDeclaration vthis = e1.isThisExp().var;
for (Scope* scx = sc; scx; scx = scx.enclosing)
{
if (scx.func == vthis.parent && (scx.flags & SCOPE.contract))
{
if (!(flag & ModifyFlags.noError))
error(loc, "cannot modify parameter `this` in contract");
return Modifiable.initialization; // do not report type related errors
}
}
}
if (v && (v.isCtorinit() || isField()))
{
// It's only modifiable if inside the right constructor
if ((storage_class & (STC.foreach_ | STC.ref_)) == (STC.foreach_ | STC.ref_))
return Modifiable.initialization;
if (flag & ModifyFlags.fieldAssign)
return Modifiable.yes;
return modifyFieldVar(loc, sc, v, e1) ? Modifiable.initialization : Modifiable.yes;
}
return Modifiable.yes;
}
override final Dsymbol search(const ref Loc loc, Identifier ident, int flags = SearchLocalsOnly)
{
Dsymbol s = Dsymbol.search(loc, ident, flags);
if (!s && type)
{
s = type.toDsymbol(_scope);
if (s)
s = s.search(loc, ident, flags);
}
return s;
}
final bool isStatic() const pure nothrow @nogc @safe
{
return (storage_class & STC.static_) != 0;
}
/// Returns the linkage, resolving the target-specific `System` one.
final LINK resolvedLinkage() const
{
return _linkage == LINK.system ? target.systemLinkage() : _linkage;
}
bool isDelete()
{
return false;
}
bool isDataseg()
{
return false;
}
bool isThreadlocal()
{
return false;
}
bool isCodeseg() const pure nothrow @nogc @safe
{
return false;
}
final bool isFinal() const pure nothrow @nogc @safe
{
return (storage_class & STC.final_) != 0;
}
bool isAbstract()
{
return (storage_class & STC.abstract_) != 0;
}
final bool isConst() const pure nothrow @nogc @safe
{
return (storage_class & STC.const_) != 0;
}
final bool isImmutable() const pure nothrow @nogc @safe
{
return (storage_class & STC.immutable_) != 0;
}
final bool isWild() const pure nothrow @nogc @safe
{
return (storage_class & STC.wild) != 0;
}
final bool isAuto() const pure nothrow @nogc @safe
{
return (storage_class & STC.auto_) != 0;
}
final bool isScope() const pure nothrow @nogc @safe
{
return (storage_class & STC.scope_) != 0;
}
final bool isReturn() const pure nothrow @nogc @safe
{
return (storage_class & STC.return_) != 0;
}
final bool isSynchronized() const pure nothrow @nogc @safe
{
return (storage_class & STC.synchronized_) != 0;
}
final bool isParameter() const pure nothrow @nogc @safe
{
return (storage_class & STC.parameter) != 0;
}
override final bool isDeprecated() const pure nothrow @nogc @safe
{
return (storage_class & STC.deprecated_) != 0;
}
final bool isDisabled() const pure nothrow @nogc @safe
{
return (storage_class & STC.disable) != 0;
}
final bool isOverride() const pure nothrow @nogc @safe
{
return (storage_class & STC.override_) != 0;
}
final bool isResult() const pure nothrow @nogc @safe
{
return (storage_class & STC.result) != 0;
}
final bool isField() const pure nothrow @nogc @safe
{
return (storage_class & STC.field) != 0;
}
final bool isIn() const pure nothrow @nogc @safe
{
return (storage_class & STC.in_) != 0;
}
final bool isOut() const pure nothrow @nogc @safe
{
return (storage_class & STC.out_) != 0;
}
final bool isRef() const pure nothrow @nogc @safe
{
return (storage_class & STC.ref_) != 0;
}
/// Returns: Whether the variable is a reference, annotated with `out` or `ref`
final bool isReference() const pure nothrow @nogc @safe
{
return (storage_class & (STC.ref_ | STC.out_)) != 0;
}
final bool isFuture() const pure nothrow @nogc @safe
{
return (storage_class & STC.future) != 0;
}
final extern(D) bool isSystem() const pure nothrow @nogc @safe
{
return (storage_class & STC.system) != 0;
}
override final Visibility visible() pure nothrow @nogc @safe
{
return visibility;
}
override final inout(Declaration) isDeclaration() inout pure nothrow @nogc @safe
{
return this;
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TupleDeclaration : Declaration
{
Objects* objects;
TypeTuple tupletype; // !=null if this is a type tuple
bool isexp; // true: expression tuple
bool building; // it's growing in AliasAssign semantic
extern (D) this(const ref Loc loc, Identifier ident, Objects* objects)
{
super(loc, ident);
this.objects = objects;
}
override TupleDeclaration syntaxCopy(Dsymbol s)
{
assert(0);
}
override const(char)* kind() const
{
return "tuple";
}
override Type getType()
{
/* If this tuple represents a type, return that type
*/
//printf("TupleDeclaration::getType() %s\n", toChars());
if (isexp || building)
return null;
if (!tupletype)
{
/* It's only a type tuple if all the Object's are types
*/
for (size_t i = 0; i < objects.length; i++)
{
RootObject o = (*objects)[i];
if (o.dyncast() != DYNCAST.type)
{
//printf("\tnot[%d], %p, %d\n", i, o, o.dyncast());
return null;
}
}
/* We know it's a type tuple, so build the TypeTuple
*/
Types* types = cast(Types*)objects;
auto args = new Parameters(objects.length);
OutBuffer buf;
int hasdeco = 1;
for (size_t i = 0; i < types.length; i++)
{
Type t = (*types)[i];
//printf("type = %s\n", t.toChars());
version (none)
{
buf.printf("_%s_%d", ident.toChars(), i);
const len = buf.offset;
const name = buf.extractSlice().ptr;
auto id = Identifier.idPool(name, len);
auto arg = new Parameter(STC.in_, t, id, null);
}
else
{
auto arg = new Parameter(0, t, null, null, null);
}
(*args)[i] = arg;
if (!t.deco)
hasdeco = 0;
}
tupletype = new TypeTuple(args);
if (hasdeco)
return tupletype.typeSemantic(Loc.initial, null);
}
return tupletype;
}
override Dsymbol toAlias2()
{
//printf("TupleDeclaration::toAlias2() '%s' objects = %s\n", toChars(), objects.toChars());
for (size_t i = 0; i < objects.length; i++)
{
RootObject o = (*objects)[i];
if (Dsymbol s = isDsymbol(o))
{
s = s.toAlias2();
(*objects)[i] = s;
}
}
return this;
}
override bool needThis()
{
//printf("TupleDeclaration::needThis(%s)\n", toChars());
return isexp ? foreachVar((s) { return s.needThis(); }) != 0 : false;
}
/***********************************************************
* Calls dg(Dsymbol) for each Dsymbol, which should be a VarDeclaration
* inside VarExp (isexp == true).
* Params:
* dg = delegate to call for each Dsymbol
*/
extern (D) void foreachVar(scope void delegate(Dsymbol) dg)
{
assert(isexp);
foreach (o; *objects)
{
if (auto e = o.isExpression())
if (auto ve = e.isVarExp())
dg(ve.var);
}
}
/***********************************************************
* Calls dg(Dsymbol) for each Dsymbol, which should be a VarDeclaration
* inside VarExp (isexp == true).
* If dg returns !=0, stops and returns that value else returns 0.
* Params:
* dg = delegate to call for each Dsymbol
* Returns:
* last value returned by dg()
*/
extern (D) int foreachVar(scope int delegate(Dsymbol) dg)
{
assert(isexp);
foreach (o; *objects)
{
if (auto e = o.isExpression())
if (auto ve = e.isVarExp())
if(auto ret = dg(ve.var))
return ret;
}
return 0;
}
override inout(TupleDeclaration) isTupleDeclaration() inout
{
return this;
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
* https://dlang.org/spec/declaration.html#AliasDeclaration
*/
extern (C++) final class AliasDeclaration : Declaration
{
Dsymbol aliassym; // alias ident = aliassym;
Dsymbol overnext; // next in overload list
Dsymbol _import; // !=null if unresolved internal alias for selective import
extern (D) this(const ref Loc loc, Identifier ident, Type type)
{
super(loc, ident);
//printf("AliasDeclaration(id = '%s', type = %p)\n", ident.toChars(), type);
//printf("type = '%s'\n", type.toChars());
this.type = type;
assert(type);
}
extern (D) this(const ref Loc loc, Identifier ident, Dsymbol s)
{
super(loc, ident);
//printf("AliasDeclaration(id = '%s', s = %p)\n", ident.toChars(), s);
assert(s != this);
this.aliassym = s;
assert(s);
}
static AliasDeclaration create(const ref Loc loc, Identifier id, Type type)
{
return new AliasDeclaration(loc, id, type);
}
override AliasDeclaration syntaxCopy(Dsymbol s)
{
//printf("AliasDeclaration::syntaxCopy()\n");
assert(!s);
AliasDeclaration sa = type ? new AliasDeclaration(loc, ident, type.syntaxCopy()) : new AliasDeclaration(loc, ident, aliassym.syntaxCopy(null));
sa.comment = comment;
sa.storage_class = storage_class;
return sa;
}
override bool overloadInsert(Dsymbol s)
{
//printf("[%s] AliasDeclaration::overloadInsert('%s') s = %s %s @ [%s]\n",
// loc.toChars(), toChars(), s.kind(), s.toChars(), s.loc.toChars());
/** Aliases aren't overloadable themselves, but if their Aliasee is
* overloadable they are converted to an overloadable Alias (either
* FuncAliasDeclaration or OverDeclaration).
*
* This is done by moving the Aliasee into such an overloadable alias
* which is then used to replace the existing Aliasee. The original
* Alias (_this_) remains a useless shell.
*
* This is a horrible mess. It was probably done to avoid replacing
* existing AST nodes and references, but it needs a major
* simplification b/c it's too complex to maintain.
*
* A simpler approach might be to merge any colliding symbols into a
* simple Overload class (an array) and then later have that resolve
* all collisions.
*/
if (semanticRun >= PASS.semanticdone)
{
/* Semantic analysis is already finished, and the aliased entity
* is not overloadable.
*/
if (type)
{
/*
If type has been resolved already we could
still be inserting an alias from an import.
If we are handling an alias then pretend
it was inserting and return true, if not then
false since we didn't even pretend to insert something.
*/
return this._import && this.equals(s);
}
/* When s is added in member scope by static if, mixin("code") or others,
* aliassym is determined already. See the case in: test/compilable/test61.d
*/
auto sa = aliassym.toAlias();
if (auto td = s.toAlias().isTemplateDeclaration())
s = td.funcroot ? td.funcroot : td;
if (auto fd = sa.isFuncDeclaration())
{
auto fa = new FuncAliasDeclaration(ident, fd);
fa.visibility = visibility;
fa.parent = parent;
aliassym = fa;
return aliassym.overloadInsert(s);
}
if (auto td = sa.isTemplateDeclaration())
{
auto od = new OverDeclaration(ident, td.funcroot ? td.funcroot : td);
od.visibility = visibility;
od.parent = parent;
aliassym = od;
return aliassym.overloadInsert(s);
}
if (auto od = sa.isOverDeclaration())
{
if (sa.ident != ident || sa.parent != parent)
{
od = new OverDeclaration(ident, od);
od.visibility = visibility;
od.parent = parent;
aliassym = od;
}
return od.overloadInsert(s);
}
if (auto os = sa.isOverloadSet())
{
if (sa.ident != ident || sa.parent != parent)
{
os = new OverloadSet(ident, os);
// TODO: visibility is lost here b/c OverloadSets have no visibility attribute
// Might no be a practical issue, b/c the code below fails to resolve the overload anyhow.
// ----
// module os1;
// import a, b;
// private alias merged = foo; // private alias to overload set of a.foo and b.foo
// ----
// module os2;
// import a, b;
// public alias merged = bar; // public alias to overload set of a.bar and b.bar
// ----
// module bug;
// import os1, os2;
// void test() { merged(123); } // should only look at os2.merged
//
// os.visibility = visibility;
os.parent = parent;
aliassym = os;
}
os.push(s);
return true;
}
return false;
}
/* Don't know yet what the aliased symbol is, so assume it can
* be overloaded and check later for correctness.
*/
if (overnext)
return overnext.overloadInsert(s);
if (s is this)
return true;
overnext = s;
return true;
}
override const(char)* kind() const
{
return "alias";
}
override Type getType()
{
if (type)
return type;
return toAlias().getType();
}
override Dsymbol toAlias()
{
//printf("[%s] AliasDeclaration::toAlias('%s', this = %p, aliassym = %p, kind = '%s', inuse = %d)\n",
// loc.toChars(), toChars(), this, aliassym, aliassym ? aliassym.kind() : "", inuse);
assert(this != aliassym);
//static int count; if (++count == 10) *(char*)0=0;
// Reading the AliasDeclaration
if (!(adFlags & ignoreRead))
adFlags |= wasRead; // can never assign to this AliasDeclaration again
if (inuse == 1 && type && _scope)
{
inuse = 2;
uint olderrors = global.errors;
Dsymbol s = type.toDsymbol(_scope);
//printf("[%s] type = %s, s = %p, this = %p\n", loc.toChars(), type.toChars(), s, this);
if (global.errors != olderrors)
goto Lerr;
if (s)
{
s = s.toAlias();
if (global.errors != olderrors)
goto Lerr;
aliassym = s;
inuse = 0;
}
else
{
Type t = type.typeSemantic(loc, _scope);
if (t.ty == Terror)
goto Lerr;
if (global.errors != olderrors)
goto Lerr;
//printf("t = %s\n", t.toChars());
inuse = 0;
}
}
if (inuse)
{
error("recursive alias declaration");
Lerr:
// Avoid breaking "recursive alias" state during errors gagged
if (global.gag)
return this;
aliassym = new AliasDeclaration(loc, ident, Type.terror);
type = Type.terror;
return aliassym;
}
if (semanticRun >= PASS.semanticdone)
{
// semantic is already done.
// Do not see aliassym !is null, because of lambda aliases.
// Do not see type.deco !is null, even so "alias T = const int;` needs
// semantic analysis to take the storage class `const` as type qualifier.
}
else
{
// stop AliasAssign tuple building
if (aliassym)
{
if (auto td = aliassym.isTupleDeclaration())
{
if (td.building)
{
td.building = false;
semanticRun = PASS.semanticdone;
return td;
}
}
}
if (_import && _import._scope)
{
/* If this is an internal alias for selective/renamed import,
* load the module first.
*/
_import.dsymbolSemantic(null);
}
if (_scope)
{
aliasSemantic(this, _scope);
}
}
inuse = 1;
Dsymbol s = aliassym ? aliassym.toAlias() : this;
inuse = 0;
return s;
}
override Dsymbol toAlias2()
{
if (inuse)
{
error("recursive alias declaration");
return this;
}
inuse = 1;
Dsymbol s = aliassym ? aliassym.toAlias2() : this;
inuse = 0;
return s;
}
override bool isOverloadable() const
{
// assume overloadable until alias is resolved
return semanticRun < PASS.semanticdone ||
aliassym && aliassym.isOverloadable();
}
override inout(AliasDeclaration) isAliasDeclaration() inout
{
return this;
}
/** Returns: `true` if this instance was created to make a template parameter
visible in the scope of a template body, `false` otherwise */
extern (D) bool isAliasedTemplateParameter() const
{
return !!(storage_class & STC.templateparameter);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class OverDeclaration : Declaration
{
Dsymbol overnext; // next in overload list
Dsymbol aliassym;
extern (D) this(Identifier ident, Dsymbol s)
{
super(ident);
this.aliassym = s;
}
override const(char)* kind() const
{
return "overload alias"; // todo
}
override bool equals(const RootObject o) const
{
if (this == o)
return true;
auto s = isDsymbol(o);
if (!s)
return false;
if (auto od2 = s.isOverDeclaration())
return this.aliassym.equals(od2.aliassym);
return this.aliassym == s;
}
override bool overloadInsert(Dsymbol s)
{
//printf("OverDeclaration::overloadInsert('%s') aliassym = %p, overnext = %p\n", s.toChars(), aliassym, overnext);
if (overnext)
return overnext.overloadInsert(s);
if (s == this)
return true;
overnext = s;
return true;
}
override bool isOverloadable() const
{
return true;
}
Dsymbol isUnique()
{
Dsymbol result = null;
overloadApply(aliassym, (Dsymbol s)
{
if (result)
{
result = null;
return 1; // ambiguous, done
}
else
{
result = s;
return 0;
}
});
return result;
}
override inout(OverDeclaration) isOverDeclaration() inout
{
return this;
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) class VarDeclaration : Declaration
{
Initializer _init;
FuncDeclarations nestedrefs; // referenced by these lexically nested functions
TupleDeclaration aliasTuple; // when `this` is really a tuple of declarations
VarDeclaration lastVar; // Linked list of variables for goto-skips-init detection
Expression edtor; // if !=null, does the destruction of the variable
IntRange* range; // if !=null, the variable is known to be within the range
VarDeclarations* maybes; // maybeScope variables that are assigned to this maybeScope variable
uint endlinnum; // line number of end of scope that this var lives in
uint offset;
uint sequenceNumber; // order the variables are declared
structalign_t alignment;
// When interpreting, these point to the value (NULL if value not determinable)
// The index of this variable on the CTFE stack, AdrOnStackNone if not allocated
enum AdrOnStackNone = ~0u;
uint ctfeAdrOnStack;
// `bool` fields that are compacted into bit fields in a string mixin
private extern (D) static struct BitFields
{
bool isargptr; /// if parameter that _argptr points to
bool ctorinit; /// it has been initialized in a ctor
bool iscatchvar; /// this is the exception object variable in catch() clause
bool isowner; /// this is an Owner, despite it being `scope`
bool setInCtorOnly; /// field can only be set in a constructor, as it is const or immutable
/// It is a class that was allocated on the stack
///
/// This means the var is not rebindable once assigned,
/// and the destructor gets run when it goes out of scope
bool onstack;
bool overlapped; /// if it is a field and has overlapping
bool overlapUnsafe; /// if it is an overlapping field and the overlaps are unsafe
bool maybeScope; /// allow inferring 'scope' for this variable
bool doNotInferReturn; /// do not infer 'return' for this variable
bool isArgDtorVar; /// temporary created to handle scope destruction of a function argument
bool isCmacro; /// it is a C macro turned into a C declaration
version (MARS)
{
bool inClosure; /// is inserted into a GC allocated closure
bool inAlignSection; /// is inserted into an aligned section on stack
}
}
import dmd.common.bitfields : generateBitFields;
mixin(generateBitFields!(BitFields, ushort));
byte canassign; // it can be assigned to
ubyte isdataseg; // private data for isDataseg 0 unset, 1 true, 2 false
final extern (D) this(const ref Loc loc, Type type, Identifier ident, Initializer _init, StorageClass storage_class = STC.undefined_)
in
{
assert(ident);
}
do
{
//printf("VarDeclaration('%s')\n", ident.toChars());
super(loc, ident);
debug
{
if (!type && !_init)
{
//printf("VarDeclaration('%s')\n", ident.toChars());
//*(char*)0=0;
}
}
assert(type || _init);
this.type = type;
this._init = _init;
ctfeAdrOnStack = AdrOnStackNone;
this.storage_class = storage_class;
}
static VarDeclaration create(const ref Loc loc, Type type, Identifier ident, Initializer _init, StorageClass storage_class = STC.undefined_)
{
return new VarDeclaration(loc, type, ident, _init, storage_class);
}
override VarDeclaration syntaxCopy(Dsymbol s)
{
//printf("VarDeclaration::syntaxCopy(%s)\n", toChars());
assert(!s);
auto v = new VarDeclaration(loc, type ? type.syntaxCopy() : null, ident, _init ? _init.syntaxCopy() : null, storage_class);
v.comment = comment;
return v;
}
override void setFieldOffset(AggregateDeclaration ad, ref FieldState fieldState, bool isunion)
{
//printf("VarDeclaration::setFieldOffset(ad = %s) %s\n", ad.toChars(), toChars());
if (aliasTuple)
{
// If this variable was really a tuple, set the offsets for the tuple fields
aliasTuple.foreachVar((s) { s.setFieldOffset(ad, fieldState, isunion); });
return;
}
if (!isField())
return;
assert(!(storage_class & (STC.static_ | STC.extern_ | STC.parameter)));
//printf("+VarDeclaration::setFieldOffset(ad = %s) %s\n", ad.toChars(), toChars());
/* Fields that are tuples appear both as part of TupleDeclarations and
* as members. That means ignore them if they are already a field.
*/
if (offset)
{
// already a field
fieldState.offset = ad.structsize; // https://issues.dlang.org/show_bug.cgi?id=13613
return;
}
for (size_t i = 0; i < ad.fields.length; i++)
{
if (ad.fields[i] == this)
{
// already a field
fieldState.offset = ad.structsize; // https://issues.dlang.org/show_bug.cgi?id=13613
return;
}
}
// Check for forward referenced types which will fail the size() call
Type t = type.toBasetype();
if (storage_class & STC.ref_)
{
// References are the size of a pointer
t = Type.tvoidptr;
}
Type tv = t.baseElemOf();
if (tv.ty == Tstruct)
{
auto ts = cast(TypeStruct)tv;
assert(ts.sym != ad); // already checked in ad.determineFields()
if (!ts.sym.determineSize(loc))
{
type = Type.terror;
errors = true;
return;
}
}
// List in ad.fields. Even if the type is error, it's necessary to avoid
// pointless error diagnostic "more initializers than fields" on struct literal.
ad.fields.push(this);
if (t.ty == Terror)
return;
/* If coming after a bit field in progress,
* advance past the field
*/
fieldState.inFlight = false;
const sz = t.size(loc);
assert(sz != SIZE_INVALID && sz < uint.max);
uint memsize = cast(uint)sz; // size of member
uint memalignsize = target.fieldalign(t); // size of member for alignment purposes
offset = AggregateDeclaration.placeField(
&fieldState.offset,
memsize, memalignsize, alignment,
&ad.structsize, &ad.alignsize,
isunion);
//printf("\t%s: memalignsize = %d\n", toChars(), memalignsize);
//printf(" addField '%s' to '%s' at offset %d, size = %d\n", toChars(), ad.toChars(), offset, memsize);
}
override const(char)* kind() const
{
return "variable";
}
override final inout(AggregateDeclaration) isThis() inout
{
if (!(storage_class & (STC.static_ | STC.extern_ | STC.manifest | STC.templateparameter | STC.gshared | STC.ctfe)))
{
/* The casting is necessary because `s = s.parent` is otherwise rejected
*/
for (auto s = cast(Dsymbol)this; s; s = s.parent)
{
auto ad = (cast(inout)s).isMember();
if (ad)
return ad;
if (!s.parent || !s.parent.isTemplateMixin())
break;
}
}
return null;
}
override final bool needThis()
{
//printf("VarDeclaration::needThis(%s, x%x)\n", toChars(), storage_class);
return isField();
}
override final bool isExport() const
{
return visibility.kind == Visibility.Kind.export_;
}
override final bool isImportedSymbol() const
{
/* If global variable has `export` and `extern` then it is imported
* export int sym1; // definition: exported
* export extern int sym2; // declaration: imported
* export extern int sym3 = 0; // error, extern cannot have initializer
*/
bool result =
visibility.kind == Visibility.Kind.export_ &&
storage_class & STC.extern_ &&
(storage_class & STC.static_ || parent.isModule());
//printf("isImportedSymbol() %s %d\n", toChars(), result);
return result;
}
final bool isCtorinit() const pure nothrow @nogc @safe
{
return setInCtorOnly;
}
/*******************************
* Does symbol go into data segment?
* Includes extern variables.
*/
override final bool isDataseg()
{
version (none)
{
printf("VarDeclaration::isDataseg(%p, '%s')\n", this, toChars());
printf("%llx, isModule: %p, isTemplateInstance: %p, isNspace: %p\n",
storage_class & (STC.static_ | STC.const_), parent.isModule(), parent.isTemplateInstance(), parent.isNspace());
printf("parent = '%s'\n", parent.toChars());
}
if (isdataseg == 0) // the value is not cached
{
isdataseg = 2; // The Variables does not go into the datasegment
if (!canTakeAddressOf())
{
return false;
}
Dsymbol parent = toParent();
if (!parent && !(storage_class & STC.static_))
{
error("forward referenced");
type = Type.terror;
}
else if (storage_class & (STC.static_ | STC.extern_ | STC.gshared) ||
parent.isModule() || parent.isTemplateInstance() || parent.isNspace())
{
assert(!isParameter() && !isResult());
isdataseg = 1; // It is in the DataSegment
}
}
return (isdataseg == 1);
}
/************************************
* Does symbol go into thread local storage?
*/
override final bool isThreadlocal()
{
//printf("VarDeclaration::isThreadlocal(%p, '%s')\n", this, toChars());
/* Data defaults to being thread-local. It is not thread-local
* if it is immutable, const or shared.
*/
bool i = isDataseg() && !(storage_class & (STC.immutable_ | STC.const_ | STC.shared_ | STC.gshared));
//printf("\treturn %d\n", i);
return i;
}
/********************************************
* Can variable be read and written by CTFE?
*/
final bool isCTFE()
{
return (storage_class & STC.ctfe) != 0; // || !isDataseg();
}
final bool isOverlappedWith(VarDeclaration v)
{
const vsz = v.type.size();
const tsz = type.size();
assert(vsz != SIZE_INVALID && tsz != SIZE_INVALID);
// Overlap is checked by comparing bit offsets
auto bitoffset = offset * 8;
auto vbitoffset = v.offset * 8;
// Bitsize of types are overridden by any bit-field widths.
ulong tbitsize = void;
if (auto bf = isBitFieldDeclaration())
{
bitoffset += bf.bitOffset;
tbitsize = bf.fieldWidth;
}
else
tbitsize = tsz * 8;
ulong vbitsize = void;
if (auto vbf = v.isBitFieldDeclaration())
{
vbitoffset += vbf.bitOffset;
vbitsize = vbf.fieldWidth;
}
else
vbitsize = vsz * 8;
return bitoffset < vbitoffset + vbitsize &&
vbitoffset < bitoffset + tbitsize;
}
override final bool hasPointers()
{
//printf("VarDeclaration::hasPointers() %s, ty = %d\n", toChars(), type.ty);
return (!isDataseg() && type.hasPointers());
}
/*************************************
* Return true if we can take the address of this variable.
*/
final bool canTakeAddressOf()
{
return !(storage_class & STC.manifest);
}
/******************************************
* Return true if variable needs to call the destructor.
*/
final bool needsScopeDtor()
{
//printf("VarDeclaration::needsScopeDtor() %s\n", toChars());
return edtor && !(storage_class & STC.nodtor);
}
/******************************************
* If a variable has a scope destructor call, return call for it.
* Otherwise, return NULL.
*/
extern (D) final Expression callScopeDtor(Scope* sc)
{
//printf("VarDeclaration::callScopeDtor() %s\n", toChars());
// Destruction of STC.field's is handled by buildDtor()
if (storage_class & (STC.nodtor | STC.ref_ | STC.out_ | STC.field))
{
return null;
}
if (iscatchvar)
return null; // destructor is built by `void semantic(Catch c, Scope* sc)`, not here
Expression e = null;
// Destructors for structs and arrays of structs
Type tv = type.baseElemOf();
if (tv.ty == Tstruct)
{
StructDeclaration sd = (cast(TypeStruct)tv).sym;
if (!sd.dtor || sd.errors)
return null;
const sz = type.size();
assert(sz != SIZE_INVALID);
if (!sz)
return null;
if (type.toBasetype().ty == Tstruct)
{
// v.__xdtor()
e = new VarExp(loc, this);
/* This is a hack so we can call destructors on const/immutable objects.
* Need to add things like "const ~this()" and "immutable ~this()" to
* fix properly.
*/
e.type = e.type.mutableOf();
// Enable calling destructors on shared objects.
// The destructor is always a single, non-overloaded function,
// and must serve both shared and non-shared objects.
e.type = e.type.unSharedOf;
e = new DotVarExp(loc, e, sd.dtor, false);
e = new CallExp(loc, e);
}
else
{
// __ArrayDtor(v[0 .. n])
e = new VarExp(loc, this);
const sdsz = sd.type.size();
assert(sdsz != SIZE_INVALID && sdsz != 0);
const n = sz / sdsz;
SliceExp se = new SliceExp(loc, e, new IntegerExp(loc, 0, Type.tsize_t),
new IntegerExp(loc, n, Type.tsize_t));
// Prevent redundant bounds check
se.upperIsInBounds = true;
se.lowerIsLessThanUpper = true;
// This is a hack so we can call destructors on const/immutable objects.
se.type = sd.type.arrayOf();
e = new CallExp(loc, new IdentifierExp(loc, Id.__ArrayDtor), se);
}
return e;
}
// Destructors for classes
if (storage_class & (STC.auto_ | STC.scope_) && !(storage_class & STC.parameter))
{
for (ClassDeclaration cd = type.isClassHandle(); cd; cd = cd.baseClass)
{
/* We can do better if there's a way with onstack
* classes to determine if there's no way the monitor
* could be set.
*/
//if (cd.isInterfaceDeclaration())
// error("interface `%s` cannot be scope", cd.toChars());
if (onstack) // if any destructors
{
// delete'ing C++ classes crashes (and delete is deprecated anyway)
if (cd.classKind == ClassKind.cpp)
{
// Don't call non-existant dtor
if (!cd.dtor)
break;
e = new VarExp(loc, this);
e.type = e.type.mutableOf().unSharedOf(); // Hack for mutable ctor on immutable instances
e = new DotVarExp(loc, e, cd.dtor, false);
e = new CallExp(loc, e);
break;
}
// delete this;
Expression ec;
ec = new VarExp(loc, this);
e = new DeleteExp(loc, ec, true);
e.type = Type.tvoid;
break;
}
}
}
return e;
}
/*******************************************
* If variable has a constant expression initializer, get it.
* Otherwise, return null.
*/
extern (D) final Expression getConstInitializer(bool needFullType = true)
{
assert(type && _init);
// Ungag errors when not speculative
uint oldgag = global.gag;
if (global.gag)
{
Dsymbol sym = isMember();
if (sym && !sym.isSpeculative())
global.gag = 0;
}
if (_scope)
{
inuse++;
_init = _init.initializerSemantic(_scope, type, INITinterpret);
_scope = null;
inuse--;
}
Expression e = _init.initializerToExpression(needFullType ? type : null);
global.gag = oldgag;
return e;
}
/*******************************************
* Helper function for the expansion of manifest constant.
*/
extern (D) final Expression expandInitializer(Loc loc)
{
assert((storage_class & STC.manifest) && _init);
auto e = getConstInitializer();
if (!e)
{
.error(loc, "cannot make expression out of initializer for `%s`", toChars());
return ErrorExp.get();
}
e = e.copy();
e.loc = loc; // for better error message
return e;
}
override final void checkCtorConstInit()
{
version (none)
{
/* doesn't work if more than one static ctor */
if (ctorinit == 0 && isCtorinit() && !isField())
error("missing initializer in static constructor for const variable");
}
}
/************************************
* Check to see if this variable is actually in an enclosing function
* rather than the current one.
* Update nestedrefs[], closureVars[] and outerVars[].
* Returns: true if error occurs.
*/
extern (D) final bool checkNestedReference(Scope* sc, Loc loc)
{
//printf("VarDeclaration::checkNestedReference() %s\n", toChars());
if (sc.intypeof == 1 || (sc.flags & SCOPE.ctfe))
return false;
if (!parent || parent == sc.parent)
return false;
if (isDataseg() || (storage_class & STC.manifest))
return false;
// The current function
FuncDeclaration fdthis = sc.parent.isFuncDeclaration();
if (!fdthis)
return false; // out of function scope
Dsymbol p = toParent2();
// Function literals from fdthis to p must be delegates
ensureStaticLinkTo(fdthis, p);
// The function that this variable is in
FuncDeclaration fdv = p.isFuncDeclaration();
if (!fdv || fdv == fdthis)
return false;
// Add fdthis to nestedrefs[] if not already there
if (!nestedrefs.contains(fdthis))
nestedrefs.push(fdthis);
//printf("\tfdv = %s\n", fdv.toChars());
//printf("\tfdthis = %s\n", fdthis.toChars());
if (loc.isValid())
{
if (fdthis.getLevelAndCheck(loc, sc, fdv, this) == fdthis.LevelError)
return true;
}
// Add this VarDeclaration to fdv.closureVars[] if not already there
if (!sc.intypeof && !(sc.flags & SCOPE.compile) &&
// https://issues.dlang.org/show_bug.cgi?id=17605
(fdv.skipCodegen || !fdthis.skipCodegen))
{
if (!fdv.closureVars.contains(this))
fdv.closureVars.push(this);
}
if (!fdthis.outerVars.contains(this))
fdthis.outerVars.push(this);
//printf("fdthis is %s\n", fdthis.toChars());
//printf("var %s in function %s is nested ref\n", toChars(), fdv.toChars());
// __dollar creates problems because it isn't a real variable
// https://issues.dlang.org/show_bug.cgi?id=3326
if (ident == Id.dollar)
{
.error(loc, "cannnot use `$` inside a function literal");
return true;
}
if (ident == Id.withSym) // https://issues.dlang.org/show_bug.cgi?id=1759
{
ExpInitializer ez = _init.isExpInitializer();
assert(ez);
Expression e = ez.exp;
if (e.op == EXP.construct || e.op == EXP.blit)
e = (cast(AssignExp)e).e2;
return lambdaCheckForNestedRef(e, sc);
}
return false;
}
override final Dsymbol toAlias()
{
//printf("VarDeclaration::toAlias('%s', this = %p, aliassym = %p)\n", toChars(), this, aliassym);
if ((!type || !type.deco) && _scope)
dsymbolSemantic(this, _scope);
assert(this != aliasTuple);
Dsymbol s = aliasTuple ? aliasTuple.toAlias() : this;
return s;
}
// Eliminate need for dynamic_cast
override final inout(VarDeclaration) isVarDeclaration() inout
{
return this;
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/*******************************************************
* C11 6.7.2.1-4 bit fields
*/
extern (C++) class BitFieldDeclaration : VarDeclaration
{
Expression width;
uint fieldWidth;
uint bitOffset;
final extern (D) this(const ref Loc loc, Type type, Identifier ident, Expression width)
{
super(loc, type, ident, null);
this.width = width;
this.storage_class |= STC.field;
}
override BitFieldDeclaration syntaxCopy(Dsymbol s)
{
//printf("BitFieldDeclaration::syntaxCopy(%s)\n", toChars());
assert(!s);
auto bf = new BitFieldDeclaration(loc, type ? type.syntaxCopy() : null, ident, width.syntaxCopy());
bf.comment = comment;
return bf;
}
override final inout(BitFieldDeclaration) isBitFieldDeclaration() inout
{
return this;
}
override void accept(Visitor v)
{
v.visit(this);
}
/***********************************
* Retrieve the .min or .max values.
* Only valid after semantic analysis.
* Params:
* id = Id.min or Id.max
* Returns:
* the min or max value
*/
final ulong getMinMax(Identifier id)
{
const width = fieldWidth;
const uns = type.isunsigned();
const min = id == Id.min;
ulong v;
assert(width != 0); // should have been rejected in semantic pass
if (width == ulong.sizeof * 8)
v = uns ? (min ? ulong.min : ulong.max)
: (min ? long.min : long.max);
else
v = uns ? (min ? 0
: (1L << width) - 1)
: (min ? -(1L << (width - 1))
: (1L << (width - 1)) - 1);
return v;
}
override final void setFieldOffset(AggregateDeclaration ad, ref FieldState fieldState, bool isunion)
{
enum log = false;
static if (log)
{
printf("BitFieldDeclaration::setFieldOffset(ad: %s, field: %s)\n", ad.toChars(), toChars());
void print(const ref FieldState fieldState)
{
printf("FieldState.offset = %d bytes\n", fieldState.offset);
printf(" .fieldOffset = %d bytes\n", fieldState.fieldOffset);
printf(" .bitOffset = %d bits\n", fieldState.bitOffset);
printf(" .fieldSize = %d bytes\n", fieldState.fieldSize);
printf(" .inFlight = %d\n", fieldState.inFlight);
printf(" fieldWidth = %d bits\n", fieldWidth);
}
print(fieldState);
}
Type t = type.toBasetype();
const bool anon = isAnonymous();
// List in ad.fields. Even if the type is error, it's necessary to avoid
// pointless error diagnostic "more initializers than fields" on struct literal.
if (!anon)
ad.fields.push(this);
if (t.ty == Terror)
return;
const sz = t.size(loc);
assert(sz != SIZE_INVALID && sz < uint.max);
uint memsize = cast(uint)sz; // size of member
uint memalignsize = target.fieldalign(t); // size of member for alignment purposes
if (log) printf(" memsize: %u memalignsize: %u\n", memsize, memalignsize);
if (fieldWidth == 0 && !anon)
error(loc, "named bit fields cannot have 0 width");
if (fieldWidth > memsize * 8)
error(loc, "bit field width %d is larger than type", fieldWidth);
const style = target.c.bitFieldStyle;
void startNewField()
{
if (log) printf("startNewField()\n");
uint alignsize;
if (style == TargetC.BitFieldStyle.Gcc_Clang)
{
if (fieldWidth > 32)
alignsize = memalignsize;
else if (fieldWidth > 16)
alignsize = 4;
else if (fieldWidth > 8)
alignsize = 2;
else
alignsize = 1;
}
else
alignsize = memsize; // not memalignsize
uint dummy;
offset = AggregateDeclaration.placeField(
&fieldState.offset,
memsize, alignsize, alignment,
&ad.structsize,
(anon && style == TargetC.BitFieldStyle.Gcc_Clang) ? &dummy : &ad.alignsize,
isunion);
fieldState.inFlight = true;
fieldState.fieldOffset = offset;
fieldState.bitOffset = 0;
fieldState.fieldSize = memsize;
}
if (style == TargetC.BitFieldStyle.Gcc_Clang)
{
if (fieldWidth == 0)
{
if (!isunion)
{
// Use type of zero width field to align to next field
fieldState.offset = (fieldState.offset + memalignsize - 1) & ~(memalignsize - 1);
ad.structsize = fieldState.offset;
}
fieldState.inFlight = false;
return;
}
if (ad.alignsize == 0)
ad.alignsize = 1;
if (!anon &&
ad.alignsize < memalignsize)
ad.alignsize = memalignsize;
}
else if (style == TargetC.BitFieldStyle.MS)
{
if (ad.alignsize == 0)
ad.alignsize = 1;
if (fieldWidth == 0)
{
if (fieldState.inFlight && !isunion)
{
// documentation says align to next int
//const alsz = cast(uint)Type.tint32.size();
const alsz = memsize; // but it really does this
fieldState.offset = (fieldState.offset + alsz - 1) & ~(alsz - 1);
ad.structsize = fieldState.offset;
}
fieldState.inFlight = false;
return;
}
}
else if (style == TargetC.BitFieldStyle.DM)
{
if (anon && fieldWidth && (!fieldState.inFlight || fieldState.bitOffset == 0))
return; // this probably should be a bug in DMC
if (ad.alignsize == 0)
ad.alignsize = 1;
if (fieldWidth == 0)
{
if (fieldState.inFlight && !isunion)
{
const alsz = memsize;
fieldState.offset = (fieldState.offset + alsz - 1) & ~(alsz - 1);
ad.structsize = fieldState.offset;
}
fieldState.inFlight = false;
return;
}
}
if (!fieldState.inFlight)
{
//printf("not in flight\n");
startNewField();
}
else if (style == TargetC.BitFieldStyle.Gcc_Clang)
{
// If the bit-field spans more units of alignment than its type,
// start a new field at the next alignment boundary.
if (fieldState.bitOffset == fieldState.fieldSize * 8)
startNewField(); // the bit field is full
else
{
// if alignment boundary is crossed
uint start = fieldState.fieldOffset * 8 + fieldState.bitOffset;
uint end = start + fieldWidth;
//printf("%s start: %d end: %d memalignsize: %d\n", ad.toChars(), start, end, memalignsize);
if (start / (memalignsize * 8) != (end - 1) / (memalignsize * 8))
{
//printf("alignment is crossed\n");
startNewField();
}
}
}
else if (style == TargetC.BitFieldStyle.DM ||
style == TargetC.BitFieldStyle.MS)
{
if (memsize != fieldState.fieldSize ||
fieldState.bitOffset + fieldWidth > fieldState.fieldSize * 8)
{
//printf("new field\n");
startNewField();
}
}
else
assert(0);
offset = fieldState.fieldOffset;
bitOffset = fieldState.bitOffset;
const pastField = bitOffset + fieldWidth;
if (style == TargetC.BitFieldStyle.Gcc_Clang)
{
auto size = (pastField + 7) / 8;
fieldState.fieldSize = size;
//printf(" offset: %d, size: %d\n", offset, size);
ad.structsize = offset + size;
}
else
fieldState.fieldSize = memsize;
//printf("at end: ad.structsize = %d\n", cast(int)ad.structsize);
//print(fieldState);
if (!isunion)
{
fieldState.offset = offset + fieldState.fieldSize;
fieldState.bitOffset = pastField;
}
//printf("\t%s: memalignsize = %d\n", toChars(), memalignsize);
//printf(" addField '%s' to '%s' at offset %d, size = %d\n", toChars(), ad.toChars(), offset, memsize);
}
}
/***********************************************************
* This is a shell around a back end symbol
*/
extern (C++) final class SymbolDeclaration : Declaration
{
AggregateDeclaration dsym;
extern (D) this(const ref Loc loc, AggregateDeclaration dsym)
{
super(loc, dsym.ident);
this.dsym = dsym;
storage_class |= STC.const_;
}
// Eliminate need for dynamic_cast
override inout(SymbolDeclaration) isSymbolDeclaration() inout
{
return this;
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) class TypeInfoDeclaration : VarDeclaration
{
Type tinfo;
final extern (D) this(Type tinfo)
{
super(Loc.initial, Type.dtypeinfo.type, tinfo.getTypeInfoIdent(), null);
this.tinfo = tinfo;
storage_class = STC.static_ | STC.gshared;
visibility = Visibility(Visibility.Kind.public_);
_linkage = LINK.c;
alignment.set(target.ptrsize);
}
static TypeInfoDeclaration create(Type tinfo)
{
return new TypeInfoDeclaration(tinfo);
}
override final TypeInfoDeclaration syntaxCopy(Dsymbol s)
{
assert(0); // should never be produced by syntax
}
override final const(char)* toChars() const
{
//printf("TypeInfoDeclaration::toChars() tinfo = %s\n", tinfo.toChars());
OutBuffer buf;
buf.writestring("typeid(");
buf.writestring(tinfo.toChars());
buf.writeByte(')');
return buf.extractChars();
}
override final inout(TypeInfoDeclaration) isTypeInfoDeclaration() inout @nogc nothrow pure @safe
{
return this;
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeInfoStructDeclaration : TypeInfoDeclaration
{
extern (D) this(Type tinfo)
{
super(tinfo);
if (!Type.typeinfostruct)
{
ObjectNotFound(Id.TypeInfo_Struct);
}
type = Type.typeinfostruct.type;
}
static TypeInfoStructDeclaration create(Type tinfo)
{
return new TypeInfoStructDeclaration(tinfo);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeInfoClassDeclaration : TypeInfoDeclaration
{
extern (D) this(Type tinfo)
{
super(tinfo);
if (!Type.typeinfoclass)
{
ObjectNotFound(Id.TypeInfo_Class);
}
type = Type.typeinfoclass.type;
}
static TypeInfoClassDeclaration create(Type tinfo)
{
return new TypeInfoClassDeclaration(tinfo);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeInfoInterfaceDeclaration : TypeInfoDeclaration
{
extern (D) this(Type tinfo)
{
super(tinfo);
if (!Type.typeinfointerface)
{
ObjectNotFound(Id.TypeInfo_Interface);
}
type = Type.typeinfointerface.type;
}
static TypeInfoInterfaceDeclaration create(Type tinfo)
{
return new TypeInfoInterfaceDeclaration(tinfo);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeInfoPointerDeclaration : TypeInfoDeclaration
{
extern (D) this(Type tinfo)
{
super(tinfo);
if (!Type.typeinfopointer)
{
ObjectNotFound(Id.TypeInfo_Pointer);
}
type = Type.typeinfopointer.type;
}
static TypeInfoPointerDeclaration create(Type tinfo)
{
return new TypeInfoPointerDeclaration(tinfo);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeInfoArrayDeclaration : TypeInfoDeclaration
{
extern (D) this(Type tinfo)
{
super(tinfo);
if (!Type.typeinfoarray)
{
ObjectNotFound(Id.TypeInfo_Array);
}
type = Type.typeinfoarray.type;
}
static TypeInfoArrayDeclaration create(Type tinfo)
{
return new TypeInfoArrayDeclaration(tinfo);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeInfoStaticArrayDeclaration : TypeInfoDeclaration
{
extern (D) this(Type tinfo)
{
super(tinfo);
if (!Type.typeinfostaticarray)
{
ObjectNotFound(Id.TypeInfo_StaticArray);
}
type = Type.typeinfostaticarray.type;
}
static TypeInfoStaticArrayDeclaration create(Type tinfo)
{
return new TypeInfoStaticArrayDeclaration(tinfo);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeInfoAssociativeArrayDeclaration : TypeInfoDeclaration
{
extern (D) this(Type tinfo)
{
super(tinfo);
if (!Type.typeinfoassociativearray)
{
ObjectNotFound(Id.TypeInfo_AssociativeArray);
}
type = Type.typeinfoassociativearray.type;
}
static TypeInfoAssociativeArrayDeclaration create(Type tinfo)
{
return new TypeInfoAssociativeArrayDeclaration(tinfo);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeInfoEnumDeclaration : TypeInfoDeclaration
{
extern (D) this(Type tinfo)
{
super(tinfo);
if (!Type.typeinfoenum)
{
ObjectNotFound(Id.TypeInfo_Enum);
}
type = Type.typeinfoenum.type;
}
static TypeInfoEnumDeclaration create(Type tinfo)
{
return new TypeInfoEnumDeclaration(tinfo);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeInfoFunctionDeclaration : TypeInfoDeclaration
{
extern (D) this(Type tinfo)
{
super(tinfo);
if (!Type.typeinfofunction)
{
ObjectNotFound(Id.TypeInfo_Function);
}
type = Type.typeinfofunction.type;
}
static TypeInfoFunctionDeclaration create(Type tinfo)
{
return new TypeInfoFunctionDeclaration(tinfo);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeInfoDelegateDeclaration : TypeInfoDeclaration
{
extern (D) this(Type tinfo)
{
super(tinfo);
if (!Type.typeinfodelegate)
{
ObjectNotFound(Id.TypeInfo_Delegate);
}
type = Type.typeinfodelegate.type;
}
static TypeInfoDelegateDeclaration create(Type tinfo)
{
return new TypeInfoDelegateDeclaration(tinfo);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeInfoTupleDeclaration : TypeInfoDeclaration
{
extern (D) this(Type tinfo)
{
super(tinfo);
if (!Type.typeinfotypelist)
{
ObjectNotFound(Id.TypeInfo_Tuple);
}
type = Type.typeinfotypelist.type;
}
static TypeInfoTupleDeclaration create(Type tinfo)
{
return new TypeInfoTupleDeclaration(tinfo);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeInfoConstDeclaration : TypeInfoDeclaration
{
extern (D) this(Type tinfo)
{
super(tinfo);
if (!Type.typeinfoconst)
{
ObjectNotFound(Id.TypeInfo_Const);
}
type = Type.typeinfoconst.type;
}
static TypeInfoConstDeclaration create(Type tinfo)
{
return new TypeInfoConstDeclaration(tinfo);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeInfoInvariantDeclaration : TypeInfoDeclaration
{
extern (D) this(Type tinfo)
{
super(tinfo);
if (!Type.typeinfoinvariant)
{
ObjectNotFound(Id.TypeInfo_Invariant);
}
type = Type.typeinfoinvariant.type;
}
static TypeInfoInvariantDeclaration create(Type tinfo)
{
return new TypeInfoInvariantDeclaration(tinfo);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeInfoSharedDeclaration : TypeInfoDeclaration
{
extern (D) this(Type tinfo)
{
super(tinfo);
if (!Type.typeinfoshared)
{
ObjectNotFound(Id.TypeInfo_Shared);
}
type = Type.typeinfoshared.type;
}
static TypeInfoSharedDeclaration create(Type tinfo)
{
return new TypeInfoSharedDeclaration(tinfo);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeInfoWildDeclaration : TypeInfoDeclaration
{
extern (D) this(Type tinfo)
{
super(tinfo);
if (!Type.typeinfowild)
{
ObjectNotFound(Id.TypeInfo_Wild);
}
type = Type.typeinfowild.type;
}
static TypeInfoWildDeclaration create(Type tinfo)
{
return new TypeInfoWildDeclaration(tinfo);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeInfoVectorDeclaration : TypeInfoDeclaration
{
extern (D) this(Type tinfo)
{
super(tinfo);
if (!Type.typeinfovector)
{
ObjectNotFound(Id.TypeInfo_Vector);
}
type = Type.typeinfovector.type;
}
static TypeInfoVectorDeclaration create(Type tinfo)
{
return new TypeInfoVectorDeclaration(tinfo);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
* For the "this" parameter to member functions
*/
extern (C++) final class ThisDeclaration : VarDeclaration
{
extern (D) this(const ref Loc loc, Type t)
{
super(loc, t, Id.This, null);
storage_class |= STC.nodtor;
}
override ThisDeclaration syntaxCopy(Dsymbol s)
{
assert(0); // should never be produced by syntax
}
override inout(ThisDeclaration) isThisDeclaration() inout
{
return this;
}
override void accept(Visitor v)
{
v.visit(this);
}
}
|
D
|
/*******************************************************************************
Map used to verify the results of operations on the DLS being tested.
When used in tests, the map should be updated in the same way as the DLS
being tested (e.g. when a record is put to the DLS, the same record should
be put to the map). The verifyAgainstDls() method then performs a thorough
series of tests to confirm that the content of the DLS exactly matches the
content of the map.
Copyright:
Copyright (c) 2015-2017 dunnhumby Germany GmbH. All rights reserved.
License:
Boost Software License Version 1.0. See LICENSE.txt for details.
*******************************************************************************/
module dlstest.util.LocalStore;
struct LocalStore
{
import dlstest.DlsClient;
import dlstest.util.Record;
import ocean.text.regex.PCRE;
import turtle.runner.Logging;
import ocean.core.Array : contains;
import ocean.core.Test;
import ocean.meta.types.Qualifiers;
/***************************************************************************
Data in local store
***************************************************************************/
public cstring[][hash_t] data;
/***************************************************************************
Adds a record to the local store.
Params:
key = record key
val = record value
***************************************************************************/
public void put ( hash_t key, cstring val )
{
this.data[key] ~= val;
}
/***************************************************************************
Removes a record from the local store.
Params:
key = key to remove
***************************************************************************/
public void remove ( hash_t key )
{
this.data.remove(key);
}
/***************************************************************************
Performs a series of tests to confirm that the content of the DLS
exactly matches the content of the map.
Params:
dls = DLS client to use to perform tests
channel = name of channel to compare against in DLS
Throws:
TestException upon verification failure
***************************************************************************/
public void verifyAgainstDls ( DlsClient dls, DlsClient.ProtocolType protocol_type, cstring channel )
{
// find minimum and maximum key in the local data
hash_t min = 0;
hash_t max = 0;
foreach (k, v; this.data)
{
if (k < min) { min = k; }
else if (k > max) { max = k; }
}
// caclulate border values so the range would not be invalid
auto mid = (min / 2) + (max / 2) - 1;
if (protocol_type & DlsClient.ProtocolType.Legacy)
{
this.verifyGetAll(dls, channel);
this.verifyGetAllFilter(dls, channel);
}
this.verifyGetRange(dls, protocol_type, channel, min, max);
this.verifyGetRange(dls, protocol_type, channel, min, max - mid);
this.verifyGetRange(dls, protocol_type, channel, min + mid / 4, max + 1);
this.verifyGetRange(dls, protocol_type, channel, max + 1, max + 2);
this.verifyGetRange(dls, protocol_type, channel, min / 2, max);
// tests including filter
this.verifyGetRange(dls, protocol_type, channel, min, max, DlsClient.FilterType.StringFilter, "0");
this.verifyGetRange(dls, protocol_type, channel, min, max - mid, DlsClient.FilterType.StringFilter, "0");
this.verifyGetRange(dls, protocol_type, channel, min + mid / 4, max + 1, DlsClient.FilterType.StringFilter, "0");
this.verifyGetRange(dls, protocol_type, channel, max + 1, max + 2, DlsClient.FilterType.StringFilter, "0");
this.verifyGetRange(dls, protocol_type, channel, min / 2, max, DlsClient.FilterType.StringFilter, "0");
// tests including regex
this.verifyGetRange(dls, protocol_type, channel, min, max, DlsClient.FilterType.PCRE, "^1.*");
this.verifyGetRange(dls, protocol_type, channel, min, max - mid, DlsClient.FilterType.PCRE, "^1.*");
this.verifyGetRange(dls, protocol_type, channel, min + mid / 4, max + 1, DlsClient.FilterType.PCRE, "^1.*");
this.verifyGetRange(dls, protocol_type, channel, max + 1, max + 2, DlsClient.FilterType.PCRE, "^1.*");
this.verifyGetRange(dls, protocol_type, channel, min / 2, max, DlsClient.FilterType.PCRE, "^1.*");
}
/***************************************************************************
Compares all records in the DLS channel against the records in the local
store, using a DLS GetAll request.
Params:
dls = DLS client to use to perform tests
channel = name of channel to compare against in DLS
Throws:
TestException upon verification failure
***************************************************************************/
private void verifyGetAll ( DlsClient dls, cstring channel )
{
auto remote = dls.getAll(channel);
log.trace("\tVerifying channel with GetAll: local:{}, remote:{}",
this.data.length, remote.length);
test!("==")(this.data.length, remote.length);
foreach ( k, v; remote )
{
test!("==")(this.data[k].length, remote[k].length);
test!("in")(k, this.data);
foreach (val; remote[k])
{
auto found_record = false;
foreach (local_val; this.data[k])
{
if (val == local_val)
{
found_record = true;
break;
}
}
test!("==")(found_record, true);
}
}
}
/***************************************************************************
Compares all records in the DLS channel against the records in the local
store, with a standard string-match filter applied to both (the filter
passes records which contain the character "0"), using a DLS
GetAllFilter request.
Params:
dls = DLS client to use to perform tests
channel = name of channel to compare against in DLS
Throws:
TestException upon verification failure
***************************************************************************/
private void verifyGetAllFilter ( DlsClient dls, cstring channel )
{
enum filter = "0";
cstring[][hash_t] local;
foreach ( k, vals; this.data )
{
foreach (v; vals)
{
if (v.contains(filter))
local[k] ~= v;
}
}
auto remote = dls.getAll(channel, filter);
log.trace("\tVerifying channel with GetAllFilter: local:{}, remote:{}",
local.length, remote.length);
test!("==")(local.length, remote.length);
foreach ( k, remote_vals; remote )
{
auto local_vals = k in local;
test!("!is")(local_vals, null);
test!("==")(local_vals.length, remote_vals.length);
// confirm that all returned values are present in the local
// storage
foreach (local_val; *local_vals)
{
test(remote_vals.contains(local_val));
}
}
}
/***************************************************************************
Compares range of records in the DLS channel against the records in the local
store, with a standard string-match filter applied to both (the filter
passes records which contain the character "0"), using a DLS
GetAllFilter request.
Params:
dls = DLS client to use to perform tests
protocol_type = bitfield describing the protocol type
channel = name of channel to compare against in DLS
start = beginning of the key range to fetch
end = end of the key range to fetch
filter_type = indicator should GetRange perform filter, and if so, what
type
filter = text string to match the values against
Throws:
TestException upon verification failure
***************************************************************************/
private void verifyGetRange ( DlsClient dls, DlsClient.ProtocolType protocol_type,
cstring channel, hash_t start, hash_t end,
DlsClient.FilterType filter_type = DlsClient.FilterType.None,
cstring filter = null)
{
cstring[][hash_t] local;
// compile regex if passed.
PCRE.CompiledRegex regex;
if (filter_type == DlsClient.FilterType.PCRE)
{
regex = (new PCRE).new CompiledRegex;
regex.compile(filter, true);
}
foreach ( k, vals; this.data )
{
foreach (v; vals)
{
if (k >= start && k <= end)
{
if (filter_type == DlsClient.FilterType.StringFilter && !v.contains(filter))
{
continue;
}
else if (filter_type == DlsClient.FilterType.PCRE && !regex.match(v))
{
continue;
}
local[k] ~= v;
}
}
}
/***********************************************************************
Method to verify if the received data is matching the local data
Params:
remote = data received from the node
Throws:
TestException if the received data doesn't match local one
***********************************************************************/
void verifyReceived (cstring[][hash_t] remote)
{
test!("==")(local.length, remote.length);
foreach ( k, remote_vals; remote )
{
auto local_vals = k in local;
test!("!is")(local_vals, null);
test!("==")(local_vals.length, remote_vals.length);
// confirm that all returned values are present in the local
// storage
foreach (local_val; *local_vals)
{
test(remote_vals.contains(local_val));
}
}
}
if (protocol_type & DlsClient.ProtocolType.Legacy)
{
// Do a legacy get range, followed by the Neo get range
log.trace("\tVerifying channel with GetRangeFilter");
verifyReceived(dls.getRange(channel, start, end, filter_type, filter));
}
if (protocol_type & DlsClient.ProtocolType.Neo)
{
log.trace("\tVerifying channel with Neo GetRangeFilter");
// Adapt to the change in APIs
auto neo_filter_type = DlsClient.Filter.FilterMode.None;
switch (filter_type)
{
case DlsClient.FilterType.StringFilter:
neo_filter_type = DlsClient.Filter.FilterMode.StringMatch;
break;
case DlsClient.FilterType.PCRE:
neo_filter_type = DlsClient.Filter.FilterMode.PCRE;
break;
default:
break;
}
verifyReceived(
cast(cstring[][hash_t])dls.neo.getRange(channel,
start,
end,
filter,
neo_filter_type)
);
}
}
}
|
D
|
(law) the findings of a jury on issues of fact submitted to it for decision
|
D
|
/**
Common classes for HTTP clients and servers.
Copyright: © 2012-2015 RejectedSoftware e.K.
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Authors: Sönke Ludwig, Jan Krüger
*/
module vibe.http.common;
public import vibe.http.status;
import vibe.core.log;
import vibe.core.net;
import vibe.inet.message;
import vibe.stream.operations;
import vibe.textfilter.urlencode : urlEncode, urlDecode;
import vibe.utils.array;
import vibe.utils.dictionarylist;
import vibe.internal.allocator;
import vibe.internal.freelistref;
import vibe.internal.interfaceproxy : InterfaceProxy, interfaceProxy;
import vibe.utils.string;
import std.algorithm;
import std.array;
import std.conv;
import std.datetime;
import std.exception;
import std.format;
import std.range : isOutputRange;
import std.string;
import std.typecons;
import std.uni: asLowerCase, sicmp;
enum HTTPVersion {
HTTP_1_0,
HTTP_1_1,
HTTP_2
}
enum HTTPMethod {
// HTTP standard, RFC 2616
GET,
HEAD,
PUT,
POST,
PATCH,
DELETE,
OPTIONS,
TRACE,
CONNECT,
// WEBDAV extensions, RFC 2518
PROPFIND,
PROPPATCH,
MKCOL,
COPY,
MOVE,
LOCK,
UNLOCK,
// Versioning Extensions to WebDAV, RFC 3253
VERSIONCONTROL,
REPORT,
CHECKOUT,
CHECKIN,
UNCHECKOUT,
MKWORKSPACE,
UPDATE,
LABEL,
MERGE,
BASELINECONTROL,
MKACTIVITY,
// Ordered Collections Protocol, RFC 3648
ORDERPATCH,
// Access Control Protocol, RFC 3744
ACL
}
/**
Returns the string representation of the given HttpMethod.
*/
string httpMethodString(HTTPMethod m)
@safe nothrow {
switch(m){
case HTTPMethod.BASELINECONTROL: return "BASELINE-CONTROL";
case HTTPMethod.VERSIONCONTROL: return "VERSION-CONTROL";
default:
try return to!string(m);
catch (Exception e) assert(false, e.msg);
}
}
/**
Returns the HttpMethod value matching the given HTTP method string.
*/
HTTPMethod httpMethodFromString(string str)
@safe {
switch(str){
default: throw new Exception("Invalid HTTP method: "~str);
// HTTP standard, RFC 2616
case "GET": return HTTPMethod.GET;
case "HEAD": return HTTPMethod.HEAD;
case "PUT": return HTTPMethod.PUT;
case "POST": return HTTPMethod.POST;
case "PATCH": return HTTPMethod.PATCH;
case "DELETE": return HTTPMethod.DELETE;
case "OPTIONS": return HTTPMethod.OPTIONS;
case "TRACE": return HTTPMethod.TRACE;
case "CONNECT": return HTTPMethod.CONNECT;
// WEBDAV extensions, RFC 2518
case "PROPFIND": return HTTPMethod.PROPFIND;
case "PROPPATCH": return HTTPMethod.PROPPATCH;
case "MKCOL": return HTTPMethod.MKCOL;
case "COPY": return HTTPMethod.COPY;
case "MOVE": return HTTPMethod.MOVE;
case "LOCK": return HTTPMethod.LOCK;
case "UNLOCK": return HTTPMethod.UNLOCK;
// Versioning Extensions to WebDAV, RFC 3253
case "VERSION-CONTROL": return HTTPMethod.VERSIONCONTROL;
case "REPORT": return HTTPMethod.REPORT;
case "CHECKOUT": return HTTPMethod.CHECKOUT;
case "CHECKIN": return HTTPMethod.CHECKIN;
case "UNCHECKOUT": return HTTPMethod.UNCHECKOUT;
case "MKWORKSPACE": return HTTPMethod.MKWORKSPACE;
case "UPDATE": return HTTPMethod.UPDATE;
case "LABEL": return HTTPMethod.LABEL;
case "MERGE": return HTTPMethod.MERGE;
case "BASELINE-CONTROL": return HTTPMethod.BASELINECONTROL;
case "MKACTIVITY": return HTTPMethod.MKACTIVITY;
// Ordered Collections Protocol, RFC 3648
case "ORDERPATCH": return HTTPMethod.ORDERPATCH;
// Access Control Protocol, RFC 3744
case "ACL": return HTTPMethod.ACL;
}
}
unittest
{
assert(httpMethodString(HTTPMethod.GET) == "GET");
assert(httpMethodString(HTTPMethod.UNLOCK) == "UNLOCK");
assert(httpMethodString(HTTPMethod.VERSIONCONTROL) == "VERSION-CONTROL");
assert(httpMethodString(HTTPMethod.BASELINECONTROL) == "BASELINE-CONTROL");
assert(httpMethodFromString("GET") == HTTPMethod.GET);
assert(httpMethodFromString("UNLOCK") == HTTPMethod.UNLOCK);
assert(httpMethodFromString("VERSION-CONTROL") == HTTPMethod.VERSIONCONTROL);
}
/**
Utility function that throws a HTTPStatusException if the _condition is not met.
*/
T enforceHTTP(T)(T condition, HTTPStatus statusCode, lazy string message = null, string file = __FILE__, typeof(__LINE__) line = __LINE__)
{
return enforce(condition, new HTTPStatusException(statusCode, message, file, line));
}
/**
Utility function that throws a HTTPStatusException with status code "400 Bad Request" if the _condition is not met.
*/
T enforceBadRequest(T)(T condition, lazy string message = null, string file = __FILE__, typeof(__LINE__) line = __LINE__)
{
return enforceHTTP(condition, HTTPStatus.badRequest, message, file, line);
}
/**
Represents an HTTP request made to a server.
*/
class HTTPRequest {
@safe:
protected {
InterfaceProxy!Stream m_conn;
}
public {
/// The HTTP protocol version used for the request
HTTPVersion httpVersion = HTTPVersion.HTTP_1_1;
/// The HTTP _method of the request
HTTPMethod method = HTTPMethod.GET;
/** The request URI
Note that the request URI usually does not include the global
'http://server' part, but only the local path and a query string.
A possible exception is a proxy server, which will get full URLs.
*/
string requestURI = "/";
/// Compatibility alias - scheduled for deprecation
alias requestURL = requestURI;
/// All request _headers
InetHeaderMap headers;
}
protected this(InterfaceProxy!Stream conn)
{
m_conn = conn;
}
protected this()
{
}
public override string toString()
{
return httpMethodString(method) ~ " " ~ requestURL ~ " " ~ getHTTPVersionString(httpVersion);
}
/** Shortcut to the 'Host' header (always present for HTTP 1.1)
*/
@property string host() const { auto ph = "Host" in headers; return ph ? *ph : null; }
/// ditto
@property void host(string v) { headers["Host"] = v; }
/** Returns the mime type part of the 'Content-Type' header.
This function gets the pure mime type (e.g. "text/plain")
without any supplimentary parameters such as "charset=...".
Use contentTypeParameters to get any parameter string or
headers["Content-Type"] to get the raw value.
*/
@property string contentType()
const {
auto pv = "Content-Type" in headers;
if( !pv ) return null;
auto idx = std.string.indexOf(*pv, ';');
return idx >= 0 ? (*pv)[0 .. idx] : *pv;
}
/// ditto
@property void contentType(string ct) { headers["Content-Type"] = ct; }
/** Returns any supplementary parameters of the 'Content-Type' header.
This is a semicolon separated ist of key/value pairs. Usually, if set,
this contains the character set used for text based content types.
*/
@property string contentTypeParameters()
const {
auto pv = "Content-Type" in headers;
if( !pv ) return null;
auto idx = std.string.indexOf(*pv, ';');
return idx >= 0 ? (*pv)[idx+1 .. $] : null;
}
/** Determines if the connection persists across requests.
*/
@property bool persistent() const
{
auto ph = "connection" in headers;
switch(httpVersion) {
case HTTPVersion.HTTP_1_0:
if (ph && asLowerCase(*ph).equal("keep-alive")) return true;
return false;
case HTTPVersion.HTTP_1_1:
if (ph && !(asLowerCase(*ph).equal("keep-alive"))) return false;
return true;
default:
return false;
}
}
}
/**
Represents the HTTP response from the server back to the client.
*/
class HTTPResponse {
@safe:
protected DictionaryList!Cookie m_cookies;
public {
/// The protocol version of the response - should not be changed
HTTPVersion httpVersion = HTTPVersion.HTTP_1_1;
/// The status code of the response, 200 by default
int statusCode = HTTPStatus.OK;
/** The status phrase of the response
If no phrase is set, a default one corresponding to the status code will be used.
*/
string statusPhrase;
/// The response header fields
InetHeaderMap headers;
/// All cookies that shall be set on the client for this request
@property ref DictionaryList!Cookie cookies() { return m_cookies; }
}
public override string toString()
{
auto app = appender!string();
formattedWrite(app, "%s %d %s", getHTTPVersionString(this.httpVersion), this.statusCode, this.statusPhrase);
return app.data;
}
/** Shortcut to the "Content-Type" header
*/
@property string contentType() const { auto pct = "Content-Type" in headers; return pct ? *pct : "application/octet-stream"; }
/// ditto
@property void contentType(string ct) { headers["Content-Type"] = ct; }
}
/**
Respresents a HTTP response status.
Throwing this exception from within a request handler will produce a matching error page.
*/
class HTTPStatusException : Exception {
pure nothrow @safe @nogc:
private {
int m_status;
}
this(int status, string message = null, string file = __FILE__, size_t line = __LINE__, Throwable next = null)
{
super(message.length ? message : httpStatusText(status), file, line, next);
m_status = status;
}
/// The HTTP status code
@property int status() const { return m_status; }
string debugMessage;
}
final class MultiPart {
string contentType;
InputStream stream;
//JsonValue json;
string[string] form;
}
/**
* Returns:
* The version string corresponding to the `ver`,
* suitable for usage in the start line of the request.
*/
string getHTTPVersionString(HTTPVersion ver)
nothrow pure @nogc @safe {
final switch(ver){
case HTTPVersion.HTTP_1_0: return "HTTP/1.0";
case HTTPVersion.HTTP_1_1: return "HTTP/1.1";
case HTTPVersion.HTTP_2: return "HTTP/2";
}
}
HTTPVersion parseHTTPVersion(ref string str)
@safe {
enforceBadRequest(str.startsWith("HTTP/"));
str = str[5 .. $];
int majorVersion = parse!int(str);
enforceBadRequest(str.startsWith("."));
str = str[1 .. $];
int minorVersion = parse!int(str);
enforceBadRequest( majorVersion == 1 && (minorVersion == 0 || minorVersion == 1) );
return minorVersion == 0 ? HTTPVersion.HTTP_1_0 : HTTPVersion.HTTP_1_1;
}
/**
Takes an input stream that contains data in HTTP chunked format and outputs the raw data.
*/
final class ChunkedInputStream : InputStream
{
@safe:
private {
InterfaceProxy!InputStream m_in;
ulong m_bytesInCurrentChunk = 0;
}
deprecated("Use createChunkedInputStream() instead.")
this(InputStream stream)
{
this(interfaceProxy!InputStream(stream), true);
}
/// private
this(InterfaceProxy!InputStream stream, bool dummy)
{
assert(!!stream);
m_in = stream;
readChunk();
}
@property bool empty() const { return m_bytesInCurrentChunk == 0; }
@property ulong leastSize() const { return m_bytesInCurrentChunk; }
@property bool dataAvailableForRead() { return m_bytesInCurrentChunk > 0 && m_in.dataAvailableForRead; }
const(ubyte)[] peek()
{
auto dt = m_in.peek();
return dt[0 .. min(dt.length, m_bytesInCurrentChunk)];
}
size_t read(scope ubyte[] dst, IOMode mode)
{
enforceBadRequest(!empty, "Read past end of chunked stream.");
size_t nbytes = 0;
while (dst.length > 0) {
enforceBadRequest(m_bytesInCurrentChunk > 0, "Reading past end of chunked HTTP stream.");
auto sz = cast(size_t)min(m_bytesInCurrentChunk, dst.length);
m_in.read(dst[0 .. sz]);
dst = dst[sz .. $];
m_bytesInCurrentChunk -= sz;
nbytes += sz;
// FIXME: this blocks, but shouldn't for IOMode.once/immediat
if( m_bytesInCurrentChunk == 0 ){
// skip current chunk footer and read next chunk
ubyte[2] crlf;
m_in.read(crlf);
enforceBadRequest(crlf[0] == '\r' && crlf[1] == '\n');
readChunk();
}
if (mode != IOMode.all) break;
}
return nbytes;
}
alias read = InputStream.read;
private void readChunk()
{
assert(m_bytesInCurrentChunk == 0);
// read chunk header
logTrace("read next chunk header");
auto ln = () @trusted { return cast(string)m_in.readLine(); } ();
logTrace("got chunk header: %s", ln);
m_bytesInCurrentChunk = parse!ulong(ln, 16u);
if( m_bytesInCurrentChunk == 0 ){
// empty chunk denotes the end
// skip final chunk footer
ubyte[2] crlf;
m_in.read(crlf);
enforceBadRequest(crlf[0] == '\r' && crlf[1] == '\n');
}
}
}
/// Creates a new `ChunkedInputStream` instance.
ChunkedInputStream chunkedInputStream(IS)(IS source_stream) if (isInputStream!IS)
{
return new ChunkedInputStream(interfaceProxy!InputStream(source_stream), true);
}
/// Creates a new `ChunkedInputStream` instance.
FreeListRef!ChunkedInputStream createChunkedInputStreamFL(IS)(IS source_stream) if (isInputStream!IS)
{
return () @trusted { return FreeListRef!ChunkedInputStream(interfaceProxy!InputStream(source_stream), true); } ();
}
/**
Outputs data to an output stream in HTTP chunked format.
*/
final class ChunkedOutputStream : OutputStream {
@safe:
alias ChunkExtensionCallback = string delegate(in ubyte[] data);
private {
InterfaceProxy!OutputStream m_out;
AllocAppender!(ubyte[]) m_buffer;
size_t m_maxBufferSize = 4*1024;
bool m_finalized = false;
ChunkExtensionCallback m_chunkExtensionCallback = null;
}
deprecated("Use createChunkedOutputStream() instead.")
this(OutputStream stream, IAllocator alloc = vibeThreadAllocator())
{
this(interfaceProxy!OutputStream(stream), alloc, true);
}
/// private
this(InterfaceProxy!OutputStream stream, IAllocator alloc, bool dummy)
{
m_out = stream;
m_buffer = AllocAppender!(ubyte[])(alloc);
}
/** Maximum buffer size used to buffer individual chunks.
A size of zero means unlimited buffer size. Explicit flush is required
in this case to empty the buffer.
*/
@property size_t maxBufferSize() const { return m_maxBufferSize; }
/// ditto
@property void maxBufferSize(size_t bytes) { m_maxBufferSize = bytes; if (m_buffer.data.length >= m_maxBufferSize) flush(); }
/** A delegate used to specify the extensions for each chunk written to the underlying stream.
The delegate has to be of type `string delegate(in const(ubyte)[] data)` and gets handed the
data of each chunk before it is written to the underlying stream. If it's return value is non-empty,
it will be added to the chunk's header line.
The returned chunk extension string should be of the format `key1=value1;key2=value2;[...];keyN=valueN`
and **not contain any carriage return or newline characters**.
Also note that the delegate should accept the passed data through a scoped argument. Thus, **no references
to the provided data should be stored in the delegate**. If the data has to be stored for later use,
it needs to be copied first.
*/
@property ChunkExtensionCallback chunkExtensionCallback() const { return m_chunkExtensionCallback; }
/// ditto
@property void chunkExtensionCallback(ChunkExtensionCallback cb) { m_chunkExtensionCallback = cb; }
private void append(scope void delegate(scope ubyte[] dst) @safe del, size_t nbytes)
{
assert(del !is null);
auto sz = nbytes;
if (m_maxBufferSize > 0 && m_maxBufferSize < m_buffer.data.length + sz)
sz = m_maxBufferSize - min(m_buffer.data.length, m_maxBufferSize);
if (sz > 0)
{
m_buffer.reserve(sz);
() @trusted {
m_buffer.append((scope ubyte[] dst) {
debug assert(dst.length >= sz);
del(dst[0..sz]);
return sz;
});
} ();
}
}
size_t write(in ubyte[] bytes_, IOMode mode)
{
assert(!m_finalized);
const(ubyte)[] bytes = bytes_;
size_t nbytes = 0;
while (bytes.length > 0) {
append((scope ubyte[] dst) {
auto n = dst.length;
dst[] = bytes[0..n];
bytes = bytes[n..$];
nbytes += n;
}, bytes.length);
if (mode == IOMode.immediate) break;
if (mode == IOMode.once && nbytes > 0) break;
if (bytes.length > 0)
flush();
}
return nbytes;
}
alias write = OutputStream.write;
void flush()
{
assert(!m_finalized);
auto data = m_buffer.data();
if( data.length ){
writeChunk(data);
}
m_out.flush();
() @trusted { m_buffer.reset(AppenderResetMode.reuseData); } ();
}
void finalize()
{
if (m_finalized) return;
flush();
() @trusted { m_buffer.reset(AppenderResetMode.freeData); } ();
m_finalized = true;
writeChunk([]);
m_out.flush();
}
private void writeChunk(in ubyte[] data)
{
import vibe.stream.wrapper;
auto rng = streamOutputRange(m_out);
formattedWrite(() @trusted { return &rng; } (), "%x", data.length);
if (m_chunkExtensionCallback !is null)
{
rng.put(';');
auto extension = m_chunkExtensionCallback(data);
assert(!extension.startsWith(';'));
debug assert(extension.indexOf('\r') < 0);
debug assert(extension.indexOf('\n') < 0);
rng.put(extension);
}
rng.put("\r\n");
rng.put(data);
rng.put("\r\n");
}
}
/// Creates a new `ChunkedInputStream` instance.
ChunkedOutputStream createChunkedOutputStream(OS)(OS destination_stream, IAllocator allocator = theAllocator()) if (isOutputStream!OS)
{
return new ChunkedOutputStream(interfaceProxy!OutputStream(destination_stream), allocator, true);
}
/// Creates a new `ChunkedOutputStream` instance.
FreeListRef!ChunkedOutputStream createChunkedOutputStreamFL(OS)(OS destination_stream, IAllocator allocator = theAllocator()) if (isOutputStream!OS)
{
return FreeListRef!ChunkedOutputStream(interfaceProxy!OutputStream(destination_stream), allocator, true);
}
/// Parses the cookie from a header field, returning the name of the cookie.
/// Implements an algorithm equivalent to https://tools.ietf.org/html/rfc6265#section-5.2
/// Returns: the cookie name as return value, populates the dst argument or allocates on the GC for the tuple overload.
string parseHTTPCookie(string header_string, scope Cookie dst)
@safe
in {
assert(dst !is null);
} body {
if (!header_string.length)
return typeof(return).init;
auto parts = header_string.splitter(';');
auto idx = parts.front.indexOf('=');
if (idx == -1)
return typeof(return).init;
auto name = parts.front[0 .. idx].strip();
dst.m_value = parts.front[name.length + 1 .. $].strip();
parts.popFront();
if (!name.length)
return typeof(return).init;
foreach(part; parts) {
if (!part.length)
continue;
idx = part.indexOf('=');
if (idx == -1) {
idx = part.length;
}
auto key = part[0 .. idx].strip();
auto value = part[min(idx + 1, $) .. $].strip();
try {
if (key.sicmp("httponly") == 0) {
dst.m_httpOnly = true;
} else if (key.sicmp("secure") == 0) {
dst.m_secure = true;
} else if (key.sicmp("expires") == 0) {
// RFC 822 got updated by RFC 1123 (which is to be used) but is valid for this
// this parsing is just for validation
parseRFC822DateTimeString(value);
dst.m_expires = value;
} else if (key.sicmp("max-age") == 0) {
if (value.length && value[0] != '-')
dst.m_maxAge = value.to!long;
} else if (key.sicmp("domain") == 0) {
if (value.length && value[0] == '.')
value = value[1 .. $]; // the leading . must be stripped (5.2.3)
enforce!ConvException(value.all!(a => a >= 32), "Cookie Domain must not contain any control characters");
dst.m_domain = value.toLower; // must be lower (5.2.3)
} else if (key.sicmp("path") == 0) {
if (value.length && value[0] == '/') {
enforce!ConvException(value.all!(a => a >= 32), "Cookie Path must not contain any control characters");
dst.m_path = value;
} else {
dst.m_path = null;
}
} // else extension value...
} catch (DateTimeException) {
} catch (ConvException) {
}
// RFC 6265 says to ignore invalid values on all of these fields
}
return name;
}
/// ditto
Tuple!(string, Cookie) parseHTTPCookie(string header_string)
@safe {
Cookie cookie = new Cookie();
auto name = parseHTTPCookie(header_string, cookie);
return tuple(name, cookie);
}
final class Cookie {
@safe:
private {
string m_value;
string m_domain;
string m_path;
string m_expires;
long m_maxAge;
bool m_secure;
bool m_httpOnly;
SameSite m_sameSite;
}
enum Encoding {
url,
raw,
none = raw
}
enum SameSite {
default_,
lax,
strict,
}
/// Cookie payload
@property void value(string value) { m_value = urlEncode(value); }
/// ditto
@property string value() const { return urlDecode(m_value); }
/// Undecoded cookie payload
@property void rawValue(string value) { m_value = value; }
/// ditto
@property string rawValue() const { return m_value; }
/// The domain for which the cookie is valid
@property void domain(string value) { m_domain = value; }
/// ditto
@property string domain() const { return m_domain; }
/// The path/local URI for which the cookie is valid
@property void path(string value) { m_path = value; }
/// ditto
@property string path() const { return m_path; }
/// Expiration date of the cookie
@property void expires(string value) { m_expires = value; }
/// ditto
@property void expires(SysTime value) { m_expires = value.toRFC822DateTimeString(); }
/// ditto
@property string expires() const { return m_expires; }
/** Maximum life time of the cookie
This is the modern variant of `expires`. For backwards compatibility it
is recommended to set both properties, or to use the `expire` method.
*/
@property void maxAge(long value) { m_maxAge = value; }
/// ditto
@property void maxAge(Duration value) { m_maxAge = value.total!"seconds"; }
/// ditto
@property long maxAge() const { return m_maxAge; }
/** Require a secure connection for transmission of this cookie
*/
@property void secure(bool value) { m_secure = value; }
/// ditto
@property bool secure() const { return m_secure; }
/** Prevents access to the cookie from scripts.
*/
@property void httpOnly(bool value) { m_httpOnly = value; }
/// ditto
@property bool httpOnly() const { return m_httpOnly; }
/** Prevent cross-site request forgery.
*/
@property void sameSite(Cookie.SameSite value) { m_sameSite = value; }
/// ditto
@property Cookie.SameSite sameSite() const { return m_sameSite; }
/** Sets the "expires" and "max-age" attributes to limit the life time of
the cookie.
*/
void expire(Duration max_age)
{
this.expires = Clock.currTime(UTC()) + max_age;
this.maxAge = max_age;
}
/// ditto
void expire(SysTime expire_time)
{
this.expires = expire_time;
this.maxAge = expire_time - Clock.currTime(UTC());
}
/// Sets the cookie value encoded with the specified encoding.
void setValue(string value, Encoding encoding)
{
final switch (encoding) {
case Encoding.url: m_value = urlEncode(value); break;
case Encoding.none: validateValue(value); m_value = value; break;
}
}
/// Writes out the full cookie in HTTP compatible format.
void writeString(R)(R dst, string name)
if (isOutputRange!(R, char))
{
import vibe.textfilter.urlencode;
dst.put(name);
dst.put('=');
validateValue(this.value);
dst.put(this.value);
if (this.domain && this.domain != "") {
dst.put("; Domain=");
dst.put(this.domain);
}
if (this.path != "") {
dst.put("; Path=");
dst.put(this.path);
}
if (this.expires != "") {
dst.put("; Expires=");
dst.put(this.expires);
}
if (this.maxAge) dst.formattedWrite("; Max-Age=%s", this.maxAge);
if (this.secure) dst.put("; Secure");
if (this.httpOnly) dst.put("; HttpOnly");
with(Cookie.SameSite)
final switch(this.sameSite) {
case default_: break;
case lax: dst.put("; SameSite=Lax"); break;
case strict: dst.put("; SameSite=Strict"); break;
}
}
private static void validateValue(string value)
{
enforce(!value.canFind(';') && !value.canFind('"'));
}
}
unittest {
import std.exception : assertThrown;
auto c = new Cookie;
c.value = "foo";
assert(c.value == "foo");
assert(c.rawValue == "foo");
c.value = "foo$";
assert(c.value == "foo$");
assert(c.rawValue == "foo%24", c.rawValue);
c.value = "foo&bar=baz?";
assert(c.value == "foo&bar=baz?");
assert(c.rawValue == "foo%26bar%3Dbaz%3F", c.rawValue);
c.setValue("foo%", Cookie.Encoding.raw);
assert(c.rawValue == "foo%");
assertThrown(c.value);
assertThrown(c.setValue("foo;bar", Cookie.Encoding.raw));
auto tup = parseHTTPCookie("foo=bar; HttpOnly; Secure; Expires=Wed, 09 Jun 2021 10:18:14 GMT; Max-Age=60000; Domain=foo.com; Path=/users");
assert(tup[0] == "foo");
assert(tup[1].value == "bar");
assert(tup[1].httpOnly == true);
assert(tup[1].secure == true);
assert(tup[1].expires == "Wed, 09 Jun 2021 10:18:14 GMT");
assert(tup[1].maxAge == 60000L);
assert(tup[1].domain == "foo.com");
assert(tup[1].path == "/users");
tup = parseHTTPCookie("SESSIONID=0123456789ABCDEF0123456789ABCDEF; Path=/site; HttpOnly");
assert(tup[0] == "SESSIONID");
assert(tup[1].value == "0123456789ABCDEF0123456789ABCDEF");
assert(tup[1].httpOnly == true);
assert(tup[1].secure == false);
assert(tup[1].expires == "");
assert(tup[1].maxAge == 0);
assert(tup[1].domain == "");
assert(tup[1].path == "/site");
tup = parseHTTPCookie("invalid");
assert(!tup[0].length);
tup = parseHTTPCookie("valid=");
assert(tup[0] == "valid");
assert(tup[1].value == "");
tup = parseHTTPCookie("valid=;Path=/bar;Path=foo;Expires=14 ; Something ; Domain=..example.org");
assert(tup[0] == "valid");
assert(tup[1].value == "");
assert(tup[1].httpOnly == false);
assert(tup[1].secure == false);
assert(tup[1].expires == "");
assert(tup[1].maxAge == 0);
assert(tup[1].domain == ".example.org"); // spec says you must strip only the first leading dot
assert(tup[1].path == "");
}
/**
*/
struct CookieValueMap {
@safe:
struct Cookie {
/// Name of the cookie
string name;
/// The raw cookie value as transferred over the wire
string rawValue;
this(string name, string value, .Cookie.Encoding encoding = .Cookie.Encoding.url)
{
this.name = name;
this.setValue(value, encoding);
}
/// Treats the value as URL encoded
string value() const { return urlDecode(rawValue); }
/// ditto
void value(string val) { rawValue = urlEncode(val); }
/// Sets the cookie value, applying the specified encoding.
void setValue(string value, .Cookie.Encoding encoding = .Cookie.Encoding.url)
{
final switch (encoding) {
case .Cookie.Encoding.none: this.rawValue = value; break;
case .Cookie.Encoding.url: this.rawValue = urlEncode(value); break;
}
}
}
private {
Cookie[] m_entries;
}
auto length(){
return m_entries.length;
}
string get(string name, string def_value = null)
const {
foreach (ref c; m_entries)
if (c.name == name)
return c.value;
return def_value;
}
string[] getAll(string name)
const {
string[] ret;
foreach(c; m_entries)
if( c.name == name )
ret ~= c.value;
return ret;
}
void add(string name, string value, .Cookie.Encoding encoding = .Cookie.Encoding.url){
m_entries ~= Cookie(name, value, encoding);
}
void opIndexAssign(string value, string name)
{
m_entries ~= Cookie(name, value);
}
string opIndex(string name)
const {
import core.exception : RangeError;
foreach (ref c; m_entries)
if (c.name == name)
return c.value;
throw new RangeError("Non-existent cookie: "~name);
}
int opApply(scope int delegate(ref Cookie) @safe del)
{
foreach(ref c; m_entries)
if( auto ret = del(c) )
return ret;
return 0;
}
int opApply(scope int delegate(ref Cookie) @safe del)
const {
foreach(Cookie c; m_entries)
if( auto ret = del(c) )
return ret;
return 0;
}
int opApply(scope int delegate(string name, string value) @safe del)
{
foreach(ref c; m_entries)
if( auto ret = del(c.name, c.value) )
return ret;
return 0;
}
int opApply(scope int delegate(string name, string value) @safe del)
const {
foreach(Cookie c; m_entries)
if( auto ret = del(c.name, c.value) )
return ret;
return 0;
}
auto opBinaryRight(string op)(string name) if(op == "in")
{
return Ptr(&this, name);
}
auto opBinaryRight(string op)(string name) const if(op == "in")
{
return const(Ptr)(&this, name);
}
private static struct Ref {
private {
CookieValueMap* map;
string name;
}
@property string get() const { return (*map)[name]; }
void opAssign(string newval) {
foreach (ref c; *map)
if (c.name == name) {
c.value = newval;
return;
}
assert(false);
}
alias get this;
}
private static struct Ptr {
private {
CookieValueMap* map;
string name;
}
bool opCast() const {
foreach (ref c; map.m_entries)
if (c.name == name)
return true;
return false;
}
inout(Ref) opUnary(string op : "*")() inout { return inout(Ref)(map, name); }
}
}
unittest {
CookieValueMap m;
m["foo"] = "bar;baz%1";
assert(m["foo"] == "bar;baz%1");
m["foo"] = "bar";
assert(m.getAll("foo") == ["bar;baz%1", "bar"]);
assert("foo" in m);
if (auto val = "foo" in m) {
assert(*val == "bar;baz%1");
} else assert(false);
*("foo" in m) = "baz";
assert(m["foo"] == "baz");
}
|
D
|
/*
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
module derelict.opengl.extensions.arb_a;
import derelict.opengl.types : usingContexts;
import derelict.opengl.extensions.internal;
// ARB_array_of_arrays <-- Core in GL 4.3
enum ARB_array_of_arrays = "GL_ARB_array_of_arrays";
enum arbArrayOfArraysLoader = makeLoader(ARB_array_of_arrays, "", "gl43");
static if(!usingContexts) enum arbArrayOfArrays = arbArrayOfArraysLoader;
|
D
|
/*******************************************************************************
* Copyright (c) 2000, 2007 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
* Port to the D programming language:
* Frank Benoit <benoit@tionex.de>
*******************************************************************************/
module dwtx.ui.internal.forms.widgets.Locator;
import dwt.dwthelper.utils;
import dwtx.dwtxhelper.Collection;
public class Locator : Cloneable {
public int indent;
public int x, y;
public int width;
public int leading;
public int rowHeight;
public int marginWidth;
public int marginHeight;
public int rowCounter;
public ArrayList heights;
public Locator clone(){
auto res = new Locator();
res.indent = indent;
res.x = x;
res.y = y;
res.width = width;
res.leading = leading;
res.rowHeight = rowHeight;
res.marginWidth = marginWidth;
res.marginHeight = marginHeight;
res.rowCounter = rowCounter;
res.heights = heights;
return res;
}
public void newLine() {
resetCaret();
y += rowHeight;
rowHeight = 0;
}
public Locator create() {
// try {
return cast(Locator)clone();
// }
// catch (CloneNotSupportedException e) {
// return null;
// }
}
public void collectHeights() {
heights.add(new ArrayWrapperObject( [ new Integer(rowHeight), new Integer(leading) ] ) );
rowCounter++;
}
public int getBaseline(int segmentHeight) {
return getBaseline(segmentHeight, true);
}
public int getMiddle(int segmentHeight, bool text) {
if (heights !is null && heights.size() > rowCounter) {
Integer [] rdata = arrayFromObject!(Integer)(heights.get(rowCounter));
int rheight = rdata[0].value;
int rleading = rdata[1].value;
if (text)
return y + rheight/2 - segmentHeight/2 - rleading;
return y + rheight/2 - segmentHeight/2;
}
return y;
}
public int getBaseline(int segmentHeight, bool text) {
if (heights !is null && heights.size()>rowCounter) {
Integer [] rdata = arrayFromObject!(Integer)(heights.get(rowCounter));
int rheight = rdata[0].value;
int rleading = rdata[1].value;
if (text)
return y + rheight - segmentHeight - rleading;
return y + rheight - segmentHeight;
}
return y;
}
public void resetCaret() {
x = getStartX();
}
public int getStartX() {
return marginWidth + indent;
}
}
|
D
|
import std.stdio;
import gbemu.emulator;
import std.file : read;
void main()
{
auto emulator = new Emulator();
emulator.loadRom((cast(ubyte[])read("roms/tetris.gb"))[0 .. 32 * 1024]);
emulator.start();
}
|
D
|
// Copyright Michael D. Parker 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
module bindbc.freetype.bind.ftsizes;
import bindbc.freetype.bind.freetype,
bindbc.freetype.bind.fttypes;
version(BindFT_Static) {
extern(C) @nogc nothrow {
FT_Error FT_New_Size(FT_Face,FT_Size*);
FT_Error FT_Done_Size(FT_Size);
FT_Error FT_Activate_Size(FT_Size);
}
}
else {
extern(C) @nogc nothrow {
alias pFT_New_Size = FT_Error function(FT_Face,FT_Size*);
alias pFT_Done_Size = FT_Error function(FT_Size);
alias pFT_Activate_Size = FT_Error function(FT_Size);
}
__gshared {
pFT_New_Size FT_New_Size;
pFT_Done_Size FT_Done_Size;
pFT_Activate_Size FT_Activate_Size;
}
}
|
D
|
func void ZS_Bathing_Babe()
{
PrintDebug("Enter ZS_Bathing_Babe () ");
B_SetBabeDefaultPerceptions();
AI_SetWalkMode(self,NPC_WALK);
PrintDebug("Suche Badewanne !");
if(Wld_IsMobAvailable(self,"BATHTUB"))
{
PrintDebug("Wanne gefunden! Gehe baden");
CreateInvItem(self,bab_armor_nude);
AI_EquipBestArmor(self);
AI_UseMob(self,"BATHTUB",1);
Mdl_ApplyRandomAni(self,"S_BATHTUB_S1","T_BATHTUB_RANDOM1");
Mdl_ApplyRandomAni(self,"S_BATHTUB_S1","T_BATHTUB_RANDOM2");
Mdl_ApplyRandomAniFreq(self,"S_BATHTUB_S1",3);
}
else
{
PrintDebug("No BATHTUB-Mobsi found !");
};
};
func void ZS_Bathing_Babe_Loop()
{
};
func void ZS_Bathing_Babe_End()
{
PrintDebug("Enter ZS_Bathing_Babe_End() ");
AI_UseMob(self,"BATHTUB",-1);
AI_UnequipArmor(self);
Npc_RemoveInvItem(self,bab_armor_nude);
};
|
D
|
/**
This module implements some abstract geometric shapes:
$(UL
$(LI Line segments.)
$(LI Triangle.)
$(LI Circles/spheres.)
$(LI Rays)
$(LI Planes)
$(LI Frustum)
)
*/
module std.experimental.math.linearalgebra.shapes;
import std.math,
std.traits;
import std.experimental.math.linearalgebra.vector,
std.experimental.math.linearalgebra.box;
/// A Segment is 2 points.
/// When considered like a vector, it represents the arrow from a to b.
struct Segment(T, int N)
{
public
{
alias Vector!(T, N) point_t;
point_t a, b;
}
}
alias Segment!(float, 2) seg2f; /// 2D float segment.
alias Segment!(float, 3) seg3f; /// 3D float segment.
alias Segment!(double, 2) seg2d; /// 2D double segment.
alias Segment!(double, 3) seg3d; /// 3D double segment.
alias Segment!(int, 2) seg2i; /// 2D integer segment.
alias Segment!(int, 3) seg3i; /// 3D integer segment.
/// A Triangle is 3 points.
struct Triangle(T, int N)
{
public
{
alias Vector!(T, N) point_t;
point_t a, b, c;
static if (N == 2)
{
/// Returns: Area of a 2D triangle.
@nogc T area() pure const nothrow
{
return abs(signedArea());
}
/// Returns: Signed area of a 2D triangle.
@nogc T signedArea() pure const nothrow
{
return ((b.x * a.y - a.x * b.y)
+ (c.x * b.y - b.x * c.y)
+ (a.x * c.y - c.x * a.y)) / 2;
}
}
static if (N == 3)
{
/// Returns: Triangle normal.
@nogc Vector!(T, 3) computeNormal() pure const nothrow
{
return cross(b - a, c - a).normalized();
}
}
}
}
alias Triangle!(float, 2) triangle2f; /// 2D float triangle.
alias Triangle!(float, 3) triangle3f; /// 3D float triangle.
alias Triangle!(double, 2) triangle2d; /// 2D double triangle.
alias Triangle!(double, 3) triangle3d; /// 3D double triangle.
/// A Sphere is a point + a radius.
struct Sphere(T, int N)
{
public nothrow
{
alias Vector!(T, N) point_t;
point_t center;
T radius;
/// Creates a sphere from a point and a radius.
@nogc this(in point_t center_, T radius_) pure nothrow
{
center = center_;
radius = radius_;
}
/// Sphere contains point test.
/// Returns: true if the point is inside the sphere.
@nogc bool contains(in Sphere s) pure const nothrow
{
if (s.radius > radius)
return false;
T innerRadius = radius - s.radius;
return squaredDistanceTo(s.center) < innerRadius * innerRadius;
}
/// Sphere vs point Euclidean distance squared.
@nogc T squaredDistanceTo(point_t p) pure const nothrow
{
return center.squaredDistanceTo(p);
}
/// Sphere vs sphere intersection.
/// Returns: true if the spheres intersect.
@nogc bool intersects(Sphere s) pure const nothrow
{
T outerRadius = radius + s.radius;
return squaredDistanceTo(s.center) < outerRadius * outerRadius;
}
static if (isFloatingPoint!T)
{
/// Sphere vs point Euclidean distance.
@nogc T distanceTo(point_t p) pure const nothrow
{
return center.distanceTo(p);
}
static if(N == 2)
{
/// Returns: Circle area.
@nogc T area() pure const nothrow
{
return PI * (radius * radius);
}
}
}
}
}
alias Sphere!(float, 2) sphere2f; /// 2D float sphere (ie. a circle).
alias Sphere!(float, 3) sphere3f; /// 3D float sphere.
alias Sphere!(double, 2) sphere2d; /// 2D double sphere (ie. a circle).
alias Sphere!(double, 3) sphere3d; /// 3D double sphere (ie. a circle).
/// A Ray ir a point + a direction.
struct Ray(T, int N)
{
nothrow:
public
{
alias Vector!(T, N) point_t;
point_t orig;
point_t dir;
/// Returns: A point further along the ray direction.
@nogc point_t progress(T t) pure const nothrow
{
return orig + dir * t;
}
static if (N == 3)
{
/// Ray vs triangle intersection.
/// See_also: "Fast, Minimum Storage Ray/Triangle intersection", Mommer & Trumbore (1997)
/// Returns: Barycentric coordinates, the intersection point is at $(D (1 - u - v) * A + u * B + v * C).
@nogc bool intersect(Triangle!(T, 3) triangle, out T t, out T u, out T v) pure const nothrow
{
point_t edge1 = triangle.b - triangle.a;
point_t edge2 = triangle.c - triangle.a;
point_t pvec = cross(dir, edge2);
T det = dot(edge1, pvec);
if (abs(det) < T.epsilon)
return false; // no intersection
T invDet = 1 / det;
// calculate distance from triangle.a to ray origin
point_t tvec = orig - triangle.a;
// calculate U parameter and test bounds
u = dot(tvec, pvec) * invDet;
if (u < 0 || u > 1)
return false;
// prepare to test V parameter
point_t qvec = cross(tvec, edge1);
// calculate V parameter and test bounds
v = dot(dir, qvec) * invDet;
if (v < 0.0 || u + v > 1.0)
return false;
// calculate t, ray intersects triangle
t = dot(edge2, qvec) * invDet;
return true;
}
}
}
}
alias Ray!(float, 2) ray2f; /// 2D float ray.
alias Ray!(float, 3) ray3f; /// 3D float ray.
alias Ray!(double, 2) ray2d; /// 2D double ray.
alias Ray!(double, 3) ray3d; /// 3D double ray.
/// 3D plane.
/// See_also: Flipcode article by Nate Miller $(WEB www.flipcode.com/archives/Plane_Class.shtml).
struct Plane(T) if (isFloatingPoint!T)
{
public
{
vec3!T n; /// Normal (always stored normalized).
T d;
/// Create from four coordinates.
@nogc this(vec4!T abcd) pure nothrow
{
n = vec3!T(abcd.x, abcd.y, abcd.z).normalized();
d = abcd.z;
}
/// Create from a point and a normal.
@nogc this(vec3!T origin, vec3!T normal) pure nothrow
{
n = normal.normalized();
d = -dot(origin, n);
}
/// Create from 3 non-aligned points.
@nogc this(vec3!T A, vec3!T B, vec3!T C) pure nothrow
{
this(C, cross(B - A, C - A));
}
/// Assign a plane with another plane.
@nogc ref Plane opAssign(Plane other) pure nothrow
{
n = other.n;
d = other.d;
return this;
}
/// Returns: signed distance between a point and the plane.
@nogc T signedDistanceTo(vec3!T point) pure const nothrow
{
return dot(n, point) + d;
}
/// Returns: absolute distance between a point and the plane.
@nogc T distanceTo(vec3!T point) pure const nothrow
{
return abs(signedDistanceTo(point));
}
/// Returns: true if the point is in front of the plane.
@nogc bool isFront(vec3!T point) pure const nothrow
{
return signedDistanceTo(point) >= 0;
}
/// Returns: true if the point is in the back of the plane.
@nogc bool isBack(vec3!T point) pure const nothrow
{
return signedDistanceTo(point) < 0;
}
/// Returns: true if the point is on the plane, with a given epsilon.
@nogc bool isOn(vec3!T point, T epsilon) pure const nothrow
{
T sd = signedDistanceTo(point);
return (-epsilon < sd) && (sd < epsilon);
}
}
}
alias Plane!float planef; /// 3D float plane.
alias Plane!double planed; /// 3D double plane.
unittest
{
auto p = planed(vec4d(1.0, 2.0, 3.0, 4.0));
auto p2 = planed(vec3d(1.0, 0.0, 0.0),
vec3d(0.0, 1.0, 0.0),
vec3d(0.0, 0.0, 1.0));
assert(p2.isOn(vec3d(1.0, 0.0, 0.0), 1e-7));
assert(p2.isFront(vec3d(1.0, 1.0, 1.0)));
assert(p2.isBack(vec3d(0.0, 0.0, 0.0)));
}
/// 3D frustum.
/// See_also: Flipcode article by Dion Picco $(WEB www.flipcode.com/archives/Frustum_Culling.shtml).
/// Bugs: verify proper signedness of half-spaces
struct Frustum(T) if (isFloatingPoint!T)
{
public
{
enum int LEFT = 0,
RIGHT = 1,
TOP = 2,
BOTTOM = 3,
NEAR = 4,
FAR = 5;
Plane!T[6] planes;
/// Create a frustum from 6 planes.
@nogc this(Plane!T left, Plane!T right, Plane!T top, Plane!T bottom, Plane!T near, Plane!T far) pure nothrow
{
planes[LEFT] = left;
planes[RIGHT] = right;
planes[TOP] = top;
planes[BOTTOM] = bottom;
planes[NEAR] = near;
planes[FAR] = far;
}
enum : int
{
OUTSIDE, /// object is outside the frustum
INTERSECT, /// object intersects with the frustum
INSIDE /// object is inside the frustum
}
/// Point vs frustum intersection.
@nogc bool contains(vec3!T point) pure const nothrow
{
for(int i = 0; i < 6; ++i)
{
T distance = planes[i].signedDistanceTo(point);
if(distance < 0)
return false;
}
return true;
}
/// Sphere vs frustum intersection.
/// Returns: Frustum.OUTSIDE, Frustum.INTERSECT or Frustum.INSIDE.
@nogc int contains(Sphere!(T, 3) sphere) pure const nothrow
{
// calculate our distances to each of the planes
for(int i = 0; i < 6; ++i)
{
// find the distance to this plane
T distance = planes[i].signedDistanceTo(sphere.center);
if(distance < -sphere.radius)
return OUTSIDE;
else if (distance < sphere.radius)
return INTERSECT;
}
// otherwise we are fully in view
return INSIDE;
}
/// AABB vs frustum intersection.
/// Returns: Frustum.OUTSIDE, Frustum.INTERSECT or Frustum.INSIDE.
@nogc int contains(box3!T box) pure const nothrow
{
vec3!T[8] corners;
int totalIn = 0;
for (int i = 0; i < 2; ++i)
for (int j = 0; j < 2; ++j)
for (int k = 0; k < 2; ++k)
{
auto x = i == 0 ? box.min.x : box.max.x;
auto y = i == 0 ? box.min.y : box.max.y;
auto z = i == 0 ? box.min.z : box.max.z;
corners[i*4 + j*2 + k] = vec3!T(x, y, z);
}
// test all 8 corners against the 6 sides
// if all points are behind 1 specific plane, we are out
// if we are in with all points, then we are fully in
for(int p = 0; p < 6; ++p)
{
int inCount = 8;
int ptIn = 1;
for(int i = 0; i < 8; ++i)
{
// test this point against the planes
if (planes[p].isBack(corners[i]))
{
ptIn = 0;
--inCount;
}
}
// were all the points outside of plane p?
if (inCount == 0)
return OUTSIDE;
// check if they were all on the right side of the plane
totalIn += ptIn;
}
// so if totalIn is 6, then all are inside the view
if(totalIn == 6)
return INSIDE;
// we must be partly in then otherwise
return INTERSECT;
}
}
}
unittest
{
seg2f se;
triangle3f tr;
Frustum!double frust;
planed pl;
}
|
D
|
instance DIA_Addon_Emilio_EXIT(C_Info)
{
npc = BDT_10015_Addon_Emilio;
nr = 999;
condition = DIA_Addon_Emilio_EXIT_Condition;
information = DIA_Addon_Emilio_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Addon_Emilio_EXIT_Condition()
{
return TRUE;
};
func void DIA_Addon_Emilio_EXIT_Info()
{
AI_StopProcessInfos(self);
};
instance DIA_Addon_Emilio_PICKPOCKET(C_Info)
{
npc = BDT_10015_Addon_Emilio;
nr = 900;
condition = DIA_Addon_Emilio_PICKPOCKET_Condition;
information = DIA_Addon_Emilio_PICKPOCKET_Info;
permanent = TRUE;
description = Pickpocket_80;
};
func int DIA_Addon_Emilio_PICKPOCKET_Condition()
{
return C_Beklauen(76,112);
};
func void DIA_Addon_Emilio_PICKPOCKET_Info()
{
Info_ClearChoices(DIA_Addon_Emilio_PICKPOCKET);
Info_AddChoice(DIA_Addon_Emilio_PICKPOCKET,Dialog_Back,DIA_Addon_Emilio_PICKPOCKET_BACK);
Info_AddChoice(DIA_Addon_Emilio_PICKPOCKET,DIALOG_PICKPOCKET,DIA_Addon_Emilio_PICKPOCKET_DoIt);
};
func void DIA_Addon_Emilio_PICKPOCKET_DoIt()
{
B_Beklauen();
Info_ClearChoices(DIA_Addon_Emilio_PICKPOCKET);
};
func void DIA_Addon_Emilio_PICKPOCKET_BACK()
{
Info_ClearChoices(DIA_Addon_Emilio_PICKPOCKET);
};
instance DIA_Addon_BDT_10015_Emilio_Hi(C_Info)
{
npc = BDT_10015_Addon_Emilio;
nr = 1;
condition = DIA_Addon_Emilio_Hi_Condition;
information = DIA_Addon_Emilio_Hi_Info;
permanent = FALSE;
description = "Ты выглядишь, как рудокоп.";
};
func int DIA_Addon_Emilio_Hi_Condition()
{
return TRUE;
};
func void DIA_Addon_Emilio_Hi_Info()
{
AI_Output(other,self,"DIA_Addon_BDT_10015_Emilio_Hi_15_00"); //Ты выглядишь, как рудокоп.
AI_Output(self,other,"DIA_Addon_BDT_10015_Emilio_Hi_10_01"); //Я и есть рудокоп. Последний раз, когда я был в шахте, я устал как собака.
if(SC_KnowsRavensGoldmine == FALSE)
{
B_LogEntry(TOPIC_Addon_RavenKDW,LogText_Addon_RavensGoldmine);
Log_AddEntry(TOPIC_Addon_Sklaven,LogText_Addon_RavensGoldmine);
B_LogEntry(TOPIC_Addon_ScoutBandits,Log_Text_Addon_ScoutBandits);
};
SC_KnowsRavensGoldmine = TRUE;
};
instance DIA_Addon_BDT_10015_Emilio_Gold(C_Info)
{
npc = BDT_10015_Addon_Emilio;
nr = 2;
condition = DIA_Addon_Emilio_Gold_Condition;
information = DIA_Addon_Emilio_Gold_Info;
permanent = FALSE;
description = "Куда девается золото, которое вы добываете?";
};
func int DIA_Addon_Emilio_Gold_Condition()
{
if(Npc_KnowsInfo(other,DIA_Addon_BDT_10015_Emilio_Hi))
{
return TRUE;
};
};
func void DIA_Addon_Emilio_Gold_Info()
{
AI_Output(other,self,"DIA_Addon_BDT_10015_Emilio_Gold_15_00"); //Куда девается золото, которое вы добываете?
AI_Output(self,other,"DIA_Addon_BDT_10015_Emilio_Gold_10_01"); //Торус собирает его и распределяет. Никому не разрешается забирать себе то, что он нашел.
AI_Output(self,other,"DIA_Addon_BDT_10015_Emilio_Gold_10_02"); //Каждый получает свою долю - таким образом, не обделены даже стражники и охотники.
AI_Output(self,other,"DIA_Addon_BDT_10015_Emilio_Gold_10_03"); //Мне кажется, это хорошая система. С тех пор как ввели это правило, количество смертей уменьшилось, а рудокопы все равно получают больше, чем те, кто не работает в шахте.
};
instance DIA_Addon_BDT_10015_Emilio_Stein(C_Info)
{
npc = BDT_10015_Addon_Emilio;
nr = 3;
condition = DIA_Addon_Emilio_Stein_Condition;
information = DIA_Addon_Emilio_Stein_Info;
permanent = FALSE;
description = "Что это за система с красными камнями?";
};
func int DIA_Addon_Emilio_Stein_Condition()
{
if(Npc_KnowsInfo(other,DIA_Addon_Emilio_Jetzt))
{
return TRUE;
};
};
func void DIA_Addon_Emilio_Stein_Info()
{
AI_Output(other,self,"DIA_Addon_BDT_10015_Emilio_Stein_15_00"); //Что это за система с красными камнями?
AI_Output(self,other,"DIA_Addon_BDT_10015_Emilio_Stein_10_01"); //Это придумали Торус и Эстебан.
AI_Output(self,other,"DIA_Addon_BDT_10015_Emilio_Stein_10_02"); //Торус заботится о распределении золота, а Эстебан организует работников для шахты.
AI_Output(self,other,"DIA_Addon_BDT_10015_Emilio_Stein_10_03"); //Конечно, он не хочет бегать к Торусу каждый раз, когда кто-то идет в шахту.
AI_Output(self,other,"DIA_Addon_BDT_10015_Emilio_Stein_10_04"); //Поэтому он и дает работникам одну из таких красных каменных плиток, и Торус тогда точно знает, кого пускать. Это как пропуск.
};
var int Emilio_Switch;
instance DIA_Addon_Emilio_Attentat(C_Info)
{
npc = BDT_10015_Addon_Emilio;
nr = 4;
condition = DIA_Addon_Emilio_Attentat_Condition;
information = DIA_Addon_Emilio_Attentat_Info;
permanent = TRUE;
description = "Что тебе известно о нападении?";
};
func int DIA_Addon_Emilio_Attentat_Condition()
{
if(Npc_KnowsInfo(other,DIA_Addon_Emilio_VonEmilio) && Npc_IsDead(Senyan))
{
return FALSE;
}
else if(MIS_Judas == LOG_Running)
{
return TRUE;
}
else
{
return FALSE;
};
};
func void DIA_Addon_Emilio_Attentat_Info()
{
AI_Output(other,self,"DIA_Addon_Emilio_Attentat_15_00"); //Что тебе известно о нападении?
if(Emilio_Switch == 0)
{
AI_Output(self,other,"DIA_Addon_Emilio_Attentat_10_01"); //(испуганно) Эй, приятель, я не хочу ничего об этом знать!
Emilio_Switch = 1;
}
else
{
AI_Output(self,other,"DIA_Addon_Emilio_Attentat_10_02"); //(испуганно) ВООБЩЕ НИЧЕГО!
Emilio_Switch = 0;
};
};
instance DIA_Addon_BDT_10015_Emilio_Senyan(C_Info)
{
npc = BDT_10015_Addon_Emilio;
nr = 1;
condition = DIA_Addon_Emilio_Senyan_Condition;
information = DIA_Addon_Emilio_Senyan_Info;
permanent = FALSE;
important = TRUE;
};
func int DIA_Addon_Emilio_Senyan_Condition()
{
if(Npc_IsDead(Senyan))
{
return TRUE;
};
};
func void DIA_Addon_Emilio_Senyan_Info()
{
if(Senyan_Called == TRUE)
{
AI_Output(self,other,"DIA_Addon_BDT_10015_Emilio_Senyan_10_00"); //(пытливо) Скажи мне, ПОЧЕМУ Сеньян закричал: 'Посмотрите, кто пришел'?
AI_Output(other,self,"DIA_Addon_BDT_10015_Emilio_Senyan_15_01"); //(сухо) Невыплаченные долги.
}
else
{
AI_Output(self,other,"DIA_Addon_BDT_10015_Emilio_Senyan_10_02"); //Ты убил Сеньяна!
};
AI_Output(other,self,"DIA_Addon_BDT_10015_Emilio_Senyan_15_03"); //А что? Какие-то проблемы?
AI_Output(self,other,"DIA_Addon_BDT_10015_Emilio_Senyan_10_04"); //(быстро) Нет, приятель, у меня к тебе по этому поводу никаких претензий.
AI_Output(self,other,"DIA_Addon_BDT_10015_Emilio_Senyan_10_05"); //Даже наоборот. (фальшиво) Этот ублюдок работал на Эстебана.
Senyan_CONTRA = LOG_SUCCESS;
B_LogEntry(Topic_Addon_Esteban,"Эмилио не на стороне Эстебана.");
};
instance DIA_Addon_Emilio_Jetzt(C_Info)
{
npc = BDT_10015_Addon_Emilio;
nr = 5;
condition = DIA_Addon_Emilio_Jetzt_Condition;
information = DIA_Addon_Emilio_Jetzt_Info;
permanent = FALSE;
description = "Почему ты сейчас не в шахте?";
};
func int DIA_Addon_Emilio_Jetzt_Condition()
{
if(Npc_KnowsInfo(other,DIA_Addon_BDT_10015_Emilio_Hi))
{
return TRUE;
};
};
func void DIA_Addon_Emilio_Jetzt_Info()
{
AI_Output(other,self,"DIA_Addon_Emilio_Jetzt_15_00"); //Почему ты сейчас не в шахте?
AI_Output(self,other,"DIA_Addon_Emilio_Jetzt_10_01"); //(слегка неуверенно) Я был там достаточно долго и вкалывал, пока не стал валиться с ног от усталости. Теперь мне надо отдохнуть несколько дней.
AI_Output(self,other,"DIA_Addon_Emilio_Jetzt_10_02"); //(вздыхая, слегка неуверенно) Прежде, чем я получу следующий красный камень.
};
instance DIA_Addon_Emilio_VonEmilio(C_Info)
{
npc = BDT_10015_Addon_Emilio;
nr = 6;
condition = DIA_Addon_Emilio_VonEmilio_Condition;
information = DIA_Addon_Emilio_VonEmilio_Info;
permanent = FALSE;
description = "Леннар рассказывал мне о тебе...";
};
func int DIA_Addon_Emilio_VonEmilio_Condition()
{
if(Npc_KnowsInfo(other,DIA_Addon_Emilio_Jetzt) && Npc_KnowsInfo(other,DIA_Addon_Lennar_Attentat))
{
return TRUE;
};
};
func void DIA_Addon_Emilio_VonEmilio_Info()
{
AI_Output(other,self,"DIA_Addon_Emilio_VonEmilio_15_00"); //Леннар рассказывал мне о тебе...
AI_Output(self,other,"DIA_Addon_Emilio_VonEmilio_10_01"); //Леннар? Этот парень - идиот. Ты, наверное, заметил.
AI_Output(other,self,"DIA_Addon_Emilio_VonEmilio_15_02"); //Он сказал, что ты не был в шахте с тех пор, как произошло нападение.
AI_Output(self,other,"DIA_Addon_Emilio_VonEmilio_10_03"); //(испуганно) Я... ничего не знаю!
if(!Npc_IsDead(Senyan))
{
AI_Output(self,other,"DIA_Addon_Emilio_VonEmilio_10_04"); //Ты работаешь вместе с Сеньяном!
AI_Output(self,other,"DIA_Addon_Emilio_VonEmilio_10_05"); //И вы оба в сговоре с Эстебаном! Я в точности слышал, о чем вы там болтали!
AI_Output(self,other,"DIA_Addon_Emilio_VonEmilio_10_06"); //Пока что Эстебан ничем не помог нам. Почему я должен верить его людям?
AI_Output(self,other,"DIA_Addon_Emilio_VonEmilio_10_07"); //Оставь меня в покое!
AI_StopProcessInfos(self);
};
B_LogEntry(Topic_Addon_Esteban,"Эмилио думает, что Леннар - идиот.");
};
instance DIA_Addon_Emilio_HilfMir(C_Info)
{
npc = BDT_10015_Addon_Emilio;
nr = 7;
condition = DIA_Addon_Emilio_HilfMir_Condition;
information = DIA_Addon_Emilio_HilfMir_Info;
permanent = FALSE;
description = "Помоги мне выяснить, кто организовал нападение!";
};
func int DIA_Addon_Emilio_HilfMir_Condition()
{
if(Npc_KnowsInfo(other,DIA_Addon_Emilio_VonEmilio) && Npc_IsDead(Senyan))
{
return TRUE;
};
};
func void DIA_Addon_Emilio_HilfMir_Info()
{
AI_Output(other,self,"DIA_Addon_Emilio_HilfMir_15_00"); //Помоги мне выяснить, кто организовал нападение!
AI_Output(self,other,"DIA_Addon_Emilio_HilfMir_10_01"); //Нет! Я не хочу в это ввязываться!
AI_Output(other,self,"DIA_Addon_Emilio_HilfMir_15_02"); //Если даже такой идиот, как Леннар, заметил, что ты ведешь себя странно, вряд ли пройдет много времени, прежде чем это заметит Эстебан.
AI_Output(self,other,"DIA_Addon_Emilio_HilfMir_10_03"); //(неловко) Я... черт! Я скажу тебе одно имя. И больше ничего.
AI_Output(other,self,"DIA_Addon_Emilio_HilfMir_15_04"); //Слушаю.
AI_Output(self,other,"DIA_Addon_Emilio_HilfMir_10_05"); //Хуно... поговори с Хуно. Он должен что-то знать об этом деле.
Emilio_TellAll = TRUE;
B_LogEntry(Topic_Addon_Esteban,"Эмилио наконец назвал имя: Хуно.");
};
instance DIA_Addon_Emilio_GegenEsteban(C_Info)
{
npc = BDT_10015_Addon_Emilio;
nr = 8;
condition = DIA_Addon_Emilio_GegenEsteban_Condition;
information = DIA_Addon_Emilio_GegenEsteban_Info;
permanent = FALSE;
description = "Что ты имеешь против Эстебана?";
};
func int DIA_Addon_Emilio_GegenEsteban_Condition()
{
if(Npc_KnowsInfo(other,DIA_Addon_BDT_10015_Emilio_Senyan))
{
return TRUE;
};
};
func void DIA_Addon_Emilio_GegenEsteban_Info()
{
AI_Output(other,self,"DIA_Addon_Emilio_GegenEsteban_15_00"); //Что ты имеешь против Эстебана?
AI_Output(self,other,"DIA_Addon_Emilio_GegenEsteban_10_01"); //Все, о чем эта свинья думает, - это деньги.
AI_Output(self,other,"DIA_Addon_Emilio_GegenEsteban_10_02"); //Каждые несколько дней одного из нас съедает краулер.
AI_Output(self,other,"DIA_Addon_Emilio_GegenEsteban_10_03"); //Но Эстебан даже и не думает послать в шахту несколько бойцов.
AI_Output(self,other,"DIA_Addon_Emilio_GegenEsteban_10_04"); //А все почему? Потому что эти ребята из личной гвардии Ворона и Эстебан до дрожи в коленках боится говорить с ними.
AI_Output(self,other,"DIA_Addon_Emilio_GegenEsteban_10_05"); //Ему проще дать нам всем подохнуть!
};
instance DIA_Addon_BDT_10015_Emilio_Mine(C_Info)
{
npc = BDT_10015_Addon_Emilio;
nr = 9;
condition = DIA_Addon_Emilio_Mine_Condition;
information = DIA_Addon_Emilio_Mine_Info;
permanent = FALSE;
description = DIALOG_ADDON_MINE_DESCRIPTION;
};
func int DIA_Addon_Emilio_Mine_Condition()
{
if((MIS_Send_Buddler == LOG_Running) && (Player_SentBuddler < 3) && (Npc_HasItems(other,ItMi_Addon_Stone_01) >= 1))
{
return TRUE;
};
};
func void DIA_Addon_Emilio_Mine_Info()
{
B_Say(other,self,"$MINE_ADDON_DESCRIPTION");
B_GiveInvItems(other,self,ItMi_Addon_Stone_01,1);
AI_Output(self,other,"DIA_Addon_BDT_10015_Emilio_Mine_10_00"); //Значит, ты теперь главный. Ладно, тогда я пошел.
Player_SentBuddler = Player_SentBuddler + 1;
B_GivePlayerXP(XP_Addon_MINE);
AI_StopProcessInfos(self);
Npc_ExchangeRoutine(self,"MINE");
};
instance DIA_Addon_Emilio_Hacker(C_Info)
{
npc = BDT_10015_Addon_Emilio;
nr = 9;
condition = DIA_Addon_Emilio_Hacker_Condition;
information = DIA_Addon_Emilio_Hacker_Info;
permanent = TRUE;
description = "Как дела?";
};
func int DIA_Addon_Emilio_Hacker_Condition()
{
if(Npc_GetDistToWP(self,"ADW_MINE_09_PICK") <= 500)
{
return TRUE;
};
};
func void DIA_Addon_Emilio_Hacker_Info()
{
AI_Output(other,self,"DIA_Addon_BDT_10004_Emilio_Hacker_15_00"); //Как дела?
AI_Output(self,other,"DIA_Addon_BDT_10004_Emilio_Hacker_10_01"); //Я просто валюсь с ног.
};
|
D
|
the male organ of copulation (`member' is a euphemism)
|
D
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.