code
stringlengths
3
10M
language
stringclasses
31 values
module dui.vectors; import std.traits; alias Vec2 = AbstractVec2!double; alias IVec2 = AbstractVec2!int; alias FVec2 = AbstractVec2!float; alias RVec2 = AbstractVec2!real; alias Vec3 = AbstractVec3!double; alias IVec3 = AbstractVec3!int; alias FVec3 = AbstractVec3!float; alias RVec3 = AbstractVec3!real; alias Vec4 = AbstractVec4!double; alias IVec4 = AbstractVec4!int; alias FVec4 = AbstractVec4!float; alias RVec4 = AbstractVec4!real; struct AbstractVec2(T) { T x = 0; T y = 0; this(V)(AbstractVec2!V base) { x = cast(T) base.x; y = cast(T) base.y; } this(T x, T y = 0) { this.x = x; this.y = y; } static if (isFloatingPoint!T) { T magnitude() @property const { import std.math : sqrt; return sqrt(x * x + y * y); } } auto opBinary(string op, R)(const(AbstractVec2!R) rhs) const { alias ResT = typeof(mixin("cast(T) 0" ~ op ~ "cast(R) 0")); AbstractVec2!ResT result; result.x = mixin("x" ~ op ~ "rhs.x"); result.y = mixin("y" ~ op ~ "rhs.y"); return result; } auto opBinary(string op, R)(const(R) rhs) const if (isNumeric!R) { alias ResT = typeof(mixin("cast(T) 0" ~ op ~ "cast(R) 0")); AbstractVec2!ResT result; result.x = mixin("x" ~ op ~ "rhs"); result.y = mixin("y" ~ op ~ "rhs"); return result; } auto opUnary(string op)() const if (op == "-") { return AbstractVec2!T(-x, -y); } AbstractVec2!T opDispatch(string member)() @property const if (member.length == 2) { import std.algorithm : all; static assert(member.all!(c => c >= 'x' && c <= 'y')); AbstractVec2!T result; static foreach (i, char c; member) { result.tupleof[i] = mixin("this." ~ c); } return result; } AbstractVec3!T opDispatch(string member)() @property const if (member.length == 3) { import std.algorithm : all; static assert(member.all!(c => c >= 'x' && c <= 'y')); AbstractVec3!T result; static foreach (i, char c; member) { result.tupleof[i] = mixin("this." ~ c); } return result; } AbstractVec4!T opDispatch(string member)() @property const if (member.length == 4) { import std.algorithm : all; static assert(member.all!(c => c >= 'x' && c <= 'y')); AbstractVec4!T result; static foreach (i, char c; member) { result.tupleof[i] = mixin("this." ~ c); } return result; } } struct AbstractVec3(T) { T x = 0; T y = 0; T z = 0; this(V)(AbstractVec3!V base) { x = cast(T) base.x; y = cast(T) base.y; z = cast(T) base.z; } this(T x, T y = 0, T z = 0) { this.x = x; this.y = y; this.z = z; } static if (isFloatingPoint!T) { T magnitude() @property const { import std.math : sqrt; return sqrt(x * x + y * y + z * z); } } auto opBinary(string op, R)(const(AbstractVec3!R) rhs) const { alias ResT = typeof(mixin("cast(T) 0" ~ op ~ "cast(R) 0")); AbstractVec3!ResT result; result.x = mixin("x" ~ op ~ "rhs.x"); result.y = mixin("y" ~ op ~ "rhs.y"); result.z = mixin("z" ~ op ~ "rhs.z"); return result; } auto opBinary(string op, R)(const(R) rhs) const if (isNumeric!R) { alias ResT = typeof(mixin("cast(T) 0" ~ op ~ "cast(R) 0")); AbstractVec3!ResT result; result.x = mixin("x" ~ op ~ "rhs"); result.y = mixin("y" ~ op ~ "rhs"); result.z = mixin("z" ~ op ~ "rhs"); return result; } auto opUnary(string op)() const if (op == "-") { return AbstractVec3!T(-x, -y, -z); } AbstractVec2!T opDispatch(string member)() @property const if (member.length == 2) { import std.algorithm : all; static assert(member.all!(c => c >= 'x' && c <= 'z')); AbstractVec2!T result; static foreach (i, char c; member) { result.tupleof[i] = mixin("this." ~ c); } return result; } AbstractVec3!T opDispatch(string member)() @property const if (member.length == 3) { import std.algorithm : all; static assert(member.all!(c => c >= 'x' && c <= 'z')); AbstractVec3!T result; static foreach (i, char c; member) { result.tupleof[i] = mixin("this." ~ c); } return result; } AbstractVec4!T opDispatch(string member)() @property const if (member.length == 4) { import std.algorithm : all; static assert(member.all!(c => c >= 'x' && c <= 'z')); AbstractVec4!T result; static foreach (i, char c; member) { result.tupleof[i] = mixin("this." ~ c); } return result; } } struct AbstractVec4(T) { T x = 0; T y = 0; T z = 0; T w = 0; ref inout(T) r() inout @property { return x; } ref inout(T) g() inout @property { return y; } ref inout(T) b() inout @property { return z; } ref inout(T) a() inout @property { return w; } this(V)(AbstractVec4!V base) { x = cast(T) base.x; y = cast(T) base.y; z = cast(T) base.z; w = cast(T) base.w; } this(T x, T y = 0, T z = 0, T w = 0) { this.x = x; this.y = y; this.z = z; this.w = w; } static if (isFloatingPoint!T) { T magnitude() @property const { import std.math : sqrt; return sqrt(x * x + y * y + z * z + w * w); } } auto opBinary(string op, R)(const(AbstractVec4!R) rhs) const { alias ResT = typeof(mixin("cast(T) 0" ~ op ~ "cast(R) 0")); AbstractVec4!ResT result; result.x = mixin("x" ~ op ~ "rhs.x"); result.y = mixin("y" ~ op ~ "rhs.y"); result.z = mixin("z" ~ op ~ "rhs.z"); result.w = mixin("w" ~ op ~ "rhs.w"); return result; } auto opBinary(string op, R)(const(R) rhs) const if (isNumeric!R) { alias ResT = typeof(mixin("cast(T) 0" ~ op ~ "cast(R) 0")); AbstractVec4!ResT result; result.x = mixin("x" ~ op ~ "rhs"); result.y = mixin("y" ~ op ~ "rhs"); result.z = mixin("z" ~ op ~ "rhs"); result.w = mixin("w" ~ op ~ "rhs"); return result; } auto opUnary(string op)() const if (op == "-") { return AbstractVec4!T(-x, -y, -z, -w); } AbstractVec2!T opDispatch(string member)() @property const if (member.length == 2) { import std.algorithm : all; static assert(member.all!(c => c >= 'w' && c <= 'z')); AbstractVec2!T result; static foreach (i, char c; member) { result.tupleof[i] = mixin("this." ~ c); } return result; } AbstractVec3!T opDispatch(string member)() @property const if (member.length == 3) { import std.algorithm : all; static assert(member.all!(c => c >= 'w' && c <= 'z')); AbstractVec3!T result; static foreach (i, char c; member) { result.tupleof[i] = mixin("this." ~ c); } return result; } AbstractVec4!T opDispatch(string member)() @property const if (member.length == 4) { import std.algorithm : all; static assert(member.all!(c => c >= 'w' && c <= 'z')); AbstractVec4!T result; static foreach (i, char c; member) { result.tupleof[i] = mixin("this." ~ c); } return result; } }
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_sput_object_10.java .class public dot.junit.opcodes.sput_object.d.T_sput_object_10 .super java/lang/Object .field public st_i1 Ljava/lang/Object; .method public <init>()V .limit regs 1 invoke-direct {v0}, java/lang/Object/<init>()V return-void .end method .method public run()V .limit regs 3 sput-object v2, dot.junit.opcodes.sput_object.d.T_sput_object_10.st_i1N Ljava/lang/Object; return-void .end method
D
module java.util.Enumeration; import java.lang.all; interface Enumeration { public bool hasMoreElements(); public Object nextElement(); }
D
/Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Intermediates.noindex/CredifyCore.build/Debug-iphonesimulator/CredifyCore.build/Objects-normal/x86_64/OfferUseCaseManager.o : /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/CredifyCore.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/ClaimUseCases/ClaimUseCase.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/ProviderUseCases/ProviderUseCase.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/OfferUseCases/OfferUseCase.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/KeyManagementUseCases/KeyManagementUseCase.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Claim/ClaimRepositoryRequest+Response.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Provider/ProviderRepositoryRequest+Response.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Offer/OfferRepositoryRequest+Response.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/KeyManagementRepository/KeyManagementRepositoryRequest+Response.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Models/CCProfileModel.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Models/CCScopeModel.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Models/CCUserExternalModel.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Models/CCClaimModel.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Models/CCAccountModel.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Utilities/CCUserDefaultsUtil.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/ClaimUseCases/ClaimUseCaseProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/ProviderUseCases/ProviderUseCaseProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/OfferUseCases/OfferUseCaseProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/KeyManagementUseCases/KeyManagementUseCaseProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Claim/ClaimRepositoryProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Provider/ProviderRepositoryProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Offer/OfferRepositoryProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/KeyManagementRepository/KeyManagementRepositoryProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Extensions/Encodable+Extension.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Extensions/Date+Extension.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Extensions/String+Extension.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Extensions/Array+Extension.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/CoreServiceConfiguration.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/ClaimUseCases/ClaimUseCaseManager.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/ProviderUseCases/ProviderUseCaseManager.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/OfferUseCases/OfferUseCaseManager.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/KeyManagementUseCases/KeyManagementUseCaseManager.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Utilities/CCSigner.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Extensions/CCError.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Common/Enums.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Common/Structs.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Network/RestAPI/RestAPIRequests.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Network/RestAPI/RestAPIClient.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Utilities/CCKeychainAccessClient.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Utilities/CCEnvironment.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Claim/ClaimRepository.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Provider/ProviderRepository.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Offer/OfferRepository.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/KeyManagementRepository/KeyManagementRepository.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Modules/RxCocoa.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/KeychainAccess/KeychainAccess.framework/Modules/KeychainAccess.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Modules/CredifyCryptoSwift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Modules/RxSwift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/WebKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxRelay/RxRelay.framework/Modules/RxRelay.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RX.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoa-umbrella.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/KeychainAccess/KeychainAccess.framework/Headers/KeychainAccess-umbrella.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/CredifyCryptoSwift-umbrella.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Headers/RxSwift-umbrella.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxRelay/RxRelay.framework/Headers/RxRelay-umbrella.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoa.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/CredifyCryptoSwift/CredifyCryptoSwift/Crypto.framework/Headers/Universe.objc.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/Universe.objc.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/CredifyCryptoSwift/CredifyCryptoSwift/Crypto.framework/Headers/Crypto.objc.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/Crypto.objc.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RXObjCRuntime.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoaRuntime.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/CredifyCryptoSwift/CredifyCryptoSwift/Crypto.framework/Headers/ref.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/ref.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/CredifyCryptoSwift/CredifyCryptoSwift/Crypto.framework/Headers/Crypto.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/Crypto.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RXKVOObserver.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoa-Swift.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/KeychainAccess/KeychainAccess.framework/Headers/KeychainAccess-Swift.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/CredifyCryptoSwift-Swift.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Headers/RxSwift-Swift.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxRelay/RxRelay.framework/Headers/RxRelay-Swift.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/CredifyCryptoSwift.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RXDelegateProxy.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/dyld.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Modules/module.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/CredifyCryptoSwift/CredifyCryptoSwift/Crypto.framework/Modules/module.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/KeychainAccess/KeychainAccess.framework/Modules/module.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Modules/module.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Modules/module.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxRelay/RxRelay.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.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/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LocalAuthentication.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WebKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Intermediates.noindex/CredifyCore.build/Debug-iphonesimulator/CredifyCore.build/Objects-normal/x86_64/OfferUseCaseManager~partial.swiftmodule : /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/CredifyCore.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/ClaimUseCases/ClaimUseCase.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/ProviderUseCases/ProviderUseCase.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/OfferUseCases/OfferUseCase.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/KeyManagementUseCases/KeyManagementUseCase.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Claim/ClaimRepositoryRequest+Response.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Provider/ProviderRepositoryRequest+Response.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Offer/OfferRepositoryRequest+Response.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/KeyManagementRepository/KeyManagementRepositoryRequest+Response.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Models/CCProfileModel.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Models/CCScopeModel.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Models/CCUserExternalModel.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Models/CCClaimModel.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Models/CCAccountModel.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Utilities/CCUserDefaultsUtil.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/ClaimUseCases/ClaimUseCaseProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/ProviderUseCases/ProviderUseCaseProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/OfferUseCases/OfferUseCaseProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/KeyManagementUseCases/KeyManagementUseCaseProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Claim/ClaimRepositoryProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Provider/ProviderRepositoryProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Offer/OfferRepositoryProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/KeyManagementRepository/KeyManagementRepositoryProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Extensions/Encodable+Extension.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Extensions/Date+Extension.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Extensions/String+Extension.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Extensions/Array+Extension.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/CoreServiceConfiguration.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/ClaimUseCases/ClaimUseCaseManager.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/ProviderUseCases/ProviderUseCaseManager.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/OfferUseCases/OfferUseCaseManager.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/KeyManagementUseCases/KeyManagementUseCaseManager.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Utilities/CCSigner.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Extensions/CCError.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Common/Enums.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Common/Structs.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Network/RestAPI/RestAPIRequests.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Network/RestAPI/RestAPIClient.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Utilities/CCKeychainAccessClient.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Utilities/CCEnvironment.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Claim/ClaimRepository.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Provider/ProviderRepository.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Offer/OfferRepository.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/KeyManagementRepository/KeyManagementRepository.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Modules/RxCocoa.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/KeychainAccess/KeychainAccess.framework/Modules/KeychainAccess.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Modules/CredifyCryptoSwift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Modules/RxSwift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/WebKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxRelay/RxRelay.framework/Modules/RxRelay.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RX.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoa-umbrella.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/KeychainAccess/KeychainAccess.framework/Headers/KeychainAccess-umbrella.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/CredifyCryptoSwift-umbrella.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Headers/RxSwift-umbrella.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxRelay/RxRelay.framework/Headers/RxRelay-umbrella.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoa.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/CredifyCryptoSwift/CredifyCryptoSwift/Crypto.framework/Headers/Universe.objc.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/Universe.objc.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/CredifyCryptoSwift/CredifyCryptoSwift/Crypto.framework/Headers/Crypto.objc.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/Crypto.objc.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RXObjCRuntime.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoaRuntime.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/CredifyCryptoSwift/CredifyCryptoSwift/Crypto.framework/Headers/ref.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/ref.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/CredifyCryptoSwift/CredifyCryptoSwift/Crypto.framework/Headers/Crypto.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/Crypto.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RXKVOObserver.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoa-Swift.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/KeychainAccess/KeychainAccess.framework/Headers/KeychainAccess-Swift.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/CredifyCryptoSwift-Swift.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Headers/RxSwift-Swift.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxRelay/RxRelay.framework/Headers/RxRelay-Swift.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/CredifyCryptoSwift.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RXDelegateProxy.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/dyld.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Modules/module.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/CredifyCryptoSwift/CredifyCryptoSwift/Crypto.framework/Modules/module.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/KeychainAccess/KeychainAccess.framework/Modules/module.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Modules/module.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Modules/module.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxRelay/RxRelay.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.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/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LocalAuthentication.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WebKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Intermediates.noindex/CredifyCore.build/Debug-iphonesimulator/CredifyCore.build/Objects-normal/x86_64/OfferUseCaseManager~partial.swiftdoc : /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/CredifyCore.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/ClaimUseCases/ClaimUseCase.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/ProviderUseCases/ProviderUseCase.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/OfferUseCases/OfferUseCase.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/KeyManagementUseCases/KeyManagementUseCase.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Claim/ClaimRepositoryRequest+Response.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Provider/ProviderRepositoryRequest+Response.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Offer/OfferRepositoryRequest+Response.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/KeyManagementRepository/KeyManagementRepositoryRequest+Response.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Models/CCProfileModel.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Models/CCScopeModel.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Models/CCUserExternalModel.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Models/CCClaimModel.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Models/CCAccountModel.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Utilities/CCUserDefaultsUtil.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/ClaimUseCases/ClaimUseCaseProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/ProviderUseCases/ProviderUseCaseProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/OfferUseCases/OfferUseCaseProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/KeyManagementUseCases/KeyManagementUseCaseProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Claim/ClaimRepositoryProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Provider/ProviderRepositoryProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Offer/OfferRepositoryProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/KeyManagementRepository/KeyManagementRepositoryProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Extensions/Encodable+Extension.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Extensions/Date+Extension.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Extensions/String+Extension.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Extensions/Array+Extension.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/CoreServiceConfiguration.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/ClaimUseCases/ClaimUseCaseManager.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/ProviderUseCases/ProviderUseCaseManager.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/OfferUseCases/OfferUseCaseManager.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/KeyManagementUseCases/KeyManagementUseCaseManager.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Utilities/CCSigner.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Extensions/CCError.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Common/Enums.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Common/Structs.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Network/RestAPI/RestAPIRequests.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Network/RestAPI/RestAPIClient.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Utilities/CCKeychainAccessClient.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Utilities/CCEnvironment.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Claim/ClaimRepository.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Provider/ProviderRepository.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Offer/OfferRepository.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/KeyManagementRepository/KeyManagementRepository.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Modules/RxCocoa.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/KeychainAccess/KeychainAccess.framework/Modules/KeychainAccess.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Modules/CredifyCryptoSwift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Modules/RxSwift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/WebKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxRelay/RxRelay.framework/Modules/RxRelay.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RX.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoa-umbrella.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/KeychainAccess/KeychainAccess.framework/Headers/KeychainAccess-umbrella.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/CredifyCryptoSwift-umbrella.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Headers/RxSwift-umbrella.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxRelay/RxRelay.framework/Headers/RxRelay-umbrella.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoa.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/CredifyCryptoSwift/CredifyCryptoSwift/Crypto.framework/Headers/Universe.objc.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/Universe.objc.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/CredifyCryptoSwift/CredifyCryptoSwift/Crypto.framework/Headers/Crypto.objc.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/Crypto.objc.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RXObjCRuntime.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoaRuntime.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/CredifyCryptoSwift/CredifyCryptoSwift/Crypto.framework/Headers/ref.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/ref.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/CredifyCryptoSwift/CredifyCryptoSwift/Crypto.framework/Headers/Crypto.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/Crypto.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RXKVOObserver.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoa-Swift.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/KeychainAccess/KeychainAccess.framework/Headers/KeychainAccess-Swift.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/CredifyCryptoSwift-Swift.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Headers/RxSwift-Swift.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxRelay/RxRelay.framework/Headers/RxRelay-Swift.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/CredifyCryptoSwift.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RXDelegateProxy.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/dyld.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Modules/module.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/CredifyCryptoSwift/CredifyCryptoSwift/Crypto.framework/Modules/module.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/KeychainAccess/KeychainAccess.framework/Modules/module.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Modules/module.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Modules/module.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxRelay/RxRelay.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.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/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LocalAuthentication.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WebKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Intermediates.noindex/CredifyCore.build/Debug-iphonesimulator/CredifyCore.build/Objects-normal/x86_64/OfferUseCaseManager~partial.swiftsourceinfo : /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/CredifyCore.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/ClaimUseCases/ClaimUseCase.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/ProviderUseCases/ProviderUseCase.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/OfferUseCases/OfferUseCase.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/KeyManagementUseCases/KeyManagementUseCase.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Claim/ClaimRepositoryRequest+Response.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Provider/ProviderRepositoryRequest+Response.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Offer/OfferRepositoryRequest+Response.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/KeyManagementRepository/KeyManagementRepositoryRequest+Response.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Models/CCProfileModel.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Models/CCScopeModel.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Models/CCUserExternalModel.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Models/CCClaimModel.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Models/CCAccountModel.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Utilities/CCUserDefaultsUtil.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/ClaimUseCases/ClaimUseCaseProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/ProviderUseCases/ProviderUseCaseProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/OfferUseCases/OfferUseCaseProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/KeyManagementUseCases/KeyManagementUseCaseProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Claim/ClaimRepositoryProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Provider/ProviderRepositoryProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Offer/OfferRepositoryProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/KeyManagementRepository/KeyManagementRepositoryProtocol.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Extensions/Encodable+Extension.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Extensions/Date+Extension.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Extensions/String+Extension.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Extensions/Array+Extension.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/CoreServiceConfiguration.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/ClaimUseCases/ClaimUseCaseManager.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/ProviderUseCases/ProviderUseCaseManager.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/OfferUseCases/OfferUseCaseManager.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/UseCases/KeyManagementUseCases/KeyManagementUseCaseManager.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Utilities/CCSigner.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Extensions/CCError.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Common/Enums.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Common/Structs.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Network/RestAPI/RestAPIRequests.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Network/RestAPI/RestAPIClient.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Utilities/CCKeychainAccessClient.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Utilities/CCEnvironment.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Claim/ClaimRepository.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Provider/ProviderRepository.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/Offer/OfferRepository.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/CredifyCore/Repositories/KeyManagementRepository/KeyManagementRepository.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Modules/RxCocoa.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/KeychainAccess/KeychainAccess.framework/Modules/KeychainAccess.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Modules/CredifyCryptoSwift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Modules/RxSwift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/WebKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxRelay/RxRelay.framework/Modules/RxRelay.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RX.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoa-umbrella.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/KeychainAccess/KeychainAccess.framework/Headers/KeychainAccess-umbrella.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/CredifyCryptoSwift-umbrella.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Headers/RxSwift-umbrella.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxRelay/RxRelay.framework/Headers/RxRelay-umbrella.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoa.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/CredifyCryptoSwift/CredifyCryptoSwift/Crypto.framework/Headers/Universe.objc.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/Universe.objc.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/CredifyCryptoSwift/CredifyCryptoSwift/Crypto.framework/Headers/Crypto.objc.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/Crypto.objc.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RXObjCRuntime.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoaRuntime.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/CredifyCryptoSwift/CredifyCryptoSwift/Crypto.framework/Headers/ref.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/ref.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/CredifyCryptoSwift/CredifyCryptoSwift/Crypto.framework/Headers/Crypto.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/Crypto.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RXKVOObserver.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/RxCocoa-Swift.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/KeychainAccess/KeychainAccess.framework/Headers/KeychainAccess-Swift.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/CredifyCryptoSwift-Swift.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Headers/RxSwift-Swift.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxRelay/RxRelay.framework/Headers/RxRelay-Swift.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Headers/CredifyCryptoSwift.h /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Headers/_RXDelegateProxy.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/dyld.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxCocoa/RxCocoa.framework/Modules/module.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/CredifyCryptoSwift/CredifyCryptoSwift/Crypto.framework/Modules/module.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/KeychainAccess/KeychainAccess.framework/Modules/module.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/CredifyCryptoSwift/CredifyCryptoSwift.framework/Modules/module.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxSwift/RxSwift.framework/Modules/module.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Products/Debug-iphonesimulator/RxRelay/RxRelay.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.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/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/LocalAuthentication.framework/Headers/LocalAuthentication.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/WebKit.framework/Headers/WebKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
// Written in the D programming language. /** * Computes SHA1 and SHA2 hashes of arbitrary data. SHA hashes are 20 to 64 byte * quantities (depending on the SHA algorithm) that are like a checksum or CRC, * but are more robust. * $(SCRIPT inhibitQuickIndex = 1;) $(DIVC quickindex, $(BOOKTABLE , $(TR $(TH Category) $(TH Functions) ) $(TR $(TDNW Template API) $(TD $(MYREF SHA1) ) ) $(TR $(TDNW OOP API) $(TD $(MYREF SHA1Digest)) ) $(TR $(TDNW Helpers) $(TD $(MYREF sha1Of)) ) ) ) * SHA2 comes in several different versions, all supported by this module: * SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224 and SHA-512/256. * * This module conforms to the APIs defined in $(MREF std, digest). To understand the * differences between the template and the OOP API, see $(MREF std, digest). * * This module publicly imports `std.digest` and can be used as a stand-alone * module. * * License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0). * * CTFE: * Digests do not work in CTFE * * Authors: * The routines and algorithms are derived from the * $(I Secure Hash Signature Standard (SHS) (FIPS PUB 180-2)). $(BR ) * Kai Nacke, Johannes Pfau, Nick Sabalausky * * References: * $(UL * $(LI $(LINK2 http://csrc.nist.gov/publications/fips/fips180-2/fips180-2withchangenotice.pdf, FIPS PUB180-2)) * $(LI $(LINK2 http://software.intel.com/en-us/articles/improving-the-performance-of-the-secure-hash-algorithm-1/, Fast implementation of SHA1)) * $(LI $(LINK2 http://en.wikipedia.org/wiki/Secure_Hash_Algorithm, Wikipedia article about SHA)) * ) * * Source: $(PHOBOSSRC std/digest/sha.d) * */ /* Copyright Kai Nacke 2012. * 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 std.digest.sha; /// @safe unittest { //Template API import std.digest.sha; ubyte[20] hash1 = sha1Of("abc"); assert(toHexString(hash1) == "A9993E364706816ABA3E25717850C26C9CD0D89D"); ubyte[28] hash224 = sha224Of("abc"); assert(toHexString(hash224) == "23097D223405D8228642A477BDA255B32AADBCE4BDA0B3F7E36C9DA7"); //Feeding data ubyte[1024] data; SHA1 sha1; sha1.start(); sha1.put(data[]); sha1.start(); //Start again sha1.put(data[]); hash1 = sha1.finish(); } /// @safe unittest { //OOP API import std.digest.sha; auto sha1 = new SHA1Digest(); ubyte[] hash1 = sha1.digest("abc"); assert(toHexString(hash1) == "A9993E364706816ABA3E25717850C26C9CD0D89D"); auto sha224 = new SHA224Digest(); ubyte[] hash224 = sha224.digest("abc"); assert(toHexString(hash224) == "23097D223405D8228642A477BDA255B32AADBCE4BDA0B3F7E36C9DA7"); //Feeding data ubyte[1024] data; sha1.put(data[]); sha1.reset(); //Start again sha1.put(data[]); hash1 = sha1.finish(); } version (D_InlineAsm_X86) { version (D_PIC) {} // https://issues.dlang.org/show_bug.cgi?id=9378 else private version = USE_SSSE3; } else version (D_InlineAsm_X86_64) { private version = USE_SSSE3; } import core.bitop; public import std.digest; /* * Helper methods for encoding the buffer. * Can be removed if the optimizer can inline the methods from std.bitmanip. */ version (LittleEndian) { private alias nativeToBigEndian = bswap; private alias bigEndianToNative = bswap; } else pragma(inline, true) private pure @nogc nothrow @safe { uint nativeToBigEndian(uint val) { return val; } ulong nativeToBigEndian(ulong val) { return val; } alias bigEndianToNative = nativeToBigEndian; } /** * Template API SHA1/SHA2 implementation. Supports: SHA-1, SHA-224, SHA-256, * SHA-384, SHA-512, SHA-512/224 and SHA-512/256. * * The hashBlockSize and digestSize are in bits. However, it's likely easier to * simply use the convenience aliases: SHA1, SHA224, SHA256, SHA384, SHA512, * SHA512_224 and SHA512_256. * * See `std.digest` for differences between template and OOP API. */ struct SHA(uint hashBlockSize, uint digestSize) { enum blockSize = hashBlockSize; static assert(blockSize == 512 || blockSize == 1024, "Invalid SHA blockSize, must be 512 or 1024"); static assert(digestSize == 160 || digestSize == 224 || digestSize == 256 || digestSize == 384 || digestSize == 512, "Invalid SHA digestSize, must be 224, 256, 384 or 512"); static assert(!(blockSize == 512 && digestSize > 256), "Invalid SHA digestSize for a blockSize of 512. The digestSize must be 160, 224 or 256."); static assert(!(blockSize == 1024 && digestSize < 224), "Invalid SHA digestSize for a blockSize of 1024. The digestSize must be 224, 256, 384 or 512."); static if (digestSize == 160) /* SHA-1 */ { version (USE_SSSE3) { import core.cpuid : ssse3; import std.internal.digest.sha_SSSE3 : sse3_constants=constants, transformSSSE3; static void transform(uint[5]* state, const(ubyte[64])* block) pure nothrow @nogc { if (ssse3) { version (D_InlineAsm_X86_64) // constants as extra argument for PIC // see https://issues.dlang.org/show_bug.cgi?id=9378 transformSSSE3(state, block, &sse3_constants); else transformSSSE3(state, block); } else transformX86(state, block); } } else { alias transform = transformX86; } } else static if (blockSize == 512) /* SHA-224, SHA-256 */ alias transform = transformSHA2!uint; else static if (blockSize == 1024) /* SHA-384, SHA-512, SHA-512/224, SHA-512/256 */ alias transform = transformSHA2!ulong; else static assert(0); private: /* magic initialization constants - state (ABCDEFGH) */ static if (blockSize == 512 && digestSize == 160) /* SHA-1 */ { uint[5] state = [0x67452301,0xefcdab89,0x98badcfe,0x10325476,0xc3d2e1f0]; } else static if (blockSize == 512 && digestSize == 224) /* SHA-224 */ { uint[8] state = [ 0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939, 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4, ]; } else static if (blockSize == 512 && digestSize == 256) /* SHA-256 */ { uint[8] state = [ 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19, ]; } else static if (blockSize == 1024 && digestSize == 224) /* SHA-512/224 */ { ulong[8] state = [ 0x8C3D37C8_19544DA2, 0x73E19966_89DCD4D6, 0x1DFAB7AE_32FF9C82, 0x679DD514_582F9FCF, 0x0F6D2B69_7BD44DA8, 0x77E36F73_04C48942, 0x3F9D85A8_6A1D36C8, 0x1112E6AD_91D692A1, ]; } else static if (blockSize == 1024 && digestSize == 256) /* SHA-512/256 */ { ulong[8] state = [ 0x22312194_FC2BF72C, 0x9F555FA3_C84C64C2, 0x2393B86B_6F53B151, 0x96387719_5940EABD, 0x96283EE2_A88EFFE3, 0xBE5E1E25_53863992, 0x2B0199FC_2C85B8AA, 0x0EB72DDC_81C52CA2, ]; } else static if (blockSize == 1024 && digestSize == 384) /* SHA-384 */ { ulong[8] state = [ 0xcbbb9d5d_c1059ed8, 0x629a292a_367cd507, 0x9159015a_3070dd17, 0x152fecd8_f70e5939, 0x67332667_ffc00b31, 0x8eb44a87_68581511, 0xdb0c2e0d_64f98fa7, 0x47b5481d_befa4fa4, ]; } else static if (blockSize == 1024 && digestSize == 512) /* SHA-512 */ { ulong[8] state = [ 0x6a09e667_f3bcc908, 0xbb67ae85_84caa73b, 0x3c6ef372_fe94f82b, 0xa54ff53a_5f1d36f1, 0x510e527f_ade682d1, 0x9b05688c_2b3e6c1f, 0x1f83d9ab_fb41bd6b, 0x5be0cd19_137e2179, ]; } else static assert(0); /* constants */ static if (blockSize == 512) { static immutable uint[64] constants = [ 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2, ]; } else static if (blockSize == 1024) { static immutable ulong[80] constants = [ 0x428a2f98_d728ae22, 0x71374491_23ef65cd, 0xb5c0fbcf_ec4d3b2f, 0xe9b5dba5_8189dbbc, 0x3956c25b_f348b538, 0x59f111f1_b605d019, 0x923f82a4_af194f9b, 0xab1c5ed5_da6d8118, 0xd807aa98_a3030242, 0x12835b01_45706fbe, 0x243185be_4ee4b28c, 0x550c7dc3_d5ffb4e2, 0x72be5d74_f27b896f, 0x80deb1fe_3b1696b1, 0x9bdc06a7_25c71235, 0xc19bf174_cf692694, 0xe49b69c1_9ef14ad2, 0xefbe4786_384f25e3, 0x0fc19dc6_8b8cd5b5, 0x240ca1cc_77ac9c65, 0x2de92c6f_592b0275, 0x4a7484aa_6ea6e483, 0x5cb0a9dc_bd41fbd4, 0x76f988da_831153b5, 0x983e5152_ee66dfab, 0xa831c66d_2db43210, 0xb00327c8_98fb213f, 0xbf597fc7_beef0ee4, 0xc6e00bf3_3da88fc2, 0xd5a79147_930aa725, 0x06ca6351_e003826f, 0x14292967_0a0e6e70, 0x27b70a85_46d22ffc, 0x2e1b2138_5c26c926, 0x4d2c6dfc_5ac42aed, 0x53380d13_9d95b3df, 0x650a7354_8baf63de, 0x766a0abb_3c77b2a8, 0x81c2c92e_47edaee6, 0x92722c85_1482353b, 0xa2bfe8a1_4cf10364, 0xa81a664b_bc423001, 0xc24b8b70_d0f89791, 0xc76c51a3_0654be30, 0xd192e819_d6ef5218, 0xd6990624_5565a910, 0xf40e3585_5771202a, 0x106aa070_32bbd1b8, 0x19a4c116_b8d2d0c8, 0x1e376c08_5141ab53, 0x2748774c_df8eeb99, 0x34b0bcb5_e19b48a8, 0x391c0cb3_c5c95a63, 0x4ed8aa4a_e3418acb, 0x5b9cca4f_7763e373, 0x682e6ff3_d6b2b8a3, 0x748f82ee_5defb2fc, 0x78a5636f_43172f60, 0x84c87814_a1f0ab72, 0x8cc70208_1a6439ec, 0x90befffa_23631e28, 0xa4506ceb_de82bde9, 0xbef9a3f7_b2c67915, 0xc67178f2_e372532b, 0xca273ece_ea26619c, 0xd186b8c7_21c0c207, 0xeada7dd6_cde0eb1e, 0xf57d4f7f_ee6ed178, 0x06f067aa_72176fba, 0x0a637dc5_a2c898a6, 0x113f9804_bef90dae, 0x1b710b35_131c471b, 0x28db77f5_23047d84, 0x32caab7b_40c72493, 0x3c9ebe0a_15c9bebc, 0x431d67c4_9c100d4c, 0x4cc5d4be_cb3e42b6, 0x597f299c_fc657e2a, 0x5fcb6fab_3ad6faec, 0x6c44198c_4a475817, ]; } else static assert(0); /* * number of bits, modulo 2^64 (ulong[1]) or 2^128 (ulong[2]), * should just use ucent instead of ulong[2] once it's available */ ulong[blockSize/512] count; ubyte[blockSize/8] buffer; /* input buffer */ static immutable ubyte[128] padding = [ 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x00, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]; /* * Basic SHA1/SHA2 functions. */ pragma(inline, true) static @safe pure nothrow @nogc { /* All SHA1/SHA2 */ T Ch(T)(T x, T y, T z) { return z ^ (x & (y ^ z)); } T Maj(T)(T x, T y, T z) { return (x & y) | (z & (x ^ y)); } /* SHA-1 */ uint Parity(uint x, uint y, uint z) { return x ^ y ^ z; } /* SHA-224, SHA-256 */ uint BigSigma0(uint x) { return core.bitop.ror(x, 2) ^ core.bitop.ror(x, 13) ^ core.bitop.ror(x, 22); } uint BigSigma1(uint x) { return core.bitop.ror(x, 6) ^ core.bitop.ror(x, 11) ^ core.bitop.ror(x, 25); } uint SmSigma0(uint x) { return core.bitop.ror(x, 7) ^ core.bitop.ror(x, 18) ^ x >> 3; } uint SmSigma1(uint x) { return core.bitop.ror(x, 17) ^ core.bitop.ror(x, 19) ^ x >> 10; } /* SHA-384, SHA-512, SHA-512/224, SHA-512/256 */ ulong BigSigma0(ulong x) { return core.bitop.ror(x, 28) ^ core.bitop.ror(x, 34) ^ core.bitop.ror(x, 39); } ulong BigSigma1(ulong x) { return core.bitop.ror(x, 14) ^ core.bitop.ror(x, 18) ^ core.bitop.ror(x, 41); } ulong SmSigma0(ulong x) { return core.bitop.ror(x, 1) ^ core.bitop.ror(x, 8) ^ x >> 7; } ulong SmSigma1(ulong x) { return core.bitop.ror(x, 19) ^ core.bitop.ror(x, 61) ^ x >> 6; } } /* * SHA1 basic transformation. Transforms state based on block. */ static void T_0_15(int i, const(ubyte[64])* input, ref uint[16] W, uint A, ref uint B, uint C, uint D, uint E, ref uint T) pure nothrow @nogc { uint Wi = W[i] = bigEndianToNative(*cast(uint*) &((*input)[i*4])); T = Ch(B, C, D) + E + core.bitop.rol(A, 5) + Wi + 0x5a827999; B = core.bitop.rol(B, 30); } static void T_16_19(int i, ref uint[16] W, uint A, ref uint B, uint C, uint D, uint E, ref uint T) pure nothrow @nogc { W[i&15] = core.bitop.rol(W[(i-3)&15] ^ W[(i-8)&15] ^ W[(i-14)&15] ^ W[(i-16)&15], 1); T = Ch(B, C, D) + E + core.bitop.rol(A, 5) + W[i&15] + 0x5a827999; B = core.bitop.rol(B, 30); } static void T_20_39(int i, ref uint[16] W, uint A, ref uint B, uint C, uint D, uint E, ref uint T) pure nothrow @nogc { W[i&15] = core.bitop.rol(W[(i-3)&15] ^ W[(i-8)&15] ^ W[(i-14)&15] ^ W[(i-16)&15], 1); T = Parity(B, C, D) + E + core.bitop.rol(A, 5) + W[i&15] + 0x6ed9eba1; B = core.bitop.rol(B, 30); } static void T_40_59(int i, ref uint[16] W, uint A, ref uint B, uint C, uint D, uint E, ref uint T) pure nothrow @nogc { W[i&15] = core.bitop.rol(W[(i-3)&15] ^ W[(i-8)&15] ^ W[(i-14)&15] ^ W[(i-16)&15], 1); T = Maj(B, C, D) + E + core.bitop.rol(A, 5) + W[i&15] + 0x8f1bbcdc; B = core.bitop.rol(B, 30); } static void T_60_79(int i, ref uint[16] W, uint A, ref uint B, uint C, uint D, uint E, ref uint T) pure nothrow @nogc { W[i&15] = core.bitop.rol(W[(i-3)&15] ^ W[(i-8)&15] ^ W[(i-14)&15] ^ W[(i-16)&15], 1); T = Parity(B, C, D) + E + core.bitop.rol(A, 5) + W[i&15] + 0xca62c1d6; B = core.bitop.rol(B, 30); } private static void transformX86(uint[5]* state, const(ubyte[64])* block) pure nothrow @nogc { uint A, B, C, D, E, T; uint[16] W = void; A = (*state)[0]; B = (*state)[1]; C = (*state)[2]; D = (*state)[3]; E = (*state)[4]; T_0_15 ( 0, block, W, A, B, C, D, E, T); T_0_15 ( 1, block, W, T, A, B, C, D, E); T_0_15 ( 2, block, W, E, T, A, B, C, D); T_0_15 ( 3, block, W, D, E, T, A, B, C); T_0_15 ( 4, block, W, C, D, E, T, A, B); T_0_15 ( 5, block, W, B, C, D, E, T, A); T_0_15 ( 6, block, W, A, B, C, D, E, T); T_0_15 ( 7, block, W, T, A, B, C, D, E); T_0_15 ( 8, block, W, E, T, A, B, C, D); T_0_15 ( 9, block, W, D, E, T, A, B, C); T_0_15 (10, block, W, C, D, E, T, A, B); T_0_15 (11, block, W, B, C, D, E, T, A); T_0_15 (12, block, W, A, B, C, D, E, T); T_0_15 (13, block, W, T, A, B, C, D, E); T_0_15 (14, block, W, E, T, A, B, C, D); T_0_15 (15, block, W, D, E, T, A, B, C); T_16_19(16, W, C, D, E, T, A, B); T_16_19(17, W, B, C, D, E, T, A); T_16_19(18, W, A, B, C, D, E, T); T_16_19(19, W, T, A, B, C, D, E); T_20_39(20, W, E, T, A, B, C, D); T_20_39(21, W, D, E, T, A, B, C); T_20_39(22, W, C, D, E, T, A, B); T_20_39(23, W, B, C, D, E, T, A); T_20_39(24, W, A, B, C, D, E, T); T_20_39(25, W, T, A, B, C, D, E); T_20_39(26, W, E, T, A, B, C, D); T_20_39(27, W, D, E, T, A, B, C); T_20_39(28, W, C, D, E, T, A, B); T_20_39(29, W, B, C, D, E, T, A); T_20_39(30, W, A, B, C, D, E, T); T_20_39(31, W, T, A, B, C, D, E); T_20_39(32, W, E, T, A, B, C, D); T_20_39(33, W, D, E, T, A, B, C); T_20_39(34, W, C, D, E, T, A, B); T_20_39(35, W, B, C, D, E, T, A); T_20_39(36, W, A, B, C, D, E, T); T_20_39(37, W, T, A, B, C, D, E); T_20_39(38, W, E, T, A, B, C, D); T_20_39(39, W, D, E, T, A, B, C); T_40_59(40, W, C, D, E, T, A, B); T_40_59(41, W, B, C, D, E, T, A); T_40_59(42, W, A, B, C, D, E, T); T_40_59(43, W, T, A, B, C, D, E); T_40_59(44, W, E, T, A, B, C, D); T_40_59(45, W, D, E, T, A, B, C); T_40_59(46, W, C, D, E, T, A, B); T_40_59(47, W, B, C, D, E, T, A); T_40_59(48, W, A, B, C, D, E, T); T_40_59(49, W, T, A, B, C, D, E); T_40_59(50, W, E, T, A, B, C, D); T_40_59(51, W, D, E, T, A, B, C); T_40_59(52, W, C, D, E, T, A, B); T_40_59(53, W, B, C, D, E, T, A); T_40_59(54, W, A, B, C, D, E, T); T_40_59(55, W, T, A, B, C, D, E); T_40_59(56, W, E, T, A, B, C, D); T_40_59(57, W, D, E, T, A, B, C); T_40_59(58, W, C, D, E, T, A, B); T_40_59(59, W, B, C, D, E, T, A); T_60_79(60, W, A, B, C, D, E, T); T_60_79(61, W, T, A, B, C, D, E); T_60_79(62, W, E, T, A, B, C, D); T_60_79(63, W, D, E, T, A, B, C); T_60_79(64, W, C, D, E, T, A, B); T_60_79(65, W, B, C, D, E, T, A); T_60_79(66, W, A, B, C, D, E, T); T_60_79(67, W, T, A, B, C, D, E); T_60_79(68, W, E, T, A, B, C, D); T_60_79(69, W, D, E, T, A, B, C); T_60_79(70, W, C, D, E, T, A, B); T_60_79(71, W, B, C, D, E, T, A); T_60_79(72, W, A, B, C, D, E, T); T_60_79(73, W, T, A, B, C, D, E); T_60_79(74, W, E, T, A, B, C, D); T_60_79(75, W, D, E, T, A, B, C); T_60_79(76, W, C, D, E, T, A, B); T_60_79(77, W, B, C, D, E, T, A); T_60_79(78, W, A, B, C, D, E, T); T_60_79(79, W, T, A, B, C, D, E); (*state)[0] += E; (*state)[1] += T; (*state)[2] += A; (*state)[3] += B; (*state)[4] += C; /* Zeroize sensitive information. */ W[] = 0; } /* * SHA2 basic transformation. Transforms state based on block. */ pragma(inline, true) static void T_SHA2_0_15(Word)(int i, const(ubyte[blockSize/8])* input, ref Word[16] W, Word A, Word B, Word C, ref Word D, Word E, Word F, Word G, ref Word H, Word K) pure nothrow @nogc { Word Wi = W[i] = bigEndianToNative(*cast(Word*) &((*input)[i*Word.sizeof])); Word T1 = H + BigSigma1(E) + Ch(E, F, G) + K + Wi; Word T2 = BigSigma0(A) + Maj(A, B, C); D += T1; H = T1 + T2; } // Temporarily disable inlining because it increases build speed by 10x. // pragma(inline, true) static void T_SHA2_16_79(Word)(int i, ref Word[16] W, Word A, Word B, Word C, ref Word D, Word E, Word F, Word G, ref Word H, Word K) pure nothrow @nogc { W[i&15] = SmSigma1(W[(i-2)&15]) + W[(i-7)&15] + SmSigma0(W[(i-15)&15]) + W[i&15]; Word T1 = H + BigSigma1(E) + Ch(E, F, G) + K + W[i&15]; Word T2 = BigSigma0(A) + Maj(A, B, C); D += T1; H = T1 + T2; } private static void transformSHA2(Word)(Word[8]* state, const(ubyte[blockSize/8])* block) pure nothrow @nogc { Word A, B, C, D, E, F, G, H; Word[16] W = void; A = (*state)[0]; B = (*state)[1]; C = (*state)[2]; D = (*state)[3]; E = (*state)[4]; F = (*state)[5]; G = (*state)[6]; H = (*state)[7]; T_SHA2_0_15!Word ( 0, block, W, A, B, C, D, E, F, G, H, constants[ 0]); T_SHA2_0_15!Word ( 1, block, W, H, A, B, C, D, E, F, G, constants[ 1]); T_SHA2_0_15!Word ( 2, block, W, G, H, A, B, C, D, E, F, constants[ 2]); T_SHA2_0_15!Word ( 3, block, W, F, G, H, A, B, C, D, E, constants[ 3]); T_SHA2_0_15!Word ( 4, block, W, E, F, G, H, A, B, C, D, constants[ 4]); T_SHA2_0_15!Word ( 5, block, W, D, E, F, G, H, A, B, C, constants[ 5]); T_SHA2_0_15!Word ( 6, block, W, C, D, E, F, G, H, A, B, constants[ 6]); T_SHA2_0_15!Word ( 7, block, W, B, C, D, E, F, G, H, A, constants[ 7]); T_SHA2_0_15!Word ( 8, block, W, A, B, C, D, E, F, G, H, constants[ 8]); T_SHA2_0_15!Word ( 9, block, W, H, A, B, C, D, E, F, G, constants[ 9]); T_SHA2_0_15!Word (10, block, W, G, H, A, B, C, D, E, F, constants[10]); T_SHA2_0_15!Word (11, block, W, F, G, H, A, B, C, D, E, constants[11]); T_SHA2_0_15!Word (12, block, W, E, F, G, H, A, B, C, D, constants[12]); T_SHA2_0_15!Word (13, block, W, D, E, F, G, H, A, B, C, constants[13]); T_SHA2_0_15!Word (14, block, W, C, D, E, F, G, H, A, B, constants[14]); T_SHA2_0_15!Word (15, block, W, B, C, D, E, F, G, H, A, constants[15]); T_SHA2_16_79!Word(16, W, A, B, C, D, E, F, G, H, constants[16]); T_SHA2_16_79!Word(17, W, H, A, B, C, D, E, F, G, constants[17]); T_SHA2_16_79!Word(18, W, G, H, A, B, C, D, E, F, constants[18]); T_SHA2_16_79!Word(19, W, F, G, H, A, B, C, D, E, constants[19]); T_SHA2_16_79!Word(20, W, E, F, G, H, A, B, C, D, constants[20]); T_SHA2_16_79!Word(21, W, D, E, F, G, H, A, B, C, constants[21]); T_SHA2_16_79!Word(22, W, C, D, E, F, G, H, A, B, constants[22]); T_SHA2_16_79!Word(23, W, B, C, D, E, F, G, H, A, constants[23]); T_SHA2_16_79!Word(24, W, A, B, C, D, E, F, G, H, constants[24]); T_SHA2_16_79!Word(25, W, H, A, B, C, D, E, F, G, constants[25]); T_SHA2_16_79!Word(26, W, G, H, A, B, C, D, E, F, constants[26]); T_SHA2_16_79!Word(27, W, F, G, H, A, B, C, D, E, constants[27]); T_SHA2_16_79!Word(28, W, E, F, G, H, A, B, C, D, constants[28]); T_SHA2_16_79!Word(29, W, D, E, F, G, H, A, B, C, constants[29]); T_SHA2_16_79!Word(30, W, C, D, E, F, G, H, A, B, constants[30]); T_SHA2_16_79!Word(31, W, B, C, D, E, F, G, H, A, constants[31]); T_SHA2_16_79!Word(32, W, A, B, C, D, E, F, G, H, constants[32]); T_SHA2_16_79!Word(33, W, H, A, B, C, D, E, F, G, constants[33]); T_SHA2_16_79!Word(34, W, G, H, A, B, C, D, E, F, constants[34]); T_SHA2_16_79!Word(35, W, F, G, H, A, B, C, D, E, constants[35]); T_SHA2_16_79!Word(36, W, E, F, G, H, A, B, C, D, constants[36]); T_SHA2_16_79!Word(37, W, D, E, F, G, H, A, B, C, constants[37]); T_SHA2_16_79!Word(38, W, C, D, E, F, G, H, A, B, constants[38]); T_SHA2_16_79!Word(39, W, B, C, D, E, F, G, H, A, constants[39]); T_SHA2_16_79!Word(40, W, A, B, C, D, E, F, G, H, constants[40]); T_SHA2_16_79!Word(41, W, H, A, B, C, D, E, F, G, constants[41]); T_SHA2_16_79!Word(42, W, G, H, A, B, C, D, E, F, constants[42]); T_SHA2_16_79!Word(43, W, F, G, H, A, B, C, D, E, constants[43]); T_SHA2_16_79!Word(44, W, E, F, G, H, A, B, C, D, constants[44]); T_SHA2_16_79!Word(45, W, D, E, F, G, H, A, B, C, constants[45]); T_SHA2_16_79!Word(46, W, C, D, E, F, G, H, A, B, constants[46]); T_SHA2_16_79!Word(47, W, B, C, D, E, F, G, H, A, constants[47]); T_SHA2_16_79!Word(48, W, A, B, C, D, E, F, G, H, constants[48]); T_SHA2_16_79!Word(49, W, H, A, B, C, D, E, F, G, constants[49]); T_SHA2_16_79!Word(50, W, G, H, A, B, C, D, E, F, constants[50]); T_SHA2_16_79!Word(51, W, F, G, H, A, B, C, D, E, constants[51]); T_SHA2_16_79!Word(52, W, E, F, G, H, A, B, C, D, constants[52]); T_SHA2_16_79!Word(53, W, D, E, F, G, H, A, B, C, constants[53]); T_SHA2_16_79!Word(54, W, C, D, E, F, G, H, A, B, constants[54]); T_SHA2_16_79!Word(55, W, B, C, D, E, F, G, H, A, constants[55]); T_SHA2_16_79!Word(56, W, A, B, C, D, E, F, G, H, constants[56]); T_SHA2_16_79!Word(57, W, H, A, B, C, D, E, F, G, constants[57]); T_SHA2_16_79!Word(58, W, G, H, A, B, C, D, E, F, constants[58]); T_SHA2_16_79!Word(59, W, F, G, H, A, B, C, D, E, constants[59]); T_SHA2_16_79!Word(60, W, E, F, G, H, A, B, C, D, constants[60]); T_SHA2_16_79!Word(61, W, D, E, F, G, H, A, B, C, constants[61]); T_SHA2_16_79!Word(62, W, C, D, E, F, G, H, A, B, constants[62]); T_SHA2_16_79!Word(63, W, B, C, D, E, F, G, H, A, constants[63]); static if (is(Word == ulong)) { T_SHA2_16_79!Word(64, W, A, B, C, D, E, F, G, H, constants[64]); T_SHA2_16_79!Word(65, W, H, A, B, C, D, E, F, G, constants[65]); T_SHA2_16_79!Word(66, W, G, H, A, B, C, D, E, F, constants[66]); T_SHA2_16_79!Word(67, W, F, G, H, A, B, C, D, E, constants[67]); T_SHA2_16_79!Word(68, W, E, F, G, H, A, B, C, D, constants[68]); T_SHA2_16_79!Word(69, W, D, E, F, G, H, A, B, C, constants[69]); T_SHA2_16_79!Word(70, W, C, D, E, F, G, H, A, B, constants[70]); T_SHA2_16_79!Word(71, W, B, C, D, E, F, G, H, A, constants[71]); T_SHA2_16_79!Word(72, W, A, B, C, D, E, F, G, H, constants[72]); T_SHA2_16_79!Word(73, W, H, A, B, C, D, E, F, G, constants[73]); T_SHA2_16_79!Word(74, W, G, H, A, B, C, D, E, F, constants[74]); T_SHA2_16_79!Word(75, W, F, G, H, A, B, C, D, E, constants[75]); T_SHA2_16_79!Word(76, W, E, F, G, H, A, B, C, D, constants[76]); T_SHA2_16_79!Word(77, W, D, E, F, G, H, A, B, C, constants[77]); T_SHA2_16_79!Word(78, W, C, D, E, F, G, H, A, B, constants[78]); T_SHA2_16_79!Word(79, W, B, C, D, E, F, G, H, A, constants[79]); } (*state)[0] += A; (*state)[1] += B; (*state)[2] += C; (*state)[3] += D; (*state)[4] += E; (*state)[5] += F; (*state)[6] += G; (*state)[7] += H; /* Zeroize sensitive information. */ W[] = 0; } public: /** * SHA initialization. Begins an SHA1/SHA2 operation. * * Note: * For this SHA Digest implementation calling start after default construction * is not necessary. Calling start is only necessary to reset the Digest. * * Generic code which deals with different Digest types should always call start though. * * Example: * -------- * SHA1 digest; * //digest.start(); //Not necessary * digest.put(0); * -------- */ void start() @safe pure nothrow @nogc { this = typeof(this).init; } /** * Use this to feed the digest with data. * Also implements the $(REF isOutputRange, std,range,primitives) * interface for `ubyte` and `const(ubyte)[]`. */ void put(scope const(ubyte)[] input...) @trusted pure nothrow @nogc { enum blockSizeInBytes = blockSize/8; uint i, index, partLen; auto inputLen = input.length; /* Compute number of bytes mod block size (64 or 128 bytes) */ index = (cast(uint) count[0] >> 3) & (blockSizeInBytes - 1); /* Update number of bits */ static if (blockSize == 512) count[0] += inputLen * 8; else static if (blockSize == 1024) { /* ugly hack to work around lack of ucent */ auto oldCount0 = count[0]; count[0] += inputLen * 8; if (count[0] < oldCount0) count[1]++; } else static assert(0); partLen = blockSizeInBytes - index; /* Transform as many times as possible. */ if (inputLen >= partLen) { (&buffer[index])[0 .. partLen] = input.ptr[0 .. partLen]; transform (&state, &buffer); for (i = partLen; i + blockSizeInBytes-1 < inputLen; i += blockSizeInBytes) transform(&state, cast(ubyte[blockSizeInBytes]*)(input.ptr + i)); index = 0; } else i = 0; /* Buffer remaining input */ if (inputLen - i) (&buffer[index])[0 .. inputLen-i] = (&input[i])[0 .. inputLen-i]; } @safe unittest { typeof(this) dig; dig.put(cast(ubyte) 0); //single ubyte dig.put(cast(ubyte) 0, cast(ubyte) 0); //variadic ubyte[10] buf; dig.put(buf); //buffer } /** * Returns the finished SHA hash. This also calls $(LREF start) to * reset the internal state. */ ubyte[digestSize/8] finish() @trusted pure nothrow @nogc { static if (blockSize == 512) { uint[8] data = void; uint index, padLen; /* Save number of bits */ ulong bits = nativeToBigEndian(count[0]); /* Pad out to 56 mod 64. */ index = (cast(uint) count[0] >> 3) & (64 - 1); padLen = (index < 56) ? (56 - index) : (120 - index); put(padding[0 .. padLen]); /* Append length (before padding) */ put((cast(ubyte*) &bits)[0 .. bits.sizeof]); /* Store state in digest */ static foreach (i; 0 .. (digestSize == 160) ? 5 : 8) data[i] = nativeToBigEndian(state[i]); /* Zeroize sensitive information. */ start(); return (cast(ubyte*) data.ptr)[0 .. digestSize/8]; } else static if (blockSize == 1024) { ulong[8] data = void; uint index, padLen; /* Save number of bits */ ulong[2] bits = [nativeToBigEndian(count[1]), nativeToBigEndian(count[0])]; /* Pad out to 112 mod 128. */ index = (cast(uint) count[0] >> 3) & (128 - 1); padLen = (index < 112) ? (112 - index) : (240 - index); put(padding[0 .. padLen]); /* Append length (before padding) */ put((cast(ubyte*) &bits)[0 .. bits.sizeof]); /* Store state in digest */ static foreach (i; 0 .. 8) data[i] = nativeToBigEndian(state[i]); /* Zeroize sensitive information. */ start(); return (cast(ubyte*) data.ptr)[0 .. digestSize/8]; } else static assert(0); } /// @safe unittest { //Simple example SHA1 hash; hash.start(); hash.put(cast(ubyte) 0); ubyte[20] result = hash.finish(); } } /// @safe unittest { //Simple example, hashing a string using sha1Of helper function ubyte[20] hash = sha1Of("abc"); //Let's get a hash string assert(toHexString(hash) == "A9993E364706816ABA3E25717850C26C9CD0D89D"); //The same, but using SHA-224 ubyte[28] hash224 = sha224Of("abc"); assert(toHexString(hash224) == "23097D223405D8228642A477BDA255B32AADBCE4BDA0B3F7E36C9DA7"); } /// @safe unittest { //Using the basic API SHA1 hash; hash.start(); ubyte[1024] data; //Initialize data here... hash.put(data); ubyte[20] result = hash.finish(); } /// @safe unittest { //Let's use the template features: //Note: When passing a SHA1 to a function, it must be passed by reference! void doSomething(T)(ref T hash) if (isDigest!T) { hash.put(cast(ubyte) 0); } SHA1 sha; sha.start(); doSomething(sha); assert(toHexString(sha.finish()) == "5BA93C9DB0CFF93F52B521D7420E43F6EDA2784F"); } alias SHA1 = SHA!(512, 160); /// SHA alias for SHA-1, hash is ubyte[20] alias SHA224 = SHA!(512, 224); /// SHA alias for SHA-224, hash is ubyte[28] alias SHA256 = SHA!(512, 256); /// SHA alias for SHA-256, hash is ubyte[32] alias SHA384 = SHA!(1024, 384); /// SHA alias for SHA-384, hash is ubyte[48] alias SHA512 = SHA!(1024, 512); /// SHA alias for SHA-512, hash is ubyte[64] alias SHA512_224 = SHA!(1024, 224); /// SHA alias for SHA-512/224, hash is ubyte[28] alias SHA512_256 = SHA!(1024, 256); /// SHA alias for SHA-512/256, hash is ubyte[32] @safe unittest { assert(isDigest!SHA1); assert(isDigest!SHA224); assert(isDigest!SHA256); assert(isDigest!SHA384); assert(isDigest!SHA512); assert(isDigest!SHA512_224); assert(isDigest!SHA512_256); } @system unittest { import std.conv : hexString; import std.range; ubyte[20] digest; ubyte[28] digest224; ubyte[32] digest256; ubyte[48] digest384; ubyte[64] digest512; ubyte[28] digest512_224; ubyte[32] digest512_256; SHA1 sha; sha.put(cast(ubyte[])"abcdef"); sha.start(); sha.put(cast(ubyte[])""); assert(sha.finish() == cast(ubyte[]) hexString!"da39a3ee5e6b4b0d3255bfef95601890afd80709"); SHA224 sha224; sha224.put(cast(ubyte[])"abcdef"); sha224.start(); sha224.put(cast(ubyte[])""); assert(sha224.finish() == cast(ubyte[]) hexString!"d14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f"); SHA256 sha256; sha256.put(cast(ubyte[])"abcdef"); sha256.start(); sha256.put(cast(ubyte[])""); assert(sha256.finish() == cast(ubyte[]) hexString!"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"); SHA384 sha384; sha384.put(cast(ubyte[])"abcdef"); sha384.start(); sha384.put(cast(ubyte[])""); assert(sha384.finish() == cast(ubyte[]) hexString!("38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c" ~"0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b")); SHA512 sha512; sha512.put(cast(ubyte[])"abcdef"); sha512.start(); sha512.put(cast(ubyte[])""); assert(sha512.finish() == cast(ubyte[]) hexString!("cf83e1357eefb8bdf1542850d66d8007d620e4050b571" ~"5dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e")); SHA512_224 sha512_224; sha512_224.put(cast(ubyte[])"abcdef"); sha512_224.start(); sha512_224.put(cast(ubyte[])""); assert(sha512_224.finish() == cast(ubyte[]) hexString!"6ed0dd02806fa89e25de060c19d3ac86cabb87d6a0ddd05c333b84f4"); SHA512_256 sha512_256; sha512_256.put(cast(ubyte[])"abcdef"); sha512_256.start(); sha512_256.put(cast(ubyte[])""); assert(sha512_256.finish() == cast(ubyte[]) hexString!"c672b8d1ef56ed28ab87c3622c5114069bdd3ad7b8f9737498d0c01ecef0967a"); digest = sha1Of (""); digest224 = sha224Of (""); digest256 = sha256Of (""); digest384 = sha384Of (""); digest512 = sha512Of (""); digest512_224 = sha512_224Of(""); digest512_256 = sha512_256Of(""); assert(digest == cast(ubyte[]) hexString!"da39a3ee5e6b4b0d3255bfef95601890afd80709"); assert(digest224 == cast(ubyte[]) hexString!"d14a028c2a3a2bc9476102bb288234c415a2b01f828ea62ac5b3e42f"); assert(digest256 == cast(ubyte[]) hexString!"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"); assert(digest384 == cast(ubyte[]) hexString!("38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c" ~"0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b")); assert(digest512 == cast(ubyte[]) hexString!("cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83" ~"f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e")); assert(digest512_224 == cast(ubyte[]) hexString!"6ed0dd02806fa89e25de060c19d3ac86cabb87d6a0ddd05c333b84f4"); assert(digest512_256 == cast(ubyte[]) hexString!"c672b8d1ef56ed28ab87c3622c5114069bdd3ad7b8f9737498d0c01ecef0967a"); digest = sha1Of ("a"); digest224 = sha224Of ("a"); digest256 = sha256Of ("a"); digest384 = sha384Of ("a"); digest512 = sha512Of ("a"); digest512_224 = sha512_224Of("a"); digest512_256 = sha512_256Of("a"); assert(digest == cast(ubyte[]) hexString!"86f7e437faa5a7fce15d1ddcb9eaeaea377667b8"); assert(digest224 == cast(ubyte[]) hexString!"abd37534c7d9a2efb9465de931cd7055ffdb8879563ae98078d6d6d5"); assert(digest256 == cast(ubyte[]) hexString!"ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb"); assert(digest384 == cast(ubyte[]) hexString!("54a59b9f22b0b80880d8427e548b7c23abd873486e1f035dce9" ~"cd697e85175033caa88e6d57bc35efae0b5afd3145f31")); assert(digest512 == cast(ubyte[]) hexString!("1f40fc92da241694750979ee6cf582f2d5d7d28e18335de05ab" ~"c54d0560e0f5302860c652bf08d560252aa5e74210546f369fbbbce8c12cfc7957b2652fe9a75")); assert(digest512_224 == cast(ubyte[]) hexString!"d5cdb9ccc769a5121d4175f2bfdd13d6310e0d3d361ea75d82108327"); assert(digest512_256 == cast(ubyte[]) hexString!"455e518824bc0601f9fb858ff5c37d417d67c2f8e0df2babe4808858aea830f8"); digest = sha1Of ("abc"); digest224 = sha224Of ("abc"); digest256 = sha256Of ("abc"); digest384 = sha384Of ("abc"); digest512 = sha512Of ("abc"); digest512_224 = sha512_224Of("abc"); digest512_256 = sha512_256Of("abc"); assert(digest == cast(ubyte[]) hexString!"a9993e364706816aba3e25717850c26c9cd0d89d"); assert(digest224 == cast(ubyte[]) hexString!"23097d223405d8228642a477bda255b32aadbce4bda0b3f7e36c9da7"); assert(digest256 == cast(ubyte[]) hexString!"ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad"); assert(digest384 == cast(ubyte[]) hexString!("cb00753f45a35e8bb5a03d699ac65007272c32ab0eded1631a" ~"8b605a43ff5bed8086072ba1e7cc2358baeca134c825a7")); assert(digest512 == cast(ubyte[]) hexString!("ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9" ~"eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f")); assert(digest512_224 == cast(ubyte[]) hexString!"4634270f707b6a54daae7530460842e20e37ed265ceee9a43e8924aa"); assert(digest512_256 == cast(ubyte[]) hexString!"53048e2681941ef99b2e29b76b4c7dabe4c2d0c634fc6d46e0e2f13107e7af23"); digest = sha1Of ("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"); digest224 = sha224Of ("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"); digest256 = sha256Of ("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"); digest384 = sha384Of ("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"); digest512 = sha512Of ("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"); digest512_224 = sha512_224Of("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"); digest512_256 = sha512_256Of("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"); assert(digest == cast(ubyte[]) hexString!"84983e441c3bd26ebaae4aa1f95129e5e54670f1"); assert(digest224 == cast(ubyte[]) hexString!"75388b16512776cc5dba5da1fd890150b0c6455cb4f58b1952522525"); assert(digest256 == cast(ubyte[]) hexString!"248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1"); assert(digest384 == cast(ubyte[]) hexString!("3391fdddfc8dc7393707a65b1b4709397cf8b1d162af05abfe" ~"8f450de5f36bc6b0455a8520bc4e6f5fe95b1fe3c8452b")); assert(digest512 == cast(ubyte[]) hexString!("204a8fc6dda82f0a0ced7beb8e08a41657c16ef468b228a827" ~"9be331a703c33596fd15c13b1b07f9aa1d3bea57789ca031ad85c7a71dd70354ec631238ca3445")); assert(digest512_224 == cast(ubyte[]) hexString!"e5302d6d54bb242275d1e7622d68df6eb02dedd13f564c13dbda2174"); assert(digest512_256 == cast(ubyte[]) hexString!"bde8e1f9f19bb9fd3406c90ec6bc47bd36d8ada9f11880dbc8a22a7078b6a461"); digest = sha1Of ("message digest"); digest224 = sha224Of ("message digest"); digest256 = sha256Of ("message digest"); digest384 = sha384Of ("message digest"); digest512 = sha512Of ("message digest"); digest512_224 = sha512_224Of("message digest"); digest512_256 = sha512_256Of("message digest"); assert(digest == cast(ubyte[]) hexString!"c12252ceda8be8994d5fa0290a47231c1d16aae3"); assert(digest224 == cast(ubyte[]) hexString!"2cb21c83ae2f004de7e81c3c7019cbcb65b71ab656b22d6d0c39b8eb"); assert(digest256 == cast(ubyte[]) hexString!"f7846f55cf23e14eebeab5b4e1550cad5b509e3348fbc4efa3a1413d393cb650"); assert(digest384 == cast(ubyte[]) hexString!("473ed35167ec1f5d8e550368a3db39be54639f828868e9454c" ~"239fc8b52e3c61dbd0d8b4de1390c256dcbb5d5fd99cd5")); assert(digest512 == cast(ubyte[]) hexString!("107dbf389d9e9f71a3a95f6c055b9251bc5268c2be16d6c134" ~"92ea45b0199f3309e16455ab1e96118e8a905d5597b72038ddb372a89826046de66687bb420e7c")); assert(digest512_224 == cast(ubyte[]) hexString!"ad1a4db188fe57064f4f24609d2a83cd0afb9b398eb2fcaeaae2c564"); assert(digest512_256 == cast(ubyte[]) hexString!"0cf471fd17ed69d990daf3433c89b16d63dec1bb9cb42a6094604ee5d7b4e9fb"); digest = sha1Of ("abcdefghijklmnopqrstuvwxyz"); digest224 = sha224Of ("abcdefghijklmnopqrstuvwxyz"); digest256 = sha256Of ("abcdefghijklmnopqrstuvwxyz"); digest384 = sha384Of ("abcdefghijklmnopqrstuvwxyz"); digest512 = sha512Of ("abcdefghijklmnopqrstuvwxyz"); digest512_224 = sha512_224Of("abcdefghijklmnopqrstuvwxyz"); digest512_256 = sha512_256Of("abcdefghijklmnopqrstuvwxyz"); assert(digest == cast(ubyte[]) hexString!"32d10c7b8cf96570ca04ce37f2a19d84240d3a89"); assert(digest224 == cast(ubyte[]) hexString!"45a5f72c39c5cff2522eb3429799e49e5f44b356ef926bcf390dccc2"); assert(digest256 == cast(ubyte[]) hexString!"71c480df93d6ae2f1efad1447c66c9525e316218cf51fc8d9ed832f2daf18b73"); assert(digest384 == cast(ubyte[]) hexString!("feb67349df3db6f5924815d6c3dc133f091809213731fe5c7b5" ~"f4999e463479ff2877f5f2936fa63bb43784b12f3ebb4")); assert(digest512 == cast(ubyte[]) hexString!("4dbff86cc2ca1bae1e16468a05cb9881c97f1753bce3619034" ~"898faa1aabe429955a1bf8ec483d7421fe3c1646613a59ed5441fb0f321389f77f48a879c7b1f1")); assert(digest512_224 == cast(ubyte[]) hexString!"ff83148aa07ec30655c1b40aff86141c0215fe2a54f767d3f38743d8"); assert(digest512_256 == cast(ubyte[]) hexString!"fc3189443f9c268f626aea08a756abe7b726b05f701cb08222312ccfd6710a26"); digest = sha1Of ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"); digest224 = sha224Of ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"); digest256 = sha256Of ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"); digest384 = sha384Of ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"); digest512 = sha512Of ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"); digest512_224 = sha512_224Of("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"); digest512_256 = sha512_256Of("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"); assert(digest == cast(ubyte[]) hexString!"761c457bf73b14d27e9e9265c46f4b4dda11f940"); assert(digest224 == cast(ubyte[]) hexString!"bff72b4fcb7d75e5632900ac5f90d219e05e97a7bde72e740db393d9"); assert(digest256 == cast(ubyte[]) hexString!"db4bfcbd4da0cd85a60c3c37d3fbd8805c77f15fc6b1fdfe614ee0a7c8fdb4c0"); assert(digest384 == cast(ubyte[]) hexString!("1761336e3f7cbfe51deb137f026f89e01a448e3b1fafa64039" ~"c1464ee8732f11a5341a6f41e0c202294736ed64db1a84")); assert(digest512 == cast(ubyte[]) hexString!("1e07be23c26a86ea37ea810c8ec7809352515a970e9253c26f" ~"536cfc7a9996c45c8370583e0a78fa4a90041d71a4ceab7423f19c71b9d5a3e01249f0bebd5894")); assert(digest512_224 == cast(ubyte[]) hexString!"a8b4b9174b99ffc67d6f49be9981587b96441051e16e6dd036b140d3"); assert(digest512_256 == cast(ubyte[]) hexString!"cdf1cc0effe26ecc0c13758f7b4a48e000615df241284185c39eb05d355bb9c8"); digest = sha1Of ("1234567890123456789012345678901234567890"~ "1234567890123456789012345678901234567890"); digest224 = sha224Of ("1234567890123456789012345678901234567890"~ "1234567890123456789012345678901234567890"); digest256 = sha256Of ("1234567890123456789012345678901234567890"~ "1234567890123456789012345678901234567890"); digest384 = sha384Of ("1234567890123456789012345678901234567890"~ "1234567890123456789012345678901234567890"); digest512 = sha512Of ("1234567890123456789012345678901234567890"~ "1234567890123456789012345678901234567890"); digest512_224 = sha512_224Of("1234567890123456789012345678901234567890"~ "1234567890123456789012345678901234567890"); digest512_256 = sha512_256Of("1234567890123456789012345678901234567890"~ "1234567890123456789012345678901234567890"); assert(digest == cast(ubyte[]) hexString!"50abf5706a150990a08b2c5ea40fa0e585554732"); assert(digest224 == cast(ubyte[]) hexString!"b50aecbe4e9bb0b57bc5f3ae760a8e01db24f203fb3cdcd13148046e"); assert(digest256 == cast(ubyte[]) hexString!"f371bc4a311f2b009eef952dd83ca80e2b60026c8e935592d0f9c308453c813e"); assert(digest384 == cast(ubyte[]) hexString!("b12932b0627d1c060942f5447764155655bd4da0c9afa6dd9b" ~"9ef53129af1b8fb0195996d2de9ca0df9d821ffee67026")); assert(digest512 == cast(ubyte[]) hexString!("72ec1ef1124a45b047e8b7c75a932195135bb61de24ec0d191" ~"4042246e0aec3a2354e093d76f3048b456764346900cb130d2a4fd5dd16abb5e30bcb850dee843")); assert(digest512_224 == cast(ubyte[]) hexString!"ae988faaa47e401a45f704d1272d99702458fea2ddc6582827556dd2"); assert(digest512_256 == cast(ubyte[]) hexString!"2c9fdbc0c90bdd87612ee8455474f9044850241dc105b1e8b94b8ddf5fac9148"); ubyte[] onemilliona = new ubyte[1000000]; onemilliona[] = 'a'; digest = sha1Of(onemilliona); digest224 = sha224Of(onemilliona); digest256 = sha256Of(onemilliona); digest384 = sha384Of(onemilliona); digest512 = sha512Of(onemilliona); digest512_224 = sha512_224Of(onemilliona); digest512_256 = sha512_256Of(onemilliona); assert(digest == cast(ubyte[]) hexString!"34aa973cd4c4daa4f61eeb2bdbad27316534016f"); assert(digest224 == cast(ubyte[]) hexString!"20794655980c91d8bbb4c1ea97618a4bf03f42581948b2ee4ee7ad67"); assert(digest256 == cast(ubyte[]) hexString!"cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0"); assert(digest384 == cast(ubyte[]) hexString!("9d0e1809716474cb086e834e310a4a1ced149e9c00f2485279" ~"72cec5704c2a5b07b8b3dc38ecc4ebae97ddd87f3d8985")); assert(digest512 == cast(ubyte[]) hexString!("e718483d0ce769644e2e42c7bc15b4638e1f98b13b20442856" ~"32a803afa973ebde0ff244877ea60a4cb0432ce577c31beb009c5c2c49aa2e4eadb217ad8cc09b")); assert(digest512_224 == cast(ubyte[]) hexString!"37ab331d76f0d36de422bd0edeb22a28accd487b7a8453ae965dd287"); assert(digest512_256 == cast(ubyte[]) hexString!"9a59a052930187a97038cae692f30708aa6491923ef5194394dc68d56c74fb21"); auto oneMillionRange = repeat!ubyte(cast(ubyte)'a', 1000000); digest = sha1Of(oneMillionRange); digest224 = sha224Of(oneMillionRange); digest256 = sha256Of(oneMillionRange); digest384 = sha384Of(oneMillionRange); digest512 = sha512Of(oneMillionRange); digest512_224 = sha512_224Of(oneMillionRange); digest512_256 = sha512_256Of(oneMillionRange); assert(digest == cast(ubyte[]) hexString!"34aa973cd4c4daa4f61eeb2bdbad27316534016f"); assert(digest224 == cast(ubyte[]) hexString!"20794655980c91d8bbb4c1ea97618a4bf03f42581948b2ee4ee7ad67"); assert(digest256 == cast(ubyte[]) hexString!"cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0"); assert(digest384 == cast(ubyte[]) hexString!("9d0e1809716474cb086e834e310a4a1ced149e9c00f2485279" ~"72cec5704c2a5b07b8b3dc38ecc4ebae97ddd87f3d8985")); assert(digest512 == cast(ubyte[]) hexString!("e718483d0ce769644e2e42c7bc15b4638e1f98b13b20442856" ~"32a803afa973ebde0ff244877ea60a4cb0432ce577c31beb009c5c2c49aa2e4eadb217ad8cc09b")); assert(digest512_224 == cast(ubyte[]) hexString!"37ab331d76f0d36de422bd0edeb22a28accd487b7a8453ae965dd287"); assert(digest512_256 == cast(ubyte[]) hexString!"9a59a052930187a97038cae692f30708aa6491923ef5194394dc68d56c74fb21"); enum ubyte[20] input = cast(ubyte[20]) hexString!"a9993e364706816aba3e25717850c26c9cd0d89d"; assert(toHexString(input) == "A9993E364706816ABA3E25717850C26C9CD0D89D"); } /** * These are convenience aliases for $(REF digest, std,digest) using the * SHA implementation. */ //simple alias doesn't work here, hope this gets inlined... auto sha1Of(T...)(T data) { return digest!(SHA1, T)(data); } ///ditto auto sha224Of(T...)(T data) { return digest!(SHA224, T)(data); } ///ditto auto sha256Of(T...)(T data) { return digest!(SHA256, T)(data); } ///ditto auto sha384Of(T...)(T data) { return digest!(SHA384, T)(data); } ///ditto auto sha512Of(T...)(T data) { return digest!(SHA512, T)(data); } ///ditto auto sha512_224Of(T...)(T data) { return digest!(SHA512_224, T)(data); } ///ditto auto sha512_256Of(T...)(T data) { return digest!(SHA512_256, T)(data); } /// @safe unittest { ubyte[20] hash = sha1Of("abc"); assert(hash == digest!SHA1("abc")); ubyte[28] hash224 = sha224Of("abc"); assert(hash224 == digest!SHA224("abc")); ubyte[32] hash256 = sha256Of("abc"); assert(hash256 == digest!SHA256("abc")); ubyte[48] hash384 = sha384Of("abc"); assert(hash384 == digest!SHA384("abc")); ubyte[64] hash512 = sha512Of("abc"); assert(hash512 == digest!SHA512("abc")); ubyte[28] hash512_224 = sha512_224Of("abc"); assert(hash512_224 == digest!SHA512_224("abc")); ubyte[32] hash512_256 = sha512_256Of("abc"); assert(hash512_256 == digest!SHA512_256("abc")); } @safe unittest { string a = "Mary has ", b = "a little lamb"; int[] c = [ 1, 2, 3, 4, 5 ]; auto d = toHexString(sha1Of(a, b, c)); version (LittleEndian) assert(d[] == "CDBB611D00AC2387B642D3D7BDF4C3B342237110", d.dup); else assert(d[] == "A0F1196C7A379C09390476D9CA4AA11B71FD11C8", d.dup); } /** * OOP API SHA1 and SHA2 implementations. * See `std.digest` for differences between template and OOP API. * * This is an alias for $(D $(REF WrapperDigest, std,digest)!SHA1), see * there for more information. */ alias SHA1Digest = WrapperDigest!SHA1; alias SHA224Digest = WrapperDigest!SHA224; ///ditto alias SHA256Digest = WrapperDigest!SHA256; ///ditto alias SHA384Digest = WrapperDigest!SHA384; ///ditto alias SHA512Digest = WrapperDigest!SHA512; ///ditto alias SHA512_224Digest = WrapperDigest!SHA512_224; ///ditto alias SHA512_256Digest = WrapperDigest!SHA512_256; ///ditto /// @safe unittest { //Simple example, hashing a string using Digest.digest helper function auto sha = new SHA1Digest(); ubyte[] hash = sha.digest("abc"); //Let's get a hash string assert(toHexString(hash) == "A9993E364706816ABA3E25717850C26C9CD0D89D"); //The same, but using SHA-224 auto sha224 = new SHA224Digest(); ubyte[] hash224 = sha224.digest("abc"); //Let's get a hash string assert(toHexString(hash224) == "23097D223405D8228642A477BDA255B32AADBCE4BDA0B3F7E36C9DA7"); } /// @system unittest { //Let's use the OOP features: void test(Digest dig) { dig.put(cast(ubyte) 0); } auto sha = new SHA1Digest(); test(sha); //Let's use a custom buffer: ubyte[20] buf; ubyte[] result = sha.finish(buf[]); assert(toHexString(result) == "5BA93C9DB0CFF93F52B521D7420E43F6EDA2784F"); } @system unittest { import std.conv : hexString; import std.exception; auto sha = new SHA1Digest(); sha.put(cast(ubyte[])"abcdef"); sha.reset(); sha.put(cast(ubyte[])""); assert(sha.finish() == cast(ubyte[]) hexString!"da39a3ee5e6b4b0d3255bfef95601890afd80709"); sha.put(cast(ubyte[])"abcdefghijklmnopqrstuvwxyz"); ubyte[22] result; auto result2 = sha.finish(result[]); assert(result[0 .. 20] == result2 && result2 == cast(ubyte[]) hexString!"32d10c7b8cf96570ca04ce37f2a19d84240d3a89"); debug assertThrown!Error(sha.finish(result[0 .. 15])); assert(sha.length == 20); assert(sha.digest("") == cast(ubyte[]) hexString!"da39a3ee5e6b4b0d3255bfef95601890afd80709"); assert(sha.digest("a") == cast(ubyte[]) hexString!"86f7e437faa5a7fce15d1ddcb9eaeaea377667b8"); assert(sha.digest("abc") == cast(ubyte[]) hexString!"a9993e364706816aba3e25717850c26c9cd0d89d"); assert(sha.digest("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq") == cast(ubyte[]) hexString!"84983e441c3bd26ebaae4aa1f95129e5e54670f1"); assert(sha.digest("message digest") == cast(ubyte[]) hexString!"c12252ceda8be8994d5fa0290a47231c1d16aae3"); assert(sha.digest("abcdefghijklmnopqrstuvwxyz") == cast(ubyte[]) hexString!"32d10c7b8cf96570ca04ce37f2a19d84240d3a89"); assert(sha.digest("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") == cast(ubyte[]) hexString!"761c457bf73b14d27e9e9265c46f4b4dda11f940"); assert(sha.digest("1234567890123456789012345678901234567890", "1234567890123456789012345678901234567890") == cast(ubyte[]) hexString!"50abf5706a150990a08b2c5ea40fa0e585554732"); ubyte[] onemilliona = new ubyte[1000000]; onemilliona[] = 'a'; assert(sha.digest(onemilliona) == cast(ubyte[]) hexString!"34aa973cd4c4daa4f61eeb2bdbad27316534016f"); }
D
/Users/William/dev/rust/substrate-blockchain-test/substrate-test/runtime/target/debug/deps/owning_ref-1b8f3979a6be151d.rmeta: /Users/William/.cargo/registry/src/github.com-1ecc6299db9ec823/owning_ref-0.4.0/src/lib.rs /Users/William/dev/rust/substrate-blockchain-test/substrate-test/runtime/target/debug/deps/owning_ref-1b8f3979a6be151d.d: /Users/William/.cargo/registry/src/github.com-1ecc6299db9ec823/owning_ref-0.4.0/src/lib.rs /Users/William/.cargo/registry/src/github.com-1ecc6299db9ec823/owning_ref-0.4.0/src/lib.rs:
D
/Users/felixdescoteaux/exercism/rust/proverb/target/debug/proverb-8f3453d9b85b77a7: /Users/felixdescoteaux/exercism/rust/proverb/src/lib.rs
D
/home/git/for_nep141/nep141transfer/contract/target/release/build/memchr-569c819b7482fc3f/build_script_build-569c819b7482fc3f: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/memchr-2.3.4/build.rs /home/git/for_nep141/nep141transfer/contract/target/release/build/memchr-569c819b7482fc3f/build_script_build-569c819b7482fc3f.d: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/memchr-2.3.4/build.rs /root/.cargo/registry/src/github.com-1ecc6299db9ec823/memchr-2.3.4/build.rs:
D
any of several large humped bovids having shaggy manes and large heads and short horns
D
<?xml version="1.0" encoding="ASCII"?> <di:SashWindowsMngr xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi"> <pageList> <availablePage> <emfPageIdentifier href="7d62c6aa-1149-4b8e-9ce7-69b7f17166ed8f57174b-f355-454a-8eb5-3df645a4f5b1-Activity.notation#_u1858lxQEemawpDNrkj6eg"/> </availablePage> </pageList> <sashModel currentSelection="//@sashModel/@windows.0/@children.0"> <windows> <children xsi:type="di:TabFolder"> <children> <emfPageIdentifier href="7d62c6aa-1149-4b8e-9ce7-69b7f17166ed8f57174b-f355-454a-8eb5-3df645a4f5b1-Activity.notation#_u1858lxQEemawpDNrkj6eg"/> </children> </children> </windows> </sashModel> </di:SashWindowsMngr>
D
/* Copyright (c) 2017-2019 Timur Gafarov 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 dagon.ext.physics.rigidbodycomponent; import dlib.math.matrix; import dlib.math.transformation; import dagon.core.event; import dagon.core.time; import dagon.graphics.entity; import dagon.ext.physics.rigidbody; class RigidBodyComponent: EntityComponent { RigidBody rbody; Matrix4x4f prevTransformation; this(EventManager em, Entity e, RigidBody b) { super(em, e); rbody = b; b.position = e.position; b.orientation = e.rotation; prevTransformation = Matrix4x4f.identity; } override void update(Time t) { entity.position = rbody.position; entity.rotation = rbody.orientation; entity.transformation = rbody.transformation * scaleMatrix(entity.scaling); entity.invTransformation = entity.transformation.inverse; entity.prevTransformation = prevTransformation; entity.absoluteTransformation = entity.transformation; entity.invAbsoluteTransformation = entity.invTransformation; entity.prevAbsoluteTransformation = entity.prevTransformation; prevTransformation = entity.transformation; } }
D
// ********************* // Gobbo_Green Prototype // ********************* prototype Mst_Default_Gobbo_Green (C_NPC) { // ------ Monster ----- name = "Goblin"; guild = GIL_GOBBO; aivar[AIV_MM_REAL_ID] = ID_GOBBO_GREEN; level = 4; // ------ Attribute ------ attribute [ATR_STRENGTH] = 30; attribute [ATR_DEXTERITY] = 30; attribute [ATR_HITPOINTS_MAX] = 50; attribute [ATR_HITPOINTS] = 50; attribute [ATR_MANA_MAX] = 0; attribute [ATR_MANA] = 0; // ------ Protection ------ protection [PROT_BLUNT] = 30; protection [PROT_EDGE] = 30; protection [PROT_POINT] = 10; protection [PROT_FIRE] = 30; protection [PROT_FLY] = 30; protection [PROT_MAGIC] = 0; // ------ Damage Types ------ //entweder EIN damagetype oder mehrere damage[x], die dann addiert werden und getrennten Rüstungsabzug bekommen damagetype = DAM_EDGE; // damage [DAM_INDEX_BLUNT] = 0; // damage [DAM_INDEX_EDGE] = 0; // damage [DAM_INDEX_POINT] = 0; // damage [DAM_INDEX_FIRE] = 0; // damage [DAM_INDEX_FLY] = 0; // damage [DAM_INDEX_MAGIC] = 0; // ------ Kampf-Taktik ------ fight_tactic = FAI_GOBBO; // ------ senses & ranges ------ senses = SENSE_HEAR | SENSE_SEE | SENSE_SMELL; senses_range = PERC_DIST_MONSTER_ACTIVE_MAX; aivar[AIV_MM_ThreatenBeforeAttack] = TRUE; aivar[AIV_MM_FollowTime] = FOLLOWTIME_MEDIUM; aivar[AIV_MM_FollowInWater] = FALSE; aivar[AIV_MM_Packhunter] = TRUE; // ------ Daily Routine ------ start_aistate = ZS_MM_AllScheduler; aivar[AIV_MM_RestStart] = OnlyRoutine; }; // ***************** // Visuals // ***************** func void B_SetVisuals_Gobbo_Green() { Mdl_SetVisual (self, "Gobbo.mds"); // Body-Mesh Body-Tex Skin-Color Head-MMS Head-Tex Teeth-Tex ARMOR Mdl_SetVisualBody (self, "Gob_Body", 0, DEFAULT, "", DEFAULT, DEFAULT, -1); }; // *********** // Green Gobbo // *********** INSTANCE Gobbo_Green (Mst_Default_Gobbo_Green) { B_SetVisuals_Gobbo_Green(); Npc_SetToFightMode (self, ItMw_1h_Bau_Mace); //Waffe ist nur Optik - Schaden wird NUR über STR bestimmt (Gobbo ist als Monster im Fistmode) }; // ***************** // Young Green Gobbo // ***************** INSTANCE YGobbo_Green (Mst_Default_Gobbo_Green) { level = 3; // ------ Attribute ------ attribute [ATR_STRENGTH] = 5; attribute [ATR_DEXTERITY] = 5; attribute [ATR_HITPOINTS_MAX] = 20; attribute [ATR_HITPOINTS] = 20; attribute [ATR_MANA_MAX] = 0; attribute [ATR_MANA] = 0; // ------ Protection ------ protection [PROT_BLUNT] = 0; protection [PROT_EDGE] = 0; protection [PROT_POINT] = 0; protection [PROT_FIRE] = 0; protection [PROT_FLY] = 0; protection [PROT_MAGIC] = 0; fight_tactic = FAI_MONSTER_COWARD; B_SetVisuals_Gobbo_Green(); Npc_SetToFightMode (self, ItMw_1h_Bau_Mace); //Waffe ist nur Optik - Schaden wird NUR über STR bestimmt (Gobbo ist als Monster im Fistmode) }; // *********** // Keroloth Gobbos // *********** INSTANCE goblin6 (Mst_Default_Gobbo_Green) { B_SetVisuals_Gobbo_Green(); Npc_SetToFightMode (self, ItMw_1h_Bau_Mace); }; INSTANCE goblin7 (Mst_Default_Gobbo_Green) { B_SetVisuals_Gobbo_Green(); Npc_SetToFightMode (self, ItMw_1h_Bau_Mace); }; INSTANCE goblin8 (Mst_Default_Gobbo_Green) { B_SetVisuals_Gobbo_Green(); Npc_SetToFightMode (self, ItMw_1h_Bau_Mace); }; INSTANCE goblin9 (Mst_Default_Gobbo_Green) { B_SetVisuals_Gobbo_Green(); Npc_SetToFightMode (self, ItMw_1h_Bau_Mace); }; INSTANCE goblin10 (Mst_Default_Gobbo_Green) { B_SetVisuals_Gobbo_Green(); Npc_SetToFightMode (self, ItMw_1h_Bau_Mace); };
D
/// module dpq.querybuilder; import dpq.attributes; import dpq.column; import dpq.connection; import dpq.query; import dpq.value; import std.algorithm : map, sum; import std.conv : to; import std.range : chunks; import std.string : format, join, replace; import std.typecons : Nullable; version (unittest) import std.stdio; enum Order : string { none = "", asc = "ASC", desc = "DESC" }; private enum QueryType { select = "SELECT", update = "UPDATE", insert = "INSERT", delete_ = "DELETE" } /** A filter builder struct meant for internal usage. Simplifies building a combination of AND/OR filters and makes the code more readable. */ private struct FilterBuilder { private string[][] _filters; ref FilterBuilder and(string filter) return { if (_filters.length == 0) _filters.length++; _filters[$ - 1] ~= '(' ~ filter ~ ')'; return this; } ref FilterBuilder or() return { _filters ~= []; return this; } /// Returns the actual number of lowest-level filters long length() { return _filters.map!(f => f.length).sum; } string toString() { // Join inner filters by AND, outer by OR return _filters.map!(innerFilter => innerFilter.join(" AND ") ).join(" OR "); } } /** Provides a nice way of writing queries in D, as well as some handy shortcuts to working with D structures in the DB. Most method names are synonimous with the same keyword in SQL, but their order does not matter. All of the methods can be chained. Examples: --------------------- auto qb = QueryBuilder() .select("id") .from!User .where("posts > {posts}") // placeholders can be used .order("posts", Order.desc) .limit(5); // Placeholders will be replaced ONLY if they are specified. // No need to escape anything, as it sent with execParams qb["posts"] = 50; --------------------- */ struct QueryBuilder { private { // Columns to select string[] _columns; // Table to select from string _table; // A list of filters, lowest-level representing AND, and OR between those FilterBuilder _filters; // List of ORDER BY columns and list of orders (ASC/DESC) string[] _orderBy; Order[] _orders; // Limit and offset values, using -1 is null value (not set) Nullable!(int, -1) _limit = -1; Nullable!(int, -1) _offset = -1; // Params to be used in the filters Value[string] _params; // Params to be be used as positional Value[] _indexParams; // Columns to list in RETURNING string[] _returning; // UPDATE's SET string[] _set; // Current index for positional params, needed because we allow mixing // placeholders and positional params int _paramIndex = 0; // Type of the query, (SELECT, UPDATE, ...) QueryType _type; Connection* _connection; } @property QueryBuilder dup() { // It's a struct, I'll copy anyway return this; } private string escapeIdentifier(string identifier) { if (_connection != null) return _connection.escapeIdentifier(identifier); // This could potentionally be dangerous, I don't like it. return `"%s"`.format(identifier); } /** Constructs a new QueryBuilder with the Connection, so we can directly run queries with it. */ this(ref Connection connection) { _connection = &connection; } /** Remembers the given key value pair, replacing the placeholders in the query before running it. If the same key is set multiple times, the last value will apply. */ void opIndexAssign(T)(T val, string key) { _params[key] = val; } unittest { writeln(" * QueryBuilder"); writeln("\t * opIndexAssign"); QueryBuilder qb; qb["foo"] = 123; qb["bar"] = "456"; assert(qb._params["foo"] == Value(123)); assert(qb._params["bar"] == Value("456")); } /** Sets the builder's type to SELECT, a variadic array of column names to select */ ref QueryBuilder select(string[] cols...) return { _columns = cols; _type = QueryType.select; return this; } /** Same as above, except it accepts a variadic array of Column type. Mostly used internally. */ ref QueryBuilder select(Column[] cols...) return { _type = QueryType.select; _columns = []; foreach(col; cols) { if (col.column != col.asName) _columns ~= "%s AS %s".format(col.column, col.asName); else _columns ~= col.column; } return this; } /** Selects all the given relation's properties Examples: ----------------- struct User { @PK @serial int id; } auto qb = QueryBuilder() .select!User .from!User .where( ... ); ----------------- */ ref QueryBuilder select(T)() { return select(AttributeList!T); } unittest { writeln("\t * select"); QueryBuilder qb; qb.select("foo", "bar", "baz"); assert(qb._columns == ["foo", "bar", "baz"]); Column[] cs = [Column("foo", "foo_test"), Column("bar")]; qb.select(cs); assert(qb._columns == ["foo AS foo_test", "bar"]); } /** Sets the builder's FROM value to the given string. */ ref QueryBuilder from(string from) return { assert( _type == QueryType.select || _type == QueryType.delete_, "QueryBuilder.from() can only be used for SELECT or DELETE queries."); _table = from; return this; } /** Same as above, but instead of accepting a string parameter, it instead accepts a type as a template parameter, then sets the value to that type's relation name. Preferred over the above version. */ ref QueryBuilder from(T)() { return from(relationName!T); } unittest { writeln("\t\t * from"); QueryBuilder qb; qb.from("sometable"); assert(qb._table == "sometable"); struct Test {} qb.from!Test; assert(qb._table == "test"); } /** Generates a placeholder that should be unique every time. This is required because we might filter by the same column twice (e.g. where(["id": 1])).or.where(["id": 2]), in which case the second value for ID would overwrite the first one. */ private string safePlaceholder(string key) { /* Because we only really need to be unique within this specific QB, just a simple static counter is good enough. It could be put on the QB instance instead, but this works just as well no need to complicate for now. */ static int count = 0; return "%s_%d".format(key, ++count); } /** Adds new filter(s). Param placeholders are used, with the same names as the AA keys. Calling this multiple times will AND the filters. Internally, a value placeholder will be used for each of the values, with the same name as the column itself. Be careful not to overwrite these before running the query. */ ref QueryBuilder where(T)(T[string] filters) { foreach (key, value; filters) { auto placeholder = safePlaceholder(key); _filters.and("%s = {%s}".format(escapeIdentifier(key), placeholder)); _params[placeholder] = value; } return this; } /** Adds a new custom filter. Useful for filters that are not simple equality comparisons, or usage psql functions. Nothing is escaped, make sure you properly escape the reserved keywords if they are used as identifier names. Placeholders can be used with this, and even positional params, since the order is predictable. Read addParam for more information about that. */ ref QueryBuilder where(T...)(string filter, T params) { _filters.and("%s".format(filter)); foreach (param; params) addParam(param); return this; } /// Alias and to where, to allow stuff like User.where( ... ).and( ... ) alias and = where; /** Once called, all additional parameters will be placed into their own group, OR placed between each group of ANDs Examples: -------------------- auto qb = QueryBuilder() .select!User .from!User .where(["id ": 1]) .or .where(["id": 2]); // Which will produce a filter like "... WHERE (id = $1) OR (id = $2)" -------------------- */ ref QueryBuilder or() return { _filters.or(); return this; } unittest { writeln("\t\t * where"); auto qb = QueryBuilder(); qb.where(["something": "asd"]); assert(qb._filters.length == 1); qb.where(["two": 2, "three": 3]); assert(qb._filters.length == 3); } /** Sets the ORDER part of the query. Accepts a column name and an Order value. */ ref QueryBuilder order(string col, Order order) return { assert(_type == QueryType.select, "QueryBuilder.order() can only be used for SELECT queries."); _orderBy ~= col; _orders ~= order; return this; } unittest { writeln("\t\t * order"); QueryBuilder qb; qb.order("some_col", Order.asc); assert(qb._orderBy[0] == "some_col"); assert(qb._orders[0] == Order.asc); qb.order("some_other_col", Order.desc); assert(qb._orderBy[1] == "some_other_col"); assert(qb._orders[1] == Order.desc); } /** Sets the LIMIT in the query. Only for SELECT queries, obviously. */ ref QueryBuilder limit(int limit) return { assert(_type == QueryType.select, "QueryBuilder.limit() can only be used for SELECT queries."); _limit = limit; return this; } unittest { writeln("\t\t * limit"); QueryBuilder qb; qb.limit(1); assert(qb._limit == 1); } /// OFFSET for queries ref QueryBuilder offset(int offset) return { assert(_type == QueryType.select, "QueryBuilder.offset() can only be used for SELECT queries."); _offset = offset; return this; } unittest { writeln("\t\t * offset"); QueryBuilder qb; qb.offset(1); assert(qb._offset == 1); } // UPDATE methods ref QueryBuilder update(string table) return { _table = table; _type = QueryType.update; return this; } ref QueryBuilder update(T)() { return update(relationName!T); } unittest { QueryBuilder qb; qb.update("sometable"); assert(qb._table == "sometable"); assert(qb._type == QueryType.update); struct Test {} qb.update!Test; assert(qb._type == QueryType.update); assert(qb._table == relationName!Test); } ref QueryBuilder set(T)(T[string] params) { foreach (col, val; params) set(col, val); return this; } ref QueryBuilder set(T)(string col, T val) { assert(_type == QueryType.update, "QueryBuilder.set() can only be used on UPDATE queries"); _params[col] = val; _set ~= "%s = {%s}".format(escapeIdentifier(col), col); return this; } ref QueryBuilder set(string set) return { _set ~= set; return this; } unittest { writeln("\t * set"); QueryBuilder qb; qb.update("foo") .set("some_col", 1); assert(qb._params["some_col"] == Value(1)); assert(qb._set.length == 1); assert(qb._set[0] == "\"some_col\" = {some_col}"); qb.set([ "col1": Value(1), "col2": Value(2)]); assert(qb._params.length == 3); assert(qb._set.length == 3); assert(qb._set[1] == "\"col1\" = {col1}"); assert(qb._set[2] == "\"col2\" = {col2}"); string str = "asd = $1"; qb.set(str); assert(qb._params.length == 3); assert(qb._set.length == 4); assert(qb._set[3] == str); } // INSERT methods ref QueryBuilder insert(string table, string[] cols...) return { _table = table; _columns = cols; _type = QueryType.insert; return this; } ref QueryBuilder insert(string table, Column[] cols...) return { import std.array; return insert(table, array(cols.map!(c => c.column))); } unittest { writeln("\t * insert"); QueryBuilder qb; qb.insert("table", "col1", "col2"); assert(qb._type == QueryType.insert); assert(qb._table == "table"); assert(qb._columns == ["col1", "col2"]); Column[] cs = [ Column("some_col", "stupid_as_name"), Column("qwe")]; qb.insert("table2", cs); assert(qb._table == "table2"); assert(qb._columns.length == 2); assert(qb._columns == ["some_col", "qwe"]); } ref QueryBuilder values(T...)(T vals) { assert(_type == QueryType.insert, "QueryBuilder.values() can only be used on INSERT queries"); foreach (val; vals) addValue(val); return this; } ref QueryBuilder values(Value[] vals) return { assert(_type == QueryType.insert, "QueryBuilder.values() can only be used on INSERT queries"); foreach (val; vals) addValue(val); return this; } unittest { writeln("\t * values"); QueryBuilder qb; qb.insert("table", "col") .values(1, 2, 3); assert(qb._type == QueryType.insert); assert(qb._indexParams.length == 3); assert(qb._indexParams == [Value(1), Value(2), Value(3)]); qb.values([Value(4), Value(5)]); assert(qb._indexParams.length == 5); assert(qb._indexParams == [Value(1), Value(2), Value(3), Value(4), Value(5)]); } ref QueryBuilder remove() return { _type = QueryType.delete_; return this; } ref QueryBuilder remove(string table) return { from(table); return remove(); } ref QueryBuilder remove(T)() { return remove(relationName!T); } ref QueryBuilder returning(string[] ret...) return { foreach (r; ret) _returning ~= r; return this; } unittest { writeln("\t * remove"); struct Test {} QueryBuilder qb; qb.remove!Test; assert(qb._type == QueryType.delete_); assert(qb._table == relationName!Test); } ref QueryBuilder addValue(T)(T val) { _indexParams ~= Value(val); return this; } ref QueryBuilder addValues(T, U)(U val) { import std.traits; import dpq.meta; import dpq.serialisation; if (isAnyNull(val)) addValue(null); else { foreach (m; serialisableMembers!(NoNullable!T)) { static if (isPK!(T, m) || hasUDA!(mixin("T." ~ m), IgnoreAttribute)) continue; else addValue(__traits(getMember, val, m)); } } return this; } // Other stuff private string replaceParams(string str) { int index = _paramIndex; foreach (param, val; _params) str = str.replace("{" ~ param ~ "}", "$%d".format(++index)); return str; } unittest { writeln("\t * replaceParams"); QueryBuilder qb; string str = "SELECT {foo} FROM table WHERE id = {bar} AND name = '{baz}'"; qb["foo"] = "a"; qb["bar"] = "b"; str = qb.replaceParams(str); // No idea what the order might be assert( str == "SELECT $1 FROM table WHERE id = $2 AND name = '{baz}'" || str == "SELECT $2 FROM table WHERE id = $1 AND name = '{baz}'"); } private string selectCommand() { string cols; if (_columns.length == 0) cols = "*"; else cols = _columns //.map!(c => escapeIdentifier(c)) .join(", "); string table = escapeIdentifier(_table); string str = "SELECT %s FROM %s".format(cols, table); if (_filters.length > 0) str ~= " WHERE " ~ _filters.to!string; if (_orderBy.length > 0) { str ~= " ORDER BY "; for (int i = 0; i < _orderBy.length; ++i) { if (_orders[i] == Order.none) continue; str ~= "\"" ~ _orderBy[i] ~ "\" " ~ _orders[i] ~ ", "; } str = str[0 .. $ - 2]; } if (!_limit.isNull) str ~= " LIMIT %d".format(_limit); if (!_offset.isNull) str ~= " OFFSET %d".format(_offset); return replaceParams(str); } unittest { writeln("\t * selectCommand"); QueryBuilder qb; qb.select("col") .from("table") .where(["id": 1]) .limit(1) .offset(1); string str = qb.command(); assert(str == `SELECT col FROM "table" WHERE ("id" = $1) LIMIT 1 OFFSET 1`, str); } private string insertCommand() { int index = 0; string str = "INSERT INTO \"%s\" (%s) VALUES %s".format( _table, _columns.join(","), _indexParams.chunks(_columns.length).map!( v => "(%s)".format( v.map!(p => "$%d".format(++index)).join(", ") )).join(", ") ); if (_returning.length > 0) { str ~= " RETURNING "; str ~= _returning.join(", "); } return str; } unittest { writeln("\t * insertCommand"); QueryBuilder qb; qb.insert("table", "col") .values(1, 2) .returning("id"); string str = qb.command(); assert(str == `INSERT INTO "table" (col) VALUES ($1), ($2) RETURNING id`); } private string updateCommand() { string str = "UPDATE \"%s\" SET %s".format( _table, _set.join(", ")); if (_filters.length > 0) str ~= " WHERE " ~ _filters.to!string; if (_returning.length > 0) { str ~= " RETURNING "; str ~= _returning.join(", "); } return replaceParams(str); } unittest { writeln("\t * updateCommand"); QueryBuilder qb; qb.update("table") .set("col", 1) .where(["foo": 2]) .returning("id"); string str = qb.command(); assert( str == `UPDATE "table" SET "col" = $1 WHERE ("foo" = $2) RETURNING id` || str == `UPDATE "table" SET "col" = $2 WHERE ("foo" = $1) RETURNING id`); } private string deleteCommand() { string str = "DELETE FROM \"%s\"".format(_table); if (_filters.length > 0) str ~= " WHERE " ~ _filters.to!string; if (_returning.length > 0) { str ~= " RETURNING "; str ~= _returning.join(", "); } return replaceParams(str); } unittest { writeln("\t * deleteCommand"); QueryBuilder qb; qb.remove("table") .where(["id": 1]) .returning("id"); string str = qb.command(); assert(str == `DELETE FROM "table" WHERE ("id" = $1) RETURNING id`, str); } @property string command() { final switch (_type) { case QueryType.select: return selectCommand(); case QueryType.update: return updateCommand(); case QueryType.insert: return insertCommand(); case QueryType.delete_: return deleteCommand(); } } @property private Value[] paramsArr() { Value[] res = _indexParams; //foreach (param; _indexParams) // res ~= param; foreach (param, val; _params) res ~= val; return res; } unittest { writeln("\t * paramsArr"); QueryBuilder qb; qb.addParams("1", "2", "3"); qb["foo"] = 1; qb["bar"] = 2; auto ps = qb.paramsArr(); assert( ps == [Value("1"), Value("2"), Value("3"), Value(1), Value(2)] || ps == [Value("1"), Value("2"), Value("3"), Value(2), Value(1)]); } void addParam(T)(T val) { _indexParams ~= Value(val); ++_paramIndex; } unittest { writeln("\t * addParam"); QueryBuilder qb; assert(qb._paramIndex == 0); qb.addParam(1); assert(qb._paramIndex == 1); assert(qb._indexParams.length == 1); assert(qb._indexParams[0] == Value(1)); qb.addParam(2); assert(qb._paramIndex == 2); assert(qb._indexParams.length == 2); assert(qb._indexParams[1] == Value(2)); } ref QueryBuilder addParams(T...)(T vals) { foreach (val; vals) addParam(val); return this; } unittest { writeln("\t * addParams"); QueryBuilder qb; qb.addParams(1, 2, 3); assert(qb._indexParams.length == 3); assert(qb._paramIndex == 3); } ref QueryBuilder opBinary(string op, T)(T val) if (op == "<<") { return addParam(val); } Query query() { if (_connection != null) return Query(*_connection, command, paramsArr); return Query(command, paramsArr); } Query query(ref Connection conn) { return Query(conn, command, paramsArr); } }
D
module android.java.java.security.CodeSigner; public import android.java.java.security.CodeSigner_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!CodeSigner; import import2 = android.java.java.lang.Class;
D
module vanillamock.query_user; import vanillamock.query : ExampleQuery; class ActualQueryUser { private: ExampleQuery query; public: this(ExampleQuery query) { this.query = query; } string doSomething() { // ... return this.query.fetchSomething(); } } /** * NOTE: This example does not use any Test Frameworks, because Vanilla-Mock can * work on any Test Frameworks. */ version (unittest) { class ExampleQueryStub : ExampleQuery { string nextResult; this(string nextResult) { this.nextResult = nextResult; } string fetchSomething() { return this.nextResult; } } } unittest { auto query = new ExampleQueryStub("Hello, World!"); auto sut = new ActualQueryUser(query); auto actual = sut.doSomething(); assert(actual == "Hello, World!"); } unittest { /** * NOTE: You can write ExampleQuerySpy, but it is not recomended * because queries should not have any indirect output. * So spies for query is unnecessary. */ }
D
module parse; import core.stdc.string; import core.stdc.stdlib; import core.stdc.stdio; import dplug.core.alignedbuffer; import dplug.core.nogc; char** parseResponse(string response) nothrow @nogc { char* cresponse = cast(char*) response; const(char*) delim = cast(const(char*))"\r\n"; int buffer_length = wordCount(cresponse, delim); char** parsedResponse = cast(char**)malloc((char**).sizeof * buffer_length); for(int i = 0; i < buffer_length; ++i) { parsedResponse[i] = cast(char*) malloc((char*).sizeof * 256); } int count = 0; char c = ' '; int last = 0; int total_len = cast(int)strlen(cresponse); int word_len = cast(int)strlen(delim); int current = 0; int buffer_count = 0; AlignedBuffer!char delim_buf = makeAlignedBuffer!char(); for(int i = 0; i < total_len; ++i) { c = cresponse[i]; if(c == delim[0]) { while(word_len >= delim_buf.length && c == delim[delim_buf.length]) { delim_buf.pushBack(c); c = cresponse[++i]; } if(cast(string)delim[0..word_len] == cast(string)delim_buf[0..delim_buf.length] && i - word_len != last) { parsedResponse[current][++buffer_count] = '\0'; current++; buffer_count = 0; if(current >= buffer_length) break; } last = i; } parsedResponse[current][++buffer_count] = c; } for(int i = 0; i < buffer_length; ++i) { printf("%s\n", parsedResponse[i]); } return parsedResponse; } int wordCount(char* input, const(char*) word) nothrow @nogc { int total_len = cast(int)strlen(input); int word_len = cast(int)strlen(word); int count = 0; char c = ' '; int last = 0; AlignedBuffer!char delim_buf = makeAlignedBuffer!char(); for(int i = 0; i < total_len; ++i) { c = input[i]; if(c == word[0]) { while(word_len >= delim_buf.length && c == word[delim_buf.length]) { delim_buf.pushBack(c); c = input[++i]; } if(cast(string)word[0..word_len] == cast(string)delim_buf[0..delim_buf.length] && i - word_len != last) { count++; } last = i; } } return count; } unittest { import std.stdio; writeln("********************************* parse.d *****************************************"); string response = "HTTP/1.1 200 OK\r\nDate: Sun, 27 May 2018 12:50:06 GMT\r\nConnection: keep-alive\r\nTransfer-Encoding: chunked\r\n\r\nHello World Post!\r\n"; int i = wordCount(cast(char*)response, cast(const(char*))"\r\n"); parseResponse(response); writeln("********************************* parse.d *****************************************"); }
D
module gtkD.gtk.TextMark; public import gtkD.gtkc.gtktypes; private import gtkD.gtkc.gtk; private import gtkD.glib.ConstructionException; private import gtkD.glib.Str; private import gtkD.gtk.TextBuffer; private import gtkD.gobject.ObjectG; /** * Description * You may wish to begin by reading the text widget * conceptual overview which gives an overview of all the objects and data * types related to the text widget and how they work together. * A GtkTextMark is like a bookmark in a text buffer; it preserves a position in * the text. You can convert the mark to an iterator using * gtk_text_buffer_get_iter_at_mark(). Unlike iterators, marks remain valid across * buffer mutations, because their behavior is defined when text is inserted or * deleted. When text containing a mark is deleted, the mark remains in the * position originally occupied by the deleted text. When text is inserted at a * mark, a mark with left gravity will be moved to the * beginning of the newly-inserted text, and a mark with right * gravity will be moved to the end. * [3] * Marks are reference counted, but the reference count only controls the validity * of the memory; marks can be deleted from the buffer at any time with * gtk_text_buffer_delete_mark(). Once deleted from the buffer, a mark is * essentially useless. * Marks optionally have names; these can be convenient to avoid passing the * GtkTextMark object around. * Marks are typically created using the gtk_text_buffer_create_mark() function. */ public class TextMark : ObjectG { /** the main Gtk struct */ protected GtkTextMark* gtkTextMark; public GtkTextMark* getTextMarkStruct(); /** the main Gtk struct as a void* */ protected override void* getStruct(); /** * Sets our main struct and passes it to the parent class */ public this (GtkTextMark* gtkTextMark); /** */ /** * Creates a text mark. Add it to a buffer using gtk_text_buffer_add_mark(). * If name is NULL, the mark is anonymous; otherwise, the mark can be * retrieved by name using gtk_text_buffer_get_mark(). If a mark has left * gravity, and text is inserted at the mark's current location, the mark * will be moved to the left of the newly-inserted text. If the mark has * right gravity (left_gravity = FALSE), the mark will end up on the * right of newly-inserted text. The standard left-to-right cursor is a * mark with right gravity (when you type, the cursor stays on the right * side of the text you're typing). * Since 2.12 * Params: * name = mark name or NULL * leftGravity = whether the mark should have left gravity * Throws: ConstructionException GTK+ fails to create the object. */ public this (string name, int leftGravity); /** * Sets the visibility of mark; the insertion point is normally * visible, i.e. you can see it as a vertical bar. Also, the text * widget uses a visible mark to indicate where a drop will occur when * dragging-and-dropping text. Most other marks are not visible. * Marks are not visible by default. * Params: * setting = visibility of mark */ public void setVisible(int setting); /** * Returns TRUE if the mark is visible (i.e. a cursor is displayed * for it). * Returns: TRUE if visible */ public int getVisible(); /** * Returns TRUE if the mark has been removed from its buffer * with gtk_text_buffer_delete_mark(). See gtk_text_buffer_add_mark() * for a way to add it to a buffer again. * Returns: whether the mark is deleted */ public int getDeleted(); /** * Returns the mark name; returns NULL for anonymous marks. * Returns: mark name */ public string getName(); /** * Gets the buffer this mark is located inside, * or NULL if the mark is deleted. * Returns: the mark's GtkTextBuffer */ public TextBuffer getBuffer(); /** * Determines whether the mark has left gravity. * Returns: TRUE if the mark has left gravity, FALSE otherwise */ public int getLeftGravity(); }
D
/home/r0p3/Uni/3/FTPsimulation/user_manage/target/debug/deps/quote-e7a0901f5daf2933.rmeta: /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/lib.rs /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/ext.rs /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/format.rs /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/ident_fragment.rs /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/to_tokens.rs /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/runtime.rs /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/spanned.rs /home/r0p3/Uni/3/FTPsimulation/user_manage/target/debug/deps/libquote-e7a0901f5daf2933.rlib: /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/lib.rs /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/ext.rs /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/format.rs /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/ident_fragment.rs /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/to_tokens.rs /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/runtime.rs /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/spanned.rs /home/r0p3/Uni/3/FTPsimulation/user_manage/target/debug/deps/quote-e7a0901f5daf2933.d: /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/lib.rs /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/ext.rs /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/format.rs /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/ident_fragment.rs /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/to_tokens.rs /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/runtime.rs /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/spanned.rs /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/lib.rs: /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/ext.rs: /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/format.rs: /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/ident_fragment.rs: /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/to_tokens.rs: /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/runtime.rs: /home/r0p3/.cargo/registry/src/github.com-1ecc6299db9ec823/quote-1.0.9/src/spanned.rs:
D
// https://issues.dlang.org/show_bug.cgi?id=19463 void test() @nogc { throw new Exception("wat"); }
D
/** * This module defines Pebble math operations. * * The lookup functions can be used to look up geometry values efficiently. */ module pebble.math; @nogc: nothrow: /** * The largest value that can result from a call to sin_lookup or cos_lookup. */ enum TRIG_MAX_RATIO = 0xffff; /** * Angle value that corresponds to 360 degrees or 2 PI radians * * See_Also: sin_lookup * See_Also: cos_lookup */ enum TRIG_MAX_ANGLE = 0x10000; /** * Look-up the sine of the given angle from a pre-computed table. * * The angle value is scaled linearly, such that a value of 0x10000 * corresponds to 360 degrees or 2 PI radians. * * Params: * angle = The angle for which to compute the cosine. */ extern(C) int sin_lookup(int angle); /** * Look-up the cosine of the given angle from a pre-computed table. * * This is equivalent to calling `sin_lookup(angle + TRIG_MAX_ANGLE / 4)`. * * The angle value is scaled linearly, such that a value of 0x10000 * corresponds to 360 degrees or 2 PI radians. * * Params: * angle = The angle for which to compute the cosine. */ extern(C) int cos_lookup(int angle); /** * Look-up the arctangent of a given x, y pair. * * The angle value is scaled linearly, such that a value of 0x10000 * corresponds to 360 degrees or 2 PI radians. */ extern(C) int atan2_lookup(short y, short x); /** * Converts from a fixed point value representation of trig_angle to * the equivalent value in degrees */ @safe pure auto TRIGANGLE_TO_DEG(N)(N trig_angle) { return trig_angle * 360 / TRIG_MAX_ANGLE; }
D
/** * D header file for C99. * * $(C_HEADER_DESCRIPTION pubs.opengroup.org/onlinepubs/009695399/basedefs/_time.h.html, _time.h) * * Copyright: Copyright Sean Kelly 2005 - 2009. * License: Distributed under the * $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0). * (See accompanying file LICENSE) * Authors: Sean Kelly, * Alex Rønne Petersen * Source: $(DRUNTIMESRC core/stdc/_time.d) * Standards: ISO/IEC 9899:1999 (E) */ module core.stdc.time; private import core.stdc.config; extern (C): @trusted: // There are only a few functions here that use unsafe C strings. nothrow: @nogc: version( Windows ) { /// struct tm { int tm_sec; /// seconds after the minute - [0, 60] int tm_min; /// minutes after the hour - [0, 59] int tm_hour; /// hours since midnight - [0, 23] int tm_mday; /// day of the month - [1, 31] int tm_mon; /// months since January - [0, 11] int tm_year; /// years since 1900 int tm_wday; /// days since Sunday - [0, 6] int tm_yday; /// days since January 1 - [0, 365] int tm_isdst; /// Daylight Saving Time flag } } else { /// struct tm { int tm_sec; /// seconds after the minute [0-60] int tm_min; /// minutes after the hour [0-59] int tm_hour; /// hours since midnight [0-23] int tm_mday; /// day of the month [1-31] int tm_mon; /// months since January [0-11] int tm_year; /// years since 1900 int tm_wday; /// days since Sunday [0-6] int tm_yday; /// days since January 1 [0-365] int tm_isdst; /// Daylight Savings Time flag c_long tm_gmtoff; /// offset from CUT in seconds char* tm_zone; /// timezone abbreviation } } version ( Posix ) { public import core.sys.posix.sys.types : time_t, clock_t; } else { /// alias c_long time_t; /// alias c_long clock_t; } /// version( Windows ) { enum clock_t CLOCKS_PER_SEC = 1000; } else version( OSX ) { enum clock_t CLOCKS_PER_SEC = 100; } else version( FreeBSD ) { enum clock_t CLOCKS_PER_SEC = 128; } else version (linux) { enum clock_t CLOCKS_PER_SEC = 1_000_000; } else version (Android) { enum clock_t CLOCKS_PER_SEC = 1_000_000; } /// clock_t clock(); /// double difftime(time_t time1, time_t time0); /// time_t mktime(tm* timeptr); /// time_t time(time_t* timer); /// char* asctime(in tm* timeptr); /// char* ctime(in time_t* timer); /// tm* gmtime(in time_t* timer); /// tm* localtime(in time_t* timer); /// @system size_t strftime(char* s, size_t maxsize, in char* format, in tm* timeptr); version( Windows ) { /// void tzset(); // non-standard /// void _tzset(); // non-standard /// @system char* _strdate(char* s); // non-standard /// @system char* _strtime(char* s); // non-standard /// extern __gshared const(char)*[2] tzname; // non-standard } else version( OSX ) { /// void tzset(); // non-standard /// extern __gshared const(char)*[2] tzname; // non-standard } else version( linux ) { /// void tzset(); // non-standard /// extern __gshared const(char)*[2] tzname; // non-standard } else version( FreeBSD ) { /// void tzset(); // non-standard /// extern __gshared const(char)*[2] tzname; // non-standard } else version (Solaris) { /// void tzset(); /// extern __gshared const(char)*[2] tzname; } else version( Android ) { /// void tzset(); /// extern __gshared const(char)*[2] tzname; } else { static assert(false, "Unsupported platform"); }
D
/* -------------------------------------------------------------------------- */ private struct PkgsØ { /* --- runtime --- */ import core_atomic = core.atomic; import core_attribute = core.attribute; import core_bitop = core.bitop; import core_checkedint = core.checkedint; import core_cpuid = core.cpuid; import core_demangle = core.demangle; import core_exception = core.exception; import core_math = core.math; import core_memory = core.memory; import core_runtime = core.runtime; import core_simd = core.simd; import core_stdc_stdio = core.stdc.stdio; import core_sync_barrier = core.sync.barrier; import core_sync_condition = core.sync.condition; import core_sync_config = core.sync.config; import core_sync_exception = core.sync.exception; import core_sync_mutex = core.sync.mutex; import core_sync_rwmutex = core.sync.rwmutex; import core_sync_semaphore = core.sync.semaphore; import core_thread = core.thread; version (none) import core_time = core.time; import core_vararg = core.vararg; /* --- phobos --- */ import std_algorithm_comparison = std.algorithm.comparison; import std_algorithm_iteration = std.algorithm.iteration; import std_algorithm_mutation = std.algorithm.mutation; import std_algorithm_setops = std.algorithm.setops; import std_algorithm_searching = std.algorithm.searching; import std_algorithm_sorting = std.algorithm.sorting; import std_array = std.array; import std_ascii = std.ascii; import std_base64 = std.base64; import std_bigint = std.bigint; import std_bitmanip = std.bitmanip; import std_compiler = std.compiler; import std_complex = std.complex; import std_concurrency = std.concurrency; import std_container_array = std.container.array; import std_container_binaryheap = std.container.binaryheap; import std_container_dlist = std.container.dlist; import std_container_rbtree = std.container.rbtree; import std_container_slist = std.container.slist; import std_container_util = std.container.util; import std_conv = std.conv; import std_csv = std.csv; import std_datetime = std.datetime; import std_demangle = std.demangle; import std_digest_crc = std.digest.crc; import std_digest_digest = std.digest.digest; import std_digest_hmac = std.digest.hmac; import std_digest_md = std.digest.md; import std_digest_ripemd = std.digest.ripemd; import std_digest_sha = std.digest.sha; import std_encoding = std.encoding; import std_exception = std.exception; import std_experimental_allocator = std.experimental.allocator; import std_experimental_allocator_common = std.experimental.allocator.common; import std_experimental_allocator_gc_allocator = std.experimental.allocator.gc_allocator; import std_experimental_allocator_mallocator = std.experimental.allocator.mallocator; import std_experimental_allocator_mmap_allocator = std.experimental.allocator.mmap_allocator; import std_experimental_allocator_showcase = std.experimental.allocator.showcase; import std_experimental_allocator_typed = std.experimental.allocator.typed; import std_experimental_allocator_building_blocks = std.experimental.allocator.building_blocks; import std_experimental_allocator_building_blocks_affix_allocator = std.experimental.allocator.building_blocks.affix_allocator; import std_experimental_allocator_building_blocks_allocator_list = std.experimental.allocator.building_blocks.allocator_list; import std_experimental_allocator_building_blocks_bitmapped_block = std.experimental.allocator.building_blocks.bitmapped_block; import std_experimental_allocator_building_blocks_bucketizer = std.experimental.allocator.building_blocks.bucketizer; import std_experimental_allocator_building_blocks_fallback_allocator = std.experimental.allocator.building_blocks.fallback_allocator; import std_experimental_allocator_building_blocks_free_list = std.experimental.allocator.building_blocks.free_list; import std_experimental_allocator_building_blocks_free_tree = std.experimental.allocator.building_blocks.free_tree; import std_experimental_allocator_building_blocks_kernighan_ritchie = std.experimental.allocator.building_blocks.kernighan_ritchie; import std_experimental_allocator_building_blocks_null_allocator = std.experimental.allocator.building_blocks.null_allocator; import std_experimental_allocator_building_blocks_quantizer = std.experimental.allocator.building_blocks.quantizer; import std_experimental_allocator_building_blocks_region = std.experimental.allocator.building_blocks.region; import std_experimental_allocator_building_blocks_scoped_allocator = std.experimental.allocator.building_blocks.scoped_allocator; import std_experimental_allocator_building_blocks_segregator = std.experimental.allocator.building_blocks.segregator; import std_experimental_allocator_building_blocks_stats_collector = std.experimental.allocator.building_blocks.stats_collector; import std_experimental_logger = std.experimental.logger; import std_experimental_logger_core = std.experimental.logger.core; import std_file = std.file; version (none) import std_format = std.format; import std_functional = std.functional; import std_getopt = std.getopt; import std_json = std.json; import std_math = std.math; import std_mathspecial = std.mathspecial; import std_meta = std.meta; import std_mmfile = std.mmfile; version (none) import std_net_curl = std.net.curl; version (none) import std_net_isemail = std.net.isemail; import std_numeric = std.numeric; import std_outbuffer = std.outbuffer; import std_parallelism = std.parallelism; import std_path = std.path; import std_process = std.process; version (none) import std_random = std.random; import std_range = std.range; import std_range_interfaces = std.range.interfaces; import std_range_primitives = std.range.primitives; import std_regex = std.regex; import std_signals = std.signals; version (none) import std_socket = std.socket; import std_stdint = std.stdint; import std_stdio = std.stdio; import std_string = std.string; import std_system = std.system; import std_traits = std.traits; import std_typecons = std.typecons; version (none) import std_uni = std.uni; import std_uri = std.uri; import std_utf = std.utf; import std_uuid = std.uuid; import std_variant = std.variant; import std_windows_syserror = std.windows.syserror; version (none) import std_xml = std.xml; version (none) import std_zip = std.zip; import std_zlib = std.zlib; }; private enum translateØ = (string Name) => Name~`_`; private enum codegenØ = { string R; foreach (Pkg; __traits(allMembers, PkgsØ)) { foreach (Sym; __traits(allMembers, __traits(getMember, PkgsØ, Pkg))) { enum Pri = `PkgsØ.`~Pkg~`.`~Sym; enum Pub = translateØ(Sym); // issues.dlang.org/show_bug.cgi?id=16309 static if (Sym != `crcHexString` && __traits(compiles, mixin( `{static assert(__traits(getProtection, `~Pri~`) == "public");}` ))) { /* define if we can and not already defined */ R ~= `static if ( __traits(compiles, {alias X = `~Pri~`;}) && !__traits(compiles, {alias X = `~Pub~`;}) ) { public alias `~Pub~` = `~Pri~`; };`~'\n'; }; }; }; return R; }; mixin(codegenØ()); public import std.format : format_ = format, sformat_ = sformat, formattedRead_ = formattedRead, formattedWrite_ = formattedWrite, singleSpec_ = singleSpec ; /* -------------------------------------------------------------------------- */
D
import core.stdc.stdio: printf; import core.memory : GC, pureMalloc, pureCalloc, pureFree; import std.stdio; import core.time : Duration; import std.datetime.stopwatch : benchmark; /// Small slot sizes classes (in bytes). static immutable smallSizeClasses = [8, 16, // TODO: 16 + 8, 32, // TODO: 32 + 16, 64, // TODO: 64 + 32, 128, // TODO: 128 +64, 256, // TODO: 256 + 128, 512, // TODO: 512 + 256, 1024, // TODO: 1024 + 512, 2048, // TODO: 2048 + 1024, ]; extern (C) @safe pure nothrow { static foreach (sizeClass; smallSizeClasses) { /* TODO: Since https://github.com/dlang/dmd/pull/8813 we can now use: * `mixin("gc_tlmalloc_", sizeClass);` for symbol generation. */ mixin("void* gc_tlmalloc_" ~ sizeClass.stringof ~ "(uint ba = 0);"); } } void main(string[] args) { benchmarkEnableDisable(); /* All but last, otherwise new C() fails below because it requires one extra * word for type-info. */ writeln(" size new-C new-S GC.malloc+E gc_tlmalloc_N+E GC.calloc malloc calloc FreeList!(GCAllocator)"); static foreach (byteSize; smallSizeClasses[0 .. $ - 1]) { { enum wordCount = byteSize/8; benchmarkAllocation!(ulong, wordCount)(); } } GC.collect(); writeln(" ns/w: nanoseconds per word"); } static immutable benchmarkCount = 1000; static immutable iterationCount = 100; /** Benchmark a single `new`-allocation of `T` using GC. */ size_t benchmarkAllocation(E, uint n)() @trusted { import core.internal.traits : hasElaborateDestructor; import std.traits : hasIndirections; import core.lifetime : emplace; alias A = E[n]; struct T { A a; } class C { A a; } static assert(!hasElaborateDestructor!C); // shouldn't need finalizer enum ba = (!hasIndirections!T) ? GC.BlkAttr.NO_SCAN : 0; size_t ptrSum; void doNewClass() @trusted pure nothrow // TODO: this crashes { foreach (const i; 0 .. iterationCount) { auto x = new C(); // allocates: `__traits(classInstanceSize, C)` bytes ptrSum ^= cast(size_t)(cast(void*)x); // side-effect } } void doNewStruct() @trusted pure nothrow { foreach (const i; 0 .. iterationCount) { auto x = new T(); ptrSum ^= cast(size_t)x; // side-effect } } void doGCMalloc() @trusted pure nothrow { foreach (const i; 0 .. iterationCount) { T* x = cast(T*)GC.malloc(T.sizeof, ba); emplace!(T)(x); ptrSum ^= cast(size_t)x; // side-effect } } void doGCNMalloc(int n)() @trusted pure nothrow { foreach (const i; 0 .. iterationCount) { /* TODO: Since https://github.com/dlang/dmd/pull/8813 we can now use: * `mixin("gc_tlmalloc_", sizeClass);` for symbol generation. */ mixin(`T* x = cast(T*)gc_tlmalloc_` ~ n.stringof ~ `(ba);`); emplace!(T)(x); ptrSum ^= cast(size_t)x; // side-effect } } void doGCCalloc() @trusted pure nothrow { foreach (const i; 0 .. iterationCount) { auto x = GC.calloc(T.sizeof, ba); ptrSum ^= cast(size_t)x; // side-effect } } void doMalloc() @trusted pure nothrow @nogc { foreach (const i; 0 .. iterationCount) { auto x = pureMalloc(T.sizeof); ptrSum ^= cast(size_t)x; // side-effect } } void doCalloc() @trusted pure nothrow @nogc { foreach (const i; 0 .. iterationCount) { auto x = pureCalloc(T.sizeof, 1); ptrSum ^= cast(size_t)x; // side-effect } } import std.experimental.allocator.gc_allocator : GCAllocator; import std.experimental.allocator.building_blocks.free_list : FreeList; FreeList!(GCAllocator, T.sizeof) allocator; void doAllocatorFreeList() @trusted pure nothrow { foreach (const i; 0 .. iterationCount) { auto x = allocator.allocate(T.sizeof).ptr; ptrSum ^= cast(size_t)x; // side-effect } } GC.disable(); const results = benchmark!(doNewClass, doNewStruct, doGCMalloc, doGCNMalloc!(T.sizeof), doGCCalloc, doMalloc, doCalloc, doAllocatorFreeList)(benchmarkCount); GC.enable(); writef(" %4s %4.1f %4.1f %4.1f %4.1f %4.1f %4.1f %4.1f %4.1f", T.sizeof, cast(double)results[0].total!"nsecs"/(benchmarkCount*iterationCount*n), cast(double)results[1].total!"nsecs"/(benchmarkCount*iterationCount*n), cast(double)results[2].total!"nsecs"/(benchmarkCount*iterationCount*n), cast(double)results[3].total!"nsecs"/(benchmarkCount*iterationCount*n), cast(double)results[4].total!"nsecs"/(benchmarkCount*iterationCount*n), cast(double)results[5].total!"nsecs"/(benchmarkCount*iterationCount*n), cast(double)results[6].total!"nsecs"/(benchmarkCount*iterationCount*n), cast(double)results[7].total!"nsecs"/(benchmarkCount*iterationCount*n), ); writeln(); return ptrSum; // side-effect } /** Benchmark a single call to enable and disable() using `GC`. */ void benchmarkEnableDisable() @safe { void doEnableDisable() @trusted { foreach (const i; 0 .. iterationCount) { GC.enable(); GC.disable(); } } const Duration[1] results = benchmark!(doEnableDisable)(benchmarkCount); writefln("- enable()-disable(): %s ns", cast(double)results[0].total!"nsecs"/(benchmarkCount*iterationCount)); }
D
import std.stdio; import std.typetuple; void main() { foreach(S; TypeTuple!(string, wstring, dstring)){ writeln(S.stringof); foreach(s, ss){ writefln("\t"`%(%s%) => %(%02X%)`, [s], (cast(immutable(ubyte)[])s).dup.reverse); } writeln(); } }
D
module nxt.syllables; import nxt.languages : Lang; import std.traits: isSomeString; import std.uni: byGrapheme; /** Count Number of Syllables in $(D s) interpreted in language $(D lang). The Algorithm: - If number of letters <= 3 : return 1. Incorrect for Ira, weapon:usi. - If doesn’t end with “ted” or “tes” or “ses” or “ied” or “ies”, discard “es” and “ed” at the end. If it has only 1 vowel or 1 set of consecutive vowels, discard. (like “speed”, “fled” etc.) - Discard trailing “e”, except where ending is “le” and isn’t in the le_except array - Check if consecutive vowels exists, triplets or pairs, count them as one. - Count remaining vowels in the word. - Add one if begins with “mc” - Add one if ends with “y” but is not surrouned by vowel. (ex. “mickey”) - Add one if “y” is surrounded by non-vowels and is not in the last word. (ex. “python”) - If begins with “tri-” or “bi-” and is followed by a vowel, add one. (so that “ia” at “triangle” won’t be mistreated by step 4) - If ends with “-ian”, should be counted as two syllables, except for “-tian” and “-cian”. (ex. “indian” and “politician” should be handled differently and shouldn’t be mistreated by step 4) - If begins with “co-” and is followed by a vowel, check if it exists in the double syllable dictionary, if not, check if in single dictionary and act accordingly. (co_one and co_two dictionaries handle it. Ex. “coach” and “coapt” shouldn’t be treated equally by step 4) - If starts with “pre-” and is followed by a vowel, check if exists in the double syllable dictionary, if not, check if in single dictionary and act accordingly. (similar to step 11, but very weak dictionary for the moment) - Check for “-n’t” and cross match with dictionary to add syllable. (ex. “doesn’t”, “couldn’t”) - Handling the exceptional words. (ex. “serious”, “fortunately”) Like I said earlier, this isn’t perfect, so there are some steps to add or modify, but it works just “fine”. Some exceptions should be added such as “evacuate”, “ambulances”, “shuttled”, “anyone” etc… Also it can’t handle some compund words like “facebook”. Counting only “face” would result correctly “1″, and “book” would also come out correct, but due to the “e” letter not being detected as a “silent e”, “facebook” will return “3 syllables.” See_Also: http://eayd.in/?p=232 See_Also: http://forum.dlang.org/thread/ovzcetxbrdblpmyizdjr@forum.dlang.org#post-ovzcetxbrdblpmyizdjr:40forum.dlang.org */ uint countSyllables(S)(S s, Lang lang = Lang.en) if (isSomeString!S) { import std.string: toLower; s = s.toLower; enum exception_add = ["serious", "crucial"]; /* words that need extra syllables */ enum exception_del = ["fortunately", "unfortunately"]; /* words that need less syllables */ enum co_one = ["cool", "coach", "coat", "coal", "count", "coin", "coarse", "coup", "coif", "cook", "coign", "coiffe", "coof", "court"]; enum co_two = ["coapt", "coed", "coinci"]; enum pre_one = ["preach"]; uint syls = 0; // added syllable number uint disc = 0; // discarded syllable number return 0; } /* what about the word ira? */ /* #1) if letters < 3 : return 1 */ /* if len(word) <= 3 : */ /* syls = 1 */ /* return syls */ /* #2) if doesn't end with "ted" or "tes" or "ses" or "ied" or "ies", discard "es" and "ed" at the end. */ /* # if it has only 1 vowel or 1 set of consecutive vowels, discard. (like "speed", "fled" etc.) */ /* if word[-2:] == "es" or word[-2:] == "ed" : */ /* doubleAndtripple_1 = len(re.findall(r'[eaoui][eaoui]',word)) */ /* if doubleAndtripple_1 > 1 or len(re.findall(r'[eaoui][^eaoui]',word)) > 1 : */ /* if word[-3:] == "ted" or word[-3:] == "tes" or word[-3:] == "ses" or word[-3:] == "ied" or word[-3:] == "ies" : */ /* pass */ /* else : */ /* disc+=1 */ /* #3) discard trailing "e", except where ending is "le" */ /* le_except = ['whole','mobile','pole','male','female','hale','pale','tale','sale','aisle','whale','while'] */ /* if word[-1:] == "e" : */ /* if word[-2:] == "le" and word not in le_except : */ /* pass */ /* else : */ /* disc+=1 */ /* #4) check if consecutive vowels exists, triplets or pairs, count them as one. */ /* doubleAndtripple = len(re.findall(r'[eaoui][eaoui]',word)) */ /* tripple = len(re.findall(r'[eaoui][eaoui][eaoui]',word)) */ /* disc+=doubleAndtripple + tripple */ /* #5) count remaining vowels in word. */ /* numVowels = len(re.findall(r'[eaoui]',word)) */ /* #6) add one if starts with "mc" */ /* if word[:2] == "mc" : */ /* syls+=1 */ /* #7) add one if ends with "y" but is not surrouned by vowel */ /* if word[-1:] == "y" and word[-2] not in "aeoui" : */ /* syls +=1 */ /* #8) add one if "y" is surrounded by non-vowels and is not in the last word. */ /* for i,j in enumerate(word) : */ /* if j == "y" : */ /* if (i != 0) and (i != len(word)-1) : */ /* if word[i-1] not in "aeoui" and word[i+1] not in "aeoui" : */ /* syls+=1 */ /* #9) if starts with "tri-" or "bi-" and is followed by a vowel, add one. */ /* if word[:3] == "tri" and word[3] in "aeoui" : */ /* syls+=1 */ /* if word[:2] == "bi" and word[2] in "aeoui" : */ /* syls+=1 */ /* #10) if ends with "-ian", should be counted as two syllables, except for "-tian" and "-cian" */ /* if word[-3:] == "ian" : */ /* #and (word[-4:] != "cian" or word[-4:] != "tian") : */ /* if word[-4:] == "cian" or word[-4:] == "tian" : */ /* pass */ /* else : */ /* syls+=1 */ /* #11) if starts with "co-" and is followed by a vowel, check if exists in the double syllable dictionary, if not, check if in single dictionary and act accordingly. */ /* if word[:2] == "co" and word[2] in 'eaoui' : */ /* if word[:4] in co_two or word[:5] in co_two or word[:6] in co_two : */ /* syls+=1 */ /* elif word[:4] in co_one or word[:5] in co_one or word[:6] in co_one : */ /* pass */ /* else : */ /* syls+=1 */ /* #12) if starts with "pre-" and is followed by a vowel, check if exists in the double syllable dictionary, if not, check if in single dictionary and act accordingly. */ /* if word[:3] == "pre" and word[3] in 'eaoui' : */ /* if word[:6] in pre_one : */ /* pass */ /* else : */ /* syls+=1 */ /* #13) check for "-n't" and cross match with dictionary to add syllable. */ /* negative = ["doesn't", "isn't", "shouldn't", "couldn't","wouldn't"] */ /* if word[-3:] == "n't" : */ /* if word in negative : */ /* syls+=1 */ /* else : */ /* pass */ /* #14) Handling the exceptional words. */ /* if word in exception_del : */ /* disc+=1 */ /* if word in exception_add : */ /* syls+=1 */ /* # calculate the output */ /* return numVowels - disc + syls */
D
module luad.dynamic; import luad.c.all; import luad.base; import luad.stack; /** * Represents a reference to a Lua value of any type. * Supports all operations you can perform on values in Lua. */ struct LuaDynamic { /** * Underlying Lua reference. * LuaDynamic does not sub-type LuaObject - qualify access to this reference explicitly. */ LuaObject object; /** * Perform a Lua method call on this object. * * Performs a call similar to calling functions in Lua with the colon operator. * The name string is looked up in this object and the result is called. This object is prepended * to the arguments args. * Params: * name = _name of method * args = additional arguments * Returns: * All return values * Examples: * ---------------- * auto luaString = lua.wrap!LuaDynamic("test"); * auto results = luaString.gsub("t", "f"); // opDispatch * assert(results[0] == "fesf"); * assert(results[1] == 2); // two instances of 't' replaced * ---------------- * Note: * To call a member named "object", instantiate this function template explicitly. */ LuaDynamic[] opDispatch(string name, string file = __FILE__, uint line = __LINE__, Args...)(auto ref Args args) { // Push self object.push(); auto frame = lua_gettop(object.state); // push name and self[name] lua_pushlstring(object.state, name.ptr, name.length); lua_gettable(object.state, -2); // TODO: How do I properly generalize this to include other types, // while not stepping on the __call metamethod? if(lua_isnil(object.state, -1)) { lua_pop(object.state, 2); luaL_error(object.state, "%s:%d: attempt to call method '%s' (a nil value)", file.ptr, line, name.ptr); } // Copy 'this' to the top of the stack lua_pushvalue(object.state, -2); foreach(ref arg; args) pushValue(object.state, arg); lua_call(object.state, args.length + 1, LUA_MULTRET); auto nret = lua_gettop(object.state) - frame; auto ret = popStack!LuaDynamic(object.state, nret); // Pop self lua_pop(object.state, 1); return ret; } /** * Call this object. * This object must either be a function, or have a metatable providing the ___call metamethod. * Params: * args = arguments for the call * Returns: * Array of return values, or a null array if there were no return values */ LuaDynamic[] opCall(Args...)(auto ref Args args) { auto frame = lua_gettop(object.state); object.push(); // Callable foreach(ref arg; args) pushValue(object.state, arg); auto r = lua_call(object.state, args.length, LUA_MULTRET); auto nret = lua_gettop(object.state) - frame; return popStack!LuaDynamic(object.state, nret); } /** * Index this object. * This object must either be a table, or have a metatable providing the ___index metamethod. * Params: * key = _key to lookup */ LuaDynamic opIndex(T)(auto ref T key) { object.push(); pushValue(object.state, key); lua_gettable(object.state, -2); auto result = getValue!LuaDynamic(object.state, -1); lua_pop(object.state, 2); return result; } /** * Compare the referenced object to another value with Lua's equality semantics. * If the _other value is not a Lua reference wrapper, it will go through the * regular D to Lua conversion process first. * To check for nil, compare against the special constant "nil". */ bool opEquals(T)(auto ref T other) { object.push(); static if(is(T == Nil)) { scope(success) lua_pop(object.state, 1); return lua_isnil(object.state, -1) == 1; } else { pushValue(object.state, other); scope(success) lua_pop(object.state, 2); return lua_equal(object.state, -1, -2); } } } version(unittest) import luad.testing; import std.stdio; unittest { lua_State* L = luaL_newstate(); scope(success) lua_close(L); luaL_openlibs(L); luaL_dostring(L, `str = "test"`); lua_getglobal(L, "str"); auto luaString = popValue!LuaDynamic(L); LuaDynamic[] results = luaString.gsub("t", "f"); assert(results[0] == "fesf"); assert(results[1] == 2); // two instances of 't' replaced auto gsub = luaString["gsub"]; assert(gsub.object.type == LuaType.Function); LuaDynamic[] results2 = gsub(luaString, "t", "f"); assert(results[0] == results2[0]); assert(results[1] == results2[1]); assert(results == results2); lua_getglobal(L, "thisisnil"); auto nilRef = popValue!LuaDynamic(L); assert(nilRef == nil); }
D
/++ Auto-generated Linux syscall constants +/ module mir.linux._asm.unistd; version(LDC) pragma(LDC_no_moduleinfo); version (X86) public import mir.linux.arch.x86.uapi._asm.unistd; else version (X86_64) public import mir.linux.arch.x86_64.uapi._asm.unistd; else version (ARM) public import mir.linux.arch.arm.uapi._asm.unistd; else version (AArch64) public import mir.linux.arch.aarch64.uapi._asm.unistd; else version (SPARC) public import mir.linux.arch.sparc.uapi._asm.unistd; else version (SPARC64) public import mir.linux.arch.sparc64.uapi._asm.unistd; else version (Alpha) public import mir.linux.arch.alpha.uapi._asm.unistd; else version (IA64) public import mir.linux.arch.ia64.uapi._asm.unistd; else version (PPC) public import mir.linux.arch.ppc.uapi._asm.unistd; else version (PPC64) public import mir.linux.arch.ppc64.uapi._asm.unistd; else version (SH) public import mir.linux.arch.sh.uapi._asm.unistd; else version (S390) public import mir.linux.arch.s390.uapi._asm.unistd; else version (SystemZ) public import mir.linux.arch.systemz.uapi._asm.unistd; else version (HPPA) public import mir.linux.arch.hppa.uapi._asm.unistd; else version (HPPA64) public import mir.linux.arch.hppa64.uapi._asm.unistd; else version (MIPS_O32) public import mir.linux.arch.mips_o32.uapi._asm.unistd; else version (MIPS_N32) public import mir.linux.arch.mips_n32.uapi._asm.unistd; else version (MIPS64) public import mir.linux.arch.mips64.uapi._asm.unistd; else pragma(msg, "Linux syscall constants not known for target architecture!");
D
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric; void main() { auto hw = readln.split.to!(int[]); auto H = hw[0]; auto W = hw[1]; char[][] ss; foreach (_; 0..H) ss ~= readln.chomp.to!(char[]); auto DP = new int[][][](2, H, W); foreach (ref dp1; DP) foreach (ref dp2; dp1) dp2[] = -1; int solve(int c, int i, int j) { auto x = c == 0 && ss[i][j] == '#' ? 1 : 0; if (i == H-1 && j == W-1) return x; if (DP[c][i][j] == -1) { auto cc = ss[i][j] == '.' ? 0 : 1; DP[c][i][j] = min( i == H-1 ? 10001 : solve(cc, i+1, j) + x, j == W-1 ? 10001 : solve(cc, i, j+1) + x ); } return DP[c][i][j]; } writeln(solve(0, 0, 0)); }
D
/Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Bits.build/UnsignedInteger+BytesConvertible.swift.o : /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Base64.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Convenience.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Data+BytesConvertible.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/String+BytesConvertible.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/UnsignedInteger+BytesConvertible.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/BytesConvertible.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+PatternMatching.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/UnsignedInteger+Shifting.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Random.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Base64Encoder.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/HexEncoder.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Aliases.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/ByteSequence+Conversions.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+UTF8Numbers.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+ControlCharacters.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Operators.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Alphabet.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Percent.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Hex.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 /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 /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Bits.build/UnsignedInteger+BytesConvertible~partial.swiftmodule : /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Base64.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Convenience.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Data+BytesConvertible.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/String+BytesConvertible.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/UnsignedInteger+BytesConvertible.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/BytesConvertible.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+PatternMatching.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/UnsignedInteger+Shifting.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Random.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Base64Encoder.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/HexEncoder.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Aliases.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/ByteSequence+Conversions.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+UTF8Numbers.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+ControlCharacters.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Operators.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Alphabet.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Percent.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Hex.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 /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 /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Bits.build/UnsignedInteger+BytesConvertible~partial.swiftdoc : /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Base64.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Convenience.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Data+BytesConvertible.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/String+BytesConvertible.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/UnsignedInteger+BytesConvertible.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/BytesConvertible.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+PatternMatching.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/UnsignedInteger+Shifting.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Random.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Base64Encoder.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/HexEncoder.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Aliases.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/ByteSequence+Conversions.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+UTF8Numbers.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+ControlCharacters.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Operators.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Byte+Alphabet.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Percent.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/bits.git-9196587591774126515/Sources/Bits/Bytes+Hex.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 /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 /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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
a basis for comparison
D
module android.java.android.speech.tts.SynthesisRequest_d_interface; import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers; static import arsd.jni; import import1 = android.java.java.lang.CharSequence_d_interface; import import2 = android.java.java.lang.Class_d_interface; import import0 = android.java.android.os.Bundle_d_interface; final class SynthesisRequest : IJavaObject { static immutable string[] _d_canCastTo = [ ]; @Import this(string, import0.Bundle); @Import this(import1.CharSequence, import0.Bundle); @Import string getText(); @Import import1.CharSequence getCharSequenceText(); @Import string getVoiceName(); @Import string getLanguage(); @Import string getCountry(); @Import string getVariant(); @Import int getSpeechRate(); @Import int getPitch(); @Import import0.Bundle getParams(); @Import int getCallerUid(); @Import import2.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/speech/tts/SynthesisRequest;"; }
D
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you 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. */ //#ifndef ZOOKEEPER_VERSION_H_ //#define ZOOKEEPER_VERSION_H_ // //#ifdef __cplusplus //extern "C" { //#endif module deimos.zookeeper.zookeeper_version; extern(C): enum ZOO_MAJOR_VERSION = 3; enum ZOO_MINOR_VERSION = 4; enum ZOO_PATCH_VERSION = 8; //#ifdef __cplusplus //} //#endif // //#endif /* ZOOKEEPER_VERSION_H_ */
D
module godot.panelcontainer; import std.meta : AliasSeq, staticIndexOf; import std.traits : Unqual; import godot.d.meta; import godot.core; import godot.c; import godot.d.bind; import godot.object; import godot.classdb; import godot.container; @GodotBaseClass struct PanelContainer { static immutable string _GODOT_internal_name = "PanelContainer"; public: union { godot_object _godot_object; Container base; } alias base this; alias BaseClasses = AliasSeq!(typeof(base), typeof(base).BaseClasses); bool opEquals(in PanelContainer other) const { return _godot_object.ptr is other._godot_object.ptr; } PanelContainer opAssign(T : typeof(null))(T n) { _godot_object.ptr = null; } bool opEquals(typeof(null) n) const { return _godot_object.ptr is null; } mixin baseCasts; static PanelContainer _new() { static godot_class_constructor constructor; if(constructor is null) constructor = godot_get_class_constructor("PanelContainer"); if(constructor is null) return typeof(this).init; return cast(PanelContainer)(constructor()); } }
D
/** Copyright: Copyright (c) 2017-2018 Andrey Penechko. License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: Andrey Penechko. */ module voxelman.platform.cursoricon; enum CursorIcon { arrow, ibeam, crosshair, hand, hresize, vresize, }
D
instance VLK_3004_dancer (Npc_Default) { // ------ NSC ------ name = "Tancerka"; guild = GIL_VLK; id = 3004; voice = 16; flags = 0; npctype = NPCTYPE_MAIN; //-----------AIVARS---------------- aivar[AIV_ToughGuy] = TRUE; // ------ Attribute ------ B_SetAttributesToChapter (self, 1); // ------ Kampf-Taktik ------ fight_tactic = FAI_HUMAN_COWARD; // ------ Equippte Waffen ------ // ------ Inventory ------ B_CreateAmbientInv (self); // ------ visuals ------ B_SetNpcVisual (self, FEMALE, "Hum_Head_Babe8", FaceBabe_N_Hure, BodyTex_N, ITAR_VlkBabe_H); Mdl_SetModelFatness (self,0); Mdl_ApplyOverlayMds (self, "Humans_Babe.mds"); // ------ NSC-relevante Talente vergeben ------ B_GiveNpcTalents (self); // ------ Kampf-Talente ------ B_SetFightSkills (self, 30); // ------ TA anmelden ------ daily_routine = Rtn_Start_3004; }; FUNC VOID Rtn_Start_3004 () // Nadja hält sich für gewöhnlich unten auf...2 { TA_Dance (09,00,21,00,"NW_CITY_MAINSTREET_03"); TA_Dance (21,00,09,00,"NW_CITY_MAINSTREET_03"); };
D
// Written in the D programming language. /** A one-stop shop for converting values from one type to another. Copyright: Copyright Digital Mars 2007-. License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: $(WEB digitalmars.com, Walter Bright), $(WEB erdani.org, Andrei Alexandrescu), Shin Fujishiro, Adam D. Ruppe, Kenji Hara Source: $(PHOBOSSRC std/_conv.d) Macros: WIKI = Phobos/StdConv */ 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 { @safe pure nothrow this(string s, string fn = __FILE__, size_t ln = __LINE__) { super(s, fn, ln); } } private string convError_unexpected(S)(S source) { return source.empty ? "end of input" : text("'", source.front, "'"); } private auto convError(S, T)(S source, string fn = __FILE__, size_t ln = __LINE__) { return new ConvException( text("Unexpected ", convError_unexpected(source), " when converting from type "~S.stringof~" to type "~T.stringof), fn, ln); } private auto convError(S, T)(S source, int radix, string fn = __FILE__, size_t ln = __LINE__) { return new ConvException( text("Unexpected ", convError_unexpected(source), " when converting from type "~S.stringof~" base ", radix, " to type "~T.stringof), 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 { template isImaginary(T) { enum bool isImaginary = staticIndexOf!(Unqual!T, ifloat, idouble, ireal) >= 0; } template isComplex(T) { enum bool isComplex = staticIndexOf!(Unqual!T, cfloat, cdouble, creal) >= 0; } template isNarrowInteger(T) { enum bool isNarrowInteger = staticIndexOf!(Unqual!T, byte, ubyte, short, ushort) >= 0; } 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.format : FormatSpec, formatValue; import std.array : appender; 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; } template isRawStaticArray(T, A...) { enum isRawStaticArray = A.length == 0 && isStaticArray!T && !is(T == class) && !is(T == interface) && !is(T == struct) && !is(T == union); } } /** * 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); } } /** The $(D_PARAM to) family of functions converts a value from type $(D_PARAM Source) to type $(D_PARAM Target). The source type is deduced and the target type must be specified, for example the expression $(D_PARAM to!int(42.0)) converts the number 42 from $(D_PARAM double) to $(D_PARAM int). The conversion is "safe", i.e., it checks for overflow; $(D_PARAM to!int(4.2e10)) would throw the $(D_PARAM ConvOverflowException) exception. Overflow checks are only inserted when necessary, e.g., $(D_PARAM to!double(42)) does not do any checking because any int fits in a double. Converting a value to its own type (useful mostly for generic code) simply returns its argument. Example: ------------------------- int a = 42; auto b = to!int(a); // b is int with value 42 auto 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 $(D_PARAM roundTo).) Example: ------------------------- int a = 420; auto b = to!long(a); // same as long b = a; auto c = to!byte(a / 10); // fine, c = 42 auto d = to!byte(a); // throw ConvOverflowException double e = 4.2e6; auto f = to!int(e); // f == 4200000 e = -3.14; auto g = to!uint(e); // fails: floating-to-integral negative overflow e = 3.14; auto h = to!uint(e); // h = 3 e = 3.99; h = to!uint(a); // h = 3 e = -3.99; f = to!int(a); // f = -3 ------------------------- 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 $(D_PARAM real) (when $(D_PARAM real) is 80-bit, e.g. on Intel machines). Example: ------------------------- int a = 16_777_215; // 2^24 - 1, largest proper integer representable as float assert(to!int(to!float(a)) == a); assert(to!int(to!float(-a)) == -a); a += 2; assert(to!int(to!float(a)) == a); // fails! ------------------------- Conversions from string to numeric types differ from the C equivalents $(D_PARAM atoi()) and $(D_PARAM 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 -) </pre> For conversion to unsigned types, the grammar recognized is: <pre> $(I UnsignedInteger): $(I DecimalDigit) $(I DecimalDigit) $(I UnsignedInteger) </pre> 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. Example: ------------------------- 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: ------------------------- int[string][double[int[]]] a; ... auto b = to!(short[wstring][string[double[]]])(a); ------------------------- This conversion works because $(D_PARAM to!short) applies to an $(D_PARAM int), $(D_PARAM to!wstring) applies to a $(D_PARAM string), $(D_PARAM to!string) applies to a $(D_PARAM double), and $(D_PARAM to!(double[])) applies to an $(D_PARAM int[]). The conversion might throw an exception because $(D_PARAM to!short) might fail the range check. */ /** Entry point that dispatches to the appropriate conversion primitive. Client code normally calls $(D _to!TargetType(value)) (and not some variant of $(D toImpl)). */ template to(T) { T to(A...)(A args) if (!isRawStaticArray!A) { return toImpl!T(args); } // Fix issue 6175 T to(S)(ref S arg) if (isRawStaticArray!S) { return toImpl!T(arg); } } // 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; foreach (T; AliasSeq!(byte, ubyte, short, ushort, int, uint, long, ulong)) { assertThrown!ConvException(to!T(" 0")); assertThrown!ConvException(to!T(" 0", 8)); } 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. */ 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 foreach (S; AliasSeq!(byte, short, int, long)) (){ // avoid slow optimizations for large functions @@@BUG@@@ 2396 alias U = Unsigned!S; foreach (Sint; AliasSeq!(S, const S, immutable S)) 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 foreach (i, S1; AliasSeq!(byte, short, int, long)) foreach ( S2; AliasSeq!(byte, short, int, long)[i+1..$]) (){ // avoid slow optimizations for large functions @@@BUG@@@ 2396 alias U1 = Unsigned!S1; alias U2 = Unsigned!S2; static assert(U1.sizeof < S2.sizeof); // small unsigned to big signed foreach (Uint; AliasSeq!(U1, const U1, immutable U1)) 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 foreach (Uint; AliasSeq!(U2, const U2, immutable U2)) 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 foreach (Sint; AliasSeq!(S1, const S1, immutable S1)) foreach (Uint; AliasSeq!(U2, const U2, immutable U2)) { Sint sn = -1; assertThrown!ConvOverflowException(to!Uint(sn)); } // big signed to small unsigned foreach (Sint; AliasSeq!(S2, const S2, immutable S2)) foreach (Uint; AliasSeq!(U1, const U1, immutable U1)) { Sint sn = -1; assertThrown!ConvOverflowException(to!Uint(sn)); } }(); } /* Converting static arrays forwards to their dynamic counterparts. */ T toImpl(T, S)(ref S s) if (isRawStaticArray!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. */ 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); } } } 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, $(D T(value)) is used.) $(LI If target type is class, $(D new T(value)) is used.)) */ 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 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. */ 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; } @safe pure unittest { import std.exception; // 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)); } // 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 {} foreach (m1; AliasSeq!(0,1,2,3,4)) // enumerate modifiers foreach (m2; AliasSeq!(0,1,2,3,4)) // ditto (){ // avoid slow optimizations for large functions @@@BUG@@@ 2396 alias srcmod = AddModifier!m1; alias tgtmod = AddModifier!m2; //pragma(msg, srcmod!Object, " -> ", tgtmod!Object, ", convertible = ", // isImplicitlyConvertible!(srcmod!Object, tgtmod!Object)); // 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 } }(); } /** Stringize conversion from all types is supported. $(UL $(LI String _to string conversion works for any two string types having ($(D char), $(D wchar), $(D dchar)) character widths and any combination of qualifiers (mutable, $(D const), or $(D immutable)).) $(LI Converts array (other than strings) to string. Each element is converted by calling $(D to!T).) $(LI Associative array to string conversion. Each element is printed by calling $(D to!T).) $(LI Object to string conversion calls $(D toString) against the object or returns $(D "null") if the object is null.) $(LI Struct to string conversion calls $(D toString) against the struct if it is defined.) $(LI For structs that do not define $(D 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 printed as $(D "true") or $(D "false").) $(LI $(D char), $(D wchar), $(D 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 prints the pointer as a $(D size_t) value. If pointer is $(D char*), treat it as C-style strings. In that case, this function is $(D @system).)) */ 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 && is(S : const(char)*)) { import core.stdc.string : strlen; // It is unsafe because we cannot guarantee that the pointer is null terminated. return value ? cast(T) 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.format : FormatSpec, formatValue; import std.array : appender; //Default case, delegate to format //Note: we don't call toStr directly, to avoid duplicate work. auto app = appender!T(); app.put("cast("); app.put(S.stringof); app.put(')'); 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 unittest { immutable(char)* ptr = "hello".ptr; auto result = ptr.to!(char[]); } /* Check whether type $(D 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: } })); } // 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 reinterpreting void array to string auto a = "abcx"w; const(void)[] b = a; assert(b.length == 8); auto c = to!(wchar[])(b); assert(c == "abcx"); } @system pure nothrow unittest { // char* to string conversion assert(to!string(cast(char*) null) == ""); assert(to!string("foo\0".ptr) == "foo"); } @safe pure /+nothrow+/ 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); } //printf("%.*s", s2); assert(s2 == "foo"); } @safe pure nothrow unittest { import std.exception; // Conversion representing integer values with string 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"); } 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 pure /+nothrow+/ unittest { // Conversion representing dynamic/static array with string long[] b = [ 1, 3, 5 ]; auto s = to!string(b); assert(to!string(b) == "[1, 3, 5]", s); } /*@safe pure */unittest // sprintf issue { double[2] a = [ 1.5, 2.5 ]; assert(to!string(a) == "[1.5, 2.5]"); } /*@safe pure */unittest { // Conversion representing associative array with string int[string] a = ["0":1, "1":2]; assert(to!string(a) == `["0":1, "1":2]` || to!string(a) == `["1":2, "0":1]`); } 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"); } 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>"); } /+nothrow+/ 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" } 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); } 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"); 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); } 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 T toImpl(T, S)(S value, uint radix, LetterCase letterCase = LetterCase.upper) if (isIntegral!S && isExactSomeString!T) in { assert(radix >= 2 && radix <= 36); } body { 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; 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 { 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"); } 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. */ 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)) { 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); } 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); } /** Array-to-array conversion (except when target is a string type) converts each element in turn by using $(D to). */ 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 (i, 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 ]); //auto c = to!(string[])(b); //assert(c[0] == "1" && c[1] == "2" && c[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 pure */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. */ T toImpl(T, S)(S value) if (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 /*pure */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 /*pure */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)); } 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); } private void testIntegralToFloating(Integral, Floating)() { Integral a = 42; auto b = to!Floating(a); assert(a == b); assert(a == to!Integral(b)); } private void testFloatingToIntegral(Floating, Integral)() { bool convFails(Source, Target, E)(Source src) { try auto t = 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; // fwritefln(stderr, "%s a=%g, %s conv=%s", Floating.stringof, a, // Integral.stringof, to!Integral(a)); 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 // @@@ BUG IN COMPILER @@@ // ulong c = 18_446_744_073_709_551_615UL; // 2^64 - 1 // assert(to!ulong(to!real(c)) == c); // 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 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 conversions to string { foreach (T; AllNumerics) { T a = 42; assert(to!string(a) == "42"); //assert(to!wstring(a) == "42"w); //assert(to!dstring(a) == "42"d); // 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 == "0"); } /** String 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.)) */ T toImpl(T, S)(S value) if ( isExactSomeString!S && isDynamicArray!S && !isExactSomeString!T && is(typeof(parse!T(value)))) { scope(success) { if (value.length) { throw convError!(S, T)(value); } } return parse!T(value); } /// ditto T toImpl(T, S)(S value, uint radix) if ( isExactSomeString!S && isDynamicArray!S && !isExactSomeString!T && is(typeof(parse!T(value, radix)))) { scope(success) { if (value.length) { 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 { 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); } /** 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. */ 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 : trunc; static assert(isFloatingPoint!Source); static assert(isIntegral!Target); return to!Target(trunc(value + (value < 0 ? -0.5L : 0.5L))); } } /// 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); } unittest { import std.exception; // boundary values 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)); } } /** The $(D parse) family of functions works quite like the $(D 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 $(D 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.)) It still throws if an overflow occurred during conversion or if no character of the input was meaningfully converted. */ Target parse(Target, Source)(ref Source s) if (isInputRange!Source && isSomeChar!(ElementType!Source) && is(Unqual!Target == bool)) { import std.ascii : toLower; 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(); } return result; } } Lerr: throw parseError("bool should be case-insensitive 'true' or 'false'"); } /// unittest { import std.string : munch; string test = "123 \t 76.14"; auto a = parse!uint(test); assert(a == 123); assert(test == " \t 76.14"); // parse bumps string munch(test, " \t\n\r"); // skip ws assert(test == "76.14"); auto b = parse!double(test); assert(b == 76.14); assert(test == ""); } unittest { import std.exception; import std.algorithm : equal; 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)); } } 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 = 0; else enum bool sign = 0; enum char maxLastDigit = Target.min < 0 ? 7 : 5; Unqual!(typeof(s.front)) c; if (s.empty) goto Lerr; c = s.front; static if (Target.min < 0) { switch (c) { case '-': sign = true; goto case '+'; case '+': s.popFront(); if (s.empty) goto Lerr; c = s.front; break; default: break; } } c -= '0'; if (c <= 9) { Target v = cast(Target)c; s.popFront(); while (!s.empty) { c = cast(typeof(c)) (s.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); s.popFront(); } else throw new ConvOverflowException("Overflow in integral conversion"); } if (sign) v = -v; return v; } Lerr: throw convError!(Source, Target)(s); } } @safe pure unittest { string s = "123"; auto a = parse!int(s); } @safe pure unittest { 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; // parsing error check foreach (Int; AliasSeq!(byte, ubyte, short, ushort, int, uint, long, ulong)) { { immutable string[] errors1 = [ "", "-", "+", "-+", " ", " 0", "0 ", "- 0", "1-", "xx", "123h", "-+1", "--1", "+-1", "++1", ]; foreach (j, s; errors1) assertThrown!ConvException(to!Int(s)); } // parse!SomeUnsigned cannot parse head sign. static if (isUnsigned!Int) { immutable string[] errors2 = [ "+5", "-78", ]; foreach (j, s; errors2) assertThrown!ConvException(to!Int(s)); } } // positive overflow check foreach (i, Int; AliasSeq!(byte, ubyte, short, ushort, int, uint, long, ulong)) { immutable string[] errors = [ "128", // > byte.max "256", // > ubyte.max "32768", // > short.max "65536", // > ushort.max "2147483648", // > int.max "4294967296", // > uint.max "9223372036854775808", // > long.max "18446744073709551616", // > ulong.max ]; foreach (j, s; errors[i..$]) assertThrown!ConvOverflowException(to!Int(s)); } // negative overflow check foreach (i, Int; AliasSeq!(byte, short, int, long)) { immutable string[] errors = [ "-129", // < byte.min "-32769", // < short.min "-2147483649", // < int.min "-9223372036854775809", // < long.min ]; foreach (j, s; errors[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); } /// ditto Target parse(Target, Source)(ref Source s, uint radix) if (isSomeChar!(ElementType!Source) && isIntegral!Target && !is(Target == enum)) in { assert(radix >= 2 && radix <= 36); } body { import core.checkedint : mulu, addu; if (radix == 10) return parse!Target(s); immutable uint beyond = (radix < 10 ? '0' : 'a'-10) + radix; Target v = 0; bool atStart = true; for (; !s.empty; s.popFront()) { 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); if (overflow || nextv > Target.max) goto Loverflow; v = cast(Target) nextv; atStart = false; } if (atStart) goto Lerr; return v; Loverflow: throw new ConvOverflowException("Overflow in integral conversion"); Lerr: throw convError!(Source, Target)(s, radix); } @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); } @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)); } Target parse(Target, Source)(ref Source s) if (isExactSomeString!Source && is(Target == enum)) { import std.algorithm : 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) ~ "'"); } 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" } 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"); } Target parse(Target, Source)(ref Source p) 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; import core.stdc.math : HUGE_VAL; 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 ]; // static immutable string infinity = "infinity"; // static immutable string nans = "nans"; 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 \"", p, "\"."), fn, ln); } enforce(!p.empty, bailOut()); char sign = 0; /* indicating + */ switch (p.front) { case '-': sign++; p.popFront(); enforce(!p.empty, bailOut()); if (toLower(p.front) == 'i') goto case 'i'; enforce(!p.empty, bailOut()); break; case '+': p.popFront(); enforce(!p.empty, bailOut()); break; case 'i': case 'I': p.popFront(); enforce(!p.empty, bailOut()); if (toLower(p.front) == 'n') { p.popFront(); enforce(!p.empty, bailOut()); if (toLower(p.front) == 'f') { // 'inf' p.popFront(); return sign ? -Target.infinity : Target.infinity; } } goto default; default: {} } bool isHex = false; bool startsWithZero = p.front == '0'; if(startsWithZero) { p.popFront(); if(p.empty) { return (sign) ? -0.0 : 0.0; } isHex = p.front == 'x' || p.front == 'X'; } real ldval = 0.0; char dot = 0; /* if decimal point has been seen */ int exp = 0; long msdec = 0, lsdec = 0; ulong msscale = 1; if (isHex) { int guard = 0; int anydigits = 0; uint ndigits = 0; p.popFront(); while (!p.empty) { int i = p.front; while (isHexDigit(i)) { anydigits = 1; i = isAlpha(i) ? ((i & ~0x20) - ('A' - 10)) : i - '0'; if (ndigits < 16) { msdec = msdec * 16 + i; if (msdec) ndigits++; } else if (ndigits == 16) { while (msdec >= 0) { exp--; msdec <<= 1; i <<= 1; if (i & 0x10) msdec |= 1; } guard = i << 4; ndigits++; exp += 4; } else { guard |= i; exp += 4; } 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 = 4; } else break; } // Round up if (guard && (sticky || odd)) if (guard & 0x80 && (guard & 0x7F || msdec & 1)) { msdec++; if (msdec == 0) // overflow { msdec = 0x8000000000000000L; exp++; } } enforce(anydigits, bailOut()); enforce(!p.empty && (p.front == 'p' || p.front == 'P'), bailOut("Floating point parsing: exponent is required")); char sexp; int e; sexp = 0; p.popFront(); if (!p.empty) { switch (p.front) { case '-': sexp++; goto case; case '+': p.popFront(); enforce(!p.empty, new ConvException("Error converting input"~ " to floating point")); break; default: {} } } ndigits = 0; e = 0; while (!p.empty && isDigit(p.front)) { if (e < 0x7FFFFFFF / 10 - 10) // prevent integer overflow { e = e * 10 + p.front - '0'; } p.popFront(); ndigits = 1; } exp += (sexp) ? -e : e; enforce(ndigits, new ConvException("Error converting input"~ " to floating point")); static if (real.mant_dig == 64) { if (msdec) { int e2 = 0x3FFF + 63; // left justify mantissa while (msdec >= 0) { msdec <<= 1; e2--; } // Stuff mantissa directly into real ()@trusted{ *cast(long*)&ldval = msdec; }(); ()@trusted{ (cast(ushort*)&ldval)[4] = cast(ushort) e2; }(); import std.math : ldexp; // Exponent is power of 2, not power of 10 ldval = ldexp(ldval,exp); } } else static if (real.mant_dig == 53) { if (msdec) { //Exponent bias + 52: //After shifting 52 times left, exp must be 1 int e2 = 0x3FF + 52; // right justify mantissa // first 11 bits must be zero, rest is implied bit + mantissa // shift one time less, do rounding, shift again while ((msdec & 0xFFC0_0000_0000_0000) != 0) { msdec = ((cast(ulong)msdec) >> 1); e2++; } //Have to shift one more time //and do rounding if((msdec & 0xFFE0_0000_0000_0000) != 0) { auto roundUp = (msdec & 0x1); msdec = ((cast(ulong)msdec) >> 1); e2++; if(roundUp) { msdec += 1; //If mantissa was 0b1111... and we added +1 //the mantissa should be 0b10000 (think of implicit bit) //and the exponent increased if((msdec & 0x0020_0000_0000_0000) != 0) { msdec = 0x0010_0000_0000_0000; e2++; } } } // left justify mantissa // bit 11 must be 1 while ((msdec & 0x0010_0000_0000_0000) == 0) { msdec <<= 1; e2--; } // Stuff mantissa directly into double // (first including implicit bit) ()@trusted{ *cast(long *)&ldval = msdec; }(); //Store exponent, now overwriting implicit bit ()@trusted{ *cast(long *)&ldval &= 0x000F_FFFF_FFFF_FFFF; }(); ()@trusted{ *cast(long *)&ldval |= ((e2 & 0xFFFUL) << 52); }(); import std.math : ldexp; // Exponent is power of 2, not power of 10 ldval = ldexp(ldval,exp); } } else static assert(false, "Floating point format of real type not supported"); goto L6; } else // not hex { if (toUpper(p.front) == 'N' && !startsWithZero) { // nan p.popFront(); enforce(!p.empty && toUpper(p.front) == 'A', new ConvException("error converting input to floating point")); p.popFront(); enforce(!p.empty && toUpper(p.front) == 'N', new ConvException("error converting input to floating point")); // skip past the last 'n' p.popFront(); return typeof(return).nan; } bool sawDigits = startsWithZero; while (!p.empty) { int i = p.front; while (isDigit(i)) { sawDigits = true; /* must have at least 1 digit */ if (msdec < (0x7FFFFFFFFFFFL-10)/10) msdec = msdec * 10 + (i - '0'); else if (msscale < (0xFFFFFFFF-10)/10) { lsdec = lsdec * 10 + (i - '0'); msscale *= 10; } else { exp++; } 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++; } else { break; } } enforce(sawDigits, new ConvException("no digits seen")); } if (!p.empty && (p.front == 'e' || p.front == 'E')) { char sexp; int e; sexp = 0; p.popFront(); enforce(!p.empty, new ConvException("Unexpected end of input")); switch (p.front) { case '-': sexp++; goto case; case '+': p.popFront(); break; default: {} } bool sawDigits = 0; e = 0; while (!p.empty && isDigit(p.front)) { if (e < 0x7FFFFFFF / 10 - 10) // prevent integer overflow { e = e * 10 + p.front - '0'; } p.popFront(); sawDigits = 1; } 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 (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++; } } L6: // if overflow occurred enforce(ldval != HUGE_VAL, new ConvException("Range error")); L1: return (sign) ? -ldval : ldval; } unittest { import std.exception; import std.math : isNaN, fabs; // 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; } 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)); 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)); } //Tests for the double implementation unittest { 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); } } unittest { import core.stdc.errno; import core.stdc.stdlib; errno = 0; // In case it was set by another unittest in a different module. struct longdouble { static if(real.mant_dig == 64) { ushort[5] value; } else static if(real.mant_dig == 53) { ushort[4] value; } else static assert(false, "Not implemented"); } real ld; longdouble x; real ld1; longdouble x1; int i; static if(real.mant_dig == 64) enum s = "0x1.FFFFFFFFFFFFFFFEp-16382"; else static if(real.mant_dig == 53) 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(real.mant_dig == 64) { version (CRuntime_Microsoft) ld1 = 0x1.FFFFFFFFFFFFFFFEp-16382L; // strtold currently mapped to strtod else version (CRuntime_Bionic) 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); // for (i = 4; i >= 0; i--) // { // printf("%04x ", x.value[i]); // } // printf("\n"); 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; // for (i = 4; i >= 0; i--) // { // printf("%04x ", x.value[i]); // } // printf("\n"); } @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", "inf", "-inf", "infa", "-infa", "inf2e2", "-inf2e2"]; auto ssKO = ["", " ", "2e", "2e+", "2e-", "2ee", "2e++1", "2e--1", "2e_1", "+inf"]; foreach (s; ssOK) parse!double(s); foreach (s; ssKO) assertThrown!ConvException(parse!double(s)); } /** Parsing one character off a string returns the character and bumps the string up one position. */ Target parse(Target, Source)(ref Source s) if (isExactSomeString!Source && 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 { foreach (Str; AliasSeq!(string, wstring, dstring)) { 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"); } } } } 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; } /* 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); } // input range to null literal conversions 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; 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, dchar 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 $(D ']')), and element separator (by * default $(D ',')). */ Target parse(Target, Source)(ref Source s, dchar lbracket = '[', dchar rbracket = ']', dchar comma = ',') if (isExactSomeString!Source && isDynamicArray!Target && !is(Target == enum)) { 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)) { result ~= parseElement!(ElementType!Target)(s); skipWS(s); if (s.empty) throw convError!(Source, Target)(s); if (s.front != comma) break; } parseCheck!s(rbracket); return result; } unittest { int[] a = [1, 2, 3, 4, 5]; auto s = to!string(a); assert(to!(int[])(s) == a); } unittest { int[][] a = [ [1, 2] , [3], [4, 5] ]; auto s = to!string(a); assert(to!(int[][])(s) == a); } 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 { 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 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 $(D ']')), key-value separator (default $(D * ':')), and element seprator (by default $(D ',')). */ Target parse(Target, Source)(ref Source s, dchar lbracket = '[', dchar rbracket = ']', dchar keyval = ':', dchar comma = ',') if (isExactSomeString!Source && 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'; } dchar result; switch (s.front) { case '"': result = '\"'; break; case '\'': result = '\''; break; case '0': result = '\0'; 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`, //@@@9621@@@ Octal escapes. `\x61`, `\u65E5`, `\U00012456` //`\&amp;`, `\&quot;`, //@@@9621@@@ Named Character Entities. ]; const(dchar)[] s2 = [ '\"', '\'', '\?', '\\', '\a', '\b', '\f', '\n', '\r', '\t', '\v', //Normal escapes //'\141', //@@@9621@@@ Octal escapes. '\x61', '\u65E5', '\U00012456' //'\&amp;', '\&quot;', //@@@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 //Note: Throws, but simply because octals are unsupported `\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) && isSomeChar!Target && !is(Target == enum)) { 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); } /*************************************************************** * Convenience functions for converting any number and types of * arguments into _text (the three character widths). */ string text(T...)(T args) { return textImpl!string(args); } ///ditto wstring wtext(T...)(T args) { return textImpl!wstring(args); } ///ditto dstring dtext(T...)(T args) { return textImpl!dstring(args); } private S textImpl(S, U...)(U args) { static if (U.length == 0) { return null; } else { auto result = to!S(args[0]); foreach (arg; args[1 .. $]) result ~= to!S(arg); return result; } } /// 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); } unittest { assert(text() is null); assert(wtext() is null); assert(dtext() is null); } /*************************************************************** The $(D octal) facility provides a means to declare a number in base 8. Using $(D octal!177) or $(D 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 $(D int), it is an $(D int). Otherwise, it is a $(D long). But, if the user specifically asks for a $(D long) with the $(D L) suffix, always give the $(D long). Give an unsigned iff it is asked for with the $(D U) or $(D 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 (isIntegral!(typeof(decimalInteger))) { enum octal = octal!(typeof(decimalInteger))(to!string(decimalInteger)); } /// 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)(string num) { assert(isOctalLiteral(num)); ulong pow = 1; T value = 0; foreach_reverse (immutable pos; 0 .. num.length) { char s = num[pos]; 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 += pow * (s - '0'); pow *= 8; } return value; } /// 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. */ private bool isOctalLiteral(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; } 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 paremeter, 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) if (is(UT == Unqual!T)) { 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; }(); 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)(ref T chunk) @trusted pure nothrow { static if (!hasElaborateAssign!T && isAssignable!T) chunk = T.init; else { import core.stdc.string : memcpy; static immutable T init = T.init; memcpy(&chunk, &init, T.sizeof); } } // emplace /** Given a pointer $(D chunk) to uninitialized memory (but already typed as $(D T)), constructs an object of non-$(D class) type $(D 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 $(D chunk)). */ T* emplace(T)(T* chunk) @safe pure nothrow { emplaceRef!T(*chunk); return chunk; } /// unittest { static struct S { int i = 42; } S[2] s2 = void; emplace(&s2); assert(s2[0].i == 42 && s2[1].i == 42); } /// 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 $(D chunk) to uninitialized memory (but already typed as a non-class type $(D T)), constructs an object of type $(D T) at that address from arguments $(D args). If `T` is a class, initializes the class reference to `args[0]`. This function can be $(D @trusted) if the corresponding constructor of $(D T) is $(D @safe). Returns: A pointer to the newly constructed object (which is the same as $(D chunk)). */ T* emplace(T, Args...)(T* chunk, auto ref Args args) if (is(T == struct) || Args.length == 1) { emplaceRef!T(*chunk, args); return chunk; } /// unittest { int a; int b = 42; assert(*emplace!int(&a, b) == 42); } private void testEmplaceChunk(void[] chunk, size_t typeSize, size_t typeAlignment, string typeName) @nogc pure nothrow { 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 $(D chunk), constructs an object of $(D class) type $(D T) at that address. The constructor is passed the arguments $(D Args). Preconditions: $(D chunk) must be at least as large as $(D T) needs and should have an alignment multiple of $(D T)'s alignment. (The size of a $(D class) instance is obtained by using $(D __traits(classInstanceSize, T))). Note: This function can be $(D @trusted) if the corresponding constructor of $(D T) is $(D @safe). Returns: The newly constructed object. */ T emplace(T, Args...)(void[] chunk, auto ref Args args) if (is(T == class)) { static assert (!isAbstractClass!T, T.stringof ~ " is abstract and it can't be emplaced"); enum classSize = __traits(classInstanceSize, T); testEmplaceChunk(chunk, classSize, classInstanceAlignment!T, T.stringof); auto result = cast(T) chunk.ptr; // Initialize the object in its pre-ctor state chunk[0 .. classSize] = typeid(T).initializer[]; // Call the ctor if any static if (is(typeof(result.__ctor(args)))) { // T defines a genuine constructor accepting args // Go the classic route: write .init first, then call ctor result.__ctor(args); } else { static assert(args.length == 0 && !is(typeof(&T.__ctor)), "Don't know how to initialize an object of type " ~ T.stringof ~ " with arguments " ~ Args.stringof); } return result; } /// 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); } @nogc pure nothrow unittest { int var = 6; ubyte[__traits(classInstanceSize, __conv_EmplaceTestClass)] buf; auto k = emplace!__conv_EmplaceTestClass(buf, 5, var); assert(k.i == 5); assert(var == 7); } /** Given a raw memory area $(D chunk), constructs an object of non-$(D class) type $(D T) at that address. The constructor is passed the arguments $(D args), if any. Preconditions: $(D chunk) must be at least as large as $(D T) needs and should have an alignment multiple of $(D T)'s alignment. Note: This function can be $(D @trusted) if the corresponding constructor of $(D T) is $(D @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, T.stringof); emplaceRef!(T, Unqual!T)(*cast(Unqual!T*) chunk.ptr, args); return cast(T*) chunk.ptr; } /// 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 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; } } 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)))); } unittest { struct S { @disable this(); } S s = void; static assert(!__traits(compiles, emplace(&s))); emplace(&s, S.init); } 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); } 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); } 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 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); } 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 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)); } unittest { __conv_EmplaceTest k = void; emplace(&k, 5); assert(k.i == 5); } unittest { int var = 6; __conv_EmplaceTest k = void; emplace(&k, 5, var); assert(k.i == 5); assert(var == 7); } // Test matching fields branch unittest { struct S { uint n; } S s; emplace!S(&s, 2U); assert(s.n == 2); } unittest { struct S { int a, b; this(int){} } S s; static assert(!__traits(compiles, emplace!S(&s, 2, 3))); } 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 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 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 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 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 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))); } } 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 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); } ////NOTE: THESE WILL COMPILE ////But will not correctly emplace the context pointer ////The problem lies with voldemort, and not emplace. //{ // struct S3 // { // int k; // void foo(){++i;} // } //} //S3 s3 = void; //emplace(&s3); //S3.init has no context pointer information //emplace(&s3, 1); //No way to obtain context pointer once inside emplace } //Alias this 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 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; } } 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; } static assert(is(__std_conv_SS : __std_conv_S)); unittest { __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 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 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); } 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 unittest { static struct S { @disable void opAssign(S); } S s; emplace(&s, S.init); } //opCall 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); } } unittest //@@@9559@@@ { import std.algorithm : map; import std.typecons : Nullable; import std.array: array; alias I = Nullable!int; auto ints = [0, 1, 2].map!(i => i & 1 ? I.init : I(i))(); auto asArray = array(ints); } 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 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))); } 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[]); } 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; } 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); } unittest { struct S { int i; } S s; S[2][2][2] sss = void; emplace(&sss, s); } 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))); } 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); } unittest { int var = 6; auto k = emplace!__conv_EmplaceTest(new void[__conv_EmplaceTest.sizeof], 5, var); assert(k.i == 5); assert(var == 7); } unittest { class A { int x = 5; int y = 42; this(int z) { assert(x == 5 && y == 42); x = y = z; } } void[] buf; static 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 unittest { import std.algorithm : equal, 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)) { char[value.sizeof * 4] buffer = void; uint i = cast(uint) (buffer.length - 1); bool negative = value < 0; Unqual!(Unsigned!T) v = negative ? -value : value; while (v >= 10) { auto c = cast(uint) (v % 10); v /= 10; buffer[i--] = cast(char) (c + '0'); } buffer[i] = cast(char) (v + '0'); //hexDigits[cast(uint) v]; if (negative) buffer[--i] = '-'; put(writer, buffer[i .. $]); } unittest { import std.array : appender; auto result = appender!(char[])(); toTextRange(-1, result); assert(result.data == "-1"); } /** Returns the corresponding _unsigned value for $(D x) (e.g. if $(D x) has type $(D int), it returns $(D cast(uint) x)). The advantage compared to the cast is that you do not need to rewrite the cast if $(D x) later changes type (e.g from $(D int) to $(D long)). Note that the result is always mutable even if the original type was const or immutable. In order to retain the constness, use $(XREF traits, Unsigned). */ auto unsigned(T)(T x) if (isIntegral!T) { return cast(Unqual!(Unsigned!T))x; } /// unittest { 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 } unittest { 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)); } 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)); } 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)); } 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; } unittest { 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 $(D x) (e.g. if $(D x) has type $(D uint), it returns $(D cast(int) x)). The advantage compared to the cast is that you do not need to rewrite the cast if $(D x) later changes type (e.g from $(D uint) to $(D ulong)). Note that the result is always mutable even if the original type was const or immutable. In order to retain the constness, use $(XREF traits, Signed). */ auto signed(T)(T x) if (isIntegral!T) { return cast(Unqual!(Signed!T))x; } /// unittest { 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 } unittest { 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)); } 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)); } 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)); } 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)); } } unittest { // issue 10874 enum Test { a = 0 } ulong l = 0; auto t = l.to!Test; } /** 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 $(D 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; } /// 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); } } } /** Check the correctness of a string for $(D 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). */ private bool isHexLiteral(String)(in 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); } /// 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); } 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 $(D 'x'), which could be removed to simplify the core language. Params: hexData = string to be converted. Returns: a $(D string), a $(D wstring) or a $(D dstring), according to the type of hexData. */ template hexString(string hexData) if (hexData.isHexLiteral) { immutable hexString = hexStrImpl(hexData); } /// ditto template hexString(wstring hexData) if (hexData.isHexLiteral) { immutable hexString = hexStrImpl(hexData); } /// ditto template hexString(dstring hexData) if (hexData.isHexLiteral) { immutable hexString = hexStrImpl(hexData); } /// 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); } /* Takes a hexadecimal string literal and returns its representation. hexData is granted to be a valid string by the caller. C is granted to be a valid char type by the caller. */ @safe nothrow pure private auto hexStrImpl(String)(String hexData) { import std.ascii; alias C = Unqual!(ElementEncodingType!String); C[] result; result.length = hexData.length / 2; size_t cnt; ubyte v; foreach(c; hexData) { if (c.isHexDigit) { ubyte x; if (c >= '0' && c <= '9') x = cast(ubyte)(c - '0'); else if (c >= 'a' && c <= 'f') x = cast(ubyte)(c - ('a' - 10)); else if (c >= 'A' && c <= 'F') x = cast(ubyte)(c - ('A' - 10)); if (cnt & 1) { v = cast(ubyte)((v << 4) | x); result[cnt / 2] = v; } else v = x; ++cnt; } } result.length = cnt / 2; return result; } 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; } @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); 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 - 1) * SHIFT); result.len = cast(ubyte)(upr - lwr); return result; } private: UT value; ubyte len; } return Result(value); } } 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"); } }
D
/* Client for IHello * Heavily modified from: */ /* * SELFREG.CPP * Server Self-Registrtation Utility, Chapter 5 * * Copyright (c)1993-1995 Microsoft Corporation, All Rights Reserved * * Kraig Brockschmidt, Microsoft * Internet : kraigb@microsoft.com * Compuserve: >INTERNET:kraigb@microsoft.com */ import core.stdc.stdio; import core.stdc.stdlib; import core.sys.windows.windows; import std.c.windows.com; GUID CLSID_Hello = { 0x30421140, 0, 0, [0xC0, 0, 0, 0, 0, 0, 0, 0x46] }; GUID IID_IHello = { 0x00421140, 0, 0, [0xC0, 0, 0, 0, 0, 0, 0, 0x46] }; interface IHello : IUnknown { extern (Windows) : int Print(); } int main() { DWORD dwVer; HRESULT hr; IHello pIHello; // Make sure COM is the right version dwVer = CoBuildVersion(); if (rmm != HIWORD(dwVer)) { printf("Incorrect OLE 2 version number\n"); return EXIT_FAILURE; } hr=CoInitialize(null); // Initialize OLE if (FAILED(hr)) { printf("OLE 2 failed to initialize\n"); return EXIT_FAILURE; } printf("OLE 2 initialized\n"); if (dll_regserver("dserver.dll", 1) == 0) { printf("server registered\n"); hr=CoCreateInstance(&CLSID_Hello, null, CLSCTX_ALL, &IID_IHello, &pIHello); if (FAILED(hr)) { printf("Failed to create object x%x\n", hr); } else { printf("Object created, calling IHello.Print(), IHello = %p\n", pIHello); // fflush(stdout); pIHello.Print(); pIHello.Release(); } CoFreeUnusedLibraries(); if (dll_regserver("dserver.dll", 0)) printf("server unregister failed\n"); } else printf("server registration failed\n"); // Only call this if CoInitialize worked CoUninitialize(); return EXIT_SUCCESS; } /************************************** * Register/unregister a DLL server. * Input: * flag !=0: register * ==0: unregister * Returns: * 0 success * !=0 failure */ extern (Windows) alias HRESULT function() pfn_t; int dll_regserver(const (char) *dllname, int flag) { char *fn = flag ? cast(char*) "DllRegisterServer" : cast(char*) "DllUnregisterServer"; int result = 1; pfn_t pfn; HINSTANCE hMod; if (SUCCEEDED(CoInitialize(null))) { hMod=LoadLibraryA(dllname); printf("hMod = %d\n", hMod); if (hMod > cast(HINSTANCE) HINSTANCE_ERROR) { printf("LoadLibraryA() succeeded\n"); pfn = GetProcAddress(hMod, fn); printf("pfn = %p, fn = '%s'\n", pfn, fn); if (pfn && SUCCEEDED((*pfn)())) result = 0; CoFreeLibrary(hMod); CoUninitialize(); } } return result; }
D
module godot.core.transform; import godot.core.defs; import godot.core.vector3; import godot.core.quat; import godot.core.basis; import godot.core.rect3; import godot.core.plane; struct Transform { @nogc nothrow: Basis basis; Vector3 origin; this(real_t xx, real_t xy, real_t xz, real_t yx, real_t yy, real_t yz, real_t zx, real_t zy, real_t zz,real_t tx, real_t ty, real_t tz) { set(xx, xy, xz, yx, yy, yz, zx, zy, zz,tx, ty, tz); } this(in Basis basis, in Vector3 origin) { this.basis = basis; this.origin = origin; } Transform inverse_xform(in Transform t) const { Vector3 v = t.origin - origin; return Transform(basis.transpose_xform(t.basis), basis.xform(v)); } void set(real_t xx, real_t xy, real_t xz, real_t yx, real_t yy, real_t yz, real_t zx, real_t zy, real_t zz,real_t tx, real_t ty, real_t tz) { basis.elements[0][0]=xx; basis.elements[0][1]=xy; basis.elements[0][2]=xz; basis.elements[1][0]=yx; basis.elements[1][1]=yy; basis.elements[1][2]=yz; basis.elements[2][0]=zx; basis.elements[2][1]=zy; basis.elements[2][2]=zz; origin.x=tx; origin.y=ty; origin.z=tz; } Vector3 xform(in Vector3 p_vector) const { return Vector3( basis[0].dot(p_vector)+origin.x, basis[1].dot(p_vector)+origin.y, basis[2].dot(p_vector)+origin.z ); } Vector3 xform_inv(in Vector3 p_vector) const { Vector3 v = p_vector - origin; return Vector3( (basis.elements[0][0]*v.x ) + ( basis.elements[1][0]*v.y ) + ( basis.elements[2][0]*v.z ), (basis.elements[0][1]*v.x ) + ( basis.elements[1][1]*v.y ) + ( basis.elements[2][1]*v.z ), (basis.elements[0][2]*v.x ) + ( basis.elements[1][2]*v.y ) + ( basis.elements[2][2]*v.z ) ); } Plane xform(in Plane p_plane) const { Vector3 point=p_plane.normal*p_plane.d; Vector3 point_dir=point+p_plane.normal; point=xform(point); point_dir=xform(point_dir); Vector3 normal=point_dir-point; normal.normalize(); real_t d=normal.dot(point); return Plane(normal,d); } Plane xform_inv(in Plane p_plane) const { Vector3 point=p_plane.normal*p_plane.d; Vector3 point_dir=point+p_plane.normal; xform_inv(point); xform_inv(point_dir); Vector3 normal=point_dir-point; normal.normalize(); real_t d=normal.dot(point); return Plane(normal,d); } Rect3 xform(in Rect3 p_aabb) const { /* define vertices */ Vector3 x=basis.get_axis(0)*p_aabb.size.x; Vector3 y=basis.get_axis(1)*p_aabb.size.y; Vector3 z=basis.get_axis(2)*p_aabb.size.z; Vector3 pos = xform( p_aabb.pos ); //could be even further optimized Rect3 new_aabb; new_aabb.pos=pos; new_aabb.expand_to( pos+x ); new_aabb.expand_to( pos+y ); new_aabb.expand_to( pos+z ); new_aabb.expand_to( pos+x+y ); new_aabb.expand_to( pos+x+z ); new_aabb.expand_to( pos+y+z ); new_aabb.expand_to( pos+x+y+z ); return new_aabb; } Rect3 xform_inv(in Rect3 p_aabb) const { /* define vertices */ Vector3[8] vertices=[ Vector3(p_aabb.pos.x+p_aabb.size.x, p_aabb.pos.y+p_aabb.size.y, p_aabb.pos.z+p_aabb.size.z), Vector3(p_aabb.pos.x+p_aabb.size.x, p_aabb.pos.y+p_aabb.size.y, p_aabb.pos.z), Vector3(p_aabb.pos.x+p_aabb.size.x, p_aabb.pos.y, p_aabb.pos.z+p_aabb.size.z), Vector3(p_aabb.pos.x+p_aabb.size.x, p_aabb.pos.y, p_aabb.pos.z), Vector3(p_aabb.pos.x, p_aabb.pos.y+p_aabb.size.y, p_aabb.pos.z+p_aabb.size.z), Vector3(p_aabb.pos.x, p_aabb.pos.y+p_aabb.size.y, p_aabb.pos.z), Vector3(p_aabb.pos.x, p_aabb.pos.y, p_aabb.pos.z+p_aabb.size.z), Vector3(p_aabb.pos.x, p_aabb.pos.y, p_aabb.pos.z) ]; Rect3 ret; ret.pos=xform_inv(vertices[0]); for(int i=1;i<8;i++) { ret.expand_to( xform_inv(vertices[i]) ); } return ret; } void affine_invert() { basis.invert(); origin = basis.xform(-origin); } Transform affine_inverse() const { Transform ret=this; ret.affine_invert(); return ret; } void invert() { basis.transpose(); origin = basis.xform(-origin); } Transform inverse() const { // FIXME: this function assumes the basis is a rotation matrix, with no scaling. // affine_inverse can handle matrices with scaling, so GDScript should eventually use that. Transform ret=this; ret.invert(); return ret; } void rotate(in Vector3 p_axis,real_t p_phi) { this = rotated(p_axis, p_phi); } Transform rotated(in Vector3 p_axis,real_t p_phi) const { return Transform(Basis( p_axis, p_phi ), Vector3()) * (this); } void rotate_basis(in Vector3 p_axis,real_t p_phi) { basis.rotate(p_axis,p_phi); } Transform looking_at( in Vector3 p_target, in Vector3 p_up ) const { Transform t = this; t.set_look_at(origin,p_target,p_up); return t; } void set_look_at( in Vector3 p_eye, in Vector3 p_target, in Vector3 p_up ) { // Reference: MESA source code Vector3 v_x, v_y, v_z; /* Make rotation matrix */ /* Z vector */ v_z = p_eye - p_target; v_z.normalize(); v_y = p_up; v_x=v_y.cross(v_z); /* Recompute Y = Z cross X */ v_y=v_z.cross(v_x); v_x.normalize(); v_y.normalize(); basis.set_axis(0,v_x); basis.set_axis(1,v_y); basis.set_axis(2,v_z); origin=p_eye; } Transform interpolate_with(in Transform p_transform, real_t p_c) const { /* not sure if very "efficient" but good enough? */ Vector3 src_scale = basis.get_scale(); Quat src_rot = basis.quat; Vector3 src_loc = origin; Vector3 dst_scale = p_transform.basis.get_scale(); Quat dst_rot = p_transform.basis.quat; Vector3 dst_loc = p_transform.origin; Transform dst; dst.basis = Basis(src_rot.slerp(dst_rot,p_c)); dst.basis.scale(src_scale.linear_interpolate(dst_scale,p_c)); dst.origin=src_loc.linear_interpolate(dst_loc,p_c); return dst; } void scale(in Vector3 p_scale) { basis.scale(p_scale); origin*=p_scale; } Transform scaled(in Vector3 p_scale) const { Transform t = this; t.scale(p_scale); return t; } void scale_basis(in Vector3 p_scale) { basis.scale(p_scale); } void translate(real_t p_tx, real_t p_ty, real_t p_tz) { translate( Vector3(p_tx,p_ty,p_tz) ); } void translate(in Vector3 p_translation) { for( int i = 0; i < 3; i++ ) { origin[i] += basis[i].dot(p_translation); } } Transform translated(in Vector3 p_translation) const { Transform t=this; t.translate(p_translation); return t; } void orthonormalize() { basis.orthonormalize(); } Transform orthonormalized() const { Transform _copy = this; _copy.orthonormalize(); return _copy; } void opOpAssign(string op : "*")(in Transform p_transform) { origin=xform(p_transform.origin); basis*=p_transform.basis; } Transform opBinary(string op : "*")(in Transform p_transform) const { Transform t=this; t*=p_transform; return t; } }
D
/Users/user/Documents/RiseTimeAssets/server/.build/x86_64-apple-macosx10.10/debug/TemplateKit.build/Data/TemplateDataRepresentable.swift.o : /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateData.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateEmbed.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Deprecated.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSource.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataStorage.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/ASTCache.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataRepresentable.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/HTMLEscape.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSyntaxType.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Uppercase.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Lowercase.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Capitalize.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateTag.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateConditional.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateCustom.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateExpression.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Var.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataEncoder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateIdentifier.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateByteScanner.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateRenderer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/TagRenderer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/PlaintextRenderer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/ViewRenderer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateParser.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateSerializer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/TemplateError.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateIterator.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Contains.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/Exports.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/DateFormat.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateConstant.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Comment.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Print.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Count.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateDataContext.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/TagContext.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Raw.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateRaw.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/View.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSyntax.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 /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/TemplateKit.build/TemplateDataRepresentable~partial.swiftmodule : /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateData.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateEmbed.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Deprecated.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSource.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataStorage.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/ASTCache.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataRepresentable.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/HTMLEscape.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSyntaxType.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Uppercase.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Lowercase.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Capitalize.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateTag.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateConditional.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateCustom.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateExpression.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Var.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataEncoder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateIdentifier.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateByteScanner.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateRenderer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/TagRenderer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/PlaintextRenderer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/ViewRenderer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateParser.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateSerializer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/TemplateError.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateIterator.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Contains.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/Exports.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/DateFormat.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateConstant.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Comment.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Print.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Count.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateDataContext.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/TagContext.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Raw.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateRaw.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/View.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSyntax.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 /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/TemplateKit.build/TemplateDataRepresentable~partial.swiftdoc : /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateData.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateEmbed.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Deprecated.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSource.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataStorage.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/ASTCache.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataRepresentable.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/HTMLEscape.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSyntaxType.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Uppercase.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Lowercase.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Capitalize.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateTag.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateConditional.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateCustom.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateExpression.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Var.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataEncoder.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateIdentifier.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateByteScanner.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateRenderer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/TagRenderer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/PlaintextRenderer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/ViewRenderer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateParser.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateSerializer.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/TemplateError.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateIterator.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Contains.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/Exports.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/DateFormat.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateConstant.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Comment.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Print.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Count.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateDataContext.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/TagContext.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Raw.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateRaw.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/View.swift /Users/user/Documents/RiseTimeAssets/server/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSyntax.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 /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
// Written in the D programming language. /** This app is a demo for most of DlangUI library features. Synopsis: ---- dub run dlangui:example1 ---- Copyright: Vadim Lopatin, 2014 License: Boost License 1.0 Authors: Vadim Lopatin, coolreader.org@gmail.com */ module main; import dlangui; import dlangui.dialogs.dialog; import dlangui.dialogs.filedlg; import dlangui.dialogs.msgbox; import std.stdio; import std.conv; import std.utf; import std.algorithm; import std.path; mixin APP_ENTRY_POINT; class TimerTest : HorizontalLayout { ulong timerId; TextWidget _counter; int _value; Button _start; Button _stop; override bool onTimer(ulong id) { _value++; _counter.text = to!dstring(_value); return true; } this() { addChild(new TextWidget(null, "Timer test."d)); _counter = new TextWidget(null, "0"d); _counter.fontSize(32); _start = new Button(null, "Start timer"d); _stop = new Button(null, "Stop timer"d); _stop.enabled = false; _start.click = delegate(Widget src) { _start.enabled = false; _stop.enabled = true; timerId = setTimer(1000); return true; }; _stop.click = delegate(Widget src) { _start.enabled = true; _stop.enabled = false; cancelTimer(timerId); return true; }; addChild(_start); addChild(_stop); addChild(_counter); } } static if (BACKEND_GUI) { class AnimatedDrawable : Drawable { DrawableRef background; this() { background = drawableCache.get("tx_fabric.tiled"); } void drawAnimatedRect(DrawBuf buf, uint p, Rect rc, int speedx, int speedy, int sz) { int x = (p * speedx % rc.width); int y = (p * speedy % rc.height); if (x < 0) x += rc.width; if (y < 0) y += rc.height; uint a = 64 + ((p / 2) & 0x7F); uint r = 128 + ((p / 7) & 0x7F); uint g = 128 + ((p / 5) & 0x7F); uint b = 128 + ((p / 3) & 0x7F); uint color = (a << 24) | (r << 16) | (g << 8) | b; buf.fillRect(Rect(rc.left + x, rc.top + y, rc.left + x + sz, rc.top + y + sz), color); } void drawAnimatedIcon(DrawBuf buf, uint p, Rect rc, int speedx, int speedy, string resourceId) { int x = (p * speedx % rc.width); int y = (p * speedy % rc.height); if (x < 0) x += rc.width; if (y < 0) y += rc.height; DrawBufRef image = drawableCache.getImage(resourceId); buf.drawImage(x, y, image.get); } override void drawTo(DrawBuf buf, Rect rc, uint state = 0, int tilex0 = 0, int tiley0 = 0) { background.drawTo(buf, rc, state, cast(int)(animationProgress / 695430), cast(int)(animationProgress / 1500000)); drawAnimatedRect(buf, cast(uint)(animationProgress / 295430), rc, 2, 3, 100); drawAnimatedRect(buf, cast(uint)(animationProgress / 312400) + 100, rc, 3, 2, 130); drawAnimatedIcon(buf, cast(uint)(animationProgress / 212400) + 200, rc, -2, 1, "dlangui-logo1"); drawAnimatedRect(buf, cast(uint)(animationProgress / 512400) + 300, rc, 2, -2, 200); drawAnimatedRect(buf, cast(uint)(animationProgress / 214230) + 800, rc, 1, 2, 390); drawAnimatedIcon(buf, cast(uint)(animationProgress / 123320) + 900, rc, 1, 2, "cr3_logo"); drawAnimatedRect(buf, cast(uint)(animationProgress / 100000) + 100, rc, -1, -1, 120); } @property override int width() { return 1; } @property override int height() { return 1; } ulong animationProgress; void animate(long interval) { animationProgress += interval; } } } class TextEditorWidget : VerticalLayout { EditBox _edit; this(string ID) { super(ID); _edit = new EditBox("editor"); _edit.layoutWidth = FILL_PARENT; _edit.layoutHeight = FILL_PARENT; addChild(_edit); } } static if (BACKEND_GUI) { class SampleAnimationWidget : VerticalLayout { AnimatedDrawable drawable; DrawableRef drawableRef; this(string ID) { super(ID); drawable = new AnimatedDrawable(); drawableRef = drawable; padding = Rect(20, 20, 20, 20); addChild(new TextWidget(null, "This is TextWidget on top of animated background"d)); addChild(new EditLine(null, "This is EditLine on top of animated background"d)); addChild(new Button(null, "This is Button on top of animated background"d)); addChild(new VSpacer()); } /// background drawable @property override DrawableRef backgroundDrawable() const { return (cast(SampleAnimationWidget)this).drawableRef; } /// returns true is widget is being animated - need to call animate() and redraw @property override bool animating() { return true; } /// animates window; interval is time left from previous draw, in hnsecs (1/10000000 of second) override void animate(long interval) { drawable.animate(interval); invalidate(); } } } Widget createEditorSettingsControl(EditWidgetBase editor) { HorizontalLayout res = new HorizontalLayout("editor_options"); res.addChild((new CheckBox("wantTabs", "wantTabs"d)).checked(editor.wantTabs).addOnCheckChangeListener(delegate(Widget, bool checked) { editor.wantTabs = checked; return true;})); res.addChild((new CheckBox("useSpacesForTabs", "useSpacesForTabs"d)).checked(editor.useSpacesForTabs).addOnCheckChangeListener(delegate(Widget, bool checked) { editor.useSpacesForTabs = checked; return true;})); res.addChild((new CheckBox("readOnly", "readOnly"d)).checked(editor.readOnly).addOnCheckChangeListener(delegate(Widget, bool checked) { editor.readOnly = checked; return true;})); res.addChild((new CheckBox("showLineNumbers", "showLineNumbers"d)).checked(editor.showLineNumbers).addOnCheckChangeListener(delegate(Widget, bool checked) { editor.showLineNumbers = checked; return true;})); res.addChild((new CheckBox("fixedFont", "fixedFont"d)).checked(editor.fontFamily == FontFamily.MonoSpace).addOnCheckChangeListener(delegate(Widget, bool checked) { if (checked) editor.fontFamily(FontFamily.MonoSpace).fontFace("Courier New"); else editor.fontFamily(FontFamily.SansSerif).fontFace("Arial"); return true; })); res.addChild((new CheckBox("tabSize", "Tab size 8"d)).checked(editor.tabSize == 8).addOnCheckChangeListener(delegate(Widget, bool checked) { if (checked) editor.tabSize(8); else editor.tabSize(4); return true; })); return res; } enum : int { ACTION_FILE_OPEN = 5500, ACTION_FILE_SAVE, ACTION_FILE_CLOSE, ACTION_FILE_EXIT, } debug(SDLSettings) { import dlangui.core.settings; void testSDL(string fn) { Log.d("Loading SDL from ", fn); Setting s = new Setting(); if (s.load(fn)) { Log.d("JSON:\n", s.toJSON(true)); } else { Log.e("failed to read SDL from ", fn); } } void testSDLSettings() { testSDL(`C:\Users\vlopatin\AppData\Roaming\.dlangide\settings.json`); testSDL("dub.json"); testSDL("test1.sdl"); } } /// entry point for dlangui based application extern (C) int UIAppMain(string[] args) { debug(SDLSettings) { testSDLSettings(); } // always use trace, even for release builds //Log.setLogLevel(LogLevel.Trace); //Log.setFileLogger(new std.stdio.File("ui.log", "w")); // resource directory search paths // not required if only embedded resources are used //string[] resourceDirs = [ // appendPath(exePath, "../../../res/"), // for Visual D and DUB builds // appendPath(exePath, "../../../res/mdpi/"), // for Visual D and DUB builds // appendPath(exePath, "../../../../res/"),// for Mono-D builds // appendPath(exePath, "../../../../res/mdpi/"),// for Mono-D builds // appendPath(exePath, "res/"), // when res dir is located at the same directory as executable // appendPath(exePath, "../res/"), // when res dir is located at project directory // appendPath(exePath, "../../res/"), // when res dir is located at the same directory as executable // appendPath(exePath, "res/mdpi/"), // when res dir is located at the same directory as executable // appendPath(exePath, "../res/mdpi/"), // when res dir is located at project directory // appendPath(exePath, "../../res/mdpi/") // when res dir is located at the same directory as executable //]; // setup resource directories - will use only existing directories //Platform.instance.resourceDirs = resourceDirs; // embed resources listed in views/resources.list into executable embeddedResourceList.addResources(embedResourcesFromList!("resources.list")()); //version (USE_OPENGL) { // // you can turn on subpixel font rendering (ClearType) here //FontManager.subpixelRenderingMode = SubpixelRenderingMode.None; // //} else { // you can turn on subpixel font rendering (ClearType) here FontManager.subpixelRenderingMode = SubpixelRenderingMode.BGR; //SubpixelRenderingMode.None; // //} // select translation file - for english language Platform.instance.uiLanguage = "en"; // load theme from file "theme_default.xml" Platform.instance.uiTheme = "theme_default"; //Platform.instance.uiTheme = "theme_dark"; // you can override default hinting mode here (Normal, AutoHint, Disabled) FontManager.hintingMode = HintingMode.Normal; // you can override antialiasing setting here (0 means antialiasing always on, some big value = always off) // fonts with size less than specified value will not be antialiased FontManager.minAnitialiasedFontSize = 0; // 0 means always antialiased //version (USE_OPENGL) { // // you can turn on subpixel font rendering (ClearType) here FontManager.subpixelRenderingMode = SubpixelRenderingMode.None; // //} else { // you can turn on subpixel font rendering (ClearType) here //FontManager.subpixelRenderingMode = SubpixelRenderingMode.BGR; //SubpixelRenderingMode.None; // //} // create window Window window = Platform.instance.createWindow("DlangUI Example 1", null, WindowFlag.Resizable, 800, 700); // here you can see window or content resize mode //Window window = Platform.instance.createWindow("DlangUI Example 1", null, WindowFlag.Resizable, 400, 400); //window.windowOrContentResizeMode = WindowOrContentResizeMode.resizeWindow; //window.windowOrContentResizeMode = WindowOrContentResizeMode.scrollWindow; //window.windowOrContentResizeMode = WindowOrContentResizeMode.shrinkWidgets; static if (true) { VerticalLayout contentLayout = new VerticalLayout(); TabWidget tabs = new TabWidget("TABS"); tabs.tabClose = delegate(string tabId) { tabs.removeTab(tabId); }; //========================================================================= // create main menu MenuItem mainMenuItems = new MenuItem(); MenuItem fileItem = new MenuItem(new Action(1, "MENU_FILE"c)); fileItem.add(new Action(ACTION_FILE_OPEN, "MENU_FILE_OPEN"c, "document-open", KeyCode.KEY_O, KeyFlag.Control)); fileItem.add(new Action(ACTION_FILE_SAVE, "MENU_FILE_SAVE"c, "document-save", KeyCode.KEY_S, KeyFlag.Control)); MenuItem openRecentItem = new MenuItem(new Action(13, "MENU_FILE_OPEN_RECENT", "document-open-recent")); openRecentItem.add(new Action(100, "&1: File 1"d)); openRecentItem.add(new Action(101, "&2: File 2"d)); openRecentItem.add(new Action(102, "&3: File 3"d)); openRecentItem.add(new Action(103, "&4: File 4"d)); openRecentItem.add(new Action(104, "&5: File 5"d)); fileItem.add(openRecentItem); fileItem.add(new Action(ACTION_FILE_EXIT, "MENU_FILE_EXIT"c, "document-close"c, KeyCode.KEY_X, KeyFlag.Alt)); MenuItem editItem = new MenuItem(new Action(2, "MENU_EDIT")); editItem.add(new Action(EditorActions.Copy, "MENU_EDIT_COPY"c, "edit-copy", KeyCode.KEY_C, KeyFlag.Control)); editItem.add(new Action(EditorActions.Paste, "MENU_EDIT_PASTE"c, "edit-paste", KeyCode.KEY_V, KeyFlag.Control)); editItem.add(new Action(EditorActions.Cut, "MENU_EDIT_CUT"c, "edit-cut", KeyCode.KEY_X, KeyFlag.Control)); editItem.add(new Action(EditorActions.Undo, "MENU_EDIT_UNDO"c, "edit-undo", KeyCode.KEY_Z, KeyFlag.Control)); editItem.add(new Action(EditorActions.Redo, "MENU_EDIT_REDO"c, "edit-redo", KeyCode.KEY_Y, KeyFlag.Control)); editItem.add(new Action(EditorActions.Indent, "MENU_EDIT_INDENT"c, "edit-indent", KeyCode.TAB, 0)); editItem.add(new Action(EditorActions.Unindent, "MENU_EDIT_UNINDENT"c, "edit-unindent", KeyCode.TAB, KeyFlag.Control)); editItem.add(new Action(20, "MENU_EDIT_PREFERENCES")); MenuItem editPopupItem = new MenuItem(null); editPopupItem.add(new Action(EditorActions.Copy, "MENU_EDIT_COPY"c, "edit-copy", KeyCode.KEY_C, KeyFlag.Control)); editPopupItem.add(new Action(EditorActions.Paste, "MENU_EDIT_PASTE"c, "edit-paste", KeyCode.KEY_V, KeyFlag.Control)); editPopupItem.add(new Action(EditorActions.Cut, "MENU_EDIT_CUT"c, "edit-cut", KeyCode.KEY_X, KeyFlag.Control)); editPopupItem.add(new Action(EditorActions.Undo, "MENU_EDIT_UNDO"c, "edit-undo", KeyCode.KEY_Z, KeyFlag.Control)); editPopupItem.add(new Action(EditorActions.Redo, "MENU_EDIT_REDO"c, "edit-redo", KeyCode.KEY_Y, KeyFlag.Control)); editPopupItem.add(new Action(EditorActions.Indent, "MENU_EDIT_INDENT"c, "edit-indent", KeyCode.TAB, 0)); editPopupItem.add(new Action(EditorActions.Unindent, "MENU_EDIT_UNINDENT"c, "edit-unindent", KeyCode.TAB, KeyFlag.Control)); MenuItem viewItem = new MenuItem(new Action(60, "MENU_VIEW")); MenuItem langItem = new MenuItem(new Action(61, "MENU_VIEW_LANGUAGE")); auto onLangChange = delegate (MenuItem item) { if (!item.checked) return false; if (item.id == 611) { // set interface language to english platform.instance.uiLanguage = "en"; } else if (item.id == 612) { // set interface language to russian platform.instance.uiLanguage = "ru"; } return true; }; MenuItem enLang = (new MenuItem(new Action(611, "MENU_VIEW_LANGUAGE_EN"))).type(MenuItemType.Radio).checked(true); MenuItem ruLang = (new MenuItem(new Action(612, "MENU_VIEW_LANGUAGE_RU"))).type(MenuItemType.Radio); enLang.menuItemClick = onLangChange; ruLang.menuItemClick = onLangChange; langItem.add(enLang); langItem.add(ruLang); viewItem.add(langItem); MenuItem themeItem = new MenuItem(new Action(62, "MENU_VIEW_THEME")); MenuItem theme1 = (new MenuItem(new Action(621, "MENU_VIEW_THEME_DEFAULT"))).type(MenuItemType.Radio).checked(true); MenuItem theme2 = (new MenuItem(new Action(622, "MENU_VIEW_THEME_DARK"))).type(MenuItemType.Radio); MenuItem theme3 = (new MenuItem(new Action(623, "MENU_VIEW_THEME_CUSTOM1"))).type(MenuItemType.Radio); auto onThemeChange = delegate (MenuItem item) { if (!item.checked) return false; if (item.id == 621) { platform.instance.uiTheme = "theme_default"; } else if (item.id == 622) { platform.instance.uiTheme = "theme_dark"; } else if (item.id == 623) { platform.instance.uiTheme = "theme_custom1"; } return true; }; theme1.menuItemClick = onThemeChange; theme2.menuItemClick = onThemeChange; theme3.menuItemClick = onThemeChange; themeItem.add(theme1); themeItem.add(theme2); themeItem.add(theme3); viewItem.add(themeItem); MenuItem windowItem = new MenuItem(new Action(3, "MENU_WINDOW"c)); windowItem.add(new Action(30, "MENU_WINDOW_PREFERENCES")); windowItem.add(new Action(31, UIString.fromId("MENU_WINDOW_MINIMIZE"))); windowItem.add(new Action(32, UIString.fromId("MENU_WINDOW_MAXIMIZE"))); windowItem.add(new Action(33, UIString.fromId("MENU_WINDOW_RESTORE"))); MenuItem helpItem = new MenuItem(new Action(4, "MENU_HELP"c)); helpItem.add(new Action(40, "MENU_HELP_VIEW_HELP")); MenuItem aboutItem = new MenuItem(new Action(41, "MENU_HELP_ABOUT")); helpItem.add(aboutItem); mainMenuItems.add(fileItem); mainMenuItems.add(editItem); mainMenuItems.add(viewItem); mainMenuItems.add(windowItem); mainMenuItems.add(helpItem); MainMenu mainMenu = new MainMenu(mainMenuItems); contentLayout.addChild(mainMenu); // to let main menu handle keyboard shortcuts contentLayout.keyToAction = delegate(Widget source, uint keyCode, uint flags) { return mainMenu.findKeyAction(keyCode, flags); }; contentLayout.onAction = delegate(Widget source, const Action a) { if (a.id == ACTION_FILE_EXIT) { window.close(); return true; } else if (a.id == 31) { window.minimizeWindow(); return true; } else if (a.id == 32) { window.maximizeWindow(); return true; } else if (a.id == 33) { window.restoreWindow(); return true; } else if (a.id == 41) { window.showMessageBox(UIString.fromRaw("About"d), UIString.fromRaw("DLangUI demo app\n(C) Vadim Lopatin, 2014\nhttp://github.com/buggins/dlangui"d)); return true; } else if (a.id == ACTION_FILE_OPEN) { UIString caption; caption = "Open Text File"d; FileDialog dlg = new FileDialog(caption, window, null); dlg.allowMultipleFiles = true; dlg.addFilter(FileFilterEntry(UIString("FILTER_ALL_FILES", "All files (*)"d), "*")); dlg.addFilter(FileFilterEntry(UIString("FILTER_TEXT_FILES", "Text files (*.txt)"d), "*.txt")); dlg.addFilter(FileFilterEntry(UIString("FILTER_SOURCE_FILES", "Source files"d), "*.d;*.dd;*.c;*.cc;*.cpp;*.h;*.hpp")); dlg.addFilter(FileFilterEntry(UIString("FILTER_EXECUTABLE_FILES", "Executable files"d), "*", true)); //dlg.filterIndex = 2; dlg.dialogResult = delegate(Dialog dlg, const Action result) { if (result.id == ACTION_OPEN.id) { string[] filenames = (cast(FileDialog)dlg).filenames; foreach (filename; filenames) { if (filename.endsWith(".d") || filename.endsWith(".txt") || filename.endsWith(".cpp") || filename.endsWith(".h") || filename.endsWith(".c") || filename.endsWith(".json") || filename.endsWith(".dd") || filename.endsWith(".ddoc") || filename.endsWith(".xml") || filename.endsWith(".html") || filename.endsWith(".html") || filename.endsWith(".css") || filename.endsWith(".log") || filename.endsWith(".hpp")) { // open source file in tab int index = tabs.tabIndex(filename); if (index >= 0) { // file is already opened in tab tabs.selectTab(index, true); } else { SourceEdit editor = new SourceEdit(filename); if (editor.load(filename)) { tabs.addTab(editor, toUTF32(baseName(filename)), null, true); tabs.selectTab(filename); } else { destroy(editor); window.showMessageBox(UIString.fromRaw("File open error"d), UIString.fromRaw("Cannot open file "d ~ toUTF32(filename))); } } } else { Log.d("FileDialog.onDialogResult: ", result, " param=", result.stringParam); window.showMessageBox(UIString.fromRaw("FileOpen result"d), UIString.fromRaw("Filename: "d ~ toUTF32(filename))); } } } }; dlg.show(); return true; } //else //return contentLayout.dispatchAction(a); return false; }; mainMenu.menuItemClick = delegate(MenuItem item) { Log.d("mainMenu.onMenuItemListener", item.label); const Action a = item.action; if (a) { return contentLayout.dispatchAction(a); } return false; }; // ========= create tabs =================== tabs.tabChanged = delegate(string newTabId, string oldTabId) { window.windowCaption = tabs.tab(newTabId).text.value ~ " - dlangui example 1"d; }; tabs.layoutWidth(FILL_PARENT).layoutHeight(FILL_PARENT); // most of controls example { LinearLayout controls = new VerticalLayout("controls"); controls.layoutHeight(FILL_PARENT); controls.padding = Rect(12.pointsToPixels,12.pointsToPixels,12.pointsToPixels,12.pointsToPixels); HorizontalLayout line1 = new HorizontalLayout(); controls.addChild(line1); GroupBox gb = new GroupBox("checkboxes", "CheckBox"d); gb.addChild(new CheckBox("cb1", "CheckBox 1"d)); gb.addChild(new CheckBox("cb2", "CheckBox 2"d).checked(true)); gb.addChild(new CheckBox("cb3", "CheckBox disabled"d).enabled(false)); gb.addChild(new CheckBox("cb4", "CheckBox disabled"d).checked(true).enabled(false)); line1.addChild(gb); GroupBox gb2 = new GroupBox("radiobuttons", "RadioButton"d); gb2.addChild(new RadioButton("rb1", "RadioButton 1"d).checked(true)); gb2.addChild(new RadioButton("rb2", "RadioButton 2"d)); gb2.addChild(new RadioButton("rb3", "RadioButton disabled"d).enabled(false)); line1.addChild(gb2); VerticalLayout col1 = new VerticalLayout(); GroupBox gb3 = new GroupBox("textbuttons", "Button"d, Orientation.Horizontal); gb3.addChild(new Button("tb1", "Button"d)); gb3.addChild(new Button("tb2", "Button disabled"d).enabled(false)); col1.addChild(gb3); GroupBox gb4 = new GroupBox("imagetextbuttons", "ImageTextButton"d, Orientation.Horizontal); gb4.addChild(new ImageTextButton("itb1", "document-open", "Enabled"d)); gb4.addChild(new ImageTextButton("itb2", "document-save", "Disabled"d).enabled(false)); col1.addChild(gb4); GroupBox gbtext = new GroupBox("text", "TextWidget"d, Orientation.Horizontal); gbtext.addChild(new TextWidget("t1", "Red text"d).fontSize(12.pointsToPixels).textColor(0xFF0000)); gbtext.addChild(new TextWidget("t2", "Italic text"d).fontSize(12.pointsToPixels).fontItalic(true)); col1.addChild(gbtext); line1.addChild(col1); VerticalLayout col2 = new VerticalLayout(); GroupBox gb31 = new GroupBox("switches", "SwitchButton"d, Orientation.Vertical); gb31.addChild(new SwitchButton("sb1")); gb31.addChild(new SwitchButton("sb2").checked(true)); gb31.addChild(new SwitchButton("sb3").enabled(false)); gb31.addChild(new SwitchButton("sb4").enabled(false).checked(true)); col2.addChild(gb31); line1.addChild(col2); VerticalLayout col3 = new VerticalLayout(); GroupBox gb32 = new GroupBox("switches", "ImageButton"d, Orientation.Vertical); gb32.addChild(new ImageButton("ib1", "edit-copy")); gb32.addChild(new ImageButton("ib3", "edit-paste").enabled(false)); col3.addChild(gb32); GroupBox gb33 = new GroupBox("images", "ImageWidget"d, Orientation.Vertical); gb33.addChild(new ImageWidget("cr3_logo", "cr3_logo")); col3.addChild(gb33); line1.addChild(col3); HorizontalLayout line2 = new HorizontalLayout(); controls.addChild(line2); GroupBox gb5 = new GroupBox("scrollbar", "horizontal ScrollBar"d); gb5.addChild(new ScrollBar("sb1", Orientation.Horizontal)); line2.addChild(gb5); GroupBox gb6 = new GroupBox("slider", "horizontal SliderWidget"d); gb6.addChild(new SliderWidget("sb2", Orientation.Horizontal)); line2.addChild(gb6); GroupBox gb7 = new GroupBox("editline1", "EditLine"d); gb7.addChild(new EditLine("ed1", "Some text"d).minWidth(120.pointsToPixels)); line2.addChild(gb7); GroupBox gb8 = new GroupBox("editline2", "EditLine disabled"d); gb8.addChild(new EditLine("ed2", "Some text"d).enabled(false).minWidth(120.pointsToPixels)); line2.addChild(gb8); HorizontalLayout line3 = new HorizontalLayout(); line3.layoutWidth(FILL_PARENT); GroupBox gbeditbox = new GroupBox("editbox", "EditBox"d, Orientation.Horizontal); gbeditbox.layoutWidth(FILL_PARENT); EditBox ed1 = new EditBox("ed1", "Some text in EditBox\nOne more line\nYet another text line"); ed1.layoutHeight(FILL_PARENT); gbeditbox.addChild(ed1); line3.addChild(gbeditbox); GroupBox gbtabs = new GroupBox(null, "TabWidget"d); gbtabs.layoutWidth(FILL_PARENT); TabWidget tabs1 = new TabWidget("tabs1"); tabs1.addTab(new TextWidget("tab1", "TextWidget on tab page\nTextWidgets can be\nMultiline"d).maxLines(3), "Tab 1"d); tabs1.addTab(new ImageWidget("tab2", "dlangui-logo1"), "Tab 2"d); tabs1.tabHost.backgroundColor = 0xE0E0E0; tabs1.tabHost.padding = Rect(10.pointsToPixels, 10.pointsToPixels, 10.pointsToPixels, 10.pointsToPixels); gbtabs.addChild(tabs1); line3.addChild(gbtabs); controls.addChild(line3); HorizontalLayout line4 = new HorizontalLayout(); line4.layoutWidth(FILL_PARENT); line4.layoutHeight(FILL_PARENT); GroupBox gbgrid = new GroupBox("grid", "StringGridWidget"d, Orientation.Horizontal); StringGridWidget grid = new StringGridWidget("stringgrid"); grid.resize(12, 10); gbgrid.layoutWidth(FILL_PARENT); gbgrid.layoutHeight(FILL_PARENT); grid.layoutWidth(FILL_PARENT); grid.layoutHeight(FILL_PARENT); foreach (index, month; ["January"d, "February"d, "March"d, "April"d, "May"d, "June"d, "July"d, "August"d, "September"d, "October"d, "November"d, "December"d]) grid.setColTitle(cast(int)index, month); for (int y = 0; y < 10; y++) grid.setRowTitle(y, to!dstring(y+1)); //grid.alignment = Align.Right; grid.setColWidth(0, 30.pointsToPixels); grid.autoFit(); import std.random; import std.string; for (int x = 0; x < 12; x++) { for (int y = 0; y < 10; y++) { int n = uniform(0, 10000); grid.setCellText(x, y, to!dstring("%.2f".format(n / 100.0))); } } //grid.autoFit(); gbgrid.addChild(grid); line4.addChild(gbgrid); GroupBox gbtree = new GroupBox("tree", "TreeWidget"d, Orientation.Horizontal); auto tree = new TreeWidget("gbtree"); //tree.layoutWidth(WRAP_CONTENT).layoutHeight(FILL_PARENT); tree.maxHeight(200.pointsToPixels); TreeItem tree1 = tree.items.newChild("group1", "Group 1"d, "document-open"); tree1.newChild("g1_1", "Group 1 item 1"d); tree1.newChild("g1_2", "Group 1 item 2"d); tree1.newChild("g1_3", "Group 1 item 3"d); TreeItem tree2 = tree.items.newChild("group2", "Group 2"d, "document-save"); tree2.newChild("g2_1", "Group 2 item 1"d, "edit-copy"); tree2.newChild("g2_2", "Group 2 item 2"d, "edit-cut"); tree2.newChild("g2_3", "Group 2 item 3"d, "edit-paste"); tree2.newChild("g2_4", "Group 2 item 4"d); TreeItem tree3 = tree.items.newChild("group3", "Group 3"d); tree3.newChild("g3_1", "Group 3 item 1"d); tree3.newChild("g3_2", "Group 3 item 2"d); TreeItem tree32 = tree3.newChild("g3_3", "Group 3 item 3"d); tree3.newChild("g3_4", "Group 3 item 4"d); tree32.newChild("group3_2_1", "Group 3 item 2 subitem 1"d); tree32.newChild("group3_2_2", "Group 3 item 2 subitem 2"d); tree32.newChild("group3_2_3", "Group 3 item 2 subitem 3"d); tree32.newChild("group3_2_4", "Group 3 item 2 subitem 4"d); tree32.newChild("group3_2_5", "Group 3 item 2 subitem 5"d); tree3.newChild("g3_5", "Group 3 item 5"d); tree3.newChild("g3_6", "Group 3 item 6"d); gbtree.addChild(tree); line4.addChild(gbtree); controls.addChild(line4); tabs.addTab(controls, "Controls"d); } LinearLayout layout = new LinearLayout("tab1"); layout.addChild((new TextWidget()).textColor(0x00802000).text("Text widget 0")); layout.addChild((new TextWidget()).textColor(0x40FF4000).text("Text widget")); layout.addChild(new ProgressBarWidget().progress(300).animationInterval(50)); layout.addChild(new ProgressBarWidget().progress(-1).animationInterval(50)); layout.addChild((new Button("BTN1")).textResource("EXIT")); //.textColor(0x40FF4000) layout.addChild(new TimerTest()); static if (true) { LinearLayout hlayout = new HorizontalLayout(); hlayout.layoutWidth(FILL_PARENT); //hlayout.addChild((new Button()).text("<<")); //.textColor(0x40FF4000) hlayout.addChild((new TextWidget()).text("Several").alignment(Align.Center)); hlayout.addChild((new ImageWidget()).drawableId("btn_radio").padding(Rect(5,5,5,5)).alignment(Align.Center)); hlayout.addChild((new TextWidget()).text("items").alignment(Align.Center)); hlayout.addChild((new ImageWidget()).drawableId("btn_check").padding(Rect(5,5,5,5)).alignment(Align.Center)); hlayout.addChild((new TextWidget()).text("in horizontal layout")); hlayout.addChild((new ImageWidget()).drawableId("exit").padding(Rect(5,5,5,5)).alignment(Align.Center)); hlayout.addChild((new EditLine("editline", "Some text to edit"d)).popupMenu(editPopupItem).alignment(Align.Center).layoutWidth(FILL_PARENT)); hlayout.addChild((new EditLine("passwd", "Password"d)).passwordChar('*').popupMenu(editPopupItem).alignment(Align.Center).layoutWidth(FILL_PARENT)); //hlayout.addChild((new Button()).text(">>")); //.textColor(0x40FF4000) hlayout.backgroundColor = 0x8080C0; layout.addChild(hlayout); LinearLayout vlayoutgroup = new HorizontalLayout(); LinearLayout vlayout = new VerticalLayout(); vlayout.addChild((new TextWidget()).text("VLayout line 1").textColor(0x40FF4000)); // vlayout.addChild((new TextWidget()).text("VLayout line 2").textColor(0x40FF8000)); vlayout.addChild((new TextWidget()).text("VLayout line 2").textColor(0x40008000)); vlayout.addChild(new RadioButton("rb1", "Radio button 1"d)); vlayout.addChild(new RadioButton("rb2", "Radio button 2"d)); vlayout.addChild(new RadioButton("rb3", "Radio button 3"d)); vlayout.layoutWidth(FILL_PARENT); vlayoutgroup.addChild(vlayout); vlayoutgroup.layoutWidth(FILL_PARENT); ScrollBar vsb = new ScrollBar("vscroll", Orientation.Vertical); vlayoutgroup.addChild(vsb); layout.addChild(vlayoutgroup); ScrollBar sb = new ScrollBar("hscroll", Orientation.Horizontal); layout.addChild(sb.layoutHeight(WRAP_CONTENT).layoutWidth(FILL_PARENT)); layout.addChild((new CheckBox("BTN2", "Some checkbox"d))); layout.addChild((new TextWidget()).textColor(0x40FF4000).text("Text widget")); layout.addChild((new ImageWidget()).drawableId("exit").padding(Rect(5,5,5,5))); layout.addChild((new TextWidget()).textColor(0xFF4000).text("Text widget2").padding(Rect(5,5,5,5)).margins(Rect(5,5,5,5)).backgroundColor(0xA0A0A0)); layout.addChild((new RadioButton("BTN3", "Some radio button"d))); layout.addChild((new TextWidget(null, "Text widget3 with very long text"d)).textColor(0x004000)); layout.addChild(new VSpacer()); // vertical spacer to fill extra space Widget w = parseML(q{ VerticalLayout { id: vlayout margins: Rect { left: 5; right: 3; top: 2; bottom: 4 } padding: Rect { 5, 4, 3, 2 } // same as Rect { left: 5; top: 4; right: 3; bottom: 2 } TextWidget { /* this widget can be accessed via id myLabel1 e.g. w.childById!TextWidget("myLabel1") */ id: myLabel1 text: "Some text"; padding: 5 enabled: false } TextWidget { id: myLabel2 text: SOME_TEXT_RESOURCE_ID; margins: 5 enabled: true } } }); Log.d("id=", w.id, " text=", w.text, " padding=", w.padding, " margins=", w.margins, " lbl1.text=", w.childById!TextWidget("myLabel1").text, " lbl1.enabled=", w.childById!TextWidget("myLabel1").enabled, " lbl2.text=", w.childById!TextWidget("myLabel2").text ); destroy(w); layout.childById("BTN1").click = delegate (Widget w) { Log.d("onClick ", w.id); //w.backgroundImageId = null; //w.backgroundColor = 0xFF00FF; w.textColor = 0xFF00FF; w.styleId = STYLE_BUTTON_NOMARGINS; return true; }; layout.childById("BTN2").click = delegate (Widget w) { Log.d("onClick ", w.id); return true; }; layout.childById("BTN3").click = delegate (Widget w) { Log.d("onClick ", w.id); return true; }; } layout.layoutHeight(FILL_PARENT).layoutWidth(FILL_PARENT); tabs.addTab(layout, "Misc"d); static if (true) { // two long lists // left one is list with widgets as items // right one is list with string list adapter HorizontalLayout longLists = new HorizontalLayout("tab2"); longLists.layoutWidth(FILL_PARENT).layoutHeight(FILL_PARENT); ListWidget list = new ListWidget("list1", Orientation.Vertical); list.layoutWidth(FILL_PARENT).layoutHeight(FILL_PARENT); StringListAdapter stringList = new StringListAdapter(); WidgetListAdapter listAdapter = new WidgetListAdapter(); listAdapter.add((new TextWidget()).text("This is a list of widgets"d).styleId("LIST_ITEM")); stringList.add("This is a list of strings from StringListAdapter"d); for (int i = 1; i < 1000; i++) { dstring label = "List item "d ~ to!dstring(i); listAdapter.add((new TextWidget()).text("Widget list - "d ~ label).styleId("LIST_ITEM")); stringList.add("Simple string - "d ~ label); } list.ownAdapter = listAdapter; listAdapter.resetItemState(0, State.Enabled); listAdapter.resetItemState(5, State.Enabled); listAdapter.resetItemState(7, State.Enabled); listAdapter.resetItemState(12, State.Enabled); assert(list.itemEnabled(5) == false); assert(list.itemEnabled(6) == true); list.layoutWidth(FILL_PARENT).layoutHeight(FILL_PARENT); list.selectItem(0); longLists.addChild(list); ListWidget list2 = new ListWidget("list2"); list2.ownAdapter = stringList; list2.layoutWidth(FILL_PARENT).layoutHeight(FILL_PARENT); list2.selectItem(0); longLists.addChild(list2); VerticalLayout itemedit = new VerticalLayout(); itemedit.addChild(new TextWidget(null, "New item text:"d)); EditLine itemtext = new EditLine(null, "Text for new item"d); itemedit.addChild(itemtext); Button btn = new Button(null, "Add item"d); itemedit.addChild(btn); longLists.addChild(itemedit); btn.click = delegate(Widget src) { stringList.add(itemtext.text); listAdapter.add((new TextWidget()).text(itemtext.text).styleId("LIST_ITEM")); return true; }; tabs.addTab(longLists, "TAB_LONG_LIST"c); } { LinearLayout layout3 = new VerticalLayout("tab3"); // 3 types of buttons: Button, ImageButton, ImageTextButton layout3.addChild(new TextWidget(null, "Buttons in HorizontalLayout"d)); WidgetGroup buttons1 = new HorizontalLayout(); buttons1.addChild(new TextWidget(null, "Button widgets: "d)); buttons1.addChild((new Button("btn1", "Button"d)).tooltipText("Tooltip text for button"d)); buttons1.addChild((new Button("btn2", "Disabled Button"d)).enabled(false)); buttons1.addChild(new TextWidget(null, "ImageButton widgets: "d)); buttons1.addChild(new ImageButton("btn3", "text-plain")); buttons1.addChild(new TextWidget(null, "disabled: "d)); buttons1.addChild((new ImageButton("btn4", "folder")).enabled(false)); layout3.addChild(buttons1); WidgetGroup buttons10 = new HorizontalLayout(); buttons10.addChild(new TextWidget(null, "ImageTextButton widgets: "d)); buttons10.addChild(new ImageTextButton("btn5", "text-plain", "Enabled"d)); buttons10.addChild((new ImageTextButton("btn6", "folder", "Disabled"d)).enabled(false)); buttons10.addChild(new TextWidget(null, "SwitchButton widgets: "d)); buttons10.addChild((new SwitchButton("SW1")).checked(true)); buttons10.addChild((new SwitchButton("SW2")).checked(false)); buttons10.addChild((new SwitchButton("SW3")).checked(true).enabled(false)); buttons10.addChild((new SwitchButton("SW4")).checked(false).enabled(false)); layout3.addChild(buttons10); WidgetGroup buttons11 = new HorizontalLayout(); buttons11.addChild(new TextWidget(null, "Construct buttons by action (Button, ImageButton, ImageTextButton): "d)); Action FILE_OPEN_ACTION = new Action(ACTION_FILE_OPEN, "MENU_FILE_OPEN"c, "document-open", KeyCode.KEY_O, KeyFlag.Control); buttons11.addChild(new Button(FILE_OPEN_ACTION)); buttons11.addChild(new ImageButton(FILE_OPEN_ACTION)); buttons11.addChild(new ImageTextButton(FILE_OPEN_ACTION)); layout3.addChild(buttons11); WidgetGroup buttons12 = new HorizontalLayout(); buttons12.addChild(new TextWidget(null, "The same in disabled state: "d)); buttons12.addChild((new Button(FILE_OPEN_ACTION)).enabled(false)); buttons12.addChild((new ImageButton(FILE_OPEN_ACTION)).enabled(false)); buttons12.addChild((new ImageTextButton(FILE_OPEN_ACTION)).enabled(false)); layout3.addChild(buttons12); layout3.addChild(new VSpacer()); layout3.addChild(new TextWidget(null, "CheckBoxes in HorizontalLayout"d)); WidgetGroup buttons2 = new HorizontalLayout(); buttons2.addChild(new CheckBox("btn1", "CheckBox 1"d)); buttons2.addChild(new CheckBox("btn2", "CheckBox 2"d)); //buttons2.addChild(new ResizerWidget()); buttons2.addChild(new CheckBox("btn3", "CheckBox 3"d)); buttons2.addChild(new CheckBox("btn4", "CheckBox 4"d)); layout3.addChild(buttons2); layout3.addChild(new VSpacer()); layout3.addChild(new TextWidget(null, "RadioButtons in HorizontalLayout"d)); WidgetGroup buttons3 = new HorizontalLayout(); buttons3.addChild(new RadioButton("btn1", "RadioButton 1"d)); buttons3.addChild(new RadioButton("btn2", "RadioButton 2"d)); buttons3.addChild(new RadioButton("btn3", "RadioButton 3"d)); buttons3.addChild(new RadioButton("btn4", "RadioButton 4"d)); layout3.addChild(buttons3); layout3.addChild(new VSpacer()); layout3.addChild(new TextWidget(null, "ImageButtons HorizontalLayout"d)); WidgetGroup buttons4 = new HorizontalLayout(); buttons4.addChild(new ImageButton("btn1", "fileclose")); buttons4.addChild(new ImageButton("btn2", "fileopen")); buttons4.addChild(new ImageButton("btn3", "exit")); layout3.addChild(buttons4); layout3.addChild(new VSpacer()); layout3.addChild(new TextWidget(null, "In vertical layouts:"d)); HorizontalLayout hlayout2 = new HorizontalLayout(); hlayout2.layoutHeight(FILL_PARENT); //layoutWidth(FILL_PARENT). buttons1 = new VerticalLayout(); buttons1.addChild(new TextWidget(null, "Buttons"d)); buttons1.addChild(new Button("btn1", "Button 1"d)); buttons1.addChild(new Button("btn2", "Button 2"d)); buttons1.addChild((new Button("btn3", "Button 3 - disabled"d)).enabled(false)); buttons1.addChild(new Button("btn4", "Button 4"d)); hlayout2.addChild(buttons1); hlayout2.addChild(new HSpacer()); buttons2 = new VerticalLayout(); buttons2.addChild(new TextWidget(null, "CheckBoxes"d)); buttons2.addChild(new CheckBox("btn1", "CheckBox 1"d)); buttons2.addChild(new CheckBox("btn2", "CheckBox 2"d)); buttons2.addChild(new CheckBox("btn3", "CheckBox 3"d)); buttons2.addChild(new CheckBox("btn4", "CheckBox 4"d)); hlayout2.addChild(buttons2); hlayout2.addChild(new HSpacer()); buttons3 = new VerticalLayout(); buttons3.addChild(new TextWidget(null, "RadioButtons"d)); buttons3.addChild(new RadioButton("btn1", "RadioButton 1"d)); buttons3.addChild(new RadioButton("btn2", "RadioButton 2"d)); //buttons3.addChild(new ResizerWidget()); buttons3.addChild(new RadioButton("btn3", "RadioButton 3"d)); buttons3.addChild(new RadioButton("btn4", "RadioButton 4"d)); hlayout2.addChild(buttons3); hlayout2.addChild(new HSpacer()); buttons4 = new VerticalLayout(); buttons4.addChild(new TextWidget(null, "ImageButtons"d)); buttons4.addChild(new ImageButton("btn1", "fileclose")); buttons4.addChild(new ImageButton("btn2", "fileopen")); buttons4.addChild(new ImageButton("btn3", "exit")); hlayout2.addChild(buttons4); hlayout2.addChild(new HSpacer()); WidgetGroup buttons5 = new VerticalLayout(); buttons5.addChild(new TextWidget(null, "ImageTextButtons"d)); buttons5.addChild(new ImageTextButton("btn1", "fileclose", "Close"d)); buttons5.addChild(new ImageTextButton("btn2", "fileopen", "Open"d)); buttons5.addChild(new ImageTextButton("btn3", "exit", "Exit"d)); hlayout2.addChild(buttons5); layout3.addChild(hlayout2); layout3.addChild(new VSpacer()); layout3.layoutWidth(FILL_PARENT).layoutHeight(FILL_PARENT); tabs.addTab(layout3, "TAB_BUTTONS"c); } TableLayout table = new TableLayout("TABLE"); table.colCount = 2; // headers table.addChild((new TextWidget(null, "Parameter Name"d)).alignment(Align.Right | Align.VCenter)); table.addChild((new TextWidget(null, "Edit Box to edit parameter"d)).alignment(Align.Left | Align.VCenter)); // row 1 table.addChild((new TextWidget(null, "Parameter 1 name"d)).alignment(Align.Right | Align.VCenter)); table.addChild((new EditLine("edit1", "Text 1"d)).layoutWidth(FILL_PARENT)); // row 2 table.addChild((new TextWidget(null, "Parameter 2 name bla bla"d)).alignment(Align.Right | Align.VCenter)); table.addChild((new EditLine("edit2", "Some text for parameter 2"d)).layoutWidth(FILL_PARENT)); // row 3 table.addChild((new TextWidget(null, "Param 3 is disabled"d)).alignment(Align.Right | Align.VCenter).enabled(false)); table.addChild((new EditLine("edit3", "Parameter 3 value"d)).layoutWidth(FILL_PARENT).enabled(false)); // normal readonly combo box ComboBox combo1 = new ComboBox("combo1", ["item value 1"d, "item value 2"d, "item value 3"d, "item value 4"d, "item value 5"d, "item value 6"d]); table.addChild((new TextWidget(null, "Combo box param"d)).alignment(Align.Right | Align.VCenter)); combo1.selectedItemIndex = 3; table.addChild(combo1).layoutWidth(FILL_PARENT); // disabled readonly combo box ComboBox combo2 = new ComboBox("combo2", ["item value 1"d, "item value 2"d, "item value 3"d]); table.addChild((new TextWidget(null, "Disabled combo box"d)).alignment(Align.Right | Align.VCenter)); combo2.enabled = false; combo2.selectedItemIndex = 0; table.addChild(combo2).layoutWidth(FILL_PARENT); table.margins(Rect(2,2,2,2)).layoutWidth(FILL_PARENT); tabs.addTab(table, "TAB_TABLE_LAYOUT"c); //tabs.addTab((new TextWidget()).id("tab5").textColor(0x00802000).text("Tab 5 contents"), "Tab 5"d); //========================================================================== // create Editors test tab VerticalLayout editors = new VerticalLayout("editors"); // EditLine sample editors.addChild(new TextWidget(null, "EditLine: Single line editor"d)); EditLine editLine = new EditLine("editline1", "Single line editor sample text"); editors.addChild(createEditorSettingsControl(editLine)); editors.addChild(editLine); editLine.popupMenu = editPopupItem; // EditBox sample editors.addChild(new TextWidget(null, "SourceEdit: multiline editor, for source code editing"d)); SourceEdit editBox = new SourceEdit("editbox1"); editBox.text = q{#!/usr/bin/env rdmd // Computes average line length for standard input. import std.stdio; void main() { ulong lines = 0; double sumLength = 0; foreach (line; stdin.byLine()) { ++lines; sumLength += line.length; } writeln("Average line length: ", lines ? sumLength / lines : 0); } }d; editors.addChild(createEditorSettingsControl(editBox)); editors.addChild(editBox); editBox.popupMenu = editPopupItem; editors.addChild(new TextWidget(null, "EditBox: additional view for the same content (split view testing)"d)); SourceEdit editBox2 = new SourceEdit("editbox2"); editBox2.content = editBox.content; // view the same content as first editbox editors.addChild(editBox2); editors.layoutHeight(FILL_PARENT).layoutWidth(FILL_PARENT); tabs.addTab(editors, "TAB_EDITORS"c); //========================================================================== StringGridWidget grid = new StringGridWidget("GRID1"); grid.layoutWidth(FILL_PARENT).layoutHeight(FILL_PARENT); grid.showColHeaders = true; grid.showRowHeaders = true; grid.resize(30, 50); grid.fixedCols = 3; grid.fixedRows = 2; //grid.rowSelect = true; // testing full row selection grid.multiSelect = true; grid.selectCell(4, 6, false); // create sample grid content for (int y = 0; y < grid.rows; y++) { for (int x = 0; x < grid.cols; x++) { grid.setCellText(x, y, "cell("d ~ to!dstring(x + 1) ~ ","d ~ to!dstring(y + 1) ~ ")"d); } grid.setRowTitle(y, to!dstring(y + 1)); } for (int x = 0; x < grid.cols; x++) { int col = x + 1; dstring res; int n1 = col / 26; int n2 = col % 26; if (n1) res ~= n1 + 'A'; res ~= n2 + 'A'; grid.setColTitle(x, res); } grid.autoFit(); tabs.addTab(grid, "Grid"d); //========================================================================== // Scroll view example ScrollWidget scroll = new ScrollWidget("SCROLL1"); scroll.layoutWidth(FILL_PARENT).layoutHeight(FILL_PARENT); WidgetGroup scrollContent = new VerticalLayout("CONTENT"); scrollContent.layoutWidth(FILL_PARENT).layoutHeight(FILL_PARENT); TableLayout table2 = new TableLayout("TABLE2"); table2.colCount = 2; // headers table2.addChild((new TextWidget(null, "Parameter Name"d)).alignment(Align.Right | Align.VCenter)); table2.addChild((new TextWidget(null, "Edit Box to edit parameter"d)).alignment(Align.Left | Align.VCenter)); // row 1 table2.addChild((new TextWidget(null, "Parameter 1 name"d)).alignment(Align.Right | Align.VCenter)); table2.addChild((new EditLine("edit1", "Text 1"d)).layoutWidth(FILL_PARENT)); // row 2 table2.addChild((new TextWidget(null, "Parameter 2 name bla bla"d)).alignment(Align.Right | Align.VCenter)); table2.addChild((new EditLine("edit2", "Some text for parameter 2 blah blah blah"d)).layoutWidth(FILL_PARENT)); // row 3 table2.addChild((new TextWidget(null, "Param 3"d)).alignment(Align.Right | Align.VCenter)); table2.addChild((new EditLine("edit3", "Parameter 3 value"d)).layoutWidth(FILL_PARENT)); // row 4 table2.addChild((new TextWidget(null, "Param 4"d)).alignment(Align.Right | Align.VCenter)); table2.addChild((new EditLine("edit3", "Parameter 4 value shdjksdfh hsjdfas hdjkf hdjsfk ah"d)).layoutWidth(FILL_PARENT)); // row 5 table2.addChild((new TextWidget(null, "Param 5 - edit text here - blah blah blah"d)).alignment(Align.Right | Align.VCenter)); table2.addChild((new EditLine("edit3", "Parameter 5 value"d)).layoutWidth(FILL_PARENT)); // row 6 table2.addChild((new TextWidget(null, "Param 6 - just to fill content widget (DISABLED)"d)).alignment(Align.Right | Align.VCenter).enabled(false)); table2.addChild((new EditLine("edit3", "Parameter 5 value"d)).layoutWidth(FILL_PARENT).enabled(false)); // row 7 table2.addChild((new TextWidget(null, "Param 7 - just to fill content widget (DISABLED)"d)).alignment(Align.Right | Align.VCenter).enabled(false)); table2.addChild((new EditLine("edit3", "Parameter 5 value"d)).layoutWidth(FILL_PARENT).enabled(false)); // row 8 table2.addChild((new TextWidget(null, "Param 8 - just to fill content widget"d)).alignment(Align.Right | Align.VCenter)); table2.addChild((new EditLine("edit3", "Parameter 5 value"d)).layoutWidth(FILL_PARENT)); table2.margins(Rect(10,10,10,10)).layoutWidth(FILL_PARENT); scrollContent.addChild(table2); scrollContent.addChild(new TextWidget(null, "Now - some buttons"d)); scrollContent.addChild(new ImageTextButton("btn1", "fileclose", "Close"d)); scrollContent.addChild(new ImageTextButton("btn2", "fileopen", "Open"d)); scrollContent.addChild(new TextWidget(null, "And checkboxes"d)); scrollContent.addChild(new CheckBox("btn1", "CheckBox 1"d)); scrollContent.addChild(new CheckBox("btn2", "CheckBox 2"d)); scroll.contentWidget = scrollContent; tabs.addTab(scroll, "Scroll"d); //========================================================================== // tree view example TreeWidget tree = new TreeWidget("TREE1"); tree.layoutWidth(WRAP_CONTENT).layoutHeight(FILL_PARENT); TreeItem tree1 = tree.items.newChild("group1", "Group 1"d, "document-open"); tree1.newChild("g1_1", "Group 1 item 1"d); tree1.newChild("g1_2", "Group 1 item 2"d); tree1.newChild("g1_3", "Group 1 item 3"d); TreeItem tree2 = tree.items.newChild("group2", "Group 2"d, "document-save"); tree2.newChild("g2_1", "Group 2 item 1"d, "edit-copy"); tree2.newChild("g2_2", "Group 2 item 2"d, "edit-cut"); tree2.newChild("g2_3", "Group 2 item 3"d, "edit-paste"); tree2.newChild("g2_4", "Group 2 item 4"d); TreeItem tree3 = tree.items.newChild("group3", "Group 3"d); tree3.newChild("g3_1", "Group 3 item 1"d); tree3.newChild("g3_2", "Group 3 item 2"d); TreeItem tree32 = tree3.newChild("g3_3", "Group 3 item 3"d); tree3.newChild("g3_4", "Group 3 item 4"d); tree32.newChild("group3_2_1", "Group 3 item 2 subitem 1"d); tree32.newChild("group3_2_2", "Group 3 item 2 subitem 2"d); tree32.newChild("group3_2_3", "Group 3 item 2 subitem 3"d); tree32.newChild("group3_2_4", "Group 3 item 2 subitem 4"d); tree32.newChild("group3_2_5", "Group 3 item 2 subitem 5"d); tree3.newChild("g3_5", "Group 3 item 5"d); tree3.newChild("g3_6", "Group 3 item 6"d); LinearLayout treeLayout = new HorizontalLayout("TREE"); LinearLayout treeControlledPanel = new VerticalLayout(); treeLayout.layoutWidth = FILL_PARENT; treeControlledPanel.layoutWidth = FILL_PARENT; treeControlledPanel.layoutHeight = FILL_PARENT; TextWidget treeItemLabel = new TextWidget("TREE_ITEM_DESC"); treeItemLabel.layoutWidth = FILL_PARENT; treeItemLabel.layoutHeight = FILL_PARENT; treeItemLabel.alignment = Align.Center; treeItemLabel.text = "Sample text"d; treeControlledPanel.addChild(treeItemLabel); treeLayout.addChild(tree); treeLayout.addChild(new ResizerWidget()); treeLayout.addChild(treeControlledPanel); tree.selectionChange = delegate(TreeItems source, TreeItem selectedItem, bool activated) { dstring label = "Selected item: "d ~ toUTF32(selectedItem.id) ~ (activated ? " selected + activated"d : " selected"d); treeItemLabel.text = label; }; tree.items.selectItem(tree.items.child(0)); tabs.addTab(treeLayout, "Tree"d); static if (BACKEND_GUI) { tabs.addTab((new SampleAnimationWidget("tab6")).layoutWidth(FILL_PARENT).layoutHeight(FILL_PARENT), "TAB_ANIMATION"c); CanvasWidget canvas = new CanvasWidget("canvas"); canvas.layoutWidth(FILL_PARENT).layoutHeight(FILL_PARENT); canvas.onDrawListener = delegate(CanvasWidget canvas, DrawBuf buf, Rect rc) { //Log.w("canvas.onDrawListener clipRect=" ~ to!string(buf.clipRect)); buf.fill(0xFFFFFF); int x = rc.left; int y = rc.top; buf.fillRect(Rect(x+20, y+20, x+150, y+200), 0x80FF80); buf.fillRect(Rect(x+90, y+80, x+250, y+250), 0x80FF80FF); canvas.font.drawText(buf, x + 40, y + 50, "fillRect()"d, 0xC080C0); buf.drawFrame(Rect(x + 400, y + 30, x + 550, y + 150), 0x204060, Rect(2,3,4,5), 0x80704020); canvas.font.drawText(buf, x + 400, y + 5, "drawFrame()"d, 0x208020); canvas.font.drawText(buf, x + 300, y + 100, "drawPixel()"d, 0x000080); for (int i = 0; i < 80; i++) buf.drawPixel(x+300 + i * 4, y+140 + i * 3 % 100, 0xFF0000 + i * 2); canvas.font.drawText(buf, x + 300, y + 420, "drawLine()"d, 0x800020); for (int i = 0; i < 40; i+=3) buf.drawLine(Point(x+200 + i * 4, y+290), Point(x+150 + i * 7, y+420 + i * 2), 0x008000 + i * 5); // poly line test //Rect newClipRect = Rect(x + 110, y + 100, x + 350, y + 320); //buf.fillRect(newClipRect, 0xC08080FF); //Rect oldClip = buf.clipRect; //buf.clipRect = newClipRect; PointF[] poly = [vec2(x+130, y+150), vec2(x+240, y+80), vec2(x+170, y+170), vec2(x+380, y+270), vec2(x+220, y+400), vec2(x+130, y+330)]; buf.polyLineF(poly, 18.0f, 0x80804020, true, 0x80FFFF00); //buf.fillTriangleF(vec2(x+230, y+50), vec2(x+400, y+250), vec2(x+130, y+200), 0xC0FF0000); //buf.fillTriangleF(vec2(x+230, y+250), vec2(x+200, y+350), vec2(x+80, y+200), 0xC000FF00); //buf.fillTriangleF(vec2(x+430, y+250), vec2(x+280, y+150), vec2(x+200, y+300), 0xC00000FF); //buf.fillTriangleF(vec2(x+80, y+150), vec2(x+280, y+250), vec2(x+80, y+200), 0xC0008080); //buf.clipRect = oldClip; canvas.font.drawText(buf, x + 190, y + 260, "polyLineF()"d, 0x603010); PointF[] poly2 = [vec2(x+430, y+250), vec2(x+540, y+180), vec2(x+470, y+270), vec2(x+580, y+300), vec2(x+620, y+400), vec2(x+480, y+350), vec2(x+520, y+450), vec2(x+480, y+430)]; buf.fillPolyF(poly2, 0x80203050); //buf.polyLineF(poly2, 2.0f, 0x80000000, true); canvas.font.drawText(buf, x + 500, y + 460, "fillPolyF()"d, 0x203050); buf.drawEllipseF(x+300, y+600, 200, 150, 3, 0x80008000, 0x804040FF); canvas.font.drawText(buf, x + 300, y + 600, "fillEllipseF()"d, 0x208050); buf.drawEllipseArcF(x+540, y+600, 150, 180, 45, 130, 3, 0x40008000, 0x804040FF); canvas.font.drawText(buf, x + 540, y + 580, "drawEllipseArcF()"d, 0x208050); }; tabs.addTab(canvas, "TAB_CANVAS"c); static if (ENABLE_OPENGL) { // tabs.addTab(new MyOpenglWidget(), "OpenGL"d); } } //========================================================================== contentLayout.addChild(tabs); window.mainWidget = contentLayout; tabs.selectTab("controls"); } else { window.mainWidget = (new Button()).text("sample button"); } static if (BACKEND_GUI) { window.windowIcon = drawableCache.getImage("dlangui-logo1"); } window.show(); //window.windowCaption = "New Window Caption"; // run message loop Log.i("HOME path: ", homePath); Log.i("APPDATA path: ", appDataPath(".dlangui")); Log.i("Root paths: ", getRootPaths); return Platform.instance.enterMessageLoop(); } static if (ENABLE_OPENGL) { import derelict.opengl3.gl3; import derelict.opengl3.gl; class MyOpenglWidget : VerticalLayout { this() { super("OpenGLView"); layoutWidth = FILL_PARENT; layoutHeight = FILL_PARENT; alignment = Align.Center; // add some UI on top of OpenGL drawable Widget w = parseML(q{ VerticalLayout { alignment: center layoutWidth: fill; layoutHeight: fill // background for window - tiled texture backgroundImageId: "tx_fabric.tiled" VerticalLayout { // child widget - will draw using OpenGL here id: glView margins: 20 padding: 20 layoutWidth: fill; layoutHeight: fill //backgroundColor: "#C0E0E070" // semitransparent yellow background // red bold text with size = 150% of base style size and font face Arial TextWidget { text: "Some controls to draw on top of OpenGL scene"; textColor: "red"; fontSize: 150%; fontWeight: 800; fontFace: "Arial" } // arrange controls as form - table with two columns TableLayout { colCount: 2 TextWidget { text: "param 1" } EditLine { id: edit1; text: "some text" } TextWidget { text: "param 2" } EditLine { id: edit2; text: "some text for param2" } TextWidget { text: "some radio buttons" } // arrange some radio buttons vertically VerticalLayout { RadioButton { id: rb1; text: "Item 1" } RadioButton { id: rb2; text: "Item 2" } RadioButton { id: rb3; text: "Item 3" } } TextWidget { text: "and checkboxes" } // arrange some checkboxes horizontally HorizontalLayout { CheckBox { id: cb1; text: "checkbox 1" } CheckBox { id: cb2; text: "checkbox 2" } } } VSpacer { layoutWeight: 10 } HorizontalLayout { Button { id: btnOk; text: "Ok" } Button { id: btnCancel; text: "Cancel" } } } } }); // setting OpenGL background drawable for one of child widgets w.childById("glView").backgroundDrawable = DrawableRef(new OpenGLDrawable(&doDraw)); addChild(w); } bool _oldApi; /// this is OpenGLDrawableDelegate implementation private void doDraw(Rect windowRect, Rect rc) { if (!openglEnabled) { Log.v("GlGears: OpenGL is disabled"); return; } import dlangui.graphics.glsupport : glSupport; _oldApi = glSupport.legacyMode; if (_oldApi) { drawUsingOldAPI(rc); } else { drawUsingNewAPI(rc); } } /// Legacy API example (glBegin/glEnd) void drawUsingOldAPI(Rect rc) { static bool _initCalled; if (!_initCalled) { Log.d("GlGears: calling init()"); _initCalled = true; glxgears_init(); } glxgears_reshape(rc); glEnable(GL_LIGHTING); glEnable(GL_LIGHT0); glEnable(GL_DEPTH_TEST); glxgears_draw(); glDisable(GL_LIGHTING); glDisable(GL_LIGHT0); glDisable(GL_DEPTH_TEST); } /// New API example (OpenGL3+, shaders) void drawUsingNewAPI(Rect rc) { // TODO: put some sample code here } /// returns true is widget is being animated - need to call animate() and redraw @property override bool animating() { return true; } /// animates window; interval is time left from previous draw, in hnsecs (1/10000000 of second) override void animate(long interval) { if (_oldApi) { // animate legacy API example // rotate gears angle += interval * 0.000002f; } else { // TODO: animate new API example } invalidate(); } } // Sample project for old API: GlxGears import std.math; static __gshared GLfloat view_rotx = 20.0, view_roty = 30.0, view_rotz = 0.0; static __gshared GLint gear1, gear2, gear3; static __gshared GLfloat angle = 0.0; alias M_PI = std.math.PI; /* * * Draw a gear wheel. You'll probably want to call this function when * building a display list since we do a lot of trig here. * * Input: inner_radius - radius of hole at center * outer_radius - radius at center of teeth * width - width of gear * teeth - number of teeth * tooth_depth - depth of tooth */ static void gear(GLfloat inner_radius, GLfloat outer_radius, GLfloat width, GLint teeth, GLfloat tooth_depth) { GLint i; GLfloat r0, r1, r2; GLfloat angle, da; GLfloat u, v, len; r0 = inner_radius; r1 = outer_radius - tooth_depth / 2.0; r2 = outer_radius + tooth_depth / 2.0; da = 2.0 * M_PI / teeth / 4.0; glShadeModel(GL_FLAT); glNormal3f(0.0, 0.0, 1.0); /* draw front face */ glBegin(GL_QUAD_STRIP); for (i = 0; i <= teeth; i++) { angle = i * 2.0 * M_PI / teeth; glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5); if (i < teeth) { glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), width * 0.5); } } glEnd(); /* draw front sides of teeth */ glBegin(GL_QUADS); da = 2.0 * M_PI / teeth / 4.0; for (i = 0; i < teeth; i++) { angle = i * 2.0 * M_PI / teeth; glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5); glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), width * 0.5); glVertex3f(r2 * cos(angle + 2 * da), r2 * sin(angle + 2 * da), width * 0.5); glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), width * 0.5); } glEnd(); glNormal3f(0.0, 0.0, -1.0); /* draw back face */ glBegin(GL_QUAD_STRIP); for (i = 0; i <= teeth; i++) { angle = i * 2.0 * M_PI / teeth; glVertex3f(r1 * cos(angle), r1 * sin(angle), -width * 0.5); glVertex3f(r0 * cos(angle), r0 * sin(angle), -width * 0.5); if (i < teeth) { glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), -width * 0.5); glVertex3f(r0 * cos(angle), r0 * sin(angle), -width * 0.5); } } glEnd(); /* draw back sides of teeth */ glBegin(GL_QUADS); da = 2.0 * M_PI / teeth / 4.0; for (i = 0; i < teeth; i++) { angle = i * 2.0 * M_PI / teeth; glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), -width * 0.5); glVertex3f(r2 * cos(angle + 2 * da), r2 * sin(angle + 2 * da), -width * 0.5); glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), -width * 0.5); glVertex3f(r1 * cos(angle), r1 * sin(angle), -width * 0.5); } glEnd(); /* draw outward faces of teeth */ glBegin(GL_QUAD_STRIP); for (i = 0; i < teeth; i++) { angle = i * 2.0 * M_PI / teeth; glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5); glVertex3f(r1 * cos(angle), r1 * sin(angle), -width * 0.5); u = r2 * cos(angle + da) - r1 * cos(angle); v = r2 * sin(angle + da) - r1 * sin(angle); len = sqrt(u * u + v * v); u /= len; v /= len; glNormal3f(v, -u, 0.0); glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), width * 0.5); glVertex3f(r2 * cos(angle + da), r2 * sin(angle + da), -width * 0.5); glNormal3f(cos(angle), sin(angle), 0.0); glVertex3f(r2 * cos(angle + 2 * da), r2 * sin(angle + 2 * da), width * 0.5); glVertex3f(r2 * cos(angle + 2 * da), r2 * sin(angle + 2 * da), -width * 0.5); u = r1 * cos(angle + 3 * da) - r2 * cos(angle + 2 * da); v = r1 * sin(angle + 3 * da) - r2 * sin(angle + 2 * da); glNormal3f(v, -u, 0.0); glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), width * 0.5); glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), -width * 0.5); glNormal3f(cos(angle), sin(angle), 0.0); } glVertex3f(r1 * cos(0.0), r1 * sin(0.0), width * 0.5); glVertex3f(r1 * cos(0.0), r1 * sin(0.0), -width * 0.5); glEnd(); glShadeModel(GL_SMOOTH); /* draw inside radius cylinder */ glBegin(GL_QUAD_STRIP); for (i = 0; i <= teeth; i++) { angle = i * 2.0 * M_PI / teeth; glNormal3f(-cos(angle), -sin(angle), 0.0); glVertex3f(r0 * cos(angle), r0 * sin(angle), -width * 0.5); glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); } glEnd(); } static void glxgears_draw() { glClear(/*GL_COLOR_BUFFER_BIT | */GL_DEPTH_BUFFER_BIT); glPushMatrix(); glRotatef(view_rotx, 1.0, 0.0, 0.0); glRotatef(view_roty, 0.0, 1.0, 0.0); glRotatef(view_rotz, 0.0, 0.0, 1.0); glPushMatrix(); glTranslatef(-3.0, -2.0, 0.0); glRotatef(angle, 0.0, 0.0, 1.0); glCallList(gear1); glPopMatrix(); glPushMatrix(); glTranslatef(3.1, -2.0, 0.0); glRotatef(-2.0 * angle - 9.0, 0.0, 0.0, 1.0); glCallList(gear2); glPopMatrix(); glPushMatrix(); glTranslatef(-3.1, 4.2, 0.0); glRotatef(-2.0 * angle - 25.0, 0.0, 0.0, 1.0); glCallList(gear3); glPopMatrix(); glPopMatrix(); } /* new window size or exposure */ static void glxgears_reshape(Rect rc) { GLfloat h = cast(GLfloat) rc.height / cast(GLfloat) rc.width; glMatrixMode(GL_PROJECTION); glLoadIdentity(); glFrustum(-1.0, 1.0, -h, h, 5.0, 60.0); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glTranslatef(0.0, 0.0, -40.0); } static void glxgears_init() { static GLfloat[4] pos = [ 5.0, 5.0, 10.0, 0.0 ]; static GLfloat[4] red = [ 0.8, 0.1, 0.0, 1.0 ]; static GLfloat[4] green = [ 0.0, 0.8, 0.2, 1.0 ]; static GLfloat[4] blue = [ 0.2, 0.2, 1.0, 1.0 ]; glLightfv(GL_LIGHT0, GL_POSITION, pos.ptr); glEnable(GL_CULL_FACE); glEnable(GL_LIGHTING); glEnable(GL_LIGHT0); glEnable(GL_DEPTH_TEST); /* make the gears */ gear1 = glGenLists(1); glNewList(gear1, GL_COMPILE); glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, red.ptr); gear(1.0, 4.0, 1.0, 20, 0.7); glEndList(); gear2 = glGenLists(1); glNewList(gear2, GL_COMPILE); glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, green.ptr); gear(0.5, 2.0, 2.0, 10, 0.7); glEndList(); gear3 = glGenLists(1); glNewList(gear3, GL_COMPILE); glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, blue.ptr); gear(1.3, 2.0, 0.5, 10, 0.7); glEndList(); glEnable(GL_NORMALIZE); } }
D
/* longdouble.d -- Software floating point emulation for the D frontend. * 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.root.longdouble; import core.stdc.config; import core.stdc.stdint; nothrow: @nogc: // Type used by the front-end for compile-time reals struct longdouble { this(T)(T r) { this.set(r); } // No constructor to be able to use this class in a union. longdouble opAssign(T)(T r) if (is (T : longdouble)) { this.realvalue = r.realvalue; return this; } longdouble opAssign(T)(T r) { this.set(r); return this; } // Arithmetic operators. longdouble opBinary(string op, T)(T r) const if ((op == "+" || op == "-" || op == "*" || op == "/" || op == "%") && is (T : longdouble)) { static if (op == "+") return this.add(r); else static if (op == "-") return this.sub(r); else static if (op == "*") return this.mul(r); else static if (op == "/") return this.div(r); else static if (op == "%") return this.mod(r); } longdouble opUnary(string op)() const if (op == "-") { return this.neg(); } int opCmp(longdouble r) const { return this.cmp(r); } int opEquals(longdouble r) const { return this.equals(r); } bool opCast(T : bool)() const { return this.to_bool(); } T opCast(T)() const { static if (__traits(isUnsigned, T)) return cast (T) this.to_uint(); else return cast(T) this.to_int(); } extern (C++): void set(int8_t d); void set(int16_t d); void set(int32_t d); void set(int64_t d); void set(uint8_t d); void set(uint16_t d); void set(uint32_t d); void set(uint64_t d); void set(bool d); int64_t to_int() const; uint64_t to_uint() const; bool to_bool() const; longdouble add(const ref longdouble r) const; longdouble sub(const ref longdouble r) const; longdouble mul(const ref longdouble r) const; longdouble div(const ref longdouble r) const; longdouble mod(const ref longdouble r) const; longdouble neg() const; int cmp(const ref longdouble t) const; int equals(const ref longdouble t) const; private: // Statically allocate enough space for REAL_VALUE_TYPE. enum realvalue_size = (2 + (16 + c_long.sizeof) / c_long.sizeof); c_long [realvalue_size] realvalue; }
D
/Users/gloompique/Desktop/works/rust/invaders/target/release/deps/lazy_static-4b33d6b7f4a597af.rmeta: /Users/gloompique/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/lib.rs /Users/gloompique/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/inline_lazy.rs /Users/gloompique/Desktop/works/rust/invaders/target/release/deps/liblazy_static-4b33d6b7f4a597af.rlib: /Users/gloompique/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/lib.rs /Users/gloompique/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/inline_lazy.rs /Users/gloompique/Desktop/works/rust/invaders/target/release/deps/lazy_static-4b33d6b7f4a597af.d: /Users/gloompique/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/lib.rs /Users/gloompique/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/inline_lazy.rs /Users/gloompique/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/lib.rs: /Users/gloompique/.cargo/registry/src/github.com-1ecc6299db9ec823/lazy_static-1.4.0/src/inline_lazy.rs:
D
void main() { debug { "==================================".writeln; while(true) { auto bench = benchmark!problem(1); "<<< Process time: %s >>>".writefln(bench[0]); "==================================".writeln; } } else { problem(); } } void problem() { enum long MOD = 998244353; auto N = scan!long; auto A = scan!long(N).sort().array; auto solve() { long ans; auto acc = new long[](N + 1); auto acc2 = new long[](N + 1); foreach_reverse(i; 0..N) { acc[i] = (acc2[i + 1] + A[i]) % MOD; acc2[i] = (acc2[i + 1] + acc[i]) % MOD; auto t = (acc[i] * A[i]) % MOD; ans = (ans + t) % MOD; } return ans; } static if (is(ReturnType!(solve) == void)) solve(); else solve().writeln; } // ---------------------------------------------- import std.stdio, std.conv, std.array, std.string, std.algorithm, std.container, std.range, core.stdc.stdlib, std.math, std.typecons, std.numeric, std.traits, std.functional, std.bigint, std.datetime.stopwatch, core.time; T[][] combinations(T)(T[] s, in int m) { if (!m) return [[]]; if (s.empty) return []; return s[1 .. $].combinations(m - 1).map!(x => s[0] ~ x).array ~ s[1 .. $].combinations(m); } string scan(){ static string[] ss; while(!ss.length) ss = readln.chomp.split; string res = ss[0]; ss.popFront; return res; } T scan(T)(){ return scan.to!T; } T[] scan(T)(long n){ return n.iota.map!(i => scan!T()).array; } void deb(T ...)(T t){ debug writeln(t); } alias Point = Tuple!(long, "x", long, "y"); Point invert(Point p) { return Point(p.y, p.x); } ulong MOD = 10^^9 + 7; long[] divisors(long n) { long[] ret; for (long i = 1; i * i <= n; i++) { if (n % i == 0) { ret ~= i; if (i * i != n) ret ~= n / i; } } return ret.sort.array; } bool chmin(T)(ref T a, T b) { if (b < a) { a = b; return true; } else return false; } bool chmax(T)(ref T a, T b) { if (b > a) { a = b; return true; } else return false; } string charSort(alias S = "a < b")(string s) { return (cast(char[])((cast(byte[])s).sort!S.array)).to!string; } enum YESNO = [true: "Yes", false: "No"]; // -----------------------------------------------
D
/home/runner/work/econ/econ/server/target/x86_64-unknown-linux-gnu/release/deps/sentry_panic-8b7ec17d3824aa56.rmeta: /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/sentry-panic-0.21.0/src/lib.rs /home/runner/work/econ/econ/server/target/x86_64-unknown-linux-gnu/release/deps/libsentry_panic-8b7ec17d3824aa56.rlib: /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/sentry-panic-0.21.0/src/lib.rs /home/runner/work/econ/econ/server/target/x86_64-unknown-linux-gnu/release/deps/sentry_panic-8b7ec17d3824aa56.d: /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/sentry-panic-0.21.0/src/lib.rs /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/sentry-panic-0.21.0/src/lib.rs:
D
# FIXED 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/src/28335_serial.c 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/include/coecsl.h 28335_serial.obj: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/std.h 28335_serial.obj: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/tistdtypes.h 28335_serial.obj: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/mem.h 28335_serial.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stddef.h 28335_serial.obj: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/sem.h 28335_serial.obj: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/knl.h 28335_serial.obj: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/atm.h 28335_serial.obj: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/fxn.h 28335_serial.obj: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/que.h 28335_serial.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stdarg.h 28335_serial.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/linkage.h 28335_serial.obj: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/sts.h 28335_serial.obj: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/swi.h 28335_serial.obj: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/hwi.h 28335_serial.obj: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/obj.h 28335_serial.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stddef.h 28335_serial.obj: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/sys.h 28335_serial.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stdarg.h 28335_serial.obj: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/log.h 28335_serial.obj: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/_log.h 28335_serial.obj: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/trc.h 28335_serial.obj: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/tsk.h 28335_serial.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stdarg.h 28335_serial.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stddef.h 28335_serial.obj: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/prd.h 28335_serial.obj: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/trg.h 28335_serial.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stddef.h 28335_serial.obj: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/_hook.h 28335_serial.obj: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/rtdx/include/c2000/rtdx.h 28335_serial.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stddef.h 28335_serial.obj: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/rtdx/include/c2000/RTDX_access.h 28335_serial.obj: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/rtdx/include/c2000/rtdxpoll.h 28335_serial.obj: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/clk.h 28335_serial.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stdio.h 28335_serial.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stdarg.h 28335_serial.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stdlib.h 28335_serial.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stdlibf.h 28335_serial.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stdarg.h 28335_serial.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/string.h 28335_serial.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/math.h 28335_serial.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/limits.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_Device.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_Adc.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_DevEmu.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_CpuTimers.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_ECan.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_ECap.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_DMA.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_EPwm.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_EQep.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_Gpio.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_I2c.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_McBSP.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_PieCtrl.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_PieVect.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_Spi.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_Sci.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_SysCtrl.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_XIntrupt.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_Xintf.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_common/include/DSP2833x_GlobalPrototypes.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/include/queue.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/include/buffer.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/include/smallprintf.h 28335_serial.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stdio.h 28335_serial.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stdlib.h 28335_serial.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stdlibf.h 28335_serial.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stdarg.h 28335_serial.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/string.h 28335_serial.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/math.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/include/io.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/include/28335_serial.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/include/coecsl.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/include/28335_pwm.h 28335_serial.obj: C:/tfu3_jchen237/Repo/trunk/CRSRobot/include/28335_eQep.h C:/tfu3_jchen237/Repo/trunk/CRSRobot/src/28335_serial.c: C:/tfu3_jchen237/Repo/trunk/CRSRobot/include/coecsl.h: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/std.h: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/tistdtypes.h: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/mem.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stddef.h: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/sem.h: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/knl.h: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/atm.h: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/fxn.h: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/que.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stdarg.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/linkage.h: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/sts.h: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/swi.h: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/hwi.h: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/obj.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stddef.h: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/sys.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stdarg.h: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/log.h: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/_log.h: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/trc.h: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/tsk.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stdarg.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stddef.h: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/prd.h: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/trg.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stddef.h: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/_hook.h: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/rtdx/include/c2000/rtdx.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stddef.h: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/rtdx/include/c2000/RTDX_access.h: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/rtdx/include/c2000/rtdxpoll.h: C:/CCStudio_v8/bios_5_42_02_10/packages/ti/bios/include/clk.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stdio.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stdarg.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stdlib.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stdlibf.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stdarg.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/string.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/math.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/limits.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_Device.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_Adc.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_DevEmu.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_CpuTimers.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_ECan.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_ECap.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_DMA.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_EPwm.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_EQep.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_Gpio.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_I2c.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_McBSP.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_PieCtrl.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_PieVect.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_Spi.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_Sci.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_SysCtrl.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_XIntrupt.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_headers/include/DSP2833x_Xintf.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/v110/DSP2833x_common/include/DSP2833x_GlobalPrototypes.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/include/queue.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/include/buffer.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/include/smallprintf.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stdio.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stdlib.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stdlibf.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/stdarg.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/string.h: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_6.4.12/include/math.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/include/io.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/include/28335_serial.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/include/coecsl.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/include/28335_pwm.h: C:/tfu3_jchen237/Repo/trunk/CRSRobot/include/28335_eQep.h:
D
/Users/apple-1/Downloads/HouseKeeping/Build/Intermediates/HouseKeeping.build/Debug-iphonesimulator/HouseKeeping.build/Objects-normal/x86_64/home.o : /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/DetailsPending.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblAssignTasksPending.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/VCCells.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/currentTask.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/Forgotpassword.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/PageView3.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/PageView.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/ConversationsVC.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/WelcomeVC.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/CheckLists.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/LandingVC.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/workHistoryCell.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/Distribute.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/ViewController.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblHistoryAll.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/taskDescription.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/reassignTask.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/Message.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/AppDelegate.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/checkListCell.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/Conversation.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/individualEmpTask.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblAssignTasksAll.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/viewAdminTask.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/viewCompletedtask.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/FullSizeImage.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/AlertsViewController.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/viewTaskViewController.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblAssignTasksCompleted.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblHistoryCompleted.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/home.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblAssignTo.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblAssignToCell.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/PageView2.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/Helper\ Files.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/AllTasksCell.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/viewCompletedChecklist.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/EmployeeLoginHome.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/roomsCollectionViewCell.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/EmployeeLoginCell.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/DatePickerDialog.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/TBLViewEmpDND.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/TblViewEmplLoginPending.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/User.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/HADropDown.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/EmployeeDetails.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblHistoryDND.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/Distributetask.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblHistoryPending.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/ChatVC.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/NavVC.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/TaskType.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblAssignTasksOnProgress.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/getJSONAssignedTasks&Workers.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/WorkHistory.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblHistoryOnprogress.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblDoNotDistrub.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/TblViewEmplLoginCompleted.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/selectedHistory.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/SwiftOnoneSupport.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/Foundation.swiftmodule /Users/apple-1/Downloads/HouseKeeping/Pods/Firebase/Core/Sources/module.modulemap /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/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Modules/SwiftyJSON.swiftmodule/x86_64.swiftmodule /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Headers/SwiftyJSON-Swift.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Headers/SwiftyJSON-umbrella.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/Fusuma/Fusuma.framework/Modules/Fusuma.swiftmodule/x86_64.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/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/Fusuma/Fusuma.framework/Headers/Fusuma-Swift.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/Fusuma/Fusuma.framework/Headers/Fusuma-umbrella.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/Fusuma/Fusuma.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Photos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreLocation.swiftmodule /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftSpinner/SwiftSpinner.framework/Modules/SwiftSpinner.swiftmodule/x86_64.swiftmodule /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftSpinner/SwiftSpinner.framework/Headers/SwiftSpinner-Swift.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftSpinner/SwiftSpinner.framework/Headers/SwiftSpinner.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftSpinner/SwiftSpinner.framework/Headers/SwiftSpinner-umbrella.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftSpinner/SwiftSpinner.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIROptions.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRLoggerLevel.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRConfiguration.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRApp.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRCoreSwiftNameSupport.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FirebaseCore.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsSwiftNameSupport.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRConfiguration.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRApp.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsConfiguration.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FirebaseAuthVersion.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUserInfo.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUser.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthDataResult.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAdditionalUserInfo.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRTwitterAuthProvider.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthErrors.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthAPNSTokenType.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuth.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRPhoneAuthProvider.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthCredential.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRPhoneAuthCredential.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIROAuthProvider.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRGoogleAuthProvider.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRGitHubAuthProvider.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRFacebookAuthProvider.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthSwiftNameSupport.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIREmailAuthProvider.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FirebaseAuth.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRServerValue.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRTransactionResult.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRMutableData.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseQuery.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseReference.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabase.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataSnapshot.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseSwiftNameSupport.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataEventType.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FirebaseDatabase.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseMessaging/Frameworks/FirebaseMessaging.framework/Headers/FIRMessaging.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseMessaging/Frameworks/FirebaseMessaging.framework/Headers/FirebaseMessaging.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseMessaging/Frameworks/FirebaseMessaging.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTaskSnapshot.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageUploadTask.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageReference.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageMetadata.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTask.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageObservableTask.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageDownloadTask.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageSwiftNameSupport.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageConstants.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorage.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FirebaseStorage.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Pods/Firebase/Core/Sources/Firebase.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/LIHAlert/LIHAlert.framework/Modules/LIHAlert.swiftmodule/x86_64.swiftmodule /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/LIHAlert/LIHAlert.framework/Headers/LIHAlert-Swift.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/LIHAlert/LIHAlert.framework/Headers/LIHAlert-umbrella.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/LIHAlert/LIHAlert.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/SWActionSheet.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetStringPicker.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetPicker.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetMultipleStringPicker.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetLocalePicker.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/DistancePickerView.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetDistancePicker.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetDatePicker.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetCustomPickerDelegate.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetCustomPicker.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/AbstractActionSheetPicker.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetPicker-3.0-umbrella.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/MapKit.swiftmodule /Users/apple-1/Downloads/HouseKeeping/Build/Intermediates/HouseKeeping.build/Debug-iphonesimulator/HouseKeeping.build/Objects-normal/x86_64/home~partial.swiftmodule : /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/DetailsPending.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblAssignTasksPending.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/VCCells.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/currentTask.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/Forgotpassword.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/PageView3.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/PageView.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/ConversationsVC.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/WelcomeVC.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/CheckLists.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/LandingVC.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/workHistoryCell.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/Distribute.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/ViewController.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblHistoryAll.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/taskDescription.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/reassignTask.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/Message.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/AppDelegate.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/checkListCell.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/Conversation.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/individualEmpTask.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblAssignTasksAll.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/viewAdminTask.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/viewCompletedtask.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/FullSizeImage.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/AlertsViewController.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/viewTaskViewController.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblAssignTasksCompleted.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblHistoryCompleted.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/home.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblAssignTo.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblAssignToCell.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/PageView2.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/Helper\ Files.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/AllTasksCell.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/viewCompletedChecklist.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/EmployeeLoginHome.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/roomsCollectionViewCell.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/EmployeeLoginCell.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/DatePickerDialog.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/TBLViewEmpDND.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/TblViewEmplLoginPending.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/User.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/HADropDown.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/EmployeeDetails.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblHistoryDND.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/Distributetask.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblHistoryPending.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/ChatVC.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/NavVC.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/TaskType.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblAssignTasksOnProgress.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/getJSONAssignedTasks&Workers.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/WorkHistory.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblHistoryOnprogress.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblDoNotDistrub.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/TblViewEmplLoginCompleted.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/selectedHistory.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/SwiftOnoneSupport.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/Foundation.swiftmodule /Users/apple-1/Downloads/HouseKeeping/Pods/Firebase/Core/Sources/module.modulemap /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/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Modules/SwiftyJSON.swiftmodule/x86_64.swiftmodule /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Headers/SwiftyJSON-Swift.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Headers/SwiftyJSON-umbrella.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/Fusuma/Fusuma.framework/Modules/Fusuma.swiftmodule/x86_64.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/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/Fusuma/Fusuma.framework/Headers/Fusuma-Swift.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/Fusuma/Fusuma.framework/Headers/Fusuma-umbrella.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/Fusuma/Fusuma.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Photos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreLocation.swiftmodule /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftSpinner/SwiftSpinner.framework/Modules/SwiftSpinner.swiftmodule/x86_64.swiftmodule /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftSpinner/SwiftSpinner.framework/Headers/SwiftSpinner-Swift.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftSpinner/SwiftSpinner.framework/Headers/SwiftSpinner.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftSpinner/SwiftSpinner.framework/Headers/SwiftSpinner-umbrella.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftSpinner/SwiftSpinner.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIROptions.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRLoggerLevel.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRConfiguration.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRApp.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRCoreSwiftNameSupport.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FirebaseCore.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsSwiftNameSupport.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRConfiguration.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRApp.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsConfiguration.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FirebaseAuthVersion.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUserInfo.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUser.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthDataResult.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAdditionalUserInfo.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRTwitterAuthProvider.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthErrors.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthAPNSTokenType.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuth.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRPhoneAuthProvider.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthCredential.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRPhoneAuthCredential.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIROAuthProvider.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRGoogleAuthProvider.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRGitHubAuthProvider.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRFacebookAuthProvider.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthSwiftNameSupport.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIREmailAuthProvider.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FirebaseAuth.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRServerValue.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRTransactionResult.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRMutableData.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseQuery.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseReference.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabase.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataSnapshot.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseSwiftNameSupport.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataEventType.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FirebaseDatabase.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseMessaging/Frameworks/FirebaseMessaging.framework/Headers/FIRMessaging.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseMessaging/Frameworks/FirebaseMessaging.framework/Headers/FirebaseMessaging.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseMessaging/Frameworks/FirebaseMessaging.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTaskSnapshot.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageUploadTask.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageReference.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageMetadata.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTask.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageObservableTask.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageDownloadTask.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageSwiftNameSupport.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageConstants.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorage.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FirebaseStorage.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Pods/Firebase/Core/Sources/Firebase.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/LIHAlert/LIHAlert.framework/Modules/LIHAlert.swiftmodule/x86_64.swiftmodule /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/LIHAlert/LIHAlert.framework/Headers/LIHAlert-Swift.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/LIHAlert/LIHAlert.framework/Headers/LIHAlert-umbrella.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/LIHAlert/LIHAlert.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/SWActionSheet.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetStringPicker.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetPicker.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetMultipleStringPicker.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetLocalePicker.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/DistancePickerView.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetDistancePicker.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetDatePicker.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetCustomPickerDelegate.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetCustomPicker.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/AbstractActionSheetPicker.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetPicker-3.0-umbrella.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/MapKit.swiftmodule /Users/apple-1/Downloads/HouseKeeping/Build/Intermediates/HouseKeeping.build/Debug-iphonesimulator/HouseKeeping.build/Objects-normal/x86_64/home~partial.swiftdoc : /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/DetailsPending.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblAssignTasksPending.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/VCCells.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/currentTask.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/Forgotpassword.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/PageView3.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/PageView.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/ConversationsVC.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/WelcomeVC.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/CheckLists.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/LandingVC.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/workHistoryCell.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/Distribute.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/ViewController.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblHistoryAll.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/taskDescription.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/reassignTask.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/Message.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/AppDelegate.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/checkListCell.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/Conversation.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/individualEmpTask.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblAssignTasksAll.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/viewAdminTask.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/viewCompletedtask.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/FullSizeImage.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/AlertsViewController.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/viewTaskViewController.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblAssignTasksCompleted.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblHistoryCompleted.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/home.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblAssignTo.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblAssignToCell.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/PageView2.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/Helper\ Files.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/AllTasksCell.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/viewCompletedChecklist.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/EmployeeLoginHome.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/roomsCollectionViewCell.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/EmployeeLoginCell.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/DatePickerDialog.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/TBLViewEmpDND.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/TblViewEmplLoginPending.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/User.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/HADropDown.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/EmployeeDetails.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblHistoryDND.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/Distributetask.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblHistoryPending.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/ChatVC.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/NavVC.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/TaskType.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblAssignTasksOnProgress.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/getJSONAssignedTasks&Workers.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/WorkHistory.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblHistoryOnprogress.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/tblDoNotDistrub.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/TblViewEmplLoginCompleted.swift /Users/apple-1/Downloads/HouseKeeping/HouseKeeping/selectedHistory.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/SwiftOnoneSupport.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/Foundation.swiftmodule /Users/apple-1/Downloads/HouseKeeping/Pods/Firebase/Core/Sources/module.modulemap /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/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Modules/SwiftyJSON.swiftmodule/x86_64.swiftmodule /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Headers/SwiftyJSON-Swift.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Headers/SwiftyJSON-umbrella.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftyJSON/SwiftyJSON.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/Fusuma/Fusuma.framework/Modules/Fusuma.swiftmodule/x86_64.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/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/Fusuma/Fusuma.framework/Headers/Fusuma-Swift.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/Fusuma/Fusuma.framework/Headers/Fusuma-umbrella.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/Fusuma/Fusuma.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Photos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreLocation.swiftmodule /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftSpinner/SwiftSpinner.framework/Modules/SwiftSpinner.swiftmodule/x86_64.swiftmodule /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftSpinner/SwiftSpinner.framework/Headers/SwiftSpinner-Swift.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftSpinner/SwiftSpinner.framework/Headers/SwiftSpinner.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftSpinner/SwiftSpinner.framework/Headers/SwiftSpinner-umbrella.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/SwiftSpinner/SwiftSpinner.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIROptions.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRLoggerLevel.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRConfiguration.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRApp.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRCoreSwiftNameSupport.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FirebaseCore.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsSwiftNameSupport.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRConfiguration.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRApp.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsConfiguration.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FirebaseAuthVersion.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUserInfo.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRUser.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthDataResult.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAdditionalUserInfo.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRTwitterAuthProvider.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthErrors.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthAPNSTokenType.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuth.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRPhoneAuthProvider.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthCredential.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRPhoneAuthCredential.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIROAuthProvider.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRGoogleAuthProvider.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRGitHubAuthProvider.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRFacebookAuthProvider.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIRAuthSwiftNameSupport.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FIREmailAuthProvider.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Headers/FirebaseAuth.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseAuth/Frameworks/FirebaseAuth.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRServerValue.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRTransactionResult.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRMutableData.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseQuery.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseReference.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabase.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataSnapshot.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDatabaseSwiftNameSupport.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FIRDataEventType.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Headers/FirebaseDatabase.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseDatabase/Frameworks/FirebaseDatabase.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseMessaging/Frameworks/FirebaseMessaging.framework/Headers/FIRMessaging.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseMessaging/Frameworks/FirebaseMessaging.framework/Headers/FirebaseMessaging.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseMessaging/Frameworks/FirebaseMessaging.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTaskSnapshot.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageUploadTask.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageReference.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageMetadata.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageTask.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageObservableTask.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageDownloadTask.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageSwiftNameSupport.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorageConstants.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FIRStorage.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Headers/FirebaseStorage.h /Users/apple-1/Downloads/HouseKeeping/Pods/FirebaseStorage/Frameworks/FirebaseStorage.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Pods/Firebase/Core/Sources/Firebase.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/LIHAlert/LIHAlert.framework/Modules/LIHAlert.swiftmodule/x86_64.swiftmodule /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/LIHAlert/LIHAlert.framework/Headers/LIHAlert-Swift.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/LIHAlert/LIHAlert.framework/Headers/LIHAlert-umbrella.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/LIHAlert/LIHAlert.framework/Modules/module.modulemap /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/SWActionSheet.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetStringPicker.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetPicker.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetMultipleStringPicker.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetLocalePicker.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/DistancePickerView.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetDistancePicker.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetDatePicker.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetCustomPickerDelegate.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetCustomPicker.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/AbstractActionSheetPicker.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Headers/ActionSheetPicker-3.0-umbrella.h /Users/apple-1/Downloads/HouseKeeping/Build/Products/Debug-iphonesimulator/ActionSheetPicker-3.0/ActionSheetPicker_3_0.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/MapKit.swiftmodule
D
/Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Configs.build/Node+Merge.swift.o : /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Source.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Node+Merge.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/KeyAccessible+Merge.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/ConfigInitializable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/KeyAccessible.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Config.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/ConfigError.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Config+Arguments.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Environment.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Env/Node+Env.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Env/String+Env.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Env/Env.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Config+Directory.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/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/JSON.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Configs.build/Node+Merge~partial.swiftmodule : /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Source.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Node+Merge.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/KeyAccessible+Merge.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/ConfigInitializable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/KeyAccessible.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Config.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/ConfigError.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Config+Arguments.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Environment.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Env/Node+Env.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Env/String+Env.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Env/Env.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Config+Directory.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/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/JSON.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Configs.build/Node+Merge~partial.swiftdoc : /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Source.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Node+Merge.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/KeyAccessible+Merge.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/ConfigInitializable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/KeyAccessible.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Config.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/ConfigError.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Config+Arguments.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Environment.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Env/Node+Env.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Env/String+Env.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Env/Env.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Configs/Config+Directory.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/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/JSON.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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
module android.java.android.app.assist.AssistStructure_WindowNode_d_interface; import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers; static import arsd.jni; import import0 = android.java.java.lang.CharSequence_d_interface; import import2 = android.java.java.lang.Class_d_interface; import import1 = android.java.android.app.assist.AssistStructure_ViewNode_d_interface; @JavaName("AssistStructure$WindowNode") final class AssistStructure_WindowNode : IJavaObject { static immutable string[] _d_canCastTo = [ ]; @Import int getLeft(); @Import int getTop(); @Import int getWidth(); @Import int getHeight(); @Import import0.CharSequence getTitle(); @Import int getDisplayId(); @Import import1.AssistStructure_ViewNode getRootViewNode(); @Import import2.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/app/assist/AssistStructure$WindowNode;"; }
D
module gbaid.gl; import std.regex; import std.file; import std.string; import std.conv; import derelict.opengl3.gl3 : glGetError; /** * Represents an object that has an OpenGL version associated to it. */ public interface GLVersioned { /** * Returns the lowest OpenGL version required by this object's implementation. * * @return The lowest required OpenGL version */ public GLVersion getGLVersion(); } public enum : GLVersion { GL11 = new GLVersion(1, 1, false, 0, 0), GL12 = new GLVersion(1, 2, false, 0, 0), GL13 = new GLVersion(1, 3, false, 0, 0), GL14 = new GLVersion(1, 4, false, 0, 0), GL15 = new GLVersion(1, 5, false, 0, 0), GL20 = new GLVersion(2, 0, false, 1, 1), GL21 = new GLVersion(2, 1, false, 1, 2), GL30 = new GLVersion(3, 0, false, 1, 3), GL31 = new GLVersion(3, 1, false, 1, 4), GL32 = new GLVersion(3, 2, false, 1, 5), GL33 = new GLVersion(3, 3, false, 3, 3), GL40 = new GLVersion(4, 0, false, 4, 0), GL41 = new GLVersion(4, 1, false, 4, 1), GL42 = new GLVersion(4, 2, false, 4, 2), GL43 = new GLVersion(4, 3, false, 4, 3), GL44 = new GLVersion(4, 4, false, 4, 4), GLES10 = new GLVersion(1, 0, true, 1, 0), GLES11 = new GLVersion(1, 1, true, 1, 0), GLES20 = new GLVersion(2, 0, true, 1, 0), GLES30 = new GLVersion(3, 0, true, 3, 0), GLES31 = new GLVersion(3, 1, true, 3, 0), SOFTWARE = new GLVersion(0, 0, false, 0, 0), OTHER = new GLVersion(0, 0, false, 0, 0) } /** * An enum of the existing OpenGL versions. Use this class to generate rendering objects compatible with the version. */ public final class GLVersion { private immutable uint major; private immutable uint minor; private immutable bool es; private immutable uint glslMajor; private immutable uint glslMinor; private this(uint major, uint minor, bool es, uint glslMajor, uint glslMinor) { this.major = major; this.minor = minor; this.es = es; this.glslMajor = glslMajor; this.glslMinor = glslMinor; } /** * Returns the full version number of the version. * * @return The full version number */ public uint getFull() { return major * 10 + minor; } /** * Returns the major version number of the version. * * @return The major version number */ public uint getMajor() { return major; } /** * Returns the minor version number of the version. * * @return The minor version number */ public uint getMinor() { return minor; } /** * Returns true if the version is ES compatible, false if not. * * @return Whether or not this is an ES compatible version */ public bool isES() { return es; } /** * Returns the full GLSL version available with the OpenGL version. * * @return The GLSL version */ public uint getGLSLFull() { return glslMajor * 100 + glslMinor * 10; } /** * Returns the GLSL major version available with the OpenGL version. This version number is 0 if GLSL isn't supported. * * @return The GLSL major version, or 0 for unsupported */ public uint getGLSLMajor() { return glslMajor; } /** * Returns the GLSL minor version available with the OpenGL version. * * @return The GLSL minor version */ public uint getGLSLMinor() { return glslMinor; } /** * Returns true if this version supports GLSL, false if not. * * @return Whether or not this version supports GLSL */ public bool supportsGLSL() { return glslMajor != 0; } } /** * Represents a resource that can be created and destroyed. */ public abstract class Creatable { private bool created = false; /** * Creates the resources. It can now be used. */ public void create() { created = true; } /** * Releases the resource. It can not longer be used. */ public void destroy() { created = false; } /** * Returns true if the resource was created and is ready for use, false if otherwise. * * @return Whether or not the resource has been created */ public bool isCreated() { return created; } /** * Throws an exception if the resource hasn't been created yet. * * @throws IllegalStateException if the resource hasn't been created */ public void checkCreated() { if (!isCreated()) { throw new Exception("Resource has not been created yet"); } } /** * Throws an exception if the resource has been created already. * * @throws IllegalStateException if the resource has been created */ public void checkNotCreated() { if (isCreated()) { throw new Exception("Resource has been created already"); } } } /** * Represents an OpenGL context. Creating context must be done before any other OpenGL object. */ public abstract class Context : Creatable, GLVersioned { protected int msaa = -1; public override void destroy() { super.destroy(); } /** * Creates a new frame buffer. * * @return A new frame buffer */ public abstract FrameBuffer newFrameBuffer(); /** * Creates a new program. * * @return A new program */ public abstract Program newProgram(); /** * Creates a new render buffer. * * @return A new render buffer */ public abstract RenderBuffer newRenderBuffer(); /** * Creates a new shader. * * @return A new shader */ public abstract Shader newShader(); /** * Creates a new texture. * * @return A new texture */ public abstract Texture newTexture(); /** * Creates a new vertex array. * * @return A new vertex array */ public abstract VertexArray newVertexArray(); /** * Returns the window title. * * @return The window title */ public abstract string getWindowTitle(); /** * Sets the window title to the desired one. * * @param title The window title */ public abstract void setWindowTitle(string title); /** * Sets the window size. * * @param width The width * @param height The height */ public abstract void setWindowSize(uint width, uint height); /** * Sets the user resizability of this window. Should be set before creation. * * @param resizable Whether or not the window is resizable */ public abstract void setResizable(bool resizable); /** * Sets the window size. * * @param width Where to store the width, may be null * @param height Where to store the height, may be null */ public abstract void getWindowSize(int* width, int *height); /** * Returns the window width. * * @return The window width */ public abstract uint getWindowWidth(); /** * Returns the window height. * * @return The window height */ public abstract uint getWindowHeight(); /** * Updates the display with the current front (screen) buffer. */ public abstract void updateDisplay(); /** * Sets the renderer buffer clear color. This can be interpreted as the background color. * * @param color The clear color */ public abstract void setClearColor(float red, float green, float blue, float alpha); /** * Clears the currently bound buffer (either a frame buffer, or the front (screen) buffer if none are bound). */ public abstract void clearCurrentBuffer(); /** * Disables the capability. * * @param capability The capability to disable */ public abstract void disableCapability(Capability capability); /** * Enables the capability. * * @param capability The capability to enable */ public abstract void enableCapability(Capability capability); /** * Enables or disables writing into the depth buffer. * * @param enabled Whether or not to write into the depth buffer. */ public abstract void setDepthMask(bool enabled); /** * Sets the blending functions for the source and destination buffers, for all buffers. Blending must be enabled with {@link #enableCapability(org.spout.renderer.api.gl.Context.Capability)}. * * @param source The source function * @param destination The destination function */ public void setBlendingFunctions(BlendFunction source, BlendFunction destination) { setBlendingFunctions(-1, source, destination); } /** * Sets the blending functions for the source and destination buffer at the index. Blending must be enabled with {@link #enableCapability(org.spout.renderer.api.gl.Context.Capability)}. * <p/> * Support for specifying the buffer index is only available in GL40. * * @param bufferIndex The index of the target buffer * @param source The source function * @param destination The destination function */ public abstract void setBlendingFunctions(int bufferIndex, BlendFunction source, BlendFunction destination); /** * Sets the render view port, which is the dimensions and position of the frame inside the window. * * @param x The x coordinate * @param y The y coordinate * @param width The width * @param height The height */ public abstract void setViewPort(uint x, uint y, uint width, uint height); /** * Sets the render view port, which is the dimensions and position of the frame inside the window, to its maximum value. */ public abstract void setMaxViewPort(); /** * Reads the current frame pixels and returns it as a byte buffer of the desired format. The size of the returned image data is the same as the current window dimensions. * * @param x The x coordinate * @param y The y coordinate * @param width The width * @param height The height * @param format The image format to return * @return The byte array containing the pixel data, according to the provided format */ public abstract ubyte[] readFrame(uint x, uint y, uint width, uint height, InternalFormat format); /** * Returns true if an external process (such as the user) is requesting for the window to be closed. This value is reset once this method has been called. * * @return Whether or not the window is being requested to close */ public abstract bool isWindowCloseRequested(); /** * Sets the MSAA value. Must be greater or equal to zero. Zero means no MSAA. * * @param value The MSAA value, greater or equal to zero */ public void setMSAA(int value) { if (value < 0) { throw new Exception("MSAA value must be greater or equal to zero"); } this.msaa = value; } } public enum : Capability { BLEND = new Capability(0xBE2), // GL11.GL_BLEND CULL_FACE = new Capability(0xB44), // GL11.GL_CULL_FACE DEPTH_CLAMP = new Capability(0x864F), // GL32.GL_DEPTH_CLAMP DEPTH_TEST = new Capability(0xB71) // GL11.GL_DEPTH_TEST } /** * An enum of the renderer capabilities. */ public final class Capability { private immutable uint glConstant; private this(uint glConstant) { this.glConstant = glConstant; } /** * Returns the OpenGL constant associated to the capability. * * @return The OpenGL constant */ public uint getGLConstant() { return glConstant; } } public enum : BlendFunction { GL_ZERO = new BlendFunction(0x0), // GL11.GL_ZERO GL_ONE = new BlendFunction(0x1), // GL11.GL_ONE GL_SRC_COLOR = new BlendFunction(0x300), // GL11.GL_SRC_COLOR GL_ONE_MINUS_SRC_COLOR = new BlendFunction(0x301), // GL11.GL_ONE_MINUS_SRC_COLOR GL_DST_COLOR = new BlendFunction(0x306), // GL11.GL_DST_COLOR GL_ONE_MINUS_DST_COLOR = new BlendFunction(0x307), // GL11.GL_ONE_MINUS_DST_COLOR GL_SRC_ALPHA = new BlendFunction(0x302), // GL11.GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA = new BlendFunction(0x303), // GL11.GL_ONE_MINUS_SRC_ALPHA GL_DST_ALPHA = new BlendFunction(0x304), // GL11.GL_DST_ALPHA GL_ONE_MINUS_DST_ALPHA = new BlendFunction(0x305), // GL11.GL_ONE_MINUS_DST_ALPHA GL_CONSTANT_COLOR = new BlendFunction(0x8001), // GL11.GL_CONSTANT_COLOR GL_ONE_MINUS_CONSTANT_COLOR = new BlendFunction(0x8002), // GL11.GL_ONE_MINUS_CONSTANT_COLOR GL_CONSTANT_ALPHA = new BlendFunction(0x8003), // GL11.GL_CONSTANT_ALPHA GL_ONE_MINUS_CONSTANT_ALPHA = new BlendFunction(0x8004), // GL11.GL_ONE_MINUS_CONSTANT_ALPHA GL_SRC_ALPHA_SATURATE = new BlendFunction(0x308), // GL11.GL_SRC_ALPHA_SATURATE GL_SRC1_COLOR = new BlendFunction(0x88F9), // GL33.GL_SRC1_COLOR GL_ONE_MINUS_SRC1_COLOR = new BlendFunction(0x88FA), // GL33.GL_ONE_MINUS_SRC1_COLOR GL_SRC1_ALPHA = new BlendFunction(0x8589), // GL33.GL_SRC1_ALPHA GL_ONE_MINUS_SRC1_ALPHA = new BlendFunction(0x88FB) // GL33.GL_ONE_MINUS_SRC1_ALPHA } /** * An enum of the blending functions. */ public final class BlendFunction { private immutable uint glConstant; private this(uint glConstant) { this.glConstant = glConstant; } /** * Returns the OpenGL constant associated to the blending function. * * @return The OpenGL constant */ public uint getGLConstant() { return glConstant; } } /** * Represents an OpenGL frame buffer. A frame buffer can be bound before rendering to redirect the output to textures instead of the screen. This is meant for advanced rendering techniques such as * shadow mapping and screen space ambient occlusion (SSAO). */ public abstract class FrameBuffer : Creatable, GLVersioned { protected uint id; public override void destroy() { id = 0; super.destroy(); } /** * Binds the frame buffer to the OpenGL context. */ public abstract void bind(); /** * Unbinds the frame buffer from the OpenGL context. */ public abstract void unbind(); /** * Attaches the texture to the frame buffer attachment point. * * @param point The attachment point * @param texture The texture to attach */ public abstract void attach(AttachmentPoint point, Texture texture); /** * Attaches the render buffer to the attachment point * * @param point The attachment point * @param buffer The render buffer */ public abstract void attach(AttachmentPoint point, RenderBuffer buffer); /** * Detaches the texture or render buffer from the attachment point * * @param point The attachment point */ public abstract void detach(AttachmentPoint point); /** * Returns true if the frame buffer is complete, false if otherwise. * * @return Whether or not the frame buffer is complete */ public abstract bool isComplete(); /** * Gets the ID for this frame buffer as assigned by OpenGL. * * @return The ID */ public uint getId() { return id; } } public enum : AttachmentPoint { COLOR_ATTACHMENT0 = new AttachmentPoint(0x8CE0, true), // GL30.GL_COLOR_ATTACHMENT0 COLOR_ATTACHMENT1 = new AttachmentPoint(0x8CE1, true), // GL30.GL_COLOR_ATTACHMENT1 COLOR_ATTACHMENT2 = new AttachmentPoint(0x8CE2, true), // GL30.GL_COLOR_ATTACHMENT2 COLOR_ATTACHMENT3 = new AttachmentPoint(0x8CE3, true), // GL30.GL_COLOR_ATTACHMENT3 COLOR_ATTACHMENT4 = new AttachmentPoint(0x8CE4, true), // GL30.GL_COLOR_ATTACHMENT4 DEPTH_ATTACHMENT = new AttachmentPoint(0x8D00, false), // GL30.GL_DEPTH_ATTACHMENT STENCIL_ATTACHMENT = new AttachmentPoint(0x8D20, false), // GL30.GL_STENCIL_ATTACHMENT DEPTH_STENCIL_ATTACHMENT = new AttachmentPoint(0x821A, false) // GL30.GL_DEPTH_STENCIL_ATTACHMENT } /** * An enum of the possible frame buffer attachment points. */ public final class AttachmentPoint { private immutable uint glConstant; private immutable bool color; private this(uint glConstant, bool color) { this.glConstant = glConstant; this.color = color; } /** * Gets the OpenGL constant for this attachment point. * * @return The OpenGL Constant */ public uint getGLConstant() { return glConstant; } /** * Returns true if the attachment point is a color attachment. * * @return Whether or not the attachment is a color attachment */ public bool isColor() { return color; } } /** * Represents an OpenGL program. A program holds the necessary shaders for the rendering pipeline. When using GL20, it is strongly recommended to set the attribute layout in the {@link * org.spout.renderer.api.gl.Shader}s with {@link org.spout.renderer.api.gl.Shader#setAttributeLayout(String, int)}}, which must be done before attaching it. The layout allows for association between * the attribute index in the vertex data and the name in the shaders. For GL30, it is recommended to do so in the shaders instead, using the "layout" keyword. Failing to do so might result in * partial, wrong or missing rendering, and affects models using multiple attributes. The texture layout should also be setup using {@link Shader#setTextureLayout(int, String)} in the same way. */ public abstract class Program : Creatable, GLVersioned { protected uint id; public override void destroy() { id = 0; super.destroy(); } /** * Attaches a shader to the program. * * @param shader The shader to attach */ public abstract void attachShader(Shader shader); /** * Detaches a shader from the shader. * * @param shader The shader to detach */ public abstract void detachShader(Shader shader); /** * Links the shaders together in the program. This makes it usable. */ public abstract void link(); /** * Binds this program to the OpenGL context. */ public abstract void use(); /** * Binds the sampler to the texture unit. The binding is done according to the texture layout, which must be set in the program for the textures that will be used before any binding can be done. * * @param unit The unit to bind */ public abstract void bindSampler(uint unit); /** * Sets a uniform boolean in the shader to the desired value. * * @param name The name of the uniform to set * @param b The boolean value */ public abstract void setUniform(string name, bool b); /** * Sets a uniform integer in the shader to the desired value. * * @param name The name of the uniform to set * @param i The integer value */ public abstract void setUniform(string name, int i); /** * Sets a uniform float in the shader to the desired value. * * @param name The name of the uniform to set * @param f The float value */ public abstract void setUniform(string name, float f); /** * Sets a uniform float array in the shader to the desired value. * * @param name The name of the uniform to set * @param fs The float array value */ public abstract void setUniform(string name, float[] fs); /** * Sets a uniform {@link com.flowpowered.math.vector.Vector2f} in the shader to the desired value. * * @param name The name of the uniform to set * @param v The vector value */ public abstract void setUniform(string name, float x, float y); /** * Sets a uniform {@link com.flowpowered.math.vector.Vector3f} in the shader to the desired value. * * @param name The name of the uniform to set * @param v The vector value */ public abstract void setUniform(string name, float x, float y, float z); /** * Sets a uniform {@link com.flowpowered.math.vector.Vector4f} in the shader to the desired value. * * @param name The name of the uniform to set * @param v The vector value */ public abstract void setUniform(string name, float x, float y, float z, float w); /** * Sets a uniform {@link com.flowpowered.math.matrix.Matrix4f} in the shader to the desired value. * * @param name The name of the uniform to set * @param m The matrix value */ public abstract void setUniform(string name, ref float[4] m); /** * Sets a uniform {@link com.flowpowered.math.matrix.Matrix4f} in the shader to the desired value. * * @param name The name of the uniform to set * @param m The matrix value */ public abstract void setUniform(string name, ref float[9] m); /** * Sets a uniform {@link com.flowpowered.math.matrix.Matrix4f} in the shader to the desired value. * * @param name The name of the uniform to set * @param m The matrix value */ public abstract void setUniform(string name, ref float[16] m); /** * Returns the shaders that have been attached to this program. * * @return The attached shaders */ public abstract Shader[] getShaders(); /** * Returns an set containing all of the uniform names for this program. * * @return A set of all the uniform names */ public abstract string[] getUniformNames(); /** * Gets the ID for this program as assigned by OpenGL. * * @return The ID */ public uint getID() { return id; } } /** * Represents an OpenGL render buffer. A render buffer can be used as a faster alternative to a texture in a frame buffer when its rendering output doesn't need to be read. The storage format, width * and height dimensions need to be set with {@link #setStorage(org.spout.renderer.api.gl.Texture.InternalFormat, int, int)}, before the render buffer can be used. */ public abstract class RenderBuffer : Creatable, GLVersioned { protected uint id; public override void destroy() { id = 0; super.destroy(); } /** * Sets the render buffer storage. * * @param format The format * @param width The width * @param height The height */ public abstract void setStorage(InternalFormat format, uint width, uint height); /** * Returns the render buffer format. * * @return The format */ public abstract InternalFormat getFormat(); /** * Returns the render buffer width. * * @return The width */ public abstract uint getWidth(); /** * Returns the render buffer height. * * @return The height */ public abstract uint getHeight(); /** * Binds the render buffer to the OpenGL context. */ public abstract void bind(); /** * Unbinds the render buffer from the OpenGL context. */ public abstract void unbind(); /** * Gets the ID for this render buffer as assigned by OpenGL. * * @return The ID */ public uint getID() { return id; } } /** * Represents an OpenGL shader. The shader source and type must be set with {@link #setSource(ShaderSource)}. */ public abstract class Shader : Creatable, GLVersioned { protected uint id; public override void destroy() { id = 0; // Update the state super.destroy(); } /** * Sets the shader source. * * @param source The shader source */ public abstract void setSource(ShaderSource source); /** * Compiles the shader. */ public abstract void compile(); /** * Gets the shader type. * * @return The shader type */ public abstract ShaderType getType(); /** * Returns the attribute layouts parsed from the tokens in the shader source. * * @return A map of the attribute name to the layout index. */ public abstract uint[string] getAttributeLayouts(); /** * Returns the texture layouts parsed from the tokens in the shader source. * * @return A map of the texture name to the layout index. */ public abstract string[uint] getTextureLayouts(); /** * Sets an attribute layout. * * @param attribute The name of the attribute * @param layout The layout for the attribute */ public abstract void setAttributeLayout(string attribute, uint layout); /** * Sets a texture layout. * * @param unit The unit for the sampler * @param sampler The sampler name */ public abstract void setTextureLayout(uint unit, string sampler); /** * Gets the ID for this shader as assigned by OpenGL. * * @return The ID */ public uint getID() { return id; } } public enum : ShaderType { FRAGMENT = new ShaderType(0x8B30), // GL20.GL_FRAGMENT_SHADER VERTEX = new ShaderType(0x8B31), // GL20.GL_VERTEX_SHADER GEOMETRY = new ShaderType(0x8DD9), // GL32.GL_GEOMETRY_SHADER TESS_EVALUATION = new ShaderType(0x8E87), // GL40.GL_TESS_EVALUATION_SHADER TESS_CONTROL = new ShaderType(0x8E88), // GL40.GL_TESS_CONTROL_SHADER COMPUTE = new ShaderType(0x91B9) // GL43.GL_COMPUTE_SHADER } /** * Represents a shader type. */ public final class ShaderType { private static ShaderType[string] NAME_TO_ENUM_MAP; private immutable uint glConstant; static this() { NAME_TO_ENUM_MAP["FRAGMENT"] = FRAGMENT; NAME_TO_ENUM_MAP["VERTEX"] = VERTEX; NAME_TO_ENUM_MAP["GEOMETRY"] = GEOMETRY; NAME_TO_ENUM_MAP["TESS_EVALUATION"] = TESS_EVALUATION; NAME_TO_ENUM_MAP["TESS_CONTROL"] = TESS_CONTROL; NAME_TO_ENUM_MAP["COMPUTE"] = COMPUTE; } private this(uint glConstant) { this.glConstant = glConstant; } /** * Returns the OpenGL constant associated to the shader type. * * @return The OpenGL constant */ public uint getGLConstant() { return glConstant; } public static ShaderType valueOf(string name) { return NAME_TO_ENUM_MAP.get(name, null); } } /** * Represents the source of a shader. This class can be used to load a source from an input stream, and provides pre-compilation functionality such as parsing shader type, attribute layout and texture * layout tokens. These tokens can be used to declare various parameters directly in the shader code instead of in the software code, which simplifies loading. */ public class ShaderSource { private static immutable string TOKEN_SYMBOL = "$"; private static immutable string SHADER_TYPE_TOKEN = "shader_type"; private static auto SHADER_TYPE_TOKEN_PATTERN = ctRegex!("\\" ~ TOKEN_SYMBOL ~ SHADER_TYPE_TOKEN ~ " *: *(\\w+)", "g"); private static immutable string ATTRIBUTE_LAYOUT_TOKEN = "attrib_layout"; private static immutable string TEXTURE_LAYOUT_TOKEN = "texture_layout"; private static auto LAYOUT_TOKEN_PATTERN = ctRegex!("\\" ~ TOKEN_SYMBOL ~ "(" ~ ATTRIBUTE_LAYOUT_TOKEN ~ "|" ~ TEXTURE_LAYOUT_TOKEN ~ ") *: *(\\w+) *= *(\\d+)", "g"); private string source; private ShaderType type; private uint[string] attributeLayouts; private string[uint] textureLayouts; /** * Constructs a new shader source from the input stream. * * @param source The source input stream */ public this(string source, bool directSource) { if (source is null) { throw new Exception("Source cannot be null"); } if (directSource) { this.source = source; } else { this.source = readText(source); } parse(); } private void parse() { // Look for layout tokens // Used for setting the shader type automatically. // Also replaces the GL30 "layout(location = x)" and GL42 "layout(binding = x) features missing from GL20 and/or GL30 string[] lines = splitLines(source); foreach (string line; lines) { foreach (match; matchAll(line, SHADER_TYPE_TOKEN_PATTERN)) { try { type = cast(ShaderType) ShaderType.valueOf(match.captures[1].toUpper()); } catch (Exception ex) { throw new Exception("Unknown shader type token value", ex); } } foreach (match; matchAll(line, LAYOUT_TOKEN_PATTERN)) { string token = match.captures[1]; final switch (token) { case "attrib_layout": attributeLayouts[match.captures[2]] = to!uint(match.captures[3]); break; case "texture_layout": textureLayouts[to!uint(match.captures[3])] = match.captures[2]; break; } } } } /** * Returns true if the shader source is complete and ready to be used in a {@link org.spout.renderer.api.gl.Shader} object, false if otherwise. If this method returns false, than information such * as the type is missing. * * @return Whether or not the shader source is complete */ public bool isComplete() { return type !is null; } /** * Returns the raw character sequence source of this shader source. * * @return The raw source */ public string getSource() { return source; } /** * Returns the type of this shader. If the type was declared in the source using a shader type token, it will have been loaded from it. Else this returns null and it must be set manually using * {@link #setType(org.spout.renderer.api.gl.Shader.ShaderType)}. * * @return The shader type, or null if not set */ public ShaderType getType() { return cast(ShaderType) type; } /** * Sets the shader type. It's not necessary to do this manually if it was declared in the source using a shader type token. * * @param type The shader type */ public void setType(ShaderType type) { this.type = cast(ShaderType) type; } /** * Returns the attribute layouts, either parsed from the source or set manually using {@link #setAttributeLayout(String, int)}. * * @return The attribute layouts */ public uint[string] getAttributeLayouts() { return attributeLayouts.dup; } /** * Returns the texture layouts, either parsed from the source or set manually using {@link #setTextureLayout(int, String)}. * * @return The texture layouts */ public string[uint] getTextureLayouts() { return textureLayouts.dup; } /** * Sets an attribute layout. * * @param attribute The name of the attribute * @param layout The layout for the attribute */ public void setAttributeLayout(string attribute, uint layout) { attributeLayouts[attribute] = layout; } /** * Sets a texture layout. * * @param unit The unit for the sampler * @param sampler The sampler name */ public void setTextureLayout(uint unit, string sampler) { textureLayouts[unit] = sampler; } } /** * Represents a texture for OpenGL. Image data and various parameters can be set after creation. Image data should be set last. */ public abstract class Texture : Creatable, GLVersioned { protected uint id = 0; public override void destroy() { id = 0; super.destroy(); } /** * Binds the texture to the OpenGL context. * * @param unit The unit to bind the texture to, or -1 to just bind the texture */ public abstract void bind(int unit); /** * Unbinds the texture from the OpenGL context. */ public abstract void unbind(); /** * Gets the ID for this texture as assigned by OpenGL. * * @return The ID */ public uint getID() { return id; } /** * Sets the texture's format. * * @param format The format */ public void setFormat(Format format) { setFormat(format, null); } /** * Sets the texture's format. * * @param format The format */ public void setFormat(InternalFormat format) { setFormat(format.getFormat(), format); } /** * Sets the texture's format and internal format. * * @param format The format * @param internalFormat The internal format */ public abstract void setFormat(Format format, InternalFormat internalFormat); /** * Returns the texture's format * * @return the format */ public abstract Format getFormat(); /** * Returns the texture's internal format. * * @return The internal format */ public abstract InternalFormat getInternalFormat(); /** * Sets the value for anisotropic filtering. Must be greater than zero. Note that this is EXT based and might not be supported on all hardware. * * @param value The anisotropic filtering value */ public abstract void setAnisotropicFiltering(float value); /** * Sets the horizontal and vertical texture wraps. * * @param horizontalWrap The horizontal wrap * @param verticalWrap The vertical wrap */ public abstract void setWraps(WrapMode horizontalWrap, WrapMode verticalWrap); /** * Sets the texture's min and mag filters. The mag filter cannot require mipmap generation. * * @param minFilter The min filter * @param magFilter The mag filter */ public abstract void setFilters(FilterMode minFilter, FilterMode magFilter); /** * Sets the compare mode. * * @param compareMode The compare mode */ public abstract void setCompareMode(CompareMode compareMode); /** * Sets the border color. * * @param borderColor The border color */ public abstract void setBorderColor(float red, float green, float blue, float alpha); /** * Sets the texture's image data. * * @param imageData The image data * @param width The width of the image * @param height the height of the image */ public abstract void setImageData(ubyte[] imageData, uint width, uint height); /** * Returns the image data in the internal format. * * @return The image data in the internal format. */ public ubyte[] getImageData() { return getImageData(getInternalFormat()); } /** * Returns the image data in the desired format. * * @param format The format to return the data in * @return The image data in the desired format */ public abstract ubyte[] getImageData(InternalFormat format); /** * Returns the width of the image. * * @return The image width */ public abstract uint getWidth(); /** * Returns the height of the image. * * @return The image height */ public abstract uint getHeight(); } public enum : Format { RED = new Format(0x1903, 1, true, false, false, false, false, false), // GL11.GL_RED RGB = new Format(0x1907, 3, true, true, true, false, false, false), // GL11.GL_RGB RGBA = new Format(0x1908, 4, true, true, true, true, false, false), // GL11.GL_RGBA DEPTH = new Format(0x1902, 1, false, false, false, false, true, false), // GL11.GL_DEPTH_COMPONENT RG = new Format(0x8227, 2, true, true, false, false, false, false), // GL30.GL_RG DEPTH_STENCIL = new Format(0x84F9, 1, false, false, false, false, false, true) // GL30.GL_DEPTH_STENCIL } /** * An enum of texture component formats. */ public final class Format { private immutable uint glConstant; private immutable uint components; private immutable bool red; private immutable bool green; private immutable bool blue; private immutable bool alpha; private immutable bool depth; private immutable bool stencil; private this(uint glConstant, uint components, bool red, bool hasGreen, bool blue, bool alpha, bool depth, bool stencil) { this.glConstant = glConstant; this.components = components; this.red = red; this.green = green; this.blue = blue; this.alpha = alpha; this.depth = depth; this.stencil = stencil; } /** * Gets the OpenGL constant for this format. * * @return The OpenGL Constant */ public uint getGLConstant() { return glConstant; } /** * Returns the number of components in the format. * * @return The number of components */ public uint getComponentCount() { return components; } /** * Returns true if this format has a red component. * * @return True if a red component is present */ public bool hasRed() { return hasRed; } /** * Returns true if this format has a green component. * * @return True if a green component is present */ public bool hasGreen() { return hasGreen; } /** * Returns true if this format has a blue component. * * @return True if a blue component is present */ public bool hasBlue() { return hasBlue; } /** * Returns true if this format has an alpha component. * * @return True if an alpha component is present */ public bool hasAlpha() { return hasAlpha; } /** * Returns true if this format has a depth component. * * @return True if a depth component is present */ public bool hasDepth() { return hasDepth; } /** * Returns true if this format has a stencil component. * * @return True if a stencil component is present */ public bool hasStencil() { return hasStencil; } } public enum : InternalFormat { RGB8 = new InternalFormat(0x8051, RGB, UNSIGNED_BYTE), // GL11.GL_RGB8 RGBA8 = new InternalFormat(0x8058, RGBA, UNSIGNED_BYTE), // GL11.GL_RGBA8 RGB16 = new InternalFormat(32852, RGB, UNSIGNED_SHORT), // GL11.GL_RGB16 RGBA16 = new InternalFormat(0x805B, RGBA, UNSIGNED_SHORT), // GL11.GL_RGBA16 DEPTH_COMPONENT16 = new InternalFormat(0x81A5, DEPTH, UNSIGNED_SHORT), // GL14.GL_DEPTH_COMPONENT16 DEPTH_COMPONENT24 = new InternalFormat(0x81A6, DEPTH, UNSIGNED_INT), // GL14.GL_DEPTH_COMPONENT24 DEPTH_COMPONENT32 = new InternalFormat(0x81A7, DEPTH, UNSIGNED_INT), // GL14.GL_DEPTH_COMPONENT32 R8 = new InternalFormat(0x8229, RED, UNSIGNED_BYTE), // GL30.GL_R8 R16 = new InternalFormat(0x822A, RED, UNSIGNED_SHORT), // GL30.GL_R16 RG8 = new InternalFormat(0x822B, RG, UNSIGNED_BYTE), // GL30.GL_RG8 RG16 = new InternalFormat(0x822C, RG, UNSIGNED_SHORT), // GL30.GL_RG16 R16F = new InternalFormat(0x822D, RED, HALF_FLOAT), // GL30.GL_R16F R32F = new InternalFormat(0x822E, RED, FLOAT), // GL30.GL_R32F RG16F = new InternalFormat(0x822F, RG, HALF_FLOAT), // GL30.GL_RG16F RG32F = new InternalFormat(0x8230, RGB, FLOAT), // GL30.GL_RG32F RGBA32F = new InternalFormat(0x8814, RGBA, FLOAT), // GL30.GL_RGBA32F RGB32F = new InternalFormat(0x8815, RGB, FLOAT), // GL30.GL_RGB32F RGBA16F = new InternalFormat(0x881A, RGBA, HALF_FLOAT), // GL30.GL_RGBA16F RGB16F = new InternalFormat(0x881B, RGB, HALF_FLOAT), // GL30.GL_RGB16F RGB5_A1 = new InternalFormat(0x8057, RGBA, UNSIGNED_SHORT_1_5_5_5_REV) // GL11.GL_RGB5_A1 } /** * An enum of sized texture component formats. */ public final class InternalFormat { private immutable uint glConstant; private Format format; private immutable uint bytes; private DataType componentType; private this(uint glConstant, Format format, DataType componentType) { this.glConstant = glConstant; this.format = format; this.componentType = componentType; bytes = format.getComponentCount() * componentType.getByteSize(); } /** * Gets the OpenGL constant for this internal format. * * @return The OpenGL Constant */ public uint getGLConstant() { return glConstant; } /** * Returns the format associated to this internal format * * @return The associated format */ public Format getFormat() { return format; } /** * Returns the number of components in the format. * * @return The number of components */ public uint getComponentCount() { return format.getComponentCount(); } /** * Returns the data type of the components. * * @return The component type */ public DataType getComponentType() { return componentType; } /** * Returns the number of bytes used by a single pixel in the format. * * @return The number of bytes for a pixel */ public uint getBytes() { return bytes; } /** * Returns the number of bytes used by a single pixel component in the format. * * @return The number of bytes for a pixel component */ public uint getBytesPerComponent() { return componentType.getByteSize(); } /** * Returns true if this format has a red component. * * @return True if a red component is present */ public bool hasRed() { return format.hasRed(); } /** * Returns true if this format has a green component. * * @return True if a green component is present */ public bool hasGreen() { return format.hasGreen(); } /** * Returns true if this format has a blue component. * * @return True if a blue component is present */ public bool hasBlue() { return format.hasBlue(); } /** * Returns true if this format has an alpha component. * * @return True if an alpha component is present */ public bool hasAlpha() { return format.hasAlpha(); } /** * Returns true if this format has a depth component. * * @return True if a depth component is present */ public bool hasDepth() { return format.hasDepth(); } } public enum : WrapMode { REPEAT = new WrapMode(0x2901), // GL11.GL_REPEAT CLAMP_TO_EDGE = new WrapMode(0x812F), // GL12.GL_CLAMP_TO_EDGE CLAMP_TO_BORDER = new WrapMode(0x812D), // GL13.GL_CLAMP_TO_BORDER MIRRORED_REPEAT = new WrapMode(0x8370) // GL14.GL_MIRRORED_REPEAT } /** * An enum for the texture wrapping modes. */ public final class WrapMode { private immutable uint glConstant; private this(uint glConstant) { this.glConstant = glConstant; } /** * Gets the OpenGL constant for this texture wrap. * * @return The OpenGL Constant */ public uint getGLConstant() { return glConstant; } } public enum : FilterMode { LINEAR = new FilterMode(0x2601, false), // GL11.GL_LINEAR NEAREST = new FilterMode(0x2600, false), // GL11.GL_NEAREST NEAREST_MIPMAP_NEAREST = new FilterMode(0x2700, true), // GL11.GL_NEAREST_MIPMAP_NEAREST LINEAR_MIPMAP_NEAREST = new FilterMode(0x2701, true), //GL11.GL_LINEAR_MIPMAP_NEAREST NEAREST_MIPMAP_LINEAR = new FilterMode(0x2702, true), // GL11.GL_NEAREST_MIPMAP_LINEAR LINEAR_MIPMAP_LINEAR = new FilterMode(0x2703, true) // GL11.GL_LINEAR_MIPMAP_LINEAR } /** * An enum for the texture filtering modes. */ public final class FilterMode { private immutable uint glConstant; private immutable bool mimpaps; private this(uint glConstant, bool mimpaps) { this.glConstant = glConstant; this.mimpaps = mimpaps; } /** * Gets the OpenGL constant for this texture filter. * * @return The OpenGL Constant */ public uint getGLConstant() { return glConstant; } /** * Returns true if the filtering mode required generation of mipmaps. * * @return Whether or not mipmaps are required */ public bool needsMipMaps() { return mimpaps; } } public enum : CompareMode { LEQUAL = new CompareMode(0x203), // GL11.GL_LEQUAL GEQUAL = new CompareMode(0x206), // GL11.GL_GEQUAL LESS = new CompareMode(0x201), // GL11.GL_LESS GREATER = new CompareMode(0x204), // GL11.GL_GREATER EQUAL = new CompareMode(0x202), // GL11.GL_EQUAL NOTEQUAL = new CompareMode(0x205), // GL11.GL_NOTEQUAL ALWAYS = new CompareMode(0x206), // GL11.GL_ALWAYS NEVER = new CompareMode(0x200) // GL11.GL_NEVER } public final class CompareMode { private immutable uint glConstant; private this(uint glConstant) { this.glConstant = glConstant; } /** * Gets the OpenGL constant for this texture filter. * * @return The OpenGL Constant */ public uint getGLConstant() { return glConstant; } } /** * Represent an OpenGL vertex array. The vertex data must be set with {@link #setData(org.spout.renderer.api.data.VertexData)} before it can be created. */ public abstract class VertexArray : Creatable, GLVersioned { protected uint id = 0; public override void destroy() { id = 0; super.destroy(); } /** * Sets the vertex data source to use. The indices offset is kept but maybe reduced if it doesn't fit inside the new data. The count is set to the size from the offset to the end of the data. * * @param vertexData The vertex data source */ public abstract void setData(VertexData vertexData); /** * Sets the vertex array's drawing mode. * * @param mode The drawing mode to use */ public abstract void setDrawingMode(DrawingMode mode); /** * Sets the vertex array's polygon mode. This describes how to rasterize each primitive. The default is {@link org.spout.renderer.api.gl.VertexArray.PolygonMode#FILL}. This can be used to draw * only the wireframes of the polygons. * * @param mode The polygon mode */ public abstract void setPolygonMode(PolygonMode mode); /** * Sets the starting offset in the indices buffer. Defaults to 0. * * @param offset The offset in the indices buffer */ public abstract void setIndicesOffset(uint offset); /** * Sets the number of indices to render during each draw call, starting at the offset set by {@link #setIndicesOffset(int)}. Setting this to a value smaller than zero results in rendering of the * whole list. If the value is larger than the list (starting at the offset), it will be maxed to that value. * * @param count The number of indices */ public abstract void setIndicesCount(uint count); /** * Draws the primitives defined by the vertex data. */ public abstract void draw(); /** * Gets the ID for this vertex array as assigned by OpenGL. * * @return The ID */ public uint getID() { return id; } } public enum : DrawingMode { POINTS = new DrawingMode(0x0), // GL11.GL_POINTS LINES = new DrawingMode(0x1), // GL11.GL_LINES LINE_LOOP = new DrawingMode(0x2), // GL11.GL_LINE_LOOP LINE_STRIP = new DrawingMode(0x3), // GL11.GL_LINE_STRIP TRIANGLES = new DrawingMode(0x4), // GL11.GL_TRIANGLES TRIANGLES_STRIP = new DrawingMode(0x5), // GL11.GL_TRIANGLE_STRIP TRIANGLE_FAN = new DrawingMode(0x7), // GL11.GL_TRIANGLE_FAN LINES_ADJACENCY = new DrawingMode(0xA), // GL32.GL_LINES_ADJACENCY LINE_STRIP_ADJACENCY = new DrawingMode(0xB), // GL32.GL_LINE_STRIP_ADJACENCY TRIANGLES_ADJACENCY = new DrawingMode(0xC), // GL32.GL_TRIANGLES_ADJACENCY TRIANGLE_STRIP_ADJACENCY = new DrawingMode(0xD), // GL32.GL_TRIANGLE_STRIP_ADJACENCY PATCHES = new DrawingMode(0xE) // GL40.GL_PATCHES } /** * Represents the different drawing modes for the vertex array */ public final class DrawingMode { private immutable uint glConstant; private this(uint glConstant) { this.glConstant = glConstant; } /** * Returns the OpenGL constant associated to the drawing mode * * @return The OpenGL constant */ public uint getGLConstant() { return glConstant; } } public enum : PolygonMode { POINT = new PolygonMode(0x1B00), // GL11.GL_POINT LINE = new PolygonMode(0x1B01), // GL11.GL_LINE FILL = new PolygonMode(0x1B02) // GL11.GL_FILL } /** * Represents the different polygon modes for the vertex array */ public final class PolygonMode { private immutable uint glConstant; private this(uint glConstant) { this.glConstant = glConstant; } /** * Returns the OpenGL constant associated to the polygon mode * * @return The OpenGL constant */ public uint getGLConstant() { return glConstant; } } /** * Represents a vertex attribute. It has a name, a data type, a size (the number of components) and data. */ public class VertexAttribute { protected string name; protected DataType type; protected uint size; protected UploadMode uploadMode; private ubyte[] buffer; /** * Creates a new vertex attribute from the name, the data type and the size. The upload mode will be {@link UploadMode#TO_FLOAT}. * * @param name The name * @param type The type * @param size The size */ public this(string name, DataType type, uint size) { this(name, type, size, TO_FLOAT); } /** * Creates a new vertex attribute from the name, the data type, the size and the upload mode. * * @param name The name * @param type The type * @param size The size * @param uploadMode the upload mode */ public this(string name, DataType type, uint size, UploadMode uploadMode) { this.name = name; this.type = type; this.size = size; this.uploadMode = uploadMode; } /** * Returns the name of the attribute. * * @return The name */ public string getName() { return name; } /** * Returns the data type of the attribute. * * @return The data type */ public DataType getType() { return type; } /** * Return the size of the attribute. * * @return The size */ public uint getSize() { return size; } /** * Returns the upload mode for this attribute. * * @return The upload mode */ public UploadMode getUploadMode() { return uploadMode; } /** * Returns a new byte buffer filled and ready to read, containing the attribute data. This method will {@link java.nio.ByteBuffer#flip()} the buffer before returning it. * * @return The buffer */ public ubyte[] getData() { if (buffer is null) { throw new Exception("ByteBuffer must have data before it is ready for use."); } return buffer.dup; } /** * Replaces the current buffer data with a copy of the given {@link java.nio.ByteBuffer} This method arbitrarily creates data for the ByteBuffer regardless of the data type of the vertex * attribute. * * @param buffer to set */ public void setData(ubyte[] buffer) { this.buffer = buffer.dup; } /** * Clears all of the buffer data. */ public void clearData() { buffer = null; } public VertexAttribute clone() { VertexAttribute clone = new VertexAttribute(name, type, size, uploadMode); clone.setData(this.buffer); return clone; } } public enum : DataType { BYTE = new DataType(0x1400, 1, true, true), // GL11.GL_BYTE UNSIGNED_BYTE = new DataType(0x1401, 1, true, false), // GL11.GL_UNSIGNED_BYTE SHORT = new DataType(0x1402, 2, true, true), // GL11.GL_SHORT UNSIGNED_SHORT = new DataType(0x1403, 2, true, false), // GL11.GL_UNSIGNED_SHORT UNSIGNED_SHORT_1_5_5_5_REV = new DataType(0x8366, 2, true, false), // GL12.GL_UNSIGNED_SHORT_1_5_5_5_REV INT = new DataType(0x1404, 4, true, true), // GL11.GL_INT UNSIGNED_INT = new DataType(0x1405, 4, true, false), // GL11.GL_UNSIGNED_INT HALF_FLOAT = new DataType(0x140B, 2, false, true), // GL30.GL_HALF_FLOAT FLOAT = new DataType(0x1406, 4, false, true), // GL11.GL_FLOAT DOUBLE = new DataType(0x140A, 8, false, true) // GL11.GL_DOUBLE } /** * Represents an attribute data type. */ public final class DataType { private immutable uint glConstant; private immutable uint byteSize; private immutable bool integer; private immutable bool signed; private immutable uint multiplyShift; private this(uint glConstant, uint byteSize, bool integer, bool signed) { this.glConstant = glConstant; this.byteSize = byteSize; this.integer = integer; this.signed = signed; uint result = 0; while (byteSize >>= 1) { result++; } multiplyShift = result; } /** * Returns the OpenGL constant for the data type. * * @return The OpenGL constant */ public uint getGLConstant() { return glConstant; } /** * Returns the size in bytes of the data type. * * @return The size in bytes */ public uint getByteSize() { return byteSize; } /** * Returns true if the data type is an integer number ({@link DataType#BYTE}, {@link DataType#SHORT} or {@link DataType#INT}). * * @return Whether or not the data type is an integer */ public bool isInteger() { return integer; } /** * Returns true if this data type supports signed numbers, false if not. * * @return Whether or not this data type supports signed numbers */ public bool isSigned() { return signed; } /** * Returns the shift amount equivalent to multiplying by the number of bytes in this data type. * * @return The shift amount corresponding to the multiplication by the byte size */ public uint getMultiplyShift() { return multiplyShift; } } public enum : UploadMode { TO_FLOAT = new UploadMode(), TO_FLOAT_NORMALIZE = new UploadMode(), /** * Only supported in OpenGL 3.0 and after. */ KEEP_INT = new UploadMode() } /** * The uploading mode. When uploading attribute data to OpenGL, integer data can be either converted to float or not (the later is only possible with version 3.0+). When converting to float, the * data can be normalized or not. By default, {@link UploadMode#TO_FLOAT} is used as it provides the best compatibility. */ public final class UploadMode { /** * Returns true if this upload mode converts integer data to normalized floats. * * @return Whether or not this upload mode converts integer data to normalized floats */ public bool normalize() { return this == TO_FLOAT_NORMALIZE; } /** * Returns true if this upload mode converts the data to floats. * * @return Whether or not this upload mode converts the data to floats */ public bool toFloat() { return this == TO_FLOAT || this == TO_FLOAT_NORMALIZE; } } /** * Represents a vertex data. A vertex is a collection of attributes, most often attached to a point in space. This class is a data structure which groups together collections of primitives to * represent a list of vertices. */ public class VertexData { // Rendering indices private uint[] indices; // Attributes by index private VertexAttribute[uint] attributes; // Index from name lookup private uint[string] nameToIndex; /** * Returns the list of indices used by OpenGL to pick the vertices to draw the object with in the correct order. * * @return The indices list */ public uint[] getIndices() { return indices.dup; } /** * Sets the list of indices used by OpenGL to pick the vertices to draw the object with in the correct order. * * @param indices The indices list */ public void setIndices(uint[] indices) { this.indices = indices.dup; } /** * Returns the index count. * * @return The number of indices */ public uint getIndicesCount() { return cast(uint) indices.length; } /** * Returns a byte buffer containing all the current indices. * * @return A buffer of the indices */ public ubyte[] getIndicesBuffer() { return cast(ubyte[]) indices.dup; } /** * Adds an attribute. * * @param index The attribute index * @param attribute The attribute to add */ public void addAttribute(uint index, VertexAttribute attribute) { attributes[index] = attribute; nameToIndex[attribute.getName()] = index; } /** * Returns the {@link VertexAttribute} associated to the name, or null if none can be found. * * @param name The name to lookup * @return The attribute, or null if none is associated to the index. */ public VertexAttribute getAttribute(string name) { return getAttribute(getAttributeIndex(name)); } /** * Returns the {@link VertexAttribute} at the desired index, or null if none is associated to the index. * * @param index The index to lookup * @return The attribute, or null if none is associated to the index. */ public VertexAttribute getAttribute(uint index) { return attributes.get(index, null); } /** * Returns the index associated to the attribute name, or -1 if no attribute has the name. * * @param name The name to lookup * @return The index, or -1 if no attribute has the name */ public int getAttributeIndex(string name) { return nameToIndex.get(name, -1); } /** * Returns true if an attribute has the provided name. * * @param name The name to lookup * @return Whether or not an attribute possesses the name */ public bool hasAttribute(string name) { return cast(bool) (name in nameToIndex); } /** * Returns true in an attribute can be found at the provided index. * * @param index The index to lookup * @return Whether or not an attribute is at the index */ public bool hasAttribute(uint index) { return cast(bool) (index in attributes); } /** * Removes the attribute associated to the provided name. If no attribute is found, nothing will be removed. * * @param name The name of the attribute to remove */ public void removeAttribute(string name) { removeAttribute(getAttributeIndex(name)); } /** * Removes the attribute at the provided index. If no attribute is found, nothing will be removed. * * @param index The index of the attribute to remove */ public void removeAttribute(uint index) { attributes.remove(index); nameToIndex.remove(getAttributeName(index)); } /** * Returns the size of the attribute associated to the provided name. * * @param name The name to lookup * @return The size of the attribute */ public int getAttributeSize(string name) { return getAttributeSize(getAttributeIndex(name)); } /** * Returns the size of the attribute at the provided index, or -1 if none can be found. * * @param index The index to lookup * @return The size of the attribute, or -1 if none can be found */ public int getAttributeSize(uint index) { VertexAttribute attribute = getAttribute(index); if (attribute is null) { return -1; } return attribute.getSize(); } /** * Returns the type of the attribute associated to the provided name, or null if none can be found. * * @param name The name to lookup * @return The type of the attribute, or null if none can be found */ public DataType getAttributeType(string name) { return getAttributeType(getAttributeIndex(name)); } /** * Returns the type of the attribute at the provided index, or null if none can be found. * * @param index The index to lookup * @return The type of the attribute, or null if none can be found */ public DataType getAttributeType(uint index) { VertexAttribute attribute = getAttribute(index); if (attribute is null) { return null; } return attribute.getType(); } /** * Returns the name of the attribute at the provided index, or null if none can be found. * * @param index The index to lookup * @return The name of the attribute, or null if none can be found */ public string getAttributeName(uint index) { VertexAttribute attribute = getAttribute(index); if (attribute is null) { return null; } return attribute.getName(); } /** * Returns the attribute count. * * @return The number of attributes */ public uint getAttributeCount() { return cast(uint) attributes.length; } /** * Returns an unmodifiable set of all the attribute names. * * @return A set of all the attribute names */ public string[] getAttributeNames() { return nameToIndex.keys; } /** * Returns the buffer for the attribute associated to the provided name, or null if none can be found. The buffer is returned filled and ready for reading. * * @param name The name to lookup * @return The attribute buffer, filled and flipped */ public ubyte[] getAttributeBuffer(string name) { return getAttributeBuffer(getAttributeIndex(name)); } /** * Returns the buffer for the attribute at the provided index, or null if none can be found. The buffer is returned filled and ready for reading. * * @param index The index to lookup * @return The attribute buffer, filled and flipped */ public ubyte[] getAttributeBuffer(uint index) { VertexAttribute attribute = getAttribute(index); if (attribute is null) { return null; } return attribute.getData(); } /** * Clears all the vertex data. */ public void clear() { indices = null; attributes = null; nameToIndex = null; } /** * Replaces the contents of this vertex data by the provided one. This is a deep copy. The vertex attribute are each individually cloned. * * @param data The data to copy. */ public void copy(VertexData data) { indices = data.indices.dup; attributes = data.attributes.dup; nameToIndex = data.nameToIndex.dup; } } public immutable bool DEBUG_ENABLED = true; /** * Throws an exception if OpenGL reports an error. * * @throws GLException If OpenGL reports an error */ public void checkForGLError() { if (DEBUG_ENABLED) { final switch (glGetError()) { case 0x0: return; case 0x500: throw new GLException("GL ERROR: INVALID ENUM"); case 0x501: throw new GLException("GL ERROR: INVALID VALUE"); case 0x502: throw new GLException("GL ERROR: INVALID OPERATION"); case 0x503: throw new GLException("GL ERROR: STACK OVERFLOW"); case 0x504: throw new GLException("GL ERROR: STACK UNDERFLOW"); case 0x505: throw new GLException("GL ERROR: OUT OF MEMORY"); case 0x506: throw new GLException("GL ERROR: INVALID FRAMEBUFFER OPERATION"); } } } /** * An exception throw when a GL exception occurs. */ public class GLException : Exception { /** * Constructs a new GL exception from the message. * * @param message The error message */ public this(string message) { super(message); } }
D
/Users/mli/Desktop/Develope/Swift/LBE_Demo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/RadarChartView.o : /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Filters/DataApproximator+N.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/Legend.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/MarkerImage.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/Range.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/AxisBase.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/ComponentBase.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Utils/Fill.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Utils/Platform.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/Description.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/IMarker.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Utils/Transformer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Renderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Animation/Animator.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Filters/DataApproximator.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/XAxis.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/YAxis.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Utils/ChartUtils.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/Highlight.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/MarkerView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/PieChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/LineChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/BarChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/RadarChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/LegendEntry.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Utils/Platform+Accessibility.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/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Target\ Support\ Files/Charts/Charts-umbrella.h /Users/mli/Desktop/Develope/VLogVideo/Pods/Headers/Public/RxAtomic/RxAtomic.modulemap /Users/mli/Desktop/Develope/Swift/LBE_Demo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /Users/mli/Desktop/Develope/VLogVideo/Pods/Headers/Public/RxSwift/RxSwift.modulemap /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/mli/Desktop/Develope/Swift/LBE_Demo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/RadarChartView~partial.swiftmodule : /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Filters/DataApproximator+N.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/Legend.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/MarkerImage.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/Range.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/AxisBase.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/ComponentBase.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Utils/Fill.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Utils/Platform.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/Description.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/IMarker.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Utils/Transformer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Renderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Animation/Animator.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Filters/DataApproximator.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/XAxis.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/YAxis.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Utils/ChartUtils.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/Highlight.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/MarkerView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/PieChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/LineChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/BarChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/RadarChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/LegendEntry.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Utils/Platform+Accessibility.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/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Target\ Support\ Files/Charts/Charts-umbrella.h /Users/mli/Desktop/Develope/VLogVideo/Pods/Headers/Public/RxAtomic/RxAtomic.modulemap /Users/mli/Desktop/Develope/Swift/LBE_Demo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /Users/mli/Desktop/Develope/VLogVideo/Pods/Headers/Public/RxSwift/RxSwift.modulemap /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/mli/Desktop/Develope/Swift/LBE_Demo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/RadarChartView~partial.swiftdoc : /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Filters/DataApproximator+N.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/Legend.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/MarkerImage.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/Range.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/AxisBase.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/ComponentBase.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Utils/Fill.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Utils/Platform.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/Description.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/IMarker.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Utils/Transformer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Renderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Animation/Animator.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Filters/DataApproximator.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/XAxis.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/YAxis.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Utils/ChartUtils.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Highlight/Highlight.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/MarkerView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/PieChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/LineChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/BarChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/RadarChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Components/LegendEntry.swift /Users/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Charts/Source/Charts/Utils/Platform+Accessibility.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/mli/Desktop/Develope/Swift/LBE_Demo/Pods/Target\ Support\ Files/Charts/Charts-umbrella.h /Users/mli/Desktop/Develope/VLogVideo/Pods/Headers/Public/RxAtomic/RxAtomic.modulemap /Users/mli/Desktop/Develope/Swift/LBE_Demo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /Users/mli/Desktop/Develope/VLogVideo/Pods/Headers/Public/RxSwift/RxSwift.modulemap /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 extensions.base; import core.attr; public import controls.menu; public import controls.texteditor; public import core.bufferview; public import core.command; public import core.commandparameter; public import controls.button; public import controls.textfield; public import guiapplication; public import gui.widget; public import gui.window; public import gui.event; public import gui.label; public import gui.layout.constraintlayout; public import gui.layout.gridlayout; public import gui.widgetfeature.dragger; public import gui.widgetfeature.ninegridrenderer; public import gui.widgetfeature.textrenderer; public import gui.styledtext; public import gui.style; public import math.rect; public import math.region; public import math.smallvector; public import std.variant; private static IBasicExtension[] g_Extensions; private static BasicCommand[] g_Commands; private static TypeInfo_Class[] g_Widgets; private static IBasicWidget[] g_BasicWidgets; import std.traits; import std.typetuple; /** Attribute to specify a short for for a Command or command function A class derived from class BasicCommand or a function with the @RegisterCommand attribute use the @Shortcut attribute to set the default shortcut for the command. Example: @Shortcut("<ctrl> + h") // Shortcut that will prompt for missing command argument @Shortcut("<ctrl> + m", "Hello world") // Shortcut that with the command argument set in advance class SayHelloCommand : BasicCommand { this() { super(createParams("")); } void run(string txt) { std.stdio.writeln(txt); } } Example: @RegisterCommand!textUppercase @Shortcut("<ctrl> + u") void textUppercase(GUIApplication app, string dummy) { app.currentBuffer.map!(std.uni.toUpper)(RegionQuery.selectionOrWord); } */ struct Shortcut { string keySequence; string argument; } struct InFiber { } /** Attribute to Register a free function as a Command This will create a new FunctionCommand!Func that wraps the function. The Command.execute will inspect the function parameter types and extract values of those types at runtime from the Command.execute arguments. Then it will call the free function with the arguments. In case the free function needs context information such as active BufferView instance or Application instance it can get that by setting the first parameter to the type of context it needs. Supported contexts are: * BufferView = the active buffer view currently having keyboard focus or null * Application = the application instance * Widget = the widget that currently has focus * Context = A struct with all of the above. */ struct RegisterCommand(alias Func) { alias Function = Func; static this() { new FunctionCommand!Func; } } /// Command to wrap a function. Use RegisterCommand!Func and not this directly. class FunctionCommand(alias Func) : BasicCommand { static this() { g_Commands ~= new FunctionCommand!Func; } // TODO: parse Func params and set here this() { alias p1 = Filter!(isNotType!GUIApplication, ParameterTypeTuple!Func); alias p2 = Filter!(isNotType!TextEditor, p1); alias p3 = Filter!(isNotType!BufferView, p2); alias p4 = staticMap!(getDefaultValue, p3); enum names = [ParameterIdentifierTuple!Func]; setCommandParameterDefinitions(createParams(names, p4)); } static if (hasAttribute!(Func,MenuItem)) override @property MenuItem menuItem() const pure nothrow @safe { return getAttributes!(Func,MenuItem)[0]; } static if (hasAttribute!(Func, Shortcut)) override @property Shortcut[] shortcuts() const pure nothrow @safe { return getAttributes!(Func,Shortcut); } static if (hasAttribute!(Func, InFiber)) override bool mustRunInFiber() const pure nothrow @safe { return true; } /* @property BufferView currentBuffer() { return app.currentBuffer; } @property TextEditor currentTextEditor() { return app.getCurrentTextEditor(); } */ override void execute(CommandParameter[] v) { enum count = Filter!(isType!BufferView, ParameterTypeTuple!Func).length + Filter!(isType!TextEditor, ParameterTypeTuple!Func).length + Filter!(isType!GUIApplication, ParameterTypeTuple!Func).length; alias t1 = Replace!(BufferView, currentBuffer, ParameterTypeTuple!Func); alias t2 = Replace!(TextEditor, currentTextEditor, t1); alias t3 = Replace!(GUIApplication, app, t2); alias preparedArgs = t3[0..count]; enum missingArgCount = ParameterTypeTuple!Func.length - count; // pragma(msg, "CommandFunction args: ", fullyQualifiedName!Func, ParameterTypeTuple!Func, missingArgCount); // Save current active buffer since current buffer may be changed by the command auto bv = currentBuffer; bv.beginUndoGroup(); scope (exit) bv.endUndoGroup(); static if (missingArgCount == 0) { Func(preparedArgs); } else static if (missingArgCount == 1) { assert(v.length >= 1); alias a1 = ParameterTypeTuple!Func[$-1]; Func(preparedArgs, v[0].get!a1); } else static if (missingArgCount == 2) { assert(v.length >= 2); alias a1 = ParameterTypeTuple!Func[$-1]; alias a2 = ParameterTypeTuple!Func[$-2]; Func(preparedArgs, v[0].get!a1, v[1].get!a2); } else static if (missingArgCount == 3) { assert(v.length >= 3); alias a1 = ParameterTypeTuple!Func[$-1]; alias a2 = ParameterTypeTuple!Func[$-2]; alias a3 = ParameterTypeTuple!Func[$-3]; Func(preparedArgs, v[0].get!a1, v[1].get!a2, v[2].get!a3); } else { pragma(msg, "Add support for more argments in CommandFunction. Only 3 supported now."); } } } void init(GUIApplication app) { import std.range; foreach (e; g_Extensions) { e.app = app; e.init(); } foreach (c; g_Commands) { c.app = app; c.init(); app.commandManager.add(c); if (!c.menuItem.path.empty) app.menu.addTreeItem(c.menuItem.path, c.name); import std.stdio; //writeln(c.name); foreach (sc; c.shortcuts) { if (sc.argument is null) app.editorBehavior.keyBindings.setKeyBinding(sc.keySequence, c.name); else app.editorBehavior.keyBindings.setKeyBinding(sc.keySequence, c.name, sc.argument); } } foreach (wi; g_Widgets) { auto w = cast(IBasicWidget)(wi.create()); g_BasicWidgets ~= w; w.app = app; // app.guiRoot.activeWindow.register(w); w.parent = app.guiRoot.activeWindow; w.layout = new GridLayout(GridLayout.Direction.column, 1); w.init(); } } void registerCommandKeyBindings(GUIApplication app) { foreach (c; g_Commands) { foreach (sc; c.shortcuts) { if (sc.argument is null) app.editorBehavior.keyBindings.setKeyBinding(sc.keySequence, c.name); else app.editorBehavior.keyBindings.setKeyBinding(sc.keySequence, c.name, sc.argument); } } } void fini(GUIApplication app) { foreach (e; g_Extensions) { e.fini(); } foreach (c; g_Commands) { c.fini(); } foreach (w; g_BasicWidgets) { w.fini(); } } T getExtension(T)(string name) { foreach (e; g_Extensions) { if (e.name == name) { T ce = cast(T) e; return ce; } } return null; } /// The preferred location of a widget struct PreferredLocation { string widgetName; /// Name of widget that the subject should be relative to or null if window RelativeLocation location; /// The location relative to the names widget } /** */ class IBasicWidget : Widget { GUIApplication app; this() nothrow {} abstract void init(); abstract void fini(); abstract void onStart(); abstract void onStop(); abstract @property PreferredLocation preferredLocation(); } /** Widget to derive from when extending editor with a new widget type */ class BasicWidget : IBasicWidget { private IBinder[] _fieldBindings; IBasicWidget getBasicWidget(string name) { auto w = app.guiRoot.activeWindow.getWidget(name); return cast(IBasicWidget)(w); } override void init() { // no-op } override void fini() { // no-op } override void onStart() { // no-op } override void onStop() { // no-op } override @property PreferredLocation preferredLocation() { return PreferredLocation(null, RelativeLocation.bottomOf); } WT add(WT,Args...)(Args args) { auto w = new WT(args); w.parent = this; return w; } WT get(WT = Widget)(int idx) { if (idx >= children.length) return null; return cast(WT)children[idx]; } WT get(WT = Widget)(string name) { return cast(WT)app.getWidget(name); } void addFields(W, Model)(W parent, Model model) { import std.string; import extensions.binding : FieldContainer, AutoControls; auto container = new FieldContainer(parent); foreach (ctrlFactory; AutoControls!Model) { string fullName = ctrlFactory.field; string delim = ""; string labelStr = ""; while (fullName.length) { labelStr ~= delim; string n = fullName.munch("^[a-z0-9_]"); if (n.length > 1) { labelStr ~= n; // This is an Achronym } else if (n.length == 1) { labelStr ~= n; labelStr ~= fullName.munch("[a-z0-9_]"); } else // n.length == 0 { labelStr ~= fullName.munch("[a-z0-9_]").capitalize(); } delim = " "; } new Label(labelStr).parent = container; auto ctrl = ctrlFactory.fp(app, model); ctrl.parent = container; } } void addFields(W)(W parentAndModel) { addFields(parentAndModel, parentAndModel); } auto bind(string fieldName, Cls, Ctrl)(Cls cls, Ctrl ctrl) { auto b = new Binder!(fieldName, Cls, Ctrl)(cls, ctrl); assumeSafeAppend(_fieldBindings); _fieldBindings ~= b; // TODO: make unbinding as well } void updateField(string fieldName) { foreach (f; _fieldBindings) f.updateFromModel(); } Data loadSessionData(Data)() { auto r = app.get("extensions/widgets/" ~ this.classinfo.name); if (r is null) return null; auto data = r.get!Data(); if (data is null) { data = new Data(); r.set(data); } return data; } // If data is null then the data returned by loadSessionData will be saved void saveSessionData(Data)(Data data = null) { auto r = app.get("extensions/widgets/" ~ this.classinfo.name); if (r is null) return; if (data !is null) r.set(data); r.save(); } } class BasicWidgetWrap(T) : T { import core.attr; static this() { //auto w = new T; //T.widgetID = w.id; g_Widgets ~= BasicWidgetWrap!T.classinfo; } static if (!hasDerivedMember!(T, "init")) override void init() { addFields(cast(T)this); } } class BasicCommand : Command { GUIApplication app; @property MenuItem menuItem() const pure nothrow @safe { return MenuItem(); } @property Shortcut[] shortcuts() const pure nothrow @safe { return null; } @property BufferView currentBuffer() { return app.currentBuffer; } @property BufferView buffer() { auto b = app.currentBuffer; if (b.name == "*CommandInput*") return app.previousBuffer; return b; } @property TextEditor currentTextEditor() { return app.getCurrentTextEditor(); } protected final IBasicWidget getBasicWidget(string name) { auto w = app.guiRoot.activeWindow.getWidget(name); return cast(IBasicWidget)(w); } protected final T getWidget(T)(string name) { return cast(T)getBasicWidget(name); } override void execute(CommandParameter[] v) { assert(0); } void init() { // no-op } void fini() { // no-op } void onStart() { // no-op } void onStop() { // no-op } } /* class BasicCommand(T) : BasicCommand { static if (hasAttribute!(T,MenuItem)) final override @property MenuItem menuItem() const pure nothrow @safe { return getAttributes!(T,MenuItem)[0]; } static if (hasAttribute!(T, Shortcut)) final override @property Shortcut[] shortcuts() const pure nothrow @safe { return getAttributes!(T,Shortcut); } static this() { g_Commands ~= new T; } this(CommandParameterDefinitions paramsDefs) { super(paramsDefs); } } */ /* template Iota(size_t i, size_t n) { static if (n == 0) { alias TypeTuple!() Iota; } else { alias TypeTuple!(i, Iota!(i + 1, n - 1)) Iota; } } template convertToType(alias VarArray, alias Func) { alias convertToType(int i) = VarArray[i].get!(ParameterTypeTuple!(Func)[i]); } */ enum getDefaultValue(T) = T.init; class BasicCommandWrap(T) : T { final override @property { static if (hasAttribute!(T,MenuItem)) MenuItem menuItem() const pure nothrow @safe { return getAttributes!(T,MenuItem)[0]; } static if (hasAttribute!(T, Shortcut)) Shortcut[] shortcuts() const pure nothrow @safe { return getAttributes!(T,Shortcut); } string name() const { import std.algorithm; import std.range; import std.string; import std.uni; // class Name is assumed PascalCase ie. FooBarCommand and the Command postfix is stripped auto toks = T.classinfo.name.splitter('.').retro; string className = toks.front.chomp("Command"); return classNameToCommandName(className); } static if (hasAttribute!(T, Hints)) int hints() const { int result = Hints.off; foreach (h; getAttributes!(T, Hints)) result = result & h; return result; } } static this() { g_Commands ~= new BasicCommandWrap!T; } this() { setCommandParameterDefinitions(createParams([ ParameterIdentifierTuple!run ], staticMap!(getDefaultValue, ParameterTypeTuple!run))); } override void execute(CommandParameter[] v) { alias Func = run; enum parameterCount = ParameterTypeTuple!Func.length; //alias convertedArgs = staticMap!(convertToType!(v,Func), Iota!(0, parameterCount)); //Func(convertedArgs); static if (parameterCount == 0) { Func(); } else static if (parameterCount == 1) { assert(v.length >= 1); alias a1 = ParameterTypeTuple!Func[$-1]; Func(v[0].get!a1); } else static if (parameterCount == 2) { assert(v.length >= 2); alias a1 = ParameterTypeTuple!Func[$-2]; alias a2 = ParameterTypeTuple!Func[$-1]; Func(v[0].get!a1, v[1].get!a2); } else static if (parameterCount == 3) { assert(v.length >= 3); alias a1 = ParameterTypeTuple!Func[$-3]; alias a2 = ParameterTypeTuple!Func[$-2]; alias a3 = ParameterTypeTuple!Func[$-1]; Func(v[0].get!a1, v[1].get!a2, v[2].get!a3); } else { pragma(msg, "Add support for more argments in Command extension. Only 3 supported now."); } } static if (__traits(hasMember, T, "complete") && isSomeFunction!(T.complete)) { override CompletionEntry[] getCompletions(CommandParameter[] v) { alias Func = complete; enum parameterCount = ParameterTypeTuple!Func.length; //alias convertedArgs = staticMap!(convertToType!(v,Func), Iota!(0, parameterCount)); //Func(convertedArgs); static if (parameterCount == 0) { return Func(); } else static if (parameterCount == 1) { assert(v.length >= 1); alias a1 = ParameterTypeTuple!Func[$-1]; return Func(v[0].get!a1); } else static if (parameterCount == 2) { assert(v.length >= 2); alias a1 = ParameterTypeTuple!Func[$-2]; alias a2 = ParameterTypeTuple!Func[$-1]; return Func(v[0].get!a1, v[1].get!a2); } else static if (parameterCount == 3) { assert(v.length >= 3); alias a1 = ParameterTypeTuple!Func[$-3]; alias a2 = ParameterTypeTuple!Func[$-2]; alias a3 = ParameterTypeTuple!Func[$-1]; return Func(v[0].get!a1, v[1].get!a2, v[2].get!a3); } else { pragma(msg, "Add support for more argments in Command extension completion. Only 3 supported now."); } } } } class IBasicExtension { GUIApplication app; @property BufferView currentBuffer() { return app.currentBuffer; } @property BufferView buffer() { auto b = app.currentBuffer; if (b.name == "*CommandInput*") return app.previousBuffer; return b; } @property TextEditor currentTextEditor() { return app.getCurrentTextEditor(); } abstract @property string name(); abstract void init(); abstract void fini(); abstract void onStart(); abstract void onStop(); } class BasicExtension(T) : IBasicExtension { static this() { g_Extensions ~= new T; } //override void () //{ // // no-op //} override void init() { // no-op } override void fini() { // no-op } override void onStart() { // no-op } override void onStop() { // no-op } } interface IBinder { void updateFromModel(); } class Binder(string fieldName, Cls, Ctrl) : IBinder { import animation.mutator; import std.conv; private Cls _model; private Ctrl _ctrl; alias FieldProxy!(fieldName, Cls) FP; alias FP.FieldType FieldType; // std.signals does not support delegates so we create a special class for the purpose this(Cls m, Ctrl c) { _model = m; _ctrl = c; updateFromModel(); _ctrl.onChanged.connect(&fieldChanged); } void fieldChanged() { FP.set(_model, _ctrl.value.to!(FP.FieldType)); } void updateFromModel() { _ctrl.value = FP.get(_model).to!(typeof(_ctrl.value)); } private ref FieldType value() { return mixin("_model." ~ fieldName); } } version (NO) unittest { import application; import core.command; // Default exposed as 'test'. No shortcut hint class TestEditTextCommand : Command { override @property string description() const { return "alalal does this"; } override @property string name() const { return "alalal.flflf"; } override @property string shortcut() const { return "<ctrl> + c"; } //override void canExecute(BufferView buf, Widget widget, Variant data) //{ // return true; //} override void execute(Variant data) { } } /* class TestExtension : Extension!TestExtension { override void onStart() { //app.commandManager.create("test.helloworld", "Insert hello world into active text buffer", // (Variant data) { // auto b = app.currentBuffer; // if (b is null) // return; // b.insert("Hello World"); // } // ); // //// Example 2: Expose a new command to callback to this extension //app.commandManager.create("test.callback", "Callback to the TestExtension.callback()", // (Variant data) { callback(); }); // //app.setCommandKeyBindingHint("test.callback", "<ctrl> + <alt> + c"); // Example 3: Call a command import core.command; Command cmd = app.commandManager.lookup("edit.insert"); cmd.execute("Hello again!"); // or app.commandManager.execute("edit.insert", "Hello again!"); app.currentBuffer.insert("Hello again"); } // Example 1: Expose a new command called myCommand // All public methods of an extensions are commands void myCommand(Variant data) { auto b = app.currentBuffer; if (b is null) return; b.insert("Hello World"); } // Example 2: Expose a new command called test.helloworld // Use another name for the command than the method name. // Also give a suggested key binding @Command("test.helloWorld", "<ctrl> + <alt> + c") void myCommand(Variant data) { } override void onStop() { // app.commandManager.destroy("test.helloworld"); app.addMessage("Goodbye and have a jolly good day!"); } } */ }
D
import esdl; import uvm; import std.stdio; import std.string: format; enum privileged_reg_t: ushort { // 12'b // User mode register USTATUS = 0x000, // User status UIE = 0x004, // User interrupt-enable register UTVEC = 0x005, // User trap-handler base address USCRATCH = 0x040, // Scratch register for user trap handlers UEPC = 0x041, // User exception program counter UCAUSE = 0x042, // User trap cause UTVAL = 0x043, // User bad address or instruction UIP = 0x044, // User interrupt pending FFLAGS = 0x001, // Floating-Point Accrued Exceptions FRM = 0x002, // Floating-Point Dynamic Rounding Mode FCSR = 0x003, // Floating-Point Control/Status Register (FRM + FFLAGS) CYCLE = 0xC00, // Cycle counter for RDCYCLE instruction TIME = 0xC01, // Timer for RDTIME instruction INSTRET = 0xC02, // Instructions-retired counter for RDINSTRET instruction HPMCOUNTER3 = 0xC03, // Performance-monitoring counter HPMCOUNTER4 = 0xC04, // Performance-monitoring counter HPMCOUNTER5 = 0xC05, // Performance-monitoring counter HPMCOUNTER6 = 0xC06, // Performance-monitoring counter HPMCOUNTER7 = 0xC07, // Performance-monitoring counter HPMCOUNTER8 = 0xC08, // Performance-monitoring counter HPMCOUNTER9 = 0xC09, // Performance-monitoring counter HPMCOUNTER10 = 0xC0A, // Performance-monitoring counter HPMCOUNTER11 = 0xC0B, // Performance-monitoring counter HPMCOUNTER12 = 0xC0C, // Performance-monitoring counter HPMCOUNTER13 = 0xC0D, // Performance-monitoring counter HPMCOUNTER14 = 0xC0E, // Performance-monitoring counter HPMCOUNTER15 = 0xC0F, // Performance-monitoring counter HPMCOUNTER16 = 0xC10, // Performance-monitoring counter HPMCOUNTER17 = 0xC11, // Performance-monitoring counter HPMCOUNTER18 = 0xC12, // Performance-monitoring counter HPMCOUNTER19 = 0xC13, // Performance-monitoring counter HPMCOUNTER20 = 0xC14, // Performance-monitoring counter HPMCOUNTER21 = 0xC15, // Performance-monitoring counter HPMCOUNTER22 = 0xC16, // Performance-monitoring counter HPMCOUNTER23 = 0xC17, // Performance-monitoring counter HPMCOUNTER24 = 0xC18, // Performance-monitoring counter HPMCOUNTER25 = 0xC19, // Performance-monitoring counter HPMCOUNTER26 = 0xC1A, // Performance-monitoring counter HPMCOUNTER27 = 0xC1B, // Performance-monitoring counter HPMCOUNTER28 = 0xC1C, // Performance-monitoring counter HPMCOUNTER29 = 0xC1D, // Performance-monitoring counter HPMCOUNTER30 = 0xC1E, // Performance-monitoring counter HPMCOUNTER31 = 0xC1F, // Performance-monitoring counter CYCLEH = 0xC80, // Upper 32 bits of CYCLE, RV32I only TIMEH = 0xC81, // Upper 32 bits of TIME, RV32I only INSTRETH = 0xC82, // Upper 32 bits of INSTRET, RV32I only HPMCOUNTER3H = 0xC83, // Upper 32 bits of HPMCOUNTER3, RV32I only HPMCOUNTER4H = 0xC84, // Upper 32 bits of HPMCOUNTER4, RV32I only HPMCOUNTER5H = 0xC85, // Upper 32 bits of HPMCOUNTER5, RV32I only HPMCOUNTER6H = 0xC86, // Upper 32 bits of HPMCOUNTER6, RV32I only HPMCOUNTER7H = 0xC87, // Upper 32 bits of HPMCOUNTER7, RV32I only HPMCOUNTER8H = 0xC88, // Upper 32 bits of HPMCOUNTER8, RV32I only HPMCOUNTER9H = 0xC89, // Upper 32 bits of HPMCOUNTER9, RV32I only HPMCOUNTER10H = 0xC8A, // Upper 32 bits of HPMCOUNTER10, RV32I only HPMCOUNTER11H = 0xC8B, // Upper 32 bits of HPMCOUNTER11, RV32I only HPMCOUNTER12H = 0xC8C, // Upper 32 bits of HPMCOUNTER12, RV32I only HPMCOUNTER13H = 0xC8D, // Upper 32 bits of HPMCOUNTER13, RV32I only HPMCOUNTER14H = 0xC8E, // Upper 32 bits of HPMCOUNTER14, RV32I only HPMCOUNTER15H = 0xC8F, // Upper 32 bits of HPMCOUNTER15, RV32I only HPMCOUNTER16H = 0xC90, // Upper 32 bits of HPMCOUNTER16, RV32I only HPMCOUNTER17H = 0xC91, // Upper 32 bits of HPMCOUNTER17, RV32I only HPMCOUNTER18H = 0xC92, // Upper 32 bits of HPMCOUNTER18, RV32I only HPMCOUNTER19H = 0xC93, // Upper 32 bits of HPMCOUNTER19, RV32I only HPMCOUNTER20H = 0xC94, // Upper 32 bits of HPMCOUNTER20, RV32I only HPMCOUNTER21H = 0xC95, // Upper 32 bits of HPMCOUNTER21, RV32I only HPMCOUNTER22H = 0xC96, // Upper 32 bits of HPMCOUNTER22, RV32I only HPMCOUNTER23H = 0xC97, // Upper 32 bits of HPMCOUNTER23, RV32I only HPMCOUNTER24H = 0xC98, // Upper 32 bits of HPMCOUNTER24, RV32I only HPMCOUNTER25H = 0xC99, // Upper 32 bits of HPMCOUNTER25, RV32I only HPMCOUNTER26H = 0xC9A, // Upper 32 bits of HPMCOUNTER26, RV32I only HPMCOUNTER27H = 0xC9B, // Upper 32 bits of HPMCOUNTER27, RV32I only HPMCOUNTER28H = 0xC9C, // Upper 32 bits of HPMCOUNTER28, RV32I only HPMCOUNTER29H = 0xC9D, // Upper 32 bits of HPMCOUNTER29, RV32I only HPMCOUNTER30H = 0xC9E, // Upper 32 bits of HPMCOUNTER30, RV32I only HPMCOUNTER31H = 0xC9F, // Upper 32 bits of HPMCOUNTER31, RV32I only // Supervisor mode register SSTATUS = 0x100, // Supervisor status SEDELEG = 0x102, // Supervisor exception delegation register SIDELEG = 0x103, // Supervisor interrupt delegation register SIE = 0x104, // Supervisor interrupt-enable register STVEC = 0x105, // Supervisor trap-handler base address SCOUNTEREN = 0x106, // Supervisor counter enable SSCRATCH = 0x140, // Scratch register for supervisor trap handlers SEPC = 0x141, // Supervisor exception program counter SCAUSE = 0x142, // Supervisor trap cause STVAL = 0x143, // Supervisor bad address or instruction SIP = 0x144, // Supervisor interrupt pending SATP = 0x180, // Supervisor address translation and protection // Machine mode register MVENDORID = 0xF11, // Vendor ID MARCHID = 0xF12, // Architecture ID MIMPID = 0xF13, // Implementation ID MHARTID = 0xF14, // Hardware thread ID MSTATUS = 0x300, // Machine status MISA = 0x301, // ISA and extensions MEDELEG = 0x302, // Machine exception delegation register MIDELEG = 0x303, // Machine interrupt delegation register MIE = 0x304, // Machine interrupt-enable register MTVEC = 0x305, // Machine trap-handler base address MCOUNTEREN = 0x306, // Machine counter enable MSCRATCH = 0x340, // Scratch register for machine trap handlers MEPC = 0x341, // Machine exception program counter MCAUSE = 0x342, // Machine trap cause MTVAL = 0x343, // Machine bad address or instruction MIP = 0x344, // Machine interrupt pending PMPCFG0 = 0x3A0, // Physical memory protection configuration PMPCFG1 = 0x3A1, // Physical memory protection configuration, RV32 only PMPCFG2 = 0x3A2, // Physical memory protection configuration PMPCFG3 = 0x3A3, // Physical memory protection configuration, RV32 only PMPADDR0 = 0x3B0, // Physical memory protection address register PMPADDR1 = 0x3B1, // Physical memory protection address register PMPADDR2 = 0x3B2, // Physical memory protection address register PMPADDR3 = 0x3B3, // Physical memory protection address register PMPADDR4 = 0x3B4, // Physical memory protection address register PMPADDR5 = 0x3B5, // Physical memory protection address register PMPADDR6 = 0x3B6, // Physical memory protection address register PMPADDR7 = 0x3B7, // Physical memory protection address register PMPADDR8 = 0x3B8, // Physical memory protection address register PMPADDR9 = 0x3B9, // Physical memory protection address register PMPADDR10 = 0x3BA, // Physical memory protection address register PMPADDR11 = 0x3BB, // Physical memory protection address register PMPADDR12 = 0x3BC, // Physical memory protection address register PMPADDR13 = 0x3BD, // Physical memory protection address register PMPADDR14 = 0x3BE, // Physical memory protection address register PMPADDR15 = 0x3BF, // Physical memory protection address register MCYCLE = 0xB00, // Machine cycle counter MINSTRET = 0xB02, // Machine instructions-retired counter MHPMCOUNTER3 = 0xB03, // Machine performance-monitoring counter MHPMCOUNTER4 = 0xB04, // Machine performance-monitoring counter MHPMCOUNTER5 = 0xB05, // Machine performance-monitoring counter MHPMCOUNTER6 = 0xB06, // Machine performance-monitoring counter MHPMCOUNTER7 = 0xB07, // Machine performance-monitoring counter MHPMCOUNTER8 = 0xB08, // Machine performance-monitoring counter MHPMCOUNTER9 = 0xB09, // Machine performance-monitoring counter MHPMCOUNTER10 = 0xB0A, // Machine performance-monitoring counter MHPMCOUNTER11 = 0xB0B, // Machine performance-monitoring counter MHPMCOUNTER12 = 0xB0C, // Machine performance-monitoring counter MHPMCOUNTER13 = 0xB0D, // Machine performance-monitoring counter MHPMCOUNTER14 = 0xB0E, // Machine performance-monitoring counter MHPMCOUNTER15 = 0xB0F, // Machine performance-monitoring counter MHPMCOUNTER16 = 0xB10, // Machine performance-monitoring counter MHPMCOUNTER17 = 0xB11, // Machine performance-monitoring counter MHPMCOUNTER18 = 0xB12, // Machine performance-monitoring counter MHPMCOUNTER19 = 0xB13, // Machine performance-monitoring counter MHPMCOUNTER20 = 0xB14, // Machine performance-monitoring counter MHPMCOUNTER21 = 0xB15, // Machine performance-monitoring counter MHPMCOUNTER22 = 0xB16, // Machine performance-monitoring counter MHPMCOUNTER23 = 0xB17, // Machine performance-monitoring counter MHPMCOUNTER24 = 0xB18, // Machine performance-monitoring counter MHPMCOUNTER25 = 0xB19, // Machine performance-monitoring counter MHPMCOUNTER26 = 0xB1A, // Machine performance-monitoring counter MHPMCOUNTER27 = 0xB1B, // Machine performance-monitoring counter MHPMCOUNTER28 = 0xB1C, // Machine performance-monitoring counter MHPMCOUNTER29 = 0xB1D, // Machine performance-monitoring counter MHPMCOUNTER30 = 0xB1E, // Machine performance-monitoring counter MHPMCOUNTER31 = 0xB1F, // Machine performance-monitoring counter MCYCLEH = 0xB80, // Upper 32 bits of MCYCLE, RV32I only MINSTRETH = 0xB82, // Upper 32 bits of MINSTRET, RV32I only MHPMCOUNTER3H = 0xB83, // Upper 32 bits of HPMCOUNTER3, RV32I only MHPMCOUNTER4H = 0xB84, // Upper 32 bits of HPMCOUNTER4, RV32I only MHPMCOUNTER5H = 0xB85, // Upper 32 bits of HPMCOUNTER5, RV32I only MHPMCOUNTER6H = 0xB86, // Upper 32 bits of HPMCOUNTER6, RV32I only MHPMCOUNTER7H = 0xB87, // Upper 32 bits of HPMCOUNTER7, RV32I only MHPMCOUNTER8H = 0xB88, // Upper 32 bits of HPMCOUNTER8, RV32I only MHPMCOUNTER9H = 0xB89, // Upper 32 bits of HPMCOUNTER9, RV32I only MHPMCOUNTER10H = 0xB8A, // Upper 32 bits of HPMCOUNTER10, RV32I only MHPMCOUNTER11H = 0xB8B, // Upper 32 bits of HPMCOUNTER11, RV32I only MHPMCOUNTER12H = 0xB8C, // Upper 32 bits of HPMCOUNTER12, RV32I only MHPMCOUNTER13H = 0xB8D, // Upper 32 bits of HPMCOUNTER13, RV32I only MHPMCOUNTER14H = 0xB8E, // Upper 32 bits of HPMCOUNTER14, RV32I only MHPMCOUNTER15H = 0xB8F, // Upper 32 bits of HPMCOUNTER15, RV32I only MHPMCOUNTER16H = 0xB90, // Upper 32 bits of HPMCOUNTER16, RV32I only MHPMCOUNTER17H = 0xB91, // Upper 32 bits of HPMCOUNTER17, RV32I only MHPMCOUNTER18H = 0xB92, // Upper 32 bits of HPMCOUNTER18, RV32I only MHPMCOUNTER19H = 0xB93, // Upper 32 bits of HPMCOUNTER19, RV32I only MHPMCOUNTER20H = 0xB94, // Upper 32 bits of HPMCOUNTER20, RV32I only MHPMCOUNTER21H = 0xB95, // Upper 32 bits of HPMCOUNTER21, RV32I only MHPMCOUNTER22H = 0xB96, // Upper 32 bits of HPMCOUNTER22, RV32I only MHPMCOUNTER23H = 0xB97, // Upper 32 bits of HPMCOUNTER23, RV32I only MHPMCOUNTER24H = 0xB98, // Upper 32 bits of HPMCOUNTER24, RV32I only MHPMCOUNTER25H = 0xB99, // Upper 32 bits of HPMCOUNTER25, RV32I only MHPMCOUNTER26H = 0xB9A, // Upper 32 bits of HPMCOUNTER26, RV32I only MHPMCOUNTER27H = 0xB9B, // Upper 32 bits of HPMCOUNTER27, RV32I only MHPMCOUNTER28H = 0xB9C, // Upper 32 bits of HPMCOUNTER28, RV32I only MHPMCOUNTER29H = 0xB9D, // Upper 32 bits of HPMCOUNTER29, RV32I only MHPMCOUNTER30H = 0xB9E, // Upper 32 bits of HPMCOUNTER30, RV32I only MHPMCOUNTER31H = 0xB9F, // Upper 32 bits of HPMCOUNTER31, RV32I only MCOUNTINHIBIT = 0x320, // Machine counter-inhibit register MHPMEVENT3 = 0x323, // Machine performance-monitoring event selector MHPMEVENT4 = 0x324, // Machine performance-monitoring event selector MHPMEVENT5 = 0x325, // Machine performance-monitoring event selector MHPMEVENT6 = 0x326, // Machine performance-monitoring event selector MHPMEVENT7 = 0x327, // Machine performance-monitoring event selector MHPMEVENT8 = 0x328, // Machine performance-monitoring event selector MHPMEVENT9 = 0x329, // Machine performance-monitoring event selector MHPMEVENT10 = 0x32A, // Machine performance-monitoring event selector MHPMEVENT11 = 0x32B, // Machine performance-monitoring event selector MHPMEVENT12 = 0x32C, // Machine performance-monitoring event selector MHPMEVENT13 = 0x32D, // Machine performance-monitoring event selector MHPMEVENT14 = 0x32E, // Machine performance-monitoring event selector MHPMEVENT15 = 0x32F, // Machine performance-monitoring event selector MHPMEVENT16 = 0x330, // Machine performance-monitoring event selector MHPMEVENT17 = 0x331, // Machine performance-monitoring event selector MHPMEVENT18 = 0x332, // Machine performance-monitoring event selector MHPMEVENT19 = 0x333, // Machine performance-monitoring event selector MHPMEVENT20 = 0x334, // Machine performance-monitoring event selector MHPMEVENT21 = 0x335, // Machine performance-monitoring event selector MHPMEVENT22 = 0x336, // Machine performance-monitoring event selector MHPMEVENT23 = 0x337, // Machine performance-monitoring event selector MHPMEVENT24 = 0x338, // Machine performance-monitoring event selector MHPMEVENT25 = 0x339, // Machine performance-monitoring event selector MHPMEVENT26 = 0x33A, // Machine performance-monitoring event selector MHPMEVENT27 = 0x33B, // Machine performance-monitoring event selector MHPMEVENT28 = 0x33C, // Machine performance-monitoring event selector MHPMEVENT29 = 0x33D, // Machine performance-monitoring event selector MHPMEVENT30 = 0x33E, // Machine performance-monitoring event selector MHPMEVENT31 = 0x33F, // Machine performance-monitoring event selector TSELECT = 0x7A0, // Debug/Trace trigger register select TDATA1 = 0x7A1, // First Debug/Trace trigger data register TDATA2 = 0x7A2, // Second Debug/Trace trigger data register TDATA3 = 0x7A3, // Third Debug/Trace trigger data register TINFO = 0x7A4, // Debug trigger info register TCONTROL = 0x7A5, // Debug trigger control register MCONTEXT = 0x7A8, // Machine mode trigger context register SCONTEXT = 0x7AA, // Supervisor mode trigger context register DCSR = 0x7B0, // Debug control and status register DPC = 0x7B1, // Debug PC DSCRATCH0 = 0x7B2, // Debug scratch register DSCRATCH1 = 0x7B3, // Debug scratch register VSTART = 0x008, // Vector start position VXSTAT = 0x009, // Fixed point saturate flag VXRM = 0x00A, // Fixed point rounding mode VL = 0xC20, // Vector length VTYPE = 0xC21, // Vector data type register VLENB = 0xC22 // VLEN/8 (vector register length in bytes) } enum privileged_mode_t: byte { USER_MODE = 0b00, SUPERVISOR_MODE = 0b01, RESERVED_MODE = 0b10, MACHINE_MODE = 0b11 } class riscv_instr_gen_config { bool enable_illegal_csr_instruction; bool enable_access_invalid_csr_level; privileged_reg_t[] invalid_priv_mode_csrs; privileged_mode_t init_privileged_mode; } enum privileged_reg_t[] implemented_csr = [ // Machine mode mode CSR privileged_reg_t.MVENDORID, // Vendor ID privileged_reg_t.MARCHID, // Architecture ID privileged_reg_t.MIMPID, // Implementation ID privileged_reg_t.MHARTID, // Hardware thread ID privileged_reg_t.MSTATUS, // Machine status privileged_reg_t.MISA, // ISA and extensions privileged_reg_t.MIE, // Machine interrupt-enable register privileged_reg_t.MTVEC, // Machine trap-handler base address privileged_reg_t.MCOUNTEREN, // Machine counter enable privileged_reg_t.MSCRATCH, // Scratch register for machine trap handlers privileged_reg_t.MEPC, // Machine exception program counter privileged_reg_t.MCAUSE, // Machine trap cause privileged_reg_t.MTVAL, // Machine bad address or instruction privileged_reg_t.MIP // Machine interrupt pending ]; class riscv_instr { __gshared privileged_reg_t[] exclude_reg; __gshared privileged_reg_t[] include_reg; static void create_csr_filter(riscv_instr_gen_config cfg) { include_reg.length = 0; exclude_reg.length = 0; if (cfg.enable_illegal_csr_instruction) { exclude_reg = implemented_csr; } else if (cfg.enable_access_invalid_csr_level) { include_reg = cfg.invalid_priv_mode_csrs; } else { // Use scratch register to avoid the side effect of modifying other privileged mode CSR. if (cfg.init_privileged_mode == privileged_mode_t.MACHINE_MODE) { include_reg = [ privileged_reg_t.MSCRATCH]; } else if (cfg.init_privileged_mode == privileged_mode_t.SUPERVISOR_MODE) { include_reg = [privileged_reg_t.SSCRATCH]; } else { include_reg = [privileged_reg_t.USCRATCH]; } } } void display() { import std.stdio; foreach(i;include_reg) { writeln(i); } foreach(i;exclude_reg) { writeln(i); } } } void main() { auto cfg = new riscv_instr_gen_config; auto test = new riscv_instr; cfg.enable_illegal_csr_instruction = true; cfg.enable_access_invalid_csr_level = false; cfg.init_privileged_mode = privileged_mode_t.MACHINE_MODE; test.create_csr_filter(cfg); test.display(); }
D
/* TEST_OUTPUT: --- fail_compilation/fail19687.d(17): Error: no property `nonexisting` for `""` of type `string` --- */ struct S { void opDispatch(string name)() {} void opDispatch(string name)(string value) {} } void main() { S n; n.foo = "".nonexisting(); }
D
/* * This file is part of gtkD. * * gtkD is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * gtkD 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with gtkD; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // generated automatically - do not change // find conversion definition on APILookup.txt // implement new conversion functionalities on the wrap.utils pakage /* * Conversion parameters: * inFile = GAsyncResult.html * outPack = gio * outFile = AsyncResultT * strct = GAsyncResult * realStrct= * ctorStrct= * clss = AsyncResultT * interf = AsyncResultIF * class Code: No * interface Code: No * template for: * - TStruct * extend = * implements: * prefixes: * - g_async_result_ * omit structs: * omit prefixes: * omit code: * omit signals: * imports: * - gtkD.gobject.ObjectG * structWrap: * - GObject* -> ObjectG * module aliases: * local aliases: * overrides: */ module gtkD.gio.AsyncResultT; public import gtkD.gtkc.giotypes; public import gtkD.gtkc.gio; public import gtkD.glib.ConstructionException; public import gtkD.gobject.ObjectG; /** * Description * Provides a base class for implementing asynchronous function results. * Asynchronous operations are broken up into two separate operations * which are chained together by a GAsyncReadyCallback. To begin * an asynchronous operation, provide a GAsyncReadyCallback to the * asynchronous function. This callback will be triggered when the * operation has completed, and will be passed a GAsyncResult instance * filled with the details of the operation's success or failure, the * object the asynchronous function was started for and any error codes * returned. The asynchronous callback function is then expected to call * the corresponding "_finish()" function with the object the function * was called for, and the GAsyncResult instance, and optionally, * an error to grab any error conditions that may have occurred. * The purpose of the "_finish()" function is to take the generic * result of type GAsyncResult and return the specific result * that the operation in question yields (e.g. a GFileEnumerator for * a "enumerate children" operation). If the result or error status * of the operation is not needed, there is no need to call the * "_finish()" function, GIO will take care of cleaning up the * result and error information after the GAsyncReadyCallback * returns. It is also allowed to take a reference to the GAsyncResult and * call "_finish()" later. * Example of a typical asynchronous operation flow: * void _theoretical_frobnitz_async (Theoretical *t, * GCancellable *c, * GAsyncReadyCallback *cb, * gpointer u); * gboolean _theoretical_frobnitz_finish (Theoretical *t, * GAsyncResult *res, * GError **e); * static void * frobnitz_result_func (GObject *source_object, * GAsyncResult *res, * gpointer user_data) * { * gboolean success = FALSE; * success = _theoretical_frobnitz_finish (source_object, res, NULL); * if (success) * g_printf ("Hurray!\n"); * else * g_printf ("Uh oh!\n"); * /+* ... +/ * } * int main (int argc, void *argv[]) * { * /+* ... +/ * _theoretical_frobnitz_async (theoretical_data, * NULL, * frobnitz_result_func, * NULL); * /+* ... +/ * } * The callback for an asynchronous operation is called only once, and is * always called, even in the case of a cancelled operation. On cancellation * the result is a G_IO_ERROR_CANCELLED error. * Some ascynchronous operations are implemented using synchronous calls. These * are run in a separate thread, if GThread has been initialized, but otherwise they * are sent to the Main Event Loop and processed in an idle function. So, if you * truly need asynchronous operations, make sure to initialize GThread. */ public template AsyncResultT(TStruct) { /** the main Gtk struct */ protected GAsyncResult* gAsyncResult; public GAsyncResult* getAsyncResultTStruct() { return cast(GAsyncResult*)getStruct(); } /** */ /** * Gets the user data from a GAsyncResult. * Returns: the user data for res. */ public void* getUserData() { // gpointer g_async_result_get_user_data (GAsyncResult *res); return g_async_result_get_user_data(getAsyncResultTStruct()); } /** * Gets the source object from a GAsyncResult. * Returns: a new reference to the source object for the res, or NULL if there is none. */ public ObjectG getSourceObject() { // GObject * g_async_result_get_source_object (GAsyncResult *res); auto p = g_async_result_get_source_object(getAsyncResultTStruct()); if(p is null) { return null; } return new ObjectG(cast(GObject*) p); } }
D
/* PERMUTE_ARGS: -inline -g -O */ extern(C) int printf(const char*, ...); /*******************************************/ class A { int x = 7; int foo(int i) in { printf("A.foo.in %d\n", i); assert(i == 2); assert(x == 7); printf("A.foo.in pass\n"); } out (result) { assert(result & 1); assert(x == 7); } do { return i; } } class B : A { override int foo(int i) in { float f; printf("B.foo.in %d\n", i); assert(i == 4); assert(x == 7); f = f + i; } out (result) { assert(result < 8); assert(x == 7); } do { return i - 1; } } void test1() { auto b = new B(); b.foo(2); b.foo(4); } /*******************************************/ class A2 { int x = 7; int foo(int i) in { printf("A2.foo.in %d\n", i); assert(i == 2); assert(x == 7); printf("A2.foo.in pass\n"); } out (result) { assert(result & 1); assert(x == 7); } do { return i; } } class B2 : A2 { override int foo(int i) in { float f; printf("B2.foo.in %d\n", i); assert(i == 4); assert(x == 7); f = f + i; } out (result) { assert(result < 8); assert(x == 7); } do { return i - 1; } } class C : B2 { override int foo(int i) in { float f; printf("C.foo.in %d\n", i); assert(i == 6); assert(x == 7); f = f + i; } out (result) { assert(result == 1 || result == 3 || result == 5); assert(x == 7); } do { return i - 1; } } void test2() { auto c = new C(); c.foo(2); c.foo(4); c.foo(6); } /*******************************************/ void fun(int x) in { if (x < 0) throw new Exception("a"); } do { } void test3() { fun(1); } /*******************************************/ interface Stack { int pop() // in { printf("pop.in\n"); } out(result) { printf("pop.out\n"); assert(result == 3); } } class CC : Stack { int pop() //out (result) { printf("CC.pop.out\n"); } do { printf("CC.pop.in\n"); return 3; } } void test4() { auto cc = new CC(); cc.pop(); } /*******************************************/ int mul100(int n) out(result) { assert(result == 500); } do { return n * 100; } void test5() { mul100(5); } /*******************************************/ // https://issues.dlang.org/show_bug.cgi?id=3273 // original case struct Bug3273 { ~this() {} invariant() {} } // simplest case ref int func3273() out(r) { // Regression check of https://issues.dlang.org/show_bug.cgi?id=3390 static assert(!__traits(compiles, r = 1)); } do { static int dummy; return dummy; } void test6() { func3273() = 1; assert(func3273() == 1); } /*******************************************/ /+ // https://issues.dlang.org/show_bug.cgi?id=3722 class Bug3722A { void fun() {} } class Bug3722B : Bug3722A { override void fun() in { assert(false); } do {} } void test6() { auto x = new Bug3722B(); x.fun(); } +/ /*******************************************/ auto test7foo() in{ ++cnt; }do{ ++cnt; return "str"; } void test7() { cnt = 0; assert(test7foo() == "str"); assert(cnt == 2); } /*******************************************/ auto foo8() out(r){ ++cnt; assert(r == 10); }do{ ++cnt; return 10; } auto bar8() out{ ++cnt; }do{ ++cnt; } void test8() { cnt = 0; assert(foo8() == 10); assert(cnt == 2); cnt = 0; bar8(); assert(cnt == 2); } /*******************************************/ // from fail317 void test9() { { auto f1 = function() do { }; // fine auto f2 = function() in { } do { }; // fine auto f3 = function() out { } do { }; // error auto f4 = function() in { } out { } do { }; // error auto d1 = delegate() do { }; // fine auto d2 = delegate() in { } do { }; // fine auto d3 = delegate() out { } do { }; // error auto d4 = delegate() in { } out { } do { }; // error } { auto f1 = function() body { }; // fine auto f2 = function() in { } body { }; // fine auto f3 = function() out { } body { }; // error auto f4 = function() in { } out { } body { }; // error auto d1 = delegate() body { }; // fine auto d2 = delegate() in { } body { }; // fine auto d3 = delegate() out { } body { }; // error auto d4 = delegate() in { } out { } body { }; // error } } /*******************************************/ auto test10() do { return 3; } auto test11()() do { return 3; } auto test12() { auto test10() do { return 3; } auto test11()() do { return 3; } return 3; } void test13() { int function() fp13; } /*******************************************/ // https://issues.dlang.org/show_bug.cgi?id=4785 int cnt; auto foo4785() in{ int r; ++cnt; } out(r){ assert(r == 10); ++cnt; }do{ ++cnt; int r = 10; return r; } void test4785() { cnt = 0; assert(foo4785() == 10); assert(cnt == 3); } /*******************************************/ // https://issues.dlang.org/show_bug.cgi?id=5039 class C5039 { int x; invariant() { assert( x < int.max ); } auto foo() { return x; } } /*******************************************/ // https://issues.dlang.org/show_bug.cgi?id=5204 interface IFoo5204 { IFoo5204 bar() out {} } class Foo5204 : IFoo5204 { Foo5204 bar() { return null; } } /*******************************************/ // https://issues.dlang.org/show_bug.cgi?id=6417 class Bug6417 { void bar() in { int i = 14; assert(i == 14); auto dg = (){ //printf("in: i = %d\n", i); assert(i == 14, "in contract failure"); }; dg(); } out { int j = 10; assert(j == 10); auto dg = (){ //printf("out: j = %d\n", j); assert(j == 10, "out contract failure"); }; dg(); } do {} } void test6417() { (new Bug6417).bar(); } /*******************************************/ // https://issues.dlang.org/show_bug.cgi?id=6549 class C6549 { static int ocount = 0; static int icount = 0; abstract int foo(int) in { ++icount; } out { ++ocount; } } class CD6549 : C6549 { override int foo(int) in { assert(false); } do { return 10; } } abstract class D6549 { static int icount = 0; static int ocount = 0; int foo(int) in { ++icount; } out { ++ocount; } } class DD6549 : D6549 { override int foo(int) in { assert(false); } do { return 10; } } void test6549() { auto c = new CD6549; c.foo(10); assert(C6549.icount == 1); assert(C6549.ocount == 1); auto d = new DD6549; d.foo(10); assert(D6549.icount == 1); assert(D6549.ocount == 1); } /*******************************************/ // https://issues.dlang.org/show_bug.cgi?id=7218 void test7218() { { size_t foo() in{} out{} do{ return 0; } // OK size_t bar() in{}/*out{}*/do{ return 0; } // OK size_t hoo()/*in{}*/out{} do{ return 0; } // NG1 size_t baz()/*in{} out{}*/do{ return 0; } // NG2 } { size_t goo() in{} out{} body{ return 0; } // OK size_t gar() in{}/*out{}*/body{ return 0; } // OK size_t gob()/*in{}*/out{} body{ return 0; } // NG1 size_t gaz()/*in{} out{}*/body{ return 0; } // NG2 } } /*******************************************/ // https://issues.dlang.org/show_bug.cgi?id=7335 class A7335 { int mValue = 10; void setValue(int newValue) in { } out { assert(mValue == 3); } do { mValue = newValue; } } class B7335 : A7335 { override void setValue(int newValue) in { assert(false); } out { assert(mValue == 3); } do { mValue = newValue; } } class C7335 : A7335 { override void setValue(int newValue) in { int a = newValue; } out { assert(mValue == 3); } do { mValue = newValue; } } void test7335() { A7335 aObject = new B7335(); aObject.setValue(3); A7335 bObject = new C7335(); bObject.setValue(3); // <<<<< will crash because undefined mValue in the // A7335.setValue().out-block. } /*******************************************/ // https://issues.dlang.org/show_bug.cgi?id=7517 void test7517() { static string result; interface I { static I self; void setEnable() in { assert(self is this); result ~= "I.setEnable.in/"; assert(!enabled); } out { assert(self is this); result ~= "I.setEnable.out/"; assert( enabled); } void setDisable() in { assert(self is this); result ~= "I.setDisable.in/"; assert( enabled); } out { assert(self is this); result ~= "I.setDisable.out/"; assert(!enabled); } @property bool enabled() const; } class C : I { static C self; void setEnable() in {} // supply in-contract to invoke I.setEnable.in do { assert(self is this); result ~= "C.setEnable/"; _enabled = true; } void setDisable() { assert(self is this); result ~= "C.setDisable/"; _enabled = false; } @property bool enabled() const { assert(self is this); result ~= "C.enabled/"; return _enabled; } bool _enabled; } C c = C.self = new C; I i = I.self = c; result = null; i.setEnable(); assert(result == "I.setEnable.in/C.enabled/C.setEnable/I.setEnable.out/C.enabled/"); result = null; i.setDisable(); assert(result == "C.setDisable/I.setDisable.out/C.enabled/"); } /*******************************************/ // https://issues.dlang.org/show_bug.cgi?id=7699 class P7699 { void f(int n) in { assert (n); } do { } } class D7699 : P7699 { override void f(int n) in { } do { } } /*******************************************/ // https://issues.dlang.org/show_bug.cgi?id=7883 // Segmentation fault class AA7883 { int foo() out (r1) { } do { return 1; } } class BA7883 : AA7883 { override int foo() out (r2) { } do { return 1; } } class CA7883 : BA7883 { override int foo() do { return 1; } } // Error: undefined identifier r2, did you mean variable r3? class AB7883 { int foo() out (r1) { } do { return 1; } } class BB7883 : AB7883 { override int foo() out (r2) { } do { return 1; } } class CB7883 : BB7883 { override int foo() out (r3) { } do { return 1; } } // Error: undefined identifier r3, did you mean variable r4? class AC7883 { int foo() out (r1) { } do { return 1; } } class BC7883 : AC7883 { override int foo() out (r2) { } do { return 1; } } class CC7883 : BC7883 { override int foo() out (r3) { } do { return 1; } } class DC7883 : CC7883 { override int foo() out (r4) { } do { return 1; } } /*******************************************/ // https://issues.dlang.org/show_bug.cgi?id=7892 struct S7892 { @disable this(); this(int x) {} } S7892 f7892() out (result) {} // case 1 do { return S7892(1); } interface I7892 { S7892 f(); } class C7892 { invariant() {} // case 2 S7892 f() { return S7892(1); } } /*******************************************/ // https://issues.dlang.org/show_bug.cgi?id=8066 struct CLCommandQueue { invariant() {} //private: int enqueueNativeKernel() { assert(0, "implement me"); } } /*******************************************/ // https://issues.dlang.org/show_bug.cgi?id=8073 struct Container8073 { int opApply (int delegate(ref int) dg) { return 0; } } class Bug8073 { static int test; int foo() out(r) { test = 7; } do { Container8073 ww; foreach( xxx ; ww ) { } return 7; } ref int bar() out { } do { Container8073 ww; foreach( xxx ; ww ) { } test = 7; return test; } } void test8073() { auto c = new Bug8073(); assert(c.foo() == 7); assert(c.test == 7); auto p = &c.bar(); assert(p == &c.test); assert(*p == 7); } /*******************************************/ // https://issues.dlang.org/show_bug.cgi?id=8093 void test8093() { static int g = 10; static int* p; enum fdo = q{ static struct S { int opApply(scope int delegate(ref int) dg) { return dg(g); } } S s; foreach (ref e; s) return g; assert(0); }; ref int foo_ref1() out(r) { assert(&r is &g && r == 10); } do { mixin(fdo); } ref int foo_ref2() do { mixin(fdo); } { auto q = &foo_ref1(); assert(q is &g && *q == 10); } { auto q = &foo_ref2(); assert(q is &g && *q == 10); } int foo_val1() out(r) { assert(&r !is &g && r == 10); } do { mixin(fdo); } int foo_val2() do { mixin(fdo); } { auto n = foo_val1(); assert(&n !is &g && n == 10); } { auto n = foo_val2(); assert(&n !is &g && n == 10); } } /*******************************************/ // https://issues.dlang.org/show_bug.cgi?id=9383 class A9383 { static void delegate() dg; static int val; void failInBase() { assert(typeid(this) is typeid(A9383)); } // in-contract tests void foo1(int i) in { A9383.val = i; failInBase; } do { } // no closure void foo2(int i) in { A9383.val = i; failInBase; } do { int x; dg = { ++x; }; } // closure [local] void foo3(int i) in { A9383.val = i; failInBase; } do { dg = { ++i; }; } // closure [parameter] void foo4(int i) in { A9383.val = i; failInBase; } do { } // no closure void foo5(int i) in { A9383.val = i; failInBase; } do { } // no closure void foo6(int i) in { A9383.val = i; failInBase; } do { int x; dg = { ++x; }; } // closure [local] void foo7(int i) in { A9383.val = i; failInBase; } do { dg = { ++i; }; } // closure [parameter] // out-contract tests void bar1(int i) out { A9383.val = i; } do { } // no closure void bar2(int i) out { A9383.val = i; } do { int x; dg = { ++x; }; } // closure [local] void bar3(int i) out { A9383.val = i; } do { dg = { ++i; }; } // closure [parameter] void bar4(int i) out { A9383.val = i; } do { } // no closure void bar5(int i) out { A9383.val = i; } do { } // no closure void bar6(int i) out { A9383.val = i; } do { int x; dg = { ++x; }; } // closure [local] void bar7(int i) out { A9383.val = i; } do { dg = { ++i; }; } // closure [parameter] } class B9383 : A9383 { static int val; // in-contract tests override void foo1(int i) in { B9383.val = i; } do { } // -> no closure override void foo2(int i) in { B9383.val = i; } do { int x; dg = { ++x; }; } // -> closure [local] appears override void foo3(int i) in { B9383.val = i; } do { dg = { ++i; }; } // -> closure [parameter] override void foo4(int i) in { B9383.val = i; } do { int x; dg = { ++x; }; } // -> closure [local] appears override void foo5(int i) in { B9383.val = i; } do { dg = { ++i; }; } // -> closure [parameter] appears override void foo6(int i) in { B9383.val = i; } do { } // -> closure [local] disappears override void foo7(int i) in { B9383.val = i; } do { } // -> closure [parameter] disappears // out-contract tests override void bar1(int i) out { B9383.val = i; } do { } // -> no closure override void bar2(int i) out { B9383.val = i; } do { int x; dg = { ++x; }; } // -> closure [local] appears override void bar3(int i) out { B9383.val = i; } do { dg = { ++i; }; } // -> closure [parameter] override void bar4(int i) out { B9383.val = i; } do { int x; dg = { ++x; }; } // -> closure [local] appears override void bar5(int i) out { B9383.val = i; } do { dg = { ++i; }; } // -> closure [parameter] appears override void bar6(int i) out { B9383.val = i; } do { } // -> closure [local] disappears override void bar7(int i) out { B9383.val = i; } do { } // -> closure [parameter] disappears } void test9383() { auto a = new A9383(); auto b = new B9383(); // base class in-contract is used from derived class. // base derived b.foo1(101); assert(A9383.val == 101 && B9383.val == 101); // no closure -> no closure b.foo2(102); assert(A9383.val == 102 && B9383.val == 102); // closure [local] -> closure [local] appears b.foo3(103); assert(A9383.val == 103 && B9383.val == 103); // closure [parameter] -> closure [parameter] b.foo4(104); assert(A9383.val == 104 && B9383.val == 104); // no closure -> closure [local] appears b.foo5(105); assert(A9383.val == 105 && B9383.val == 105); // no closure -> closure [parameter] appears b.foo6(106); assert(A9383.val == 106 && B9383.val == 106); // closure [local] -> closure [local] disappears b.foo7(107); assert(A9383.val == 107 && B9383.val == 107); // closure [parameter] -> closure [parameter] disappears // base class out-contract is used from derived class. // base derived b.bar1(101); assert(A9383.val == 101 && B9383.val == 101); // no closure -> no closure b.bar2(102); assert(A9383.val == 102 && B9383.val == 102); // closure [local] -> closure [local] appears b.bar3(103); assert(A9383.val == 103 && B9383.val == 103); // closure [parameter] -> closure [parameter] b.bar4(104); assert(A9383.val == 104 && B9383.val == 104); // no closure -> closure [local] appears b.bar5(105); assert(A9383.val == 105 && B9383.val == 105); // no closure -> closure [parameter] appears b.bar6(106); assert(A9383.val == 106 && B9383.val == 106); // closure [local] -> closure [local] disappears b.bar7(107); assert(A9383.val == 107 && B9383.val == 107); // closure [parameter] -> closure [parameter] disappears // in-contract in base class. a.foo1(101); assert(A9383.val == 101); // no closure a.foo2(102); assert(A9383.val == 102); // closure [local] a.foo3(103); assert(A9383.val == 103); // closure [parameter] // out-contract in base class. a.bar1(101); assert(A9383.val == 101); // no closure a.bar2(102); assert(A9383.val == 102); // closure [local] a.bar3(103); assert(A9383.val == 103); // closure [parameter] } /*******************************************/ // https://issues.dlang.org/show_bug.cgi?id=15524 // Different from https://issues.dlang.org/show_bug.cgi?id=9383 cases, closed variable size is bigger than REGSIZE. class A15524 { static void delegate() dg; static string val; void failInBase() { assert(typeid(this) is typeid(A15524)); } // in-contract tests void foo1(string s) in { A15524.val = s; failInBase; } do { } // no closure void foo2(string s) in { A15524.val = s; failInBase; } do { string x; dg = { x = null; }; } // closure [local] void foo3(string s) in { A15524.val = s; failInBase; } do { dg = { s = null; }; } // closure [parameter] void foo4(string s) in { A15524.val = s; failInBase; } do { } // no closure void foo5(string s) in { A15524.val = s; failInBase; } do { } // no closure void foo6(string s) in { A15524.val = s; failInBase; } do { string x; dg = { x = null; }; } // closure [local] void foo7(string s) in { A15524.val = s; failInBase; } do { dg = { s = null; }; } // closure [parameter] // out-contract tests void bar1(string s) out { A15524.val = s; } do { } // no closure void bar2(string s) out { A15524.val = s; } do { string x; dg = { x = null; }; } // closure [local] void bar3(string s) out { A15524.val = s; } do { dg = { s = null; }; } // closure [parameter] void bar4(string s) out { A15524.val = s; } do { } // no closure void bar5(string s) out { A15524.val = s; } do { } // no closure void bar6(string s) out { A15524.val = s; } do { string x; dg = { x = null; }; } // closure [local] void bar7(string s) out { A15524.val = s; } do { dg = { s = null; }; } // closure [parameter] } class B15524 : A15524 { static string val; // in-contract tests override void foo1(string s) in { B15524.val = s; } do { } // -> no closure override void foo2(string s) in { B15524.val = s; } do { string x; dg = { x = null; }; } // -> closure [local] appears override void foo3(string s) in { B15524.val = s; } do { dg = { s = null; }; } // -> closure [parameter] override void foo4(string s) in { B15524.val = s; } do { string x; dg = { x = null; }; } // -> closure [local] appears override void foo5(string s) in { B15524.val = s; } do { dg = { s = null; }; } // -> closure [parameter] appears override void foo6(string s) in { B15524.val = s; } do { } // -> closure [local] disappears override void foo7(string s) in { B15524.val = s; } do { } // -> closure [parameter] disappears // out-contract tests override void bar1(string s) out { B15524.val = s; } do { } // -> no closure override void bar2(string s) out { B15524.val = s; } do { string x; dg = { x = null; }; } // -> closure [local] appears override void bar3(string s) out { B15524.val = s; } do { dg = { s = null; }; } // -> closure [parameter] override void bar4(string s) out { B15524.val = s; } do { string x; dg = { x = null; }; } // -> closure [local] appears override void bar5(string s) out { B15524.val = s; } do { dg = { s = null; }; } // -> closure [parameter] appears override void bar6(string s) out { B15524.val = s; } do { } // -> closure [local] disappears override void bar7(string s) out { B15524.val = s; } do { } // -> closure [parameter] disappears } void test15524() { auto a = new A15524(); auto b = new B15524(); // base class in-contract is used from derived class. // base derived b.foo1("1"); assert(A15524.val == "1" && B15524.val == "1"); // no closure -> no closure b.foo2("2"); assert(A15524.val == "2" && B15524.val == "2"); // closure [local] -> closure [local] appears b.foo3("3"); assert(A15524.val == "3" && B15524.val == "3"); // closure [parameter] -> closure [parameter] b.foo4("4"); assert(A15524.val == "4" && B15524.val == "4"); // no closure -> closure [local] appears b.foo5("5"); assert(A15524.val == "5" && B15524.val == "5"); // no closure -> closure [parameter] appears b.foo6("6"); assert(A15524.val == "6" && B15524.val == "6"); // closure [local] -> closure [local] disappears b.foo7("7"); assert(A15524.val == "7" && B15524.val == "7"); // closure [parameter] -> closure [parameter] disappears // base class out-contract is used from derived class. // base derived b.bar1("1"); assert(A15524.val == "1" && B15524.val == "1"); // no closure -> no closure b.bar2("2"); assert(A15524.val == "2" && B15524.val == "2"); // closure [local] -> closure [local] appears b.bar3("3"); assert(A15524.val == "3" && B15524.val == "3"); // closure [parameter] -> closure [parameter] b.bar4("4"); assert(A15524.val == "4" && B15524.val == "4"); // no closure -> closure [local] appears b.bar5("5"); assert(A15524.val == "5" && B15524.val == "5"); // no closure -> closure [parameter] appears b.bar6("6"); assert(A15524.val == "6" && B15524.val == "6"); // closure [local] -> closure [local] disappears b.bar7("7"); assert(A15524.val == "7" && B15524.val == "7"); // closure [parameter] -> closure [parameter] disappears // in-contract in base class. a.foo1("1"); assert(A15524.val == "1"); // no closure a.foo2("2"); assert(A15524.val == "2"); // closure [local] a.foo3("3"); assert(A15524.val == "3"); // closure [parameter] // out-contract in base class. a.bar1("1"); assert(A15524.val == "1"); // no closure a.bar2("2"); assert(A15524.val == "2"); // closure [local] a.bar3("3"); assert(A15524.val == "3"); // closure [parameter] } void test15524a() { auto t1 = new Test15524a(); t1.infos["first"] = 0; //t1.add("first"); t1.add("second"); auto t2 = new Test15524b(); t2.add("second"); } class Test15524a { int[string] infos; void add(string key) in { assert(key !in infos); // @@@ crash here at second } do { auto item = new class { void notCalled() { infos[key] = 0; // affects, key parameter is made a closure variable. } }; } } class Test15524b { void add(string key) in { assert(key == "second"); // @@@ fails } do { static void delegate() dg; dg = { auto x = key; }; // affects, key parameter is made a closure variable. } } /*******************************************/ // https://issues.dlang.org/show_bug.cgi?id=10479 class B10479 { B10479 foo() out { } do { return null; } } class D10479 : B10479 { override D10479 foo() { return null; } } /*******************************************/ // https://issues.dlang.org/show_bug.cgi?id=10596 class Foo10596 { auto bar() out (result) { } do { return 0; } } /*******************************************/ // https://issues.dlang.org/show_bug.cgi?id=10721 class Foo10721 { this() out { } do { } ~this() out { } do { } } struct Bar10721 { this(this) out { } do { } } /*******************************************/ // https://issues.dlang.org/show_bug.cgi?id=10981 class C10981 { void foo(int i) pure in { assert(i); } out { assert(i); } do {} } /*******************************************/ // https://issues.dlang.org/show_bug.cgi?id=14779 class C14779 { final void foo(int v) in { assert(v == 0); } out { assert(v == 0); } do { } } void test14779() { auto c = new C14779(); c.foo(0); } /*******************************************/ // https://issues.dlang.org/show_bug.cgi?id=15984 I15984 i15984; C15984 c15984; void check15984(T)(const char* s, T this_, int i) { printf("%s this = %p, i = %d\n", s, this_, i); static if (is(T == I15984)) assert(this_ is i15984); else static if (is(T == C15984)) assert(this_ is c15984); else static assert(0); assert(i == 5); } interface I15984 { void f1(int i) in { check15984("I.f1.i", this, i); assert(0); } out { check15984("I.f1.o", this, i); } int[3] f2(int i) in { check15984("I.f2.i", this, i); assert(0); } out { check15984("I.f2.o", this, i); } void f3(int i) in { void nested() { check15984("I.f3.i", this, i); } nested(); assert(0); } out { void nested() { check15984("I.f3.o", this, i); } nested(); } void f4(out int i, lazy int j) in { } out { } } class C15984 : I15984 { void f1(int i) in { check15984("C.f1.i", this, i); } out { check15984("C.f1.o", this, i); } do { check15984("C.f1 ", this, i); } int[3] f2(int i) in { check15984("C.f2.i", this, i); } out { check15984("C.f2.o", this, i); } do { check15984("C.f2 ", this, i); return [0,0,0]; } void f3(int i) in { void nested() { check15984("C.f3.i", this, i); } nested(); } out { void nested() { check15984("C.f3.o", this, i); } nested(); } do { check15984("C.f3 ", this, i); } void f4(out int i, lazy int j) in { assert(0); } do { i = 10; } } void test15984() { c15984 = new C15984; i15984 = c15984; printf("i = %p\n", i15984); printf("c = %p\n", c15984); printf("====\n"); i15984.f1(5); printf("====\n"); i15984.f2(5); printf("====\n"); i15984.f3(5); int i; i15984.f4(i, 1); assert(i == 10); } /*******************************************/ //******************************************/ // DIP 1009 int dip1009_1(int x) in (x > 0, "x must be positive!") out (r; r < 0, "r must be negative!") in (true, "cover trailing comma case",) out (; true, "cover trailing comma case",) { return -x; } int dip1009_2(int x) in (x > 0) out (r; r < 0) { return -x; } int dip1009_3(int x) in (x > 0,) out (r; r < 0,) do { return -x; } void dip1009_4(int x) in (x > 0) out (; x > 1) { x += 1; } interface DIP1009_5 { void dip1009_5(int x) in (x > 0) out (; x > 1); } int dip1009_6(int x, int y) in (x > 0) out (r; r > 1) out (; x > 0) in (y > 0) in (x + y > 1) out (r; r > 1) { return x+y; } int dip1009_7(int x) in (x > 0) in { assert(x > 1); } out { assert(x > 2); } out (; x > 3) out (r; r > 3) { x += 2; return x; } class DIP1009_8 { private int x = 4; invariant (x > 0, "x must stay positive"); invariant (x > 1, "x must be greater than one",); invariant (x > 2); invariant (x > 3,); void foo(){ x = 5; } } /*******************************************/ int main() { test1(); test2(); test3(); test4(); test5(); // test6(); test7(); test8(); test9(); test4785(); test6417(); test6549(); test7218(); test7335(); test7517(); test8073(); test8093(); test9383(); test15524(); test15524a(); test14779(); test15984(); dip1009_1(1); dip1009_2(1); dip1009_3(1); dip1009_4(1); dip1009_6(1, 1); dip1009_7(3); new DIP1009_8().foo(); printf("Success\n"); return 0; }
D
module android.java.java.util.concurrent.PriorityBlockingQueue; public import android.java.java.util.concurrent.PriorityBlockingQueue_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!PriorityBlockingQueue; import import7 = android.java.java.util.stream.Stream; import import5 = android.java.java.lang.Class; import import4 = android.java.java.util.Spliterator; import import3 = android.java.java.util.Iterator;
D
/******************************************************************************* * Copyright (c) 2005, 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 * Stefan Xenos, IBM - bug 156790: Adopt GridLayoutFactory within JFace * Port to the D programming language: * Frank Benoit <benoit@tionex.de> *******************************************************************************/ module dwtx.jface.dialogs.PopupDialog; import dwtx.jface.dialogs.IDialogConstants; import dwtx.jface.dialogs.IDialogSettings; import dwtx.jface.dialogs.Dialog; import dwt.DWT; import dwt.events.DisposeEvent; import dwt.events.DisposeListener; import dwt.events.MouseAdapter; import dwt.events.MouseEvent; import dwt.events.SelectionAdapter; import dwt.events.SelectionEvent; import dwt.graphics.Color; import dwt.graphics.Font; import dwt.graphics.FontData; import dwt.graphics.Point; import dwt.graphics.Rectangle; import dwt.widgets.Composite; import dwt.widgets.Control; import dwt.widgets.Event; import dwt.widgets.Label; import dwt.widgets.Listener; import dwt.widgets.Menu; import dwt.widgets.Shell; import dwt.widgets.ToolBar; import dwt.widgets.ToolItem; import dwt.widgets.Tracker; import dwtx.jface.action.Action; import dwtx.jface.action.GroupMarker; import dwtx.jface.action.IAction; import dwtx.jface.action.IMenuManager; import dwtx.jface.action.MenuManager; import dwtx.jface.action.Separator; import dwtx.jface.layout.GridDataFactory; import dwtx.jface.layout.GridLayoutFactory; import dwtx.jface.resource.JFaceResources; import dwtx.jface.window.Window; import dwt.dwthelper.utils; import dwtx.dwtxhelper.Collection; import dwt.dwthelper.Runnable; /** * A lightweight, transient dialog that is popped up to show contextual or * temporal information and is easily dismissed. Clients control whether the * dialog should be able to receive input focus. An optional title area at the * top and an optional info area at the bottom can be used to provide additional * information. * <p> * Because the dialog is short-lived, most of the configuration of the dialog is * done in the constructor. Set methods are only provided for those values that * are expected to be dynamically computed based on a particular instance's * internal state. * <p> * Clients are expected to override the creation of the main dialog area, and * may optionally override the creation of the title area and info area in order * to add content. In general, however, the creation of stylistic features, such * as the dialog menu, separator styles, and fonts, is kept private so that all * popup dialogs will have a similar appearance. * * @since 3.2 */ public class PopupDialog : Window { /** * */ private static GridDataFactory LAYOUTDATA_GRAB_BOTH_; private static GridDataFactory LAYOUTDATA_GRAB_BOTH(){ if( LAYOUTDATA_GRAB_BOTH_ is null ){ synchronized( PopupDialog.classinfo ){ if( LAYOUTDATA_GRAB_BOTH_ is null ){ LAYOUTDATA_GRAB_BOTH_ = GridDataFactory.fillDefaults().grab(true,true); } } } return LAYOUTDATA_GRAB_BOTH_; } /** * The dialog settings key name for stored dialog x location. */ private static const String DIALOG_ORIGIN_X = "DIALOG_X_ORIGIN"; //$NON-NLS-1$ /** * The dialog settings key name for stored dialog y location. */ private static const String DIALOG_ORIGIN_Y = "DIALOG_Y_ORIGIN"; //$NON-NLS-1$ /** * The dialog settings key name for stored dialog width. */ private static const String DIALOG_WIDTH = "DIALOG_WIDTH"; //$NON-NLS-1$ /** * The dialog settings key name for stored dialog height. */ private static const String DIALOG_HEIGHT = "DIALOG_HEIGHT"; //$NON-NLS-1$ /** * The dialog settings key name for remembering if the persisted bounds * should be accessed. * * @deprecated Since 3.4, this is retained only for backward compatibility. */ private static final String DIALOG_USE_PERSISTED_BOUNDS = "DIALOG_USE_PERSISTED_BOUNDS"; //$NON-NLS-1$ /** * The dialog settings key name for remembering if the bounds persisted * prior to 3.4 have been migrated to the 3.4 settings. * * @since 3.4 * @deprecated This is marked deprecated at its introduction to discourage * future dependency */ private static final String DIALOG_VALUE_MIGRATED_TO_34 = "hasBeenMigratedTo34"; //$NON-NLS-1$ /** * The dialog settings key name for remembering if the persisted size should * be accessed. */ private static final String DIALOG_USE_PERSISTED_SIZE = "DIALOG_USE_PERSISTED_SIZE"; //$NON-NLS-1$ /** * The dialog settings key name for remembering if the persisted location * should be accessed. */ private static final String DIALOG_USE_PERSISTED_LOCATION = "DIALOG_USE_PERSISTED_LOCATION"; //$NON-NLS-1$ /** * Move action for the dialog. */ private class MoveAction : Action { this() { super(JFaceResources.getString("PopupDialog.move"), //$NON-NLS-1$ IAction.AS_PUSH_BUTTON); } /* * (non-Javadoc) * * @see dwtx.jface.action.IAction#run() */ public override void run() { performTrackerAction(DWT.NONE); } } /** * Resize action for the dialog. */ private class ResizeAction : Action { this() { super(JFaceResources.getString("PopupDialog.resize"), //$NON-NLS-1$ IAction.AS_PUSH_BUTTON); } /* * @see dwtx.jface.action.Action#run() */ public override void run() { performTrackerAction(DWT.RESIZE); } } /** * * Remember bounds action for the dialog. */ private class PersistBoundsAction : Action { this() { super(JFaceResources.getString("PopupDialog.persistBounds"), //$NON-NLS-1$ IAction.AS_CHECK_BOX); setChecked(persistLocation && persistSize); } /* * (non-Javadoc) * * @see dwtx.jface.action.IAction#run() */ public override void run() { persistSize = isChecked(); persistLocation = persistSize; } } /** * * Remember bounds action for the dialog. */ private class PersistSizeAction : Action { this() { super(JFaceResources.getString("PopupDialog.persistSize"), //$NON-NLS-1$ IAction.AS_CHECK_BOX); setChecked(persistSize); } /* * (non-Javadoc) * * @see dwtx.jface.action.IAction#run() */ public void run() { persistSize = isChecked(); } } /** * * Remember location action for the dialog. */ private class PersistLocationAction : Action { this() { super(JFaceResources.getString("PopupDialog.persistLocation"), //$NON-NLS-1$ IAction.AS_CHECK_BOX); setChecked(persistLocation); } /* * (non-Javadoc) * * @see dwtx.jface.action.IAction#run() */ public void run() { persistLocation = isChecked(); } } /** * Shell style appropriate for a simple hover popup that cannot get focus. * */ public const static int HOVER_SHELLSTYLE = DWT.NO_FOCUS | DWT.ON_TOP | DWT.TOOL; /** * Shell style appropriate for an info popup that can get focus. */ public const static int INFOPOPUP_SHELLSTYLE = DWT.TOOL; /** * Shell style appropriate for a resizable info popup that can get focus. */ public const static int INFOPOPUPRESIZE_SHELLSTYLE = DWT.RESIZE; /** * Margin width (in pixels) to be used in layouts inside popup dialogs * (value is 0). */ public const static int POPUP_MARGINWIDTH = 0; /** * Margin height (in pixels) to be used in layouts inside popup dialogs * (value is 0). */ public const static int POPUP_MARGINHEIGHT = 0; /** * Vertical spacing (in pixels) between cells in the layouts inside popup * dialogs (value is 1). */ public const static int POPUP_VERTICALSPACING = 1; /** * Vertical spacing (in pixels) between cells in the layouts inside popup * dialogs (value is 1). */ public const static int POPUP_HORIZONTALSPACING = 1; /** * Image registry key for menu image. * * @since 3.4 */ public static const String POPUP_IMG_MENU = "popup_menu_image"; //$NON-NLS-1$ /** * Image registry key for disabled menu image. * * @since 3.4 */ public static const String POPUP_IMG_MENU_DISABLED = "popup_menu_image_diabled"; //$NON-NLS-1$ /** * */ private static GridLayoutFactory POPUP_LAYOUT_FACTORY_; private static GridLayoutFactory POPUP_LAYOUT_FACTORY() { if( POPUP_LAYOUT_FACTORY_ is null ){ synchronized( PopupDialog.classinfo ){ if( POPUP_LAYOUT_FACTORY_ is null ){ POPUP_LAYOUT_FACTORY_ = GridLayoutFactory .fillDefaults().margins(POPUP_MARGINWIDTH, POPUP_MARGINHEIGHT) .spacing(POPUP_HORIZONTALSPACING, POPUP_VERTICALSPACING); } } } return POPUP_LAYOUT_FACTORY_; } /** * The dialog's toolbar for the move and resize capabilities. */ private ToolBar toolBar = null; /** * The dialog's menu manager. */ private MenuManager menuManager = null; /** * The control representing the main dialog area. */ private Control dialogArea; /** * Labels that contain title and info text. Cached so they can be updated * dynamically if possible. */ private Label titleLabel, infoLabel; /** * Separator controls. Cached so they can be excluded from color changes. */ private Control titleSeparator, infoSeparator; /** * Font to be used for the info area text. Computed based on the dialog's * font. */ private Font infoFont; /** * Font to be used for the title area text. Computed based on the dialog's * font. */ private Font titleFont; /** * Flags indicating whether we are listening for shell deactivate events, * either those or our parent's. Used to prevent closure when a menu command * is chosen or a secondary popup is launched. */ private bool listenToDeactivate; private bool listenToParentDeactivate; private Listener parentDeactivateListener; /** * Flag indicating whether focus should be taken when the dialog is opened. */ private bool takeFocusOnOpen = false; /** * Flag specifying whether a menu should be shown that allows the user to * move and resize. */ private bool showDialogMenu_ = false; /** * Flag specifying whether menu actions allowing the user to choose whether * the dialog bounds and location should be persisted are to be shown. */ private bool showPersistActions = false; /** * Flag specifying whether the size of the popup should be persisted. This * flag is used as initial default and updated by the menu if it is shown. */ private bool persistSize = false; /** * Flag specifying whether the location of the popup should be persisted. * This flag is used as initial default and updated by the menu if it is * shown. */ private bool persistLocation = false; /** * Flag specifying whether to use new 3.4 API instead of the old one. * * @since 3.4 */ private bool isUsing34API = true; /** * Text to be shown in an optional title area (on top). */ private String titleText; /** * Text to be shown in an optional info area (at the bottom). */ private String infoText; /** * Constructs a new instance of <code>PopupDialog</code>. * * @param parent * The parent shell. * @param shellStyle * The shell style. * @param takeFocusOnOpen * A bool indicating whether focus should be taken by this * popup when it opens. * @param persistBounds * A bool indicating whether the bounds (size and location) of * the dialog should be persisted upon close of the dialog. The * bounds can only be persisted if the dialog settings for * persisting the bounds are also specified. If a menu action * will be provided that allows the user to control this feature, * then the last known value of the user's setting will be used * instead of this flag. * @param showDialogMenu * A bool indicating whether a menu for moving and resizing * the popup should be provided. * @param showPersistActions * A bool indicating whether actions allowing the user to * control the persisting of the dialog size and location should * be shown in the dialog menu. This parameter has no effect if * <code>showDialogMenu</code> is <code>false</code>. * @param titleText * Text to be shown in an upper title area, or <code>null</code> * if there is no title. * @param infoText * Text to be shown in a lower info area, or <code>null</code> * if there is no info area. * * @see PopupDialog#getDialogSettings() * @deprecated As of 3.4, replaced by * {@link #PopupDialog(Shell, int, bool, bool, bool, bool, bool, String, String)} */ public this(Shell parent, int shellStyle, bool takeFocusOnOpen, bool persistBounds, bool showDialogMenu, bool showPersistActions, String titleText, String infoText) { this(parent, shellStyle, takeFocusOnOpen, persistBounds, persistBounds, showDialogMenu, showPersistActions, titleText, infoText, false); } /** * Constructs a new instance of <code>PopupDialog</code>. * * @param parent * The parent shell. * @param shellStyle * The shell style. * @param takeFocusOnOpen * A bool indicating whether focus should be taken by this * popup when it opens. * @param persistSize * A bool indicating whether the size should be persisted upon * close of the dialog. The size can only be persisted if the * dialog settings for persisting the bounds are also specified. * If a menu action will be provided that allows the user to * control this feature and the user hasn't changed that setting, * then this flag is used as initial default for the menu. * @param persistLocation * A bool indicating whether the location should be persisted * upon close of the dialog. The location can only be persisted * if the dialog settings for persisting the bounds are also * specified. If a menu action will be provided that allows the * user to control this feature and the user hasn't changed that * setting, then this flag is used as initial default for the * menu. default for the menu until the user changed it. * @param showDialogMenu * A bool indicating whether a menu for moving and resizing * the popup should be provided. * @param showPersistActions * A bool indicating whether actions allowing the user to * control the persisting of the dialog bounds and location * should be shown in the dialog menu. This parameter has no * effect if <code>showDialogMenu</code> is <code>false</code>. * @param titleText * Text to be shown in an upper title area, or <code>null</code> * if there is no title. * @param infoText * Text to be shown in a lower info area, or <code>null</code> * if there is no info area. * * @see PopupDialog#getDialogSettings() * * @since 3.4 */ public this(Shell parent, int shellStyle, bool takeFocusOnOpen, bool persistSize, bool persistLocation, bool showDialogMenu, bool showPersistActions, String titleText, String infoText) { this(parent, shellStyle, takeFocusOnOpen, persistSize, persistLocation, showDialogMenu, showPersistActions, titleText, infoText, true); } /** * Constructs a new instance of <code>PopupDialog</code>. * * @param parent * The parent shell. * @param shellStyle * The shell style. * @param takeFocusOnOpen * A bool indicating whether focus should be taken by this * popup when it opens. * @param persistSize * A bool indicating whether the size should be persisted upon * close of the dialog. The size can only be persisted if the * dialog settings for persisting the bounds are also specified. * If a menu action will be provided that allows the user to * control this feature and the user hasn't changed that setting, * then this flag is used as initial default for the menu. * @param persistLocation * A bool indicating whether the location should be persisted * upon close of the dialog. The location can only be persisted * if the dialog settings for persisting the bounds are also * specified. If a menu action will be provided that allows the * user to control this feature and the user hasn't changed that * setting, then this flag is used as initial default for the * menu. default for the menu until the user changed it. * @param showDialogMenu * A bool indicating whether a menu for moving and resizing * the popup should be provided. * @param showPersistActions * A bool indicating whether actions allowing the user to * control the persisting of the dialog bounds and location * should be shown in the dialog menu. This parameter has no * effect if <code>showDialogMenu</code> is <code>false</code>. * @param titleText * Text to be shown in an upper title area, or <code>null</code> * if there is no title. * @param infoText * Text to be shown in a lower info area, or <code>null</code> * if there is no info area. * @param use34API * <code>true</code> if 3.4 API should be used * * @see PopupDialog#getDialogSettings() * * @since 3.4 */ private this(Shell parent, int shellStyle, bool takeFocusOnOpen, bool persistSize, bool persistLocation, bool showDialogMenu, bool showPersistActions, String titleText, String infoText, bool use34API) { super(parent); // Prior to 3.4, we encouraged use of DWT.NO_TRIM and provided a // border using a black composite background and margin. Now we // use DWT.TOOL to get the border for some cases and this conflicts // with DWT.NO_TRIM. Clients who previously have used DWT.NO_TRIM // and still had a border drawn for them would find their border go // away unless we do the following: // see https://bugs.eclipse.org/bugs/show_bug.cgi?id=219743 if ((shellStyle & DWT.NO_TRIM) !is 0) { shellStyle &= ~(DWT.NO_TRIM | DWT.SHELL_TRIM); } setShellStyle(shellStyle); this.takeFocusOnOpen = takeFocusOnOpen; this.showDialogMenu_ = showDialogMenu_; this.showPersistActions = showPersistActions; this.titleText = titleText; this.infoText = infoText; setBlockOnOpen(false); this.isUsing34API = use34API; this.persistSize = persistSize; this.persistLocation = persistLocation; migrateBoundsSetting(); initializeWidgetState(); } /* * (non-Javadoc) * * @see dwtx.jface.window.Window#configureShell(Shell) */ protected override void configureShell(Shell shell) { GridLayoutFactory.fillDefaults().margins(0, 0).spacing(5, 5).applyTo( shell); shell.addListener(DWT.Deactivate, new class Listener { public void handleEvent(Event event) { /* * Close if we are deactivating and have no child shells. If we * have child shells, we are deactivating due to their opening. * On X, we receive this when a menu child (such as the system * menu) of the shell opens, but I have not found a way to * distinguish that case here. Hence bug #113577 still exists. */ if (listenToDeactivate && event.widget is getShell() && getShell().getShells().length is 0) { asyncClose(); } else { /* * We typically ignore deactivates to work around * platform-specific event ordering. Now that we've ignored * whatever we were supposed to, start listening to * deactivates. Example issues can be found in * https://bugs.eclipse.org/bugs/show_bug.cgi?id=123392 */ listenToDeactivate = true; } } }); // Set this true whenever we activate. It may have been turned // off by a menu or secondary popup showing. shell.addListener(DWT.Activate, new class Listener { public void handleEvent(Event event) { // ignore this event if we have launched a child if (event.widget is getShell() && getShell().getShells().length is 0) { listenToDeactivate = true; // Typically we start listening for parent deactivate after // we are activated, except on the Mac, where the deactivate // is received after activate. // See https://bugs.eclipse.org/bugs/show_bug.cgi?id=100668 listenToParentDeactivate = !"carbon".equals(DWT.getPlatform()); //$NON-NLS-1$ } } }); if ((getShellStyle() & DWT.ON_TOP) !is 0 && shell.getParent() !is null) { parentDeactivateListener = new class Listener { public void handleEvent(Event event) { if (listenToParentDeactivate) { asyncClose(); } else { // Our first deactivate, now start listening on the Mac. listenToParentDeactivate = listenToDeactivate; } } }; shell.getParent().addListener(DWT.Deactivate, parentDeactivateListener); } shell.addDisposeListener(new class DisposeListener { public void widgetDisposed(DisposeEvent event) { handleDispose(); } }); } private void asyncClose() { // workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=152010 getShell().getDisplay().asyncExec(new class Runnable { public void run() { close(); } }); } /** * The <code>PopupDialog</code> implementation of this <code>Window</code> * method creates and lays out the top level composite for the dialog. It * then calls the <code>createTitleMenuArea</code>, * <code>createDialogArea</code>, and <code>createInfoTextArea</code> * methods to create an optional title and menu area on the top, a dialog * area in the center, and an optional info text area at the bottom. * Overriding <code>createDialogArea</code> and (optionally) * <code>createTitleMenuArea</code> and <code>createTitleMenuArea</code> * are recommended rather than overriding this method. * * @param parent * the composite used to parent the contents. * * @return the control representing the contents. */ protected override Control createContents(Composite parent) { Composite composite = new Composite(parent, DWT.NONE); POPUP_LAYOUT_FACTORY.applyTo(composite); LAYOUTDATA_GRAB_BOTH.applyTo(composite); // Title area if (hasTitleArea()) { createTitleMenuArea(composite); titleSeparator = createHorizontalSeparator(composite); } // Content dialogArea = createDialogArea(composite); // Create a grid data layout data if one was not provided. // See https://bugs.eclipse.org/bugs/show_bug.cgi?id=118025 if (dialogArea.getLayoutData() is null) { LAYOUTDATA_GRAB_BOTH.applyTo(dialogArea); } // Info field if (hasInfoArea()) { infoSeparator = createHorizontalSeparator(composite); createInfoTextArea(composite); } applyColors(composite); applyFonts(composite); return composite; } /** * Creates and returns the contents of the dialog (the area below the title * area and above the info text area. * <p> * The <code>PopupDialog</code> implementation of this framework method * creates and returns a new <code>Composite</code> with standard margins * and spacing. * <p> * The returned control's layout data must be an instance of * <code>GridData</code>. This method must not modify the parent's * layout. * <p> * Subclasses must override this method but may call <code>super</code> as * in the following example: * * <pre> * Composite composite = (Composite) super.createDialogArea(parent); * //add controls to composite as necessary * return composite; * </pre> * * @param parent * the parent composite to contain the dialog area * @return the dialog area control */ protected Control createDialogArea(Composite parent) { Composite composite = new Composite(parent, DWT.NONE); POPUP_LAYOUT_FACTORY.applyTo(composite); LAYOUTDATA_GRAB_BOTH.applyTo(composite); return composite; } /** * Returns the control that should get initial focus. Subclasses may * override this method. * * @return the Control that should receive focus when the popup opens. */ protected Control getFocusControl() { return dialogArea; } /** * Sets the tab order for the popup. Clients should override to introduce * specific tab ordering. * * @param composite * the composite in which all content, including the title area * and info area, was created. This composite's parent is the * shell. */ protected void setTabOrder(Composite composite) { // default is to do nothing } /** * Returns a bool indicating whether the popup should have a title area * at the top of the dialog. Subclasses may override. Default behavior is to * have a title area if there is to be a menu or title text. * * @return <code>true</code> if a title area should be created, * <code>false</code> if it should not. */ protected bool hasTitleArea() { return titleText !is null || showDialogMenu_; } /** * Returns a bool indicating whether the popup should have an info area * at the bottom of the dialog. Subclasses may override. Default behavior is * to have an info area if info text was provided at the time of creation. * * @return <code>true</code> if a title area should be created, * <code>false</code> if it should not. */ protected bool hasInfoArea() { return infoText !is null; } /** * Creates the title and menu area. Subclasses typically need not override * this method, but instead should use the constructor parameters * <code>showDialogMenu</code> and <code>showPersistAction</code> to * indicate whether a menu should be shown, and * <code>createTitleControl</code> to to customize the presentation of the * title. * * <p> * If this method is overridden, the returned control's layout data must be * an instance of <code>GridData</code>. This method must not modify the * parent's layout. * * @param parent * The parent composite. * @return The Control representing the title and menu area. */ protected Control createTitleMenuArea(Composite parent) { Composite titleAreaComposite = new Composite(parent, DWT.NONE); POPUP_LAYOUT_FACTORY.copy().numColumns(2).applyTo(titleAreaComposite); GridDataFactory.fillDefaults().align_(DWT.FILL, DWT.CENTER).grab(true, false).applyTo(titleAreaComposite); createTitleControl(titleAreaComposite); if (showDialogMenu_) { createDialogMenu(titleAreaComposite); } return titleAreaComposite; } /** * Creates the control to be used to represent the dialog's title text. * Subclasses may override if a different control is desired for * representing the title text, or if something different than the title * should be displayed in location where the title text typically is shown. * * <p> * If this method is overridden, the returned control's layout data must be * an instance of <code>GridData</code>. This method must not modify the * parent's layout. * * @param parent * The parent composite. * @return The Control representing the title area. */ protected Control createTitleControl(Composite parent) { titleLabel = new Label(parent, DWT.NONE); GridDataFactory.fillDefaults().align_(DWT.FILL, DWT.CENTER).grab(true, false).span(showDialogMenu_ ? 1 : 2, 1).applyTo(titleLabel); if (titleText !is null) { titleLabel.setText(titleText); } return titleLabel; } /** * Creates the optional info text area. This method is only called if the * <code>hasInfoArea()</code> method returns true. Subclasses typically * need not override this method, but may do so. * * <p> * If this method is overridden, the returned control's layout data must be * an instance of <code>GridData</code>. This method must not modify the * parent's layout. * * * @param parent * The parent composite. * @return The control representing the info text area. * * @see PopupDialog#hasInfoArea() * @see PopupDialog#createTitleControl(Composite) */ protected Control createInfoTextArea(Composite parent) { // Status label infoLabel = new Label(parent, DWT.RIGHT); infoLabel.setText(infoText); GridDataFactory.fillDefaults().grab(true, false).align_(DWT.FILL, DWT.BEGINNING).applyTo(infoLabel); infoLabel.setForeground(parent.getDisplay().getSystemColor( DWT.COLOR_WIDGET_DARK_SHADOW)); return infoLabel; } /** * Create a horizontal separator for the given parent. * * @param parent * The parent composite. * @return The Control representing the horizontal separator. */ private Control createHorizontalSeparator(Composite parent) { Label separator = new Label(parent, DWT.SEPARATOR | DWT.HORIZONTAL | DWT.LINE_DOT); GridDataFactory.fillDefaults().align_(DWT.FILL, DWT.CENTER).grab(true, false).applyTo(separator); return separator; } /** * Create the dialog's menu for the move and resize actions. * * @param parent * The parent composite. */ private void createDialogMenu(Composite parent) { toolBar = new ToolBar(parent, DWT.FLAT); ToolItem viewMenuButton = new ToolItem(toolBar, DWT.PUSH, 0); GridDataFactory.fillDefaults().align_(DWT.END, DWT.CENTER).applyTo( toolBar); viewMenuButton.setImage(JFaceResources.getImage(POPUP_IMG_MENU)); viewMenuButton.setDisabledImage(JFaceResources .getImage(POPUP_IMG_MENU_DISABLED)); viewMenuButton.setToolTipText(JFaceResources .getString("PopupDialog.menuTooltip")); //$NON-NLS-1$ viewMenuButton.addSelectionListener(new class SelectionAdapter { public void widgetSelected(SelectionEvent e) { showDialogMenu(); } }); // See https://bugs.eclipse.org/bugs/show_bug.cgi?id=177183 toolBar.addMouseListener(new class MouseAdapter { public void mouseDown(MouseEvent e) { showDialogMenu(); } }); } /** * Fill the dialog's menu. Subclasses may extend or override. * * @param dialogMenu * The dialog's menu. */ protected void fillDialogMenu(IMenuManager dialogMenu) { dialogMenu.add(new GroupMarker("SystemMenuStart")); //$NON-NLS-1$ dialogMenu.add(new MoveAction()); dialogMenu.add(new ResizeAction()); if (showPersistActions) { if (isUsing34API) { dialogMenu.add(new PersistLocationAction()); dialogMenu.add(new PersistSizeAction()); } else { dialogMenu.add(new PersistBoundsAction()); } } dialogMenu.add(new Separator("SystemMenuEnd")); //$NON-NLS-1$ } /** * Perform the requested tracker action (resize or move). * * @param style * The track style (resize or move). */ private void performTrackerAction(int style) { Shell shell = getShell(); if (shell is null || shell.isDisposed()) { return; } Tracker tracker = new Tracker(shell.getDisplay(), style); tracker.setStippled(true); Rectangle[] r = [ shell.getBounds() ]; tracker.setRectangles(r); // Ignore any deactivate events caused by opening the tracker. // See https://bugs.eclipse.org/bugs/show_bug.cgi?id=120656 bool oldListenToDeactivate = listenToDeactivate; listenToDeactivate = false; if (tracker.open()) { if (shell !is null && !shell.isDisposed()) { shell.setBounds(tracker.getRectangles()[0]); } } listenToDeactivate = oldListenToDeactivate; } /** * Show the dialog's menu. This message has no effect if the receiver was * not configured to show a menu. Clients may call this method in order to * trigger the menu via keystrokes or other gestures. Subclasses typically * do not override method. */ protected void showDialogMenu() { if (!showDialogMenu_) { return; } if (menuManager is null) { menuManager = new MenuManager(); fillDialogMenu(menuManager); } // Setting this flag works around a problem that remains on X only, // whereby activating the menu deactivates our shell. listenToDeactivate = !"gtk".equals(DWT.getPlatform()); //$NON-NLS-1$ Menu menu = menuManager.createContextMenu(getShell()); Rectangle bounds = toolBar.getBounds(); Point topLeft = new Point(bounds.x, bounds.y + bounds.height); topLeft = getShell().toDisplay(topLeft); menu.setLocation(topLeft.x, topLeft.y); menu.setVisible(true); } /** * Set the text to be shown in the popup's info area. This message has no * effect if there was no info text supplied when the dialog first opened. * Subclasses may override this method. * * @param text * the text to be shown when the info area is displayed. * */ protected void setInfoText(String text) { infoText = text; if (infoLabel !is null) { infoLabel.setText(text); } } /** * Set the text to be shown in the popup's title area. This message has no * effect if there was no title label specified when the dialog was * originally opened. Subclasses may override this method. * * @param text * the text to be shown when the title area is displayed. * */ protected void setTitleText(String text) { titleText = text; if (titleLabel !is null) { titleLabel.setText(text); } } /** * Return a bool indicating whether this dialog will persist its bounds. * This value is initially set in the dialog's constructor, but can be * modified if the persist bounds action is shown on the menu and the user * has changed its value. Subclasses may override this method. * * @return <code>true</code> if the dialog's bounds will be persisted, * <code>false</code> if it will not. * * @deprecated As of 3.4, please use {@link #getPersistLocation()} or * {@link #getPersistSize()} to determine separately whether * size or location should be persisted. */ protected bool getPersistBounds() { return persistLocation && persistSize; } /** * Return a bool indicating whether this dialog will persist its * location. This value is initially set in the dialog's constructor, but * can be modified if the persist location action is shown on the menu and * the user has changed its value. Subclasses may override this method. * * @return <code>true</code> if the dialog's location will be persisted, * <code>false</code> if it will not. * * @see #getPersistSize() * @since 3.4 */ protected bool getPersistLocation() { return persistLocation; } /** * Return a bool indicating whether this dialog will persist its size. * This value is initially set in the dialog's constructor, but can be * modified if the persist size action is shown on the menu and the user has * changed its value. Subclasses may override this method. * * @return <code>true</code> if the dialog's size will be persisted, * <code>false</code> if it will not. * * @see #getPersistLocation() * @since 3.4 */ protected bool getPersistSize() { return persistSize; } /** * Opens this window, creating it first if it has not yet been created. * <p> * This method is reimplemented for special configuration of PopupDialogs. * It never blocks on open, immediately returning <code>OK</code> if the * open is successful, or <code>CANCEL</code> if it is not. It provides * framework hooks that allow subclasses to set the focus and tab order, and * avoids the use of <code>shell.open()</code> in cases where the focus * should not be given to the shell initially. * * @return the return code * * @see dwtx.jface.window.Window#open() */ public override int open() { Shell shell = getShell(); if (shell is null || shell.isDisposed()) { shell = null; // create the window create(); shell = getShell(); } // provide a hook for adjusting the bounds. This is only // necessary when there is content driven sizing that must be // adjusted each time the dialog is opened. adjustBounds(); // limit the shell size to the display size constrainShellSize(); // set up the tab order for the dialog setTabOrder(cast(Composite) getContents()); // initialize flags for listening to deactivate listenToDeactivate = false; listenToParentDeactivate = false; // open the window if (takeFocusOnOpen) { shell.open(); getFocusControl().setFocus(); } else { shell.setVisible(true); } return OK; } /** * Closes this window, disposes its shell, and removes this window from its * window manager (if it has one). * <p> * This method is extended to save the dialog bounds and initialize widget * state so that the widgets can be recreated if the dialog is reopened. * This method may be extended (<code>super.close</code> must be called). * </p> * * @return <code>true</code> if the window is (or was already) closed, and * <code>false</code> if it is still open */ public override bool close() { // If already closed, there is nothing to do. // See https://bugs.eclipse.org/bugs/show_bug.cgi?id=127505 if (getShell() is null || getShell().isDisposed()) { return true; } saveDialogBounds(getShell()); // Widgets are about to be disposed, so null out any state // related to them that was not handled in dispose listeners. // We do this before disposal so that any received activate or // deactivate events are duly ignored. initializeWidgetState(); if (parentDeactivateListener !is null) { getShell().getParent().removeListener(DWT.Deactivate, parentDeactivateListener); parentDeactivateListener = null; } return super.close(); } /** * Gets the dialog settings that should be used for remembering the bounds * of the dialog. Subclasses should override this method when they wish to * persist the bounds of the dialog. * * @return settings the dialog settings used to store the dialog's location * and/or size, or <code>null</code> if the dialog's bounds should * never be stored. */ protected IDialogSettings getDialogSettings() { return null; } /** * Saves the bounds of the shell in the appropriate dialog settings. The * bounds are recorded relative to the parent shell, if there is one, or * display coordinates if there is no parent shell. Subclasses typically * need not override this method, but may extend it (calling * <code>super.saveDialogBounds</code> if additional bounds information * should be stored. Clients may also call this method to persist the bounds * at times other than closing the dialog. * * @param shell * The shell whose bounds are to be stored */ protected void saveDialogBounds(Shell shell) { IDialogSettings settings = getDialogSettings(); if (settings !is null) { Point shellLocation = shell.getLocation(); Point shellSize = shell.getSize(); Shell parent = getParentShell(); if (parent !is null) { Point parentLocation = parent.getLocation(); shellLocation.x -= parentLocation.x; shellLocation.y -= parentLocation.y; } String prefix = this.classinfo.name; if (persistSize) { settings.put(prefix ~ DIALOG_WIDTH, shellSize.x); settings.put(prefix ~ DIALOG_HEIGHT, shellSize.y); } if (persistLocation) { settings.put(prefix ~ DIALOG_ORIGIN_X, shellLocation.x); settings.put(prefix ~ DIALOG_ORIGIN_Y, shellLocation.y); } if (showPersistActions && showDialogMenu_) { settings.put(this.classinfo.name ~ DIALOG_USE_PERSISTED_SIZE, persistSize); settings.put(this.classinfo.name ~ DIALOG_USE_PERSISTED_LOCATION, persistLocation); } } } /* * (non-Javadoc) * * @see dwtx.jface.window.Window#getInitialSize() */ protected override Point getInitialSize() { Point result = getDefaultSize(); if (persistSize) { IDialogSettings settings = getDialogSettings(); if (settings !is null) { try { int width = settings.getInt(this.classinfo.name ~ DIALOG_WIDTH); int height = settings.getInt(this.classinfo.name ~ DIALOG_HEIGHT); result = new Point(width, height); } catch (NumberFormatException e) { } } } // No attempt is made to constrain the bounds. The default // constraining behavior in Window will be used. return result; } /** * Return the default size to use for the shell. This default size is used * if the dialog does not have any persisted size to restore. The default * implementation returns the preferred size of the shell. Subclasses should * override this method when an alternate default size is desired, rather * than overriding {@link #getInitialSize()}. * * @return the initial size of the shell * * @see #getPersistSize() * @since 3.4 */ protected Point getDefaultSize() { return super.getInitialSize(); } /** * Returns the default location to use for the shell. This default location * is used if the dialog does not have any persisted location to restore. * The default implementation uses the location computed by * {@link dwtx.jface.window.Window#getInitialLocation(Point)}. * Subclasses should override this method when an alternate default location * is desired, rather than overriding {@link #getInitialLocation(Point)}. * * @param initialSize * the initial size of the shell, as returned by * <code>getInitialSize</code>. * @return the initial location of the shell * * @see #getPersistLocation() * @since 3.4 */ protected Point getDefaultLocation(Point initialSize) { return super.getInitialLocation(initialSize); } /** * Adjust the bounds of the popup as necessary prior to opening the dialog. * Default is to do nothing, which honors any bounds set directly by clients * or those that have been saved in the dialog settings. Subclasses should * override this method when there are bounds computations that must be * checked each time the dialog is opened. */ protected void adjustBounds() { } /** * (non-Javadoc) * * @see dwtx.jface.window.Window#getInitialLocation(dwt.graphics.Point) */ protected override Point getInitialLocation(Point initialSize) { Point result = getDefaultLocation(initialSize); if (persistLocation) { IDialogSettings settings = getDialogSettings(); if (settings !is null) { try { int x = settings.getInt(this.classinfo.name ~ DIALOG_ORIGIN_X); int y = settings.getInt(this.classinfo.name ~ DIALOG_ORIGIN_Y); result = new Point(x, y); // The coordinates were stored relative to the parent shell. // Convert to display coordinates. Shell parent = getParentShell(); if (parent !is null) { Point parentLocation = parent.getLocation(); result.x += parentLocation.x; result.y += parentLocation.y; } } catch (NumberFormatException e) { } } } // No attempt is made to constrain the bounds. The default // constraining behavior in Window will be used. return result; } /** * Apply any desired color to the specified composite and its children. * * @param composite * the contents composite */ private void applyColors(Composite composite) { // The getForeground() and getBackground() methods // should not answer null, but IColorProvider clients // are accustomed to null meaning use the default, so we guard // against this assumption. Color color = getForeground(); if (color is null) color = getDefaultForeground(); applyForegroundColor(color, composite, getForegroundColorExclusions()); color = getBackground(); if (color is null) color = getDefaultBackground(); applyBackgroundColor(color, composite, getBackgroundColorExclusions()); } /** * Get the foreground color that should be used for this popup. Subclasses * may override. * * @return the foreground color to be used. Should not be <code>null</code>. * * @since 3.4 * * @see #getForegroundColorExclusions() */ protected Color getForeground() { return getDefaultForeground(); } /** * Get the background color that should be used for this popup. Subclasses * may override. * * @return the background color to be used. Should not be <code>null</code>. * * @since 3.4 * * @see #getBackgroundColorExclusions() */ protected Color getBackground() { return getDefaultBackground(); } /** * Return the default foreground color used for popup dialogs. * * @return the default foreground color. */ private Color getDefaultForeground() { return getShell().getDisplay() .getSystemColor(DWT.COLOR_INFO_FOREGROUND); } /** * Return the default background color used for popup dialogs. * * @return the default background color */ private Color getDefaultBackground() { return getShell().getDisplay() .getSystemColor(DWT.COLOR_INFO_BACKGROUND); } /** * Apply any desired fonts to the specified composite and its children. * * @param composite * the contents composite */ private void applyFonts(Composite composite) { Dialog.applyDialogFont(composite); if (titleLabel !is null) { Font font = titleLabel.getFont(); FontData[] fontDatas = font.getFontData(); for (int i = 0; i < fontDatas.length; i++) { fontDatas[i].setStyle(DWT.BOLD); } titleFont = new Font(titleLabel.getDisplay(), fontDatas); titleLabel.setFont(titleFont); } if (infoLabel !is null) { Font font = infoLabel.getFont(); FontData[] fontDatas = font.getFontData(); for (int i = 0; i < fontDatas.length; i++) { fontDatas[i].setHeight(fontDatas[i].getHeight() * 9 / 10); } infoFont = new Font(infoLabel.getDisplay(), fontDatas); infoLabel.setFont(infoFont); } } /** * Set the specified foreground color for the specified control and all of * its children, except for those specified in the list of exclusions. * * @param color * the color to use as the foreground color * @param control * the control whose color is to be changed * @param exclusions * a list of controls who are to be excluded from getting their * color assigned */ private void applyForegroundColor(Color color, Control control, List exclusions) { if (!exclusions.contains(control)) { control.setForeground(color); } if ( auto comp = cast(Composite)control ) { Control[] children = comp.getChildren(); for (int i = 0; i < children.length; i++) { applyForegroundColor(color, children[i], exclusions); } } } /** * Set the specified background color for the specified control and all of * its children, except for those specified in the list of exclusions. * * @param color * the color to use as the background color * @param control * the control whose color is to be changed * @param exclusions * a list of controls who are to be excluded from getting their * color assigned */ private void applyBackgroundColor(Color color, Control control, List exclusions) { if (!exclusions.contains(control)) { control.setBackground(color); } if (auto comp = cast(Composite)control ) { Control[] children = comp.getChildren(); for (int i = 0; i < children.length; i++) { applyBackgroundColor(color, children[i], exclusions); } } } /** * Set the specified foreground color for the specified control and all of * its children. Subclasses may override this method, but typically do not. * If a subclass wishes to exclude a particular control in its contents from * getting the specified foreground color, it may instead override * {@link #getForegroundColorExclusions()}. * * @param color * the color to use as the foreground color * @param control * the control whose color is to be changed * @see PopupDialog#getForegroundColorExclusions() */ protected void applyForegroundColor(Color color, Control control) { applyForegroundColor(color, control, getForegroundColorExclusions()); } /** * Set the specified background color for the specified control and all of * its children. Subclasses may override this method, but typically do not. * If a subclass wishes to exclude a particular control in its contents from * getting the specified background color, it may instead override * {@link #getBackgroundColorExclusions()} * * @param color * the color to use as the background color * @param control * the control whose color is to be changed * @see PopupDialog#getBackgroundColorExclusions() */ protected void applyBackgroundColor(Color color, Control control) { applyBackgroundColor(color, control, getBackgroundColorExclusions()); } /** * Return a list of controls which should never have their foreground color * reset. Subclasses may extend this method, but should always call * <code>super.getForegroundColorExclusions</code> to aggregate the list. * * * @return the List of controls */ protected List getForegroundColorExclusions() { List list = new ArrayList(3); if (infoLabel !is null) { list.add(infoLabel); } if (titleSeparator !is null) { list.add(titleSeparator); } if (infoSeparator !is null) { list.add(infoSeparator); } return list; } /** * Return a list of controls which should never have their background color * reset. Subclasses may extend this method, but should always call * <code>super.getBackgroundColorExclusions</code> to aggregate the list. * * @return the List of controls */ protected List getBackgroundColorExclusions() { List list = new ArrayList(2); if (titleSeparator !is null) { list.add(titleSeparator); } if (infoSeparator !is null) { list.add(infoSeparator); } return list; } /** * Initialize any state related to the widgetry that should be set up each * time widgets are created. */ private void initializeWidgetState() { menuManager = null; dialogArea = null; titleLabel = null; titleSeparator = null; infoSeparator = null; infoLabel = null; toolBar = null; // If the menu item for persisting bounds is displayed, use the stored // value to determine whether any persisted bounds should be honored at // all. if (showDialogMenu_ && showPersistActions) { IDialogSettings settings = getDialogSettings(); if (settings !is null) { String key = this.classinfo.name ~ DIALOG_USE_PERSISTED_SIZE; if (settings.get(key) !is null || !isUsing34API) persistSize = settings.getBoolean(key); key = this.classinfo.name ~ DIALOG_USE_PERSISTED_LOCATION; if (settings.get(key) !is null || !isUsing34API) persistLocation = settings.getBoolean(key); } } } private void migrateBoundsSetting() { IDialogSettings settings = getDialogSettings(); if (settings is null) return; final String className = this.classinfo.name; String key = className ~ DIALOG_USE_PERSISTED_BOUNDS; String value = settings.get(key); if (value is null || DIALOG_VALUE_MIGRATED_TO_34.equals(value)) return; bool storeBounds = settings.getBoolean(key); settings.put(className ~ DIALOG_USE_PERSISTED_LOCATION, storeBounds); settings.put(className ~ DIALOG_USE_PERSISTED_SIZE, storeBounds); settings.put(key, DIALOG_VALUE_MIGRATED_TO_34); } /** * The dialog is being disposed. Dispose of any resources allocated. * */ private void handleDispose() { if (infoFont !is null && !infoFont.isDisposed()) { infoFont.dispose(); } infoFont = null; if (titleFont !is null && !titleFont.isDisposed()) { titleFont.dispose(); } titleFont = null; } }
D
/******************************************************************************* DLS node connection registry Copyright: Copyright (c) 2010-2017 dunnhumby Germany GmbH. All rights reserved. License: Boost Software License Version 1.0. See LICENSE.txt for details. *******************************************************************************/ module dlsproto.client.legacy.internal.registry.DlsNodeRegistry; /****************************************************************************** Imports *******************************************************************************/ import ocean.meta.types.Qualifiers; import ocean.core.Verify; import swarm.client.ClientCommandParams; import swarm.client.registry.NodeRegistry; import swarm.client.registry.NodeSet; import swarm.client.connection.RequestOverflow; import dlsproto.client.legacy.internal.connection.SharedResources; import dlsproto.client.legacy.internal.connection.model.IDlsNodeConnectionPoolInfo; import dlsproto.client.legacy.internal.registry.model.IDlsNodeRegistryInfo; import dlsproto.client.legacy.internal.connection.DlsRequestConnection, dlsproto.client.legacy.internal.connection.DlsNodeConnectionPool; import dlsproto.client.legacy.internal.request.params.RequestParams; import swarm.client.request.context.RequestContext; import dlsproto.client.legacy.DlsConst; import dlsproto.client.legacy.internal.DlsClientExceptions; import ocean.io.select.EpollSelectDispatcher; import ocean.core.Enforce; import ocean.io.compress.lzo.LzoChunkCompressor; debug ( SwarmClient ) import ocean.io.Stdout; /****************************************************************************** DlsNodeRegistry Registry of DLS node socket connections pools with one connection pool for each DLS node. *******************************************************************************/ public class DlsNodeRegistry : NodeRegistry, IDlsNodeRegistryInfo { /*************************************************************************** Number of expected nodes in the registry. Used to initialise the registry's hash map. ***************************************************************************/ private static immutable expected_nodes = 100; /*************************************************************************** Index of the next node to assign a single-node request to. ***************************************************************************/ private size_t current_node_index = 0; /*************************************************************************** Indicator if the handshake has been started. ***************************************************************************/ private bool handshake_initiated = false; /*************************************************************************** Shared resources instance. Owned by this class and passed to all node connection pools. ***************************************************************************/ protected SharedResources shared_resources; /*************************************************************************** Lzo chunk de/compressor shared by all connections and request handlers. ***************************************************************************/ protected LzoChunkCompressor lzo; /*************************************************************************** Exceptions thrown on error. ***************************************************************************/ private VersionException version_exception; private RangesNotQueriedException ranges_not_queried_exception; private NodeOverlapException node_overlap_exception; private RegistryLockedException registry_locked_exception; /*************************************************************************** Constructor Params: epoll = selector dispatcher instance to register the socket and I/O events settings = client settings instance request_overflow = overflow handler for requests which don't fit in the request queue error_reporter = error reporter instance to notify on error or timeout ***************************************************************************/ public this ( EpollSelectDispatcher epoll, ClientSettings settings, IRequestOverflow request_overflow, INodeConnectionPoolErrorReporter error_reporter ) { super(epoll, settings, request_overflow, new NodeSet(this.expected_nodes), error_reporter); this.version_exception = new VersionException; this.ranges_not_queried_exception = new RangesNotQueriedException; this.node_overlap_exception = new NodeOverlapException; this.registry_locked_exception = new RegistryLockedException; this.shared_resources = new SharedResources; this.lzo = new LzoChunkCompressor; } /*************************************************************************** Creates a new instance of the DLS node request pool class. Params: address = node address port = node service port Returns: new NodeConnectionPool instance ***************************************************************************/ override protected NodeConnectionPool newConnectionPool ( mstring address, ushort port ) { return new DlsNodeConnectionPool(this.settings, this.epoll, address, port, this.lzo, this.request_overflow, this.shared_resources, this.error_reporter); } /*************************************************************************** Gets the connection pool which is responsible for the given request. Params: params = request parameters Returns: connection pool responsible for request (null if none found) ***************************************************************************/ override protected NodeConnectionPool getResponsiblePool ( IRequestParams params ) { if ( params.node.set() ) { auto pool = super.inRegistry(params.node.Address, params.node.Port); return pool is null ? null : *pool; } auto dls_params = cast(RequestParams)params; auto target_pool = this.nodes.list[this.current_node_index]; current_node_index = (this.current_node_index + 1) % this.nodes.list.length; return cast(DlsNodeConnectionPool)target_pool; } /*************************************************************************** Determines whether the given request params describe a request which should be sent to all nodes simultaneously. Multi-node requests which have not been assigned with a particular node specified are sent to all nodes. Params: params = request parameters Returns: true if the request should be added to all nodes ***************************************************************************/ override public bool allNodesRequest ( IRequestParams params ) { with ( DlsConst.Command.E ) switch ( params.command ) { // Commands over all nodes case GetAll: case GetAllFilter: case GetChannels: case GetRange: case GetRangeFilter: case GetRangeRegex: case RemoveChannel: case GetNumConnections: case GetVersion: case Redistribute: return !params.node.set(); // Commands over a single node case Put: case PutBatch: return false; default: assert(false, typeof(this).stringof ~ ".allNodesRequest: invalid request"); } } /*************************************************************************** Adds a request to the individual node specified. If the handshake was started and request being assigned is not GetVersion, then the node's API version is checked before assigning and an exception thrown if it is either unknown or does not match the client's. Params: params = request parameters node_conn_pool = node connection pool to assign request to Throws: if the request is not GetVersion and the node's API version is not ok -- handled by the caller (assignToNode(), in the super class) ***************************************************************************/ override protected void assignToNode_ ( IRequestParams params, NodeConnectionPool node_conn_pool ) { auto dls_conn_pool = (cast(DlsNodeConnectionPool)node_conn_pool); verify(dls_conn_pool !is null); if ( params.command != DlsConst.Command.E.GetVersion ) { enforce(this.version_exception, !this.handshake_initiated || dls_conn_pool.api_version_ok); } super.assignToNode_(params, node_conn_pool); } /*************************************************************************** Checks the API version for a node. The received API version must be the same as the version this client is compiled with. Params: address = address of node to set hash range for port = port of node to set hash range for api = API version reported by node Throws: VersionException if the node's API version does not match the client's ***************************************************************************/ public void setNodeAPIVersion ( mstring address, ushort port, cstring api ) { auto conn_pool = super.inRegistry(address, port); verify(conn_pool !is null, "node not in registry"); auto dls_conn_pool = (cast(DlsNodeConnectionPool*)conn_pool); dls_conn_pool.setAPIVerison(api); } /*************************************************************************** Tells if the client is ready to send requests to all nodes in the registry (i.e. they have all responded successfully to the handshake). Returns: true if all node API versions are known. false otherwise. ***************************************************************************/ public bool all_nodes_ok ( ) { // Since handshake is optional, this will report all nodes // being ok if the handshake has not been performed, // or if the handshake is performed and all received versions // are compatible auto succeeded = !this.handshake_initiated || this.all_versions_ok; debug ( SwarmClient ) Stderr.formatln("DlsNodeRegistry.all_nodes_ok={} ", succeeded); return succeeded; } /************************************************************************** foreach iterator over connection pool info interfaces. **************************************************************************/ public int opApply ( scope int delegate ( ref IDlsNodeConnectionPoolInfo ) dg ) { int ret; foreach ( DlsNodeConnectionPool connpool; this ) { auto info = cast(IDlsNodeConnectionPoolInfo)connpool; ret = dg(info); if ( ret ) break; } return ret; } /*************************************************************************** Informs the registry that the handshake has been initiated. ***************************************************************************/ public void handshakeInitiated () { this.handshake_initiated = true; } /*************************************************************************** Returns: true if all nodes support the correct API version or false if there are nodes in the registry whose API version is currently unknown or mismatched. ***************************************************************************/ private bool all_versions_ok ( ) { foreach ( DlsNodeConnectionPool connpool; this ) { if ( !connpool.api_version_ok ) return false; } return true; } /*************************************************************************** foreach iterator over the connection pools in the registry. ***************************************************************************/ private int opApply ( scope int delegate ( ref DlsNodeConnectionPool ) dg ) { int res; foreach ( pool; this.nodes.list ) { auto dls_pool = cast(DlsNodeConnectionPool)pool; res = dg(dls_pool); if ( res ) break; } return res; } /*************************************************************************** foreach iterator over the connection pools in the registry along with their indices in the list of connection pools. ***************************************************************************/ private int opApply ( scope int delegate ( ref size_t, ref DlsNodeConnectionPool ) dg ) { int res; size_t i; foreach ( nodeitem, pool; this.nodes.list ) { auto dls_pool = cast(DlsNodeConnectionPool)pool; res = dg(i, dls_pool); i++; if ( res ) break; } return res; } }
D
instance Mod_7351_OUT_Ranck_REL (Npc_Default) { // ------ NSC ------ name = "Ranck"; guild = GIL_OUT; id = 7351; voice = 0; flags = 0; //NPC_FLAG_IMMORTAL oder 0 npctype = NPCTYPE_MAIN; // ------ Attribute ------ B_SetAttributesToChapter (self, 1); //setzt Attribute und LEVEL entsprechend dem angegebenen Kapitel (1-6) // ------ Kampf-Taktik ------ fight_tactic = FAI_HUMAN_COWARD; // MASTER / STRONG / COWARD // ------ Equippte Waffen ------ //Munition wird automatisch generiert, darf aber angegeben werden EquipItem (self, ItMw_1h_Bau_Mace); // ------ Inventory ------ B_CreateAmbientInv (self); // ------ visuals ------ //Muss NACH Attributen kommen, weil in B_SetNpcVisual die Breite abh. v. STR skaliert wird B_SetNpcVisual (self, MALE, "Hum_Head_Bald", Face_P_Weak_Cutter, BodyTex_P, ITAR_VLK_M); Mdl_SetModelFatness (self, 1); Mdl_ApplyOverlayMds (self, "Humans_Relaxed.mds"); // Tired / Militia / Mage / Arrogance / Relaxed // ------ NSC-relevante Talente vergeben ------ B_GiveNpcTalents (self); // ------ Kampf-Talente ------ //Der enthaltene B_AddFightSkill setzt Talent-Ani abhängig von TrefferChance% - alle Kampftalente werden gleichhoch gesetzt B_SetFightSkills (self, 0); //Grenzen für Talent-Level liegen bei 30 und 60 // ------ TA anmelden ------ daily_routine = Rtn_PreStart_7351; }; FUNC VOID Rtn_PreStart_7351 () { TA_Stand_ArmsCrossed (08,00,22,00,"REL_CITY_110"); TA_Stand_ArmsCrossed (22,00,08,00,"REL_CITY_110"); }; FUNC VOID Rtn_Flee_7351 () { TA_FleeToWP (08,00,22,00,"TOT"); TA_FleeToWP (22,00,08,00,"TOT"); }; FUNC VOID Rtn_TOT_7351 () { TA_Stand_ArmsCrossed (08,00,22,00,"TOT"); TA_Sleep (22,00,08,00,"TOT"); };
D
import std.stdio; import std.regex; import std.format; import std.string; void main(string[] args) { if (args.length < 2) { throw new Exception("need input"); } char[] input = args[1].dup(); auto rxIOL = ctRegex!(`[iol]`); auto rxPair = ctRegex!(`([a-z])\1`); bool valid = false; while (!valid) { //writefln("trying %s", input); input[input.length - 1]++; for (ulong i = input.length - 1; i > 0; i--) { if (input[i] > 'z') { input[i] = 'a'; input[i-1]++; } } bool hasIOL = !!matchFirst(input, rxIOL); bool hasSequence = false; foreach (ulong i; 0 .. input.length - 2) { if (input[i+1] == input[i] + 1 && input[i+2] == input[i] + 2) { //writefln("matched %s %s %s", input[i], input[i+1], input[i+2]); hasSequence = true; } } bool hasPairs = false; Captures!(char[]) cap = matchFirst(input, rxPair); if (cap) { Regex!char rxOtherPair = regex(format("([^%s])\\1", cap[1])); if (matchFirst(input, rxOtherPair)) { hasPairs = true; } } /* if (hasIOL) { writeln("failed - has IOL"); } if (!hasSequence) { writeln("failed - no sequence"); } if (!hasPairs) { writeln("failed - doesn't have pairs"); } */ valid = !hasIOL && hasSequence && hasPairs; } writefln("pw: %s", input); }
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.opengl3.arb; private { import derelict.opengl3.types; import derelict.opengl3.constants; import derelict.opengl3.internal; } // Part of ARB_sync enum ulong GL_TIMEOUT_IGNORED = 0xFFFFFFFFFFFFFFFF; enum : uint { // ARB_depth_buffer_float GL_DEPTH_COMPONENT32F = 0x8CAC, GL_DEPTH32F_STENCIL8 = 0x8CAD, GL_FLOAT_32_UNSIGNED_INT_24_8_REV = 0x8DAD, // ARB_framebuffer_object GL_INVALID_FRAMEBUFFER_OPERATION = 0x0506, GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING = 0x8210, GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE = 0x8211, GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE = 0x8212, GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE = 0x8213, GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE = 0x8214, GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE = 0x8215, GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE = 0x8216, GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE = 0x8217, GL_FRAMEBUFFER_DEFAULT = 0x8218, GL_FRAMEBUFFER_UNDEFINED = 0x8219, GL_DEPTH_STENCIL_ATTACHMENT = 0x821A, GL_MAX_RENDERBUFFER_SIZE = 0x84E8, GL_DEPTH_STENCIL = 0x84F9, GL_UNSIGNED_INT_24_8 = 0x84FA, GL_DEPTH24_STENCIL8 = 0x88F0, GL_TEXTURE_STENCIL_SIZE = 0x88F1, GL_TEXTURE_RED_TYPE = 0x8C10, GL_TEXTURE_GREEN_TYPE = 0x8C11, GL_TEXTURE_BLUE_TYPE = 0x8C12, GL_TEXTURE_ALPHA_TYPE = 0x8C13, GL_TEXTURE_DEPTH_TYPE = 0x8C16, GL_UNSIGNED_NORMALIZED = 0x8C17, GL_FRAMEBUFFER_BINDING = 0x8CA6, GL_DRAW_FRAMEBUFFER_BINDING = GL_FRAMEBUFFER_BINDING, GL_RENDERBUFFER_BINDING = 0x8CA7, GL_READ_FRAMEBUFFER = 0x8CA8, GL_DRAW_FRAMEBUFFER = 0x8CA9, GL_READ_FRAMEBUFFER_BINDING = 0x8CAA, GL_RENDERBUFFER_SAMPLES = 0x8CAB, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1, GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2, GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3, GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER = 0x8CD4, GL_FRAMEBUFFER_COMPLETE = 0x8CD5, GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6, GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7, GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER = 0x8CDB, GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER = 0x8CDC, GL_FRAMEBUFFER_UNSUPPORTED = 0x8CDD, GL_MAX_COLOR_ATTACHMENTS = 0x8CDF, GL_COLOR_ATTACHMENT0 = 0x8CE0, GL_COLOR_ATTACHMENT1 = 0x8CE1, GL_COLOR_ATTACHMENT2 = 0x8CE2, GL_COLOR_ATTACHMENT3 = 0x8CE3, GL_COLOR_ATTACHMENT4 = 0x8CE4, GL_COLOR_ATTACHMENT5 = 0x8CE5, GL_COLOR_ATTACHMENT6 = 0x8CE6, GL_COLOR_ATTACHMENT7 = 0x8CE7, GL_COLOR_ATTACHMENT8 = 0x8CE8, GL_COLOR_ATTACHMENT9 = 0x8CE9, GL_COLOR_ATTACHMENT10 = 0x8CEA, GL_COLOR_ATTACHMENT11 = 0x8CEB, GL_COLOR_ATTACHMENT12 = 0x8CEC, GL_COLOR_ATTACHMENT13 = 0x8CED, GL_COLOR_ATTACHMENT14 = 0x8CEE, GL_COLOR_ATTACHMENT15 = 0x8CEF, GL_DEPTH_ATTACHMENT = 0x8D00, GL_STENCIL_ATTACHMENT = 0x8D20, GL_FRAMEBUFFER = 0x8D40, GL_RENDERBUFFER = 0x8D41, GL_RENDERBUFFER_WIDTH = 0x8D42, GL_RENDERBUFFER_HEIGHT = 0x8D43, GL_RENDERBUFFER_INTERNAL_FORMAT = 0x8D44, GL_STENCIL_INDEX1 = 0x8D46, GL_STENCIL_INDEX4 = 0x8D47, GL_STENCIL_INDEX8 = 0x8D48, GL_STENCIL_INDEX16 = 0x8D49, GL_RENDERBUFFER_RED_SIZE = 0x8D50, GL_RENDERBUFFER_GREEN_SIZE = 0x8D51, GL_RENDERBUFFER_BLUE_SIZE = 0x8D52, GL_RENDERBUFFER_ALPHA_SIZE = 0x8D53, GL_RENDERBUFFER_DEPTH_SIZE = 0x8D54, GL_RENDERBUFFER_STENCIL_SIZE = 0x8D55, GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE = 0x8D56, GL_MAX_SAMPLES = 0x8D57, // ARB_framebuffer_sRGB GL_FRAMEBUFFER_SRGB = 0x8DB9, // ARB_half_float_vertex GL_HALF_FLOAT = 0x140B, // ARB_map_buffer_range GL_MAP_READ_BIT = 0x0001, GL_MAP_WRITE_BIT = 0x0002, GL_MAP_INVALIDATE_RANGE_BIT = 0x0004, GL_MAP_INVALIDATE_BUFFER_BIT = 0x0008, GL_MAP_FLUSH_EXPLICIT_BIT = 0x0010, GL_MAP_UNSYNCHRONIZED_BIT = 0x0020, // ARB_texture_compression_rgtc GL_COMPRESSED_RED_RGTC1 = 0x8DBB, GL_COMPRESSED_SIGNED_RED_RGTC1 = 0x8DBC, GL_COMPRESSED_RG_RGTC2 = 0x8DBD, GL_COMPRESSED_SIGNED_RG_RGTC2 = 0x8DBE, // ARB_texture_rg GL_RG = 0x8227, GL_RG_INTEGER = 0x8228, GL_R8 = 0x8229, GL_R16 = 0x822A, GL_RG8 = 0x822B, GL_RG16 = 0x822C, GL_R16F = 0x822D, GL_R32F = 0x822E, GL_RG16F = 0x822F, GL_RG32F = 0x8230, GL_R8I = 0x8231, GL_R8UI = 0x8232, GL_R16I = 0x8233, GL_R16UI = 0x8234, GL_R32I = 0x8235, GL_R32UI = 0x8236, GL_RG8I = 0x8237, GL_RG8UI = 0x8238, GL_RG16I = 0x8239, GL_RG16UI = 0x823A, GL_RG32I = 0x823B, GL_RG32UI = 0x823C, // ARB_vertex_array_object GL_VERTEX_ARRAY_BINDING = 0x85B5, // ARB_uniform_buffer_object GL_UNIFORM_BUFFER = 0x8A11, GL_UNIFORM_BUFFER_BINDING = 0x8A28, GL_UNIFORM_BUFFER_START = 0x8A29, GL_UNIFORM_BUFFER_SIZE = 0x8A2A, GL_MAX_VERTEX_UNIFORM_BLOCKS = 0x8A2B, GL_MAX_GEOMETRY_UNIFORM_BLOCKS = 0x8A2C, GL_MAX_FRAGMENT_UNIFORM_BLOCKS = 0x8A2D, GL_MAX_COMBINED_UNIFORM_BLOCKS = 0x8A2E, GL_MAX_UNIFORM_BUFFER_BINDINGS = 0x8A2F, GL_MAX_UNIFORM_BLOCK_SIZE = 0x8A30, GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS = 0x8A31, GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS = 0x8A32, GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS = 0x8A33, GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT = 0x8A34, GL_ACTIVE_UNIFORM_BLOCK_MAX_NAME_LENGTH = 0x8A35, GL_ACTIVE_UNIFORM_BLOCKS = 0x8A36, GL_UNIFORM_TYPE = 0x8A37, GL_UNIFORM_SIZE = 0x8A38, GL_UNIFORM_NAME_LENGTH = 0x8A39, GL_UNIFORM_BLOCK_INDEX = 0x8A3A, GL_UNIFORM_OFFSET = 0x8A3B, GL_UNIFORM_ARRAY_STRIDE = 0x8A3C, GL_UNIFORM_MATRIX_STRIDE = 0x8A3D, GL_UNIFORM_IS_ROW_MAJOR = 0x8A3E, GL_UNIFORM_BLOCK_BINDING = 0x8A3F, GL_UNIFORM_BLOCK_DATA_SIZE = 0x8A40, GL_UNIFORM_BLOCK_NAME_LENGTH = 0x8A41, GL_UNIFORM_BLOCK_ACTIVE_UNIFORMS = 0x8A42, GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES = 0x8A43, GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER = 0x8A44, GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER = 0x8A45, GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER = 0x8A46, GL_INVALID_INDEX = 0xFFFFFFFFu, // ARB_copy_buffer GL_COPY_READ_BUFFER = 0x8F36, GL_COPY_WRITE_BUFFER = 0x8F37, // ARB_depth_clamp GL_DEPTH_CLAMP = 0x864F, // ARB_provoking_vertex GL_QUADS_FOLLOW_PROVOKING_VERTEX_CONVENTION = 0x8E4C, GL_FIRST_VERTEX_CONVENTION = 0x8E4D, GL_LAST_VERTEX_CONVENTION = 0x8E4E, GL_PROVOKING_VERTEX = 0x8E4F, // ARB_seamless_cube_map GL_TEXTURE_CUBE_MAP_SEAMLESS = 0x884F, // ARB_sync GL_MAX_SERVER_WAIT_TIMEOUT = 0x9111, GL_OBJECT_TYPE = 0x9112, GL_SYNC_CONDITION = 0x9113, GL_SYNC_STATUS = 0x9114, GL_SYNC_FLAGS = 0x9115, GL_SYNC_FENCE = 0x9116, GL_SYNC_GPU_COMMANDS_COMPLETE = 0x9117, GL_UNSIGNALED = 0x9118, GL_SIGNALED = 0x9119, GL_ALREADY_SIGNALED = 0x911A, GL_TIMEOUT_EXPIRED = 0x911B, GL_CONDITION_SATISFIED = 0x911C, GL_WAIT_FAILED = 0x911D, GL_SYNC_FLUSH_COMMANDS_BIT = 0x00000001, // ARB_texture_multisample GL_SAMPLE_POSITION = 0x8E50, GL_SAMPLE_MASK = 0x8E51, GL_SAMPLE_MASK_VALUE = 0x8E52, GL_MAX_SAMPLE_MASK_WORDS = 0x8E59, GL_TEXTURE_2D_MULTISAMPLE = 0x9100, GL_PROXY_TEXTURE_2D_MULTISAMPLE = 0x9101, GL_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9102, GL_PROXY_TEXTURE_2D_MULTISAMPLE_ARRAY = 0x9103, GL_TEXTURE_BINDING_2D_MULTISAMPLE = 0x9104, GL_TEXTURE_BINDING_2D_MULTISAMPLE_ARRAY = 0x9105, GL_TEXTURE_SAMPLES = 0x9106, GL_TEXTURE_FIXED_SAMPLE_LOCATIONS = 0x9107, GL_SAMPLER_2D_MULTISAMPLE = 0x9108, GL_INT_SAMPLER_2D_MULTISAMPLE = 0x9109, GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE = 0x910A, GL_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910B, GL_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910C, GL_UNSIGNED_INT_SAMPLER_2D_MULTISAMPLE_ARRAY = 0x910D, GL_MAX_COLOR_TEXTURE_SAMPLES = 0x910E, GL_MAX_DEPTH_TEXTURE_SAMPLES = 0x910F, GL_MAX_INTEGER_SAMPLES = 0x9110, // ARB_sample_shading GL_SAMPLE_SHADING_ARB = 0x8C36, GL_MIN_SAMPLE_SHADING_VALUE_ARB = 0x8C37, // ARB_texture_cube_map_array GL_TEXTURE_CUBE_MAP_ARRAY_ARB = 0x9009, GL_TEXTURE_BINDING_CUBE_MAP_ARRAY_ARB = 0x900A, GL_PROXY_TEXTURE_CUBE_MAP_ARRAY_ARB = 0x900B, GL_SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900C, GL_SAMPLER_CUBE_MAP_ARRAY_SHADOW_ARB = 0x900D, GL_INT_SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900E, GL_UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY_ARB = 0x900F, // ARB_texture_gather GL_MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB = 0x8E5E, GL_MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB = 0x8E5F, // ARB_shading_language_include GL_SHADER_INCLUDE_ARB = 0x8DAE, GL_NAMED_STRING_LENGTH_ARB = 0x8DE9, GL_NAMED_STRING_TYPE_ARB = 0x8DEA, // ARB_texture_compression_bptc GL_COMPRESSED_RGBA_BPTC_UNORM_ARB = 0x8E8C, GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB = 0x8E8D, GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB = 0x8E8E, GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB = 0x8E8F, // ARB_blend_func_extended GL_SRC1_COLOR = 0x88F9, GL_ONE_MINUS_SRC1_COLOR = 0x88FA, GL_ONE_MINUS_SRC1_ALPHA = 0x88FB, GL_MAX_DUAL_SOURCE_DRAW_BUFFERS = 0x88FC, // ARB_occlusion_query2 GL_ANY_SAMPLES_PASSED = 0x8C2F, // ARB_sampler_objects GL_SAMPLER_BINDING = 0x8919, // ARB_texture_rgb10_a2ui GL_RGB10_A2UI = 0x906F, // ARB_texture_swizzle GL_TEXTURE_SWIZZLE_R = 0x8E42, GL_TEXTURE_SWIZZLE_G = 0x8E43, GL_TEXTURE_SWIZZLE_B = 0x8E44, GL_TEXTURE_SWIZZLE_A = 0x8E45, GL_TEXTURE_SWIZZLE_RGBA = 0x8E46, // ARB_timer_query GL_TIME_ELAPSED = 0x88BF, GL_TIMESTAMP = 0x8E28, // ARB_vertex_type_2_10_10_10_rev GL_INT_2_10_10_10_REV = 0x8D9F, // ARB_draw_indirect GL_DRAW_INDIRECT_BUFFER = 0x8F3F, GL_DRAW_INDIRECT_BUFFER_BINDING = 0x8F43, // ARB_gpu_shader5 GL_GEOMETRY_SHADER_INVOCATIONS = 0x887F, GL_MAX_GEOMETRY_SHADER_INVOCATIONS = 0x8E5A, GL_MIN_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5B, GL_MAX_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5C, GL_FRAGMENT_INTERPOLATION_OFFSET_BITS = 0x8E5D, // ARB_gpu_shader_fp64 GL_DOUBLE_VEC2 = 0x8FFC, GL_DOUBLE_VEC3 = 0x8FFD, GL_DOUBLE_VEC4 = 0x8FFE, GL_DOUBLE_MAT2 = 0x8F46, GL_DOUBLE_MAT3 = 0x8F47, GL_DOUBLE_MAT4 = 0x8F48, GL_DOUBLE_MAT2x3 = 0x8F49, GL_DOUBLE_MAT2x4 = 0x8F4A, GL_DOUBLE_MAT3x2 = 0x8F4B, GL_DOUBLE_MAT3x4 = 0x8F4C, GL_DOUBLE_MAT4x2 = 0x8F4D, GL_DOUBLE_MAT4x3 = 0x8F4E, // ARB_shader_subroutine GL_ACTIVE_SUBROUTINES = 0x8DE5, GL_ACTIVE_SUBROUTINE_UNIFORMS = 0x8DE6, GL_ACTIVE_SUBROUTINE_UNIFORM_LOCATIONS = 0x8E47, GL_ACTIVE_SUBROUTINE_MAX_LENGTH = 0x8E48, GL_ACTIVE_SUBROUTINE_UNIFORM_MAX_LENGTH = 0x8E49, GL_MAX_SUBROUTINES = 0x8DE7, GL_MAX_SUBROUTINE_UNIFORM_LOCATIONS = 0x8DE8, GL_NUM_COMPATIBLE_SUBROUTINES = 0x8E4A, GL_COMPATIBLE_SUBROUTINES = 0x8E4B, // ARB_tessellation_shader GL_PATCHES = 0x000E, GL_PATCH_VERTICES = 0x8E72, GL_PATCH_DEFAULT_INNER_LEVEL = 0x8E73, GL_PATCH_DEFAULT_OUTER_LEVEL = 0x8E74, GL_TESS_CONTROL_OUTPUT_VERTICES = 0x8E75, GL_TESS_GEN_MODE = 0x8E76, GL_TESS_GEN_SPACING = 0x8E77, GL_TESS_GEN_VERTEX_ORDER = 0x8E78, GL_TESS_GEN_POINT_MODE = 0x8E79, GL_ISOLINES = 0x8E7A, GL_FRACTIONAL_ODD = 0x8E7B, GL_FRACTIONAL_EVEN = 0x8E7C, GL_MAX_PATCH_VERTICES = 0x8E7D, GL_MAX_TESS_GEN_LEVEL = 0x8E7E, GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E7F, GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E80, GL_MAX_TESS_CONTROL_TEXTURE_IMAGE_UNITS = 0x8E81, GL_MAX_TESS_EVALUATION_TEXTURE_IMAGE_UNITS = 0x8E82, GL_MAX_TESS_CONTROL_OUTPUT_COMPONENTS = 0x8E83, GL_MAX_TESS_PATCH_COMPONENTS = 0x8E84, GL_MAX_TESS_CONTROL_TOTAL_OUTPUT_COMPONENTS = 0x8E85, GL_MAX_TESS_EVALUATION_OUTPUT_COMPONENTS = 0x8E86, GL_MAX_TESS_CONTROL_UNIFORM_BLOCKS = 0x8E89, GL_MAX_TESS_EVALUATION_UNIFORM_BLOCKS = 0x8E8A, GL_MAX_TESS_CONTROL_INPUT_COMPONENTS = 0x886C, GL_MAX_TESS_EVALUATION_INPUT_COMPONENTS = 0x886D, GL_MAX_COMBINED_TESS_CONTROL_UNIFORM_COMPONENTS = 0x8E1E, GL_MAX_COMBINED_TESS_EVALUATION_UNIFORM_COMPONENTS = 0x8E1F, GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_CONTROL_SHADER = 0x84F0, GL_UNIFORM_BLOCK_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x84F1, GL_TESS_EVALUATION_SHADER = 0x8E87, GL_TESS_CONTROL_SHADER = 0x8E88, // ARB_transform_feedback2 GL_TRANSFORM_FEEDBACK = 0x8E22, GL_TRANSFORM_FEEDBACK_BUFFER_PAUSED = 0x8E23, GL_TRANSFORM_FEEDBACK_BUFFER_ACTIVE = 0x8E24, GL_TRANSFORM_FEEDBACK_BINDING = 0x8E25, // ARB_transform_feedback3 GL_MAX_TRANSFORM_FEEDBACK_BUFFERS = 0x8E70, GL_MAX_VERTEX_STREAMS = 0x8E71, // ARB_ES2_compatibility GL_FIXED = 0x140C, GL_IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9A, GL_IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B, GL_LOW_FLOAT = 0x8DF0, GL_MEDIUM_FLOAT = 0x8DF1, GL_HIGH_FLOAT = 0x8DF2, GL_LOW_INT = 0x8DF3, GL_MEDIUM_INT = 0x8DF4, GL_HIGH_INT = 0x8DF5, GL_SHADER_COMPILER = 0x8DFA, GL_NUM_SHADER_BINARY_FORMATS = 0x8DF9, GL_MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB, GL_MAX_VARYING_VECTORS = 0x8DFC, GL_MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD, // ARB_get_program_binary GL_PROGRAM_BINARY_RETRIEVABLE_HINT = 0x8257, GL_PROGRAM_BINARY_LENGTH = 0x8741, GL_NUM_PROGRAM_BINARY_FORMATS = 0x87FE, GL_PROGRAM_BINARY_FORMATS = 0x87FF, // ARB_separate_shader_objects GL_VERTEX_SHADER_BIT = 0x00000001, GL_FRAGMENT_SHADER_BIT = 0x00000002, GL_GEOMETRY_SHADER_BIT = 0x00000004, GL_TESS_CONTROL_SHADER_BIT = 0x00000008, GL_TESS_EVALUATION_SHADER_BIT = 0x00000010, GL_ALL_SHADER_BITS = 0xFFFFFFFF, GL_PROGRAM_SEPARABLE = 0x8258, GL_ACTIVE_PROGRAM = 0x8259, GL_PROGRAM_PIPELINE_BINDING = 0x825A, // ARB_viewport_array GL_MAX_VIEWPORTS = 0x825B, GL_VIEWPORT_SUBPIXEL_BITS = 0x825C, GL_VIEWPORT_BOUNDS_RANGE = 0x825D, GL_LAYER_PROVOKING_VERTEX = 0x825E, GL_VIEWPORT_INDEX_PROVOKING_VERTEX = 0x825F, GL_UNDEFINED_VERTEX = 0x8260, // ARB_cl_event GL_SYNC_CL_EVENT_ARB = 0x8240, GL_SYNC_CL_EVENT_COMPLETE_ARB = 0x8241, // ARB_debug_output GL_DEBUG_OUTPUT_SYNCHRONOUS_ARB = 0x8242, GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB = 0x8243, GL_DEBUG_CALLBACK_FUNCTION_ARB = 0x8244, GL_DEBUG_CALLBACK_USER_PARAM_ARB = 0x8245, GL_DEBUG_SOURCE_API_ARB = 0x8246, GL_DEBUG_SOURCE_WINDOW_SYSTEM_ARB = 0x8247, GL_DEBUG_SOURCE_SHADER_COMPILER_ARB = 0x8248, GL_DEBUG_SOURCE_THIRD_PARTY_ARB = 0x8249, GL_DEBUG_SOURCE_APPLICATION_ARB = 0x824A, GL_DEBUG_SOURCE_OTHER_ARB = 0x824B, GL_DEBUG_TYPE_ERROR_ARB = 0x824C, GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB = 0x824D, GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB = 0x824E, GL_DEBUG_TYPE_PORTABILITY_ARB = 0x824F, GL_DEBUG_TYPE_PERFORMANCE_ARB = 0x8250, GL_DEBUG_TYPE_OTHER_ARB = 0x8251, GL_MAX_DEBUG_MESSAGE_LENGTH_ARB = 0x9143, GL_MAX_DEBUG_LOGGED_MESSAGES_ARB = 0x9144, GL_DEBUG_LOGGED_MESSAGES_ARB = 0x9145, GL_DEBUG_SEVERITY_HIGH_ARB = 0x9146, GL_DEBUG_SEVERITY_MEDIUM_ARB = 0x9147, GL_DEBUG_SEVERITY_LOW_ARB = 0x9148, // ARB_robustness GL_CONTEXT_FLAG_ROBUST_ACCESS_BIT_ARB = 0x00000004, GL_LOSE_CONTEXT_ON_RESET_ARB = 0x8252, GL_GUILTY_CONTEXT_RESET_ARB = 0x8253, GL_INNOCENT_CONTEXT_RESET_ARB = 0x8254, GL_UNKNOWN_CONTEXT_RESET_ARB = 0x8255, GL_RESET_NOTIFICATION_STRATEGY_ARB = 0x8256, GL_NO_RESET_NOTIFICATION_ARB = 0x8261, // ARB_compressed_texture_pixel_storage GL_UNPACK_COMPRESSED_BLOCK_WIDTH = 0x9127, GL_UNPACK_COMPRESSED_BLOCK_HEIGHT = 0x9128, GL_UNPACK_COMPRESSED_BLOCK_DEPTH = 0x9129, GL_UNPACK_COMPRESSED_BLOCK_SIZE = 0x912A, GL_PACK_COMPRESSED_BLOCK_WIDTH = 0x912B, GL_PACK_COMPRESSED_BLOCK_HEIGHT = 0x912C, GL_PACK_COMPRESSED_BLOCK_DEPTH = 0x912D, GL_PACK_COMPRESSED_BLOCK_SIZE = 0x912E, // ARB_internalformat_query GL_NUM_SAMPLE_COUNTS = 0x9380, // ARB_map_buffer_alignment GL_MIN_MAP_BUFFER_ALIGNMENT = 0x90BC, // ARB_shader_atomic_counters GL_ATOMIC_COUNTER_BUFFER = 0x92C0, GL_ATOMIC_COUNTER_BUFFER_BINDING = 0x92C1, GL_ATOMIC_COUNTER_BUFFER_START = 0x92C2, GL_ATOMIC_COUNTER_BUFFER_SIZE = 0x92C3, GL_ATOMIC_COUNTER_BUFFER_DATA_SIZE = 0x92C4, GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTERS = 0x92C5, GL_ATOMIC_COUNTER_BUFFER_ACTIVE_ATOMIC_COUNTER_INDICES = 0x92C6, GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_VERTEX_SHADER = 0x92C7, GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_CONTROL_SHADER = 0x92C8, GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x92C9, GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_GEOMETRY_SHADER = 0x92CA, GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_FRAGMENT_SHADER = 0x92CB, GL_MAX_VERTEX_ATOMIC_COUNTER_BUFFERS = 0x92CC, GL_MAX_TESS_CONTROL_ATOMIC_COUNTER_BUFFERS = 0x92CD, GL_MAX_TESS_EVALUATION_ATOMIC_COUNTER_BUFFERS = 0x92CE, GL_MAX_GEOMETRY_ATOMIC_COUNTER_BUFFERS = 0x92CF, GL_MAX_FRAGMENT_ATOMIC_COUNTER_BUFFERS = 0x92D0, GL_MAX_COMBINED_ATOMIC_COUNTER_BUFFERS = 0x92D1, GL_MAX_VERTEX_ATOMIC_COUNTERS = 0x92D2, GL_MAX_TESS_CONTROL_ATOMIC_COUNTERS = 0x92D3, GL_MAX_TESS_EVALUATION_ATOMIC_COUNTERS = 0x92D4, GL_MAX_GEOMETRY_ATOMIC_COUNTERS = 0x92D5, GL_MAX_FRAGMENT_ATOMIC_COUNTERS = 0x92D6, GL_MAX_COMBINED_ATOMIC_COUNTERS = 0x92D7, GL_MAX_ATOMIC_COUNTER_BUFFER_SIZE = 0x92D8, GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS = 0x92DC, GL_ACTIVE_ATOMIC_COUNTER_BUFFERS = 0x92D9, GL_UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX = 0x92DA, GL_UNSIGNED_INT_ATOMIC_COUNTER = 0x92DB, // ARB_shader_image_load_store GL_VERTEX_ATTRIB_ARRAY_BARRIER_BIT = 0x00000001, GL_ELEMENT_ARRAY_BARRIER_BIT = 0x00000002, GL_UNIFORM_BARRIER_BIT = 0x00000004, GL_TEXTURE_FETCH_BARRIER_BIT = 0x00000008, GL_SHADER_IMAGE_ACCESS_BARRIER_BIT = 0x00000020, GL_COMMAND_BARRIER_BIT = 0x00000040, GL_PIXEL_BUFFER_BARRIER_BIT = 0x00000080, GL_TEXTURE_UPDATE_BARRIER_BIT = 0x00000100, GL_BUFFER_UPDATE_BARRIER_BIT = 0x00000200, GL_FRAMEBUFFER_BARRIER_BIT = 0x00000400, GL_TRANSFORM_FEEDBACK_BARRIER_BIT = 0x00000800, GL_ATOMIC_COUNTER_BARRIER_BIT = 0x00001000, GL_ALL_BARRIER_BITS = 0xFFFFFFFF, GL_MAX_IMAGE_UNITS = 0x8F38, GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS = 0x8F39, GL_IMAGE_BINDING_NAME = 0x8F3A, GL_IMAGE_BINDING_LEVEL = 0x8F3B, GL_IMAGE_BINDING_LAYERED = 0x8F3C, GL_IMAGE_BINDING_LAYER = 0x8F3D, GL_IMAGE_BINDING_ACCESS = 0x8F3E, GL_IMAGE_1D = 0x904C, GL_IMAGE_2D = 0x904D, GL_IMAGE_3D = 0x904E, GL_IMAGE_2D_RECT = 0x904F, GL_IMAGE_CUBE = 0x9050, GL_IMAGE_BUFFER = 0x9051, GL_IMAGE_1D_ARRAY = 0x9052, GL_IMAGE_2D_ARRAY = 0x9053, GL_IMAGE_CUBE_MAP_ARRAY = 0x9054, GL_IMAGE_2D_MULTISAMPLE = 0x9055, GL_IMAGE_2D_MULTISAMPLE_ARRAY = 0x9056, GL_INT_IMAGE_1D = 0x9057, GL_INT_IMAGE_2D = 0x9058, GL_INT_IMAGE_3D = 0x9059, GL_INT_IMAGE_2D_RECT = 0x905A, GL_INT_IMAGE_CUBE = 0x905B, GL_INT_IMAGE_BUFFER = 0x905C, GL_INT_IMAGE_1D_ARRAY = 0x905D, GL_INT_IMAGE_2D_ARRAY = 0x905E, GL_INT_IMAGE_CUBE_MAP_ARRAY = 0x905F, GL_INT_IMAGE_2D_MULTISAMPLE = 0x9060, GL_INT_IMAGE_2D_MULTISAMPLE_ARRAY = 0x9061, GL_UNSIGNED_INT_IMAGE_1D = 0x9062, GL_UNSIGNED_INT_IMAGE_2D = 0x9063, GL_UNSIGNED_INT_IMAGE_3D = 0x9064, GL_UNSIGNED_INT_IMAGE_2D_RECT = 0x9065, GL_UNSIGNED_INT_IMAGE_CUBE = 0x9066, GL_UNSIGNED_INT_IMAGE_BUFFER = 0x9067, GL_UNSIGNED_INT_IMAGE_1D_ARRAY = 0x9068, GL_UNSIGNED_INT_IMAGE_2D_ARRAY = 0x9069, GL_UNSIGNED_INT_IMAGE_CUBE_MAP_ARRAY = 0x906A, GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE = 0x906B, GL_UNSIGNED_INT_IMAGE_2D_MULTISAMPLE_ARRAY = 0x906C, GL_MAX_IMAGE_SAMPLES = 0x906D, GL_IMAGE_BINDING_FORMAT = 0x906E, GL_IMAGE_FORMAT_COMPATIBILITY_TYPE = 0x90C7, GL_IMAGE_FORMAT_COMPATIBILITY_BY_SIZE = 0x90C8, GL_IMAGE_FORMAT_COMPATIBILITY_BY_CLASS = 0x90C9, GL_MAX_VERTEX_IMAGE_UNIFORMS = 0x90CA, GL_MAX_TESS_CONTROL_IMAGE_UNIFORMS = 0x90CB, GL_MAX_TESS_EVALUATION_IMAGE_UNIFORMS = 0x90CC, GL_MAX_GEOMETRY_IMAGE_UNIFORMS = 0x90CD, GL_MAX_FRAGMENT_IMAGE_UNIFORMS = 0x90CE, GL_MAX_COMBINED_IMAGE_UNIFORMS = 0x90CF, // ARB_texture_storage GL_TEXTURE_IMMUTABLE_FORMAT = 0x912F, // ARB_ES3_compatibility GL_COMPRESSED_RGB8_ETC2 = 0x9274, GL_COMPRESSED_SRGB8_ETC2 = 0x9275, GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9276, GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9277, GL_COMPRESSED_RGBA8_ETC2_EAC = 0x9278, GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC = 0x9279, GL_COMPRESSED_R11_EAC = 0x9270, GL_COMPRESSED_SIGNED_R11_EAC = 0x9271, GL_COMPRESSED_RG11_EAC = 0x9272, GL_COMPRESSED_SIGNED_RG11_EAC = 0x9273, GL_PRIMITIVE_RESTART_FIXED_INDEX = 0x8D69, GL_ANY_SAMPLES_PASSED_CONSERVATIVE = 0x8D6A, GL_MAX_ELEMENT_INDEX = 0x8D6B, // ARB_compute_shader GL_COMPUTE_SHADER = 0x91B9, GL_MAX_COMPUTE_UNIFORM_BLOCKS = 0x91BB, GL_MAX_COMPUTE_TEXTURE_IMAGE_UNITS = 0x91BC, GL_MAX_COMPUTE_IMAGE_UNIFORMS = 0x91BD, GL_MAX_COMPUTE_SHARED_MEMORY_SIZE = 0x8262, GL_MAX_COMPUTE_UNIFORM_COMPONENTS = 0x8263, GL_MAX_COMPUTE_ATOMIC_COUNTER_BUFFERS = 0x8264, GL_MAX_COMPUTE_ATOMIC_COUNTERS = 0x8265, GL_MAX_COMBINED_COMPUTE_UNIFORM_COMPONENTS = 0x8266, GL_MAX_COMPUTE_LOCAL_INVOCATIONS = 0x90EB, GL_MAX_COMPUTE_WORK_GROUP_COUNT = 0x91BE, GL_MAX_COMPUTE_WORK_GROUP_SIZE = 0x91BF, GL_COMPUTE_LOCAL_WORK_SIZE = 0x8267, GL_UNIFORM_BLOCK_REFERENCED_BY_COMPUTE_SHADER = 0x90EC, GL_ATOMIC_COUNTER_BUFFER_REFERENCED_BY_COMPUTE_SHADER = 0x90ED, GL_DISPATCH_INDIRECT_BUFFER = 0x90EE, GL_DISPATCH_INDIRECT_BUFFER_BINDING = 0x90EF, GL_COMPUTE_SHADER_BIT = 0x00000020, // KHR_debug GL_DEBUG_OUTPUT_SYNCHRONOUS = 0x8242, GL_DEBUG_NEXT_LOGGED_MESSAGE_LENGTH = 0x8243, GL_DEBUG_CALLBACK_FUNCTION = 0x8244, GL_DEBUG_CALLBACK_USER_PARAM = 0x8245, GL_DEBUG_SOURCE_API = 0x8246, GL_DEBUG_SOURCE_WINDOW_SYSTEM = 0x8247, GL_DEBUG_SOURCE_SHADER_COMPILER = 0x8248, GL_DEBUG_SOURCE_THIRD_PARTY = 0x8249, GL_DEBUG_SOURCE_APPLICATION = 0x824A, GL_DEBUG_SOURCE_OTHER = 0x824B, GL_DEBUG_TYPE_ERROR = 0x824C, GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR = 0x824D, GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR = 0x824E, GL_DEBUG_TYPE_PORTABILITY = 0x824F, GL_DEBUG_TYPE_PERFORMANCE = 0x8250, GL_DEBUG_TYPE_OTHER = 0x8251, GL_DEBUG_TYPE_MARKER = 0x8268, GL_DEBUG_TYPE_PUSH_GROUP = 0x8269, GL_DEBUG_TYPE_POP_GROUP = 0x826A, GL_DEBUG_SEVERITY_NOTIFICATION = 0x826B, GL_MAX_DEBUG_GROUP_STACK_DEPTH = 0x826C, GL_DEBUG_GROUP_STACK_DEPTH = 0x826D, GL_BUFFER = 0x82E0, GL_SHADER = 0x82E1, GL_PROGRAM = 0x82E2, GL_QUERY = 0x82E3, GL_PROGRAM_PIPELINE = 0x82E4, GL_SAMPLER = 0x82E6, GL_DISPLAY_LIST = 0x82E7, GL_MAX_LABEL_LENGTH = 0x82E8, GL_MAX_DEBUG_MESSAGE_LENGTH = 0x9143, GL_MAX_DEBUG_LOGGED_MESSAGES = 0x9144, GL_DEBUG_LOGGED_MESSAGES = 0x9145, GL_DEBUG_SEVERITY_HIGH = 0x9146, GL_DEBUG_SEVERITY_MEDIUM = 0x9147, GL_DEBUG_SEVERITY_LOW = 0x9148, GL_DEBUG_OUTPUT = 0x92E0, GL_CONTEXT_FLAG_DEBUG_BIT = 0x00000002, // ARB_explicit_uniform_location GL_MAX_UNIFORM_LOCATIONS = 0x826E, // ARB_framebuffer_no_attachments GL_FRAMEBUFFER_DEFAULT_WIDTH = 0x9310, GL_FRAMEBUFFER_DEFAULT_HEIGHT = 0x9311, GL_FRAMEBUFFER_DEFAULT_LAYERS = 0x9312, GL_FRAMEBUFFER_DEFAULT_SAMPLES = 0x9313, GL_FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS = 0x9314, GL_MAX_FRAMEBUFFER_WIDTH = 0x9315, GL_MAX_FRAMEBUFFER_HEIGHT = 0x9316, GL_MAX_FRAMEBUFFER_LAYERS = 0x9317, GL_MAX_FRAMEBUFFER_SAMPLES = 0x9318, // ARB_internalformat_query2 GL_INTERNALFORMAT_SUPPORTED = 0x826F, GL_INTERNALFORMAT_PREFERRED = 0x8270, GL_INTERNALFORMAT_RED_SIZE = 0x8271, GL_INTERNALFORMAT_GREEN_SIZE = 0x8272, GL_INTERNALFORMAT_BLUE_SIZE = 0x8273, GL_INTERNALFORMAT_ALPHA_SIZE = 0x8274, GL_INTERNALFORMAT_DEPTH_SIZE = 0x8275, GL_INTERNALFORMAT_STENCIL_SIZE = 0x8276, GL_INTERNALFORMAT_SHARED_SIZE = 0x8277, GL_INTERNALFORMAT_RED_TYPE = 0x8278, GL_INTERNALFORMAT_GREEN_TYPE = 0x8279, GL_INTERNALFORMAT_BLUE_TYPE = 0x827A, GL_INTERNALFORMAT_ALPHA_TYPE = 0x827B, GL_INTERNALFORMAT_DEPTH_TYPE = 0x827C, GL_INTERNALFORMAT_STENCIL_TYPE = 0x827D, GL_MAX_WIDTH = 0x827E, GL_MAX_HEIGHT = 0x827F, GL_MAX_DEPTH = 0x8280, GL_MAX_LAYERS = 0x8281, GL_MAX_COMBINED_DIMENSIONS = 0x8282, GL_COLOR_COMPONENTS = 0x8283, GL_DEPTH_COMPONENTS = 0x8284, GL_STENCIL_COMPONENTS = 0x8285, GL_COLOR_RENDERABLE = 0x8286, GL_DEPTH_RENDERABLE = 0x8287, GL_STENCIL_RENDERABLE = 0x8288, GL_FRAMEBUFFER_RENDERABLE = 0x8289, GL_FRAMEBUFFER_RENDERABLE_LAYERED = 0x828A, GL_FRAMEBUFFER_BLEND = 0x828B, GL_READ_PIXELS = 0x828C, GL_READ_PIXELS_FORMAT = 0x828D, GL_READ_PIXELS_TYPE = 0x828E, GL_TEXTURE_IMAGE_FORMAT = 0x828F, GL_TEXTURE_IMAGE_TYPE = 0x8290, GL_GET_TEXTURE_IMAGE_FORMAT = 0x8291, GL_GET_TEXTURE_IMAGE_TYPE = 0x8292, GL_MIPMAP = 0x8293, GL_MANUAL_GENERATE_MIPMAP = 0x8294, GL_AUTO_GENERATE_MIPMAP = 0x8295, GL_COLOR_ENCODING = 0x8296, GL_SRGB_READ = 0x8297, GL_SRGB_WRITE = 0x8298, GL_SRGB_DECODE_ARB = 0x8299, GL_FILTER = 0x829A, GL_VERTEX_TEXTURE = 0x829B, GL_TESS_CONTROL_TEXTURE = 0x829C, GL_TESS_EVALUATION_TEXTURE = 0x829D, GL_GEOMETRY_TEXTURE = 0x829E, GL_FRAGMENT_TEXTURE = 0x829F, GL_COMPUTE_TEXTURE = 0x82A0, GL_TEXTURE_SHADOW = 0x82A1, GL_TEXTURE_GATHER = 0x82A2, GL_TEXTURE_GATHER_SHADOW = 0x82A3, GL_SHADER_IMAGE_LOAD = 0x82A4, GL_SHADER_IMAGE_STORE = 0x82A5, GL_SHADER_IMAGE_ATOMIC = 0x82A6, GL_IMAGE_TEXEL_SIZE = 0x82A7, GL_IMAGE_COMPATIBILITY_CLASS = 0x82A8, GL_IMAGE_PIXEL_FORMAT = 0x82A9, GL_IMAGE_PIXEL_TYPE = 0x82AA, GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_TEST = 0x82AC, GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_TEST = 0x82AD, GL_SIMULTANEOUS_TEXTURE_AND_DEPTH_WRITE = 0x82AE, GL_SIMULTANEOUS_TEXTURE_AND_STENCIL_WRITE = 0x82AF, GL_TEXTURE_COMPRESSED_BLOCK_WIDTH = 0x82B1, GL_TEXTURE_COMPRESSED_BLOCK_HEIGHT = 0x82B2, GL_TEXTURE_COMPRESSED_BLOCK_SIZE = 0x82B3, GL_CLEAR_BUFFER = 0x82B4, GL_TEXTURE_VIEW = 0x82B5, GL_VIEW_COMPATIBILITY_CLASS = 0x82B6, GL_FULL_SUPPORT = 0x82B7, GL_CAVEAT_SUPPORT = 0x82B8, GL_IMAGE_CLASS_4_X_32 = 0x82B9, GL_IMAGE_CLASS_2_X_32 = 0x82BA, GL_IMAGE_CLASS_1_X_32 = 0x82BB, GL_IMAGE_CLASS_4_X_16 = 0x82BC, GL_IMAGE_CLASS_2_X_16 = 0x82BD, GL_IMAGE_CLASS_1_X_16 = 0x82BE, GL_IMAGE_CLASS_4_X_8 = 0x82BF, GL_IMAGE_CLASS_2_X_8 = 0x82C0, GL_IMAGE_CLASS_1_X_8 = 0x82C1, GL_IMAGE_CLASS_11_11_10 = 0x82C2, GL_IMAGE_CLASS_10_10_10_2 = 0x82C3, GL_VIEW_CLASS_128_BITS = 0x82C4, GL_VIEW_CLASS_96_BITS = 0x82C5, GL_VIEW_CLASS_64_BITS = 0x82C6, GL_VIEW_CLASS_48_BITS = 0x82C7, GL_VIEW_CLASS_32_BITS = 0x82C8, GL_VIEW_CLASS_24_BITS = 0x82C9, GL_VIEW_CLASS_16_BITS = 0x82CA, GL_VIEW_CLASS_8_BITS = 0x82CB, GL_VIEW_CLASS_S3TC_DXT1_RGB = 0x82CC, GL_VIEW_CLASS_S3TC_DXT1_RGBA = 0x82CD, GL_VIEW_CLASS_S3TC_DXT3_RGBA = 0x82CE, GL_VIEW_CLASS_S3TC_DXT5_RGBA = 0x82CF, GL_VIEW_CLASS_RGTC1_RED = 0x82D0, GL_VIEW_CLASS_RGTC2_RG = 0x82D1, GL_VIEW_CLASS_BPTC_UNORM = 0x82D2, GL_VIEW_CLASS_BPTC_FLOAT = 0x82D3, // ARB_program_interface_query GL_UNIFORM = 0x92E1, GL_UNIFORM_BLOCK = 0x92E2, GL_PROGRAM_INPUT = 0x92E3, GL_PROGRAM_OUTPUT = 0x92E4, GL_BUFFER_VARIABLE = 0x92E5, GL_SHADER_STORAGE_BLOCK = 0x92E6, GL_VERTEX_SUBROUTINE = 0x92E8, GL_TESS_CONTROL_SUBROUTINE = 0x92E9, GL_TESS_EVALUATION_SUBROUTINE = 0x92EA, GL_GEOMETRY_SUBROUTINE = 0x92EB, GL_FRAGMENT_SUBROUTINE = 0x92EC, GL_COMPUTE_SUBROUTINE = 0x92ED, GL_VERTEX_SUBROUTINE_UNIFORM = 0x92EE, GL_TESS_CONTROL_SUBROUTINE_UNIFORM = 0x92EF, GL_TESS_EVALUATION_SUBROUTINE_UNIFORM = 0x92F0, GL_GEOMETRY_SUBROUTINE_UNIFORM = 0x92F1, GL_FRAGMENT_SUBROUTINE_UNIFORM = 0x92F2, GL_COMPUTE_SUBROUTINE_UNIFORM = 0x92F3, GL_TRANSFORM_FEEDBACK_VARYING = 0x92F4, GL_ACTIVE_RESOURCES = 0x92F5, GL_MAX_NAME_LENGTH = 0x92F6, GL_MAX_NUM_ACTIVE_VARIABLES = 0x92F7, GL_MAX_NUM_COMPATIBLE_SUBROUTINES = 0x92F8, GL_NAME_LENGTH = 0x92F9, GL_TYPE = 0x92FA, GL_ARRAY_SIZE = 0x92FB, GL_OFFSET = 0x92FC, GL_BLOCK_INDEX = 0x92FD, GL_ARRAY_STRIDE = 0x92FE, GL_MATRIX_STRIDE = 0x92FF, GL_IS_ROW_MAJOR = 0x9300, GL_ATOMIC_COUNTER_BUFFER_INDEX = 0x9301, GL_BUFFER_BINDING = 0x9302, GL_BUFFER_DATA_SIZE = 0x9303, GL_NUM_ACTIVE_VARIABLES = 0x9304, GL_ACTIVE_VARIABLES = 0x9305, GL_REFERENCED_BY_VERTEX_SHADER = 0x9306, GL_REFERENCED_BY_TESS_CONTROL_SHADER = 0x9307, GL_REFERENCED_BY_TESS_EVALUATION_SHADER = 0x9308, GL_REFERENCED_BY_GEOMETRY_SHADER = 0x9309, GL_REFERENCED_BY_FRAGMENT_SHADER = 0x930A, GL_REFERENCED_BY_COMPUTE_SHADER = 0x930B, GL_TOP_LEVEL_ARRAY_SIZE = 0x930C, GL_TOP_LEVEL_ARRAY_STRIDE = 0x930D, GL_LOCATION = 0x930E, GL_LOCATION_INDEX = 0x930F, GL_IS_PER_PATCH = 0x92E7, // ARB_shader_storage_buffer_object GL_SHADER_STORAGE_BUFFER = 0x90D2, GL_SHADER_STORAGE_BUFFER_BINDING = 0x90D3, GL_SHADER_STORAGE_BUFFER_START = 0x90D4, GL_SHADER_STORAGE_BUFFER_SIZE = 0x90D5, GL_MAX_VERTEX_SHADER_STORAGE_BLOCKS = 0x90D6, GL_MAX_GEOMETRY_SHADER_STORAGE_BLOCKS = 0x90D7, GL_MAX_TESS_CONTROL_SHADER_STORAGE_BLOCKS = 0x90D8, GL_MAX_TESS_EVALUATION_SHADER_STORAGE_BLOCKS = 0x90D9, GL_MAX_FRAGMENT_SHADER_STORAGE_BLOCKS = 0x90DA, GL_MAX_COMPUTE_SHADER_STORAGE_BLOCKS = 0x90DB, GL_MAX_COMBINED_SHADER_STORAGE_BLOCKS = 0x90DC, GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS = 0x90DD, GL_MAX_SHADER_STORAGE_BLOCK_SIZE = 0x90DE, GL_SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT = 0x90DF, GL_SHADER_STORAGE_BARRIER_BIT = 0x2000, GL_MAX_COMBINED_SHADER_OUTPUT_RESOURCES = GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS, // ARB_stencil_texturing GL_DEPTH_STENCIL_TEXTURE_MODE = 0x90EA, // ARB_texture_buffer_range GL_TEXTURE_BUFFER_OFFSET = 0x919D, GL_TEXTURE_BUFFER_SIZE = 0x919E, GL_TEXTURE_BUFFER_OFFSET_ALIGNMENT = 0x919F, // ARB_texture_view GL_TEXTURE_VIEW_MIN_LEVEL = 0x82DB, GL_TEXTURE_VIEW_NUM_LEVELS = 0x82DC, GL_TEXTURE_VIEW_MIN_LAYER = 0x82DD, GL_TEXTURE_VIEW_NUM_LAYERS = 0x82DE, GL_TEXTURE_IMMUTABLE_LEVELS = 0x82DF, // ARB_vertex_attrib_binding GL_VERTEX_ATTRIB_BINDING = 0x82D4, GL_VERTEX_ATTRIB_RELATIVE_OFFSET = 0x82D5, GL_VERTEX_BINDING_DIVISOR = 0x82D6, GL_VERTEX_BINDING_OFFSET = 0x82D7, GL_VERTEX_BINDING_STRIDE = 0x82D8, GL_MAX_VERTEX_ATTRIB_RELATIVE_OFFSET = 0x82D9, GL_MAX_VERTEX_ATTRIB_BINDINGS = 0x82DA, //Added GL_VERTEX_PROGRAM_ARB = 0x8620, GL_MAX_PROGRAM_LOCAL_PARAMETERS_ARB = 0x88B4, GL_MAX_PROGRAM_ENV_PARAMETERS_ARB = 0x88B5, //Extra pixel formats //ARB_texture_float GL_RGBA32F_ARB = 0x8814, GL_RGB32F_ARB = 0x8815, GL_ALPHA32F_ARB = 0x8816, GL_INTENSITY32F_ARB = 0x8817, GL_LUMINANCE32F_ARB = 0x8818, GL_LUMINANCE_ALPHA32F_ARB = 0x8819, GL_RGBA16F_ARB = 0x881A, GL_RGB16F_ARB = 0x881B, GL_ALPHA16F_ARB = 0x881C, GL_INTENSITY16F_ARB = 0x881D, GL_LUMINANCE16F_ARB = 0x881E, GL_LUMINANCE_ALPHA16F_ARB = 0x881F, GL_TEXTURE_RED_TYPE_ARB = 0x8C10, GL_TEXTURE_GREEN_TYPE_ARB = 0x8C11, GL_TEXTURE_BLUE_TYPE_ARB = 0x8C12, GL_TEXTURE_ALPHA_TYPE_ARB = 0x8C13, GL_TEXTURE_LUMINANCE_TYPE_ARB = 0x8C14, GL_TEXTURE_INTENSITY_TYPE_ARB = 0x8C15, GL_TEXTURE_DEPTH_TYPE_ARB = 0x8C16, GL_UNSIGNED_NORMALIZED_ARB = 0x8C17, } private __gshared bool _ARB_depth_buffer_float; bool ARB_depth_buffer_float() @property { return _ARB_depth_buffer_float; } private __gshared bool _ARB_framebuffer_sRGB; bool ARB_framebuffer_sRGB() @property { return _ARB_framebuffer_sRGB; } private __gshared bool _ARB_half_float_vertex; bool ARB_half_float_vertex() @property { return _ARB_half_float_vertex; } private __gshared bool _ARB_texture_compression_rgtc; bool ARB_texture_compression_rgtc() @property { return _ARB_texture_compression_rgtc; } private __gshared bool _ARB_texture_rg; bool ARB_texture_rg() @property { return _ARB_texture_rg; } private __gshared bool _ARB_depth_clamp; bool ARB_depth_clamp() @property { return _ARB_depth_clamp; } private __gshared bool _ARB_fragment_coord_conventions; bool ARB_fragment_coord_conventions() @property { return _ARB_fragment_coord_conventions; } private __gshared bool _ARB_seamless_cube_map; bool ARB_seamless_cube_map() @property { return _ARB_seamless_cube_map; } private __gshared bool _ARB_vertex_array_bgra; bool ARB_vertex_array_bgra() @property { return _ARB_vertex_array_bgra; } private __gshared bool _ARB_texture_cube_map_array; bool ARB_texture_cube_map_array() @property { return _ARB_texture_cube_map_array; } private __gshared bool _ARB_texture_gather; bool ARB_texture_gather() @property { return _ARB_texture_gather; } private __gshared bool _ARB_texture_query_lod; bool ARB_texture_query_lod() @property { return _ARB_texture_query_lod; } private __gshared bool _ARB_texture_compression_bptc; bool ARB_texture_compression_bptc() @property { return _ARB_texture_compression_bptc; } private __gshared bool _ARB_explicit_attrib_location; bool ARB_explicit_attrib_location() @property { return _ARB_explicit_attrib_location; } private __gshared bool _ARB_occlusion_query2; bool ARB_occlusion_query2() @property { return _ARB_occlusion_query2; } private __gshared bool _ARB_shader_bit_encoding; bool ARB_shader_bit_encoding() @property { return _ARB_shader_bit_encoding; } private __gshared bool _ARB_texture_rgb10_a2ui; bool ARB_texture_rgb10_a2ui() @property { return _ARB_texture_rgb10_a2ui; } private __gshared bool _ARB_texture_swizzle; bool ARB_texture_swizzle() @property { return _ARB_texture_swizzle; } private __gshared bool _ARB_gpu_shader5; bool ARB_gpu_shader5() @property { return _ARB_gpu_shader5; } private __gshared bool _ARB_texture_buffer_object_rgb32; bool ARB_texture_buffer_object_rgb32() @property { return _ARB_texture_buffer_object_rgb32; } private __gshared bool _ARB_shader_precision; bool ARB_shader_precision() @property { return _ARB_shader_precision; } private __gshared bool _ARB_shader_stencil_export; bool ARB_shader_stencil_export() @property { return _ARB_shader_stencil_export; } private __gshared bool _ARB_shading_language_420pack; bool ARB_shading_language_420pack() @property { return _ARB_shading_language_420pack; } private __gshared bool _ARB_compressed_texture_pixel_storage; bool ARB_compressed_texture_pixel_storage() @property { return _ARB_compressed_texture_pixel_storage; } private __gshared bool _ARB_conservative_depth; bool ARB_conservative_depth() @property { return _ARB_conservative_depth; } private __gshared bool _ARB_map_buffer_alignment; bool ARB_map_buffer_alignment() @property { return _ARB_map_buffer_alignment; } private __gshared bool _ARB_shading_language_packing; bool ARB_shading_language_packing() @property { return _ARB_shading_language_packing; } // ARB_framebuffer_object extern(System) { alias nothrow GLboolean function(GLuint) da_glIsRenderbuffer; alias nothrow void function(GLenum, GLuint) da_glBindRenderbuffer; alias nothrow void function(GLsizei, const(GLuint)*) da_glDeleteRenderbuffers; alias nothrow void function(GLsizei, GLuint*) da_glGenRenderbuffers; alias nothrow void function(GLenum, GLenum, GLsizei, GLsizei) da_glRenderbufferStorage; alias nothrow void function(GLenum, GLenum, GLint*) da_glGetRenderbufferParameteriv; alias nothrow GLboolean function(GLuint) da_glIsFramebuffer; alias nothrow void function(GLenum, GLuint) da_glBindFramebuffer; alias nothrow void function(GLsizei, const(GLuint)*) da_glDeleteFramebuffers; alias nothrow void function(GLsizei, GLuint*) da_glGenFramebuffers; alias nothrow GLenum function(GLenum) da_glCheckFramebufferStatus; alias nothrow void function(GLenum, GLenum, GLenum, GLuint, GLint) da_glFramebufferTexture1D; alias nothrow void function(GLenum, GLenum, GLenum, GLuint, GLint) da_glFramebufferTexture2D; alias nothrow void function(GLenum, GLenum, GLenum, GLuint, GLint, GLint) da_glFramebufferTexture3D; alias nothrow void function(GLenum, GLenum, GLenum, GLuint) da_glFramebufferRenderbuffer; alias nothrow void function(GLenum, GLenum, GLenum, GLint*) da_glGetFramebufferAttachmentParameteriv; alias nothrow void function(GLenum) da_glGenerateMipmap; alias nothrow void function(GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLint, GLbitfield, GLenum) da_glBlitFramebuffer; alias nothrow void function(GLenum, GLsizei, GLenum, GLsizei, GLsizei) da_glRenderbufferStorageMultisample; alias nothrow void function(GLenum, GLenum, GLuint, GLint, GLint) da_glFramebufferTextureLayer; } __gshared { da_glIsRenderbuffer glIsRenderbuffer; da_glBindRenderbuffer glBindRenderbuffer; da_glDeleteRenderbuffers glDeleteRenderbuffers; da_glGenRenderbuffers glGenRenderbuffers; da_glRenderbufferStorage glRenderbufferStorage; da_glGetRenderbufferParameteriv glGetRenderbufferParameteriv; da_glIsFramebuffer glIsFramebuffer; da_glBindFramebuffer glBindFramebuffer; da_glDeleteFramebuffers glDeleteFramebuffers; da_glGenFramebuffers glGenFramebuffers; da_glCheckFramebufferStatus glCheckFramebufferStatus; da_glFramebufferTexture1D glFramebufferTexture1D; da_glFramebufferTexture2D glFramebufferTexture2D; da_glFramebufferTexture3D glFramebufferTexture3D; da_glFramebufferRenderbuffer glFramebufferRenderbuffer; da_glGetFramebufferAttachmentParameteriv glGetFramebufferAttachmentParameteriv; da_glGenerateMipmap glGenerateMipmap; da_glBlitFramebuffer glBlitFramebuffer; da_glRenderbufferStorageMultisample glRenderbufferStorageMultisample; da_glFramebufferTextureLayer glFramebufferTextureLayer; } private __gshared bool _ARB_framebuffer_object; bool ARB_framebuffer_object() @property { return _ARB_framebuffer_object; } package void load_ARB_framebuffer_object(bool doThrow = false) { try { bindGLFunc(cast(void**)&glIsRenderbuffer, "glIsRenderbuffer"); bindGLFunc(cast(void**)&glBindRenderbuffer, "glBindRenderbuffer"); bindGLFunc(cast(void**)&glDeleteRenderbuffers, "glDeleteRenderbuffers"); bindGLFunc(cast(void**)&glGenRenderbuffers, "glGenRenderbuffers"); bindGLFunc(cast(void**)&glRenderbufferStorage, "glRenderbufferStorage"); bindGLFunc(cast(void**)&glGetRenderbufferParameteriv, "glGetRenderbufferParameteriv"); bindGLFunc(cast(void**)&glIsFramebuffer, "glIsFramebuffer"); bindGLFunc(cast(void**)&glBindFramebuffer, "glBindFramebuffer"); bindGLFunc(cast(void**)&glDeleteFramebuffers, "glDeleteFramebuffers"); bindGLFunc(cast(void**)&glGenFramebuffers, "glGenFramebuffers"); bindGLFunc(cast(void**)&glCheckFramebufferStatus, "glCheckFramebufferStatus"); bindGLFunc(cast(void**)&glFramebufferTexture1D, "glFramebufferTexture1D"); bindGLFunc(cast(void**)&glFramebufferTexture2D, "glFramebufferTexture2D"); bindGLFunc(cast(void**)&glFramebufferTexture3D, "glFramebufferTexture3D"); bindGLFunc(cast(void**)&glFramebufferRenderbuffer, "glFramebufferRenderbuffer"); bindGLFunc(cast(void**)&glGetFramebufferAttachmentParameteriv, "glGetFramebufferAttachmentParameteriv"); bindGLFunc(cast(void**)&glGenerateMipmap, "glGenerateMipmap"); bindGLFunc(cast(void**)&glBlitFramebuffer, "glBlitFramebuffer"); bindGLFunc(cast(void**)&glRenderbufferStorageMultisample, "glRenderbufferStorageMultisample"); bindGLFunc(cast(void**)&glFramebufferTextureLayer, "glFramebufferTextureLayer"); _ARB_framebuffer_object = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_map_buffer_range extern(System) alias nothrow GLvoid* function(GLenum, GLintptr, GLsizeiptr, GLbitfield) da_glMapBufferRange; extern(System) alias nothrow void function(GLenum, GLintptr, GLsizeiptr) da_glFlushMappedBufferRange; __gshared da_glMapBufferRange glMapBufferRange; __gshared da_glFlushMappedBufferRange glFlushMappedBufferRange; private __gshared bool _ARB_map_buffer_range; bool ARB_map_buffer_range() @property { return _ARB_map_buffer_range; } package void load_ARB_map_buffer_range(bool doThrow = false) { try { bindGLFunc(cast(void**)&glMapBufferRange, "glMapBufferRange"); bindGLFunc(cast(void**)&glFlushMappedBufferRange, "glFlushMappedBufferRange"); _ARB_map_buffer_range = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_vertex_array_object extern(System) { alias nothrow void function(GLuint) da_glBindVertexArray; alias nothrow void function(GLsizei, const(GLuint)*) da_glDeleteVertexArrays; alias nothrow void function(GLsizei, GLuint*) da_glGenVertexArrays; alias nothrow GLboolean function(GLuint) da_glIsVertexArray; } __gshared { da_glBindVertexArray glBindVertexArray; da_glDeleteVertexArrays glDeleteVertexArrays; da_glGenVertexArrays glGenVertexArrays; da_glIsVertexArray glIsVertexArray; } private __gshared bool _ARB_vertex_array_object; bool ARB_vertex_array_object() @property { return _ARB_vertex_array_object; } package void load_ARB_vertex_array_object(bool doThrow = false) { try { bindGLFunc(cast(void**)&glBindVertexArray, "glBindVertexArray"); bindGLFunc(cast(void**)&glDeleteVertexArrays, "glDeleteVertexArrays"); bindGLFunc(cast(void**)&glGenVertexArrays, "glGenVertexArrays"); bindGLFunc(cast(void**)&glIsVertexArray, "glIsVertexArray"); _ARB_vertex_array_object = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_uniform_buffer_object extern(System) { alias nothrow void function(GLuint, GLsizei, const(GLchar*)*, GLuint*) da_glGetUniformIndices; alias nothrow void function(GLuint, GLsizei, const(GLuint)*, GLenum, GLint*) da_glGetActiveUniformsiv; alias nothrow void function(GLuint, GLuint, GLsizei, GLsizei*, GLchar*) da_glGetActiveUniformName; alias nothrow GLuint function(GLuint, const(GLchar)*) da_glGetUniformBlockIndex; alias nothrow void function(GLuint, GLuint, GLenum, GLint*) da_glGetActiveUniformBlockiv; alias nothrow void function(GLuint, GLuint, GLsizei, GLsizei*, GLchar*) da_glGetActiveUniformBlockName; alias nothrow void function(GLuint, GLuint, GLuint) da_glUniformBlockBinding; } __gshared { da_glGetUniformIndices glGetUniformIndices; da_glGetActiveUniformsiv glGetActiveUniformsiv; da_glGetActiveUniformName glGetActiveUniformName; da_glGetUniformBlockIndex glGetUniformBlockIndex; da_glGetActiveUniformBlockiv glGetActiveUniformBlockiv; da_glGetActiveUniformBlockName glGetActiveUniformBlockName; da_glUniformBlockBinding glUniformBlockBinding; } private __gshared bool _ARB_uniform_buffer_object; bool ARB_uniform_buffer_object() @property { return _ARB_uniform_buffer_object; } package void load_ARB_uniform_buffer_object(bool doThrow = false) { try { bindGLFunc(cast(void**)&glGetUniformIndices, "glGetUniformIndices"); bindGLFunc(cast(void**)&glGetActiveUniformsiv, "glGetActiveUniformsiv"); bindGLFunc(cast(void**)&glGetActiveUniformName, "glGetActiveUniformName"); bindGLFunc(cast(void**)&glGetUniformBlockIndex, "glGetUniformBlockIndex"); bindGLFunc(cast(void**)&glGetActiveUniformBlockiv, "glGetActiveUniformBlockiv"); bindGLFunc(cast(void**)&glGetActiveUniformBlockName, "glGetActiveUniformBlockName"); bindGLFunc(cast(void**)&glUniformBlockBinding, "glUniformBlockBinding"); _ARB_uniform_buffer_object = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_copy_buffer extern(System) alias nothrow void function(GLenum, GLenum, GLintptr, GLintptr, GLsizeiptr) da_glCopyBufferSubData; __gshared da_glCopyBufferSubData glCopyBufferSubData; private __gshared bool _ARB_copy_buffer; bool ARB_copy_buffer() @property { return _ARB_copy_buffer; } package void load_ARB_copy_buffer(bool doThrow = false) { try { bindGLFunc(cast(void**)&glCopyBufferSubData, "glCopyBufferSubData"); _ARB_copy_buffer = true; } catch(Exception e) { throw e; } } // ARB_draw_elements_base_vertex extern(System) { alias nothrow void function(GLenum, GLsizei, GLenum, const(GLvoid)*, GLint) da_glDrawElementsBaseVertex; alias nothrow void function(GLenum, GLuint, GLuint, GLsizei, GLenum, const(GLvoid)*, GLint) da_glDrawRangeElementsBaseVertex; alias nothrow void function(GLenum, GLsizei, GLenum, const(GLvoid)*, GLsizei, GLint) da_glDrawElementsInstancedBaseVertex; alias nothrow void function(GLenum, const(GLsizei)*, GLenum, const(GLvoid*)*, GLsizei, const(GLint)*) da_glMultiDrawElementsBaseVertex; } __gshared { da_glDrawElementsBaseVertex glDrawElementsBaseVertex; da_glDrawRangeElementsBaseVertex glDrawRangeElementsBaseVertex; da_glDrawElementsInstancedBaseVertex glDrawElementsInstancedBaseVertex; da_glMultiDrawElementsBaseVertex glMultiDrawElementsBaseVertex; } private __gshared bool _ARB_draw_elements_base_vertex; bool ARB_draw_elements_base_vertex() @property { return _ARB_draw_elements_base_vertex; } package void load_ARB_draw_elements_base_vertex(bool doThrow = false) { try { bindGLFunc(cast(void**)&glDrawElementsBaseVertex, "glDrawElementsBaseVertex"); bindGLFunc(cast(void**)&glDrawRangeElementsBaseVertex, "glDrawRangeElementsBaseVertex"); bindGLFunc(cast(void**)&glDrawElementsInstancedBaseVertex, "glDrawElementsInstancedBaseVertex"); bindGLFunc(cast(void**)&glMultiDrawElementsBaseVertex, "glMultiDrawElementsBaseVertex"); _ARB_draw_elements_base_vertex = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_provoking_vertex extern(System) alias nothrow void function(GLenum) da_glProvokingVertex; __gshared da_glProvokingVertex glProvokingVertex; private __gshared bool _ARB_provoking_vertex; bool ARB_provoking_vertex() @property { return _ARB_provoking_vertex; } package void load_ARB_provoking_vertex(bool doThrow = false) { try { bindGLFunc(cast(void**)&glProvokingVertex, "glProvokingVertex"); _ARB_provoking_vertex = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_sync extern(System) { alias nothrow GLsync function(GLenum, GLbitfield) da_glFenceSync; alias nothrow GLboolean function(GLsync) da_glIsSync; alias nothrow void function(GLsync) da_glDeleteSync; alias nothrow GLenum function(GLsync, GLbitfield, GLuint64) da_glClientWaitSync; alias nothrow void function(GLsync, GLbitfield, GLuint64) da_glWaitSync; alias nothrow void function(GLsync, GLint64*) da_glGetInteger64v; alias nothrow void function(GLsync, GLenum, GLsizei, GLsizei*, GLint*) da_glGetSynciv; } __gshared { da_glFenceSync glFenceSync; da_glIsSync glIsSync; da_glDeleteSync glDeleteSync; da_glClientWaitSync glClientWaitSync; da_glWaitSync glWaitSync; da_glGetInteger64v glGetInteger64v; da_glGetSynciv glGetSynciv; } private __gshared bool _ARB_sync; bool ARB_sync() @property { return _ARB_sync; } package void load_ARB_sync(bool doThrow = false) { try { bindGLFunc(cast(void**)&glFenceSync, "glFenceSync"); bindGLFunc(cast(void**)&glIsSync, "glIsSync"); bindGLFunc(cast(void**)&glDeleteSync, "glDeleteSync"); bindGLFunc(cast(void**)&glClientWaitSync, "glClientWaitSync"); bindGLFunc(cast(void**)&glWaitSync, "glWaitSync"); bindGLFunc(cast(void**)&glGetInteger64v, "glGetInteger64v"); bindGLFunc(cast(void**)&glGetSynciv, "glGetSynciv"); _ARB_sync = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_texture_multisample extern(System) { alias nothrow void function(GLenum, GLsizei, GLint, GLsizei, GLsizei, GLboolean) da_glTexImage2DMultisample; alias nothrow void function(GLenum, GLsizei, GLint, GLsizei, GLsizei, GLsizei, GLboolean) da_glTexImage3DMultisample; alias nothrow void function(GLenum, GLuint, GLfloat*) da_glGetMultisamplefv; alias nothrow void function(GLuint, GLbitfield) da_glSampleMaski; } __gshared { da_glTexImage2DMultisample glTexImage2DMultisample; da_glTexImage3DMultisample glTexImage3DMultisample; da_glGetMultisamplefv glGetMultisamplefv; da_glSampleMaski glSampleMaski; } private __gshared bool _ARB_texture_multisample; bool ARB_texture_multisample() @property { return _ARB_texture_multisample; } package void load_ARB_texture_multisample(bool doThrow = false) { try { bindGLFunc(cast(void**)&glTexImage2DMultisample, "glTexImage2DMultisample"); bindGLFunc(cast(void**)&glTexImage3DMultisample, "glTexImage3DMultisample"); bindGLFunc(cast(void**)&glGetMultisamplefv, "glGetMultisamplefv"); bindGLFunc(cast(void**)&glSampleMaski, "glSampleMaski"); _ARB_texture_multisample = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_draw_buffers_blend extern(System) { alias nothrow void function(GLuint, GLenum) da_glBlendEquationiARB; alias nothrow void function(GLuint, GLenum, GLenum) da_glBlendEquationSeparateiARB; alias nothrow void function(GLuint, GLenum, GLenum) da_glBlendFunciARB; alias nothrow void function(GLuint, GLenum, GLenum, GLenum, GLenum) da_glBlendFuncSeparateiARB; } __gshared { da_glBlendEquationiARB glBlendEquationiARB; da_glBlendEquationSeparateiARB glBlendEquationSeparateiARB; da_glBlendFunciARB glBlendFunciARB; da_glBlendFuncSeparateiARB glBlendFuncSeparateiARB; } private __gshared bool _ARB_draw_buffers_blend; bool ARB_draw_buffers_blend() @property { return _ARB_draw_buffers_blend; } package void load_ARB_draw_buffers_blend() { try { bindGLFunc(cast(void**)&glBlendEquationiARB, "glBlendEquationiARB"); bindGLFunc(cast(void**)&glBlendEquationSeparateiARB, "glBlendEquationSeparateiARB"); bindGLFunc(cast(void**)&glBlendFunciARB, "glBlendFunciARB"); bindGLFunc(cast(void**)&glBlendFuncSeparateiARB, "glBlendFuncSeparateiARB"); _ARB_draw_buffers_blend = true; } catch(Exception e) { _ARB_draw_buffers_blend = false; } } // ARB_sample_shading extern(System) alias nothrow void function(GLclampf) da_glMinSampleShadingARB; __gshared da_glMinSampleShadingARB glMinSampleShadingARB; private __gshared bool _ARB_sample_shading; bool ARB_sample_shading() @property { return _ARB_sample_shading; } package void load_ARB_sample_shading() { try { bindGLFunc(cast(void**)&glMinSampleShadingARB, "glMinSampleShadingARB"); _ARB_sample_shading = true; } catch(Exception e) { _ARB_sample_shading = false; } } // ARB_shading_language_include extern(System) { alias nothrow void function(GLenum, GLint, const(GLchar)*, GLint, const(GLchar)*) da_glNamedStringARB; alias nothrow void function(GLint, const(GLchar)*) da_glDeleteNamedStringARB; alias nothrow void function(GLuint, GLsizei, const(GLchar)*, const(GLint)*) da_glCompileShaderIncludeARB; alias nothrow GLboolean function(GLint, const(GLchar)*) da_glIsNamedStringARB; alias nothrow void function(GLint, const(GLchar)*, GLsizei, GLint*, GLchar*) da_glGetNamedStringARB; alias nothrow void function(GLint, const(GLchar)*, GLenum, GLint*) da_glGetNamedStringivARB; } __gshared { da_glNamedStringARB glNamedStringARB; da_glDeleteNamedStringARB glDeleteNamedStringARB; da_glCompileShaderIncludeARB glCompileShaderIncludeARB; da_glIsNamedStringARB glIsNamedStringARB; da_glGetNamedStringARB glGetNamedStringARB; da_glGetNamedStringivARB glGetNamedStringivARB; } private __gshared bool _ARB_shading_language_include; bool ARB_shading_language_include() @property { return _ARB_shading_language_include; } package void load_ARB_shading_language_include() { try { bindGLFunc(cast(void**)&glNamedStringARB, "glNamedStringARB"); bindGLFunc(cast(void**)&glDeleteNamedStringARB, "glDeleteNamedStringARB"); bindGLFunc(cast(void**)&glCompileShaderIncludeARB, "glCompileShaderIncludeARB"); bindGLFunc(cast(void**)&glIsNamedStringARB, "glIsNamedStringARB"); bindGLFunc(cast(void**)&glGetNamedStringARB, "glGetNamedStringARB"); bindGLFunc(cast(void**)&glGetNamedStringivARB, "glGetNamedStringivARB"); _ARB_shading_language_include = true; } catch(Exception e) { _ARB_shading_language_include = false; } } // ARB_blend_func_extended extern(System) alias nothrow void function(GLuint, GLuint, GLuint, const(GLchar)*) da_glBindFragDataLocationIndexed; extern(System) alias nothrow GLint function(GLuint, const(GLchar)*) da_glGetFragDataIndex; __gshared da_glBindFragDataLocationIndexed glBindFragDataLocationIndexed; __gshared da_glGetFragDataIndex glGetFragDataIndex; private __gshared bool _ARB_blend_func_extended; bool ARB_blend_func_extended() @property { return _ARB_blend_func_extended; } package void load_ARB_blend_func_extended(bool doThrow = false) { try { bindGLFunc(cast(void**)&glBindFragDataLocationIndexed, "glBindFragDataLocationIndexed"); bindGLFunc(cast(void**)&glGetFragDataIndex, "glGetFragDataIndex"); _ARB_blend_func_extended = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_sampler_objects extern(System) { alias nothrow void function(GLsizei, GLuint*) da_glGenSamplers; alias nothrow void function(GLsizei, const(GLuint)*) da_glDeleteSamplers; alias nothrow GLboolean function(GLuint) da_glIsSampler; alias nothrow void function(GLuint, GLuint) da_glBindSampler; alias nothrow void function(GLuint, GLenum, GLint) da_glSamplerParameteri; alias nothrow void function(GLuint, GLenum, const(GLint)*) da_glSamplerParameteriv; alias nothrow void function(GLuint, GLenum, GLfloat) da_glSamplerParameterf; alias nothrow void function(GLuint, GLenum, const(GLfloat)*) da_glSamplerParameterfv; alias nothrow void function(GLuint, GLenum, const(GLint)*) da_glSamplerParameterIiv; alias nothrow void function(GLuint, GLenum, const(GLuint)*) da_glSamplerParameterIuiv; alias nothrow void function(GLuint, GLenum, GLint*) da_glGetSamplerParameteriv; alias nothrow void function(GLuint, GLenum, GLint*) da_glGetSamplerParameterIiv; alias nothrow void function(GLuint, GLenum, GLfloat*) da_glGetSamplerParameterfv; alias nothrow void function(GLuint, GLenum, GLuint*) da_glGetSamplerParameterIuiv; } __gshared { da_glGenSamplers glGenSamplers; da_glDeleteSamplers glDeleteSamplers; da_glIsSampler glIsSampler; da_glBindSampler glBindSampler; da_glSamplerParameteri glSamplerParameteri; da_glSamplerParameteriv glSamplerParameteriv; da_glSamplerParameterf glSamplerParameterf; da_glSamplerParameterfv glSamplerParameterfv; da_glSamplerParameterIiv glSamplerParameterIiv; da_glSamplerParameterIuiv glSamplerParameterIuiv; da_glGetSamplerParameteriv glGetSamplerParameteriv; da_glGetSamplerParameterIiv glGetSamplerParameterIiv; da_glGetSamplerParameterfv glGetSamplerParameterfv; da_glGetSamplerParameterIuiv glGetSamplerParameterIuiv; } private __gshared bool _ARB_sampler_objects; bool ARB_sampler_objects() @property { return _ARB_sampler_objects; } package void load_ARB_sampler_objects(bool doThrow = false) { try { bindGLFunc(cast(void**)&glGenSamplers, "glGenSamplers"); bindGLFunc(cast(void**)&glDeleteSamplers, "glDeleteSamplers"); bindGLFunc(cast(void**)&glIsSampler, "glIsSampler"); bindGLFunc(cast(void**)&glBindSampler, "glBindSampler"); bindGLFunc(cast(void**)&glSamplerParameteri, "glSamplerParameteri"); bindGLFunc(cast(void**)&glSamplerParameteriv, "glSamplerParameteriv"); bindGLFunc(cast(void**)&glSamplerParameterf, "glSamplerParameterf"); bindGLFunc(cast(void**)&glSamplerParameterfv, "glSamplerParameterfv"); bindGLFunc(cast(void**)&glSamplerParameterIiv, "glSamplerParameterIiv"); bindGLFunc(cast(void**)&glSamplerParameterIuiv, "glSamplerParameterIuiv"); bindGLFunc(cast(void**)&glGetSamplerParameteriv, "glGetSamplerParameteriv"); bindGLFunc(cast(void**)&glGetSamplerParameterIiv, "glGetSamplerParameterIiv"); bindGLFunc(cast(void**)&glGetSamplerParameterfv, "glGetSamplerParameterfv"); bindGLFunc(cast(void**)&glGetSamplerParameterIuiv, "glGetSamplerParameterIuiv"); _ARB_sampler_objects = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_timer_query extern(System) { alias nothrow void function(GLuint, GLenum) da_glQueryCounter; alias nothrow void function(GLuint, GLenum, GLint64*) da_glGetQueryObjecti64v; alias nothrow void function(GLuint, GLenum, GLuint64*) da_glGetQueryObjectui64v; } __gshared { da_glQueryCounter glQueryCounter; da_glGetQueryObjecti64v glGetQueryObjecti64v; da_glGetQueryObjectui64v glGetQueryObjectui64v; } private __gshared bool _ARB_timer_query; bool ARB_timer_query() @property { return _ARB_timer_query; } void load_ARB_timer_query(bool doThrow = false) { try { bindGLFunc(cast(void**)&glQueryCounter, "glQueryCounter"); bindGLFunc(cast(void**)&glGetQueryObjecti64v, "glGetQueryObjecti64v"); bindGLFunc(cast(void**)&glGetQueryObjectui64v, "glGetQueryObjectui64v"); _ARB_timer_query = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_vertex_type_2_10_10_10_rev extern(System) { alias nothrow void function(GLenum, GLuint) da_glVertexP2ui; alias nothrow void function(GLenum, const(GLuint)*) da_glVertexP2uiv; alias nothrow void function(GLenum, GLuint) da_glVertexP3ui; alias nothrow void function(GLenum, const(GLuint)*) da_glVertexP3uiv; alias nothrow void function(GLenum, GLuint) da_glVertexP4ui; alias nothrow void function(GLenum, const(GLuint)*) da_glVertexP4uiv; alias nothrow void function(GLenum, GLuint) da_glTexCoordP1ui; alias nothrow void function(GLenum, const(GLuint)*) da_glTexCoordP1uiv; alias nothrow void function(GLenum, GLuint) da_glTexCoordP2ui; alias nothrow void function(GLenum, const(GLuint)*) da_glTexCoordP2uiv; alias nothrow void function(GLenum, GLuint) da_glTexCoordP3ui; alias nothrow void function(GLenum, const(GLuint)*) da_glTexCoordP3uiv; alias nothrow void function(GLenum, GLuint) da_glTexCoordP4ui; alias nothrow void function(GLenum, const(GLuint)*) da_glTexCoordP4uiv; alias nothrow void function(GLenum, GLenum, GLuint) da_glMultiTexCoordP1ui; alias nothrow void function(GLenum, GLenum, const(GLuint)*) da_glMultiTexCoordP1uiv; alias nothrow void function(GLenum, GLenum, GLuint) da_glMultiTexCoordP2ui; alias nothrow void function(GLenum, GLenum, const(GLuint)*) da_glMultiTexCoordP2uiv; alias nothrow void function(GLenum, GLenum, GLuint) da_glMultiTexCoordP3ui; alias nothrow void function(GLenum, GLenum, const(GLuint)*) da_glMultiTexCoordP3uiv; alias nothrow void function(GLenum, GLenum, GLuint) da_glMultiTexCoordP4ui; alias nothrow void function(GLenum, GLenum, const(GLuint)*) da_glMultiTexCoordP4uiv; alias nothrow void function(GLenum, GLuint) da_glNormalP3ui; alias nothrow void function(GLenum, const(GLuint)*) da_glNormalP3uiv; alias nothrow void function(GLenum, GLuint) da_glColorP3ui; alias nothrow void function(GLenum, const(GLuint)*) da_glColorP3uiv; alias nothrow void function(GLenum, GLuint) da_glColorP4ui; alias nothrow void function(GLenum, const(GLuint)*) da_glColorP4uiv; alias nothrow void function(GLenum, GLuint) da_glSecondaryColorP3ui; alias nothrow void function(GLenum, const(GLuint)*) da_glSecondaryColorP3uiv; alias nothrow void function(GLuint, GLenum, GLboolean, GLuint) da_glVertexAttribP1ui; alias nothrow void function(GLuint, GLenum, GLboolean, const(GLuint)*) da_glVertexAttribP1uiv; alias nothrow void function(GLuint, GLenum, GLboolean, GLuint) da_glVertexAttribP2ui; alias nothrow void function(GLuint, GLenum, GLboolean, const(GLuint)*) da_glVertexAttribP2uiv; alias nothrow void function(GLuint, GLenum, GLboolean, GLuint) da_glVertexAttribP3ui; alias nothrow void function(GLuint, GLenum, GLboolean, const(GLuint)*) da_glVertexAttribP3uiv; alias nothrow void function(GLuint, GLenum, GLboolean, GLuint) da_glVertexAttribP4ui; alias nothrow void function(GLuint, GLenum, GLboolean, const(GLuint)*) da_glVertexAttribP4uiv; } __gshared { da_glVertexP2ui glVertexP2ui; da_glVertexP2uiv glVertexP2uiv; da_glVertexP3ui glVertexP3ui; da_glVertexP3uiv glVertexP3uiv; da_glVertexP4ui glVertexP4ui; da_glVertexP4uiv glVertexP4uiv; da_glTexCoordP1ui glTexCoordP1ui; da_glTexCoordP1uiv glTexCoordP1uiv; da_glTexCoordP2ui glTexCoordP2ui; da_glTexCoordP2uiv glTexCoordP2uiv; da_glTexCoordP3ui glTexCoordP3ui; da_glTexCoordP3uiv glTexCoordP3uiv; da_glTexCoordP4ui glTexCoordP4ui; da_glTexCoordP4uiv glTexCoordP4uiv; da_glMultiTexCoordP1ui glMultiTexCoordP1ui; da_glMultiTexCoordP1uiv glMultiTexCoordP1uiv; da_glMultiTexCoordP2ui glMultiTexCoordP2ui; da_glMultiTexCoordP2uiv glMultiTexCoordP2uiv; da_glMultiTexCoordP3ui glMultiTexCoordP3ui; da_glMultiTexCoordP3uiv glMultiTexCoordP3uiv; da_glMultiTexCoordP4ui glMultiTexCoordP4ui; da_glMultiTexCoordP4uiv glMultiTexCoordP4uiv; da_glNormalP3ui glNormalP3ui; da_glNormalP3uiv glNormalP3uiv; da_glColorP3ui glColorP3ui; da_glColorP3uiv glColorP3uiv; da_glColorP4ui glColorP4ui; da_glColorP4uiv glColorP4uiv; da_glSecondaryColorP3ui glSecondaryColorP3ui; da_glSecondaryColorP3uiv glSecondaryColorP3uiv; da_glVertexAttribP1ui glVertexAttribP1ui; da_glVertexAttribP1uiv glVertexAttribP1uiv; da_glVertexAttribP2ui glVertexAttribP2ui; da_glVertexAttribP2uiv glVertexAttribP2uiv; da_glVertexAttribP3ui glVertexAttribP3ui; da_glVertexAttribP3uiv glVertexAttribP3uiv; da_glVertexAttribP4ui glVertexAttribP4ui; da_glVertexAttribP4uiv glVertexAttribP4uiv; } private __gshared bool _ARB_vertex_type_2_10_10_10_rev; bool ARB_vertex_type_2_10_10_10_rev() @property { return _ARB_vertex_type_2_10_10_10_rev; } package void load_ARB_vertex_type_2_10_10_10_rev(bool doThrow = false) { try { bindGLFunc(cast(void**)&glVertexP2ui, "glVertexP2ui"); bindGLFunc(cast(void**)&glVertexP2uiv, "glVertexP2uiv"); bindGLFunc(cast(void**)&glVertexP3ui, "glVertexP3ui"); bindGLFunc(cast(void**)&glVertexP3uiv, "glVertexP3uiv"); bindGLFunc(cast(void**)&glVertexP4ui, "glVertexP4ui"); bindGLFunc(cast(void**)&glVertexP4uiv, "glVertexP4uiv"); bindGLFunc(cast(void**)&glTexCoordP1ui, "glTexCoordP1ui"); bindGLFunc(cast(void**)&glTexCoordP1uiv, "glTexCoordP1uiv"); bindGLFunc(cast(void**)&glTexCoordP2ui, "glTexCoordP2ui"); bindGLFunc(cast(void**)&glTexCoordP2uiv, "glTexCoordP2uiv"); bindGLFunc(cast(void**)&glTexCoordP3ui, "glTexCoordP3ui"); bindGLFunc(cast(void**)&glTexCoordP3uiv, "glTexCoordP3uiv"); bindGLFunc(cast(void**)&glTexCoordP4ui, "glTexCoordP4ui"); bindGLFunc(cast(void**)&glTexCoordP4uiv, "glTexCoordP4uiv"); bindGLFunc(cast(void**)&glMultiTexCoordP1ui, "glMultiTexCoordP1ui"); bindGLFunc(cast(void**)&glMultiTexCoordP1uiv, "glMultiTexCoordP1uiv"); bindGLFunc(cast(void**)&glMultiTexCoordP2ui, "glMultiTexCoordP2ui"); bindGLFunc(cast(void**)&glMultiTexCoordP2uiv, "glMultiTexCoordP2uiv"); bindGLFunc(cast(void**)&glMultiTexCoordP3ui, "glMultiTexCoordP3ui"); bindGLFunc(cast(void**)&glMultiTexCoordP3uiv, "glMultiTexCoordP3uiv"); bindGLFunc(cast(void**)&glMultiTexCoordP4ui, "glMultiTexCoordP4ui"); bindGLFunc(cast(void**)&glMultiTexCoordP4uiv, "glMultiTexCoordP4uiv"); bindGLFunc(cast(void**)&glNormalP3ui, "glNormalP3ui"); bindGLFunc(cast(void**)&glNormalP3uiv, "glNormalP3uiv"); bindGLFunc(cast(void**)&glColorP3ui, "glColorP3ui"); bindGLFunc(cast(void**)&glColorP3uiv, "glColorP3uiv"); bindGLFunc(cast(void**)&glColorP4ui, "glColorP4ui"); bindGLFunc(cast(void**)&glColorP4uiv, "glColorP4uiv"); bindGLFunc(cast(void**)&glSecondaryColorP3ui, "glSecondaryColorP3ui"); bindGLFunc(cast(void**)&glSecondaryColorP3uiv, "glSecondaryColorP3uiv"); bindGLFunc(cast(void**)&glVertexAttribP1ui, "glVertexAttribP1ui"); bindGLFunc(cast(void**)&glVertexAttribP1uiv, "glVertexAttribP1uiv"); bindGLFunc(cast(void**)&glVertexAttribP2ui, "glVertexAttribP2ui"); bindGLFunc(cast(void**)&glVertexAttribP2uiv, "glVertexAttribP2uiv"); bindGLFunc(cast(void**)&glVertexAttribP3ui, "glVertexAttribP3ui"); bindGLFunc(cast(void**)&glVertexAttribP3uiv, "glVertexAttribP3uiv"); bindGLFunc(cast(void**)&glVertexAttribP4ui, "glVertexAttribP4ui"); bindGLFunc(cast(void**)&glVertexAttribP4uiv, "glVertexAttribP4uiv"); _ARB_vertex_type_2_10_10_10_rev = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_draw_indirect extern(System) alias nothrow void function(GLenum, const(GLvoid)*) da_glDrawArraysIndirect; extern(System) alias nothrow void function(GLenum, GLenum, const(GLvoid)*) da_glDrawElementsIndirect; __gshared { da_glDrawArraysIndirect glDrawArraysIndirect; da_glDrawElementsIndirect glDrawElementsIndirect; } private __gshared bool _ARB_draw_indirect; bool ARB_draw_indirect() @property { return _ARB_draw_indirect; } package void load_ARB_draw_indirect(bool doThrow = false) { try { bindGLFunc(cast(void**)&glDrawArraysIndirect, "glDrawArraysIndirect"); bindGLFunc(cast(void**)&glDrawElementsIndirect, "glDrawElementsIndirect"); _ARB_draw_indirect = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_gpu_shader_fp64 extern(System) { alias nothrow void function(GLint, GLdouble) da_glUniform1d; alias nothrow void function(GLint, GLdouble, GLdouble) da_glUniform2d; alias nothrow void function(GLint, GLdouble, GLdouble, GLdouble) da_glUniform3d; alias nothrow void function(GLint, GLdouble, GLdouble, GLdouble) da_glUniform4d; alias nothrow void function(GLint, GLsizei, const(GLdouble)*) da_glUniform1dv; alias nothrow void function(GLint, GLsizei, const(GLdouble)*) da_glUniform2dv; alias nothrow void function(GLint, GLsizei, const(GLdouble)*) da_glUniform3dv; alias nothrow void function(GLint, GLsizei, const(GLdouble)*) da_glUniform4dv; alias nothrow void function(GLint, GLsizei, GLboolean, const(GLdouble)*) da_glUniformMatrix2dv; alias nothrow void function(GLint, GLsizei, GLboolean, const(GLdouble)*) da_glUniformMatrix3dv; alias nothrow void function(GLint, GLsizei, GLboolean, const(GLdouble)*) da_glUniformMatrix4dv; alias nothrow void function(GLint, GLsizei, GLboolean, const(GLdouble)*) da_glUniformMatrix2x3dv; alias nothrow void function(GLint, GLsizei, GLboolean, const(GLdouble)*) da_glUniformMatrix2x4dv; alias nothrow void function(GLint, GLsizei, GLboolean, const(GLdouble)*) da_glUniformMatrix3x2dv; alias nothrow void function(GLint, GLsizei, GLboolean, const(GLdouble)*) da_glUniformMatrix3x4dv; alias nothrow void function(GLint, GLsizei, GLboolean, const(GLdouble)*) da_glUniformMatrix4x2dv; alias nothrow void function(GLint, GLsizei, GLboolean, const(GLdouble)*) da_glUniformMatrix4x3dv; alias nothrow void function(GLuint, GLint, GLdouble*) da_glGetUniformdv; } __gshared { da_glUniform1d glUniform1d; da_glUniform2d glUniform2d; da_glUniform3d glUniform3d; da_glUniform4d glUniform4d; da_glUniform1dv glUniform1dv; da_glUniform2dv glUniform2dv; da_glUniform3dv glUniform3dv; da_glUniform4dv glUniform4dv; da_glUniformMatrix2dv glUniformMatrix2dv; da_glUniformMatrix3dv glUniformMatrix3dv; da_glUniformMatrix4dv glUniformMatrix4dv; da_glUniformMatrix2x3dv glUniformMatrix2x3dv; da_glUniformMatrix2x4dv glUniformMatrix2x4dv; da_glUniformMatrix3x2dv glUniformMatrix3x2dv; da_glUniformMatrix3x4dv glUniformMatrix3x4dv; da_glUniformMatrix4x2dv glUniformMatrix4x2dv; da_glUniformMatrix4x3dv glUniformMatrix4x3dv; da_glGetUniformdv glGetUniformdv; } private __gshared bool _ARB_gpu_shader_fp64; bool ARB_gpu_shader_fp64() @property { return _ARB_gpu_shader_fp64; } package void load_ARB_gpu_shader_fp64(bool doThrow = false) { try { bindGLFunc(cast(void**)&glUniform1d, "glUniform1d"); bindGLFunc(cast(void**)&glUniform2d, "glUniform2d"); bindGLFunc(cast(void**)&glUniform3d, "glUniform3d"); bindGLFunc(cast(void**)&glUniform4d, "glUniform4d"); bindGLFunc(cast(void**)&glUniform1dv, "glUniform1dv"); bindGLFunc(cast(void**)&glUniform2dv, "glUniform2dv"); bindGLFunc(cast(void**)&glUniform3dv, "glUniform3dv"); bindGLFunc(cast(void**)&glUniform4dv, "glUniform4dv"); bindGLFunc(cast(void**)&glUniformMatrix2dv, "glUniformMatrix2dv"); bindGLFunc(cast(void**)&glUniformMatrix3dv, "glUniformMatrix3dv"); bindGLFunc(cast(void**)&glUniformMatrix4dv, "glUniformMatrix4dv"); bindGLFunc(cast(void**)&glUniformMatrix2x3dv, "glUniformMatrix2x3dv"); bindGLFunc(cast(void**)&glUniformMatrix2x4dv, "glUniformMatrix2x4dv"); bindGLFunc(cast(void**)&glUniformMatrix3x2dv, "glUniformMatrix3x2dv"); bindGLFunc(cast(void**)&glUniformMatrix3x4dv, "glUniformMatrix3x4dv"); bindGLFunc(cast(void**)&glUniformMatrix4x2dv, "glUniformMatrix4x2dv"); bindGLFunc(cast(void**)&glUniformMatrix4x3dv, "glUniformMatrix4x3dv"); _ARB_gpu_shader_fp64 = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_shader_subroutine extern(System) { alias nothrow GLint function(GLuint, GLenum, const(GLchar)*) da_glGetSubroutineUniformLocation; alias nothrow GLuint function(GLuint, GLenum, const(GLchar)*) da_glGetSubroutineIndex; alias nothrow void function(GLuint, GLenum, GLuint, GLenum, GLint*) da_glGetActiveSubroutineUniformiv; alias nothrow void function(GLuint, GLenum, GLuint, GLsizei, GLsizei*, GLchar*) da_glGetActiveSubroutineUniformName; alias nothrow void function(GLuint, GLenum, GLuint, GLsizei, GLsizei*, GLchar*) da_glGetActiveSubroutineName; alias nothrow void function(GLenum, GLsizei, const(GLuint)*) da_glUniformSubroutinesuiv; alias nothrow void function(GLenum, GLint, GLuint*) da_glGetUniformSubroutineuiv; alias nothrow void function(GLuint, GLenum, GLenum, GLint*) da_glGetProgramStageiv; } __gshared { da_glGetSubroutineUniformLocation glGetSubroutineUniformLocation; da_glGetSubroutineIndex glGetSubroutineIndex; da_glGetActiveSubroutineUniformiv glGetActiveSubroutineUniformiv; da_glGetActiveSubroutineUniformName glGetActiveSubroutineUniformName; da_glGetActiveSubroutineName glGetActiveSubroutineName; da_glUniformSubroutinesuiv glUniformSubroutinesuiv; da_glGetUniformSubroutineuiv glGetUniformSubroutineuiv; da_glGetProgramStageiv glGetProgramStageiv; } private __gshared bool _ARB_shader_subroutine; bool ARB_shader_subroutine() @property { return _ARB_shader_subroutine; } package void load_ARB_shader_subroutine(bool doThrow = false) { try { bindGLFunc(cast(void**)&glGetSubroutineUniformLocation, "glGetSubroutineUniformLocation"); bindGLFunc(cast(void**)&glGetSubroutineIndex, "glGetSubroutineIndex"); bindGLFunc(cast(void**)&glGetActiveSubroutineUniformiv, "glGetActiveSubroutineUniformiv"); bindGLFunc(cast(void**)&glGetActiveSubroutineUniformName, "glGetActiveSubroutineUniformName"); bindGLFunc(cast(void**)&glGetActiveSubroutineName, "glGetActiveSubroutineName"); bindGLFunc(cast(void**)&glUniformSubroutinesuiv, "glUniformSubroutinesuiv"); bindGLFunc(cast(void**)&glGetUniformSubroutineuiv, "glGetUniformSubroutineuiv"); bindGLFunc(cast(void**)&glGetProgramStageiv, "glGetProgramStageiv"); _ARB_shader_subroutine = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_tessellation_shader extern(System) alias nothrow void function(GLenum, GLint) da_glPatchParameteri; extern(System) alias nothrow void function(GLenum, const(GLfloat)*) da_glPatchParameterfv; __gshared da_glPatchParameteri glPatchParameteri; __gshared da_glPatchParameterfv glPatchParameterfv; private __gshared bool _ARB_tessellation_shader; bool ARB_tessellation_shader() @property { return _ARB_tessellation_shader; } package void load_ARB_tessellation_shader(bool doThrow = false) { try { bindGLFunc(cast(void**)&glPatchParameteri, "glPatchParameteri"); bindGLFunc(cast(void**)&glPatchParameterfv, "glPatchParameterfv"); _ARB_tessellation_shader = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_transform_feedback2 extern(System) { alias nothrow void function(GLenum, GLuint) da_glBindTransformFeedback; alias nothrow void function(GLsizei, const(GLuint)*) da_glDeleteTransformFeedbacks; alias nothrow void function(GLsizei, GLuint*) da_glGenTransformFeedbacks; alias nothrow GLboolean function(GLuint) da_glIsTransformFeedback; alias nothrow void function() da_glPauseTransformFeedback; alias nothrow void function() da_glResumeTransformFeedback; alias nothrow void function(GLenum, GLuint) da_glDrawTransformFeedback; } __gshared { da_glBindTransformFeedback glBindTransformFeedback; da_glDeleteTransformFeedbacks glDeleteTransformFeedbacks; da_glGenTransformFeedbacks glGenTransformFeedbacks; da_glIsTransformFeedback glIsTransformFeedback; da_glPauseTransformFeedback glPauseTransformFeedback; da_glResumeTransformFeedback glResumeTransformFeedback; da_glDrawTransformFeedback glDrawTransformFeedback; } private __gshared bool _ARB_transform_feedback2; bool ARB_transform_feedback2() { return _ARB_transform_feedback2; } void load_ARB_transform_feedback2(bool doThrow = false) { try { bindGLFunc(cast(void**)&glBindTransformFeedback, "glBindTransformFeedback"); bindGLFunc(cast(void**)&glDeleteTransformFeedbacks, "glDeleteTransformFeedbacks"); bindGLFunc(cast(void**)&glGenTransformFeedbacks, "glGenTransformFeedbacks"); bindGLFunc(cast(void**)&glIsTransformFeedback, "glIsTransformFeedback"); bindGLFunc(cast(void**)&glPauseTransformFeedback, "glPauseTransformFeedback"); bindGLFunc(cast(void**)&glResumeTransformFeedback, "glResumeTransformFeedback"); bindGLFunc(cast(void**)&glDrawTransformFeedback, "glDrawTransformFeedback"); _ARB_transform_feedback2 = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_transform_feedback3 extern(System) { alias nothrow void function(GLenum, GLuint, GLuint) da_glDrawTransformFeedbackStream; alias nothrow void function(GLenum, GLuint, GLuint) da_glBeginQueryIndexed; alias nothrow void function(GLenum, GLuint) da_glEndQueryIndexed; alias nothrow void function(GLenum, GLuint, GLenum, GLint*) da_glGetQueryIndexediv; } __gshared { da_glDrawTransformFeedbackStream glDrawTransformFeedbackStream; da_glBeginQueryIndexed glBeginQueryIndexed; da_glEndQueryIndexed glEndQueryIndexed; da_glGetQueryIndexediv glGetQueryIndexediv; } private __gshared bool _ARB_transform_feedback3; bool ARB_transform_feedback3() { return _ARB_transform_feedback3; } package void load_ARB_transform_feedback3(bool doThrow = false) { try { bindGLFunc(cast(void**)&glDrawTransformFeedbackStream, "glDrawTransformFeedbackStream"); bindGLFunc(cast(void**)&glBeginQueryIndexed, "glBeginQueryIndexed"); bindGLFunc(cast(void**)&glEndQueryIndexed, "glEndQueryIndexed"); bindGLFunc(cast(void**)&glGetQueryIndexediv, "glGetQueryIndexediv"); _ARB_transform_feedback3 = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_ES2_compatibility extern(System) { alias nothrow void function() da_glReleaseShaderCompiler; alias nothrow void function(GLsizei, const(GLuint)*, GLenum, const(GLvoid)*, GLsizei) da_glShaderBinary; alias nothrow void function(GLenum, GLenum, GLint*, GLint*) da_glGetShaderPrecisionFormat; alias nothrow void function(GLclampf, GLclampf) da_glDepthRangef; alias nothrow void function(GLclampf) da_glClearDepthf; } __gshared { da_glReleaseShaderCompiler glReleaseShaderCompiler; da_glShaderBinary glShaderBinary; da_glGetShaderPrecisionFormat glGetShaderPrecisionFormat; da_glDepthRangef glDepthRangef; da_glClearDepthf glClearDepthf; } private __gshared bool _ARB_ES2_compatibility; bool ARB_ES2_compatibility() @property { return _ARB_ES2_compatibility; } package void load_ARB_ES2_compatibility(bool doThrow = false) { try { bindGLFunc(cast(void**)&glReleaseShaderCompiler, "glReleaseShaderCompiler"); bindGLFunc(cast(void**)&glShaderBinary, "glShaderBinary"); bindGLFunc(cast(void**)&glGetShaderPrecisionFormat, "glGetShaderPrecisionFormat"); bindGLFunc(cast(void**)&glDepthRangef, "glDepthRangef"); bindGLFunc(cast(void**)&glClearDepthf, "glClearDepthf"); _ARB_ES2_compatibility = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_get_program_binary extern(System) { alias nothrow void function(GLuint, GLsizei, GLsizei*, GLenum*, GLvoid*) da_glGetProgramBinary; alias nothrow void function(GLuint, GLenum, const(GLvoid)*, GLsizei) da_glProgramBinary; alias nothrow void function(GLuint, GLenum, GLint) da_glProgramParameteri; } __gshared { da_glGetProgramBinary glGetProgramBinary; da_glProgramBinary glProgramBinary; da_glProgramParameteri glProgramParameteri; } private __gshared bool _ARB_get_program_binary; bool ARB_get_program_binary() @property { return _ARB_get_program_binary; } package void load_ARB_get_program_binary(bool doThrow = false) { try { bindGLFunc(cast(void**)&glGetProgramBinary, "glGetProgramBinary"); bindGLFunc(cast(void**)&glProgramBinary, "glProgramBinary"); bindGLFunc(cast(void**)&glProgramParameteri, "glProgramParameteri"); _ARB_get_program_binary = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_separate_shader_objects extern(System) { alias nothrow void function(GLuint, GLbitfield, GLuint) da_glUseProgramStages; alias nothrow void function(GLuint, GLuint) da_glActiveShaderProgram; alias nothrow GLuint function(GLenum, GLsizei, const(GLchar*)*) da_glCreateShaderProgramv; alias nothrow void function(GLuint) da_glBindProgramPipeline; alias nothrow void function(GLsizei, const(GLuint)*) da_glDeleteProgramPipelines; alias nothrow void function(GLsizei, GLuint*) da_glGenProgramPipelines; alias nothrow GLboolean function(GLuint) da_glIsProgramPipeline; alias nothrow void function(GLuint, GLenum, GLint*) da_glGetProgramPipelineiv; alias nothrow void function(GLuint, GLint, GLint) da_glProgramUniform1i; alias nothrow void function(GLuint, GLint, GLsizei, const(GLint)*) da_glProgramUniform1iv; alias nothrow void function(GLuint, GLint, GLfloat) da_glProgramUniform1f; alias nothrow void function(GLuint, GLint, GLsizei, const(GLfloat)*) da_glProgramUniform1fv; alias nothrow void function(GLuint, GLint, GLdouble) da_glProgramUniform1d; alias nothrow void function(GLuint, GLint, GLsizei, const(GLdouble)*) da_glProgramUniform1dv; alias nothrow void function(GLuint, GLint, GLuint) da_glProgramUniform1ui; alias nothrow void function(GLuint, GLint, GLsizei, const(GLuint)*) da_glProgramUniform1uiv; alias nothrow void function(GLuint, GLint, GLint, GLint) da_glProgramUniform2i; alias nothrow void function(GLuint, GLint, GLsizei, const(GLint)*) da_glProgramUniform2iv; alias nothrow void function(GLuint, GLint, GLfloat, GLfloat) da_glProgramUniform2f; alias nothrow void function(GLuint, GLint, GLsizei, const(GLfloat)*) da_glProgramUniform2fv; alias nothrow void function(GLuint, GLint, GLdouble, GLdouble) da_glProgramUniform2d; alias nothrow void function(GLuint, GLint, GLsizei, const(GLdouble)*) da_glProgramUniform2dv; alias nothrow void function(GLuint, GLint, GLuint, GLuint) da_glProgramUniform2ui; alias nothrow void function(GLuint, GLint, GLsizei, const(GLuint)*) da_glProgramUniform2uiv; alias nothrow void function(GLuint, GLint, GLint, GLint, GLint) da_glProgramUniform3i; alias nothrow void function(GLuint, GLint, GLsizei, const(GLint)*) da_glProgramUniform3iv; alias nothrow void function(GLuint, GLint, GLfloat, GLfloat, GLfloat) da_glProgramUniform3f; alias nothrow void function(GLuint, GLint, GLsizei, const(GLfloat)*) da_glProgramUniform3fv; alias nothrow void function(GLuint, GLint, GLdouble, GLdouble, GLdouble) da_glProgramUniform3d; alias nothrow void function(GLuint, GLint, GLsizei, const(GLdouble)*) da_glProgramUniform3dv; alias nothrow void function(GLuint, GLint, GLuint, GLuint, GLuint) da_glProgramUniform3ui; alias nothrow void function(GLuint, GLint, GLsizei, const(GLuint)*) da_glProgramUniform3uiv; alias nothrow void function(GLuint, GLint, GLint, GLint, GLint, GLint) da_glProgramUniform4i; alias nothrow void function(GLuint, GLint, GLsizei, const(GLint)*) da_glProgramUniform4iv; alias nothrow void function(GLuint, GLint, GLfloat, GLfloat, GLfloat, GLfloat) da_glProgramUniform4f; alias nothrow void function(GLuint, GLint, GLsizei, const(GLfloat)*) da_glProgramUniform4fv; alias nothrow void function(GLuint, GLint, GLdouble, GLdouble, GLdouble, GLdouble) da_glProgramUniform4d; alias nothrow void function(GLuint, GLint, GLsizei, const(GLdouble)*) da_glProgramUniform4dv; alias nothrow void function(GLuint, GLint, GLuint, GLuint, GLuint, GLuint) da_glProgramUniform4ui; alias nothrow void function(GLuint, GLint, GLsizei, const(GLuint)*) da_glProgramUniform4uiv; alias nothrow void function(GLuint, GLint, GLsizei, GLboolean, const(GLfloat)*) da_glProgramUniformMatrix2fv; alias nothrow void function(GLuint, GLint, GLsizei, GLboolean, const(GLfloat)*) da_glProgramUniformMatrix3fv; alias nothrow void function(GLuint, GLint, GLsizei, GLboolean, const(GLfloat)*) da_glProgramUniformMatrix4fv; alias nothrow void function(GLuint, GLint, GLsizei, GLboolean, const(GLdouble)*) da_glProgramUniformMatrix2dv; alias nothrow void function(GLuint, GLint, GLsizei, GLboolean, const(GLdouble)*) da_glProgramUniformMatrix3dv; alias nothrow void function(GLuint, GLint, GLsizei, GLboolean, const(GLdouble)*) da_glProgramUniformMatrix4dv; alias nothrow void function(GLuint, GLint, GLsizei, GLboolean, const(GLfloat)*) da_glProgramUniformMatrix2x3fv; alias nothrow void function(GLuint, GLint, GLsizei, GLboolean, const(GLfloat)*) da_glProgramUniformMatrix3x2fv; alias nothrow void function(GLuint, GLint, GLsizei, GLboolean, const(GLfloat)*) da_glProgramUniformMatrix2x4fv; alias nothrow void function(GLuint, GLint, GLsizei, GLboolean, const(GLfloat)*) da_glProgramUniformMatrix4x2fv; alias nothrow void function(GLuint, GLint, GLsizei, GLboolean, const(GLfloat)*) da_glProgramUniformMatrix3x4fv; alias nothrow void function(GLuint, GLint, GLsizei, GLboolean, const(GLfloat)*) da_glProgramUniformMatrix4x3fv; alias nothrow void function(GLuint, GLint, GLsizei, GLboolean, const(GLdouble)*) da_glProgramUniformMatrix2x3dv; alias nothrow void function(GLuint, GLint, GLsizei, GLboolean, const(GLdouble)*) da_glProgramUniformMatrix3x2dv; alias nothrow void function(GLuint, GLint, GLsizei, GLboolean, const(GLdouble)*) da_glProgramUniformMatrix2x4dv; alias nothrow void function(GLuint, GLint, GLsizei, GLboolean, const(GLdouble)*) da_glProgramUniformMatrix4x2dv; alias nothrow void function(GLuint, GLint, GLsizei, GLboolean, const(GLdouble)*) da_glProgramUniformMatrix3x4dv; alias nothrow void function(GLuint, GLint, GLsizei, GLboolean, const(GLdouble)*) da_glProgramUniformMatrix4x3dv; alias nothrow void function(GLuint) da_glValidateProgramPipeline; alias nothrow void function(GLuint, GLsizei, GLsizei*, GLchar*) da_glGetProgramPipelineInfoLog; } __gshared { da_glUseProgramStages glUseProgramStages; da_glActiveShaderProgram glActiveShaderProgram; da_glCreateShaderProgramv glCreateShaderProgramv; da_glBindProgramPipeline glBindProgramPipeline; da_glDeleteProgramPipelines glDeleteProgramPipelines; da_glGenProgramPipelines glGenProgramPipelines; da_glIsProgramPipeline glIsProgramPipeline; da_glGetProgramPipelineiv glGetProgramPipelineiv; da_glProgramUniform1i glProgramUniform1i; da_glProgramUniform1iv glProgramUniform1iv; da_glProgramUniform1f glProgramUniform1f; da_glProgramUniform1fv glProgramUniform1fv; da_glProgramUniform1d glProgramUniform1d; da_glProgramUniform1dv glProgramUniform1dv; da_glProgramUniform1ui glProgramUniform1ui; da_glProgramUniform1uiv glProgramUniform1uiv; da_glProgramUniform2i glProgramUniform2i; da_glProgramUniform2iv glProgramUniform2iv; da_glProgramUniform2f glProgramUniform2f; da_glProgramUniform2fv glProgramUniform2fv; da_glProgramUniform2d glProgramUniform2d; da_glProgramUniform2dv glProgramUniform2dv; da_glProgramUniform2ui glProgramUniform2ui; da_glProgramUniform2uiv glProgramUniform2uiv; da_glProgramUniform3i glProgramUniform3i; da_glProgramUniform3iv glProgramUniform3iv; da_glProgramUniform3f glProgramUniform3f; da_glProgramUniform3fv glProgramUniform3fv; da_glProgramUniform3d glProgramUniform3d; da_glProgramUniform3dv glProgramUniform3dv; da_glProgramUniform3ui glProgramUniform3ui; da_glProgramUniform3uiv glProgramUniform3uiv; da_glProgramUniform4i glProgramUniform4i; da_glProgramUniform4iv glProgramUniform4iv; da_glProgramUniform4f glProgramUniform4f; da_glProgramUniform4fv glProgramUniform4fv; da_glProgramUniform4d glProgramUniform4d; da_glProgramUniform4dv glProgramUniform4dv; da_glProgramUniform4ui glProgramUniform4ui; da_glProgramUniform4uiv glProgramUniform4uiv; da_glProgramUniformMatrix2fv glProgramUniformMatrix2fv; da_glProgramUniformMatrix3fv glProgramUniformMatrix3fv; da_glProgramUniformMatrix4fv glProgramUniformMatrix4fv; da_glProgramUniformMatrix2dv glProgramUniformMatrix2dv; da_glProgramUniformMatrix3dv glProgramUniformMatrix3dv; da_glProgramUniformMatrix4dv glProgramUniformMatrix4dv; da_glProgramUniformMatrix2x3fv glProgramUniformMatrix2x3fv; da_glProgramUniformMatrix3x2fv glProgramUniformMatrix3x2fv; da_glProgramUniformMatrix2x4fv glProgramUniformMatrix2x4fv; da_glProgramUniformMatrix4x2fv glProgramUniformMatrix4x2fv; da_glProgramUniformMatrix3x4fv glProgramUniformMatrix3x4fv; da_glProgramUniformMatrix4x3fv glProgramUniformMatrix4x3fv; da_glProgramUniformMatrix2x3dv glProgramUniformMatrix2x3dv; da_glProgramUniformMatrix3x2dv glProgramUniformMatrix3x2dv; da_glProgramUniformMatrix2x4dv glProgramUniformMatrix2x4dv; da_glProgramUniformMatrix4x2dv glProgramUniformMatrix4x2dv; da_glProgramUniformMatrix3x4dv glProgramUniformMatrix3x4dv; da_glProgramUniformMatrix4x3dv glProgramUniformMatrix4x3dv; da_glValidateProgramPipeline glValidateProgramPipeline; da_glGetProgramPipelineInfoLog glGetProgramPipelineInfoLog; } private __gshared bool _ARB_separate_shader_objects; bool ARB_separate_shader_objects() @property { return _ARB_separate_shader_objects; } package void load_ARB_separate_shader_objects(bool doThrow = false) { try { bindGLFunc(cast(void**)&glUseProgramStages, "glUseProgramStages"); bindGLFunc(cast(void**)&glActiveShaderProgram, "glActiveShaderProgram"); bindGLFunc(cast(void**)&glCreateShaderProgramv, "glCreateShaderProgramv"); bindGLFunc(cast(void**)&glBindProgramPipeline, "glBindProgramPipeline"); bindGLFunc(cast(void**)&glDeleteProgramPipelines, "glDeleteProgramPipelines"); bindGLFunc(cast(void**)&glGenProgramPipelines, "glGenProgramPipelines"); bindGLFunc(cast(void**)&glIsProgramPipeline, "glIsProgramPipeline"); bindGLFunc(cast(void**)&glGetProgramPipelineiv, "glGetProgramPipelineiv"); bindGLFunc(cast(void**)&glProgramUniform1i, "glProgramUniform1i"); bindGLFunc(cast(void**)&glProgramUniform1iv, "glProgramUniform1iv"); bindGLFunc(cast(void**)&glProgramUniform1f, "glProgramUniform1f"); bindGLFunc(cast(void**)&glProgramUniform1fv, "glProgramUniform1fv"); bindGLFunc(cast(void**)&glProgramUniform1d, "glProgramUniform1d"); bindGLFunc(cast(void**)&glProgramUniform1dv, "glProgramUniform1dv"); bindGLFunc(cast(void**)&glProgramUniform1ui, "glProgramUniform1ui"); bindGLFunc(cast(void**)&glProgramUniform1uiv, "glProgramUniform1uiv"); bindGLFunc(cast(void**)&glProgramUniform2i, "glProgramUniform2i"); bindGLFunc(cast(void**)&glProgramUniform2iv, "glProgramUniform2iv"); bindGLFunc(cast(void**)&glProgramUniform2f, "glProgramUniform2f"); bindGLFunc(cast(void**)&glProgramUniform2fv, "glProgramUniform2fv"); bindGLFunc(cast(void**)&glProgramUniform2d, "glProgramUniform2d"); bindGLFunc(cast(void**)&glProgramUniform2dv, "glProgramUniform2dv"); bindGLFunc(cast(void**)&glProgramUniform2ui, "glProgramUniform2ui"); bindGLFunc(cast(void**)&glProgramUniform2uiv, "glProgramUniform2uiv"); bindGLFunc(cast(void**)&glProgramUniform3i, "glProgramUniform3i"); bindGLFunc(cast(void**)&glProgramUniform3iv, "glProgramUniform3iv"); bindGLFunc(cast(void**)&glProgramUniform3f, "glProgramUniform3f"); bindGLFunc(cast(void**)&glProgramUniform3fv, "glProgramUniform3fv"); bindGLFunc(cast(void**)&glProgramUniform3d, "glProgramUniform3d"); bindGLFunc(cast(void**)&glProgramUniform3dv, "glProgramUniform3dv"); bindGLFunc(cast(void**)&glProgramUniform3ui, "glProgramUniform3ui"); bindGLFunc(cast(void**)&glProgramUniform3uiv, "glProgramUniform3uiv"); bindGLFunc(cast(void**)&glProgramUniform4i, "glProgramUniform4i"); bindGLFunc(cast(void**)&glProgramUniform4iv, "glProgramUniform4iv"); bindGLFunc(cast(void**)&glProgramUniform4f, "glProgramUniform4f"); bindGLFunc(cast(void**)&glProgramUniform4fv, "glProgramUniform4fv"); bindGLFunc(cast(void**)&glProgramUniform4d, "glProgramUniform4d"); bindGLFunc(cast(void**)&glProgramUniform4dv, "glProgramUniform4dv"); bindGLFunc(cast(void**)&glProgramUniform4ui, "glProgramUniform4ui"); bindGLFunc(cast(void**)&glProgramUniform4uiv, "glProgramUniform4uiv"); bindGLFunc(cast(void**)&glProgramUniformMatrix2fv, "glProgramUniformMatrix2fv"); bindGLFunc(cast(void**)&glProgramUniformMatrix3fv, "glProgramUniformMatrix3fv"); bindGLFunc(cast(void**)&glProgramUniformMatrix4fv, "glProgramUniformMatrix4fv"); bindGLFunc(cast(void**)&glProgramUniformMatrix2dv, "glProgramUniformMatrix2dv"); bindGLFunc(cast(void**)&glProgramUniformMatrix3dv, "glProgramUniformMatrix3dv"); bindGLFunc(cast(void**)&glProgramUniformMatrix4dv, "glProgramUniformMatrix4dv"); bindGLFunc(cast(void**)&glProgramUniformMatrix2x3fv, "glProgramUniformMatrix2x3fv"); bindGLFunc(cast(void**)&glProgramUniformMatrix3x2fv, "glProgramUniformMatrix3x2fv"); bindGLFunc(cast(void**)&glProgramUniformMatrix2x4fv, "glProgramUniformMatrix2x4fv"); bindGLFunc(cast(void**)&glProgramUniformMatrix4x2fv, "glProgramUniformMatrix4x2fv"); bindGLFunc(cast(void**)&glProgramUniformMatrix3x4fv, "glProgramUniformMatrix3x4fv"); bindGLFunc(cast(void**)&glProgramUniformMatrix4x3fv, "glProgramUniformMatrix4x3fv"); bindGLFunc(cast(void**)&glProgramUniformMatrix2x3dv, "glProgramUniformMatrix2x3dv"); bindGLFunc(cast(void**)&glProgramUniformMatrix3x2dv, "glProgramUniformMatrix3x2dv"); bindGLFunc(cast(void**)&glProgramUniformMatrix2x4dv, "glProgramUniformMatrix2x4dv"); bindGLFunc(cast(void**)&glProgramUniformMatrix4x2dv, "glProgramUniformMatrix4x2dv"); bindGLFunc(cast(void**)&glProgramUniformMatrix3x4dv, "glProgramUniformMatrix3x4dv"); bindGLFunc(cast(void**)&glProgramUniformMatrix4x3dv, "glProgramUniformMatrix4x3dv"); bindGLFunc(cast(void**)&glValidateProgramPipeline, "glValidateProgramPipeline"); bindGLFunc(cast(void**)&glGetProgramPipelineInfoLog, "glGetProgramPipelineInfoLog"); _ARB_separate_shader_objects = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_vertex_attrib_64bit extern(System) { alias nothrow void function(GLuint, GLdouble) da_glVertexAttribL1d; alias nothrow void function(GLuint, GLdouble, GLdouble) da_glVertexAttribL2d; alias nothrow void function(GLuint, GLdouble, GLdouble, GLdouble) da_glVertexAttribL3d; alias nothrow void function(GLuint, GLdouble, GLdouble, GLdouble, GLdouble) da_glVertexAttribL4d; alias nothrow void function(GLuint, const(GLdouble)*) da_glVertexAttribL1dv; alias nothrow void function(GLuint, const(GLdouble)*) da_glVertexAttribL2dv; alias nothrow void function(GLuint, const(GLdouble)*) da_glVertexAttribL3dv; alias nothrow void function(GLuint, const(GLdouble)*) da_glVertexAttribL4dv; alias nothrow void function(GLuint, GLint, GLenum, GLsizei, const(GLvoid)*) da_glVertexAttribLPointer; alias nothrow void function(GLuint, GLenum, GLdouble*) da_glGetVertexAttribLdv; } __gshared { da_glVertexAttribL1d glVertexAttribL1d; da_glVertexAttribL2d glVertexAttribL2d; da_glVertexAttribL3d glVertexAttribL3d; da_glVertexAttribL4d glVertexAttribL4d; da_glVertexAttribL1dv glVertexAttribL1dv; da_glVertexAttribL2dv glVertexAttribL2dv; da_glVertexAttribL3dv glVertexAttribL3dv; da_glVertexAttribL4dv glVertexAttribL4dv; da_glVertexAttribLPointer glVertexAttribLPointer; da_glGetVertexAttribLdv glGetVertexAttribLdv; } private __gshared bool _ARB_vertex_attrib_64bit; bool ARB_vertex_attrib_64bit() @property { return _ARB_vertex_attrib_64bit; } package void load_ARB_vertex_attrib_64bit(bool doThrow = false) { try { bindGLFunc(cast(void**)&glVertexAttribL1d, "glVertexAttribL1d"); bindGLFunc(cast(void**)&glVertexAttribL2d, "glVertexAttribL2d"); bindGLFunc(cast(void**)&glVertexAttribL3d, "glVertexAttribL3d"); bindGLFunc(cast(void**)&glVertexAttribL4d, "glVertexAttribL4d"); bindGLFunc(cast(void**)&glVertexAttribL1dv, "glVertexAttribL1dv"); bindGLFunc(cast(void**)&glVertexAttribL2dv, "glVertexAttribL2dv"); bindGLFunc(cast(void**)&glVertexAttribL3dv, "glVertexAttribL3dv"); bindGLFunc(cast(void**)&glVertexAttribL4dv, "glVertexAttribL4dv"); bindGLFunc(cast(void**)&glVertexAttribLPointer, "glVertexAttribLPointer"); bindGLFunc(cast(void**)&glGetVertexAttribLdv, "glGetVertexAttribLdv"); _ARB_vertex_attrib_64bit = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_viewport_array extern(System) { alias nothrow void function(GLuint, GLsizei, const(GLfloat)*) da_glViewportArrayv; alias nothrow void function(GLuint, GLfloat, GLfloat, GLfloat, GLfloat) da_glViewportIndexedf; alias nothrow void function(GLuint, const(GLfloat)*) da_glViewportIndexedfv; alias nothrow void function(GLuint, GLsizei, const(GLint)*) da_glScissorArrayv; alias nothrow void function(GLuint, GLint, GLint, GLsizei, GLsizei) da_glScissorIndexed; alias nothrow void function(GLuint, const(GLint)*) da_glScissorIndexedv; alias nothrow void function(GLuint, GLsizei, const(GLclampd)*) da_glDepthRangeArrayv; alias nothrow void function(GLuint, GLclampd, GLclampd) da_glDepthRangeIndexed; alias nothrow void function(GLenum, GLuint, GLfloat*) da_glGetFloati_v; alias nothrow void function(GLenum, GLuint, GLdouble*) da_glGetDoublei_v; } __gshared { da_glViewportArrayv glViewportArrayv; da_glViewportIndexedf glViewportIndexedf; da_glViewportIndexedfv glViewportIndexedfv; da_glScissorArrayv glScissorArrayv; da_glScissorIndexed glScissorIndexed; da_glScissorIndexedv glScissorIndexedv; da_glDepthRangeArrayv glDepthRangeArrayv; da_glDepthRangeIndexed glDepthRangeIndexed; da_glGetFloati_v glGetFloati_v; da_glGetDoublei_v glGetDoublei_v; } private __gshared bool _ARB_viewport_array; bool ARB_viewport_array() @property { return _ARB_viewport_array; } package void load_ARB_viewport_array(bool doThrow = false) { try { bindGLFunc(cast(void**)&glViewportArrayv, "glViewportArrayv"); bindGLFunc(cast(void**)&glViewportIndexedf, "glViewportIndexedf"); bindGLFunc(cast(void**)&glViewportIndexedfv, "glViewportIndexedfv"); bindGLFunc(cast(void**)&glScissorArrayv, "glScissorArrayv"); bindGLFunc(cast(void**)&glScissorIndexed, "glScissorIndexed"); bindGLFunc(cast(void**)&glScissorIndexedv, "glScissorIndexedv"); bindGLFunc(cast(void**)&glDepthRangeArrayv, "glDepthRangeArrayv"); bindGLFunc(cast(void**)&glDepthRangeIndexed, "glDepthRangeIndexed"); bindGLFunc(cast(void**)&glGetFloati_v, "glGetFloati_v"); bindGLFunc(cast(void**)&glGetDoublei_v, "glGetDoublei_v"); _ARB_viewport_array = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_cl_event extern(System) alias nothrow GLsync function(_cl_context*, _cl_event*, GLbitfield) da_glCreateSyncFromCLeventARB; __gshared da_glCreateSyncFromCLeventARB glCreateSyncFromCLeventARB; private __gshared bool _ARB_cl_event; bool ARB_cl_event() @property { return _ARB_cl_event; } package void load_ARB_cl_event() { try { bindGLFunc(cast(void**)&glCreateSyncFromCLeventARB, "glCreateSyncFromCLeventARB"); _ARB_cl_event = true; } catch(Exception e) { _ARB_cl_event = false; } } // ARB_debug_output extern(System) { alias nothrow void function(GLenum, GLenum, GLenum, GLsizei, const(GLuint)*, GLboolean) da_glDebugMessageControlARB; alias nothrow void function(GLenum, GLenum, GLuint, GLenum, GLsizei, const(GLchar)*) da_glDebugMessageInsertARB; alias nothrow void function(GLDEBUGPROCARB, const(GLvoid)*) da_glDebugMessageCallbackARB; alias nothrow void function(GLuint, GLsizei, GLenum*, GLenum*, GLuint*, GLenum*, GLsizei*, GLchar*) da_glGetDebugMessageLogARB; } __gshared { da_glDebugMessageControlARB glDebugMessageControlARB; da_glDebugMessageInsertARB glDebugMessageInsertARB; da_glDebugMessageCallbackARB glDebugMessageCallbackARB; da_glGetDebugMessageLogARB glGetDebugMessageLogARB; } private __gshared bool _ARB_debug_output; bool ARB_debug_output() @property { return _ARB_debug_output; } package void load_ARB_debug_output() { try { bindGLFunc(cast(void**)&glDebugMessageControlARB, "glDebugMessageControlARB"); bindGLFunc(cast(void**)&glDebugMessageInsertARB, "glDebugMessageInsertARB"); bindGLFunc(cast(void**)&glDebugMessageCallbackARB, "glDebugMessageCallbackARB"); bindGLFunc(cast(void**)&glGetDebugMessageLogARB, "glGetDebugMessageLogARB"); _ARB_debug_output = true; } catch(Exception e) { _ARB_debug_output = false; } } // ARB_robustness extern(System) { alias nothrow GLenum function() da_glGetGraphicsResetStatusARB; alias nothrow void function(GLenum, GLenum, GLsizei, GLdouble*) da_glGetnMapdvARB; alias nothrow void function(GLenum, GLenum, GLsizei, GLfloat*) da_glGetnMapfvARB; alias nothrow void function(GLenum, GLenum, GLsizei, GLint*) da_glGetnMapivARB; alias nothrow void function(GLenum, GLsizei, GLfloat*) da_glGetnPixelMapfvARB; alias nothrow void function(GLenum, GLsizei, GLuint*) da_glGetnPixelMapuivARB; alias nothrow void function(GLenum, GLsizei, GLushort*) da_glGetnPixelMapusvARB; alias nothrow void function(GLsizei, GLubyte*) da_glGetnPolygonStippleARB; alias nothrow void function(GLenum, GLenum, GLenum, GLsizei, GLvoid*) da_glGetnColorTableARB; alias nothrow void function(GLenum, GLenum, GLenum, GLsizei, GLvoid*) da_glGetnConvolutionFilterARB; alias nothrow void function(GLenum, GLenum, GLenum, GLsizei, GLvoid*, GLsizei, GLvoid*, GLvoid*) da_glGetnSeparableFilterARB; alias nothrow void function(GLenum, GLboolean, GLenum, GLenum, GLsizei, GLvoid*) da_glGetnHistogramARB; alias nothrow void function(GLenum, GLboolean, GLenum, GLenum, GLsizei, GLvoid*) da_glGetnMinmaxARB; alias nothrow void function(GLenum, GLint, GLenum, GLenum, GLsizei, GLvoid*) da_glGetnTexImageARB; alias nothrow void function(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLsizei, GLvoid*) da_glReadnPixelsARB; alias nothrow void function(GLenum, GLint, GLsizei, GLvoid*) da_glGetnCompressedTexImageARB; alias nothrow void function(GLuint, GLint, GLsizei, GLfloat*) da_glGetnUniformfvARB; alias nothrow void function(GLuint, GLint, GLsizei, GLint*) da_glGetnUniformivARB; alias nothrow void function(GLuint, GLint, GLsizei, GLuint*) da_glGetnUniformuivARB; alias nothrow void function(GLuint, GLint, GLsizei, GLdouble*) da_glGetnUniformdvARB; } __gshared { da_glGetGraphicsResetStatusARB glGetGraphicsResetStatusARB; da_glGetnMapdvARB glGetnMapdvARB; da_glGetnMapfvARB glGetnMapfvARB; da_glGetnMapivARB glGetnMapivARB; da_glGetnPixelMapfvARB glGetnPixelMapfvARB; da_glGetnPixelMapuivARB glGetnPixelMapuivARB; da_glGetnPixelMapusvARB glGetnPixelMapusvARB; da_glGetnPolygonStippleARB glGetnPolygonStippleARB; da_glGetnColorTableARB glGetnColorTableARB; da_glGetnConvolutionFilterARB glGetnConvolutionFilterARB; da_glGetnSeparableFilterARB glGetnSeparableFilterARB; da_glGetnHistogramARB glGetnHistogramARB; da_glGetnMinmaxARB glGetnMinmaxARB; da_glGetnTexImageARB glGetnTexImageARB; da_glReadnPixelsARB glReadnPixelsARB; da_glGetnCompressedTexImageARB glGetnCompressedTexImageARB; da_glGetnUniformfvARB glGetnUniformfvARB; da_glGetnUniformivARB glGetnUniformivARB; da_glGetnUniformuivARB glGetnUniformuivARB; da_glGetnUniformdvARB glGetnUniformdvARB; } private __gshared bool _ARB_robustness; bool ARB_robustness() @property { return _ARB_robustness; } package void load_ARB_robustness() { try { bindGLFunc(cast(void**)&glGetGraphicsResetStatusARB, "glGetGraphicsResetStatusARB"); bindGLFunc(cast(void**)&glGetnMapdvARB, "glGetnMapdvARB"); bindGLFunc(cast(void**)&glGetnMapfvARB, "glGetnMapfvARB"); bindGLFunc(cast(void**)&glGetnMapivARB, "glGetnMapivARB"); bindGLFunc(cast(void**)&glGetnPixelMapfvARB, "glGetnPixelMapfvARB"); bindGLFunc(cast(void**)&glGetnPixelMapuivARB, "glGetnPixelMapuivARB"); bindGLFunc(cast(void**)&glGetnPixelMapusvARB, "glGetnPixelMapusvARB"); bindGLFunc(cast(void**)&glGetnPolygonStippleARB, "glGetnPolygonStippleARB"); bindGLFunc(cast(void**)&glGetnColorTableARB, "glGetnColorTableARB"); bindGLFunc(cast(void**)&glGetnConvolutionFilterARB, "glGetnConvolutionFilterARB"); bindGLFunc(cast(void**)&glGetnSeparableFilterARB, "glGetnSeparableFilterARB"); bindGLFunc(cast(void**)&glGetnHistogramARB, "glGetnHistogramARB"); bindGLFunc(cast(void**)&glGetnMinmaxARB, "glGetnMinmaxARB"); bindGLFunc(cast(void**)&glGetnTexImageARB, "glGetnTexImageARB"); bindGLFunc(cast(void**)&glReadnPixelsARB, "glReadnPixelsARB"); bindGLFunc(cast(void**)&glGetnCompressedTexImageARB, "glGetnCompressedTexImageARB"); bindGLFunc(cast(void**)&glGetnCompressedTexImageARB, "glGetnCompressedTexImageARB"); bindGLFunc(cast(void**)&glGetnUniformfvARB, "glGetnUniformfvARB"); bindGLFunc(cast(void**)&glGetnUniformivARB, "glGetnUniformivARB"); bindGLFunc(cast(void**)&glGetnUniformuivARB, "glGetnUniformuivARB"); bindGLFunc(cast(void**)&glGetnUniformdvARB, "glGetnUniformdvARB"); _ARB_robustness = true; } catch(Exception e) { _ARB_robustness = false; } } // ARB_base_instance extern(System) { alias nothrow void function(GLenum, GLint, GLsizei, GLsizei, GLuint) da_glDrawArraysInstancedBaseInstance; alias nothrow void function(GLenum, GLsizei, GLenum, const(void)*, GLsizei, GLuint) da_glDrawElementsInstancedBaseInstance; alias nothrow void function(GLenum, GLsizei, GLenum, const(void)*, GLsizei, GLint, GLuint) da_glDrawElementsInstancedBaseVertexBaseInstance; } __gshared { da_glDrawArraysInstancedBaseInstance glDrawArraysInstancedBaseInstance; da_glDrawElementsInstancedBaseInstance glDrawElementsInstancedBaseInstance; da_glDrawElementsInstancedBaseVertexBaseInstance glDrawElementsInstancedBaseVertexBaseInstance; } private __gshared bool _ARB_base_instance; bool ARB_base_instance() @property { return _ARB_base_instance; } package void load_ARB_base_instance(bool doThrow = false) { try { bindGLFunc(cast(void**)&glDrawArraysInstancedBaseInstance, "glDrawArraysInstancedBaseInstance"); bindGLFunc(cast(void**)&glDrawElementsInstancedBaseInstance, "glDrawElementsInstancedBaseInstance"); bindGLFunc(cast(void**)&glDrawElementsInstancedBaseVertexBaseInstance, "glDrawElementsInstancedBaseVertexBaseInstance"); _ARB_base_instance = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_transform_feedback_instanced extern(System) alias nothrow void function(GLenum, GLuint, GLsizei) da_glDrawTransformFeedbackInstanced; extern(System) alias nothrow void function(GLenum, GLuint, GLuint, GLsizei) da_glDrawTransformFeedbackStreamInstanced; __gshared da_glDrawTransformFeedbackInstanced glDrawTransformFeedbackInstanced; __gshared da_glDrawTransformFeedbackStreamInstanced glDrawTransformFeedbackStreamInstanced; private __gshared bool _ARB_transform_feedback_instanced; bool ARB_transform_feedback_instanced() @property { return _ARB_transform_feedback_instanced; } package void load_ARB_transform_feedback_instanced(bool doThrow = false) { try { bindGLFunc(cast(void**)&glDrawTransformFeedbackInstanced, "glDrawTransformFeedbackInstanced"); bindGLFunc(cast(void**)&glDrawTransformFeedbackStreamInstanced, "glDrawTransformFeedbackStreamInstanced"); _ARB_transform_feedback_instanced = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_internalformat_query extern(System) alias nothrow void function(GLenum, GLenum, GLenum, GLsizei, GLint*) da_glGetInternalformativ; __gshared da_glGetInternalformativ glGetInternalformativ; private __gshared bool _ARB_internalformat_query; bool ARB_internalformat_query() @property { return _ARB_internalformat_query; } package void load_ARB_internalformat_query(bool doThrow = false) { try { bindGLFunc(cast(void**)&glGetInternalformativ, "glGetInternalformativ"); _ARB_internalformat_query = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_shader_atomic_counters extern(System) alias nothrow void function(GLuint, GLuint, GLenum, GLint*) da_glGetActiveAtomicCounterBufferiv; __gshared da_glGetActiveAtomicCounterBufferiv glGetActiveAtomicCounterBufferiv; private __gshared bool _ARB_shader_atomic_counters; bool ARB_shader_atomic_counters() @property { return _ARB_shader_atomic_counters; } package void load_ARB_shader_atomic_counters(bool doThrow = false) { try { bindGLFunc(cast(void**)&glGetActiveAtomicCounterBufferiv, "glGetActiveAtomicCounterBufferiv"); _ARB_shader_atomic_counters = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_shader_image_load_store extern(System) alias nothrow void function(GLuint, GLuint, GLint, GLboolean, GLint, GLenum, GLenum) da_glBindImageTexture; extern(System) alias nothrow void function(GLbitfield) da_glMemoryBarrier; __gshared da_glBindImageTexture glBindImageTexture; __gshared da_glMemoryBarrier glMemoryBarrier; private __gshared bool _ARB_shader_image_load_store; bool ARB_shader_image_load_store() @property { return _ARB_shader_image_load_store; } package void load_ARB_shader_image_load_store(bool doThrow = false) { try { bindGLFunc(cast(void**)&glBindImageTexture, "glBindImageTexture"); bindGLFunc(cast(void**)&glMemoryBarrier, "glMemoryBarrier"); _ARB_shader_image_load_store = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_texture_storage extern(System) { alias nothrow void function(GLenum, GLsizei, GLenum, GLsizei) da_glTexStorage1D; alias nothrow void function(GLenum, GLsizei, GLenum, GLsizei, GLsizei) da_glTexStorage2D; alias nothrow void function(GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLsizei) da_glTexStorage3D; alias nothrow void function(GLuint, GLenum, GLsizei, GLenum, GLsizei) da_glTextureStorage1DEXT; alias nothrow void function(GLuint, GLenum, GLsizei, GLenum, GLsizei, GLsizei) da_glTextureStorage2DEXT; alias nothrow void function(GLuint, GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLsizei) da_glTextureStorage3DEXT; } __gshared { da_glTexStorage1D glTexStorage1D; da_glTexStorage2D glTexStorage2D; da_glTexStorage3D glTexStorage3D; da_glTextureStorage1DEXT glTextureStorage1DEXT; da_glTextureStorage2DEXT glTextureStorage2DEXT; da_glTextureStorage3DEXT glTextureStorage3DEXT; } private __gshared bool _ARB_texture_storage; bool ARB_texture_storage() @property { return _ARB_texture_storage; } package void load_ARB_texture_storage(bool doThrow = false) { try { bindGLFunc(cast(void**)&glTexStorage1D, "glTexStorage1D"); bindGLFunc(cast(void**)&glTexStorage2D, "glTexStorage2D"); bindGLFunc(cast(void**)&glTexStorage3D, "glTexStorage3D"); bindGLFunc(cast(void**)&glTextureStorage1DEXT, "glTextureStorage1DEXT"); bindGLFunc(cast(void**)&glTextureStorage2DEXT, "glTextureStorage2DEXT"); bindGLFunc(cast(void**)&glTextureStorage3DEXT, "glTextureStorage3DEXT"); _ARB_texture_storage = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_array_of_arrays private __gshared bool _ARB_array_of_arrays; bool ARB_array_of_arrays() @property { return _ARB_array_of_arrays; } // ARB_fragment_layer_viewport private __gshared bool _ARB_fragment_layer_viewport; bool ARB_fragment_layer_viewport() @property { return _ARB_fragment_layer_viewport; } // ARB_shader_image_size private __gshared bool _ARB_shader_image_size; bool ARB_shader_image_size() @property { return _ARB_shader_image_size; } // ARB_ES3_compatibility private __gshared bool _ARB_ES3_compatibility; bool ARB_ES3_compatibility() @property { return _ARB_ES3_compatibility; } // ARB_clear_buffer_object extern(System) { alias nothrow void function(GLenum,GLenum,GLenum,GLenum,const(void)*) da_glClearBufferData; alias nothrow void function(GLenum,GLenum,GLintptr,GLsizeiptr,GLenum,GLenum,const(void)*) da_glClearBufferSubData; alias nothrow void function(GLuint,GLenum,GLenum,GLenum,const(void)*) da_glClearNamedBufferDataEXT; alias nothrow void function(GLuint,GLenum,GLenum,GLenum,GLsizeiptr,GLsizeiptr,const(void)*) da_glClearNamedBufferSubDataEXT; } __gshared { da_glClearBufferData glClearBufferData; da_glClearBufferSubData glClearBufferSubData; da_glClearNamedBufferDataEXT glClearNamedBufferDataEXT; da_glClearNamedBufferSubDataEXT glClearNamedBufferSubDataEXT; } private __gshared bool _ARB_clear_buffer_object; bool ARB_clear_buffer_object() @property { return _ARB_clear_buffer_object; } package void load_ARB_clear_buffer_object(bool doThrow = false) { try { bindGLFunc(cast(void**)&glClearBufferData, "glClearBufferData"); bindGLFunc(cast(void**)&glClearBufferSubData, "glClearBufferSubData"); bindGLFunc(cast(void**)&glClearNamedBufferDataEXT, "glClearNamedBufferDataEXT"); bindGLFunc(cast(void**)&glClearNamedBufferSubDataEXT, "glClearNamedBufferSubDataEXT"); _ARB_clear_buffer_object = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_compute_shader extern(System) { alias nothrow void function(GLuint,GLuint,GLuint) da_glDispatchCompute; alias nothrow void function(GLintptr) da_glDispatchComputeIndirect; } __gshared { da_glDispatchCompute glDispatchCompute; da_glDispatchComputeIndirect glDispatchComputeIndirect; } private __gshared bool _ARB_compute_shader; bool ARB_compute_shader() @property { return _ARB_compute_shader; } package void load_ARB_compute_shader(bool doThrow = false) { try { bindGLFunc(cast(void**)&glDispatchCompute, "glDispatchCompute"); bindGLFunc(cast(void**)&glDispatchComputeIndirect, "glDispatchComputeIndirect"); _ARB_compute_shader = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_copy_image private __gshared bool _ARB_copy_image; bool ARB_copy_image() @property { return _ARB_copy_image; } // KHR_debug extern(System) { // GLDEBUGPROC is a callback type -- don't try to load it! alias nothrow void function(GLenum,GLenum,GLuint,GLenum,GLsizei,const(GLchar)*,GLvoid*) GLDEBUGPROC; // These are the functions that need loading. alias nothrow void function(GLenum,GLenum,GLenum,GLsizei,const(GLuint*),GLboolean) da_glDebugMessageControl; alias nothrow void function(GLenum,GLenum,GLuint,GLenum,GLsizei,const(GLchar)*) da_glDebugMessageInsert; alias nothrow void function(GLDEBUGPROC,const(void)*) da_glDebugMessageCallback; alias nothrow GLuint function(GLuint,GLsizei,GLenum*,GLenum*,GLuint*,GLenum*,GLsizei*,GLchar*) da_glGetDebugMessageLog; alias nothrow void function(GLenum,GLuint,GLsizei,const(GLchar)*) da_glPushDebugGroup; alias nothrow void function() da_glPopDebugGroup; alias nothrow void function(GLenum,GLuint,GLsizei,GLsizei,const(GLchar)*) da_glObjectLabel; alias nothrow void function(GLenum,GLuint,GLsizei,GLsizei*,GLchar*) da_glGetObjectLabel; alias nothrow void function(const(void)*,GLsizei,const(GLchar)*) da_glObjectPtrLabel; alias nothrow void function(const(void)*,GLsizei,GLsizei*,GLchar*) da_glGetObjectPtrLabel; } __gshared { da_glDebugMessageControl glDebugMessageControl; da_glDebugMessageInsert glDebugMessageInsert; da_glDebugMessageCallback glDebugMessageCallback; da_glGetDebugMessageLog glGetDebugMessageLog; da_glPushDebugGroup glPushDebugGroup; da_glPopDebugGroup glPopDebugGroup; da_glObjectLabel glObjectLabel; da_glGetObjectLabel glGetObjectLabel; da_glObjectPtrLabel glObjectPtrLabel; da_glGetObjectPtrLabel glGetObjectPtrLabel; } private __gshared bool _KHR_debug; bool KHR_debug() @property { return _KHR_debug; } package void load_KHR_debug(bool doThrow = false) { try { bindGLFunc(cast(void**)&glDebugMessageControl, "glDebugMessageControl"); bindGLFunc(cast(void**)&glDebugMessageInsert, "glDebugMessageInsert"); bindGLFunc(cast(void**)&glDebugMessageCallback, "glDebugMessageCallback"); bindGLFunc(cast(void**)&glGetDebugMessageLog, "glGetDebugMessageLog"); bindGLFunc(cast(void**)&glPushDebugGroup, "glPushDebugGroup"); bindGLFunc(cast(void**)&glPopDebugGroup, "glPopDebugGroup"); bindGLFunc(cast(void**)&glObjectLabel, "glObjectLabel"); bindGLFunc(cast(void**)&glGetObjectLabel, "glGetObjectLabel"); bindGLFunc(cast(void**)&glObjectPtrLabel, "glObjectPtrLabel"); bindGLFunc(cast(void**)&glGetObjectPtrLabel, "glGetObjectPtrLabel"); _KHR_debug = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_explicit_uniform_location private __gshared bool _ARB_explicit_uniform_location; bool ARB_explicit_uniform_location() @property { return _ARB_explicit_uniform_location; } // ARB_framebuffer_no_attachments extern(System) { alias nothrow void function(GLenum,GLenum,GLint) da_glFramebufferParameteri; alias nothrow void function(GLenum,GLenum,GLint*) da_glGetFramebufferParameteriv; alias nothrow void function(GLuint,GLenum,GLint) da_glNamedFramebufferParameteriEXT; alias nothrow void function(GLuint,GLenum,GLint*) da_glGetNamedFramebufferParameterivEXT; } __gshared { da_glFramebufferParameteri glFramebufferParameteri; da_glGetFramebufferParameteriv glGetFramebufferParameteriv; da_glNamedFramebufferParameteriEXT glNamedFramebufferParameteriEXT; da_glGetNamedFramebufferParameterivEXT glGetNamedFramebufferParameterivEXT; } private __gshared bool _ARB_framebuffer_no_attachments; bool ARB_framebuffer_no_attachments() @property { return _ARB_framebuffer_no_attachments; } package void load_ARB_framebuffer_no_attachments(bool doThrow = false) { try { bindGLFunc(cast(void**)&glFramebufferParameteri, "glFramebufferParameteri"); bindGLFunc(cast(void**)&glGetFramebufferParameteriv, "glGetFramebufferParameteriv"); bindGLFunc(cast(void**)&glNamedFramebufferParameteriEXT, "glNamedFramebufferParameteriEXT"); bindGLFunc(cast(void**)&glGetNamedFramebufferParameterivEXT, "glGetNamedFramebufferParameterivEXT"); _ARB_framebuffer_no_attachments = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_internalformat_query2 extern(System) alias nothrow void function(GLenum,GLenum,GLenum,GLsizei,GLint64*) da_glGetInternalformati64v; __gshared da_glGetInternalformati64v glGetInternalformati64v; private __gshared bool _ARB_internalformat_query2; bool ARB_internalformat_query2() @property { return _ARB_internalformat_query2; } package void load_ARB_internalformat_query2(bool doThrow = false) { try { bindGLFunc(cast(void**)&glGetInternalformati64v, "glGetInternalformati64v"); _ARB_internalformat_query2 = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_invalidate_subdata extern(System) { alias nothrow void function(GLuint,GLint,GLint,GLint,GLint,GLsizei,GLsizei,GLsizei) da_glInvalidateTexSubImage; alias nothrow void function(GLuint,GLint) da_glInvalidateTexImage; alias nothrow void function(GLuint,GLintptr,GLsizeiptr) da_glInvalidateBufferSubData; alias nothrow void function(GLuint) da_glInvalidateBufferData; alias nothrow void function(GLenum,GLsizei,const(GLenum)*) da_glInvalidateFramebuffer; alias nothrow void function(GLenum,GLsizei,const(GLenum)*,GLint,GLint,GLsizei,GLsizei) da_glInvalidateSubFramebuffer; } __gshared { da_glInvalidateTexSubImage glInvalidateTexSubImage; da_glInvalidateTexImage glInvalidateTexImage; da_glInvalidateBufferSubData glInvalidateBufferSubData; da_glInvalidateBufferData glInvalidateBufferData; da_glInvalidateFramebuffer glInvalidateFramebuffer; da_glInvalidateSubFramebuffer glInvalidateSubFramebuffer; } private __gshared bool _ARB_invalidate_subdata; bool ARB_invalidate_subdata() @property { return _ARB_invalidate_subdata; } package void load_ARB_invalidate_subdata(bool doThrow = false) { try { bindGLFunc(cast(void**)&glInvalidateTexSubImage, "glInvalidateTexSubImage"); bindGLFunc(cast(void**)&glInvalidateTexImage, "glInvalidateTexImage"); bindGLFunc(cast(void**)&glInvalidateBufferSubData, "glInvalidateBufferSubData"); bindGLFunc(cast(void**)&glInvalidateBufferData, "glInvalidateBufferData"); bindGLFunc(cast(void**)&glInvalidateFramebuffer, "glInvalidateFramebuffer"); bindGLFunc(cast(void**)&glInvalidateSubFramebuffer, "glInvalidateSubFramebuffer"); _ARB_invalidate_subdata = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_multi_draw_indirect extern(System) alias nothrow void function(GLenum,const(void)*,GLsizei,GLsizei) da_glMultiDrawArraysIndirect; extern(System) alias nothrow void function(GLenum,GLenum,const(void)*,GLsizei,GLsizei) da_glMultiDrawElementsIndirect; __gshared da_glMultiDrawArraysIndirect glMultiDrawArraysIndirect; __gshared da_glMultiDrawElementsIndirect glMultiDrawElementsIndirect; private __gshared bool _ARB_multi_draw_indirect; bool ARB_multi_draw_indirect() @property { return _ARB_multi_draw_indirect; } package void load_ARB_multi_draw_indirect(bool doThrow = false) { try { bindGLFunc(cast(void**)&glMultiDrawArraysIndirect, "glMultiDrawArraysIndirect"); bindGLFunc(cast(void**)&glMultiDrawElementsIndirect, "glMultiDrawElementsIndirect"); _ARB_multi_draw_indirect = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_program_interface_query extern(System) { alias nothrow void function(GLuint,GLenum,GLenum,GLint*) da_glGetProgramInterfaceiv; alias nothrow GLuint function(GLuint,GLenum,const(GLchar)*) da_glGetProgramResourceIndex; alias nothrow void function(GLuint,GLenum,GLuint,GLsizei,GLsizei*,GLchar*) da_glGetProgramResourceName; alias nothrow void function(GLuint,GLenum,GLuint,GLsizei,const(GLenum)*,GLsizei,GLsizei*,GLint*) da_glGetProgramResourceiv; alias nothrow GLint function(GLuint,GLenum,const(GLchar)*) da_glGetProgramResourceLocation; alias nothrow GLint function(GLuint,GLenum,const(GLchar)*) da_glGetProgramResourceLocationIndex; } __gshared { da_glGetProgramInterfaceiv glGetProgramInterfaceiv; da_glGetProgramResourceIndex glGetProgramResourceIndex; da_glGetProgramResourceName glGetProgramResourceName; da_glGetProgramResourceiv glGetProgramResourceiv; da_glGetProgramResourceLocation glGetProgramResourceLocation; da_glGetProgramResourceLocationIndex glGetProgramResourceLocationIndex; } private __gshared bool _ARB_program_interface_query; bool ARB_program_interface_query() @property { return _ARB_program_interface_query; } package void load_ARB_program_interface_query(bool doThrow = false) { try { bindGLFunc(cast(void**)&glGetProgramInterfaceiv, "glGetProgramInterfaceiv"); bindGLFunc(cast(void**)&glGetProgramResourceIndex, "glGetProgramResourceIndex"); bindGLFunc(cast(void**)&glGetProgramResourceName, "glGetProgramResourceName"); bindGLFunc(cast(void**)&glGetProgramResourceiv, "glGetProgramResourceiv"); bindGLFunc(cast(void**)&glGetProgramResourceLocation, "glGetProgramResourceLocation"); bindGLFunc(cast(void**)&glGetProgramResourceLocationIndex, "glGetProgramResourceLocationIndex"); _ARB_program_interface_query = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_robust_buffer_access_behavior private __gshared bool _ARB_robust_buffer_access_behavior; bool ARB_robust_buffer_access_behavior() @property { return _ARB_robust_buffer_access_behavior; } // ARB_shader_storage_buffer_object extern(System) alias nothrow void function(GLuint,GLuint,GLuint) da_glShaderStorageBlockBinding; __gshared da_glShaderStorageBlockBinding glShaderStorageBlockBinding; private __gshared bool _ARB_shader_storage_buffer_object; bool ARB_shader_storage_buffer_object() @property { return _ARB_shader_storage_buffer_object; } package void load_ARB_shader_storage_buffer_object(bool doThrow = false) { try { bindGLFunc(cast(void**)&glShaderStorageBlockBinding, "glShaderStorageBlockBinding"); _ARB_shader_storage_buffer_object = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_stencil_texturing private __gshared bool _ARB_stencil_texturing; bool ARB_stencil_texturing() @property { return _ARB_stencil_texturing; } // ARB_texture_buffer_range extern(System) alias nothrow void function(GLenum,GLenum,GLuint,GLintptr,GLsizeiptr) da_glTexBufferRange; extern(System) alias nothrow void function(GLuint,GLenum,GLenum,GLuint,GLintptr,GLsizeiptr) da_glTextureBufferRangeEXT; __gshared da_glTexBufferRange glTexBufferRange; __gshared da_glTextureBufferRangeEXT glTextureBufferRangeEXT; private __gshared bool _ARB_texture_buffer_range; bool ARB_texture_buffer_range() @property { return _ARB_texture_buffer_range; } package void load_ARB_texture_buffer_range(bool doThrow = false) { try { bindGLFunc(cast(void**)&glTexBufferRange, "glTexBufferRange"); bindGLFunc(cast(void**)&glTextureBufferRangeEXT, "glTextureBufferRangeEXT"); _ARB_texture_buffer_range = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_texture_query_levels private __gshared bool _ARB_texture_query_levels; bool ARB_texture_query_levels() @property { return _ARB_texture_query_levels; } // ARB_texture_storage_multisample extern(System) { alias nothrow void function(GLenum,GLsizei,GLenum,GLsizei,GLsizei,GLboolean) da_glTexStorage2DMultisample; alias nothrow void function(GLenum,GLsizei,GLenum,GLsizei,GLsizei,GLsizei,GLboolean) da_glTexStorage3DMultisample; alias nothrow void function(GLuint,GLenum,GLsizei,GLenum,GLsizei,GLsizei,GLboolean) da_glTextureStorage2DMultisampleEXT; alias nothrow void function(GLuint,GLenum,GLsizei,GLenum,GLsizei,GLsizei,GLsizei,GLboolean) da_glTextureStorage3DMultisampleEXT; } __gshared { da_glTexStorage2DMultisample glTexStorage2DMultisample; da_glTexStorage3DMultisample glTexStorage3DMultisample; da_glTextureStorage2DMultisampleEXT glTextureStorage2DMultisampleEXT; da_glTextureStorage3DMultisampleEXT glTextureStorage3DMultisampleEXT; } private __gshared bool _ARB_texture_storage_multisample; bool ARB_texture_storage_multisample() @property { return _ARB_texture_storage_multisample; } package void load_ARB_texture_storage_multisample(bool doThrow = false) { try { bindGLFunc(cast(void**)&glTexStorage2DMultisample, "glTexStorage2DMultisample"); bindGLFunc(cast(void**)&glTexStorage3DMultisample, "glTexStorage3DMultisample"); bindGLFunc(cast(void**)&glTextureStorage2DMultisampleEXT, "glTextureStorage2DMultisampleEXT"); bindGLFunc(cast(void**)&glTextureStorage3DMultisampleEXT, "glTextureStorage3DMultisampleEXT"); _ARB_texture_storage_multisample = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_texture_view extern(System) alias nothrow void function(GLuint,GLenum,GLuint,GLenum,GLuint,GLuint,GLuint,GLuint) da_glTextureView; __gshared da_glTextureView glTextureView; private __gshared bool _ARB_texture_view; bool ARB_texture_view() @property { return _ARB_texture_view; } package void load_ARB_texture_view(bool doThrow = false) { try { bindGLFunc(cast(void**)&glTextureView, "glTextureView"); _ARB_texture_view = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_vertex_attrib_binding extern(System) { alias nothrow void function(GLuint,GLuint,GLintptr,GLsizei) da_glBindVertexBuffer; alias nothrow void function(GLuint,GLint,GLenum,GLboolean,GLuint) da_glVertexAttribFormat; alias nothrow void function(GLuint,GLint,GLenum,GLuint) da_glVertexAttribIFormat; alias nothrow void function(GLuint,GLint,GLenum,GLuint) da_glVertexAttribLFormat; alias nothrow void function(GLuint,GLuint) da_glVertexAttribBinding; alias nothrow void function(GLuint,GLuint) da_glVertexBindingDivisor; alias nothrow void function(GLuint,GLuint,GLuint,GLintptr,GLsizei) da_glVertexArrayBindVertexBufferEXT; alias nothrow void function(GLuint,GLuint,GLint,GLenum,GLboolean,GLuint) da_glVertexArrayVertexAttribFormatEXT; alias nothrow void function(GLuint,GLuint,GLint,GLenum,GLuint) da_glVertexArrayVertexAttribIFormatEXT; alias nothrow void function(GLuint,GLuint,GLint,GLenum,GLuint) da_glVertexArrayVertexAttribLFormatEXT; alias nothrow void function(GLuint,GLuint,GLuint) da_glVertexArrayVertexAttribBindingEXT; alias nothrow void function(GLuint,GLuint,GLuint) da_glVertexArrayVertexBindingDivisorEXT; } __gshared { da_glBindVertexBuffer glBindVertexBuffer; da_glVertexAttribFormat glVertexAttribFormat; da_glVertexAttribIFormat glVertexAttribIFormat; da_glVertexAttribLFormat glVertexAttribLFormat; da_glVertexAttribBinding glVertexAttribBinding; da_glVertexBindingDivisor glVertexBindingDivisor; da_glVertexArrayBindVertexBufferEXT glVertexArrayBindVertexBufferEXT; da_glVertexArrayVertexAttribFormatEXT glVertexArrayVertexAttribFormatEXT; da_glVertexArrayVertexAttribIFormatEXT glVertexArrayVertexAttribIFormatEXT; da_glVertexArrayVertexAttribLFormatEXT glVertexArrayVertexAttribLFormatEXT; da_glVertexArrayVertexAttribBindingEXT glVertexArrayVertexAttribBindingEXT; da_glVertexArrayVertexBindingDivisorEXT glVertexArrayVertexBindingDivisorEXT; } private __gshared bool _ARB_vertex_attrib_binding; bool ARB_vertex_attrib_binding() @property { return _ARB_vertex_attrib_binding; } package void load_ARB_vertex_attrib_binding(bool doThrow = false) { try { bindGLFunc(cast(void**)&glBindVertexBuffer, "glBindVertexBuffer"); bindGLFunc(cast(void**)&glVertexAttribFormat, "glVertexAttribFormat"); bindGLFunc(cast(void**)&glVertexAttribIFormat, "glVertexAttribIFormat"); bindGLFunc(cast(void**)&glVertexAttribLFormat, "glVertexAttribLFormat"); bindGLFunc(cast(void**)&glVertexAttribBinding, "glVertexAttribBinding"); bindGLFunc(cast(void**)&glVertexBindingDivisor, "glVertexBindingDivisor"); bindGLFunc(cast(void**)&glVertexArrayBindVertexBufferEXT, "glVertexArrayBindVertexBufferEXT"); bindGLFunc(cast(void**)&glVertexArrayVertexAttribFormatEXT, "glVertexArrayVertexAttribFormatEXT"); bindGLFunc(cast(void**)&glVertexArrayVertexAttribIFormatEXT, "glVertexArrayVertexAttribIFormatEXT"); bindGLFunc(cast(void**)&glVertexArrayVertexAttribLFormatEXT, "glVertexArrayVertexAttribLFormatEXT"); bindGLFunc(cast(void**)&glVertexArrayVertexAttribBindingEXT, "glVertexArrayVertexAttribBindingEXT"); bindGLFunc(cast(void**)&glVertexArrayVertexBindingDivisorEXT, "glVertexArrayVertexBindingDivisorEXT"); _ARB_vertex_attrib_binding = true; } catch(Exception e) { if(doThrow) throw e; } } // ARB_vertex_program extern(System) { alias nothrow void function(GLsizei n, GLuint* programs) da_glGenProgramsARB; } __gshared { da_glGenProgramsARB glGenProgramsARB; } private __gshared bool _ARB_vertex_program; bool ARB_vertex_program() @property { return _ARB_vertex_program; } package void load_ARB_vertex_program(bool doThrow = false) { try { bindGLFunc(cast(void**)&glGenProgramsARB, "glGenProgramsARB"); _ARB_vertex_program = true; } catch(Exception e) { if(doThrow) throw e; } } // TODO Added. Not in vanilla Derelict3 :/ // ARB_vertex_buffer_object extern(System) { alias nothrow void function(GLenum,GLuint) da_glBindBufferARB; alias nothrow void function(GLenum,GLsizeiptrARB,const(GLvoid*),GLenum) da_glBufferDataARB; alias nothrow void function(GLenum,GLintptrARB, GLsizeiptrARB,const GLvoid*) da_glBufferSubDataARB; alias nothrow void function(GLsizei,const(GLuint*)) da_glDeleteBuffersARB; alias nothrow void function(GLsizei,GLuint*) da_glGenBuffersARB; alias nothrow void function(GLenum,GLenum,GLint*) da_glGetBufferParameterivARB; alias nothrow void function(GLenum,GLenum,GLvoid**) da_glGetBufferPointervARB; alias nothrow void function(GLenum,GLintptrARB,GLsizeiptrARB,GLvoid*) da_glGetBufferSubDataARB; alias nothrow GLboolean function(GLuint) da_glIsBufferARB; alias nothrow GLvoid* function(GLenum,GLenum) da_glMapBufferARB; alias nothrow GLboolean function(GLenum) da_glUnmapBufferARB; } __gshared { da_glBindBufferARB glBindBufferARB; da_glBufferDataARB glBufferDataARB; da_glBufferSubDataARB glBufferSubDataARB; da_glDeleteBuffersARB glDeleteBuffersARB; da_glGenBuffersARB glGenBuffersARB; da_glGetBufferParameterivARB glGetBufferParameterivARB; da_glGetBufferPointervARB glGetBufferPointervARB; da_glGetBufferSubDataARB glGetBufferSubDataARB; da_glIsBufferARB glIsBufferARB; da_glMapBufferARB glMapBufferARB; da_glUnmapBufferARB glUnmapBufferARB; } private __gshared bool _ARB_vertex_buffer_object; bool ARB_vertex_buffer_object() @property { return _ARB_vertex_buffer_object; } package void load_ARB_vertex_buffer_object(bool doThrow = false) { try { //May need ARB suff? bindGLFunc(cast(void**)&glBufferDataARB,"glBufferDataARB"); bindGLFunc(cast(void**)&glBufferSubDataARB,"glBufferSubDataARB"); bindGLFunc(cast(void**)&glDeleteBuffersARB,"glDeleteBuffersARB"); bindGLFunc(cast(void**)&glGenBuffersARB,"glGenBuffersARB"); bindGLFunc(cast(void**)&glGetBufferParameterivARB,"glGetBufferParameterivARB"); bindGLFunc(cast(void**)&glGetBufferPointervARB,"glGetBufferPointervARB"); bindGLFunc(cast(void**)&glGetBufferSubDataARB,"glGetBufferSubDataARB"); bindGLFunc(cast(void**)&glIsBufferARB,"glIsBufferARB"); bindGLFunc(cast(void**)&glMapBufferARB,"glMapBufferARB"); _ARB_vertex_buffer_object = true; } catch(Exception e) { if(doThrow) throw e; } } extern(System) { alias nothrow void function(GLenum target, GLenum pname, GLint* params) da_glGetProgramivARB; } __gshared { da_glGetProgramivARB glGetProgramivARB; } package void load_ARB_misc_arb(bool doThrow = false) { try { bindGLFunc(cast(void**)&glGetProgramivARB, "glGetProgramivARB"); } catch(Exception e) { if(doThrow) throw e; } } //Added. Not in vanilla Derelict3 private __gshared bool _ARB_instanced_arrays; bool ARB_instanced_arrays() @property { return _ARB_instanced_arrays; } private __gshared bool _ARB_texture_env_combine; bool ARB_texture_env_combine() @property { return _ARB_texture_env_combine; } private __gshared bool _ARB_multitexture; bool ARB_multitexture() @property { return _ARB_multitexture; } private __gshared bool _ARB_fragment_program; bool ARB_fragment_program() @property { return _ARB_fragment_program; } private __gshared bool _ARB_texture_env_dot3; bool ARB_texture_env_dot3() @property { return _ARB_texture_env_dot3; } private __gshared bool _ARB_texture_cube_map; bool ARB_texture_cube_map() @property { return _ARB_texture_cube_map; } private __gshared bool _ARB_point_sprite; bool ARB_point_sprite() @property { return _ARB_point_sprite; } private __gshared bool _ARB_point_parameters; bool ARB_point_parameters() @property { return _ARB_point_parameters; } private __gshared bool _ARB_occlusion_query; bool ARB_occlusion_query() @property { return _ARB_occlusion_query; } private __gshared bool _ARB_texture_compression; bool ARB_texture_compression() @property { return _ARB_texture_compression; } private __gshared bool _ARB_pixel_buffer_object; bool ARB_pixel_buffer_object() @property { return _ARB_pixel_buffer_object; } private __gshared bool _ARB_texture_float; bool ARB_texture_float() @property { return _ARB_texture_float; } private __gshared bool _ARB_texture_non_power_of_two; bool ARB_texture_non_power_of_two() @property { return _ARB_texture_non_power_of_two; } private __gshared bool _ARB_draw_buffers; bool ARB_draw_buffers() @property { return _ARB_draw_buffers; } private __gshared bool _ARB_shading_language_100; bool ARB_shading_language_100() @property { return _ARB_shading_language_100; } private __gshared bool _ARB_shader_objects; bool ARB_shader_objects() @property { return _ARB_shader_objects; } private __gshared bool _ARB_fragment_shader; bool ARB_fragment_shader() @property { return _ARB_fragment_shader; } private __gshared bool _ARB_vertex_shader; bool ARB_vertex_shader() @property { return _ARB_vertex_shader; } package void loadARB(GLVersion glversion) { //XXX Added. Not in vanilla Derelict3. Probably would need to check for some glversion _ARB_vertex_shader = isExtSupported(glversion, "GL_ARB_vertex_shader"); _ARB_fragment_shader = isExtSupported(glversion, "GL_ARB_fragment_shader"); _ARB_shader_objects = isExtSupported(glversion, "GL_ARB_shader_objects"); _ARB_shading_language_100 = isExtSupported(glversion, "GL_ARB_shading_language_100"); _ARB_vertex_buffer_object = isExtSupported(glversion, "GL_ARB_vertex_buffer_object"); _ARB_vertex_program = isExtSupported(glversion, "GL_ARB_vertex_program"); _ARB_draw_buffers = isExtSupported(glversion, "GL_ARB_draw_buffers"); _ARB_texture_non_power_of_two = isExtSupported(glversion, "GL_ARB_texture_non_power_of_two"); _ARB_texture_float = isExtSupported(glversion, "GL_ARB_texture_float"); _ARB_pixel_buffer_object = isExtSupported(glversion, "GL_ARB_pixel_buffer_object"); _ARB_instanced_arrays = isExtSupported(glversion, "GL_ARB_instanced_arrays");//in functions.d _ARB_texture_compression = isExtSupported(glversion, "GL_ARB_texture_compression"); _ARB_occlusion_query = isExtSupported(glversion, "GL_ARB_occlusion_query"); _ARB_point_parameters = isExtSupported(glversion, "GL_ARB_point_parameters"); _ARB_point_sprite = isExtSupported(glversion, "GL_ARB_point_sprite"); _ARB_texture_env_combine = isExtSupported(glversion, "GL_ARB_texture_env_combine"); _ARB_multitexture = isExtSupported(glversion, "GL_ARB_multitexture"); _ARB_fragment_program = isExtSupported(glversion, "GL_ARB_fragment_program"); _ARB_vertex_program = isExtSupported(glversion, "GL_ARB_vertex_program"); _ARB_texture_env_dot3 = isExtSupported(glversion, "GL_ARB_texture_env_dot3"); _ARB_texture_cube_map = isExtSupported(glversion, "GL_ARB_texture_cube_map"); if(_ARB_vertex_program) load_ARB_vertex_program(); if(_ARB_vertex_buffer_object) load_ARB_vertex_buffer_object(); load_ARB_misc_arb(); //end-of-Added. Not in vanilla Derelict3. if(glversion < GLVersion.GL30) { if(isExtSupported(glversion, "GL_ARB_framebuffer_object")) load_ARB_framebuffer_object(); if(isExtSupported(glversion, "GL_ARB_map_buffer_range")) load_ARB_map_buffer_range(); if(isExtSupported(glversion, "GL_ARB_vertex_array_object")) load_ARB_vertex_array_object(); } if(glversion < GLVersion.GL31) { if(isExtSupported(glversion, "GL_ARB_copy_buffer")) load_ARB_copy_buffer(); if(isExtSupported(glversion, "GL_ARB_uniform_buffer_object")) load_ARB_uniform_buffer_object(); } if(glversion < GLVersion.GL32) { if(isExtSupported(glversion, "GL_ARB_draw_elements_base_vertex")) load_ARB_draw_elements_base_vertex(); if(isExtSupported(glversion, "GL_ARB_provoking_vertex")) load_ARB_provoking_vertex(); if(isExtSupported(glversion, "GL_ARB_sync")) load_ARB_sync(); if(isExtSupported(glversion, "GL_ARB_texture_multisample")) load_ARB_texture_multisample(); } if(glversion < GLVersion.GL33) { if(isExtSupported(glversion, "GL_ARB_blend_func_extended")) load_ARB_blend_func_extended(); if(isExtSupported(glversion, "GL_ARB_sampler_objects")) load_ARB_sampler_objects(); _ARB_explicit_attrib_location = isExtSupported(glversion, "GL_ARB_explicit_attrib_location"); _ARB_occlusion_query2 = isExtSupported(glversion, "GL_ARB_occlusion_query2"); _ARB_shader_bit_encoding = isExtSupported(glversion, "GL_ARB_shader_bit_encoding"); _ARB_texture_rgb10_a2ui = isExtSupported(glversion, "GL_ARB_texture_rgb10_a2ui"); _ARB_texture_swizzle = isExtSupported(glversion, "GL_ARB_texture_swizzle"); if(isExtSupported(glversion, "GL_ARB_timer_query")) load_ARB_timer_query(); if(isExtSupported(glversion, "GL_ARB_vertex_type_2_10_10_10_rev")) load_ARB_vertex_type_2_10_10_10_rev(); } if(glversion < GLVersion.GL40) { _ARB_texture_query_lod = isExtSupported(glversion, "GL_ARB_texture_query_lod"); if(isExtSupported(glversion, "GL_ARB_draw_indirect")) load_ARB_draw_indirect(); _ARB_gpu_shader5 = isExtSupported(glversion, "GL_ARB_gpu_shader5"); if(isExtSupported(glversion, "GL_ARB_gpu_shader_fp64")) load_ARB_gpu_shader_fp64(); if(isExtSupported(glversion, "GL_ARB_shader_subroutine")) load_ARB_shader_subroutine(); if(isExtSupported(glversion, "GL_ARB_tessellation_shader")) load_ARB_tessellation_shader(); _ARB_texture_buffer_object_rgb32 = isExtSupported(glversion, "GL_ARB_texture_buffer_object_rgb32"); _ARB_texture_cube_map_array = isExtSupported(glversion, "GL_ARB_texture_cube_map_array"); _ARB_texture_gather = isExtSupported(glversion, "GL_ARB_texture_gather"); if(isExtSupported(glversion, "GL_ARB_transform_feedback2")) load_ARB_transform_feedback2(); if(isExtSupported(glversion, "GL_ARB_transform_feedback3")) load_ARB_transform_feedback3(); } if(glversion < GLVersion.GL41) { if(isExtSupported(glversion, "GL_ARB_ES2_compatibility")) load_ARB_ES2_compatibility(); if(isExtSupported(glversion, "GL_ARB_get_program_binary")) load_ARB_get_program_binary(); if(isExtSupported(glversion, "GL_ARB_separate_shader_objects")) load_ARB_separate_shader_objects(); _ARB_shader_precision = isExtSupported(glversion, "GL_ARB_shader_precision"); if(isExtSupported(glversion, "GL_ARB_vertex_attrib_64bit")) load_ARB_vertex_attrib_64bit(); if(isExtSupported(glversion, "GL_ARB_viewport_array")) load_ARB_viewport_array(); } if(glversion < GLVersion.GL42) { if(isExtSupported(glversion, "GL_ARB_base_instance")) load_ARB_base_instance(); _ARB_shading_language_420pack = isExtSupported(glversion, "GL_ARB_shading_language_420pack"); if(isExtSupported(glversion, "GL_ARB_transform_feedback_instanced")) load_ARB_transform_feedback_instanced(); _ARB_compressed_texture_pixel_storage = isExtSupported(glversion, "GL_ARB_compressed_texture_pixel_storage"); _ARB_conservative_depth = isExtSupported(glversion, "GL_ARB_conservative_depth"); if(isExtSupported(glversion, "GL_ARB_internalformat_query")) load_ARB_internalformat_query(); _ARB_map_buffer_alignment = isExtSupported(glversion, "GL_ARB_map_buffer_alignment"); if(isExtSupported(glversion, "GL_ARB_shader_atomic_counters")) load_ARB_shader_atomic_counters(); if(isExtSupported(glversion, "GL_ARB_shader_image_load_store")) load_ARB_shader_image_load_store(); _ARB_shading_language_packing = isExtSupported(glversion, "GL_ARB_shading_language_packing"); if(isExtSupported(glversion, "GL_ARB_texture_storage")) load_ARB_texture_storage(); } if(glversion< GLVersion.GL43) { _ARB_array_of_arrays = isExtSupported(glversion, "GL_ARB_array_of_arrays"); _ARB_fragment_layer_viewport = isExtSupported(glversion, "GL_ARB_fragment_layer_viewport"); _ARB_shader_image_size = isExtSupported(glversion, "GL_ARB_shader_image_size"); _ARB_ES3_compatibility = isExtSupported(glversion, "GL_ARB_ES3_compatibility"); if(isExtSupported(glversion, "GL_ARB_clear_ buffer_object") ) load_ARB_clear_buffer_object(); if(isExtSupported(glversion, "GL_ARB_compute_shader")) load_ARB_compute_shader(); _ARB_copy_image = isExtSupported(glversion, "GL_ARB_copy_image"); if(isExtSupported(glversion, "GL_KHR_debug")) load_KHR_debug(); _ARB_explicit_uniform_location = isExtSupported(glversion, "GL_ARB_explicit_uniform_location"); if(isExtSupported(glversion, "GL_ARB_framebuffer_no_attachments")) load_ARB_framebuffer_no_attachments(); if(isExtSupported(glversion, "GL_ARB_internalformat_query2")) load_ARB_internalformat_query2(); if(isExtSupported(glversion,"GL_ARB_invalidate_subdata")) load_ARB_invalidate_subdata(); if(isExtSupported(glversion,"GL_ARB_multi_draw_indirect")) load_ARB_multi_draw_indirect(); if(isExtSupported(glversion, "GL_ARB_program_interface_query")) load_ARB_program_interface_query(); _ARB_robust_buffer_access_behavior = isExtSupported(glversion, "GL_ARB_robust_buffer_access_behavior"); if(isExtSupported(glversion, "GL_ARB_shader_storage_buffer_object")) load_ARB_shader_storage_buffer_object(); _ARB_stencil_texturing = isExtSupported(glversion, "GL_ARB_stencil_texturing"); if(isExtSupported(glversion, "GL_ARB_texture_buffer_range")) load_ARB_texture_buffer_range(); _ARB_texture_query_levels = isExtSupported(glversion, "GL_ARB_texture_query_levels"); if(isExtSupported(glversion, "GL_ARB_texture_storage_multisample")) load_ARB_texture_storage_multisample(); if(isExtSupported(glversion,"GL_ARB_texture_view")) load_ARB_texture_view(); if(isExtSupported(glversion, "GL_ARB_vertex_attrib_binding")) load_ARB_vertex_attrib_binding(); } }
D
/Users/JasonVranek/Desktop/rust/tokio-delay/target/debug/build/rand_chacha-a771a4f682b01031/build_script_build-a771a4f682b01031: /Users/JasonVranek/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_chacha-0.1.1/build.rs /Users/JasonVranek/Desktop/rust/tokio-delay/target/debug/build/rand_chacha-a771a4f682b01031/build_script_build-a771a4f682b01031.d: /Users/JasonVranek/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_chacha-0.1.1/build.rs /Users/JasonVranek/.cargo/registry/src/github.com-1ecc6299db9ec823/rand_chacha-0.1.1/build.rs:
D
module smidig.ecs; import std.algorithm : sort; import std.traits : PointerTarget; import std.typecons : Tuple; import smidig.memory : IAllocator, make, dispose; import tested : name; alias EntityID = uint; alias ComponentName = string; alias SystemType = int; enum dependency = "dependency"; class EntityManager { import core.stdc.stdio : printf; import smidig.collections : Array, StaticArray; enum INITIAL_SYSTEMS = 10; enum MAX_SYSTEMS = 10; private { IAllocator allocator_; Array!IComponentManager cms_; Array!(Array!IComponentManager) systems_; EntityID current_id = 0; } this(IAllocator allocator) { this.allocator_ = allocator; this.cms_ = typeof(cms_)(allocator_, INITIAL_SYSTEMS); this.systems_ = typeof(systems_)(allocator_, MAX_SYSTEMS); this.systems_.length = MAX_SYSTEMS; foreach (ref a; systems_) { a = typeof(a)(allocator_, 8); } } //this ~this() { printf("[EventManager] destroying."); foreach (man; cms_) { allocator_.dispose(man); } } //~this @property IAllocator allocator() { return allocator_; } //allocator S registerSystem(S, Args...)(Args args) { auto new_sys = allocator_.make!S(args); this.addSystem(new_sys); return new_sys; } //registerSystem private { void addSystem(S)(S cm) { static assert(S.identifier >= 0 && S.identifier < MAX_SYSTEMS); cm.setManager(this); uint id = S.identifier; systems_[id] ~= cm; sort(systems_[id][]); cms_ ~= cm; sort(cms_[]); //todo replace } //addSystem void addSystems(S...)(S systems_) { foreach (sys; systems_) { addSystem(sys); } } //addSystems } EntityID createEntity(EntityID entity) nothrow @nogc const { return entity; } //createEntity EntityID createEntity() nothrow @nogc { return current_id++; } //createEntity IComponentManager getManager(C = void)(ComponentName system = typeid(C).stringof) { foreach (id, man; cms_) { if (man.name == system) return man; } return null; } //getManager C* getComponent(C)(EntityID entity) { return cast(C*)getManager!C().component(entity); } //getComponent C[EntityID] getAllComponents(C)() nothrow @nogc { return cast(C[EntityID])getManager!C().allComponents(); } //getAllComponents void clearSystems() { foreach (ref system; cms_) { system.clear(); } } //clearSystems void deregister(S = void, C = void)(EntityID entity) { static if (!is(S == void)) { mixin("import " ~ moduleName!S ~ ";"); } static if (is(C == void)) { foreach(ref sys; cms_) { sys.deregister(entity); } } else { getManager!(C).deregister(entity); } static if (is(S == void)) { foreach(ref arr; systems_) { foreach(ref sys; arr) { sys.deregister(entity); } } } else { foreach(ref sys; systems_[identifier!(S)]) { sys.deregister(entity); } } } //deregister bool register(C)(EntityID entity) { IComponentManager em = getManager!C(); if (em !is null) { return em.register(entity); } else { printf("[ECS] failed to register component!"); } return false; } //register bool register(C)(EntityID entity, C component) { IComponentManager em = getManager!C(); if (em !is null) { return em.register(entity, (cast(void*)&component)[0..component.sizeof]); } return false; } //register bool register(C, Args...)(EntityID id, Args args) { import std.algorithm : move; auto component = C(args); return register!C(id, move(component)); } //register void register(CTypes...)(EntityID entity) { foreach (C; CTypes) { register!C(entity); } } //register void tick(T, Args...)(Args args) { foreach (ref sys; systems_[T.identifier]) { T s = cast(T)sys; //this is slightly evil s.update(args); } } //tick } //EntityManager interface IComponentManager { bool opEquals(ref const IComponentManager other) nothrow const @nogc; int opCmp(ref const IComponentManager other) nothrow const @nogc; void setManager(EntityManager em); @property IAllocator allocator(); @property int priority() nothrow const @nogc; @property ComponentName name() nothrow const @nogc; bool register(EntityID entity); bool register(EntityID entity, void[] component); //TODO make nothrow? void deregister(EntityID entity); void* component(EntityID entity); void* allComponents() nothrow @nogc; void clear(); } //IComponentManager interface ComponentSystem(uint Identifier, Args...) : IComponentManager { enum identifier = Identifier; void update(Args...)(Args args); } //ComponentSystem abstract class ComponentManager(System, T, int P = int.max) : System { import smidig.collections : HashMap; enum COMPONENT_NAME = typeid(T).stringof; enum INITIAL_SIZE = 32; enum PRIORITY = P; protected { EntityManager em; HashMap!(EntityID, T) components; } @property IAllocator allocator() { return em.allocator; } @property int priority() nothrow const @nogc { return PRIORITY; } @property ComponentName name() nothrow const @nogc { return COMPONENT_NAME; } bool opEquals(ref const IComponentManager other) nothrow const @nogc { return name == other.name; } //opEquals int opCmp(ref const IComponentManager other) nothrow const @nogc { if (priority > other.priority) return 1; if (priority == other.priority) return 0; return -1; } //opCmp void setManager(EntityManager em) { this.components = typeof(components)(em.allocator_, INITIAL_SIZE); this.em = em; } //setManager bool register(EntityID entity) { import std.string : format; enum premade = format("%s component already exists for entity!", T.stringof); assert(entity !in components, premade); components[entity] = constructComponent(entity); onInit(entity, entity in components); return true; } //register(e) bool register(EntityID entity, void[] component) { import std.algorithm : move; components[entity] = T(); T* c = cast(T*)component.ptr; mixin setUpDependencies!(T, c, entity); linkUpDependencies(); move(*c, components[entity]); onInit(entity, entity in components); return true; } //register(e, component) void deregister(EntityID entity) { onDestroy(entity, entity in components); components.remove(entity); } //deregister void* component(EntityID entity) nothrow { return entity in components; } //component void* allComponents() nothrow @nogc { return &components; } //allComponents void clear() { components.clear(); } //clear static template linkDependencies(T, alias comp, alias entsym, list...) { import smidig.meta : hasAttribute; static if (list.length > 0 && hasAttribute!(T, list[0], dependency)) { enum linkDependencies = __traits(identifier, comp) ~ "." ~ list[0] ~ " = em.getComponent!" ~ __traits(identifier, PointerTarget!(typeof(__traits(getMember, T, list[0])))) ~ "("~__traits(identifier, entsym)~");" ~ linkDependencies!(T, comp, entsym, list[1 .. $]); } else static if (list.length > 0 ) { enum linkDependencies = linkDependencies!(T, comp, entsym, list[1 .. $]); } else { enum linkDependencies = ""; } } //linkDependencies template fetchDependencies(T, alias comp, alias entsym) { enum fetchDependencies = linkDependencies!(T, comp, entsym, __traits(allMembers, T)); } //fetchDependencies /* called when you simply specify the type to build, no actual struct passed. */ T constructComponent(EntityID entity) { T c = T(); //FIXME this is positively horrifying, do something about this later. mixin setUpDependencies!(T, c, entity); linkUpDependencies(); return c; } //constructComponent mixin template setUpDependencies(T, alias component, alias entity) { import std.traits : moduleName; void linkUpDependencies() { mixin fetchDependencies!(T, c, entity); mixin("import " ~ moduleName!T ~ ";"); //FIXME discard this later maybe, this system is kinda ew. mixin(fetchDependencies); } } //setUpDependencies void onInit(EntityID entity, T* component) { //is overriden in implementation, perform something on creation } //onInit void onDestroy(EntityID entity, T* component) { //is overriden in implementation, "destructor" for component essentially } //onDestroy } //ComponentManager version(unittest) { interface TestUpdateSystem : ComponentSystem!(0) { void update(); } interface TestDrawSystem : ComponentSystem!(1) { void update(int value); } struct SomeComponent { int value; } class SomeManager : ComponentManager!(TestUpdateSystem, SomeComponent, 1) { void update() { foreach (ref comp; components) { comp.value += 1; } } } struct OtherComponent { @dependency SomeComponent* sc; } class OtherManager : ComponentManager!(TestUpdateSystem, OtherComponent, 2) { void update() { foreach (ref comp; components) { if (comp.sc.value == 1) { comp.sc.value += 1; } } } } struct DrawComponent { int value; } class DrawManager : ComponentManager!(TestDrawSystem, DrawComponent, 1) { void update(int value) { foreach (ref comp; components) { comp.value = value; } } } } version(unittest) { import std.string : format; void create_prerequisites(ref EntityManager em, ref EntityID entity) { import smidig.memory : theAllocator; //create manager, system em = new EntityManager(theAllocator); em.registerSystem!SomeManager(); em.registerSystem!OtherManager(); em.registerSystem!DrawManager(); //create entity and component, add to system entity = em.createEntity(); em.register!(SomeComponent, OtherComponent, DrawComponent)(entity); } mixin template PreReq() { EntityID entity; EntityManager em; } } /* @name("ECS 1: test component update order") unittest { mixin PreReq; create_prerequisites(em, entity); assert(em.getComponent!SomeComponent(entity) !is null); em.getComponent!SomeComponent(entity).value = 0; { em.tick!TestUpdateSystem(); //one iteration, value should now be 2 auto val = em.getComponent!SomeComponent(entity).value; assert(val == 2, format("expected val of SomeComponent to be 2, order of updating is incorrect, was :%d", val)); } { em.tick!TestDrawSystem(10); //one iteration, value should now be 10 auto val = em.getComponent!DrawComponent(entity).value; assert(val == 10); } } @name("ECS 2: confirm deregister does not throw an exception") unittest { import std.exception : assertNotThrown; mixin PreReq; create_prerequisites(em, entity); assertNotThrown!Exception(em.deregister(entity), "deregister should not throw an exception, likely out of bounds."); } */
D
/Users/JasonVranek/Desktop/LearningProgramming/rust/websocket-threaded/target/debug/deps/cfg_if-bc91bf12c31b0e8d.rmeta: /Users/JasonVranek/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.6/src/lib.rs /Users/JasonVranek/Desktop/LearningProgramming/rust/websocket-threaded/target/debug/deps/cfg_if-bc91bf12c31b0e8d.d: /Users/JasonVranek/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.6/src/lib.rs /Users/JasonVranek/.cargo/registry/src/github.com-1ecc6299db9ec823/cfg-if-0.1.6/src/lib.rs:
D
/Users/sjwu/video/HouseHold/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Skip.o : /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Deprecated.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Cancelable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObserverType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Reactive.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/RecursiveLock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Errors.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Event.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/First.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/Platform.Linux.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/sjwu/video/HouseHold/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/sjwu/video/HouseHold/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/sjwu/video/HouseHold/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Users/sjwu/video/HouseHold/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Skip~partial.swiftmodule : /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Deprecated.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Cancelable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObserverType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Reactive.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/RecursiveLock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Errors.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Event.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/First.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/Platform.Linux.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/sjwu/video/HouseHold/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/sjwu/video/HouseHold/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/sjwu/video/HouseHold/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Users/sjwu/video/HouseHold/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Skip~partial.swiftdoc : /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Deprecated.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Cancelable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObserverType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Reactive.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/RecursiveLock.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Errors.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Event.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/First.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Rx.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/Platform/Platform.Linux.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/sjwu/video/HouseHold/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/sjwu/video/HouseHold/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/sjwu/video/HouseHold/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/sjwu/video/HouseHold/Build/Intermediates/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap
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.sdl.mixer; version(BindSDL_Mixer): import bindbc.sdl.config; import bindbc.sdl.bind.sdlaudio : AUDIO_S16LSB, SDL_MIX_MAXVOLUME; import bindbc.sdl.bind.sdlerror : SDL_GetError, SDL_SetError, SDL_ClearError; import bindbc.sdl.bind.sdlrwops : SDL_RWops, SDL_RWFromFile; import bindbc.sdl.bind.sdlstdinc : SDL_bool; import bindbc.sdl.bind.sdlversion : SDL_version, SDL_VERSIONNUM; alias Mix_SetError = SDL_SetError; alias Mix_GetError = SDL_GetError; alias Mix_ClearError = SDL_ClearError; enum SDLMixerSupport { noLibrary, badLibrary, sdlMixer200 = 200, sdlMixer201 = 201, sdlMixer202 = 202, } enum ubyte SDL_MIXER_MAJOR_VERSION = 2; enum ubyte SDL_MIXER_MINOR_VERSION = 0; version(SDL_Mixer_202) { enum sdlMixerSupport = SDLMixerSupport.sdlMixer202; enum ubyte SDL_MIXER_PATCHLEVEL = 2; } else version(SDL_Mixer_201) { enum sdlMixerSupport = SDLMixerSupport.sdlMixer201; enum ubyte SDL_MIXER_PATCHLEVEL = 1; } else { enum sdlMixerSupport = SDLMixerSupport.sdlMixer200; enum ubyte SDL_MIXER_PATCHLEVEL = 0; } alias MIX_MAJOR_VERSION = SDL_MIXER_MAJOR_VERSION; alias MIX_MINOR_VERSION = SDL_MIXER_MINOR_VERSION; alias MIX_PATCH_LEVEL = SDL_MIXER_PATCHLEVEL; @nogc nothrow void SDL_MIXER_VERSION(SDL_version* X) { X.major = SDL_MIXER_MAJOR_VERSION; X.minor = SDL_MIXER_MINOR_VERSION; X.patch = SDL_MIXER_PATCHLEVEL; } alias SDL_MIX_VERSION = SDL_MIX_MAXVOLUME; // These were implemented in SDL_mixer 2.0.2, but are fine for all versions. enum SDL_MIXER_COMPILEDVERSION = SDL_VERSIONNUM!(SDL_MIXER_MAJOR_VERSION, SDL_MIXER_MINOR_VERSION, SDL_MIXER_PATCHLEVEL); enum SDL_MIXER_VERSION_ATLEAST(ubyte X, ubyte Y, ubyte Z) = SDL_MIXER_COMPILEDVERSION >= SDL_VERSIONNUM!(X, Y, Z); static if(sdlMixerSupport >= SDLMixerSupport.sdlMixer202) { enum Mix_InitFlags { MIX_INIT_FLAC = 0x00000001, MIX_INIT_MOD = 0x00000002, MIX_INIT_MP3 = 0x00000008, MIX_INIT_OGG = 0x00000010, MIX_INIT_MID = 0x00000020, } } else { enum Mix_InitFlags { MIX_INIT_FLAC = 0x00000001, MIX_INIT_MOD = 0x00000002, MIX_INIT_MODPLUG = 0x00000004, MIX_INIT_MP3 = 0x00000008, MIX_INIT_OGG = 0x00000010, MIX_INIT_FLUIDSYNTH = 0x00000020, } } mixin(expandEnum!Mix_InitFlags); enum { MIX_CHANNELS = 8, MIX_DEFAULT_FREQUENCY = 22050, MIX_DEFAULT_CHANNELS = 2, MIX_MAX_VOLUME = 128, MIX_CHANNEL_POST = -2, } version(LittleEndian) { enum MIX_DEFAULT_FORMAT = AUDIO_S16LSB; } else { enum MIX_DEFAULT_FORMAT = AUDIO_S16MSB; } struct Mix_Chunk { int allocated; ubyte* abuf; uint alen; ubyte volume; } enum Mix_Fading { MIX_NO_FADING, MIX_FADING_OUT, MIX_FADING_IN } mixin(expandEnum!Mix_Fading); static if(sdlMixerSupport >= SDLMixerSupport.sdlMixer202) { enum Mix_MusicType { MUS_NONE, MUS_CMD, MUS_WAV, MUS_MOD, MUS_MID, MUS_OGG, MUS_MP3, MUS_MP3_MAD_UNUSED, MUS_FLAC, MUS_MODPLUG_UNUSED, } } else { enum Mix_MusicType { MUS_NONE, MUS_CMD, MUS_WAV, MUS_MOD, MUS_MID, MUS_OGG, MUS_MP3, MUS_MP3_MAD, MUS_FLAC, MUS_MODPLUG, } } mixin(expandEnum!Mix_MusicType); struct Mix_Music; enum MIX_EFFECTSMAXSPEED = "MIX_EFFECTSMAXSPEED"; extern(C) nothrow { alias Mix_EffectFunc_t = void function(int,void*,int,void*); alias Mix_EffectDone_t = void function(int,void*); // These aren't in SDL_mixer.h and are just here as a convenient and // visible means to add the proper attributes these callbacks. alias callbackI = void function(int); alias callbackVUi8I = void function(void*,ubyte*,int); alias callbackN = void function(); } @nogc nothrow { Mix_Chunk* Mix_LoadWAV(const(char)* file) { pragma(inline, true); return Mix_LoadWAV_RW(SDL_RWFromFile(file,"rb"),1); } int Mix_PlayChannel(int channel,Mix_Chunk* chunk,int loops) { pragma(inline, true); return Mix_PlayChannelTimed(channel,chunk,loops,-1); } int Mix_FadeInChannel(int channel,Mix_Chunk* chunk,int loops,int ms) { pragma(inline, true); return Mix_FadeInChannelTimed(channel,chunk,loops,ms,-1); } } version(BindSDL_Static) { extern(C) @nogc nothrow { const(SDL_version)* Mix_Linked_Version(); int Mix_Init(int); void Mix_Quit(); int Mix_OpenAudio(int,ushort,int,int); int Mix_AllocateChannels(int); int Mix_QuerySpec(int*,ushort*,int*); Mix_Chunk* Mix_LoadWAV_RW(SDL_RWops*,int); Mix_Music* Mix_LoadMUS(const(char)*); Mix_Music* Mix_LoadMUS_RW(SDL_RWops*,int); Mix_Music* Mix_LoadMUSType_RW(SDL_RWops*,Mix_MusicType,int); Mix_Chunk* Mix_QuickLoad_WAV(ubyte*); Mix_Chunk* Mix_QuickLoad_RAW(ubyte*,uint); void Mix_FreeChunk(Mix_Chunk*); void Mix_FreeMusic(Mix_Music*); int Mix_GetNumChunkDecoders(); const(char)* Mix_GetChunkDecoder(int); int Mix_GetNumMusicDecoders(); const(char)* Mix_GetMusicDecoder(int); Mix_MusicType Mix_GetMusicType(const(Mix_Music)*); void Mix_SetPostMix(callbackVUi8I,void*); void Mix_HookMusic(callbackVUi8I,void*); void Mix_HookMusicFinished(callbackN); void* Mix_GetMusicHookData(); void Mix_ChannelFinished(callbackI); int Mix_RegisterEffect(int,Mix_EffectFunc_t,Mix_EffectDone_t,void*); int Mix_UnregisterEffect(int,Mix_EffectFunc_t); int Mix_UnregisterAllEffects(int); int Mix_SetPanning(int,ubyte,ubyte); int Mix_SetPosition(int,short,ubyte); int Mix_SetDistance(int,ubyte); int Mix_SetReverseStereo(int,int); int Mix_ReserveChannels(int); int Mix_GroupChannel(int,int); int Mix_GroupChannels(int,int,int); int Mix_GroupAvailable(int); int Mix_GroupCount(int); int Mix_GroupOldest(int); int Mix_GroupNewer(int); int Mix_PlayChannelTimed(int,Mix_Chunk*,int,int); int Mix_PlayMusic(Mix_Music*,int); int Mix_FadeInMusic(Mix_Music*,int,int); int Mix_FadeInMusicPos(Mix_Music*,int,int,double); int Mix_FadeInChannelTimed(int,Mix_Chunk*,int,int,int); int Mix_Volume(int,int); int Mix_VolumeChunk(Mix_Chunk*,int); int Mix_VolumeMusic(int); int Mix_HaltChannel(int); int Mix_HaltGroup(int); int Mix_HaltMusic(); int Mix_ExpireChannel(int,int); int Mix_FadeOutChannel(int,int); int Mix_FadeOutGroup(int,int); int Mix_FadeOutMusic(int); Mix_Fading Mix_FadingMusic(); Mix_Fading Mix_FadingChannel(int); void Mix_Pause(int); void Mix_Resume(int); int Mix_Paused(int); void Mix_PauseMusic(); void Mix_ResumeMusic(); void Mix_RewindMusic(); int Mix_PausedMusic(); int Mix_SetMusicPosition(double); int Mix_Playing(int); int Mix_PlayingMusic(); int Mix_SetMusicCMD(in char*); int Mix_SetSynchroValue(int); int Mix_GetSynchroValue(); Mix_Chunk* Mix_GetChunk(int); void Mix_CloseAudio(); static if(sdlMixerSupport >= SDLMixerSupport.sdlMixer202) { int Mix_OpenAudioDevice(int,ushort,int,int,const(char)*,int); SDL_bool Mix_HasChunkDecoder(const(char)*); // Declared in SDL_mixer.h, but not implemented // SDL_bool Mix_HasMusicDecoder(const(char)*); } } } else { import bindbc.loader; extern(C) @nogc nothrow { alias pMix_Linked_Version = const(SDL_version)* function(); alias pMix_Init = int function(int); alias pMix_Quit = void function(); alias pMix_OpenAudio = int function(int,ushort,int,int); alias pMix_AllocateChannels = int function(int); alias pMix_QuerySpec = int function(int*,ushort*,int*); alias pMix_LoadWAV_RW = Mix_Chunk* function(SDL_RWops*,int); alias pMix_LoadMUS = Mix_Music* function(const(char)*); alias pMix_LoadMUS_RW = Mix_Music* function(SDL_RWops*,int); alias pMix_LoadMUSType_RW = Mix_Music* function(SDL_RWops*,Mix_MusicType,int); alias pMix_QuickLoad_WAV = Mix_Chunk* function(ubyte*); alias pMix_QuickLoad_RAW = Mix_Chunk* function(ubyte*,uint); alias pMix_FreeChunk = void function(Mix_Chunk*); alias pMix_FreeMusic = void function(Mix_Music*); alias pMix_GetNumChunkDecoders = int function(); alias pMix_GetChunkDecoder = const(char)* function(int); alias pMix_GetNumMusicDecoders = int function(); alias pMix_GetMusicDecoder = const(char)* function(int); alias pMix_GetMusicType = Mix_MusicType function(const(Mix_Music)*); alias pMix_SetPostMix = void function(callbackVUi8I,void*); alias pMix_HookMusic = void function(callbackVUi8I,void*); alias pMix_HookMusicFinished = void function(callbackN); alias pMix_GetMusicHookData = void* function(); alias pMix_ChannelFinished = void function(callbackI); alias pMix_RegisterEffect = int function(int,Mix_EffectFunc_t,Mix_EffectDone_t,void*); alias pMix_UnregisterEffect = int function(int,Mix_EffectFunc_t); alias pMix_UnregisterAllEffects = int function(int); alias pMix_SetPanning = int function(int,ubyte,ubyte); alias pMix_SetPosition = int function(int,short,ubyte); alias pMix_SetDistance = int function(int,ubyte); alias pMix_SetReverseStereo = int function(int,int); alias pMix_ReserveChannels = int function(int); alias pMix_GroupChannel = int function(int,int); alias pMix_GroupChannels = int function(int,int,int); alias pMix_GroupAvailable = int function(int); alias pMix_GroupCount = int function(int); alias pMix_GroupOldest = int function(int); alias pMix_GroupNewer = int function(int); alias pMix_PlayChannelTimed = int function(int,Mix_Chunk*,int,int); alias pMix_PlayMusic = int function(Mix_Music*,int); alias pMix_FadeInMusic = int function(Mix_Music*,int,int); alias pMix_FadeInMusicPos = int function(Mix_Music*,int,int,double); alias pMix_FadeInChannelTimed = int function(int,Mix_Chunk*,int,int,int); alias pMix_Volume = int function(int,int); alias pMix_VolumeChunk = int function(Mix_Chunk*,int); alias pMix_VolumeMusic = int function(int); alias pMix_HaltChannel = int function(int); alias pMix_HaltGroup = int function(int); alias pMix_HaltMusic = int function(); alias pMix_ExpireChannel = int function(int,int); alias pMix_FadeOutChannel = int function(int,int); alias pMix_FadeOutGroup = int function(int,int); alias pMix_FadeOutMusic = int function(int); alias pMix_FadingMusic = Mix_Fading function(); alias pMix_FadingChannel = Mix_Fading function(int); alias pMix_Pause = void function(int); alias pMix_Resume = void function(int); alias pMix_Paused = int function(int); alias pMix_PauseMusic = void function(); alias pMix_ResumeMusic = void function(); alias pMix_RewindMusic = void function(); alias pMix_PausedMusic = int function(); alias pMix_SetMusicPosition = int function(double); alias pMix_Playing = int function(int); alias pMix_PlayingMusic = int function(); alias pMix_SetMusicCMD = int function(in char*); alias pMix_SetSynchroValue = int function(int); alias pMix_GetSynchroValue = int function(); alias pMix_GetChunk = Mix_Chunk* function(int); alias pMix_CloseAudio = void function(); } __gshared { pMix_Linked_Version Mix_Linked_Version; pMix_Init Mix_Init; pMix_Quit Mix_Quit; pMix_OpenAudio Mix_OpenAudio; pMix_AllocateChannels Mix_AllocateChannels; pMix_QuerySpec Mix_QuerySpec; pMix_LoadWAV_RW Mix_LoadWAV_RW; pMix_LoadMUS Mix_LoadMUS; pMix_LoadMUS_RW Mix_LoadMUS_RW; pMix_LoadMUSType_RW Mix_LoadMUSType_RW; pMix_QuickLoad_WAV Mix_QuickLoad_WAV; pMix_QuickLoad_RAW Mix_QuickLoad_RAW; pMix_FreeChunk Mix_FreeChunk; pMix_FreeMusic Mix_FreeMusic; pMix_GetNumChunkDecoders Mix_GetNumChunkDecoders; pMix_GetChunkDecoder Mix_GetChunkDecoder; pMix_GetNumMusicDecoders Mix_GetNumMusicDecoders; pMix_GetMusicDecoder Mix_GetMusicDecoder; pMix_GetMusicType Mix_GetMusicType; pMix_SetPostMix Mix_SetPostMix; pMix_HookMusic Mix_HookMusic; pMix_HookMusicFinished Mix_HookMusicFinished; pMix_GetMusicHookData Mix_GetMusicHookData; pMix_ChannelFinished Mix_ChannelFinished; pMix_RegisterEffect Mix_RegisterEffect; pMix_UnregisterEffect Mix_UnregisterEffect; pMix_UnregisterAllEffects Mix_UnregisterAllEffects; pMix_SetPanning Mix_SetPanning; pMix_SetPosition Mix_SetPosition; pMix_SetDistance Mix_SetDistance; pMix_SetReverseStereo Mix_SetReverseStereo; pMix_ReserveChannels Mix_ReserveChannels; pMix_GroupChannel Mix_GroupChannel; pMix_GroupChannels Mix_GroupChannels; pMix_GroupAvailable Mix_GroupAvailable; pMix_GroupCount Mix_GroupCount; pMix_GroupOldest Mix_GroupOldest; pMix_GroupNewer Mix_GroupNewer; pMix_PlayChannelTimed Mix_PlayChannelTimed; pMix_PlayMusic Mix_PlayMusic; pMix_FadeInMusic Mix_FadeInMusic; pMix_FadeInMusicPos Mix_FadeInMusicPos; pMix_FadeInChannelTimed Mix_FadeInChannelTimed; pMix_Volume Mix_Volume; pMix_VolumeChunk Mix_VolumeChunk; pMix_VolumeMusic Mix_VolumeMusic; pMix_HaltChannel Mix_HaltChannel; pMix_HaltGroup Mix_HaltGroup; pMix_HaltMusic Mix_HaltMusic; pMix_ExpireChannel Mix_ExpireChannel; pMix_FadeOutChannel Mix_FadeOutChannel; pMix_FadeOutGroup Mix_FadeOutGroup; pMix_FadeOutMusic Mix_FadeOutMusic; pMix_FadingMusic Mix_FadingMusic; pMix_FadingChannel Mix_FadingChannel; pMix_Pause Mix_Pause; pMix_Resume Mix_Resume; pMix_Paused Mix_Paused; pMix_PauseMusic Mix_PauseMusic; pMix_ResumeMusic Mix_ResumeMusic; pMix_RewindMusic Mix_RewindMusic; pMix_PausedMusic Mix_PausedMusic; pMix_SetMusicPosition Mix_SetMusicPosition; pMix_Playing Mix_Playing; pMix_PlayingMusic Mix_PlayingMusic; pMix_SetMusicCMD Mix_SetMusicCMD; pMix_SetSynchroValue Mix_SetSynchroValue; pMix_GetSynchroValue Mix_GetSynchroValue; pMix_GetChunk Mix_GetChunk; pMix_CloseAudio Mix_CloseAudio; } static if(sdlMixerSupport >= SDLMixerSupport.sdlMixer202) { extern(C) @nogc nothrow { alias pMix_OpenAudioDevice = int function(int,ushort,int,int,const(char)*,int); alias pMix_HasChunkDecoder = SDL_bool function(const(char)*); // Declared in SDL_mixer.h, but not implemented //alias pMix_HasMusicDecoder = SDL_bool function(const(char)*); } __gshared { pMix_OpenAudioDevice Mix_OpenAudioDevice; pMix_HasChunkDecoder Mix_HasChunkDecoder; //pMix_HasMusicDecoder Mix_HasMusicDecoder; } } private { SharedLib lib; SDLMixerSupport loadedVersion; } void unloadSDLMixer() { if(lib != invalidHandle) { lib.unload(); } } SDLMixerSupport loadedSDLMixerVersion() { return loadedVersion; } bool isSDLMixerLoaded() { return lib != invalidHandle; } SDLMixerSupport loadSDLMixer() { version(Windows) { const(char)[][1] libNames = ["SDL2_mixer.dll"]; } else version(OSX) { const(char)[][6] libNames = [ "libSDL2_mixer.dylib", "/usr/local/lib/libSDL2_mixer.dylib", "../Frameworks/SDL2_mixer.framework/SDL2_mixer", "/Library/Frameworks/SDL2_mixer.framework/SDL2_mixer", "/System/Library/Frameworks/SDL2_mixer.framework/SDL2_mixer", "/opt/local/lib/libSDL2_mixer.dylib" ]; } else version(Posix) { const(char)[][6] libNames = [ "libSDL2_mixer.so", "/usr/local/lib/libSDL2_mixer.so", "libSDL2-2.0_mixer.so", "/usr/local/lib/libSDL2-2.0_mixer.so", "libSDL2-2.0_mixer.so.0", "/usr/local/lib/libSDL2-2.0_mixer.so.0" ]; } else static assert(0, "bindbc-sdl is not yet supported on this platform."); SDLMixerSupport ret; foreach(name; libNames) { ret = loadSDLMixer(name.ptr); if(ret != SDLMixerSupport.noLibrary) break; } return ret; } SDLMixerSupport loadSDLMixer(const(char)* libName) { lib = load(libName); if(lib == invalidHandle) { return SDLMixerSupport.noLibrary; } auto errCount = errorCount(); loadedVersion = SDLMixerSupport.badLibrary; lib.bindSymbol(cast(void**)&Mix_Linked_Version,"Mix_Linked_Version"); lib.bindSymbol(cast(void**)&Mix_Init,"Mix_Init"); lib.bindSymbol(cast(void**)&Mix_Quit,"Mix_Quit"); lib.bindSymbol(cast(void**)&Mix_OpenAudio,"Mix_OpenAudio"); lib.bindSymbol(cast(void**)&Mix_AllocateChannels,"Mix_AllocateChannels"); lib.bindSymbol(cast(void**)&Mix_QuerySpec,"Mix_QuerySpec"); lib.bindSymbol(cast(void**)&Mix_LoadWAV_RW,"Mix_LoadWAV_RW"); lib.bindSymbol(cast(void**)&Mix_LoadMUS,"Mix_LoadMUS"); lib.bindSymbol(cast(void**)&Mix_LoadMUS_RW,"Mix_LoadMUS_RW"); lib.bindSymbol(cast(void**)&Mix_LoadMUSType_RW,"Mix_LoadMUSType_RW"); lib.bindSymbol(cast(void**)&Mix_QuickLoad_WAV,"Mix_QuickLoad_WAV"); lib.bindSymbol(cast(void**)&Mix_QuickLoad_RAW,"Mix_QuickLoad_RAW"); lib.bindSymbol(cast(void**)&Mix_FreeChunk,"Mix_FreeChunk"); lib.bindSymbol(cast(void**)&Mix_FreeMusic,"Mix_FreeMusic"); lib.bindSymbol(cast(void**)&Mix_GetNumChunkDecoders,"Mix_GetNumChunkDecoders"); lib.bindSymbol(cast(void**)&Mix_GetChunkDecoder,"Mix_GetChunkDecoder"); lib.bindSymbol(cast(void**)&Mix_GetNumMusicDecoders,"Mix_GetNumMusicDecoders"); lib.bindSymbol(cast(void**)&Mix_GetMusicDecoder,"Mix_GetMusicDecoder"); lib.bindSymbol(cast(void**)&Mix_GetMusicType,"Mix_GetMusicType"); lib.bindSymbol(cast(void**)&Mix_SetPostMix,"Mix_SetPostMix"); lib.bindSymbol(cast(void**)&Mix_HookMusic,"Mix_HookMusic"); lib.bindSymbol(cast(void**)&Mix_HookMusicFinished,"Mix_HookMusicFinished"); lib.bindSymbol(cast(void**)&Mix_GetMusicHookData,"Mix_GetMusicHookData"); lib.bindSymbol(cast(void**)&Mix_ChannelFinished,"Mix_ChannelFinished"); lib.bindSymbol(cast(void**)&Mix_RegisterEffect,"Mix_RegisterEffect"); lib.bindSymbol(cast(void**)&Mix_UnregisterEffect,"Mix_UnregisterEffect"); lib.bindSymbol(cast(void**)&Mix_UnregisterAllEffects,"Mix_UnregisterAllEffects"); lib.bindSymbol(cast(void**)&Mix_SetPanning,"Mix_SetPanning"); lib.bindSymbol(cast(void**)&Mix_SetPosition,"Mix_SetPosition"); lib.bindSymbol(cast(void**)&Mix_SetDistance,"Mix_SetDistance"); lib.bindSymbol(cast(void**)&Mix_SetReverseStereo,"Mix_SetReverseStereo"); lib.bindSymbol(cast(void**)&Mix_ReserveChannels,"Mix_ReserveChannels"); lib.bindSymbol(cast(void**)&Mix_GroupChannel,"Mix_GroupChannel"); lib.bindSymbol(cast(void**)&Mix_GroupChannels,"Mix_GroupChannels"); lib.bindSymbol(cast(void**)&Mix_GroupAvailable,"Mix_GroupAvailable"); lib.bindSymbol(cast(void**)&Mix_GroupCount,"Mix_GroupCount"); lib.bindSymbol(cast(void**)&Mix_GroupOldest,"Mix_GroupOldest"); lib.bindSymbol(cast(void**)&Mix_GroupNewer,"Mix_GroupNewer"); lib.bindSymbol(cast(void**)&Mix_PlayChannelTimed,"Mix_PlayChannelTimed"); lib.bindSymbol(cast(void**)&Mix_PlayMusic,"Mix_PlayMusic"); lib.bindSymbol(cast(void**)&Mix_FadeInMusic,"Mix_FadeInMusic"); lib.bindSymbol(cast(void**)&Mix_FadeInMusicPos,"Mix_FadeInMusicPos"); lib.bindSymbol(cast(void**)&Mix_FadeInChannelTimed,"Mix_FadeInChannelTimed"); lib.bindSymbol(cast(void**)&Mix_Volume,"Mix_Volume"); lib.bindSymbol(cast(void**)&Mix_VolumeChunk,"Mix_VolumeChunk"); lib.bindSymbol(cast(void**)&Mix_VolumeMusic,"Mix_VolumeMusic"); lib.bindSymbol(cast(void**)&Mix_HaltChannel,"Mix_HaltChannel"); lib.bindSymbol(cast(void**)&Mix_HaltGroup,"Mix_HaltGroup"); lib.bindSymbol(cast(void**)&Mix_HaltMusic,"Mix_HaltMusic"); lib.bindSymbol(cast(void**)&Mix_ExpireChannel,"Mix_ExpireChannel"); lib.bindSymbol(cast(void**)&Mix_FadeOutChannel,"Mix_FadeOutChannel"); lib.bindSymbol(cast(void**)&Mix_FadeOutGroup,"Mix_FadeOutGroup"); lib.bindSymbol(cast(void**)&Mix_FadeOutMusic,"Mix_FadeOutMusic"); lib.bindSymbol(cast(void**)&Mix_FadingMusic,"Mix_FadingMusic"); lib.bindSymbol(cast(void**)&Mix_FadingChannel,"Mix_FadingChannel"); lib.bindSymbol(cast(void**)&Mix_Pause,"Mix_Pause"); lib.bindSymbol(cast(void**)&Mix_Resume,"Mix_Resume"); lib.bindSymbol(cast(void**)&Mix_Paused,"Mix_Paused"); lib.bindSymbol(cast(void**)&Mix_PauseMusic,"Mix_PauseMusic"); lib.bindSymbol(cast(void**)&Mix_ResumeMusic,"Mix_ResumeMusic"); lib.bindSymbol(cast(void**)&Mix_RewindMusic,"Mix_RewindMusic"); lib.bindSymbol(cast(void**)&Mix_PausedMusic,"Mix_PausedMusic"); lib.bindSymbol(cast(void**)&Mix_SetMusicPosition,"Mix_SetMusicPosition"); lib.bindSymbol(cast(void**)&Mix_Playing,"Mix_Playing"); lib.bindSymbol(cast(void**)&Mix_PlayingMusic,"Mix_PlayingMusic"); lib.bindSymbol(cast(void**)&Mix_SetMusicCMD,"Mix_SetMusicCMD"); lib.bindSymbol(cast(void**)&Mix_SetSynchroValue,"Mix_SetSynchroValue"); lib.bindSymbol(cast(void**)&Mix_GetSynchroValue,"Mix_GetSynchroValue"); lib.bindSymbol(cast(void**)&Mix_GetChunk,"Mix_GetChunk"); lib.bindSymbol(cast(void**)&Mix_CloseAudio,"Mix_CloseAudio"); loadedVersion = SDLMixerSupport.sdlMixer200; static if(sdlMixerSupport >= SDLMixerSupport.sdlMixer202) { lib.bindSymbol(cast(void**)&Mix_OpenAudioDevice,"Mix_OpenAudioDevice"); lib.bindSymbol(cast(void**)&Mix_HasChunkDecoder,"Mix_HasChunkDecoder"); loadedVersion = SDLMixerSupport.sdlMixer202; } if(errorCount() != errCount) return SDLMixerSupport.badLibrary; return loadedVersion; } }
D
/Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Vapor.build/Application.swift.o : /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Utilities/FileIO.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionData.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Utilities/Thread.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/URLEncoded.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Deprecated.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Commands/ServeCommand.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Commands/RoutesCommand.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Commands/BootCommand.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Method.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionCache.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/ResponseCodable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Request/RequestCodable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Middleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Middleware/Middleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Middleware/FileMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Middleware/DateMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/Response.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Utilities/AnyResponse.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Server/NIOServerConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/ContentConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Request/HTTPMethod+String.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Path.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/Request+Session.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/Session.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Application.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/RouteCollection.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Function.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Services/VaporProvider.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/Responder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/BasicResponder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/ApplicationResponder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/PlaintextEncoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/ParametersContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/ContentContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/QueryContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/EngineRouter.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Server/Server.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Server/NIOServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Server/RunningServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Error/Error.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Logging/Logger+LogError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Error/AbortError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/Sessions.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/MemorySessions.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/ContentCoders.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Utilities/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/HTTPStatus.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/Redirect.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/SingleValueGet.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Services/Config+Default.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Services/Services+Default.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Client/Client.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Client/FoundationClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Content.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/Content.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Error/Abort.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Request/Request.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/View/Vapor+View.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Validation.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/asn1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/tls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/md5.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509.h /usr/local/Cellar/libressl/3.0.2/include/openssl/sha.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rsa.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/3.0.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/hmac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ec.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rand.h /usr/local/Cellar/libressl/3.0.2/include/openssl/conf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/lhash.h /usr/local/Cellar/libressl/3.0.2/include/openssl/stack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/safestack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bn.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bio.h /usr/local/Cellar/libressl/3.0.2/include/openssl/crypto.h /usr/local/Cellar/libressl/3.0.2/include/openssl/srtp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/evp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/3.0.2/include/openssl/buffer.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/3.0.2/include/openssl/err.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/3.0.2/include/openssl/objects.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslv.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509_vfy.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/PostgreSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentPostgreSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Redis.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Vapor.build/Application~partial.swiftmodule : /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Utilities/FileIO.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionData.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Utilities/Thread.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/URLEncoded.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Deprecated.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Commands/ServeCommand.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Commands/RoutesCommand.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Commands/BootCommand.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Method.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionCache.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/ResponseCodable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Request/RequestCodable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Middleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Middleware/Middleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Middleware/FileMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Middleware/DateMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/Response.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Utilities/AnyResponse.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Server/NIOServerConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/ContentConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Request/HTTPMethod+String.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Path.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/Request+Session.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/Session.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Application.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/RouteCollection.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Function.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Services/VaporProvider.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/Responder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/BasicResponder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/ApplicationResponder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/PlaintextEncoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/ParametersContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/ContentContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/QueryContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/EngineRouter.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Server/Server.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Server/NIOServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Server/RunningServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Error/Error.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Logging/Logger+LogError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Error/AbortError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/Sessions.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/MemorySessions.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/ContentCoders.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Utilities/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/HTTPStatus.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/Redirect.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/SingleValueGet.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Services/Config+Default.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Services/Services+Default.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Client/Client.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Client/FoundationClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Content.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/Content.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Error/Abort.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Request/Request.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/View/Vapor+View.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Validation.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/asn1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/tls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/md5.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509.h /usr/local/Cellar/libressl/3.0.2/include/openssl/sha.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rsa.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/3.0.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/hmac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ec.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rand.h /usr/local/Cellar/libressl/3.0.2/include/openssl/conf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/lhash.h /usr/local/Cellar/libressl/3.0.2/include/openssl/stack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/safestack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bn.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bio.h /usr/local/Cellar/libressl/3.0.2/include/openssl/crypto.h /usr/local/Cellar/libressl/3.0.2/include/openssl/srtp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/evp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/3.0.2/include/openssl/buffer.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/3.0.2/include/openssl/err.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/3.0.2/include/openssl/objects.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslv.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509_vfy.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/PostgreSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentPostgreSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Redis.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Vapor.build/Application~partial.swiftdoc : /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Utilities/FileIO.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionData.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Utilities/Thread.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/URLEncoded.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Deprecated.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Commands/ServeCommand.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Commands/RoutesCommand.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Commands/BootCommand.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Method.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionCache.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/ResponseCodable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Request/RequestCodable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Middleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Middleware/Middleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Middleware/FileMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Middleware/DateMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/Response.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Utilities/AnyResponse.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Server/NIOServerConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/ContentConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Request/HTTPMethod+String.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Path.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/Request+Session.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/Session.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Application.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/RouteCollection.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Function.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Services/VaporProvider.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/Responder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/BasicResponder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/ApplicationResponder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/PlaintextEncoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/ParametersContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/ContentContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/QueryContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/EngineRouter.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Server/Server.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Server/NIOServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Server/RunningServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Error/Error.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Logging/Logger+LogError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Error/AbortError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/Sessions.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/MemorySessions.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/ContentCoders.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Utilities/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/HTTPStatus.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/Redirect.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/SingleValueGet.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Services/Config+Default.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Services/Services+Default.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Client/Client.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Client/FoundationClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Content.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/Content.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Error/Abort.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Request/Request.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/View/Vapor+View.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Validation.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/asn1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/tls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/md5.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509.h /usr/local/Cellar/libressl/3.0.2/include/openssl/sha.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rsa.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/3.0.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/hmac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ec.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rand.h /usr/local/Cellar/libressl/3.0.2/include/openssl/conf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/lhash.h /usr/local/Cellar/libressl/3.0.2/include/openssl/stack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/safestack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bn.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bio.h /usr/local/Cellar/libressl/3.0.2/include/openssl/crypto.h /usr/local/Cellar/libressl/3.0.2/include/openssl/srtp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/evp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/3.0.2/include/openssl/buffer.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/3.0.2/include/openssl/err.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/3.0.2/include/openssl/objects.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslv.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509_vfy.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/PostgreSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentPostgreSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Redis.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Vapor.build/Application~partial.swiftsourceinfo : /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Utilities/FileIO.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/FormDataCoder+HTTP.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionData.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Utilities/Thread.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/URLEncoded.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Deprecated.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Commands/ServeCommand.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Commands/RoutesCommand.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Commands/BootCommand.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Method.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionCache.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/ResponseCodable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Request/RequestCodable.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Middleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Middleware/Middleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Middleware/CORSMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Middleware/FileMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Middleware/DateMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Middleware/ErrorMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router+LazyMiddleware.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/Response.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Utilities/AnyResponse.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Middleware/MiddlewareConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Server/NIOServerConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/SessionsConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/ContentConfig.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Request/HTTPMethod+String.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Path.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/JSONCoder+Custom.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/Request+Session.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/Session.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Application.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/RouteCollection.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Function.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Services/VaporProvider.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/Responder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/BasicResponder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/ApplicationResponder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketResponder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/PlaintextEncoder.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/HTTPMessageContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/ParametersContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/ContentContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/QueryContainer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/EngineRouter.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Server/Server.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Server/NIOServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Server/RunningServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketServer.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Error/Error.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Logging/Logger+LogError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Error/AbortError.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/Sessions.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/KeyedCacheSessions.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Sessions/MemorySessions.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/ContentCoders.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Utilities/Exports.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/HTTPStatus.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Response/Redirect.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/SingleValueGet.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Services/Config+Default.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Commands/CommandConfig+Default.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Services/Services+Default.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Client/Client.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Client/FoundationClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/WebSocket/WebSocketClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/WebSocket/NIOWebSocketClient.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Routing/Router+Content.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Content/Content.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Error/Abort.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/Request/Request.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/vapor/Sources/Vapor/View/Vapor+View.swift /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOHTTP1.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/HTTP.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Routing.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/URLEncodedForm.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Validation.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/WebSocket.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOWebSocket.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/TemplateKit.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Multipart.swiftmodule /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOSHA1/include/CNIOSHA1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/asn1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/tls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem2.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/3.0.2/include/openssl/md5.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509.h /usr/local/Cellar/libressl/3.0.2/include/openssl/sha.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rsa.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOZlib/include/CNIOZlib.h /usr/local/Cellar/libressl/3.0.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/hmac.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ec.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/3.0.2/include/openssl/rand.h /usr/local/Cellar/libressl/3.0.2/include/openssl/conf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/3.0.2/include/openssl/dh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/3.0.2/include/openssl/lhash.h /usr/local/Cellar/libressl/3.0.2/include/openssl/stack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/safestack.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ssl.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/3.0.2/include/openssl/pem.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bn.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/3.0.2/include/openssl/bio.h /usr/local/Cellar/libressl/3.0.2/include/openssl/crypto.h /usr/local/Cellar/libressl/3.0.2/include/openssl/srtp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/evp.h /usr/local/Cellar/libressl/3.0.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/3.0.2/include/openssl/buffer.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/CNIOHTTPParser.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/3.0.2/include/openssl/err.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/3.0.2/include/openssl/objects.h /usr/local/Cellar/libressl/3.0.2/include/openssl/opensslv.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/3.0.2/include/openssl/x509_vfy.h /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOHTTP1.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/SQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/PostgreSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentPostgreSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentSQL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIO.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/HTTP.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOTLS.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Async.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Command.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Service.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Console.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Core.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/SQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentSQLite.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOPriorityQueue.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Logging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Debugging.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Routing.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/SQLBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/FluentBenchmark.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/COperatingSystem.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Random.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/URLEncodedForm.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Authentication.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Validation.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Crypto.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/App.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Vapor.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Redis.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Bits.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/WebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/NIOWebSocket.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/DatabaseKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/TemplateKit.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Fluent.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/Multipart.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/panartem/Developer/Study/Microservices-vapor/TILAppUsers/.build/checkouts/swift-nio-ssl-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
import d2d; import resources; import game.components; import game.entities.bullet; import game.level; import game.loopingmusic; import game.systems; import game.world; import std.stdio : writeln, File; class Game1 : Game { private: bool paused; CollisionSystem collisions; DrawSystem drawSystem; Level level; RectangleShape gameOverScreen; protected: override void onEvent(Event event) { super.onEvent(event); controls.handleEvent(event); } public: override void start() { windowWidth = WindowWidth; windowHeight = WindowHeight; windowTitle = "LGJ2019"; maxFPS = 120; } override void load() { Music.load(); R.load(); drawSystem.load(); bgMusic = LoopingMusic(new Music("res/music/spacinginspace.mp3"), new Music("res/music/spacinginspace-main.mp3")); bgMusic.start(); CollisionComponent playerCollision; playerCollision.type = CollisionComponent.Mask.player; playerCollision.circles[0].radius = 4; playerCollision.circles[0].mask = CollisionComponent.Mask.playerShot; controls.player = world.putEntity(PositionComponent(vec2(CanvasWidth / 2, CanvasHeight / 2)), ComplexDisplayComponent(R.sprites.player), HealthComponent(3, 3), playerCollision); level = Level.parse(File("res/level.txt").byLine); gameOverScreen = RectangleShape.create(new Texture("res/screen/gameover.png", TextureFilterMode.Nearest, TextureFilterMode.Nearest), vec2(0), vec2(400, 304)); } override void update(float delta) { bgMusic.update(); if (paused) return; world.update(delta); level.update(); double deltaWorld = delta * world.speed; collisions.update(deltaWorld); controls.update(delta, deltaWorld); } override void draw() { window.clear(drawSystem.bg.fR, drawSystem.bg.fG, drawSystem.bg.fB); matrixStack.top = mat4.scaling(CanvasScale, CanvasScale, 1); bool dead = false; controls.player.editEntity!((ref player) { auto health = player.read!HealthComponent; dead = health.hp == 0; }); if (dead) window.draw(gameOverScreen); else drawSystem.draw(window, controls); } } void main() { new Game1().run(); }
D
/root/Documents/TryHackMe_Walkthroughs/room_learn_rust/rust_task_4_question_1/target/debug/deps/rust_task_4_question_1-3efc02927c418b19: src/main.rs /root/Documents/TryHackMe_Walkthroughs/room_learn_rust/rust_task_4_question_1/target/debug/deps/rust_task_4_question_1-3efc02927c418b19.d: src/main.rs src/main.rs:
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.util.loader; import std.array, std.string; import derelict.util.exception, derelict.util.sharedlib, derelict.util.system; struct SharedLibVersion { int major; int minor; int patch; } abstract class SharedLibLoader { /++ Constructs a new instance of shared lib loader with a string of one or more shared library names to use as default. Params: libNames = A string containing one or more comma-separated shared library names. +/ this(string libNames) { _libNames = libNames; } /++ Binds a function pointer to a symbol in this loader's shared library. Params: ptr = Pointer to a function pointer that will be used as the bind point. funcName = The name of the symbol to be bound. doThrow = If true, a SymbolLoadException will be thrown if the symbol is missing. If false, no exception will be thrown and the ptr parameter will be set to null. Throws: SymbolLoadException if doThrow is true and a the symbol specified by funcName is missing from the shared library. +/ final void bindFunc(void** ptr, string funcName, bool doThrow = true) { void* func = loadSymbol(funcName, doThrow); *ptr = func; } /++ Binds a function pointer to a stdcall symbol in this loader's shared library. On builds for anything other than 32-bit Windows, this simply delegates to bindFunc. Params: ptr = Pointer to a function pointer that will be used as the bind point. funcName = The name of the symbol to be bound. doThrow = If true, a SymbolLoadException will be thrown if the symbol is missing. If false, no exception will be thrown and the ptr parameter will be set to null. Throws: SymbolLoadException if doThrow is true and a the symbol specified by funcName is missing from the shared library. +/ final void bindFunc_stdcall(Func)(ref Func f, string unmangledName) { static if(Derelict_OS_Windows && !Derelict_Arch_64) { import std.format : format; import std.traits : ParameterTypeTuple; // get type-tuple of parameters ParameterTypeTuple!f params; size_t sizeOfParametersOnStack(A...)(A args) { size_t sum = 0; foreach (arg; args) { sum += arg.sizeof; // align on 32-bit stack if (sum % 4 != 0) sum += 4 - (sum % 4); } return sum; } unmangledName = format("_%s@%s", unmangledName, sizeOfParametersOnStack(params)); } bindFunc(cast(void**)&f, unmangledName); } /++ Finds and loads a shared library, using this loader's default shared library names and default supported shared library version. If multiple library names are specified as default, a SharedLibLoadException will only be thrown if all of the libraries fail to load. It will be the head of an exceptin chain containing one instance of the exception for each library that failed. Examples: If this loader supports versions 2.0 and 2.1 of a shared libary, this method will attempt to load 2.1 and will fail if only 2.0 is present on the system. Throws: SharedLibLoadException if the shared library or one of its dependencies cannot be found on the file system. SymbolLoadException if an expected symbol is missing from the library. +/ final void load() { load(_libNames); } /++ Finds and loads any version of a shared library greater than or equal to the required mimimum version, using this loader's default shared library names. If multiple library names are specified as default, a SharedLibLoadException will only be thrown if all of the libraries fail to load. It will be the head of an exceptin chain containing one instance of the exception for each library that failed. Examples: If this loader supports versions 2.0 and 2.1 of a shared library, passing a SharedLibVersion with the major field set to 2 and the minor field set to 0 will cause the loader to load version 2.0 if version 2.1 is not available on the system. Params: minRequiredVersion = the minimum version of the library that is acceptable. Subclasses are free to ignore this. Throws: SharedLibLoadException if the shared library or one of its dependencies cannot be found on the file system. SymbolLoadException if an expected symbol is missing from the library. +/ final void load(SharedLibVersion minRequiredVersion) { configureMinimumVersion(minRequiredVersion); load(); } /++ Finds and loads a shared library, using libNames to find the library on the file system. If multiple library names are specified in libNames, a SharedLibLoadException will only be thrown if all of the libraries fail to load. It will be the head of an exceptin chain containing one instance of the exception for each library that failed. Examples: If this loader supports versions 2.0 and 2.1 of a shared libary, this method will attempt to load 2.1 and will fail if only 2.0 is present on the system. Params: libNames = A string containing one or more comma-separated shared library names. Throws: SharedLibLoadException if the shared library or one of its dependencies cannot be found on the file system. SymbolLoadException if an expected symbol is missing from the library. +/ final void load(string libNames) { if(libNames == null) libNames = _libNames; auto lnames = libNames.split(","); foreach(ref string l; lnames) l = l.strip(); load(lnames); } /++ Finds and loads any version of a shared library greater than or equal to the required mimimum version, using libNames to find the library on the file system. If multiple library names are specified as default, a SharedLibLoadException will only be thrown if all of the libraries fail to load. It will be the head of an exceptin chain containing one instance of the exception for each library that failed. Examples: If this loader supports versions 2.0 and 2.1 of a shared library, passing a SharedLibVersion with the major field set to 2 and the minor field set to 0 will cause the loader to load version 2.0 if version 2.1 is not available on the system. Params: libNames = A string containing one or more comma-separated shared library names. minRequiredVersion = The minimum version of the library that is acceptable. Subclasses are free to ignore this. Throws: SharedLibLoadException if the shared library or one of its dependencies cannot be found on the file system. SymbolLoadException if an expected symbol is missing from the library. +/ final void load(string libNames, SharedLibVersion minRequiredVersion) { configureMinimumVersion(minRequiredVersion); load(libNames); } /++ Finds and loads a shared library, using libNames to find the library on the file system. If multiple library names are specified in libNames, a SharedLibLoadException will only be thrown if all of the libraries fail to load. It will be the head of an exception chain containing one instance of the exception for each library that failed. Params: libNames = An array containing one or more shared library names, with one name per index. Throws: SharedLibLoadException if the shared library or one of its dependencies cannot be found on the file system. SymbolLoadException if an expected symbol is missing from the library. +/ final void load(string[] libNames) { _lib.load(libNames); loadSymbols(); } /++ Finds and loads any version of a shared library greater than or equal to the required mimimum version, , using libNames to find the library on the file system. If multiple library names are specified in libNames, a SharedLibLoadException will only be thrown if all of the libraries fail to load. It will be the head of an exception chain containing one instance of the exception for each library that failed. Examples: If this loader supports versions 2.0 and 2.1 of a shared library, passing a SharedLibVersion with the major field set to 2 and the minor field set to 0 will cause the loader to load version 2.0 if version 2.1 is not available on the system. Params: libNames = An array containing one or more shared library names, with one name per index. minRequiredVersion = The minimum version of the library that is acceptable. Subclasses are free to ignore this. Throws: SharedLibLoadException if the shared library or one of its dependencies cannot be found on the file system. SymbolLoadException if an expected symbol is missing from the library. +/ final void load(string[] libNames, SharedLibVersion minRequiredVersion) { configureMinimumVersion(minRequiredVersion); load(libNames); } /++ Unloads the shared library from memory, invalidating all function pointers which were assigned a symbol by one of the load methods. +/ final void unload() { _lib.unload(); } /// Returns: true if the shared library is loaded, false otherwise. @property @nogc nothrow final bool isLoaded() { return _lib.isLoaded; } /++ Sets the callback that will be called when an expected symbol is missing from the shared library. Params: callback = A delegate that returns a value of type derelict.util.exception.ShouldThrow and accepts a string as the sole parameter. +/ @property @nogc nothrow final void missingSymbolCallback(MissingSymbolCallbackDg callback) { _lib.missingSymbolCallback = callback; } /++ Sets the callback that will be called when an expected symbol is missing from the shared library. Params: callback = A pointer to a function that returns a value of type derelict.util.exception.ShouldThrow and accepts a string as the sole parameter. +/ @property @nogc nothrow final void missingSymbolCallback(MissingSymbolCallbackFunc callback) { _lib.missingSymbolCallback = callback; } /++ Returns the currently active missing symbol callback. This exists primarily as a means to save the current callback before setting a new one. It's useful, for example, if the new callback needs to delegate to the old one. +/ @property @nogc nothrow final MissingSymbolCallback missingSymbolCallback() { return _lib.missingSymbolCallback; } protected: /++ Must be implemented by subclasses to load all of the symbols from a shared library. This method is called by the load methods. +/ abstract void loadSymbols(); /++ Allows a subclass to install an exception handler for specific versions of a library before loadSymbols is called. This method is optional. If the subclass does not implement it, calls to any of the overloads of the load method that take a SharedLibVersion will cause a compile time assert to fire. +/ void configureMinimumVersion(SharedLibVersion minVersion) { assert(0, "SharedLibVersion is not supported by this loader."); } /++ Subclasses can use this as an alternative to bindFunc, but must bind the returned symbol manually. bindFunc calls this internally, so it can be overloaded to get behavior different from the default. Params: name = The name of the symbol to load.doThrow = If true, a SymbolLoadException will be thrown if the symbol is missing. If false, no exception will be thrown and the ptr parameter will be set to null. Throws: SymbolLoadException if doThrow is true and a the symbol specified by funcName is missing from the shared library. Returns: The symbol matching the name parameter. +/ void* loadSymbol(string name, bool doThrow = true) { return _lib.loadSymbol(name, doThrow); } /// Returns a reference to the shared library wrapped by this loader. @property @nogc nothrow final ref SharedLib lib(){ return _lib; } private: string _libNames; SharedLib _lib; }
D
module dweb.templatesupport; import std.variant; import std.array; import std.typecons; import dweb.templateparse; class CommandInfo { string name; string parameters; string text; string[] unproc_lines; // Indices over the processed output: size_t start; // Indices over the unprocessed input (some commands want it) size_t start_unproc_line; size_t start_unproc_col; bool processed = false; this(string namearg, string parametersarg) { name = namearg; parameters = parametersarg; } } alias string function(CommandInfo cinfo, ref DJTemplateParser parser) TemplateFunc; struct TemplateCommand { TemplateFunc func; Flag!"HasContext" hasContext; this(TemplateFunc postf, Flag!"HasContext" hascontext_) { func = postf; hasContext = hascontext_; } } class TemplateLib { string name; TemplateCommand[string] libCommands; } struct ContextValue { bool escaped = false; Variant value; this(string strvalue, bool escaped_ = false) { value = Variant(strvalue); escaped = escaped_; } this(Variant varvalue, bool escaped_ = false) { value = varvalue; escaped = escaped_; } string toString() { return value.toString(); } }
D
// URL: https://atcoder.jp/contests/abc141/tasks/abc141_c import std; version(unittest) {} else void main() { int N, K, Q; io.getV(N, K, Q); auto b = new int[](N); foreach (_; 0..Q) { int Ai; io.getV(Ai); --Ai; b[Ai]++; } foreach (bi; b) io.putB(K-(Q-bi) > 0, "Yes", "No"); } auto io = IO!()(); import lib.io;
D
/Users/cansoykarafakili/Desktop/Hello/build/Intermediates/Hello.build/Debug/SMTP.build/Objects-normal/x86_64/EHLOExtension.o : /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Utility/NSUUID+SMTPMessageID.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Utility/NSDate+SMTP.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPClient+Send.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPAuthMethod.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPClient+Convenience.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Email/Address/EmailAddressRepresentable.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Email/Attachment/EmailAttachmentRepresentable.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Email/Body/EmailBodyRepresentable.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Email/Address/EmailAddress+StringLiteralConvertible.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPClient+Authorize.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPGreeting.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPCredential.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Email/Email.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/EHLOExtension.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPClientError.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Email/Address/EmailAddress.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPClient+Transmit.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPClient.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Email/Attachment/EmailAttachment.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Email/Body/EmailBody.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPClient+Reply.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/libc.framework/Modules/libc.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Core.framework/Modules/Core.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Debugging.framework/Modules/Debugging.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Sockets.framework/Modules/Sockets.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Bits.framework/Modules/Bits.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Transport.framework/Modules/Transport.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 /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/cansoykarafakili/Desktop/Hello/build/Intermediates/Hello.build/Debug/SMTP.build/Objects-normal/x86_64/EHLOExtension~partial.swiftmodule : /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Utility/NSUUID+SMTPMessageID.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Utility/NSDate+SMTP.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPClient+Send.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPAuthMethod.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPClient+Convenience.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Email/Address/EmailAddressRepresentable.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Email/Attachment/EmailAttachmentRepresentable.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Email/Body/EmailBodyRepresentable.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Email/Address/EmailAddress+StringLiteralConvertible.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPClient+Authorize.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPGreeting.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPCredential.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Email/Email.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/EHLOExtension.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPClientError.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Email/Address/EmailAddress.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPClient+Transmit.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPClient.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Email/Attachment/EmailAttachment.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Email/Body/EmailBody.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPClient+Reply.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/libc.framework/Modules/libc.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Core.framework/Modules/Core.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Debugging.framework/Modules/Debugging.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Sockets.framework/Modules/Sockets.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Bits.framework/Modules/Bits.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Transport.framework/Modules/Transport.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 /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/cansoykarafakili/Desktop/Hello/build/Intermediates/Hello.build/Debug/SMTP.build/Objects-normal/x86_64/EHLOExtension~partial.swiftdoc : /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Utility/NSUUID+SMTPMessageID.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Utility/NSDate+SMTP.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPClient+Send.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPAuthMethod.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPClient+Convenience.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Email/Address/EmailAddressRepresentable.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Email/Attachment/EmailAttachmentRepresentable.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Email/Body/EmailBodyRepresentable.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Email/Address/EmailAddress+StringLiteralConvertible.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPClient+Authorize.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPGreeting.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPCredential.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Email/Email.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/EHLOExtension.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPClientError.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Email/Address/EmailAddress.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPClient+Transmit.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPClient.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Email/Attachment/EmailAttachment.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Email/Body/EmailBody.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/engine.git-3311994267206676365/Sources/SMTP/Client/SMTPClient+Reply.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/libc.framework/Modules/libc.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Core.framework/Modules/Core.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Debugging.framework/Modules/Debugging.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Sockets.framework/Modules/Sockets.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Bits.framework/Modules/Bits.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Transport.framework/Modules/Transport.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 /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.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric, std.container, std.range; void get(Args...)(ref Args args) { import std.traits, std.meta, std.typecons; static if (Args.length == 1) { alias Arg = Args[0]; static if (isArray!Arg) { static if (isSomeChar!(ElementType!Arg)) { args[0] = readln.chomp.to!Arg; } else { args[0] = readln.split.to!Arg; } } else static if (isTuple!Arg) { auto input = readln.split; static foreach (i; 0..Fields!Arg.length) { args[0][i] = input[i].to!(Fields!Arg[i]); } } else { args[0] = readln.chomp.to!Arg; } } else { auto input = readln.split; assert(input.length == Args.length); static foreach (i; 0..Args.length) { args[i] = input[i].to!(Args[i]); } } } void get_lines(Args...)(size_t N, ref Args args) { import std.traits, std.range; static foreach (i; 0..Args.length) { static assert(isArray!(Args[i])); args[i].length = N; } foreach (i; 0..N) { static if (Args.length == 1) { get(args[0][i]); } else { auto input = readln.split; static foreach (j; 0..Args.length) { args[j][i] = input[j].to!(ElementType!(Args[j])); } } } } void main() { int T; get(T); while (T--) { int N; get(N); int[] AA; get(AA); sort(AA); foreach (i; 0..N*2-1) { int[][int] memo; foreach_reverse (j, a; AA[0..$-1]) if (i != j) memo[a] ~= j.to!int; auto aa = new int[](N); aa[0] = AA[$-1]; auto bb = new int[](N); bb[0] = AA[i]; auto j = N*2 - 1; if (i == j) --j; auto fs = new bool[](N * 2); fs[$-1] = fs[i] = true; foreach (k; 1..N) { auto x = aa[k-1]; while (fs[j]) --j; auto a = AA[j]; memo[a].popFront(); fs[j] = true; --j; auto b = x - a; if (b !in memo || memo[b].empty) goto ng; fs[memo[b].front] = true; memo[b].popFront(); aa[k] = a; bb[k] = b; } writeln("YES\n", aa[0] + bb[0]); foreach (k; 0..N) writeln(aa[k], " ", bb[k]); goto ok; ng: } writeln("NO"); continue; ok: } } /* 2 3 5 1 2 =>1 2 3 5 8 -> 3-5 7 -> 2-5 6 -> 1-5 -> 5 5 -> 3-2 4 -> 3-1 -> 3 3 -> 1-2 -> 2 1 2 3 4 5 6 7 14 3 11 1 2 3 3 4 5 6 7 11 14 14 - ? -> 14 11 - 3 -> 11 7 - 4 -> 7 6 - 1 -> 6 5 ... x */
D
// REQUIRED_ARGS: -c /* TEST_OUTPUT: --- fail_compilation/fail10666.d(16): Error: variable fail10666.foo10666.s1 has scoped destruction, cannot build closure --- */ struct S10666 { int val; ~this() {} } void foo10666(S10666 s1) { auto f1 = (){ return () => s1.val; }(); // NG S10666 s2; auto f2 = (){ return () => s2.val; }(); // (should be NG) }
D
/Users/nickshaba/Documents/rust-book /first_request/target/debug/build/proc-macro2-235f182b67796ec1/build_script_build-235f182b67796ec1: /Users/nickshaba/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.30/build.rs /Users/nickshaba/Documents/rust-book /first_request/target/debug/build/proc-macro2-235f182b67796ec1/build_script_build-235f182b67796ec1.d: /Users/nickshaba/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.30/build.rs /Users/nickshaba/.cargo/registry/src/github.com-1ecc6299db9ec823/proc-macro2-0.4.30/build.rs:
D
/Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Vapor.build/Commands/Version.swift.o : /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Body+JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+FormData.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewData.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/FormData+Polymorphic.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/StructuredData+FormURLEncoded.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/Request+FormURLEncoded.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Command.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Log+Convenience.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringCharacterSequence.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Resource.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/HTTP+Node.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/AcceptLanguage.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cache/Config+Cache.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+Codable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+Codable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Configurable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSONRepresentable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringInitializable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/RequestInitializable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Console.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Vapor+Console.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/MediaType.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Config+Middleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSMiddleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileMiddleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Date/DateMiddleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorMiddleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/File+Response.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Resolve.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Serve.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/DumpConfig.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Config+ServerConfig.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/ServerConfig.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoEncoding.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Chaining.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Droplet+Routing.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Config+Log.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RoutesLog.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Config+Hash.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogLevel.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Config+Mail.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mail.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/ProviderInstall.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/HashProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CipherProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactoryProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactoryProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Int+Random.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Version.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSConfiguration.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Subscription.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Run.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mailgun.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Config+Provider.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Responder.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileManager.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/ConsoleLogger.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/Config+Cipher.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoCipher.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/CryptoHasher.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/BCryptHasher.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/StaticViewRenderer.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/EngineServer.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/SecurityLayer.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider+Resources.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Directories.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Bytes.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/InitProtocols.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Config+Sessions.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Responder+Helpers.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSockets/WebSockets.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/EngineClient.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/FoundationClient.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Response+Content.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Request+Content.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Event.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/Accept.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+Multipart.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer+Request.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Config+View.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/View.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorView.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/Config+ServerFactory.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactory.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Config+ClientFactory.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/JSON.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/SMTP.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/HTTP.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/FormData.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Cache.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Branches.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Cookies.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Configs.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Sessions.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/WebSockets.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/BCrypt.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Vapor.build/Version~partial.swiftmodule : /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Body+JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+FormData.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewData.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/FormData+Polymorphic.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/StructuredData+FormURLEncoded.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/Request+FormURLEncoded.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Command.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Log+Convenience.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringCharacterSequence.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Resource.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/HTTP+Node.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/AcceptLanguage.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cache/Config+Cache.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+Codable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+Codable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Configurable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSONRepresentable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringInitializable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/RequestInitializable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Console.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Vapor+Console.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/MediaType.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Config+Middleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSMiddleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileMiddleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Date/DateMiddleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorMiddleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/File+Response.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Resolve.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Serve.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/DumpConfig.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Config+ServerConfig.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/ServerConfig.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoEncoding.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Chaining.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Droplet+Routing.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Config+Log.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RoutesLog.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Config+Hash.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogLevel.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Config+Mail.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mail.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/ProviderInstall.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/HashProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CipherProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactoryProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactoryProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Int+Random.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Version.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSConfiguration.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Subscription.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Run.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mailgun.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Config+Provider.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Responder.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileManager.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/ConsoleLogger.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/Config+Cipher.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoCipher.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/CryptoHasher.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/BCryptHasher.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/StaticViewRenderer.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/EngineServer.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/SecurityLayer.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider+Resources.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Directories.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Bytes.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/InitProtocols.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Config+Sessions.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Responder+Helpers.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSockets/WebSockets.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/EngineClient.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/FoundationClient.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Response+Content.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Request+Content.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Event.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/Accept.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+Multipart.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer+Request.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Config+View.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/View.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorView.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/Config+ServerFactory.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactory.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Config+ClientFactory.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/JSON.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/SMTP.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/HTTP.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/FormData.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Cache.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Branches.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Cookies.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Configs.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Sessions.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/WebSockets.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/BCrypt.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Vapor.build/Version~partial.swiftdoc : /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Body+JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSON.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+FormData.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewData.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/FormData+Polymorphic.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/StructuredData+FormURLEncoded.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/FormURLEncoded/Request+FormURLEncoded.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Command.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Log+Convenience.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringCharacterSequence.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Resource.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/HTTP+Node.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/AcceptLanguage.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cache/Config+Cache.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Message+Codable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/HTTP/Response+Codable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Configurable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/JSON/JSONRepresentable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/StringInitializable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/RequestInitializable.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Config+Console.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Vapor+Console.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/MediaType.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Config+Middleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSMiddleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileMiddleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Date/DateMiddleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorMiddleware.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/File+Response.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Resolve.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Serve.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/DumpConfig.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/Config+ServerConfig.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Serve/ServerConfig.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoEncoding.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Middleware/Chaining.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/Droplet+Routing.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/Config+Log.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RoutesLog.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Config+Hash.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogLevel.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Config+Mail.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mail.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/ProviderInstall.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/LogProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/HashProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CipherProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactoryProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/ClientFactoryProtocol.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/Int+Random.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Commands/Version.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/CORS/CORSConfiguration.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Routing/RouteCollection.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Subscription.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Run.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Mail/Mailgun.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Config+Provider.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet+Responder.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/File/FileManager.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Log/ConsoleLogger.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/Config+Cipher.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Cipher/CryptoCipher.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/CryptoHasher.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Hash/BCryptHasher.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/StaticViewRenderer.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/EngineServer.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/SecurityLayer.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/AbortError.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Provider/Provider+Resources.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Config/Directories.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Bytes.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/InitProtocols.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Sessions/Config+Sessions.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Responder+Helpers.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/WebSockets/WebSockets.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Utilities/Exports.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Droplet/Droplet.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/EngineClient.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/FoundationClient.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Response+Content.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Request+Content.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Content/Content.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Event/Event.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/HTTP/Accept.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Multipart/Request+Multipart.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/Abort.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/ViewRenderer+Request.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/Config+View.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/View/View.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Error/ErrorView.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/Config+ServerFactory.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Server/ServerFactory.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/vapor.git-5492988889259800272/Sources/Vapor/Engine/Client/Config+ClientFactory.swift /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/URI.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/JSON.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/SMTP.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/HTTP.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/TLS.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/FormData.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Cache.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Branches.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Cookies.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Configs.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Sessions.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Sockets.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/WebSockets.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/BCrypt.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/Transport.swiftmodule /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/engine.git-3311994267206676365/Sources/CHTTP/include/http_parser.h /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/checkouts/ctls.git-9210868160426949823/module.modulemap /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Documents/VaporProject/HerokuChat/.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; import std.string; import std.conv; import std.algorithm; import std.range; import std.format; import std.concurrency; void main(string[] args) { auto input = stdin.byLine; int N = input.front.length; int[][] field; foreach (ref i; input) { auto row = new int[N]; i.map!(x => x.to!int - '0').copy(row); field ~= row; } int M = field.length; auto visible = new int[][M]; foreach (i; 0..M) visible[i] = new int[N]; foreach (j; 0..N) { int m = -1; foreach (i; 0..M) { if (field[i][j] > m) { m = field[i][j]; visible[i][j] = 1; } } } foreach (j; 0..N) { int m = -1; foreach (i; iota(M-1, -1, -1)) { if (field[i][j] > m) { m = field[i][j]; visible[i][j] = 1; } } } foreach (i; 0..M) { int m = -1; foreach (j; iota(N-1, -1, -1)) { if (field[i][j] > m) { m = field[i][j]; visible[i][j] = 1; } } } foreach (i; 0..M) { int m = -1; foreach (j; 0..N) { if (field[i][j] > m) { m = field[i][j]; visible[i][j] = 1; } } } writeln(visible.join.sum); //foreach (r; visible) r.writeln; }
D
module pshared.packets.bank; import pnet.packet; /// 1901 final class BankRequest : Packet { public: final: ulong bankId; this(ubyte[] buffer) { super(buffer); bankId = read!ulong; } } /// 1902 final class BankResponse : Packet { public: final: ulong money; this() { super(12, 1902); } override ubyte[] finalize() { write!ulong(money); return super.finalize; } }
D
var int Halvor_ItemsGiven_Chapter_1; var int Halvor_ItemsGiven_Chapter_2; var int Halvor_ItemsGiven_Chapter_3; var int Halvor_ItemsGiven_Chapter_4; var int Halvor_ItemsGiven_Chapter_5; func void B_GiveTradeInv_Halvor(var C_Npc slf) { if((Kapitel >= 1) && (Halvor_ItemsGiven_Chapter_1 == FALSE)) { CreateInvItems(slf,ItFo_Fish,12); CreateInvItems(slf,ItFo_SmellyFish,5); Halvor_ItemsGiven_Chapter_1 = TRUE; }; if((Kapitel >= 2) && (Halvor_ItemsGiven_Chapter_2 == FALSE)) { CreateInvItems(slf,ItMi_Gold,50); CreateInvItems(slf,ItFo_Fish,8); CreateInvItems(slf,ItFo_SmellyFish,4); Halvor_ItemsGiven_Chapter_2 = TRUE; }; if((Kapitel >= 3) && (Halvor_ItemsGiven_Chapter_3 == FALSE)) { CreateInvItems(slf,ItMi_Gold,100); CreateInvItems(slf,ItFo_Fish,4); CreateInvItems(slf,ItFo_SmellyFish,3); Halvor_ItemsGiven_Chapter_3 = TRUE; }; if((Kapitel >= 4) && (Halvor_ItemsGiven_Chapter_4 == FALSE)) { CreateInvItems(slf,ItMi_Gold,150); CreateInvItems(slf,ItFo_Fish,19); CreateInvItems(slf,ItFo_SmellyFish,4); Halvor_ItemsGiven_Chapter_4 = TRUE; }; if((Kapitel >= 5) && (Halvor_ItemsGiven_Chapter_5 == FALSE)) { CreateInvItems(slf,ItMi_Gold,200); CreateInvItems(slf,ItFo_Fish,9); CreateInvItems(slf,ItFo_SmellyFish,8); Halvor_ItemsGiven_Chapter_5 = TRUE; }; };
D
module tango.core.tools.FrameInfo; version (D_Version2): package: struct FrameInfo { /// line number in the source of the most likely start adress (0 if not available) long line; /// number of the stack frame (starting at 0 for the top frame) size_t iframe; /// offset from baseSymb: within the function, or from the closest symbol ptrdiff_t offsetSymb; /// adress of the symbol in this execution size_t baseSymb; /// offset within the image (from this you can use better methods to get line number /// a posteriory) ptrdiff_t offsetImg; /// base adress of the image (will be dependent on randomization schemes) size_t baseImg; /// adress of the function, or at which the ipc will return /// (which most likely is the one after the adress where it started) /// this is the raw adress returned by the backtracing function size_t address; /// file (image) of the current adress const(char)[] file; /// name of the function, if possible demangled char[] func; /// extra information (for example calling arguments) const(char)[] extra; /// if the address is exact or it is the return address bool exactAddress; /// if this function is an internal functions (for example the backtracing function itself) /// if true by default the frame is not printed bool internalFunction; alias void function(FrameInfo*,void delegate(in char[])) FramePrintHandler; /// the default printing function static FramePrintHandler defaultFramePrintingFunction; /// writes out the current frame info void writeOut(void delegate(in char[])sink){ if (defaultFramePrintingFunction){ defaultFramePrintingFunction(&this,sink); } else { char[26] buf; //auto len=snprintf(buf.ptr,26,"[%8zx]",address); //sink(buf[0..len]); //len=snprintf(buf.ptr,26,"%8zx",baseImg); //sink(buf[0..len]); //len=snprintf(buf.ptr,26,"%+td ",offsetImg); //sink(buf[0..len]); //while (++len<6) sink(" "); if (func.length) { sink(func); } else { sink("???"); } for (size_t i=func.length;i<80;++i) sink(" "); //len=snprintf(buf.ptr,26," @%zx",baseSymb); //sink(buf[0..len]); //len=snprintf(buf.ptr,26,"%+td ",offsetSymb); //sink(buf[0..len]); if (extra.length){ sink(extra); sink(" "); } sink(file); sink(":"); sink(ulongToUtf8(buf, line)); } } /// clears the frame information stored void clear() { line=0; iframe=-1; offsetImg=0; baseImg=0; offsetSymb=0; baseSymb=0; address=0; exactAddress=true; internalFunction=false; file=null; func=null; extra=null; } } const(char)[] ulongToUtf8 (char[] tmp, ulong val) in { assert (tmp.length > 19, "atoi buffer should be more than 19 chars wide"); } body { char* p = tmp.ptr + tmp.length; do { *--p = cast(char)((val % 10) + '0'); } while (val /= 10); return tmp [cast(size_t)(p - tmp.ptr) .. $]; }
D
// generated by fakerjsgenerator /// module faked.faker_uk; import faked.base; /// class Faker_uk : Faker { @safe: import std.random; import std.array; import std.format; import std.conv : to; /// this(int seed) { super(seed); } /// override string phoneNumberFormats() { auto data = [ "(044) ###-##-##", "(050) ###-##-##", "(063) ###-##-##", "(066) ###-##-##", "(073) ###-##-##", "(091) ###-##-##", "(092) ###-##-##", "(093) ###-##-##", "(094) ###-##-##", "(095) ###-##-##", "(096) ###-##-##", "(097) ###-##-##", "(098) ###-##-##", "(099) ###-##-##" ]; return this.digitBuild(choice(data, this.rnd)); } /// override string addressCityName() { auto data = [ "Алчевськ", "Артемівськ", "Бердичів", "Бердянськ", "Біла Церква", "Бровари", "Вінниця", "Горлівка", "Дніпродзержинськ", "Дніпропетровськ", "Донецьк", "Євпаторія", "Єнакієве", "Житомир", "Запоріжжя", "Івано-Франківськ", "Ізмаїл", "Кам’янець-Подільський", "Керч", "Київ", "Кіровоград", "Конотоп", "Краматорськ", "Красний Луч", "Кременчук", "Кривий Ріг", "Лисичанськ", "Луганськ", "Луцьк", "Львів", "Макіївка", "Маріуполь", "Мелітополь", "Миколаїв", "Мукачеве", "Нікополь", "Одеса", "Олександрія", "Павлоград", "Полтава", "Рівне", "Севастополь", "Сєвєродонецьк", "Сімферополь", "Слов’янськ", "Суми", "Тернопіль", "Ужгород", "Умань", "Харків", "Херсон", "Хмельницький", "Черкаси", "Чернівці", "Чернігів", "Шостка", "Ялта" ]; return choice(data, this.rnd); } /// override string addressState() { auto data = [ "АР Крим", "Вінницька область", "Волинська область", "Дніпропетровська область", "Донецька область", "Житомирська область", "Закарпатська область", "Запорізька область", "Івано-Франківська область", "Київська область", "Кіровоградська область", "Луганська область", "Львівська область", "Миколаївська область", "Одеська область", "Полтавська область", "Рівненська область", "Сумська область", "Тернопільська область", "Харківська область", "Херсонська область", "Хмельницька область", "Черкаська область", "Чернівецька область", "Чернігівська область", "Київ", "Севастополь" ]; return choice(data, this.rnd); } /// override string addressCountry() { auto data = [ "Австралія", "Австрія", "Азербайджан", "Албанія", "Алжир", "Ангола", "Андорра", "Антигуа і Барбуда", "Аргентина", "Афганістан", "Багамські Острови", "Бангладеш", "Барбадос", "Бахрейн", "Беліз", "Бельгія", "Бенін", "Білорусь", "Болгарія", "Болівія", "Боснія і Герцеговина", "Ботсвана", "Бразилія", "Бруней", "Буркіна-Фасо", "Бурунді", "Бутан", "В’єтнам", "Вануату", "Ватикан", "Велика Британія", "Венесуела", "Вірменія", "Габон", "Гаїті", "Гайана", "Гамбія", "Гана", "Гватемала", "Гвінея", "Гвінея-Бісау", "Гондурас", "Гренада", "Греція", "Грузія", "Данія", "Демократична Республіка Конго", "Джибуті", "Домініка", "Домініканська Республіка", "Еквадор", "Екваторіальна Гвінея", "Еритрея", "Естонія", "Ефіопія", "Єгипет", "Ємен", "Замбія", "Зімбабве", "Ізраїль", "Індія", "Індонезія", "Ірак", "Іран", "Ірландія", "Ісландія", "Іспанія", "Італія", "Йорданія", "Кабо-Верде", "Казахстан", "Камбоджа", "Камерун", "Канада", "Катар", "Кенія", "Киргизстан", "Китай", "Кіпр", "Кірибаті", "Колумбія", "Коморські Острови", "Конго", "Коста-Рика", "Кот-д’Івуар", "Куба", "Кувейт", "Лаос", "Латвія", "Лесото", "Литва", "Ліберія", "Ліван", "Лівія", "Ліхтенштейн", "Люксембург", "Маврикій", "Мавританія", "Мадаґаскар", "Македонія", "Малаві", "Малайзія", "Малі", "Мальдіви", "Мальта", "Марокко", "Маршаллові Острови", "Мексика", "Мозамбік", "Молдова", "Монако", "Монголія", "Намібія", "Науру", "Непал", "Нігер", "Нігерія", "Нідерланди", "Нікарагуа", "Німеччина", "Нова Зеландія", "Норвегія", "Об’єднані Арабські Емірати", "Оман", "Пакистан", "Палау", "Панама", "Папуа-Нова Гвінея", "Парагвай", "Перу", "Південна Корея", "Південний Судан", "Південно-Африканська Республіка", "Північна Корея", "Польща", "Португалія", "Російська Федерація", "Руанда", "Румунія", "Сальвадор", "Самоа", "Сан-Марино", "Сан-Томе і Принсіпі", "Саудівська Аравія", "Свазіленд", "Сейшельські Острови", "Сенеґал", "Сент-Вінсент і Гренадини", "Сент-Кітс і Невіс", "Сент-Люсія", "Сербія", "Сирія", "Сінгапур", "Словаччина", "Словенія", "Соломонові Острови", "Сомалі", "Судан", "Суринам", "Східний Тимор", "США", "Сьєрра-Леоне", "Таджикистан", "Таїланд", "Танзанія", "Того", "Тонга", "Тринідад і Тобаго", "Тувалу", "Туніс", "Туреччина", "Туркменістан", "Уганда", "Угорщина", "Узбекистан", "Україна", "Уругвай", "Федеративні Штати Мікронезії", "Фіджі", "Філіппіни", "Фінляндія", "Франція", "Хорватія", "Центральноафриканська Республіка", "Чад", "Чехія", "Чилі", "Чорногорія", "Швейцарія", "Швеція", "Шрі-Ланка", "Ямайка", "Японія" ]; return choice(data, this.rnd); } override string addressStreetAddress() { final switch(uniform(0, 4, this.rnd)) { case 0: return "normal: '" ~ addressStreet(); case 1: return addressBuildingNumber(); case 2: return "full: '" ~ addressStreet(); case 3: return addressBuildingNumber() ~ " " ~ addressSecondaryAddress(); } } /// override string addressDefaultCountry() { auto data = [ "Україна'" ]; return choice(data, this.rnd); } /// string addressStreetPrefix() { auto data = [ "вул.", "вулиця", "пр.", "проспект", "пл.", "площа", "пров.", "провулок" ]; return choice(data, this.rnd); } /// override string addressCitySuffix() { auto data = [ "град'" ]; return choice(data, this.rnd); } /// override string addressCityPrefix() { auto data = [ "Південний", "Північний", "Східний", "Західний'" ]; return choice(data, this.rnd); } override string addressStreet() { final switch(uniform(0, 2, this.rnd)) { case 0: return addressStreetPrefix() ~ " " ~ addressStreetName(); case 1: return addressStreetName() ~ " " ~ addressStreetSuffix(); } } /// string addressStreetName() { auto data = [ "Зелена", "Молодіжна", "Городоцька", "Стрийська", "Вузька", "Нижанківського", "Староміська", "Ліста", "Вічева", "Брюховичів", "Винників", "Рудного", "Коліївщини" ]; return choice(data, this.rnd); } override string addressCity() { final switch(uniform(0, 2, this.rnd)) { case 0: return addressCityName(); case 1: return addressCityPrefix() ~ " " ~ nameMaleFirstName(); } } /// override string addressBuildingNumber() { auto data = [ "#", "##", "###'" ]; return this.digitBuild(choice(data, this.rnd)); } /// override string addressSecondaryAddress() { auto data = [ "кв. ###'" ]; return this.digitBuild(choice(data, this.rnd)); } /// override string addressPostcode() { auto data = [ "#####'" ]; return this.digitBuild(choice(data, this.rnd)); } /// override string addressStreetSuffix() { auto data = [ "майдан'" ]; return choice(data, this.rnd); } /// override string companySuffix() { auto data = [ "Постач", "Торг", "Пром", "Трейд", "Збут'" ]; return choice(data, this.rnd); } /// string companyPrefix() { auto data = [ "ТОВ", "ПАТ", "ПрАТ", "ТДВ", "КТ", "ПТ", "ДП", "ФОП'" ]; return choice(data, this.rnd); } override string companyName() { final switch(uniform(0, 8, this.rnd)) { case 0: return companyPrefix() ~ " " ~ nameFemaleFirstName(); case 1: return companyPrefix() ~ " " ~ nameMaleFirstName(); case 2: return companyPrefix() ~ " " ~ nameMaleLastName(); case 3: return companyPrefix() ~ " " ~ companySuffix() ~ companySuffix(); case 4: return companyPrefix() ~ " " ~ companySuffix() ~ companySuffix() ~ companySuffix(); case 5: return companyPrefix() ~ " " ~ addressCityName() ~ companySuffix(); case 6: return companyPrefix() ~ " " ~ addressCityName() ~ companySuffix() ~ companySuffix(); case 7: return companyPrefix() ~ " " ~ addressCityName() ~ companySuffix() ~ companySuffix() ~ companySuffix(); } } /// override string internetFreeEmail() { auto data = [ "ukr.net", "ex.ua", "e-mail.ua", "i.ua", "meta.ua", "yandex.ua", "gmail.com" ]; return choice(data, this.rnd); } /// override string internetDomainSuffix() { auto data = [ "cherkassy.ua", "cherkasy.ua", "ck.ua", "cn.ua", "com.ua", "crimea.ua", "cv.ua", "dn.ua", "dnepropetrovsk.ua", "dnipropetrovsk.ua", "donetsk.ua", "dp.ua", "if.ua", "in.ua", "ivano-frankivsk.ua", "kh.ua", "kharkiv.ua", "kharkov.ua", "kherson.ua", "khmelnitskiy.ua", "kiev.ua", "kirovograd.ua", "km.ua", "kr.ua", "ks.ua", "lg.ua", "lt.ua", "lugansk.ua", "lutsk.ua", "lutsk.net", "lviv.ua", "mk.ua", "net.ua", "nikolaev.ua", "od.ua", "odessa.ua", "org.ua", "pl.ua", "pl.ua", "poltava.ua", "rovno.ua", "rv.ua", "sebastopol.ua", "sm.ua", "sumy.ua", "te.ua", "ternopil.ua", "ua", "uz.ua", "uzhgorod.ua", "vinnica.ua", "vn.ua", "volyn.net", "volyn.ua", "yalta.ua", "zaporizhzhe.ua", "zhitomir.ua", "zp.ua", "zt.ua", "укр" ]; return choice(data, this.rnd); } /// override string nameFemaleMiddleName() { auto data = [ "Адамівна", "Азарівна", "Алевтинівна", "Альбертівна", "Анастасівна", "Анатоліївна", "Андріївна", "Антонівна", "Аркадіївна", "Арсенівна", "Арсеніївна", "Артемівна", "Архипівна", "Аскольдівна", "Афанасіївна", "Білославівна", "Богданівна", "Божемирівна", "Боженівна", "Болеславівна", "Боримирівна", "Борисівна", "Бориславівна", "Братиславівна", "В’ячеславівна", "Вадимівна", "Валентинівна", "Валеріївна", "Василівна", "Вікторівна", "Віталіївна", "Владиславівна", "Володимирівна", "Всеволодівна", "Всеславівна", "Гаврилівна", "Гарасимівна", "Георгіївна", "Гнатівна", "Гордіївна", "Григоріївна", "Данилівна", "Даромирівна", "Денисівна", "Дмитрівна", "Добромирівна", "Доброславівна", "Євгенівна", "Захарівна", "Захаріївна", "Збориславівна", "Звенимирівна", "Звениславівна", "Зеновіївна", "Зиновіївна", "Златомирівна", "Зореславівна", "Іванівна", "Ігорівна", "Ізяславівна", "Корнеліївна", "Корнилівна", "Корніївна", "Костянтинівна", "Лаврентіївна", "Любомирівна", "Макарівна", "Максимівна", "Марківна", "Маркіянівна", "Матвіївна", "Мечиславівна", "Микитівна", "Миколаївна", "Миронівна", "Мирославівна", "Михайлівна", "Мстиславівна", "Назарівна", "Назаріївна", "Натанівна", "Немирівна", "Несторівна", "Олегівна", "Олександрівна", "Олексіївна", "Олельківна", "Омелянівна", "Орестівна", "Орхипівна", "Остапівна", "Охрімівна", "Павлівна", "Панасівна", "Пантелеймонівна", "Петрівна", "Пилипівна", "Радимирівна", "Радимівна", "Родіонівна", "Романівна", "Ростиславівна", "Русланівна", "Святославівна", "Сергіївна", "Славутівна", "Станіславівна", "Степанівна", "Стефаніївна", "Тарасівна", "Тимофіївна", "Тихонівна", "Устимівна", "Юріївна", "Юхимівна", "Ярославівна" ]; return choice(data, this.rnd); } /// override string nameMaleMiddleName() { auto data = [ "Адамович", "Азарович", "Алевтинович", "Альбертович", "Анастасович", "Анатолійович", "Андрійович", "Антонович", "Аркадійович", "Арсенійович", "Арсенович", "Артемович", "Архипович", "Аскольдович", "Афанасійович", "Білославович", "Богданович", "Божемирович", "Боженович", "Болеславович", "Боримирович", "Борисович", "Бориславович", "Братиславович", "В’ячеславович", "Вадимович", "Валентинович", "Валерійович", "Васильович", "Вікторович", "Віталійович", "Владиславович", "Володимирович", "Всеволодович", "Всеславович", "Гаврилович", "Герасимович", "Георгійович", "Гнатович", "Гордійович", "Григорійович", "Данилович", "Даромирович", "Денисович", "Дмитрович", "Добромирович", "Доброславович", "Євгенович", "Захарович", "Захарійович", "Збориславович", "Звенимирович", "Звениславович", "Зеновійович", "Зиновійович", "Златомирович", "Зореславович", "Іванович", "Ігорович", "Ізяславович", "Корнелійович", "Корнилович", "Корнійович", "Костянтинович", "Лаврентійович", "Любомирович", "Макарович", "Максимович", "Маркович", "Маркіянович", "Матвійович", "Мечиславович", "Микитович", "Миколайович", "Миронович", "Мирославович", "Михайлович", "Мстиславович", "Назарович", "Назарійович", "Натанович", "Немирович", "Несторович", "Олегович", "Олександрович", "Олексійович", "Олелькович", "Омелянович", "Орестович", "Орхипович", "Остапович", "Охрімович", "Павлович", "Панасович", "Пантелеймонович", "Петрович", "Пилипович", "Радимирович", "Радимович", "Родіонович", "Романович", "Ростиславович", "Русланович", "Святославович", "Сергійович", "Славутович", "Станіславович", "Степанович", "Стефанович", "Тарасович", "Тимофійович", "Тихонович", "Устимович", "Юрійович", "Юхимович", "Ярославович" ]; return choice(data, this.rnd); } /// override string nameMaleFirstName() { auto data = [ "Августин", "Аврелій", "Адам", "Адріян", "Азарій", "Алевтин", "Альберт", "Анастас", "Анастасій", "Анатолій", "Андрій", "Антін", "Антон", "Антоній", "Аркадій", "Арсен", "Арсеній", "Артем", "Архип", "Аскольд", "Афанасій", "Біломир", "Білослав", "Богдан", "Божемир", "Божен", "Болеслав", "Боримир", "Боримисл", "Борис", "Борислав", "Братимир", "Братислав", "Братомил", "Братослав", "Брячислав", "Будимир", "Буйтур", "Буревіст", "В’ячеслав", "Вадим", "Валентин", "Валерій", "Василь", "Велемир", "Віктор", "Віталій", "Влад", "Владислав", "Володимир", "Володислав", "Всевлад", "Всеволод", "Всеслав", "Гаврило", "Гарнослав", "Геннадій", "Георгій", "Герасим", "Гліб", "Гнат", "Гордій", "Горимир", "Горислав", "Градимир", "Григорій", "Далемир", "Данило", "Дарій", "Даромир", "Денис", "Дмитро", "Добромир", "Добромисл", "Доброслав", "Євген", "Єремій", "Захар", "Захарій", "Зборислав", "Звенигор", "Звенимир", "Звенислав", "Земислав", "Зеновій", "Зиновій", "Злат", "Златомир", "Зоремир", "Зореслав", "Зорян", "Іван", "Ігор", "Ізяслав", "Ілля", "Кий", "Корнелій", "Корнилій", "Корнило", "Корній", "Костянтин", "Кузьма", "Лаврентій", "Лаврін", "Лад", "Ладислав", "Ладо", "Ладомир", "Левко", "Листвич", "Лук’ян", "Любодар", "Любозар", "Любомир", "Макар", "Максим", "Мар’ян", "Маркіян", "Марко", "Матвій", "Мечислав", "Микита", "Микола", "Мирон", "Мирослав", "Михайло", "Мстислав", "Мусій", "Назар", "Назарій", "Натан", "Немир", "Нестор", "Олег", "Олександр", "Олексій", "Олелько", "Олесь", "Омелян", "Орест", "Орхип", "Остап", "Охрім", "Павло", "Панас", "Пантелеймон", "Петро", "Пилип", "Подолян", "Потап", "Радим", "Радимир", "Ратибор", "Ратимир", "Родіон", "Родослав", "Роксолан", "Роман", "Ростислав", "Руслан", "Святополк", "Святослав", "Семибор", "Сергій", "Синьоок", "Славолюб", "Славомир", "Славута", "Сніжан", "Сологуб", "Станіслав", "Степан", "Стефаній", "Стожар", "Тарас", "Тиміш", "Тимофій", "Тихон", "Тур", "Устим", "Хвалимир", "Хорив", "Чорнота", "Щастислав", "Щек", "Юліан", "Юрій", "Юхим", "Ян", "Ярема", "Яровид", "Яромил", "Яромир", "Ярополк", "Ярослав" ]; return choice(data, this.rnd); } /// override string nameSuffix() { auto data = [ "проф.", "доц.", "докт. пед. наук", "докт. політ. наук", "докт. філол. наук", "докт. філос. наук", "докт. і. наук", "докт. юрид. наук", "докт. техн. наук", "докт. психол. наук", "канд. пед. наук", "канд. політ. наук", "канд. філол. наук", "канд. філос. наук", "канд. і. наук", "канд. юрид. наук", "канд. техн. наук", "канд. психол. наук" ]; return choice(data, this.rnd); } override string nameName() { final switch(uniform(0, 8, this.rnd)) { case 0: return nameMaleFirstName() ~ " " ~ nameMaleLastName(); case 1: return nameMaleLastName() ~ " " ~ nameMaleFirstName(); case 2: return nameMaleFirstName() ~ " " ~ nameMaleMiddleName() ~ " " ~ nameMaleLastName(); case 3: return nameMaleLastName() ~ " " ~ nameMaleFirstName() ~ " " ~ nameMaleMiddleName(); case 4: return nameFemaleFirstName() ~ " " ~ nameFemaleLastName(); case 5: return nameFemaleLastName() ~ " " ~ nameFemaleFirstName(); case 6: return nameFemaleFirstName() ~ " " ~ nameFemaleMiddleName() ~ " " ~ nameFemaleLastName(); case 7: return nameFemaleLastName() ~ " " ~ nameFemaleFirstName() ~ " " ~ nameFemaleMiddleName(); } } /// override string nameFemaleFirstName() { auto data = [ "Аврелія", "Аврора", "Агапія", "Агата", "Агафія", "Агнеса", "Агнія", "Агрипина", "Ада", "Аделаїда", "Аделіна", "Адріана", "Азалія", "Алевтина", "Аліна", "Алла", "Альбіна", "Альвіна", "Анастасія", "Анастасія", "Анатолія", "Ангеліна", "Анжела", "Анна", "Антонида", "Антоніна", "Антонія", "Анфіса", "Аполлінарія", "Аполлонія", "Аркадія", "Артемія", "Афанасія", "Білослава", "Біляна", "Благовіста", "Богдана", "Богуслава", "Божена", "Болеслава", "Борислава", "Броніслава", "В’ячеслава", "Валентина", "Валерія", "Варвара", "Василина", "Вікторія", "Вілена", "Віленіна", "Віліна", "Віола", "Віолетта", "Віра", "Віргінія", "Віта", "Віталіна", "Влада", "Владислава", "Власта", "Всеслава", "Галина", "Ганна", "Гелена", "Далеслава", "Дана", "Дарина", "Дарислава", "Діана", "Діяна", "Добринка", "Добромила", "Добромира", "Добромисла", "Доброслава", "Долеслава", "Доляна", "Жанна", "Жозефіна", "Забава", "Звенислава", "Зінаїда", "Злата", "Зореслава", "Зорина", "Зоряна", "Зоя", "Іванна", "Ілона", "Інна", "Іннеса", "Ірина", "Ірма", "Калина", "Каріна", "Катерина", "Квітка", "Квітослава", "Клавдія", "Крентта", "Ксенія", "Купава", "Лада", "Лариса", "Леся", "Ликера", "Лідія", "Лілія", "Любава", "Любислава", "Любов", "Любомила", "Любомира", "Люборада", "Любослава", "Людмила", "Людомила", "Майя", "Мальва", "Мар’яна", "Марина", "Марічка", "Марія", "Марта", "Меланія", "Мечислава", "Милодара", "Милослава", "Мирослава", "Мілана", "Мокрина", "Мотря", "Мстислава", "Надія", "Наталія", "Неля", "Немира", "Ніна", "Огняна", "Оксана", "Олександра", "Олена", "Олеся", "Ольга", "Ореста", "Орина", "Орислава", "Орися", "Оріяна", "Павліна", "Палажка", "Пелагея", "Пелагія", "Поліна", "Поляна", "Потішана", "Радміла", "Радослава", "Раїна", "Раїса", "Роксолана", "Ромена", "Ростислава", "Руслана", "Світлана", "Святослава", "Слава", "Сміяна", "Сніжана", "Соломія", "Соня", "Софія", "Станислава", "Сюзана", "Таїсія", "Тамара", "Тетяна", "Устина", "Фаїна", "Февронія", "Федора", "Феодосія", "Харитина", "Христина", "Христя", "Юліанна", "Юлія", "Юстина", "Юхима", "Юхимія", "Яна", "Ярина", "Ярослава" ]; return choice(data, this.rnd); } /// string nameMaleLastName() { auto data = [ "Андрухович", "Бабух", "Балабан", "Балабух", "Балакун", "Балицький", "Бамбула", "Бандера", "Барановський", "Бачей", "Башук", "Бердник", "Білич", "Бондаренко", "Борецький", "Боровський", "Борочко", "Боярчук", "Брицький", "Бурмило", "Бутько", "Василин", "Василишин", "Васильківський", "Вергун", "Вередун", "Верещук", "Витребенько", "Вітряк", "Волощук", "Гайдук", "Гайовий", "Гайчук", "Галаєнко", "Галатей", "Галаціон", "Гаман", "Гамула", "Ганич", "Гарай", "Гарун", "Гладківський", "Гладух", "Глинський", "Гнатишин", "Гойко", "Головець", "Горбач", "Гордійчук", "Горовий", "Городоцький", "Гречко", "Григоришин", "Гриневецький", "Гриневський", "Гришко", "Громико", "Данилишин", "Данилко", "Демків", "Демчишин", "Дзюб’як", "Дзюба", "Дідух", "Дмитришин", "Дмитрук", "Довгалевський", "Дурдинець", "Євенко", "Євпак", "Ємець", "Єрмак", "Забіла", "Зварич", "Зінкевич", "Зленко", "Іванишин", "Іванів", "Іванців", "Калач", "Кандиба", "Карпух", "Каськів", "Кивач", "Коваленко", "Ковальський", "Коломієць", "Коман", "Компанієць", "Кононець", "Кордун", "Корецький", "Корнїйчук", "Коров’як", "Коцюбинський", "Кулинич", "Кульчицький", "Лагойда", "Лазірко", "Лановий", "Латаний", "Латанський", "Лахман", "Левадовський", "Ликович", "Линдик", "Ліхно", "Лобачевський", "Ломовий", "Луговий", "Луцький", "Луцьків", "Лученко", "Лучко", "Лютий", "Лящук", "Магера", "Мазайло", "Мазило", "Мазун", "Майборода", "Майстренко", "Маковецький", "Малкович", "Мамій", "Маринич", "Марієвський", "Марків", "Махно", "Миклашевський", "Миклухо", "Милославський", "Михайлюк", "Міняйло", "Могилевський", "Москаль", "Москалюк", "Мотрієнко", "Негода", "Ногачевський", "Опенько", "Осадко", "Павленко", "Павлишин", "Павлів", "Пагутяк", "Паламарчук", "Палій", "Паращук", "Пасічник", "Пендик", "Петик", "Петлюра", "Петренко", "Петрин", "Петришин", "Петрів", "Плаксій", "Погиба", "Поліщук", "Пономарів", "Поривай", "Поривайло", "Потебенько", "Потоцький", "Пригода", "Приймак", "Притула", "Прядун", "Розпутній", "Романишин", "Романів", "Ромей", "Роменець", "Ромочко", "Савицький", "Саєнко", "Свидригайло", "Семеночко", "Семещук", "Сердюк", "Силецький", "Сідлецький", "Сідляк", "Сірко", "Скиба", "Скоропадський", "Слободян", "Сосюра", "Сплюх", "Спотикач", "Стахів", "Степанець", "Стецьків", "Стигайло", "Сторожук", "Сторчак", "Стоян", "Сучак", "Сушко", "Тарасюк", "Тиндарей", "Ткаченко", "Третяк", "Троян", "Трублаєвський", "Трясило", "Трясун", "Уманець", "Унич", "Усич", "Федоришин", "Хитрово", "Цимбалістий", "Цушко", "Червоній", "Шамрило", "Шевченко", "Шестак", "Шиндарей", "Шиян", "Шкараба", "Шудрик", "Шумило", "Шупик", "Шухевич", "Щербак", "Юрчишин", "Юхно", "Ющик", "Ющук", "Яворівський", "Яловий", "Ялюк", "Янюк", "Ярмак", "Яцишин", "Яцьків", "Ящук" ]; return choice(data, this.rnd); } /// string nameFemaleLastName() { auto data = [ "Андрухович", "Бабух", "Балабан", "Балабуха", "Балакун", "Балицька", "Бамбула", "Бандера", "Барановська", "Бачей", "Башук", "Бердник", "Білич", "Бондаренко", "Борецька", "Боровська", "Борочко", "Боярчук", "Брицька", "Бурмило", "Бутько", "Василишина", "Васильківська", "Вергун", "Вередун", "Верещук", "Витребенько", "Вітряк", "Волощук", "Гайдук", "Гайова", "Гайчук", "Галаєнко", "Галатей", "Галаціон", "Гаман", "Гамула", "Ганич", "Гарай", "Гарун", "Гладківська", "Гладух", "Глинська", "Гнатишина", "Гойко", "Головець", "Горбач", "Гордійчук", "Горова", "Городоцька", "Гречко", "Григоришина", "Гриневецька", "Гриневська", "Гришко", "Громико", "Данилишина", "Данилко", "Демків", "Демчишина", "Дзюб’як", "Дзюба", "Дідух", "Дмитришина", "Дмитрук", "Довгалевська", "Дурдинець", "Євенко", "Євпак", "Ємець", "Єрмак", "Забіла", "Зварич", "Зінкевич", "Зленко", "Іванишина", "Калач", "Кандиба", "Карпух", "Кивач", "Коваленко", "Ковальська", "Коломієць", "Коман", "Компанієць", "Кононець", "Кордун", "Корецька", "Корнїйчук", "Коров’як", "Коцюбинська", "Кулинич", "Кульчицька", "Лагойда", "Лазірко", "Ланова", "Латан", "Латанська", "Лахман", "Левадовська", "Ликович", "Линдик", "Ліхно", "Лобачевська", "Ломова", "Лугова", "Луцька", "Луцьків", "Лученко", "Лучко", "Люта", "Лящук", "Магера", "Мазайло", "Мазило", "Мазун", "Майборода", "Майстренко", "Маковецька", "Малкович", "Мамій", "Маринич", "Марієвська", "Марків", "Махно", "Миклашевська", "Миклухо", "Милославська", "Михайлюк", "Міняйло", "Могилевська", "Москаль", "Москалюк", "Мотрієнко", "Негода", "Ногачевська", "Опенько", "Осадко", "Павленко", "Павлишина", "Павлів", "Пагутяк", "Паламарчук", "Палій", "Паращук", "Пасічник", "Пендик", "Петик", "Петлюра", "Петренко", "Петрина", "Петришина", "Петрів", "Плаксій", "Погиба", "Поліщук", "Пономарів", "Поривай", "Поривайло", "Потебенько", "Потоцька", "Пригода", "Приймак", "Притула", "Прядун", "Розпутня", "Романишина", "Ромей", "Роменець", "Ромочко", "Савицька", "Саєнко", "Свидригайло", "Семеночко", "Семещук", "Сердюк", "Силецька", "Сідлецька", "Сідляк", "Сірко", "Скиба", "Скоропадська", "Слободян", "Сосюра", "Сплюха", "Спотикач", "Степанець", "Стигайло", "Сторожук", "Сторчак", "Стоян", "Сучак", "Сушко", "Тарасюк", "Тиндарей", "Ткаченко", "Третяк", "Троян", "Трублаєвська", "Трясило", "Трясун", "Уманець", "Унич", "Усич", "Федоришина", "Цушко", "Червоній", "Шамрило", "Шевченко", "Шестак", "Шиндарей", "Шиян", "Шкараба", "Шудрик", "Шумило", "Шупик", "Шухевич", "Щербак", "Юрчишина", "Юхно", "Ющик", "Ющук", "Яворівська", "Ялова", "Ялюк", "Янюк", "Ярмак", "Яцишина", "Яцьків", "Ящук" ]; return choice(data, this.rnd); } /// override string namePrefix() { auto data = [ "Пан", "Пані'" ]; return choice(data, this.rnd); } }
D
// Written in the D programming language module std.asserterror; import std.c.stdio; import std.c.stdlib; import std.contracts; class AssertError : Error { uint linnum; char[] filename; this(char[] filename, uint linnum) { this(filename, linnum, null); } this(char[] filename, uint linnum, char[] msg) { this.linnum = linnum; this.filename = filename; char* buffer; size_t len; int count; /* This code is careful to not use gc allocated memory, * as that may be the source of the problem. * Instead, stick with C functions. */ len = 23 + filename.length + uint.sizeof * 3 + msg.length + 1; buffer = cast(char*)std.c.stdlib.malloc(len); if (buffer is null) super("AssertError no memory"); else { version (Win32) alias _snprintf snprintf; count = snprintf(buffer, len, "AssertError Failure %.*s(%u) %.*s", filename, linnum, msg); if (count >= len || count == -1) { super("AssertError internal failure"); std.c.stdlib.free(buffer); } else { // casting is fine because buffer is unaliased auto s = buffer[0 .. count]; super(assumeUnique(s)); } } } ~this() { if (msg.ptr && msg[12] == 'F') // if it was allocated with malloc() { std.c.stdlib.free(cast(char*)msg.ptr); msg = null; } } } /******************************************** * Called by the compiler generated module assert function. * Builds an AssertError exception and throws it. */ extern (C) static void _d_assert(char[] filename, uint line) { //printf("_d_assert(%s, %d)\n", cast(char *)filename, line); AssertError a = new AssertError(filename, line); //printf("assertion %p created\n", a); throw a; } extern (C) static void _d_assert_msg(char[] msg, char[] filename, uint line) { //printf("_d_assert_msg(%s, %d)\n", cast(char *)filename, line); AssertError a = new AssertError(filename, line, msg); //printf("assertion %p created\n", a); throw a; }
D
/* THIS FILE GENERATED BY bcd.gen */ module bcd.freetds.sybdb; const int FALSE = 0; const int TRUE = 1; const int DBSAVE = 1; const int DBNOSAVE = 0; const int DBNOERR = -1; const int INT_EXIT = 0; const int INT_CONTINUE = 1; const int INT_CANCEL = 2; const int INT_TIMEOUT = 3; const int DBMAXNUMLEN = 33; const int DBMAXNAME = 30; const int DBVERSION_UNKNOWN = 0; const int DBVERSION_46 = 1; const int DBVERSION_100 = 2; const int DBVERSION_42 = 3; const int DBVERSION_70 = 4; const int DBVERSION_80 = 5; const int DBTDS_UNKNOWN = 0; const int DBTDS_2_0 = 1; const int DBTDS_3_4 = 2; const int DBTDS_4_0 = 3; const int DBTDS_4_2 = 4; const int DBTDS_4_6 = 5; const int DBTDS_4_9_5 = 6; const int DBTDS_5_0 = 7; const int DBTDS_7_0 = 8; const int DBTDS_8_0 = 9; const int DBTXPLEN = 16; const int BCPMAXERRS = 1; const int BCPFIRST = 2; const int BCPLAST = 3; const int BCPBATCH = 4; const int BCPKEEPIDENTITY = 8; const int BCPLABELED = 5; const int BCPHINTS = 6; const int DBCMDNONE = 0; const int DBCMDPEND = 1; const int DBCMDSENT = 2; const double SYBAOPSUMU = 0x4e; const int SYBAOPAVGU = 0x50; const int SYBAOPMIN = 0x51; const int SYBAOPMAX = 0x52; const int SYBAOPCNT_BIG = 0x09; const int SYBAOPSTDEV = 0x30; const int SYBAOPSTDEVP = 0x31; const int SYBAOPVAR = 0x32; const int SYBAOPVARP = 0x33; const int SYBAOPCHECKSUM_AGG = 0x72; const int DBPARSEONLY = 0; const int DBESTIMATE = 1; const int DBSHOWPLAN = 2; const int DBNOEXEC = 3; const int DBARITHIGNORE = 4; const int DBNOCOUNT = 5; const int DBARITHABORT = 6; const int DBTEXTLIMIT = 7; const int DBBROWSE = 8; const int DBOFFSET = 9; const int DBSTAT = 10; const int DBERRLVL = 11; const int DBCONFIRM = 12; const int DBSTORPROCID = 13; const int DBBUFFER = 14; const int DBNOAUTOFREE = 15; const int DBROWCOUNT = 16; const int DBTEXTSIZE = 17; const int DBNATLANG = 18; const int DBDATEFORMAT = 19; const int DBPRPAD = 20; const int DBPRCOLSEP = 21; const int DBPRLINELEN = 22; const int DBPRLINESEP = 23; const int DBLFCONVERT = 24; const int DBDATEFIRST = 25; const int DBCHAINXACTS = 26; const int DBFIPSFLAG = 27; const int DBISOLATION = 28; const int DBAUTH = 29; const int DBIDENTITY = 30; const int DBNOIDCOL = 31; const int DBDATESHORT = 32; const int DBCLIENTCURSORS = 33; const int DBSETTIME = 34; const int DBQUOTEDIDENT = 35; const int DBNUMOPTIONS = 36; const int DBPADOFF = 0; const int DBPADON = 1; const int OFF = 0; const int ON = 1; const int NOSUCHOPTION = 2; const int MAXOPTTEXT = 32; const int DBRESULT = 1; const int DBNOTIFICATION = 2; const int DBTIMEOUT = 3; const int DBINTERRUPT = 4; const int DBTXTSLEN = 8; const int CHARBIND = 0; const int STRINGBIND = 1; const int NTBSTRINGBIND = 2; const int VARYCHARBIND = 3; const int TINYBIND = 6; const int SMALLBIND = 7; const int INTBIND = 8; const int FLT8BIND = 9; const int REALBIND = 10; const int DATETIMEBIND = 11; const int SMALLDATETIMEBIND = 12; const int MONEYBIND = 13; const int SMALLMONEYBIND = 14; const int BINARYBIND = 15; const int BITBIND = 16; const int NUMERICBIND = 17; const int DECIMALBIND = 18; const int DBRPCRETURN = 1; const int DBRPCDEFAULT = 2; const int REG_ROW = -1; const int MORE_ROWS = -1; const int NO_MORE_ROWS = -2; const int BUF_FULL = -3; const int NO_MORE_RESULTS = 2; const int SUCCEED = 1; const int FAIL = 0; const int DB_IN = 1; const int DB_OUT = 2; const int DB_QUERYOUT = 3; const int DBSINGLE = 0; const int DBDOUBLE = 1; const int DBBOTH = 2; const int SYBEICONVIU = 2400; const int SYBEICONVAVAIL = 2401; const int SYBEICONVO = 2402; const int SYBEICONVI = 2403; const int SYBEICONV2BIG = 2404; const int SYBESYNC = 20001; const int SYBEFCON = 20002; const int SYBETIME = 20003; const int SYBEREAD = 20004; const int SYBEBUFL = 20005; const int SYBEWRIT = 20006; const int SYBEVMS = 20007; const int SYBESOCK = 20008; const int SYBECONN = 20009; const int SYBEMEM = 20010; const int SYBEDBPS = 20011; const int SYBEINTF = 20012; const int SYBEUHST = 20013; const int SYBEPWD = 20014; const int SYBEOPIN = 20015; const int SYBEINLN = 20016; const int SYBESEOF = 20017; const int SYBESMSG = 20018; const int SYBERPND = 20019; const int SYBEBTOK = 20020; const int SYBEITIM = 20021; const int SYBEOOB = 20022; const int SYBEBTYP = 20023; const int SYBEBNCR = 20024; const int SYBEIICL = 20025; const int SYBECNOR = 20026; const int SYBENPRM = 20027; const int SYBEUVDT = 20028; const int SYBEUFDT = 20029; const int SYBEWAID = 20030; const int SYBECDNS = 20031; const int SYBEABNC = 20032; const int SYBEABMT = 20033; const int SYBEABNP = 20034; const int SYBEAAMT = 20035; const int SYBENXID = 20036; const int SYBERXID = 20037; const int SYBEICN = 20038; const int SYBENMOB = 20039; const int SYBEAPUT = 20040; const int SYBEASNL = 20041; const int SYBENTLL = 20042; const int SYBEASUL = 20043; const int SYBERDNR = 20044; const int SYBENSIP = 20045; const int SYBEABNV = 20046; const int SYBEDDNE = 20047; const int SYBECUFL = 20048; const int SYBECOFL = 20049; const int SYBECSYN = 20050; const int SYBECLPR = 20051; const int SYBECNOV = 20052; const int SYBERDCN = 20053; const int SYBESFOV = 20054; const int SYBEUNT = 20055; const int SYBECLOS = 20056; const int SYBEUAVE = 20057; const int SYBEUSCT = 20058; const int SYBEEQVA = 20059; const int SYBEUDTY = 20060; const int SYBETSIT = 20061; const int SYBEAUTN = 20062; const int SYBEBDIO = 20063; const int SYBEBCNT = 20064; const int SYBEIFNB = 20065; const int SYBETTS = 20066; const int SYBEKBCO = 20067; const int SYBEBBCI = 20068; const int SYBEKBCI = 20069; const int SYBEBCRE = 20070; const int SYBETPTN = 20071; const int SYBEBCWE = 20072; const int SYBEBCNN = 20073; const int SYBEBCOR = 20074; const int SYBEBCIS = 20075; const int SYBEBCPI = 20076; const int SYBEBCPN = 20077; const int SYBEBCPB = 20078; const int SYBEVDPT = 20079; const int SYBEBIVI = 20080; const int SYBEBCBC = 20081; const int SYBEBCFO = 20082; const int SYBEBCVH = 20083; const int SYBEBCUO = 20084; const int SYBEBCUC = 20085; const int SYBEBUOE = 20086; const int SYBEBUCE = 20087; const int SYBEBWEF = 20088; const int SYBEASTF = 20089; const int SYBEUACS = 20090; const int SYBEASEC = 20091; const int SYBETMTD = 20092; const int SYBENTTN = 20093; const int SYBEDNTI = 20094; const int SYBEBTMT = 20095; const int SYBEORPF = 20096; const int SYBEUVBF = 20097; const int SYBEBUOF = 20098; const int SYBEBUCF = 20099; const int SYBEBRFF = 20100; const int SYBEBWFF = 20101; const int SYBEBUDF = 20102; const int SYBEBIHC = 20103; const int SYBEBEOF = 20104; const int SYBEBCNL = 20105; const int SYBEBCSI = 20106; const int SYBEBCIT = 20107; const int SYBEBCSA = 20108; const int SYBENULL = 20109; const int SYBEUNAM = 20110; const int SYBEBCRO = 20111; const int SYBEMPLL = 20112; const int SYBERPIL = 20113; const int SYBERPUL = 20114; const int SYBEUNOP = 20115; const int SYBECRNC = 20116; const int SYBERTCC = 20117; const int SYBERTSC = 20118; const int SYBEUCRR = 20119; const int SYBERPNA = 20120; const int SYBEOPNA = 20121; const int SYBEFGTL = 20122; const int SYBECWLL = 20123; const int SYBEUFDS = 20124; const int SYBEUCPT = 20125; const int SYBETMCF = 20126; const int SYBEAICF = 20127; const int SYBEADST = 20128; const int SYBEALTT = 20129; const int SYBEAPCT = 20130; const int SYBEXOCI = 20131; const int SYBEFSHD = 20132; const int SYBEAOLF = 20133; const int SYBEARDI = 20134; const int SYBEURCI = 20135; const int SYBEARDL = 20136; const int SYBEURMI = 20137; const int SYBEUREM = 20138; const int SYBEURES = 20139; const int SYBEUREI = 20140; const int SYBEOREN = 20141; const int SYBEISOI = 20142; const int SYBEIDCL = 20143; const int SYBEIMCL = 20144; const int SYBEIFCL = 20145; const int SYBEUTDS = 20146; const int SYBEBUFF = 20147; const int SYBEACNV = 20148; const int SYBEDPOR = 20149; const int SYBENDC = 20150; const int SYBEMVOR = 20151; const int SYBEDVOR = 20152; const int SYBENBVP = 20153; const int SYBESPID = 20154; const int SYBENDTP = 20155; const int SYBEXTN = 20156; const int SYBEXTDN = 20157; const int SYBEXTSN = 20158; const int SYBENUM = 20159; const int SYBETYPE = 20160; const int SYBEGENOS = 20161; const int SYBEPAGE = 20162; const int SYBEOPTNO = 20163; const int SYBEETD = 20164; const int SYBERTYPE = 20165; const int SYBERFILE = 20166; const int SYBEFMODE = 20167; const int SYBESLCT = 20168; const int SYBEZTXT = 20169; const int SYBENTST = 20170; const int SYBEOSSL = 20171; const int SYBEESSL = 20172; const int SYBENLNL = 20173; const int SYBENHAN = 20174; const int SYBENBUF = 20175; const int SYBENULP = 20176; const int SYBENOTI = 20177; const int SYBEEVOP = 20178; const int SYBENEHA = 20179; const int SYBETRAN = 20180; const int SYBEEVST = 20181; const int SYBEEINI = 20182; const int SYBEECRT = 20183; const int SYBEECAN = 20184; const int SYBEEUNR = 20185; const int SYBERPCS = 20186; const int SYBETPAR = 20187; const int SYBETEXS = 20188; const int SYBETRAC = 20189; const int SYBETRAS = 20190; const int SYBEPRTF = 20191; const int SYBETRSN = 20192; const int SYBEBPKS = 20193; const int SYBEIPV = 20194; const int SYBEMOV = 20195; const int SYBEDIVZ = 20196; const int SYBEASTL = 20197; const int SYBESEFA = 20198; const int SYBEPOLL = 20199; const int SYBENOEV = 20200; const int SYBEBADPK = 20201; const int SYBESECURE = 20202; const int SYBECAP = 20203; const int SYBEFUNC = 20204; const int SYBERESP = 20205; const int SYBEIVERS = 20206; const int SYBEONCE = 20207; const int SYBERPNULL = 20208; const int SYBERPTXTIM = 20209; const int SYBENEG = 20210; const int SYBELBLEN = 20211; const int SYBEUMSG = 20212; const int SYBECAPTYP = 20213; const int SYBEBNUM = 20214; const int SYBEBBL = 20215; const int SYBEBPREC = 20216; const int SYBEBSCALE = 20217; const int SYBECDOMAIN = 20218; const int SYBECINTERNAL = 20219; const int SYBEBTYPSRV = 20220; const int SYBEBCSET = 20221; const int SYBEFENC = 20222; const int SYBEFRES = 20223; const int SYBEISRVPREC = 20224; const int SYBEISRVSCL = 20225; const int SYBEINUMCL = 20226; const int SYBEIDECCL = 20227; const int SYBEBCMTXT = 20228; const int SYBEBCPREC = 20229; const int SYBEBCBNPR = 20230; const int SYBEBCBNTYP = 20231; const int SYBEBCSNTYP = 20232; const int SYBEBCPCTYP = 20233; const int SYBEBCVLEN = 20234; const int SYBEBCHLEN = 20235; const int SYBEBCBPREF = 20236; const int SYBEBCPREF = 20237; const int SYBEBCITBNM = 20238; const int SYBEBCITBLEN = 20239; const int SYBEBCSNDROW = 20240; const int SYBEBPROCOL = 20241; const int SYBEBPRODEF = 20242; const int SYBEBPRONUMDEF = 20243; const int SYBEBPRODEFID = 20244; const int SYBEBPRONODEF = 20245; const int SYBEBPRODEFTYP = 20246; const int SYBEBPROEXTDEF = 20247; const int SYBEBPROEXTRES = 20248; const int SYBEBPROBADDEF = 20249; const int SYBEBPROBADTYP = 20250; const int SYBEBPROBADLEN = 20251; const int SYBEBPROBADPREC = 20252; const int SYBEBPROBADSCL = 20253; const int SYBEBADTYPE = 20254; const int SYBECRSNORES = 20255; const int SYBECRSNOIND = 20256; const int SYBECRSVIEW = 20257; const int SYBECRSVIIND = 20258; const int SYBECRSORD = 20259; const int SYBECRSBUFR = 20260; const int SYBECRSNOFREE = 20261; const int SYBECRSDIS = 20262; const int SYBECRSAGR = 20263; const int SYBECRSFRAND = 20264; const int SYBECRSFLAST = 20265; const int SYBECRSBROL = 20266; const int SYBECRSFROWN = 20267; const int SYBECRSBSKEY = 20268; const int SYBECRSRO = 20269; const int SYBECRSNOCOUNT = 20270; const int SYBECRSTAB = 20271; const int SYBECRSUPDNB = 20272; const int SYBECRSNOWHERE = 20273; const int SYBECRSSET = 20274; const int SYBECRSUPDTAB = 20275; const int SYBECRSNOUPD = 20276; const int SYBECRSINV = 20277; const int SYBECRSNOKEYS = 20278; const int SYBECRSNOBIND = 20279; const int SYBECRSFTYPE = 20280; const int SYBECRSINVALID = 20281; const int SYBECRSMROWS = 20282; const int SYBECRSNROWS = 20283; const int SYBECRSNOLEN = 20284; const int SYBECRSNOPTCC = 20285; const int SYBECRSNORDER = 20286; const int SYBECRSNOTABLE = 20287; const int SYBECRSNUNIQUE = 20288; const int SYBECRSVAR = 20289; const int SYBENOVALUE = 20290; const int SYBEVOIDRET = 20291; const int SYBECLOSEIN = 20292; const int SYBEBOOL = 20293; const int SYBEBCPOPT = 20294; const int SYBEERRLABEL = 20295; const int SYBEATTNACK = 20296; const int SYBEBBFL = 20297; const int SYBEDCL = 20298; const int SYBECS = 20299; const int SYBEBULKINSERT = 20599; const int DBSETHOST = 1; const int DBSETUSER = 2; const int DBSETPWD = 3; const int DBSETHID = 4; const int DBSETAPP = 5; const int DBSETBCP = 6; const int DBSETNATLANG = 7; const int DBSETNOSHORT = 8; const int DBSETHIER = 9; const int DBSETCHARSET = 10; const int DBSETPACKET = 11; const int DBSETENCRYPT = 12; const int DBSETLABELED = 13; import bcd.freetds.tds_sysdep_public; alias void DBPROCESS; alias int function(void *, int, int, int, char *, char *, char *, int) _BCD_func__460; alias _BCD_func__460 MHANDLEFUNC; alias int function(void *, int, int, int, char *, char *) _BCD_func__461; alias _BCD_func__461 EHANDLEFUNC; alias dbdaterec DBDATEREC; alias int DBINT; alias dboption DBOPTION; alias dbstring DBSTRING; alias ushort DBUSMALLINT; alias char DBBOOL; alias char DBCHAR; alias short SHORT; alias char BYTE; alias int BOOL; enum CI_TYPE { CI_REGULAR=1, CI_ALTERNATE=2, CI_CURSOR=3, } enum __7 { MAXCOLNAMELEN=512, } const int MAXCOLNAMELEN = 512; alias dbtypeinfo DBTYPEINFO; alias void LOGINREC; alias DBNUMERIC DBDECIMAL; alias double DBFLT8; alias float DBREAL; alias char DBBINARY; alias short DBSMALLINT; alias char DBTINYINT; alias char DBBIT; enum __0 { SYBCHAR=47, SYBVARCHAR=39, SYBINTN=38, SYBINT1=48, SYBINT2=52, SYBINT4=56, SYBINT8=127, SYBFLT8=62, SYBDATETIME=61, SYBBIT=50, SYBTEXT=35, SYBIMAGE=34, SYBMONEY4=122, SYBMONEY=60, SYBDATETIME4=58, SYBREAL=59, SYBBINARY=45, SYBVARBINARY=37, SYBNUMERIC=108, SYBDECIMAL=106, SYBFLTN=109, SYBMONEYN=110, SYBDATETIMN=111, } const int SYBCHAR = 47; const int SYBVARCHAR = 39; const int SYBINTN = 38; const int SYBINT1 = 48; const int SYBINT2 = 52; const int SYBINT4 = 56; const int SYBINT8 = 127; const int SYBFLT8 = 62; const int SYBDATETIME = 61; const int SYBBIT = 50; const int SYBTEXT = 35; const int SYBIMAGE = 34; const int SYBMONEY4 = 122; const int SYBMONEY = 60; const int SYBDATETIME4 = 58; const int SYBREAL = 59; const int SYBBINARY = 45; const int SYBVARBINARY = 37; const int SYBNUMERIC = 108; const int SYBDECIMAL = 106; const int SYBFLTN = 109; const int SYBMONEYN = 110; const int SYBDATETIMN = 111; alias int STATUS; alias int function(void *) _BCD_func__530; alias _BCD_func__530 DB_DBHNDLINTR_FUNC; alias _BCD_func__530 DB_DBCHKINTR_FUNC; alias int function() _BCD_func__533; alias void function(_BCD_func__533, void *) _BCD_func__531; alias _BCD_func__531 DB_DBIDLE_FUNC; alias _BCD_func__533 DBWAITFUNC; alias _BCD_func__533 function(void *) _BCD_func__532; alias _BCD_func__532 DB_DBBUSY_FUNC; alias ushort USHORT; alias void * DBVOIDPTR; alias void DBLOGINFO; alias void DBSORTORDER; alias void DBXLATE; alias void DBCURSOR; alias int RETCODE; extern (C) int stat_xact(void * connect, int commid); extern (C) int start_xact(void * connect, char * application_name, char * xact_name, int site_count); extern (C) int scan_xact(void * connect, int commid); extern (C) void * open_commit(void * login, char * servername); extern (C) int commit_xact(void * connect, int commid); extern (C) void close_commit(void * connect); extern (C) int abort_xact(void * connect, int commid); extern (C) int remove_xact(void * connect, int commid, int n); extern (C) void build_xact_string(char * xact_name, char * service_name, int commid, char * result); extern (C) int bcp_writefmt(void * dbproc, char * filename); extern (C) int bcp_sendrow(void * dbproc); extern (C) int bcp_readfmt(void * dbproc, char * filename); extern (C) int bcp_options(void * dbproc, int option, char * value, int valuelen); extern (C) int bcp_moretext(void * dbproc, int size, char * text); extern (C) char bcp_getl(void * login); extern (C) int bcp_exec(void * dbproc, int * rows_copied); extern (C) int bcp_control(void * dbproc, int field, int value); extern (C) int bcp_colptr(void * dbproc, char * colptr, int table_column); extern (C) int bcp_colfmt_ps(void * dbproc, int host_column, int host_type, int host_prefixlen, int host_collen, char * host_term, int host_termlen, int colnum, dbtypeinfo * typeinfo); extern (C) int bcp_colfmt(void * dbproc, int host_column, int host_type, int host_prefixlen, int host_collen, char * host_term, int host_termlen, int colnum); extern (C) int bcp_columns(void * dbproc, int host_colcount); extern (C) int bcp_collen(void * dbproc, int varlen, int table_column); extern (C) int bcp_bind(void * dbproc, char * varaddr, int prefixlen, int varlen, char * terminator, int termlen, int type, int table_column); extern (C) int bcp_batch(void * dbproc); extern (C) int bcp_done(void * dbproc); extern (C) int bcp_init(void * dbproc, char * tblname, char * hfile, char * errfile, int direction); extern (C) int dbsetlversion(void * login, char version_); extern (C) int dbsetllong(void * login, int value, int which); extern (C) int dbsetlshort(void * login, int value, int which); extern (C) int dbsetlbool(void * login, int value, int which); extern (C) int dbsetlname(void * login, char * value, int which); extern (C) int dbxlate(void * dbprocess, char * src, int srclen, char * dest, int destlen, void * xlt, int * srcbytes_used, char srcend, int status); extern (C) int dbwritetext(void * dbproc, char * objname, char * textptr, char textptrlen, char * timestamp, char log, int size, char * text); extern (C) int dbwritepage(void * dbprocess, char * p_dbname, int pageno, int size, char * buf); extern (C) char dbwillconvert(int srctype, int desttype); extern (C) char * dbversion(); extern (C) int dbuse(void * dbproc, char * name); extern (C) int dbtxtsput(void * dbprocess, char newtxts, int colnum); extern (C) char * dbtxtsnewval(void * dbprocess); extern (C) char * dbtxtimestamp(void * dbproc, int column); extern (C) char * dbtxptr(void * dbproc, int column); extern (C) int dbtsput(void * dbprocess, char * newts, int newtslen, int tabnum, char * tabname); extern (C) char * dbtsnewval(void * dbprocess); extern (C) int dbtsnewlen(void * dbprocess); extern (C) int dbtextsize(void * dbprocess); extern (C) int dbtds(void * dbprocess); extern (C) int dbvarylen(void * dbproc, int column); extern (C) char * dbtabsoruce(void * dbprocess, int colnum, int * tabnum); extern (C) char * dbtabname(void * dbprocess, int tabnum); extern (C) int dbtabcount(void * dbprocess); extern (C) char dbtabbrowse(void * dbprocess, int tabnum); extern (C) int dbstrsort(void * dbprocess, char * s1, int l1, char * s2, int l2, void * sort); extern (C) int dbstrlen(void * dbproc); extern (C) int dbstrcpy(void * dbproc, int start, int numbytes, char * dest); extern (C) int dbstrcmp(void * dbprocess, char * s1, int l1, char * s2, int l2, void * sort); extern (C) int dbstrbuild(void * dbproc, char * charbuf, int bufsize, char * text, char * formats, ...); extern (C) int dbsqlsend(void * dbproc); extern (C) int dbsqlok(void * dbproc); extern (C) int dbsqlexec(void * dbproc); extern (C) int dbsprline(void * dbproc, char * buffer, int buf_len, char line_char); extern (C) int dbsprhead(void * dbproc, char * buffer, int buf_len); extern (C) int dbspr1rowlen(void * dbproc); extern (C) int dbspr1row(void * dbproc, char * buffer, int buf_len); extern (C) int dbspid(void * dbproc); extern (C) int dbsetversion(int version_); extern (C) void dbsetuserdata(void * dbproc, char * ptr); extern (C) int dbsettime(int seconds); extern (C) int dbsetrow(void * dbprocess, int row); extern (C) int dbsetopt(void * dbproc, int option, char * char_param, int int_param); extern (C) int dbsetnull(void * dbprocess, int bindtype, int bindlen, char * bindval); extern (C) int dbsetmaxprocs(int maxprocs); extern (C) int dbsetlogintime(int seconds); extern (C) int dbsetloginfo(void * loginrec, void * loginfo); extern (C) void dbsetinterrupt(void * dbproc, _BCD_func__530 chkintr, _BCD_func__530 hndlintr); extern (C) void dbsetifile(char * filename); extern (C) void dbsetidle(void * dbprocess, _BCD_func__531 idlefunc); extern (C) int dbsetdeflang(char * language); extern (C) int dbsetdefcharset(char * charset); extern (C) void dbsetbusy(void * dbprocess, _BCD_func__532 busyfunc); extern (C) void dbsetavail(void * dbprocess); extern (C) char * dbservcharset(void * dbprocess); extern (C) int dbsendpassthru(void * dbprocess, void * bufp); alias int function(void *, void *) _BCD_func__534; extern (C) int * dbsechandle(int type, _BCD_func__534 handler); extern (C) int dbsafestr(void * dbproc, char * src, int srclen, char * dest, int destlen, int quotetype); extern (C) int dbrpwset(void * login, char * srvname, char * password, int pwlen); extern (C) void dbrpwclr(void * login); extern (C) int dbrpcsend(void * dbproc); extern (C) int dbrpcparam(void * dbproc, char * paramname, char status, int type, int maxlen, int datalen, char * value); extern (C) int dbrpcinit(void * dbproc, char * rpcname, short options); extern (C) int dbrowtype(void * dbprocess); extern (C) int dbrows(void * dbproc); extern (C) int dbrettype(void * dbproc, int retnum); extern (C) int dbretstatus(void * dbproc); extern (C) char * dbretname(void * dbproc, int retnum); extern (C) int dbretlen(void * dbproc, int retnum); extern (C) char * dbretdata(void * dbproc, int retnum); extern (C) int dbresults_r(void * dbproc, int recursive); extern (C) int dbresults(void * dbproc); extern (C) int dbregwatchlist(void * dbprocess); extern (C) int dbregwatch(void * dbprocess, char * procnm, short namelen, ushort options); extern (C) int dbregparam(void * dbproc, char * param_name, int type, int datalen, char * data); extern (C) int dbregnowatch(void * dbprocess, char * procnm, short namelen); extern (C) int dbreglist(void * dbproc); extern (C) int dbreginit(void * dbproc, char * procedure_name, short namelen); extern (C) int dbreghandle(void * dbprocess, char * procnm, short namelen, _BCD_func__534 handler); extern (C) int dbregexec(void * dbproc, ushort options); extern (C) int dbregdrop(void * dbprocess, char * procnm, short namelen); extern (C) int dbrecvpassthru(void * dbprocess, void * * bufp); extern (C) void dbrecftos(char * filename); extern (C) int dbreadtext(void * dbproc, void * buf, int bufsize); extern (C) int dbreadpage(void * dbprocess, char * p_dbname, int pageno, char * buf); extern (C) char DRBUF(void * dbprocess); extern (C) char * dbqual(void * dbprocess, int tabnum, char * tabname); extern (C) char * dbprtype(int token); extern (C) int dbprrow(void * dbproc); extern (C) void dbprhead(void * dbproc); extern (C) int dbpoll(void * dbproc, int milliseconds, void * * ready_dbproc, int * return_reason); extern (C) int dbordercol(void * dbprocess, int order); extern (C) void * dbopen(void * login, char * server); extern (C) void * tdsdbopen(void * login, char * server, int msdblib); extern (C) int dbnumrets(void * dbproc); extern (C) int DBNUMORDERS(void * dbprocess); extern (C) int dbnumcompute(void * dbprocess); extern (C) int dbnumcols(void * dbproc); extern (C) int dbnumalts(void * dbproc, int computeid); extern (C) int dbnullbind(void * dbproc, int column, int * indicator); extern (C) int dbnpdefine(void * dbprocess, char * procedure_name, short namelen); extern (C) int dbnpcreate(void * dbprocess); extern (C) int dbnextrow(void * dbproc); extern (C) char * dbname(void * dbproc); extern (C) _BCD_func__460 dbmsghandle(_BCD_func__460 handler); extern (C) int dbmoretext(void * dbproc, int size, char * text); extern (C) int dbmorecmds(void * dbproc); extern (C) char * dbmonthname(void * dbproc, char * language, int monthnum, char shortform); extern (C) int dbmnyzero(void * dbproc, DBMONEY * dest); extern (C) int dbmnysub(void * dbproc, DBMONEY * m1, DBMONEY * m2, DBMONEY * diff); extern (C) int dbmnyscale(void * dbproc, DBMONEY * dest, int multiplier, int addend); extern (C) int dbmnydigit(void * dbprocess, DBMONEY * m1, char * value, char * zero); extern (C) int dbmnymul(void * dbproc, DBMONEY * m1, DBMONEY * m2, DBMONEY * prod); extern (C) int dbmnyminus(void * dbproc, DBMONEY * src, DBMONEY * dest); extern (C) int dbmnymaxpos(void * dbproc, DBMONEY * dest); extern (C) int dbmnyndigit(void * dbproc, DBMONEY * mnyptr, char * value, char * zero); extern (C) int dbmnymaxneg(void * dbproc, DBMONEY * dest); extern (C) int dbmnyinit(void * dbproc, DBMONEY * mnyptr, int trim, char * negative); extern (C) int dbmnyinc(void * dbproc, DBMONEY * mnyptr); extern (C) int dbmnydown(void * dbproc, DBMONEY * mnyptr, int divisor, int * remainder); extern (C) int dbmnydivide(void * dbproc, DBMONEY * m1, DBMONEY * m2, DBMONEY * quotient); extern (C) int dbmnydec(void * dbproc, DBMONEY * mnyptr); extern (C) int dbmnycopy(void * dbproc, DBMONEY * src, DBMONEY * dest); extern (C) int dbmnycmp(void * dbproc, DBMONEY * m1, DBMONEY * m2); extern (C) int dbmnyadd(void * dbproc, DBMONEY * m1, DBMONEY * m2, DBMONEY * sum); extern (C) int dbmny4zero(void * dbproc, DBMONEY4 * dest); extern (C) int dbmny4sub(void * dbproc, DBMONEY4 * m1, DBMONEY4 * m2, DBMONEY4 * diff); extern (C) int dbmny4mul(void * dbproc, DBMONEY4 * m1, DBMONEY4 * m2, DBMONEY4 * prod); extern (C) int dbmny4minus(void * dbproc, DBMONEY4 * src, DBMONEY4 * dest); extern (C) int dbmny4divide(void * dbproc, DBMONEY4 * m1, DBMONEY4 * m2, DBMONEY4 * quotient); extern (C) int dbmny4copy(void * dbprocess, DBMONEY4 * m1, DBMONEY4 * m2); extern (C) int dbmny4cmp(void * dbproc, DBMONEY4 * m1, DBMONEY4 * m2); extern (C) int dbmny4add(void * dbproc, DBMONEY4 * m1, DBMONEY4 * m2, DBMONEY4 * sum); extern (C) void dbloginfree(void * login); extern (C) void * dblogin(); extern (C) void * dbloadsort(void * dbprocess); extern (C) int dbload_xlate(void * dbprocess, char * srv_charset, char * clt_name, void * * xlt_tosrv, void * * xlt_todisp); extern (C) int dblastrow(void * dbproc); extern (C) char dbisopt(void * dbproc, int option, char * param); extern (C) char dbisavail(void * dbprocess); extern (C) int dbiowdesc(void * dbproc); extern (C) int dbiordesc(void * dbproc); extern (C) int dbinit(); extern (C) char dbhasretstat(void * dbproc); extern (C) char * dbgetuserdata(void * dbproc); extern (C) int dbgetrow(void * dbproc, int row); extern (C) int dbgetpacket(void * dbproc); extern (C) int dbgetoff(void * dbprocess, ushort offtype, int startfrom); extern (C) char * dbgetnatlanf(void * dbprocess); extern (C) int dbgetmaxprocs(); extern (C) int dbgetlusername(void * login, char * name_buffer, int buffer_len); extern (C) int dbgetloginfo(void * dbprocess, void * * loginfo); extern (C) char * dbgetcharset(void * dbprocess); extern (C) char * dbgetchar(void * dbprocess, int n); extern (C) int dbfreesort(void * dbprocess, void * sortorder); extern (C) void dbfreequal(char * qualptr); extern (C) void dbfreebuf(void * dbproc); extern (C) int dbfree_xlate(void * dbprocess, void * xlt_tosrv, void * clt_todisp); extern (C) int dbfirstrow(void * dbproc); extern (C) int dbfcmd(void * dbproc, char * fmt, ...); extern (C) void dbexit(); extern (C) _BCD_func__461 dberrhandle(_BCD_func__461 handler); extern (C) char dbdead(void * dbproc); extern (C) char * dbdayname(void * dbprocess, char * language, int daynum); extern (C) int dbdatlen(void * dbproc, int column); extern (C) int dbdatezero(void * dbprocess, DBDATETIME * d1); extern (C) int dbdatepart(void * dbprocess, int datepart, DBDATETIME * datetime); extern (C) char * dateorder(void * dbprocess, char * language); extern (C) int dbdatename(void * dbprocess, char * buf, int date, DBDATETIME * datetime); extern (C) int dbdatecrack(void * dbproc, dbdaterec * di, DBDATETIME * dt); extern (C) int dbdatecmp(void * dbproc, DBDATETIME * d1, DBDATETIME * d2); extern (C) int dbdatechar(void * dbprocess, char * buf, int datepart, int value); extern (C) int dbdate4zero(void * dbprocess, DBDATETIME4 * d1); extern (C) int dbdate4cmp(void * dbprocess, DBDATETIME4 * d1, DBDATETIME4 * d2); extern (C) char * dbdata(void * dbproc, int column); extern (C) void * dbcursoropen(void * dbprocess, char * stmt, short scollopt, short concuropt, ushort nrows, int * pstatus); extern (C) int dbcursorinfo(void * hc, int * ncols, int * nrows); extern (C) int dbcursorfetch(void * hc, int fetchtype, int rownum); extern (C) int dbcursorcolinfo(void * hc, int column, char * colname, int * coltype, int * collen, int * usertype); extern (C) void dbcursorclose(void * hc); extern (C) int dbcursorbind(void * hc, int col, int vartype, int varlen, int * poutlen, char * pvaraddr, dbtypeinfo * typeinfo); extern (C) int dbcursor(void * hc, int optype, int bufno, char * table, char * values); extern (C) int dbcurrow(void * dbproc); extern (C) int dbcurcmd(void * dbproc); extern (C) int dbcount(void * dbproc); extern (C) int dbconvert_ps(void * dbprocess, int srctype, char * src, int srclen, int desttype, char * dest, int destlen, dbtypeinfo * typeinfo); extern (C) int dbconvert(void * dbproc, int srctype, char * src, int srclen, int desttype, char * dest, int destlen); extern (C) int dbcolutype(void * dbprocess, int column); extern (C) dbtypeinfo * dbcoltypeinfo(void * dbproc, int column); extern (C) int dbcoltype(void * dbproc, int column); extern (C) char * dbcolsource(void * dbproc, int colnum); extern (C) char * dbcolname(void * dbproc, int column); extern (C) int dbcollen(void * dbproc, int column); extern (C) int dbtablecolinfo(void * dbproc, int column, DBCOL * pdbcol); extern (C) int dbcolinfo(void * dbproc, int type, int column, int computeid, DBCOL * pdbcol); extern (C) char dbcolbrowse(void * dbprocess, int colnum); extern (C) int dbcmdrow(void * dbproc); extern (C) int dbcmd(void * dbproc, char * cmdstring); extern (C) int dbclropt(void * dbproc, int option, char * param); extern (C) void dbclrbuf(void * dbproc, int n); extern (C) void dbclose(void * dbproc); extern (C) char dbcharsetconv(void * dbprocess); extern (C) char * dbchange(void * dbprocess); extern (C) int dbcanquery(void * dbproc); extern (C) int dbcancel(void * dbproc); extern (C) char * dbbylist(void * dbproc, int computeid, int * size); extern (C) int dbbufsize(void * dbprocess); extern (C) int dbbind_ps(void * dbprocess, int column, int vartype, int varlen, char * varaddr, dbtypeinfo * typeinfo); extern (C) int dbbind(void * dbproc, int column, int vartype, int varlen, char * varaddr); extern (C) int dbanullbind(void * dbprocess, int computeid, int column, int * indicator); extern (C) int dbaltutype(void * dbproc, int computeid, int column); extern (C) int dbalttype(void * dbproc, int computeid, int column); extern (C) int dbaltop(void * dbproc, int computeid, int column); extern (C) int dbaltlen(void * dbproc, int computeid, int column); extern (C) int dbaltcolid(void * dbproc, int computeid, int column); extern (C) int dbaltbind_ps(void * dbprocess, int computeid, int column, int vartype, int varlen, char * varaddr, dbtypeinfo * typeinfo); extern (C) int dbaltbind(void * dbprocess, int computeid, int column, int vartype, int varlen, char * varaddr); extern (C) int dbadlen(void * dbproc, int computeid, int column); extern (C) char * dbadata(void * dbproc, int computeid, int column); extern (C) char db12hour(void * dbprocess, char * language); struct dbdaterec { int dateyear; int datemonth; int datedmonth; int datedyear; int datedweek; int datehour; int dateminute; int datesecond; int datemsecond; int datetzone; } struct dboption { char [32] opttext; dbstring * optparam; ushort optstatus; char optactive; dboption * optnext; } struct DBCOL { int SizeOfStruct; char [514] Name; char [514] ActualName; char [514] TableName; short Type; int UserType; int MaxLength; char Precision; char Scale; int VarLength; char Null; char CaseSensitive; char Updatable; int Identity; } struct dbstring { char * strtext; int strtotlen; dbstring * strnext; } struct dbtypeinfo { int precision; int scale; } struct DBDATETIME4 { ushort days; ushort minutes; } struct DBDATETIME { int dtdays; int dttime; } struct DBMONEY4 { int mny4; } struct DBMONEY { int mnyhigh; uint mnylow; } struct DBNUMERIC { char precision; char scale; char [33] array; } struct DBVARYCHAR { int len; char [256] str; } extern (C) void * [2] no_unused_sybdb_h_warn; extern (C) char [59] rcsid_sybdb_h;
D
module dig.traits; public import dig.traits.abstract_entity; public import dig.traits.identity; public import dig.traits.procedure; public import dig.traits.funktion; //public import foundation.traits.misc;
D
import std.stdio; import std.json; import std.array; import std.algorithm; import std.datetime; import std.string; import std.file; import std.path; import std.experimental.logger; enum ShapeRole { NOIO_SHAPE = 0, // this shape is not Input or Output shape IN_SHAPE = 1, // Input (argument to operation) OUT_SHAPE = 2 // Output (result from operation) }; void processShape(string name, JSONValue shape, File output, JSONValue shapes, ShapeRole shape_role) { void processString(JSONValue data) { if ( false && "enum" in data.object ) { output.writefln("enum %s_Type: string {_init_=\"\", %s};\n", name, data.object["enum"].array. map!(o => "%s=\"%s\"".format(o.str. replace(" ", "_"). replace("-", "_"). replace(":", "_"). replace("*", "_"). replace(".", "_"). replace("/", "_"). replace("(", "_"). replace(")", "_"). capitalize(), o.str)). join(", ") ); } else { output.writefln("alias %s_Type = string;\n", name); } } void processMap(JSONValue data) { auto o = data.object; auto key = o["key"].object["shape"].str; auto value = o["value"].object["shape"].str; output.writefln("// map %s", name); output.writefln("alias %s_Type = %s_Type[%s_Type];\n", name, value, key); } void processType(T)(JSONValue data) { output.writefln("alias %s_Type = %s;\n", name, T.stringof); } void processList(JSONValue data) { auto member = data.object["member"].object["shape"].str; output.writefln("alias %s_Type = %s_Type[];\n", name, member); } void processSysTime(JSONValue data) { output.writeln(); output.writefln("struct %s_Type {", name); output.writeln(" SysTime value;"); output.writeln(" string toString() {return value.toRFC822date;};"); output.writeln(" this(Element xml){"); output.writeln(" value = SysTime.fromISOExtString(xml.text);"); output.writeln(" }"); output.writeln("};"); } void processStructure(JSONValue data, ShapeRole role) { JSONValue[string] members = data.object["members"].object; string[string] member_types; foreach(k,v; members) { member_types[k] = v.object["shape"].str ~ "_Type"; } output.writefln("struct %s_Type {", name); auto required = "required" in data.object; if ( member_types.length ) { output.writefln(" alias Values = Variant;", member_types.values.join(", ")); output.writeln( " Values[string] dict;"); if ( role == ShapeRole.IN_SHAPE ) { output.writeln( " string serialize(string memberName) {"); output.writeln( " switch(memberName) {"); foreach(k,v; members) { v.object.remove("documentation"); output.writefln(" case \"%s\":", k); output.writefln(" if ( memberName in dict ) {"); output.writefln(" return to!string(*dict[memberName].peek!%s);", member_types[k]); output.writeln( " } else {"); output.writeln( " return null;"); output.writeln( " }"); } output.writeln( " default: errorf(\"No such member %s\", memberName); assert(0);"); output.writeln( " }"); output.writeln( " }"); } foreach(k,v; members) { output.writefln(" void opDispatch(string s)(%s v) if (s ==\"%s\") {", member_types[k], k); output.writefln(" dict[\"%s\"] = v;", k); output.writefln(" }"); output.writefln(" auto opDispatch(string s)() if (s == \"%s\") {", k); output.writefln(" if (\"%s\" !in dict ) return %s.init;", k, member_types[k]); output.writefln(" return dict[\"%s\"].get!(%s);", k, member_types[k]); output.writefln(" }"); } } data.object.remove("documentation"); output.writefln(" string descriptor = `%s`;", data.toJSON(true)); if ( role == ShapeRole.OUT_SHAPE || role == ShapeRole.NOIO_SHAPE ) { output.writefln(" this(Element xml) {"); output.writefln(" foreach(e; xml.elements) {\n" ~ " switch(e.tag.name) {"); foreach(member_name, member_data; data.object["members"].object) { string tag; string member_type = member_data.object["shape"].str; auto member_info = shapes.object[member_type].object; auto locationName = "locationName" in member_data; if ( locationName ) { tag = (*locationName).str; } else { tag = member_name; } if ( "deprecated" in member_data ) { continue; } if ( member_info["type"].str == "list" && "flattened" in member_info ) { output.writefln( ` case "%s":` ~ "\n" ~ ` if ("%s" in dict ) {` ~ "\n" ~ ` dict["%s"] ~= decodeFromXmlFlattenedArray!%s_Type(e);` ~ "\n" ~ ` } else {` ~ "\n" ~ ` dict["%s"] = [decodeFromXmlFlattenedArray!%s_Type(e)];` ~ "\n" ~ ` }` ~ "\n" ~ ` break;` , tag, member_name, member_name, member_type, member_name, member_type); } else { output.writefln( q{ case "%s": dict["%s"] = decodeFromXml!%s_Type(e);break;}, tag, member_name, member_type); } } output.writefln(" default: error(\"Unknown tag \", e.tag.name);"); output.writefln(" }"); output.writefln(" }"); output.writefln(" }"); } output.writeln("}"); output.writeln(); } string shapeType = shape.object["type"].str; switch(shapeType) { case "structure": processStructure(shape, shape_role); break; case "list": processList(shape); break; case "string": processString(shape); break; case "timestamp": processSysTime(shape); break; case "integer": processType!long(shape); break; case "long": processType!long(shape); break; case "blob": processType!(ubyte[])(shape); break; case "boolean": processType!bool(shape); break; case "float": processType!float(shape); break; case "double": processType!double(shape); break; case "map": processMap(shape); break; default: writeln("unknown type ", shapeType); } } void processOperation(string api_name, string name, JSONValue data, JSONValue shapes, File o, string protocol) { data.object.remove("documentation"); string outputType = "output" in data.object ? data.object["output"].object["shape"].str : null; string inputType = "input" in data.object ? data.object["input"].object["shape"].str : null; string payloadMemberName, outPayloadType, inPayloadType; bool outPayloadStreaming, inPayloadStreaming; if ( inputType ) { auto input_descriptor = shapes.object[inputType].object; auto have_payload = "payload" in input_descriptor; if ( have_payload ) { payloadMemberName = (*have_payload).str; auto payload_descriptor = input_descriptor["members"].object[payloadMemberName].object; if ( "streaming" in payload_descriptor ) { inPayloadStreaming = true; } auto payload_shape_name = "shape" in payload_descriptor; auto payload_shape = shapes.object[(*payload_shape_name).str].object; inPayloadType = payload_shape["type"].str; writefln("proto: %s, inpuType: %s, payloadType: %s, streaming: %s", protocol, inputType, inPayloadType, inPayloadStreaming); } } if ( outputType ) { // // shoud we return structure or blob or stream ? // auto output_descriptor = shapes.object[outputType].object; auto payload_member_name = "payload" in output_descriptor; if ( payload_member_name ) { // // Paylod is what we have to return to user // there is three types of payload // "blob" - can be "stream" or not // "string" // "structure" // payloadMemberName = (*payload_member_name).str; auto payload_descriptor = output_descriptor["members"].object[(*payload_member_name).str].object; if ( "streaming" in payload_descriptor ) { outPayloadStreaming = true; } auto payload_shape_name = "shape" in payload_descriptor; auto payload_shape = shapes.object[(*payload_shape_name).str].object; outPayloadType = payload_shape["type"].str; } } if ( inputType ) { if ( inPayloadType == "blob" ) { o.writefln("auto %s(T)(%s_config config, %s_Type input, T payload) {", name, api_name, inputType); } else { o.writefln("auto %s(%s_config config, %s_Type input) {", name, api_name, inputType); } } else { o.writefln("auto %s(%s_config config) {", name, api_name); } o.writefln(" string descriptor = `%s`;", data.toJSON(true).splitLines.map!(s => " " ~ s).join("\n")); o.writeln( " int retries;"); o.writeln( " start:"); if ( inputType ) { o.writefln(` auto sr = serializeRequest!%s_Type(input, fastParseJSON(descriptor).object);`, inputType); } else { o.writefln(` auto sr = serializeRequest(fastParseJSON(descriptor).object);`); } o.writeln(" string method = sr.method;"); o.writeln(" string requestUri = sr.requestUri;"); o.writeln(" string[string] headers = sr.headers;"); o.writeln(" string[] query = sr.query;"); //o.writeln(" ubyte[] payload = sr.payload;"); o.writeln(" bool outStreaming = ", outPayloadStreaming, ";"); o.writeln(q{ string queryString = query.sort.join("&"); Auth_Args args = {access: config.aws_access, secret: config.aws_secret, region: config.region, endpoint: config.endpoint, service: config.service, requestUri: requestUri, method: method, queryString: queryString}; }); // // handle payload attached to request // usecase s3:PutObject // we send payload as stream, from aything which can be // considered as ubyte[][] range // if ( inPayloadType == "blob" ) { o.writeln(q{ // we send some blob with request as payload args.payload = "UNSIGNED-PAYLOAD".representation; auto h = signV4(args); foreach(k,v; h) { headers[k] = v; } auto r = drivers.exec(args, headers, outStreaming, payload); }); } else if ( inPayloadType == "structure" ) { o.writeln(q{ // we send some structure with request as payload //args.payload = "UNSIGNED-PAYLOAD".representation; auto h = signV4(args); foreach(k,v; h) { headers[k] = v; } auto r = drivers.exec(args, headers, outStreaming, args.payload); }); } else { // there is no payload o.writeln(q{ auto h = signV4(args); foreach(k,v; h) { headers[k] = v; } auto r = drivers.exec(args, headers, outStreaming); }); } // payload processed // // handle errors // switch(protocol) { case "rest-xml": o.writeln(q{ if ( r.code != 200 ) { if ( r.code == 301 ) { import std.stdio; auto redirect = handleRedirect(r, config, descriptor); if ( redirect.ok && retries++ < 3) { config = redirect.config; goto start; } writeln(redirect); throw new APIException(r.code, "Cant't handle redirect"); } auto error_code = getXMLErrorCode(cast(string)r.responseBody.data); throw new APIException(r.code, error_code); } }); break; default: break; } // errors processed // // pass output to user // if ( outputType !is null ) { switch (protocol) { case "rest-xml": if ( outPayloadStreaming ) { o.writeln(" auto result = r.receiveAsRange();"); break; } switch(outPayloadType) { case "blob": o.writefln(" auto result = RESTXMLReplyBlob(r.responseBody.data);\n"); break; case "string": o.writefln(" auto result = RESTXMLReplyString(r.responseBody.data);\n"); break; default: o.writeln( " string rbody = cast(string)r.responseBody;"); o.writefln(" %s_Type result;", outputType); o.writeln( " if ( rbody && rbody.length ) {"); o.writefln(" auto xml = new Document(rbody);\n"); o.writefln(" result = RESTXMLReply!%s_Type(xml);\n", outputType); o.writefln(" } else {"); o.writefln(" result = %s_Type();", outputType); o.writefln(" }"); break; } break; case "ec2": o.writefln( " auto xml = new Document(cast(string)r.responseBody);\n" ~ " auto result = %s_Type(xml);\n", outputType); break; default: break; } o.writefln(" return result;"); } o.writefln("}\n"); } void generate(DirEntry api_file) { infof("Generate d file for %s", api_file.name); string api_json = cast(string)read(api_file.name); auto top = parseJSON(api_json); auto metadata = top.object["metadata"]; auto shapes = top.object["shapes"]; auto operations = top.object["operations"]; string api_name = dirName(api_file.name).split(dirSeparator)[$-1]; string output_path = dirName(api_file.name).split(dirSeparator)[0..$-1].join(dirSeparator); string output_file_name = "%s%s%s.d".format(output_path, dirSeparator, api_name); string prefix_file_name = dirName(api_file.name) ~ "%sprefix.d".format(dirSeparator); string prefix = cast(string)read(prefix_file_name); File output = File(output_file_name, "w"); output.rawWrite(prefix); string api_version = metadata.object["apiVersion"].str; string protocol = metadata.object["protocol"].str; output.writefln(q{immutable private string api_version = "%s";}.format(api_version)); output.writefln(q{immutable private string protocol = "%s";}.format(protocol)); output.writeln(); ShapeRole[string] shape_roles; foreach(op, data; operations.object) { ShapeRole role; auto i = "input" in data; auto o = "output" in data; if ( i ) { shape_roles[(*i).object["shape"].str] = ShapeRole.IN_SHAPE; } if ( o ) { shape_roles[(*o).object["shape"].str] = ShapeRole.OUT_SHAPE; } processOperation(api_name, op, data, shapes, output, protocol); } foreach(name, data; shapes.object) { auto shape_role = shape_roles.get(name, ShapeRole.NOIO_SHAPE); processShape(name, data, output, shapes, shape_role); } output.close(); } void main() { foreach (string api; dirEntries("apis", SpanMode.shallow).filter!(a => a.isDir)) { foreach(api_file; dirEntries(api, SpanMode.shallow).filter!(a => a.name.endsWith("json"))) { generate(api_file); } } }
D
module gui.option.language; import std.algorithm; import std.conv; import std.range; // takeOne static import basics.user; static import basics.globals; import file.filename; import file.io; import file.language; import file.log; import gui; import gui.option.base; import gui.picker; class LanguageOption : Option { private: Picker _picker; MutFilename _lastChosen; public: this(Geom g, string cap) { super(g, new Label(new Geom(mostButtonsXl + spaceGuiTextX, 0, g.xlg - mostButtonsXl + spaceGuiTextX, 20), cap)); auto cfg = PickerConfig!LanguageTiler(); cfg.all = new Geom(0, 0, mostButtonsXl, this.ylg); cfg.bread = new Geom(-9999, -9999, 10, 10); // hack: offscreen cfg.files = new Geom(cfg.all); cfg.ls = new AlphabeticalLs; _picker = new Picker(cfg); _picker.basedir = basics.globals.dirDataTransl; addChild(_picker); } override void loadValue() { _lastChosen = basics.user.fileLanguage; _picker.navigateToAndHighlightFile(_lastChosen, CenterOnHighlitFile.always); } override void saveValue() { if (_lastChosen !is null && _lastChosen != MutFilename(basics.user.fileLanguage) ) { basics.user.fileLanguage = _lastChosen; loadUserLanguageAndIfNotExistSetUserOptionToEnglish(); } } protected: override void calcSelf() { if (_picker.executeFile) { _lastChosen = _picker.executeFileFilename; _picker.highlightFile(_picker.executeFileID, CenterOnHighlitFile.onlyIfOffscreen); } } static class LanguageTiler : LevelOrReplayTiler { public: this(Geom g) { super(g); } protected: final override TextButton newFileButton(Filename fn, in int fileID) { assert (fn); auto ret = new TextButton(new Geom(0, 0, xlg, buttonYlg)); ret.text = fn.file; immutable key = Lang.mainNameOfLanguage.to!string; try { fillVectorFromFile(fn) .filter!(ioLine => ioLine.text1 == key) .takeOne.each!(ioLine => ret.text = ioLine.text2); } catch (Exception e) { logf("Error reading language file `%s':", fn.rootless); logf(" -> %s", e.msg); // We've already set a fallback caption for the button } return ret; } } }
D
a viral disease of cattle causing a mild skin disease affecting the udder
D
module klaodg; public import klaodg.vector; public import std.stdio; import derelict.util.loader; import gfm.logger, gfm.sdl2, gfm.opengl, gfm.math; ConsoleLogger console; SDL2 sdl2; SDLTTF sdl2ttf; SDLImage sdl2image; SDL2Window window; OpenGL gl_handle; private int width, height; private float ms_per_frame; float2 Window_Dim ( ) { return float2(width, height); } float MS_Per_Frame ( ) { return ms_per_frame; } void Initialize_Klaodg ( int _width, int _height, float _ms_per_frame, string _name ) { ms_per_frame = _ms_per_frame; width = _width; height = _height; console = new ConsoleLogger(); sdl2 = new SDL2(console, SharedLibVersion(2, 0, 0)); gl_handle = new OpenGL(console); sdl2.subSystemInit(SDL_INIT_VIDEO); sdl2.subSystemInit(SDL_INIT_EVENTS); sdl2image = new SDLImage(sdl2, IMG_INIT_PNG); sdl2ttf = new SDLTTF(sdl2); SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3); SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3); SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); window = new SDL2Window(sdl2, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, width, height, SDL_WINDOW_OPENGL); gl_handle.reload(); gl_handle.redirectDebugOutput(); glViewport(0, 0, width, height); glEnable(GL_BLEND); glEnable(GL_DEPTH_TEST); glDepthFunc(GL_LESS); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); window.setTitle(_name); //---- } private bool is_rendering = false; bool Render_State ( ) { return is_rendering; } void Start_Frame_Render ( ) { sdl2.processEvents(); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); is_rendering = true; } void End_Frame_Render ( ) { window.swapBuffers(); is_rendering = false; } void Clean ( ) { console.destroy; sdl2.destroy; sdl2image.destroy; window.destroy; gl_handle.destroy; }
D
module dmocks.call; public import dmocks.model; public import dmocks.dynamic; import dmocks.arguments; import dmocks.qualifiers; import std.array; /++ + This class represents a single method call on a mock object while in replay phase + All information about the call is stored here +/ class Call { MockId object; string name; string[] qualifiers; Dynamic[] arguments; override string toString() { string arguments = (arguments is null) ? "(<unknown>)" : arguments.formatArguments; return name ~ " "~ arguments ~ " " ~ qualifiers.join(" "); } } Call createCall(alias METHOD, ARGS...)(MockId object, string name, ARGS args) { auto ret = new Call; ret.object = object; ret.name = name; ret.qualifiers = qualifiers!METHOD; ret.arguments = arguments(args); return ret; }
D
/* * Public domain * machine/endian.h compatibility shim */ module libressl_d.compat.machine.endian; version (Windows) { enum LITTLE_ENDIAN = 1234; enum BIG_ENDIAN = 4321; enum PDP_ENDIAN = 3412; /* * Use GCC and Visual Studio compiler defines to determine endian. */ version (LittleEndian) { enum BYTE_ORDER = .LITTLE_ENDIAN; } else { enum BYTE_ORDER = .BIG_ENDIAN; } //#elif defined(__linux__) || defined(__midipix__) } else version (linux) { // #include <endian.h> //#elif defined(__sun) || defined(_AIX) || defined(__hpux) // public import core.sys.posix.arpa.nameser_compat; // public import libressl_d.compat.sys.types; //#elif defined(__sgi) // #include <standards.h> // public import core.sys.posix.sys.endian; } else { // public import core.sys.posix.machine.endian; } //#ifndef __STRICT_ALIGNMENT // #define __STRICT_ALIGNMENT // // #if defined(__i386) || defined(__i386__) || defined(__x86_64) || defined(__x86_64__) || defined(__s390__) || defined(__s390x__) || defined(__aarch64__) || ((defined(__arm__) || defined(__arm)) && __ARM_ARCH >= 6) // #undef __STRICT_ALIGNMENT // #endif //#endif
D
/home/rajkishor/Desktop/RUST/target/rls/debug/build/libc-a1fcfd5405a3b144/build_script_build-a1fcfd5405a3b144: /home/rajkishor/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.62/build.rs /home/rajkishor/Desktop/RUST/target/rls/debug/build/libc-a1fcfd5405a3b144/build_script_build-a1fcfd5405a3b144.d: /home/rajkishor/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.62/build.rs /home/rajkishor/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.62/build.rs:
D
/* * This file is part of gtkD. * * gtkD is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * * gtkD 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 Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with gtkD; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // generated automatically - do not change // find conversion definition on APILookup.txt // implement new conversion functionalities on the wrap.utils pakage /* * Conversion parameters: * inFile = GIcon.html * outPack = gio * outFile = IconT * strct = GIcon * realStrct= * ctorStrct= * clss = IconT * interf = IconIF * class Code: No * interface Code: No * template for: * - TStruct * extend = * implements: * prefixes: * - g_icon_ * omit structs: * omit prefixes: * omit code: * - g_icon_new_for_string * omit signals: * imports: * - gtkD.glib.Str * - gtkD.glib.ErrorG * - gtkD.glib.GException * structWrap: * module aliases: * local aliases: * overrides: */ module gtkD.gio.IconT; public import gtkD.gtkc.giotypes; public import gtkD.gtkc.gio; public import gtkD.glib.ConstructionException; public import gtkD.glib.Str; public import gtkD.glib.ErrorG; public import gtkD.glib.GException; /** * Description * GIcon is a very minimal interface for icons. It provides functions * for checking the equality of two icons, hashing of icons and * serializing an icon to and from strings. * GIcon does not provide the actual pixmap for the icon as this is out * of GIO's scope, however implementations of GIcon may contain the name * of an icon (see GThemedIcon), or the path to an icon (see GLoadableIcon). * To obtain a hash of a GIcon, see g_icon_hash(). * To check if two GIcons are equal, see g_icon_equal(). * For serializing a GIcon, use g_icon_to_string() and * g_icon_new_for_string(). * If your application or library provides one or more GIcon * implementations you need to ensure that each GType is registered * with the type system prior to calling g_icon_new_for_string(). */ public template IconT(TStruct) { /** the main Gtk struct */ protected GIcon* gIcon; public GIcon* getIconTStruct() { return cast(GIcon*)getStruct(); } /** */ /** * Gets a hash for an icon. * Params: * icon = gconstpointer to an icon object. * Returns: a guint containing a hash for the icon, suitable for use in a GHashTable or similar data structure. */ public static uint hash(void* icon) { // guint g_icon_hash (gconstpointer icon); return g_icon_hash(icon); } /** * Checks if two icons are equal. * Params: * icon2 = pointer to the second GIcon. * Returns: TRUE if icon1 is equal to icon2. FALSE otherwise. */ public int equal(GIcon* icon2) { // gboolean g_icon_equal (GIcon *icon1, GIcon *icon2); return g_icon_equal(getIconTStruct(), icon2); } /** * Generates a textual representation of icon that can be used for * serialization such as when passing icon to a different process or * saving it to persistent storage. Use g_icon_new_for_string() to * get icon back from the returned string. * The encoding of the returned string is proprietary to GIcon except * in the following two cases * If icon is a GFileIcon, the returned string is a native path * (such as /path/to/my icon.png) without escaping * if the GFile for icon is a native file. If the file is not * native, the returned string is the result of g_file_get_uri() * (such as sftp://path/to/my%20icon.png). * If icon is a GThemedIcon with exactly one name, the encoding is * simply the name (such as network-server). * Since 2.20 * Returns: An allocated NUL-terminated UTF8 string or NULL if icon can'tbe serialized. Use g_free() to free. */ public string toString() { // gchar * g_icon_to_string (GIcon *icon); return Str.toString(g_icon_to_string(getIconTStruct())); } }
D
/* * Hunt - A high-level D Programming Language Web framework that encourages rapid development and clean, pragmatic design. * * Copyright (C) 2015-2019, HuntLabs * * Website: https://www.huntlabs.net/ * * Licensed under the Apache-2.0 License. * */ module hunt.framework.http.Request; // import hunt.http.codec.http.model; // import hunt.http.HttpConnection; // import hunt.http.codec.http.stream.HttpOutputStream; // import hunt.net.util.UrlEncoded; // import hunt.collection; // import hunt.io; // import hunt.logging; // import hunt.Exceptions; // import hunt.util.Common; // import hunt.util.MimeTypeUtils; // import hunt.framework.application.ApplicationConfig; // import hunt.framework.Simplify; // import hunt.framework.Exceptions; // import hunt.framework.http.session; // import hunt.framework.Init; // import hunt.framework.routing.Route; // import hunt.framework.routing.Define; // import hunt.framework.security.acl.User; // import hunt.framework.file.UploadedFile; // import hunt.Functions; // import core.time : MonoTime, Duration; // import std.algorithm; // import std.array; // import std.container.array; // import std.conv; // import std.digest; // import std.digest.sha; // import std.exception; // import std.file; // import std.json; // import std.path; // import std.regex; // import std.string; // import std.socket : Address; // version(WITH_HUNT_TRACE) { // import hunt.trace.Tracer; // } // alias RequestEventHandler = void delegate(Request sender); // alias Closure = RequestEventHandler; // final class Request { // private HttpRequest _request; // private HttpResponse _response; // private SessionStorage _sessionStorage; // private UrlEncoded urlEncodedMap; // private Cookie[] _cookies; // private HttpSession _session; // private MonoTime _monoCreated; // private Object[string] _attributes; // HttpConnection _connection; // // Action1!ByteBuffer content; // // Action1!Request contentComplete; // // Action1!Request messageComplete; // package(hunt.framework.http) HttpOutputStream outputStream; // package(hunt.framework) List!(ByteBuffer) requestBody; // RequestEventHandler routeResolver; // RequestEventHandler userResolver; // this(HttpRequest request, HttpResponse response, HttpOutputStream output, // HttpConnection connection, SessionStorage sessionStorage) { // _monoCreated = MonoTime.currTime; // requestBody = new ArrayList!(ByteBuffer)(); // this._request = request; // this.outputStream = output; // this._response = response; // this._connection = connection; // this._sessionStorage = sessionStorage; // this.urlEncodedMap = new UrlEncoded(); // // response.setStatus(HttpStatus.OK_200); // // response.setHttpVersion(HttpVersion.HTTP_1_1); // // this._response = new Response(response, output, request.getURI(), bufferSize); // handleQueryParameters(); // .request(this); // } // version(WITH_HUNT_TRACE) { // Tracer tracer; // } // // alias _request this; // @property int elapsed() { // Duration timeElapsed = MonoTime.currTime - _monoCreated; // return cast(int)timeElapsed.total!"msecs"; // } // HttpURI getURI() { // return _request.getURI(); // } // HttpFields getFields() { // return _httpFields; // } // private HttpFields _httpFields; // protected void handleQueryParameters() { // string q = getURI().getQuery(); // if (!q.empty) // urlEncodedMap.decode(q); // } // package(hunt.framework) void onHeaderCompleted() { // _httpFields = _request.getFields(); // string transferEncoding = _httpFields.get(HttpHeader.TRANSFER_ENCODING); // _contentLength = _request.getContentLength(); // _isChunked = (HttpHeaderValue.CHUNKED.asString() == transferEncoding // || (_request.getHttpVersion() == HttpVersion.HTTP_2 // && _contentLength < 0)); // if(_isChunked) { // pipedStream = new ByteArrayPipedStream(4 * 1024); // // FIXME: Needing refactor or cleanup -@zhangxueping at 2019-10-16T11:01:18+08:00 // // // // } else if(contentLength > configuration.getBodyBufferThreshold()) { // // pipedStream = new FilePipedStream(configuration.getTempFilePath()); // } else if(_contentLength>0) { // pipedStream = new ByteArrayPipedStream(cast(int) _contentLength); // } // } // long getContentLength() { // return _contentLength; // } // private PipedStream pipedStream; // private long _contentLength = -1; // package(hunt.framework) void onContent(ByteBuffer buffer) { // version(HUNT_DEBUG) { // if(buffer.remaining() < 1024) // info(BufferUtils.toString(buffer)); // } // if(pipedStream is null) // requestBody.add(buffer); // else // pipedStream.getOutputStream().write(BufferUtils.toArray(buffer, false)); // } // package(hunt.framework) void onContentCompleted() { // if(pipedStream is null) // return; // pipedStream.getOutputStream().close(); // InputStream inputStream = pipedStream.getInputStream(); // string contentType = MimeTypeUtils.getContentTypeMIMEType(_httpFields.get(HttpHeader.CONTENT_TYPE)); // version (HUNT_DEBUG) info("content type: ", contentType); // contentType = contentType.toLower(); // if (contentType == "application/x-www-form-urlencoded") { // _isXFormUrlencoded = true; // stringBody = IOUtils.toString(inputStream); // version (HUNT_DEBUG) // trace("body content: ", stringBody); // urlEncodedMap.decode(stringBody); // getBodyAsString() // // version(HUNT_DEBUG) info(urlEncodedMap.toString()); // } else if(contentType == "multipart/form-data") { // _isMultipart = true; // ApplicationConfig config = config(); // string tempDir = DEFAULT_TEMP_PATH; // if(!tempDir.exists()) // tempDir.mkdirRecurse(); // version (HUNT_DEBUG) info("temp dir for upload: ",tempDir); // // ByteBuffer buffer = requestBody.get(0); // // ByteArrayInputStream inputStream = new ByteArrayInputStream(BufferUtils.toArray(buffer)); // this.convertUploadedFiles(new MultipartFormInputStream(inputStream, // _httpFields.get(HttpHeader.CONTENT_TYPE), config.multipartConfig, tempDir)); // } else { // stringBody = IOUtils.toString(inputStream); // version (HUNT_DEBUG) { // tracef("Do nothing for this content type: %s", contentType); // // trace("body content: ", stringBody); // } // } // } // private void convertUploadedFiles(MultipartFormInputStream multipartForm) // { // foreach (Part part; multipartForm.getParts()) // { // MultipartFormInputStream.MultiPart multipart = cast(MultipartFormInputStream.MultiPart) part; // version(HUNT_DEBUG) { // tracef("File: key=%s, fileName=%s, actualFile=%s, ContentType=%s, content=%s", // multipart.getName(), multipart.getSubmittedFileName(), // multipart.getFile(), multipart.getContentType(), cast(string) multipart.getBytes()); // } // string contentType = multipart.getContentType(); // string submittedFileName = multipart.getSubmittedFileName(); // string key = multipart.getName(); // if(!submittedFileName.empty) { // // TODO: for upload failed? What's the errorCode? use multipart.isWriteToFile? // int errorCode = 0; // multipart.flush(); // auto file = new UploadedFile(multipart.getFile(), submittedFileName, // contentType, errorCode); // this._convertedMultiFiles[key] ~= file; // this._convertedAllFiles ~= file; // } else { // this._xFormData[key] ~= cast(string) multipart.getBytes(); // } // } // } // private bool _isMultipart = false; // private bool _isXFormUrlencoded = false; // private UploadedFile[] _convertedAllFiles; // private UploadedFile[][string] _convertedMultiFiles; // package(hunt.framework) void onMessageCompleted() { // version(HUNT_DEBUG_MORE) trace("do nothing"); // } // bool isChunked() { // return _isChunked; // } // private bool _isChunked = false; // /** // * Custom parameters. // */ // @property string[string] mate() { // return _mate; // } // string getMate(string key, string value = null) { // return _mate.get(key, value); // } // long size() @property // { // return _stringBody.length; // } // void addMate(string key, string value) { // _mate[key] = value; // } // @property string host() { // return header(HttpHeader.HOST); // } // string header(HttpHeader code) { // return getFields().get(code); // } // string header(string key) { // return getFields().get(key); // } // bool headerExists(HttpHeader code) { // return getFields().contains(code); // } // bool headerExists(string key) { // return getFields().containsKey(key); // } // // int headersForeach(scope int delegate(string key, string value) each) // // { // // return getFields().opApply(each); // // } // // int headersForeach(scope int delegate(HttpHeader code, string key, string value) each) // // { // // return getFields().opApply(each); // // } // // bool headerValueForeach(string name, scope bool delegate(string value) func) // // { // // return getFields().forEachValueOfHeader(name, func); // // } // // bool headerValueForeach(HttpHeader code, scope bool delegate(string value) func) // // { // // return getFields().forEachValueOfHeader(code, func); // // } // @property string referer() { // string rf = header("Referer"); // string[] rfarr = split(rf, ", "); // if (rfarr.length) { // return rfarr[0]; // } // return ""; // } // @property Address clientAddress() { // return _connection.getTcpConnection().getRemoteAddress(); // } // @property string ip() { // string s = this.header(HttpHeader.X_FORWARDED_FOR); // if(s.empty) { // s = this.header("Proxy-Client-IP"); // } else { // auto arr = s.split(","); // if(arr.length >= 0) // s = arr[0]; // } // if(s.empty) { // s = this.header("WL-Proxy-Client-IP"); // } // if(s.empty) { // s = this.header("HTTP_CLIENT_IP"); // } // if(s.empty) { // s = this.header("HTTP_X_FORWARDED_FOR"); // } // if(s.empty) { // Address ad = clientAddress(); // s = ad.toAddrString(); // } // return s; // } // @property JSONValue json() { // if (_json == JSONValue.init) // _json = parseJSON(getBodyAsString()); // return _json; // } // T json(T = string)(string key, T defaults = T.init) { // import std.traits; // auto obj = (key in (json().objectNoRef)); // if (obj is null) // return defaults; // static if (isIntegral!(T)) // return cast(T)((*obj).integer); // else static if (is(T == string)) // return (*obj).str; // else static if (is(FloatingPointTypeOf!T X)) // return cast(T)((*obj).floating); // else static if (is(T == bool)) { // if (obj.type == JSON_TYPE.TRUE) // return true; // else if (obj.type == JSON_TYPE.FALSE) // return false; // else { // throw new Exception("json error"); // return false; // } // } // else { // return (*obj); // } // } // // get queries // @property ref string[string] queries() { // if (!_isQueryParamsSet) { // MultiMap!string map = new MultiMap!string(); // getURI().decodeQueryTo(map); // foreach (string key, List!(string) values; map) { // version(HUNT_DEBUG) { // infof("query parameter: key=%s, values=%s", key, values[0]); // } // if(values is null || values.size()<1) { // _queryParams[key] = ""; // } else { // _queryParams[key] = values[0]; // } // } // _isQueryParamsSet = true; // } // return _queryParams; // } // private bool _isQueryParamsSet = false; // void putQueryParameter(string key, string value) { // version(HUNT_DEBUG) infof("query parameter: key=%s, values=%s", key, value); // _queryParams[key] = value; // } // private string[string] _queryParams; // @property string[][string] xFormData() { // if (_xFormData is null && _isXFormUrlencoded) { // UrlEncoded map = new UrlEncoded(); // map.decode(stringBody); // foreach (string key; map.byKey()) { // foreach(string v; map.getValues(key)) { // key = key.strip(); // _xFormData[key] ~= v.strip(); // } // } // } // return _xFormData; // } // private string[][string] _xFormData; // T bindForm(T)() { // if(methodAsString() != "POST") // return T.init; // import hunt.serialization.JsonSerializer; // // import hunt.util.Serialize; // JSONValue jv; // if(xFormData() is null) // return new T(); // foreach(string k, string[] values; xFormData()) { // if(values.length > 1) { // jv[k] = JSONValue(values); // } else if(values.length == 1) { // jv[k] = JSONValue(values[0]); // } else { // warningf("null value for %s in form data: ", k); // } // } // return JsonSerializer.toObject!T(jv); // // T obj = toObject!T(jv); // // return (obj is null) ? (new T()) : obj; // } // /** // * Sets the query parameter with the specified name to the specified value. // * // * Returns true if the query parameter was successfully set. // */ // // void setQueryParameter(string name, string value) { // // // parseQueryParams(); // // auto keyPtr = name in _queryParams; // // if (keyPtr !is null) // // logWarningf("A query is rewritten: %s", name); // // _queryParams[name] = value; // // } // /// get a query // T get(T = string)(string key, T v = T.init) { // auto tmp = queries(); // if (tmp is null) { // return v; // } // auto _v = tmp.get(key, ""); // if (_v.length) { // return to!T(_v); // } // return v; // } // @property ref string[string] materef() { // return _mate; // } // HttpResponse getResponse() { // return _response; // } // alias getStringBody = getBodyAsString; // string getBodyAsString() { // if (stringBody is null) { // Appender!string buffer; // foreach (ByteBuffer b; requestBody) { // buffer.put(BufferUtils.toString(b)); // } // stringBody = buffer.data; // version (HUNT_DEBUG) // trace("body content: ", stringBody); // } // return stringBody; // } // private string stringBody; // // Response createResponse() // // { // // if (_error != HTTPErrorCode.NO_ERROR) // // { // // // throw new CreateResponseException("http error is : " ~ to!string(_error)); // // hunt.logging.warning("http error is : " ~ to!string(_error)); // // } // // if (_res is null) // // _res = new Response(_downstream); // // return _res; // // } // @property void action(string value) { // _action = value; // } // @property string action() { // return _action; // } // @property bool isJson() { // string s = this.header(HttpHeader.CONTENT_TYPE); // return canFind(s, "/json") || canFind(s, "+json"); // } // @property bool expectsJson() { // return (this.ajax && !this.pjax) || this.wantsJson(); // } // /** // * Gets a list of content types acceptable by the client browser. // * // * @return array List of content types in preferable order // */ // string[] getAcceptableContentTypes() { // if (acceptableContentTypes is null) { // acceptableContentTypes = getFields().getValuesList("Accept"); // } // return acceptableContentTypes; // } // protected string[] acceptableContentTypes = null; // @property bool wantsJson() { // string[] acceptable = getAcceptableContentTypes(); // if (acceptable is null) // return false; // return canFind(acceptable[0], "/json") || canFind(acceptable[0], "+json"); // } // private static bool isContained(string source, string[] keys) { // foreach (string k; keys) { // if (canFind(source, k)) // return true; // } // return false; // } // @property bool accepts(string[] contentTypes) { // string[] acceptTypes = getAcceptableContentTypes(); // if (acceptTypes is null) // return true; // string[] types = contentTypes; // foreach (string accept; acceptTypes) { // if (accept == "*/*" || accept == "*") // return true; // foreach (string type; types) { // size_t index = indexOf(type, "/"); // string name = type[0 .. index] ~ "/*"; // if (matchesType(accept, type) || accept == name) // return true; // } // } // return false; // } // static bool matchesType(string actual, string type) { // if (actual == type) { // return true; // } // string[] split = split(actual, "/"); // // TODO: Tasks pending completion -@zxp at 5/14/2018, 3:28:15 PM // // // return split.length >= 2; // && preg_match('#'.preg_quote(split[0], '#').'/.+\+'.preg_quote(split[1], '#').'#', type); // } // @property string prefers(string[] contentTypes) { // string[] acceptTypes = getAcceptableContentTypes(); // foreach (string accept; acceptTypes) { // if (accept == "*/*" || accept == "*") // return acceptTypes[0]; // foreach (string contentType; contentTypes) { // string type = contentType; // string mimeType = getMimeType(contentType); // if (!mimeType.empty) // type = mimeType; // size_t index = indexOf(type, "/"); // string name = type[0 .. index] ~ "/*"; // if (matchesType(accept, type) || accept == name) // return contentType; // } // } // return null; // } // /** // * Gets the mime type associated with the format. // * // * @param stringformat The format // * // * @return string The associated mime type (null if not found) // */ // string getMimeType(string format) { // string[] r = getMimeTypes(format); // if (r is null) // return null; // else // return r[0]; // } // /** // * Gets the mime types associated with the format. // * // * @param stringformat The format // * // * @return array The associated mime types // */ // string[] getMimeTypes(string format) { // return formats.get(format, null); // } // /** // * Gets the format associated with the mime type. // * // * @param stringmimeType The associated mime type // * // * @return string|null The format (null if not found) // */ // string getFormat(string mimeType) { // string canonicalMimeType = ""; // ptrdiff_t index = indexOf(mimeType, ";"); // if (index >= 0) // canonicalMimeType = mimeType[0 .. index]; // foreach (string key, string[] value; formats) { // if (canFind(value, mimeType)) // return key; // if (!canonicalMimeType.empty && canFind(canonicalMimeType, mimeType)) // return key; // } // return null; // } // /** // * Associates a format with mime types. // * // * @param string format The format // * @param string|arraymimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type) // */ // void setFormat(string format, string[] mimeTypes) { // formats[format] = mimeTypes; // } // /** // * Gets the request format. // * // * Here is the process to determine the format: // * // * * format defined by the user (with setRequestFormat()) // * * _format request attribute // * *default // * // * @param stringdefault The default format // * // * @return string The request format // */ // string getRequestFormat(string defaults = "html") { // if (_format.empty) // _format = this.mate.get("_format", null); // return _format is null ? defaults : _format; // } // /** // * Sets the request format. // * // * @param stringformat The request format // */ // void setRequestFormat(string format) { // _format = format; // } // protected string _format; // /** // * Determine if the current request accepts any content type. // * // * @return bool // */ // @property bool acceptsAnyContentType() { // string[] acceptable = getAcceptableContentTypes(); // return acceptable.length == 0 || (acceptable[0] == "*/*" || acceptable[0] == "*"); // } // @property bool acceptsJson() { // return accepts(["application/json"]); // } // @property bool acceptsHtml() { // return accepts(["text/html"]); // } // string format(string defaults = "html") { // string[] acceptTypes = getAcceptableContentTypes(); // foreach (string type; acceptTypes) { // string r = getFormat(type); // if (!r.empty) // return r; // } // return defaults; // } // /** // * Retrieve an old input item. // * // * @param string key // * @param string|array|null default // * @return string|array // */ // // string[string] old(string[string] defaults = null) // // { // // return this.hasSession() ? this.session().getOldInput(defaults) : defaults; // // } // // /// ditto // // string old(string key, string defaults = null) // // { // // return this.hasSession() ? this.session().getOldInput(key, defaults) : defaults; // // } // /** // * Flash the input for the current request to the session. // * // * @return void // */ // void flash() { // if (hasSession()) // _session.flashInput(this.input()); // } // /** // * Flash only some of the input to the session. // * // * @param array|mixed keys // * @return void // */ // void flashOnly(string[] keys) { // if (hasSession()) // _session.flashInput(this.only(keys)); // } // /** // * Flash only some of the input to the session. // * // * @param array|mixed keys // * @return void // */ // void flashExcept(string[] keys) { // if (hasSession()) // _session.flashInput(this.only(keys)); // } // string getMCA() // { // string mca; // if (request.route.getModule() is null) // { // mca = request.route.getController() ~ "." ~ request.route.getAction(); // } // else // { // mca = request.route.getModule() ~ "." ~ request.route.getController() // ~ "." ~ request.route.getAction(); // } // return mca; // } // /** // * Flush all of the old input from the session. // * // * @return void // */ // void flush() { // if (_session !is null) // _sessionStorage.put(_session); // } // /** // * Gets the HttpSession. // * // * @return HttpSession|null The session // */ // @property HttpSession session(bool canCreate = true) { // if (_session !is null || isSessionRetrieved) // return _session; // string sessionId = this.cookie(DefaultSessionIdName); // isSessionRetrieved = true; // if (!sessionId.empty) { // _session = _sessionStorage.get(sessionId); // _session.setMaxInactiveInterval(_sessionStorage.expire); // version(HUNT_HTTP_DEBUG) tracef("existed session: %s, expire: %d", sessionId, _session.getMaxInactiveInterval()); // } // if (_session is null && canCreate) { // sessionId = HttpSession.generateSessionId(); // version(HUNT_DEBUG) infof("new session: %s, expire: %d", sessionId, _sessionStorage.expire); // _session = HttpSession.create(sessionId, _sessionStorage.expire); // } // return _session; // } // private bool isSessionRetrieved = false; // /** // * Whether the request contains a HttpSession object. // * // * This method does not give any information about the state of the session object, // * like whether the session is started or not. It is just a way to check if this Request // * is associated with a HttpSession instance. // * // * @return bool true when the Request contains a HttpSession object, false otherwise // */ // bool hasSession() { // return session() !is null; // } // // string[] server(string key = null, string[] defaults = null) { // // throw new NotImplementedException("server"); // // } // /** // * Determine if a header is set on the request. // * // * @param string key // * @return bool // */ // bool hasHeader(string key) { // return getFields().containsKey(key); // } // /** // * Retrieve a header from the request. // * // * @param string key // * @param string|array|null default // * @return string|array // */ // string[] header(string key = null, string[] defaults = null) { // string[] r = getFields().getValuesList(key); // if (r is null) // return defaults; // else // return r; // } // // ditto // string header(string key = null, string defaults = null) { // string r = getFields().get(key); // if (r is null) // return defaults; // else // return r; // } // /** // * Get the bearer token from the request headers. // * // * @return string|null // */ // string bearerToken() { // string v = header("Authorization", ""); // if (startsWith(v, "Bearer ") >= 0) // return v[7 .. $]; // return null; // } // /** // * Determine if the request contains a given input item key. // * // * @param string|array key // * @return bool // */ // bool exists(string key) { // return has([key]); // } // /** // * Determine if the request contains a given input item key. // * // * @param string|array key // * @return bool // */ // bool has(string[] keys) { // string[string] dict = this.all(); // foreach (string k; keys) { // string* p = (k in dict); // if (p is null) // return false; // } // return true; // } // /** // * Determine if the request contains any of the given inputs. // * // * @param dynamic key // * @return bool // */ // bool hasAny(string[] keys...) { // string[string] dict = this.all(); // foreach (string k; keys) { // string* p = (k in dict); // if (p is null) // return true; // } // return false; // } // /** // * Determine if the request contains a non-empty value for an input item. // * // * @param string|array key // * @return bool // */ // bool filled(string[] keys) { // foreach (string k; keys) { // if (k.empty) // return false; // } // return true; // } // /** // * Get the keys for all of the input and files. // * // * @return array // */ // string[] keys() { // // return this.input().keys ~ this.httpForm.fileKeys(); // implementationMissing(false); // return this.input().keys; // } // /** // * Get all of the input and files for the request. // * // * @param array|mixed keys // * @return array // */ // string[string] all(string[] keys = null) { // string[string] inputs = this.input(); // if (keys is null) { // // HttpForm.FormFile[string] files = this.allFiles; // // foreach(string k; files.byKey) // // { // // inputs[k] = files[k].fileName; // // } // return inputs; // } // string[string] results; // foreach (string k; keys) { // string* v = (k in inputs); // if (v !is null) // results[k] = *v; // } // return results; // } // /** // * Retrieve an input item from the request. // * // * @param string key // * @param string|array|null default // * @return string|array // */ // string input(string key, string defaults = null) { // return getInputSource().get(key, defaults); // } // /// ditto // string[string] input() { // return getInputSource(); // } // /** // * Get a subset containing the provided keys with values from the input data. // * // * @param array|mixed keys // * @return array // */ // string[string] only(string[] keys) { // string[string] inputs = this.all(); // string[string] results; // foreach (string k; keys) { // string* v = (k in inputs); // if (v !is null) // results[k] = *v; // } // return results; // } // /** // * Get all of the input except for a specified array of items. // * // * @param array|mixed keys // * @return array // */ // string[string] except(string[] keys) { // string[string] results = this.all(); // foreach (string k; keys) { // string* v = (k in results); // if (v !is null) // results.remove(k); // } // return results; // } // /** // * Retrieve a query string item from the request. // * // * @param string key // * @param string|array|null default // * @return string|array // */ // string query(string key, string defaults = null) { // return queries().get(key, defaults); // } // /** // * Retrieve a request payload item from the request. // * // * @param string key // * @param string|array|null default // * // * @return string|array // */ // T post(T = string)(string key, T v = T.init) { // string[][string] form = xFormData(); // if (form is null) // return v; // if(key in form) { // string[] _v = form[key]; // if (_v.length > 0) { // static if(is(T == string)) // v = _v[0]; // else { // v = to!T(_v[0]); // } // } // } // return v; // } // T[] posts(T = string)(string key, T[] v = null) { // string[][string] form = xFormData(); // if (form is null) // return v; // if(key in form) { // string[] _v = form[key]; // if (_v.length > 0) { // static if(is(T == string)) // v = _v[]; // else { // v = new T[_v.length]; // for(size i =0; i<v.length; i++) { // v[i] = to!T(_v[i]); // } // } // } // } // return v; // } // /** // * Determine if a cookie is set on the request. // * // * @param string key // * @return bool // */ // // bool hasCookie(string key) // // { // // // return cookie(key).length > 0; // // foreach(Cookie c; _cookies) { // // if(c.getName == key) // // return true; // // } // // return false; // // } // // bool hasCookie() // // { // // return _cookies.length > 0; // // } // /** // * Retrieve a cookie from the request. // * // * @param string key // * @param string|array|null default // * @return string|array // */ // string cookie(string key, string defaultValue = null) { // // return cookieManager.get(key, defaultValue); // foreach (Cookie c; getCookies()) { // if (c.getName == key) // return c.getValue(); // } // return defaultValue; // } // Cookie[] getCookies() { // if (_cookies is null) { // Array!(Cookie) list; // foreach (string v; getFields().getValuesList(HttpHeader.COOKIE)) { // if (v.empty) // continue; // foreach (Cookie c; CookieParser.parseCookie(v)) // list.insertBack(c); // } // _cookies = list.array(); // } // return _cookies; // } // /** // * Retrieve users' own preferred language. // */ // string locale() // { // string l; // l = cookie("Content-Language"); // if(l is null) // l = config().application.defaultLanguage; // return toLower(l); // } // /** // * Get an array of all cookies. // * // * @return array // */ // // string[string] cookie() // // { // // // return cookieManager.requestCookies(); // // implementationMissing(false); // // return null; // // } // /** // * Get an array of all of the files on the request. // * // * @return array // */ // UploadedFile[] allFiles() { // return _convertedAllFiles; // } // /** // * Determine if the uploaded data contains a file. // * // * @param string key // * @return bool // */ // bool hasFile(string key) { // if(_convertedMultiFiles is null) { // return false; // } else { // if (_convertedMultiFiles.get(key, null) is null) // { // return false; // } // return true; // } // } // /** // * Retrieve a file from the request. // * // * @param string key // * @param mixed default // * @return UploadedFile // */ // UploadedFile file(string key) // { // if (this.hasFile(key)) // { // return this._convertedMultiFiles[key][0]; // } // return null; // } // UploadedFile[] files(string key) // { // if (this.hasFile(key)) // { // return this._convertedMultiFiles[key]; // } // return null; // } // @property string methodAsString() { // return _request.getMethod(); // } // @property HttpMethod method() { // return HttpMethod.fromString(_request.getMethod()); // } // @property string url() { // return _request.getURIString(); // } // // @property string fullUrl() // // { // // return _httpMessage.url(); // // } // // @property string fullUrlWithQuery() // // { // // return _httpMessage.url(); // // } // @property string path() { // return _request.getURI().getPath(); // } // @property string decodedPath() { // return _request.getURI().getDecodedPath(); // } // /** // * Gets the request's scheme. // * // * @return string // */ // string getScheme() { // return isSecure() ? "https" : "http"; // } // /** // * Get a segment from the URI (1 based index). // * // * @param int index // * @param string|null default // * @return string|null // */ // string segment(int index, string defaults = null) { // string[] s = segments(); // if (s.length <= index || index <= 0) // return defaults; // return s[index - 1]; // } // /** // * Get all of the segments for the request path. // * // * @return array // */ // string[] segments() { // string[] t = decodedPath().split("/"); // string[] r; // foreach (string v; t) { // if (!v.empty) // r ~= v; // } // return r; // } // /** // * Determine if the current request URI matches a pattern. // * // * @param patterns // * @return bool // */ // bool uriIs(string[] patterns...) { // string path = decodedPath(); // foreach (string pattern; patterns) { // auto s = matchAll(path, regex(pattern)); // if (!s.empty) // return true; // } // return false; // } // /** // * Determine if the route name matches a given pattern. // * // * @param dynamic patterns // * @return bool // */ // bool routeIs(string[] patterns...) { // if (_route !is null) { // string r = _route.getRoute(); // foreach (string pattern; patterns) { // auto s = matchAll(r, regex(pattern)); // if (!s.empty) // return true; // } // } // return false; // } // /** // * Determine if the current request URL and query string matches a pattern. // * // * @param dynamic patterns // * @return bool // */ // // bool fullUrlIs(string[] patterns...) // // { // // string r = this.fullUrl(); // // foreach (string pattern; patterns) // // { // // auto s = matchAll(r, regex(pattern)); // // if (!s.empty) // // return true; // // } // // return false; // // } // /** // * Determine if the request is the result of an AJAX call. // * // * @return bool // */ // @property bool ajax() { // return getFields().get("X-Requested-With") == "XMLHttpRequest"; // } // /** // * Determine if the request is the result of an PJAX call. // * // * @return bool // */ // @property bool pjax() { // return getFields().containsKey("X-PJAX"); // } // /** // * Determine if the request is over HTTPS. // * // * @return bool // */ // @property bool secure() { // return isSecure(); // } // /** // * Checks whether the request is secure or not. // * // * This method can read the client protocol from the "X-Forwarded-Proto" header // * when trusted proxies were set via "setTrustedProxies()". // * // * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http". // * // * @return bool // */ // @property bool isSecure() { // throw new NotImplementedException("isSecure"); // } // /** // * Get the client IP address. // * // * @return string // */ // // @property string ip() // // { // // return _httpMessage.getClientIP(); // // } // /** // * Get the client IP addresses. // * // * @return array // */ // // @property string[] ips() // // { // // throw new NotImplementedException("ips"); // // } // /** // * Get the client user agent. // * // * @return string // */ // @property string userAgent() { // return getFields().get("User-Agent"); // } // Request merge(string[] input) { // string[string] inputSource = getInputSource; // for (size_t i = 0; i < input.length; i++) { // inputSource[to!string(i)] = input[i]; // } // return this; // } // /** // * Replace the input for the current request. // * // * @param array input // * @return Request // */ // Request replace(string[string] input) { // if (isContained(this.methodAsString, ["GET", "HEAD"])) // _queryParams = input; // else { // foreach(string k, string v; input) { // _xFormData[k] ~= v; // } // } // return this; // } // protected string[string] getInputSource() { // if (isContained(this.methodAsString, ["GET", "HEAD"])) // return queries(); // else { // string[string] r; // foreach(string k, string[] v; xFormData()) { // r[k] = v[0]; // } // return r; // } // } // /** // * Get the user making the request. // * // * @param string|null guard // * @return User // */ // @property User user() { // return this._user; // } // // ditto // @property void user(User user) { // this._user = user; // } // /** // * Get the route handling the request. // * // * @param string|null param // * // * @return Route // */ // @property Route route() { // return _route; // } // // ditto // @property void route(Route value) { // _route = value; // } // /** // * Get a unique fingerprint for the request / route / IP address. // * // * @return string // */ // // string fingerprint() // // { // // if(_route is null) // // throw new Exception("Unable to generate fingerprint. Route unavailable."); // // string[] r ; // // foreach(HTTP_METHODS m; _route.getMethods()) // // r ~= to!string(m); // // r ~= _route.getUrlTemplate(); // // r ~= this.ip(); // // return toHexString(sha1Of(join(r, "|"))).idup; // // } // /** // * Set the JSON payload for the request. // * // * @param json // * @returnthis // */ // Request setJson(string[string] json) { // _json = JSONValue(json); // return this; // } // /** // * Get the user resolver callback. // * // * @return Closure // */ // Closure getUserResolver() { // if (userResolver is null) // return (Request) { }; // return userResolver; // } // /** // * Set the user resolver callback. // * // * @param Closure callback // * @returnthis // */ // Request setUserResolver(Closure callback) { // userResolver = callback; // return this; // } // /** // * Get the route resolver callback. // * // * @return Closure // */ // Closure getRouteResolver() { // if (routeResolver is null) // return (Request) { }; // return routeResolver; // } // /** // * Set the route resolver callback. // * // * @param Closure callback // * @returnthis // */ // Request setRouteResolver(Closure callback) { // routeResolver = callback; // return this; // } // /** // * Get all of the input and files for the request. // * // * @return array // */ // string[string] toArray() { // return this.all(); // } // /** // * Determine if the given offset exists. // * // * @param string offset // * @return bool // */ // bool offsetExists(string offset) { // string[string] a = this.all(); // string* p = (offset in a); // if (p is null) // return this.route.hasParameter(offset); // else // return true; // } // string offsetGet(string offset) { // return __get(offset); // } // /** // * Set the value at the given offset. // * // * @param string offset // * @param mixed value // * @return void // */ // void offsetSet(string offset, string value) { // string[string] dict = this.getInputSource(); // dict[offset] = value; // } // /** // * Remove the value at the given offset. // * // * @param string offset // * @return void // */ // void offsetUnset(string offset) { // string[string] dict = this.getInputSource(); // dict.remove(offset); // } // /** // * Check if an input element is set on the request. // * // * @param string key // * @return bool // */ // protected bool __isset(string key) { // string v = __get(key); // return !v.empty; // } // /** // * Get an input element from the request. // * // * @param string key // * @return string // */ // protected string __get(string key) { // string[string] a = this.all(); // string* p = (key in a); // if (p is null) { // return this.route.getParameter(key); // } // else // return *p; // } // /** // * Returns the protocol version. // * // * If the application is behind a proxy, the protocol version used in the // * requests between the client and the proxy and between the proxy and the // * server might be different. This returns the former (from the "Via" header) // * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns // * the latter (from the "SERVER_PROTOCOL" server parameter). // * // * @return string // */ // string getProtocolVersion() { // return _request.getHttpVersion().toString(); // } // /** // * Indicates whether this request originated from a trusted proxy. // * // * This can be useful to determine whether or not to trust the // * contents of a proxy-specific header. // * // * @return bool true if the request came from a trusted proxy, false otherwise // */ // // bool isFromTrustedProxy() { // // implementationMissing(false); // // return false; // // } // Object getAttribute(string name) { // auto itemPtr = name in _attributes; // if(itemPtr is null) // return null; // return *itemPtr; // } // void setAttribute(string name, Object o) { // this._attributes[name] = o; // } // // enum string Subject = "subject"; // private: // User _user; // Route _route; // string _stringBody; // string[string] _mate; // // CookieManager _cookieManager; // JSONValue _json; // string _action; // } // void setTrustedProxies(string[] proxies, int headerSet) { // trustedProxies = proxies; // trustedHeaderSet = headerSet; // } // package { // string[][string] formats; // string[] trustedProxies; // int trustedHeaderSet; // const HEADER_FORWARDED = 0b00001; // When using RFC 7239 // const HEADER_X_FORWARDED_FOR = 0b00010; // const HEADER_X_FORWARDED_HOST = 0b00100; // const HEADER_X_FORWARDED_PROTO = 0b01000; // const HEADER_X_FORWARDED_PORT = 0b10000; // const HEADER_X_FORWARDED_ALL = 0b11110; // All "X-Forwarded-*" headers // const HEADER_X_FORWARDED_AWS_ELB = 0b11010; // AWS ELB doesn"t send X-Forwarded-Host // } // static this() { // formats["html"] = ["text/html", "application/xhtml+xml"]; // formats["txt"] = ["text/plain"]; // formats["js"] = ["application/javascript", "application/x-javascript", "text/javascript"]; // formats["css"] = ["text/css"]; // formats["json"] = ["application/json", "application/x-json"]; // formats["jsonld"] = ["application/ld+json"]; // formats["xml"] = ["text/xml", "application/xml", "application/x-xml"]; // formats["rdf"] = ["application/rdf+xml"]; // formats["atom"] = ["application/atom+xml"]; // formats["rss"] = ["application/rss+xml"]; // formats["form"] = ["application/x-www-form-urlencoded"]; // } // private Request _request; // Request request() { // return _request; // } // void request(Request request) { // _request = request; // } // HttpSession session() { // return request().session(); // } // string session(string key) { // return session().get(key); // } // void session(string[string] values) { // foreach (key, value; values) { // session().put(key, value); // } // }
D
/Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Intermediates/SampleToday.build/Debug-iphonesimulator/TodayWidget.build/Objects-normal/x86_64/NetworkBase.o : /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/TodayWidget/Utils/Models/BaseModel.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/TodayWidget/Utils/Models/PostModel.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/TodayWidget/API/API_Post.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/TodayWidget/Utils/Networking/NetworkBase.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/TodayWidget/DataSourceDelegate/TableViewDataSourceDelegate.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/TodayWidget/Cell/BaseTableViewCell.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/TodayWidget/TodayViewController.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 /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Products/Debug-iphonesimulator/ObjectMapper.framework/Modules/ObjectMapper.swiftmodule/x86_64.swiftmodule /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Products/Debug-iphonesimulator/ObjectMapper.framework/Headers/ObjectMapper-Swift.h /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Products/Debug-iphonesimulator/ObjectMapper.framework/Headers/ObjectMapper-umbrella.h /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Products/Debug-iphonesimulator/ObjectMapper.framework/Modules/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/CoreImage.swiftmodule /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Products/Debug-iphonesimulator/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Products/Debug-iphonesimulator/Alamofire.framework/Headers/Alamofire-Swift.h /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Products/Debug-iphonesimulator/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Products/Debug-iphonesimulator/Alamofire.framework/Modules/module.modulemap /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Intermediates/SampleToday.build/Debug-iphonesimulator/TodayWidget.build/Objects-normal/x86_64/NetworkBase~partial.swiftmodule : /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/TodayWidget/Utils/Models/BaseModel.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/TodayWidget/Utils/Models/PostModel.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/TodayWidget/API/API_Post.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/TodayWidget/Utils/Networking/NetworkBase.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/TodayWidget/DataSourceDelegate/TableViewDataSourceDelegate.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/TodayWidget/Cell/BaseTableViewCell.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/TodayWidget/TodayViewController.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 /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Products/Debug-iphonesimulator/ObjectMapper.framework/Modules/ObjectMapper.swiftmodule/x86_64.swiftmodule /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Products/Debug-iphonesimulator/ObjectMapper.framework/Headers/ObjectMapper-Swift.h /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Products/Debug-iphonesimulator/ObjectMapper.framework/Headers/ObjectMapper-umbrella.h /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Products/Debug-iphonesimulator/ObjectMapper.framework/Modules/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/CoreImage.swiftmodule /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Products/Debug-iphonesimulator/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Products/Debug-iphonesimulator/Alamofire.framework/Headers/Alamofire-Swift.h /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Products/Debug-iphonesimulator/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Products/Debug-iphonesimulator/Alamofire.framework/Modules/module.modulemap /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Intermediates/SampleToday.build/Debug-iphonesimulator/TodayWidget.build/Objects-normal/x86_64/NetworkBase~partial.swiftdoc : /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/TodayWidget/Utils/Models/BaseModel.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/TodayWidget/Utils/Models/PostModel.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/TodayWidget/API/API_Post.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/TodayWidget/Utils/Networking/NetworkBase.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/TodayWidget/DataSourceDelegate/TableViewDataSourceDelegate.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/TodayWidget/Cell/BaseTableViewCell.swift /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/TodayWidget/TodayViewController.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 /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Products/Debug-iphonesimulator/ObjectMapper.framework/Modules/ObjectMapper.swiftmodule/x86_64.swiftmodule /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Products/Debug-iphonesimulator/ObjectMapper.framework/Headers/ObjectMapper-Swift.h /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Products/Debug-iphonesimulator/ObjectMapper.framework/Headers/ObjectMapper-umbrella.h /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Products/Debug-iphonesimulator/ObjectMapper.framework/Modules/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/CoreImage.swiftmodule /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Products/Debug-iphonesimulator/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64.swiftmodule /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Products/Debug-iphonesimulator/Alamofire.framework/Headers/Alamofire-Swift.h /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Products/Debug-iphonesimulator/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/renatomatos/Documents/Dev/iOS/TodayWidget/TodayWidgetSwift/SampleToday/DerivedData/SampleToday/Build/Products/Debug-iphonesimulator/Alamofire.framework/Modules/module.modulemap
D
/******************************************************************************* Swarm node base class Base class for a swarm node with the following features: * Contains a SelectListener which handles incoming connections. * Has an eventLoop() method to start the server, and a shutdown() method to stop the server. copyright: Copyright (c) 2011-2017 dunnhumby Germany GmbH. All rights reserved License: Boost Software License Version 1.0. See LICENSE.txt for details. *******************************************************************************/ module swarm.node.model.Node; /******************************************************************************* Imports *******************************************************************************/ import ocean.transition; import swarm.Const : NodeItem; import swarm.node.model.INode; import swarm.node.model.INodeInfo; import swarm.node.model.ISwarmConnectionHandlerInfo; import swarm.node.model.RecordActionCounters; import swarm.node.connection.ConnectionHandler; import swarm.node.request.RequestStats; import ocean.net.server.connection.IConnectionHandler; import ocean.sys.socket.AddressIPSocket; import ocean.sys.socket.InetAddress; import ocean.io.select.client.model.ISelectClient : IAdvancedSelectClient; import ocean.io.select.EpollSelectDispatcher; import ocean.net.server.SelectListener; import ocean.io.compress.lzo.LzoChunkCompressor; import ocean.util.container.pool.model.IAggregatePool; import ocean.util.log.Logger; import ocean.core.Enforce; import ocean.core.Verify; /******************************************************************************* Static module logger *******************************************************************************/ static private Logger log; static this ( ) { log = Log.lookup("swarm.node.model.Node"); } /******************************************************************************* Node base class. *******************************************************************************/ deprecated("Use the neo-capable node base in swarm.node.model.NeoNode") public abstract class INodeBase : INode, INodeInfo { /*************************************************************************** Type aliases for derived classes ***************************************************************************/ protected alias .NodeItem NodeItem; protected alias .EpollSelectDispatcher EpollSelectDispatcher; /*************************************************************************** Select listener instance **************************************************************************/ private ISelectListener listener; /*************************************************************************** User provided error callback delegate - called when an error occurs while executing an i/o handler. This can happen in two cases: 1. When a client disconnects. This is usually valid, and means that the client doesn't need to make any further queue requests. 2. When something seriously wrong has happened during i/o. In this case there's nothing we can do to rescue the command that was in process, but at least the node application can be notified that this has happened. **************************************************************************/ public alias IConnectionHandler.ErrorDg ErrorDg; private ErrorDg error_dg; /************************************************************************** Count of bytes received & sent. **************************************************************************/ private ulong bytes_received_, bytes_sent_; /************************************************************************** Record action counters. **************************************************************************/ private RecordActionCounters record_action_counters_; /************************************************************************** Count of records handled. To be removed together with records_handled() and handledRecord(). **************************************************************************/ private ulong records_handled_; /*************************************************************************** Node item struct, containing node address and port. ***************************************************************************/ private NodeItem node_item_; /*************************************************************************** Per-request stats tracker. ***************************************************************************/ private RequestStats request_stats_; /*************************************************************************** Per-request neo stats tracker. ***************************************************************************/ private RequestStats neo_request_stats_; /*************************************************************************** Constructor Params: node = node addres & port conn_setup_params = connection handler constructor arguments. Note that the `error_dg` field should not be set by the user; it is set internally. To set a user-defined error callback, use the `error_callback` method listener = select listener, is evaluated exactly once after conn_setup_params have been populated ***************************************************************************/ public this ( NodeItem node, ConnectionSetupParams conn_setup_params, lazy ISelectListener listener ) { this.node_item_ = node; this.request_stats_ = new RequestStats; this.neo_request_stats_ = new RequestStats; conn_setup_params.error_dg = &this.error; this.listener = listener; this.record_action_counters_ = new RecordActionCounters(this.record_action_counter_ids); } /************************************************************************** Sets the error callback delegate. The error delegate is of type: void delegate ( Exception, IAdvancedSelectClient.EventInfo, IConnectionHandlerInfo ) Params: error_dg = delegate to be called on error during handling a connection **************************************************************************/ public void error_callback ( ErrorDg error_dg ) { this.error_dg = error_dg; } /************************************************************************** Sets the node's connection limit. Params: max = maximum allowed number of connections to be handled at once **************************************************************************/ public void connection_limit ( uint max ) { this.listener.connection_limit(max); } /************************************************************************** Returns: the limit of the number of connections (i.e. the maximum number of connections the node can handle in parallel) or 0 if limitation is disabled **************************************************************************/ override public size_t connection_limit ( ) { return cast(size_t)this.listener.connection_limit; } /************************************************************************** Returns: the limit of the number of neo connections (i.e. the maximum number of connections the node can handle in parallel) or 0 if limitation is disabled **************************************************************************/ override public size_t neo_connection_limit ( ) { return 0; } /*************************************************************************** Registers any selectables in the node (including the listener) with the provided epoll selector. Params: epoll = epoll selector to register with ***************************************************************************/ public void register ( EpollSelectDispatcher epoll ) { epoll.register(this.listener); } /*************************************************************************** Flushes write buffers of stream connections. ***************************************************************************/ public void flush ( ) { // TODO: is this needed in channel-less base? } /*************************************************************************** Shuts down the listener and all connections. ***************************************************************************/ public void stopListener ( EpollSelectDispatcher epoll ) { epoll.unregister(this.listener); this.listener.shutdown; } /*************************************************************************** Shuts down the node. The base implementation does nothing. ***************************************************************************/ public void shutdown ( ) { } /************************************************************************** Returns: the number of connections in the pool **************************************************************************/ override public size_t num_connections ( ) { return this.listener.poolInfo.length(); } /************************************************************************** Returns: the number of active connections being handled **************************************************************************/ override public size_t num_open_connections ( ) { return this.listener.poolInfo.num_busy(); } /*************************************************************************** Returns: the number of neo connections in the pool ***************************************************************************/ override public size_t num_neo_connections ( ) { return 0; } /*************************************************************************** Returns: the number of active neo connections being handled ***************************************************************************/ override public size_t num_open_neo_connections ( ) { return 0; } /************************************************************************** Increments the count of received bytes by the specified amount. Params: bytes = number of bytes received **************************************************************************/ override public void receivedBytes ( size_t bytes ) { this.bytes_received_ += bytes; } /************************************************************************** Increments the count of sent bytes by the specified amount. Params: bytes = number of bytes sent **************************************************************************/ override public void sentBytes ( size_t bytes ) { this.bytes_sent_ += bytes; } /************************************************************************** Returns: number of bytes received **************************************************************************/ override public ulong bytes_received ( ) { return this.bytes_received_; } /************************************************************************** Returns: number of bytes sent **************************************************************************/ override public ulong bytes_sent ( ) { return this.bytes_sent_; } /************************************************************************** Obtains the record action counters. A subclass specifies the counter identifiers by returning them from record_action_counter_ids(). Returns: the record action counters. **************************************************************************/ override public RecordActionCounters record_action_counters ( ) { return this.record_action_counters_; } /************************************************************************** Resets the count of received / sent bytes and the record action counters. **************************************************************************/ override public void resetCounters ( ) { this.bytes_received_ = 0; this.bytes_sent_ = 0; this.records_handled_ = 0; this.record_action_counters_.reset(); } /*************************************************************************** Returns: per-request stats tracking instance ***************************************************************************/ override public RequestStats request_stats ( ) { return this.request_stats_; } /*************************************************************************** Returns: per-request neo stats tracking instance ***************************************************************************/ override public RequestStats neo_request_stats ( ) { return this.neo_request_stats_; } /*************************************************************************** Returns: Node item struct, containing node address, port & hash range. ***************************************************************************/ public NodeItem node_item ( ) { return this.node_item_; } /*************************************************************************** Specifies the identifiers for the record action counters to create. By default no record action counters are created; override this method to create them. Returns: the identifiers for the record action counters to create. ***************************************************************************/ protected istring[] record_action_counter_ids ( ) { return null; } /*************************************************************************** Returns: identifier string for this node ***************************************************************************/ abstract protected cstring id ( ); /************************************************************************** Called upon occurrence of an i/o error. In turn calls the user provided error delegate, if one exists. Params: exception = exception which occurred event = select event during which the exception occurred **************************************************************************/ private void error ( Exception exception, IAdvancedSelectClient.Event event, ISwarmConnectionHandlerInfo.IConnectionHandlerInfo conn ) { if ( this.error_dg ) { this.error_dg(exception, event, conn); } } } /******************************************************************************* Node base template. Template params: ConnHandler = type of connection handler (the node contains a SelectListener instance which owns a pool of instances of this type) Setup = type of connection setup parameters, must be a ConnectionSetupParams subclass. *******************************************************************************/ deprecated("Use the neo-capable node base in swarm.node.model.NeoNode") public class NodeBase ( ConnHandler : ISwarmConnectionHandler, Setup : ConnectionSetupParams = ConnectionSetupParams ) : INodeBase { /*************************************************************************** Select listener alias ***************************************************************************/ public alias SelectListener!(ConnHandler, Setup) Listener; /*************************************************************************** Server select listener ***************************************************************************/ private Listener listener; /*************************************************************************** The server socket. ***************************************************************************/ private AddressIPSocket!() socket; /*************************************************************************** Constructor Params: node = node addres & port conn_setup_params = connection handler constructor arguments backlog = (see ISelectListener ctor) ***************************************************************************/ public this ( NodeItem node, Setup conn_setup_params, int backlog ) { enforce(node.validateAddress() == NodeItem.IPVersion.IPv4, "Node listener IP address invalid"); InetAddress!(false) addr; this.socket = new AddressIPSocket!(); this.listener = new Listener(addr(node.Address, node.Port), this.socket, conn_setup_params, backlog); enforce(this.socket.updateAddress() == 0, "socket.updateAddress() failed!"); node.Port = this.socket.port(); super(node, conn_setup_params, this.listener); } /*************************************************************************** Constructor Params: port = node port (uses local address) conn_setup_params = connection handler constructor arguments backlog = (see ISelectListener ctor) ***************************************************************************/ public this ( ushort port, Setup conn_setup_params, int backlog ) { NodeItem node; node.Port = port; InetAddress!(false) addr; this.socket = new AddressIPSocket!(); this.listener = new Listener(addr(node.Port), this.socket, conn_setup_params, backlog); enforce(this.socket.updateAddress() == 0, "socket.updateAddress() failed!"); super(node, conn_setup_params, this.listener); } /*************************************************************************** Writes connection information to log file. ***************************************************************************/ public void connectionLog ( ) { auto conns = this.listener.poolInfo; log.info("Connections: {} open, {} spare in pool", conns.num_busy, conns.num_idle); foreach ( i, conn; conns ) { auto swarm_conn = cast(ISwarmConnectionHandlerInfo)conn; verify(swarm_conn !is null, "Node connection handler does not implement ISwarmConnectionHandlerInfo"); auto client = swarm_conn.registered_client; auto events = client ? client.events : 0; debug { auto id = client ? client.id : "none"; log.info("{}: fd={}, remote={}:{}, cmd={}, had_io={}, events={}, reg={}", i, conn.fileHandle, swarm_conn.address, swarm_conn.port, swarm_conn.command, swarm_conn.had_io, events, id); } else { log.info("{}: fd={}, remote={}:{}, cmd={}, had_io={}, events={}", i, conn.fileHandle, swarm_conn.address, swarm_conn.port, swarm_conn.command, swarm_conn.had_io, events); } } } } version (UnitTest) { private class TestConnectionHandler : ISwarmConnectionHandler { public this (void delegate(IConnectionHandler) a, ConnectionSetupParams b) { super(a, b); } override protected void handleCommand () {} } deprecated private class TestNode : NodeBase!(TestConnectionHandler) { public this ( ) { super(NodeItem("127.0.0.1".dup, 2323), new ConnectionSetupParams, 1); } protected override cstring id ( ) { return "test"; } } }
D
module android.java.android.net.wifi.p2p.nsd.WifiP2pDnsSdServiceRequest; public import android.java.android.net.wifi.p2p.nsd.WifiP2pDnsSdServiceRequest_d_interface; import arsd.jni : ImportExportImpl; mixin ImportExportImpl!WifiP2pDnsSdServiceRequest; import import0 = android.java.android.net.wifi.p2p.nsd.WifiP2pDnsSdServiceRequest; import import3 = android.java.java.lang.Class; import import1 = android.java.android.net.wifi.p2p.nsd.WifiP2pServiceRequest;
D
/Users/WenNiao/myproject/iosprojects/HackerNews/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/MultipartFormData.o : /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Alamofire.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Download.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Error.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Manager.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/MultipartFormData.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Notifications.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/ParameterEncoding.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Request.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Response.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/ResponseSerialization.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Result.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/ServerTrustPolicy.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Stream.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Timeline.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Upload.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Validation.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/WenNiao/myproject/iosprojects/HackerNews/build/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/WenNiao/myproject/iosprojects/HackerNews/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/MultipartFormData~partial.swiftmodule : /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Alamofire.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Download.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Error.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Manager.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/MultipartFormData.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Notifications.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/ParameterEncoding.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Request.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Response.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/ResponseSerialization.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Result.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/ServerTrustPolicy.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Stream.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Timeline.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Upload.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Validation.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/WenNiao/myproject/iosprojects/HackerNews/build/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/WenNiao/myproject/iosprojects/HackerNews/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/MultipartFormData~partial.swiftdoc : /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Alamofire.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Download.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Error.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Manager.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/MultipartFormData.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Notifications.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/ParameterEncoding.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Request.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Response.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/ResponseSerialization.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Result.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/ServerTrustPolicy.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Stream.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Timeline.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Upload.swift /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Alamofire/Source/Validation.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/WenNiao/myproject/iosprojects/HackerNews/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/WenNiao/myproject/iosprojects/HackerNews/build/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
module hunt.web.client.SecureWebSocketClientSingleton; version(WITH_HUNT_SECURITY) : import hunt.web.client.SimpleWebSocketClient; import hunt.web.client.SimpleHttpClientConfiguration; import hunt.util.Lifecycle; import hunt.collection.Collections; /** * */ class SecureWebSocketClientSingleton : AbstractLifecycle { private __gshared SecureWebSocketClientSingleton ourInstance; shared static this() { ourInstance = new SecureWebSocketClientSingleton(); } static SecureWebSocketClientSingleton getInstance() { return ourInstance; } private SimpleWebSocketClient webSocketClient; private this() { start(); } SimpleWebSocketClient secureWebSocketClient() { return webSocketClient; } override protected void initialize() { SimpleHttpClientConfiguration http2Configuration = new SimpleHttpClientConfiguration(); http2Configuration.setSecureConnectionEnabled(true); http2Configuration.getSecureSessionFactory().setSupportedProtocols(["http/1.1"]); webSocketClient = new SimpleWebSocketClient(http2Configuration); } override protected void destroy() { webSocketClient.stop(); } }
D
/** This module is a submodule of $(LINK2 std_range.html, std.range). It provides basic range functionality by defining several templates for testing whether a given object is a _range, and what kind of _range it is: $(BOOKTABLE , $(TR $(TD $(D $(LREF isInputRange))) $(TD Tests if something is an $(I input _range), defined to be something from which one can sequentially read data using the primitives $(D front), $(D popFront), and $(D empty). )) $(TR $(TD $(D $(LREF isOutputRange))) $(TD Tests if something is an $(I output _range), defined to be something to which one can sequentially write data using the $(D $(LREF put)) primitive. )) $(TR $(TD $(D $(LREF isForwardRange))) $(TD Tests if something is a $(I forward _range), defined to be an input _range with the additional capability that one can save one's current position with the $(D save) primitive, thus allowing one to iterate over the same _range multiple times. )) $(TR $(TD $(D $(LREF isBidirectionalRange))) $(TD Tests if something is a $(I bidirectional _range), that is, a forward _range that allows reverse traversal using the primitives $(D back) and $(D popBack). )) $(TR $(TD $(D $(LREF isRandomAccessRange))) $(TD Tests if something is a $(I random access _range), which is a bidirectional _range that also supports the array subscripting operation via the primitive $(D opIndex). )) ) It also provides number of templates that test for various _range capabilities: $(BOOKTABLE , $(TR $(TD $(D $(LREF hasMobileElements))) $(TD Tests if a given _range's elements can be moved around using the primitives $(D moveFront), $(D moveBack), or $(D moveAt). )) $(TR $(TD $(D $(LREF ElementType))) $(TD Returns the element type of a given _range. )) $(TR $(TD $(D $(LREF ElementEncodingType))) $(TD Returns the encoding element type of a given _range. )) $(TR $(TD $(D $(LREF hasSwappableElements))) $(TD Tests if a _range is a forward _range with swappable elements. )) $(TR $(TD $(D $(LREF hasAssignableElements))) $(TD Tests if a _range is a forward _range with mutable elements. )) $(TR $(TD $(D $(LREF hasLvalueElements))) $(TD Tests if a _range is a forward _range with elements that can be passed by reference and have their address taken. )) $(TR $(TD $(D $(LREF hasLength))) $(TD Tests if a given _range has the $(D length) attribute. )) $(TR $(TD $(D $(LREF isInfinite))) $(TD Tests if a given _range is an $(I infinite _range). )) $(TR $(TD $(D $(LREF hasSlicing))) $(TD Tests if a given _range supports the array slicing operation $(D R[x..y]). )) ) Finally, it includes some convenience functions for manipulating ranges: $(BOOKTABLE , $(TR $(TD $(D $(LREF popFrontN))) $(TD Advances a given _range by up to $(I n) elements. )) $(TR $(TD $(D $(LREF popBackN))) $(TD Advances a given bidirectional _range from the right by up to $(I n) elements. )) $(TR $(TD $(D $(LREF popFrontExactly))) $(TD Advances a given _range by up exactly $(I n) elements. )) $(TR $(TD $(D $(LREF popBackExactly))) $(TD Advances a given bidirectional _range from the right by exactly $(I n) elements. )) $(TR $(TD $(D $(LREF moveFront))) $(TD Removes the front element of a _range. )) $(TR $(TD $(D $(LREF moveBack))) $(TD Removes the back element of a bidirectional _range. )) $(TR $(TD $(D $(LREF moveAt))) $(TD Removes the $(I i)'th element of a random-access _range. )) $(TR $(TD $(D $(LREF walkLength))) $(TD Computes the length of any _range in O(n) time. )) ) Source: $(PHOBOSSRC std/range/_primitives.d) Macros: WIKI = Phobos/StdRange Copyright: Copyright by authors 2008-. License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: $(WEB erdani.com, Andrei Alexandrescu), David Simcha, and Jonathan M Davis. Credit for some of the ideas in building this module goes to $(WEB fantascienza.net/leonardo/so/, Leonardo Maffi). */ module std.range.primitives; import std.traits; /** Returns $(D true) if $(D R) is an input range. An input range must define the primitives $(D empty), $(D popFront), and $(D front). The following code should compile for any input range. ---- R r; // can define a range object if (r.empty) {} // can test for empty r.popFront(); // can invoke popFront() auto h = r.front; // can get the front of the range of non-void type ---- The semantics of an input range (not checkable during compilation) are assumed to be the following ($(D r) is an object of type $(D R)): $(UL $(LI $(D r.empty) returns $(D false) iff there is more data available in the range.) $(LI $(D r.front) returns the current element in the range. It may return by value or by reference. Calling $(D r.front) is allowed only if calling $(D r.empty) has, or would have, returned $(D false).) $(LI $(D r.popFront) advances to the next element in the range. Calling $(D r.popFront) is allowed only if calling $(D r.empty) has, or would have, returned $(D false).)) Params: R = type to be tested Returns: true if R is an InputRange, false if not */ template isInputRange(R) { enum bool isInputRange = is(typeof( (inout int = 0) { R r = R.init; // can define a range object if (r.empty) {} // can test for empty r.popFront(); // can invoke popFront() auto h = r.front; // can get the front of the range })); } /// @safe unittest { struct A {} struct B { void popFront(); @property bool empty(); @property int front(); } static assert(!isInputRange!A); static assert( isInputRange!B); static assert( isInputRange!(int[])); static assert( isInputRange!(char[])); static assert(!isInputRange!(char[4])); static assert( isInputRange!(inout(int)[])); } /+ puts the whole raw element $(D e) into $(D r). doPut will not attempt to iterate, slice or transcode $(D e) in any way shape or form. It will $(B only) call the correct primitive ($(D r.put(e)), $(D r.front = e) or $(D r(0)) once. This can be important when $(D e) needs to be placed in $(D r) unchanged. Furthermore, it can be useful when working with $(D InputRange)s, as doPut guarantees that no more than a single element will be placed. +/ private void doPut(R, E)(ref R r, auto ref E e) { static if(is(PointerTarget!R == struct)) enum usingPut = hasMember!(PointerTarget!R, "put"); else enum usingPut = hasMember!(R, "put"); static if (usingPut) { static assert(is(typeof(r.put(e))), "Cannot nativaly put a " ~ E.stringof ~ " into a " ~ R.stringof ~ "."); r.put(e); } else static if (isInputRange!R) { static assert(is(typeof(r.front = e)), "Cannot nativaly put a " ~ E.stringof ~ " into a " ~ R.stringof ~ "."); r.front = e; r.popFront(); } else static if (is(typeof(r(e)))) { r(e); } else { static assert (false, "Cannot nativaly put a " ~ E.stringof ~ " into a " ~ R.stringof ~ "."); } } @safe unittest { static assert (!isNativeOutputRange!(int, int)); static assert ( isNativeOutputRange!(int[], int)); static assert (!isNativeOutputRange!(int[][], int)); static assert (!isNativeOutputRange!(int, int[])); static assert (!isNativeOutputRange!(int[], int[])); static assert ( isNativeOutputRange!(int[][], int[])); static assert (!isNativeOutputRange!(int, int[][])); static assert (!isNativeOutputRange!(int[], int[][])); static assert (!isNativeOutputRange!(int[][], int[][])); static assert (!isNativeOutputRange!(int[4], int)); static assert ( isNativeOutputRange!(int[4][], int)); //Scary! static assert ( isNativeOutputRange!(int[4][], int[4])); static assert (!isNativeOutputRange!( char[], char)); static assert (!isNativeOutputRange!( char[], dchar)); static assert ( isNativeOutputRange!(dchar[], char)); static assert ( isNativeOutputRange!(dchar[], dchar)); } /++ Outputs $(D e) to $(D r). The exact effect is dependent upon the two types. Several cases are accepted, as described below. The code snippets are attempted in order, and the first to compile "wins" and gets evaluated. In this table "doPut" is a method that places $(D e) into $(D r), using the correct primitive: $(D r.put(e)) if $(D R) defines $(D put), $(D r.front = e) if $(D r) is an input range (followed by $(D r.popFront())), or $(D r(e)) otherwise. $(BOOKTABLE , $(TR $(TH Code Snippet) $(TH Scenario) ) $(TR $(TD $(D r.doPut(e);)) $(TD $(D R) specifically accepts an $(D E).) ) $(TR $(TD $(D r.doPut([ e ]);)) $(TD $(D R) specifically accepts an $(D E[]).) ) $(TR $(TD $(D r.putChar(e);)) $(TD $(D R) accepts some form of string or character. put will transcode the character $(D e) accordingly.) ) $(TR $(TD $(D for (; !e.empty; e.popFront()) put(r, e.front);)) $(TD Copying range $(D E) into $(D R).) ) ) Tip: $(D put) should $(I not) be used "UFCS-style", e.g. $(D r.put(e)). Doing this may call $(D R.put) directly, by-passing any transformation feature provided by $(D Range.put). $(D put(r, e)) is prefered. +/ void put(R, E)(ref R r, E e) { //First level: simply straight up put. static if (is(typeof(doPut(r, e)))) { doPut(r, e); } //Optional optimization block for straight up array to array copy. else static if (isDynamicArray!R && !isNarrowString!R && isDynamicArray!E && is(typeof(r[] = e[]))) { immutable len = e.length; r[0 .. len] = e[]; r = r[len .. $]; } //Accepts E[] ? else static if (is(typeof(doPut(r, [e]))) && !isDynamicArray!R) { if (__ctfe) { E[1] arr = [e]; doPut(r, arr[]); } else doPut(r, (ref e) @trusted { return (&e)[0..1]; }(e)); } //special case for char to string. else static if (isSomeChar!E && is(typeof(putChar(r, e)))) { putChar(r, e); } //Extract each element from the range //We can use "put" here, so we can recursively test a RoR of E. else static if (isInputRange!E && is(typeof(put(r, e.front)))) { //Special optimization: If E is a narrow string, and r accepts characters no-wider than the string's //Then simply feed the characters 1 by 1. static if (isNarrowString!E && ( (is(E : const char[]) && is(typeof(doPut(r, char.max))) && !is(typeof(doPut(r, dchar.max))) && !is(typeof(doPut(r, wchar.max)))) || (is(E : const wchar[]) && is(typeof(doPut(r, wchar.max))) && !is(typeof(doPut(r, dchar.max)))) ) ) { foreach(c; e) doPut(r, c); } else { for (; !e.empty; e.popFront()) put(r, e.front); } } else { static assert (false, "Cannot put a " ~ E.stringof ~ " into a " ~ R.stringof ~ "."); } } @safe pure nothrow @nogc unittest { static struct R() { void put(in char[]) {} } R!() r; put(r, 'a'); } //Helper function to handle chars as quickly and as elegantly as possible //Assumes r.put(e)/r(e) has already been tested private void putChar(R, E)(ref R r, E e) if (isSomeChar!E) { ////@@@9186@@@: Can't use (E[]).init ref const( char)[] cstringInit(); ref const(wchar)[] wstringInit(); ref const(dchar)[] dstringInit(); enum csCond = !isDynamicArray!R && is(typeof(doPut(r, cstringInit()))); enum wsCond = !isDynamicArray!R && is(typeof(doPut(r, wstringInit()))); enum dsCond = !isDynamicArray!R && is(typeof(doPut(r, dstringInit()))); //Use "max" to avoid static type demotion enum ccCond = is(typeof(doPut(r, char.max))); enum wcCond = is(typeof(doPut(r, wchar.max))); //enum dcCond = is(typeof(doPut(r, dchar.max))); //Fast transform a narrow char into a wider string static if ((wsCond && E.sizeof < wchar.sizeof) || (dsCond && E.sizeof < dchar.sizeof)) { enum w = wsCond && E.sizeof < wchar.sizeof; Select!(w, wchar, dchar) c = e; typeof(c)[1] arr = [c]; doPut(r, arr[]); } //Encode a wide char into a narrower string else static if (wsCond || csCond) { import std.utf : encode; /+static+/ Select!(wsCond, wchar[2], char[4]) buf; //static prevents purity. doPut(r, buf[0 .. encode(buf, e)]); } //Slowly encode a wide char into a series of narrower chars else static if (wcCond || ccCond) { import std.encoding : encode; alias C = Select!(wcCond, wchar, char); encode!(C, R)(e, r); } else { static assert (false, "Cannot put a " ~ E.stringof ~ " into a " ~ R.stringof ~ "."); } } pure unittest { auto f = delegate (const(char)[]) {}; putChar(f, cast(dchar)'a'); } @safe pure unittest { static struct R() { void put(in char[]) {} } R!() r; putChar(r, 'a'); } unittest { struct A {} static assert(!isInputRange!(A)); struct B { void put(int) {} } B b; put(b, 5); } unittest { int[] a = [1, 2, 3], b = [10, 20]; auto c = a; put(a, b); assert(c == [10, 20, 3]); assert(a == [3]); } unittest { int[] a = new int[10]; int b; static assert(isInputRange!(typeof(a))); put(a, b); } unittest { void myprint(in char[] s) { } auto r = &myprint; put(r, 'a'); } unittest { int[] a = new int[10]; static assert(!__traits(compiles, put(a, 1.0L))); static assert( __traits(compiles, put(a, 1))); /* * a[0] = 65; // OK * a[0] = 'A'; // OK * a[0] = "ABC"[0]; // OK * put(a, "ABC"); // OK */ static assert( __traits(compiles, put(a, "ABC"))); } unittest { char[] a = new char[10]; static assert(!__traits(compiles, put(a, 1.0L))); static assert(!__traits(compiles, put(a, 1))); // char[] is NOT output range. static assert(!__traits(compiles, put(a, 'a'))); static assert(!__traits(compiles, put(a, "ABC"))); } unittest { int[][] a; int[] b; int c; static assert( __traits(compiles, put(b, c))); static assert( __traits(compiles, put(a, b))); static assert(!__traits(compiles, put(a, c))); } unittest { int[][] a = new int[][](3); int[] b = [1]; auto aa = a; put(aa, b); assert(aa == [[], []]); assert(a == [[1], [], []]); int[][3] c = [2]; aa = a; put(aa, c[]); assert(aa.empty); assert(a == [[2], [2], [2]]); } unittest { // Test fix for bug 7476. struct LockingTextWriter { void put(dchar c){} } struct RetroResult { bool end = false; @property bool empty() const { return end; } @property dchar front(){ return 'a'; } void popFront(){ end = true; } } LockingTextWriter w; RetroResult r; put(w, r); } unittest { import std.conv : to; import std.typecons : tuple; import std.typetuple; static struct PutC(C) { string result; void put(const(C) c) { result ~= to!string((&c)[0..1]); } } static struct PutS(C) { string result; void put(const(C)[] s) { result ~= to!string(s); } } static struct PutSS(C) { string result; void put(const(C)[][] ss) { foreach(s; ss) result ~= to!string(s); } } PutS!char p; putChar(p, cast(dchar)'a'); //Source Char foreach (SC; TypeTuple!(char, wchar, dchar)) { SC ch = 'I'; dchar dh = '♥'; immutable(SC)[] s = "日本語!"; immutable(SC)[][] ss = ["日本語", "が", "好き", "ですか", "?"]; //Target Char foreach (TC; TypeTuple!(char, wchar, dchar)) { //Testing PutC and PutS foreach (Type; TypeTuple!(PutC!TC, PutS!TC)) (){ // avoid slow optimizations for large functions @@@BUG@@@ 2396 Type type; auto sink = new Type(); //Testing put and sink foreach (value ; tuple(type, sink)) { put(value, ch); assert(value.result == "I"); put(value, dh); assert(value.result == "I♥"); put(value, s); assert(value.result == "I♥日本語!"); put(value, ss); assert(value.result == "I♥日本語!日本語が好きですか?"); } }(); } } } unittest { static struct CharRange { char c; enum empty = false; void popFront(){}; ref char front() return @property { return c; } } CharRange c; put(c, cast(dchar)'H'); put(c, "hello"d); } unittest { // issue 9823 const(char)[] r; void delegate(const(char)[]) dg = (s) { r = s; }; put(dg, ["ABC"]); assert(r == "ABC"); } unittest { // issue 10571 import std.format; string buf; formattedWrite((in char[] s) { buf ~= s; }, "%s", "hello"); assert(buf == "hello"); } unittest { import std.format; import std.typetuple; struct PutC(C) { void put(C){} } struct PutS(C) { void put(const(C)[]){} } struct CallC(C) { void opCall(C){} } struct CallS(C) { void opCall(const(C)[]){} } struct FrontC(C) { enum empty = false; auto front()@property{return C.init;} void front(C)@property{} void popFront(){} } struct FrontS(C) { enum empty = false; auto front()@property{return C[].init;} void front(const(C)[])@property{} void popFront(){} } void foo() { foreach(C; TypeTuple!(char, wchar, dchar)) { formattedWrite((C c){}, "", 1, 'a', cast(wchar)'a', cast(dchar)'a', "a"c, "a"w, "a"d); formattedWrite((const(C)[]){}, "", 1, 'a', cast(wchar)'a', cast(dchar)'a', "a"c, "a"w, "a"d); formattedWrite(PutC!C(), "", 1, 'a', cast(wchar)'a', cast(dchar)'a', "a"c, "a"w, "a"d); formattedWrite(PutS!C(), "", 1, 'a', cast(wchar)'a', cast(dchar)'a', "a"c, "a"w, "a"d); CallC!C callC; CallS!C callS; formattedWrite(callC, "", 1, 'a', cast(wchar)'a', cast(dchar)'a', "a"c, "a"w, "a"d); formattedWrite(callS, "", 1, 'a', cast(wchar)'a', cast(dchar)'a', "a"c, "a"w, "a"d); formattedWrite(FrontC!C(), "", 1, 'a', cast(wchar)'a', cast(dchar)'a', "a"c, "a"w, "a"d); formattedWrite(FrontS!C(), "", 1, 'a', cast(wchar)'a', cast(dchar)'a', "a"c, "a"w, "a"d); } formattedWrite((dchar[]).init, "", 1, 'a', cast(wchar)'a', cast(dchar)'a', "a"c, "a"w, "a"d); } } /+ Returns $(D true) if $(D R) is a native output range for elements of type $(D E). An output range is defined functionally as a range that supports the operation $(D doPut(r, e)) as defined above. if $(D doPut(r, e)) is valid, then $(D put(r,e)) will have the same behavior. The two guarantees isNativeOutputRange gives over the larger $(D isOutputRange) are: 1: $(D e) is $(B exactly) what will be placed (not $(D [e]), for example). 2: if $(D E) is a non $(empty) $(D InputRange), then placing $(D e) is guaranteed to not overflow the range. +/ package template isNativeOutputRange(R, E) { enum bool isNativeOutputRange = is(typeof( (inout int = 0) { R r = void; E e; doPut(r, e); })); } /// @safe unittest { int[] r = new int[](4); static assert(isInputRange!(int[])); static assert( isNativeOutputRange!(int[], int)); static assert(!isNativeOutputRange!(int[], int[])); static assert( isOutputRange!(int[], int[])); if (!r.empty) put(r, 1); //guaranteed to succeed if (!r.empty) put(r, [1, 2]); //May actually error out. } /++ Returns $(D true) if $(D R) is an output range for elements of type $(D E). An output range is defined functionally as a range that supports the operation $(D put(r, e)) as defined above. +/ template isOutputRange(R, E) { enum bool isOutputRange = is(typeof( (inout int = 0) { R r = R.init; E e = E.init; put(r, e); })); } /// @safe unittest { void myprint(in char[] s) { } static assert(isOutputRange!(typeof(&myprint), char)); static assert(!isOutputRange!(char[], char)); static assert( isOutputRange!(dchar[], wchar)); static assert( isOutputRange!(dchar[], dchar)); } @safe unittest { import std.array; import std.stdio : writeln; auto app = appender!string(); string s; static assert( isOutputRange!(Appender!string, string)); static assert( isOutputRange!(Appender!string*, string)); static assert(!isOutputRange!(Appender!string, int)); static assert(!isOutputRange!(wchar[], wchar)); static assert( isOutputRange!(dchar[], char)); static assert( isOutputRange!(dchar[], string)); static assert( isOutputRange!(dchar[], wstring)); static assert( isOutputRange!(dchar[], dstring)); static assert(!isOutputRange!(const(int)[], int)); static assert(!isOutputRange!(inout(int)[], int)); } /** Returns $(D true) if $(D R) is a forward range. A forward range is an input range $(D r) that can save "checkpoints" by saving $(D r.save) to another value of type $(D R). Notable examples of input ranges that are $(I not) forward ranges are file/socket ranges; copying such a range will not save the position in the stream, and they most likely reuse an internal buffer as the entire stream does not sit in memory. Subsequently, advancing either the original or the copy will advance the stream, so the copies are not independent. The following code should compile for any forward range. ---- static assert(isInputRange!R); R r1; auto s1 = r1.save; static assert (is(typeof(s1) == R)); ---- Saving a range is not duplicating it; in the example above, $(D r1) and $(D r2) still refer to the same underlying data. They just navigate that data independently. The semantics of a forward range (not checkable during compilation) are the same as for an input range, with the additional requirement that backtracking must be possible by saving a copy of the range object with $(D save) and using it later. */ template isForwardRange(R) { enum bool isForwardRange = isInputRange!R && is(typeof( (inout int = 0) { R r1 = R.init; // NOTE: we cannot check typeof(r1.save) directly // because typeof may not check the right type there, and // because we want to ensure the range can be copied. auto s1 = r1.save; static assert (is(typeof(s1) == R)); })); } /// @safe unittest { static assert(!isForwardRange!(int)); static assert( isForwardRange!(int[])); static assert( isForwardRange!(inout(int)[])); } @safe unittest { // BUG 14544 struct R14544 { int front() { return 0;} void popFront() {} bool empty() { return false; } R14544 save() {return this;} } static assert( isForwardRange!R14544 ); } /** Returns $(D true) if $(D R) is a bidirectional range. A bidirectional range is a forward range that also offers the primitives $(D back) and $(D popBack). The following code should compile for any bidirectional range. The semantics of a bidirectional range (not checkable during compilation) are assumed to be the following ($(D r) is an object of type $(D R)): $(UL $(LI $(D r.back) returns (possibly a reference to) the last element in the range. Calling $(D r.back) is allowed only if calling $(D r.empty) has, or would have, returned $(D false).)) */ template isBidirectionalRange(R) { enum bool isBidirectionalRange = isForwardRange!R && is(typeof( (inout int = 0) { R r = R.init; r.popBack(); auto t = r.back; auto w = r.front; static assert(is(typeof(t) == typeof(w))); })); } /// unittest { alias R = int[]; R r = [0,1]; static assert(isForwardRange!R); // is forward range r.popBack(); // can invoke popBack auto t = r.back; // can get the back of the range auto w = r.front; static assert(is(typeof(t) == typeof(w))); // same type for front and back } @safe unittest { struct A {} struct B { void popFront(); @property bool empty(); @property int front(); } struct C { @property bool empty(); @property C save(); void popFront(); @property int front(); void popBack(); @property int back(); } static assert(!isBidirectionalRange!(A)); static assert(!isBidirectionalRange!(B)); static assert( isBidirectionalRange!(C)); static assert( isBidirectionalRange!(int[])); static assert( isBidirectionalRange!(char[])); static assert( isBidirectionalRange!(inout(int)[])); } /** Returns $(D true) if $(D R) is a random-access range. A random-access range is a bidirectional range that also offers the primitive $(D opIndex), OR an infinite forward range that offers $(D opIndex). In either case, the range must either offer $(D length) or be infinite. The following code should compile for any random-access range. The semantics of a random-access range (not checkable during compilation) are assumed to be the following ($(D r) is an object of type $(D R)): $(UL $(LI $(D r.opIndex(n)) returns a reference to the $(D n)th element in the range.)) Although $(D char[]) and $(D wchar[]) (as well as their qualified versions including $(D string) and $(D wstring)) are arrays, $(D isRandomAccessRange) yields $(D false) for them because they use variable-length encodings (UTF-8 and UTF-16 respectively). These types are bidirectional ranges only. */ template isRandomAccessRange(R) { enum bool isRandomAccessRange = is(typeof( (inout int = 0) { static assert(isBidirectionalRange!R || isForwardRange!R && isInfinite!R); R r = R.init; auto e = r[1]; auto f = r.front; static assert(is(typeof(e) == typeof(f))); static assert(!isNarrowString!R); static assert(hasLength!R || isInfinite!R); static if(is(typeof(r[$]))) { static assert(is(typeof(f) == typeof(r[$]))); static if(!isInfinite!R) static assert(is(typeof(f) == typeof(r[$ - 1]))); } })); } /// unittest { alias R = int[]; // range is finite and bidirectional or infinite and forward. static assert(isBidirectionalRange!R || isForwardRange!R && isInfinite!R); R r = [0,1]; auto e = r[1]; // can index auto f = r.front; static assert(is(typeof(e) == typeof(f))); // same type for indexed and front static assert(!isNarrowString!R); // narrow strings cannot be indexed as ranges static assert(hasLength!R || isInfinite!R); // must have length or be infinite // $ must work as it does with arrays if opIndex works with $ static if(is(typeof(r[$]))) { static assert(is(typeof(f) == typeof(r[$]))); // $ - 1 doesn't make sense with infinite ranges but needs to work // with finite ones. static if(!isInfinite!R) static assert(is(typeof(f) == typeof(r[$ - 1]))); } } @safe unittest { struct A {} struct B { void popFront(); @property bool empty(); @property int front(); } struct C { void popFront(); @property bool empty(); @property int front(); void popBack(); @property int back(); } struct D { @property bool empty(); @property D save(); @property int front(); void popFront(); @property int back(); void popBack(); ref int opIndex(uint); @property size_t length(); alias opDollar = length; //int opSlice(uint, uint); } struct E { bool empty(); E save(); int front(); void popFront(); int back(); void popBack(); ref int opIndex(uint); size_t length(); alias opDollar = length; //int opSlice(uint, uint); } static assert(!isRandomAccessRange!(A)); static assert(!isRandomAccessRange!(B)); static assert(!isRandomAccessRange!(C)); static assert( isRandomAccessRange!(D)); static assert( isRandomAccessRange!(E)); static assert( isRandomAccessRange!(int[])); static assert( isRandomAccessRange!(inout(int)[])); } @safe unittest { // Test fix for bug 6935. struct R { @disable this(); @property bool empty() const { return false; } @property int front() const { return 0; } void popFront() {} @property R save() { return this; } @property int back() const { return 0; } void popBack(){} int opIndex(size_t n) const { return 0; } @property size_t length() const { return 0; } alias opDollar = length; void put(int e){ } } static assert(isInputRange!R); static assert(isForwardRange!R); static assert(isBidirectionalRange!R); static assert(isRandomAccessRange!R); static assert(isOutputRange!(R, int)); } /** Returns $(D true) iff $(D R) is an input range that supports the $(D moveFront) primitive, as well as $(D moveBack) and $(D moveAt) if it's a bidirectional or random access range. These may be explicitly implemented, or may work via the default behavior of the module level functions $(D moveFront) and friends. The following code should compile for any range with mobile elements. ---- alias E = ElementType!R; R r; static assert(isInputRange!R); static assert(is(typeof(moveFront(r)) == E)); static if (isBidirectionalRange!R) static assert(is(typeof(moveBack(r)) == E)); static if (isRandomAccessRange!R) static assert(is(typeof(moveAt(r, 0)) == E)); ---- */ template hasMobileElements(R) { enum bool hasMobileElements = isInputRange!R && is(typeof( (inout int = 0) { alias E = ElementType!R; R r = R.init; static assert(is(typeof(moveFront(r)) == E)); static if (isBidirectionalRange!R) static assert(is(typeof(moveBack(r)) == E)); static if (isRandomAccessRange!R) static assert(is(typeof(moveAt(r, 0)) == E)); })); } /// @safe unittest { import std.algorithm : map; import std.range : iota, repeat; static struct HasPostblit { this(this) {} } auto nonMobile = map!"a"(repeat(HasPostblit.init)); static assert(!hasMobileElements!(typeof(nonMobile))); static assert( hasMobileElements!(int[])); static assert( hasMobileElements!(inout(int)[])); static assert( hasMobileElements!(typeof(iota(1000)))); static assert( hasMobileElements!( string)); static assert( hasMobileElements!(dstring)); static assert( hasMobileElements!( char[])); static assert( hasMobileElements!(dchar[])); } /** The element type of $(D R). $(D R) does not have to be a range. The element type is determined as the type yielded by $(D r.front) for an object $(D r) of type $(D R). For example, $(D ElementType!(T[])) is $(D T) if $(D T[]) isn't a narrow string; if it is, the element type is $(D dchar). If $(D R) doesn't have $(D front), $(D ElementType!R) is $(D void). */ template ElementType(R) { static if (is(typeof(R.init.front.init) T)) alias ElementType = T; else alias ElementType = void; } /// @safe unittest { import std.range : iota; // Standard arrays: returns the type of the elements of the array static assert(is(ElementType!(int[]) == int)); // Accessing .front retrieves the decoded dchar static assert(is(ElementType!(char[]) == dchar)); // rvalue static assert(is(ElementType!(dchar[]) == dchar)); // lvalue // Ditto static assert(is(ElementType!(string) == dchar)); static assert(is(ElementType!(dstring) == immutable(dchar))); // For ranges it gets the type of .front. auto range = iota(0, 10); static assert(is(ElementType!(typeof(range)) == int)); } @safe unittest { static assert(is(ElementType!(byte[]) == byte)); static assert(is(ElementType!(wchar[]) == dchar)); // rvalue static assert(is(ElementType!(wstring) == dchar)); } @safe unittest { enum XYZ : string { a = "foo" } auto x = XYZ.a.front; immutable char[3] a = "abc"; int[] i; void[] buf; static assert(is(ElementType!(XYZ) == dchar)); static assert(is(ElementType!(typeof(a)) == dchar)); static assert(is(ElementType!(typeof(i)) == int)); static assert(is(ElementType!(typeof(buf)) == void)); static assert(is(ElementType!(inout(int)[]) == inout(int))); static assert(is(ElementType!(inout(int[])) == inout(int))); } @safe unittest { static assert(is(ElementType!(int[5]) == int)); static assert(is(ElementType!(int[0]) == int)); static assert(is(ElementType!(char[5]) == dchar)); static assert(is(ElementType!(char[0]) == dchar)); } @safe unittest //11336 { static struct S { this(this) @disable; } static assert(is(ElementType!(S[]) == S)); } @safe unittest // 11401 { // ElementType should also work for non-@propety 'front' struct E { ushort id; } struct R { E front() { return E.init; } } static assert(is(ElementType!R == E)); } /** The encoding element type of $(D R). For narrow strings ($(D char[]), $(D wchar[]) and their qualified variants including $(D string) and $(D wstring)), $(D ElementEncodingType) is the character type of the string. For all other types, $(D ElementEncodingType) is the same as $(D ElementType). */ template ElementEncodingType(R) { static if (is(StringTypeOf!R) && is(R : E[], E)) alias ElementEncodingType = E; else alias ElementEncodingType = ElementType!R; } /// @safe unittest { import std.range : iota; // internally the range stores the encoded type static assert(is(ElementEncodingType!(char[]) == char)); static assert(is(ElementEncodingType!(wstring) == immutable(wchar))); static assert(is(ElementEncodingType!(byte[]) == byte)); auto range = iota(0, 10); static assert(is(ElementEncodingType!(typeof(range)) == int)); } @safe unittest { static assert(is(ElementEncodingType!(wchar[]) == wchar)); static assert(is(ElementEncodingType!(dchar[]) == dchar)); static assert(is(ElementEncodingType!(string) == immutable(char))); static assert(is(ElementEncodingType!(dstring) == immutable(dchar))); static assert(is(ElementEncodingType!(int[]) == int)); } @safe unittest { enum XYZ : string { a = "foo" } auto x = XYZ.a.front; immutable char[3] a = "abc"; int[] i; void[] buf; static assert(is(ElementType!(XYZ) : dchar)); static assert(is(ElementEncodingType!(char[]) == char)); static assert(is(ElementEncodingType!(string) == immutable char)); static assert(is(ElementType!(typeof(a)) : dchar)); static assert(is(ElementType!(typeof(i)) == int)); static assert(is(ElementEncodingType!(typeof(i)) == int)); static assert(is(ElementType!(typeof(buf)) : void)); static assert(is(ElementEncodingType!(inout char[]) : inout(char))); } @safe unittest { static assert(is(ElementEncodingType!(int[5]) == int)); static assert(is(ElementEncodingType!(int[0]) == int)); static assert(is(ElementEncodingType!(char[5]) == char)); static assert(is(ElementEncodingType!(char[0]) == char)); } /** Returns $(D true) if $(D R) is an input range and has swappable elements. The following code should compile for any range with swappable elements. ---- R r; static assert(isInputRange!R); swap(r.front, r.front); static if (isBidirectionalRange!R) swap(r.back, r.front); static if (isRandomAccessRange!R) swap(r[], r.front); ---- */ template hasSwappableElements(R) { import std.algorithm : swap; enum bool hasSwappableElements = isInputRange!R && is(typeof( (inout int = 0) { R r = R.init; swap(r.front, r.front); static if (isBidirectionalRange!R) swap(r.back, r.front); static if (isRandomAccessRange!R) swap(r[0], r.front); })); } /// @safe unittest { static assert(!hasSwappableElements!(const int[])); static assert(!hasSwappableElements!(const(int)[])); static assert(!hasSwappableElements!(inout(int)[])); static assert( hasSwappableElements!(int[])); static assert(!hasSwappableElements!( string)); static assert(!hasSwappableElements!(dstring)); static assert(!hasSwappableElements!( char[])); static assert( hasSwappableElements!(dchar[])); } /** Returns $(D true) if $(D R) is an input range and has mutable elements. The following code should compile for any range with assignable elements. ---- R r; static assert(isInputRange!R); r.front = r.front; static if (isBidirectionalRange!R) r.back = r.front; static if (isRandomAccessRange!R) r[0] = r.front; ---- */ template hasAssignableElements(R) { enum bool hasAssignableElements = isInputRange!R && is(typeof( (inout int = 0) { R r = R.init; r.front = r.front; static if (isBidirectionalRange!R) r.back = r.front; static if (isRandomAccessRange!R) r[0] = r.front; })); } /// @safe unittest { static assert(!hasAssignableElements!(const int[])); static assert(!hasAssignableElements!(const(int)[])); static assert( hasAssignableElements!(int[])); static assert(!hasAssignableElements!(inout(int)[])); static assert(!hasAssignableElements!( string)); static assert(!hasAssignableElements!(dstring)); static assert(!hasAssignableElements!( char[])); static assert( hasAssignableElements!(dchar[])); } /** Tests whether the range $(D R) has lvalue elements. These are defined as elements that can be passed by reference and have their address taken. The following code should compile for any range with lvalue elements. ---- void passByRef(ref ElementType!R stuff); ... static assert(isInputRange!R); passByRef(r.front); static if (isBidirectionalRange!R) passByRef(r.back); static if (isRandomAccessRange!R) passByRef(r[0]); ---- */ template hasLvalueElements(R) { enum bool hasLvalueElements = isInputRange!R && is(typeof( (inout int = 0) { void checkRef(ref ElementType!R stuff); R r = R.init; checkRef(r.front); static if (isBidirectionalRange!R) checkRef(r.back); static if (isRandomAccessRange!R) checkRef(r[0]); })); } /// @safe unittest { import std.range : iota, chain; static assert( hasLvalueElements!(int[])); static assert( hasLvalueElements!(const(int)[])); static assert( hasLvalueElements!(inout(int)[])); static assert( hasLvalueElements!(immutable(int)[])); static assert(!hasLvalueElements!(typeof(iota(3)))); static assert(!hasLvalueElements!( string)); static assert( hasLvalueElements!(dstring)); static assert(!hasLvalueElements!( char[])); static assert( hasLvalueElements!(dchar[])); auto c = chain([1, 2, 3], [4, 5, 6]); static assert( hasLvalueElements!(typeof(c))); } @safe unittest { // bugfix 6336 struct S { immutable int value; } static assert( isInputRange!(S[])); static assert( hasLvalueElements!(S[])); } /** Returns $(D true) if $(D R) has a $(D length) member that returns an integral type. $(D R) does not have to be a range. Note that $(D length) is an optional primitive as no range must implement it. Some ranges do not store their length explicitly, some cannot compute it without actually exhausting the range (e.g. socket streams), and some other ranges may be infinite. Although narrow string types ($(D char[]), $(D wchar[]), and their qualified derivatives) do define a $(D length) property, $(D hasLength) yields $(D false) for them. This is because a narrow string's length does not reflect the number of characters, but instead the number of encoding units, and as such is not useful with range-oriented algorithms. */ template hasLength(R) { enum bool hasLength = !isNarrowString!R && is(typeof( (inout int = 0) { R r = R.init; ulong l = r.length; })); } /// @safe unittest { static assert(!hasLength!(char[])); static assert( hasLength!(int[])); static assert( hasLength!(inout(int)[])); struct A { ulong length; } struct B { size_t length() { return 0; } } struct C { @property size_t length() { return 0; } } static assert( hasLength!(A)); static assert( hasLength!(B)); static assert( hasLength!(C)); } /** Returns $(D true) if $(D R) is an infinite input range. An infinite input range is an input range that has a statically-defined enumerated member called $(D empty) that is always $(D false), for example: ---- struct MyInfiniteRange { enum bool empty = false; ... } ---- */ template isInfinite(R) { static if (isInputRange!R && __traits(compiles, { enum e = R.empty; })) enum bool isInfinite = !R.empty; else enum bool isInfinite = false; } /// @safe unittest { import std.range : Repeat; static assert(!isInfinite!(int[])); static assert( isInfinite!(Repeat!(int))); } /** Returns $(D true) if $(D R) offers a slicing operator with integral boundaries that returns a forward range type. For finite ranges, the result of $(D opSlice) must be of the same type as the original range type. If the range defines $(D opDollar), then it must support subtraction. For infinite ranges, when $(I not) using $(D opDollar), the result of $(D opSlice) must be the result of $(LREF take) or $(LREF takeExactly) on the original range (they both return the same type for infinite ranges). However, when using $(D opDollar), the result of $(D opSlice) must be that of the original range type. The following code must compile for $(D hasSlicing) to be $(D true): ---- R r = void; static if(isInfinite!R) typeof(take(r, 1)) s = r[1 .. 2]; else { static assert(is(typeof(r[1 .. 2]) == R)); R s = r[1 .. 2]; } s = r[1 .. 2]; static if(is(typeof(r[0 .. $]))) { static assert(is(typeof(r[0 .. $]) == R)); R t = r[0 .. $]; t = r[0 .. $]; static if(!isInfinite!R) { static assert(is(typeof(r[0 .. $ - 1]) == R)); R u = r[0 .. $ - 1]; u = r[0 .. $ - 1]; } } static assert(isForwardRange!(typeof(r[1 .. 2]))); static assert(hasLength!(typeof(r[1 .. 2]))); ---- */ template hasSlicing(R) { enum bool hasSlicing = isForwardRange!R && !isNarrowString!R && is(typeof( (inout int = 0) { R r = R.init; static if(isInfinite!R) { typeof(r[1 .. 1]) s = r[1 .. 2]; } else { static assert(is(typeof(r[1 .. 2]) == R)); R s = r[1 .. 2]; } s = r[1 .. 2]; static if(is(typeof(r[0 .. $]))) { static assert(is(typeof(r[0 .. $]) == R)); R t = r[0 .. $]; t = r[0 .. $]; static if(!isInfinite!R) { static assert(is(typeof(r[0 .. $ - 1]) == R)); R u = r[0 .. $ - 1]; u = r[0 .. $ - 1]; } } static assert(isForwardRange!(typeof(r[1 .. 2]))); static assert(hasLength!(typeof(r[1 .. 2]))); })); } /// @safe unittest { import std.range : takeExactly; static assert( hasSlicing!(int[])); static assert( hasSlicing!(const(int)[])); static assert(!hasSlicing!(const int[])); static assert( hasSlicing!(inout(int)[])); static assert(!hasSlicing!(inout int [])); static assert( hasSlicing!(immutable(int)[])); static assert(!hasSlicing!(immutable int[])); static assert(!hasSlicing!string); static assert( hasSlicing!dstring); enum rangeFuncs = "@property int front();" ~ "void popFront();" ~ "@property bool empty();" ~ "@property auto save() { return this; }" ~ "@property size_t length();"; struct A { mixin(rangeFuncs); int opSlice(size_t, size_t); } struct B { mixin(rangeFuncs); B opSlice(size_t, size_t); } struct C { mixin(rangeFuncs); @disable this(); C opSlice(size_t, size_t); } struct D { mixin(rangeFuncs); int[] opSlice(size_t, size_t); } static assert(!hasSlicing!(A)); static assert( hasSlicing!(B)); static assert( hasSlicing!(C)); static assert(!hasSlicing!(D)); struct InfOnes { enum empty = false; void popFront() {} @property int front() { return 1; } @property InfOnes save() { return this; } auto opSlice(size_t i, size_t j) { return takeExactly(this, j - i); } auto opSlice(size_t i, Dollar d) { return this; } struct Dollar {} Dollar opDollar() const { return Dollar.init; } } static assert(hasSlicing!InfOnes); } /** This is a best-effort implementation of $(D length) for any kind of range. If $(D hasLength!Range), simply returns $(D range.length) without checking $(D upTo) (when specified). Otherwise, walks the range through its length and returns the number of elements seen. Performes $(BIGOH n) evaluations of $(D range.empty) and $(D range.popFront()), where $(D n) is the effective length of $(D range). The $(D upTo) parameter is useful to "cut the losses" in case the interest is in seeing whether the range has at least some number of elements. If the parameter $(D upTo) is specified, stops if $(D upTo) steps have been taken and returns $(D upTo). Infinite ranges are compatible, provided the parameter $(D upTo) is specified, in which case the implementation simply returns upTo. */ auto walkLength(Range)(Range range) if (isInputRange!Range && !isInfinite!Range) { static if (hasLength!Range) return range.length; else { size_t result; for ( ; !range.empty ; range.popFront() ) ++result; return result; } } /// ditto auto walkLength(Range)(Range range, const size_t upTo) if (isInputRange!Range) { static if (hasLength!Range) return range.length; else static if (isInfinite!Range) return upTo; else { size_t result; for ( ; result < upTo && !range.empty ; range.popFront() ) ++result; return result; } } @safe unittest { import std.algorithm : filter; import std.range : recurrence, take; //hasLength Range int[] a = [ 1, 2, 3 ]; assert(walkLength(a) == 3); assert(walkLength(a, 0) == 3); assert(walkLength(a, 2) == 3); assert(walkLength(a, 4) == 3); //Forward Range auto b = filter!"true"([1, 2, 3, 4]); assert(b.walkLength() == 4); assert(b.walkLength(0) == 0); assert(b.walkLength(2) == 2); assert(b.walkLength(4) == 4); assert(b.walkLength(6) == 4); //Infinite Range auto fibs = recurrence!"a[n-1] + a[n-2]"(1, 1); assert(!__traits(compiles, fibs.walkLength())); assert(fibs.take(10).walkLength() == 10); assert(fibs.walkLength(55) == 55); } /** Eagerly advances $(D r) itself (not a copy) up to $(D n) times (by calling $(D r.popFront)). $(D popFrontN) takes $(D r) by $(D ref), so it mutates the original range. Completes in $(BIGOH 1) steps for ranges that support slicing and have length. Completes in $(BIGOH n) time for all other ranges. Returns: How much $(D r) was actually advanced, which may be less than $(D n) if $(D r) did not have at least $(D n) elements. $(D popBackN) will behave the same but instead removes elements from the back of the (bidirectional) range instead of the front. */ size_t popFrontN(Range)(ref Range r, size_t n) if (isInputRange!Range) { static if (hasLength!Range) { n = cast(size_t) (n < r.length ? n : r.length); } static if (hasSlicing!Range && is(typeof(r = r[n .. $]))) { r = r[n .. $]; } else static if (hasSlicing!Range && hasLength!Range) //TODO: Remove once hasSlicing forces opDollar. { r = r[n .. r.length]; } else { static if (hasLength!Range) { foreach (i; 0 .. n) r.popFront(); } else { foreach (i; 0 .. n) { if (r.empty) return i; r.popFront(); } } } return n; } /// ditto size_t popBackN(Range)(ref Range r, size_t n) if (isBidirectionalRange!Range) { static if (hasLength!Range) { n = cast(size_t) (n < r.length ? n : r.length); } static if (hasSlicing!Range && is(typeof(r = r[0 .. $ - n]))) { r = r[0 .. $ - n]; } else static if (hasSlicing!Range && hasLength!Range) //TODO: Remove once hasSlicing forces opDollar. { r = r[0 .. r.length - n]; } else { static if (hasLength!Range) { foreach (i; 0 .. n) r.popBack(); } else { foreach (i; 0 .. n) { if (r.empty) return i; r.popBack(); } } } return n; } /// @safe unittest { int[] a = [ 1, 2, 3, 4, 5 ]; a.popFrontN(2); assert(a == [ 3, 4, 5 ]); a.popFrontN(7); assert(a == [ ]); } /// @safe unittest { import std.algorithm : equal; import std.range : iota; auto LL = iota(1L, 7L); auto r = popFrontN(LL, 2); assert(equal(LL, [3L, 4L, 5L, 6L])); assert(r == 2); } /// @safe unittest { int[] a = [ 1, 2, 3, 4, 5 ]; a.popBackN(2); assert(a == [ 1, 2, 3 ]); a.popBackN(7); assert(a == [ ]); } /// @safe unittest { import std.algorithm : equal; import std.range : iota; auto LL = iota(1L, 7L); auto r = popBackN(LL, 2); assert(equal(LL, [1L, 2L, 3L, 4L])); assert(r == 2); } /** Eagerly advances $(D r) itself (not a copy) exactly $(D n) times (by calling $(D r.popFront)). $(D popFrontExactly) takes $(D r) by $(D ref), so it mutates the original range. Completes in $(BIGOH 1) steps for ranges that support slicing, and have either length or are infinite. Completes in $(BIGOH n) time for all other ranges. Note: Unlike $(LREF popFrontN), $(D popFrontExactly) will assume that the range holds at least $(D n) elements. This makes $(D popFrontExactly) faster than $(D popFrontN), but it also means that if $(D range) does not contain at least $(D n) elements, it will attempt to call $(D popFront) on an empty range, which is undefined behavior. So, only use $(D popFrontExactly) when it is guaranteed that $(D range) holds at least $(D n) elements. $(D popBackExactly) will behave the same but instead removes elements from the back of the (bidirectional) range instead of the front. */ void popFrontExactly(Range)(ref Range r, size_t n) if (isInputRange!Range) { static if (hasLength!Range) assert(n <= r.length, "range is smaller than amount of items to pop"); static if (hasSlicing!Range && is(typeof(r = r[n .. $]))) r = r[n .. $]; else static if (hasSlicing!Range && hasLength!Range) //TODO: Remove once hasSlicing forces opDollar. r = r[n .. r.length]; else foreach (i; 0 .. n) r.popFront(); } /// ditto void popBackExactly(Range)(ref Range r, size_t n) if (isBidirectionalRange!Range) { static if (hasLength!Range) assert(n <= r.length, "range is smaller than amount of items to pop"); static if (hasSlicing!Range && is(typeof(r = r[0 .. $ - n]))) r = r[0 .. $ - n]; else static if (hasSlicing!Range && hasLength!Range) //TODO: Remove once hasSlicing forces opDollar. r = r[0 .. r.length - n]; else foreach (i; 0 .. n) r.popBack(); } /// @safe unittest { import std.algorithm : filterBidirectional, equal; auto a = [1, 2, 3]; a.popFrontExactly(1); assert(a == [2, 3]); a.popBackExactly(1); assert(a == [2]); string s = "日本語"; s.popFrontExactly(1); assert(s == "本語"); s.popBackExactly(1); assert(s == "本"); auto bd = filterBidirectional!"true"([1, 2, 3]); bd.popFrontExactly(1); assert(bd.equal([2, 3])); bd.popBackExactly(1); assert(bd.equal([2])); } /** Moves the front of $(D r) out and returns it. Leaves $(D r.front) in a destroyable state that does not allocate any resources (usually equal to its $(D .init) value). */ ElementType!R moveFront(R)(R r) { static if (is(typeof(&r.moveFront))) { return r.moveFront(); } else static if (!hasElaborateCopyConstructor!(ElementType!R)) { return r.front; } else static if (is(typeof(&(r.front())) == ElementType!R*)) { import std.algorithm : move; return move(r.front); } else { static assert(0, "Cannot move front of a range with a postblit and an rvalue front."); } } /// @safe unittest { auto a = [ 1, 2, 3 ]; assert(moveFront(a) == 1); // define a perfunctory input range struct InputRange { @property bool empty() { return false; } @property int front() { return 42; } void popFront() {} int moveFront() { return 43; } } InputRange r; assert(moveFront(r) == 43); } @safe unittest { struct R { @property ref int front() { static int x = 42; return x; } this(this){} } R r; assert(moveFront(r) == 42); } /** Moves the back of $(D r) out and returns it. Leaves $(D r.back) in a destroyable state that does not allocate any resources (usually equal to its $(D .init) value). */ ElementType!R moveBack(R)(R r) { static if (is(typeof(&r.moveBack))) { return r.moveBack(); } else static if (!hasElaborateCopyConstructor!(ElementType!R)) { return r.back; } else static if (is(typeof(&(r.back())) == ElementType!R*)) { import std.algorithm : move; return move(r.back); } else { static assert(0, "Cannot move back of a range with a postblit and an rvalue back."); } } /// @safe unittest { struct TestRange { int payload = 5; @property bool empty() { return false; } @property TestRange save() { return this; } @property ref int front() return { return payload; } @property ref int back() return { return payload; } void popFront() { } void popBack() { } } static assert(isBidirectionalRange!TestRange); TestRange r; auto x = moveBack(r); assert(x == 5); } /** Moves element at index $(D i) of $(D r) out and returns it. Leaves $(D r.front) in a destroyable state that does not allocate any resources (usually equal to its $(D .init) value). */ ElementType!R moveAt(R, I)(R r, I i) if (isIntegral!I) { static if (is(typeof(&r.moveAt))) { return r.moveAt(i); } else static if (!hasElaborateCopyConstructor!(ElementType!(R))) { return r[i]; } else static if (is(typeof(&r[i]) == ElementType!R*)) { import std.algorithm : move; return move(r[i]); } else { static assert(0, "Cannot move element of a range with a postblit and rvalue elements."); } } /// @safe unittest { auto a = [1,2,3,4]; foreach(idx, it; a) { assert(it == moveAt(a, idx)); } } @safe unittest { import std.internal.test.dummyrange; foreach(DummyType; AllDummyRanges) { auto d = DummyType.init; assert(moveFront(d) == 1); static if (isBidirectionalRange!DummyType) { assert(moveBack(d) == 10); } static if (isRandomAccessRange!DummyType) { assert(moveAt(d, 2) == 3); } } } /** Implements the range interface primitive $(D empty) for built-in arrays. Due to the fact that nonmember functions can be called with the first argument using the dot notation, $(D array.empty) is equivalent to $(D empty(array)). */ @property bool empty(T)(in T[] a) @safe pure nothrow @nogc { return !a.length; } /// @safe pure nothrow unittest { auto a = [ 1, 2, 3 ]; assert(!a.empty); assert(a[3 .. $].empty); } /** Implements the range interface primitive $(D save) for built-in arrays. Due to the fact that nonmember functions can be called with the first argument using the dot notation, $(D array.save) is equivalent to $(D save(array)). The function does not duplicate the content of the array, it simply returns its argument. */ @property T[] save(T)(T[] a) @safe pure nothrow @nogc { return a; } /// @safe pure nothrow unittest { auto a = [ 1, 2, 3 ]; auto b = a.save; assert(b is a); } /** Implements the range interface primitive $(D popFront) for built-in arrays. Due to the fact that nonmember functions can be called with the first argument using the dot notation, $(D array.popFront) is equivalent to $(D popFront(array)). For $(GLOSSARY narrow strings), $(D popFront) automatically advances to the next $(GLOSSARY code point). */ void popFront(T)(ref T[] a) @safe pure nothrow @nogc if (!isNarrowString!(T[]) && !is(T[] == void[])) { assert(a.length, "Attempting to popFront() past the end of an array of " ~ T.stringof); a = a[1 .. $]; } /// @safe pure nothrow unittest { auto a = [ 1, 2, 3 ]; a.popFront(); assert(a == [ 2, 3 ]); } version(unittest) { static assert(!is(typeof({ int[4] a; popFront(a); }))); static assert(!is(typeof({ immutable int[] a; popFront(a); }))); static assert(!is(typeof({ void[] a; popFront(a); }))); } // Specialization for narrow strings. The necessity of void popFront(C)(ref C[] str) @trusted pure nothrow if (isNarrowString!(C[])) { assert(str.length, "Attempting to popFront() past the end of an array of " ~ C.stringof); static if(is(Unqual!C == char)) { immutable c = str[0]; if(c < 0x80) { //ptr is used to avoid unnnecessary bounds checking. str = str.ptr[1 .. str.length]; } else { import core.bitop : bsr; auto msbs = 7 - bsr(~c); if((msbs < 2) | (msbs > 6)) { //Invalid UTF-8 msbs = 1; } str = str[msbs .. $]; } } else static if(is(Unqual!C == wchar)) { immutable u = str[0]; str = str[1 + (u >= 0xD800 && u <= 0xDBFF) .. $]; } else static assert(0, "Bad template constraint."); } @safe pure unittest { import std.typetuple; foreach(S; TypeTuple!(string, wstring, dstring)) { S s = "\xC2\xA9hello"; s.popFront(); assert(s == "hello"); S str = "hello\U00010143\u0100\U00010143"; foreach(dchar c; ['h', 'e', 'l', 'l', 'o', '\U00010143', '\u0100', '\U00010143']) { assert(str.front == c); str.popFront(); } assert(str.empty); static assert(!is(typeof({ immutable S a; popFront(a); }))); static assert(!is(typeof({ typeof(S.init[0])[4] a; popFront(a); }))); } C[] _eatString(C)(C[] str) { while(!str.empty) str.popFront(); return str; } enum checkCTFE = _eatString("ウェブサイト@La_Verité.com"); static assert(checkCTFE.empty); enum checkCTFEW = _eatString("ウェブサイト@La_Verité.com"w); static assert(checkCTFEW.empty); } /** Implements the range interface primitive $(D popBack) for built-in arrays. Due to the fact that nonmember functions can be called with the first argument using the dot notation, $(D array.popBack) is equivalent to $(D popBack(array)). For $(GLOSSARY narrow strings), $(D popFront) automatically eliminates the last $(GLOSSARY code point). */ void popBack(T)(ref T[] a) @safe pure nothrow @nogc if (!isNarrowString!(T[]) && !is(T[] == void[])) { assert(a.length); a = a[0 .. $ - 1]; } /// @safe pure nothrow unittest { auto a = [ 1, 2, 3 ]; a.popBack(); assert(a == [ 1, 2 ]); } version(unittest) { static assert(!is(typeof({ immutable int[] a; popBack(a); }))); static assert(!is(typeof({ int[4] a; popBack(a); }))); static assert(!is(typeof({ void[] a; popBack(a); }))); } // Specialization for arrays of char void popBack(T)(ref T[] a) @safe pure if (isNarrowString!(T[])) { assert(a.length, "Attempting to popBack() past the front of an array of " ~ T.stringof); a = a[0 .. $ - std.utf.strideBack(a, $)]; } @safe pure unittest { import std.typetuple; foreach(S; TypeTuple!(string, wstring, dstring)) { S s = "hello\xE2\x89\xA0"; s.popBack(); assert(s == "hello"); S s3 = "\xE2\x89\xA0"; auto c = s3.back; assert(c == cast(dchar)'\u2260'); s3.popBack(); assert(s3 == ""); S str = "\U00010143\u0100\U00010143hello"; foreach(dchar ch; ['o', 'l', 'l', 'e', 'h', '\U00010143', '\u0100', '\U00010143']) { assert(str.back == ch); str.popBack(); } assert(str.empty); static assert(!is(typeof({ immutable S a; popBack(a); }))); static assert(!is(typeof({ typeof(S.init[0])[4] a; popBack(a); }))); } } /** Implements the range interface primitive $(D front) for built-in arrays. Due to the fact that nonmember functions can be called with the first argument using the dot notation, $(D array.front) is equivalent to $(D front(array)). For $(GLOSSARY narrow strings), $(D front) automatically returns the first $(GLOSSARY code point) as a $(D dchar). */ @property ref T front(T)(T[] a) @safe pure nothrow @nogc if (!isNarrowString!(T[]) && !is(T[] == void[])) { assert(a.length, "Attempting to fetch the front of an empty array of " ~ T.stringof); return a[0]; } /// @safe pure nothrow unittest { int[] a = [ 1, 2, 3 ]; assert(a.front == 1); } @safe pure nothrow unittest { auto a = [ 1, 2 ]; a.front = 4; assert(a.front == 4); assert(a == [ 4, 2 ]); immutable b = [ 1, 2 ]; assert(b.front == 1); int[2] c = [ 1, 2 ]; assert(c.front == 1); } @property dchar front(T)(T[] a) @safe pure if (isNarrowString!(T[])) { import std.utf : decode; assert(a.length, "Attempting to fetch the front of an empty array of " ~ T.stringof); size_t i = 0; return decode(a, i); } /** Implements the range interface primitive $(D back) for built-in arrays. Due to the fact that nonmember functions can be called with the first argument using the dot notation, $(D array.back) is equivalent to $(D back(array)). For $(GLOSSARY narrow strings), $(D back) automatically returns the last $(GLOSSARY code point) as a $(D dchar). */ @property ref T back(T)(T[] a) @safe pure nothrow @nogc if (!isNarrowString!(T[])) { assert(a.length, "Attempting to fetch the back of an empty array of " ~ T.stringof); return a[$ - 1]; } /// @safe pure nothrow unittest { int[] a = [ 1, 2, 3 ]; assert(a.back == 3); a.back += 4; assert(a.back == 7); } @safe pure nothrow unittest { immutable b = [ 1, 2, 3 ]; assert(b.back == 3); int[3] c = [ 1, 2, 3 ]; assert(c.back == 3); } // Specialization for strings @property dchar back(T)(T[] a) @safe pure if (isNarrowString!(T[])) { import std.utf : decode; assert(a.length, "Attempting to fetch the back of an empty array of " ~ T.stringof); size_t i = a.length - std.utf.strideBack(a, a.length); return decode(a, i); }
D