code
stringlengths 3
10M
| language
stringclasses 31
values |
---|---|
/Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ConcurrentMainScheduler.o : /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Deprecated.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Cancelable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/ObservableType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/ObserverType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Reactive.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/RecursiveLock.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Errors.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/AtomicInt.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Event.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/First.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Rx.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/Platform.Linux.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/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/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/Target\ Support\ Files/RxAtomic/RxAtomic-umbrella.h /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxAtomic/RxAtomic/include/RxAtomic.h /Users/mli/Desktop/Develope/VLogVideo/Pods/Headers/Public/RxAtomic/RxAtomic.modulemap /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxAtomic.build/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/RxSwiftDemo20190402/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ConcurrentMainScheduler~partial.swiftmodule : /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Deprecated.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Cancelable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/ObservableType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/ObserverType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Reactive.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/RecursiveLock.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Errors.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/AtomicInt.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Event.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/First.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Rx.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/Platform.Linux.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/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/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/Target\ Support\ Files/RxAtomic/RxAtomic-umbrella.h /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxAtomic/RxAtomic/include/RxAtomic.h /Users/mli/Desktop/Develope/VLogVideo/Pods/Headers/Public/RxAtomic/RxAtomic.modulemap /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxAtomic.build/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/RxSwiftDemo20190402/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ConcurrentMainScheduler~partial.swiftdoc : /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Deprecated.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Cancelable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/ObservableType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/ObserverType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Reactive.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/RecursiveLock.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Errors.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/AtomicInt.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Event.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/First.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Rx.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/Platform/Platform.Linux.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/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/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/Target\ Support\ Files/RxAtomic/RxAtomic-umbrella.h /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Pods/RxAtomic/RxAtomic/include/RxAtomic.h /Users/mli/Desktop/Develope/VLogVideo/Pods/Headers/Public/RxAtomic/RxAtomic.modulemap /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Users/mli/Desktop/Develope/Swift/RxSwiftDemo20190402/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxAtomic.build/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 |
/Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Bond.build/Objects-normal/x86_64/UIGestureRecognizer.o : /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NSObject+KVO.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UITextField.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Bond.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/DataSource.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/QueryableDataSource.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Observable.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UISwitch.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UILabel.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/SignalProtocol.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIControl.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UISegmentedControl.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIRefreshControl.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UINavigationItem.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIBarButtonItem.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIBarItem.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIAccessibilityIdentification.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIApplication.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/BNDInvocation.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIButton.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UISearchBar.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UINavigationBar.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UISlider.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIDatePicker.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/ProtocolProxyController.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIStepper.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NotificationCenter.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/CALayer.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIGestureRecognizer.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NSObject.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/DynamicSubject.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Collections/ObservableSet.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NSLayoutConstraint.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIImageView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UITableView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UICollectionView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIActivityIndicatorView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIProgressView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UITextView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Collections/Observable2DArray.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Collections/ObservableArray.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Collections/ObservableDictionary.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Property.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/ProtocolProxy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Products/Debug-iphonesimulator/Differ/Differ.framework/Modules/Differ.swiftmodule/x86_64.swiftmodule /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Products/Debug-iphonesimulator/ReactiveKit/ReactiveKit.framework/Modules/ReactiveKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Target\ Support\ Files/Bond/Bond-umbrella.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Target\ Support\ Files/Differ/Differ-umbrella.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Target\ Support\ Files/ReactiveKit/ReactiveKit-umbrella.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Supporting\ Files/Bond.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/BNDProtocolProxyBase/include/BNDProtocolProxyBase.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Products/Debug-iphonesimulator/Differ/Differ.framework/Headers/Differ-Swift.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Products/Debug-iphonesimulator/ReactiveKit/ReactiveKit.framework/Headers/ReactiveKit-Swift.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/ReactiveKit/ReactiveKit/ReactiveKit.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Bond.build/unextended-module.modulemap /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Differ.build/module.modulemap /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/ReactiveKit.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Bond.build/Objects-normal/x86_64/UIGestureRecognizer~partial.swiftmodule : /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NSObject+KVO.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UITextField.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Bond.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/DataSource.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/QueryableDataSource.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Observable.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UISwitch.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UILabel.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/SignalProtocol.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIControl.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UISegmentedControl.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIRefreshControl.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UINavigationItem.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIBarButtonItem.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIBarItem.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIAccessibilityIdentification.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIApplication.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/BNDInvocation.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIButton.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UISearchBar.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UINavigationBar.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UISlider.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIDatePicker.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/ProtocolProxyController.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIStepper.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NotificationCenter.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/CALayer.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIGestureRecognizer.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NSObject.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/DynamicSubject.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Collections/ObservableSet.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NSLayoutConstraint.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIImageView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UITableView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UICollectionView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIActivityIndicatorView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIProgressView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UITextView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Collections/Observable2DArray.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Collections/ObservableArray.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Collections/ObservableDictionary.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Property.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/ProtocolProxy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Products/Debug-iphonesimulator/Differ/Differ.framework/Modules/Differ.swiftmodule/x86_64.swiftmodule /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Products/Debug-iphonesimulator/ReactiveKit/ReactiveKit.framework/Modules/ReactiveKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Target\ Support\ Files/Bond/Bond-umbrella.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Target\ Support\ Files/Differ/Differ-umbrella.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Target\ Support\ Files/ReactiveKit/ReactiveKit-umbrella.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Supporting\ Files/Bond.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/BNDProtocolProxyBase/include/BNDProtocolProxyBase.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Products/Debug-iphonesimulator/Differ/Differ.framework/Headers/Differ-Swift.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Products/Debug-iphonesimulator/ReactiveKit/ReactiveKit.framework/Headers/ReactiveKit-Swift.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/ReactiveKit/ReactiveKit/ReactiveKit.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Bond.build/unextended-module.modulemap /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Differ.build/module.modulemap /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/ReactiveKit.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Bond.build/Objects-normal/x86_64/UIGestureRecognizer~partial.swiftdoc : /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NSObject+KVO.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UITextField.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Bond.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/DataSource.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/QueryableDataSource.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Observable.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UISwitch.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UILabel.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/SignalProtocol.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIControl.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UISegmentedControl.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIRefreshControl.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UINavigationItem.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIBarButtonItem.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIBarItem.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIAccessibilityIdentification.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIApplication.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/BNDInvocation.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIButton.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UISearchBar.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UINavigationBar.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UISlider.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIDatePicker.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/ProtocolProxyController.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIStepper.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NotificationCenter.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/CALayer.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIGestureRecognizer.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NSObject.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/DynamicSubject.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Collections/ObservableSet.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Shared/NSLayoutConstraint.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIImageView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UITableView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UICollectionView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIActivityIndicatorView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UIProgressView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/UIKit/UITextView.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Collections/Observable2DArray.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Collections/ObservableArray.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Collections/ObservableDictionary.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/Property.swift /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/Bond/ProtocolProxy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Products/Debug-iphonesimulator/Differ/Differ.framework/Modules/Differ.swiftmodule/x86_64.swiftmodule /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Products/Debug-iphonesimulator/ReactiveKit/ReactiveKit.framework/Modules/ReactiveKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Target\ Support\ Files/Bond/Bond-umbrella.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Target\ Support\ Files/Differ/Differ-umbrella.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Target\ Support\ Files/ReactiveKit/ReactiveKit-umbrella.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Supporting\ Files/Bond.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/Bond/Sources/BNDProtocolProxyBase/include/BNDProtocolProxyBase.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Products/Debug-iphonesimulator/Differ/Differ.framework/Headers/Differ-Swift.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Products/Debug-iphonesimulator/ReactiveKit/ReactiveKit.framework/Headers/ReactiveKit-Swift.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Pods/ReactiveKit/ReactiveKit/ReactiveKit.h /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Bond.build/unextended-module.modulemap /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/Differ.build/module.modulemap /Users/nikhilsridhar/Desktop/Dyce/DyceAppIOS/Build/Intermediates/Pods.build/Debug-iphonesimulator/ReactiveKit.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
| D |
/Users/matsumur/Dropbox/Working/tekupico7(acm)/DerivedData/てくPico/Build/Intermediates/てくPico.build/Debug-iphonesimulator/てくPico.build/Objects-normal/x86_64/MenuViewController.o : /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/AppDelegate.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TutorialViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TutorialFirstlViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Someaction.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/ViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/ThirdViewContoroller.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/MenuViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Tutorial2ViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TabBarViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/FirstViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Extensions.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Darwin.swiftmodule /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko-Bridging-Header.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/CommonCrypto/CommonCrypto.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/CommonCrypto/CommonCryptor.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/CommonCrypto/CommonCryptoError.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/CommonCrypto/CommonDigest.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/CommonCrypto/CommonHMAC.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/CommonCrypto/CommonKeyDerivation.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/CommonCrypto/CommonSymmetricKeywrap.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Security.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/CoreImage.swiftmodule
/Users/matsumur/Dropbox/Working/tekupico7(acm)/DerivedData/てくPico/Build/Intermediates/てくPico.build/Debug-iphonesimulator/てくPico.build/Objects-normal/x86_64/MenuViewController~partial.swiftmodule : /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/AppDelegate.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TutorialViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TutorialFirstlViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Someaction.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/ViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/ThirdViewContoroller.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/MenuViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Tutorial2ViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TabBarViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/FirstViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Extensions.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Darwin.swiftmodule /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko-Bridging-Header.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/CommonCrypto/CommonCrypto.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/CommonCrypto/CommonCryptor.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/CommonCrypto/CommonCryptoError.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/CommonCrypto/CommonDigest.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/CommonCrypto/CommonHMAC.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/CommonCrypto/CommonKeyDerivation.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/CommonCrypto/CommonSymmetricKeywrap.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Security.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/CoreImage.swiftmodule
/Users/matsumur/Dropbox/Working/tekupico7(acm)/DerivedData/てくPico/Build/Intermediates/てくPico.build/Debug-iphonesimulator/てくPico.build/Objects-normal/x86_64/MenuViewController~partial.swiftdoc : /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/AppDelegate.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TutorialViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TutorialFirstlViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Someaction.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/ViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/ThirdViewContoroller.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/MenuViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Tutorial2ViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/TabBarViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/FirstViewController.swift /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko/Extensions.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Darwin.swiftmodule /Users/matsumur/Dropbox/Working/tekupico7(acm)/wakapeko-Bridging-Header.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/CommonCrypto/CommonCrypto.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/CommonCrypto/CommonCryptor.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/CommonCrypto/CommonCryptoError.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/CommonCrypto/CommonDigest.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/CommonCrypto/CommonHMAC.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/CommonCrypto/CommonKeyDerivation.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.2.sdk/usr/include/CommonCrypto/CommonSymmetricKeywrap.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/Security.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/CoreImage.swiftmodule
| D |
/******************************************************************************
* BEH *
* Source Code *
* *
* D 2.067.0-0 *
* Map.d *
* "Stores all data associated with a particular map for reading and writing" *
* *
* This file is part of BEH. *
* *
* BEH 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 of the License, or (at your option) *
* any later version. *
* *
* BEH 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 Licens *
* for more details. *
* *
* You should have received a copy of the GNU General Public License along *
* with BEH. If not, see <http://www.gnu.org/licenses/>. *
*****************************************************************************/
module IO.Map;
import std.stdio;
import gdkpixbuf.Pixbuf;
import GBAUtils.ISaveable;
import pokegba.rom;
import GBAUtils.PixbufExtend;
import GBAUtils.PictureFrame;
import IO.MapData;
import IO.MapTileData;
import IO.MapHeader;
import IO.ConnectionData;
import IO.BankLoader;
import IO.TilesetCache;
import IO.MapIO;
import MapElements.HeaderSprites;
import MapElements.SpritesNPCManager;
import MapElements.SpritesSignManager;
import MapElements.SpritesExitManager;
import MapElements.TriggerManager;
import IO.Render.BlockRenderer;
import IO.Render.TilesetRenderer;
import IO.Render.OverworldSprites;
import IO.Render.OverworldSpritesManager;
public class Map : ISaveable
{
private MapData mapData;
private MapTileData mapTileData;
public MapHeader mapHeader;
public ConnectionData mapConnections;
public HeaderSprites mapSprites;
public SpritesNPCManager mapNPCManager;
public SpritesSignManager mapSignManager;
public SpritesExitManager mapExitManager;
public TriggerManager mapTriggerManager;
public OverworldSpritesManager overworldSpritesManager;
public uint dataOffset = 0;
public OverworldSprites[] eventSprites;
public bool isEdited;
public this(ROM rom, uint bank, uint map)
{
this(rom,BankLoader.maps[bank][map]);
}
public this(ROM rom, uint dataOffset)
{
this.dataOffset = dataOffset;
mapHeader = new MapHeader(rom, dataOffset);
mapConnections = new ConnectionData(rom, mapHeader);
mapSprites = new HeaderSprites(rom, mapHeader.pSprites);
mapNPCManager=new SpritesNPCManager(rom, this, mapSprites.pNPC, mapSprites.bNumNPC);
mapSignManager = new SpritesSignManager(rom, this, mapSprites.pSigns, mapSprites.bNumSigns);
mapTriggerManager = new TriggerManager(rom, this, mapSprites.pTraps, mapSprites.bNumTraps);
mapExitManager = new SpritesExitManager(rom, this, mapSprites.pExits, mapSprites.bNumExits);
overworldSpritesManager= new OverworldSpritesManager(rom);
mapData = new MapData(rom, mapHeader);
mapTileData = new MapTileData(rom ,mapData);
isEdited = true;
}
public MapData getMapData()
{
return mapData;
}
public MapTileData getMapTileData()
{
return mapTileData;
}
public void save()
{
//Save in reverse order in case we have repointing to do first.
mapTileData.save();
mapData.save();
mapNPCManager.save();
mapSignManager.save();
mapTriggerManager.save();
mapExitManager.save();
mapSprites.save();
mapConnections.save();
mapHeader.save();
}
public static Pixbuf renderMap(int bank, int map)
{
return renderMap(new Map(ROMManager.currentROM,bank,map), true);
}
public static Pixbuf renderMap(Map map, bool full)
{
TilesetCache.switchTileset(map);
if(MapIO.blockRenderer is null)
MapIO.blockRenderer = new BlockRenderer();
MapIO.blockRenderer.setGlobalTileset(TilesetCache.get(map.getMapData().globalTileSetPtr));
MapIO.blockRenderer.setLocalTileset(TilesetCache.get(map.getMapData().localTileSetPtr));
Pixbuf imgBuffer = new Pixbuf(GdkColorspace.RGB, true, 8, 8, 8);
Pixbuf tiles;
if(!full)
tiles = TilesetRenderer.RerenderSecondary(TilesetRenderer.imgBuffer);
else
tiles = TilesetRenderer.RerenderTiles(TilesetRenderer.imgBuffer, 0);
//new PictureFrame(tiles);
try
{
imgBuffer = new Pixbuf(GdkColorspace.RGB, true, 8, map.getMapData().mapWidth * 16, map.getMapData().mapHeight * 16);
for (int y = 0; y < map.getMapData().mapHeight; y++)
{
for (int x = 0; x < map.getMapData().mapWidth; x++)
{
int TileID=(map.getMapTileData().getTile(x, y).getID());
int srcX=(TileID % TilesetRenderer.renderWidth) * 16;
int srcY = (TileID / TilesetRenderer.renderWidth) * 16;
imgBuffer.drawImage(tiles.newSubpixbuf(srcX, srcY, 16, 16), x * 16, y * 16);
}
}
}
catch (Exception e)
{
writefln("Error rendering map.");
//e.printStackTrace();
imgBuffer.fillRect(0, 0, 8, 8, 255, 0, 0);
}
return imgBuffer;
}
}
| D |
<?xml version="1.0" encoding="ASCII" standalone="no"?>
<di:SashWindowsMngr xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmi:version="2.0">
<pageList>
<availablePage>
<emfPageIdentifier href="VAR_7_MobileMedia-2995514576.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</availablePage>
</pageList>
<sashModel currentSelection="//@sashModel/@windows.0/@children.0">
<windows>
<children xsi:type="di:TabFolder">
<children>
<emfPageIdentifier href="VAR_7_MobileMedia-2995514576.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</children>
</children>
</windows>
</sashModel>
</di:SashWindowsMngr>
| D |
/+
The MIT License (MIT)
Copyright (c) <2013> <Oleg Butko (deviator), Anton Akzhigitov (Akzwar)>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
+/
module desutil.logger;
enum : ubyte { DEBUG=1, UTEST=2, VERBOSE=4 };
enum logLevel { ERROR=1, INFO=3, TRACE=5 };
struct logAccess
{
ubyte mask = VERBOSE;
logLevel level = logLevel.TRACE;
nothrow
{
pure
{
void set( ubyte m, logLevel l ) { mask = m; level = l; }
this( ubyte m, logLevel l ) { set( m, l ); }
this( in logAccess b ) { set( b.mask, b.level ); }
auto opAssign( in logAccess b ) { set( b.mask, b.level ); return this; }
}
bool check( in logAccess b ) const
{ return ( b.mask & mask ) && b.level <= level; }
bool check( in logMessage m ) const
{ return check( m.access ); }
}
}
struct logMessage
{
logAccess access;
string emitter;
string msg;
nothrow
{
pure
{
void set( in logAccess ac, string message, string em )
{
access = ac;
msg = message;
emitter = em;
}
this( ubyte mask, logLevel level, string message, string em="" )
{ set( logAccess(mask,level), message, em ); }
this( in logAccess ac, string message, string em="" ) { set( ac, message, em ); }
this( in logMessage lm ) { set( lm.access, lm.msg, lm.emitter ); }
this( in logMessage lm, string emadd )
{ set( lm.access, lm.msg, emadd ~ '.' ~ lm.emitter ); }
auto opAssign( in logMessage lm )
{ set( lm.access, lm.msg, lm.emitter ); return this; }
}
}
}
unittest
{
logAccess[3] test;
test[0] = logAccess( DEBUG | VERBOSE, logLevel.INFO );
test[1] = logAccess( VERBOSE, logLevel.ERROR );
test[2] = logAccess( DEBUG | UTEST, logLevel.TRACE );
bool[3][9] res;
logAccess[9] var;
var[0] = logAccess( DEBUG, logLevel.ERROR ); res[0] = [ 1, 0, 1 ];
var[1] = logAccess( DEBUG, logLevel.INFO ); res[1] = [ 1, 0, 1 ];
var[2] = logAccess( DEBUG, logLevel.TRACE ); res[2] = [ 0, 0, 1 ];
var[3] = logAccess( UTEST, logLevel.ERROR ); res[3] = [ 0, 0, 1 ];
var[4] = logAccess( UTEST, logLevel.INFO ); res[4] = [ 0, 0, 1 ];
var[5] = logAccess( UTEST, logLevel.TRACE ); res[5] = [ 0, 0, 1 ];
var[6] = logAccess( VERBOSE, logLevel.ERROR ); res[6] = [ 1, 1, 0 ];
var[7] = logAccess( VERBOSE, logLevel.INFO ); res[7] = [ 1, 0, 0 ];
var[8] = logAccess( VERBOSE, logLevel.TRACE ); res[8] = [ 0, 0, 0 ];
foreach( i, v; var )
foreach( j, t; test )
assert( t.check(v) == res[i][j] );
}
unittest
{
auto msg = logMessage( DEBUG, logLevel.ERROR, "hello.emitter", "Hello world!" );
auto test = logAccess( DEBUG | VERBOSE, logLevel.INFO );
assert( test.check(msg) );
}
import std.string;
abstract class Logger
{
protected:
string name;
logAccess filter;
logAccess[string] named_filter;
Logger[string] childs;
Logger[] output;
public:
void setFilter( in logAccess flt, string chname = "" )
{
if( chname.length )
{
auto namepath = chname.split(".");
if( namepath[0] in childs )
childs[namepath[0]].setFilter( flt, namepath[1 .. $].join(".") );
else
named_filter[chname] = flt;
}
else filter = flt;
}
bool log( in logMessage msg )
{
if( !filter.check(msg) ) return false;
if( msg.emitter in named_filter )
{
auto nfilter = named_filter[msg.emitter];
auto namepath = msg.emitter.split(".");
if( namepath[0] in childs )
{
childs[namepath[0]].setFilter( nfilter, namepath[1 .. $].join(".") );
named_filter.remove( msg.emitter );
}
if( !nfilter.check(msg) ) return false;
}
foreach( ol; output )
ol.log( logMessage( msg, name ) );
return true;
}
}
final class StdErrLogger: Logger
{
this() { name = "stderr"; }
this( in logAccess la )
{
this();
filter = la;
}
override bool log( in logMessage msg )
{
import std.stdio;
if( super.log( msg ) )
{
try stderr.writefln( "[ %5s ] [ %25s ] %s", msg.access.level, msg.emitter, msg.msg );
catch( Exception e ){}
return true;
}
return false;
}
}
//mixin template PrivateLogger()
pure @property string PrivateLoggerMixin()
{
return `
private
{
StdErrLogger __logger;
immutable string __emitter;
static this()
{
import core.runtime, std.getopt;
import std.stdio;
import std.file;
auto args = thisExePath ~ Runtime.args;
logLevel lv = logLevel.ERROR;
string[] without;
string[] withonly;
try
{
getopt( args,
"log-level", &lv,
"log-without", &without,
"log-withonly", &withonly
);
}
catch( Exception e ) stderr.writefln( "bad log arguments: %s", e.msg );
logLevel ctlv = logLevel.ERROR;
debug(1) ctlv = logLevel.ERROR;
debug(3) ctlv = logLevel.INFO;
debug(5) ctlv = logLevel.TRACE;
if( ctlv < lv )
stderr.writefln( "WARNING: log level %s is greather that debug level %s", lv, ctlv );
ubyte mask = DEBUG | UTEST | VERBOSE;
import std.traits, std.algorithm, std.string;
__emitter = fullyQualifiedName!__emitter;
__emitter = __emitter.split(".")[0 .. $-1].join(".");
foreach( wo; without )
if( __emitter.startsWith(wo) )
{
mask = 0;
break;
}
if( withonly.length )
{
mask = 0;
foreach( wo; withonly )
if( __emitter == wo )
{
mask = DEBUG | UTEST | VERBOSE;
break;
}
}
__logger = new StdErrLogger( logAccess( mask, lv ) );
}
nothrow void __log(T...)( logLevel level, string fmt, T args )
{
import std.string : format;
try __logger.log( logMessage( VERBOSE, level, format( fmt, args ), __emitter ) );
catch( Exception e ) {}
}
nothrow void log(T...)( string fmt, T args ) { __log( logLevel.TRACE, fmt, args ); }
nothrow void log_info(T...)( string fmt, T args ) { __log( logLevel.INFO, fmt, args ); }
nothrow void log_error(T...)( string fmt, T args ) { __log( logLevel.ERROR, fmt, args ); }
}`;
}
| D |
/Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/PieHighlighter.o : /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/LineChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/AxisBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/MarkerImage.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/Transformer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/Description.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/YAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/RadarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/MarkerView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/Legend.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/XAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/PieChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Animation/Animator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Renderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/ChartUtils.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/IMarker.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/Highlight.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/LegendEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/Platform.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Filters/DataApproximator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/BarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/Fill.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/Range.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/ComponentBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.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/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Supporting\ Files/Charts.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/unextended-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/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/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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
/Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/PieHighlighter~partial.swiftmodule : /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/LineChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/AxisBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/MarkerImage.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/Transformer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/Description.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/YAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/RadarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/MarkerView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/Legend.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/XAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/PieChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Animation/Animator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Renderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/ChartUtils.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/IMarker.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/Highlight.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/LegendEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/Platform.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Filters/DataApproximator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/BarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/Fill.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/Range.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/ComponentBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.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/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Supporting\ Files/Charts.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/unextended-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/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/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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
/Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/PieHighlighter~partial.swiftdoc : /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/LineChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/AxisBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/MarkerImage.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/Transformer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/Description.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/YAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/RadarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/MarkerView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/Legend.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/XAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/PieChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Animation/Animator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Renderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/ChartUtils.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/IMarker.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/Highlight.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/LegendEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/Platform.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Filters/DataApproximator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Charts/BarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Utils/Fill.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/Range.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Components/ComponentBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.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/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Users/endotsuyoshi/Documents/ios/shoanaorigin2/Charts/Source/Supporting\ Files/Charts.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/unextended-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/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/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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
| D |
the passage to the stomach and lungs
an opening in the vamp of a shoe at the instep
a passage resembling a throat in shape or function
the part of an animal's body that corresponds to a person's throat
| D |
the clear (and often sudden) understanding of a complex situation
try to solve a problem by thinking intensely about it
| D |
module dgl.opengl;
private {
version( D_Version2 ) {
import std.path;
import std.file;
import std.string;
import std.stdio : writeln;
import std.conv;
import sys.SharedLib;
} else {
import tango.io.FileScan;
;
import tango.text.Util;
import tango.stdc.stringz;
import tango.util.PathUtil;
import tango.sys.SharedLib;
import tango.io.Stdout;
alias char[] string;
}
import dgl.common;
import dgl.exceptions;
import dgl.loadercommon;
import dgl.glext;
}
public {
import dgl.glufunctions;
import dgl.glfunctions;
}
version (DglNoExtSupportAsserts) {
} else {
version = DglExtSupportAsserts;
}
struct ExtContext {
version (DglExtSupportAsserts) {
GLHandle glh;
ushort[30] extList;
ushort numExt;
}
bool supported;
bool opIn(void delegate() dg) {
if (supported) {
version (DglNoExtSupportAsserts) {
dg();
}
version (DglExtSupportAsserts) {
foreach (e; extList[0..numExt]) {
++glh.extEnabled[e];
}
dg();
foreach (e; extList[0..numExt]) {
--glh.extEnabled[e];
}
}
return true;
} else {
return false;
}
}
}
ExtContext ext(GL gl, ushort[] extList ...) {
bool supported = true;
foreach (e; extList) {
auto f = __extSupportCheckingFuncs[e];
assert (f !is null);
if (!f(gl)) {
supported = false;
break;
}
}
ExtContext res = void;
if (supported) {
res.supported = true;
version (DglExtSupportAsserts) {
res.glh = _getGL(gl);
assert (extList.length < 30, `will any more be needed? :P`);
res.extList[0..extList.length] = extList;
res.numExt = cast(ushort)extList.length;
}
} else {
res.supported = false;
}
return res;
}
version (Windows) {
public import xf.dgl.platform.Win32;
}
else version (Posix) {
version (linux) {
public import dgl.platform.glx_functionptrs;
}
else version (darwin) {
public import dgl.platform.OSX;
}
}
else {
static assert (false); // TODO
}
private {
void loadGLFunctionsFromLib_(void* function(char*) loadFuncFromLib) {
loadPlatformFunctions_(loadFuncFromLib);
loadCoreFunctions_(loadFuncFromLib);
}
SharedLib glLib;
SharedLib gluLib;
bool loadGlLib_(string src) {
unloadGlLib_();
try {
glLib = SharedLib.load(src);
return glLib !is null;
} catch (SharedLibException e) {
return false;
}
}
void unloadGlLib_() {
if (glLib !is null) {
glLib.unload();
glLib = null;
}
}
bool loadGluLib_(string src) {
unloadGluLib_();
try {
gluLib = SharedLib.load(src);
return gluLib !is null;
} catch (SharedLibException) {
return false;
}
}
void unloadGluLib_() {
if (gluLib !is null) {
gluLib.unload();
gluLib = null;
}
}
}
private Object loaderMutex;
static this() {
loaderMutex = new Object;
}
void findAndLoadLibs() {
synchronized (loaderMutex) {
static bool loaded = false;
if (loaded) return;
scope (success) loaded = true;
void load(string[] namesList, void delegate() loadFunc, bool function(string) loadLibFunc) {
foreach (path; libSearchPaths) {
if (0 == path.length) { // load from default locations
foreach (name; namesList) {
if (loadLibFunc(name)) {
loadFunc();
return;
} else {
continue;
}
}
}
version( D_Version2 ) {
auto rootPath = basename(path);
if (exists(path) && isdir(path)) {
foreach (filePath; listdir(rootPath)) {
try {
if (isdir(filePath)) continue;
} catch {
continue;
}
foreach (name; namesList) {
if( fnmatch(filePath, name) ) {
if (loadLibFunc(path.join(path, filePath))) {
loadFunc();
return;
} else {
continue;
}
}
}
}
}
} else {
auto rootPath = FilePath(path);
if (rootPath.exists && rootPath.isFolder) {
foreach (filePath; rootPath.toList) {
try {
if (filePath.isFolder) continue;
} catch {
continue;
}
foreach (name; namesList) {
if (tango.util.PathUtil.patternMatch(filePath.file, name)) {
if (loadLibFunc(FilePath().join(path, filePath.file))) {
loadFunc();
return;
} else {
continue;
}
}
}
}
}
}
}
handleLibNotFound(namesList, libSearchPaths);
}
load(libNames, (){ loadGLFunctionsFromLib_(&loadFuncFromLib); }, &loadGlLib_);
load(gluLibNames, (){ loadGluFunctions_(&loadFuncFromGluLib); }, &loadGluLib_);
}
}
bool extractVersionNumbers(string str, char delim, int* major, int* minor) {
version( D_Version2 ) {
int dot = str.indexOf(delim);
} else {
int dot = str.locate(delim);
}
if (dot+1 >= str.length || 0 == dot) return false;
char d1 = str[dot-1];
char d2 = str[dot+1];
if (d1 > '9' || d1 < '0' || d2 > '9' || d2 < '0') return false;
*major = d1 - '0';
*minor = d2 - '0';
return true;
}
bool isOpenGLVersionSupported(string versionStr, char delim) {
int implMajor, implMinor;
int chkMajor, chkMinor;
version( D_Version2 ) {
debug(verbose) writeln(to!(string)(fp_glGetString(dgl.common.GL_VERSION)));
if ( extractVersionNumbers(to!(string)(fp_glGetString(dgl.common.GL_VERSION)), '.', &implMajor, &implMinor) &&
extractVersionNumbers(versionStr, delim, &chkMajor, &chkMinor))
{
if (implMajor > chkMajor) return true;
if (implMajor == chkMajor && implMinor >= chkMinor) return true;
}
} else {
debug(verbose) Stdout.formatln(fromStringz(fp_glGetString(xf.dgl.common.GL_VERSION)));
if ( extractVersionNumbers(fromStringz(fp_glGetString(dgl.common.GL_VERSION)), '.', &implMajor, &implMinor) &&
extractVersionNumbers(versionStr, delim, &chkMajor, &chkMinor))
{
if (implMajor > chkMajor) return true;
if (implMajor == chkMajor && implMinor >= chkMinor) return true;
}
}
return false;
}
void* loadFuncFromLib(char* name) {
void* func = glLib.getSymbol(name);
if (func is null) {
handleMissingProc(name);
return null;
} else {
return func;
}
}
void* loadFuncFromGluLib(char* name) {
void* func = gluLib.getSymbol(name);
if (func is null) {
handleMissingProc(name);
return null;
} else {
return func;
}
}
| D |
# FIXED
third_party/FreeRTOS/Source/queue.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/FreeRTOS/Source/queue.c
third_party/FreeRTOS/Source/queue.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/stdlib.h
third_party/FreeRTOS/Source/queue.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/_ti_config.h
third_party/FreeRTOS/Source/queue.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/linkage.h
third_party/FreeRTOS/Source/queue.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/sys/cdefs.h
third_party/FreeRTOS/Source/queue.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/string.h
third_party/FreeRTOS/Source/queue.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/FreeRTOS/Source/include/FreeRTOS.h
third_party/FreeRTOS/Source/queue.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/stddef.h
third_party/FreeRTOS/Source/queue.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/stdint.h
third_party/FreeRTOS/Source/queue.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/sys/stdint.h
third_party/FreeRTOS/Source/queue.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/sys/_types.h
third_party/FreeRTOS/Source/queue.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/machine/_types.h
third_party/FreeRTOS/Source/queue.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/machine/_stdint.h
third_party/FreeRTOS/Source/queue.obj: C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/sys/_stdint.h
third_party/FreeRTOS/Source/queue.obj: C:/Users/jains/workspace_v8/seqgen/FreeRTOSConfig.h
third_party/FreeRTOS/Source/queue.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/FreeRTOS/Source/include/projdefs.h
third_party/FreeRTOS/Source/queue.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/FreeRTOS/Source/include/portable.h
third_party/FreeRTOS/Source/queue.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/FreeRTOS/Source/include/deprecated_definitions.h
third_party/FreeRTOS/Source/queue.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/FreeRTOS/Source/portable/CCS/ARM_CM4F/portmacro.h
third_party/FreeRTOS/Source/queue.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/FreeRTOS/Source/include/mpu_wrappers.h
third_party/FreeRTOS/Source/queue.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/FreeRTOS/Source/include/task.h
third_party/FreeRTOS/Source/queue.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/FreeRTOS/Source/include/list.h
third_party/FreeRTOS/Source/queue.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/FreeRTOS/Source/include/queue.h
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/FreeRTOS/Source/queue.c:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/stdlib.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/_ti_config.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/linkage.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/sys/cdefs.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/string.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/FreeRTOS/Source/include/FreeRTOS.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/stddef.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/stdint.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/sys/stdint.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/sys/_types.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/machine/_types.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/machine/_stdint.h:
C:/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.4.LTS/include/sys/_stdint.h:
C:/Users/jains/workspace_v8/seqgen/FreeRTOSConfig.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/FreeRTOS/Source/include/projdefs.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/FreeRTOS/Source/include/portable.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/FreeRTOS/Source/include/deprecated_definitions.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/FreeRTOS/Source/portable/CCS/ARM_CM4F/portmacro.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/FreeRTOS/Source/include/mpu_wrappers.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/FreeRTOS/Source/include/task.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/FreeRTOS/Source/include/list.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/FreeRTOS/Source/include/queue.h:
| D |
/Users/processor_machine/Desktop/rusty-chat/target/debug/build/indexmap-8ba3378160c5b26e/build_script_build-8ba3378160c5b26e: /Users/processor_machine/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.4.0/build.rs
/Users/processor_machine/Desktop/rusty-chat/target/debug/build/indexmap-8ba3378160c5b26e/build_script_build-8ba3378160c5b26e.d: /Users/processor_machine/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.4.0/build.rs
/Users/processor_machine/.cargo/registry/src/github.com-1ecc6299db9ec823/indexmap-1.4.0/build.rs:
| D |
/**
* This module provides an `Array` type with deterministic memory usage not
* reliant on the GC, as an alternative to the built-in arrays.
*
* This module is a submodule of $(MREF std, container).
*
* Source: $(PHOBOSSRC std/container/array.d)
*
* Copyright: 2010- Andrei Alexandrescu. All rights reserved by the respective holders.
*
* License: Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at $(HTTP
* boost.org/LICENSE_1_0.txt)).
*
* Authors: $(HTTP erdani.com, Andrei Alexandrescu)
*
* $(SCRIPT inhibitQuickIndex = 1;)
*/
module std.container.array;
import core.exception : RangeError;
import std.range.primitives;
import std.traits;
public import std.container.util;
pure @system unittest
{
// We test multiple array lengths in order to ensure that the "a1.capacity == a0.length" test is meaningful
// for the version in which the constructor uses insertBack
// (because for some lengths, the test passes even without reserve).
for (size_t n = 0; n < 100; ++n)
{
float[] a0;
{
import std.range : iota;
import std.array;
import std.algorithm.iteration : map;
a0 = iota (0, n).map!(i => i * 1.1f).array;
}
auto a1 = Array!float(a0);
// We check that a1 has the same length and contents as a0:
{
assert(a1.length == a0.length);
// I wish that I could write "assert(a1[] == a0[]);",
// but the compiler complains: "Error: incompatible types for `(a1.opSlice()) == (a0[])`: `RangeT!(Array!float)` and `float[]`".
import std.algorithm.comparison : equal;
assert(equal(a1[], a0[]));
}
// We check that a1's constructor has called reserve (to maintain good performance):
assert(a1.capacity == a0.length);
}
}
pure @system unittest
{
// To avoid bad performance, we check that an Array constructed from an empty range
// does not initialize its RefCountedStore object, even after a call to "reserve(0)".
{
Array!float a1;
assert(! a1._data.refCountedStore.isInitialized);
a1.reserve(0);
assert(! a1._data.refCountedStore.isInitialized);
}
{
float[] a0 = [];
Array!float a1 = a0;
// [2021-09-26] TODO: Investigate RefCounted.
//assert(! a1._data.refCountedStore.isInitialized);
a1.reserve(0);
// [2021-09-26] TODO: Investigate RefCounted.
//assert(! a1._data.refCountedStore.isInitialized);
}
}
///
pure @system unittest
{
auto arr = Array!int(0, 2, 3);
assert(arr[0] == 0);
assert(arr.front == 0);
assert(arr.back == 3);
// reserve space
arr.reserve(1000);
assert(arr.length == 3);
assert(arr.capacity >= 1000);
// insertion
arr.insertBefore(arr[1..$], 1);
assert(arr.front == 0);
assert(arr.length == 4);
arr.insertBack(4);
assert(arr.back == 4);
assert(arr.length == 5);
// set elements
arr[1] *= 42;
assert(arr[1] == 42);
}
///
pure @system unittest
{
import std.algorithm.comparison : equal;
auto arr = Array!int(1, 2, 3);
// concat
auto b = Array!int(11, 12, 13);
arr ~= b;
assert(arr.length == 6);
// slicing
assert(arr[1 .. 3].equal([2, 3]));
// remove
arr.linearRemove(arr[1 .. 3]);
assert(arr[0 .. 2].equal([1, 11]));
}
/// `Array!bool` packs together values efficiently by allocating one bit per element
pure @system unittest
{
auto arr = Array!bool([true, true, false, true, false]);
assert(arr.length == 5);
}
private struct RangeT(A)
{
/* Workaround for https://issues.dlang.org/show_bug.cgi?id=13629
See also: http://forum.dlang.org/post/[email protected]
*/
private A[1] _outer_;
private @property ref inout(A) _outer() inout { return _outer_[0]; }
private size_t _a, _b;
/* E is different from T when A is more restrictively qualified than T:
immutable(Array!int) => T == int, E = immutable(int) */
alias E = typeof(_outer_[0]._data._payload[0]);
private this(ref A data, size_t a, size_t b)
{
_outer_ = data;
_a = a;
_b = b;
}
@property RangeT save()
{
return this;
}
@property bool empty() @safe pure nothrow const
{
return _a >= _b;
}
@property size_t length() @safe pure nothrow const
{
return _b - _a;
}
alias opDollar = length;
@property ref inout(E) front() inout
{
assert(!empty, "Attempting to access the front of an empty Array");
return _outer[_a];
}
@property ref inout(E) back() inout
{
assert(!empty, "Attempting to access the back of an empty Array");
return _outer[_b - 1];
}
void popFront() @safe @nogc pure nothrow
{
assert(!empty, "Attempting to popFront an empty Array");
++_a;
}
void popBack() @safe @nogc pure nothrow
{
assert(!empty, "Attempting to popBack an empty Array");
--_b;
}
static if (isMutable!A)
{
import std.algorithm.mutation : move;
E moveFront()
{
assert(!empty, "Attempting to moveFront an empty Array");
assert(_a < _outer.length,
"Attempting to moveFront using an out of bounds low index on an Array");
return move(_outer._data._payload[_a]);
}
E moveBack()
{
assert(!empty, "Attempting to moveBack an empty Array");
assert(_b - 1 < _outer.length,
"Attempting to moveBack using an out of bounds high index on an Array");
return move(_outer._data._payload[_b - 1]);
}
E moveAt(size_t i)
{
assert(_a + i < _b,
"Attempting to moveAt using an out of bounds index on an Array");
assert(_a + i < _outer.length,
"Cannot move past the end of the array");
return move(_outer._data._payload[_a + i]);
}
}
ref inout(E) opIndex(size_t i) inout
{
assert(_a + i < _b,
"Attempting to fetch using an out of bounds index on an Array");
return _outer[_a + i];
}
RangeT opSlice()
{
return typeof(return)(_outer, _a, _b);
}
RangeT opSlice(size_t i, size_t j)
{
assert(i <= j && _a + j <= _b,
"Attempting to slice using an out of bounds indices on an Array");
return typeof(return)(_outer, _a + i, _a + j);
}
RangeT!(const(A)) opSlice() const
{
return typeof(return)(_outer, _a, _b);
}
RangeT!(const(A)) opSlice(size_t i, size_t j) const
{
assert(i <= j && _a + j <= _b,
"Attempting to slice using an out of bounds indices on an Array");
return typeof(return)(_outer, _a + i, _a + j);
}
static if (isMutable!A)
{
void opSliceAssign(E value)
{
assert(_b <= _outer.length,
"Attempting to assign using an out of bounds indices on an Array");
_outer[_a .. _b] = value;
}
void opSliceAssign(E value, size_t i, size_t j)
{
assert(_a + j <= _b,
"Attempting to slice assign using an out of bounds indices on an Array");
_outer[_a + i .. _a + j] = value;
}
void opSliceUnary(string op)()
if (op == "++" || op == "--")
{
assert(_b <= _outer.length,
"Attempting to slice using an out of bounds indices on an Array");
mixin(op~"_outer[_a .. _b];");
}
void opSliceUnary(string op)(size_t i, size_t j)
if (op == "++" || op == "--")
{
assert(_a + j <= _b,
"Attempting to slice using an out of bounds indices on an Array");
mixin(op~"_outer[_a + i .. _a + j];");
}
void opSliceOpAssign(string op)(E value)
{
assert(_b <= _outer.length,
"Attempting to slice using an out of bounds indices on an Array");
mixin("_outer[_a .. _b] "~op~"= value;");
}
void opSliceOpAssign(string op)(E value, size_t i, size_t j)
{
assert(_a + j <= _b,
"Attempting to slice using an out of bounds indices on an Array");
mixin("_outer[_a + i .. _a + j] "~op~"= value;");
}
}
}
@system unittest
{
enum : bool { display = false }
static if (display)
{
import std.stdio;
enum { nDigitsForPointer = 2 * size_t.sizeof, nDigitsForNObjects = 4 }
}
static struct S
{
static size_t s_nConstructed;
static size_t s_nDestroyed;
static void throwIfTooMany()
{
if (s_nConstructed >= 7) throw new Exception ("Ka-boom !");
}
uint _i;
~this()
{
static if (display) writefln("@%*Xh: Destroying.", nDigitsForPointer, &this);
++s_nDestroyed;
}
this(uint i)
{
static if (display) writefln("@%*Xh: Constructing.", nDigitsForPointer, &this);
_i = i;
++s_nConstructed;
throwIfTooMany();
}
this(this)
{
static if (display) writefln("@%*Xh: Copying.", nDigitsForPointer, &this);
++s_nConstructed;
throwIfTooMany();
}
}
try
{
auto a = Array!S (S(0), S(1), S(2), S(3));
static if (display) writefln("@%*Xh: This is where the array elements are.", nDigitsForPointer, &a [0]);
}
catch (Exception e)
{
static if (display) writefln("Exception caught !");
}
static if (display)
{
writefln("s_nConstructed %*Xh.", nDigitsForNObjects, S.s_nConstructed);
writefln("s_nDestroyed %*Xh.", nDigitsForNObjects, S.s_nDestroyed);
writefln("s_nConstructed should be equal to s_nDestroyed.");
writefln("");
}
assert(S.s_nDestroyed == S.s_nConstructed);
}
/**
* _Array type with deterministic control of memory. The memory allocated
* for the array is reclaimed as soon as possible; there is no reliance
* on the garbage collector. `Array` uses `malloc`, `realloc` and `free`
* for managing its own memory.
*
* This means that pointers to elements of an `Array` will become
* dangling as soon as the element is removed from the `Array`. On the other hand
* the memory allocated by an `Array` will be scanned by the GC and
* GC managed objects referenced from an `Array` will be kept alive.
*
* Note:
*
* When using `Array` with range-based functions like those in `std.algorithm`,
* `Array` must be sliced to get a range (for example, use `array[].map!`
* instead of `array.map!`). The container itself is not a range.
*/
struct Array(T)
if (!is(immutable T == immutable bool))
{
import core.memory : free = pureFree;
import std.internal.memory : enforceMalloc, enforceRealloc;
import core.stdc.string : memcpy, memmove, memset;
import core.memory : GC;
import std.exception : enforce;
import std.typecons : RefCounted, RefCountedAutoInitialize;
// This structure is not copyable.
private struct Payload
{
size_t _capacity;
T[] _payload;
this(T[] p) { _capacity = p.length; _payload = p; }
// Destructor releases array memory
~this()
{
// Warning: destroy would destroy also class instances.
// The hasElaborateDestructor protects us here.
static if (hasElaborateDestructor!T)
foreach (ref e; _payload)
.destroy(e);
static if (hasIndirections!T)
GC.removeRange(_payload.ptr);
free(_payload.ptr);
}
this(this) @disable;
void opAssign(Payload rhs) @disable;
@property size_t length() const
{
return _payload.length;
}
@property void length(size_t newLength)
{
if (length >= newLength)
{
// shorten
static if (hasElaborateDestructor!T)
foreach (ref e; _payload.ptr[newLength .. _payload.length])
.destroy(e);
_payload = _payload.ptr[0 .. newLength];
return;
}
static if (__traits(compiles, { static T _; }))
{
import std.algorithm.mutation : initializeAll;
immutable startEmplace = length;
reserve(newLength);
initializeAll(_payload.ptr[startEmplace .. newLength]);
_payload = _payload.ptr[0 .. newLength];
}
else
{
assert(0, "Cannot add elements to array because `" ~
fullyQualifiedName!T ~ ".this()` is annotated with " ~
"`@disable`.");
}
}
@property size_t capacity() const
{
return _capacity;
}
void reserve(size_t elements)
{
if (elements <= capacity) return;
static if (T.sizeof == 1)
{
const sz = elements;
}
else
{
import core.checkedint : mulu;
bool overflow;
const sz = mulu(elements, T.sizeof, overflow);
if (overflow)
assert(false, "Overflow");
}
static if (hasIndirections!T)
{
/* Because of the transactional nature of this
* relative to the garbage collector, ensure no
* threading bugs by using malloc/copy/free rather
* than realloc.
*/
immutable oldLength = length;
auto newPayloadPtr = cast(T*) enforceMalloc(sz);
auto newPayload = newPayloadPtr[0 .. oldLength];
// copy old data over to new array
memcpy(newPayload.ptr, _payload.ptr, T.sizeof * oldLength);
// Zero out unused capacity to prevent gc from seeing false pointers
memset(newPayload.ptr + oldLength,
0,
(elements - oldLength) * T.sizeof);
GC.addRange(newPayload.ptr, sz);
GC.removeRange(_payload.ptr);
free(_payload.ptr);
_payload = newPayload;
}
else
{
// These can't have pointers, so no need to zero unused region
auto newPayloadPtr = cast(T*) enforceRealloc(_payload.ptr, sz);
auto newPayload = newPayloadPtr[0 .. length];
_payload = newPayload;
}
_capacity = elements;
}
// Insert one item
size_t insertBack(Elem)(Elem elem)
if (isImplicitlyConvertible!(Elem, T))
{
import core.lifetime : emplace;
assert(_capacity >= length);
if (_capacity == length)
{
import core.checkedint : addu;
bool overflow;
immutable size_t newCapacity = addu(capacity, capacity / 2 + 1, overflow);
if (overflow)
assert(false, "Overflow");
reserve(newCapacity);
}
assert(capacity > length && _payload.ptr,
"Failed to reserve memory");
emplace(_payload.ptr + _payload.length, elem);
_payload = _payload.ptr[0 .. _payload.length + 1];
return 1;
}
// Insert a range of items
size_t insertBack(Range)(Range r)
if (isInputRange!Range && isImplicitlyConvertible!(ElementType!Range, T))
{
immutable size_t oldLength = length;
static if (hasLength!Range)
{
immutable size_t rLength = r.length;
reserve(oldLength + rLength);
}
size_t result;
foreach (item; r)
{
insertBack(item);
++result;
}
static if (hasLength!Range)
assert(result == rLength, "insertBack: range might have changed length");
assert(length == oldLength + result,
"Failed to insertBack range");
return result;
}
}
private alias Data = RefCounted!(Payload, RefCountedAutoInitialize.no);
private Data _data;
/**
* Constructor taking a number of items.
*/
this(U)(U[] values...)
if (isImplicitlyConvertible!(U, T))
{
// [2021-07-17] Checking to see whether *always* calling ensureInitialized works-around-and/or-is-related-to https://issues.dlang.org/show_bug.cgihttps://issues.dlang.org/show_bug.cgi...
//if (values.length)
{
_data.refCountedStore.ensureInitialized();
_data.reserve(values.length);
foreach (ref value; values)
{
// We do not simply write "_data.insertBack(value);"
// because that might perform, on each iteration, a now-redundant check of length vs capacity.
// Thanks to @dkorpel (https://github.com/dlang/phobos/pull/8162#discussion_r667479090).
import core.lifetime : emplace;
emplace(_data._payload.ptr + _data._payload.length, value);
// We increment the length after each iteration (as opposed to adjusting it just once, after the loop)
// in order to improve error-safety (in case one of the calls to emplace throws).
_data._payload = _data._payload.ptr[0 .. _data._payload.length + 1];
}
}
assert(length == values.length); // We check that all values have been inserted.
assert(capacity == values.length); // We check that reserve has been called before the loop.
}
/**
* Constructor taking an $(REF_ALTTEXT input range, isInputRange, std,range,primitives)
*/
this(Range)(Range r)
if (isInputRange!Range && isImplicitlyConvertible!(ElementType!Range, T) && !is(Range == T[]))
{
insertBack(r);
}
/**
* Comparison for equality.
*/
bool opEquals(const Array rhs) const
{
return opEquals(rhs);
}
/// ditto
bool opEquals(ref const Array rhs) const
{
if (empty) return rhs.empty;
if (rhs.empty) return false;
return _data._payload == rhs._data._payload;
}
/**
* Defines the array's primary range, which is a random-access range.
*
* `ConstRange` is a variant with `const` elements.
* `ImmutableRange` is a variant with `immutable` elements.
*/
alias Range = RangeT!Array;
/// ditto
alias ConstRange = RangeT!(const Array);
/// ditto
alias ImmutableRange = RangeT!(immutable Array);
/**
* Duplicates the array. The elements themselves are not transitively
* duplicated.
*
* Complexity: $(BIGOH length).
*/
@property Array dup()
{
if (!_data.refCountedStore.isInitialized) return this;
return Array(_data._payload);
}
/**
* Returns: `true` if and only if the array has no elements.
*
* Complexity: $(BIGOH 1)
*/
@property bool empty() const
{
return !_data.refCountedStore.isInitialized || _data._payload.empty;
}
/**
* Returns: The number of elements in the array.
*
* Complexity: $(BIGOH 1).
*/
@property size_t length() const
{
return _data.refCountedStore.isInitialized ? _data._payload.length : 0;
}
/// ditto
size_t opDollar() const
{
return length;
}
/**
* Returns: The maximum number of elements the array can store without
* reallocating memory and invalidating iterators upon insertion.
*
* Complexity: $(BIGOH 1)
*/
@property size_t capacity()
{
return _data.refCountedStore.isInitialized ? _data._capacity : 0;
}
/**
* Returns: the internal representation of the array.
*
* Complexity: $(BIGOH 1).
*/
inout(T)[] data() inout @system
{
return _data.refCountedStore.isInitialized ? _data._payload : [];
}
/**
* Ensures sufficient capacity to accommodate `e` _elements.
* If `e < capacity`, this method does nothing.
*
* Postcondition: `capacity >= e`
*
* Note: If the capacity is increased, one should assume that all
* iterators to the elements are invalidated.
*
* Complexity: at most $(BIGOH length) if `e > capacity`, otherwise $(BIGOH 1).
*/
void reserve(size_t elements)
{
if (elements > capacity)
{
_data.refCountedStore.ensureInitialized();
_data.reserve(elements);
assert(capacity == elements); // Might need changing to ">=" if implementation of Payload.reserve is changed.
}
}
/**
* Returns: A range that iterates over elements of the array in
* forward order.
*
* Complexity: $(BIGOH 1)
*/
Range opSlice()
{
return typeof(return)(this, 0, length);
}
ConstRange opSlice() const
{
return typeof(return)(this, 0, length);
}
ImmutableRange opSlice() immutable
{
return typeof(return)(this, 0, length);
}
/**
* Returns: A range that iterates over elements of the array from
* index `i` up to (excluding) index `j`.
*
* Precondition: `i <= j && j <= length`
*
* Complexity: $(BIGOH 1)
*/
Range opSlice(size_t i, size_t j)
{
assert(i <= j && j <= length, "Invalid slice bounds");
return typeof(return)(this, i, j);
}
ConstRange opSlice(size_t i, size_t j) const
{
assert(i <= j && j <= length, "Invalid slice bounds");
return typeof(return)(this, i, j);
}
ImmutableRange opSlice(size_t i, size_t j) immutable
{
assert(i <= j && j <= length, "Invalid slice bounds");
return typeof(return)(this, i, j);
}
/**
* Returns: The first element of the array.
*
* Precondition: `empty == false`
*
* Complexity: $(BIGOH 1)
*/
@property ref inout(T) front() inout
{
assert(_data.refCountedStore.isInitialized,
"Cannot get front of empty range");
return _data._payload[0];
}
/**
* Returns: The last element of the array.
*
* Precondition: `empty == false`
*
* Complexity: $(BIGOH 1)
*/
@property ref inout(T) back() inout
{
assert(_data.refCountedStore.isInitialized,
"Cannot get back of empty range");
return _data._payload[$ - 1];
}
/**
* Returns: The element or a reference to the element at the specified index.
*
* Precondition: `i < length`
*
* Complexity: $(BIGOH 1)
*/
ref inout(T) opIndex(size_t i) inout
{
assert(_data.refCountedStore.isInitialized,
"Cannot index empty range");
return _data._payload[i];
}
/**
* Slicing operators executing the specified operation on the entire slice.
*
* Precondition: `i < j && j < length`
*
* Complexity: $(BIGOH slice.length)
*/
void opSliceAssign(T value)
{
if (!_data.refCountedStore.isInitialized) return;
_data._payload[] = value;
}
/// ditto
void opSliceAssign(T value, size_t i, size_t j)
{
auto slice = _data.refCountedStore.isInitialized ?
_data._payload :
T[].init;
slice[i .. j] = value;
}
/// ditto
void opSliceUnary(string op)()
if (op == "++" || op == "--")
{
if (!_data.refCountedStore.isInitialized) return;
mixin(op~"_data._payload[];");
}
/// ditto
void opSliceUnary(string op)(size_t i, size_t j)
if (op == "++" || op == "--")
{
auto slice = _data.refCountedStore.isInitialized ? _data._payload : T[].init;
mixin(op~"slice[i .. j];");
}
/// ditto
void opSliceOpAssign(string op)(T value)
{
if (!_data.refCountedStore.isInitialized) return;
mixin("_data._payload[] "~op~"= value;");
}
/// ditto
void opSliceOpAssign(string op)(T value, size_t i, size_t j)
{
auto slice = _data.refCountedStore.isInitialized ? _data._payload : T[].init;
mixin("slice[i .. j] "~op~"= value;");
}
private enum hasSliceWithLength(T) = is(typeof({ T t = T.init; t[].length; }));
/**
* Returns: A new array which is a concatenation of `this` and its argument.
*
* Complexity:
* $(BIGOH length + m), where `m` is the number of elements in `stuff`.
*/
Array opBinary(string op, Stuff)(Stuff stuff)
if (op == "~")
{
Array result;
static if (hasLength!Stuff || isNarrowString!Stuff)
result.reserve(length + stuff.length);
else static if (hasSliceWithLength!Stuff)
result.reserve(length + stuff[].length);
else static if (isImplicitlyConvertible!(Stuff, T))
result.reserve(length + 1);
result.insertBack(this[]);
result ~= stuff;
return result;
}
/**
* Forwards to `insertBack`.
*/
void opOpAssign(string op, Stuff)(auto ref Stuff stuff)
if (op == "~")
{
static if (is(typeof(stuff[])) && isImplicitlyConvertible!(typeof(stuff[0]), T))
{
insertBack(stuff[]);
}
else
{
insertBack(stuff);
}
}
/**
* Removes all the elements from the array and releases allocated memory.
*
* Postcondition: `empty == true && capacity == 0`
*
* Complexity: $(BIGOH length)
*/
void clear()
{
_data = Data.init;
}
/**
* Sets the number of elements in the array to `newLength`. If `newLength`
* is greater than `length`, the new elements are added to the end of the
* array and initialized with `T.init`. If `T` is a `struct` whose default
* constructor is annotated with `@disable`, `newLength` must be lower than
* or equal to `length`.
*
* Complexity:
* Guaranteed $(BIGOH abs(length - newLength)) if `capacity >= newLength`.
* If `capacity < newLength` the worst case is $(BIGOH newLength).
*
* Precondition: `__traits(compiles, { static T _; }) || newLength <= length`
*
* Postcondition: `length == newLength`
*/
@property void length(size_t newLength)
{
_data.refCountedStore.ensureInitialized();
_data.length = newLength;
}
/**
* Removes the last element from the array and returns it.
* Both stable and non-stable versions behave the same and guarantee
* that ranges iterating over the array are never invalidated.
*
* Precondition: `empty == false`
*
* Returns: The element removed.
*
* Complexity: $(BIGOH 1).
*
* Throws: `Exception` if the array is empty.
*/
T removeAny()
{
auto result = back;
removeBack();
return result;
}
/// ditto
alias stableRemoveAny = removeAny;
/**
* Inserts the specified elements at the back of the array. `stuff` can be
* a value convertible to `T` or a range of objects convertible to `T`.
*
* Returns: The number of elements inserted.
*
* Complexity:
* $(BIGOH length + m) if reallocation takes place, otherwise $(BIGOH m),
* where `m` is the number of elements in `stuff`.
*/
size_t insertBack(Stuff)(Stuff stuff)
if (isImplicitlyConvertible!(Stuff, T) ||
isInputRange!Stuff && isImplicitlyConvertible!(ElementType!Stuff, T))
{
_data.refCountedStore.ensureInitialized();
return _data.insertBack(stuff);
}
/// ditto
alias insert = insertBack;
/**
* Removes the value from the back of the array. Both stable and non-stable
* versions behave the same and guarantee that ranges iterating over the
* array are never invalidated.
*
* Precondition: `empty == false`
*
* Complexity: $(BIGOH 1).
*
* Throws: `Exception` if the array is empty.
*/
void removeBack()
{
enforce(!empty);
static if (hasElaborateDestructor!T)
.destroy(_data._payload[$ - 1]);
_data._payload = _data._payload[0 .. $ - 1];
}
/// ditto
alias stableRemoveBack = removeBack;
/**
* Removes `howMany` values from the back of the array.
* Unlike the unparameterized versions above, these functions
* do not throw if they could not remove `howMany` elements. Instead,
* if `howMany > n`, all elements are removed. The returned value is
* the effective number of elements removed. Both stable and non-stable
* versions behave the same and guarantee that ranges iterating over
* the array are never invalidated.
*
* Returns: The number of elements removed.
*
* Complexity: $(BIGOH howMany).
*/
size_t removeBack(size_t howMany)
{
if (howMany > length) howMany = length;
static if (hasElaborateDestructor!T)
foreach (ref e; _data._payload[$ - howMany .. $])
.destroy(e);
_data._payload = _data._payload[0 .. $ - howMany];
return howMany;
}
/// ditto
alias stableRemoveBack = removeBack;
/**
* Inserts `stuff` before, after, or instead range `r`, which must
* be a valid range previously extracted from this array. `stuff`
* can be a value convertible to `T` or a range of objects convertible
* to `T`. Both stable and non-stable version behave the same and
* guarantee that ranges iterating over the array are never invalidated.
*
* Returns: The number of values inserted.
*
* Complexity: $(BIGOH length + m), where `m` is the length of `stuff`.
*
* Throws: `Exception` if `r` is not a range extracted from this array.
*/
size_t insertBefore(Stuff)(Range r, Stuff stuff)
if (isImplicitlyConvertible!(Stuff, T))
{
import core.lifetime : emplace;
enforce(r._outer._data is _data && r._a <= length);
reserve(length + 1);
assert(_data.refCountedStore.isInitialized,
"Failed to allocate capacity to insertBefore");
// Move elements over by one slot
memmove(_data._payload.ptr + r._a + 1,
_data._payload.ptr + r._a,
T.sizeof * (length - r._a));
emplace(_data._payload.ptr + r._a, stuff);
_data._payload = _data._payload.ptr[0 .. _data._payload.length + 1];
return 1;
}
/// ditto
size_t insertBefore(Stuff)(Range r, Stuff stuff)
if (isInputRange!Stuff && isImplicitlyConvertible!(ElementType!Stuff, T))
{
import core.lifetime : emplace;
enforce(r._outer._data is _data && r._a <= length);
static if (isForwardRange!Stuff)
{
// Can find the length in advance
auto extra = walkLength(stuff);
if (!extra) return 0;
reserve(length + extra);
assert(_data.refCountedStore.isInitialized,
"Failed to allocate capacity to insertBefore");
// Move elements over by extra slots
memmove(_data._payload.ptr + r._a + extra,
_data._payload.ptr + r._a,
T.sizeof * (length - r._a));
foreach (p; _data._payload.ptr + r._a ..
_data._payload.ptr + r._a + extra)
{
emplace(p, stuff.front);
stuff.popFront();
}
_data._payload =
_data._payload.ptr[0 .. _data._payload.length + extra];
return extra;
}
else
{
import std.algorithm.mutation : bringToFront;
enforce(_data);
immutable offset = r._a;
enforce(offset <= length);
auto result = insertBack(stuff);
bringToFront(this[offset .. length - result],
this[length - result .. length]);
return result;
}
}
/// ditto
alias stableInsertBefore = insertBefore;
/// ditto
size_t insertAfter(Stuff)(Range r, Stuff stuff)
if (isImplicitlyConvertible!(Stuff, T) ||
isInputRange!Stuff && isImplicitlyConvertible!(ElementType!Stuff, T))
{
import std.algorithm.mutation : bringToFront;
enforce(r._outer._data is _data);
// TODO: optimize
immutable offset = r._b;
enforce(offset <= length);
auto result = insertBack(stuff);
bringToFront(this[offset .. length - result],
this[length - result .. length]);
return result;
}
/// ditto
size_t replace(Stuff)(Range r, Stuff stuff)
if (isInputRange!Stuff && isImplicitlyConvertible!(ElementType!Stuff, T))
{
enforce(r._outer._data is _data);
size_t result;
for (; !stuff.empty; stuff.popFront())
{
if (r.empty)
{
// insert the rest
return result + insertBefore(r, stuff);
}
r.front = stuff.front;
r.popFront();
++result;
}
// Remove remaining stuff in r
linearRemove(r);
return result;
}
/// ditto
size_t replace(Stuff)(Range r, Stuff stuff)
if (isImplicitlyConvertible!(Stuff, T))
{
enforce(r._outer._data is _data);
if (r.empty)
{
insertBefore(r, stuff);
}
else
{
r.front = stuff;
r.popFront();
linearRemove(r);
}
return 1;
}
/**
* Removes all elements belonging to `r`, which must be a range
* obtained originally from this array.
*
* Returns: A range spanning the remaining elements in the array that
* initially were right after `r`.
*
* Complexity: $(BIGOH length)
*
* Throws: `Exception` if `r` is not a valid range extracted from this array.
*/
Range linearRemove(Range r)
{
import std.algorithm.mutation : copy;
enforce(r._outer._data is _data);
enforce(_data.refCountedStore.isInitialized);
enforce(r._a <= r._b && r._b <= length);
immutable offset1 = r._a;
immutable offset2 = r._b;
immutable tailLength = length - offset2;
// Use copy here, not a[] = b[] because the ranges may overlap
copy(this[offset2 .. length], this[offset1 .. offset1 + tailLength]);
length = offset1 + tailLength;
return this[length - tailLength .. length];
}
}
@system unittest
{
Array!int a;
assert(a.empty);
}
@system unittest
{
Array!int a;
a.length = 10;
assert(a.length == 10);
assert(a.capacity >= a.length);
}
@system unittest
{
struct Dumb { int x = 5; }
Array!Dumb a;
a.length = 10;
assert(a.length == 10);
assert(a.capacity >= a.length);
immutable cap = a.capacity;
foreach (ref e; a)
e.x = 10;
a.length = 5;
assert(a.length == 5);
// do not realloc if length decreases
assert(a.capacity == cap);
foreach (ref e; a)
assert(e.x == 10);
a.length = 8;
assert(a.length == 8);
// do not realloc if capacity sufficient
assert(a.capacity == cap);
assert(Dumb.init.x == 5);
foreach (i; 0 .. 5)
assert(a[i].x == 10);
foreach (i; 5 .. a.length)
assert(a[i].x == Dumb.init.x);
// realloc required, check if values properly copied
a[] = Dumb(1);
a.length = 20;
assert(a.capacity >= 20);
foreach (i; 0 .. 8)
assert(a[i].x == 1);
foreach (i; 8 .. a.length)
assert(a[i].x == Dumb.init.x);
// check if overlapping elements properly initialized
a.length = 1;
a.length = 20;
assert(a[0].x == 1);
foreach (e; a[1 .. $])
assert(e.x == Dumb.init.x);
}
@system unittest
{
Array!int a = Array!int(1, 2, 3);
//a._data._refCountedDebug = true;
auto b = a.dup;
assert(b == Array!int(1, 2, 3));
b.front = 42;
assert(b == Array!int(42, 2, 3));
assert(a == Array!int(1, 2, 3));
}
@system unittest
{
auto a = Array!int(1, 2, 3);
assert(a.length == 3);
}
@system unittest
{
const Array!int a = [1, 2];
assert(a[0] == 1);
assert(a.front == 1);
assert(a.back == 2);
static assert(!__traits(compiles, { a[0] = 1; }));
static assert(!__traits(compiles, { a.front = 1; }));
static assert(!__traits(compiles, { a.back = 1; }));
auto r = a[];
size_t i;
foreach (e; r)
{
assert(e == i + 1);
i++;
}
}
@safe unittest
{
// https://issues.dlang.org/show_bug.cgi?id=13621
import std.container : Array, BinaryHeap;
alias Heap = BinaryHeap!(Array!int);
}
@system unittest
{
// https://issues.dlang.org/show_bug.cgi?id=18800
static struct S { void* p; }
Array!S a;
a.length = 10;
}
@system unittest
{
Array!int a;
a.reserve(1000);
assert(a.length == 0);
assert(a.empty);
assert(a.capacity >= 1000);
auto p = a._data._payload.ptr;
foreach (i; 0 .. 1000)
{
a.insertBack(i);
}
assert(p == a._data._payload.ptr);
}
@system unittest
{
auto a = Array!int(1, 2, 3);
a[1] *= 42;
assert(a[1] == 84);
}
@system unittest
{
auto a = Array!int(1, 2, 3);
auto b = Array!int(11, 12, 13);
auto c = a ~ b;
assert(c == Array!int(1, 2, 3, 11, 12, 13));
assert(a ~ b[] == Array!int(1, 2, 3, 11, 12, 13));
assert(a ~ [4,5] == Array!int(1,2,3,4,5));
}
@system unittest
{
auto a = Array!int(1, 2, 3);
auto b = Array!int(11, 12, 13);
a ~= b;
assert(a == Array!int(1, 2, 3, 11, 12, 13));
}
@system unittest
{
auto a = Array!int(1, 2, 3, 4);
assert(a.removeAny() == 4);
assert(a == Array!int(1, 2, 3));
}
@system unittest
{
auto a = Array!int(1, 2, 3, 4, 5);
auto r = a[2 .. a.length];
assert(a.insertBefore(r, 42) == 1);
assert(a == Array!int(1, 2, 42, 3, 4, 5));
r = a[2 .. 2];
assert(a.insertBefore(r, [8, 9]) == 2);
assert(a == Array!int(1, 2, 8, 9, 42, 3, 4, 5));
}
@system unittest
{
auto a = Array!int(0, 1, 2, 3, 4, 5, 6, 7, 8);
a.linearRemove(a[4 .. 6]);
assert(a == Array!int(0, 1, 2, 3, 6, 7, 8));
}
// Give the Range object some testing.
@system unittest
{
import std.algorithm.comparison : equal;
import std.range : retro;
auto a = Array!int(0, 1, 2, 3, 4, 5, 6)[];
auto b = Array!int(6, 5, 4, 3, 2, 1, 0)[];
alias A = typeof(a);
static assert(isRandomAccessRange!A);
static assert(hasSlicing!A);
static assert(hasAssignableElements!A);
static assert(hasMobileElements!A);
assert(equal(retro(b), a));
assert(a.length == 7);
assert(equal(a[1 .. 4], [1, 2, 3]));
}
// https://issues.dlang.org/show_bug.cgi?id=5920
@system unittest
{
struct structBug5920
{
int order;
uint* pDestructionMask;
~this()
{
if (pDestructionMask)
*pDestructionMask += 1 << order;
}
}
alias S = structBug5920;
uint dMask;
auto arr = Array!S(cast(S[])[]);
foreach (i; 0 .. 8)
arr.insertBack(S(i, &dMask));
// don't check dMask now as S may be copied multiple times (it's ok?)
{
assert(arr.length == 8);
dMask = 0;
arr.length = 6;
assert(arr.length == 6); // make sure shrinking calls the d'tor
assert(dMask == 0b1100_0000);
arr.removeBack();
assert(arr.length == 5); // make sure removeBack() calls the d'tor
assert(dMask == 0b1110_0000);
arr.removeBack(3);
assert(arr.length == 2); // ditto
assert(dMask == 0b1111_1100);
arr.clear();
assert(arr.length == 0); // make sure clear() calls the d'tor
assert(dMask == 0b1111_1111);
}
assert(dMask == 0b1111_1111); // make sure the d'tor is called once only.
}
// Test for https://issues.dlang.org/show_bug.cgi?id=5792
// (mainly just to check if this piece of code is compilable)
@system unittest
{
auto a = Array!(int[])([[1,2],[3,4]]);
a.reserve(4);
assert(a.capacity >= 4);
assert(a.length == 2);
assert(a[0] == [1,2]);
assert(a[1] == [3,4]);
a.reserve(16);
assert(a.capacity >= 16);
assert(a.length == 2);
assert(a[0] == [1,2]);
assert(a[1] == [3,4]);
}
// test replace!Stuff with range Stuff
@system unittest
{
import std.algorithm.comparison : equal;
auto a = Array!int([1, 42, 5]);
a.replace(a[1 .. 2], [2, 3, 4]);
assert(equal(a[], [1, 2, 3, 4, 5]));
}
// test insertBefore and replace with empty Arrays
@system unittest
{
import std.algorithm.comparison : equal;
auto a = Array!int();
a.insertBefore(a[], 1);
assert(equal(a[], [1]));
}
@system unittest
{
import std.algorithm.comparison : equal;
auto a = Array!int();
a.insertBefore(a[], [1, 2]);
assert(equal(a[], [1, 2]));
}
@system unittest
{
import std.algorithm.comparison : equal;
auto a = Array!int();
a.replace(a[], [1, 2]);
assert(equal(a[], [1, 2]));
}
@system unittest
{
import std.algorithm.comparison : equal;
auto a = Array!int();
a.replace(a[], 1);
assert(equal(a[], [1]));
}
// make sure that Array instances refuse ranges that don't belong to them
@system unittest
{
import std.exception : assertThrown;
Array!int a = [1, 2, 3];
auto r = a.dup[];
assertThrown(a.insertBefore(r, 42));
assertThrown(a.insertBefore(r, [42]));
assertThrown(a.insertAfter(r, 42));
assertThrown(a.replace(r, 42));
assertThrown(a.replace(r, [42]));
assertThrown(a.linearRemove(r));
}
@system unittest
{
auto a = Array!int([1, 1]);
a[1] = 0; //Check Array.opIndexAssign
assert(a[1] == 0);
a[1] += 1; //Check Array.opIndexOpAssign
assert(a[1] == 1);
//Check Array.opIndexUnary
++a[0];
//a[0]++ //op++ doesn't return, so this shouldn't work, even with 5044 fixed
assert(a[0] == 2);
assert(+a[0] == +2);
assert(-a[0] == -2);
assert(~a[0] == ~2);
auto r = a[];
r[1] = 0; //Check Array.Range.opIndexAssign
assert(r[1] == 0);
r[1] += 1; //Check Array.Range.opIndexOpAssign
assert(r[1] == 1);
//Check Array.Range.opIndexUnary
++r[0];
//r[0]++ //op++ doesn't return, so this shouldn't work, even with 5044 fixed
assert(r[0] == 3);
assert(+r[0] == +3);
assert(-r[0] == -3);
assert(~r[0] == ~3);
}
@system unittest
{
import std.algorithm.comparison : equal;
//Test "array-wide" operations
auto a = Array!int([0, 1, 2]); //Array
a[] += 5;
assert(a[].equal([5, 6, 7]));
++a[];
assert(a[].equal([6, 7, 8]));
a[1 .. 3] *= 5;
assert(a[].equal([6, 35, 40]));
a[0 .. 2] = 0;
assert(a[].equal([0, 0, 40]));
//Test empty array
auto a2 = Array!int.init;
++a2[];
++a2[0 .. 0];
a2[] = 0;
a2[0 .. 0] = 0;
a2[] += 0;
a2[0 .. 0] += 0;
//Test "range-wide" operations
auto r = Array!int([0, 1, 2])[]; //Array.Range
r[] += 5;
assert(r.equal([5, 6, 7]));
++r[];
assert(r.equal([6, 7, 8]));
r[1 .. 3] *= 5;
assert(r.equal([6, 35, 40]));
r[0 .. 2] = 0;
assert(r.equal([0, 0, 40]));
//Test empty Range
auto r2 = Array!int.init[];
++r2[];
++r2[0 .. 0];
r2[] = 0;
r2[0 .. 0] = 0;
r2[] += 0;
r2[0 .. 0] += 0;
}
// Test issue 11194
@system unittest
{
static struct S {
int i = 1337;
void* p;
this(this) { assert(i == 1337); }
~this() { assert(i == 1337); }
}
Array!S arr;
S s;
arr ~= s;
arr ~= s;
}
// https://issues.dlang.org/show_bug.cgi?id=11459
@safe unittest
{
static struct S
{
bool b;
alias b this;
}
alias A = Array!S;
alias B = Array!(shared bool);
}
// https://issues.dlang.org/show_bug.cgi?id=11884
@system unittest
{
import std.algorithm.iteration : filter;
auto a = Array!int([1, 2, 2].filter!"true"());
}
// https://issues.dlang.org/show_bug.cgi?id=8282
@safe unittest
{
auto arr = new Array!int;
}
// https://issues.dlang.org/show_bug.cgi?id=6998
@system unittest
{
static int i = 0;
class C
{
int dummy = 1;
this(){++i;}
~this(){--i;}
}
assert(i == 0);
auto c = new C();
assert(i == 1);
//scope
{
auto arr = Array!C(c);
assert(i == 1);
}
//Array should not have destroyed the class instance
assert(i == 1);
//Just to make sure the GC doesn't collect before the above test.
assert(c.dummy == 1);
}
//https://issues.dlang.org/show_bug.cgi?id=6998 (2)
@system unittest
{
static class C {int i;}
auto c = new C;
c.i = 42;
Array!C a;
a ~= c;
a.clear;
assert(c.i == 42); //fails
}
@safe unittest
{
static assert(is(Array!int.Range));
static assert(is(Array!int.ConstRange));
}
@system unittest // const/immutable Array and Ranges
{
static void test(A, R, E, S)()
{
A a;
R r = a[];
assert(r.empty);
assert(r.length == 0);
static assert(is(typeof(r.front) == E));
static assert(is(typeof(r.back) == E));
static assert(is(typeof(r[0]) == E));
static assert(is(typeof(r[]) == S));
static assert(is(typeof(r[0 .. 0]) == S));
}
alias A = Array!int;
test!(A, A.Range, int, A.Range);
test!(A, const A.Range, const int, A.ConstRange);
test!(const A, A.ConstRange, const int, A.ConstRange);
test!(const A, const A.ConstRange, const int, A.ConstRange);
test!(immutable A, A.ImmutableRange, immutable int, A.ImmutableRange);
test!(immutable A, const A.ImmutableRange, immutable int, A.ImmutableRange);
test!(immutable A, immutable A.ImmutableRange, immutable int,
A.ImmutableRange);
}
// ensure @nogc
@nogc @system unittest
{
Array!int ai;
ai ~= 1;
assert(ai.front == 1);
ai.reserve(10);
assert(ai.capacity == 10);
static immutable arr = [1, 2, 3];
ai.insertBack(arr);
}
/*
* typeof may give wrong result in case of classes defining `opCall` operator
* https://issues.dlang.org/show_bug.cgi?id=20589
*
* destructor std.container.array.Array!(MyClass).Array.~this is @system
* so the unittest is @system too
*/
@system unittest
{
class MyClass
{
T opCall(T)(T p)
{
return p;
}
}
Array!MyClass arr;
}
@system unittest
{
import std.algorithm.comparison : equal;
auto a = Array!int([1,2,3,4,5]);
assert(a.length == 5);
assert(a.insertAfter(a[0 .. 5], [7, 8]) == 2);
assert(equal(a[], [1,2,3,4,5,7,8]));
assert(a.insertAfter(a[0 .. 5], 6) == 1);
assert(equal(a[], [1,2,3,4,5,6,7,8]));
}
// https://issues.dlang.org/show_bug.cgi?id=22105
@system unittest
{
import core.exception : AssertError;
import std.exception : assertThrown, assertNotThrown;
struct NoDefaultCtor
{
int i;
@disable this();
this(int j) { i = j; }
}
auto array = Array!NoDefaultCtor([NoDefaultCtor(1), NoDefaultCtor(2)]);
assertNotThrown!AssertError(array.length = 1);
assertThrown!AssertError(array.length = 5);
}
////////////////////////////////////////////////////////////////////////////////
// Array!bool
////////////////////////////////////////////////////////////////////////////////
/**
* _Array specialized for `bool`. Packs together values efficiently by
* allocating one bit per element.
*/
struct Array(T)
if (is(immutable T == immutable bool))
{
import std.exception : enforce;
import std.typecons : RefCounted, RefCountedAutoInitialize;
static immutable uint bitsPerWord = size_t.sizeof * 8;
private static struct Data
{
Array!size_t.Payload _backend;
size_t _length;
}
private RefCounted!(Data, RefCountedAutoInitialize.no) _store;
private @property ref size_t[] data()
{
assert(_store.refCountedStore.isInitialized,
"Cannot get data of uninitialized Array");
return _store._backend._payload;
}
/**
* Defines the array's primary range.
*/
struct Range
{
private Array _outer;
private size_t _a, _b;
/// Range primitives
@property Range save()
{
version (bug4437)
{
return this;
}
else
{
auto copy = this;
return copy;
}
}
/// Ditto
@property bool empty()
{
return _a >= _b || _outer.length < _b;
}
/// Ditto
@property T front()
{
enforce(!empty, "Attempting to access the front of an empty Array");
return _outer[_a];
}
/// Ditto
@property void front(bool value)
{
enforce(!empty, "Attempting to set the front of an empty Array");
_outer[_a] = value;
}
/// Ditto
T moveFront()
{
enforce(!empty, "Attempting to move the front of an empty Array");
return _outer.moveAt(_a);
}
/// Ditto
void popFront()
{
enforce(!empty, "Attempting to popFront an empty Array");
++_a;
}
/// Ditto
@property T back()
{
enforce(!empty, "Attempting to access the back of an empty Array");
return _outer[_b - 1];
}
/// Ditto
@property void back(bool value)
{
enforce(!empty, "Attempting to set the back of an empty Array");
_outer[_b - 1] = value;
}
/// Ditto
T moveBack()
{
enforce(!empty, "Attempting to move the back of an empty Array");
return _outer.moveAt(_b - 1);
}
/// Ditto
void popBack()
{
enforce(!empty, "Attempting to popBack an empty Array");
--_b;
}
/// Ditto
T opIndex(size_t i)
{
return _outer[_a + i];
}
/// Ditto
void opIndexAssign(T value, size_t i)
{
_outer[_a + i] = value;
}
/// Ditto
T moveAt(size_t i)
{
return _outer.moveAt(_a + i);
}
/// Ditto
@property size_t length() const
{
assert(_a <= _b, "Invalid bounds");
return _b - _a;
}
alias opDollar = length;
/// ditto
Range opSlice(size_t low, size_t high)
{
// Note: indexes start at 0, which is equivalent to _a
assert(
low <= high && high <= (_b - _a),
"Using out of bounds indexes on an Array"
);
return Range(_outer, _a + low, _a + high);
}
}
/**
* Constructor taking a number of items.
*/
this(U)(U[] values...)
if (isImplicitlyConvertible!(U, T))
{
reserve(values.length);
foreach (i, v; values)
{
auto rem = i % bitsPerWord;
if (rem)
{
// Fits within the current array
if (v)
{
data[$ - 1] |= (cast(size_t) 1 << rem);
}
else
{
data[$ - 1] &= ~(cast(size_t) 1 << rem);
}
}
else
{
// Need to add more data
_store._backend.insertBack(v);
}
}
_store._length = values.length;
}
/**
* Constructor taking an $(REF_ALTTEXT input range, isInputRange, std,range,primitives)
*/
this(Range)(Range r)
if (isInputRange!Range && isImplicitlyConvertible!(ElementType!Range, T) && !is(Range == T[]))
{
insertBack(r);
}
/**
* Property returning `true` if and only if the array has
* no elements.
*
* Complexity: $(BIGOH 1)
*/
@property bool empty()
{
return !length;
}
/**
* Returns: A duplicate of the array.
*
* Complexity: $(BIGOH length).
*/
@property Array dup()
{
Array result;
result.insertBack(this[]);
return result;
}
/**
* Returns the number of elements in the array.
*
* Complexity: $(BIGOH 1).
*/
@property size_t length() const
{
return _store.refCountedStore.isInitialized ? _store._length : 0;
}
alias opDollar = length;
/**
* Returns: The maximum number of elements the array can store without
* reallocating memory and invalidating iterators upon insertion.
*
* Complexity: $(BIGOH 1).
*/
@property size_t capacity()
{
return _store.refCountedStore.isInitialized
? cast(size_t) bitsPerWord * _store._backend.capacity
: 0;
}
/**
* Ensures sufficient capacity to accommodate `e` _elements.
* If `e < capacity`, this method does nothing.
*
* Postcondition: `capacity >= e`
*
* Note: If the capacity is increased, one should assume that all
* iterators to the elements are invalidated.
*
* Complexity: at most $(BIGOH length) if `e > capacity`, otherwise $(BIGOH 1).
*/
void reserve(size_t e)
{
import std.conv : to;
_store.refCountedStore.ensureInitialized();
_store._backend.reserve(to!size_t((e + bitsPerWord - 1) / bitsPerWord));
}
/**
* Returns: A range that iterates over all elements of the array in forward order.
*
* Complexity: $(BIGOH 1)
*/
Range opSlice()
{
return Range(this, 0, length);
}
/**
* Returns: A range that iterates the array between two specified positions.
*
* Complexity: $(BIGOH 1)
*/
Range opSlice(size_t a, size_t b)
{
enforce(a <= b && b <= length);
return Range(this, a, b);
}
/**
* Returns: The first element of the array.
*
* Precondition: `empty == false`
*
* Complexity: $(BIGOH 1)
*
* Throws: `Exception` if the array is empty.
*/
@property bool front()
{
enforce(!empty);
return data.ptr[0] & 1;
}
/// Ditto
@property void front(bool value)
{
enforce(!empty);
if (value) data.ptr[0] |= 1;
else data.ptr[0] &= ~cast(size_t) 1;
}
/**
* Returns: The last element of the array.
*
* Precondition: `empty == false`
*
* Complexity: $(BIGOH 1)
*
* Throws: `Exception` if the array is empty.
*/
@property bool back()
{
enforce(!empty);
return cast(bool)(data.back & (cast(size_t) 1 << ((_store._length - 1) % bitsPerWord)));
}
/// Ditto
@property void back(bool value)
{
enforce(!empty);
if (value)
{
data.back |= (cast(size_t) 1 << ((_store._length - 1) % bitsPerWord));
}
else
{
data.back &=
~(cast(size_t) 1 << ((_store._length - 1) % bitsPerWord));
}
}
/**
* Indexing operators yielding or modifyng the value at the specified index.
*
* Precondition: `i < length`
*
* Complexity: $(BIGOH 1)
*/
bool opIndex(size_t i)
{
auto div = cast(size_t) (i / bitsPerWord);
auto rem = i % bitsPerWord;
enforce(div < data.length);
return cast(bool)(data.ptr[div] & (cast(size_t) 1 << rem));
}
/// ditto
void opIndexAssign(bool value, size_t i)
{
auto div = cast(size_t) (i / bitsPerWord);
auto rem = i % bitsPerWord;
enforce(div < data.length);
if (value) data.ptr[div] |= (cast(size_t) 1 << rem);
else data.ptr[div] &= ~(cast(size_t) 1 << rem);
}
/// ditto
void opIndexOpAssign(string op)(bool value, size_t i)
{
auto div = cast(size_t) (i / bitsPerWord);
auto rem = i % bitsPerWord;
enforce(div < data.length);
auto oldValue = cast(bool) (data.ptr[div] & (cast(size_t) 1 << rem));
// Do the deed
auto newValue = mixin("oldValue "~op~" value");
// Write back the value
if (newValue != oldValue)
{
if (newValue) data.ptr[div] |= (cast(size_t) 1 << rem);
else data.ptr[div] &= ~(cast(size_t) 1 << rem);
}
}
/// Ditto
T moveAt(size_t i)
{
return this[i];
}
/**
* Returns: A new array which is a concatenation of `this` and its argument.
*
* Complexity:
* $(BIGOH length + m), where `m` is the number of elements in `stuff`.
*/
Array!bool opBinary(string op, Stuff)(Stuff rhs)
if (op == "~")
{
Array!bool result;
static if (hasLength!Stuff)
result.reserve(length + rhs.length);
else static if (is(typeof(rhs[])) && hasLength!(typeof(rhs[])))
result.reserve(length + rhs[].length);
else static if (isImplicitlyConvertible!(Stuff, bool))
result.reserve(length + 1);
result.insertBack(this[]);
result ~= rhs;
return result;
}
/**
* Forwards to `insertBack`.
*/
Array!bool opOpAssign(string op, Stuff)(Stuff stuff)
if (op == "~")
{
static if (is(typeof(stuff[]))) insertBack(stuff[]);
else insertBack(stuff);
return this;
}
/**
* Removes all the elements from the array and releases allocated memory.
*
* Postcondition: `empty == true && capacity == 0`
*
* Complexity: $(BIGOH length)
*/
void clear()
{
this = Array();
}
/**
* Sets the number of elements in the array to `newLength`. If `newLength`
* is greater than `length`, the new elements are added to the end of the
* array and initialized with `false`.
*
* Complexity:
* Guaranteed $(BIGOH abs(length - newLength)) if `capacity >= newLength`.
* If `capacity < newLength` the worst case is $(BIGOH newLength).
*
* Postcondition: `length == newLength`
*/
@property void length(size_t newLength)
{
import std.conv : to;
_store.refCountedStore.ensureInitialized();
auto newDataLength =
to!size_t((newLength + bitsPerWord - 1) / bitsPerWord);
_store._backend.length = newDataLength;
_store._length = newLength;
}
/**
* Removes the last element from the array and returns it.
* Both stable and non-stable versions behave the same and guarantee
* that ranges iterating over the array are never invalidated.
*
* Precondition: `empty == false`
*
* Returns: The element removed.
*
* Complexity: $(BIGOH 1).
*
* Throws: `Exception` if the array is empty.
*/
T removeAny()
{
auto result = back;
removeBack();
return result;
}
/// ditto
alias stableRemoveAny = removeAny;
/**
* Inserts the specified elements at the back of the array. `stuff` can be
* a value convertible to `bool` or a range of objects convertible to `bool`.
*
* Returns: The number of elements inserted.
*
* Complexity:
* $(BIGOH length + m) if reallocation takes place, otherwise $(BIGOH m),
* where `m` is the number of elements in `stuff`.
*/
size_t insertBack(Stuff)(Stuff stuff)
if (is(Stuff : bool))
{
_store.refCountedStore.ensureInitialized();
auto rem = _store._length % bitsPerWord;
if (rem)
{
// Fits within the current array
if (stuff)
{
data[$ - 1] |= (cast(size_t) 1 << rem);
}
else
{
data[$ - 1] &= ~(cast(size_t) 1 << rem);
}
}
else
{
// Need to add more data
_store._backend.insertBack(stuff);
}
++_store._length;
return 1;
}
/// ditto
size_t insertBack(Stuff)(Stuff stuff)
if (isInputRange!Stuff && is(ElementType!Stuff : bool))
{
size_t result;
static if (hasLength!Stuff)
result = stuff.length;
for (; !stuff.empty; stuff.popFront())
{
insertBack(stuff.front);
static if (!hasLength!Stuff) ++result;
}
return result;
}
/// ditto
alias stableInsertBack = insertBack;
/// ditto
alias insert = insertBack;
/// ditto
alias stableInsert = insertBack;
/// ditto
alias linearInsert = insertBack;
/// ditto
alias stableLinearInsert = insertBack;
/**
* Removes the value from the back of the array. Both stable and non-stable
* versions behave the same and guarantee that ranges iterating over the
* array are never invalidated.
*
* Precondition: `empty == false`
*
* Complexity: $(BIGOH 1).
*
* Throws: `Exception` if the array is empty.
*/
void removeBack()
{
enforce(_store._length);
if (_store._length % bitsPerWord)
{
// Cool, just decrease the length
--_store._length;
}
else
{
// Reduce the allocated space
--_store._length;
_store._backend.length = _store._backend.length - 1;
}
}
/// ditto
alias stableRemoveBack = removeBack;
/**
* Removes `howMany` values from the back of the array. Unlike the
* unparameterized versions above, these functions do not throw if
* they could not remove `howMany` elements. Instead, if `howMany > n`,
* all elements are removed. The returned value is the effective number
* of elements removed. Both stable and non-stable versions behave the same
* and guarantee that ranges iterating over the array are never invalidated.
*
* Returns: The number of elements removed.
*
* Complexity: $(BIGOH howMany).
*/
size_t removeBack(size_t howMany)
{
if (howMany >= length)
{
howMany = length;
clear();
}
else
{
length = length - howMany;
}
return howMany;
}
/// ditto
alias stableRemoveBack = removeBack;
/**
* Inserts `stuff` before, after, or instead range `r`, which must
* be a valid range previously extracted from this array. `stuff`
* can be a value convertible to `bool` or a range of objects convertible
* to `bool`. Both stable and non-stable version behave the same and
* guarantee that ranges iterating over the array are never invalidated.
*
* Returns: The number of values inserted.
*
* Complexity: $(BIGOH length + m), where `m` is the length of `stuff`.
*/
size_t insertBefore(Stuff)(Range r, Stuff stuff)
{
import std.algorithm.mutation : bringToFront;
// TODO: make this faster, it moves one bit at a time
immutable inserted = stableInsertBack(stuff);
immutable tailLength = length - inserted;
bringToFront(
this[r._a .. tailLength],
this[tailLength .. length]);
return inserted;
}
/// ditto
alias stableInsertBefore = insertBefore;
/// ditto
size_t insertAfter(Stuff)(Range r, Stuff stuff)
if (isImplicitlyConvertible!(Stuff, T) ||
isInputRange!Stuff && isImplicitlyConvertible!(ElementType!Stuff, T))
{
import std.algorithm.mutation : bringToFront;
// TODO: make this faster, it moves one bit at a time
immutable inserted = stableInsertBack(stuff);
immutable tailLength = length - inserted;
bringToFront(
this[r._b .. tailLength],
this[tailLength .. length]);
return inserted;
}
/// ditto
alias stableInsertAfter = insertAfter;
/// ditto
size_t replace(Stuff)(Range r, Stuff stuff)
if (is(Stuff : bool))
{
if (!r.empty)
{
// There is room
r.front = stuff;
r.popFront();
linearRemove(r);
}
else
{
// No room, must insert
insertBefore(r, stuff);
}
return 1;
}
/// ditto
alias stableReplace = replace;
/**
* Removes all elements belonging to `r`, which must be a range
* obtained originally from this array.
*
* Returns: A range spanning the remaining elements in the array that
* initially were right after `r`.
*
* Complexity: $(BIGOH length)
*/
Range linearRemove(Range r)
{
import std.algorithm.mutation : copy;
copy(this[r._b .. length], this[r._a .. length]);
length = length - r.length;
return this[r._a .. length];
}
}
@system unittest
{
import std.algorithm.comparison : equal;
auto a = Array!bool([true, true, false, false, true, false]);
assert(equal(a[], [true, true, false, false, true, false]));
}
// using Ranges
@system unittest
{
import std.algorithm.comparison : equal;
import std.range : retro;
bool[] arr = [true, true, false, false, true, false];
auto a = Array!bool(retro(arr));
assert(equal(a[], retro(arr)));
}
@system unittest
{
Array!bool a;
assert(a.empty);
}
@system unittest
{
auto arr = Array!bool([false, false, false, false]);
assert(arr.front == false);
assert(arr.back == false);
assert(arr[1] == false);
auto slice = arr[];
slice = arr[0 .. $];
slice = slice[1 .. $];
slice.front = true;
slice.back = true;
slice[1] = true;
slice = slice[0 .. $]; // https://issues.dlang.org/show_bug.cgi?id=19171
assert(slice.front == true);
assert(slice.back == true);
assert(slice[1] == true);
assert(slice.moveFront == true);
assert(slice.moveBack == true);
assert(slice.moveAt(1) == true);
}
// uncomparable values are valid values for an array
// https://issues.dlang.org/show_bug.cgi?id=16331
@system unittest
{
double[] values = [double.nan, double.nan];
auto arr = Array!double(values);
}
@nogc @system unittest
{
auto a = Array!int(0, 1, 2);
int[3] b = [3, 4, 5];
short[3] ci = [0, 1, 0];
auto c = Array!short(ci);
assert(Array!int(0, 1, 2, 0, 1, 2) == a ~ a);
assert(Array!int(0, 1, 2, 3, 4, 5) == a ~ b);
assert(Array!int(0, 1, 2, 3) == a ~ 3);
assert(Array!int(0, 1, 2, 0, 1, 0) == a ~ c);
}
@nogc @system unittest
{
auto a = Array!char('a', 'b');
assert(Array!char("abc") == a ~ 'c');
import std.utf : byCodeUnit;
assert(Array!char("abcd") == a ~ "cd".byCodeUnit);
}
@nogc @system unittest
{
auto a = Array!dchar("ąćę"d);
assert(Array!dchar("ąćęϢϖ"d) == a ~ "Ϣϖ"d);
wchar x = 'Ϣ';
assert(Array!dchar("ąćęϢz"d) == a ~ x ~ 'z');
}
@system unittest
{
Array!bool a;
assert(a.empty);
a.insertBack(false);
assert(!a.empty);
}
@system unittest
{
Array!bool a;
assert(a.empty);
auto b = a.dup;
assert(b.empty);
a.insertBack(true);
assert(b.empty);
}
@system unittest
{
import std.conv : to;
Array!bool a;
assert(a.length == 0);
a.insert(true);
assert(a.length == 1, to!string(a.length));
}
@system unittest
{
import std.conv : to;
Array!bool a;
assert(a.capacity == 0);
foreach (i; 0 .. 100)
{
a.insert(true);
assert(a.capacity >= a.length, to!string(a.capacity));
}
}
@system unittest
{
Array!bool a;
assert(a.capacity == 0);
a.reserve(15657);
assert(a.capacity >= 15657);
a.reserve(100);
assert(a.capacity >= 15657);
}
@system unittest
{
auto a = Array!bool([true, false, true, true]);
assert(a[0 .. 2].length == 2);
}
@system unittest
{
auto a = Array!bool([true, false, true, true]);
assert(a[].length == 4);
}
@system unittest
{
auto a = Array!bool([true, false, true, true]);
assert(a.front);
a.front = false;
assert(!a.front);
}
@system unittest
{
auto a = Array!bool([true, false, true, true]);
assert(a[].length == 4);
}
@system unittest
{
auto a = Array!bool([true, false, true, true]);
assert(a.back);
a.back = false;
assert(!a.back);
}
@system unittest
{
auto a = Array!bool([true, false, true, true]);
assert(a[0] && !a[1]);
a[0] &= a[1];
assert(!a[0]);
}
@system unittest
{
import std.algorithm.comparison : equal;
auto a = Array!bool([true, false, true, true]);
auto b = Array!bool([true, true, false, true]);
assert(equal((a ~ b)[],
[true, false, true, true, true, true, false, true]));
assert((a ~ [true, false])[].equal([true, false, true, true, true, false]));
Array!bool c;
c.insertBack(true);
assert((c ~ false)[].equal([true, false]));
}
@system unittest
{
import std.algorithm.comparison : equal;
auto a = Array!bool([true, false, true, true]);
auto b = Array!bool([false, true, false, true, true]);
a ~= b;
assert(equal(
a[],
[true, false, true, true, false, true, false, true, true]));
}
@system unittest
{
auto a = Array!bool([true, false, true, true]);
a.clear();
assert(a.capacity == 0);
}
@system unittest
{
Array!bool a;
a.length = 1057;
assert(a.length == 1057);
assert(a.capacity >= a.length);
foreach (e; a)
{
assert(!e);
}
immutable cap = a.capacity;
a.length = 100;
assert(a.length == 100);
// do not realloc if length decreases
assert(a.capacity == cap);
}
@system unittest
{
Array!bool a;
a.length = 1057;
assert(!a.removeAny());
assert(a.length == 1056);
foreach (e; a)
{
assert(!e);
}
}
@system unittest
{
Array!bool a;
for (int i = 0; i < 100; ++i)
a.insertBack(true);
foreach (e; a)
assert(e);
}
@system unittest
{
Array!bool a;
a.length = 1057;
assert(a.removeBack(1000) == 1000);
assert(a.length == 57);
foreach (e; a)
{
assert(!e);
}
}
@system unittest
{
import std.conv : to;
Array!bool a;
version (bugxxxx)
{
a._store.refCountedDebug = true;
}
a.insertBefore(a[], true);
assert(a.length == 1, to!string(a.length));
a.insertBefore(a[], false);
assert(a.length == 2, to!string(a.length));
a.insertBefore(a[1 .. $], true);
import std.algorithm.comparison : equal;
assert(a[].equal([false, true, true]));
}
// https://issues.dlang.org/show_bug.cgi?id=21555
@system unittest
{
import std.algorithm.comparison : equal;
Array!bool arr;
size_t len = arr.insertBack([false, true]);
assert(len == 2);
}
// https://issues.dlang.org/show_bug.cgi?id=21556
@system unittest
{
import std.algorithm.comparison : equal;
Array!bool a;
a.insertBack([true, true, false, false, true]);
assert(a.length == 5);
assert(a.insertAfter(a[0 .. 5], [false, false]) == 2);
assert(equal(a[], [true, true, false, false, true, false, false]));
assert(a.insertAfter(a[0 .. 5], true) == 1);
assert(equal(a[], [true, true, false, false, true, true, false, false]));
}
@system unittest
{
import std.conv : to;
Array!bool a;
a.length = 10;
a.insertAfter(a[0 .. 5], true);
assert(a.length == 11, to!string(a.length));
assert(a[5]);
}
@system unittest
{
alias V3 = int[3];
V3 v = [1, 2, 3];
Array!V3 arr;
arr ~= v;
assert(arr[0] == [1, 2, 3]);
}
@system unittest
{
alias V3 = int[3];
V3[2] v = [[1, 2, 3], [4, 5, 6]];
Array!V3 arr;
arr ~= v;
assert(arr[0] == [1, 2, 3]);
assert(arr[1] == [4, 5, 6]);
}
// Change of length reallocates without calling GC.
// https://issues.dlang.org/show_bug.cgi?id=13642
@system unittest
{
import core.memory;
class ABC { void func() { int x = 5; } }
Array!ABC arr;
// Length only allocates if capacity is too low.
arr.reserve(4);
assert(arr.capacity == 4);
void func() @nogc
{
arr.length = 5;
}
func();
foreach (ref b; arr) b = new ABC;
GC.collect();
arr[1].func();
}
@system unittest
{
Array!int arr = [1, 2, 4, 5];
int[] data = arr.data();
const Array!int arr2 = [8, 9];
assert(arr2.data() == [8, 9]);
data[0] = 0;
assert(arr[0] == 0);
arr.length = 0;
assert(arr.data == []);
Array!int empty;
assert(empty.data == []);
}
| D |
/mnt/c/Users/zeliwang/hello_world/digital_signature/target/debug/deps/rand-ddea7d71a10270a6.rmeta: /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/lib.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/mod.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/uniform.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/bernoulli.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/weighted.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/unit_sphere.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/unit_circle.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/gamma.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/normal.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/exponential.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/pareto.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/poisson.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/binomial.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/cauchy.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/dirichlet.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/triangular.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/weibull.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/float.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/integer.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/other.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/utils.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/ziggurat_tables.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/prelude.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/prng/mod.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/mod.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/adapter/mod.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/adapter/read.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/adapter/reseeding.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/entropy.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/mock.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/small.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/std.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/thread.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/seq/mod.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/seq/index.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/deprecated.rs
/mnt/c/Users/zeliwang/hello_world/digital_signature/target/debug/deps/rand-ddea7d71a10270a6.d: /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/lib.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/mod.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/uniform.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/bernoulli.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/weighted.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/unit_sphere.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/unit_circle.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/gamma.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/normal.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/exponential.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/pareto.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/poisson.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/binomial.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/cauchy.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/dirichlet.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/triangular.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/weibull.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/float.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/integer.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/other.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/utils.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/ziggurat_tables.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/prelude.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/prng/mod.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/mod.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/adapter/mod.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/adapter/read.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/adapter/reseeding.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/entropy.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/mock.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/small.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/std.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/thread.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/seq/mod.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/seq/index.rs /home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/deprecated.rs
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/lib.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/mod.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/uniform.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/bernoulli.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/weighted.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/unit_sphere.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/unit_circle.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/gamma.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/normal.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/exponential.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/pareto.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/poisson.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/binomial.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/cauchy.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/dirichlet.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/triangular.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/weibull.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/float.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/integer.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/other.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/utils.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/distributions/ziggurat_tables.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/prelude.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/prng/mod.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/mod.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/adapter/mod.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/adapter/read.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/adapter/reseeding.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/entropy.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/mock.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/small.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/std.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/rngs/thread.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/seq/mod.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/seq/index.rs:
/home/zeliwang/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand-0.6.5/src/deprecated.rs:
| D |
/Users/juliob/Programs/rust/diversity/target/rls/debug/deps/diversity-8a64ae892b6629f5.rmeta: src/main.rs
/Users/juliob/Programs/rust/diversity/target/rls/debug/deps/diversity-8a64ae892b6629f5.d: src/main.rs
src/main.rs:
| D |
instance VLK_439_Vatras(Npc_Default)
{
name[0] = "Ватрас";
guild = GIL_VLK;
id = 439;
voice = 5;
flags = NPC_FLAG_IMMORTAL;
npcType = npctype_main;
aivar[AIV_MagicUser] = MAGIC_ALWAYS;
aivar[AIV_IgnoresFakeGuild] = TRUE;
aivar[AIV_IgnoresArmor] = TRUE;
B_SetAttributesToChapter(self,2);
fight_tactic = FAI_HUMAN_COWARD;
B_CreateAmbientInv(self);
CreateInvItems(self,ItSc_LightHeal,2);
CreateInvItems(self,ItSc_Zap,2);
CreateInvItems(self,ItSc_Icebolt,2);
CreateInvItems(self,ItSc_Light,2);
CreateInvItems(self,ItSc_TrfScavenger,1);
B_SetNpcVisual(self,MALE,"Hum_Head_Psionic",Face_B_Saturas,BodyTex_B,ITAR_KDW_H);
Mdl_SetModelFatness(self,0);
Mdl_ApplyOverlayMds(self,"Humans_Mage.mds");
B_GiveNpcTalents(self);
B_SetFightSkills(self,30);
daily_routine = Rtn_Start_439;
};
func void Rtn_Start_439()
{
TA_Preach_Vatras(5,5,20,10,"NW_CITY_MERCHANT_TEMPLE_FRONT");
TA_Pray_Innos_FP(20,10,5,5,"NW_CITY_MERCHANT_TEMPLE_IN");
};
func void Rtn_RitualInnosEyeRepair_439()
{
TA_Stand_Guarding(8,0,20,0,"NW_TROLLAREA_RITUAL_04");
TA_Stand_Guarding(20,0,8,0,"NW_TROLLAREA_RITUAL_04");
};
func void Rtn_RitualInnosEye_439()
{
TA_Circle(8,0,23,0,"NW_TROLLAREA_RITUAL_04");
TA_Circle(23,0,8,0,"NW_TROLLAREA_RITUAL_04");
};
func void Rtn_WAITFORSHIP_439()
{
TA_Sit_Bench(8,0,23,0,"NW_WAITFOR_SHIP_04");
TA_Sit_Bench(23,0,8,0,"NW_WAITFOR_SHIP_04");
};
func void Rtn_Ship_439()
{
TA_Read_Bookstand(8,0,23,0,"SHIP_IN_22");
TA_Sleep(23,0,8,0,"SHIP_IN_04");
};
func void Rtn_PRAY_439()
{
TA_Pray_Innos_FP(5,5,20,10,"NW_CITY_MERCHANT_TEMPLE_FRONT");
TA_Pray_Innos_FP(20,10,5,5,"NW_CITY_MERCHANT_TEMPLE_IN");
};
| D |
/Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Intermediates.noindex/TrueGrowthSF2.build/Debug-iphonesimulator/TrueGrowthSF2.build/Objects-normal/x86_64/FacebookButton.o : /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/View/CurrencyTextField.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Services/DataService.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Services/AuthService.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Model/Like.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Extensions/ReflectedStringConvertible.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Model/Profile.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/AppDelegate.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/View/FacebookButton.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/View/CircularProgressBar.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Controller/CameraViewController.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Controller/FeedViewController.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Controller/ProfileViewController.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Controller/LoginViewController.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Controller/EmailLoginViewController.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Controller/CameraTwoViewController.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Controller/GroupsViewController.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Controller/CreatePostViewController.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Model/Post.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/View/RoundUIView.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/View/RoundedCornerView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64.swiftmodule /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/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/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKURL.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FirebaseStorage-umbrella.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FirebaseCore-umbrella.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FirebaseDatabase-umbrella.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FirebaseAuth-umbrella.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-umbrella.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-umbrella.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRMutableData.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDProfileData.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageMetadata.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRUserMetadata.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageReference.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDatabaseReference.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorage.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FirebaseStorage.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKProfile.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthAPNSTokenType.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDataEventType.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FirebaseCore.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKDeviceViewControllerBase.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDatabase.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FirebaseDatabase.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/Firebase/CoreOnly/Sources/Firebase.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthUIDelegate.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRServerValue.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolving.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKCopying.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuth.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FirebaseAuth.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLink.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageDownloadTask.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageUploadTask.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageTask.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageObservableTask.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthCredential.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRPhoneAuthCredential.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIRLoggerLevel.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDSignIn.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GoogleSignIn.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FirebaseAuthVersion.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDAuthentication.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkNavigation.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIRConfiguration.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKButton.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKDeviceButton.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDSignInButton.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRUserInfo.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAdditionalUserInfo.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIRApp.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIROAuthProvider.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRGitHubAuthProvider.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRGoogleAuthProvider.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRPhoneAuthProvider.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRFacebookAuthProvider.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIREmailAuthProvider.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRTwitterAuthProvider.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKTestUsersManager.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkReturnToRefererController.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRUser.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDGoogleUser.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKWebViewAppLinkResolver.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKSettings.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRActionCodeSettings.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthSettings.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIROptions.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthErrors.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKConstants.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageConstants.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkTarget.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-Swift.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-Swift.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthDataResult.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthTokenResult.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRTransactionResult.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKMeasurementEvent.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDataSnapshot.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageTaskSnapshot.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKCoreKitImport.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkReturnToRefererView.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDatabaseQuery.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKUtility.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/Firebase/CoreOnly/Sources/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Modules/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Modules/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Modules/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Modules/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Modules/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Modules/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Modules/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Modules/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Modules/module.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/WebKit.framework/Headers/WebKit.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/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Intermediates.noindex/TrueGrowthSF2.build/Debug-iphonesimulator/TrueGrowthSF2.build/Objects-normal/x86_64/FacebookButton~partial.swiftmodule : /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/View/CurrencyTextField.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Services/DataService.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Services/AuthService.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Model/Like.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Extensions/ReflectedStringConvertible.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Model/Profile.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/AppDelegate.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/View/FacebookButton.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/View/CircularProgressBar.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Controller/CameraViewController.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Controller/FeedViewController.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Controller/ProfileViewController.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Controller/LoginViewController.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Controller/EmailLoginViewController.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Controller/CameraTwoViewController.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Controller/GroupsViewController.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Controller/CreatePostViewController.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Model/Post.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/View/RoundUIView.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/View/RoundedCornerView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64.swiftmodule /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/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/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKURL.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FirebaseStorage-umbrella.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FirebaseCore-umbrella.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FirebaseDatabase-umbrella.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FirebaseAuth-umbrella.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-umbrella.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-umbrella.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRMutableData.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDProfileData.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageMetadata.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRUserMetadata.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageReference.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDatabaseReference.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorage.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FirebaseStorage.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKProfile.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthAPNSTokenType.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDataEventType.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FirebaseCore.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKDeviceViewControllerBase.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDatabase.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FirebaseDatabase.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/Firebase/CoreOnly/Sources/Firebase.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthUIDelegate.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRServerValue.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolving.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKCopying.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuth.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FirebaseAuth.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLink.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageDownloadTask.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageUploadTask.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageTask.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageObservableTask.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthCredential.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRPhoneAuthCredential.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIRLoggerLevel.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDSignIn.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GoogleSignIn.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FirebaseAuthVersion.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDAuthentication.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkNavigation.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIRConfiguration.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKButton.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKDeviceButton.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDSignInButton.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRUserInfo.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAdditionalUserInfo.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIRApp.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIROAuthProvider.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRGitHubAuthProvider.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRGoogleAuthProvider.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRPhoneAuthProvider.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRFacebookAuthProvider.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIREmailAuthProvider.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRTwitterAuthProvider.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKTestUsersManager.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkReturnToRefererController.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRUser.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDGoogleUser.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKWebViewAppLinkResolver.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKSettings.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRActionCodeSettings.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthSettings.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIROptions.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthErrors.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKConstants.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageConstants.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkTarget.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-Swift.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-Swift.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthDataResult.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthTokenResult.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRTransactionResult.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKMeasurementEvent.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDataSnapshot.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageTaskSnapshot.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKCoreKitImport.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkReturnToRefererView.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDatabaseQuery.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKUtility.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/Firebase/CoreOnly/Sources/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Modules/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Modules/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Modules/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Modules/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Modules/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Modules/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Modules/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Modules/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Modules/module.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/WebKit.framework/Headers/WebKit.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/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Intermediates.noindex/TrueGrowthSF2.build/Debug-iphonesimulator/TrueGrowthSF2.build/Objects-normal/x86_64/FacebookButton~partial.swiftdoc : /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/View/CurrencyTextField.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Services/DataService.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Services/AuthService.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Model/Like.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Extensions/ReflectedStringConvertible.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Model/Profile.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/AppDelegate.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/View/FacebookButton.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/View/CircularProgressBar.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Controller/CameraViewController.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Controller/FeedViewController.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Controller/ProfileViewController.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Controller/LoginViewController.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Controller/EmailLoginViewController.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Controller/CameraTwoViewController.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Controller/GroupsViewController.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Controller/CreatePostViewController.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/Model/Post.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/View/RoundUIView.swift /Users/Home/Desktop/iOS/TrueGrowthSF2/TrueGrowthSF2/View/RoundedCornerView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Modules/FBSDKCoreKit.swiftmodule/x86_64.swiftmodule /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Modules/FBSDKLoginKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/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/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKURL.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FirebaseStorage-umbrella.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FirebaseCore-umbrella.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FirebaseDatabase-umbrella.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FirebaseAuth-umbrella.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-umbrella.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-umbrella.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRMutableData.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDProfileData.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageMetadata.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRUserMetadata.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageReference.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDatabaseReference.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorage.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FirebaseStorage.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKProfile.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthAPNSTokenType.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDataEventType.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FirebaseCore.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKDeviceViewControllerBase.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDatabase.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FirebaseDatabase.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/Firebase/CoreOnly/Sources/Firebase.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthUIDelegate.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRServerValue.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolving.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKCopying.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuth.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FirebaseAuth.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLink.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageDownloadTask.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageUploadTask.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageTask.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageObservableTask.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthCredential.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRPhoneAuthCredential.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIRLoggerLevel.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDSignIn.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GoogleSignIn.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FirebaseAuthVersion.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDAuthentication.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkNavigation.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIRConfiguration.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKButton.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKDeviceButton.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDSignInButton.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginCodeInfo.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRUserInfo.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAdditionalUserInfo.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIRApp.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIROAuthProvider.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRGitHubAuthProvider.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRGoogleAuthProvider.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRPhoneAuthProvider.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRFacebookAuthProvider.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIREmailAuthProvider.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRTwitterAuthProvider.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManager.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKTestUsersManager.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkReturnToRefererController.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRUser.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Headers/GIDGoogleUser.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKWebViewAppLinkResolver.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKSettings.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRActionCodeSettings.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthSettings.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Headers/FIROptions.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthErrors.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKConstants.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageConstants.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkTarget.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKCoreKit-Swift.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginKit-Swift.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthDataResult.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Headers/FIRAuthTokenResult.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRTransactionResult.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKDeviceLoginManagerResult.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKMeasurementEvent.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDataSnapshot.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Headers/FIRStorageTaskSnapshot.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKCoreKitImport.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkReturnToRefererView.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Headers/FIRDatabaseQuery.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKUtility.h /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/Firebase/CoreOnly/Sources/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Modules/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseStorage/FirebaseStorage.framework/Modules/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseCore/FirebaseCore.framework/Modules/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseDatabase/FirebaseDatabase.framework/Modules/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FirebaseAuth/FirebaseAuth.framework/Modules/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/GoogleSignIn/Frameworks/GoogleSignIn.framework/Modules/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Modules/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKCoreKit/FBSDKCoreKit.framework/Modules/module.modulemap /Users/Home/Desktop/iOS/TrueGrowthSF2/DerivedData/TrueGrowthSF2/Build/Products/Debug-iphonesimulator/FBSDKLoginKit/FBSDKLoginKit.framework/Modules/module.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/WebKit.framework/Headers/WebKit.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 |
instance DIA_Sentenza_EXIT(C_Info)
{
npc = SLD_814_Sentenza;
nr = 999;
condition = DIA_Sentenza_EXIT_Condition;
information = DIA_Sentenza_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Sentenza_EXIT_Condition()
{
return TRUE;
};
func void DIA_Sentenza_EXIT_Info()
{
AI_StopProcessInfos(self);
};
var int Sentenza_Wants50;
var int Sentenza_SearchDay;
instance DIA_Sentenza_Hello(C_Info)
{
npc = SLD_814_Sentenza;
nr = 1;
condition = DIA_Sentenza_Hello_Condition;
information = DIA_Sentenza_Hello_Info;
permanent = FALSE;
important = TRUE;
};
func int DIA_Sentenza_Hello_Condition()
{
if((self.aivar[AIV_DefeatedByPlayer] == FALSE) && (KAPITELORCATC == FALSE))
{
return TRUE;
};
};
func void DIA_Sentenza_Hello_Info()
{
AI_Output(self,other,"DIA_Sentenza_Hello_09_00"); //Kam si myslíš, že jdeš?!
self.aivar[AIV_LastFightComment] = TRUE;
Sentenza_SearchDay = B_GetDayPlus();
Info_ClearChoices(DIA_Sentenza_Hello);
Info_AddChoice(DIA_Sentenza_Hello,"A co je ti vlastně do toho?",DIA_Sentenza_Hello_NotYourBusiness);
Info_AddChoice(DIA_Sentenza_Hello,"Chtěl jsem se tu jen trochu porozhlédnout, nic víc.",DIA_Sentenza_Hello_JustLooking);
};
func void DIA_Sentenza_Hello_JustLooking()
{
AI_Output(other,self,"DIA_Sentenza_Hello_JustLooking_15_00"); //Chtěl jsem se tu jen trochu porozhlédnout, nic víc!
AI_Output(self,other,"DIA_Sentenza_Hello_JustLooking_09_01"); //Na takové jako ty tu číhá spousta nebezpečí! A ty mi říkáš, že se tu chceš jen tak porozhlédnout?
AI_Output(self,other,"DIA_Sentenza_Hello_JustLooking_09_02"); //Ha! Ty chceš určitě na statek! Proč by ses jinak plahočil takový lán cesty, co?
AI_Output(self,other,"DIA_Sentenza_Hello_JustLooking_09_03"); //Tak přestaň plácat kraviny a nech mě, ať tě prohledám. Pak si můžeš jít zase po svém.
Info_ClearChoices(DIA_Sentenza_Hello);
Info_AddChoice(DIA_Sentenza_Hello,"Dej ty pracky pryč!",DIA_Sentenza_Hello_HandsOff);
Info_AddChoice(DIA_Sentenza_Hello,"Jen si posluž, klíďo píďo si mě prohledej!",DIA_Sentenza_Hello_SearchMe);
};
func void DIA_Sentenza_Hello_NotYourBusiness()
{
AI_Output(other,self,"DIA_Sentenza_Hello_NotYourBusiness_15_00"); //A co je ti vlastně do toho?
AI_Output(self,other,"DIA_Sentenza_Hello_NotYourBusiness_09_01"); //(povzdech) Pak ti to důkladně vysvětlím.
AI_StopProcessInfos(self);
B_Attack(self,other,AR_NONE,1);
};
func void B_Sentenza_SearchMe()
{
var int playerGold;
playerGold = Npc_HasItems(other,ItMi_Gold);
AI_Output(other,self,"DIA_Sentenza_Hello_SearchMe_15_00"); //Jen si posluž, klíďo píďo si mě prohledej!
AI_Output(self,other,"DIA_Sentenza_Hello_SearchMe_09_01"); //Tak se podívejme, copak to tu máš...
if(playerGold >= 50)
{
AI_Output(self,other,"DIA_Sentenza_Hello_SearchMe_09_02"); //Á, zlato! Vláčet s sebou tolik peněz, to může být pořádně nebezpečné.
AI_Output(self,other,"DIA_Sentenza_Hello_SearchMe_09_03"); //Spousta žoldáků jsou prachsprostí hrdlořezové, ne tak poctiví jako já.
B_GiveInvItems(other,self,ItMi_Gold,50);
Sentenza_GoldTaken = TRUE;
}
else if(playerGold > 0)
{
AI_Output(self,other,"DIA_Sentenza_Hello_SearchMe_09_04"); //No... To toho teda moc nemáš.
AI_Output(self,other,"DIA_Sentenza_Hello_SearchMe_09_05"); //Vrátím se k tobě později.
}
else
{
AI_Output(self,other,"DIA_Sentenza_Hello_SearchMe_09_06"); //Tos ušel takovou štreku a nemáš ani měďák?
AI_Output(self,other,"DIA_Sentenza_Hello_SearchMe_09_07"); //Nezdá se mi ale, že bys nějak trpěl hladem. Určitě si někde ňákou tu škváru schováváš, co?
AI_Output(self,other,"DIA_Sentenza_Hello_SearchMe_09_08"); //Je vidět, že nejsi úplně blbý. Určitě se ještě setkáme - tak na sebe zatím dávej pozor.
AI_Output(self,other,"DIA_Sentenza_Hello_SearchMe_09_09"); //A nejspíš jenom ty sám víš, kde své zlato máš!
};
Sentenza_Wants50 = TRUE;
AI_Output(self,other,"DIA_Sentenza_Hello_SearchMe_09_10"); //Já po tobě chci jenom 50 zlatých jako mýtné. A stačí, když to zaplatíš jednou - to je přece fér, ne?
};
func void DIA_Sentenza_Hello_SearchMe()
{
B_Sentenza_SearchMe();
AI_StopProcessInfos(self);
};
func void DIA_Sentenza_Hello_HandsOff()
{
AI_Output(other,self,"DIA_Sentenza_Hello_HandsOff_15_00"); //Dej ty pracky pryč!
AI_Output(self,other,"DIA_Sentenza_Hello_HandsOff_09_01"); //(výhružně) Nebo co?
Info_ClearChoices(DIA_Sentenza_Hello);
Info_AddChoice(DIA_Sentenza_Hello,"Nebo nic. Tak mě teda prohledej!",DIA_Sentenza_Hello_SearchMe);
Info_AddChoice(DIA_Sentenza_Hello,"Nebo si na nějaký čas budeš muset nechat zajít chuť na prohledávání!",DIA_Sentenza_Hello_OrElse);
};
func void DIA_Sentenza_Hello_OrElse()
{
AI_Output(other,self,"DIA_Sentenza_Hello_OrElse_15_00"); //Nebo si na nějaký čas budeš muset nechat zajít chuť na prohledávání!
AI_Output(self,other,"DIA_Sentenza_Hello_OrElse_09_01"); //Tak to se uvidí!
AI_StopProcessInfos(self);
B_Attack(self,other,AR_NONE,1);
};
instance DIA_Sentenza_Vzwei(C_Info)
{
npc = SLD_814_Sentenza;
nr = 2;
condition = DIA_Sentenza_Vzwei_Condition;
information = DIA_Sentenza_Vzwei_Info;
permanent = FALSE;
important = TRUE;
};
func int DIA_Sentenza_Vzwei_Condition()
{
if((self.aivar[AIV_DefeatedByPlayer] == FALSE) && (KAPITELORCATC == FALSE) && (Sentenza_GoldTaken == FALSE) && (Sentenza_SearchDay < Wld_GetDay()))
{
return TRUE;
};
};
func void DIA_Sentenza_Vzwei_Info()
{
AI_Output(self,other,"DIA_Sentenza_Vzwei_09_00"); //Tak tě tu máme zas! Podívám se, co tu máš tentokrát!
self.aivar[AIV_LastFightComment] = TRUE;
Sentenza_SearchDay = B_GetDayPlus();
Info_ClearChoices(DIA_Sentenza_Vzwei);
Info_AddChoice(DIA_Sentenza_Vzwei,"Dej ty špinavé pracky pryč!",DIA_Sentenza_Vzwei_HandsOff);
Info_AddChoice(DIA_Sentenza_Vzwei,"Jen si posluž, klíďo píďo si mě prohledej!",DIA_Sentenza_Vzwei_SearchMe);
};
func void DIA_Sentenza_Vzwei_SearchMe()
{
B_Sentenza_SearchMe();
AI_StopProcessInfos(self);
};
func void DIA_Sentenza_Vzwei_HandsOff()
{
AI_Output(other,self,"DIA_Sentenza_Vzwei_HandsOff_15_00"); //Dej ty špinavé pracky pryč!
AI_Output(self,other,"DIA_Sentenza_Vzwei_HandsOff_09_01"); //(hrozivě) Nebo co? Tentokrát máš nejspíš u sebe daleko víc!
AI_StopProcessInfos(self);
B_Attack(self,other,AR_NONE,1);
};
instance DIA_Sentenza_RagnarDead(C_Info)
{
npc = SLD_814_Sentenza;
nr = 3;
condition = DIA_Sentenza_RagnarDead_Condition;
information = DIA_Sentenza_RagnarDead_Info;
permanent = FALSE;
description = "Co se tady stalo?!";
};
func int DIA_Sentenza_RagnarDead_Condition()
{
if((Kapitel == 2) && (RagnarIsSLDDead == TRUE))
{
return TRUE;
};
};
func void DIA_Sentenza_RagnarDead_Info()
{
AI_Output(other,self,"DIA_Sentenza_RagnarDead_01_00"); //Co se tady stalo?!
AI_Output(self,other,"DIA_Sentenza_RagnarDead_01_01"); //(tiše) Myslíš toho kreténa? Jen sem ho požádal o paušální polatek aby mohl sem na farmu a on mě praštil pěstí!
AI_Output(self,other,"DIA_Sentenza_RagnarDead_01_02"); //Chytnul jsem amok a jednoduše ho zapichl. Viděl si něco?
AI_Output(other,self,"DIA_Sentenza_RagnarDead_01_03"); //Nic sem neviděl...
};
instance DIA_Sentenza_WannaJoin(C_Info)
{
npc = SLD_814_Sentenza;
nr = 3;
condition = DIA_Sentenza_WannaJoin_Condition;
information = DIA_Sentenza_WannaJoin_Info;
permanent = FALSE;
description = "Přišel jsem se k vám přidat!";
};
func int DIA_Sentenza_WannaJoin_Condition()
{
if(hero.guild == GIL_NONE)
{
return TRUE;
};
};
func void DIA_Sentenza_WannaJoin_Info()
{
AI_Output(other,self,"DIA_Sentenza_WannaJoin_15_00"); //Přišel jsem se k vám přidat!
AI_Output(self,other,"DIA_Sentenza_WannaJoin_09_01"); //To je od tebe hezké.
AI_Output(self,other,"DIA_Sentenza_WannaJoin_09_02"); //(lhostejně) Je ti jasné, že žoldáci budou hlasovat, jestli tě přijmout nebo ne?
};
instance DIA_Sentenza_Vote(C_Info)
{
npc = SLD_814_Sentenza;
nr = 4;
condition = DIA_Sentenza_Vote_Condition;
information = DIA_Sentenza_Vote_Info;
permanent = TRUE;
description = "A ty mi svůj hlas dáš?";
};
func int DIA_Sentenza_Vote_Condition()
{
if(Npc_KnowsInfo(other,DIA_Sentenza_WannaJoin) && (other.guild == GIL_NONE))
{
return TRUE;
};
};
func void DIA_Sentenza_Vote_Info()
{
AI_Output(other,self,"DIA_Sentenza_Vote_15_00"); //A ty mi svůj hlas dáš?
if(self.aivar[AIV_LastFightAgainstPlayer] == FIGHT_LOST)
{
AI_Output(self,other,"DIA_Sentenza_Vote_09_01"); //Jenom proto, žes mi dal pár na frak? (zasměje se) Ne.
}
else if((Npc_HasItems(self,ItMi_Gold) >= 50) && ((Sentenza_GoldTaken == TRUE) || (Sentenza_GoldGiven == TRUE)))
{
AI_Output(self,other,"DIA_Sentenza_Vote_09_02"); //A proč vlastně ne? 50 zlatých je docela dobrá cena za jeden hlas, nemyslíš?
Sentenza_Stimme = TRUE;
B_LogEntry(TOPIC_SLDRespekt,"Sentenza nemá nic proti tomu, abych se přidal k žoldákům.");
}
else if((Sentenza_Stimme == TRUE) && (Npc_HasItems(self,ItMi_Gold) < 50))
{
AI_Output(self,other,"DIA_Sentenza_Vote_09_03"); //Potom, cos mi zase ukradl zlato? Neřekl bych, hochu.
}
else
{
AI_Output(self,other,"DIA_Sentenza_Vote_09_04"); //Takhle to nefunguje, chlapečku! Jestli pro tebe mám hlasovat, pak musíš ke mně nasměrovat taky ňějaký zlato.
AI_Output(other,self,"DIA_Sentenza_Vote_15_05"); //Kolik?
AI_Output(self,other,"DIA_Sentenza_Vote_09_06"); //50 zlatých. To bys musel stejně zaplatit.
Sentenza_Wants50 = TRUE;
};
};
var int Sentenza_GoldGiven;
instance DIA_Sentenza_Pay50(C_Info)
{
npc = SLD_814_Sentenza;
nr = 5;
condition = DIA_Sentenza_Pay50_Condition;
information = DIA_Sentenza_Pay50_Info;
permanent = TRUE;
description = "Tady máš tedy těch 50 zlatých.";
};
func int DIA_Sentenza_Pay50_Condition()
{
if((Sentenza_Wants50 == TRUE) && (Npc_HasItems(self,ItMi_Gold) < 50) && (other.guild == GIL_NONE) && (Sentenza_GoldGiven == FALSE))
{
return TRUE;
};
};
func void DIA_Sentenza_Pay50_Info()
{
AI_Output(other,self,"DIA_Sentenza_Pay50_15_00"); //Tady máš tedy těch 50 zlatých.
if(B_GiveInvItems(other,self,ItMi_Gold,50))
{
AI_Output(self,other,"DIA_Sentenza_Pay50_09_01"); //Tak díky, to stačí.
Sentenza_GoldGiven = TRUE;
}
else
{
AI_Output(self,other,"DIA_Sentenza_Pay50_09_02"); //Nezahrávej si se mnou. Dostanu 50 zlatých a ani o měďák míň, jasné?
};
};
var int Sentenza_Einmal;
instance DIA_Sentenza_GoldBack(C_Info)
{
npc = SLD_814_Sentenza;
nr = 6;
condition = DIA_Sentenza_GoldBack_Condition;
information = DIA_Sentenza_GoldBack_Info;
permanent = TRUE;
description = "Vrať mi mé zlato!";
};
func int DIA_Sentenza_GoldBack_Condition()
{
if(Npc_HasItems(self,ItMi_Gold) >= 50)
{
if((Sentenza_GoldGiven == FALSE) || (other.guild == GIL_SLD))
{
return TRUE;
};
};
};
func void DIA_Sentenza_GoldBack_Info()
{
AI_Output(other,self,"DIA_Sentenza_GoldBack_15_00"); //Vrať mi mé zlato!
if((other.guild == GIL_SLD) && (Torlof_SentenzaCounted == TRUE) && (Sentenza_Einmal == FALSE))
{
AI_Output(self,other,"DIA_Sentenza_GoldBack_09_01"); //Teď, když jsem ti dal svůj hlas?
AI_Output(self,other,"DIA_Sentenza_GoldBack_09_02"); //Ty mizerný žebračisko!
Sentenza_Einmal = TRUE;
AI_StopProcessInfos(self);
B_Attack(self,other,AR_NONE,1);
}
else
{
AI_Output(self,other,"DIA_Sentenza_GoldBack_09_03"); //Klídek! Jenom to na chvilku pohlídám...
};
};
instance DIA_Sentenza_AufsMaul(C_Info)
{
npc = SLD_814_Sentenza;
nr = 7;
condition = DIA_Sentenza_AufsMaul_Condition;
information = DIA_Sentenza_AufsMaul_Info;
permanent = FALSE;
description = "Pověz mi, to, co máš vepředu, je tvůj ksicht, nebo to na mě vystrkuješ prdel?";
};
func int DIA_Sentenza_AufsMaul_Condition()
{
if((Npc_HasItems(self,ItMi_Gold) >= 50) || Npc_KnowsInfo(other,DIA_Jarvis_MissionKO))
{
return TRUE;
};
};
func void DIA_Sentenza_AufsMaul_Info()
{
AI_Output(other,self,"DIA_Sentenza_AufsMaul_15_00"); //Pověz mi, to, co máš vepředu, je tvůj ksicht, nebo to na mě vystrkuješ prdel?
AI_Output(self,other,"DIA_Sentenza_AufsMaul_09_01"); //(vztekle se směje) Dobře, když to tak chceš...
AI_StopProcessInfos(self);
B_Attack(self,other,AR_NONE,1);
};
instance DIA_Sentenza_AufsMaulAgain(C_Info)
{
npc = SLD_814_Sentenza;
nr = 8;
condition = DIA_Sentenza_AufsMaulAgain_Condition;
information = DIA_Sentenza_AufsMaulAgain_Info;
permanent = TRUE;
description = "Je čas na další nářez!";
};
func int DIA_Sentenza_AufsMaulAgain_Condition()
{
if(Npc_KnowsInfo(other,DIA_Sentenza_AufsMaul))
{
if((Npc_HasItems(self,ItMi_Gold) >= 50) || Npc_KnowsInfo(other,DIA_Jarvis_MissionKO))
{
return TRUE;
};
};
};
func void DIA_Sentenza_AufsMaulAgain_Info()
{
AI_Output(other,self,"DIA_Sentenza_AufsMaulAgain_15_00"); //Je čas na další nářez!
AI_Output(self,other,"DIA_Sentenza_AufsMaulAgain_09_01"); //Když to říkáš...
AI_StopProcessInfos(self);
B_Attack(self,other,AR_NONE,1);
};
instance DIA_Sentenza_PERM(C_Info)
{
npc = SLD_814_Sentenza;
nr = 1;
condition = DIA_Sentenza_PERM_Condition;
information = DIA_Sentenza_PERM_Info;
permanent = TRUE;
description = "Tak co, jak to jde?";
};
func int DIA_Sentenza_PERM_Condition()
{
return TRUE;
};
func void DIA_Sentenza_PERM_Info()
{
AI_Output(other,self,"DIA_Sentenza_PERM_15_00"); //Tak co, jak to jde?
AI_Output(self,other,"DIA_Sentenza_PERM_09_01"); //Moc lidí tudy nechodí, ale doteďka mi každý zaplatil.
if(Npc_HasItems(self,ItMi_Gold) < 50)
{
AI_Output(self,other,"DIA_Sentenza_PERM_09_02"); //Kromě tebe. (zašklebí se)
};
};
instance DIA_Sentenza_PICKPOCKET(C_Info)
{
npc = SLD_814_Sentenza;
nr = 900;
condition = DIA_Sentenza_PICKPOCKET_Condition;
information = DIA_Sentenza_PICKPOCKET_Info;
permanent = TRUE;
description = PICKPOCKET_COMM;
};
func int DIA_Sentenza_PICKPOCKET_Condition()
{
return C_Beklauen(56,65);
};
func void DIA_Sentenza_PICKPOCKET_Info()
{
Info_ClearChoices(DIA_Sentenza_PICKPOCKET);
Info_AddChoice(DIA_Sentenza_PICKPOCKET,Dialog_Back,DIA_Sentenza_PICKPOCKET_BACK);
Info_AddChoice(DIA_Sentenza_PICKPOCKET,DIALOG_PICKPOCKET,DIA_Sentenza_PICKPOCKET_DoIt);
};
func void DIA_Sentenza_PICKPOCKET_DoIt()
{
B_Beklauen();
Info_ClearChoices(DIA_Sentenza_PICKPOCKET);
};
func void DIA_Sentenza_PICKPOCKET_BACK()
{
Info_ClearChoices(DIA_Sentenza_PICKPOCKET);
};
| D |
# FIXED
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/profiles/roles/gapbondmgr.c
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/inc/bcomdef.h
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/components/osal/src/inc/comdef.h
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/hal_types.h
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/../_common/cc26xx/_hal_types.h
PROFILES/gapbondmgr.obj: C:/TI/ccsv7/tools/compiler/arm_5.2.8/include/stdint.h
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/inc/hal_defs.h
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/components/osal/src/inc/osal.h
PROFILES/gapbondmgr.obj: C:/TI/ccsv7/tools/compiler/arm_5.2.8/include/limits.h
PROFILES/gapbondmgr.obj: C:/TI/ccsv7/tools/compiler/arm_5.2.8/include/yvals.h
PROFILES/gapbondmgr.obj: C:/TI/ccsv7/tools/compiler/arm_5.2.8/include/stdarg.h
PROFILES/gapbondmgr.obj: C:/TI/ccsv7/tools/compiler/arm_5.2.8/include/linkage.h
PROFILES/gapbondmgr.obj: C:/TI/ccsv7/tools/compiler/arm_5.2.8/include/_lock.h
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/components/osal/src/inc/OSAL_Memory.h
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/components/osal/src/inc/OSAL_Timers.h
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/components/icall/src/inc/ICall.h
PROFILES/gapbondmgr.obj: C:/TI/ccsv7/tools/compiler/arm_5.2.8/include/stdbool.h
PROFILES/gapbondmgr.obj: C:/TI/ccsv7/tools/compiler/arm_5.2.8/include/stdlib.h
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/inc/hal_assert.h
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/hal_types.h
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/components/osal/src/inc/osal_snv.h
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/hal_types.h
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/inc/l2cap.h
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/inc/sm.h
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/inc/hci.h
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/controller/cc26xx/inc/ll.h
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/inc/linkdb.h
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/inc/gatt.h
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/inc/att.h
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/inc/gatt_uuid.h
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/inc/gattservapp.h
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/inc/gapgattserver.h
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/profiles/roles/gapbondmgr.h
PROFILES/gapbondmgr.obj: C:/TI/simplelink/ble_sdk_2_02_01_18/src/inc/gap.h
C:/TI/simplelink/ble_sdk_2_02_01_18/src/profiles/roles/gapbondmgr.c:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/inc/bcomdef.h:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/components/osal/src/inc/comdef.h:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/hal_types.h:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/../_common/cc26xx/_hal_types.h:
C:/TI/ccsv7/tools/compiler/arm_5.2.8/include/stdint.h:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/inc/hal_defs.h:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/components/osal/src/inc/osal.h:
C:/TI/ccsv7/tools/compiler/arm_5.2.8/include/limits.h:
C:/TI/ccsv7/tools/compiler/arm_5.2.8/include/yvals.h:
C:/TI/ccsv7/tools/compiler/arm_5.2.8/include/stdarg.h:
C:/TI/ccsv7/tools/compiler/arm_5.2.8/include/linkage.h:
C:/TI/ccsv7/tools/compiler/arm_5.2.8/include/_lock.h:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/components/osal/src/inc/OSAL_Memory.h:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/components/osal/src/inc/OSAL_Timers.h:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/components/icall/src/inc/ICall.h:
C:/TI/ccsv7/tools/compiler/arm_5.2.8/include/stdbool.h:
C:/TI/ccsv7/tools/compiler/arm_5.2.8/include/stdlib.h:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/inc/hal_assert.h:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/hal_types.h:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/components/osal/src/inc/osal_snv.h:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/components/hal/src/target/_common/hal_types.h:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/inc/l2cap.h:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/inc/sm.h:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/inc/hci.h:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/controller/cc26xx/inc/ll.h:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/inc/linkdb.h:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/inc/gatt.h:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/inc/att.h:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/inc/gatt_uuid.h:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/inc/gattservapp.h:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/inc/gapgattserver.h:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/profiles/roles/gapbondmgr.h:
C:/TI/simplelink/ble_sdk_2_02_01_18/src/inc/gap.h:
| D |
/**
* D header file for C99.
*
* $(C_HEADER_DESCRIPTION pubs.opengroup.org/onlinepubs/009695399/basedefs/_fenv.h.html, _fenv.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
* Source: $(DRUNTIMESRC core/stdc/_fenv.d)
* Standards: ISO/IEC 9899:1999 (E)
*/
module core.stdc.fenv;
extern (C):
@system:
nothrow:
@nogc:
version( MinGW )
version = GNUFP;
version( CRuntime_Glibc )
version = GNUFP;
version( GNUFP )
{
// https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/x86/fpu/bits/fenv.h
version (X86)
{
struct fenv_t
{
ushort __control_word;
ushort __unused1;
ushort __status_word;
ushort __unused2;
ushort __tags;
ushort __unused3;
uint __eip;
ushort __cs_selector;
ushort __opcode;
uint __data_offset;
ushort __data_selector;
ushort __unused5;
}
alias fexcept_t = ushort;
}
// https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/x86/fpu/bits/fenv.h
else version (X86_64)
{
struct fenv_t
{
ushort __control_word;
ushort __unused1;
ushort __status_word;
ushort __unused2;
ushort __tags;
ushort __unused3;
uint __eip;
ushort __cs_selector;
ushort __opcode;
uint __data_offset;
ushort __data_selector;
ushort __unused5;
uint __mxcsr;
}
alias fexcept_t = ushort;
}
// https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/mips/bits/fenv.h
else version (MIPS32)
{
struct fenv_t
{
uint __fp_control_register;
}
alias fexcept_t = ushort;
}
// https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/mips/bits/fenv.h
else version (MIPS64)
{
struct fenv_t
{
uint __fp_control_register;
}
alias fexcept_t = ushort;
}
// https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/aarch64/bits/fenv.h
else version (AArch64)
{
struct fenv_t
{
uint __fpcr;
uint __fpsr;
}
alias fexcept_t = uint;
}
// https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/arm/bits/fenv.h
else version (ARM)
{
struct fenv_t
{
uint __cw;
}
alias fexcept_t = uint;
}
// https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/powerpc/bits/fenv.h
else version (PPC64)
{
alias fenv_t = double;
alias fexcept_t = uint;
}
// https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/s390/fpu/bits/fenv.h
else version (SystemZ)
{
struct fenv_t
{
fexcept_t __fpc;
void* __unused;
}
alias fexcept_t = uint;
}
else
{
static assert(0, "Unimplemented architecture");
}
}
else version( CRuntime_DigitalMars )
{
struct fenv_t
{
ushort status;
ushort control;
ushort round;
ushort[2] reserved;
}
alias fexcept_t = int;
}
else version( CRuntime_Microsoft )
{
struct fenv_t
{
uint ctl;
uint stat;
}
alias fexcept_t = uint;
}
else version ( OSX )
{
version ( BigEndian )
{
alias uint fenv_t;
alias uint fexcept_t;
}
version ( LittleEndian )
{
struct fenv_t
{
ushort __control;
ushort __status;
uint __mxcsr;
byte[8] __reserved;
}
alias ushort fexcept_t;
}
}
else version ( FreeBSD )
{
struct fenv_t
{
ushort __control;
ushort __mxcsr_hi;
ushort __status;
ushort __mxcsr_lo;
uint __tag;
byte[16] __other;
}
alias ushort fexcept_t;
}
else version( CRuntime_Bionic )
{
version(X86)
{
struct fenv_t
{
ushort __control;
ushort __mxcsr_hi;
ushort __status;
ushort __mxcsr_lo;
uint __tag;
byte[16] __other;
}
alias ushort fexcept_t;
}
else version(ARM)
{
alias uint fenv_t;
alias uint fexcept_t;
}
else
{
static assert(false, "Architecture not supported.");
}
}
else version( Solaris )
{
import core.stdc.config : c_ulong;
enum FEX_NUM_EXC = 12;
struct fex_handler_t
{
int __mode;
void function() __handler;
}
struct fenv_t
{
fex_handler_t[FEX_NUM_EXC] __handler;
c_ulong __fsr;
}
alias int fexcept_t;
}
else
{
static assert( false, "Unsupported platform" );
}
version( CRuntime_Microsoft )
{
enum
{
FE_INEXACT = 1, ///
FE_UNDERFLOW = 2, ///
FE_OVERFLOW = 4, ///
FE_DIVBYZERO = 8, ///
FE_INVALID = 0x10, ///
FE_ALL_EXCEPT = 0x1F, ///
FE_TONEAREST = 0, ///
FE_UPWARD = 0x100, ///
FE_DOWNWARD = 0x200, ///
FE_TOWARDZERO = 0x300, ///
}
}
else
{
enum
{
FE_INVALID = 1, ///
FE_DENORMAL = 2, /// non-standard
FE_DIVBYZERO = 4, ///
FE_OVERFLOW = 8, ///
FE_UNDERFLOW = 0x10, ///
FE_INEXACT = 0x20, ///
FE_ALL_EXCEPT = 0x3F, ///
FE_TONEAREST = 0, ///
FE_UPWARD = 0x800, ///
FE_DOWNWARD = 0x400, ///
FE_TOWARDZERO = 0xC00, ///
}
}
version( GNUFP )
{
///
enum FE_DFL_ENV = cast(fenv_t*)(-1);
}
else version( CRuntime_DigitalMars )
{
private extern __gshared fenv_t _FE_DFL_ENV;
///
enum fenv_t* FE_DFL_ENV = &_FE_DFL_ENV;
}
else version( CRuntime_Microsoft )
{
private extern __gshared fenv_t _Fenv0;
///
enum FE_DFL_ENV = &_Fenv0;
}
else version( OSX )
{
private extern __gshared fenv_t _FE_DFL_ENV;
///
enum FE_DFL_ENV = &_FE_DFL_ENV;
}
else version( FreeBSD )
{
private extern const fenv_t __fe_dfl_env;
///
enum FE_DFL_ENV = &__fe_dfl_env;
}
else version( CRuntime_Bionic )
{
private extern const fenv_t __fe_dfl_env;
///
enum FE_DFL_ENV = &__fe_dfl_env;
}
else version( Solaris )
{
private extern const fenv_t __fenv_def_env;
///
enum FE_DFL_ENV = &__fenv_def_env;
}
else
{
static assert( false, "Unsupported platform" );
}
///
int feclearexcept(int excepts);
///
int fetestexcept(int excepts);
///
int feholdexcept(fenv_t* envp);
///
int fegetexceptflag(fexcept_t* flagp, int excepts);
///
int fesetexceptflag(in fexcept_t* flagp, int excepts);
///
int fegetround();
///
int fesetround(int round);
///
int fegetenv(fenv_t* envp);
///
int fesetenv(in fenv_t* envp);
// MS define feraiseexcept() and feupdateenv() inline.
version( CRuntime_Microsoft ) // supported since MSVCRT 12 (VS 2013) only
{
///
int feraiseexcept()(int excepts)
{
struct Entry
{
int exceptVal;
double num;
double denom;
}
static __gshared immutable(Entry[5]) table =
[ // Raise exception by evaluating num / denom:
{ FE_INVALID, 0.0, 0.0 },
{ FE_DIVBYZERO, 1.0, 0.0 },
{ FE_OVERFLOW, 1e+300, 1e-300 },
{ FE_UNDERFLOW, 1e-300, 1e+300 },
{ FE_INEXACT, 2.0, 3.0 }
];
if ((excepts &= FE_ALL_EXCEPT) == 0)
return 0;
// Raise the exceptions not masked:
double ans = void;
foreach (i; 0 .. table.length)
{
if ((excepts & table[i].exceptVal) != 0)
ans = table[i].num / table[i].denom;
}
return 0;
}
///
int feupdateenv()(in fenv_t* envp)
{
int excepts = fetestexcept(FE_ALL_EXCEPT);
return (fesetenv(envp) != 0 || feraiseexcept(excepts) != 0 ? 1 : 0);
}
}
else
{
///
int feraiseexcept(int excepts);
///
int feupdateenv(in fenv_t* envp);
}
| D |
PLONG PLAT ED95 KD LOMAGAGE HIMAGAGE SLAT SLONG RESULTNO DP DM WT ROCKTYPE
190.600006 78.6999969 8.39999962 25.5 40 72 39.2000008 -106.199997 8909 10.1999998 13.1000004 0.702717745 intrusives,metamorphics,porphyries,ores
189 68 14 76 50 65 40 -105.300003 3256 18 23 0.375311099 intrusives, rhyolite
133 68.5 17.7000008 10.8999996 56 62 45 -110 1145 16.6000004 24.2000008 0.208785026 sediments
86.1999969 75.5 5.9000001 25 53 62 29.5 -103 1140 3.5 6.5 0.840254879 sediments
| D |
/**
* The condition module provides a primitive for synchronized condition
* checking.
*
* Copyright: Copyright Sean Kelly 2005 - 2009.
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Authors: Sean Kelly
* Source: $(DRUNTIMESRC core/sync/_condition.d)
*/
/* Copyright Sean Kelly 2005 - 2009.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
module core.sync.condition;
public import core.sync.exception;
public import core.sync.mutex;
public import core.time;
version (Windows)
{
private import core.sync.semaphore;
private import core.sys.windows.basetsd /+: HANDLE+/;
private import core.sys.windows.winbase /+: CloseHandle, CreateSemaphoreA, CRITICAL_SECTION,
DeleteCriticalSection, EnterCriticalSection, INFINITE, InitializeCriticalSection,
LeaveCriticalSection, ReleaseSemaphore, WAIT_OBJECT_0, WaitForSingleObject+/;
private import core.sys.windows.windef /+: BOOL, DWORD+/;
private import core.sys.windows.winerror /+: WAIT_TIMEOUT+/;
}
else version (Posix)
{
private import core.sync.config;
private import core.stdc.errno;
private import core.sys.posix.pthread;
private import core.sys.posix.time;
}
else
{
static assert(false, "Platform not supported");
}
////////////////////////////////////////////////////////////////////////////////
// Condition
//
// void wait();
// void notify();
// void notifyAll();
////////////////////////////////////////////////////////////////////////////////
/**
* This class represents a condition variable as conceived by C.A.R. Hoare. As
* per Mesa type monitors however, "signal" has been replaced with "notify" to
* indicate that control is not transferred to the waiter when a notification
* is sent.
*/
class Condition
{
////////////////////////////////////////////////////////////////////////////
// Initialization
////////////////////////////////////////////////////////////////////////////
/**
* Initializes a condition object which is associated with the supplied
* mutex object.
*
* Params:
* m = The mutex with which this condition will be associated.
*
* Throws:
* SyncError on error.
*/
this( Mutex m ) nothrow @safe
{
version (Windows)
{
m_blockLock = CreateSemaphoreA( null, 1, 1, null );
if ( m_blockLock == m_blockLock.init )
throw new SyncError( "Unable to initialize condition" );
scope(failure) CloseHandle( m_blockLock );
m_blockQueue = CreateSemaphoreA( null, 0, int.max, null );
if ( m_blockQueue == m_blockQueue.init )
throw new SyncError( "Unable to initialize condition" );
scope(failure) CloseHandle( m_blockQueue );
InitializeCriticalSection( &m_unblockLock );
m_assocMutex = m;
}
else version (Posix)
{
m_assocMutex = m;
int rc = pthread_cond_init( &m_hndl, null );
if ( rc )
throw new SyncError( "Unable to initialize condition" );
}
}
~this()
{
version (Windows)
{
BOOL rc = CloseHandle( m_blockLock );
assert( rc, "Unable to destroy condition" );
rc = CloseHandle( m_blockQueue );
assert( rc, "Unable to destroy condition" );
DeleteCriticalSection( &m_unblockLock );
}
else version (Posix)
{
int rc = pthread_cond_destroy( &m_hndl );
assert( !rc, "Unable to destroy condition" );
}
}
////////////////////////////////////////////////////////////////////////////
// General Properties
////////////////////////////////////////////////////////////////////////////
/**
* Gets the mutex associated with this condition.
*
* Returns:
* The mutex associated with this condition.
*/
@property Mutex mutex()
{
return m_assocMutex;
}
// undocumented function for internal use
final @property Mutex mutex_nothrow() pure nothrow @safe @nogc
{
return m_assocMutex;
}
////////////////////////////////////////////////////////////////////////////
// General Actions
////////////////////////////////////////////////////////////////////////////
/**
* Wait until notified.
*
* Throws:
* SyncError on error.
*/
void wait()
{
version (Windows)
{
timedWait( INFINITE );
}
else version (Posix)
{
int rc = pthread_cond_wait( &m_hndl, m_assocMutex.handleAddr() );
if ( rc )
throw new SyncError( "Unable to wait for condition" );
}
}
/**
* Suspends the calling thread until a notification occurs or until the
* supplied time period has elapsed.
*
* Params:
* val = The time to wait.
*
* In:
* val must be non-negative.
*
* Throws:
* SyncError on error.
*
* Returns:
* true if notified before the timeout and false if not.
*/
bool wait( Duration val )
in
{
assert( !val.isNegative );
}
do
{
version (Windows)
{
auto maxWaitMillis = dur!("msecs")( uint.max - 1 );
while ( val > maxWaitMillis )
{
if ( timedWait( cast(uint)
maxWaitMillis.total!"msecs" ) )
return true;
val -= maxWaitMillis;
}
return timedWait( cast(uint) val.total!"msecs" );
}
else version (Posix)
{
timespec t = void;
mktspec( t, val );
int rc = pthread_cond_timedwait( &m_hndl,
m_assocMutex.handleAddr(),
&t );
if ( !rc )
return true;
if ( rc == ETIMEDOUT )
return false;
throw new SyncError( "Unable to wait for condition" );
}
}
/**
* Notifies one waiter.
*
* Throws:
* SyncError on error.
*/
void notify()
{
version (Windows)
{
notify( false );
}
else version (Posix)
{
// Since OS X 10.7 (Lion), pthread_cond_signal returns EAGAIN after retrying 8192 times,
// so need to retrying while it returns EAGAIN.
//
// 10.7.0 (Lion): http://www.opensource.apple.com/source/Libc/Libc-763.11/pthreads/pthread_cond.c
// 10.8.0 (Mountain Lion): http://www.opensource.apple.com/source/Libc/Libc-825.24/pthreads/pthread_cond.c
// 10.10.0 (Yosemite): http://www.opensource.apple.com/source/libpthread/libpthread-105.1.4/src/pthread_cond.c
// 10.11.0 (El Capitan): http://www.opensource.apple.com/source/libpthread/libpthread-137.1.1/src/pthread_cond.c
// 10.12.0 (Sierra): http://www.opensource.apple.com/source/libpthread/libpthread-218.1.3/src/pthread_cond.c
// 10.13.0 (High Sierra): http://www.opensource.apple.com/source/libpthread/libpthread-301.1.6/src/pthread_cond.c
// 10.14.0 (Mojave): http://www.opensource.apple.com/source/libpthread/libpthread-330.201.1/src/pthread_cond.c
// 10.14.1 (Mojave): http://www.opensource.apple.com/source/libpthread/libpthread-330.220.2/src/pthread_cond.c
int rc;
do {
rc = pthread_cond_signal( &m_hndl );
} while ( rc == EAGAIN );
if ( rc )
throw new SyncError( "Unable to notify condition" );
}
}
/**
* Notifies all waiters.
*
* Throws:
* SyncError on error.
*/
void notifyAll()
{
version (Windows)
{
notify( true );
}
else version (Posix)
{
// Since OS X 10.7 (Lion), pthread_cond_broadcast returns EAGAIN after retrying 8192 times,
// so need to retrying while it returns EAGAIN.
//
// 10.7.0 (Lion): http://www.opensource.apple.com/source/Libc/Libc-763.11/pthreads/pthread_cond.c
// 10.8.0 (Mountain Lion): http://www.opensource.apple.com/source/Libc/Libc-825.24/pthreads/pthread_cond.c
// 10.10.0 (Yosemite): http://www.opensource.apple.com/source/libpthread/libpthread-105.1.4/src/pthread_cond.c
// 10.11.0 (El Capitan): http://www.opensource.apple.com/source/libpthread/libpthread-137.1.1/src/pthread_cond.c
// 10.12.0 (Sierra): http://www.opensource.apple.com/source/libpthread/libpthread-218.1.3/src/pthread_cond.c
// 10.13.0 (High Sierra): http://www.opensource.apple.com/source/libpthread/libpthread-301.1.6/src/pthread_cond.c
// 10.14.0 (Mojave): http://www.opensource.apple.com/source/libpthread/libpthread-330.201.1/src/pthread_cond.c
// 10.14.1 (Mojave): http://www.opensource.apple.com/source/libpthread/libpthread-330.220.2/src/pthread_cond.c
int rc;
do {
rc = pthread_cond_broadcast( &m_hndl );
} while ( rc == EAGAIN );
if ( rc )
throw new SyncError( "Unable to notify condition" );
}
}
private:
version (Windows)
{
bool timedWait( DWORD timeout )
{
int numSignalsLeft;
int numWaitersGone;
DWORD rc;
rc = WaitForSingleObject( m_blockLock, INFINITE );
assert( rc == WAIT_OBJECT_0 );
m_numWaitersBlocked++;
rc = ReleaseSemaphore( m_blockLock, 1, null );
assert( rc );
m_assocMutex.unlock();
scope(failure) m_assocMutex.lock();
rc = WaitForSingleObject( m_blockQueue, timeout );
assert( rc == WAIT_OBJECT_0 || rc == WAIT_TIMEOUT );
bool timedOut = (rc == WAIT_TIMEOUT);
EnterCriticalSection( &m_unblockLock );
scope(failure) LeaveCriticalSection( &m_unblockLock );
if ( (numSignalsLeft = m_numWaitersToUnblock) != 0 )
{
if ( timedOut )
{
// timeout (or canceled)
if ( m_numWaitersBlocked != 0 )
{
m_numWaitersBlocked--;
// do not unblock next waiter below (already unblocked)
numSignalsLeft = 0;
}
else
{
// spurious wakeup pending!!
m_numWaitersGone = 1;
}
}
if ( --m_numWaitersToUnblock == 0 )
{
if ( m_numWaitersBlocked != 0 )
{
// open the gate
rc = ReleaseSemaphore( m_blockLock, 1, null );
assert( rc );
// do not open the gate below again
numSignalsLeft = 0;
}
else if ( (numWaitersGone = m_numWaitersGone) != 0 )
{
m_numWaitersGone = 0;
}
}
}
else if ( ++m_numWaitersGone == int.max / 2 )
{
// timeout/canceled or spurious event :-)
rc = WaitForSingleObject( m_blockLock, INFINITE );
assert( rc == WAIT_OBJECT_0 );
// something is going on here - test of timeouts?
m_numWaitersBlocked -= m_numWaitersGone;
rc = ReleaseSemaphore( m_blockLock, 1, null );
assert( rc == WAIT_OBJECT_0 );
m_numWaitersGone = 0;
}
LeaveCriticalSection( &m_unblockLock );
if ( numSignalsLeft == 1 )
{
// better now than spurious later (same as ResetEvent)
for ( ; numWaitersGone > 0; --numWaitersGone )
{
rc = WaitForSingleObject( m_blockQueue, INFINITE );
assert( rc == WAIT_OBJECT_0 );
}
// open the gate
rc = ReleaseSemaphore( m_blockLock, 1, null );
assert( rc );
}
else if ( numSignalsLeft != 0 )
{
// unblock next waiter
rc = ReleaseSemaphore( m_blockQueue, 1, null );
assert( rc );
}
m_assocMutex.lock();
return !timedOut;
}
void notify( bool all )
{
DWORD rc;
EnterCriticalSection( &m_unblockLock );
scope(failure) LeaveCriticalSection( &m_unblockLock );
if ( m_numWaitersToUnblock != 0 )
{
if ( m_numWaitersBlocked == 0 )
{
LeaveCriticalSection( &m_unblockLock );
return;
}
if ( all )
{
m_numWaitersToUnblock += m_numWaitersBlocked;
m_numWaitersBlocked = 0;
}
else
{
m_numWaitersToUnblock++;
m_numWaitersBlocked--;
}
LeaveCriticalSection( &m_unblockLock );
}
else if ( m_numWaitersBlocked > m_numWaitersGone )
{
rc = WaitForSingleObject( m_blockLock, INFINITE );
assert( rc == WAIT_OBJECT_0 );
if ( 0 != m_numWaitersGone )
{
m_numWaitersBlocked -= m_numWaitersGone;
m_numWaitersGone = 0;
}
if ( all )
{
m_numWaitersToUnblock = m_numWaitersBlocked;
m_numWaitersBlocked = 0;
}
else
{
m_numWaitersToUnblock = 1;
m_numWaitersBlocked--;
}
LeaveCriticalSection( &m_unblockLock );
rc = ReleaseSemaphore( m_blockQueue, 1, null );
assert( rc );
}
else
{
LeaveCriticalSection( &m_unblockLock );
}
}
// NOTE: This implementation uses Algorithm 8c as described here:
// http://groups.google.com/group/comp.programming.threads/
// browse_frm/thread/1692bdec8040ba40/e7a5f9d40e86503a
HANDLE m_blockLock; // auto-reset event (now semaphore)
HANDLE m_blockQueue; // auto-reset event (now semaphore)
Mutex m_assocMutex; // external mutex/CS
CRITICAL_SECTION m_unblockLock; // internal mutex/CS
int m_numWaitersGone = 0;
int m_numWaitersBlocked = 0;
int m_numWaitersToUnblock = 0;
}
else version (Posix)
{
Mutex m_assocMutex;
pthread_cond_t m_hndl;
}
}
////////////////////////////////////////////////////////////////////////////////
// Unit Tests
////////////////////////////////////////////////////////////////////////////////
version (unittest)
{
private import core.thread;
private import core.sync.mutex;
private import core.sync.semaphore;
void testNotify()
{
auto mutex = new Mutex;
auto condReady = new Condition( mutex );
auto semDone = new Semaphore;
auto synLoop = new Object;
int numWaiters = 10;
int numTries = 10;
int numReady = 0;
int numTotal = 0;
int numDone = 0;
int numPost = 0;
void waiter()
{
for ( int i = 0; i < numTries; ++i )
{
synchronized( mutex )
{
while ( numReady < 1 )
{
condReady.wait();
}
--numReady;
++numTotal;
}
synchronized( synLoop )
{
++numDone;
}
semDone.wait();
}
}
auto group = new ThreadGroup;
for ( int i = 0; i < numWaiters; ++i )
group.create( &waiter );
for ( int i = 0; i < numTries; ++i )
{
for ( int j = 0; j < numWaiters; ++j )
{
synchronized( mutex )
{
++numReady;
condReady.notify();
}
}
while ( true )
{
synchronized( synLoop )
{
if ( numDone >= numWaiters )
break;
}
Thread.yield();
}
for ( int j = 0; j < numWaiters; ++j )
{
semDone.notify();
}
}
group.joinAll();
assert( numTotal == numWaiters * numTries );
}
void testNotifyAll()
{
auto mutex = new Mutex;
auto condReady = new Condition( mutex );
int numWaiters = 10;
int numReady = 0;
int numDone = 0;
bool alert = false;
void waiter()
{
synchronized( mutex )
{
++numReady;
while ( !alert )
condReady.wait();
++numDone;
}
}
auto group = new ThreadGroup;
for ( int i = 0; i < numWaiters; ++i )
group.create( &waiter );
while ( true )
{
synchronized( mutex )
{
if ( numReady >= numWaiters )
{
alert = true;
condReady.notifyAll();
break;
}
}
Thread.yield();
}
group.joinAll();
assert( numReady == numWaiters && numDone == numWaiters );
}
void testWaitTimeout()
{
auto mutex = new Mutex;
auto condReady = new Condition( mutex );
bool waiting = false;
bool alertedOne = true;
bool alertedTwo = true;
void waiter()
{
synchronized( mutex )
{
waiting = true;
// we never want to miss the notification (30s)
alertedOne = condReady.wait( dur!"seconds"(30) );
// but we don't want to wait long for the timeout (10ms)
alertedTwo = condReady.wait( dur!"msecs"(10) );
}
}
auto thread = new Thread( &waiter );
thread.start();
while ( true )
{
synchronized( mutex )
{
if ( waiting )
{
condReady.notify();
break;
}
}
Thread.yield();
}
thread.join();
assert( waiting );
assert( alertedOne );
assert( !alertedTwo );
}
unittest
{
testNotify();
testNotifyAll();
testWaitTimeout();
}
}
| D |
someone who plays practical jokes on others
someone who leads you to believe something that is not true
a mischievous supernatural being found in the folklore of many primitive people
| D |
/*
* hunt-proton: AMQP Protocol library for D programming language.
*
* Copyright (C) 2018-2019 HuntLabs
*
* Website: https://www.huntlabs.net/
*
* Licensed under the Apache-2.0 License.
*
*/
module hunt.proton.codec.messaging.DeleteOnNoMessagesType;
import hunt.Object;
import hunt.collection.Collections;
import hunt.collection.List;
import hunt.collection.ArrayList;
import hunt.proton.amqp.Symbol;
import hunt.proton.amqp.UnsignedLong;
import hunt.proton.amqp.messaging.DeleteOnNoMessages;
import hunt.proton.codec.AbstractDescribedType;
import hunt.proton.codec.Decoder;
import hunt.proton.codec.DescribedTypeConstructor;
import hunt.proton.codec.EncoderImpl;
import std.concurrency : initOnce;
import hunt.Exceptions;
class DeleteOnNoMessagesType : AbstractDescribedType!(DeleteOnNoMessages,List!Object) , DescribedTypeConstructor!(DeleteOnNoMessages)
{
//private static Object[] DESCRIPTORS =
//{
// UnsignedLong.valueOf(0x000000000000002dL), Symbol.valueOf("amqp:delete-on-no-messages:list"),
//};
// private static UnsignedLong DESCRIPTOR = UnsignedLong.valueOf(0x000000000000002dL);
static Object[] DESCRIPTORS() {
__gshared Object[] inst;
return initOnce!inst([UnsignedLong.valueOf(0x000000000000002dL), Symbol.valueOf("amqp:delete-on-no-messages:list")]);
}
static UnsignedLong DESCRIPTOR() {
__gshared UnsignedLong inst;
return initOnce!inst(UnsignedLong.valueOf(0x000000000000002dL));
}
this(EncoderImpl encoder)
{
super(encoder);
}
override
public UnsignedLong getDescriptor()
{
return DESCRIPTOR;
}
override
protected List!Object wrap(DeleteOnNoMessages val)
{
return new ArrayList!Object();
}
override
public DeleteOnNoMessages newInstance(Object described)
{
return DeleteOnNoMessages.getInstance();
}
override
public TypeInfo getTypeClass()
{
return typeid(DeleteOnNoMessages);
}
public static void register(Decoder decoder, EncoderImpl encoder)
{
DeleteOnNoMessagesType type = new DeleteOnNoMessagesType(encoder);
//implementationMissing(false);
foreach(Object descriptor ; DESCRIPTORS)
{
decoder.registerDynamic(descriptor, type);
}
encoder.register(type);
}
}
| D |
<?xml version="1.0" encoding="UTF-8"?>
<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="tp.notation#_Ii-aACEdEeOT_fjNFFfTPw"/>
</availablePage>
<availablePage>
<emfPageIdentifier href="tp.notation#_KigBwCEdEeOT_fjNFFfTPw"/>
</availablePage>
<availablePage>
<emfPageIdentifier href="tp.notation#_MgvQECEdEeOT_fjNFFfTPw"/>
</availablePage>
<availablePage>
<emfPageIdentifier href="tp.notation#_Ol7a8CEdEeOT_fjNFFfTPw"/>
</availablePage>
<availablePage>
<emfPageIdentifier href="tp.notation#_vRsboCEfEeOT_fjNFFfTPw"/>
</availablePage>
</pageList>
<sashModel currentSelection="//@sashModel/@windows.0/@children.0">
<windows>
<children xsi:type="di:TabFolder">
<children>
<emfPageIdentifier href="tp.notation#_Ii-aACEdEeOT_fjNFFfTPw"/>
</children>
<children>
<emfPageIdentifier href="tp.notation#_oKqs4J0HEeWQW4YCBz-17Q"/>
</children>
<children>
<emfPageIdentifier href="tp.notation#_QFMyAJ_WEeWjueYRQtzlJA"/>
</children>
</children>
</windows>
</sashModel>
</di:SashWindowsMngr>
| D |
/Users/Steve_Sanchez/Documents/Apargo/Apps/TestApps/BLEUnderstandingTest/build/BLEUnderstandingTest.build/Release-iphoneos/BLEUnderstandingTest.build/Objects-normal/armv7/ViewController.o : /Users/Steve_Sanchez/Documents/Apargo/Apps/TestApps/BLEUnderstandingTest/BLEUnderstandingTest/BLEManager.swift /Users/Steve_Sanchez/Documents/Apargo/Apps/TestApps/BLEUnderstandingTest/BLEUnderstandingTest/ViewController.swift /Users/Steve_Sanchez/Documents/Apargo/Apps/TestApps/BLEUnderstandingTest/BLEUnderstandingTest/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreBluetooth.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreData.swiftmodule
/Users/Steve_Sanchez/Documents/Apargo/Apps/TestApps/BLEUnderstandingTest/build/BLEUnderstandingTest.build/Release-iphoneos/BLEUnderstandingTest.build/Objects-normal/armv7/ViewController~partial.swiftmodule : /Users/Steve_Sanchez/Documents/Apargo/Apps/TestApps/BLEUnderstandingTest/BLEUnderstandingTest/BLEManager.swift /Users/Steve_Sanchez/Documents/Apargo/Apps/TestApps/BLEUnderstandingTest/BLEUnderstandingTest/ViewController.swift /Users/Steve_Sanchez/Documents/Apargo/Apps/TestApps/BLEUnderstandingTest/BLEUnderstandingTest/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreBluetooth.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreData.swiftmodule
/Users/Steve_Sanchez/Documents/Apargo/Apps/TestApps/BLEUnderstandingTest/build/BLEUnderstandingTest.build/Release-iphoneos/BLEUnderstandingTest.build/Objects-normal/armv7/ViewController~partial.swiftdoc : /Users/Steve_Sanchez/Documents/Apargo/Apps/TestApps/BLEUnderstandingTest/BLEUnderstandingTest/BLEManager.swift /Users/Steve_Sanchez/Documents/Apargo/Apps/TestApps/BLEUnderstandingTest/BLEUnderstandingTest/ViewController.swift /Users/Steve_Sanchez/Documents/Apargo/Apps/TestApps/BLEUnderstandingTest/BLEUnderstandingTest/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreBluetooth.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/armv7/CoreData.swiftmodule
| D |
/Users/hauyadav/Learn/nysample/NYTSample/Build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/PKHUD.build/Objects-normal/x86_64/PKHUDAnimating.o : /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/HUD.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUD.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDAnimating.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDAnimation.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/WindowRootViewController.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDAssets.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDRotatingImageView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/FrameView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDWideBaseView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDSquareBaseView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDErrorView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDSystemActivityIndicatorView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDSuccessView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDProgressView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDTextView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/Window.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/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUD.h /Users/hauyadav/Learn/nysample/NYTSample/Pods/Target\ Support\ Files/PKHUD/PKHUD-umbrella.h /Users/hauyadav/Learn/nysample/NYTSample/Build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/PKHUD.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/hauyadav/Learn/nysample/NYTSample/Build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/PKHUD.build/Objects-normal/x86_64/PKHUDAnimating~partial.swiftmodule : /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/HUD.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUD.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDAnimating.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDAnimation.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/WindowRootViewController.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDAssets.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDRotatingImageView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/FrameView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDWideBaseView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDSquareBaseView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDErrorView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDSystemActivityIndicatorView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDSuccessView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDProgressView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDTextView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/Window.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/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUD.h /Users/hauyadav/Learn/nysample/NYTSample/Pods/Target\ Support\ Files/PKHUD/PKHUD-umbrella.h /Users/hauyadav/Learn/nysample/NYTSample/Build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/PKHUD.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/hauyadav/Learn/nysample/NYTSample/Build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/PKHUD.build/Objects-normal/x86_64/PKHUDAnimating~partial.swiftdoc : /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/HUD.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUD.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDAnimating.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDAnimation.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/WindowRootViewController.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDAssets.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDRotatingImageView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/FrameView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDWideBaseView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDSquareBaseView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDErrorView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDSystemActivityIndicatorView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDSuccessView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDProgressView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUDTextView.swift /Users/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/Window.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/hauyadav/Learn/nysample/NYTSample/Pods/PKHUD/PKHUD/PKHUD.h /Users/hauyadav/Learn/nysample/NYTSample/Pods/Target\ Support\ Files/PKHUD/PKHUD-umbrella.h /Users/hauyadav/Learn/nysample/NYTSample/Build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/PKHUD.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
| D |
: C B L A S _ D G E M M _ B A T C H EXAMPLE PROGRAM DATA
101 :Layout for the storage
2 :Group count
3 2 :Group sizes - number of matrices in each group
2 5 4 :Values of m, n, k for the first group
3 4 2 :Values of m, n, k for the second group
0.5 -1.2 :Values of alpha, beta for the first group
2.0 1.0 :Values of alpha, beta for the second group
112 112 :Values of transA, transB for the first group
112 111 :Values of transA, transB for the second group
1.5 2.22
6.3 9.0
1.0 -4.0
0.2 7.5 :Values of 1st A matrix in the 1st group
1.0 2.0 3.0 4.0
1.0 2.0 3.0 4.0
1.0 2.0 3.0 4.0
1.0 2.0 3.0 4.0
1.0 2.0 3.0 4.0 :Values of 1st B matrix in the 1st group
0.0 0.0 1.0 1.0 1.0
0.0 0.0 1.0 1.0 1.0 :Values of 1st C matrix in the 1st group
1.5 2.22
6.3 9.0
1.0 -4.0
0.2 7.5 :Values of 2nd A matrix in the 1st group
1.0 2.0 3.0 4.0
1.0 2.0 3.0 4.0
1.0 2.0 3.0 4.0
1.0 2.0 3.0 4.0
1.0 2.0 3.0 4.0 :Values of 2nd B matrix in the 1st group
0.0 0.0 1.0 1.0 1.0
0.0 0.0 1.0 1.0 1.0 :Values of 2nd C matrix in the 1st group
1.5 2.22
6.3 9.0
1.0 -4.0
0.2 7.5 :Values of 3rd A matrix in the 1st group
1.0 2.0 3.0 4.0
1.0 2.0 3.0 4.0
1.0 2.0 3.0 4.0
1.0 2.0 3.0 4.0
1.0 2.0 3.0 4.0 :Values of 3rd B matrix in the 1st group
0.0 0.0 1.0 1.0 1.0
0.0 0.0 1.0 1.0 1.0 :Values of 3rd C matrix in the 1st group
1.0 -4.0 2.5
0.2 7.5 3.5 :Values of 1st A matrix in the 2nd group
1.0 2.0 3.0 4.0
1.0 2.0 3.0 4.0 :Values of 1st B matrix in the 2nd group
1.0 0.0 0.0 1.0
1.0 0.0 0.0 1.0
1.0 0.0 0.0 1.0 :Values of 1st C matrix in the 2nd group
1.0 -4.0 2.5
0.2 7.5 3.5 :Values of 2nd A matrix in the 2nd group
1.0 2.0 3.0 4.0
1.0 2.0 3.0 4.0 :Values of 2nd B matrix in the 2nd group
1.0 0.0 0.0 1.0
1.0 0.0 0.0 1.0
1.0 0.0 0.0 1.0 :Values of 2nd C matrix in the 2nd group
| 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
module gtkD.gdac.gdatypes;
public import gtkD.gtkc.glibtypes;
public import gtkD.gtkc.gobjecttypes;
/**
* typedef GList GdaValueList;
*/
public alias GList GdaValueList;
public enum GdaBlobMode
{
MODE_READ = 1,
MODE_WRITE = 1 << 1,
MODE_RDWR = 0x03
}
alias GdaBlobMode daBlobMode;
public enum GdaClientEvent
{
INVALID,
/+* events usually notified by the library itself, and which the providers
should notify on very special cases (like a transaction being started
or committed via a BEGIN/COMMIT command directly sent to the
executeCommand method on the provider +/
ERROR, /+* params: "error" +/
CONNECTION_OPENED, /+* params: +/
CONNECTION_CLOSED, /+* params: +/
TRANSACTION_STARTED, /+* params: "transaction" +/
TRANSACTION_COMMITTED, /+* params: "transaction" +/
TRANSACTION_CANCELLED /+* params: "transaction" +/
}
alias GdaClientEvent daClientEvent;
/**
* And OR'ed combination of GDA_COMMAND_OPTIONS_* values.
*/
public enum GdaCommandOptions
{
IGNORE_ERRORS = 1,
STOP_ON_ERRORS = 1 << 1,
BAD_OPTION = 1 << 2
}
alias GdaCommandOptions daCommandOptions;
/**
* GDA_COMMAND_TYPE_SQL
* the text of the command is composed of zero or more SQL
* sentences.
* GDA_COMMAND_TYPE_XML
* GDA_COMMAND_TYPE_PROCEDURE
* GDA_COMMAND_TYPE_TABLE
* the text of the command is composed of zero or more
* table names.
* GDA_COMMAND_TYPE_SCHEMA
* GDA_COMMAND_TYPE_INVALID
*/
public enum GdaCommandType
{
TYPE_SQL,
TYPE_XML,
TYPE_PROCEDURE,
TYPE_TABLE,
TYPE_SCHEMA,
TYPE_INVALID
}
alias GdaCommandType daCommandType;
public enum GdaConnectionOptions
{
READ_ONLY = 1 << 0,
DONT_SHARE = 2 << 0
}
alias GdaConnectionOptions daConnectionOptions;
public enum GdaConnectionFeature
{
AGGREGATES,
BLOBS,
INDEXES,
INHERITANCE,
NAMESPACES,
PROCEDURES,
SEQUENCES,
SQL,
TRANSACTIONS,
TRIGGERS,
UPDATABLE_CURSOR,
USERS,
VIEWS,
XML_QUERIES
}
alias GdaConnectionFeature daConnectionFeature;
public enum GdaConnectionSchema
{
AGGREGATES,
DATABASES,
FIELDS,
INDEXES,
LANGUAGES,
NAMESPACES,
PARENT_TABLES,
PROCEDURES,
SEQUENCES,
TABLES,
TRIGGERS,
TYPES,
USERS,
VIEWS
}
alias GdaConnectionSchema daConnectionSchema;
public enum GdaExportFlags
{
TABLE_DATA = 1
}
alias GdaExportFlags daExportFlags;
public enum GdaTransactionIsolation
{
UNKNOWN,
READ_COMMITTED,
READ_UNCOMMITTED,
REPEATABLE_READ,
SERIALIZABLE
}
alias GdaTransactionIsolation daTransactionIsolation;
public enum GdaValueType
{
TYPE_NULL,
TYPE_BIGINT,
TYPE_BIGUINT,
TYPE_BINARY,
TYPE_BLOB,
TYPE_BOOLEAN,
TYPE_DATE,
TYPE_DOUBLE,
TYPE_GEOMETRIC_POINT,
TYPE_GOBJECT,
TYPE_INTEGER,
TYPE_LIST,
TYPE_MONEY,
TYPE_NUMERIC,
TYPE_SINGLE,
TYPE_SMALLINT,
TYPE_SMALLUINT,
TYPE_STRING,
TYPE_TIME,
TYPE_TIMESTAMP,
TYPE_TINYINT,
TYPE_TINYUINT,
TYPE_TYPE,
TYPE_UINTEGER,
TYPE_UNKNOWN
}
alias GdaValueType daValueType;
public struct GdaConnection{}
public struct GdaError{}
public struct GdaTransaction{}
public struct GdaDataModelArray{}
public struct GdaDataModelHash{}
public struct GdaDataModelList{}
public struct xmlNodePtr{}
public struct GdaExport{}
public struct GdaSelect{}
public struct GdaTable{}
public struct GdaServerProviderPrivate{}
/**
* Main Gtk struct.
*/
public struct GdaBlob
{
/+* Private +/
extern(C) int function(GdaBlob *blob, GdaBlobMode mode) open;
extern(C) int function(GdaBlob *blob, void* buf, int size,int *bytesRead) read;
extern(C) int function(GdaBlob *blob, void* buf, int size,int *bytesWritten) write;
extern(C) int function(GdaBlob *blob, int offset, int whence) lseek;
extern(C) int function(GdaBlob *blob) close;
extern(C) int function(GdaBlob *blob) remove;
extern(C) char * function(GdaBlob *blob) stringify;
extern(C) void function(GdaBlob *blob) freeData;
void* privData;
/+* +/
/+* Public +/
void* userData;
}
public struct GdaClientPrivate{}
/**
* Main Gtk struct.
*/
public struct GdaCommand
{
char *text;
GdaCommandType type;
GdaCommandOptions options;
GdaTransaction *xaction;
}
public struct GdaProviderInfo
{
char *id;
char *location;
char *description;
GList *gdaParams; /+* A list of GdaProviderParameterInfo pointers +/
}
public struct GdaDataSourceInfo
{
char *name;
char *provider;
char *cncString;
char *description;
char *username;
char *password;
}
public struct GdaConnectionPrivate{}
public struct GdaServerProvider
{
GObject object;
GdaServerProviderPrivate *priv;
}
public struct GdaClient
{
GObject object;
GdaClientPrivate *priv;
}
public struct GdaDataModelArrayPrivate{}
public struct GdaDataModelHashPrivate{}
public struct GdaDataModelListPrivate{}
public struct GdaDataModelPrivate{}
public struct GdaErrorPrivate{}
public struct GdaExportPrivate{}
/**
* Main Gtk struct.
*/
public struct GdaFieldAttributes
{
int definedSize;
char *name;
char *table;
char *caption;
int scale;
GdaValueType gdaType;
int allowNull;
int primaryKey;
int uniqueKey;
char *references;
int autoIncrement;
int autoIncrementStart;
int autoIncrementStep;
int position;
GdaValue *defaultValue;
}
public struct GdaField
{
int actualSize;
GdaValue *value;
GdaFieldAttributes *attributes;
}
/**
* Main Gtk struct.
*/
public struct GdaParameter
{
char *name;
GdaValue *value;
}
public struct GdaParameterList{}
/**
* Main Gtk struct.
*/
public struct GdaQuarkList{}
public struct GdaDataModel
{
GObject object;
GdaDataModelPrivate *priv;
}
/**
* Main Gtk struct.
*/
public struct GdaRow{}
public struct GdaSelectPrivate{}
public struct GdaTablePrivate{}
public struct GdaTransactionPrivate{}
public struct GdaDate
{
short year;
ushort month;
ushort day;
}
public struct GdaGeometricPoint
{
double x;
double y;
}
public struct GdaMoney
{
char *currency;
double amount;
}
public struct GdaNumeric
{
char *number;
int precision;
int width;
}
public struct GdaTime
{
ushort hour;
ushort minute;
ushort second;
int timezone; /+* # of seconds to the east UTC +/
}
public struct GdaTimestamp
{
short year;
ushort month;
ushort day;
ushort hour;
ushort minute;
ushort second;
uint fraction;
int timezone; /+* # of seconds to the east UTC +/
}
/**
* Main Gtk struct.
*/
public struct GdaValue
{
GdaValueType type;
union Value
{
long vBigint;
ulong vBiguint;
void* vBinary;
GdaBlob vBlob;
int vBoolean;
GdaDate vDate;
double vDouble;
GdaGeometricPoint vPoint;
GObject *vGobj;
int vInteger;
GdaValueList *vList;
GdaMoney vMoney;
GdaNumeric vNumeric;
float vSingle;
short vSmallint;
ushort vSmalluint;
char *vString;
GdaTime vTime;
GdaTimestamp vTimestamp;
char vTinyint;
char vTinyuint;
GdaValueType vType;
uint vUinteger;
}
Value value;
int binaryLength;
}
/*
* value :
* type :
*/
// TODO
// #define gda_value_isa(value,type) (gda_value_get_type (value) == type)
/*
* user_data :
*/
// void (*GdaInitFunc) (gpointer user_data);
public typedef extern(C) void function (void*) GdaInitFunc;
/*
* path :
* user_data :
*/
// void (*GdaConfigListenerFunc) (const gchar *path, gpointer user_data);
public typedef extern(C) void function (char[], void*) GdaConfigListenerFunc;
/*
* model :
* row :
* user_data :
* Returns :
*/
// gboolean (*GdaDataModelForeachFunc) (GdaDataModel *model, GdaRow *row, gpointer user_data);
public typedef extern(C) int function (GdaDataModel*, GdaRow*, void*) GdaDataModelForeachFunc;
| D |
// ******************************************************************************
// Spell_ProcessMana
// -----------------
// wird pro investiertem Mana aufgerufen
// wieviele Mana bisher investiert wurden kann über manaInvested abgefragt werden
// diese Methode wird immer vom Caster aufgerufen
// self = Der Caster
// other = Das Opfer (kann auch leer sein)
// ******************************************************************************
func INT Spell_ProcessMana (VAR INT manaInvested)
{
var int activeSpell; activeSpell = Npc_GetActiveSpell(self);
//Paladin-Runen
if (activeSpell == SPL_PalLight ) { return Spell_Logic_PalLight (manaInvested); };
if (activeSpell == SPL_PalLightHeal ) { return Spell_Logic_PalLightHeal (manaInvested); };
if (activeSpell == SPL_PalHolyBolt ) { return Spell_Logic_PalHolyBolt (manaInvested); };
if (activeSpell == SPL_PalMediumHeal ) { return Spell_Logic_PalMediumHeal (manaInvested); };
if (activeSpell == SPL_PalRepelEvil ) { return Spell_Logic_PalRepelEvil (manaInvested); };
if (activeSpell == SPL_PalFullHeal ) { return Spell_Logic_PalFullHeal (manaInvested); };
if (activeSpell == SPL_PalDestroyEvil ) { return Spell_Logic_PalDestroyEvil (manaInvested); };
//Teleport-Runen
if (activeSpell == SPL_PalTeleportSecret ) { return Spell_Logic_PalTeleportSecret (manaInvested); };
if (activeSpell == SPL_TeleportSeaport ) { return Spell_Logic_TeleportSeaport (manaInvested); };
if (activeSpell == SPL_TeleportMonastery ) { return Spell_Logic_TeleportMonastery (manaInvested); };
if (activeSpell == SPL_TeleportFarm ) { return Spell_Logic_TeleportFarm (manaInvested); };
if (activeSpell == SPL_TeleportXardas ) { return Spell_Logic_TeleportXardas (manaInvested); };
if (activeSpell == SPL_TeleportPassNW ) { return Spell_Logic_TeleportPassNW (manaInvested); };
if (activeSpell == SPL_TeleportPassOW ) { return Spell_Logic_TeleportPassOW (manaInvested); };
if (activeSpell == SPL_TeleportOC ) { return Spell_Logic_TeleportOC (manaInvested); };
if (activeSpell == SPL_TeleportOWDemonTower) { return Spell_Logic_TeleportOWDemonTower(manaInvested); };
if (activeSpell == SPL_TeleportTaverne ) { return Spell_Logic_TeleportTaverne (manaInvested); };
//Runen und Scrolls
//Kreis 1
if (activeSpell == SPL_LIGHT ) { return Spell_Logic_Light (manaInvested); };
if (activeSpell == SPL_Firebolt ) { return Spell_Logic_Firebolt (manaInvested); };
if (activeSpell == SPL_Icebolt ) { return Spell_Logic_Icebolt (manaInvested); };
if (activeSpell == SPL_Zap ) { return Spell_Logic_Zap (manaInvested); };
if (activeSpell == SPL_LightHeal ) { return Spell_Logic_LightHeal (manaInvested); };
if (activeSpell == SPL_SummonGoblinSkeleton) { return Spell_Logic_SummonGoblinSkeleton(manaInvested); };
//Kreis 2
if (activeSpell == SPL_InstantFireball ) { return Spell_Logic_InstantFireball (manaInvested); };
if (activeSpell == SPL_SummonWolf ) { return Spell_Logic_SummonWolf (manaInvested); };
if (activeSpell == SPL_WINDFIST ) { return Spell_Logic_Windfist (manaInvested); };
if (activeSpell == SPL_Sleep ) { return Spell_Logic_Sleep (manaInvested); };
//Kreis 3
if (activeSpell == SPL_MediumHeal ) { return Spell_Logic_MediumHeal (manaInvested); };
if (activeSpell == SPL_LightningFlash ) { return Spell_Logic_LightningFlash (manaInvested); };
if (activeSpell == SPL_ChargeFireball ) { return Spell_Logic_ChargeFireball (manaInvested); };
if (activeSpell == SPL_ChargeZap ) { return Spell_Logic_ChargeZap (manaInvested); };
if (activeSpell == SPL_SummonSkeleton ) { return Spell_Logic_SummonSkeleton (manaInvested); };
if (activeSpell == SPL_Fear ) { return Spell_Logic_Fear (manaInvested); };
if (activeSpell == SPL_IceCube ) { return Spell_Logic_IceCube (manaInvested); };
//Kreis 4
if (activeSpell == SPL_ChargeZap ) { return Spell_Logic_ChargeZap (manaInvested); };
if (activeSpell == SPL_SummonGolem ) { return Spell_Logic_SummonGolem (manaInvested); };
if (activeSpell == SPL_DestroyUndead ) { return Spell_Logic_DestroyUndead (manaInvested); };
if (activeSpell == SPL_Pyrokinesis ) { return Spell_Logic_Pyrokinesis (manaInvested); };
//Kreis 5
if (activeSpell == SPL_Firestorm ) { return Spell_Logic_Firestorm (manaInvested); };
if (activeSpell == SPL_IceWave ) { return Spell_Logic_IceWave (manaInvested); };
if (activeSpell == SPL_SummonDemon ) { return Spell_Logic_SummonDemon (manaInvested); };
if (activeSpell == SPL_FullHeal ) { return Spell_Logic_FullHeal (manaInvested); };
//Kreis 6
if (activeSpell == SPL_Firerain ) { return Spell_Logic_Firerain (manaInvested); };
if (activeSpell == SPL_BreathOfDeath ) { return Spell_Logic_BreathOfDeath (manaInvested); };
if (activeSpell == SPL_MassDeath ) { return Spell_Logic_MassDeath (manaInvested); };
if (activeSpell == SPL_ArmyOfDarkness ) { return Spell_Logic_ArmyOfDarkness (manaInvested); };
if (activeSpell == SPL_Shrink ) { return Spell_Logic_Shrink (manaInvested); };
//Scrolls
if (activeSpell == SPL_TrfSheep ) { return Spell_Logic_TrfSheep (manaInvested); };
if (activeSpell == SPL_TrfScavenger ) { return Spell_Logic_TrfScavenger (manaInvested); };
if (activeSpell == SPL_TrfGiantRat ) { return Spell_Logic_TrfGiantRat (manaInvested); };
if (activeSpell == SPL_TrfGiantBug ) { return Spell_Logic_TrfGiantBug (manaInvested); };
if (activeSpell == SPL_TrfWolf ) { return Spell_Logic_TrfWolf (manaInvested); };
if (activeSpell == SPL_TrfWaran ) { return Spell_Logic_TrfWaran (manaInvested); };
if (activeSpell == SPL_TrfSnapper ) { return Spell_Logic_TrfSnapper (manaInvested); };
if (activeSpell == SPL_TrfWarg ) { return Spell_Logic_TrfWarg (manaInvested); };
if (activeSpell == SPL_TrfFireWaran ) { return Spell_Logic_TrfFireWaran (manaInvested); };
if (activeSpell == SPL_TrfLurker ) { return Spell_Logic_TrfLurker (manaInvested); };
if (activeSpell == SPL_TrfShadowbeast ) { return Spell_Logic_TrfShadowbeast (manaInvested); };
if (activeSpell == SPL_TrfDragonSnapper ) { return Spell_Logic_TrfDragonSnapper(manaInvested); };
if (activeSpell == SPL_Charm ) { return Spell_Logic_Charm (manaInvested); };
if (activeSpell == SPL_MasterOfDisaster ) { return Spell_Logic_MasterOfDisaster(manaInvested); };
if (activeSpell == SPL_ConcussionBolt ) { return Spell_Logic_ConcussionBolt (manaInvested); };
if (activeSpell == SPL_Deathbolt ) { return Spell_Logic_Deathbolt (manaInvested); };
if (activeSpell == SPL_Deathball ) { return Spell_Logic_Deathball (manaInvested); };
//water
if (activeSpell == SPL_Thunderstorm ) { return Spell_Logic_Thunderstorm (manaInvested); };
if (activeSpell == SPL_Waterfist ) { return Spell_Logic_Waterfist (manaInvested); };
if (activeSpell == SPL_Whirlwind ) { return Spell_Logic_Whirlwind (manaInvested); };
if (activeSpell == SPL_Geyser ) { return Spell_Logic_Geyser (manaInvested); };
if (activeSpell == SPL_Inflate ) { return Spell_Logic_Inflate (manaInvested); };
if (activeSpell == SPL_Icelance ) { return Spell_Logic_Icelance (manaInvested); };
//beliar magic
if (activeSpell == SPL_Swarm ) { return Spell_Logic_Swarm (manaInvested); };
if (activeSpell == SPL_Greententacle ) { return Spell_Logic_Greententacle (manaInvested); };
if (activeSpell == SPL_SummonGuardian ) { return Spell_Logic_SummonGuardian (manaInvested); };
if (activeSpell == SPL_Energyball ) { return Spell_Logic_Energyball (manaInvested); };
if (activeSpell == SPL_SuckEnergy ) { return Spell_Logic_SuckEnergy (manaInvested); };
if (activeSpell == SPL_Skull ) { return Spell_Logic_Skull (manaInvested); };
if (activeSpell == SPL_SummonZombie ) { return Spell_Logic_SummonZombie (manaInvested); };
if (activeSpell == SPL_SummonMud ) { return Spell_Logic_SummonMud (manaInvested); };
//Leer
// if (Npc_GetActiveSpell(self) == SPL_B ) { return Spell_Logic_XXX (manaInvested); };
// if (Npc_GetActiveSpell(self) == SPL_C ) { return Spell_Logic_XXX (manaInvested); };
// if (Npc_GetActiveSpell(self) == SPL_D ) { return Spell_Logic_XXX (manaInvested); };
// if (Npc_GetActiveSpell(self) == SPL_E ) { return Spell_Logic_XXX (manaInvested); };
// if (Npc_GetActiveSpell(self) == SPL_F ) { return Spell_Logic_XXX (manaInvested); };
// if (Npc_GetActiveSpell(self) == SPL_G ) { return Spell_Logic_XXX (manaInvested); };
// if (Npc_GetActiveSpell(self) == SPL_H ) { return Spell_Logic_XXX (manaInvested); };
};
| D |
// Copyright Brian Schott (Hackerpilot) 2015.
// 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 dscanner.analysis.incorrect_infinite_range;
import dscanner.analysis.base;
import dscanner.analysis.helpers;
import dparse.ast;
import dparse.lexer;
/**
* Checks for incorrect infinite range definitions
*/
final class IncorrectInfiniteRangeCheck : BaseAnalyzer
{
alias visit = BaseAnalyzer.visit;
///
this(string fileName, bool skipTests = false)
{
super(fileName, null, skipTests);
}
override void visit(const StructBody structBody)
{
inStruct++;
structBody.accept(this);
inStruct--;
}
override void visit(const FunctionDeclaration fd)
{
if (inStruct > 0 && fd.name.text == "empty")
{
line = fd.name.line;
column = fd.name.column;
fd.accept(this);
}
}
override void visit(const FunctionBody fb)
{
if (fb.bodyStatement !is null)
visit(fb.bodyStatement.blockStatement);
else
if (fb.blockStatement !is null)
visit(fb.blockStatement);
}
override void visit(const BlockStatement bs)
{
if (bs.declarationsAndStatements is null)
return;
if (bs.declarationsAndStatements.declarationsAndStatements is null)
return;
if (bs.declarationsAndStatements.declarationsAndStatements.length != 1)
return;
visit(bs.declarationsAndStatements);
}
override void visit(const ReturnStatement rs)
{
if (rs.expression.items.length != 1)
return;
UnaryExpression unary = cast(UnaryExpression) rs.expression.items[0];
if (unary is null)
return;
if (unary.primaryExpression is null)
return;
if (unary.primaryExpression.primary != tok!"false")
return;
addErrorMessage(line, column, KEY, MESSAGE);
}
override void visit(const Unittest u)
{
}
private:
uint inStruct;
enum string KEY = "dscanner.suspicious.incorrect_infinite_range";
enum string MESSAGE = "Use `enum bool empty = false;` to define an infinite range.";
size_t line;
size_t column;
}
unittest
{
import std.stdio : stderr;
import dscanner.analysis.config : StaticAnalysisConfig, Check, disabledConfig;
import std.format : format;
StaticAnalysisConfig sac = disabledConfig();
sac.incorrect_infinite_range_check = Check.enabled;
assertAnalyzerWarnings(q{struct InfiniteRange
{
bool empty() // [warn]: %1$s
{
return false;
}
bool stuff()
{
return false;
}
unittest
{
return false;
}
// https://issues.dlang.org/show_bug.cgi?id=18409
struct Foo
{
~this() nothrow @nogc;
}
}
bool empty() { return false; }
class C { bool empty() { return false; } } // [warn]: %1$s
}c
.format(IncorrectInfiniteRangeCheck.MESSAGE), sac);
stderr.writeln("Unittest for IncorrectInfiniteRangeCheck passed.");
}
| D |
module emul.m68k.tests.testdiv;
unittest
{
import std.stdio;
import emul.m68k.tests.testcore;
writeln("test div");
auto core = makeSafe!TestCore();
//divs.w
core.reset(0x200,0xffffff);
core.cpu.state.D[0] = 0xffffffff;
core.cpu.state.D[1] = 0x12345678;
core.cpu.memory.setValueUnchecked!ushort(0x200,0x83c0);
core.run(1);
assert(0x12345678 == core.cpu.state.D[1]);
core.reset(0x200,0xffffff);
core.cpu.state.D[0] = 0x12345678;
core.cpu.state.D[1] = 0x12345678;
core.cpu.memory.setValueUnchecked!ushort(0x200,0x83c0);
core.run(1);
assert(0x252035E5 == core.cpu.state.D[1]);
core.reset(0x200,0xffffff);
core.cpu.state.D[0] = 0x12345678;
core.cpu.state.D[1] = 0xffff0001;
core.cpu.memory.setValueUnchecked!ushort(0x200,0x83c0);
core.run(1);
assert(0xACF1FFFE == core.cpu.state.D[1]);
//divu.w
core.reset(0x200,0xffffff);
core.cpu.state.D[0] = 0xffffffff;
core.cpu.state.D[1] = 0x12345678;
core.cpu.memory.setValueUnchecked!ushort(0x200,0x82c0);
core.run(1);
assert(0x68AC1234 == core.cpu.state.D[1]);
core.reset(0x200,0xffffff);
core.cpu.state.D[0] = 0x12345678;
core.cpu.state.D[1] = 0x12345678;
core.cpu.memory.setValueUnchecked!ushort(0x200,0x82c0);
core.run(1);
assert(0x252035E5 == core.cpu.state.D[1]);
core.reset(0x200,0xffffff);
core.cpu.state.D[0] = 0x12345678;
core.cpu.state.D[1] = 0xffff0001;
core.cpu.memory.setValueUnchecked!ushort(0x200,0x82c0);
core.run(1);
assert(0xFFFF0001 == core.cpu.state.D[1]);
}
| D |
/Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/SQL.build/SQLColumnIdentifier.swift.o : /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLBind.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLJoinMethod.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLTable.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLCreateTable.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDropTable.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLAlterTable.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLSerializable.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDataType.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLUpdate.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDelete.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLLiteral.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLBoolLiteral.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDefaultLiteral.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLTableConstraintAlgorithm.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLColumnConstraintAlgorithm.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLJoin.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLExpression.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLSelectExpression.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLCollation.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLForeignKeyAction.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLConnection.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDirection.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLFunction.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLColumnDefinition.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLCreateTableBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDropTableBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLAlterTableBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLPredicateBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLUpdateBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDeleteBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLColumnBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLPredicateGroupBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLSelectBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLInsertBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLRawBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLCreateIndexBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLQueryBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLQueryEncoder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLQueryFetcher.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLIndexModifier.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLIdentifier.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLTableIdentifier.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLColumnIdentifier.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLError.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLBinaryOperator.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/Exports.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLSelect.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDistinct.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLFunctionArgument.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLTableConstraint.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLColumnConstraint.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLInsert.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLCreateIndex.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDropIndex.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLGroupBy.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLOrderBy.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLForeignKey.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLPrimaryKey.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLQuery.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/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/nice/HelloWord/.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/nice/HelloWord/.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/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/cpp_magic.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIODarwin/include/c_nio_darwin.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/c-atomics.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOLinux/include/c_nio_linux.h /Users/nice/HelloWord/.build/checkouts/swift-nio-zlib-support.git--6556802241718767980/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/SQL.build/SQLColumnIdentifier~partial.swiftmodule : /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLBind.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLJoinMethod.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLTable.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLCreateTable.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDropTable.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLAlterTable.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLSerializable.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDataType.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLUpdate.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDelete.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLLiteral.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLBoolLiteral.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDefaultLiteral.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLTableConstraintAlgorithm.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLColumnConstraintAlgorithm.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLJoin.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLExpression.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLSelectExpression.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLCollation.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLForeignKeyAction.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLConnection.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDirection.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLFunction.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLColumnDefinition.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLCreateTableBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDropTableBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLAlterTableBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLPredicateBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLUpdateBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDeleteBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLColumnBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLPredicateGroupBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLSelectBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLInsertBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLRawBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLCreateIndexBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLQueryBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLQueryEncoder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLQueryFetcher.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLIndexModifier.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLIdentifier.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLTableIdentifier.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLColumnIdentifier.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLError.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLBinaryOperator.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/Exports.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLSelect.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDistinct.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLFunctionArgument.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLTableConstraint.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLColumnConstraint.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLInsert.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLCreateIndex.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDropIndex.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLGroupBy.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLOrderBy.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLForeignKey.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLPrimaryKey.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLQuery.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/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/nice/HelloWord/.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/nice/HelloWord/.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/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/cpp_magic.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIODarwin/include/c_nio_darwin.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/c-atomics.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOLinux/include/c_nio_linux.h /Users/nice/HelloWord/.build/checkouts/swift-nio-zlib-support.git--6556802241718767980/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/SQL.build/SQLColumnIdentifier~partial.swiftdoc : /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLBind.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLJoinMethod.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLTable.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLCreateTable.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDropTable.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLAlterTable.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLSerializable.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDataType.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLUpdate.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDelete.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLLiteral.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLBoolLiteral.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDefaultLiteral.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLTableConstraintAlgorithm.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLColumnConstraintAlgorithm.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLJoin.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLExpression.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLSelectExpression.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLCollation.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLForeignKeyAction.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLConnection.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDirection.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLFunction.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLColumnDefinition.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLCreateTableBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDropTableBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLAlterTableBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLPredicateBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLUpdateBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDeleteBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLColumnBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLPredicateGroupBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLSelectBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLInsertBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLRawBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLCreateIndexBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLQueryBuilder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLQueryEncoder.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLQueryFetcher.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLIndexModifier.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLIdentifier.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLTableIdentifier.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLColumnIdentifier.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLError.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLBinaryOperator.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/Exports.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLSelect.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDistinct.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLFunctionArgument.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLTableConstraint.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLColumnConstraint.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLInsert.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLCreateIndex.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLDropIndex.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLGroupBy.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLOrderBy.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLForeignKey.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLPrimaryKey.swift /Users/nice/HelloWord/.build/checkouts/sql.git-3312412671859601518/Sources/SQL/SQLQuery.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/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/nice/HelloWord/.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/nice/HelloWord/.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/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/cpp_magic.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIODarwin/include/c_nio_darwin.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/c-atomics.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOLinux/include/c_nio_linux.h /Users/nice/HelloWord/.build/checkouts/swift-nio-zlib-support.git--6556802241718767980/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
| D |
/Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/TurnstileWeb.build/Facebook.swift.o : /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Turnstile-1.0.3/Sources/TurnstileWeb/AuthorizationCode.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Turnstile-1.0.3/Sources/TurnstileWeb/Facebook.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Turnstile-1.0.3/Sources/TurnstileWeb/Google.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Turnstile-1.0.3/Sources/TurnstileWeb/OAuth2.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Turnstile-1.0.3/Sources/TurnstileWeb/OAuth2Error.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Turnstile-1.0.3/Sources/TurnstileWeb/OAuth2Token.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Turnstile-1.0.3/Sources/TurnstileWeb/URLSession+Turnstile.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Turnstile-1.0.3/Sources/TurnstileWeb/WebMemoryRealm.swift /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/SwiftOnoneSupport.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Turnstile.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/CLibreSSL.build/module.modulemap /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/Dispatch.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/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/TurnstileCrypto.swiftmodule
/Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/TurnstileWeb.build/Facebook~partial.swiftmodule : /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Turnstile-1.0.3/Sources/TurnstileWeb/AuthorizationCode.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Turnstile-1.0.3/Sources/TurnstileWeb/Facebook.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Turnstile-1.0.3/Sources/TurnstileWeb/Google.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Turnstile-1.0.3/Sources/TurnstileWeb/OAuth2.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Turnstile-1.0.3/Sources/TurnstileWeb/OAuth2Error.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Turnstile-1.0.3/Sources/TurnstileWeb/OAuth2Token.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Turnstile-1.0.3/Sources/TurnstileWeb/URLSession+Turnstile.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Turnstile-1.0.3/Sources/TurnstileWeb/WebMemoryRealm.swift /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/SwiftOnoneSupport.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Turnstile.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/CLibreSSL.build/module.modulemap /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/Dispatch.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/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/TurnstileCrypto.swiftmodule
/Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/TurnstileWeb.build/Facebook~partial.swiftdoc : /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Turnstile-1.0.3/Sources/TurnstileWeb/AuthorizationCode.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Turnstile-1.0.3/Sources/TurnstileWeb/Facebook.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Turnstile-1.0.3/Sources/TurnstileWeb/Google.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Turnstile-1.0.3/Sources/TurnstileWeb/OAuth2.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Turnstile-1.0.3/Sources/TurnstileWeb/OAuth2Error.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Turnstile-1.0.3/Sources/TurnstileWeb/OAuth2Token.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Turnstile-1.0.3/Sources/TurnstileWeb/URLSession+Turnstile.swift /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/Packages/Turnstile-1.0.3/Sources/TurnstileWeb/WebMemoryRealm.swift /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/SwiftOnoneSupport.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/Turnstile.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/CLibreSSL.build/module.modulemap /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/Dispatch.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/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/tipaul/Sites/PlatypusAgency/XebiaFormation/bot/.build/debug/TurnstileCrypto.swiftmodule
| D |
/Users/liujianhao/code/rust/simple_web_app/simple_web_app/target/rls/debug/deps/rand_isaac-31094742ad61751d.rmeta: /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand_isaac-0.1.1/src/lib.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand_isaac-0.1.1/src/isaac.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand_isaac-0.1.1/src/isaac64.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand_isaac-0.1.1/src/isaac_array.rs
/Users/liujianhao/code/rust/simple_web_app/simple_web_app/target/rls/debug/deps/rand_isaac-31094742ad61751d.d: /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand_isaac-0.1.1/src/lib.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand_isaac-0.1.1/src/isaac.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand_isaac-0.1.1/src/isaac64.rs /Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand_isaac-0.1.1/src/isaac_array.rs
/Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand_isaac-0.1.1/src/lib.rs:
/Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand_isaac-0.1.1/src/isaac.rs:
/Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand_isaac-0.1.1/src/isaac64.rs:
/Users/liujianhao/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/rand_isaac-0.1.1/src/isaac_array.rs:
| D |
/*
* This file generated automatically from xc_misc.xml by c-client.xsl using XSLT.
* Edit at your peril.
*/
/**
* @defgroup XCB_XCMisc_API XCB XCMisc API
* @brief XCMisc XCB Protocol Implementation.
* @{
**/
module std.c.linux.X11.xcb.xc_misc;
version(USE_XCB):
import std.c.linux.X11.xcb.xcb;
const int XCB_XCMISC_MAJOR_VERSION =1;
const int XCB_XCMISC_MINOR_VERSION =1;
extern(C) extern xcb_extension_t xcb_xc_misc_id;
/**
* @brief xcb_xc_misc_get_version_cookie_t
**/
struct xcb_xc_misc_get_version_cookie_t {
uint sequence; /**< */
} ;
/** Opcode for xcb_xc_misc_get_version. */
const uint XCB_XC_MISC_GET_VERSION = 0;
/**
* @brief xcb_xc_misc_get_version_request_t
**/
struct xcb_xc_misc_get_version_request_t {
ubyte major_opcode; /**< */
ubyte minor_opcode; /**< */
ushort length; /**< */
ushort client_major_version; /**< */
ushort client_minor_version; /**< */
} ;
/**
* @brief xcb_xc_misc_get_version_reply_t
**/
struct xcb_xc_misc_get_version_reply_t {
ubyte response_type; /**< */
ubyte pad0; /**< */
ushort sequence; /**< */
uint length; /**< */
ushort server_major_version; /**< */
ushort server_minor_version; /**< */
} ;
/**
* @brief xcb_xc_misc_get_xid_range_cookie_t
**/
struct xcb_xc_misc_get_xid_range_cookie_t {
uint sequence; /**< */
} ;
/** Opcode for xcb_xc_misc_get_xid_range. */
const uint XCB_XC_MISC_GET_XID_RANGE = 1;
/**
* @brief xcb_xc_misc_get_xid_range_request_t
**/
struct xcb_xc_misc_get_xid_range_request_t {
ubyte major_opcode; /**< */
ubyte minor_opcode; /**< */
ushort length; /**< */
} ;
/**
* @brief xcb_xc_misc_get_xid_range_reply_t
**/
struct xcb_xc_misc_get_xid_range_reply_t {
ubyte response_type; /**< */
ubyte pad0; /**< */
ushort sequence; /**< */
uint length; /**< */
uint start_id; /**< */
uint count; /**< */
} ;
/**
* @brief xcb_xc_misc_get_xid_list_cookie_t
**/
struct xcb_xc_misc_get_xid_list_cookie_t {
uint sequence; /**< */
} ;
/** Opcode for xcb_xc_misc_get_xid_list. */
const uint XCB_XC_MISC_GET_XID_LIST = 2;
/**
* @brief xcb_xc_misc_get_xid_list_request_t
**/
struct xcb_xc_misc_get_xid_list_request_t {
ubyte major_opcode; /**< */
ubyte minor_opcode; /**< */
ushort length; /**< */
uint count; /**< */
} ;
/**
* @brief xcb_xc_misc_get_xid_list_reply_t
**/
struct xcb_xc_misc_get_xid_list_reply_t {
ubyte response_type; /**< */
ubyte pad0; /**< */
ushort sequence; /**< */
uint length; /**< */
uint ids_len; /**< */
ubyte pad1[20]; /**< */
} ;
/*****************************************************************************
**
** xcb_xc_misc_get_version_cookie_t xcb_xc_misc_get_version
**
** @param xcb_connection_t *c
** @param ushort client_major_version
** @param ushort client_minor_version
** @returns xcb_xc_misc_get_version_cookie_t
**
*****************************************************************************/
extern(C) xcb_xc_misc_get_version_cookie_t
xcb_xc_misc_get_version (xcb_connection_t *c /**< */,
ushort client_major_version /**< */,
ushort client_minor_version /**< */);
/*****************************************************************************
**
** xcb_xc_misc_get_version_cookie_t xcb_xc_misc_get_version_unchecked
**
** @param xcb_connection_t *c
** @param ushort client_major_version
** @param ushort client_minor_version
** @returns xcb_xc_misc_get_version_cookie_t
**
*****************************************************************************/
extern(C) xcb_xc_misc_get_version_cookie_t
xcb_xc_misc_get_version_unchecked (xcb_connection_t *c /**< */,
ushort client_major_version /**< */,
ushort client_minor_version /**< */);
/*****************************************************************************
**
** xcb_xc_misc_get_version_reply_t * xcb_xc_misc_get_version_reply
**
** @param xcb_connection_t *c
** @param xcb_xc_misc_get_version_cookie_t cookie
** @param xcb_generic_error_t **e
** @returns xcb_xc_misc_get_version_reply_t *
**
*****************************************************************************/
extern(C) xcb_xc_misc_get_version_reply_t *
xcb_xc_misc_get_version_reply (xcb_connection_t *c /**< */,
xcb_xc_misc_get_version_cookie_t cookie /**< */,
xcb_generic_error_t **e /**< */);
/*****************************************************************************
**
** xcb_xc_misc_get_xid_range_cookie_t xcb_xc_misc_get_xid_range
**
** @param xcb_connection_t *c
** @returns xcb_xc_misc_get_xid_range_cookie_t
**
*****************************************************************************/
extern(C) xcb_xc_misc_get_xid_range_cookie_t
xcb_xc_misc_get_xid_range (xcb_connection_t *c /**< */);
/*****************************************************************************
**
** xcb_xc_misc_get_xid_range_cookie_t xcb_xc_misc_get_xid_range_unchecked
**
** @param xcb_connection_t *c
** @returns xcb_xc_misc_get_xid_range_cookie_t
**
*****************************************************************************/
extern(C) xcb_xc_misc_get_xid_range_cookie_t
xcb_xc_misc_get_xid_range_unchecked (xcb_connection_t *c /**< */);
/*****************************************************************************
**
** xcb_xc_misc_get_xid_range_reply_t * xcb_xc_misc_get_xid_range_reply
**
** @param xcb_connection_t *c
** @param xcb_xc_misc_get_xid_range_cookie_t cookie
** @param xcb_generic_error_t **e
** @returns xcb_xc_misc_get_xid_range_reply_t *
**
*****************************************************************************/
extern(C) xcb_xc_misc_get_xid_range_reply_t *
xcb_xc_misc_get_xid_range_reply (xcb_connection_t *c /**< */,
xcb_xc_misc_get_xid_range_cookie_t cookie /**< */,
xcb_generic_error_t **e /**< */);
/*****************************************************************************
**
** xcb_xc_misc_get_xid_list_cookie_t xcb_xc_misc_get_xid_list
**
** @param xcb_connection_t *c
** @param uint count
** @returns xcb_xc_misc_get_xid_list_cookie_t
**
*****************************************************************************/
extern(C) xcb_xc_misc_get_xid_list_cookie_t
xcb_xc_misc_get_xid_list (xcb_connection_t *c /**< */,
uint count /**< */);
/*****************************************************************************
**
** xcb_xc_misc_get_xid_list_cookie_t xcb_xc_misc_get_xid_list_unchecked
**
** @param xcb_connection_t *c
** @param uint count
** @returns xcb_xc_misc_get_xid_list_cookie_t
**
*****************************************************************************/
extern(C) xcb_xc_misc_get_xid_list_cookie_t
xcb_xc_misc_get_xid_list_unchecked (xcb_connection_t *c /**< */,
uint count /**< */);
/*****************************************************************************
**
** uint * xcb_xc_misc_get_xid_list_ids
**
** @param /+const+/ xcb_xc_misc_get_xid_list_reply_t *R
** @returns uint *
**
*****************************************************************************/
extern(C) uint *
xcb_xc_misc_get_xid_list_ids (/+const+/ xcb_xc_misc_get_xid_list_reply_t *R /**< */);
/*****************************************************************************
**
** int xcb_xc_misc_get_xid_list_ids_length
**
** @param /+const+/ xcb_xc_misc_get_xid_list_reply_t *R
** @returns int
**
*****************************************************************************/
extern(C) int
xcb_xc_misc_get_xid_list_ids_length (/+const+/ xcb_xc_misc_get_xid_list_reply_t *R /**< */);
/*****************************************************************************
**
** xcb_generic_iterator_t xcb_xc_misc_get_xid_list_ids_end
**
** @param /+const+/ xcb_xc_misc_get_xid_list_reply_t *R
** @returns xcb_generic_iterator_t
**
*****************************************************************************/
extern(C) xcb_generic_iterator_t
xcb_xc_misc_get_xid_list_ids_end (/+const+/ xcb_xc_misc_get_xid_list_reply_t *R /**< */);
/*****************************************************************************
**
** xcb_xc_misc_get_xid_list_reply_t * xcb_xc_misc_get_xid_list_reply
**
** @param xcb_connection_t *c
** @param xcb_xc_misc_get_xid_list_cookie_t cookie
** @param xcb_generic_error_t **e
** @returns xcb_xc_misc_get_xid_list_reply_t *
**
*****************************************************************************/
extern(C) xcb_xc_misc_get_xid_list_reply_t *
xcb_xc_misc_get_xid_list_reply (xcb_connection_t *c /**< */,
xcb_xc_misc_get_xid_list_cookie_t cookie /**< */,
xcb_generic_error_t **e /**< */);
/**
* @}
*/
| D |
// https://issues.dlang.org/show_bug.cgi?id=21479
enum Side
{
left,
right
}
struct Both(T)
{
T left;
T right;
ref T get(Side side)
{
return side == Side.left ? left : right;
}
}
void main()
{
Both!(int[]) t;
t.get(Side.left) ~= 1;
assert (t.left.length == 1);
t.get(Side.right) ~= 1;
t.get(Side.right) ~= 2;
assert (t.right.length == 2);
}
| D |
module deimos.cef3.trace;
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the name Chromium Embedded
// Framework nor the names of its contributors may be used to endorse
// or promote products derived from this software without specific prior
// written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// ---------------------------------------------------------------------------
//
// This file was generated by the CEF translator tool and should not edited
// by hand. See the translator.README.txt file in the tools directory for
// more information.
//
extern(C) {
import deimos.cef3.base;
import deimos.cef3.callback;
///
// Implement this structure to receive notification when tracing has completed.
// The functions of this structure will be called on the browser process UI
// thread.
///
struct _cef_end_tracing_callback_t
{
///
// Base structure.
///
cef_base_t base;
///
// Called after all processes have sent their trace data. |tracing_file| is
// the path at which tracing data was written. The client is responsible for
// deleting |tracing_file|.
///
extern(System) void function( cef_end_tracing_callback_t* self,
cef_string_t* tracing_file) on_end_tracing_complete;
}
///
// Start tracing events on all processes. Tracing is initialized asynchronously
// and |callback| will be executed on the UI thread after initialization is
// complete.
//
// If CefBeginTracing was called previously, or if a CefEndTracingAsync call is
// pending, CefBeginTracing will fail and return false (0).
//
// |categories| is a comma-delimited list of category wildcards. A category can
// have an optional '-' prefix to make it an excluded category. Having both
// included and excluded categories in the same list is not supported.
//
// Example: "test_MyTest*" Example: "test_MyTest*,test_OtherStuff" Example:
// "-excluded_category1,-excluded_category2"
//
// This function must be called on the browser process UI thread.
///
int cef_begin_tracing(const(cef_string_t)* categories, cef_completion_callback_t* callback);
///
// Stop tracing events on all processes.
//
// This function will fail and return false (0) if a previous call to
// CefEndTracingAsync is already pending or if CefBeginTracing was not called.
//
// |tracing_file| is the path at which tracing data will be written and
// |callback| is the callback that will be executed once all processes have sent
// their trace data. If |tracing_file| is NULL a new temporary file path will be
// used. If |callback| is NULL no trace data will be written.
//
// This function must be called on the browser process UI thread.
///
int cef_end_tracing(const(cef_string_t)* tracing_file, cef_end_tracing_callback_t* callback);
///
// Returns the current system trace time or, if none is defined, the current
// high-res time. Can be used by clients to synchronize with the time
// information in trace events.
///
int64 cef_now_from_system_trace_time();
}
| D |
module gcalendar.models.calendarlistentry;
import std.json;
import std.datetime : SysTime;
import common.common;
import vibe.data.json : optional;
public struct CalendarListEntry {
/** The notifications that the authenticated user is receiving for this calendar.*/
private static const string NOTIFICATIONSETTINGS = "notificationSettings";
public struct NotificationSettings {
/** The list of notifications set for this calendar.*/
private static const string NOTIFICATIONS = "notifications";
import gcalendar.models.calendarnotification;
CalendarNotification[] _notifications;
mixin(GetterSetter!("CalendarNotification[]", "NotificationSettings")(NOTIFICATIONS));
}
/** The default reminders that the authenticated user has for this calendar.*/
private static const string DEFAULTREMINDERS = "defaultReminders";
import gcalendar.models.eventreminder;
EventReminder[] _defaultReminders;
mixin(GetterSetter!("EventReminder[]", "CalendarListEntry")(DEFAULTREMINDERS));
/** Geographic location of the calendar as free-form text. Optional. Read-only.*/
private static const string LOCATION = "location";
@optional string _location;
mixin(GetterSetter!("string", "CalendarListEntry")(LOCATION));
/** Whether the calendar has been hidden from the list. Optional. The attribute is only returned when the calendar is hidden, in which case the value is true.*/
private static const string HIDDEN = "hidden";
@optional bool _hidden;
mixin(GetterSetter!("bool", "CalendarListEntry")(HIDDEN));
/** The color of the calendar. This is an ID referring to an entry in the calendar section of the colors definition (see the colors endpoint). This property is superseded by the backgroundColor and foregroundColor properties and can be ignored when using these properties. Optional.*/
private static const string COLORID = "colorId";
@optional string _colorId;
mixin(GetterSetter!("string", "CalendarListEntry")(COLORID));
/** The effective access role that the authenticated user has on the calendar. Read-only. Possible values are:
- "freeBusyReader" - Provides read access to free/busy information.
- "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
- "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
- "owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.*/
private static const string ACCESSROLE = "accessRole";
string _accessRole;
mixin(GetterSetter!("string", "CalendarListEntry")(ACCESSROLE));
/** Identifier of the calendar.*/
private static const string ID = "id";
string _id;
mixin(GetterSetter!("string", "CalendarListEntry")(ID));
/** Type of the resource ("calendar#calendarListEntry").*/
private static const string KIND = "kind";
string _kind;
mixin(GetterSetter!("string", "CalendarListEntry")(KIND));
/** The time zone of the calendar. Optional. Read-only.*/
private static const string TIMEZONE = "timeZone";
@optional string _timeZone;
mixin(GetterSetter!("string", "CalendarListEntry")(TIMEZONE));
/** Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False.*/
private static const string PRIMARY = "primary";
@optional bool _primary;
mixin(GetterSetter!("bool", "CalendarListEntry")(PRIMARY));
/** The summary that the authenticated user has set for this calendar. Optional.*/
private static const string SUMMARYOVERRIDE = "summaryOverride";
@optional string _summaryOverride;
mixin(GetterSetter!("string", "CalendarListEntry")(SUMMARYOVERRIDE));
/** The main color of the calendar in the hexadecimal format "#0088aa". This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional.*/
private static const string BACKGROUNDCOLOR = "backgroundColor";
@optional string _backgroundColor;
mixin(GetterSetter!("string", "CalendarListEntry")(BACKGROUNDCOLOR));
/** Conferencing properties for this calendar, for example what types of conferences are allowed.*/
private static const string CONFERENCEPROPERTIES = "conferenceProperties";
import gcalendar.models.conferenceproperties;
ConferenceProperties _conferenceProperties;
mixin(GetterSetter!("ConferenceProperties", "CalendarListEntry")(CONFERENCEPROPERTIES));
/** Whether the calendar content shows up in the calendar UI. Optional. The default is False.*/
private static const string SELECTED = "selected";
@optional bool _selected;
mixin(GetterSetter!("bool", "CalendarListEntry")(SELECTED));
/** The foreground color of the calendar in the hexadecimal format "#ffffff". This property supersedes the index-based colorId property. To set or change this property, you need to specify colorRgbFormat=true in the parameters of the insert, update and patch methods. Optional.*/
private static const string FOREGROUNDCOLOR = "foregroundColor";
@optional string _foregroundColor;
mixin(GetterSetter!("string", "CalendarListEntry")(FOREGROUNDCOLOR));
/** Description of the calendar. Optional. Read-only.*/
private static const string DESCRIPTION = "description";
@optional string _description;
mixin(GetterSetter!("string", "CalendarListEntry")(DESCRIPTION));
/** Whether this calendar list entry has been deleted from the calendar list. Read-only. Optional. The default is False.*/
private static const string DELETED = "deleted";
@optional bool _deleted;
mixin(GetterSetter!("bool", "CalendarListEntry")(DELETED));
/** Title of the calendar. Read-only.*/
private static const string SUMMARY = "summary";
string _summary;
mixin(GetterSetter!("string", "CalendarListEntry")(SUMMARY));
/** ETag of the resource.*/
private static const string ETAG = "etag";
string _etag;
mixin(GetterSetter!("string", "CalendarListEntry")(ETAG));
}
| D |
/***********************************\
ANIM8
\***********************************/
//========================================
// [intern] Variablen und Klassen
//========================================
class A8Head {
var int value;
var int fnc;
var int flt;
var int data;
var int dif;
var int ddif;
var int queue; //zCList<A8Command(h)>*
};
// const string A8Head_Struct = "auto|3 zCList*";
func void A8Head_Archiver(var A8Head this) {
PM_SaveInt("value", this.value);
if(this.fnc) { PM_SaveFuncPtr("loop", this.fnc); };
if(this.flt) { PM_SaveFloat ("float", this.flt); };
if(this.data){ PM_SaveInt ("data", this.data); };
if(this.dif) { PM_SaveInt ("dif", this.dif); };
if(this.ddif){ PM_SaveInt ("ddif", this.ddif); };
PM_SaveClassPtr("queue", this.queue, "zCList");
};
func void A8Head_UnArchiver(var A8Head this) {
this.value = PM_Load("value");
if(PM_Exists("loop")) { this.fnc = PM_LoadFuncPtr("loop"); };
if(PM_Exists("float")) { this.flt = PM_LoadFloat("float"); };
if(PM_Exists("data")) { this.data = PM_LoadInt("data"); };
if(PM_Exists("dif")) { this.dif = PM_LoadInt("dif"); };
if(PM_Exists("ddif")) { this.ddif = PM_LoadInt("ddif"); };
this.queue = PM_Load("queue");
};
func void A8Head_Delete(var A8Head h) {
if(!h.queue) { return; };
List_For(h.queue, "A8Head_DeleteSub");
List_Destroy(h.queue);
h.queue = 0;
};func void A8Head_DeleteSub(var int node) {
if(Hlp_IsValidHandle(MEM_ReadInt(node))) {
delete(MEM_ReadInt(node));
};
};
instance A8Head@(A8Head);
class A8Command {
var int target;
var int timeSpan;
var int startVal;
var int startTime;
var int velo;
var int startV;
var int interpol;
};
instance A8Command@(A8Command);
//========================================
// Neues Objekt erstellen
//========================================
func int Anim8_New(var int value, var int IsFloat) {
var int hndl; hndl = new(A8Head@);
var A8Head h; h = get(hndl);
if(!IsFloat) {
h.value = mkf(value);
}
else {
h.value = value;
};
h.flt = !!IsFloat;
return hndl;
};
//========================================
// Neues Objekt mit Handler erstellen
//========================================
func int Anim8_NewExt(var int value, var func handler, var int data, var int IsFloat) {
var int hndl; hndl = Anim8_New(value, IsFloat);
var A8Head h; h = get(hndl);
h.fnc = MEM_GetFuncPtr(handler);
h.data = data;
return hndl;
};
//========================================
// Objekt komplett löschen
//========================================
func void Anim8_Delete(var int hndl) {
if(!Hlp_IsValidHandle(hndl)) {
MEM_Warn("A8_Delete: Invalid handle");
return;
};
delete(hndl);
};
//========================================
// [intern] Beschleunigung berechnen
//========================================
func void _Anim8_SetVelo(var A8Head h, var A8Command c) {
if(c.interpol == A8_Wait) { return; };
if(c.interpol == A8_Constant) {
// v = s/t;
c.velo = divf(subf(c.target, h.value), c.timeSpan);
}
else {
//a = 2*s/t^2
c.velo = divf(mulf(mkf(2), subf(c.target, h.value)), mulf(c.timeSpan, c.timeSpan));
if(c.interpol == A8_SlowEnd) {
c.startV = mulf(c.velo, c.timeSpan);
c.velo = negf(c.velo);
};
};
};
//========================================
// [intern] Neuer Befehl
//========================================
func void _Anim8_Ext(var int hndl, var int targetVal, var int timeSpan, var int interpol, var int UseQueue) {
var A8Head h; h = get(hndl);
if(!UseQueue) {
A8Head_Delete(h);
};
if(!h.queue) {
h.queue = List_Create(0);
};
var int cmd; cmd = new(A8Command@);
var A8Command c; c = get(cmd);
c.target = targetVal;
if(!h.flt) {
c.target = mkf(c.target);
};
if(h.value == c.target) { interpol = A8_Wait; };
c.startVal = h.value;
c.startTime = Timer();
c.timeSpan = mkf(timeSpan);
c.interpol = interpol;
_Anim8_SetVelo(h, c);
List_Add(h.queue, cmd);
};
//========================================
// [intern] FF-Loop
//========================================
func void _Anim8_FFLoop() {
MEM_PushIntParam(A8Head@);
MEM_GetFuncID(_Anim8_Loop);
MEM_StackPos.position = foreachHndl_ptr;
};
func int _Anim8_Loop(var int hndl) {
var A8Head h; h = get(hndl);
if(!h.queue) {
return rContinue;
};
if(h.queue < 1048576) {
var int s; s = SB_New();
SB ("A8 sucks. Handle ");
SBi(hndl);
SB (" of instance ");
SB (_PM_InstName(getInst(hndl)));
SB (" messed up with a queue of ");
SBi(h.queue);
SB (". I will ignore it.");
SB (STR_Unescape("\n"));
SB ("The pointer was ");
SBi(getPtr(hndl));
SB ("...");
MEM_Warn(SB_ToString());
SB_Destroy();
return rContinue;
};
if(!List_HasLength(h.queue, 2)) {
return rContinue;
};
var int ldata; ldata = List_Get(h.queue, 2);
if(!ldata) {
List_Delete(h.queue, 2);
return rContinue;
};
var A8Command c; c = get(ldata);
// Eigentliche Interpolierung
var int t; t = mkf(Timer() - c.startTime);
if(c.interpol&&c.interpol < A8_Wait) {
if(c.interpol == A8_Constant) {
// s = v*t;
h.value = mulf(c.velo, t);
}
else if(c.interpol == A8_SlowEnd) {
// s = a/2*t^2 + v0*t
h.value = addf(mulf(mulf(c.velo, floatHalb), mulf(t, t)), mulf(c.startV, t));
}
else if(c.interpol == A8_SlowStart) {
// s = a/2*t^2
h.value = mulf(mulf(c.velo, floatHalb), mulf(t, t));
};
h.value = addf(c.startVal, h.value);
};
if(gef(t, c.timeSpan)) {
if(c.interpol != A8_Wait) {
h.value = c.target;
};
};
if(h.fnc) {
if(h.data) {
h.data;
};
if(h.flt) {
h.value;
}
else {
roundf(h.value);
};
MEM_CallByPtr(h.fnc);
};
if(gef(t, c.timeSpan)) {
delete(ldata);
List_Delete(h.queue, 2);
// ggf. Liste aktualisieren
if(List_HasLength(h.queue, 2)) {
ldata = List_Get(h.queue, 2);
if(!ldata) {
List_Delete(h.queue, 2);
return rContinue;
};
c = get(ldata);
c.startVal = h.value;
c.startTime = Timer();
_Anim8_SetVelo(h, c);
}
else if(h.dif) {
if(h.ddif) {
if(h.data) {
delete(h.data);
};
};
delete(hndl);
};
};
};
//========================================
// Wert eines Objektes holen
//========================================
func int Anim8_Get(var int hndl) {
if(!Hlp_IsValidHandle(hndl)) {
return 0;
};
var A8Head h; h = get(hndl);
if(h.flt) {
return h.value;
};
return roundf(h.value);
};
//========================================
// Wert eines Objektes setzen
//========================================
func void Anim8_Set(var int hndl, var int v) {
if(!Hlp_IsValidHandle(hndl)) {
return;
};
var A8Head h; h = get(hndl);
h.value = v;
};
//========================================
// Objekt zerstören wenn es leer ist?
//========================================
func void Anim8_RemoveIfEmpty(var int hndl, var int on) {
if(!Hlp_IsValidHandle(hndl)) {
return;
};
var A8Head h; h = get(hndl);
h.dif = !!on;
};
//========================================
// Objektdata zerstören wenn es leer ist?
//========================================
func void Anim8_RemoveDataIfEmpty(var int hndl, var int on) {
if(!Hlp_IsValidHandle(hndl)) {
return;
};
var A8Head h; h = get(hndl);
h.ddif = !!on;
};
//========================================
// Ist das Objekt leer?
//========================================
func int Anim8_Empty(var int hndl) {
if(!Hlp_IsValidHandle(hndl)) {
return 1;
};
var A8Head h; h = get(hndl);
if(!h.queue) { return 1; };
return List_HasLength(h.queue, 2);
};
//========================================
// Neuer Befehl
//========================================
func void Anim8(var int hndl, var int target, var int span, var int interpol) {
_Anim8_Ext(hndl, target, span + (!span), interpol, 0);
};
//========================================
// Neuen Befehl anhängen
//========================================
func void Anim8q(var int hndl, var int target, var int span, var int interpol) {
_Anim8_Ext(hndl, target, span + (!span), interpol, 1);
};
| D |
module tests.code_command;
import reggae;
import unit_threaded;
int gCounter;
string[] gInputs;
string[] gOutputs;
private void incr(in string[] inputs, in string[] outputs) {
gInputs = inputs.dup;
gOutputs = outputs.dup;
gCounter++;
}
void testSimpleCommand() {
gCounter = 0;
const tgt = Target("no output", &incr, Target("no input"));
tgt.execute();
gCounter.shouldEqual(1);
gInputs.shouldEqual(["no input"]);
gOutputs.shouldEqual(["no output"]);
}
void testRemoveBuildDir() {
gCounter = 0;
const cmd = Command(&incr).expandVariables;
cmd.execute("", Language.unknown, [], []);
gCounter.shouldEqual(1);
}
| D |
<?xml version="1.0" encoding="ASCII" standalone="no"?>
<di:SashWindowsMngr xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmi:version="2.0">
<pageList>
<availablePage>
<emfPageIdentifier href="VAR_27_agm-6733965185.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</availablePage>
</pageList>
<sashModel currentSelection="//@sashModel/@windows.0/@children.0">
<windows>
<children xsi:type="di:TabFolder">
<children>
<emfPageIdentifier href="VAR_27_agm-6733965185.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</children>
</children>
</windows>
</sashModel>
</di:SashWindowsMngr>
| D |
// Written in the D programming language.
/**
This module contains implementation of Win32 fonts support
Part of Win32 platform support.
Usually you don't need to use this module directly.
Synopsis:
----
import dlangui.platforms.windows.win32fonts;
----
Copyright: Vadim Lopatin, 2014
License: Boost License 1.0
Authors: Vadim Lopatin, [email protected]
*/
module dlangui.platforms.windows.win32fonts;
version(Windows):
public import dlangui.core.config;
static if (BACKEND_GUI):
import core.sys.windows.windows;
import dlangui.graphics.fonts;
import dlangui.platforms.windows.win32drawbuf;
import std.string;
import std.utf;
/// define debug=FontResources for logging of font file resources creation/freeing
//debug = FontResources;
//auto toUTF16z(S)(S s)
//{
//return toUTFz!(const(wchar)*)(s);
//}
private struct FontDef {
immutable FontFamily _family;
immutable string _face;
immutable ubyte _pitchAndFamily;
@property FontFamily family() { return _family; }
@property string face() { return _face; }
@property ubyte pitchAndFamily() { return _pitchAndFamily; }
this(FontFamily family, string face, ubyte putchAndFamily) {
_family = family;
_face = face;
_pitchAndFamily = pitchAndFamily;
}
}
// support of subpixel rendering
// from AntigrainGeometry https://rsdn.ru/forum/src/830679.1
import std.math;
// Sub-pixel energy distribution lookup table.
// See description by Steve Gibson: http://grc.com/cttech.htm
// The class automatically normalizes the coefficients
// in such a way that primary + 2*secondary + 3*tertiary = 1.0
// Also, the input values are in range of 0...NumLevels, output ones
// are 0...255
//---------------------------------
struct lcd_distribution_lut(int maxv = 65)
{
this(double prim, double second, double tert)
{
double norm = (255.0 / (maxv - 1)) / (prim + second*2 + tert*2);
prim *= norm;
second *= norm;
tert *= norm;
for(int i = 0; i < maxv; i++)
{
m_primary[i] = cast(ubyte)floor(prim * i);
m_secondary[i] = cast(ubyte)floor(second * i);
m_tertiary[i] = cast(ubyte)floor(tert * i);
}
}
uint primary(int v) const {
if (v >= maxv) {
Log.e("pixel value returned from font engine > 64: ", v);
v = maxv - 1;
}
return m_primary[v];
}
uint secondary(int v) const {
if (v >= maxv) {
Log.e("pixel value returned from font engine > 64: ", v);
v = maxv - 1;
}
return m_secondary[v];
}
uint tertiary(int v) const {
if (v >= maxv) {
Log.e("pixel value returned from font engine > 64: ", v);
v = maxv - 1;
}
return m_tertiary[v];
}
private:
ubyte[maxv] m_primary;
ubyte[maxv] m_secondary;
ubyte[maxv] m_tertiary;
};
private __gshared lcd_distribution_lut!65 lut;
void initWin32FontsTables() {
lut = lcd_distribution_lut!65(0.5, 0.25, 0.125);
}
private int myabs(int n) {
return n < 0 ? -n : n;
}
private int colorStat(ubyte * p) {
int avg = (cast(int)p[0] + cast(int)p[1] + cast(int)p[2]) / 3;
return myabs(avg - cast(int)p[0]) + myabs(avg - cast(int)p[1]) + myabs(avg - cast(int)p[2]);
}
private int minIndex(int n0, int n1, int n2) {
if (n0 <= n1 && n0 <= n2)
return 0;
if (n1 <= n0 && n1 <= n2)
return 1;
return n2;
}
// This function prepares the alpha-channel information
// for the glyph averaging the values in accordance with
// the method suggested by Steve Gibson. The function
// extends the width by 4 extra pixels, 2 at the beginning
// and 2 at the end. Also, it doesn't align the new width
// to 4 bytes, that is, the output gm.gmBlackBoxX is the
// actual width of the array.
// returns dst glyph width
//---------------------------------
ushort prepare_lcd_glyph(ubyte * gbuf1,
ref GLYPHMETRICS gm,
ref ubyte[] gbuf2,
ref int shiftedBy)
{
shiftedBy = 0;
uint src_stride = (gm.gmBlackBoxX + 3) / 4 * 4;
uint dst_width = src_stride + 4;
gbuf2 = new ubyte[dst_width * gm.gmBlackBoxY];
for(uint y = 0; y < gm.gmBlackBoxY; ++y)
{
ubyte * src_ptr = gbuf1 + src_stride * y;
ubyte * dst_ptr = gbuf2.ptr + dst_width * y;
for(uint x = 0; x < gm.gmBlackBoxX; ++x)
{
uint v = *src_ptr++;
dst_ptr[0] += lut.tertiary(v);
dst_ptr[1] += lut.secondary(v);
dst_ptr[2] += lut.primary(v);
dst_ptr[3] += lut.secondary(v);
dst_ptr[4] += lut.tertiary(v);
++dst_ptr;
}
}
/*
int dx = (dst_width - 2) / 3;
int stats[3] = [0, 0, 0];
for (uint y = 0; y < gm.gmBlackBoxY; y++) {
for(uint x = 0; x < dx; ++x)
{
for (uint x0 = 0; x0 < 3; x0++) {
stats[x0] += colorStat(gbuf2.ptr + dst_width * y + x0);
}
}
}
shiftedBy = 0; //minIndex(stats[0], stats[1], stats[2]);
if (shiftedBy) {
for (uint y = 0; y < gm.gmBlackBoxY; y++) {
ubyte * dst_ptr = gbuf2.ptr + dst_width * y;
for(uint x = 0; x < gm.gmBlackBoxX; ++x)
{
if (x + shiftedBy < gm.gmBlackBoxX)
dst_ptr[x] = dst_ptr[x + shiftedBy];
else
dst_ptr[x] = 0;
}
}
}
*/
return cast(ushort) dst_width;
}
/**
* Font implementation based on Win32 API system fonts.
*/
class Win32Font : Font {
protected HFONT _hfont;
protected int _dpi;
protected int _size;
protected int _height;
protected int _weight;
protected int _baseline;
protected bool _italic;
protected string _face;
protected FontFamily _family;
protected LOGFONTA _logfont;
protected Win32ColorDrawBuf _drawbuf;
protected GlyphCache _glyphCache;
/// need to call create() after construction to initialize font
this() {
}
/// do cleanup
~this() {
clear();
}
/// cleanup resources
override void clear() {
if (_hfont !is null)
{
DeleteObject(_hfont);
_hfont = NULL;
_height = 0;
_baseline = 0;
_size = 0;
}
if (_drawbuf !is null) {
destroy(_drawbuf);
_drawbuf = null;
}
}
uint getGlyphIndex(dchar code)
{
if (_drawbuf is null)
return 0;
wchar[2] s;
wchar[2] g;
s[0] = cast(wchar)code;
s[1] = 0;
g[0] = 0;
GCP_RESULTSW gcp;
gcp.lStructSize = GCP_RESULTSW.sizeof;
gcp.lpOutString = null;
gcp.lpOrder = null;
gcp.lpDx = null;
gcp.lpCaretPos = null;
gcp.lpClass = null;
gcp.lpGlyphs = g.ptr;
gcp.nGlyphs = 2;
gcp.nMaxFit = 2;
DWORD res = GetCharacterPlacementW(
_drawbuf.dc, s.ptr, 1,
1000,
&gcp,
0
);
if (!res)
return 0;
return g[0];
}
override Glyph * getCharGlyph(dchar ch, bool withImage = true) {
Glyph * found = _glyphCache.find(ch);
if (found !is null)
return found;
uint glyphIndex = getGlyphIndex(ch);
if (!glyphIndex)
return null;
if (glyphIndex >= 0xFFFF)
return null;
GLYPHMETRICS metrics;
bool needSubpixelRendering = FontManager.subpixelRenderingMode && antialiased;
MAT2 scaleMatrix = { {0,1}, {0,0}, {0,0}, {0,1} };
uint res;
res = GetGlyphOutlineW( _drawbuf.dc, cast(wchar)ch,
GGO_METRICS,
&metrics,
0,
null,
&scaleMatrix );
if (res == GDI_ERROR)
return null;
Glyph * g = new Glyph;
static if (ENABLE_OPENGL) {
g.id = nextGlyphId();
}
//g.blackBoxX = cast(ushort)metrics.gmBlackBoxX;
//g.blackBoxY = cast(ubyte)metrics.gmBlackBoxY;
//g.originX = cast(byte)metrics.gmptGlyphOrigin.x;
//g.originY = cast(byte)metrics.gmptGlyphOrigin.y;
//g.width = cast(ubyte)metrics.gmCellIncX;
g.subpixelMode = SubpixelRenderingMode.None;
if (needSubpixelRendering) {
scaleMatrix.eM11.value = 3; // request glyph 3 times wider for subpixel antialiasing
}
int gs = 0;
// calculate bitmap size
if (antialiased) {
gs = GetGlyphOutlineW( _drawbuf.dc, cast(wchar)ch,
GGO_GRAY8_BITMAP,
&metrics,
0,
NULL,
&scaleMatrix );
} else {
gs = GetGlyphOutlineW( _drawbuf.dc, cast(wchar)ch,
GGO_BITMAP,
&metrics,
0,
NULL,
&scaleMatrix );
}
if (gs >= 0x10000 || gs < 0)
return null;
if (needSubpixelRendering) {
//Log.d("ch=", ch);
//Log.d("NORMAL: blackBoxX=", g.blackBoxX, " \tblackBoxY=", g.blackBoxY, " \torigin.x=", g.originX, " \torigin.y=", g.originY, "\tgmCellIncX=", g.width);
g.blackBoxX = cast(ushort)metrics.gmBlackBoxX;
g.blackBoxY = cast(ubyte)metrics.gmBlackBoxY;
g.originX = cast(byte)((metrics.gmptGlyphOrigin.x + 0) / 3);
g.originY = cast(byte)metrics.gmptGlyphOrigin.y;
g.width = cast(ubyte)((metrics.gmCellIncX + 2) / 3);
g.subpixelMode = FontManager.subpixelRenderingMode;
//Log.d(" *3 : blackBoxX=", metrics.gmBlackBoxX, " \tblackBoxY=", metrics.gmBlackBoxY, " \torigin.x=", metrics.gmptGlyphOrigin.x, " \torigin.y=", metrics.gmptGlyphOrigin.y, " \tgmCellIncX=", metrics.gmCellIncX);
//Log.d(" /3 : blackBoxX=", g.blackBoxX, " \tblackBoxY=", g.blackBoxY, " \torigin.x=", g.originX, " \torigin.y=", g.originY, "\tgmCellIncX=", g.width);
} else {
g.blackBoxX = cast(ushort)metrics.gmBlackBoxX;
g.blackBoxY = cast(ubyte)metrics.gmBlackBoxY;
g.originX = cast(byte)metrics.gmptGlyphOrigin.x;
g.originY = cast(byte)metrics.gmptGlyphOrigin.y;
g.width = cast(ubyte)metrics.gmCellIncX;
}
if (g.blackBoxX > 0 && g.blackBoxY > 0) {
g.glyph = new ubyte[g.blackBoxX * g.blackBoxY];
if (gs>0)
{
if (antialiased) {
// antialiased glyph
ubyte[] glyph = new ubyte[gs];
res = GetGlyphOutlineW( _drawbuf.dc, cast(wchar)ch,
GGO_GRAY8_BITMAP, //GGO_METRICS
&metrics,
gs,
glyph.ptr,
&scaleMatrix);
if (res==GDI_ERROR)
{
return null;
}
if (needSubpixelRendering) {
ubyte[] newglyph;
int shiftedBy = 0;
g.blackBoxX = prepare_lcd_glyph(glyph.ptr,
metrics,
newglyph,
shiftedBy);
g.glyph = newglyph;
//g.originX = cast(ubyte)((metrics.gmptGlyphOrigin.x + 2 - shiftedBy) / 3);
//g.width = cast(ubyte)((metrics.gmCellIncX + 2 - shiftedBy) / 3);
} else {
int glyph_row_size = (g.blackBoxX + 3) / 4 * 4;
ubyte * src = glyph.ptr;
ubyte * dst = g.glyph.ptr;
for (int y = 0; y < g.blackBoxY; y++)
{
for (int x = 0; x < g.blackBoxX; x++)
{
dst[x] = _gamma65.correct(src[x]);
}
src += glyph_row_size;
dst += g.blackBoxX;
}
}
} else {
// bitmap glyph
ubyte[] glyph = new ubyte[gs];
res = GetGlyphOutlineW( _drawbuf.dc, cast(wchar)ch,
GGO_BITMAP, //GGO_METRICS
&metrics,
gs,
glyph.ptr,
&scaleMatrix );
if (res==GDI_ERROR)
{
return null;
}
int glyph_row_bytes = ((g.blackBoxX + 7) / 8);
int glyph_row_size = (glyph_row_bytes + 3) / 4 * 4;
ubyte * src = glyph.ptr;
ubyte * dst = g.glyph.ptr;
for (int y = 0; y < g.blackBoxY; y++)
{
for (int x = 0; x < g.blackBoxX; x++)
{
int offset = x >> 3;
int shift = 7 - (x & 7);
ubyte b = ((src[offset] >> shift) & 1) ? 255 : 0;
dst[x] = b;
}
src += glyph_row_size;
dst += g.blackBoxX;
}
}
}
else
{
// empty glyph
for (int i = g.blackBoxX * g.blackBoxY - 1; i >= 0; i--)
g.glyph[i] = 0;
}
}
// found!
return _glyphCache.put(ch, g);
}
/// init from font definition
bool create(FontDef * def, int size, int weight, bool italic) {
if (!isNull())
clear();
LOGFONTA lf;
lf.lfCharSet = ANSI_CHARSET; //DEFAULT_CHARSET;
lf.lfFaceName[0..def.face.length] = def.face;
lf.lfFaceName[def.face.length] = 0;
lf.lfHeight = -size; //pixelsToPoints(size);
lf.lfItalic = italic;
lf.lfWeight = weight;
lf.lfOutPrecision = OUT_TT_ONLY_PRECIS; //OUT_OUTLINE_PRECIS; //OUT_TT_ONLY_PRECIS;
lf.lfClipPrecision = CLIP_DEFAULT_PRECIS;
//lf.lfQuality = NONANTIALIASED_QUALITY; //ANTIALIASED_QUALITY;
//lf.lfQuality = PROOF_QUALITY; //ANTIALIASED_QUALITY;
lf.lfQuality = antialiased ? NONANTIALIASED_QUALITY : ANTIALIASED_QUALITY; //PROOF_QUALITY; //ANTIALIASED_QUALITY; //size < 18 ? NONANTIALIASED_QUALITY : PROOF_QUALITY; //ANTIALIASED_QUALITY;
lf.lfPitchAndFamily = def.pitchAndFamily;
_hfont = CreateFontIndirectA(&lf);
_drawbuf = new Win32ColorDrawBuf(1, 1);
SelectObject(_drawbuf.dc, _hfont);
TEXTMETRICW tm;
GetTextMetricsW(_drawbuf.dc, &tm);
_size = size;
_height = tm.tmHeight;
debug(FontResources) Log.d("Win32Font.create: height=", _height, " for size=", _size, " points=", lf.lfHeight, " dpi=", _dpi);
_baseline = _height - tm.tmDescent;
_weight = weight;
_italic = italic;
_face = def.face;
_family = def.family;
debug(FontResources) Log.d("Created font ", _face, " ", _size);
return true;
}
/// clear usage flags for all entries
override void checkpoint() {
_glyphCache.checkpoint();
}
/// removes entries not used after last call of checkpoint() or cleanup()
override void cleanup() {
_glyphCache.cleanup();
}
/// clears glyph cache
override void clearGlyphCache() {
_glyphCache.clear();
}
@property override int size() { return _size; }
@property override int height() { return _height; }
@property override int weight() { return _weight; }
@property override int baseline() { return _baseline; }
@property override bool italic() { return _italic; }
@property override string face() { return _face; }
@property override FontFamily family() { return _family; }
@property override bool isNull() { return _hfont is null; }
}
/**
* Font manager implementation based on Win32 API system fonts.
*/
class Win32FontManager : FontManager {
private FontList _activeFonts;
private FontDef[] _fontFaces;
private FontDef*[string] _faceByName;
/// initialize in constructor
this() {
debug Log.i("Creating Win32FontManager");
//instance = this;
initialize();
}
~this() {
debug Log.i("Destroying Win32FontManager");
}
/// initialize font manager by enumerating of system fonts
bool initialize() {
debug Log.i("Win32FontManager.initialize()");
Win32ColorDrawBuf drawbuf = new Win32ColorDrawBuf(1,1);
LOGFONTA lf;
lf.lfCharSet = ANSI_CHARSET; //DEFAULT_CHARSET;
lf.lfFaceName[0] = 0;
HDC dc = drawbuf.dc;
int res =
EnumFontFamiliesExA(
dc, // handle to DC
&lf, // font information
cast(FONTENUMPROCA)&LVWin32FontEnumFontFamExProc, // callback function (FONTENUMPROC)
cast(LPARAM)(cast(void*)this), // additional data
0U // not used; must be 0
);
destroy(drawbuf);
Log.i("Found ", _fontFaces.length, " font faces");
return res!=0;
}
/// for returning of not found font
FontRef _emptyFontRef;
/// get font by properties
override ref FontRef getFont(int size, int weight, bool italic, FontFamily family, string face) {
//Log.i("getFont()");
FontDef * def = findFace(family, face);
//Log.i("getFont() found face ", def.face, " by requested face ", face);
if (def !is null) {
int index = _activeFonts.find(size, weight, italic, def.family, def.face);
if (index >= 0)
return _activeFonts.get(index);
debug(FontResources) Log.d("Creating new font");
Win32Font item = new Win32Font();
if (!item.create(def, size, weight, italic))
return _emptyFontRef;
debug(FontResources) Log.d("Adding to list of active fonts");
return _activeFonts.add(item);
} else {
return _emptyFontRef;
}
}
/// find font face definition by family only (try to get one of defaults for family if possible)
FontDef * findFace(FontFamily family) {
FontDef * res = null;
switch(family) {
case FontFamily.SansSerif:
res = findFace("Arial"); if (res !is null) return res;
res = findFace("Tahoma"); if (res !is null) return res;
res = findFace("Calibri"); if (res !is null) return res;
res = findFace("Verdana"); if (res !is null) return res;
res = findFace("Lucida Sans"); if (res !is null) return res;
break;
case FontFamily.Serif:
res = findFace("Times New Roman"); if (res !is null) return res;
res = findFace("Georgia"); if (res !is null) return res;
res = findFace("Century Schoolbook"); if (res !is null) return res;
res = findFace("Bookman Old Style"); if (res !is null) return res;
break;
case FontFamily.MonoSpace:
res = findFace("Courier New"); if (res !is null) return res;
res = findFace("Lucida Console"); if (res !is null) return res;
res = findFace("Century Schoolbook"); if (res !is null) return res;
res = findFace("Bookman Old Style"); if (res !is null) return res;
break;
case FontFamily.Cursive:
res = findFace("Comic Sans MS"); if (res !is null) return res;
res = findFace("Lucida Handwriting"); if (res !is null) return res;
res = findFace("Monotype Corsiva"); if (res !is null) return res;
break;
default:
break;
}
return null;
}
/// find font face definition by face only
FontDef * findFace(string face) {
if (face.length == 0)
return null;
string[] faces = split(face, ",");
foreach(f; faces) {
if (f in _faceByName)
return _faceByName[f];
}
return null;
}
/// find font face definition by family and face
FontDef * findFace(FontFamily family, string face) {
// by face only
FontDef * res = findFace(face);
if (res !is null)
return res;
// best for family
res = findFace(family);
if (res !is null)
return res;
for (int i = 0; i < _fontFaces.length; i++) {
res = &_fontFaces[i];
if (res.family == family)
return res;
}
res = findFace(FontFamily.SansSerif);
if (res !is null)
return res;
return &_fontFaces[0];
}
/// register enumerated font
bool registerFont(FontFamily family, string fontFace, ubyte pitchAndFamily) {
Log.d("registerFont(", family, ",", fontFace, ")");
_fontFaces ~= FontDef(family, fontFace, pitchAndFamily);
_faceByName[fontFace] = &_fontFaces[$ - 1];
return true;
}
/// clear usage flags for all entries
override void checkpoint() {
_activeFonts.checkpoint();
}
/// removes entries not used after last call of checkpoint() or cleanup()
override void cleanup() {
_activeFonts.cleanup();
//_list.cleanup();
}
/// clears glyph cache
override void clearGlyphCaches() {
_activeFonts.clearGlyphCache();
}
}
FontFamily pitchAndFamilyToFontFamily(ubyte flags) {
if ((flags & FF_DECORATIVE) == FF_DECORATIVE)
return FontFamily.Fantasy;
else if ((flags & (FIXED_PITCH)) != 0) // | | MONO_FONT
return FontFamily.MonoSpace;
else if ((flags & (FF_ROMAN)) != 0)
return FontFamily.Serif;
else if ((flags & (FF_SCRIPT)) != 0)
return FontFamily.Cursive;
return FontFamily.SansSerif;
}
// definition
extern(Windows) {
int LVWin32FontEnumFontFamExProc(
const (LOGFONTA) *lf, // logical-font data
const (TEXTMETRICA) *lpntme, // physical-font data
//ENUMLOGFONTEX *lpelfe, // logical-font data
//NEWTEXTMETRICEX *lpntme, // physical-font data
DWORD fontType, // type of font
LPARAM lParam // application-defined data
)
{
//
//Log.d("LVWin32FontEnumFontFamExProc fontType=", fontType);
if (fontType == TRUETYPE_FONTTYPE)
{
void * p = cast(void*)lParam;
Win32FontManager fontman = cast(Win32FontManager)p;
string face = fromStringz(lf.lfFaceName.ptr).dup;
FontFamily family = pitchAndFamilyToFontFamily(lf.lfPitchAndFamily);
if (face.length < 2 || face[0] == '@')
return 1;
//Log.d("face:", face);
fontman.registerFont(family, face, lf.lfPitchAndFamily);
}
return 1;
}
}
| D |
/*
* Copyright (c) 2017-2018 sel-project
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
*/
/**
* Copyright: Copyright (c) 2017-2018 sel-project
* License: MIT
* Authors: Kripth
* Source: $(HTTP github.com/sel-project/selery/source/selery/block/farming.d, selery/block/farming.d)
*/
module selery.block.farming;
import std.random : dice, uniform, randomShuffle;
import selery.about : block_t, item_t;
import selery.block.block : Block, Update;
import selery.block.blocks : Blocks;
import selery.block.solid;
import selery.entity.entity : Entity;
import selery.item.item : Item;
import selery.item.items : Items;
import selery.item.slot : Slot;
import selery.item.tool : Tools;
import selery.math.vector : BlockPosition;
import selery.player.player : Player;
import selery.world.world : World;
static import sul.blocks;
class FertileTerrainBlock(bool hydrated) : MineableBlock {
private block_t wetter, dryer;
public this(sul.blocks.Block data, block_t wetter, block_t dryer) {
super(data, MiningTool(false, Tools.shovel, Tools.wood), Drop(Items.dirt, 1));
this.wetter = wetter;
this.dryer = dryer;
}
public final override pure nothrow @property @safe @nogc bool doRandomTick() {
return true;
}
public override void onRandomTick(World world, BlockPosition position) {
static if(hydrated) {
//TODO check if the water still there, otherwise convert to dryer
} else {
//TODO check if this block could be hydrated and convert to wetter, otherwise convert to dryer (if not 0)
}
}
/**
* Searches for water in the section.
* Returns: true if water was found, false otherwise
*/
/*protected @property bool searchWater() {
foreach(uint x ; 0..this.section.opDollar!0) {
foreach(uint y ; 0..this.section.opDollar!1) {
foreach(uint z ; 0..this.section.opDollar!2) {
Block b;
if((b = this.section[x, y, z]) !is null && b == Blocks.WATER) {
this.water = new BlockPosition(x, y, z);
return true;
}
}
}
}
return false;
}*/
public override void onUpdated(World world, BlockPosition position, Update update) {
Block up = world[position + [0, 1, 0]];
if(up.solid) world[position] = Blocks.dirt;
//TODO moved by piston
//TODO stepped
}
}
class FarmingBlock : MineableBlock {
public this(sul.blocks.Block data, Drop[] drops) {
super(data, MiningTool.init, drops);
}
public override void onUpdated(World world, BlockPosition position, Update update) {
if(world[position - [0, 1, 0]] != Blocks.farmland) {
world.drop(this, position);
world[position] = Blocks.air;
}
}
}
class GrowingFarmingBlock : FarmingBlock {
public this(sul.blocks.Block data, Drop[] drops) {
super(data, drops);
}
public override pure nothrow @property @safe @nogc bool doRandomTick() {
return true;
}
public override void onRandomTick(World world, BlockPosition position) {
immutable float p = world[position - [0, 1, 0]] != Blocks.farmland7 ? .125 : .25;
if(dice(world.random, 1f - p, p)) {
this.grow(world, position);
}
}
public abstract void grow(World, BlockPosition);
}
class StageCropBlock : GrowingFarmingBlock {
private block_t next;
public this(sul.blocks.Block data, Drop[] drops, block_t next) {
super(data, drops);
this.next = 0;
}
public this(sul.blocks.Block data, block_t next, Drop[] drops=[]) {
this(data, drops, next);
}
public override void grow(World world, BlockPosition position) {
world[position] = this.next;
}
}
class FruitCropBlock(bool isArray) : GrowingFarmingBlock {
static if(isArray) {
alias grow_t = block_t[4];
} else {
alias grow_t = block_t;
}
private grow_t growTo;
public this(sul.blocks.Block data, Drop[] drops, grow_t growTo) {
super(data, drops);
}
public this(sul.blocks.Block data, grow_t growTo, Drop[] drops=[]) {
this(data, drops, growTo);
}
public override void grow(World world, BlockPosition position) {
//search for a place to grow
BlockPosition[] positions = [position + [1, 0, 0], position + [0, 0, 1], position - [1, 0, 0], position - [0, 0, 1]];
randomShuffle(positions, world.random);
foreach(BlockPosition pos ; positions) {
if(world[pos] == Blocks.air) {
Block s = world[pos - [0, 1, 0]];
if(s == Blocks.dirts) {
static if(isArray) {
ubyte face;
if(position.x == pos.x) {
if(position.z > pos.z) face = Facing.north;
else face = Facing.south;
} else {
if(position.x > pos.x) face = Facing.west;
else face = Facing.east;
}
world[pos] = this.growTo[face];
} else {
world[pos] = this.growTo;
}
break;
}
}
}
}
}
class ChanceCropBlock : StageCropBlock {
private ubyte a, b;
public this(sul.blocks.Block data, Drop[] drops, block_t next, ubyte a, ubyte b) {
super(data, drops, next);
this.a = a;
this.b = b;
}
public this(sul.blocks.Block data, block_t next, Drop[] drops, ubyte a, ubyte b) {
this(data, drops, next, a, b);
}
public override void onRandomTick(World world, BlockPosition position) {
if(uniform(0, this.b, world.random) < this.a) {
//TODO call this.grow ?
super.onRandomTick(world, position);
}
}
}
//class StemBlock(bool isArray) : FruitCropBlock!isArray {
template StemBlock(T) {
class StemBlock : T {
private item_t drop;
public this(E...)(sul.blocks.Block data, item_t drop, E args) {
super(data, args);
this.drop = drop;
}
public override Slot[] drops(World world, Player player, Item item) {
immutable amount = dice(world.random, 100, 20, 4, 1);
if(amount) {
auto func = world.items.getConstructor(this.drop);
if(func !is null) {
Slot[] ret;
foreach(i ; 0..amount) {
ret ~= Slot(func(0), 1);
}
return ret;
}
}
return [];
}
}
}
//class GrowingBlock(sul.blocks.Block sb, block_t next, block_t[] compare, size_t height, bool waterNeeded, block_t[] requiredBlock, Drop drops) : MineableBlock!(sb, MiningTool.init, drops) {
class GrowingBlock(bool needsWater) : MineableBlock {
private block_t next;
private block_t[] compare, requiredBlock;
private size_t height;
public this(sul.blocks.Block data, Drop[] drops, block_t next, block_t[] compare, block_t[] requiredBlock, size_t height) {
super(data, MiningTool.init, drops);
this.next = next;
this.compare = compare;
this.requiredBlock = requiredBlock;
this.height = height;
}
public override void onRandomTick(World world, BlockPosition position) {
//TODO check if there's water around
if(this.next == 0) { //TODO do this check when constructed
@property bool tooHigh() {
size_t h = 1;
auto pos = position - [0, 1, 0];
while(world[pos] == compare && ++h < this.height) pos -= [0, 1, 0];
return h >= this.height;
}
auto up = position + [0, 1, 0];
if(world[up] == Blocks.air && !tooHigh) {
world[up] = this.compare[0];
}
} else {
world[position] = this.next;
}
}
public override void onUpdated(World world, BlockPosition position, Update update) {
auto down = world[position - [0, 1, 0]];
if(down != this.compare && (down != this.requiredBlock || !this.searchWater(world, position))) {
world.drop(this, position);
world[position] = Blocks.air;
}
}
private bool searchWater(World world, BlockPosition position) {
static if(needsWater) {
foreach(p ; [[0, -1, 1], [1, -1, 0], [0, -1, -1], [-1, -1, 0]]) {
if(world[position + p] == Blocks.water) return true;
}
return false;
} else {
return true;
}
}
}
class SugarCanesBlock : GrowingBlock!true {
public this(sul.blocks.Block data, block_t next) {
super(data, [Drop(Items.sugarCanes, 1)], next, Blocks.sugarCanes, [Blocks.sand, Blocks.redSand, Blocks.dirt, Blocks.coarseDirt, Blocks.podzol, Blocks.grass], 3);
}
}
class CactusBlock : GrowingBlock!false {
public this(sul.blocks.Block data, block_t next) {
super(data, [Drop(Items.cactus, 1)], next, Blocks.cactus, [Blocks.sand, Blocks.redSand], 3);
}
//TODO do cactus damage on step and on contact
}
class NetherCropBlock : MineableBlock {
public this(sul.blocks.Block data, Drop drop) {
super(data, MiningTool.init, drop);
}
public override void onUpdated(World world, BlockPosition position, Update update) {
auto pos = position - [0, 1, 0];
if(world[pos] != Blocks.soulSand) {
world.drop(this, position);
world[pos] = Blocks.air;
}
}
}
class StageNetherCropBlock : NetherCropBlock {
private block_t next;
public this(sul.blocks.Block data, block_t next, Drop drop) {
super(data, drop);
this.next = next;
}
public override pure nothrow @property @safe @nogc bool doRandomTick() {
return true;
}
public override void onRandomTick(World world, BlockPosition position) {
world[position] = this.next;
}
}
class BeansBlock : MineableBlock {
private BlockPosition facing;
public this(sul.blocks.Block data, MiningTool miningTool, Drop drop, ubyte facing) {
super(data, miningTool, [drop]);
if(facing == Facing.north) {
this.facing = BlockPosition(0, 0, 1);
} else if(facing == Facing.south) {
this.facing = BlockPosition(0, 0, -1);
} else if(facing == Facing.west) {
this.facing = BlockPosition(1, 0, 0);
} else {
this.facing = BlockPosition(-1, 0, 0);
}
}
public override void onUpdated(World world, BlockPosition position, Update update) {
//TODO verify facing
auto attached = position + this.facing;
if(world[attached] != Blocks.jungleWood) {
world.drop(this, position);
world[attached] = Blocks.air;
}
}
}
class GrowingBeansBlock : BeansBlock {
private block_t next;
public this(sul.blocks.Block data, MiningTool miningTool, Drop drop, ubyte facing, block_t next) {
super(data, miningTool, drop, facing);
}
public override pure nothrow @property @safe @nogc bool doRandomTick() {
return true;
}
public override void onRandomTick(World world, BlockPosition position) {
world[position] = this.next; // every random tick?
}
}
| 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.wglext;
version( Windows ) {
private {
import std.conv;
import std.string;
import derelict.util.wintypes;
import derelict.util.system;
import derelict.opengl3.types;
import derelict.opengl3.wgl;
import derelict.opengl3.internal;
}
enum {
// WGL_ARB_buffer_region
WGL_FRONT_COLOR_BUFFER_BIT_ARB = 0x00000001,
WGL_BACK_COLOR_BUFFER_BIT_ARB = 0x00000002,
WGL_DEPTH_BUFFER_BIT_ARB = 0x00000004,
WGL_STENCIL_BUFFER_BIT_ARB = 0x00000008,
// WGL_ARB_create_context
WGL_CONTEXT_DEBUG_BIT_ARB = 0x0001,
WGL_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB = 0x0002,
WGL_CONTEXT_MAJOR_VERSION_ARB = 0x2091,
WGL_CONTEXT_MINOR_VERSION_ARB = 0x2092,
WGL_CONTEXT_LAYER_PLANE_ARB = 0x2093,
WGL_CONTEXT_FLAGS_ARB = 0x2094,
ERROR_INVALID_VERSION_ARB = 0x2095,
// WGL_ARB_create_context_profile
WGL_CONTEXT_PROFILE_MASK_ARB = 0x9126,
WGL_CONTEXT_CORE_PROFILE_BIT_ARB = 0x00000001,
WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB = 0x00000002,
ERROR_INVALID_PROFILE_ARB = 0x2096,
// WGL_ARB_create_context_robustness
WGL_CONTEXT_ROBUST_ACCESS_BIT_ARB = 0x00000004,
WGL_LOSE_CONTEXT_ON_RESET_ARB = 0x8252,
WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB = 0x8256,
WGL_NO_RESET_NOTIFICATION_ARB = 0x8261,
// WGL_ARB_framebuffer_sRGB
WGL_FRAMEBUFFER_SRGB_CAPABLE_ARB = 0x20A9,
// WGL_ARB_make_current_read
ERROR_INVALID_PIXEL_TYPE_ARB = 0x2043,
ERROR_INCOMPATIBLE_DEVICE_CONTEXTS_ARB = 0x2054,
// WGL_ARB_multisample
WGL_SAMPLE_BUFFERS_ARB = 0x2041,
WGL_SAMPLES_ARB = 0x2042,
// WGL_ARB_pbuffer
WGL_DRAW_TO_PBUFFER_ARB = 0x202D,
WGL_MAX_PBUFFER_PIXELS_ARB = 0x202E,
WGL_MAX_PBUFFER_WIDTH_ARB = 0x202F,
WGL_MAX_PBUFFER_HEIGHT_ARB = 0x2030,
WGL_PBUFFER_LARGEST_ARB = 0x2033,
WGL_PBUFFER_WIDTH_ARB = 0x2034,
WGL_PBUFFER_HEIGHT_ARB = 0x2035,
WGL_PBUFFER_LOST_ARB = 0x2036,
// WGL_ARB_pixel_format
WGL_NUMBER_PIXEL_FORMATS_ARB = 0x2000,
WGL_DRAW_TO_WINDOW_ARB = 0x2001,
WGL_DRAW_TO_BITMAP_ARB = 0x2002,
WGL_ACCELERATION_ARB = 0x2003,
WGL_NEED_PALETTE_ARB = 0x2004,
WGL_NEED_SYSTEM_PALETTE_ARB = 0x2005,
WGL_SWAP_LAYER_BUFFERS_ARB = 0x2006,
WGL_SWAP_METHOD_ARB = 0x2007,
WGL_NUMBER_OVERLAYS_ARB = 0x2008,
WGL_NUMBER_UNDERLAYS_ARB = 0x2009,
WGL_TRANSPARENT_ARB = 0x200A,
WGL_TRANSPARENT_RED_VALUE_ARB = 0x2037,
WGL_TRANSPARENT_GREEN_VALUE_ARB = 0x2038,
WGL_TRANSPARENT_BLUE_VALUE_ARB = 0x2039,
WGL_TRANSPARENT_ALPHA_VALUE_ARB = 0x203A,
WGL_TRANSPARENT_INDEX_VALUE_ARB = 0x203B,
WGL_SHARE_DEPTH_ARB = 0x200C,
WGL_SHARE_STENCIL_ARB = 0x200D,
WGL_SHARE_ACCUM_ARB = 0x200E,
WGL_SUPPORT_GDI_ARB = 0x200F,
WGL_SUPPORT_OPENGL_ARB = 0x2010,
WGL_DOUBLE_BUFFER_ARB = 0x2011,
WGL_STEREO_ARB = 0x2012,
WGL_PIXEL_TYPE_ARB = 0x2013,
WGL_COLOR_BITS_ARB = 0x2014,
WGL_RED_BITS_ARB = 0x2015,
WGL_RED_SHIFT_ARB = 0x2016,
WGL_GREEN_BITS_ARB = 0x2017,
WGL_GREEN_SHIFT_ARB = 0x2018,
WGL_BLUE_BITS_ARB = 0x2019,
WGL_BLUE_SHIFT_ARB = 0x201A,
WGL_ALPHA_BITS_ARB = 0x201B,
WGL_ALPHA_SHIFT_ARB = 0x201C,
WGL_ACCUM_BITS_ARB = 0x201D,
WGL_ACCUM_RED_BITS_ARB = 0x201E,
WGL_ACCUM_GREEN_BITS_ARB = 0x201F,
WGL_ACCUM_BLUE_BITS_ARB = 0x2020,
WGL_ACCUM_ALPHA_BITS_ARB = 0x2021,
WGL_DEPTH_BITS_ARB = 0x2022,
WGL_STENCIL_BITS_ARB = 0x2023,
WGL_AUX_BUFFERS_ARB = 0x2024,
WGL_NO_ACCELERATION_ARB = 0x2025,
WGL_GENERIC_ACCELERATION_ARB = 0x2026,
WGL_FULL_ACCELERATION_ARB = 0x2027,
WGL_SWAP_EXCHANGE_ARB = 0x2028,
WGL_SWAP_COPY_ARB = 0x2029,
WGL_SWAP_UNDEFINED_ARB = 0x202A,
WGL_TYPE_RGBA_ARB = 0x202B,
WGL_TYPE_COLORINDEX_ARB = 0x202C,
// WGL_ARB_pixel_format_float
WGL_TYPE_RGBA_FLOAT_ARB = 0x21A0,
// WGL_ARB_render_texture
WGL_BIND_TO_TEXTURE_RGB_ARB = 0x2070,
WGL_BIND_TO_TEXTURE_RGBA_ARB = 0x2071,
WGL_TEXTURE_FORMAT_ARB = 0x2072,
WGL_TEXTURE_TARGET_ARB = 0x2073,
WGL_MIPMAP_TEXTURE_ARB = 0x2074,
WGL_TEXTURE_RGB_ARB = 0x2075,
WGL_TEXTURE_RGBA_ARB = 0x2076,
WGL_NO_TEXTURE_ARB = 0x2077,
WGL_TEXTURE_CUBE_MAP_ARB = 0x2078,
WGL_TEXTURE_1D_ARB = 0x2079,
WGL_TEXTURE_2D_ARB = 0x207A,
WGL_MIPMAP_LEVEL_ARB = 0x207B,
WGL_CUBE_MAP_FACE_ARB = 0x207C,
WGL_TEXTURE_CUBE_MAP_POSITIVE_X_ARB = 0x207D,
WGL_TEXTURE_CUBE_MAP_NEGATIVE_X_ARB = 0x207E,
WGL_TEXTURE_CUBE_MAP_POSITIVE_Y_ARB = 0x207F,
WGL_TEXTURE_CUBE_MAP_NEGATIVE_Y_ARB = 0x2080,
WGL_TEXTURE_CUBE_MAP_POSITIVE_Z_ARB = 0x2081,
WGL_TEXTURE_CUBE_MAP_NEGATIVE_Z_ARB = 0x2082,
WGL_FRONT_LEFT_ARB = 0x2083,
WGL_FRONT_RIGHT_ARB = 0x2084,
WGL_BACK_LEFT_ARB = 0x2085,
WGL_BACK_RIGHT_ARB = 0x2086,
WGL_AUX0_ARB = 0x2087,
WGL_AUX1_ARB = 0x2088,
WGL_AUX2_ARB = 0x2089,
WGL_AUX3_ARB = 0x208A,
WGL_AUX4_ARB = 0x208B,
WGL_AUX5_ARB = 0x208C,
WGL_AUX6_ARB = 0x208D,
WGL_AUX7_ARB = 0x208E,
WGL_AUX8_ARB = 0x208F,
WGL_AUX9_ARB = 0x2090,
}
alias HPBUFFERARB = HANDLE;
extern( Windows ) @nogc nothrow {
// WGL_ARB_extensions_string
alias da_wglGetExtensionsStringARB = const( char* ) function( HDC );
// WGL_ARB_buffer_region
alias da_wglCreateBufferRegionARB = HANDLE function( HDC, int, UINT );
alias da_wglDeleteBufferRegionARB = void function( HANDLE );
alias da_wglSaveBufferRegionARB = BOOL function( HANDLE, int, int, int, int );
alias da_wglRestoreBufferRegionARB = BOOL function( HANDLE, int, int, int, int, int, int );
// WGL_ARB_create_context
alias da_wglCreateContextAttribsARB = HGLRC function( HDC, HGLRC, const( int )* );
// WGL_ARB_make_current_read
alias da_wglMakeContextCurrentARB = BOOL function( HDC, HDC, HGLRC );
alias da_wglGetCurrentReadDCARB = HDC function();
// WGL_ARB_pbuffer
alias da_wglCreatePbufferARB = HPBUFFERARB function( HDC, int, int, int, const( int )* );
alias da_wglGetPbufferDCARB = HDC function( HPBUFFERARB );
alias da_wglReleasePbufferDCARB = int function( HPBUFFERARB, HDC );
alias da_wglDestroyPbufferARB = BOOL function( HPBUFFERARB );
alias da_wglQueryPbufferARB = BOOL function( HPBUFFERARB, int, int );
// WGL_ARB_pixel_format
alias da_wglGetPixelFormatAttribivARB = BOOL function( HDC, int, int, UINT, const( int )*, int* );
alias da_wglGetPixelFormatAttribfvARB = BOOL function( HDC, int, int, UINT, const( int )*, FLOAT* );
alias da_wglChoosePixelFormatARB = BOOL function( HDC, const( int )*, const( FLOAT )*, UINT, int*, UINT* );
// WGL_ARB_render_texture
alias da_wglBindTexImageARB = BOOL function( HPBUFFERARB, int );
alias da_wglReleaseTexImageARB = BOOL function( HPBUFFERARB, int );
alias da_wglSetPbufferAttribARB = BOOL function( HPBUFFERARB, const( int )* );
// WGL_EXT_swap_control
alias da_wglSwapIntervalEXT = BOOL function( int );
alias da_wglGetSwapIntervalEXT = int function();
}
__gshared {
da_wglGetExtensionsStringARB wglGetExtensionsStringARB;
da_wglCreateBufferRegionARB wglCreateBufferRegionARB;
da_wglDeleteBufferRegionARB wglDeleteBufferRegionARB;
da_wglSaveBufferRegionARB wglSaveBufferRegionARB;
da_wglRestoreBufferRegionARB wglRestoreBufferRegionARB;
da_wglCreateContextAttribsARB wglCreateContextAttribsARB;
da_wglMakeContextCurrentARB wglMakeContextCurrentARB;
da_wglGetCurrentReadDCARB wglGetCurrentReadDCARB;
da_wglCreatePbufferARB wglCreatePbufferARB;
da_wglGetPbufferDCARB wglGetPbufferDCARB;
da_wglReleasePbufferDCARB wglReleasePbufferDCARB;
da_wglDestroyPbufferARB wglDestroyPbufferARB;
da_wglQueryPbufferARB wglQueryPbufferARB;
da_wglGetPixelFormatAttribivARB wglGetPixelFormatAttribivARB;
da_wglGetPixelFormatAttribfvARB wglGetPixelFormatAttribfvARB;
da_wglChoosePixelFormatARB wglChoosePixelFormatARB;
da_wglBindTexImageARB wglBindTexImageARB;
da_wglReleaseTexImageARB wglReleaseTexImageARB;
da_wglSetPbufferAttribARB wglSetPbufferAttribARB;
da_wglSwapIntervalEXT wglSwapIntervalEXT;
da_wglGetSwapIntervalEXT wglGetSwapIntervalEXT;
}
private __gshared {
bool _WGL_ARB_extensions_string;
bool _WGL_ARB_buffer_region;
bool _WGL_ARB_create_context;
bool _WGL_ARB_create_context_profile;
bool _WGL_ARB_create_context_robustness;
bool _WGL_ARB_framebuffer_sRGB;
bool _WGL_ARB_make_current_read;
bool _WGL_ARB_multisample;
bool _WGL_ARB_pbuffer;
bool _WGL_ARB_pixel_format;
bool _WGL_ARB_pixel_format_float;
bool _WGL_ARB_render_texture;
bool _WGL_ARB_robustness_application_isolation;
bool _WGL_ARB_robustness_share_group_isolation;
bool _WGL_EXT_swap_control;
}
@nogc nothrow {
bool WGL_ARB_extensions_string() @property { return _WGL_ARB_extensions_string; }
bool WGL_ARB_buffer_region() @property { return _WGL_ARB_buffer_region; }
bool WGL_ARB_create_context() @property { return _WGL_ARB_create_context; }
bool WGL_ARB_create_context_profile() @property { return _WGL_ARB_create_context_profile; }
bool WGL_ARB_create_context_robustness() @property { return _WGL_ARB_create_context_robustness; }
bool WGL_ARB_framebuffer_sRGB() @property { return _WGL_ARB_framebuffer_sRGB; }
bool WGL_ARB_make_current_read() @property { return _WGL_ARB_make_current_read; }
bool WGL_ARB_multisample() @property { return _WGL_ARB_multisample; }
bool WGL_ARB_pbuffer() @property { return _WGL_ARB_pbuffer; }
bool WGL_ARB_pixel_format() @property { return _WGL_ARB_pixel_format; }
bool WGL_ARB_pixel_format_float() @property { return _WGL_ARB_pixel_format_float; }
bool WGL_ARB_render_texture() @property { return _WGL_ARB_render_texture; }
bool WGL_ARB_robustness_application_isolation() @property { return _WGL_ARB_robustness_application_isolation; }
bool WGL_ARB_robustness_share_group_isolation() @property { return _WGL_ARB_robustness_share_group_isolation; }
bool WGL_EXT_swap_control() @property { return _WGL_EXT_swap_control; }
}
private bool isWGLExtSupported( string name ) {
return findEXT( wglGetExtensionsStringARB(wglGetCurrentDC()), name );
}
package void loadPlatformEXT( GLVersion glversion ) {
// This needs to be loaded first. If it fails to load, just abort.
wglGetExtensionsStringARB = cast( da_wglGetExtensionsStringARB ) loadGLFunc( "wglGetExtensionsStringARB" );
if( !wglGetExtensionsStringARB ) return;
_WGL_ARB_extensions_string = true;
if( isWGLExtSupported( "WGL_ARB_buffer_region" )) {
try {
bindGLFunc( cast(void**)&wglCreateBufferRegionARB, "wglCreateBufferRegionARB" );
bindGLFunc( cast(void**)&wglDeleteBufferRegionARB, "wglDeleteBufferRegionARB" );
bindGLFunc( cast(void**)&wglSaveBufferRegionARB, "wglSaveBufferRegionARB" );
bindGLFunc( cast(void**)&wglRestoreBufferRegionARB, "wglRestoreBufferRegionARB" );
_WGL_ARB_buffer_region = true;
} catch( Exception e ) { _WGL_ARB_buffer_region = false; }
}
if( isWGLExtSupported( "WGL_ARB_create_context" )) {
try {
bindGLFunc( cast(void**)&wglCreateContextAttribsARB, "wglCreateContextAttribsARB" );
_WGL_ARB_create_context = true;
} catch( Exception e ) { _WGL_ARB_create_context = false; }
}
_WGL_ARB_create_context_profile = isWGLExtSupported( "WGL_ARB_create_context_profile" );
_WGL_ARB_create_context_robustness = isWGLExtSupported( "WGL_ARB_create_context_robustness" );
_WGL_ARB_framebuffer_sRGB = isWGLExtSupported( "WGL_ARB_framebuffer_sRGB" );
if( isWGLExtSupported( "WGL_ARB_make_current_read" )) {
try {
bindGLFunc( cast(void**)&wglMakeContextCurrentARB, "wglMakeContextCurrentARB" );
bindGLFunc( cast(void**)&wglGetCurrentReadDCARB, "wglGetCurrentReadDCARB" );
_WGL_ARB_make_current_read = true;
} catch( Exception e ) { _WGL_ARB_make_current_read = false; }
}
_WGL_ARB_multisample = isWGLExtSupported( "WGL_ARB_multisample" );
if( isWGLExtSupported( "WGL_ARB_pbuffer" )) {
try {
bindGLFunc( cast(void**)&wglCreatePbufferARB, "wglCreatePbufferARB" );
bindGLFunc( cast(void**)&wglGetPbufferDCARB, "wglGetPbufferDCARB" );
bindGLFunc( cast(void**)&wglReleasePbufferDCARB, "wglReleasePbufferDCARB" );
bindGLFunc( cast(void**)&wglDestroyPbufferARB, "wglDestroyPbufferARB" );
bindGLFunc( cast(void**)&wglQueryPbufferARB, "wglQueryPbufferARB" );
_WGL_ARB_pbuffer = true;
} catch( Exception e ) { _WGL_ARB_pbuffer = false; }
}
if( isWGLExtSupported( "WGL_ARB_pixel_format" )) {
try {
bindGLFunc( cast(void**)&wglGetPixelFormatAttribivARB, "wglGetPixelFormatAttribivARB" );
bindGLFunc( cast(void**)&wglGetPixelFormatAttribfvARB, "wglGetPixelFormatAttribfvARB" );
bindGLFunc( cast(void**)&wglChoosePixelFormatARB, "wglChoosePixelFormatARB" );
_WGL_ARB_pixel_format = true;
} catch( Exception e ) { _WGL_ARB_pixel_format = false; }
}
_WGL_ARB_pixel_format_float = isWGLExtSupported( "WGL_ARB_pixel_format_float" );
if( isWGLExtSupported( "WGL_ARB_render_texture" )) {
try {
bindGLFunc( cast(void**)&wglBindTexImageARB, "wglBindTexImageARB" );
bindGLFunc( cast(void**)&wglReleaseTexImageARB, "wglReleaseTexImageARB" );
bindGLFunc( cast(void**)&wglSetPbufferAttribARB, "wglSetPbufferAttribARB" );
_WGL_ARB_render_texture = true;
} catch( Exception e ) { _WGL_ARB_render_texture = false; }
}
_WGL_ARB_robustness_application_isolation = isWGLExtSupported( "WGL_ARB_robustness_application_isolation" );
_WGL_ARB_robustness_share_group_isolation = isWGLExtSupported( "WGL_ARB_robustness_share_group_isolation" );
if( isWGLExtSupported( "WGL_EXT_swap_control" )) {
try {
bindGLFunc( cast(void**)&wglSwapIntervalEXT, "wglSwapIntervalEXT" );
bindGLFunc( cast(void**)&wglGetSwapIntervalEXT, "wglGetSwapIntervalEXT" );
_WGL_EXT_swap_control = true;
} catch( Exception e ) { _WGL_EXT_swap_control = false; }
}
}
} | D |
/** Authors: Lars Tandle Kyllingstad
Copyright: Copyright (c) 2009, Lars T. Kyllingstad. All rights reserved.
License: Boost License 1.0
*/
module scid.ports.quadpack.qagie;
import std.algorithm: max, min;
import std.math: fabs;
import scid.core.fortran;
import scid.core.meta: Zero, One;
import scid.ports.quadpack.qk15i;
import scid.ports.quadpack.qpsrt;
import scid.ports.quadpack.qelg;
///
void qagie(Real, Func)(Func f, Real bound, int inf, Real epsabs,
Real epsrel, int limit, out Real result, out Real abserr,
out int neval, out int ier, Real* alist_, Real* blist_,
Real* rlist_, Real* elist_, int* iord_, out int last)
{
//***begin prologue dqagie
//***date written 800101 (yymmdd)
//***revision date 830518 (yymmdd)
//***category no. h2a3a1,h2a4a1
//***keywords automatic integrator, infinite intervals,
// general-purpose, transformation, extrapolation,
// globally adaptive
//***author piessens,robert,appl. math & progr. div - k.u.leuven
// de doncker,elise,appl. math & progr. div - k.u.leuven
//***purpose the routine calculates an approximation result to a given
// integral i = integral of f over (bound,+infinity)
// or i = integral of f over (-infinity,bound)
// or i = integral of f over (-infinity,+infinity),
// hopefully satisfying following claim for accuracy
// abs(i-result).le.max(epsabs,epsrel*abs(i))
//***description
//
// integration over infinite intervals
// standard fortran subroutine
//
// f - double precision
// function subprogram defining the integrand
// function f(x). the actual name for f needs to be
// declared e x t e r n a l in the driver program.
//
// bound - double precision
// finite bound of integration range
// (has no meaning if interval is doubly-infinite)
//
// inf - double precision
// indicating the kind of integration range involved
// inf = 1 corresponds to (bound,+infinity),
// inf = -1 to (-infinity,bound),
// inf = 2 to (-infinity,+infinity).
//
// epsabs - double precision
// absolute accuracy requested
// epsrel - double precision
// relative accuracy requested
// if epsabs.le.0
// and epsrel.lt.max(50*rel.mach.acc.,0.5d-28),
// the routine will end with ier = 6.
//
// limit - integer
// gives an upper bound on the number of subintervals
// in the partition of (a,b), limit.ge.1
//
// on return
// result - double precision
// approximation to the integral
//
// abserr - double precision
// estimate of the modulus of the absolute error,
// which should equal or exceed abs(i-result)
//
// neval - integer
// number of integrand evaluations
//
// ier - integer
// ier = 0 normal and reliable termination of the
// routine. it is assumed that the requested
// accuracy has been achieved.
// - ier.gt.0 abnormal termination of the routine. the
// estimates for result and error are less
// reliable. it is assumed that the requested
// accuracy has not been achieved.
// error messages
// ier = 1 maximum number of subdivisions allowed
// has been achieved. one can allow more
// subdivisions by increasing the value of
// limit (and taking the according dimension
// adjustments into account). however,if
// this yields no improvement it is advised
// to analyze the integrand in order to
// determine the integration difficulties.
// if the position of a local difficulty can
// be determined (e.g. singularity,
// discontinuity within the interval) one
// will probably gain from splitting up the
// interval at this point and calling the
// integrator on the subranges. if possible,
// an appropriate special-purpose integrator
// should be used, which is designed for
// handling the type of difficulty involved.
// = 2 the occurrence of roundoff error is
// detected, which prevents the requested
// tolerance from being achieved.
// the error may be under-estimated.
// = 3 extremely bad integrand behaviour occurs
// at some points of the integration
// interval.
// = 4 the algorithm does not converge.
// roundoff error is detected in the
// extrapolation table.
// it is assumed that the requested tolerance
// cannot be achieved, and that the returned
// result is the best which can be obtained.
// = 5 the integral is probably divergent, or
// slowly convergent. it must be noted that
// divergence can occur with any other value
// of ier.
// = 6 the input is invalid, because
// (epsabs.le.0 and
// epsrel.lt.max(50*rel.mach.acc.,0.5d-28),
// result, abserr, neval, last, rlist(1),
// elist(1) and iord(1) are set to zero.
// alist(1) and blist(1) are set to 0
// and 1 respectively.
//
// alist - double precision
// vector of dimension at least limit, the first
// last elements of which are the left
// end points of the subintervals in the partition
// of the transformed integration range (0,1).
//
// blist - double precision
// vector of dimension at least limit, the first
// last elements of which are the right
// end points of the subintervals in the partition
// of the transformed integration range (0,1).
//
// rlist - double precision
// vector of dimension at least limit, the first
// last elements of which are the integral
// approximations on the subintervals
//
// elist - double precision
// vector of dimension at least limit, the first
// last elements of which are the moduli of the
// absolute error estimates on the subintervals
//
// iord - integer
// vector of dimension limit, the first k
// elements of which are pointers to the
// error estimates over the subintervals,
// such that elist(iord(1)), ..., elist(iord(k))
// form a decreasing sequence, with k = last
// if last.le.(limit/2+2), and k = limit+1-last
// otherwise
//
// last - integer
// number of subintervals actually produced
// in the subdivision process
//
//***references (none)
//***routines called d1mach,dqelg,dqk15i,dqpsrt
//***end prologue dqagie
Real abseps,area,area1,area12,area2,a1,
a2,boun,b1,b2,correc,defabs,defab1,defab2,
dres,epmach,erlarg,erlast,
errbnd,errmax,error1,error2,erro12,errsum,ertest,oflow,resabs,
reseps,small,uflow;
Real[3] res3la_;
Real[52] rlist2_;
int id=1,ierro=1,iroff1=1,iroff2=1,iroff3=1,jupbnd=1,k=1,ksgn=1,
ktmin=1,maxerr=1,nres=1,nrmax=1,numrl2=1;
bool extrap,noext;
//
auto alist = dimension(alist_, limit);
auto blist = dimension(blist_, limit);
auto elist = dimension(elist_, limit);
auto iord = dimension(iord_, limit);
auto res3la = dimension(res3la_.ptr, 3);
auto rlist = dimension(rlist_, limit);
auto rlist2 = dimension(rlist2_.ptr, 52);
//
// the dimension of rlist2 is determined by the value of
// limexp in subroutine dqelg.
//
//
// list of major variables
// -----------------------
//
// alist - list of left end points of all subintervals
// considered up to now
// blist - list of right end points of all subintervals
// considered up to now
// rlist(i) - approximation to the integral over
// (alist(i),blist(i))
// rlist2 - array of dimension at least (limexp+2),
// containing the part of the epsilon table
// wich is still needed for further computations
// elist(i) - error estimate applying to rlist(i)
// maxerr - pointer to the interval with largest error
// estimate
// errmax - elist(maxerr)
// erlast - error on the interval currently subdivided
// (before that subdivision has taken place)
// area - sum of the integrals over the subintervals
// errsum - sum of the errors over the subintervals
// errbnd - requested accuracy max(epsabs,epsrel*
// abs(result))
// *****1 - variable for the left subinterval
// *****2 - variable for the right subinterval
// last - index for subdivision
// nres - number of calls to the extrapolation routine
// numrl2 - number of elements currently in rlist2. if an
// appropriate approximation to the compounded
// integral has been obtained, it is put in
// rlist2(numrl2) after numrl2 has been increased
// by one.
// small - length of the smallest interval considered up
// to now, multiplied by 1.5
// erlarg - sum of the errors over the intervals larger
// than the smallest interval considered up to now
// extrap - logical variable denoting that the routine
// is attempting to perform extrapolation. i.e.
// before subdividing the smallest interval we
// try to decrease the value of erlarg.
// noext - logical variable denoting that extrapolation
// is no longer allowed (true-value)
//
// machine dependent constants
// ---------------------------
//
// epmach is the largest relative spacing.
// uflow is the smallest positive magnitude.
// oflow is the largest positive magnitude.
//
//***first executable statement dqagie
epmach = Real.epsilon;
//
// test on validity of parameters
// -----------------------------
//
ier = 0;
neval = 0;
last = 0;
result = 0.0;
abserr = 0.0;
alist[1] = 0.0;
blist[1] = 0.1e1;
rlist[1] = 0.0;
elist[1] = 0.0;
iord[1] = 0;
if(epsabs <= 0.0 && epsrel < max(0.5e2*epmach,0.5e-28))
ier = 6;
if(ier == 6) goto l999;
//
//
// first approximation to the integral
// -----------------------------------
//
// determine the interval to be mapped onto (0,1).
// if inf = 2 the integral is computed as i = i1+i2, where
// i1 = integral of f over (-infinity,0),
// i2 = integral of f over (0,+infinity).
//
boun = bound;
if(inf == 2) boun = 0.0;
qk15i!(Real, Func)(f,boun,inf,0.0,1.0,result,abserr,
defabs,resabs);
//
// test on accuracy
//
last = 1;
rlist[1] = result;
elist[1] = abserr;
iord[1] = 1;
dres = fabs(result);
errbnd = max(epsabs,epsrel*dres);
if(abserr <= 1.0e2*epmach*defabs && abserr > errbnd) ier = 2;
if(limit == 1) ier = 1;
if(ier != 0 || (abserr <= errbnd && abserr != resabs) ||
abserr == 0.0) goto l130;
//
// initialization
// --------------
//
uflow = Real.min_normal;
oflow = Real.max;
rlist2[1] = result;
errmax = abserr;
maxerr = 1;
area = result;
errsum = abserr;
abserr = oflow;
nrmax = 1;
nres = 0;
ktmin = 0;
numrl2 = 2;
extrap = false;
noext = false;
ierro = 0;
iroff1 = 0;
iroff2 = 0;
iroff3 = 0;
ksgn = -1;
if(dres >= (0.1e1-0.5e2*epmach)*defabs) ksgn = 1;
//
// main do-loop
// ------------
//
for (last=2; last<=limit; last++) { // end: 90
//
// bisect the subinterval with nrmax-th largest error estimate.
//
a1 = alist[maxerr];
b1 = 0.5*(alist[maxerr]+blist[maxerr]);
a2 = b1;
b2 = blist[maxerr];
erlast = errmax;
qk15i(f,boun,inf,a1,b1,area1,error1,resabs,defab1);
qk15i(f,boun,inf,a2,b2,area2,error2,resabs,defab2);
//
// improve previous approximations to integral
// and error and test for accuracy.
//
area12 = area1+area2;
erro12 = error1+error2;
errsum = errsum+erro12-errmax;
area = area+area12-rlist[maxerr];
if(defab1 == error1 || defab2 == error2)goto l15;
if(fabs(rlist[maxerr]-area12) > 0.1e-4*fabs(area12)
|| erro12 < 0.99*errmax) goto l10;
if(extrap) iroff2 = iroff2+1;
if(!extrap) iroff1 = iroff1+1;
l10: if(last > 10 && erro12 > errmax) iroff3 = iroff3+1;
l15: rlist[maxerr] = area1;
rlist[last] = area2;
errbnd = max(epsabs,epsrel*fabs(area));
//
// test for roundoff error and eventually set error flag.
//
if(iroff1+iroff2 >= 10 || iroff3 >= 20) ier = 2;
if(iroff2 >= 5) ierro = 3;
//
// set error flag in the case that the number of
// subintervals equals limit.
//
if(last == limit) ier = 1;
//
// set error flag in the case of bad integrand behaviour
// at some points of the integration range.
//
if(max(fabs(a1),fabs(b2)) <= (0.1e1+0.1e3*epmach)*
(fabs(a2)+0.1e4*uflow)) ier = 4;
//
// append the newly-created intervals to the list.
//
if(error2 > error1) goto l20;
alist[last] = a2;
blist[maxerr] = b1;
blist[last] = b2;
elist[maxerr] = error1;
elist[last] = error2;
goto l30;
l20: alist[maxerr] = a2;
alist[last] = a1;
blist[last] = b1;
rlist[maxerr] = area2;
rlist[last] = area1;
elist[maxerr] = error2;
elist[last] = error1;
//
// call subroutine dqpsrt to maintain the descending ordering
// in the list of error estimates and select the subinterval
// with nrmax-th largest error estimate (to be bisected next).
//
l30: qpsrt!Real(limit,last,maxerr,errmax,elist.ptr,iord.ptr,nrmax);
if(errsum <= errbnd) goto l115;
if(ier != 0) goto l100;
if(last == 2) goto l80;
if(noext) goto l90;
erlarg = erlarg-erlast;
if(fabs(b1-a1) > small) erlarg = erlarg+erro12;
if(extrap) goto l40;
//
// test whether the interval to be bisected next is the
// smallest interval.
//
if(fabs(blist[maxerr]-alist[maxerr]) > small) goto l90;
extrap = true;
nrmax = 2;
l40: if(ierro == 3 || erlarg <= ertest) goto l60;
//
// the smallest interval has the largest error.
// before bisecting decrease the sum of the errors over the
// larger intervals (erlarg) and perform extrapolation.
//
id = nrmax;
jupbnd = last;
if(last > (2+limit/2)) jupbnd = limit+3-last;
for(k=id; k<=jupbnd; k++) { // end: 50
maxerr = iord[nrmax];
errmax = elist[maxerr];
if(fabs(blist[maxerr]-alist[maxerr]) > small) goto l90;
nrmax = nrmax+1;
l50: ;}
//
// perform extrapolation.
//
l60: numrl2 = numrl2+1;
rlist2[numrl2] = area;
qelg!Real(numrl2,rlist2.ptr,reseps,abseps,res3la.ptr,nres);
ktmin = ktmin+1;
if(ktmin > 5 && abserr < 0.1e-2*errsum) ier = 5;
if(abseps >= abserr) goto l70;
ktmin = 0;
abserr = abseps;
result = reseps;
correc = erlarg;
ertest = max(epsabs,epsrel*fabs(reseps));
if(abserr <= ertest) goto l100;
//
// prepare bisection of the smallest interval.
//
l70: if(numrl2 == 1) noext = true;
if(ier == 5) goto l100;
maxerr = iord[1];
errmax = elist[maxerr];
nrmax = 1;
extrap = false;
small = small*0.5;
erlarg = errsum;
goto l90;
l80: small = 0.375;
erlarg = errsum;
ertest = errbnd;
rlist2[2] = area;
l90: ;}
//
// set final result and error estimate.
// ------------------------------------
//
l100: if(abserr == oflow) goto l115;
if((ier+ierro) == 0) goto l110;
if(ierro == 3) abserr = abserr+correc;
if(ier == 0) ier = 3;
if(result != 0.0 && area != 0.0)goto l105;
if(abserr > errsum)goto l115;
if(area == 0.0) goto l130;
goto l110;
l105: if(abserr/fabs(result) > errsum/fabs(area))goto l115;
//
// test on divergence
//
l110: if(ksgn == (-1) && max(fabs(result),fabs(area)) <=
defabs*0.1e-1) goto l130;
if(0.1e-1 > (result/area) || (result/area) > 0.1e3
|| errsum > fabs(area)) ier = 6;
goto l130;
//
// compute global integral sum.
//
l115: result = 0.0;
for (k=1; k<=last; k++) { // end: 120
result = result+rlist[k];
l120: ;}
abserr = errsum;
l130: neval = 30*last-15;
if(inf == 2) neval = 2*neval;
if(ier > 2) ier=ier-1;
l999: return;
}
unittest
{
alias qagie!(float, float delegate(float)) fqagie;
alias qagie!(double, double delegate(double)) dqagie;
alias qagie!(double, double function(double)) dfqagie;
alias qagie!(real, real delegate(real)) rqagie;
}
| D |
/*
TEST_OUTPUT:
---
fail_compilation/fail20775.d(19): Error: cannot pass types that need destruction as variadic arguments
fail_compilation/fail20775.d(20): Error: cannot pass types that need destruction as variadic arguments
---
*/
extern void variadic(...);
struct S20775
{
int field;
~this() { }
}
void test()
{
auto v = S20775(0);
variadic(v,
S20775(1));
}
| D |
module android.java.java.lang.NumberFormatException_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import1 = android.java.java.io.PrintStream_d_interface;
import import4 = android.java.java.lang.Class_d_interface;
import import3 = android.java.java.lang.StackTraceElement_d_interface;
import import2 = android.java.java.io.PrintWriter_d_interface;
import import0 = android.java.java.lang.JavaThrowable_d_interface;
final class NumberFormatException : IJavaObject {
static immutable string[] _d_canCastTo = [
];
@Import this(arsd.jni.Default);
@Import this(string);
@Import string getMessage();
@Import string getLocalizedMessage();
@Import import0.JavaThrowable getCause();
@Import import0.JavaThrowable initCause(import0.JavaThrowable);
@Import @JavaName("toString") string toString_();
override string toString() { return arsd.jni.javaObjectToString(this); }
@Import void printStackTrace();
@Import void printStackTrace(import1.PrintStream);
@Import void printStackTrace(import2.PrintWriter);
@Import import0.JavaThrowable fillInStackTrace();
@Import import3.StackTraceElement[] getStackTrace();
@Import void setStackTrace(import3.StackTraceElement[]);
@Import void addSuppressed(import0.JavaThrowable);
@Import import0.JavaThrowable[] getSuppressed();
@Import import4.Class getClass();
@Import int hashCode();
@Import bool equals(IJavaObject);
@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 = "Ljava/lang/NumberFormatException;";
}
| D |
// ********
// ZS_Ghost //quarhodron
// ********
func void ZS_Ghost ()
{
var C_NPC Quarho; Quarho = Hlp_GetNpc (NONE_ADDON_111_Quarhodron);
if (Hlp_GetInstanceID(self) == Hlp_GetInstanceID(Quarho))
{
if (Ghost_SCKnowsHow2GetInAdanosTempel == FALSE)
{
Npc_PercEnable (self, PERC_ASSESSTALK , B_AssessTalk ); //geht in ZS_Talk
};
}
else
{
Npc_PercEnable (self, PERC_ASSESSTALK , B_AssessTalk ); //geht in ZS_Talk
};
Npc_PercEnable (self, PERC_ASSESSDAMAGE , B_AssessDamage );
B_ResetAll (self);
// ------ PercTime überschreiben ------
Npc_SetPercTime (self, 0.1);
AI_StandUp (self);
AI_SetWalkmode (self,NPC_WALK); // Walkmode für den Zustand
AI_GotoWP (self, self.wp); // Gehe zum Tagesablaufstart
AI_AlignToWP (self);
};
func int ZS_Ghost_Loop ()
{
// ------ Alle 3 Sekunden -------
if (Npc_GetStateTime(self) >= 5)
{
if (Npc_GetDistToNpc(self, hero) > PERC_DIST_DIALOG)
{
AI_AlignToWP (self);
Npc_SetStateTime(self,0);
};
B_RemoveGhost ();
};
return LOOP_CONTINUE;
};
func void ZS_Ghost_End ()
{
};
// *************
// ZS_GhostWusel //Rhademes
// *************
func void ZS_GhostWusel ()
{
Npc_PercEnable (self, PERC_ASSESSTALK , B_AssessTalk ); //geht in ZS_Talk
Npc_PercEnable (self, PERC_ASSESSDAMAGE , B_AssessDamage );//Joly:muss er haben, sonst kann man ihn schlagen!!!!!!
B_ResetAll (self);
AI_StandUp (self);
AI_SetWalkmode (self, NPC_WALK);
if (Hlp_StrCmp(Npc_GetNearestWP(self),self.wp) == FALSE)
{
AI_GotoWP (self, self.WP);
};
AI_GotoFP (self, "FP_ROAM");
};
func int ZS_GhostWusel_Loop ()
{
// ------ zum nächsten FP ------
if (Npc_GetStateTime (self) >= 3)
{
if (Npc_IsOnFP (self, "FP_ROAM"))
{
if (Wld_IsNextFPAvailable(self, "FP_ROAM"))
{
Npc_ClearAIQueue (self);
AI_GotoNextFP (self, "FP_ROAM");
};
}
else //nicht auf FP
{
if (!C_BodyStateContains (self, BS_WALK))
&& (!C_BodyStateContains (self, BS_RUN))
{
AI_GotoFP (self, "FP_ROAM");
};
};
Npc_SetStateTime (self, 0);
};
return LOOP_CONTINUE;
};
func void ZS_GhostWusel_End ()
{
};
| D |
/* Converted to D from x.h by htod */
module x;
//C #ifdef __cplusplus
//C extern "C" {
//C #endif /* __cplusplus */
//C struct my_winhttp_stream {
//C wchar_t * szAppName;
//C wchar_t * szUrl;
//C wchar_t * szHostName;
//C wchar_t * szUrlPath;
//C wchar_t * szHeader;
//char * lpData;
//unsigned long dwDataSize;
//C #ifdef MY_WINHTTP_INTERNAL
//C HANDLE hHeap;
//C URL_COMPONENTS urlComponents;
//C HINTERNET hSession, hConnect, hRequest;
//C #endif
//C };
struct my_winhttp_stream
{
wchar *szAppName;
wchar *szUrl;
wchar *szHostName;
wchar *szUrlPath;
wchar *szHeader;
}
//C extern struct my_winhttp_stream * my_winhttp_stream_open(const wchar_t *szAppName, const wchar_t *szUrl);
extern (C):
my_winhttp_stream * my_winhttp_stream_open(wchar *szAppName, wchar *szUrl);
//C extern void my_winhttp_stream_close(struct my_winhttp_stream *stream);
void my_winhttp_stream_close(my_winhttp_stream *stream);
//C extern const char * my_winhttp_stream_read_all(struct my_winhttp_stream *stream, unsigned long *dwSizeOptional);
char * my_winhttp_stream_read_all(my_winhttp_stream *stream, uint *dwSizeOptional);
//C #ifdef __cplusplus
//C }
//C #endif /* __cplusplus */
| D |
module kaiko.test.mockipcsession;
version (unittest) {
final class MockIPCSession {
private immutable(ubyte)[][] dataCollectionToSend_;
public immutable(ubyte)[][] receivedDataCollection_ = [[]];
public bool isClosed_;
public void addDataToSend(in ubyte[] data) {
this.dataCollectionToSend_ ~= data.idup;
}
public void close() {
this.isClosed_ = true;
}
@property
public immutable(ubyte)[] lastReceivedData() const {
if (this.receivedDataCollection_.length) {
return this.receivedDataCollection_[0];
} else {
return null;
}
}
public bool receive() {
if (this.isClosed_) {
return false;
}
if (this.receivedDataCollection_.length) {
this.receivedDataCollection_ = this.receivedDataCollection_[1..$];
}
return true;
}
public bool send() {
if (this.isClosed_) {
return false;
}
return true;
}
}
}
unittest {
auto session = new MockIPCSession();
session.receivedDataCollection_ ~= [1, 2, 3];
assert([] == session.lastReceivedData);
assert(session.receive());
assert([1, 2, 3] == session.lastReceivedData);
}
| D |
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Console.build/Console/ConsoleError.swift.o : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Swift3.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/String+ANSI.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Utilities/Bool+Polymorphic.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/Terminal+Command.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Command/Command.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Command/Runnable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Style/Console+ConsoleStyle.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Style/ConsoleStyle.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Command/Value.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Console+Ask.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/ConsoleStyle+Terminal.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/ConsoleColor+Terminal.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/Terminal.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Console+Ephemeral.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/ConsoleProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Stream/FileHandle+Stream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Stream/Pipe+Stream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Stream/Stream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Utilities/String+Trim.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Console+Confirm.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Command/Option.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Console+Run.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Command/Group.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Bar/Bar.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Bar/Loading/Console+LoadingBar.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Bar/Loading/LoadingBar.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Bar/Progress/Console+ProgressBar.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Bar/Progress/ProgressBar.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Clear/ConsoleClear.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Console+Center.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Color/ConsoleColor.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/ConsoleError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Console+Options.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Command/Argument.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Command/Command+Print.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Console+Print.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Console.build/ConsoleError~partial.swiftmodule : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Swift3.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/String+ANSI.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Utilities/Bool+Polymorphic.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/Terminal+Command.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Command/Command.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Command/Runnable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Style/Console+ConsoleStyle.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Style/ConsoleStyle.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Command/Value.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Console+Ask.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/ConsoleStyle+Terminal.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/ConsoleColor+Terminal.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/Terminal.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Console+Ephemeral.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/ConsoleProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Stream/FileHandle+Stream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Stream/Pipe+Stream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Stream/Stream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Utilities/String+Trim.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Console+Confirm.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Command/Option.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Console+Run.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Command/Group.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Bar/Bar.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Bar/Loading/Console+LoadingBar.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Bar/Loading/LoadingBar.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Bar/Progress/Console+ProgressBar.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Bar/Progress/ProgressBar.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Clear/ConsoleClear.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Console+Center.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Color/ConsoleColor.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/ConsoleError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Console+Options.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Command/Argument.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Command/Command+Print.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Console+Print.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Console.build/ConsoleError~partial.swiftdoc : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Swift3.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/String+ANSI.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Utilities/Bool+Polymorphic.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/Terminal+Command.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Command/Command.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Command/Runnable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Style/Console+ConsoleStyle.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Style/ConsoleStyle.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Command/Value.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Console+Ask.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/ConsoleStyle+Terminal.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/ConsoleColor+Terminal.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Terminal/Terminal.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Console+Ephemeral.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/ConsoleProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Stream/FileHandle+Stream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Stream/Pipe+Stream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Stream/Stream.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Utilities/String+Trim.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Console+Confirm.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Command/Option.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Console+Run.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Command/Group.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Bar/Bar.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Bar/Loading/Console+LoadingBar.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Bar/Loading/LoadingBar.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Bar/Progress/Console+ProgressBar.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Bar/Progress/ProgressBar.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Clear/ConsoleClear.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Console+Center.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Color/ConsoleColor.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/ConsoleError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Console+Options.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Command/Argument.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Command/Command+Print.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/console.git--2431895819212044213/Sources/Console/Console/Console+Print.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/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 mkk.backend.database;
import webtank.db.iface.factory: IDatabaseFactory;
import webtank.db.iface.database: IDatabase;
import webtank.db.consts: DBRole;
version(mkk_script)
{
private __gshared IDatabaseFactory _mkk_script_db_factory;
shared static this()
{
import webtank.net.service.config: readServiceConfigFile, getServiceDatabases;
import webtank.db.per_thread_pool: DBPerThreadPool;
import webtank.db.factory: DBFactory;
// Спец. конфигурация сервиса имеет настройки подключения ко всем базам
auto databases = readServiceConfigFile(`yarMKKScript`).getServiceDatabases();
_mkk_script_db_factory = new DBPerThreadPool(new DBFactory(databases));
}
}
// Получить фабрику баз данных по текущему сервису
IDatabaseFactory DBFactory() @property
{
version(mkk_script) {
return _mkk_script_db_factory; // Фабрика баз для исполнения скриптов без создания сервиса
}
else
{
import mkk.common.service: Service;
import std.exception: enforce;
IDatabaseFactory fact = cast(IDatabaseFactory) Service();
enforce(fact !is null, `Service is needed to be also an instance of IDatabaseFactory!`);
return fact;
}
}
// Идентификаторы баз в конфигурации сервиса
enum DBID: string
{
common = `commonDB`,
auth = DBRole.auth,
history = DBRole.history
}
// Метод для получения экземпляра объекта подключения к основной БД сервиса МКК
IDatabase getCommonDB() @property {
return DBFactory().getDB(DBID.common);
}
// Метод для получения экземпляра объекта подключения к БД аутентификации сервиса МКК
IDatabase getAuthDB() @property {
return DBFactory().getDB(DBID.auth);
}
// Метод для получения экземпляра объекта подключения к БД аутентификации сервиса МКК
IDatabase getHistoryDB() @property {
return DBFactory().getDB(DBID.history);
} | D |
module org.serviio.util.IcyInputStream;
import java.io.BufferedInputStream;
import java.io.FilterInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;
import java.net.URL;
import java.net.URLConnection;
public class IcyInputStream : FilterInputStream
{
private int metaInt = 0;
private int bytesRead = 0;
private URLConnection connection;
private String contentType;
public static IcyInputStream create(String url)
{
URLConnection connection = (new URL(url)).openConnection();
IcyInputStream icyInputStream = new IcyInputStream(new BufferedInputStream(openConnection(url)));
icyInputStream.setConnection(connection);
icyInputStream.init();
return icyInputStream;
}
private static InputStream openConnection(String urlString) {
URL url = new URL(urlString);
int port = url.getPort() == -1 ? 80 : url.getPort();
String path = ObjectValidator.isEmpty(url.getPath()) ? "/" : url.getPath();
Socket socket = new Socket(url.getHost(), port);
OutputStream os = socket.getOutputStream();
String userAgent = "Windows-Media-Player/12.0.7601.17514";
String req = String.format("GET %s HTTP/1.0\r\nuser-agent: %s\r\nConnection: keep-alive\r\n\r\n", cast(Object[])[ path, userAgent ]);
os.write(req.getBytes());
return socket.getInputStream();
}
private this(InputStream in_) {
super(in_);
}
private void setConnection(URLConnection connection) {
this.connection = connection;
}
public String getContentType() {
return contentType;
}
public String readLine() {
int ch = read();
StringBuilder sb = new StringBuilder();
while ((ch != 10) && (ch != 13) && (ch >= 0)) {
sb.append(cast(char)ch);
ch = read();
}
if ((ch == 10) || (ch == 13))
{
read();
}
return sb.toString();
}
private void init() {
contentType = connection.getContentType();
String metaIntString = "0";
if (contentType.equals("unknown/unknown")) {
String s = readLine();
if (!s.equals("ICY 200 OK")) {
throw new IOException((new StringBuilder()).append("SHOUTCast invalid response: ").append(s).toString());
}
while (true)
{
s = readLine();
if (s.isEmpty())
break;
}
}
else {
metaIntString = connection.getHeaderField("icy-metaint");
}
try {
metaInt = Integer.parseInt(metaIntString.trim());
} catch (NumberFormatException e) {
metaInt = 0;
}
}
public int read(byte[] b, int off, int len)
{
if (metaInt > 0) {
int bytesToMeta = metaInt - bytesRead;
if (bytesToMeta == 0)
readMeta();
else if ((bytesToMeta > 0) && (bytesToMeta < len)) {
len = bytesToMeta;
}
}
int read = super.read(b, off, len);
bytesRead = read;
return read;
}
private void readMeta() {
int size = read() * 16;
if (size > 1) {
byte[] meta = new byte[size];
int i = super.read(meta, 0, size);
if (i != size) {
throw new RuntimeException("WTF");
}
}
bytesRead = 0;
}
}
/* Location: D:\Program Files\Serviio\lib\serviio.jar
* Qualified Name: org.serviio.util.IcyInputStream
* JD-Core Version: 0.6.2
*/ | D |
module org.serviio.library.playlist.PlaylistParser;
import java.lang.String;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import org.serviio.util.FileUtils;
import org.serviio.util.HttpClient;
import org.serviio.util.HttpUtils;
import org.serviio.library.playlist.ParsedPlaylist;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class PlaylistParser
{
private static immutable Logger log;
private static const int ONLINE_MAX_BYTES_TO_READ = 102400;
private static PlaylistParser instance;
static this()
{
log = LoggerFactory.getLogger!(PlaylistParser)();
}
public static PlaylistParser getInstance()
{
if (instance is null) {
instance = new PlaylistParser();
}
return instance;
}
public ParsedPlaylist parse(String playlistLocation)
{
log.debug_(String.format("Parsing playlist '%s'", cast(Object[])[ playlistLocation ]));
byte[] playlistBytes = getPlaylistBytes(playlistLocation);
PlaylistParserStrategy strategy = PlaylistStrategyFactory.getStrategy(playlistBytes, playlistLocation);
if (strategy !is null) {
log.debug_(String.format("Found a suitable playlist parser strategy: %s", cast(Object[])[ strategy.getClass().getSimpleName() ]));
return strategy.parsePlaylist(playlistBytes, playlistLocation);
}
log.warn(String.format("Could not find a suitable playlist parser for file '%s', it is either not supported or the file is corrupted.", cast(Object[])[ playlistLocation ]));
return null;
}
private byte[] getPlaylistBytes(String playlistLocation)
{
InputStream is_ = null;
int maxLengthToRead = 2147483647;
if (HttpUtils.isHttpUrl(playlistLocation)) {
log.debug_("Reading playlist from URL");
is_ = HttpClient.getStreamFromURL(playlistLocation);
maxLengthToRead = ONLINE_MAX_BYTES_TO_READ;
} else {
log.debug_("Reading playlist from a local file");
is_ = new FileInputStream(playlistLocation);
}
return FileUtils.readFileBytes(is_, maxLengthToRead);
}
}
/* Location: D:\Program Files\Serviio\lib\serviio.jar
* Qualified Name: org.serviio.library.playlist.PlaylistParser
* JD-Core Version: 0.6.2
*/ | D |
/Users/son/Desktop/PickerView/DerivedData/PickerView/Build/Intermediates.noindex/PickerView.build/Debug-iphonesimulator/PickerView.build/Objects-normal/x86_64/ViewController.o : /Users/son/Desktop/PickerView/PickerView/SceneDelegate.swift /Users/son/Desktop/PickerView/PickerView/AppDelegate.swift /Users/son/Desktop/PickerView/PickerView/ViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.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/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.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.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/son/Desktop/PickerView/DerivedData/PickerView/Build/Intermediates.noindex/PickerView.build/Debug-iphonesimulator/PickerView.build/Objects-normal/x86_64/ViewController~partial.swiftmodule : /Users/son/Desktop/PickerView/PickerView/SceneDelegate.swift /Users/son/Desktop/PickerView/PickerView/AppDelegate.swift /Users/son/Desktop/PickerView/PickerView/ViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.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/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.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.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/son/Desktop/PickerView/DerivedData/PickerView/Build/Intermediates.noindex/PickerView.build/Debug-iphonesimulator/PickerView.build/Objects-normal/x86_64/ViewController~partial.swiftdoc : /Users/son/Desktop/PickerView/PickerView/SceneDelegate.swift /Users/son/Desktop/PickerView/PickerView/AppDelegate.swift /Users/son/Desktop/PickerView/PickerView/ViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.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/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.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.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/son/Desktop/PickerView/DerivedData/PickerView/Build/Intermediates.noindex/PickerView.build/Debug-iphonesimulator/PickerView.build/Objects-normal/x86_64/ViewController~partial.swiftsourceinfo : /Users/son/Desktop/PickerView/PickerView/SceneDelegate.swift /Users/son/Desktop/PickerView/PickerView/AppDelegate.swift /Users/son/Desktop/PickerView/PickerView/ViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.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/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.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.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.0.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
| D |
instance KDF_402_Corristo (Npc_Default)
{
//-------- primary data --------
name = "Corristo";
npctype = npctype_main;
guild = GIL_MAG;
level = 30;
voice = 14;
id = 402;
flags = NPC_FLAG_IMMORTAL;
//-------- abilities --------
attribute[ATR_STRENGTH] = 30;
attribute[ATR_DEXTERITY] = 40;
attribute[ATR_MANA_MAX] = 100;
attribute[ATR_MANA] = 100;
attribute[ATR_HITPOINTS_MAX]= 400;
attribute[ATR_HITPOINTS] = 400;
//-------- visuals --------
// animations
Mdl_SetVisual (self,"HUMANS.MDS");
Mdl_ApplyOverlayMds (self,"Humans_Mage.mds");
// body mesh,head mesh,hairmesh,face-tex,hair-tex,skin
Mdl_SetVisualBody (self,"hum_body_Naked0",0,1,"Hum_Head_Pony",84,1,KDF_ARMOR_H);
B_Scale (self);
Mdl_SetModelFatness (self,0);
Npc_SetAivar(self,AIV_IMPORTANT, TRUE);
fight_tactic = FAI_HUMAN_MAGE;
//-------- Talente --------
Npc_SetTalentSkill (self,HACK_NPC_TALENT_MAGE,6);
Npc_SetAivar(self,TALENT_MAGIC_CIRCLE, ( 6));
//-------- Spells--------
CreateInvItem(self,ItArRuneFireball);
//-------- inventory --------
CreateInvItems(self,ItFo_Potion_Health_02,2);
CreateInvItems(self,ItFo_Potion_Mana_02,2);
CreateInvItems(self,ItFoWine,2);
CreateInvItem (self,Schutzring_Magie2_Fire2);
CreateInvItem (self,ItMi_Stuff_OldCoin_02);
//-------------Daily Routine-------------
/*B_InitNPCAddins(self);*/ daily_routine = Rtn_start_402;
};
FUNC VOID Rtn_start_402 ()
{
TA_SitCampfire (19,05,06,55,"OCC_CHAPEL_MAGE_02");
TA_ReadBook (06,55,19,05,"OCC_CHAPEL_UPSTAIRS_RIGHT");
};
FUNC VOID Rtn_KDFRITUAL_402 ()
{
TA_Position (08,00,20,00,"OCC_CHAPEL_UPSTAIRS");
TA_Position (20,00,08,00,"OCC_CHAPEL_UPSTAIRS");
};
FUNC VOID Rtn_WAITFORSC_402 ()
{
TA_Position (08,00,20,00,"OCC_CHAPEL_HALL");
TA_Position (20,00,08,00,"OCC_CHAPEL_HALL");
};
| D |
// Written in the D programming language
/*
Copyright (C) 2004-2011 Christopher E. Miller
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.
socket.d 1.4
Jan 2011
Thanks to Benjamin Herr for his assistance.
*/
/**
* Example: See $(SAMPLESRC listener.d) and $(SAMPLESRC htmlget.d)
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: Christopher E. Miller, $(WEB klickverbot.at, David Nadlinger),
* $(WEB thecybershadow.net, Vladimir Panteleev)
* Source: $(PHOBOSSRC std/_socket.d)
* Macros:
* WIKI=Phobos/StdSocket
*/
module std.socket;
import core.stdc.stdint, std.string, std.c.string, std.c.stdlib, std.conv;
import core.stdc.config;
import core.time : dur, Duration;
import std.algorithm : max;
import std.exception : assumeUnique, enforce, collectException;
version(Windows)
{
pragma (lib, "ws2_32.lib");
pragma (lib, "wsock32.lib");
private import std.c.windows.windows, std.c.windows.winsock, std.windows.syserror;
private alias std.c.windows.winsock.timeval _ctimeval;
private alias std.c.windows.winsock.linger _clinger;
enum socket_t : SOCKET { INVALID_SOCKET }
private const int _SOCKET_ERROR = SOCKET_ERROR;
private int _lasterr()
{
return WSAGetLastError();
}
}
else version(Posix)
{
version(linux)
import std.c.linux.socket : AF_IPX, AF_APPLETALK, SOCK_RDM,
IPPROTO_IGMP, IPPROTO_GGP, IPPROTO_PUP, IPPROTO_IDP,
SD_RECEIVE, SD_SEND, SD_BOTH, MSG_NOSIGNAL, INADDR_NONE,
TCP_KEEPIDLE, TCP_KEEPINTVL;
else version(OSX)
import std.c.osx.socket : AF_IPX, AF_APPLETALK, SOCK_RDM,
IPPROTO_IGMP, IPPROTO_GGP, IPPROTO_PUP, IPPROTO_IDP,
SD_RECEIVE, SD_SEND, SD_BOTH, INADDR_NONE;
else version(FreeBSD)
{
import core.sys.posix.sys.socket;
import core.sys.posix.sys.select;
import std.c.freebsd.socket;
private enum SD_RECEIVE = SHUT_RD;
private enum SD_SEND = SHUT_WR;
private enum SD_BOTH = SHUT_RDWR;
}
else
static assert(false);
import core.sys.posix.netdb;
import core.sys.posix.sys.un : sockaddr_un;
private import core.sys.posix.fcntl;
private import core.sys.posix.unistd;
private import core.sys.posix.arpa.inet;
private import core.sys.posix.netinet.tcp;
private import core.sys.posix.netinet.in_;
private import core.sys.posix.sys.time;
//private import core.sys.posix.sys.select;
private import core.sys.posix.sys.socket;
private alias core.sys.posix.sys.time.timeval _ctimeval;
private alias core.sys.posix.sys.socket.linger _clinger;
private import core.stdc.errno;
enum socket_t : int32_t { init = -1 }
private const int _SOCKET_ERROR = -1;
private int _lasterr()
{
return errno;
}
}
else
{
static assert(0); // No socket support yet.
}
version(unittest)
{
static assert(is(uint32_t == uint));
static assert(is(uint16_t == ushort));
private import std.stdio : writefln;
// Print a message on exception instead of failing the unittest.
private void softUnittest(void delegate() test, int line = __LINE__)
{
try
test();
catch (Throwable e)
{
writefln(" --- std.socket(%d) test fails depending on environment ---", line);
writefln(" (%s)", e);
}
}
}
/// Base exception thrown by $(D std.socket).
class SocketException: Exception
{
///
this(string msg, string file = __FILE__, size_t line = __LINE__, Throwable next = null)
{
super(msg, file, line, next);
}
///
this(string msg, Throwable next, string file = __FILE__, size_t line = __LINE__)
{
super(msg, next, file, line);
}
}
// Needs to be public so that SocketOSException can be thrown outside of
// std.socket (since it uses it as a default argument), but it probably doesn't
// need to actually show up in the docs, since there's not really any public
// need for it outside of being a default argument.
string formatSocketError(int err)
{
version(Posix)
{
char[80] buf;
const(char)* cs;
version (linux)
{
cs = strerror_r(err, buf.ptr, buf.length);
}
else version (OSX)
{
auto errs = strerror_r(err, buf.ptr, buf.length);
if (errs == 0)
cs = buf.ptr;
else
return "Socket error " ~ to!string(err);
}
else version (FreeBSD)
{
auto errs = strerror_r(err, buf.ptr, buf.length);
if (errs == 0)
cs = buf.ptr;
else
return "Socket error " ~ to!string(err);
}
else
static assert(0);
auto len = strlen(cs);
if(cs[len - 1] == '\n')
len--;
if(cs[len - 1] == '\r')
len--;
return cs[0 .. len].idup;
}
else
version(Windows)
{
return sysErrorString(err);
}
else
return "Socket error " ~ to!string(err);
}
/// Retrieve the error message for the most recently encountered network error.
@property string lastSocketError()
{
return formatSocketError(_lasterr());
}
/// Socket exceptions representing network errors reported by the operating
/// system.
class SocketOSException: SocketException
{
int errorCode; /// Platform-specific error code.
///
this(string msg,
string file = __FILE__,
size_t line = __LINE__,
Throwable next = null,
int err = _lasterr(),
string function(int) errorFormatter = &formatSocketError)
{
errorCode = err;
if (msg.length)
super(msg ~ ": " ~ errorFormatter(err), file, line, next);
else
super(errorFormatter(err), file, line, next);
}
///
this(string msg,
Throwable next,
string file = __FILE__,
size_t line = __LINE__,
int err = _lasterr(),
string function(int) errorFormatter = &formatSocketError)
{
this(msg, file, line, next, err, errorFormatter);
}
///
this(string msg,
int err,
string function(int) errorFormatter = &formatSocketError,
string file = __FILE__,
size_t line = __LINE__,
Throwable next = null)
{
this(msg, file, line, next, err, errorFormatter);
}
}
/// Socket exceptions representing invalid parameters specified by user code.
class SocketParameterException: SocketException
{
///
this(string msg, string file = __FILE__, size_t line = __LINE__, Throwable next = null)
{
super(msg, file, line, next);
}
///
this(string msg, Throwable next, string file = __FILE__, size_t line = __LINE__)
{
super(msg, next, file, line);
}
}
/// Socket exceptions representing attempts to use network capabilities not
/// available on the current system.
class SocketFeatureException: SocketException
{
///
this(string msg, string file = __FILE__, size_t line = __LINE__, Throwable next = null)
{
super(msg, file, line, next);
}
///
this(string msg, Throwable next, string file = __FILE__, size_t line = __LINE__)
{
super(msg, next, file, line);
}
}
/// Return $(D true) if the last socket operation failed because the socket
/// was in non-blocking mode and the operation would have blocked.
bool wouldHaveBlocked()
{
version(Windows)
return _lasterr() == WSAEWOULDBLOCK;
else version(Posix)
return _lasterr() == EAGAIN;
else
static assert(0);
}
private __gshared typeof(&getnameinfo) getnameinfoPointer;
private __gshared typeof(&getaddrinfo) getaddrinfoPointer;
private __gshared typeof(&freeaddrinfo) freeaddrinfoPointer;
shared static this()
{
version(Windows)
{
WSADATA wd;
// Winsock will still load if an older version is present.
// The version is just a request.
int val;
val = WSAStartup(0x2020, &wd);
if(val) // Request Winsock 2.2 for IPv6.
throw new SocketOSException("Unable to initialize socket library", val);
// These functions may not be present on older Windows versions.
// See the comment in InternetAddress.toHostNameString() for details.
auto ws2Lib = GetModuleHandleA("ws2_32.dll");
if (ws2Lib)
{
getnameinfoPointer = cast(typeof(getnameinfoPointer))
GetProcAddress(ws2Lib, "getnameinfo");
getaddrinfoPointer = cast(typeof(getaddrinfoPointer))
GetProcAddress(ws2Lib, "getaddrinfo");
freeaddrinfoPointer = cast(typeof(freeaddrinfoPointer))
GetProcAddress(ws2Lib, "freeaddrinfo");
}
}
else version(Posix)
{
getnameinfoPointer = &getnameinfo;
getaddrinfoPointer = &getaddrinfo;
freeaddrinfoPointer = &freeaddrinfo;
}
}
shared static ~this()
{
version(Windows)
{
WSACleanup();
}
}
/**
* The communication domain used to resolve an address.
*/
enum AddressFamily: int
{
UNSPEC = AF_UNSPEC, /// Unspecified address family
UNIX = AF_UNIX, /// Local communication
INET = AF_INET, /// Internet Protocol version 4
IPX = AF_IPX, /// Novell IPX
APPLETALK = AF_APPLETALK, /// AppleTalk
INET6 = AF_INET6, /// Internet Protocol version 6
}
/**
* Communication semantics
*/
enum SocketType: int
{
STREAM = SOCK_STREAM, /// Sequenced, reliable, two-way communication-based byte streams
DGRAM = SOCK_DGRAM, /// Connectionless, unreliable datagrams with a fixed maximum length; data may be lost or arrive out of order
RAW = SOCK_RAW, /// Raw protocol access
RDM = SOCK_RDM, /// Reliably-delivered message datagrams
SEQPACKET = SOCK_SEQPACKET, /// Sequenced, reliable, two-way connection-based datagrams with a fixed maximum length
}
/**
* Protocol
*/
enum ProtocolType: int
{
IP = IPPROTO_IP, /// Internet Protocol version 4
ICMP = IPPROTO_ICMP, /// Internet Control Message Protocol
IGMP = IPPROTO_IGMP, /// Internet Group Management Protocol
GGP = IPPROTO_GGP, /// Gateway to Gateway Protocol
TCP = IPPROTO_TCP, /// Transmission Control Protocol
PUP = IPPROTO_PUP, /// PARC Universal Packet Protocol
UDP = IPPROTO_UDP, /// User Datagram Protocol
IDP = IPPROTO_IDP, /// Xerox NS protocol
RAW = IPPROTO_RAW, /// Raw IP packets
IPV6 = IPPROTO_IPV6, /// Internet Protocol version 6
}
/**
* $(D Protocol) is a class for retrieving protocol information.
*
* Example:
* ---
* auto proto = new Protocol;
* writeln("About protocol TCP:");
* if (proto.getProtocolByType(ProtocolType.TCP))
* {
* writefln(" Name: %s", proto.name);
* foreach(string s; proto.aliases)
* writefln(" Alias: %s", s);
* }
* else
* writeln(" No information found");
* ---
*/
class Protocol
{
/// These members are populated when one of the following functions are called successfully:
ProtocolType type;
string name; /// ditto
string[] aliases; /// ditto
void populate(protoent* proto)
{
type = cast(ProtocolType)proto.p_proto;
name = to!string(proto.p_name);
int i;
for(i = 0;; i++)
{
if(!proto.p_aliases[i])
break;
}
if(i)
{
aliases = new string[i];
for(i = 0; i != aliases.length; i++)
{
aliases[i] =
to!string(proto.p_aliases[i]);
}
}
else
{
aliases = null;
}
}
/** Returns: false on failure */
bool getProtocolByName(in char[] name)
{
protoent* proto;
proto = getprotobyname(toStringz(name));
if(!proto)
return false;
populate(proto);
return true;
}
/** Returns: false on failure */
// Same as getprotobynumber().
bool getProtocolByType(ProtocolType type)
{
protoent* proto;
proto = getprotobynumber(type);
if(!proto)
return false;
populate(proto);
return true;
}
}
unittest
{
softUnittest({
Protocol proto = new Protocol;
assert(proto.getProtocolByType(ProtocolType.TCP));
//writeln("About protocol TCP:");
//writefln("\tName: %s", proto.name);
// foreach(string s; proto.aliases)
// {
// writefln("\tAlias: %s", s);
// }
assert(proto.name == "tcp");
assert(proto.aliases.length == 1 && proto.aliases[0] == "TCP");
});
}
/**
* $(D Service) is a class for retrieving service information.
*
* Example:
* ---
* auto serv = new Service;
* writeln("About service epmap:");
* if (serv.getServiceByName("epmap", "tcp"))
* {
* writefln(" Service: %s", serv.name);
* writefln(" Port: %d", serv.port);
* writefln(" Protocol: %s", serv.protocolName);
* foreach (string s; serv.aliases)
* writefln(" Alias: %s", s);
* }
* else
* writefln(" No service for epmap.");
* ---
*/
class Service
{
/// These members are populated when one of the following functions are called successfully:
string name;
string[] aliases; /// ditto
ushort port; /// ditto
string protocolName; /// ditto
void populate(servent* serv)
{
name = to!string(serv.s_name);
port = ntohs(cast(ushort)serv.s_port);
protocolName = to!string(serv.s_proto);
int i;
for(i = 0;; i++)
{
if(!serv.s_aliases[i])
break;
}
if(i)
{
aliases = new string[i];
for(i = 0; i != aliases.length; i++)
{
aliases[i] =
to!string(serv.s_aliases[i]);
}
}
else
{
aliases = null;
}
}
/**
* If a protocol name is omitted, any protocol will be matched.
* Returns: false on failure.
*/
bool getServiceByName(in char[] name, in char[] protocolName = null)
{
servent* serv;
serv = getservbyname(toStringz(name), protocolName !is null ? toStringz(protocolName) : null);
if(!serv)
return false;
populate(serv);
return true;
}
/// ditto
bool getServiceByPort(ushort port, in char[] protocolName = null)
{
servent* serv;
serv = getservbyport(port, protocolName !is null ? toStringz(protocolName) : null);
if(!serv)
return false;
populate(serv);
return true;
}
}
unittest
{
softUnittest({
Service serv = new Service;
if(serv.getServiceByName("epmap", "tcp"))
{
// writefln("About service epmap:");
// writefln("\tService: %s", serv.name);
// writefln("\tPort: %d", serv.port);
// writefln("\tProtocol: %s", serv.protocolName);
// foreach(string s; serv.aliases)
// {
// writefln("\tAlias: %s", s);
// }
// For reasons unknown this is loc-srv on Wine and epmap on Windows
assert(serv.name == "loc-srv" || serv.name == "epmap", serv.name);
assert(serv.port == 135);
assert(serv.protocolName == "tcp");
}
else
{
writefln("No service for epmap.");
}
});
}
/**
* Class for exceptions thrown from an $(D InternetHost).
*/
class HostException: SocketOSException
{
///
this(string msg, string file = __FILE__, size_t line = __LINE__, Throwable next = null, int err = _lasterr())
{
super(msg, file, line, next, err);
}
///
this(string msg, Throwable next, string file = __FILE__, size_t line = __LINE__, int err = _lasterr())
{
super(msg, next, file, line, err);
}
///
this(string msg, int err, string file = __FILE__, size_t line = __LINE__, Throwable next = null)
{
super(msg, next, file, line, err);
}
}
/**
* $(D InternetHost) is a class for resolving IPv4 addresses.
*
* Consider using $(D getAddress), $(D parseAddress) and $(D Address) methods
* instead of using this class directly.
*
* Example:
* ---
* auto ih = new InternetHost;
*
* // Forward lookup
* writeln("About www.digitalmars.com:");
* if (ih.getHostByName("www.digitalmars.com"))
* {
* writefln(" Name: %s", ih.name);
* auto ip = InternetAddress.addrToString(ih.addrList[0]);
* writefln(" IP address: %s", ip);
* foreach (string s; ih.aliases)
* writefln(" Alias: %s", s);
* writeln("---");
*
* // Reverse lookup
* writefln("About IP %s:", ip);
* if (ih.getHostByAddr(ih.addrList[0]))
* {
* writefln(" Name: %s", ih.name);
* foreach (string s; ih.aliases)
* writefln(" Alias: %s", s);
* }
* else
* writeln(" Reverse lookup failed");
* }
* else
* writeln(" Can't resolve www.digitalmars.com");
* ---
*/
class InternetHost
{
/// These members are populated when one of the following functions are called successfully:
string name;
string[] aliases; /// ditto
uint[] addrList; /// ditto
void validHostent(hostent* he)
{
if(he.h_addrtype != cast(int)AddressFamily.INET || he.h_length != 4)
throw new HostException("Address family mismatch");
}
void populate(hostent* he)
{
int i;
char* p;
name = to!string(he.h_name);
for(i = 0;; i++)
{
p = he.h_aliases[i];
if(!p)
break;
}
if(i)
{
aliases = new string[i];
for(i = 0; i != aliases.length; i++)
{
aliases[i] =
to!string(he.h_aliases[i]);
}
}
else
{
aliases = null;
}
for(i = 0;; i++)
{
p = he.h_addr_list[i];
if(!p)
break;
}
if(i)
{
addrList = new uint[i];
for(i = 0; i != addrList.length; i++)
{
addrList[i] = ntohl(*(cast(uint*)he.h_addr_list[i]));
}
}
else
{
addrList = null;
}
}
private bool getHostNoSync(string opMixin, T)(T param)
{
mixin(opMixin);
if (!he)
return false;
validHostent(he);
populate(he);
return true;
}
version(Windows)
alias getHostNoSync getHost;
else
{
// posix systems use global state for return value, so we
// must synchronize across all threads
private bool getHost(string opMixin, T)(T param)
{
synchronized(this.classinfo)
return getHostNoSync!(opMixin, T)(param);
}
}
/**
* Resolve host name.
* Returns: false if unable to resolve.
*/
bool getHostByName(in char[] name)
{
static if (is(typeof(gethostbyname_r)))
{
return getHostNoSync!q{
hostent he_v;
hostent* he;
ubyte[256] buffer_v = void;
auto buffer = buffer_v[];
auto param_z = std.string.toStringz(param);
while (true)
{
he = &he_v;
int errno;
if (gethostbyname_r(param_z, he, buffer.ptr, buffer.length, &he, &errno) == ERANGE)
buffer.length = buffer.length * 2;
else
break;
}
}(name);
}
else
{
return getHost!q{
auto he = gethostbyname(toStringz(param));
}(name);
}
}
/**
* Resolve IPv4 address number.
*
* Params:
* addr = The IPv4 address to resolve, in host byte order.
* Returns:
* false if unable to resolve.
*/
bool getHostByAddr(uint addr)
{
return getHost!q{
auto x = htonl(param);
auto he = gethostbyaddr(&x, 4, cast(int)AddressFamily.INET);
}(addr);
}
/**
* Same as previous, but addr is an IPv4 address string in the
* dotted-decimal form $(I a.b.c.d).
* Returns: false if unable to resolve.
*/
bool getHostByAddr(in char[] addr)
{
return getHost!q{
auto x = inet_addr(std.string.toStringz(param));
enforce(x != INADDR_NONE,
new SocketParameterException("Invalid IPv4 address"));
auto he = gethostbyaddr(&x, 4, cast(int)AddressFamily.INET);
}(addr);
}
}
unittest
{
InternetHost ih = new InternetHost;
ih.getHostByAddr(0x7F_00_00_01);
assert(ih.addrList[0] == 0x7F_00_00_01);
ih.getHostByAddr("127.0.0.1");
assert(ih.addrList[0] == 0x7F_00_00_01);
softUnittest({
if (!ih.getHostByName("www.digitalmars.com"))
return; // don't fail if not connected to internet
//writefln("addrList.length = %d", ih.addrList.length);
assert(ih.addrList.length);
InternetAddress ia = new InternetAddress(ih.addrList[0], InternetAddress.PORT_ANY);
assert(ih.name == "www.digitalmars.com" || ih.name == "digitalmars.com",
ih.name);
// writefln("IP address = %s", ia.toAddrString());
// writefln("name = %s", ih.name);
// foreach(int i, string s; ih.aliases)
// {
// writefln("aliases[%d] = %s", i, s);
// }
// writefln("---");
//assert(ih.getHostByAddr(ih.addrList[0]));
// writefln("name = %s", ih.name);
// foreach(int i, string s; ih.aliases)
// {
// writefln("aliases[%d] = %s", i, s);
// }
});
}
/// Holds information about a socket _address retrieved by $(D getAddressInfo).
struct AddressInfo
{
AddressFamily family; /// Address _family
SocketType type; /// Socket _type
ProtocolType protocol; /// Protocol
Address address; /// Socket _address
string canonicalName; /// Canonical name, when $(D AddressInfoFlags.CANONNAME) is used.
}
// A subset of flags supported on all platforms with getaddrinfo.
/// Specifies option flags for $(D getAddressInfo).
enum AddressInfoFlags: int
{
/// The resulting addresses will be used in a call to $(D Socket.bind).
PASSIVE = AI_PASSIVE,
/// The canonical name is returned in $(D canonicalName) member in the first $(D AddressInfo).
CANONNAME = AI_CANONNAME,
/// The $(D node) parameter passed to $(D getAddressInfo) must be a numeric string.
/// This will suppress any potentially lengthy network host address lookups.
NUMERICHOST = AI_NUMERICHOST,
}
/// On POSIX, getaddrinfo uses its own error codes, and thus has its own
/// formatting function.
private string formatGaiError(int err)
{
version(Windows)
{
return sysErrorString(err);
}
else
{
synchronized
return to!string(gai_strerror(err));
}
}
/**
* Provides _protocol-independent translation from host names to socket
* addresses. If advanced functionality is not required, consider using
* $(D getAddress) for compatibility with older systems.
*
* Returns: Array with one $(D AddressInfo) per socket address.
*
* Throws: $(D SocketOSException) on failure, or $(D SocketFeatureException)
* if this functionality is not available on the current system.
*
* Params:
* node = string containing host name or numeric address
* options = optional additional parameters, identified by type:
* $(UL $(LI $(D string) - service name or port number)
* $(LI $(D AddressInfoFlags) - option flags)
* $(LI $(D AddressFamily) - address family to filter by)
* $(LI $(D SocketType) - socket type to filter by)
* $(LI $(D ProtocolType) - protocol to filter by))
*
* Example:
* ---
* // Roundtrip DNS resolution
* auto results = getAddressInfo("www.digitalmars.com");
* assert(results[0].address.toHostNameString() ==
* "digitalmars.com");
*
* // Canonical name
* results = getAddressInfo("www.digitalmars.com",
* AddressInfoFlags.CANONNAME);
* assert(results[0].canonicalName == "digitalmars.com");
*
* // IPv6 resolution
* results = getAddressInfo("ipv6.google.com");
* assert(results[0].family == AddressFamily.INET6);
*
* // Multihomed resolution
* results = getAddressInfo("google.com");
* assert(results.length > 1);
*
* // Parsing IPv4
* results = getAddressInfo("127.0.0.1",
* AddressInfoFlags.NUMERICHOST);
* assert(results.length && results[0].family ==
* AddressFamily.INET);
*
* // Parsing IPv6
* results = getAddressInfo("::1",
* AddressInfoFlags.NUMERICHOST);
* assert(results.length && results[0].family ==
* AddressFamily.INET6);
* ---
*/
AddressInfo[] getAddressInfo(T...)(in char[] node, T options)
{
const(char)[] service = null;
addrinfo hints;
hints.ai_family = AF_UNSPEC;
foreach (option; options)
{
static if (is(typeof(option) : const(char)[]))
service = option;
else
static if (is(typeof(option) == AddressInfoFlags))
hints.ai_flags |= option;
else
static if (is(typeof(option) == AddressFamily))
hints.ai_family = option;
else
static if (is(typeof(option) == SocketType))
hints.ai_socktype = option;
else
static if (is(typeof(option) == ProtocolType))
hints.ai_protocol = option;
else
static assert(0, "Unknown getAddressInfo option type: " ~ typeof(option).stringof);
}
return getAddressInfoImpl(node, service, &hints);
}
private AddressInfo[] getAddressInfoImpl(in char[] node, in char[] service, addrinfo* hints)
{
if (getaddrinfoPointer && freeaddrinfoPointer)
{
addrinfo* ai_res;
int ret = getaddrinfoPointer(
node is null ? null : std.string.toStringz(node),
service is null ? null : std.string.toStringz(service),
hints, &ai_res);
scope(exit) if (ai_res) freeaddrinfoPointer(ai_res);
enforce(ret == 0, new SocketOSException("getaddrinfo error", ret, &formatGaiError));
AddressInfo[] result;
// Use const to force UnknownAddressReference to copy the sockaddr.
for (const(addrinfo)* ai = ai_res; ai; ai = ai.ai_next)
result ~= AddressInfo(
cast(AddressFamily) ai.ai_family,
cast(SocketType ) ai.ai_socktype,
cast(ProtocolType ) ai.ai_protocol,
new UnknownAddressReference(ai.ai_addr, cast(socklen_t) ai.ai_addrlen),
ai.ai_canonname ? to!string(ai.ai_canonname) : null);
assert(result.length > 0);
return result;
}
throw new SocketFeatureException("Address info lookup is not available " ~
"on this system.");
}
unittest
{
softUnittest({
if (getaddrinfoPointer)
{
// Roundtrip DNS resolution
auto results = getAddressInfo("www.digitalmars.com");
assert(results[0].address.toHostNameString() == "digitalmars.com");
// Canonical name
results = getAddressInfo("www.digitalmars.com",
AddressInfoFlags.CANONNAME);
assert(results[0].canonicalName == "digitalmars.com");
// IPv6 resolution
//results = getAddressInfo("ipv6.google.com");
//assert(results[0].family == AddressFamily.INET6);
// Multihomed resolution
//results = getAddressInfo("google.com");
//assert(results.length > 1);
// Parsing IPv4
results = getAddressInfo("127.0.0.1", AddressInfoFlags.NUMERICHOST);
assert(results.length && results[0].family == AddressFamily.INET);
// Parsing IPv6
results = getAddressInfo("::1", AddressInfoFlags.NUMERICHOST);
assert(results.length && results[0].family == AddressFamily.INET6);
}
});
}
private ushort serviceToPort(in char[] service)
{
if (service == "")
return InternetAddress.PORT_ANY;
else
if (isNumeric(service))
return to!ushort(service);
else
{
auto s = new Service();
s.getServiceByName(service);
return s.port;
}
}
/**
* Provides _protocol-independent translation from host names to socket
* addresses. Uses $(D getAddressInfo) if the current system supports it,
* and $(D InternetHost) otherwise.
*
* Returns: Array with one $(D Address) instance per socket address.
*
* Throws: $(D SocketOSException) on failure.
*
* Example:
* ---
* writeln("Resolving www.digitalmars.com:");
* try
* {
* auto addresses = getAddress("www.digitalmars.com");
* foreach (address; addresses)
* writefln(" IP: %s", address.toAddrString());
* }
* catch (SocketException e)
* writefln(" Lookup failed: %s", e.msg);
* ---
*/
Address[] getAddress(in char[] hostname, in char[] service = null)
{
if (getaddrinfoPointer && freeaddrinfoPointer)
{
// use getAddressInfo
Address[] results;
auto infos = getAddressInfo(hostname, service);
foreach (ref info; infos)
results ~= info.address;
return results;
}
else
return getAddress(hostname, serviceToPort(service));
}
/// ditto
Address[] getAddress(in char[] hostname, ushort port)
{
if (getaddrinfoPointer && freeaddrinfoPointer)
return getAddress(hostname, to!string(port));
else
{
// use getHostByName
auto ih = new InternetHost;
if (!ih.getHostByName(hostname))
throw new AddressException(
text("Unable to resolve host '", hostname, "'"));
Address[] results;
foreach (uint addr; ih.addrList)
results ~= new InternetAddress(addr, port);
return results;
}
}
unittest
{
softUnittest({
auto addresses = getAddress("63.105.9.61");
assert(addresses.length && addresses[0].toAddrString() == "63.105.9.61");
if (getaddrinfoPointer)
{
// test via gethostbyname
auto getaddrinfoPointerBackup = getaddrinfoPointer;
getaddrinfoPointer = null;
scope(exit) getaddrinfoPointer = getaddrinfoPointerBackup;
addresses = getAddress("63.105.9.61");
assert(addresses.length && addresses[0].toAddrString() == "63.105.9.61");
}
});
}
/**
* Provides _protocol-independent parsing of network addresses. Does not
* attempt name resolution. Uses $(D getAddressInfo) with
* $(D AddressInfoFlags.NUMERICHOST) if the current system supports it, and
* $(D InternetAddress) otherwise.
*
* Returns: An $(D Address) instance representing specified address.
*
* Throws: $(D SocketException) on failure.
*
* Example:
* ---
* writeln("Enter IP address:");
* string ip = readln().chomp();
* try
* {
* Address address = parseAddress(ip);
* writefln("Looking up reverse of %s:",
* address.toAddrString());
* try
* {
* string reverse = address.toHostNameString();
* if (reverse)
* writefln(" Reverse name: %s", reverse);
* else
* writeln(" Reverse hostname not found.");
* }
* catch (SocketException e)
* writefln(" Lookup error: %s", e.msg);
* }
* catch (SocketException e)
* {
* writefln(" %s is not a valid IP address: %s",
* ip, e.msg);
* }
* ---
*/
Address parseAddress(in char[] hostaddr, in char[] service = null)
{
if (getaddrinfoPointer && freeaddrinfoPointer)
return getAddressInfo(hostaddr, service, AddressInfoFlags.NUMERICHOST)[0].address;
else
return parseAddress(hostaddr, serviceToPort(service));
}
/// ditto
Address parseAddress(in char[] hostaddr, ushort port)
{
if (getaddrinfoPointer && freeaddrinfoPointer)
return parseAddress(hostaddr, to!string(port));
else
{
auto in4_addr = InternetAddress.parse(hostaddr);
enforce(in4_addr != InternetAddress.ADDR_NONE,
new SocketParameterException("Invalid IP address"));
return new InternetAddress(in4_addr, port);
}
}
unittest
{
softUnittest({
auto address = parseAddress("63.105.9.61");
assert(address.toAddrString() == "63.105.9.61");
if (getaddrinfoPointer)
{
// test via inet_addr
auto getaddrinfoPointerBackup = getaddrinfoPointer;
getaddrinfoPointer = null;
scope(exit) getaddrinfoPointer = getaddrinfoPointerBackup;
address = parseAddress("63.105.9.61");
assert(address.toAddrString() == "63.105.9.61");
}
assert(collectException!SocketException(parseAddress("Invalid IP address")));
});
}
/**
* Class for exceptions thrown from an $(D Address).
*/
class AddressException: SocketOSException
{
///
this(string msg, string file = __FILE__, size_t line = __LINE__, Throwable next = null, int err = _lasterr())
{
super(msg, file, line, next, err);
}
///
this(string msg, Throwable next, string file = __FILE__, size_t line = __LINE__, int err = _lasterr())
{
super(msg, next, file, line, err);
}
///
this(string msg, int err, string file = __FILE__, size_t line = __LINE__, Throwable next = null)
{
super(msg, next, file, line, err);
}
}
/**
* $(D Address) is an abstract class for representing a socket addresses.
*
* Example:
* ---
* writeln("About www.google.com port 80:");
* try
* {
* Address[] addresses = getAddress("www.google.com", 80);
* writefln(" %d addresses found.", addresses.length);
* foreach (int i, Address a; addresses)
* {
* writefln(" Address %d:", i+1);
* writefln(" IP address: %s", a.toAddrString());
* writefln(" Hostname: %s", a.toHostNameString());
* writefln(" Port: %s", a.toPortString());
* writefln(" Service name: %s",
* a.toServiceNameString());
* }
* }
* catch (SocketException e)
* writefln(" Lookup error: %s", e.msg);
* ---
*/
abstract class Address
{
/// Returns pointer to underlying $(D sockaddr) structure.
abstract @property sockaddr* name();
abstract @property const(sockaddr)* name() const; /// ditto
/// Returns actual size of underlying $(D sockaddr) structure.
abstract @property socklen_t nameLen() const;
/// Family of this address.
@property AddressFamily addressFamily() const
{
return cast(AddressFamily) name.sa_family;
}
// Common code for toAddrString and toHostNameString
private final string toHostString(bool numeric) const
{
// getnameinfo() is the recommended way to perform a reverse (name)
// lookup on both Posix and Windows. However, it is only available
// on Windows XP and above, and not included with the WinSock import
// libraries shipped with DMD. Thus, we check for getnameinfo at
// runtime in the shared module constructor, and use it if it's
// available in the base class method. Classes for specific network
// families (e.g. InternetHost) override this method and use a
// deprecated, albeit commonly-available method when getnameinfo()
// is not available.
// http://technet.microsoft.com/en-us/library/aa450403.aspx
if (getnameinfoPointer)
{
auto buf = new char[NI_MAXHOST];
auto ret = getnameinfoPointer(
name, nameLen,
buf.ptr, cast(uint)buf.length,
null, 0,
numeric ? NI_NUMERICHOST : NI_NAMEREQD);
if (!numeric)
{
if (ret==EAI_NONAME)
return null;
version(Windows)
if (ret==WSANO_DATA)
return null;
}
enforce(ret == 0, new AddressException("Could not get " ~
(numeric ? "host address" : "host name")));
return assumeUnique(buf[0 .. strlen(buf.ptr)]);
}
throw new SocketFeatureException((numeric ? "Host address" : "Host name") ~
" lookup for this address family is not available on this system.");
}
// Common code for toPortString and toServiceNameString
private final string toServiceString(bool numeric) const
{
// See toHostNameString() for details about getnameinfo().
if (getnameinfoPointer)
{
auto buf = new char[NI_MAXSERV];
enforce(getnameinfoPointer(
name, nameLen,
null, 0,
buf.ptr, cast(uint)buf.length,
numeric ? NI_NUMERICSERV : NI_NAMEREQD
) == 0, new AddressException("Could not get " ~
(numeric ? "port number" : "service name")));
return assumeUnique(buf[0 .. strlen(buf.ptr)]);
}
throw new SocketFeatureException((numeric ? "Port number" : "Service name") ~
" lookup for this address family is not available on this system.");
}
/**
* Attempts to retrieve the host address as a human-readable string.
*
* Throws: $(D AddressException) on failure, or $(D SocketFeatureException)
* if address retrieval for this address family is not available on the
* current system.
*/
string toAddrString() const
{
return toHostString(true);
}
/**
* Attempts to retrieve the host name as a fully qualified domain name.
*
* Returns: The FQDN corresponding to this $(D Address), or $(D null) if
* the host name did not resolve.
*
* Throws: $(D AddressException) on error, or $(D SocketFeatureException)
* if host name lookup for this address family is not available on the
* current system.
*/
string toHostNameString() const
{
return toHostString(false);
}
/**
* Attempts to retrieve the numeric port number as a string.
*
* Throws: $(D AddressException) on failure, or $(D SocketFeatureException)
* if port number retrieval for this address family is not available on the
* current system.
*/
string toPortString() const
{
return toServiceString(true);
}
/**
* Attempts to retrieve the service name as a string.
*
* Throws: $(D AddressException) on failure, or $(D SocketFeatureException)
* if service name lookup for this address family is not available on the
* current system.
*/
string toServiceNameString() const
{
return toServiceString(false);
}
/// Human readable string representing this address.
override string toString() const
{
try
{
string host = toAddrString();
string port = toPortString();
if (host.indexOf(':') >= 0)
return "[" ~ host ~ "]:" ~ port;
else
return host ~ ":" ~ port;
}
catch (SocketException)
return "Unknown";
}
}
/**
* $(D UnknownAddress) encapsulates an unknown socket address.
*/
class UnknownAddress: Address
{
protected:
sockaddr sa;
public:
override @property sockaddr* name()
{
return &sa;
}
override @property const(sockaddr)* name() const
{
return &sa;
}
override @property socklen_t nameLen() const
{
return cast(socklen_t) sa.sizeof;
}
}
/**
* $(D UnknownAddressReference) encapsulates a reference to an arbitrary
* socket address.
*/
class UnknownAddressReference: Address
{
protected:
sockaddr* sa;
socklen_t len;
public:
/// Constructs an $(D Address) with a reference to the specified $(D sockaddr).
this(sockaddr* sa, socklen_t len)
{
this.sa = sa;
this.len = len;
}
/// Constructs an $(D Address) with a copy of the specified $(D sockaddr).
this(const(sockaddr)* sa, socklen_t len)
{
this.sa = cast(sockaddr*) (cast(ubyte*)sa)[0..len].dup.ptr;
this.len = len;
}
override @property sockaddr* name()
{
return sa;
}
override @property const(sockaddr)* name() const
{
return sa;
}
override @property socklen_t nameLen() const
{
return cast(socklen_t) len;
}
}
/**
* $(D InternetAddress) encapsulates an IPv4 (Internet Protocol version 4)
* socket address.
*
* Consider using $(D getAddress), $(D parseAddress) and $(D Address) methods
* instead of using this class directly.
*/
class InternetAddress: Address
{
protected:
sockaddr_in sin;
this()
{
}
public:
override @property sockaddr* name()
{
return cast(sockaddr*)&sin;
}
override @property const(sockaddr)* name() const
{
return cast(const(sockaddr)*)&sin;
}
override @property socklen_t nameLen() const
{
return cast(socklen_t) sin.sizeof;
}
enum uint ADDR_ANY = INADDR_ANY; /// Any IPv4 host address.
enum uint ADDR_NONE = INADDR_NONE; /// An invalid IPv4 host address.
enum ushort PORT_ANY = 0; /// Any IPv4 port number.
/// Returns the IPv4 _port number (in host byte order).
@property ushort port() const
{
return ntohs(sin.sin_port);
}
/// Returns the IPv4 address number (in host byte order).
@property uint addr() const
{
return ntohl(sin.sin_addr.s_addr);
}
/**
* Construct a new $(D InternetAddress).
* Params:
* addr = an IPv4 address string in the dotted-decimal form a.b.c.d,
* or a host name which will be resolved using an $(D InternetHost)
* object.
* port = port number, may be $(D PORT_ANY).
*/
this(in char[] addr, ushort port)
{
uint uiaddr = parse(addr);
if(ADDR_NONE == uiaddr)
{
InternetHost ih = new InternetHost;
if(!ih.getHostByName(addr))
//throw new AddressException("Invalid internet address");
throw new AddressException(
text("Unable to resolve host '", addr, "'"));
uiaddr = ih.addrList[0];
}
sin.sin_family = AddressFamily.INET;
sin.sin_addr.s_addr = htonl(uiaddr);
sin.sin_port = htons(port);
}
/**
* Construct a new $(D InternetAddress).
* Params:
* addr = (optional) an IPv4 address in host byte order, may be $(D ADDR_ANY).
* port = port number, may be $(D PORT_ANY).
*/
this(uint addr, ushort port)
{
sin.sin_family = AddressFamily.INET;
sin.sin_addr.s_addr = htonl(addr);
sin.sin_port = htons(port);
}
/// ditto
this(ushort port)
{
sin.sin_family = AddressFamily.INET;
sin.sin_addr.s_addr = ADDR_ANY;
sin.sin_port = htons(port);
}
/// Human readable string representing the IPv4 address in dotted-decimal form.
override string toAddrString() const
{
return to!string(inet_ntoa(sin.sin_addr));
}
/// Human readable string representing the IPv4 port.
override string toPortString() const
{
return std.conv.to!string(port);
}
/**
* Attempts to retrieve the host name as a fully qualified domain name.
*
* Returns: The FQDN corresponding to this $(D InternetAddress), or
* $(D null) if the host name did not resolve.
*
* Throws: $(D AddressException) on error.
*/
override string toHostNameString() const
{
// getnameinfo() is the recommended way to perform a reverse (name)
// lookup on both Posix and Windows. However, it is only available
// on Windows XP and above, and not included with the WinSock import
// libraries shipped with DMD. Thus, we check for getnameinfo at
// runtime in the shared module constructor, and fall back to the
// deprecated getHostByAddr() if it could not be found. See also:
// http://technet.microsoft.com/en-us/library/aa450403.aspx
if (getnameinfoPointer)
return super.toHostNameString();
else
{
auto host = new InternetHost();
if (!host.getHostByAddr(ntohl(sin.sin_addr.s_addr)))
return null;
return host.name;
}
}
/**
* Parse an IPv4 address string in the dotted-decimal form $(I a.b.c.d)
* and return the number.
* Returns: If the string is not a legitimate IPv4 address,
* $(D ADDR_NONE) is returned.
*/
static uint parse(in char[] addr)
{
return ntohl(inet_addr(std.string.toStringz(addr)));
}
/**
* Convert an IPv4 address number in host byte order to a human readable
* string representing the IPv4 address in dotted-decimal form.
*/
static string addrToString(uint addr)
{
in_addr sin_addr;
sin_addr.s_addr = htonl(addr);
return to!string(inet_ntoa(sin_addr));
}
}
unittest
{
softUnittest({
const InternetAddress ia = new InternetAddress("63.105.9.61", 80);
assert(ia.toString() == "63.105.9.61:80");
});
softUnittest({
// test reverse lookup
auto ih = new InternetHost;
if (ih.getHostByName("digitalmars.com"))
{
const ia = new InternetAddress(ih.addrList[0], 80);
assert(ia.toHostNameString() == "digitalmars.com");
if (getnameinfoPointer)
{
// test reverse lookup, via gethostbyaddr
auto getnameinfoPointerBackup = getnameinfoPointer;
getnameinfoPointer = null;
scope(exit) getnameinfoPointer = getnameinfoPointerBackup;
assert(ia.toHostNameString() == "digitalmars.com");
}
}
});
version (SlowTests)
softUnittest({
// test failing reverse lookup
const InternetAddress ia = new InternetAddress("127.114.111.120", 80);
assert(ia.toHostNameString() is null);
if (getnameinfoPointer)
{
// test failing reverse lookup, via gethostbyaddr
auto getnameinfoPointerBackup = getnameinfoPointer;
getnameinfoPointer = null;
scope(exit) getnameinfoPointer = getnameinfoPointerBackup;
assert(ia.toHostNameString() is null);
}
});
}
/**
* $(D Internet6Address) encapsulates an IPv6 (Internet Protocol version 6)
* socket address.
*
* Consider using $(D getAddress), $(D parseAddress) and $(D Address) methods
* instead of using this class directly.
*/
class Internet6Address: Address
{
protected:
sockaddr_in6 sin6;
this()
{
}
public:
override @property sockaddr* name()
{
return cast(sockaddr*)&sin6;
}
override @property const(sockaddr)* name() const
{
return cast(const(sockaddr)*)&sin6;
}
override @property socklen_t nameLen() const
{
return cast(socklen_t) sin6.sizeof;
}
/// Any IPv6 host address.
static @property ref const(ubyte)[16] ADDR_ANY()
{
const(ubyte)[16]* addr;
static if (is(typeof(IN6ADDR_ANY)))
return addr = &IN6ADDR_ANY.s6_addr, *addr;
else
static if (is(typeof(in6addr_any)))
return addr = &in6addr_any.s6_addr, *addr;
else
static assert(0);
}
/// Any IPv6 port number.
enum ushort PORT_ANY = 0;
/// Returns the IPv6 port number.
@property ushort port() const
{
return ntohs(sin6.sin6_port);
}
/// Returns the IPv6 address.
@property ubyte[16] addr() const
{
return sin6.sin6_addr.s6_addr;
}
/**
* Construct a new $(D Internet6Address).
* Params:
* addr = an IPv6 host address string in the form described in RFC 2373,
* or a host name which will be resolved using $(D getAddressInfo).
* service = (optional) service name.
*/
this(in char[] addr, in char[] service = null)
{
auto results = getAddressInfo(addr, service, AddressFamily.INET6);
assert(results.length && results[0].family == AddressFamily.INET6);
sin6 = *cast(sockaddr_in6*)results[0].address.name;
}
/**
* Construct a new $(D Internet6Address).
* Params:
* addr = an IPv6 host address string in the form described in RFC 2373,
* or a host name which will be resolved using $(D getAddressInfo).
* port = port number, may be $(D PORT_ANY).
*/
this(in char[] addr, ushort port)
{
if (port == PORT_ANY)
this(addr);
else
this(addr, to!string(port));
}
/**
* Construct a new $(D Internet6Address).
* Params:
* addr = (optional) an IPv6 host address in host byte order, or
* $(D ADDR_ANY).
* port = port number, may be $(D PORT_ANY).
*/
this(ubyte[16] addr, ushort port)
{
sin6.sin6_family = AddressFamily.INET6;
sin6.sin6_addr.s6_addr = addr;
sin6.sin6_port = htons(port);
}
/// ditto
this(ushort port)
{
sin6.sin6_family = AddressFamily.INET6;
sin6.sin6_addr.s6_addr = ADDR_ANY;
sin6.sin6_port = htons(port);
}
/**
* Parse an IPv6 host address string as described in RFC 2373, and return the
* address.
* Throws: $(D SocketException) on error.
*/
static ubyte[16] parse(in char[] addr)
{
// Although we could use inet_pton here, it's only available on Windows
// versions starting with Vista, so use getAddressInfo with NUMERICHOST
// instead.
auto results = getAddressInfo(addr, AddressInfoFlags.NUMERICHOST);
if (results.length && results[0].family == AddressFamily.INET6)
return (cast(sockaddr_in6*)results[0].address.name).sin6_addr.s6_addr;
throw new AddressException("Not an IPv6 address", 0);
}
}
unittest
{
softUnittest({
const Internet6Address ia = new Internet6Address("::1", 80);
assert(ia.toString() == "[::1]:80");
});
}
version(StdDdoc)
{
/**
* $(D UnixAddress) encapsulates an address for a Unix domain socket
* ($(D AF_UNIX)). Available only on supported systems.
*/
class UnixAddress: Address
{
/// Construct a new $(D UnixAddress) from the specified path.
this(in char[] path);
/// Get the underlying _path.
@property string path() const;
/// ditto
override string toString() const;
}
}
else
static if (is(sockaddr_un))
{
class UnixAddress: Address
{
protected:
sockaddr_un* sun;
socklen_t len;
this()
{
}
public:
override @property sockaddr* name()
{
return cast(sockaddr*)sun;
}
override @property const(sockaddr)* name() const
{
return cast(const(sockaddr)*)sun;
}
override @property socklen_t nameLen() const
{
return len;
}
this(in char[] path)
{
len = cast(socklen_t)(sockaddr_un.init.sun_path.offsetof + path.length + 1);
sun = cast(sockaddr_un*) (new ubyte[len]).ptr;
sun.sun_family = AF_UNIX;
sun.sun_path.ptr[0..path.length] = (cast(byte[]) path)[];
sun.sun_path.ptr[path.length] = 0;
}
@property string path() const
{
return to!string(sun.sun_path.ptr);
}
override string toString() const
{
return path;
}
}
unittest
{
import core.stdc.stdio : remove;
immutable ubyte[] data = [1, 2, 3, 4];
Socket[2] pair;
auto name = "unix-address-family-unittest-socket-name";
auto address = new UnixAddress(name);
auto listener = new Socket(AddressFamily.UNIX, SocketType.STREAM);
scope(exit) listener.close();
listener.bind(address);
scope(exit) remove(toStringz(name));
listener.listen(1);
pair[0] = new Socket(AddressFamily.UNIX, SocketType.STREAM);
scope(exit) listener.close();
pair[0].connect(address);
scope(exit) pair[0].close();
pair[1] = listener.accept();
scope(exit) pair[1].close();
pair[0].send(data);
auto buf = new ubyte[data.length];
pair[1].receive(buf);
assert(buf == data);
}
}
/**
* Class for exceptions thrown by $(D Socket.accept).
*/
class SocketAcceptException: SocketOSException
{
///
this(string msg, string file = __FILE__, size_t line = __LINE__, Throwable next = null, int err = _lasterr())
{
super(msg, file, line, next, err);
}
///
this(string msg, Throwable next, string file = __FILE__, size_t line = __LINE__, int err = _lasterr())
{
super(msg, next, file, line, err);
}
///
this(string msg, int err, string file = __FILE__, size_t line = __LINE__, Throwable next = null)
{
super(msg, next, file, line, err);
}
}
/// How a socket is shutdown:
enum SocketShutdown: int
{
RECEIVE = SD_RECEIVE, /// socket receives are disallowed
SEND = SD_SEND, /// socket sends are disallowed
BOTH = SD_BOTH, /// both RECEIVE and SEND
}
/// Flags may be OR'ed together:
enum SocketFlags: int
{
NONE = 0, /// no flags specified
OOB = MSG_OOB, /// out-of-band stream data
PEEK = MSG_PEEK, /// peek at incoming data without removing it from the queue, only for receiving
DONTROUTE = MSG_DONTROUTE, /// data should not be subject to routing; this flag may be ignored. Only for sending
}
private mixin template FieldProxy(string target, string field)
{
mixin(`
@property typeof(`~target~`) `~field~`() const
{
return `~target~`;
}
/// ditto
@property typeof(`~target~`) `~field~`(typeof(`~target~`) value)
{
return `~target~` = value;
}
`);
}
/// Duration timeout value.
struct TimeVal
{
_ctimeval ctimeval;
alias typeof(ctimeval.tv_sec) tv_sec_t;
alias typeof(ctimeval.tv_usec) tv_usec_t;
version (StdDdoc) // no DDoc for string mixins, can't forward individual fields
{
tv_sec_t seconds; /// Number of _seconds.
tv_usec_t microseconds; /// Number of additional _microseconds.
}
else
{
// D interface
mixin FieldProxy!(`ctimeval.tv_sec`, `seconds`);
mixin FieldProxy!(`ctimeval.tv_usec`, `microseconds`);
}
}
/**
* A collection of sockets for use with $(D Socket.select).
*
* $(D SocketSet) allows specifying the capacity of the underlying
* $(D fd_set), however users should be aware that the exact meaning of this
* value varies depending on the current platform:
* $(UL $(LI On POSIX, $(D fd_set) is a bit array of file descriptors. The
* $(D SocketSet) capacity specifies the highest file descriptor which can be
* stored in the set.)
* $(LI on Windows, $(D fd_set) is an array of socket handles. Capacity
* indicates the actual number of sockets that can be stored in the set.))
*/
class SocketSet
{
private:
version(Windows)
{
// the maximum number of sockets the allocated fd_set can hold
uint fdsetCapacity;
fd_set* set;
@property uint count() const { return set.fd_count; }
}
else version(Posix)
{
int fdsetMax;
fd_set setData;
final @property fd_set* set() { return &setData; }
final @property const(fd_set)* set() const { return &setData; }
int maxfd;
uint count;
}
public:
/**
* Set the capacity of this $(D SocketSet). The exact meaning of the
* $(D max) parameter varies from platform to platform.
* Throws: $(D SocketParameterException) if $(D max) exceeds this
* platform's maximum socket set size.
*/
this(uint max)
{
version(Windows)
{
fdsetCapacity = max;
set = FD_CREATE(max);
}
else version(Posix)
{
// TODO (needs druntime changes)
enforce(max <= FD_SETSIZE, new SocketParameterException(
"Maximum socket set size exceeded for this platform"));
fdsetMax = max;
}
reset();
}
/// Uses the default capacity for the system.
this()
{
this(FD_SETSIZE);
}
/// Reset the $(D SocketSet) so that there are 0 $(D Socket)s in the collection.
void reset()
{
FD_ZERO(set);
version(Posix)
{
maxfd = -1;
count = 0;
}
}
void add(socket_t s)
{
// Make sure too many sockets don't get added.
version(Windows)
{
enforce(count < fdsetCapacity, new SocketParameterException(
"SocketSet capacity exceeded"));
}
else version(Posix)
{
enforce(s < fdsetMax, new SocketParameterException(
"Socket descriptor index exceeds SocketSet capacity"));
}
FD_SET(s, set);
version(Posix)
{
++count;
if(s > maxfd)
maxfd = s;
}
}
/// Add a $(D Socket) to the collection.
/// Throws: $(D SocketParameterException) if the capacity of this
/// $(D SocketSet) has been exceeded.
void add(Socket s)
{
add(s.sock);
}
void remove(socket_t s)
{
version(Posix)
{
enforce(s < fdsetMax, new SocketParameterException(
"Socket descriptor index exceeds SocketSet capacity"));
}
FD_CLR(s, set);
version(Posix)
{
--count;
// note: adjusting maxfd would require scanning the set, not worth it
}
}
/// Remove this $(D Socket) from the collection.
void remove(Socket s)
{
remove(s.sock);
}
int isSet(socket_t s) const
{
version(Posix)
{
enforce(s < fdsetMax, new SocketParameterException(
"Socket descriptor index exceeds SocketSet capacity"));
}
return FD_ISSET(s, set);
}
/// Returns nonzero if this $(D Socket) is in the collection.
int isSet(Socket s) const
{
return isSet(s.sock);
}
/// Return the capacity of this $(D SocketSet). The exact meaning of the
/// return value varies from platform to platform.
@property uint max() const
{
version(Windows)
{
return fdsetCapacity;
}
else version(Posix)
{
return fdsetMax;
}
}
fd_set* toFd_set()
{
return set;
}
int selectn() const
{
version(Windows)
{
return count;
}
else version(Posix)
{
return maxfd + 1;
}
}
}
/// The level at which a socket option is defined:
enum SocketOptionLevel: int
{
SOCKET = SOL_SOCKET, /// Socket level
IP = ProtocolType.IP, /// Internet Protocol version 4 level
ICMP = ProtocolType.ICMP, /// Internet Control Message Protocol level
IGMP = ProtocolType.IGMP, /// Internet Group Management Protocol level
GGP = ProtocolType.GGP, /// Gateway to Gateway Protocol level
TCP = ProtocolType.TCP, /// Transmission Control Protocol level
PUP = ProtocolType.PUP, /// PARC Universal Packet Protocol level
UDP = ProtocolType.UDP, /// User Datagram Protocol level
IDP = ProtocolType.IDP, /// Xerox NS protocol level
RAW = ProtocolType.RAW, /// Raw IP packet level
IPV6 = ProtocolType.IPV6, /// Internet Protocol version 6 level
}
/// _Linger information for use with SocketOption.LINGER.
struct Linger
{
_clinger clinger;
version (StdDdoc) // no DDoc for string mixins, can't forward individual fields
{
private alias typeof(_clinger.init.l_onoff ) l_onoff_t;
private alias typeof(_clinger.init.l_linger) l_linger_t;
l_onoff_t on; /// Nonzero for _on.
l_linger_t time; /// Linger _time.
}
else
{
// D interface
mixin FieldProxy!(`clinger.l_onoff`, `on`);
mixin FieldProxy!(`clinger.l_linger`, `time`);
}
}
/// Specifies a socket option:
enum SocketOption: int
{
DEBUG = SO_DEBUG, /// Record debugging information
BROADCAST = SO_BROADCAST, /// Allow transmission of broadcast messages
REUSEADDR = SO_REUSEADDR, /// Allow local reuse of address
LINGER = SO_LINGER, /// Linger on close if unsent data is present
OOBINLINE = SO_OOBINLINE, /// Receive out-of-band data in band
SNDBUF = SO_SNDBUF, /// Send buffer size
RCVBUF = SO_RCVBUF, /// Receive buffer size
DONTROUTE = SO_DONTROUTE, /// Do not route
SNDTIMEO = SO_SNDTIMEO, /// Send timeout
RCVTIMEO = SO_RCVTIMEO, /// Receive timeout
ERROR = SO_ERROR, /// Retrieve and clear error status
KEEPALIVE = SO_KEEPALIVE, /// Enable keep-alive packets
ACCEPTCONN = SO_ACCEPTCONN, /// Listen
RCVLOWAT = SO_RCVLOWAT, /// Minimum number of input bytes to process
SNDLOWAT = SO_SNDLOWAT, /// Minimum number of output bytes to process
TYPE = SO_TYPE, /// Socket type
// SocketOptionLevel.TCP:
TCP_NODELAY = .TCP_NODELAY, /// Disable the Nagle algorithm for send coalescing
// SocketOptionLevel.IPV6:
IPV6_UNICAST_HOPS = .IPV6_UNICAST_HOPS, /// IP unicast hop limit
IPV6_MULTICAST_IF = .IPV6_MULTICAST_IF, /// IP multicast interface
IPV6_MULTICAST_LOOP = .IPV6_MULTICAST_LOOP, /// IP multicast loopback
IPV6_MULTICAST_HOPS = .IPV6_MULTICAST_HOPS, /// IP multicast hops
IPV6_JOIN_GROUP = .IPV6_JOIN_GROUP, /// Add an IP group membership
IPV6_LEAVE_GROUP = .IPV6_LEAVE_GROUP, /// Drop an IP group membership
IPV6_V6ONLY = .IPV6_V6ONLY, /// Treat wildcard bind as AF_INET6-only
}
/**
* $(D Socket) is a class that creates a network communication endpoint using
* the Berkeley sockets interface.
*/
class Socket
{
private:
socket_t sock;
AddressFamily _family;
version(Windows)
bool _blocking = false; /// Property to get or set whether the socket is blocking or nonblocking.
// The WinSock timeouts seem to be effectively skewed by a constant
// offset of about half a second (value in milliseconds). This has
// been confirmed on updated (as of Jun 2011) Windows XP, Windows 7
// and Windows Server 2008 R2 boxes. The unittest below tests this
// behavior.
enum WINSOCK_TIMEOUT_SKEW = 500;
unittest
{
version(SlowTests)
softUnittest({
import std.datetime;
enum msecs = 1000;
auto pair = socketPair();
auto sock = pair[0];
sock.setOption(SocketOptionLevel.SOCKET,
SocketOption.RCVTIMEO, dur!"msecs"(msecs));
auto sw = StopWatch(AutoStart.yes);
ubyte[1] buf;
sock.receive(buf);
sw.stop();
Duration readBack = void;
sock.getOption(SocketOptionLevel.SOCKET, SocketOption.RCVTIMEO, readBack);
assert(readBack.total!"msecs" == msecs);
assert(sw.peek().msecs > msecs-100 && sw.peek().msecs < msecs+100);
});
}
void setSock(socket_t handle)
{
assert(handle != socket_t.init);
sock = handle;
// Set the option to disable SIGPIPE on send() if the platform
// has it (e.g. on OS X).
static if (is(typeof(SO_NOSIGPIPE)))
{
setOption(SocketOptionLevel.SOCKET, cast(SocketOption)SO_NOSIGPIPE, true);
}
}
// For use with accepting().
protected this()
{
}
public:
/**
* Create a blocking socket. If a single protocol type exists to support
* this socket type within the address family, the $(D ProtocolType) may be
* omitted.
*/
this(AddressFamily af, SocketType type, ProtocolType protocol)
{
_family = af;
auto handle = cast(socket_t) socket(af, type, protocol);
if(handle == socket_t.init)
throw new SocketOSException("Unable to create socket");
setSock(handle);
}
// A single protocol exists to support this socket type within the
// protocol family, so the ProtocolType is assumed.
/// ditto
this(AddressFamily af, SocketType type)
{
this(af, type, cast(ProtocolType)0); // Pseudo protocol number.
}
/// ditto
this(AddressFamily af, SocketType type, in char[] protocolName)
{
protoent* proto;
proto = getprotobyname(toStringz(protocolName));
if(!proto)
throw new SocketOSException("Unable to find the protocol");
this(af, type, cast(ProtocolType)proto.p_proto);
}
/**
* Create a blocking socket using the parameters from the specified
* $(D AddressInfo) structure.
*/
this(in AddressInfo info)
{
this(info.family, info.type, info.protocol);
}
/// Use an existing socket handle.
this(socket_t sock, AddressFamily af)
{
assert(sock != socket_t.init);
this.sock = sock;
this._family = af;
}
~this()
{
close();
}
/// Get underlying socket handle.
@property socket_t handle() const
{
return sock;
}
/**
* Get/set socket's blocking flag.
*
* When a socket is blocking, calls to receive(), accept(), and send()
* will block and wait for data/action.
* A non-blocking socket will immediately return instead of blocking.
*/
@property bool blocking() const
{
version(Windows)
{
return _blocking;
}
else version(Posix)
{
return !(fcntl(handle, F_GETFL, 0) & O_NONBLOCK);
}
}
/// ditto
@property void blocking(bool byes)
{
version(Windows)
{
uint num = !byes;
if(_SOCKET_ERROR == ioctlsocket(sock, FIONBIO, &num))
goto err;
_blocking = byes;
}
else version(Posix)
{
int x = fcntl(sock, F_GETFL, 0);
if(-1 == x)
goto err;
if(byes)
x &= ~O_NONBLOCK;
else
x |= O_NONBLOCK;
if(-1 == fcntl(sock, F_SETFL, x))
goto err;
}
return; // Success.
err:
throw new SocketOSException("Unable to set socket blocking");
}
/// Get the socket's address family.
@property AddressFamily addressFamily()
{
return _family;
}
/// Property that indicates if this is a valid, alive socket.
@property bool isAlive() const
{
int type;
socklen_t typesize = cast(socklen_t) type.sizeof;
return !getsockopt(sock, SOL_SOCKET, SO_TYPE, cast(char*)&type, &typesize);
}
/// Associate a local address with this socket.
void bind(Address addr)
{
if(_SOCKET_ERROR == .bind(sock, addr.name, addr.nameLen))
throw new SocketOSException("Unable to bind socket");
}
/**
* Establish a connection. If the socket is blocking, connect waits for
* the connection to be made. If the socket is nonblocking, connect
* returns immediately and the connection attempt is still in progress.
*/
void connect(Address to)
{
if(_SOCKET_ERROR == .connect(sock, to.name, to.nameLen))
{
int err;
err = _lasterr();
if(!blocking)
{
version(Windows)
{
if(WSAEWOULDBLOCK == err)
return;
}
else version(Posix)
{
if(EINPROGRESS == err)
return;
}
else
{
static assert(0);
}
}
throw new SocketOSException("Unable to connect socket", err);
}
}
/**
* Listen for an incoming connection. $(D bind) must be called before you
* can $(D listen). The $(D backlog) is a request of how many pending
* incoming connections are queued until $(D accept)ed.
*/
void listen(int backlog)
{
if(_SOCKET_ERROR == .listen(sock, backlog))
throw new SocketOSException("Unable to listen on socket");
}
/**
* Called by $(D accept) when a new $(D Socket) must be created for a new
* connection. To use a derived class, override this method and return an
* instance of your class. The returned $(D Socket)'s handle must not be
* set; $(D Socket) has a protected constructor $(D this()) to use in this
* situation.
*/
// Override to use a derived class.
// The returned socket's handle must not be set.
protected Socket accepting()
{
return new Socket;
}
/**
* Accept an incoming connection. If the socket is blocking, $(D accept)
* waits for a connection request. Throws $(D SocketAcceptException) if
* unable to _accept. See $(D accepting) for use with derived classes.
*/
Socket accept()
{
auto newsock = cast(socket_t).accept(sock, null, null);
if(socket_t.init == newsock)
throw new SocketAcceptException("Unable to accept socket connection");
Socket newSocket;
try
{
newSocket = accepting();
assert(newSocket.sock == socket_t.init);
newSocket.setSock(newsock);
version(Windows)
newSocket._blocking = _blocking; //inherits blocking mode
newSocket._family = _family; //same family
}
catch(Throwable o)
{
_close(newsock);
throw o;
}
return newSocket;
}
/// Disables sends and/or receives.
void shutdown(SocketShutdown how)
{
.shutdown(sock, cast(int)how);
}
private static void _close(socket_t sock)
{
version(Windows)
{
.closesocket(sock);
}
else version(Posix)
{
.close(sock);
}
}
/**
* Immediately drop any connections and release socket resources.
* Calling $(D shutdown) before $(D close) is recommended for
* connection-oriented sockets. The $(D Socket) object is no longer
* usable after $(D close).
*/
//calling shutdown() before this is recommended
//for connection-oriented sockets
void close()
{
_close(sock);
sock = socket_t.init;
}
/// Returns the local machine's host name.
// Idea from mango.
static @property string hostName() // getter
{
char[256] result; // Host names are limited to 255 chars.
if(_SOCKET_ERROR == .gethostname(result.ptr, result.length))
throw new SocketOSException("Unable to obtain host name");
return to!string(result.ptr);
}
/// Remote endpoint $(D Address).
@property Address remoteAddress()
{
Address addr = createAddress();
socklen_t nameLen = addr.nameLen;
if(_SOCKET_ERROR == .getpeername(sock, addr.name, &nameLen))
throw new SocketOSException("Unable to obtain remote socket address");
if(nameLen > addr.nameLen)
throw new SocketParameterException("Not enough socket address storage");
assert(addr.addressFamily == _family);
return addr;
}
/// Local endpoint $(D Address).
@property Address localAddress()
{
Address addr = createAddress();
socklen_t nameLen = addr.nameLen;
if(_SOCKET_ERROR == .getsockname(sock, addr.name, &nameLen))
throw new SocketOSException("Unable to obtain local socket address");
if(nameLen > addr.nameLen)
throw new SocketParameterException("Not enough socket address storage");
assert(addr.addressFamily == _family);
return addr;
}
/**
* Send or receive error code. See $(D wouldHaveBlocked),
* $(D lastSocketError) and $(D Socket.getErrorText) for obtaining more
* information about the error.
*/
enum int ERROR = _SOCKET_ERROR;
/**
* Send data on the connection. If the socket is blocking and there is no
* buffer space left, $(D send) waits.
* Returns: The number of bytes actually sent, or $(D Socket.ERROR) on
* failure.
*/
//returns number of bytes actually sent, or -1 on error
ptrdiff_t send(const(void)[] buf, SocketFlags flags)
{
static if (is(typeof(MSG_NOSIGNAL)))
{
flags = cast(SocketFlags)(flags | MSG_NOSIGNAL);
}
version( Windows )
auto sent = .send(sock, buf.ptr, to!int(buf.length), cast(int)flags);
else
auto sent = .send(sock, buf.ptr, buf.length, cast(int)flags);
return sent;
}
/// ditto
ptrdiff_t send(const(void)[] buf)
{
return send(buf, SocketFlags.NONE);
}
/**
* Send data to a specific destination Address. If the destination address is
* not specified, a connection must have been made and that address is used.
* If the socket is blocking and there is no buffer space left, $(D sendTo) waits.
* Returns: The number of bytes actually sent, or $(D Socket.ERROR) on
* failure.
*/
ptrdiff_t sendTo(const(void)[] buf, SocketFlags flags, Address to)
{
static if (is(typeof(MSG_NOSIGNAL)))
{
flags = cast(SocketFlags)(flags | MSG_NOSIGNAL);
}
version( Windows )
return .sendto(
sock, buf.ptr, std.conv.to!int(buf.length),
cast(int)flags, to.name, to.nameLen
);
else
return .sendto(sock, buf.ptr, buf.length, cast(int)flags, to.name, to.nameLen);
}
/// ditto
ptrdiff_t sendTo(const(void)[] buf, Address to)
{
return sendTo(buf, SocketFlags.NONE, to);
}
//assumes you connect()ed
/// ditto
ptrdiff_t sendTo(const(void)[] buf, SocketFlags flags)
{
static if (is(typeof(MSG_NOSIGNAL)))
{
flags = cast(SocketFlags)(flags | MSG_NOSIGNAL);
}
version(Windows)
return .sendto(sock, buf.ptr, to!int(buf.length), cast(int)flags, null, 0);
else
return .sendto(sock, buf.ptr, buf.length, cast(int)flags, null, 0);
}
//assumes you connect()ed
/// ditto
ptrdiff_t sendTo(const(void)[] buf)
{
return sendTo(buf, SocketFlags.NONE);
}
/**
* Receive data on the connection. If the socket is blocking, $(D receive)
* waits until there is data to be received.
* Returns: The number of bytes actually received, $(D 0) if the remote side
* has closed the connection, or $(D Socket.ERROR) on failure.
*/
//returns number of bytes actually received, 0 on connection closure, or -1 on error
ptrdiff_t receive(void[] buf, SocketFlags flags)
{
version(Windows) // Does not use size_t
{
return buf.length
? .recv(sock, buf.ptr, to!int(buf.length), cast(int)flags)
: 0;
} else {
return buf.length
? .recv(sock, buf.ptr, buf.length, cast(int)flags)
: 0;
}
}
/// ditto
ptrdiff_t receive(void[] buf)
{
return receive(buf, SocketFlags.NONE);
}
/**
* Receive data and get the remote endpoint $(D Address).
* If the socket is blocking, $(D receiveFrom) waits until there is data to
* be received.
* Returns: The number of bytes actually received, $(D 0) if the remote side
* has closed the connection, or $(D Socket.ERROR) on failure.
*/
ptrdiff_t receiveFrom(void[] buf, SocketFlags flags, ref Address from)
{
if(!buf.length) //return 0 and don't think the connection closed
return 0;
if (from is null || from.addressFamily != _family)
from = createAddress();
socklen_t nameLen = from.nameLen;
version(Windows)
{
auto read = .recvfrom(sock, buf.ptr, to!int(buf.length), cast(int)flags, from.name, &nameLen);
assert(from.addressFamily == _family);
// if(!read) //connection closed
return read;
} else {
auto read = .recvfrom(sock, buf.ptr, buf.length, cast(int)flags, from.name, &nameLen);
assert(from.addressFamily == _family);
// if(!read) //connection closed
return read;
}
}
/// ditto
ptrdiff_t receiveFrom(void[] buf, ref Address from)
{
return receiveFrom(buf, SocketFlags.NONE, from);
}
//assumes you connect()ed
/// ditto
ptrdiff_t receiveFrom(void[] buf, SocketFlags flags)
{
if(!buf.length) //return 0 and don't think the connection closed
return 0;
version(Windows)
{
auto read = .recvfrom(sock, buf.ptr, to!int(buf.length), cast(int)flags, null, null);
// if(!read) //connection closed
return read;
} else {
auto read = .recvfrom(sock, buf.ptr, buf.length, cast(int)flags, null, null);
// if(!read) //connection closed
return read;
}
}
//assumes you connect()ed
/// ditto
ptrdiff_t receiveFrom(void[] buf)
{
return receiveFrom(buf, SocketFlags.NONE);
}
/// Get a socket option.
/// Returns: The number of bytes written to $(D result).
//returns the length, in bytes, of the actual result - very different from getsockopt()
int getOption(SocketOptionLevel level, SocketOption option, void[] result)
{
socklen_t len = cast(socklen_t) result.length;
if(_SOCKET_ERROR == .getsockopt(sock, cast(int)level, cast(int)option, result.ptr, &len))
throw new SocketOSException("Unable to get socket option");
return len;
}
/// Common case of getting integer and boolean options.
int getOption(SocketOptionLevel level, SocketOption option, out int32_t result)
{
return getOption(level, option, (&result)[0 .. 1]);
}
/// Get the linger option.
int getOption(SocketOptionLevel level, SocketOption option, out Linger result)
{
//return getOption(cast(SocketOptionLevel)SocketOptionLevel.SOCKET, SocketOption.LINGER, (&result)[0 .. 1]);
return getOption(level, option, (&result.clinger)[0 .. 1]);
}
/// Get a timeout (duration) option.
void getOption(SocketOptionLevel level, SocketOption option, out Duration result)
{
enforce(option == SocketOption.SNDTIMEO || option == SocketOption.RCVTIMEO,
new SocketParameterException("Not a valid timeout option: " ~ to!string(option)));
// WinSock returns the timeout values as a milliseconds DWORD,
// while Linux and BSD return a timeval struct.
version (Windows)
{
int msecs;
getOption(level, option, (&msecs)[0 .. 1]);
if (option == SocketOption.RCVTIMEO)
msecs += WINSOCK_TIMEOUT_SKEW;
result = dur!"msecs"(msecs);
}
else version (Posix)
{
TimeVal tv;
getOption(level, option, (&tv.ctimeval)[0..1]);
result = dur!"seconds"(tv.seconds) + dur!"usecs"(tv.microseconds);
}
else static assert(false);
}
// Set a socket option.
void setOption(SocketOptionLevel level, SocketOption option, void[] value)
{
if(_SOCKET_ERROR == .setsockopt(sock, cast(int)level,
cast(int)option, value.ptr, cast(uint) value.length))
throw new SocketOSException("Unable to set socket option");
}
/// Common case for setting integer and boolean options.
void setOption(SocketOptionLevel level, SocketOption option, int32_t value)
{
setOption(level, option, (&value)[0 .. 1]);
}
/// Set the linger option.
void setOption(SocketOptionLevel level, SocketOption option, Linger value)
{
//setOption(cast(SocketOptionLevel)SocketOptionLevel.SOCKET, SocketOption.LINGER, (&value)[0 .. 1]);
setOption(level, option, (&value.clinger)[0 .. 1]);
}
/**
* Sets a timeout (duration) option, i.e. $(D SocketOption.SNDTIMEO) or
* $(D RCVTIMEO). Zero indicates no timeout.
*
* In a typical application, you might also want to consider using
* a non-blocking socket instead of setting a timeout on a blocking one.
*
* Note: While the receive timeout setting is generally quite accurate
* on *nix systems even for smaller durations, there are two issues to
* be aware of on Windows: First, although undocumented, the effective
* timeout duration seems to be the one set on the socket plus half
* a second. $(D setOption()) tries to compensate for that, but still,
* timeouts under 500ms are not possible on Windows. Second, be aware
* that the actual amount of time spent until a blocking call returns
* randomly varies on the order of 10ms.
*
* Params:
* level = The level at which a socket option is defined.
* option = Either $(D SocketOption.SNDTIMEO) or $(D SocketOption.RCVTIMEO).
* value = The timeout duration to set. Must not be negative.
*
* Throws: $(D SocketException) if setting the options fails.
*
* Example:
* ---
* import std.datetime;
* auto pair = socketPair();
* scope(exit) foreach (s; pair) s.close();
*
* // Set a receive timeout, and then wait at one end of
* // the socket pair, knowing that no data will arrive.
* pair[0].setOption(SocketOptionLevel.SOCKET,
* SocketOption.RCVTIMEO, dur!"seconds"(1));
*
* auto sw = StopWatch(AutoStart.yes);
* ubyte[1] buffer;
* pair[0].receive(buffer);
* writefln("Waited %s ms until the socket timed out.",
* sw.peek.msecs);
* ---
*/
void setOption(SocketOptionLevel level, SocketOption option, Duration value)
{
enforce(option == SocketOption.SNDTIMEO || option == SocketOption.RCVTIMEO,
new SocketParameterException("Not a valid timeout option: " ~ to!string(option)));
enforce(value >= dur!"hnsecs"(0), new SocketParameterException(
"Timeout duration must not be negative."));
version (Windows)
{
auto msecs = to!int(value.total!"msecs");
if (msecs != 0 && option == SocketOption.RCVTIMEO)
msecs = max(1, msecs - WINSOCK_TIMEOUT_SKEW);
setOption(level, option, msecs);
}
else version (Posix)
{
_ctimeval tv;
tv.tv_sec = to!(typeof(tv.tv_sec ))(value.total!"seconds");
tv.tv_usec = to!(typeof(tv.tv_usec))(value.fracSec.usecs);
setOption(level, option, (&tv)[0 .. 1]);
}
else static assert(false);
}
/// Get a text description of this socket's error status, and clear the
/// socket's error status.
string getErrorText()
{
int32_t error;
getOption(SocketOptionLevel.SOCKET, SocketOption.ERROR, error);
return formatSocketError(error);
}
/**
* Enables TCP keep-alive with the specified parameters.
*
* Params:
* time = Number of seconds with no activity until the first
* keep-alive packet is sent.
* interval = Number of seconds between when successive keep-alive
* packets are sent if no acknowledgement is received.
*
* Throws: $(D SocketOSException) if setting the options fails, or
* $(D SocketFeatureException) if setting keep-alive parameters is
* unsupported on the current platform.
*/
void setKeepAlive(int time, int interval)
{
version(Windows)
{
tcp_keepalive options;
options.onoff = 1;
options.keepalivetime = time * 1000;
options.keepaliveinterval = interval * 1000;
uint cbBytesReturned;
enforce(WSAIoctl(sock, SIO_KEEPALIVE_VALS,
&options, options.sizeof,
null, 0,
&cbBytesReturned, null, null) == 0,
new SocketOSException("Error setting keep-alive"));
}
else
static if (is(typeof(TCP_KEEPIDLE)) && is(typeof(TCP_KEEPINTVL)))
{
setOption(SocketOptionLevel.TCP, cast(SocketOption)TCP_KEEPIDLE, time);
setOption(SocketOptionLevel.TCP, cast(SocketOption)TCP_KEEPINTVL, interval);
setOption(SocketOptionLevel.SOCKET, SocketOption.KEEPALIVE, true);
}
else
throw new SocketFeatureException("Setting keep-alive options " ~
"is not supported on this platform");
}
/**
* Wait for a socket to change status. A wait timeout of $(Duration) or
* $(D TimeVal), may be specified; if a timeout is not specified or the
* $(D TimeVal) is $(D null), the maximum timeout is used. The $(D TimeVal)
* timeout has an unspecified value when $(D select) returns.
* Returns: The number of sockets with status changes, $(D 0) on timeout,
* or $(D -1) on interruption. If the return value is greater than $(D 0),
* the $(D SocketSets) are updated to only contain the sockets having status
* changes. For a connecting socket, a write status change means the
* connection is established and it's able to send. For a listening socket,
* a read status change means there is an incoming connection request and
* it's able to accept.
*/
//SocketSet's updated to include only those sockets which an event occured
//returns the number of events, 0 on timeout, or -1 on interruption
//for a connect()ing socket, writeability means connected
//for a listen()ing socket, readability means listening
//Winsock: possibly internally limited to 64 sockets per set
static int select(SocketSet checkRead, SocketSet checkWrite, SocketSet checkError, Duration timeout)
{
TimeVal tv;
tv.seconds = to!(tv.tv_sec_t )(timeout.total!"seconds");
tv.microseconds = to!(tv.tv_usec_t)(timeout.fracSec.usecs);
return select(checkRead, checkWrite, checkError, &tv);
}
/// ditto
//maximum timeout
static int select(SocketSet checkRead, SocketSet checkWrite, SocketSet checkError)
{
return select(checkRead, checkWrite, checkError, null);
}
/// Ditto
static int select(SocketSet checkRead, SocketSet checkWrite, SocketSet checkError, TimeVal* timeout)
in
{
//make sure none of the SocketSet's are the same object
if(checkRead)
{
assert(checkRead !is checkWrite);
assert(checkRead !is checkError);
}
if(checkWrite)
{
assert(checkWrite !is checkError);
}
}
body
{
fd_set* fr, fw, fe;
int n = 0;
version(Windows)
{
// Windows has a problem with empty fd_set`s that aren't null.
fr = checkRead && checkRead.count ? checkRead.toFd_set() : null;
fw = checkWrite && checkWrite.count ? checkWrite.toFd_set() : null;
fe = checkError && checkError.count ? checkError.toFd_set() : null;
}
else
{
if(checkRead)
{
fr = checkRead.toFd_set();
n = checkRead.selectn();
}
else
{
fr = null;
}
if(checkWrite)
{
fw = checkWrite.toFd_set();
int _n;
_n = checkWrite.selectn();
if(_n > n)
n = _n;
}
else
{
fw = null;
}
if(checkError)
{
fe = checkError.toFd_set();
int _n;
_n = checkError.selectn();
if(_n > n)
n = _n;
}
else
{
fe = null;
}
}
int result = .select(n, fr, fw, fe, &timeout.ctimeval);
version(Windows)
{
if(_SOCKET_ERROR == result && WSAGetLastError() == WSAEINTR)
return -1;
}
else version(Posix)
{
if(_SOCKET_ERROR == result && errno == EINTR)
return -1;
}
else
{
static assert(0);
}
if(_SOCKET_ERROR == result)
throw new SocketOSException("Socket select error");
return result;
}
// Explicitly undocumented. It will be removed in December 2014.
deprecated("Please use the overload of select which takes a Duration instead.")
static int select(SocketSet checkRead, SocketSet checkWrite, SocketSet checkError, long microseconds)
{
TimeVal tv;
tv.seconds = to!(tv.tv_sec_t )(microseconds / 1_000_000);
tv.microseconds = to!(tv.tv_usec_t)(microseconds % 1_000_000);
return select(checkRead, checkWrite, checkError, &tv);
}
/// Returns a new Address object for the current address family.
/// Can be overridden to support other addresses.
protected Address createAddress()
{
Address result;
switch(_family)
{
case AddressFamily.INET:
result = new InternetAddress;
break;
case AddressFamily.INET6:
result = new Internet6Address;
break;
default:
result = new UnknownAddress;
}
return result;
}
}
/// $(D TcpSocket) is a shortcut class for a TCP Socket.
class TcpSocket: Socket
{
/// Constructs a blocking TCP Socket.
this(AddressFamily family)
{
super(family, SocketType.STREAM, ProtocolType.TCP);
}
/// Constructs a blocking IPv4 TCP Socket.
this()
{
this(AddressFamily.INET);
}
//shortcut
/// Constructs a blocking TCP Socket and connects to an $(D Address).
this(Address connectTo)
{
this(connectTo.addressFamily);
connect(connectTo);
}
}
/// $(D UdpSocket) is a shortcut class for a UDP Socket.
class UdpSocket: Socket
{
/// Constructs a blocking UDP Socket.
this(AddressFamily family)
{
super(family, SocketType.DGRAM, ProtocolType.UDP);
}
/// Constructs a blocking IPv4 UDP Socket.
this()
{
this(AddressFamily.INET);
}
}
/**
* Creates a pair of connected sockets.
*
* The two sockets are indistinguishable.
*
* Throws: $(D SocketException) if creation of the sockets fails.
*
* Example:
* ---
* immutable ubyte[] data = [1, 2, 3, 4];
* auto pair = socketPair();
* scope(exit) foreach (s; pair) s.close();
*
* pair[0].send(data);
*
* auto buf = new ubyte[data.length];
* pair[1].receive(buf);
* assert(buf == data);
* ---
*/
Socket[2] socketPair()
{
version(Posix)
{
int[2] socks;
if (socketpair(AF_UNIX, SOCK_STREAM, 0, socks) == -1)
throw new SocketOSException("Unable to create socket pair");
Socket toSocket(size_t id)
{
auto s = new Socket;
s.setSock(cast(socket_t)socks[id]);
s._family = AddressFamily.UNIX;
return s;
}
return [toSocket(0), toSocket(1)];
}
else version(Windows)
{
// We do not have socketpair() on Windows, just manually create a
// pair of sockets connected over some localhost port.
Socket[2] result;
auto listener = new TcpSocket();
listener.setOption(SocketOptionLevel.SOCKET, SocketOption.REUSEADDR, true);
listener.bind(new InternetAddress(INADDR_LOOPBACK, InternetAddress.PORT_ANY));
auto addr = listener.localAddress;
listener.listen(1);
result[0] = new TcpSocket(addr);
result[1] = listener.accept();
listener.close();
return result;
}
else
static assert(false);
}
unittest
{
immutable ubyte[] data = [1, 2, 3, 4];
auto pair = socketPair();
scope(exit) foreach (s; pair) s.close();
pair[0].send(data);
auto buf = new ubyte[data.length];
pair[1].receive(buf);
assert(buf == data);
}
| D |
module floppy;
import std.math : abs, floor;
import std.stdio : File;
import dcpu16.cpu;
import dcpu16.hardware;
import util : nativeToBigEndian;
import wmain : CLOCKSPEED; // shudder
/// Simulates an HIT HMD2043 floppy disk drive.
public class Floppy : IHardware
{
public:
/// Currently, the disk must be provided at start-up.
this(string diskPath, bool littleEndian)
{
this.media = File(diskPath, "r+b");
this.buffer = new ushort[geom.wordsPerSector];
this.littleEndian = littleEndian;
}
void attach(CPU cpu) @safe
{
this.cpu = cpu;
}
void query() @safe
{
cpu.A = 0x4cae;
cpu.B = 0x74fa;
cpu.C = 0x07c2;
cpu.X = 0x4948;
cpu.Y = 0x2154;
}
void interrupt() @safe
{
switch( cpu.A )
{
case QUERY_MEDIA_PRESENT:
cpu.B = hasMedia ? 1 : 0;
cpu.A = ERROR_NONE;
return;
case QUERY_MEDIA_PARAMETERS:
if (!hasMedia)
{
cpu.A = ERROR_NO_MEDIA;
return;
}
cpu.B = geom.wordsPerSector;
cpu.C = geom.sectors;
cpu.A = ERROR_NONE;
return;
case QUERY_DEVICE_FLAGS:
cpu.B = flags;
cpu.A = ERROR_NONE;
return;
case UPDATE_DEVICE_FLAGS:
flags = cpu.B;
cpu.A = ERROR_NONE;
return;
case QUERY_INTERRUPT_TYPE:
cpu.B = NONE;
cpu.A = ERROR_NONE;
return;
case SET_INTERRUPT_MESSAGE:
intMessage = cpu.B;
cpu.A = ERROR_NONE;
return;
case READ_SECTORS:
if (!blocking)
return; // TODO
if (!hasMedia)
{
cpu.A = ERROR_NO_MEDIA;
return;
}
for (auto i=0; i<cpu.C; ++i)
{
auto sec = cast(ushort)(cpu.B + i);
if (!(0 <= sec && sec < geom.sectors))
{
cpu.A = ERROR_INVALID_SECTOR;
return;
}
cpu.cycleCount += cyclesToSeekTo(sec);
track = cast(ushort)(sec / geom.sectorsPerTrack);
cpu.cycleCount += cyclesToReadSector(sec);
readSector(sec, cast(ushort)(cpu.X + i*geom.wordsPerSector));
}
cpu.A = ERROR_NONE;
return;
case WRITE_SECTORS:
if (!blocking)
return; // TODO
if (!hasMedia)
{
cpu.A = ERROR_NO_MEDIA;
return;
}
for (auto i=0; i<cpu.C; ++i)
{
auto sec = cast(ushort)(cpu.B + i);
if (!(0 <= sec && sec < geom.sectors))
{
cpu.A = ERROR_INVALID_SECTOR;
return;
}
cpu.cycleCount += cyclesToSeekTo(sec);
track = cast(ushort)(sec / geom.sectorsPerTrack);
cpu.cycleCount += cyclesToReadSector(sec);
writeSector(sec, cast(ushort)(cpu.X + i*geom.wordsPerSector));
}
cpu.A = ERROR_NONE;
return;
case QUERY_MEDIA_QUALITY:
if (!hasMedia)
{
cpu.A = ERROR_NO_MEDIA;
return;
}
cpu.B = 0x7FFF;
cpu.A = ERROR_NONE;
return;
default:
cpu.A = ERROR_INVALID_COMMAND;
return;
}
}
void reset() @safe
{
flags = 0;
intMessage = 0xFFFF;
geom = DiskGeometry(80, 18, 1440, 512);
track = 0;
}
private:
/// The CPU we're attached to.
CPU cpu;
/// The current media.
File media;
/// Device flags.
ushort flags = 0;
/// Interrupt message.
ushort intMessage = 0xffff;
/// Drive properties.
enum FullStrokeS = 0.200;
enum SpindleSpinS = 0.200;
/// Disk properties; these should eventually be read from the
/// disk file itself.
DiskGeometry geom = { 80, 18, 1440, 512 };
/// Current track, for seek timing.
ushort track = 0;
/// Buffer for sector operations.
ushort[] buffer = null;
/// Force little-endian?
bool littleEndian = true;
bool hasMedia() @property @trusted
{
return media.isOpen;
}
bool blocking() @property @safe
{
return (flags & NON_BLOCKING) == 0;
}
long cyclesToSeekTo(ushort newSector) @safe
{
auto newTrack = newSector / geom.sectorsPerTrack;
auto time = abs(newTrack - track) * (FullStrokeS / (geom.tracks - 1));
return cast(long)time;
}
long cyclesToReadSector(ushort sector) @safe
{
return cast(long)(CLOCKSPEED * SpindleSpinS / geom.sectorsPerTrack);
}
void readSector(ushort sector, ushort addr) @trusted
{
auto mem = cpu.memory[addr..addr+geom.wordsPerSector];
media.seek(sector * geom.wordsPerSector * 2);
media.rawRead(mem);
nativeToBigEndian(mem, littleEndian);
}
void writeSector(ushort sector, ushort addr) @trusted
{
auto mem = cpu.memory[addr..addr+geom.wordsPerSector];
buffer[] = mem[];
nativeToBigEndian(buffer, littleEndian);
media.seek(sector * geom.wordsPerSector * 2);
media.rawWrite(buffer);
media.flush();
}
}
private enum : ushort
{
QUERY_MEDIA_PRESENT = 0x0000,
QUERY_MEDIA_PARAMETERS = 0x0001,
QUERY_DEVICE_FLAGS = 0x0002,
UPDATE_DEVICE_FLAGS = 0x0003,
QUERY_INTERRUPT_TYPE = 0x0004,
SET_INTERRUPT_MESSAGE = 0x0005,
READ_SECTORS = 0x0010,
WRITE_SECTORS = 0x0011,
QUERY_MEDIA_QUALITY = 0xFFFF,
}
private enum : ushort
{
NON_BLOCKING = 0b0000_0000_0000_0001,
MEDIA_STATUS_INTERRUPT = 0b0000_0000_0000_0010,
}
private enum : ushort
{
NONE = 0x0000,
MEDIA_STATUS = 0x0001,
READ_COMPLETE = 0x0002,
WRITE_COMPLETE = 0x0003,
}
private enum : ushort
{
ERROR_NONE,
ERROR_NO_MEDIA,
ERROR_INVALID_SECTOR,
ERROR_PENDING,
ERROR_INVALID_COMMAND,
}
private struct DiskGeometry
{
public:
ushort tracks, sectorsPerTrack, sectors, wordsPerSector;
}
| D |
module eventcore.drivers.winapi.processes;
version (Windows):
import eventcore.driver;
import eventcore.internal.win32;
final class WinAPIEventDriverProcesses : EventDriverProcesses {
@safe: /*@nogc:*/ nothrow:
override ProcessID adopt(int system_pid)
{
assert(false, "TODO!");
}
override Process spawn(string[] args, ProcessStdinFile stdin, ProcessStdoutFile stdout, ProcessStderrFile stderr, const string[string] env, ProcessConfig config, string working_dir)
{
assert(false, "TODO!");
}
override bool hasExited(ProcessID pid)
{
assert(false, "TODO!");
}
override void kill(ProcessID pid, int signal)
{
assert(false, "TODO!");
}
override size_t wait(ProcessID pid, ProcessWaitCallback on_process_exit)
{
assert(false, "TODO!");
}
override void cancelWait(ProcessID pid, size_t waitId)
{
assert(false, "TODO!");
}
override void addRef(ProcessID pid)
{
assert(false, "TODO!");
}
override bool releaseRef(ProcessID pid)
{
assert(false, "TODO!");
}
protected override void* rawUserData(ProcessID descriptor, size_t size, DataInitializer initialize, DataInitializer destroy)
@system {
assert(false, "TODO!");
}
}
| D |
import link14834a;
void main()
{
foreach (n; dirEntries("."))
{
assert(n == 10);
}
}
| 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 N; get(N);
auto T = new int[][N];
foreach (i; 1..N) {
int p; get(p);
T[i] ~= p;
T[p] ~= i;
}
auto res = new int[](N);
int solve(int i, int p) {
int s, r;
foreach (j; T[i]) if (j != p) {
auto n = solve(j, i);
s += n;
r = max(r, n);
}
res[i] = max(r, N - s - 1);
return s + 1;
}
solve(0, 0);
writefln!"%(%d\n%)"(res);
}
| D |
import std.stdio,
std.file;
void main(){
writeln("Tefuftefu3 Setup Script");
writeln("Copyright (c) 2015 alphaKAI http://alpha-kai-net.info");
if(!exists("config")){
writeln("[PROCESS] => Make Directory \'./config\'");
mkdir("config");
}
if(!exists("config/setting.json")){
writeln("[PROCESS] => Create File \'./config/setting.json\'");
auto f = File("setting.json", "w");
string fileLines[] = [
"{",
" \"consumerKey\" : \"Your Consumer Key\",",
" \"consumerSecret\" : \"Your Consumer Secret\",",
" \"accessToken\" : \"Your Access Token\",",
" \"accessTokenSecret\" : \"Your Access Token Secret\"",
"}"];
foreach(line; fileLines)
f.writeln(line);
writeln("Please configure your consumer & access tokens");
}
writeln("Setup finished");
writeln("Before next step : You must configure \'./config/setting.json\'");
writeln("Next step :");
writeln(" $ dub");
writeln(" => Tefutefu will be being build and lanched");
}
| D |
module cedict.parser;
import std.stdio;
struct ParseResult {
wstring head;
wstring desc;
}
interface DictParser {
ParseResult[] parseFile(File fp);
}
| D |
module LoopExample;
import std.stdio;
import std.format;
class LoopExample {
public:
//while example
void example1() {
int n = 0;
while(n < 10) {
writefln("number = %d", n);
n++;
}
}
//for example
void example2() {
for(int n = 10; n < 20; ++n) {
writefln("number = %d", n);
}
}
//do ... while example
void example3() {
int n = 0 ;
do {
writefln("number = %d", n);
++n;
} while(n < 10);
}
//nested for example
void example4() {
int [5][3] numbers;
numbers[0] = [1, 2, 3, 4, 5];
numbers[1] = [2, 3, 4, 5, 6];
numbers[2] = [3, 4, 5, 6, 7];
for(int i=0; i< 3; ++i) {
for(int j=0; j< 5; ++j) {
writef("%d; ", numbers[i][j]);
}
writeln();
}
}
//break and continue keywords
void example5() {
int [] numbers = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100];
for(int i = 0 ; i< 10; ++i) {
//i++;
if(i == 5) continue;
if(i == 8) break;
writefln("number[%d] = %d", i, numbers[i]);
}
}
}
| D |
// Written in the D programming language.
/**
Standard I/O functions that extend $(B std.c.stdio). $(B std.c.stdio)
is $(D_PARAM public)ally imported when importing $(B std.stdio).
Source: $(PHOBOSSRC std/_stdio.d)
Macros:
WIKI=Phobos/StdStdio
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)
*/
module std.stdio;
public import core.stdc.stdio;
static import std.c.stdio;
import std.stdiobase;
import core.stdc.errno, core.stdc.stddef, core.stdc.stdlib, core.memory,
core.stdc.string, core.stdc.wchar_;
import std.algorithm, std.array, std.conv, std.exception, std.format,
std.range, std.string, std.traits, std.typecons,
std.typetuple, std.utf;
version(unittest) import std.file;
version (DigitalMars) version (Windows)
{
// Specific to the way Digital Mars C does stdio
version = DIGITAL_MARS_STDIO;
import std.c.stdio : __fhnd_info, FHND_WCHAR, FHND_TEXT;
}
version (Posix)
{
import core.sys.posix.stdio;
alias core.sys.posix.stdio.fileno fileno;
}
version (linux)
{
// Specific to the way Gnu C does stdio
version = GCC_IO;
extern(C) FILE* fopen64(const char*, const char*);
}
version (OSX)
{
version = GENERIC_IO;
alias core.stdc.stdio.fopen fopen64;
}
version (FreeBSD)
{
version = GENERIC_IO;
alias core.stdc.stdio.fopen fopen64;
}
version(Windows)
{
alias core.stdc.stdio.fopen fopen64;
}
version (DIGITAL_MARS_STDIO)
{
extern (C)
{
/* **
* Digital Mars under-the-hood C I/O functions.
* Use _iobuf* for the unshared version of FILE*,
* usable when the FILE is locked.
*/
int _fputc_nlock(int, _iobuf*);
int _fputwc_nlock(int, _iobuf*);
int _fgetc_nlock(_iobuf*);
int _fgetwc_nlock(_iobuf*);
int __fp_lock(FILE*);
void __fp_unlock(FILE*);
int setmode(int, int);
}
alias _fputc_nlock FPUTC;
alias _fputwc_nlock FPUTWC;
alias _fgetc_nlock FGETC;
alias _fgetwc_nlock FGETWC;
alias __fp_lock FLOCK;
alias __fp_unlock FUNLOCK;
alias setmode _setmode;
enum _O_BINARY = 0x8000;
int _fileno(FILE* f) { return f._file; }
alias _fileno fileno;
}
else version (GCC_IO)
{
/* **
* Gnu under-the-hood C I/O functions; see
* http://gnu.org/software/libc/manual/html_node/I_002fO-on-Streams.html
*/
extern (C)
{
int fputc_unlocked(int, _iobuf*);
int fputwc_unlocked(wchar_t, _iobuf*);
int fgetc_unlocked(_iobuf*);
int fgetwc_unlocked(_iobuf*);
void flockfile(FILE*);
void funlockfile(FILE*);
ssize_t getline(char**, size_t*, FILE*);
ssize_t getdelim (char**, size_t*, int, FILE*);
private size_t fwrite_unlocked(const(void)* ptr,
size_t size, size_t n, _iobuf *stream);
}
version (linux)
{
// declare fopen64 if not already
static if (!is(typeof(fopen64)))
extern (C) FILE* fopen64(in char*, in char*);
}
alias fputc_unlocked FPUTC;
alias fputwc_unlocked FPUTWC;
alias fgetc_unlocked FGETC;
alias fgetwc_unlocked FGETWC;
alias flockfile FLOCK;
alias funlockfile FUNLOCK;
}
else version (GENERIC_IO)
{
extern (C)
{
void flockfile(FILE*);
void funlockfile(FILE*);
}
int fputc_unlocked(int c, _iobuf* fp) { return fputc(c, cast(shared) fp); }
int fputwc_unlocked(wchar_t c, _iobuf* fp)
{
return fputwc(c, cast(shared) fp);
}
int fgetc_unlocked(_iobuf* fp) { return fgetc(cast(shared) fp); }
int fgetwc_unlocked(_iobuf* fp) { return fgetwc(cast(shared) fp); }
alias fputc_unlocked FPUTC;
alias fputwc_unlocked FPUTWC;
alias fgetc_unlocked FGETC;
alias fgetwc_unlocked FGETWC;
alias flockfile FLOCK;
alias funlockfile FUNLOCK;
}
else
{
static assert(0, "unsupported C I/O system");
}
//------------------------------------------------------------------------------
struct ByRecord(Fields...)
{
private:
File file;
char[] line;
Tuple!(Fields) current;
string format;
public:
this(File f, string format)
{
assert(f.isOpen);
file = f;
this.format = format;
popFront(); // prime the range
}
/// Range primitive implementations.
@property bool empty()
{
return !file.isOpen;
}
/// Ditto
@property ref Tuple!(Fields) front()
{
return current;
}
/// Ditto
void popFront()
{
enforce(file.isOpen);
file.readln(line);
if (!line.length)
{
file.detach();
}
else
{
line = chomp(line);
formattedRead(line, format, ¤t);
enforce(line.empty, text("Leftover characters in record: `",
line, "'"));
}
}
}
template byRecord(Fields...)
{
ByRecord!(Fields) byRecord(File f, string format)
{
return typeof(return)(f, format);
}
}
/**
Encapsulates a $(D FILE*). Generally D does not attempt to provide
thin wrappers over equivalent functions in the C standard library, but
manipulating $(D FILE*) values directly is unsafe and error-prone in
many ways. The $(D File) type ensures safe manipulation, automatic
file closing, and a lot of convenience.
The underlying $(D FILE*) handle is maintained in a reference-counted
manner, such that as soon as the last $(D File) variable bound to a
given $(D FILE*) goes out of scope, the underlying $(D FILE*) is
automatically closed.
Example:
----
// test.d
void main(string args[])
{
auto f = File("test.txt", "w"); // open for writing
f.write("Hello");
if (args.length > 1)
{
auto g = f; // now g and f write to the same file
// internal reference count is 2
g.write(", ", args[1]);
// g exits scope, reference count decreases to 1
}
f.writeln("!");
// f exits scope, reference count falls to zero,
// underlying $(D FILE*) is closed.
}
----
<pre class=console>
% rdmd test.d Jimmy
% cat test.txt
Hello, Jimmy!
% __
</pre>
*/
struct File
{
private struct Impl
{
FILE * handle = null;
uint refs = uint.max / 2;
string name = null;
bool isPipe;
this(FILE* h, uint r, string n, bool pipe = false)
{
handle = h;
refs = r;
name = n;
isPipe = pipe;
}
}
private Impl * p;
/**
Constructor taking the name of the file to open and the open mode
(with the same semantics as in the C standard library $(WEB
cplusplus.com/reference/clibrary/cstdio/fopen.html, fopen)
function). Throws an exception if the file could not be opened.
Copying one $(D File) object to another results in the two $(D File)
objects referring to the same underlying file.
The destructor automatically closes the file as soon as no $(D File)
object refers to it anymore.
*/
this(string name, in char[] stdioOpenmode = "rb")
{
p = new Impl(errnoEnforce(.fopen(name, stdioOpenmode),
text("Cannot open file `", name, "' in mode `",
stdioOpenmode, "'")),
1, name);
}
~this()
{
if (!p) return;
if (p.refs == 1) close();
else --p.refs;
}
this(this)
{
if (!p) return;
assert(p.refs);
++p.refs;
}
/**
Assigns a file to another. The target of the assignment gets detached
from whatever file it was attached to, and attaches itself to the new
file.
*/
void opAssign(File rhs)
{
swap(p, rhs.p);
}
/**
First calls $(D detach) (throwing on failure), and then attempts to
_open file $(D name) with mode $(D stdioOpenmode). The mode has the
same semantics as in the C standard library $(WEB
cplusplus.com/reference/clibrary/cstdio/fopen.html, fopen) function.
Throws exception in case of error.
*/
void open(string name, in char[] stdioOpenmode = "rb")
{
detach();
auto another = File(name, stdioOpenmode);
swap(this, another);
}
/**
First calls $(D detach) (throwing on failure), and then runs a command
by calling the C standard library function $(WEB
opengroup.org/onlinepubs/007908799/xsh/_popen.html, _popen).
*/
version(Posix) void popen(string command, in char[] stdioOpenmode = "r")
{
detach();
p = new Impl(errnoEnforce(.popen(command, stdioOpenmode),
"Cannot run command `"~command~"'"),
1, command, true);
}
/** Returns $(D true) if the file is opened. */
@property bool isOpen() const
{
return p !is null && p.handle;
}
/**
Returns $(D true) if the file is at end (see $(WEB
cplusplus.com/reference/clibrary/cstdio/feof.html, feof)). The file
must be opened, otherwise an exception is thrown.
*/
@property bool eof() const
{
enforce(p && p.handle, "Calling eof() against an unopened file.");
return .feof(cast(FILE*) p.handle) != 0;
}
/** Returns the name of the file, if any. */
@property string name() const
{
return p.name;
}
/**
If the file is not opened, returns $(D false). Otherwise, returns
$(WEB cplusplus.com/reference/clibrary/cstdio/ferror.html, ferror) for
the file handle.
*/
@property bool error() const
{
return !p.handle || .ferror(cast(FILE*) p.handle);
}
/**
Detaches from the underlying file. If the sole owner, calls $(D close)
and throws if that fails.
*/
void detach()
{
if (!p) return;
if (p.refs == 1) close();
else if(p.refs != 0) p.refs--;
p = null;
}
unittest
{
auto deleteme = testFilename();
scope(exit) std.file.remove(deleteme);
auto f = File(deleteme, "w");
{
auto f2 = f;
f2.detach();
}
assert(f.p.refs == 1);
f.close();
}
/**
If the file was unopened, succeeds vacuously. Otherwise closes the
file (by calling $(WEB
cplusplus.com/reference/clibrary/cstdio/fclose.html, fclose)),
throwing on error. Even if an exception is thrown, afterwards the $(D
File) object is empty. This is different from $(D detach) in that it
always closes the file; consequently, all other $(D File) objects
referring to the same handle will see a closed file henceforth.
*/
void close()
{
if (!p) return; // succeed vacuously
if (!p.handle)
{
p = null; // start a new life
return;
}
scope(exit)
{
p.handle = null; // nullify the handle anyway
p.name = null;
--p.refs;
p = null;
}
version (Posix)
{
if (p.isPipe)
{
// Ignore the result of the command
errnoEnforce(.pclose(p.handle) != -1,
"Could not close pipe `"~p.name~"'");
return;
}
}
//fprintf(std.c.stdio.stderr, ("Closing file `"~name~"`.\n\0").ptr);
errnoEnforce(.fclose(p.handle) == 0,
"Could not close file `"~p.name~"'");
}
/**
If the file is not opened, succeeds vacuously. Otherwise, returns
$(WEB cplusplus.com/reference/clibrary/cstdio/_clearerr.html,
_clearerr) for the file handle.
*/
void clearerr()
{
p is null || p.handle is null ||
.clearerr(p.handle);
}
/**
If the file is not opened, throws an exception. Otherwise, calls $(WEB
cplusplus.com/reference/clibrary/cstdio/_fflush.html, _fflush) for the
file handle and throws on error.
*/
void flush()
{
errnoEnforce
(.fflush(enforce(p.handle, "Calling fflush() on an unopened file"))
== 0);
}
/**
If the file is not opened, throws an exception. Otherwise, calls $(WEB
cplusplus.com/reference/clibrary/cstdio/fread.html, fread) for the
file handle and throws on error. The number of items to read and the size of
each item is inferred from the size and type of the input array, respectively.
Returns: The slice of $(D buffer) containing the data that was actually read.
This will be shorter than $(D buffer) if EOF was reached before the buffer
could be filled.
$(D rawRead) always reads in binary mode on Windows.
*/
T[] rawRead(T)(T[] buffer)
{
enforce(buffer.length, "rawRead must take a non-empty buffer");
version(Windows)
{
immutable fd = ._fileno(p.handle);
immutable mode = ._setmode(fd, _O_BINARY);
scope(exit) ._setmode(fd, mode);
version(DIGITAL_MARS_STDIO)
{
// @@@BUG@@@ 4243
immutable info = __fhnd_info[fd];
__fhnd_info[fd] &= ~FHND_TEXT;
scope(exit) __fhnd_info[fd] = info;
}
}
immutable result =
.fread(buffer.ptr, T.sizeof, buffer.length, p.handle);
errnoEnforce(!error);
return result ? buffer[0 .. result] : null;
}
unittest
{
auto deleteme = testFilename();
std.file.write(deleteme, "\r\n\n\r\n");
scope(exit) std.file.remove(deleteme);
auto f = File(deleteme, "r");
auto buf = f.rawRead(new char[5]);
f.close();
assert(buf == "\r\n\n\r\n");
/+
buf = stdin.rawRead(new char[5]);
assert(buf == "\r\n\n\r\n");
+/
}
/**
If the file is not opened, throws an exception. Otherwise, calls $(WEB
cplusplus.com/reference/clibrary/cstdio/fwrite.html, fwrite) for the file
handle and throws on error. The number of items to write and the size of each
item is inferred from the size and type of the input array, respectively. An
error is thrown if the buffer could not be written in its entirety.
$(D rawWrite) always writes in binary mode on Windows.
*/
void rawWrite(T)(in T[] buffer)
{
version(Windows)
{
flush(); // before changing translation mode
immutable fd = ._fileno(p.handle);
immutable mode = ._setmode(fd, _O_BINARY);
scope(exit) ._setmode(fd, mode);
version(DIGITAL_MARS_STDIO)
{
// @@@BUG@@@ 4243
immutable info = __fhnd_info[fd];
__fhnd_info[fd] &= ~FHND_TEXT;
scope(exit) __fhnd_info[fd] = info;
}
scope(exit) flush(); // before restoring translation mode
}
auto result =
.fwrite(buffer.ptr, T.sizeof, buffer.length, p.handle);
if (result == result.max) result = 0;
errnoEnforce(result == buffer.length,
text("Wrote ", result, " instead of ", buffer.length,
" objects of type ", T.stringof, " to file `",
p.name, "'"));
}
unittest
{
auto deleteme = testFilename();
auto f = File(deleteme, "w");
scope(exit) std.file.remove(deleteme);
f.rawWrite("\r\n\n\r\n");
f.close();
assert(std.file.read(deleteme) == "\r\n\n\r\n");
}
/**
If the file is not opened, throws an exception. Otherwise, calls $(WEB
cplusplus.com/reference/clibrary/cstdio/fseek.html, fseek) for the
file handle. Throws on error.
*/
void seek(long offset, int origin = SEEK_SET)
{
enforce(isOpen, "Attempting to seek() in an unopened file");
version (Windows)
{
errnoEnforce(fseek(p.handle, to!int(offset), origin) == 0,
"Could not seek in file `"~p.name~"'");
}
else
{
//static assert(off_t.sizeof == 8);
errnoEnforce(fseeko(p.handle, offset, origin) == 0,
"Could not seek in file `"~p.name~"'");
}
}
unittest
{
auto deleteme = testFilename();
auto f = File(deleteme, "w+");
scope(exit) { f.close(); std.file.remove(deleteme); }
f.rawWrite("abcdefghijklmnopqrstuvwxyz");
f.seek(7);
assert(f.readln() == "hijklmnopqrstuvwxyz");
version (Windows)
{
// No test for large files yet
}
else
{
auto bigOffset = cast(ulong) int.max + 100;
f.seek(bigOffset);
assert(f.tell == bigOffset, text(f.tell));
// Uncomment the tests below only if you want to wait for
// a long time
// f.rawWrite("abcdefghijklmnopqrstuvwxyz");
// f.seek(-3, SEEK_END);
// assert(f.readln() == "xyz");
}
}
/**
If the file is not opened, throws an exception. Otherwise, calls $(WEB
cplusplus.com/reference/clibrary/cstdio/ftell.html, ftell) for the
managed file handle. Throws on error.
*/
@property ulong tell() const
{
enforce(isOpen, "Attempting to tell() in an unopened file");
version (Windows)
{
immutable result = ftell(cast(FILE*) p.handle);
}
else
{
immutable result = ftello(cast(FILE*) p.handle);
}
errnoEnforce(result != -1,
"Query ftell() failed for file `"~p.name~"'");
return result;
}
unittest
{
auto deleteme = testFilename();
std.file.write(deleteme, "abcdefghijklmnopqrstuvwqxyz");
scope(exit) { std.file.remove(deleteme); }
auto f = File(deleteme);
auto a = new ubyte[4];
f.rawRead(a);
assert(f.tell == 4, text(f.tell));
}
/**
If the file is not opened, throws an exception. Otherwise, calls $(WEB
cplusplus.com/reference/clibrary/cstdio/_rewind.html, _rewind) for the
file handle. Throws on error.
*/
void rewind()
{
enforce(isOpen, "Attempting to rewind() an unopened file");
.rewind(p.handle);
}
/**
If the file is not opened, throws an exception. Otherwise, calls $(WEB
cplusplus.com/reference/clibrary/cstdio/_setvbuf.html, _setvbuf) for
the file handle.
*/
void setvbuf(size_t size, int mode = _IOFBF)
{
enforce(isOpen, "Attempting to call setvbuf() on an unopened file");
errnoEnforce(.setvbuf(p.handle, null, mode, size) == 0,
"Could not set buffering for file `"~p.name~"'");
}
/**
If the file is not opened, throws an exception. Otherwise, calls
$(WEB cplusplus.com/reference/clibrary/cstdio/_setvbuf.html,
_setvbuf) for the file handle. */
void setvbuf(void[] buf, int mode = _IOFBF)
{
enforce(isOpen, "Attempting to call setvbuf() on an unopened file");
errnoEnforce(.setvbuf(p.handle,
cast(char*) buf.ptr, mode, buf.length) == 0,
"Could not set buffering for file `"~p.name~"'");
}
/**
If the file is not opened, throws an exception. Otherwise, writes its
arguments in text format to the file. */
void write(S...)(S args)
{
auto w = lockingTextWriter;
foreach (arg; args)
{
alias typeof(arg) A;
static if (isAggregateType!A)
{
std.format.formattedWrite(w, "%s", arg);
}
else static if (isSomeString!A)
{
put(w, arg);
}
else static if (isIntegral!A)
{
toTextRange(arg, w);
}
else static if (isBoolean!A)
{
put(w, arg ? "true" : "false");
}
else static if (isSomeChar!A)
{
put(w, arg);
}
else
{
// Most general case
std.format.formattedWrite(w, "%s", arg);
}
}
}
/**
If the file is not opened, throws an exception. Otherwise, writes its
arguments in text format to the file, followed by a newline. */
void writeln(S...)(S args)
{
write(args, '\n');
errnoEnforce(.fflush(p.handle) == 0,
"Could not flush file `"~p.name~"'");
}
private enum errorMessage =
"You must pass a formatting string as the first"
" argument to writef or writefln. If no formatting is needed,"
" you may want to use write or writeln.";
/**
If the file is not opened, throws an exception. Otherwise, writes its
arguments in text format to the file, according to the format in the
first argument. */
void writef(S...)(S args) // if (isSomeString!(S[0]))
{
assert(p);
assert(p.handle);
static assert(S.length>0, errorMessage);
static assert(isSomeString!(S[0]), errorMessage);
auto w = lockingTextWriter;
std.format.formattedWrite(w, args);
}
/**
Same as writef, plus adds a newline. */
void writefln(S...)(S args)
{
static assert(S.length>0, errorMessage);
static assert(isSomeString!(S[0]), errorMessage);
auto w = lockingTextWriter;
std.format.formattedWrite(w, args);
w.put('\n');
.fflush(p.handle);
}
/**********************************
Read line from stream $(D fp) and write it to $(D buf[]), including
terminating character.
This is often faster than $(D File.readln(dchar)) because the buffer
is reused each call. Note that reusing the buffer means that the
previous contents of it has to be copied if needed.
Params:
fp = input stream
buf = buffer used to store the resulting line data. buf is
resized as necessary.
Returns:
0 for end of file, otherwise number of characters read
Throws: $(D StdioException) on I/O error, or $(D UnicodeException) on Unicode
conversion error.
Example:
---
// Reads $(D stdin) and writes it to $(D stdout).
import std.stdio;
int main()
{
char[] buf;
while (stdin.readln(buf))
write(buf);
return 0;
}
---
This method is more efficient than the one in the previous example
because $(D stdin.readln(buf)) reuses (if possible) memory allocated
by $(D buf), whereas $(D buf = stdin.readln()) makes a new memory allocation
with every line. */
S readln(S = string)(dchar terminator = '\n')
{
Unqual!(typeof(S.init[0]))[] buf;
readln(buf, terminator);
return assumeUnique(buf);
}
unittest
{
auto deleteme = testFilename();
std.file.write(deleteme, "hello\nworld\n");
scope(exit) std.file.remove(deleteme);
foreach (C; Tuple!(char, wchar, dchar).Types)
{
auto witness = [ "hello\n", "world\n" ];
auto f = File(deleteme);
uint i = 0;
immutable(C)[] buf;
while ((buf = f.readln!(typeof(buf))()).length)
{
assert(i < witness.length);
assert(equal(buf, witness[i++]));
}
assert(i == witness.length);
}
}
/** ditto */
size_t readln(C)(ref C[] buf, dchar terminator = '\n') if (isSomeChar!C)
{
static if (is(C == char))
{
enforce(p && p.handle, "Attempt to read from an unopened file.");
return readlnImpl(p.handle, buf, terminator);
}
else
{
// TODO: optimize this
string s = readln(terminator);
if (!s.length) return 0;
buf.length = 0;
foreach (wchar c; s)
{
buf ~= c;
}
return buf.length;
}
}
/** ditto */
size_t readln(C, R)(ref C[] buf, R terminator)
if (isBidirectionalRange!R && is(typeof(terminator.front == buf[0])))
{
auto last = terminator.back();
C[] buf2;
swap(buf, buf2);
for (;;) {
if (!readln(buf2, last) || endsWith(buf2, terminator)) {
if (buf.empty) {
buf = buf2;
} else {
buf ~= buf2;
}
break;
}
buf ~= buf2;
}
return buf.length;
}
unittest
{
auto deleteme = testFilename();
std.file.write(deleteme, "hello\n\rworld\nhow\n\rare ya");
auto witness = [ "hello\n\r", "world\nhow\n\r", "are ya" ];
scope(exit) std.file.remove(deleteme);
auto f = File(deleteme);
uint i = 0;
char[] buf;
while (f.readln(buf, "\n\r"))
{
assert(i < witness.length);
assert(buf == witness[i++]);
}
}
/**
* Read data from the file according to the specified
* $(LINK2 std_format.html#format-string, format specifier) using
* $(XREF format,formattedRead).
*/
uint readf(Data...)(in char[] format, Data data)
{
assert(isOpen);
auto input = LockingTextReader(this);
return formattedRead(input, format, data);
}
unittest
{
auto deleteme = testFilename();
std.file.write(deleteme, "hello\nworld\n");
scope(exit) std.file.remove(deleteme);
string s;
auto f = File(deleteme);
f.readf("%s\n", &s);
assert(s == "hello", "["~s~"]");
}
/**
Returns a temporary file by calling $(WEB
cplusplus.com/reference/clibrary/cstdio/_tmpfile.html, _tmpfile). */
static File tmpfile()
{
auto h = errnoEnforce(core.stdc.stdio.tmpfile(),
"Could not create temporary file with tmpfile()");
File result = void;
result.p = new Impl(h, 1, null);
return result;
}
/**
Unsafe function that wraps an existing $(D FILE*). The resulting $(D
File) never takes the initiative in closing the file. */
/*private*/ static File wrapFile(FILE* f)
{
File result = void;
//result.p = new Impl(f, uint.max / 2, null);
result.p = new Impl(f, 9999, null);
return result;
}
/**
Returns the $(D FILE*) corresponding to this object.
*/
FILE* getFP()
{
enforce(p && p.handle,
"Attempting to call getFP() on an unopened file");
return p.handle;
}
unittest
{
assert(stdout.getFP() == std.c.stdio.stdout);
}
/**
Returns the file number corresponding to this object.
*/
/*version(Posix) */int fileno() const
{
enforce(isOpen, "Attempting to call fileno() on an unopened file");
return .fileno(cast(FILE*) p.handle);
}
/**
Range that reads one line at a time. */
alias std.string.KeepTerminator KeepTerminator;
/// ditto
struct ByLine(Char, Terminator)
{
File file;
Char[] line;
Terminator terminator;
KeepTerminator keepTerminator;
this(File f, KeepTerminator kt = KeepTerminator.no,
Terminator terminator = '\n')
{
file = f;
this.terminator = terminator;
keepTerminator = kt;
}
/// Range primitive implementations.
@property bool empty() const
{
if (line !is null) return false;
if (!file.isOpen) return true;
// First read ever, must make sure stream is not empty. We
// do so by reading a character and putting it back. Doing
// so is guaranteed to work on all files opened in all
// buffering modes. Although we internally mutate the
// state of the file, we restore everything, which
// justifies the cast.
auto mutableFP = (cast(File*) &file).getFP();
auto c = fgetc(mutableFP);
if (c == -1)
{
return true;
}
ungetc(c, mutableFP) == c
|| assert(false, "Bug in cstdlib implementation");
return false;
}
/// Ditto
@property Char[] front()
{
if (line is null) popFront();
return line;
}
/// Ditto
void popFront()
{
assert(file.isOpen);
assumeSafeAppend(line);
file.readln(line, terminator);
if (line.empty)
{
file.detach();
line = null;
}
else if (keepTerminator == KeepTerminator.no
&& std.algorithm.endsWith(line, terminator))
{
line = line.ptr[0 .. line.length - 1];
}
}
}
/**
Convenience function that returns the $(D LinesReader) corresponding
to this file. */
ByLine!(Char, Terminator) byLine(Terminator = char, Char = char)
(KeepTerminator keepTerminator = KeepTerminator.no,
Terminator terminator = '\n')
{
return typeof(return)(this, keepTerminator, terminator);
}
unittest
{
//printf("Entering test at line %d\n", __LINE__);
scope(failure) printf("Failed test at line %d\n", __LINE__);
auto deleteme = testFilename();
std.file.write(deleteme, "");
scope(success) std.file.remove(deleteme);
// Test empty file
auto f = File(deleteme);
foreach (line; f.byLine())
{
assert(false);
}
f.close();
void test(string txt, string[] witness,
KeepTerminator kt = KeepTerminator.no)
{
uint i;
std.file.write(deleteme, txt);
auto f = File(deleteme);
scope(exit)
{
f.close();
assert(!f.isOpen);
}
foreach (line; f.byLine(kt))
{
assert(line == witness[i++]);
}
assert(i == witness.length, text(i, " != ", witness.length));
}
test("", null);
test("\n", [ "" ]);
test("asd\ndef\nasdf", [ "asd", "def", "asdf" ]);
test("asd\ndef\nasdf\n", [ "asd", "def", "asdf" ]);
test("", null, KeepTerminator.yes);
test("\n", [ "\n" ], KeepTerminator.yes);
test("asd\ndef\nasdf", [ "asd\n", "def\n", "asdf" ], KeepTerminator.yes);
test("asd\ndef\nasdf\n", [ "asd\n", "def\n", "asdf\n" ], KeepTerminator.yes);
}
template byRecord(Fields...)
{
ByRecord!(Fields) byRecord(string format)
{
return typeof(return)(this, format);
}
}
unittest
{
// auto deleteme = testFilename();
// rndGen.popFront();
// scope(failure) printf("Failed test at line %d\n", __LINE__);
// std.file.write(deleteme, "1 2\n4 1\n5 100");
// scope(exit) std.file.remove(deleteme);
// File f = File(deleteme);
// scope(exit) f.close();
// auto t = [ tuple(1, 2), tuple(4, 1), tuple(5, 100) ];
// uint i;
// foreach (e; f.byRecord!(int, int)("%s %s"))
// {
// //.writeln(e);
// assert(e == t[i++]);
// }
}
/**
* Range that reads a chunk at a time.
*/
struct ByChunk
{
private:
File file_;
ubyte[] chunk_;
public:
this(File file, size_t size)
in
{
assert(size, "size must be larger than 0");
}
body
{
file_ = file;
chunk_ = new ubyte[](size);
popFront();
}
/// Range primitive operations.
@property
bool empty() const
{
return !file_.isOpen;
}
/// Ditto
@property
nothrow ubyte[] front()
{
return chunk_;
}
/// Ditto
void popFront()
{
enforce(!empty, "Cannot call popFront on empty range");
chunk_ = file_.rawRead(chunk_);
if (chunk_.length == 0)
file_.detach();
}
}
/**
Iterates through a file a chunk at a time by using $(D foreach).
Example:
---------
void main()
{
foreach (ubyte[] buffer; stdin.byChunk(4096))
{
... use buffer ...
}
}
---------
The content of $(D buffer) is reused across calls. In the example
above, $(D buffer.length) is 4096 for all iterations, except for the
last one, in which case $(D buffer.length) may be less than 4096 (but
always greater than zero).
In case of an I/O error, an $(D StdioException) is thrown.
*/
ByChunk byChunk(size_t chunkSize)
{
return ByChunk(this, chunkSize);
}
unittest
{
scope(failure) printf("Failed test at line %d\n", __LINE__);
auto deleteme = testFilename();
std.file.write(deleteme, "asd\ndef\nasdf");
auto witness = ["asd\n", "def\n", "asdf" ];
auto f = File(deleteme);
scope(exit)
{
f.close();
assert(!f.isOpen);
std.file.remove(deleteme);
}
uint i;
foreach (chunk; f.byChunk(4))
assert(chunk == cast(ubyte[])witness[i++]);
assert(i == witness.length);
}
/**
$(D Range) that locks the file and allows fast writing to it.
*/
struct LockingTextWriter
{
FILE* fps; // the shared file handle
_iobuf* handle; // the unshared version of fps
int orientation;
this(ref File f)
{
enforce(f.p && f.p.handle);
fps = f.p.handle;
orientation = fwide(fps, 0);
FLOCK(fps);
handle = cast(_iobuf*)fps;
}
~this()
{
FUNLOCK(fps);
fps = null;
handle = null;
}
this(this)
{
enforce(fps);
FLOCK(fps);
}
/// Range primitive implementations.
void put(A)(A writeme) if (is(ElementType!A : const(dchar)))
{
static if (isSomeString!A)
alias typeof(writeme[0]) C;
else
alias ElementType!A C;
static assert(!is(C == void));
if (writeme[0].sizeof == 1 && orientation <= 0)
{
//file.write(writeme); causes infinite recursion!!!
//file.rawWrite(writeme);
auto result =
.fwrite(writeme.ptr, C.sizeof, writeme.length, fps);
if (result != writeme.length) errnoEnforce(0);
}
else
{
// put each character in turn
foreach (dchar c; writeme)
{
put(c);
}
}
}
// @@@BUG@@@ 2340
//void front(C)(C c) if (is(C : dchar)) {
/// ditto
void put(C)(C c) if (is(C : const(dchar)))
{
static if (c.sizeof == 1)
{
// simple char
if (orientation <= 0) FPUTC(c, handle);
else FPUTWC(c, handle);
}
else static if (c.sizeof == 2)
{
if (orientation <= 0)
{
if (c <= 0x7F)
{
FPUTC(c, handle);
}
else
{
char[4] buf;
auto b = std.utf.toUTF8(buf, c);
foreach (i ; 0 .. b.length)
FPUTC(b[i], handle);
}
}
else
{
FPUTWC(c, handle);
}
}
else // 32-bit characters
{
if (orientation <= 0)
{
if (c <= 0x7F)
{
FPUTC(c, handle);
}
else
{
char[4] buf = void;
auto b = std.utf.toUTF8(buf, c);
foreach (i ; 0 .. b.length)
FPUTC(b[i], handle);
}
}
else
{
version (Windows)
{
assert(isValidDchar(c));
if (c <= 0xFFFF)
{
FPUTWC(c, handle);
}
else
{
FPUTWC(cast(wchar)
((((c - 0x10000) >> 10) & 0x3FF)
+ 0xD800), handle);
FPUTWC(cast(wchar)
(((c - 0x10000) & 0x3FF) + 0xDC00),
handle);
}
}
else version (Posix)
{
FPUTWC(c, handle);
}
else
{
static assert(0);
}
}
}
}
}
/// Convenience function.
@property LockingTextWriter lockingTextWriter()
{
return LockingTextWriter(this);
}
/// Get the size of the file, ulong.max if file is not searchable, but still throws if an actual error occurs.
@property ulong size()
{
ulong pos = void;
if (collectException(pos = tell)) return ulong.max;
scope(exit) seek(pos);
seek(0, SEEK_END);
return tell;
}
}
unittest
{
auto deleteme = testFilename();
scope(exit) collectException(std.file.remove(deleteme));
std.file.write(deleteme, "1 2 3");
auto f = File(deleteme);
assert(f.size == 5);
assert(f.tell == 0);
}
struct LockingTextReader
{
private File _f;
private dchar _crt;
this(File f)
{
enforce(f.isOpen);
_f = f;
FLOCK(_f.p.handle);
}
this(this)
{
FLOCK(_f.p.handle);
}
~this()
{
// File locking has its own reference count
if (_f.isOpen) FUNLOCK(_f.p.handle);
}
void opAssign(LockingTextReader r)
{
swap(this, r);
}
@property bool empty()
{
if (!_f.isOpen || _f.eof) return true;
if (_crt == _crt.init)
{
_crt = FGETC(cast(_iobuf*) _f.p.handle);
if (_crt == -1)
{
.destroy(_f);
return true;
}
else
{
enforce(ungetc(_crt, cast(FILE*) _f.p.handle) == _crt);
}
}
return false;
}
@property dchar front()
{
enforce(!empty);
return _crt;
}
void popFront()
{
enforce(!empty);
if (FGETC(cast(_iobuf*) _f.p.handle) == -1)
{
enforce(_f.eof);
}
_crt = _crt.init;
}
// void unget(dchar c)
// {
// ungetc(c, cast(FILE*) _f.p.handle);
// }
}
unittest
{
static assert(isInputRange!LockingTextReader);
auto deleteme = testFilename();
std.file.write(deleteme, "1 2 3");
scope(exit) std.file.remove(deleteme);
int x, y;
auto f = File(deleteme);
f.readf("%s ", &x);
assert(x == 1);
f.readf("%d ", &x);
assert(x == 2);
f.readf("%d ", &x);
assert(x == 3);
//pragma(msg, "--- todo: readf ---");
}
private
void writefx(FILE* fps, TypeInfo[] arguments, void* argptr, int newline=false)
{
int orientation = fwide(fps, 0); // move this inside the lock?
/* Do the file stream locking at the outermost level
* rather than character by character.
*/
FLOCK(fps);
scope(exit) FUNLOCK(fps);
auto fp = cast(_iobuf*)fps; // fp is locked version
if (orientation <= 0) // byte orientation or no orientation
{
void putc(dchar c)
{
if (c <= 0x7F)
{
FPUTC(c, fp);
}
else
{
char[4] buf = void;
foreach (i; 0 .. std.utf.toUTF8(buf, c).length)
FPUTC(buf[i], fp);
}
}
std.format.doFormat(&putc, arguments, argptr);
if (newline)
FPUTC('\n', fp);
}
else if (orientation > 0) // wide orientation
{
version (Windows)
{
void putcw(dchar c)
{
assert(isValidDchar(c));
if (c <= 0xFFFF)
{
FPUTWC(c, fp);
}
else
{
FPUTWC(cast(wchar) ((((c - 0x10000) >> 10) & 0x3FF) +
0xD800), fp);
FPUTWC(cast(wchar) (((c - 0x10000) & 0x3FF) + 0xDC00), fp);
}
}
}
else version (Posix)
{
void putcw(dchar c)
{
FPUTWC(c, fp);
}
}
else
{
static assert(0);
}
std.format.doFormat(&putcw, arguments, argptr);
if (newline)
FPUTWC('\n', fp);
}
}
template isStreamingDevice(T)
{
enum isStreamingDevice = is(T : FILE*) ||
is(T : File);
}
/***********************************
For each argument $(D arg) in $(D args), format the argument (as per
$(LINK2 std_conv.html, to!(string)(arg))) and write the resulting
string to $(D args[0]). A call without any arguments will fail to
compile.
Throws: In case of an I/O error, throws an $(D StdioException).
*/
void write(T...)(T args) if (!is(T[0] : File))
{
stdout.write(args);
}
unittest
{
//printf("Entering test at line %d\n", __LINE__);
scope(failure) printf("Failed test at line %d\n", __LINE__);
void[] buf;
if (false) write(buf);
// test write
auto deleteme = testFilename();
auto f = File(deleteme, "w");
f.write("Hello, ", "world number ", 42, "!");
f.close();
scope(exit) { std.file.remove(deleteme); }
assert(cast(char[]) std.file.read(deleteme) == "Hello, world number 42!");
// // test write on stdout
//auto saveStdout = stdout;
//scope(exit) stdout = saveStdout;
//stdout.open(file, "w");
Object obj;
//write("Hello, ", "world number ", 42, "! ", obj);
//stdout.close();
// auto result = cast(char[]) std.file.read(file);
// assert(result == "Hello, world number 42! null", result);
}
/***********************************
* Equivalent to $(D write(args, '\n')). Calling $(D writeln) without
* arguments is valid and just prints a newline to the standard
* output.
*/
void writeln(T...)(T args)
{
static if (T.length == 0)
{
enforce(fputc('\n', .stdout.p.handle) == '\n');
}
else static if (T.length == 1 &&
isSomeString!(typeof(args[0])) &&
!isAggregateType!(typeof(args[0])))
{
// Specialization for strings - a very frequent case
enforce(fprintf(.stdout.p.handle, "%.*s\n",
cast(int) args[0].length, args[0].ptr) >= 0);
}
else
{
// Most general instance
stdout.write(args, '\n');
}
}
unittest
{
// Just make sure the call compiles
if (false) writeln();
if (false) writeln("wyda");
// bug 8040
if (false) writeln(null);
if (false) writeln(">", null, "<");
}
unittest
{
//printf("Entering test at line %d\n", __LINE__);
scope(failure) printf("Failed test at line %d\n", __LINE__);
// test writeln
auto deleteme = testFilename();
auto f = File(deleteme, "w");
scope(exit) { std.file.remove(deleteme); }
f.writeln("Hello, ", "world number ", 42, "!");
f.close();
version (Windows)
assert(cast(char[]) std.file.read(deleteme) ==
"Hello, world number 42!\r\n");
else
assert(cast(char[]) std.file.read(deleteme) ==
"Hello, world number 42!\n");
// test writeln on stdout
auto saveStdout = stdout;
scope(exit) stdout = saveStdout;
stdout.open(deleteme, "w");
writeln("Hello, ", "world number ", 42, "!");
stdout.close();
version (Windows)
assert(cast(char[]) std.file.read(deleteme) ==
"Hello, world number 42!\r\n");
else
assert(cast(char[]) std.file.read(deleteme) ==
"Hello, world number 42!\n");
}
unittest
{
auto deleteme = testFilename();
auto f = File(deleteme, "w");
scope(exit) { std.file.remove(deleteme); }
enum EI : int { A, B }
enum ED : double { A, B }
enum EC : char { A, B }
enum ES : string { A = "aaa", B = "bbb" }
f.writeln(EI.A); // false, but A on 2.058
f.writeln(EI.B); // true, but B on 2.058
f.writeln(ED.A); // A
f.writeln(ED.B); // B
f.writeln(EC.A); // A
f.writeln(EC.B); // B
f.writeln(ES.A); // A
f.writeln(ES.B); // B
f.close();
version (Windows)
assert(cast(char[]) std.file.read(deleteme) ==
"A\r\nB\r\nA\r\nB\r\nA\r\nB\r\nA\r\nB\r\n");
else
assert(cast(char[]) std.file.read(deleteme) ==
"A\nB\nA\nB\nA\nB\nA\nB\n");
}
/***********************************
* If the first argument $(D args[0]) is a $(D FILE*), use
* $(LINK2 std_format.html#format-string, the format specifier) in
* $(D args[1]) to control the formatting of $(D
* args[2..$]), and write the resulting string to $(D args[0]).
* If $(D arg[0]) is not a $(D FILE*), the call is
* equivalent to $(D writef(stdout, args)).
*
IMPORTANT:
New behavior starting with D 2.006: unlike previous versions,
$(D writef) (and also $(D writefln)) only scans its first
string argument for format specifiers, but not subsequent string
arguments. This decision was made because the old behavior made it
unduly hard to simply print string variables that occasionally
embedded percent signs.
Also new starting with 2.006 is support for positional
parameters with
$(LINK2 http://opengroup.org/onlinepubs/009695399/functions/printf.html,
POSIX) syntax.
Example:
-------------------------
writef("Date: %2$s %1$s", "October", 5); // "Date: 5 October"
------------------------
The positional and non-positional styles can be mixed in the same
format string. (POSIX leaves this behavior undefined.) The internal
counter for non-positional parameters tracks the popFront parameter after
the largest positional parameter already used.
New starting with 2.008: raw format specifiers. Using the "%r"
specifier makes $(D writef) simply write the binary
representation of the argument. Use "%-r" to write numbers in little
endian format, "%+r" to write numbers in big endian format, and "%r"
to write numbers in platform-native format.
*/
void writef(T...)(T args)
{
stdout.writef(args);
}
unittest
{
//printf("Entering test at line %d\n", __LINE__);
scope(failure) printf("Failed test at line %d\n", __LINE__);
// test writef
auto deleteme = testFilename();
auto f = File(deleteme, "w");
scope(exit) { std.file.remove(deleteme); }
f.writef("Hello, %s world number %s!", "nice", 42);
f.close();
assert(cast(char[]) std.file.read(deleteme) == "Hello, nice world number 42!");
// test write on stdout
auto saveStdout = stdout;
scope(exit) stdout = saveStdout;
stdout.open(deleteme, "w");
writef("Hello, %s world number %s!", "nice", 42);
stdout.close();
assert(cast(char[]) std.file.read(deleteme) == "Hello, nice world number 42!");
}
/***********************************
* Equivalent to $(D writef(args, '\n')).
*/
void writefln(T...)(T args)
{
stdout.writefln(args);
}
unittest
{
//printf("Entering test at line %d\n", __LINE__);
scope(failure) printf("Failed test at line %d\n", __LINE__);
// test writefln
auto deleteme = testFilename();
auto f = File(deleteme, "w");
scope(exit) { std.file.remove(deleteme); }
f.writefln("Hello, %s world number %s!", "nice", 42);
f.close();
version (Windows)
assert(cast(char[]) std.file.read(deleteme) ==
"Hello, nice world number 42!\r\n");
else
assert(cast(char[]) std.file.read(deleteme) ==
"Hello, nice world number 42!\n",
cast(char[]) std.file.read(deleteme));
// test write on stdout
// auto saveStdout = stdout;
// scope(exit) stdout = saveStdout;
// stdout.open(file, "w");
// assert(stdout.isOpen);
// writefln("Hello, %s world number %s!", "nice", 42);
// foreach (F ; TypeTuple!(ifloat, idouble, ireal))
// {
// F a = 5i;
// F b = a % 2;
// writeln(b);
// }
// stdout.close();
// auto read = cast(char[]) std.file.read(file);
// version (Windows)
// assert(read == "Hello, nice world number 42!\r\n1\r\n1\r\n1\r\n", read);
// else
// assert(read == "Hello, nice world number 42!\n1\n1\n1\n", "["~read~"]");
}
/**
* Read data from $(D stdin) according to the specified
* $(LINK2 std_format.html#format-string, format specifier) using
* $(XREF format,formattedRead).
*/
uint readf(A...)(in char[] format, A args)
{
return stdin.readf(format, args);
}
unittest
{
float f;
if (false) uint x = readf("%s", &f);
char a;
wchar b;
dchar c;
if (false) readf("%s %s %s", &a,&b,&c);
}
/**********************************
* Read line from stream $(D fp).
* Returns:
* $(D null) for end of file,
* $(D char[]) for line read from $(D fp), including terminating character
* Params:
* $(D fp) = input stream
* $(D terminator) = line terminator, '\n' by default
* Throws:
* $(D StdioException) on error
* Example:
* Reads $(D stdin) and writes it to $(D stdout).
---
import std.stdio;
int main()
{
char[] buf;
while ((buf = readln()) != null)
write(buf);
return 0;
}
---
*/
string readln(dchar terminator = '\n')
{
return stdin.readln(terminator);
}
/** ditto */
size_t readln(ref char[] buf, dchar terminator = '\n')
{
return stdin.readln(buf, terminator);
}
/*
* Convenience function that forwards to $(D std.c.stdio.fopen)
* with appropriately-constructed C-style strings.
*/
private FILE* fopen(in char[] name, in char[] mode = "r")
{
const namez = toStringz(name), modez = toStringz(mode);
return fopen64(namez, modez);
}
version (Posix)
{
extern(C) FILE* popen(const char*, const char*);
/***********************************
* Convenience function that forwards to $(D std.c.stdio.popen)
* with appropriately-constructed C-style strings.
*/
FILE* popen(in char[] name, in char[] mode = "r")
{
return popen(toStringz(name), toStringz(mode));
}
}
/*
* Convenience function that forwards to $(D std.c.stdio.fwrite)
* and throws an exception upon error
*/
private void binaryWrite(T)(FILE* f, T obj)
{
immutable result = fwrite(obj.ptr, obj[0].sizeof, obj.length, f);
if (result != obj.length) StdioException();
}
/**
* Iterates through the lines of a file by using $(D foreach).
*
* Example:
*
---------
void main()
{
foreach (string line; lines(stdin))
{
... use line ...
}
}
---------
The line terminator ('\n' by default) is part of the string read (it
could be missing in the last line of the file). Several types are
supported for $(D line), and the behavior of $(D lines)
changes accordingly:
$(OL $(LI If $(D line) has type $(D string), $(D
wstring), or $(D dstring), a new string of the respective type
is allocated every read.) $(LI If $(D line) has type $(D
char[]), $(D wchar[]), $(D dchar[]), the line's content
will be reused (overwritten) across reads.) $(LI If $(D line)
has type $(D immutable(ubyte)[]), the behavior is similar to
case (1), except that no UTF checking is attempted upon input.) $(LI
If $(D line) has type $(D ubyte[]), the behavior is
similar to case (2), except that no UTF checking is attempted upon
input.))
In all cases, a two-symbols versions is also accepted, in which case
the first symbol (of integral type, e.g. $(D ulong) or $(D
uint)) tracks the zero-based number of the current line.
Example:
----
foreach (ulong i, string line; lines(stdin))
{
... use line ...
}
----
In case of an I/O error, an $(D StdioException) is thrown.
*/
struct lines
{
private File f;
private dchar terminator = '\n';
// private string fileName; // Curretly, no use
this(File f, dchar terminator = '\n')
{
this.f = f;
this.terminator = terminator;
}
// Keep these commented lines for later, when Walter fixes the
// exception model.
// static lines opCall(string fName, dchar terminator = '\n')
// {
// auto f = enforce(fopen(fName),
// new StdioException("Cannot open file `"~fName~"' for reading"));
// auto result = lines(f, terminator);
// result.fileName = fName;
// return result;
// }
int opApply(D)(scope D dg)
{
// scope(exit) {
// if (fileName.length && fclose(f))
// StdioException("Could not close file `"~fileName~"'");
// }
alias ParameterTypeTuple!(dg) Parms;
static if (isSomeString!(Parms[$ - 1]))
{
enum bool duplicate = is(Parms[$ - 1] == string)
|| is(Parms[$ - 1] == wstring) || is(Parms[$ - 1] == dstring);
int result = 0;
static if (is(Parms[$ - 1] : const(char)[]))
alias char C;
else static if (is(Parms[$ - 1] : const(wchar)[]))
alias wchar C;
else static if (is(Parms[$ - 1] : const(dchar)[]))
alias dchar C;
C[] line;
static if (Parms.length == 2)
Parms[0] i = 0;
for (;;)
{
if (!f.readln(line, terminator)) break;
auto copy = to!(Parms[$ - 1])(line);
static if (Parms.length == 2)
{
result = dg(i, copy);
++i;
}
else
{
result = dg(copy);
}
if (result != 0) break;
}
return result;
}
else
{
// raw read
return opApplyRaw(dg);
}
}
// no UTF checking
int opApplyRaw(D)(scope D dg)
{
alias ParameterTypeTuple!(dg) Parms;
enum duplicate = is(Parms[$ - 1] : immutable(ubyte)[]);
int result = 1;
int c = void;
FLOCK(f.p.handle);
scope(exit) FUNLOCK(f.p.handle);
ubyte[] buffer;
static if (Parms.length == 2)
Parms[0] line = 0;
while ((c = FGETC(cast(_iobuf*)f.p.handle)) != -1)
{
buffer ~= to!(ubyte)(c);
if (c == terminator)
{
static if (duplicate)
auto arg = assumeUnique(buffer);
else
alias buffer arg;
// unlock the file while calling the delegate
FUNLOCK(f.p.handle);
scope(exit) FLOCK(f.p.handle);
static if (Parms.length == 1)
{
result = dg(arg);
}
else
{
result = dg(line, arg);
++line;
}
if (result) break;
static if (!duplicate)
buffer.length = 0;
}
}
// can only reach when FGETC returned -1
if (!f.eof) throw new StdioException("Error in reading file"); // error occured
return result;
}
}
unittest
{
//printf("Entering test at line %d\n", __LINE__);
scope(failure) printf("Failed test at line %d\n", __LINE__);
auto deleteme = testFilename();
scope(exit) { std.file.remove(deleteme); }
alias TypeTuple!(string, wstring, dstring,
char[], wchar[], dchar[])
TestedWith;
foreach (T; TestedWith) {
// test looping with an empty file
std.file.write(deleteme, "");
auto f = File(deleteme, "r");
foreach (T line; lines(f))
{
assert(false);
}
f.close();
// test looping with a file with three lines
std.file.write(deleteme, "Line one\nline two\nline three\n");
f.open(deleteme, "r");
uint i = 0;
foreach (T line; lines(f))
{
if (i == 0) assert(line == "Line one\n");
else if (i == 1) assert(line == "line two\n");
else if (i == 2) assert(line == "line three\n");
else assert(false);
++i;
}
f.close();
// test looping with a file with three lines, last without a newline
std.file.write(deleteme, "Line one\nline two\nline three");
f.open(deleteme, "r");
i = 0;
foreach (T line; lines(f))
{
if (i == 0) assert(line == "Line one\n");
else if (i == 1) assert(line == "line two\n");
else if (i == 2) assert(line == "line three");
else assert(false);
++i;
}
f.close();
}
// test with ubyte[] inputs
//@@@BUG 2612@@@
//alias TypeTuple!(immutable(ubyte)[], ubyte[]) TestedWith2;
alias TypeTuple!(immutable(ubyte)[], ubyte[]) TestedWith2;
foreach (T; TestedWith2) {
// test looping with an empty file
std.file.write(deleteme, "");
auto f = File(deleteme, "r");
foreach (T line; lines(f))
{
assert(false);
}
f.close();
// test looping with a file with three lines
std.file.write(deleteme, "Line one\nline two\nline three\n");
f.open(deleteme, "r");
uint i = 0;
foreach (T line; lines(f))
{
if (i == 0) assert(cast(char[]) line == "Line one\n");
else if (i == 1) assert(cast(char[]) line == "line two\n",
T.stringof ~ " " ~ cast(char[]) line);
else if (i == 2) assert(cast(char[]) line == "line three\n");
else assert(false);
++i;
}
f.close();
// test looping with a file with three lines, last without a newline
std.file.write(deleteme, "Line one\nline two\nline three");
f.open(deleteme, "r");
i = 0;
foreach (T line; lines(f))
{
if (i == 0) assert(cast(char[]) line == "Line one\n");
else if (i == 1) assert(cast(char[]) line == "line two\n");
else if (i == 2) assert(cast(char[]) line == "line three");
else assert(false);
++i;
}
f.close();
}
foreach (T; TypeTuple!(ubyte[]))
{
// test looping with a file with three lines, last without a newline
// using a counter too this time
std.file.write(deleteme, "Line one\nline two\nline three");
auto f = File(deleteme, "r");
uint i = 0;
foreach (ulong j, T line; lines(f))
{
if (i == 0) assert(cast(char[]) line == "Line one\n");
else if (i == 1) assert(cast(char[]) line == "line two\n");
else if (i == 2) assert(cast(char[]) line == "line three");
else assert(false);
++i;
}
f.close();
}
}
/**
Iterates through a file a chunk at a time by using $(D
foreach).
Example:
---------
void main()
{
foreach (ubyte[] buffer; chunks(stdin, 4096))
{
... use buffer ...
}
}
---------
The content of $(D buffer) is reused across calls. In the
example above, $(D buffer.length) is 4096 for all iterations,
except for the last one, in which case $(D buffer.length) may
be less than 4096 (but always greater than zero).
In case of an I/O error, an $(D StdioException) is thrown.
*/
struct chunks
{
private File f;
private size_t size;
// private string fileName; // Currently, no use
this(File f, size_t size)
in
{
assert(size, "size must be larger than 0");
}
body
{
this.f = f;
this.size = size;
}
// static chunks opCall(string fName, size_t size)
// {
// auto f = enforce(fopen(fName),
// new StdioException("Cannot open file `"~fName~"' for reading"));
// auto result = chunks(f, size);
// result.fileName = fName;
// return result;
// }
int opApply(D)(scope D dg)
{
const maxStackSize = 1024 * 16;
ubyte[] buffer = void;
if (size < maxStackSize)
buffer = (cast(ubyte*) alloca(size))[0 .. size];
else
buffer = new ubyte[size];
size_t r = void;
int result = 1;
uint tally = 0;
while ((r = core.stdc.stdio.fread(buffer.ptr,
buffer[0].sizeof, size, f.p.handle)) > 0)
{
assert(r <= size);
if (r != size)
{
// error occured
if (!f.eof) throw new StdioException(null);
buffer.length = r;
}
static if (is(typeof(dg(tally, buffer)))) {
if ((result = dg(tally, buffer)) != 0) break;
} else {
if ((result = dg(buffer)) != 0) break;
}
++tally;
}
return result;
}
}
unittest
{
//printf("Entering test at line %d\n", __LINE__);
scope(failure) printf("Failed test at line %d\n", __LINE__);
auto deleteme = testFilename();
scope(exit) { std.file.remove(deleteme); }
// test looping with an empty file
std.file.write(deleteme, "");
auto f = File(deleteme, "r");
foreach (ubyte[] line; chunks(f, 4))
{
assert(false);
}
f.close();
// test looping with a file with three lines
std.file.write(deleteme, "Line one\nline two\nline three\n");
f = File(deleteme, "r");
uint i = 0;
foreach (ubyte[] line; chunks(f, 3))
{
if (i == 0) assert(cast(char[]) line == "Lin");
else if (i == 1) assert(cast(char[]) line == "e o");
else if (i == 2) assert(cast(char[]) line == "ne\n");
else break;
++i;
}
f.close();
}
/*********************
* Thrown if I/O errors happen.
*/
class StdioException : Exception
{
/// Operating system error code.
uint errno;
/**
Initialize with a message and an error code. */
this(string message, uint e = .getErrno())
{
errno = e;
version (Posix)
{
char[256] buf = void;
version (linux)
{
auto s = std.c.string.strerror_r(errno, buf.ptr, buf.length);
}
else
{
std.c.string.strerror_r(errno, buf.ptr, buf.length);
auto s = buf.ptr;
}
}
else
{
auto s = std.c.string.strerror(errno);
}
auto sysmsg = to!string(s);
super(message ? message ~ "(" ~ sysmsg ~ ")" : sysmsg);
}
/** Convenience functions that throw an $(D StdioException). */
static void opCall(string msg)
{
throw new StdioException(msg);
}
/// ditto
static void opCall()
{
throw new StdioException(null, .getErrno());
}
}
extern(C) void std_stdio_static_this()
{
//Bind stdin, stdout, stderr
__gshared File.Impl stdinImpl;
stdinImpl.handle = core.stdc.stdio.stdin;
.stdin.p = &stdinImpl;
// stdout
__gshared File.Impl stdoutImpl;
stdoutImpl.handle = core.stdc.stdio.stdout;
.stdout.p = &stdoutImpl;
// stderr
__gshared File.Impl stderrImpl;
stderrImpl.handle = core.stdc.stdio.stderr;
.stderr.p = &stderrImpl;
}
//---------
__gshared
{
File stdin;
File stdout;
File stderr;
}
unittest
{
scope(failure) printf("Failed test at line %d\n", __LINE__);
auto deleteme = testFilename();
std.file.write(deleteme, "1 2\n4 1\n5 100");
scope(exit) std.file.remove(deleteme);
{
File f = File(deleteme);
scope(exit) f.close();
auto t = [ tuple(1, 2), tuple(4, 1), tuple(5, 100) ];
uint i;
foreach (e; f.byRecord!(int, int)("%s %s"))
{
//writeln(e);
assert(e == t[i++]);
}
assert(i == 3);
}
}
// Private implementation of readln
version (DIGITAL_MARS_STDIO)
private size_t readlnImpl(FILE* fps, ref char[] buf, dchar terminator = '\n')
{
FLOCK(fps);
scope(exit) FUNLOCK(fps);
/* Since fps is now locked, we can create an "unshared" version
* of fp.
*/
auto fp = cast(_iobuf*)fps;
if (__fhnd_info[fp._file] & FHND_WCHAR)
{ /* Stream is in wide characters.
* Read them and convert to chars.
*/
static assert(wchar_t.sizeof == 2);
auto app = appender(buf);
app.clear();
for (int c = void; (c = FGETWC(fp)) != -1; )
{
if ((c & ~0x7F) == 0)
{ app.put(cast(char) c);
if (c == terminator)
break;
}
else
{
if (c >= 0xD800 && c <= 0xDBFF)
{
int c2 = void;
if ((c2 = FGETWC(fp)) != -1 ||
c2 < 0xDC00 && c2 > 0xDFFF)
{
StdioException("unpaired UTF-16 surrogate");
}
c = ((c - 0xD7C0) << 10) + (c2 - 0xDC00);
}
//std.utf.encode(buf, c);
app.put(cast(dchar)c);
}
}
if (ferror(fps))
StdioException();
buf = app.data;
return buf.length;
}
auto sz = GC.sizeOf(buf.ptr);
//auto sz = buf.length;
buf = buf.ptr[0 .. sz];
if (fp._flag & _IONBF)
{
/* Use this for unbuffered I/O, when running
* across buffer boundaries, or for any but the common
* cases.
*/
L1:
auto app = appender(buf);
app.clear();
if(app.capacity == 0)
app.reserve(128); // get at least 128 bytes available
int c;
while((c = FGETC(fp)) != -1) {
app.put(cast(char) c);
if(c == terminator) {
buf = app.data;
return buf.length;
}
}
if (ferror(fps))
StdioException();
buf = app.data;
return buf.length;
}
else
{
int u = fp._cnt;
char* p = fp._ptr;
int i;
if (fp._flag & _IOTRAN)
{ /* Translated mode ignores \r and treats ^Z as end-of-file
*/
char c;
while (1)
{
if (i == u) // if end of buffer
goto L1; // give up
c = p[i];
i++;
if (c != '\r')
{
if (c == terminator)
break;
if (c != 0x1A)
continue;
goto L1;
}
else
{ if (i != u && p[i] == terminator)
break;
goto L1;
}
}
if (i > sz)
{
buf = uninitializedArray!(char[])(i);
}
if (i - 1)
memcpy(buf.ptr, p, i - 1);
buf[i - 1] = cast(char)terminator;
buf = buf[0 .. i];
if (terminator == '\n' && c == '\r')
i++;
}
else
{
while (1)
{
if (i == u) // if end of buffer
goto L1; // give up
auto c = p[i];
i++;
if (c == terminator)
break;
}
if (i > sz)
{
buf = uninitializedArray!(char[])(i);
}
memcpy(buf.ptr, p, i);
buf = buf[0 .. i];
}
fp._cnt -= i;
fp._ptr += i;
return i;
}
}
version (GCC_IO)
private size_t readlnImpl(FILE* fps, ref char[] buf, dchar terminator = '\n')
{
if (fwide(fps, 0) > 0)
{ /* Stream is in wide characters.
* Read them and convert to chars.
*/
FLOCK(fps);
scope(exit) FUNLOCK(fps);
auto fp = cast(_iobuf*)fps;
version (Windows)
{
buf.length = 0;
for (int c = void; (c = FGETWC(fp)) != -1; )
{
if ((c & ~0x7F) == 0)
{ buf ~= c;
if (c == terminator)
break;
}
else
{
if (c >= 0xD800 && c <= 0xDBFF)
{
int c2 = void;
if ((c2 = FGETWC(fp)) != -1 ||
c2 < 0xDC00 && c2 > 0xDFFF)
{
StdioException("unpaired UTF-16 surrogate");
}
c = ((c - 0xD7C0) << 10) + (c2 - 0xDC00);
}
std.utf.encode(buf, c);
}
}
if (ferror(fp))
StdioException();
return buf.length;
}
else version (Posix)
{
buf.length = 0;
for (int c; (c = FGETWC(fp)) != -1; )
{
if ((c & ~0x7F) == 0)
buf ~= cast(char)c;
else
std.utf.encode(buf, cast(dchar)c);
if (c == terminator)
break;
}
if (ferror(fps))
StdioException();
return buf.length;
}
else
{
static assert(0);
}
}
char *lineptr = null;
size_t n = 0;
auto s = getdelim(&lineptr, &n, terminator, fps);
scope(exit) free(lineptr);
if (s < 0)
{
if (ferror(fps))
StdioException();
buf.length = 0; // end of file
return 0;
}
buf = buf.ptr[0 .. GC.sizeOf(buf.ptr)];
if (s <= buf.length)
{
buf.length = s;
buf[] = lineptr[0 .. s];
}
else
{
buf = lineptr[0 .. s].dup;
}
return s;
}
version (GENERIC_IO)
private size_t readlnImpl(FILE* fps, ref char[] buf, dchar terminator = '\n')
{
FLOCK(fps);
scope(exit) FUNLOCK(fps);
auto fp = cast(_iobuf*)fps;
if (fwide(fps, 0) > 0)
{ /* Stream is in wide characters.
* Read them and convert to chars.
*/
version (Windows)
{
buf.length = 0;
for (int c; (c = FGETWC(fp)) != -1; )
{
if ((c & ~0x7F) == 0)
{ buf ~= c;
if (c == terminator)
break;
}
else
{
if (c >= 0xD800 && c <= 0xDBFF)
{
int c2 = void;
if ((c2 = FGETWC(fp)) != -1 ||
c2 < 0xDC00 && c2 > 0xDFFF)
{
StdioException("unpaired UTF-16 surrogate");
}
c = ((c - 0xD7C0) << 10) + (c2 - 0xDC00);
}
std.utf.encode(buf, c);
}
}
if (ferror(fp))
StdioException();
return buf.length;
}
else version (Posix)
{
buf.length = 0;
for (int c; (c = FGETWC(fp)) != -1; )
{
if ((c & ~0x7F) == 0)
buf ~= cast(char)c;
else
std.utf.encode(buf, cast(dchar)c);
if (c == terminator)
break;
}
if (ferror(fps))
StdioException();
return buf.length;
}
else
{
static assert(0);
}
}
// Narrow stream
// First, fill the existing buffer
for (size_t bufPos = 0; bufPos < buf.length; )
{
immutable c = FGETC(fp);
if (c == -1)
{
buf.length = bufPos;
goto endGame;
}
buf.ptr[bufPos++] = cast(char) c;
if (c == terminator)
{
// No need to test for errors in file
buf.length = bufPos;
return bufPos;
}
}
// Then, append to it
for (int c; (c = FGETC(fp)) != -1; )
{
buf ~= cast(char)c;
if (c == terminator)
{
// No need to test for errors in file
return buf.length;
}
}
endGame:
if (ferror(fps))
StdioException();
return buf.length;
}
/** Experimental network access via the File interface
Opens a TCP connection to the given host and port, then returns
a File struct with read and write access through the same interface
as any other file (meaning writef and the byLine ranges work!).
Authors:
Adam D. Ruppe
Bugs:
Only works on Linux
*/
version(linux) {
static import linux = std.c.linux.linux;
static import sock = std.c.linux.socket;
File openNetwork(string host, ushort port) {
auto h = enforce( sock.gethostbyname(std.string.toStringz(host)),
new StdioException("gethostbyname"));
int s = sock.socket(sock.AF_INET, sock.SOCK_STREAM, 0);
enforce(s != -1, new StdioException("socket"));
scope(failure) {
linux.close(s); // want to make sure it doesn't dangle if
// something throws. Upon normal exit, the
// File struct's reference counting takes
// care of closing, so we don't need to
// worry about success
}
sock.sockaddr_in addr;
addr.sin_family = sock.AF_INET;
addr.sin_port = sock.htons(port);
std.c.string.memcpy(&addr.sin_addr.s_addr, h.h_addr, h.h_length);
enforce(sock.connect(s, cast(sock.sockaddr*) &addr, addr.sizeof) != -1,
new StdioException("Connect failed"));
FILE* fp = enforce(fdopen(s, "w+".ptr));
File f;
f.p = new File.Impl(fp, 1, host ~ ":" ~ to!string(port));
return f;
}
}
version(unittest) string testFilename(string file = __FILE__, size_t line = __LINE__)
{
import std.path;
return text("deleteme.", baseName(file), ".", line);
}
| D |
# FIXED
NPI/npi.obj: C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/common/cc26xx/npi/stack/npi.c
NPI/npi.obj: C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/hal/src/target/_common/hal_types.h
NPI/npi.obj: C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/hal/src/target/_common/../_common/cc26xx/_hal_types.h
NPI/npi.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.4.LTS/include/stdint.h
NPI/npi.obj: C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/npi/src/inc/npi_ble.h
NPI/npi.obj: C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/hal/src/target/_common/hal_types.h
NPI/npi.obj: C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/osal/src/inc/osal.h
NPI/npi.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.4.LTS/include/limits.h
NPI/npi.obj: C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/osal/src/inc/comdef.h
NPI/npi.obj: C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/hal/src/target/_common/hal_types.h
NPI/npi.obj: C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/hal/src/inc/hal_defs.h
NPI/npi.obj: C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/osal/src/inc/osal_memory.h
NPI/npi.obj: C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/osal/src/inc/osal_timers.h
NPI/npi.obj: C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/icall/src/inc/icall.h
NPI/npi.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.4.LTS/include/stdbool.h
NPI/npi.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.4.LTS/include/stdlib.h
NPI/npi.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.4.LTS/include/linkage.h
NPI/npi.obj: C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/hal/src/inc/hal_assert.h
NPI/npi.obj: C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/hal/src/target/_common/hal_types.h
NPI/npi.obj: C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/common/cc26xx/npi/stack/npi.h
NPI/npi.obj: C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/hal/src/target/_common/hal_types.h
NPI/npi.obj: C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/inc/bcomdef.h
C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/common/cc26xx/npi/stack/npi.c:
C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/hal/src/target/_common/hal_types.h:
C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/hal/src/target/_common/../_common/cc26xx/_hal_types.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.4.LTS/include/stdint.h:
C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/npi/src/inc/npi_ble.h:
C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/hal/src/target/_common/hal_types.h:
C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/osal/src/inc/osal.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.4.LTS/include/limits.h:
C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/osal/src/inc/comdef.h:
C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/hal/src/target/_common/hal_types.h:
C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/hal/src/inc/hal_defs.h:
C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/osal/src/inc/osal_memory.h:
C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/osal/src/inc/osal_timers.h:
C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/icall/src/inc/icall.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.4.LTS/include/stdbool.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.4.LTS/include/stdlib.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.4.LTS/include/linkage.h:
C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/hal/src/inc/hal_assert.h:
C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/hal/src/target/_common/hal_types.h:
C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/common/cc26xx/npi/stack/npi.h:
C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/hal/src/target/_common/hal_types.h:
C:/ti/simplelink_cc13x0_sdk_1_60_00_21/source/ti/blestack/inc/bcomdef.h:
| D |
instance DIA_BAU_13_EXIT(C_INFO)
{
nr = 999;
condition = dia_bau_13_exit_condition;
information = dia_bau_13_exit_info;
permanent = TRUE;
description = DIALOG_ENDE;
};
func int dia_bau_13_exit_condition()
{
return TRUE;
};
func void dia_bau_13_exit_info()
{
AI_StopProcessInfos(self);
};
instance DIA_BAU_13_JOIN(C_INFO)
{
nr = 4;
condition = dia_bau_13_join_condition;
information = dia_bau_13_join_info;
permanent = TRUE;
description = "Расскажи мне подробнее об этих наемниках!";
};
func int dia_bau_13_join_condition()
{
if(KAPITEL == 1)
{
return TRUE;
};
};
func void dia_bau_13_join_info()
{
AI_Output(other,self,"DIA_BAU_13_JOIN_15_00"); //Расскажи мне подробнее об этих наемниках!
AI_Output(self,other,"DIA_BAU_13_JOIN_13_01"); //Если у тебя с ними какие-то проблемы, иди к Ли. Мы, фермеры, всегда так делаем. Он держит своих людей в ежовых рукавицах.
AI_Output(self,other,"DIA_BAU_13_JOIN_13_02"); //Если кто-то из них ведет себя неправильно, он рискует нарваться на неприятности.
};
instance DIA_BAU_13_PEOPLE(C_INFO)
{
nr = 3;
condition = dia_bau_13_people_condition;
information = dia_bau_13_people_info;
permanent = TRUE;
description = "Кто командует здесь?";
};
func int dia_bau_13_people_condition()
{
return TRUE;
};
func void dia_bau_13_people_info()
{
AI_Output(other,self,"DIA_BAU_13_PEOPLE_15_00"); //Кто заправляет здесь?
AI_Output(self,other,"DIA_BAU_13_PEOPLE_13_01"); //Если тебе интересно мое мнение - то наемники. Конечно, Онар платит им, но только Иннос знает, сколько еще они будут повиноваться его приказам.
AI_Output(self,other,"DIA_BAU_13_PEOPLE_13_02"); //Я не хотел бы оказаться в его шкуре, если до наемников вдруг дойдет, что без него можно обойтись.
};
instance DIA_BAU_13_LOCATION(C_INFO)
{
nr = 2;
condition = dia_bau_13_location_condition;
information = dia_bau_13_location_info;
permanent = TRUE;
description = "Что ты можешь рассказать мне об этом квартале?";
};
func int dia_bau_13_location_condition()
{
return TRUE;
};
func void dia_bau_13_location_info()
{
AI_Output(other,self,"DIA_BAU_13_LOCATION_15_00"); //Что ты можешь сказать об этом районе?
AI_Output(self,other,"DIA_BAU_13_LOCATION_13_01"); //Здесь есть три фермы. Ферма Онара к востоку и Секоба к северу в конце долины.
AI_Output(self,other,"DIA_BAU_13_LOCATION_13_02"); //На юго-западе есть проход на высокогорное плато. Там находится ферма Бенгара.
};
instance DIA_BAU_13_STANDARD(C_INFO)
{
nr = 1;
condition = dia_bau_13_standard_condition;
information = dia_bau_13_standard_info;
permanent = TRUE;
description = "Что нового?";
};
func int dia_bau_13_standard_condition()
{
return TRUE;
};
func void dia_bau_13_standard_info()
{
AI_Output(other,self,"DIA_BAU_13_STANDARD_15_00"); //Что новенького?
if(KAPITEL == 1)
{
AI_Output(self,other,"DIA_BAU_13_STANDARD_13_01"); //Войска из города больше не забирают наш урожай и скот! Они не захотели играть в эту игру, когда мы начали защищаться!
};
if(KAPITEL == 2)
{
AI_Output(self,other,"DIA_BAU_13_STANDARD_13_02"); //Паладинов из города не волнует судьба фермеров. Если нападут орки, мы будем брошены на произвол судьбы.
};
if(KAPITEL == 3)
{
AI_Output(self,other,"DIA_BAU_13_STANDARD_13_03"); //Драконы! Ходят слухи, что в Долине Рудников появились драконы. Они скоро доберутся до Прохода!
};
if(KAPITEL == 4)
{
AI_Output(self,other,"DIA_BAU_13_STANDARD_13_04"); //Говорят, даже, что бандиты с гор направились в Долину Рудников. Ну, по мне - так это слишком опасно.
};
if(KAPITEL >= 5)
{
AI_Output(self,other,"DIA_BAU_13_STANDARD_13_05"); //Когда налоги будут снижены, и нам будут достойно платить за нашу работу, тогда мы опять будем торговать с городом.
};
};
func void b_assignambientinfos_bau_13(var C_NPC slf)
{
dia_bau_13_exit.npc = Hlp_GetInstanceID(slf);
dia_bau_13_join.npc = Hlp_GetInstanceID(slf);
dia_bau_13_people.npc = Hlp_GetInstanceID(slf);
dia_bau_13_location.npc = Hlp_GetInstanceID(slf);
dia_bau_13_standard.npc = Hlp_GetInstanceID(slf);
};
| D |
/*******************************************
* NSC braut Trank *
*******************************************/
func void ZS_PotionAlchemy()
{
//PrintDebugNpc (PD_TA_FRAME,"ZS_PotionAlchemy");
B_SetPerception (self);
if !(C_BodyStateContains(self,BS_MOBINTERACT_INTERRUPT))
{
AI_SetWalkmode (self,NPC_WALK); // Walkmode für den Zustand
if ((Hlp_StrCmp(Npc_GetNearestWp (self),self.wp)== 0))
{
AI_GotoWP (self, self.wp);
};
AI_UseMob (self,"LAB",1); // Benutze den Mob einmal bis zum angegebenen State
};
};
func void ZS_PotionAlchemy_Loop()
{
//PrintDebugNpc (PD_TA_LOOP,"ZS_PotionAlchemy_Loop");
var int randomizer;
randomizer = Hlp_Random (20);
if (Npc_GetStateTime ( self ) >= 100 + randomizer)
{
B_InterruptMob ("LAB");
};
AI_Wait(self,1);
};
func void ZS_PotionAlchemy_End ()
{
AI_UseMob (self,"LAB",-1); //Nimm den Verlassen State ein
//PrintDebugNpc (PD_TA_FRAME,"ZS_PotionAlchemy_End");
}; | D |
module cedict.lveldbdict;
import cedict.dictionary;
import cedict.parser;
import cedict.avl;
import std.format;
import std.typecons;
import leveldb;
enum LEVELDB_DB_NAME = "cedict_leveldb";
enum LEVELDB_SPECIAL_INITIALIZED_MARKER = "__LEVELDB_DICTIONARY_IS_INITIALIZED";
class LevelDBDictionary : Dictionary {
private DB db;
private bool _ready;
this() {
auto opt = new Options;
opt.create_if_missing = true;
this.db = new DB(opt, LEVELDB_DB_NAME);
if (this.db.get_slice(LEVELDB_SPECIAL_INITIALIZED_MARKER).ok) {
this._ready = true;
}
}
bool ready() {
if (!this._ready) {
this._ready = this.db.get_slice(LEVELDB_SPECIAL_INITIALIZED_MARKER).ok;
}
return this._ready;
}
import std.stdio;
import std.conv;
void insert(wstring key, wstring value) {
if (!this.ready) {
this.db.put(LEVELDB_SPECIAL_INITIALIZED_MARKER, true);
}
this.db.put(key.to!string, value.to!string);
}
Nullable!wstring get(wstring key) {
auto ret = this.db.get_slice(key.to!string);
if (ret.ok) {
import std.conv;
return ret.as!string
.to!wstring
.nullable;
} else {
return typeof(return).init;
}
}
bool exists(wstring key) {
return this.db.get_slice(key.to!string).ok;
}
private wstring[] heads_cache;
wstring[] getHeads() {
if (heads_cache.length) {
return heads_cache;
}
auto it = this.db.iterator;
foreach (Slice key, value; it) {
heads_cache ~= key.as!string
.to!wstring;
}
return heads_cache;
}
}
| D |
instance NOV_1355_NOVIZE(NPC_DEFAULT)
{
name[0] = NAME_NOVIZE;
npctype = NPCTYPE_AMBIENT;
guild = GIL_NOV;
level = 3;
flags = 0;
voice = 3;
id = 1355;
attribute[ATR_STRENGTH] = 10;
attribute[ATR_DEXTERITY] = 10;
attribute[ATR_MANA_MAX] = 0;
attribute[ATR_MANA] = 0;
attribute[ATR_HITPOINTS_MAX] = 76;
attribute[ATR_HITPOINTS] = 76;
Mdl_SetVisual(self,"HUMANS.MDS");
Mdl_ApplyOverlayMds(self,"Humans_Relaxed.mds");
Mdl_SetVisualBody(self,"hum_body_Naked0",1,1,"Hum_Head_FatBald",28,1,nov_armor_l);
b_scale(self);
Mdl_SetModelFatness(self,0);
fight_tactic = FAI_HUMAN_COWARD;
EquipItem(self,itmw_1h_hatchet_01);
daily_routine = rtn_start_1355;
};
func void rtn_start_1355()
{
ta_sleep(2,5,7,30,"PSI_19_HUT_IN");
ta_smalltalk(7,30,2,5,"PSI_TEACH_1");
};
func void rtn_ritual_1355()
{
ta_stay(8,0,13,0,"PSI_CEREMONY_NEW3");
ta_stay(13,0,8,0,"PSI_CEREMONY_NEW3");
};
| D |
/**
A simple HTTP/1.1 client implementation.
Copyright: © 2012 RejectedSoftware e.K.
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Authors: Sönke Ludwig, Jan Krüger
*/
module vibe.http.client;
public import vibe.core.net;
public import vibe.http.common;
import vibe.core.connectionpool;
import vibe.core.core;
import vibe.core.log;
import vibe.data.json;
import vibe.inet.message;
import vibe.inet.url;
import vibe.stream.counting;
import vibe.stream.ssl;
import vibe.stream.operations;
import vibe.stream.zlib;
import vibe.utils.memory;
import std.array;
import std.conv;
import std.exception;
import std.format;
import std.string;
/**************************************************************************************************/
/* Public functions */
/**************************************************************************************************/
/**
Performs a HTTP request on the specified URL.
The 'requester' parameter allows to customize the request and to specify the request body for
non-GET requests.
*/
HttpClientResponse requestHttp(string url, scope void delegate(HttpClientRequest req) requester = null)
{
return requestHttp(Url.parse(url), requester);
}
/// ditto
HttpClientResponse requestHttp(Url url, scope void delegate(HttpClientRequest req) requester = null)
{
enforce(url.schema == "http" || url.schema == "https", "Url schema must be http(s).");
enforce(url.host.length > 0, "Url must contain a host name.");
bool ssl = url.schema == "https";
auto cli = connectHttp(url.host, url.port, ssl);
auto res = cli.request((req){
req.requestUrl = url.localURI;
req.headers["Host"] = url.host;
if( requester ) requester(req);
});
// make sure the connection stays locked if the body still needs to be read
if( !res.bodyReader.empty ) res.lockedConnection = cli;
logTrace("Returning HttpClientResponse for conn %s", cast(void*)res.lockedConnection.__conn);
return res;
}
/**
Returns a HttpClient proxy that is connected to the specified host.
Internally, a connection pool is used to reuse already existing connections.
*/
auto connectHttp(string host, ushort port = 0, bool ssl = false)
{
static ConnectionPool!HttpClient[string] s_connections;
if( port == 0 ) port = ssl ? 443 : 80;
string cstring = host ~ ':' ~ to!string(port) ~ ':' ~ to!string(ssl);
ConnectionPool!HttpClient pool;
if( auto pcp = cstring in s_connections )
pool = *pcp;
else {
pool = new ConnectionPool!HttpClient({
auto ret = new HttpClient;
ret.connect(host, port, ssl);
return ret;
});
s_connections[cstring] = pool;
}
return pool.lockConnection();
}
/**************************************************************************************************/
/* Public types */
/**************************************************************************************************/
class HttpClient : EventedObject {
enum MaxHttpHeaderLineLength = 4096;
private {
string m_server;
ushort m_port;
TcpConnection m_conn;
Stream m_stream;
SslContext m_ssl;
InputStream m_bodyReader;
static __gshared m_userAgent = "vibe.d/"~VibeVersionString~" (HttpClient, +http://vibed.org/)";
bool m_requesting = false;
}
static void setUserAgentString(string str) { m_userAgent = str; }
void acquire() { if( m_conn ) m_conn.acquire(); }
void release() { if( m_conn ) m_conn.release(); }
bool isOwner() { return m_conn ? m_conn.isOwner() : true; }
void connect(string server, ushort port = 80, bool ssl = false)
{
assert(port != 0);
m_conn = null;
m_server = server;
m_port = port;
m_ssl = ssl ? new SslContext() : null;
}
void disconnect()
{
if( m_conn ){
m_stream.finalize();
m_conn.close();
m_conn = null;
m_stream = null;
}
}
HttpClientResponse request(scope void delegate(HttpClientRequest req) requester)
{
assert(!m_requesting && !m_bodyReader, "Interleaved request detected!");
m_requesting = true;
scope(exit) m_requesting = false;
if( !m_conn || !m_conn.connected ){
m_conn = connectTcp(m_server, m_port);
m_stream = m_conn;
if( m_ssl ){
m_stream = new SslStream(m_conn, m_ssl, SslStreamState.Connecting);
}
}
auto req = new HttpClientRequest(m_stream);
req.headers["User-Agent"] = m_userAgent;
req.headers["Connection"] = "keep-alive";
req.headers["Accept-Encoding"] = "gzip, deflate";
req.headers["Host"] = m_server;
requester(req);
req.finalize();
auto res = new HttpClientResponse(this);
// read and parse status line ("HTTP/#.# #[ $]\r\n")
logTrace("HTTP client reading status line");
string stln = cast(string)m_stream.readLine(MaxHttpHeaderLineLength);
logTrace("stln: %s", stln);
res.httpVersion = parseHttpVersion(stln);
enforce(stln.startsWith(" "));
stln = stln[1 .. $];
res.statusCode = parse!int(stln);
if( stln.length > 0 ){
enforce(stln.startsWith(" "));
stln = stln[1 .. $];
res.statusPhrase = stln;
}
// read headers until an empty line is hit
parseRfc5322Header(m_stream, res.headers, MaxHttpHeaderLineLength);
// prepare body the reader
if( req.method == HttpMethod.HEAD ){
res.m_limitedInputStream = FreeListRef!LimitedInputStream(m_stream, 0);
res.bodyReader = res.m_limitedInputStream;
} else {
if( auto pte = "Transfer-Encoding" in res.headers ){
enforce(*pte == "chunked");
res.m_chunkedInputStream = FreeListRef!ChunkedInputStream(m_stream);
res.bodyReader = res.m_chunkedInputStream;
} else if( auto pcl = "Content-Length" in res.headers ){
res.m_limitedInputStream = FreeListRef!LimitedInputStream(m_stream, to!ulong(*pcl));
res.bodyReader = res.m_limitedInputStream;
} else {
res.m_limitedInputStream = FreeListRef!LimitedInputStream(m_stream, 0);
res.bodyReader = res.m_limitedInputStream;
}
}
if( auto pce = "Content-Encoding" in res.headers ){
if( *pce == "deflate" ){
res.m_deflateInputStream = FreeListRef!DeflateInputStream(res.bodyReader);
res.bodyReader = res.m_deflateInputStream;
} else if( *pce == "gzip" ){
res.m_gzipInputStream = FreeListRef!GzipInputStream(res.bodyReader);
res.bodyReader = res.m_gzipInputStream;
}
else enforce(false, "Unsuported content encoding: "~*pce);
}
// be sure to free resouces as soon as the response has been read
res.m_endCallback = FreeListRef!EndCallbackInputStream(res.bodyReader, &res.finalize);
res.bodyReader = res.m_endCallback;
if( !res.bodyReader.empty ){
m_bodyReader = res.bodyReader;
} else assert(res.m_client is null);
return res;
}
}
final class HttpClientRequest : HttpRequest {
private {
OutputStream m_bodyWriter;
bool m_headerWritten = false;
}
private this(Stream conn)
{
super(conn);
}
/**
Writes the whole response body at once using raw bytes.
*/
void writeBody(RandomAccessStream data)
{
writeBody(data, data.size - data.tell());
}
/// ditto
void writeBody(InputStream data)
{
headers["Transfer-Encoding"] = "chunked";
bodyWriter.write(data);
finalize();
}
/// ditto
void writeBody(InputStream data, ulong length)
{
headers["Content-Length"] = to!string(length);
bodyWriter.write(data, length);
finalize();
}
/// ditto
void writeBody(ubyte[] data, string content_type = null)
{
if( content_type ) headers["Content-Type"] = content_type;
headers["Content-Length"] = to!string(data.length);
bodyWriter.write(data);
finalize();
}
/**
Writes the response body as form data.
*/
void writeFormBody(in string[string] form)
{
assert(false, "TODO");
}
/**
Writes the response body as JSON data.
*/
void writeJsonBody(T)(T data)
{
// TODO: avoid building up a string!
writeBody(cast(ubyte[])serializeToJson(data).toString(), "application/json");
}
void writePart(MultiPart part)
{
assert(false, "TODO");
}
/**
An output stream suitable for writing the request body.
The first retrieval will cause the request header to be written, make sure
that all headers are set up in advance.s
*/
@property OutputStream bodyWriter()
{
if( m_bodyWriter ) return m_bodyWriter;
assert(!m_headerWritten, "Trying to write request body after body was already written.");
writeHeader();
m_bodyWriter = m_conn;
if( headers.get("Transfer-Encoding", null) == "chunked" )
m_bodyWriter = new ChunkedOutputStream(m_bodyWriter);
return m_bodyWriter;
}
private void writeHeader()
{
assert(!m_headerWritten, "HttpClient tried to write headers twice.");
m_headerWritten = true;
auto app = appender!string();
formattedWrite(app, "%s %s %s\r\n", httpMethodString(method), requestUrl, getHttpVersionString(httpVersion));
m_conn.write(app.data, false);
foreach( k, v; headers ){
auto app2 = appender!string();
formattedWrite(app2, "%s: %s\r\n", k, v);
m_conn.write(app2.data, false);
}
m_conn.write("\r\n", true);
}
private void finalize()
{
// test if already finalized
if( m_headerWritten && !m_bodyWriter )
return;
// force the request to be sent
if( !m_headerWritten ) bodyWriter();
if( m_bodyWriter !is m_conn ) m_bodyWriter.finalize();
else m_bodyWriter.flush();
m_conn.flush();
m_bodyWriter = null;
}
}
final class HttpClientResponse : HttpResponse {
private {
HttpClient m_client;
LockedConnection!HttpClient lockedConnection;
FreeListRef!LimitedInputStream m_limitedInputStream;
FreeListRef!ChunkedInputStream m_chunkedInputStream;
FreeListRef!GzipInputStream m_gzipInputStream;
FreeListRef!DeflateInputStream m_deflateInputStream;
FreeListRef!EndCallbackInputStream m_endCallback;
}
/**
An input stream suitable for reading the response body.
*/
InputStream bodyReader;
private this(HttpClient client)
{
m_client = client;
}
~this()
{
if( bodyReader ){
logDebug("Warning: dropping unread body.");
dropBody();
}
}
/**
Reads the whole response body and tries to parse it as JSON.
*/
Json readJson(){
auto bdy = bodyReader.readAll();
auto str = cast(string)bdy;
return parseJson(str);
}
/**
Reads and discards the response body.
*/
void dropBody()
{
if( bodyReader ){
if( bodyReader.empty ){
finalize();
} else {
s_sink.write(bodyReader);
assert(!lockedConnection.__conn);
}
}
}
private void finalize()
{
// ignore duplicate and too early calls to finalize
// (too early happesn for empty response bodies)
if( !m_client ) return;
m_client.m_bodyReader = null;
m_client = null;
destroy(m_deflateInputStream);
destroy(m_gzipInputStream);
destroy(m_chunkedInputStream);
destroy(m_limitedInputStream);
destroy(lockedConnection);
}
}
private NullOutputStream s_sink;
static this() { s_sink = new NullOutputStream; } | D |
// REQUIRED_ARGS: -o-
// EXTRA_FILES: imports/a13226.d
// PERMUTE_ARGS: -version=bug
import imports.a13226;
class C
{
// class C member m is not accessible
version(bug) mixin(t!(typeof(this), "f")); else {}
version(bug) mixin(u!(typeof(this), "v")); else {}
void f() {}
int v;
// here is ok
version(bug) {} else mixin(t!(typeof(this), "f"));
version(bug) {} else mixin(u!(typeof(this), "v"));
}
struct S
{
// struct S member m is not accessible
version(bug) mixin(t!(typeof(this), "f")); else {}
version(bug) mixin(u!(typeof(this), "v")); else {}
void f() {}
int v;
// here is ok
version(bug) {} else mixin(t!(typeof(this), "f"));
version(bug) {} else mixin(u!(typeof(this), "v"));
}
| D |
instance VLK_4304_Addon_William(Npc_Default)
{
name[0] = "Вильям";
guild = GIL_VLK;
id = 4304;
voice = 6;
flags = FALSE;
npcType = npctype_main;
B_SetAttributesToChapter(self,2);
fight_tactic = FAI_HUMAN_NORMAL;
B_CreateAmbientInv(self);
CreateInvItems(self,ITWr_Addon_William_01,1);
CreateInvItems(self,ItKe_Lockpick,2);
CreateInvItems(self,ItFo_Apple,1);
B_SetNpcVisual(self,MALE,"Hum_Head_Thief",Face_N_Homer,BodyTex_N,ITAR_Slave);
Mdl_SetModelFatness(self,0.9);
Mdl_ApplyOverlayMds(self,"Humans_Relaxed.mds");
B_GiveNpcTalents(self);
B_SetFightSkills(self,30);
daily_routine = Rtn_Start_4304;
};
func void Rtn_Start_4304()
{
TA_Smalltalk(5,0,20,0,"ADW_ENTRANCE_RUIN2_02");
TA_Smalltalk(20,0,5,0,"ADW_ENTRANCE_RUIN2_02");
};
| D |
/**
* Part of the Compiler implementation of the D programming language
* Copyright: Copyright (C) 1999-2018 by The D Language Foundation, All Rights Reserved
* Authors: Stefan Koch
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/asttypename.d, _asttypename.d)
* Documentation: https://dlang.org/phobos/dmd_asttypename.html
* Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/asttypename.d
*/
module dmd.asttypename;
import dmd.attrib;
import dmd.aliasthis;
import dmd.aggregate;
import dmd.complex;
import dmd.cond;
import dmd.ctfeexpr;
import dmd.dclass;
import dmd.declaration;
import dmd.denum;
import dmd.dimport;
import dmd.declaration;
import dmd.dstruct;
import dmd.dsymbol;
import dmd.dtemplate;
import dmd.dversion;
import dmd.expression;
import dmd.func;
import dmd.denum;
import dmd.dimport;
import dmd.dmodule;
import dmd.mtype;
import dmd.typinf;
import dmd.identifier;
import dmd.init;
import dmd.doc;
import dmd.root.rootobject;
import dmd.statement;
import dmd.staticassert;
import dmd.nspace;
import dmd.visitor;
/// Returns: the typename of the dynamic ast-node-type
/// (this is a development tool, do not use in actual code)
string astTypeName(RootObject node)
{
final switch (node.dyncast())
{
case DYNCAST.object:
return "RootObject";
case DYNCAST.identifier:
return "Identifier";
case DYNCAST.expression:
return astTypeName(cast(Expression) node);
case DYNCAST.dsymbol:
return astTypeName(cast(Dsymbol) node);
case DYNCAST.type:
return astTypeName(cast(Type) node);
case DYNCAST.tuple:
return astTypeName(cast(Tuple) node);
case DYNCAST.parameter:
return astTypeName(cast(Parameter) node);
case DYNCAST.statement:
return astTypeName(cast(Statement) node);
case DYNCAST.condition:
return astTypeName(cast(Condition) node);
}
}
mixin
({
string astTypeNameFunctions;
string visitOverloads;
foreach (ov; __traits(getOverloads, Visitor, "visit"))
{
static if (is(typeof(ov) P == function))
{
static if (is(P[0] S == super) && is(S[0] == RootObject))
{
astTypeNameFunctions ~= `
string astTypeName(` ~ P[0].stringof ~ ` node)
{
scope tsv = new AstTypeNameVisitor;
node.accept(tsv);
return tsv.typeName;
}
`;
}
visitOverloads ~= `
override void visit (` ~ P[0].stringof ~ ` _)
{
typeName = "` ~ P[0].stringof ~ `";
}
`;
}
}
return astTypeNameFunctions ~ `
private extern(C++) final class AstTypeNameVisitor : Visitor
{
alias visit = Visitor.visit;
public :
string typeName;
` ~ visitOverloads ~ "}";
}());
///
unittest
{
import dmd.globals : Loc;
Expression e = new TypeidExp(Loc.init, null);
assert(e.astTypeName == "TypeidExp");
}
| D |
import std.stdio;
import std.concurrency;
import std.string;
import std.process;
import telegram.Client;
import telegram.update_listeners;
import telegram.types;
void main()
{
auto client = new Client("yourToken");
client.onMessageEvent = (in ref Message message)
{
string content = message.text;
string user = "%s (%s)".format(message.chat.username, message.chat.first_name);
client.sendMessage("Message received from %s: %s".format(user, content), message.chat.id);
};
client.listenForUpdates!(BasicUpdateListener);
}
| D |
module graphic.torbit;
public import graphic.torbit.torbit;
public import graphic.torbit.targtorb;
| D |
/*
* Copyright (C) 2019, HuntLabs
*
* 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.
*
*/
module hunt.database.base.RowSet;
import hunt.database.base.AsyncResult;
import hunt.database.base.Row;
import hunt.database.base.RowIterator;
import hunt.database.base.SqlResult;
import hunt.util.Common;
alias RowSetHandler = AsyncResultHandler!RowSet;
alias RowSetAsyncResult = AsyncResult!RowSet;
import std.variant;
/**
* A set of rows.
*/
interface RowSet : Iterable!(Row), SqlResult!(RowSet) {
RowIterator iterator();
// override RowSet next();
alias getAs = bind;
final T[] bind(T, alias getColumnNameFun="b")() if(is(T == struct)) {
T[] r = new T[this.rowCount()];
size_t index = 0;
foreach(Row row; this) {
r[index] = row.bind!(T, getColumnNameFun)();
index++;
}
return r;
}
final T[] bind(T, bool traverseBase=true, alias getColumnNameFun="b")() if(is(T == class)) {
T[] r = new T[this.rowCount()];
size_t index = 0;
foreach(Row row; this) {
r[index] = row.bind!(T, traverseBase, getColumnNameFun)();
index++;
}
return r;
}
Row firstRow();
Row lastRow();
final T columnInLastRow(T = int)(string name) {
T r = T.init;
foreach(Row row; this) {
Variant v = row.getValue(name);
r = v.get!T();
}
return r;
}
}
| D |
// Copyright Brian Schott (Hackerpilot) 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 ctags;
import dparse.parser;
import dparse.lexer;
import dparse.ast;
import dparse.rollback_allocator;
import std.algorithm;
import std.range;
import std.stdio;
import std.array;
import std.conv;
import std.typecons;
import containers.ttree;
import std.string;
import std.functional : toDelegate;
/**
* Prints CTAGS information to the given file.
* Includes metadata according to exuberant format used by Vim.
* Params:
* output = the file that Exuberant TAGS info is written to
* fileNames = tags will be generated from these files
*/
void printCtags(File output, string[] fileNames)
{
TTree!string tags;
LexerConfig config;
StringCache cache = StringCache(StringCache.defaultBucketCount);
foreach (fileName; fileNames)
{
RollbackAllocator rba;
ubyte[] bytes;
if (fileName == "stdin")
{
File f = std.stdio.stdin;
immutable stepSize = 4096;
ubyte[] buffer = uninitializedArray!(ubyte[])(stepSize);
while (true)
{
auto dataRead = f.rawRead(buffer[$ - stepSize .. $]);
if (dataRead.length < stepSize)
{
bytes = buffer[0 .. $ - (stepSize - dataRead.length)];
break;
}
buffer.length += stepSize;
}
}
else
{
File f = File(fileName);
if (f.size == 0)
continue;
bytes = uninitializedArray!(ubyte[])(to!size_t(f.size));
f.rawRead(bytes);
}
auto tokens = getTokensForParser(bytes, config, &cache);
Module m = parseModule(tokens.array, fileName, &rba, toDelegate(&doNothing));
auto printer = new CTagsPrinter(&tags);
printer.fileName = fileName;
printer.visit(m);
}
output.write("!_TAG_FILE_FORMAT\t2\n" ~ "!_TAG_FILE_SORTED\t1\n" ~ "!_TAG_FILE_AUTHOR\tBrian Schott\n"
~ "!_TAG_PROGRAM_URL\thttps://github.com/Hackerpilot/Dscanner/\n");
tags[].copy(output.lockingTextWriter);
}
private:
/// States determining how an access modifier affects tags when traversing the
/// AST.
/// The assumption is that there are fewer AST nodes and patterns that affects
/// the whole scope.
/// Therefor the default was chosen to be Reset.
enum AccessState
{
Reset, /// when ascending the AST reset back to the previous access.
Keep /// when ascending the AST keep the new access.
}
alias ContextType = Tuple!(string, "c", string, "access");
void doNothing(string, size_t, size_t, string, bool)
{
}
string paramsToString(Dec)(const Dec dec)
{
import dparse.formatter : Formatter;
auto app = appender!string();
auto formatter = new Formatter!(typeof(app))(app);
static if (is(Dec == FunctionDeclaration) || is(Dec == Constructor))
{
formatter.format(dec.parameters);
}
else static if (is(Dec == TemplateDeclaration))
{
formatter.format(dec.templateParameters);
}
return app.data;
}
final class CTagsPrinter : ASTVisitor
{
public this(TTree!string* output)
{
this.tagLines = output;
}
override void visit(const ClassDeclaration dec)
{
tagLines.insert("%s\t%s\t%d;\"\tc\tline:%d%s%s\n".format(dec.name.text,
fileName, dec.name.line, dec.name.line, context.c, context.access));
immutable c = context;
context = ContextType("\tclass:" ~ dec.name.text, "\taccess:public");
dec.accept(this);
context = c;
}
override void visit(const StructDeclaration dec)
{
if (dec.name == tok!"")
{
dec.accept(this);
return;
}
tagLines.insert("%s\t%s\t%d;\"\ts\tline:%d%s%s\n".format(dec.name.text,
fileName, dec.name.line, dec.name.line, context.c, context.access));
immutable c = context;
context = ContextType("\tstruct:" ~ dec.name.text, "\taccess:public");
dec.accept(this);
context = c;
}
override void visit(const InterfaceDeclaration dec)
{
tagLines.insert("%s\t%s\t%d;\"\ti\tline:%d%s%s\n".format(dec.name.text,
fileName, dec.name.line, dec.name.line, context.c, context.access));
immutable c = context;
context = ContextType("\tinterface:" ~ dec.name.text, context.access);
dec.accept(this);
context = c;
}
override void visit(const TemplateDeclaration dec)
{
auto params = paramsToString(dec);
tagLines.insert("%s\t%s\t%d;\"\tT\tline:%d%s%s\tsignature:%s\n".format(dec.name.text,
fileName, dec.name.line, dec.name.line, context.c, context.access, params));
immutable c = context;
context = ContextType("\ttemplate:" ~ dec.name.text, context.access);
dec.accept(this);
context = c;
}
override void visit(const FunctionDeclaration dec)
{
auto params = paramsToString(dec);
tagLines.insert("%s\t%s\t%d;\"\tf\tline:%d%s%s\tsignature:%s\n".format(dec.name.text,
fileName, dec.name.line, dec.name.line, context.c, context.access, params));
}
override void visit(const Constructor dec)
{
auto params = paramsToString(dec);
tagLines.insert("this\t%s\t%d;\"\tf\tline:%d%s\tsignature:%s%s\n".format(fileName,
dec.line, dec.line, context.c, params, context.access));
}
override void visit(const Destructor dec)
{
tagLines.insert("~this\t%s\t%d;\"\tf\tline:%d%s\n".format(fileName,
dec.line, dec.line, context.c));
}
override void visit(const EnumDeclaration dec)
{
tagLines.insert("%s\t%s\t%d;\"\tg\tline:%d%s%s\n".format(dec.name.text,
fileName, dec.name.line, dec.name.line, context.c, context.access));
immutable c = context;
context = ContextType("\tenum:" ~ dec.name.text, context.access);
dec.accept(this);
context = c;
}
override void visit(const UnionDeclaration dec)
{
if (dec.name == tok!"")
{
dec.accept(this);
return;
}
tagLines.insert("%s\t%s\t%d;\"\tu\tline:%d%s\n".format(dec.name.text,
fileName, dec.name.line, dec.name.line, context.c));
immutable c = context;
context = ContextType("\tunion:" ~ dec.name.text, context.access);
dec.accept(this);
context = c;
}
override void visit(const AnonymousEnumMember mem)
{
tagLines.insert("%s\t%s\t%d;\"\te\tline:%d%s\n".format(mem.name.text,
fileName, mem.name.line, mem.name.line, context.c));
}
override void visit(const EnumMember mem)
{
tagLines.insert("%s\t%s\t%d;\"\te\tline:%d%s\n".format(mem.name.text,
fileName, mem.name.line, mem.name.line, context.c));
}
override void visit(const VariableDeclaration dec)
{
foreach (d; dec.declarators)
{
tagLines.insert("%s\t%s\t%d;\"\tv\tline:%d%s%s\n".format(d.name.text,
fileName, d.name.line, d.name.line, context.c, context.access));
}
dec.accept(this);
}
override void visit(const AutoDeclaration dec)
{
foreach (i; dec.parts.map!(a => a.identifier))
{
tagLines.insert("%s\t%s\t%d;\"\tv\tline:%d%s%s\n".format(i.text,
fileName, i.line, i.line, context.c, context.access));
}
dec.accept(this);
}
override void visit(const Invariant dec)
{
tagLines.insert("invariant\t%s\t%d;\"\tv\tline:%d%s%s\n".format(fileName,
dec.line, dec.line, context.c, context.access));
}
override void visit(const ModuleDeclaration dec)
{
context = ContextType("", "\taccess:public");
dec.accept(this);
}
override void visit(const Attribute attribute)
{
if (attribute.attribute != tok!"")
{
switch (attribute.attribute.type)
{
case tok!"export":
context.access = "\taccess:public";
break;
case tok!"public":
context.access = "\taccess:public";
break;
case tok!"package":
context.access = "\taccess:protected";
break;
case tok!"protected":
context.access = "\taccess:protected";
break;
case tok!"private":
context.access = "\taccess:private";
break;
default:
}
}
attribute.accept(this);
}
override void visit(const AttributeDeclaration dec)
{
accessSt = AccessState.Keep;
dec.accept(this);
}
override void visit(const Declaration dec)
{
immutable c = context;
dec.accept(this);
final switch (accessSt) with (AccessState)
{
case Reset:
context = c;
break;
case Keep:
break;
}
accessSt = AccessState.Reset;
}
override void visit(const Unittest dec)
{
// skipping symbols inside a unit test to not clutter the ctags file
// with "temporary" symbols.
// TODO when phobos have a unittest library investigate how that could
// be used to describe the tests.
// Maybe with UDA's to give the unittest a "name".
}
override void visit(const AliasDeclaration dec)
{
// Old style alias
if (dec.identifierList)
{
foreach (i; dec.identifierList.identifiers)
{
tagLines.insert("%s\t%s\t%d;\"\ta\tline:%d%s%s\n".format(i.text,
fileName, i.line, i.line, context.c, context.access));
}
}
dec.accept(this);
}
override void visit(const AliasInitializer dec)
{
tagLines.insert("%s\t%s\t%d;\"\ta\tline:%d%s%s\n".format(dec.name.text,
fileName, dec.name.line, dec.name.line, context.c, context.access));
dec.accept(this);
}
override void visit(const AliasThisDeclaration dec)
{
auto name = dec.identifier;
tagLines.insert("%s\t%s\t%d;\"\ta\tline:%d%s%s\n".format(name.text,
fileName, name.line, name.line, context.c, context.access));
dec.accept(this);
}
alias visit = ASTVisitor.visit;
string fileName;
TTree!string* tagLines;
ContextType context;
AccessState accessSt;
}
| D |
module UnrealScript.TribesGame.TrDevice_PlasmaCannon;
import ScriptClasses;
import UnrealScript.Helpers;
import UnrealScript.TribesGame.TrDevice_ConstantFire;
extern(C++) interface TrDevice_PlasmaCannon : TrDevice_ConstantFire
{
public extern(D):
private static __gshared ScriptClass mStaticClass;
@property final static ScriptClass StaticClass() { mixin(MGSCC("Class TribesGame.TrDevice_PlasmaCannon")); }
private static __gshared TrDevice_PlasmaCannon mDefaultProperties;
@property final static TrDevice_PlasmaCannon DefaultProperties() { mixin(MGDPC("TrDevice_PlasmaCannon", "TrDevice_PlasmaCannon TribesGame.Default__TrDevice_PlasmaCannon")); }
}
| D |
/**
* D header file for Solaris.
*
* $(LINK2 http://src.illumos.org/source/xref/illumos-gate/usr/src/head/libelf.h, illumos libelf.h)
*/
module core.sys.solaris.libelf;
version (Solaris):
extern (C):
nothrow:
import core.stdc.config;
import core.sys.posix.sys.types;
import core.sys.solaris.sys.elf;
enum Elf_Cmd
{
ELF_C_NULL = 0,
ELF_C_READ,
ELF_C_WRITE,
ELF_C_CLR,
ELF_C_SET,
ELF_C_FDDONE,
ELF_C_FDREAD,
ELF_C_RDWR,
ELF_C_WRIMAGE,
ELF_C_IMAGE,
ELF_C_NUM
}
enum ELF_F_DIRTY = 0x1;
enum ELF_F_LAYOUT = 0x4;
enum Elf_Kind
{
ELF_K_NONE = 0,
ELF_K_AR,
ELF_K_COFF,
ELF_K_ELF,
ELF_K_NUM
}
enum Elf_Type
{
ELF_T_BYTE = 0,
ELF_T_ADDR,
ELF_T_DYN,
ELF_T_EHDR,
ELF_T_HALF,
ELF_T_OFF,
ELF_T_PHDR,
ELF_T_RELA,
ELF_T_REL,
ELF_T_SHDR,
ELF_T_SWORD,
ELF_T_SYM,
ELF_T_WORD,
ELF_T_VDEF,
ELF_T_VNEED,
ELF_T_SXWORD,
ELF_T_XWORD,
ELF_T_SYMINFO,
ELF_T_NOTE,
ELF_T_MOVE,
ELF_T_MOVEP,
ELF_T_CAP,
ELF_T_NUM
}
struct Elf
{
}
struct Elf_Scn
{
}
struct Elf_Arhdr
{
char* ar_name;
time_t ar_date;
uid_t ar_uid;
gid_t ar_gid;
mode_t ar_mode;
off_t ar_size;
char* ar_rawname;
}
struct Elf_Arsym
{
char* as_name;
size_t as_off;
c_ulong as_hash;
}
struct Elf_Data
{
void* d_buf;
Elf_Type d_type;
size_t d_size;
off_t d_off;
size_t d_align;
uint d_version;
}
Elf* elf_begin(int, Elf_Cmd, Elf*);
int elf_cntl(Elf*, Elf_Cmd);
int elf_end(Elf*);
const(char)* elf_errmsg(int);
int elf_errno();
void elf_fill(int);
uint elf_flagdata(Elf_Data*, Elf_Cmd, uint);
uint elf_flagehdr(Elf*, Elf_Cmd, uint);
uint elf_flagelf(Elf*, Elf_Cmd, uint);
uint elf_flagphdr(Elf*, Elf_Cmd, uint);
uint elf_flagscn(Elf_Scn*, Elf_Cmd, uint);
uint elf_flagshdr(Elf_Scn*, Elf_Cmd, uint);
size_t elf32_fsize(Elf_Type, size_t, uint);
Elf_Arhdr* elf_getarhdr(Elf*);
Elf_Arsym* elf_getarsym(Elf*, size_t*);
off_t elf_getbase(Elf*);
Elf_Data* elf_getdata(Elf_Scn*, Elf_Data*);
Elf32_Ehdr* elf32_getehdr(Elf*);
char* elf_getident(Elf*, size_t*);
Elf32_Phdr* elf32_getphdr(Elf*);
Elf_Scn* elf_getscn(Elf*, size_t);
Elf32_Shdr* elf32_getshdr(Elf_Scn*);
int elf_getphnum(Elf*, size_t*);
int elf_getphdrnum(Elf*, size_t*);
int elf_getshnum(Elf*, size_t*);
int elf_getshdrnum(Elf*, size_t*);
int elf_getshstrndx(Elf*, size_t*);
int elf_getshdrstrndx(Elf*, size_t*);
c_ulong elf_hash(const scope char*);
uint elf_sys_encoding();
long elf32_checksum(Elf*);
Elf_Kind elf_kind(Elf*);
Elf* elf_memory(char*, size_t);
size_t elf_ndxscn(Elf_Scn*);
Elf_Data* elf_newdata(Elf_Scn*);
Elf32_Ehdr* elf32_newehdr(Elf*);
Elf32_Phdr* elf32_newphdr(Elf*, size_t);
Elf_Scn* elf_newscn(Elf*);
Elf_Scn* elf_nextscn(Elf*, Elf_Scn*);
Elf_Cmd elf_next(Elf*);
size_t elf_rand(Elf*, size_t);
Elf_Data* elf_rawdata(Elf_Scn*, Elf_Data*);
char* elf_rawfile(Elf*, size_t*);
char* elf_strptr(Elf*, size_t, size_t);
off_t elf_update(Elf*, Elf_Cmd);
uint elf_version(uint);
Elf_Data* elf32_xlatetof(Elf_Data*, const scope Elf_Data*, uint);
Elf_Data* elf32_xlatetom(Elf_Data*, const scope Elf_Data*, uint);
version (D_LP64)
{
size_t elf64_fsize(Elf_Type, size_t, uint);
Elf64_Ehdr* elf64_getehdr(Elf*);
Elf64_Phdr* elf64_getphdr(Elf*);
Elf64_Shdr* elf64_getshdr(Elf_Scn*);
long elf64_checksum(Elf*);
Elf64_Ehdr* elf64_newehdr(Elf*);
Elf64_Phdr* elf64_newphdr(Elf*, size_t);
Elf_Data* elf64_xlatetof(Elf_Data*, const scope Elf_Data*, uint);
Elf_Data* elf64_xlatetom(Elf_Data*, const scope Elf_Data*, uint);
}
| D |
void main() {
auto ip = readAs!(long[]), a = ip[0], b = ip[1];
if(a <= 0 && b >= 0) {
writeln("Zero");
return;
}
if(a > 0) {
writeln("Positive");
return;
}
if(abs(a-b) % 2 == 1) {
writeln("Positive");
return;
} else writeln("Negative");
}
// ===================================
import std.stdio;
import std.string;
import std.functional;
import std.algorithm;
import std.range;
import std.traits;
import std.math;
import std.container;
import std.bigint;
import std.numeric;
import std.conv;
import std.typecons;
import std.uni;
import std.ascii;
import std.bitmanip;
import core.bitop;
T readAs(T)() if (isBasicType!T) {
return readln.chomp.to!T;
}
T readAs(T)() if (isArray!T) {
return readln.split.to!T;
}
T[][] readMatrix(T)(uint height, uint width) if (!isSomeChar!T) {
auto res = new T[][](height, width);
foreach(i; 0..height) {
res[i] = readAs!(T[]);
}
return res;
}
T[][] readMatrix(T)(uint height, uint width) if (isSomeChar!T) {
auto res = new T[][](height, width);
foreach(i; 0..height) {
auto s = rs;
foreach(j; 0..width) res[i][j] = s[j].to!T;
}
return res;
}
int ri() {
return readAs!int;
}
double rd() {
return readAs!double;
}
string rs() {
return readln.chomp;
}
| D |
/**
Compiler settings and abstraction.
Copyright: © 2013-2014 rejectedsoftware e.K.
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Authors: Sönke Ludwig
*/
module dub.compilers.compiler;
public import dub.compilers.buildsettings;
import dub.compilers.dmd;
import dub.compilers.gdc;
import dub.compilers.ldc;
import dub.internal.vibecompat.core.file;
import dub.internal.vibecompat.core.log;
import dub.internal.vibecompat.data.json;
import dub.internal.vibecompat.inet.path;
import std.algorithm;
import std.array;
import std.conv;
import std.exception;
import std.process;
static this()
{
registerCompiler(new DmdCompiler);
registerCompiler(new GdcCompiler);
registerCompiler(new LdcCompiler);
}
Compiler getCompiler(string name)
{
foreach (c; s_compilers)
if (c.name == name)
return c;
// try to match names like gdmd or gdc-2.61
if (name.canFind("dmd")) return getCompiler("dmd");
if (name.canFind("gdc")) return getCompiler("gdc");
if (name.canFind("ldc")) return getCompiler("ldc");
throw new Exception("Unknown compiler: "~name);
}
string defaultCompiler()
{
static string name;
if (!name.length) name = findCompiler();
return name;
}
private string findCompiler()
{
import std.process : env=environment;
version (Windows) enum sep = ";", exe = ".exe";
version (Posix) enum sep = ":", exe = "";
auto compilers = ["dmd", "gdc", "gdmd", "ldc2", "ldmd2"];
auto paths = env.get("PATH", "").splitter(sep).map!Path;
auto res = compilers.find!(bin => paths.canFind!(p => existsFile(p ~ (bin~exe))));
return res.empty ? compilers[0] : res.front;
}
void registerCompiler(Compiler c)
{
s_compilers ~= c;
}
void warnOnSpecialCompilerFlags(string[] compiler_flags, BuildOptions options, string package_name, string config_name)
{
struct SpecialFlag {
string[] flags;
string alternative;
}
static immutable SpecialFlag[] s_specialFlags = [
{["-c", "-o-"], "Automatically issued by DUB, do not specify in dub.json"},
{["-w", "-Wall", "-Werr"], `Use "buildRequirements" to control warning behavior`},
{["-property", "-fproperty"], "Using this flag may break building of dependencies and it will probably be removed from DMD in the future"},
{["-wi"], `Use the "buildRequirements" field to control warning behavior`},
{["-d", "-de", "-dw"], `Use the "buildRequirements" field to control deprecation behavior`},
{["-of"], `Use "targetPath" and "targetName" to customize the output file`},
{["-debug", "-fdebug", "-g"], "Call dub with --build=debug"},
{["-release", "-frelease", "-O", "-inline"], "Call dub with --build=release"},
{["-unittest", "-funittest"], "Call dub with --build=unittest"},
{["-lib"], `Use {"targetType": "staticLibrary"} or let dub manage this`},
{["-D"], "Call dub with --build=docs or --build=ddox"},
{["-X"], "Call dub with --build=ddox"},
{["-cov"], "Call dub with --build=cov or --build=unittest-cov"},
{["-profile"], "Call dub with --build=profile"},
{["-version="], `Use "versions" to specify version constants in a compiler independent way`},
{["-debug="], `Use "debugVersions" to specify version constants in a compiler independent way`},
{["-I"], `Use "importPaths" to specify import paths in a compiler independent way`},
{["-J"], `Use "stringImportPaths" to specify import paths in a compiler independent way`},
{["-m32", "-m64"], `Use --arch=x86/--arch=x86_64 to specify the target architecture`}
];
struct SpecialOption {
BuildOption[] flags;
string alternative;
}
static immutable SpecialOption[] s_specialOptions = [
{[BuildOption.debugMode], "Call DUB with --build=debug"},
{[BuildOption.releaseMode], "Call DUB with --build=release"},
{[BuildOption.coverage], "Call DUB with --build=cov or --build=unittest-cov"},
{[BuildOption.debugInfo], "Call DUB with --build=debug"},
{[BuildOption.inline], "Call DUB with --build=release"},
{[BuildOption.noBoundsCheck], "Call DUB with --build=release-nobounds"},
{[BuildOption.optimize], "Call DUB with --build=release"},
{[BuildOption.profile], "Call DUB with --build=profile"},
{[BuildOption.unittests], "Call DUB with --build=unittest"},
{[BuildOption.warnings, BuildOption.warningsAsErrors], "Use \"buildRequirements\" to control the warning level"},
{[BuildOption.ignoreDeprecations, BuildOption.deprecationWarnings, BuildOption.deprecationErrors], "Use \"buildRequirements\" to control the deprecation warning level"},
{[BuildOption.property], "This flag is deprecated and has no effect"}
];
bool got_preamble = false;
void outputPreamble()
{
if (got_preamble) return;
got_preamble = true;
logWarn("");
if (config_name.empty) logWarn("## Warning for package %s ##", package_name);
else logWarn("## Warning for package %s, configuration %s ##", package_name, config_name);
logWarn("");
logWarn("The following compiler flags have been specified in the package description");
logWarn("file. They are handled by DUB and direct use in packages is discouraged.");
logWarn("Alternatively, you can set the DFLAGS environment variable to pass custom flags");
logWarn("to the compiler, or use one of the suggestions below:");
logWarn("");
}
foreach (f; compiler_flags) {
foreach (sf; s_specialFlags) {
if (sf.flags.any!(sff => f == sff || (sff.endsWith("=") && f.startsWith(sff)))) {
outputPreamble();
logWarn("%s: %s", f, sf.alternative);
break;
}
}
}
foreach (sf; s_specialOptions) {
foreach (f; sf.flags) {
if (options & f) {
outputPreamble();
logWarn("%s: %s", f, sf.alternative);
break;
}
}
}
if (got_preamble) logWarn("");
}
/**
Alters the build options to comply with the specified build requirements.
*/
void enforceBuildRequirements(ref BuildSettings settings)
{
settings.addOptions(BuildOption.warningsAsErrors);
if (settings.requirements & BuildRequirement.allowWarnings) { settings.options &= ~BuildOption.warningsAsErrors; settings.options |= BuildOption.warnings; }
if (settings.requirements & BuildRequirement.silenceWarnings) settings.options &= ~(BuildOption.warningsAsErrors|BuildOption.warnings);
if (settings.requirements & BuildRequirement.disallowDeprecations) { settings.options &= ~(BuildOption.ignoreDeprecations|BuildOption.deprecationWarnings); settings.options |= BuildOption.deprecationErrors; }
if (settings.requirements & BuildRequirement.silenceDeprecations) { settings.options &= ~(BuildOption.deprecationErrors|BuildOption.deprecationWarnings); settings.options |= BuildOption.ignoreDeprecations; }
if (settings.requirements & BuildRequirement.disallowInlining) settings.options &= ~BuildOption.inline;
if (settings.requirements & BuildRequirement.disallowOptimization) settings.options &= ~BuildOption.optimize;
if (settings.requirements & BuildRequirement.requireBoundsCheck) settings.options &= ~BuildOption.noBoundsCheck;
if (settings.requirements & BuildRequirement.requireContracts) settings.options &= ~BuildOption.releaseMode;
if (settings.requirements & BuildRequirement.relaxProperties) settings.options &= ~BuildOption.property;
}
/**
Replaces each referenced import library by the appropriate linker flags.
This function tries to invoke "pkg-config" if possible and falls back to
direct flag translation if that fails.
*/
void resolveLibs(ref BuildSettings settings)
{
import std.string : format;
if (settings.libs.length == 0) return;
if (settings.targetType == TargetType.library || settings.targetType == TargetType.staticLibrary) {
logDiagnostic("Ignoring all import libraries for static library build.");
settings.libs = null;
version(Windows) settings.sourceFiles = settings.sourceFiles.filter!(f => !f.endsWith(".lib")).array;
}
version (Posix) {
try {
enum pkgconfig_bin = "pkg-config";
bool exists(string lib) {
return execute([pkgconfig_bin, "--exists", lib]).status == 0;
}
auto pkgconfig_libs = settings.libs.partition!(l => !exists(l));
pkgconfig_libs ~= settings.libs[0 .. $ - pkgconfig_libs.length]
.partition!(l => !exists("lib"~l)).map!(l => "lib"~l).array;
settings.libs = settings.libs[0 .. $ - pkgconfig_libs.length];
if (pkgconfig_libs.length) {
logDiagnostic("Using pkg-config to resolve library flags for %s.", pkgconfig_libs.join(", "));
auto libflags = execute([pkgconfig_bin, "--libs"] ~ pkgconfig_libs);
enforce(libflags.status == 0, format("pkg-config exited with error code %s: %s", libflags.status, libflags.output));
foreach (f; libflags.output.split()) {
if (f.startsWith("-Wl,")) settings.addLFlags(f[4 .. $].split(","));
else settings.addLFlags(f);
}
}
if (settings.libs.length) logDiagnostic("Using direct -l... flags for %s.", settings.libs.array.join(", "));
} catch (Exception e) {
logDiagnostic("pkg-config failed: %s", e.msg);
logDiagnostic("Falling back to direct -l... flags.");
}
}
}
interface Compiler {
@property string name() const;
BuildPlatform determinePlatform(ref BuildSettings settings, string compiler_binary, string arch_override = null);
/// Replaces high level fields with low level fields and converts
/// dmd flags to compiler-specific flags
void prepareBuildSettings(ref BuildSettings settings, BuildSetting supported_fields = BuildSetting.all) const;
/// Removes any dflags that match one of the BuildOptions values and populates the BuildSettings.options field.
void extractBuildOptions(ref BuildSettings settings) const;
/// Adds the appropriate flag to set a target path
void setTarget(ref BuildSettings settings, in BuildPlatform platform, string targetPath = null) const;
/// Invokes the compiler using the given flags
void invoke(in BuildSettings settings, in BuildPlatform platform, void delegate(int, string) output_callback);
/// Invokes the underlying linker directly
void invokeLinker(in BuildSettings settings, in BuildPlatform platform, string[] objects, void delegate(int, string) output_callback);
protected final void invokeTool(string[] args, void delegate(int, string) output_callback)
{
import std.string;
int status;
if (output_callback) {
auto result = executeShell(escapeShellCommand(args));
output_callback(result.status, result.output);
status = result.status;
} else {
auto compiler_pid = spawnShell(escapeShellCommand(args));
status = compiler_pid.wait();
}
version (Posix) if (status == -9) {
throw new Exception(format("%s failed with exit code %s. This may indicate that the process has run out of memory.",
args[0], status));
}
enforce(status == 0, format("%s failed with exit code %s.", args[0], status));
}
}
/// Represents a platform a package can be build upon.
struct BuildPlatform {
/// e.g. ["posix", "windows"]
string[] platform;
/// e.g. ["x86", "x86_64"]
string[] architecture;
/// Canonical compiler name e.g. "dmd"
string compiler;
/// Compiler binary name e.g. "ldmd2"
string compilerBinary;
/// Compiled frontend version (e.g. 2065)
int frontendVersion;
enum any = BuildPlatform(null, null, null, null, -1);
/// Build platforms can be specified via a string specification.
///
/// Specifications are build upon the following scheme, where each component
/// is optional (indicated by []), but the order is obligatory.
/// "[-platform][-architecture][-compiler]"
///
/// So the following strings are valid specifications:
/// "-windows-x86-dmd"
/// "-dmd"
/// "-arm"
/// "-arm-dmd"
/// "-windows-dmd"
///
/// Params:
/// specification = The specification being matched. It must be the empty string or start with a dash.
///
/// Returns:
/// true if the given specification matches this BuildPlatform, false otherwise. (The empty string matches)
///
bool matchesSpecification(const(char)[] specification)
const {
import std.string : format;
if (specification.empty) return true;
if (this == any) return true;
auto splitted=specification.splitter('-');
assert(!splitted.empty, "No valid platform specification! The leading hyphen is required!");
splitted.popFront(); // Drop leading empty match.
enforce(!splitted.empty, format("Platform specification, if present, must not be empty: \"%s\"", specification));
if (platform.canFind(splitted.front)) {
splitted.popFront();
if(splitted.empty)
return true;
}
if (architecture.canFind(splitted.front)) {
splitted.popFront();
if(splitted.empty)
return true;
}
if (compiler == splitted.front) {
splitted.popFront();
enforce(splitted.empty, "No valid specification! The compiler has to be the last element!");
return true;
}
return false;
}
unittest {
auto platform=BuildPlatform(["posix", "linux"], ["x86_64"], "dmd");
assert(platform.matchesSpecification("-posix"));
assert(platform.matchesSpecification("-linux"));
assert(platform.matchesSpecification("-linux-dmd"));
assert(platform.matchesSpecification("-linux-x86_64-dmd"));
assert(platform.matchesSpecification("-x86_64"));
assert(!platform.matchesSpecification("-windows"));
assert(!platform.matchesSpecification("-ldc"));
assert(!platform.matchesSpecification("-windows-dmd"));
}
}
string getTargetFileName(in BuildSettings settings, in BuildPlatform platform)
{
assert(settings.targetName.length > 0, "No target name set.");
final switch (settings.targetType) {
case TargetType.autodetect: assert(false, "Configurations must have a concrete target type.");
case TargetType.none: return null;
case TargetType.sourceLibrary: return null;
case TargetType.executable:
if( platform.platform.canFind("windows") )
return settings.targetName ~ ".exe";
else return settings.targetName;
case TargetType.library:
case TargetType.staticLibrary:
if (platform.platform.canFind("windows") && platform.compiler == "dmd")
return settings.targetName ~ ".lib";
else return "lib" ~ settings.targetName ~ ".a";
case TargetType.dynamicLibrary:
if( platform.platform.canFind("windows") )
return settings.targetName ~ ".dll";
else return "lib" ~ settings.targetName ~ ".so";
case TargetType.object:
if (platform.platform.canFind("windows"))
return settings.targetName ~ ".obj";
else return settings.targetName ~ ".o";
}
}
bool isLinkerFile(string f)
{
import std.path;
switch (extension(f)) {
default:
return false;
version (Windows) {
case ".lib", ".obj", ".res", ".def":
return true;
} else {
case ".a", ".o", ".so", ".dylib":
return true;
}
}
}
/// Generate a file that will give, at compile time, informations about the compiler (architecture, frontend version...)
Path generatePlatformProbeFile()
{
import dub.internal.vibecompat.core.file;
import dub.internal.vibecompat.data.json;
import dub.internal.utils;
auto path = getTempFile("dub_platform_probe", ".d");
auto fil = openFile(path, FileMode.createTrunc);
scope (failure) {
fil.close();
}
fil.write(q{
module dub_platform_probe;
template toString(int v) { enum toString = v.stringof; }
pragma(msg, `{`);
pragma(msg,` "compiler": "`~ determineCompiler() ~ `",`);
pragma(msg, ` "frontendVersion": ` ~ toString!__VERSION__ ~ `,`);
pragma(msg, ` "compilerVendor": "` ~ __VENDOR__ ~ `",`);
pragma(msg, ` "platform": [`);
pragma(msg, ` ` ~ determinePlatform());
pragma(msg, ` ],`);
pragma(msg, ` "architecture": [`);
pragma(msg, ` ` ~ determineArchitecture());
pragma(msg, ` ],`);
pragma(msg, `}`);
string determinePlatform()
{
string ret;
version(Windows) ret ~= `"windows", `;
version(linux) ret ~= `"linux", `;
version(Posix) ret ~= `"posix", `;
version(OSX) ret ~= `"osx", `;
version(FreeBSD) ret ~= `"freebsd", `;
version(OpenBSD) ret ~= `"openbsd", `;
version(NetBSD) ret ~= `"netbsd", `;
version(DragonFlyBSD) ret ~= `"dragonflybsd", `;
version(BSD) ret ~= `"bsd", `;
version(Solaris) ret ~= `"solaris", `;
version(AIX) ret ~= `"aix", `;
version(Haiku) ret ~= `"haiku", `;
version(SkyOS) ret ~= `"skyos", `;
version(SysV3) ret ~= `"sysv3", `;
version(SysV4) ret ~= `"sysv4", `;
version(Hurd) ret ~= `"hurd", `;
version(Android) ret ~= `"android", `;
version(Cygwin) ret ~= `"cygwin", `;
version(MinGW) ret ~= `"mingw", `;
return ret;
}
string determineArchitecture()
{
string ret;
version(X86) ret ~= `"x86", `;
version(X86_64) ret ~= `"x86_64", `;
version(ARM) ret ~= `"arm", `;
version(ARM_Thumb) ret ~= `"arm_thumb", `;
version(ARM_SoftFloat) ret ~= `"arm_softfloat", `;
version(ARM_HardFloat) ret ~= `"arm_hardfloat", `;
version(ARM64) ret ~= `"arm64", `;
version(PPC) ret ~= `"ppc", `;
version(PPC_SoftFP) ret ~= `"ppc_softfp", `;
version(PPC_HardFP) ret ~= `"ppc_hardfp", `;
version(PPC64) ret ~= `"ppc64", `;
version(IA64) ret ~= `"ia64", `;
version(MIPS) ret ~= `"mips", `;
version(MIPS32) ret ~= `"mips32", `;
version(MIPS64) ret ~= `"mips64", `;
version(MIPS_O32) ret ~= `"mips_o32", `;
version(MIPS_N32) ret ~= `"mips_n32", `;
version(MIPS_O64) ret ~= `"mips_o64", `;
version(MIPS_N64) ret ~= `"mips_n64", `;
version(MIPS_EABI) ret ~= `"mips_eabi", `;
version(MIPS_NoFloat) ret ~= `"mips_nofloat", `;
version(MIPS_SoftFloat) ret ~= `"mips_softfloat", `;
version(MIPS_HardFloat) ret ~= `"mips_hardfloat", `;
version(SPARC) ret ~= `"sparc", `;
version(SPARC_V8Plus) ret ~= `"sparc_v8plus", `;
version(SPARC_SoftFP) ret ~= `"sparc_softfp", `;
version(SPARC_HardFP) ret ~= `"sparc_hardfp", `;
version(SPARC64) ret ~= `"sparc64", `;
version(S390) ret ~= `"s390", `;
version(S390X) ret ~= `"s390x", `;
version(HPPA) ret ~= `"hppa", `;
version(HPPA64) ret ~= `"hppa64", `;
version(SH) ret ~= `"sh", `;
version(SH64) ret ~= `"sh64", `;
version(Alpha) ret ~= `"alpha", `;
version(Alpha_SoftFP) ret ~= `"alpha_softfp", `;
version(Alpha_HardFP) ret ~= `"alpha_hardfp", `;
return ret;
}
string determineCompiler()
{
version(DigitalMars) return "dmd";
else version(GNU) return "gdc";
else version(LDC) return "ldc";
else version(SDC) return "sdc";
else return null;
}
});
fil.close();
return path;
}
BuildPlatform readPlatformProbe(string output)
{
import std.string;
// work around possible additional output of the compiler
auto idx1 = output.indexOf("{");
auto idx2 = output.lastIndexOf("}");
enforce(idx1 >= 0 && idx1 < idx2,
"Unexpected platform information output - does not contain a JSON object.");
output = output[idx1 .. idx2+1];
import dub.internal.vibecompat.data.json;
auto json = parseJsonString(output);
BuildPlatform build_platform;
build_platform.platform = json.platform.get!(Json[]).map!(e => e.get!string()).array();
build_platform.architecture = json.architecture.get!(Json[]).map!(e => e.get!string()).array();
build_platform.compiler = json.compiler.get!string;
build_platform.frontendVersion = json.frontendVersion.get!int;
return build_platform;
}
private {
Compiler[] s_compilers;
}
| D |
/*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
* Port to the D programming language:
* Frank Benoit <[email protected]>
*******************************************************************************/
module org.eclipse.swt.accessibility.AccessibleTextAdapter;
import org.eclipse.swt.accessibility.AccessibleTextEvent;
import org.eclipse.swt.accessibility.AccessibleTextListener;
/**
* This adapter class provides default implementations for the
* methods described by the <code>AccessibleTextListener</code> interface.
* <p>
* Classes that wish to deal with <code>AccessibleTextEvent</code>s can
* extend this class and override only the methods that they are
* interested in.
* </p><p>
* Note: Accessibility clients use child identifiers to specify
* whether they want information about a control or one of its children.
* Child identifiers are increasing integers beginning with 0.
* The identifier CHILDID_SELF represents the control itself.
* When returning a child identifier to a client, you may use CHILDID_NONE
* to indicate that no child or control has the required information.
* </p><p>
* Note: This adapter is typically used by implementors of
* a custom control to provide very detailed information about
* the control instance to accessibility clients.
* </p>
*
* @see AccessibleTextListener
* @see AccessibleTextEvent
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
*
* @since 3.0
*/
public abstract class AccessibleTextAdapter : AccessibleTextListener {
/**
* Sent when an accessibility client requests the current character offset
* of the text caret.
* The default behavior is to do nothing.
* <p>
* Return the caret offset in the <code>offset</code>
* field of the event object.
* </p>
*
* @param e an event object containing the following fields:<ul>
* <li>childID [IN] - an identifier specifying a child of the control</li>
* <li>offset [OUT] - the current offset of the text caret</li>
* </ul>
*/
public void getCaretOffset(AccessibleTextEvent e) {
}
/**
* Sent when an accessibility client requests the range of the current
* text selection.
* The default behavior is to do nothing.
* <p>
* Return the selection start offset and non-negative length in the
* <code>offset</code> and <code>length</code> fields of the event object.
* </p>
*
* @param e an event object containing the following fields:<ul>
* <li>childID [IN] - an identifier specifying a child of the control</li>
* <li>offset [OUT] - the offset of the current text selection</li>
* <li>length [OUT] - the length of the current text selection</li>
* </ul>
*/
public void getSelectionRange(AccessibleTextEvent e) {
}
}
| D |
<?xml version="1.0" encoding="ASCII" standalone="no"?>
<di:SashWindowsMngr xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmi:version="2.0">
<pageList>
<availablePage>
<emfPageIdentifier href="VAR_2_BeT-5913255679.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</availablePage>
</pageList>
<sashModel currentSelection="//@sashModel/@windows.0/@children.0">
<windows>
<children xsi:type="di:TabFolder">
<children>
<emfPageIdentifier href="VAR_2_BeT-5913255679.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</children>
</children>
</windows>
</sashModel>
</di:SashWindowsMngr>
| D |
/*
* MsgTrans - Message Transport Framework for DLang. Based on TCP, WebSocket, UDP transmission protocol.
*
* Copyright (C) 2019 HuntLabs
*
* Website: https://www.msgtrans.org
*
* Licensed under the Apache-2.0 License.
*
*/
module msgtrans.MessageTransport;
import msgtrans.MessageTransport;
import msgtrans.MessageHandler;
import msgtrans.SessionManager;
import msgtrans.executor.Executor;
import msgtrans.executor.ExecutorInfo;
import hunt.Exceptions;
import hunt.logging.ConsoleLogger;
import std.format;
enum SERVER_NAME_PREFIX = "SERVER-";
enum CLIENT_NAME_PREFIX = "CLIENT-";
/**
*
*/
abstract class MessageTransport {
private string _name;
private ExecutorInfo[uint] _executors;
private MessageHandler[uint] _messageHandlers;
this(string name) {
_name = name;
ExecutorInfo[] executors = Executor.getExecutors(_name);
foreach(ExecutorInfo e; executors) {
_executors[e.messageId()] = e;
}
}
string name() {
return _name;
}
void registerHandler(uint msgId, MessageHandler handler) {
auto itemPtr = msgId in _messageHandlers;
if(itemPtr is null) {
_messageHandlers[msgId] = handler;
} else {
// throw new Exception(format("Message handler confliction: %d", msgId));
version(MSGTRANS_DEBUG) {
warningf("Message handler confliction: %d", msgId);
}
}
}
void deregisterHandler(uint msgId) {
auto itemPtr = msgId in _messageHandlers;
if(itemPtr is null) {
// throw new Exception(format("No message handler found: %d", msgId));
version(MSGTRANS_DEBUG) {
warningf("No message handler found: %d", msgId);
}
} else {
_messageHandlers.remove(msgId);
}
}
MessageHandler getMessageHandler(uint id) {
auto itemPtr = id in _messageHandlers;
if(itemPtr is null) {
string msg = format("No message handler found for MessageID %d in peer %s", id, _name);
version(MSGTRANS_DEBUG) warning(msg);
return null;
}
return *itemPtr;
}
ExecutorInfo getExecutor(uint id) {
auto itemPtr = id in _executors;
if(itemPtr is null) {
string msg = format("No message handler found for MessageID %d in server %s", id, _name);
version(HUNT_DEBUG) warning(msg);
// throw new NoSuchElementException(msg);
return ExecutorInfo.init;
}
return *itemPtr;
}
SessionManager sessionManager() { return null; }
}
/**
*
*/
struct TransportServer {
enum NAME_PREFIX = "SERVER-";
string name;
}
/**
*
*/
struct TransportClient {
enum NAME_PREFIX = "CLIENT-";
string name;
} | D |
/*
* Copyright 2020 Google LLC
*
* 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.
*/
module riscv.gen.isa.rv32i_instr;
import riscv.gen.riscv_defines;
import uvm;
// LOAD instructions
mixin (riscv_instr_mixin(LB, I_FORMAT, LOAD, RV32I));
mixin (riscv_instr_mixin(LH, I_FORMAT, LOAD, RV32I));
mixin (riscv_instr_mixin(LW, I_FORMAT, LOAD, RV32I));
mixin (riscv_instr_mixin(LBU, I_FORMAT, LOAD, RV32I));
mixin (riscv_instr_mixin(LHU, I_FORMAT, LOAD, RV32I));
// STORE instructions
mixin (riscv_instr_mixin(SB, S_FORMAT, STORE, RV32I));
mixin (riscv_instr_mixin(SH, S_FORMAT, STORE, RV32I));
mixin (riscv_instr_mixin(SW, S_FORMAT, STORE, RV32I));
// SHIFT intructions
mixin (riscv_instr_mixin(SLL, R_FORMAT, SHIFT, RV32I));
mixin (riscv_instr_mixin(SLLI, I_FORMAT, SHIFT, RV32I));
mixin (riscv_instr_mixin(SRL, R_FORMAT, SHIFT, RV32I));
mixin (riscv_instr_mixin(SRLI, I_FORMAT, SHIFT, RV32I));
mixin (riscv_instr_mixin(SRA, R_FORMAT, SHIFT, RV32I));
mixin (riscv_instr_mixin(SRAI, I_FORMAT, SHIFT, RV32I));
// ARITHMETIC intructions
mixin (riscv_instr_mixin(ADD, R_FORMAT, ARITHMETIC, RV32I));
mixin (riscv_instr_mixin(ADDI, I_FORMAT, ARITHMETIC, RV32I));
mixin (riscv_instr_mixin(NOP, I_FORMAT, ARITHMETIC, RV32I));
mixin (riscv_instr_mixin(SUB, R_FORMAT, ARITHMETIC, RV32I));
mixin (riscv_instr_mixin(LUI, U_FORMAT, ARITHMETIC, RV32I, UIMM));
mixin (riscv_instr_mixin(AUIPC, U_FORMAT, ARITHMETIC, RV32I, UIMM));
// LOGICAL instructions
mixin (riscv_instr_mixin(XOR, R_FORMAT, LOGICAL, RV32I));
mixin (riscv_instr_mixin(XORI, I_FORMAT, LOGICAL, RV32I));
mixin (riscv_instr_mixin(OR, R_FORMAT, LOGICAL, RV32I));
mixin (riscv_instr_mixin(ORI, I_FORMAT, LOGICAL, RV32I));
mixin (riscv_instr_mixin(AND, R_FORMAT, LOGICAL, RV32I));
mixin (riscv_instr_mixin(ANDI, I_FORMAT, LOGICAL, RV32I));
// COMPARE instructions
mixin (riscv_instr_mixin(SLT, R_FORMAT, COMPARE, RV32I));
mixin (riscv_instr_mixin(SLTI, I_FORMAT, COMPARE, RV32I));
mixin (riscv_instr_mixin(SLTU, R_FORMAT, COMPARE, RV32I));
mixin (riscv_instr_mixin(SLTIU, I_FORMAT, COMPARE, RV32I));
// BRANCH instructions
mixin (riscv_instr_mixin(BEQ, B_FORMAT, BRANCH, RV32I));
mixin (riscv_instr_mixin(BNE, B_FORMAT, BRANCH, RV32I));
mixin (riscv_instr_mixin(BLT, B_FORMAT, BRANCH, RV32I));
mixin (riscv_instr_mixin(BGE, B_FORMAT, BRANCH, RV32I));
mixin (riscv_instr_mixin(BLTU, B_FORMAT, BRANCH, RV32I));
mixin (riscv_instr_mixin(BGEU, B_FORMAT, BRANCH, RV32I));
// JUMP instructions
mixin (riscv_instr_mixin(JAL, J_FORMAT, JUMP, RV32I));
mixin (riscv_instr_mixin(JALR, I_FORMAT, JUMP, RV32I));
// SYNCH instructions
mixin (riscv_instr_mixin(FENCE, I_FORMAT, SYNCH, RV32I));
mixin (riscv_instr_mixin(FENCE_I, I_FORMAT, SYNCH, RV32I));
mixin (riscv_instr_mixin(SFENCE_VMA, R_FORMAT, SYNCH, RV32I));
// SYSTEM instructions
mixin (riscv_instr_mixin(ECALL, I_FORMAT, SYSTEM, RV32I));
mixin (riscv_instr_mixin(EBREAK, I_FORMAT, SYSTEM, RV32I));
mixin (riscv_instr_mixin(URET, I_FORMAT, SYSTEM, RV32I));
mixin (riscv_instr_mixin(SRET, I_FORMAT, SYSTEM, RV32I));
mixin (riscv_instr_mixin(MRET, I_FORMAT, SYSTEM, RV32I));
mixin (riscv_instr_mixin(DRET, I_FORMAT, SYSTEM, RV32I));
mixin (riscv_instr_mixin(WFI, I_FORMAT, INTERRUPT, RV32I));
// CSR instructions
mixin (riscv_instr_mixin(CSRRW, R_FORMAT, CSR, RV32I, UIMM));
mixin (riscv_instr_mixin(CSRRS, R_FORMAT, CSR, RV32I, UIMM));
mixin (riscv_instr_mixin(CSRRC, R_FORMAT, CSR, RV32I, UIMM));
mixin (riscv_instr_mixin(CSRRWI, I_FORMAT, CSR, RV32I, UIMM));
mixin (riscv_instr_mixin(CSRRSI, I_FORMAT, CSR, RV32I, UIMM));
mixin (riscv_instr_mixin(CSRRCI, I_FORMAT, CSR, RV32I, UIMM));
| D |
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.0
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
module vtkCaptionRepresentation;
static import vtkd_im;
static import core.stdc.config;
static import std.conv;
static import std.string;
static import std.conv;
static import std.string;
static import vtkObjectBase;
static import SWIGTYPE_p_double;
static import vtkCaptionActor2D;
static import vtkPointHandleRepresentation3D;
static import vtkBorderRepresentation;
class vtkCaptionRepresentation : vtkBorderRepresentation.vtkBorderRepresentation {
private void* swigCPtr;
public this(void* cObject, bool ownCObject) {
super(vtkd_im.vtkCaptionRepresentation_Upcast(cObject), ownCObject);
swigCPtr = cObject;
}
public static void* swigGetCPtr(vtkCaptionRepresentation obj) {
return (obj is null) ? null : obj.swigCPtr;
}
mixin vtkd_im.SwigOperatorDefinitions;
public override void dispose() {
synchronized(this) {
if (swigCPtr !is null) {
if (swigCMemOwn) {
swigCMemOwn = false;
throw new object.Exception("C++ destructor does not have public access");
}
swigCPtr = null;
super.dispose();
}
}
}
public static vtkCaptionRepresentation New() {
void* cPtr = vtkd_im.vtkCaptionRepresentation_New();
vtkCaptionRepresentation ret = (cPtr is null) ? null : new vtkCaptionRepresentation(cPtr, false);
return ret;
}
public static int IsTypeOf(string type) {
auto ret = vtkd_im.vtkCaptionRepresentation_IsTypeOf((type ? std.string.toStringz(type) : null));
return ret;
}
public static vtkCaptionRepresentation SafeDownCast(vtkObjectBase.vtkObjectBase o) {
void* cPtr = vtkd_im.vtkCaptionRepresentation_SafeDownCast(vtkObjectBase.vtkObjectBase.swigGetCPtr(o));
vtkCaptionRepresentation ret = (cPtr is null) ? null : new vtkCaptionRepresentation(cPtr, false);
return ret;
}
public vtkCaptionRepresentation NewInstance() const {
void* cPtr = vtkd_im.vtkCaptionRepresentation_NewInstance(cast(void*)swigCPtr);
vtkCaptionRepresentation ret = (cPtr is null) ? null : new vtkCaptionRepresentation(cPtr, false);
return ret;
}
alias vtkBorderRepresentation.vtkBorderRepresentation.NewInstance NewInstance;
public void SetAnchorPosition(SWIGTYPE_p_double.SWIGTYPE_p_double pos) {
vtkd_im.vtkCaptionRepresentation_SetAnchorPosition(cast(void*)swigCPtr, SWIGTYPE_p_double.SWIGTYPE_p_double.swigGetCPtr(pos));
}
public void GetAnchorPosition(SWIGTYPE_p_double.SWIGTYPE_p_double pos) {
vtkd_im.vtkCaptionRepresentation_GetAnchorPosition(cast(void*)swigCPtr, SWIGTYPE_p_double.SWIGTYPE_p_double.swigGetCPtr(pos));
}
public void SetCaptionActor2D(vtkCaptionActor2D.vtkCaptionActor2D captionActor) {
vtkd_im.vtkCaptionRepresentation_SetCaptionActor2D(cast(void*)swigCPtr, vtkCaptionActor2D.vtkCaptionActor2D.swigGetCPtr(captionActor));
}
public vtkCaptionActor2D.vtkCaptionActor2D GetCaptionActor2D() {
void* cPtr = vtkd_im.vtkCaptionRepresentation_GetCaptionActor2D(cast(void*)swigCPtr);
vtkCaptionActor2D.vtkCaptionActor2D ret = (cPtr is null) ? null : new vtkCaptionActor2D.vtkCaptionActor2D(cPtr, false);
return ret;
}
public void SetAnchorRepresentation(vtkPointHandleRepresentation3D.vtkPointHandleRepresentation3D arg0) {
vtkd_im.vtkCaptionRepresentation_SetAnchorRepresentation(cast(void*)swigCPtr, vtkPointHandleRepresentation3D.vtkPointHandleRepresentation3D.swigGetCPtr(arg0));
}
public vtkPointHandleRepresentation3D.vtkPointHandleRepresentation3D GetAnchorRepresentation() {
void* cPtr = vtkd_im.vtkCaptionRepresentation_GetAnchorRepresentation(cast(void*)swigCPtr);
vtkPointHandleRepresentation3D.vtkPointHandleRepresentation3D ret = (cPtr is null) ? null : new vtkPointHandleRepresentation3D.vtkPointHandleRepresentation3D(cPtr, false);
return ret;
}
public void SetFontFactor(double _arg) {
vtkd_im.vtkCaptionRepresentation_SetFontFactor(cast(void*)swigCPtr, _arg);
}
public double GetFontFactorMinValue() {
auto ret = vtkd_im.vtkCaptionRepresentation_GetFontFactorMinValue(cast(void*)swigCPtr);
return ret;
}
public double GetFontFactorMaxValue() {
auto ret = vtkd_im.vtkCaptionRepresentation_GetFontFactorMaxValue(cast(void*)swigCPtr);
return ret;
}
public double GetFontFactor() {
auto ret = vtkd_im.vtkCaptionRepresentation_GetFontFactor(cast(void*)swigCPtr);
return ret;
}
}
| D |
/Users/honpe/PerfectTemplate/.build/x86_64-apple-macosx10.10/debug/PerfectThread.build/Promise.swift.o : /Users/honpe/PerfectTemplate/.build/checkouts/Perfect-Thread.git--3740803043861045398/Sources/PerfectThread/Promise.swift /Users/honpe/PerfectTemplate/.build/checkouts/Perfect-Thread.git--3740803043861045398/Sources/PerfectThread/ThreadQueue.swift /Users/honpe/PerfectTemplate/.build/checkouts/Perfect-Thread.git--3740803043861045398/Sources/PerfectThread/Threading.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 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/honpe/PerfectTemplate/.build/x86_64-apple-macosx10.10/debug/PerfectThread.build/Promise~partial.swiftmodule : /Users/honpe/PerfectTemplate/.build/checkouts/Perfect-Thread.git--3740803043861045398/Sources/PerfectThread/Promise.swift /Users/honpe/PerfectTemplate/.build/checkouts/Perfect-Thread.git--3740803043861045398/Sources/PerfectThread/ThreadQueue.swift /Users/honpe/PerfectTemplate/.build/checkouts/Perfect-Thread.git--3740803043861045398/Sources/PerfectThread/Threading.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 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/honpe/PerfectTemplate/.build/x86_64-apple-macosx10.10/debug/PerfectThread.build/Promise~partial.swiftdoc : /Users/honpe/PerfectTemplate/.build/checkouts/Perfect-Thread.git--3740803043861045398/Sources/PerfectThread/Promise.swift /Users/honpe/PerfectTemplate/.build/checkouts/Perfect-Thread.git--3740803043861045398/Sources/PerfectThread/ThreadQueue.swift /Users/honpe/PerfectTemplate/.build/checkouts/Perfect-Thread.git--3740803043861045398/Sources/PerfectThread/Threading.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 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
| D |
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
*
* Copyright: Copyright (C) 1994-1998 by Symantec
* Copyright (C) 2000-2021 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 http://www.digitalmars.com, Walter Bright)
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/backend/os.d, backend/os.d)
*/
/*
* Operating system specific routines.
* Placed here to avoid cluttering
* up code with OS files.
*/
import core.stdc.stdio;
import core.stdc.time;
import core.stdc.stdlib;
import core.stdc.string;
version (Posix)
{
import core.stdc.errno;
import core.sys.posix.fcntl;
import core.sys.posix.pthread;
import core.sys.posix.sys.stat;
import core.sys.posix.sys.types;
import core.sys.posix.unistd;
//#define GetLastError() errno
}
else version (Windows)
{
import core.sys.windows.stat;
import core.sys.windows.winbase;
import core.sys.windows.windef;
}
version (CRuntime_Microsoft)
enum NEEDS_WIN32_NON_MS = false;
else version (Win32)
enum NEEDS_WIN32_NON_MS = true;
else
enum NEEDS_WIN32_NON_MS = false;
version (Win64)
enum NEEDS_WIN32_NOT_WIN64 = false;
else version (Win32)
enum NEEDS_WIN32_NOT_WIN64 = true;
else
enum NEEDS_WIN32_NOT_WIN64 = false;
extern(C++):
nothrow:
version (CRuntime_Microsoft)
{
import core.stdc.stdlib;
}
//debug = printf;
version (Windows)
{
extern(C++) void dll_printf(const char *format,...);
alias printf = dll_printf;
}
int file_createdirs(char *name);
/***********************************
* Called when there is an error returned by the operating system.
* This function does not return.
*/
void os_error(int line = __LINE__)
{
version(Windows)
debug(printf) printf("System error: %ldL\n", GetLastError());
assert(0);
}
static if (NEEDS_WIN32_NOT_WIN64)
{
private __gshared HANDLE hHeap;
void *globalrealloc(void *oldp,size_t newsize)
{
static if (0)
{
void *p;
// Initialize heap
if (!hHeap)
{ hHeap = HeapCreate(0,0x10000,0);
if (!hHeap)
os_error();
}
newsize = (newsize + 3) & ~3L; // round up to dwords
if (newsize == 0)
{
if (oldp && HeapFree(hHeap,0,oldp) == false)
os_error();
p = NULL;
}
else if (!oldp)
{
p = newsize ? HeapAlloc(hHeap,0,newsize) : null;
}
else
p = HeapReAlloc(hHeap,0,oldp,newsize);
}
else static if (1)
{
MEMORY_BASIC_INFORMATION query;
void *p;
BOOL bSuccess;
if (!oldp)
p = VirtualAlloc (null, newsize, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
else
{
VirtualQuery (oldp, &query, query.sizeof);
if (!newsize)
{
p = null;
goto L1;
}
else
{ newsize = (newsize + 0xFFFF) & ~0xFFFFL;
if (query.RegionSize >= newsize)
p = oldp;
else
{ p = VirtualAlloc(null,newsize,MEM_COMMIT | MEM_RESERVE,PAGE_READWRITE);
if (p)
memcpy(p,oldp,query.RegionSize);
L1:
bSuccess = VirtualFree(oldp,query.RegionSize,MEM_DECOMMIT);
if (bSuccess)
bSuccess = VirtualFree(oldp,0,MEM_RELEASE);
if (!bSuccess)
os_error();
}
}
}
}
else
{
void *p;
if (!oldp)
p = cast(void *)GlobalAlloc (0, newsize);
else if (!newsize)
{ GlobalFree(oldp);
p = null;
}
else
p = cast(void *)GlobalReAlloc(oldp,newsize,0);
}
debug(printf) printf("globalrealloc(oldp = %p, size = x%x) = %p\n",oldp,newsize,p);
return p;
}
/*****************************************
* Functions to manage allocating a single virtual address space.
*/
void *vmem_reserve(void *ptr,uint size)
{ void *p;
version(none)
{
p = VirtualAlloc(ptr,size,MEM_RESERVE,PAGE_READWRITE);
debug(printf) printf("vmem_reserve(ptr = %p, size = x%lx) = %p\n",ptr,size,p);
}
else
{
debug(printf) printf("vmem_reserve(ptr = %p, size = x%lx) = %p\n",ptr,size,p);
p = VirtualAlloc(ptr,size,MEM_RESERVE,PAGE_READWRITE);
if (!p)
os_error();
}
return p;
}
/*****************************************
* Commit memory.
* Returns:
* 0 failure
* !=0 success
*/
int vmem_commit(void *ptr, uint size)
{ int i;
debug(printf) printf("vmem_commit(ptr = %p,size = x%lx)\n",ptr,size);
i = cast(int) VirtualAlloc(ptr,size,MEM_COMMIT,PAGE_READWRITE);
if (i == 0)
debug(printf) printf("failed to commit\n");
return i;
}
void vmem_decommit(void *ptr,uint size)
{
debug(printf) printf("vmem_decommit(ptr = %p, size = x%lx)\n",ptr,size);
if (ptr)
{ if (!VirtualFree(ptr, size, MEM_DECOMMIT))
os_error();
}
}
void vmem_release(void *ptr, uint size)
{
debug(printf) printf("vmem_release(ptr = %p, size = x%lx)\n",ptr,size);
if (ptr)
{
if (!VirtualFree(ptr, 0, MEM_RELEASE))
os_error();
}
}
/********************************************
* Map file for read, copy on write, into virtual address space.
* Input:
* ptr address to map file to, if NULL then pick an address
* size length of the file
* flag 0 read / write
* 1 read / copy on write
* 2 read only
* Returns:
* NULL failure
* ptr pointer to start of mapped file
*/
private __gshared HANDLE hFile = INVALID_HANDLE_VALUE;
private __gshared HANDLE hFileMap = null;
private __gshared void *pview;
private __gshared void *preserve;
private __gshared size_t preserve_size;
void *vmem_mapfile(const char *filename,void *ptr, uint size,int flag)
{
OSVERSIONINFO OsVerInfo;
OsVerInfo.dwOSVersionInfoSize = OsVerInfo.sizeof;
GetVersionEx(&OsVerInfo);
debug(printf) printf("vmem_mapfile(filename = '%s', ptr = %p, size = x%lx, flag = %d)\n",
filename,ptr,size,flag);
hFile = CreateFileA(filename, GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE, null,
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, null);
if (hFile == INVALID_HANDLE_VALUE)
goto L1; // failure
debug(printf) printf(" file created\n");
// Windows 95 does not implement PAGE_WRITECOPY (unfortunately treating
// it just like PAGE_READWRITE).
if (flag == 1 && OsVerInfo.dwPlatformId == 1) // Windows 95, 98, ME
hFileMap = null;
else
hFileMap = CreateFileMappingA(hFile,null,
(flag == 1) ? PAGE_WRITECOPY : PAGE_READWRITE,0,size,null);
if (hFileMap == null) // mapping failed
{
version(all)
{
// Win32s seems to always fail here.
DWORD nbytes;
debug(printf) printf(" mapping failed\n");
// If it was NT failing, assert.
assert(OsVerInfo.dwPlatformId != VER_PLATFORM_WIN32_NT);
// To work around, just read the file into memory.
assert(flag == 1);
preserve = vmem_reserve(ptr,size);
if (!preserve)
goto L2;
if (!vmem_commit(preserve,size))
{
vmem_release(preserve,size);
preserve = null;
goto L2;
}
preserve_size = size;
if (!ReadFile(hFile,preserve,size,&nbytes,null))
os_error();
assert(nbytes == size);
if (CloseHandle(hFile) != true)
os_error();
hFile = INVALID_HANDLE_VALUE;
return preserve;
}
else
{
// Instead of working around, we should find out why it failed.
os_error();
}
}
else
{
debug(printf) printf(" mapping created\n");
pview = MapViewOfFileEx(hFileMap,flag ? FILE_MAP_COPY : FILE_MAP_WRITE,
0,0,size,ptr);
if (pview == null) // mapping view failed
{ //os_error();
goto L3;
}
}
debug(printf) printf(" pview = %p\n",pview);
return pview;
L3:
if (CloseHandle(hFileMap) != true)
os_error();
hFileMap = null;
L2:
if (CloseHandle(hFile) != true)
os_error();
hFile = INVALID_HANDLE_VALUE;
L1:
return null; // failure
}
/*****************************
* Set size of mapped file.
*/
void vmem_setfilesize(uint size)
{
if (hFile != INVALID_HANDLE_VALUE)
{ if (SetFilePointer(hFile,size,null,FILE_BEGIN) == 0xFFFFFFFF)
os_error();
if (SetEndOfFile(hFile) == false)
os_error();
}
}
/*****************************
* Unmap previous file mapping.
*/
void vmem_unmapfile()
{
debug(printf) printf("vmem_unmapfile()\n");
vmem_decommit(preserve,preserve_size);
vmem_release(preserve,preserve_size);
preserve = null;
preserve_size = 0;
version(none)
{
if (pview)
{ int i;
i = UnmapViewOfFile(pview);
debug(printf) printf("i = x%x\n",i);
if (i == false)
os_error();
}
}
else
{
// Note that under Windows 95, UnmapViewOfFile() seems to return random
// values, not TRUE or FALSE.
if (pview && UnmapViewOfFile(pview) == false)
os_error();
}
pview = null;
if (hFileMap != null && CloseHandle(hFileMap) != true)
os_error();
hFileMap = null;
if (hFile != INVALID_HANDLE_VALUE && CloseHandle(hFile) != true)
os_error();
hFile = INVALID_HANDLE_VALUE;
}
/****************************************
* Determine a base address that we can use for mapping files to.
*/
void *vmem_baseaddr()
{
OSVERSIONINFO OsVerInfo;
void *p;
OsVerInfo.dwOSVersionInfoSize = OsVerInfo.sizeof;
GetVersionEx(&OsVerInfo);
// These values for the address were determined by trial and error.
switch (OsVerInfo.dwPlatformId)
{
case VER_PLATFORM_WIN32s: // Win32s
// The fact that this is a different address than other
// WIN32 implementations causes us a lot of grief.
p = cast(void *) 0xC0000000;
break;
case 1: //VER_PLATFORM_WIN32_WINDOWS: // Windows 95
// I've found 0x90000000..0xB work. All others fail.
default: // unknown
p = cast(void *) 0x90000000;
break;
case VER_PLATFORM_WIN32_NT: // Windows NT
// Pick a value that is not coincident with the base address
// of any commonly used system DLLs.
p = cast(void *) 0x38000000;
break;
}
return p;
}
/********************************************
* Calculate the amount of memory to reserve, adjusting
* *psize downwards.
*/
void vmem_reservesize(uint *psize)
{
MEMORYSTATUS ms;
OSVERSIONINFO OsVerInfo;
uint size;
ms.dwLength = ms.sizeof;
GlobalMemoryStatus(&ms);
debug(printf) printf("dwMemoryLoad x%lx\n",ms.dwMemoryLoad);
debug(printf) printf("dwTotalPhys x%lx\n",ms.dwTotalPhys);
debug(printf) printf("dwAvailPhys x%lx\n",ms.dwAvailPhys);
debug(printf) printf("dwTotalPageFile x%lx\n",ms.dwTotalPageFile);
debug(printf) printf("dwAvailPageFile x%lx\n",ms.dwAvailPageFile);
debug(printf) printf("dwTotalVirtual x%lx\n",ms.dwTotalVirtual);
debug(printf) printf("dwAvailVirtual x%lx\n",ms.dwAvailVirtual);
OsVerInfo.dwOSVersionInfoSize = OsVerInfo.sizeof;
GetVersionEx(&OsVerInfo);
switch (OsVerInfo.dwPlatformId)
{
case VER_PLATFORM_WIN32s: // Win32s
case 1: //VER_PLATFORM_WIN32_WINDOWS: // Windows 95
default: // unknown
size = (ms.dwAvailPageFile < ms.dwAvailVirtual)
? ms.dwAvailPageFile
: ms.dwAvailVirtual;
size = cast(ulong)size * 8 / 10;
size &= ~0xFFFF;
if (size < *psize)
*psize = size;
break;
case VER_PLATFORM_WIN32_NT: // Windows NT
// NT can expand the paging file
break;
}
}
/********************************************
* Return amount of physical memory.
*/
uint vmem_physmem()
{
MEMORYSTATUS ms;
ms.dwLength = ms.sizeof;
GlobalMemoryStatus(&ms);
return ms.dwTotalPhys;
}
//////////////////////////////////////////////////////////////
/***************************************************
* Load library.
*/
private __gshared HINSTANCE hdll;
void os_loadlibrary(const char *dllname)
{
hdll = LoadLibrary(cast(LPCTSTR) dllname);
if (!hdll)
os_error();
}
/*************************************************
*/
void os_freelibrary()
{
if (hdll)
{
if (FreeLibrary(hdll) != true)
os_error();
hdll = null;
}
}
/*************************************************
*/
void *os_getprocaddress(const char *funcname)
{ void *fp;
//printf("getprocaddress('%s')\n",funcname);
assert(hdll);
fp = cast(void *)GetProcAddress(hdll,cast(LPCSTR)funcname);
if (!fp)
os_error();
return fp;
}
//////////////////////////////////////////////////////////////
/*********************************
*/
void os_term()
{
if (hHeap)
{ if (HeapDestroy(hHeap) == false)
{ hHeap = null;
os_error();
}
hHeap = null;
}
os_freelibrary();
}
/***************************************************
* Do our own storage allocator (being suspicious of the library one).
*/
version(all)
{
void os_heapinit() { }
void os_heapterm() { }
}
else
{
static HANDLE hHeap;
void os_heapinit()
{
hHeap = HeapCreate(0,0x10000,0);
if (!hHeap)
os_error();
}
void os_heapterm()
{
if (hHeap)
{ if (HeapDestroy(hHeap) == false)
os_error();
}
}
extern(Windows) void * calloc(size_t x,size_t y)
{ size_t size;
size = x * y;
return size ? HeapAlloc(hHeap,HEAP_ZERO_MEMORY,size) : null;
}
extern(Windows) void free(void *p)
{
if (p && HeapFree(hHeap,0,p) == false)
os_error();
}
extern(Windows) void * malloc(size_t size)
{
return size ? HeapAlloc(hHeap,0,size) : null;
}
extern(Windows) void * realloc(void *p,size_t newsize)
{
if (newsize == 0)
free(p);
else if (!p)
p = malloc(newsize);
else
p = HeapReAlloc(hHeap,0,p,newsize);
return p;
}
}
//////////////////////////////////////////
// Return a value that will hopefully be unique every time
// we call it.
uint os_unique()
{
ulong x;
QueryPerformanceCounter(cast(LARGE_INTEGER *)&x);
return cast(uint)x;
}
} // Win32
/*******************************************
* Return !=0 if file exists.
* 0: file doesn't exist
* 1: normal file
* 2: directory
*/
int os_file_exists(const char *name)
{
version(Windows)
{
DWORD dw;
int result;
dw = GetFileAttributesA(name);
if (dw == -1L)
result = 0;
else if (dw & FILE_ATTRIBUTE_DIRECTORY)
result = 2;
else
result = 1;
return result;
}
else version(Posix)
{
stat_t buf;
return stat(name,&buf) == 0; /* file exists if stat succeeded */
}
else
{
return filesize(name) != -1L;
}
}
/**************************************
* Get file size of open file. Return -1L on error.
*/
static if(NEEDS_WIN32_NON_MS)
{
extern extern (C) void*[] _osfhnd;
}
long os_file_size(int fd)
{
static if (NEEDS_WIN32_NON_MS)
{
return GetFileSize(_osfhnd[fd],null);
}
else
{
version(Windows)
{
return GetFileSize(cast(void*)_get_osfhandle(fd),null);
}
else
{
stat_t buf;
return (fstat(fd,&buf)) ? -1L : buf.st_size;
}
}
}
/**************************************************
* For 16 bit programs, we need the 16 bit filename.
* Returns:
* malloc'd string, NULL if none
*/
version(Windows)
{
char *file_8dot3name(const char *filename)
{
HANDLE h;
WIN32_FIND_DATAA fileinfo;
char *buf;
size_t i;
h = FindFirstFileA(filename,&fileinfo);
if (h == INVALID_HANDLE_VALUE)
return null;
if (fileinfo.cAlternateFileName[0])
{
for (i = strlen(filename); i > 0; i--)
if (filename[i] == '\\' || filename[i] == ':')
{ i++;
break;
}
buf = cast(char *) malloc(i + 14);
if (buf)
{
memcpy(buf,filename,i);
strcpy(buf + i,fileinfo.cAlternateFileName.ptr);
}
}
else
buf = strdup(filename);
FindClose(h);
return buf;
}
}
/**********************************************
* Write a file.
* Returns:
* 0 success
*/
int file_write(char *name, void *buffer, uint len)
{
version(Posix)
{
int fd;
ssize_t numwritten;
fd = open(name, O_CREAT | O_WRONLY | O_TRUNC,
S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP);
if (fd == -1)
goto err;
numwritten = .write(fd, buffer, len);
if (len != numwritten)
goto err2;
if (close(fd) == -1)
goto err;
return 0;
err2:
close(fd);
err:
return 1;
}
else version(Windows)
{
HANDLE h;
DWORD numwritten;
h = CreateFileA(cast(LPCSTR)name,GENERIC_WRITE,0,null,CREATE_ALWAYS,
FILE_ATTRIBUTE_NORMAL | FILE_FLAG_SEQUENTIAL_SCAN,null);
if (h == INVALID_HANDLE_VALUE)
{
if (GetLastError() == ERROR_PATH_NOT_FOUND)
{
if (!file_createdirs(name))
{
h = CreateFileA(cast(LPCSTR)name, GENERIC_WRITE, 0, null, CREATE_ALWAYS,
FILE_ATTRIBUTE_NORMAL | FILE_FLAG_SEQUENTIAL_SCAN,null);
if (h != INVALID_HANDLE_VALUE)
goto Lok;
}
}
goto err;
}
Lok:
if (WriteFile(h,buffer,len,&numwritten,null) != true)
goto err2;
if (len != numwritten)
goto err2;
if (!CloseHandle(h))
goto err;
return 0;
err2:
CloseHandle(h);
err:
return 1;
}
}
/********************************
* Create directories up to filename.
* Input:
* name path/filename
* Returns:
* 0 success
* !=0 failure
*/
int file_createdirs(char *name)
{
version(Posix)
{
return 1;
}
else version(Windows)
{
auto len = strlen(name);
char *path = cast(char *)alloca(len + 1);
char *p;
memcpy(path, name, len + 1);
for (p = path + len; ; p--)
{
if (p == path)
goto Lfail;
switch (*p)
{
case ':':
case '/':
case '\\':
*p = 0;
if (!CreateDirectory(cast(LPTSTR)path, null))
{ // Failed
if (file_createdirs(path))
goto Lfail;
if (!CreateDirectory(cast(LPTSTR)path, null))
goto Lfail;
}
return 0;
default:
continue;
}
}
Lfail:
return 1;
}
}
/***********************************
* Returns:
* result of C library clock()
*/
int os_clock()
{
return cast(int) clock();
}
/***********************************
* Return size of OS critical section.
* NOTE: can't use the sizeof() calls directly since cross compiling is
* supported and would end up using the host sizes rather than the target
* sizes.
*/
version(Windows)
{
int os_critsecsize32()
{
return 24; // sizeof(CRITICAL_SECTION) for 32 bit Windows
}
int os_critsecsize64()
{
return 40; // sizeof(CRITICAL_SECTION) for 64 bit Windows
}
}
else version(linux)
{
int os_critsecsize32()
{
return 24; // sizeof(pthread_mutex_t) on 32 bit
}
int os_critsecsize64()
{
return 40; // sizeof(pthread_mutex_t) on 64 bit
}
}
else version(FreeBSD)
{
int os_critsecsize32()
{
return 4; // sizeof(pthread_mutex_t) on 32 bit
}
int os_critsecsize64()
{
return 8; // sizeof(pthread_mutex_t) on 64 bit
}
}
else version(OpenBSD)
{
int os_critsecsize32()
{
return 4; // sizeof(pthread_mutex_t) on 32 bit
}
int os_critsecsize64()
{
assert(0);
return 8; // sizeof(pthread_mutex_t) on 64 bit
}
}
else version(DragonFlyBSD)
{
int os_critsecsize32()
{
return 4; // sizeof(pthread_mutex_t) on 32 bit
}
int os_critsecsize64()
{
return 8; // sizeof(pthread_mutex_t) on 64 bit
}
}
else version (OSX)
{
int os_critsecsize32()
{
version(X86_64)
{
assert(pthread_mutex_t.sizeof == 64);
}
else
{
assert(pthread_mutex_t.sizeof == 44);
}
return 44;
}
int os_critsecsize64()
{
return 64;
}
}
else version(Solaris)
{
int os_critsecsize32()
{
return sizeof(pthread_mutex_t);
}
int os_critsecsize64()
{
assert(0);
return 0;
}
}
/* This is the magic program to get the size on Posix systems:
#if 0
#include <stdio.h>
#include <pthread.h>
int main()
{
printf("%d\n", (int)sizeof(pthread_mutex_t));
return 0;
}
#endif
#endif
*/
| D |
/++
+ Macros:
+ SUPPORTEDSTRUCTURES = structs, built-in data types, Nullable, and std.datetime structs
+/
module siryul.siryul;
import siryul;
import std.datetime;
import std.meta;
import std.range;
alias siryulizers = AliasSeq!(JSON, YAML);
/++
+ Deserializes data from a file.
+
+ Files are assumed to be UTF-8 encoded.
+
+ Supports $(SUPPORTEDSTRUCTURES).
+
+ Params:
+ T = Type stored in the file
+ Format = Serialization format
+ path = Absolute or relative path to the file
+
+ Returns: Data from the file in the format specified
+/
T fromFile(T, Format, DeSiryulize flags = DeSiryulize.none)(string path) if (isSiryulizer!Format) {
import std.algorithm : joiner;
import std.file : readText;
auto lines = readText(path);
return Format.parseInput!(T, flags)(lines, path);
}
///
@safe unittest {
import std.exception : assertThrown;
import std.file : exists, remove;
import std.stdio : File;
struct TestStruct {
string a;
}
//Write some example files...
File("int.yml", "w").write("---\n9");
File("string.json", "w").write(`"test"`);
File("struct.yml", "w").write("---\na: b");
scope(exit) { //Clean up when done
if ("int.yml".exists) {
remove("int.yml");
}
if ("string.json".exists) {
remove("string.json");
}
if ("struct.yml".exists) {
remove("struct.yml");
}
}
//Read examples from respective files
assert(fromFile!(uint, YAML)("int.yml") == 9);
assert(fromFile!(string, JSON)("string.json") == "test");
assert(fromFile!(TestStruct, YAML)("struct.yml") == TestStruct("b"));
}
/++
+ Deserializes data from a string.
+
+ String is assumed to be UTF-8 encoded.
+
+ Params:
+ T = Type of the data to be deserialized
+ Format = Serialization format
+ str = A string containing serialized data in the specified format
+
+ Supports $(SUPPORTEDSTRUCTURES).
+
+ Returns: Data contained in the string
+/
T fromString(T, Format, DeSiryulize flags = DeSiryulize.none,U)(U str) if (isSiryulizer!Format && isInputRange!U) {
return Format.parseInput!(T, flags)(str, "<string>");
}
///
@safe unittest {
struct TestStruct {
string a;
}
//Compare a struct serialized into two different formats
const aStruct = fromString!(TestStruct, JSON)(`{"a": "b"}`);
const anotherStruct = fromString!(TestStruct, YAML)("---\na: b");
assert(aStruct == anotherStruct);
}
/++
+ Serializes data to a string.
+
+ UTF-8 encoded by default.
+
+ Supports $(SUPPORTEDSTRUCTURES).
+
+ Params:
+ Format = Serialization format
+ data = The data to be serialized
+
+ Returns: A string in the specified format representing the user's data, UTF-8 encoded
+/
@property auto toString(Format, Siryulize flags = Siryulize.none, T)(T data) if (isSiryulizer!Format) {
return Format.asString!flags(data);
}
///
@safe unittest {
//3 as a JSON object
assert(3.toString!JSON == `3`);
//"str" as a JSON object
assert("str".toString!JSON == `"str"`);
}
///For cases where toString is already defined
alias toFormattedString = toString;
/++
+ Serializes data to a file.
+
+ Any format supported by this library may be specified. If no format is
+ specified, it will be chosen from the file extension if possible.
+
+ Supports $(SUPPORTEDSTRUCTURES).
+
+ This function will NOT create directories as necessary.
+
+ Params:
+ Format = Serialization format
+ data = The data to be serialized
+ path = The path for the file to be written
+/
@property void toFile(Format, Siryulize flags = Siryulize.none, T)(T data, string path) if (isSiryulizer!Format) {
import std.algorithm : copy;
import std.stdio : File;
data.toFormattedString!(Format, flags).copy(File(path, "w").lockingTextWriter());
}
///
@safe unittest {
import std.exception : assertThrown;
import std.file : exists, remove;
struct TestStruct {
string a;
}
scope(exit) { //Clean up when done
if ("int.yml".exists) {
remove("int.yml");
}
if ("string.json".exists) {
remove("string.json");
}
if ("struct.yml".exists) {
remove("struct.yml");
}
if ("int-auto.yml".exists) {
remove("int-auto.yml");
}
if ("string-auto.json".exists) {
remove("string-auto.json");
}
if ("struct-auto.yml".exists) {
remove("struct-auto.yml");
}
}
//Write the integer "3" to "int.yml"
3.toFile!YAML("int.yml");
//Write the string "str" to "string.json"
"str".toFile!JSON("string.json");
//Write a structure to "struct.yml"
TestStruct("b").toFile!YAML("struct.yml");
//Check that contents are correct
assert("int.yml".fromFile!(uint, YAML) == 3);
assert("string.json".fromFile!(string, JSON) == "str");
assert("struct.yml".fromFile!(TestStruct, YAML) == TestStruct("b"));
}
| D |
/Users/olegp/Desktop/XCoordinatorPlayground/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ShareReplayScope.o : /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Deprecated.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Cancelable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ObservableType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ObserverType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Reactive.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/RecursiveLock.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Errors.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/AtomicInt.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Event.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/First.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Rx.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/Platform.Linux.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /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/olegp/Desktop/XCoordinatorPlayground/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/olegp/Desktop/XCoordinatorPlayground/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/olegp/Desktop/XCoordinatorPlayground/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ShareReplayScope~partial.swiftmodule : /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Deprecated.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Cancelable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ObservableType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ObserverType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Reactive.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/RecursiveLock.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Errors.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/AtomicInt.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Event.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/First.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Rx.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/Platform.Linux.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /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/olegp/Desktop/XCoordinatorPlayground/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/olegp/Desktop/XCoordinatorPlayground/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/olegp/Desktop/XCoordinatorPlayground/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ShareReplayScope~partial.swiftdoc : /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Deprecated.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Cancelable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ObservableType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ObserverType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Reactive.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/RecursiveLock.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Errors.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/AtomicInt.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Event.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/First.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Rx.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/Platform/Platform.Linux.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/olegp/Desktop/XCoordinatorPlayground/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /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/olegp/Desktop/XCoordinatorPlayground/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/olegp/Desktop/XCoordinatorPlayground/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
| D |
module android.java.android.net.wifi.p2p.WifiP2pGroup_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import4 = android.java.java.lang.Class_d_interface;
import import0 = android.java.android.net.wifi.p2p.WifiP2pGroup_d_interface;
import import2 = android.java.java.util.Collection_d_interface;
import import3 = android.java.android.os.Parcel_d_interface;
import import1 = android.java.android.net.wifi.p2p.WifiP2pDevice_d_interface;
final class WifiP2pGroup : IJavaObject {
static immutable string[] _d_canCastTo = [
"android/os/Parcelable",
];
@Import this(arsd.jni.Default);
@Import this(import0.WifiP2pGroup);
@Import string getNetworkName();
@Import bool isGroupOwner();
@Import import1.WifiP2pDevice getOwner();
@Import import2.Collection getClientList();
@Import string getPassphrase();
@Import string getInterface();
@Import int getFrequency();
@Import @JavaName("toString") string toString_();
override string toString() { return arsd.jni.javaObjectToString(this); }
@Import int describeContents();
@Import void writeToParcel(import3.Parcel, int);
@Import import4.Class getClass();
@Import int hashCode();
@Import bool equals(IJavaObject);
@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/net/wifi/p2p/WifiP2pGroup;";
}
| D |
/**
* Windows API header module
*
* Translated from MinGW Windows headers
*
* Authors: Vladimir Vlasov
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(DRUNTIMESRC src/core/sys/windows/_setupapi.d)
*/
module core.sys.windows.setupapi;
version (Windows):
pragma(lib, "setupapi");
private import core.sys.windows.basetyps, core.sys.windows.commctrl, core.sys.windows.prsht, core.sys.windows.w32api,
core.sys.windows.winreg, core.sys.windows.windef;
private import core.sys.windows.winbase; // for SYSTEMTIME
/*static if(_WIN32_WINNT < _WIN32_WINDOWS) {
const UINT _SETUPAPI_VER = _WIN32_WINNT; // SetupAPI version follows Windows NT version
} else static if(_WIN32_WINDOWS) {
static if(_WIN32_WINDOWS >= 0x0490) {
const UINT _SETUPAPI_VER = 0x0500; // WinME uses same version of SetupAPI as Win2k
} else static if(_WIN32_WINDOWS >= 0x0410) {
const UINT _SETUPAPI_VER = 0x0410; // Indicates version of SetupAPI shipped with Win98
} else {
const UINT _SETUPAPI_VER = 0x0400; // Earliest SetupAPI version
}
} else {
const UINT _SETUPAPI_VER = 0x0501;
}
version (WindowsNTonly) {
static if (_WIN32_WINNT >= 0x500) {
const UINT USE_SP_DRVINFO_DATA_V1 = 0;
} else {
const UINT USE_SP_DRVINFO_DATA_V1 = 1;
}
} else {
const UINT USE_SP_DRVINFO_DATA_V1 = 1;
}*/
/+
const UINT _SETUPAPI_VER = 0x0400; // Earliest SetupAPI version
const UINT USE_SP_DRVINFO_DATA_V1 = 1;
+/
const UINT _SETUPAPI_VER = _WIN32_WINNT;
const bool USE_SP_DRVINFO_DATA_V1 = _WIN32_WINNT < 0x500;
enum : uint {
LINE_LEN = 256,
MAX_INF_STRING_LENGTH = 4096,
MAX_TITLE_LEN = 60,
MAX_INSTRUCTION_LEN = 256,
MAX_LABEL_LEN = 30,
MAX_SERVICE_NAME_LEN = 256,
MAX_SUBTITLE_LEN = 256,
SP_MAX_MACHINENAME_LENGTH = MAX_PATH + 3
}
enum : DWORD {
COPYFLG_WARN_IF_SKIP = 0x00000001,
COPYFLG_NOSKIP = 0x00000002,
COPYFLG_NOVERSIONCHECK = 0x00000004,
COPYFLG_FORCE_FILE_IN_USE = 0x00000008,
COPYFLG_NO_OVERWRITE = 0x00000010,
COPYFLG_NO_VERSION_DIALOG = 0x00000020,
COPYFLG_OVERWRITE_OLDER_ONLY = 0x00000040,
COPYFLG_REPLACEONLY = 0x00000400,
COPYFLG_NODECOMP = 0x00000800,
COPYFLG_REPLACE_BOOT_FILE = 0x00001000,
COPYFLG_NOPRUNE = 0x00002000
}
enum : DWORD {
DELFLG_IN_USE = 0x00000001,
DELFLG_IN_USE1 = 0x00010000
}
enum : DWORD {
DI_REMOVEDEVICE_GLOBAL = 0x00000001,
DI_REMOVEDEVICE_CONFIGSPECIFIC = 0x00000002,
DI_UNREMOVEDEVICE_CONFIGSPECIFIC = 0x00000002,
DI_SHOWOEM = 0x00000001,
DI_SHOWCOMPAT = 0x00000002,
DI_SHOWCLASS = 0x00000004,
DI_SHOWALL = 0x00000007,
DI_NOVCP = 0x00000008,
DI_DIDCOMPAT = 0x00000010,
DI_DIDCLASS = 0x00000020,
DI_AUTOASSIGNRES = 0x00000040,
DI_NEEDRESTART = 0x00000080,
DI_NEEDREBOOT = 0x00000100,
DI_NOBROWSE = 0x00000200,
DI_MULTMFGS = 0x00000400,
DI_DISABLED = 0x00000800,
DI_GENERALPAGE_ADDED = 0x00001000,
DI_RESOURCEPAGE_ADDED = 0x00002000,
DI_PROPERTIES_CHANGE = 0x00004000,
DI_INF_IS_SORTED = 0x00008000,
DI_ENUMSINGLEINF = 0x00010000,
DI_DONOTCALLCONFIGMG = 0x00020000,
DI_INSTALLDISABLED = 0x00040000,
DI_COMPAT_FROM_CLASS = 0x00080000,
DI_CLASSINSTALLPARAMS = 0x00100000,
DI_NODI_DEFAULTACTION = 0x00200000,
DI_QUIETINSTALL = 0x00800000,
DI_NOFILECOPY = 0x01000000,
DI_FORCECOPY = 0x02000000,
DI_DRIVERPAGE_ADDED = 0x04000000,
DI_USECI_SELECTSTRINGS = 0x08000000,
DI_OVERRIDE_INFFLAGS = 0x10000000,
DI_PROPS_NOCHANGEUSAGE = 0x20000000,
DI_NOSELECTICONS = 0x40000000,
DI_NOWRITE_IDS = 0x80000000,
DI_FLAGSEX_USEOLDINFSEARCH = 0x00000001,
DI_FLAGSEX_AUTOSELECTRANK0 = 0x00000002,
DI_FLAGSEX_CI_FAILED = 0x00000004,
DI_FLAGSEX_DIDINFOLIST = 0x00000010,
DI_FLAGSEX_DIDCOMPATINFO = 0x00000020,
DI_FLAGSEX_FILTERCLASSES = 0x00000040,
DI_FLAGSEX_SETFAILEDINSTALL = 0x00000080,
DI_FLAGSEX_DEVICECHANGE = 0x00000100,
DI_FLAGSEX_ALWAYSWRITEIDS = 0x00000200,
DI_FLAGSEX_PROPCHANGE_PENDING = 0x00000400,
DI_FLAGSEX_ALLOWEXCLUDEDDRVS = 0x00000800,
DI_FLAGSEX_NOUIONQUERYREMOVE = 0x00001000,
DI_FLAGSEX_USECLASSFORCOMPAT = 0x00002000,
DI_FLAGSEX_OLDINF_IN_CLASSLIST = 0x00004000,
DI_FLAGSEX_NO_DRVREG_MODIFY = 0x00008000,
DI_FLAGSEX_IN_SYSTEM_SETUP = 0x00010000,
DI_FLAGSEX_INET_DRIVER = 0x00020000,
DI_FLAGSEX_APPENDDRIVERLIST = 0x00040000,
DI_FLAGSEX_PREINSTALLBACKUP = 0x00080000,
DI_FLAGSEX_BACKUPONREPLACE = 0x00100000,
DI_FLAGSEX_DRIVERLIST_FROM_URL = 0x00200000,
DI_FLAGSEX_RESERVED1 = 0x00400000,
DI_FLAGSEX_EXCLUDE_OLD_INET_DRIVERS = 0x00800000,
DI_FLAGSEX_POWERPAGE_ADDED = 0x01000000
}
enum : DWORD {
DIBCI_NOINSTALLCLASS = 0x00000001,
DIBCI_NODISPLAYCLASS = 0x00000002
}
enum : DWORD {
DICD_GENERATE_ID = 0x00000001,
DICD_INHERIT_CLASSDRVS = 0x00000002
}
enum : DWORD {
DICS_ENABLE = 1,
DICS_DISABLE,
DICS_PROPCHANGE,
DICS_START,
DICS_STOP // = 5
}
enum : DWORD {
DICS_FLAG_GLOBAL = 1,
DICS_FLAG_CONFIGSPECIFIC = 2,
DICS_FLAG_CONFIGGENERAL = 4
}
alias UINT DI_FUNCTION;
enum : DI_FUNCTION {
DIF_SELECTDEVICE = 1,
DIF_INSTALLDEVICE,
DIF_ASSIGNRESOURCES,
DIF_PROPERTIES,
DIF_REMOVE,
DIF_FIRSTTIMESETUP,
DIF_FOUNDDEVICE,
DIF_SELECTCLASSDRIVERS,
DIF_VALIDATECLASSDRIVERS,
DIF_INSTALLCLASSDRIVERS,
DIF_CALCDISKSPACE,
DIF_DESTROYPRIVATEDATA,
DIF_VALIDATEDRIVER,
DIF_MOVEDEVICE,
DIF_DETECT,
DIF_INSTALLWIZARD,
DIF_DESTROYWIZARDDATA,
DIF_PROPERTYCHANGE,
DIF_ENABLECLASS,
DIF_DETECTVERIFY,
DIF_INSTALLDEVICEFILES,
DIF_UNREMOVE,
DIF_SELECTBESTCOMPATDRV,
DIF_ALLOW_INSTALL,
DIF_REGISTERDEVICE,
DIF_NEWDEVICEWIZARD_PRESELECT,
DIF_NEWDEVICEWIZARD_SELECT,
DIF_NEWDEVICEWIZARD_PREANALYZE,
DIF_NEWDEVICEWIZARD_POSTANALYZE,
DIF_NEWDEVICEWIZARD_FINISHINSTALL,
DIF_UNUSED1,
DIF_INSTALLINTERFACES,
DIF_DETECTCANCEL,
DIF_REGISTER_COINSTALLERS,
DIF_ADDPROPERTYPAGE_ADVANCED,
DIF_ADDPROPERTYPAGE_BASIC,
DIF_RESERVED1,
DIF_TROUBLESHOOTER,
DIF_POWERMESSAGEWAKE // = 39
}
enum : DWORD {
DIGCF_DEFAULT = 0x00000001,
DIGCF_PRESENT = 0x00000002,
DIGCF_ALLCLASSES = 0x00000004,
DIGCF_PROFILE = 0x00000008,
DIGCF_DEVICEINTERFACE = 0x00000010
}
deprecated enum : DWORD {
DIGCF_INTERFACEDEVICE = DIGCF_DEVICEINTERFACE
}
enum : DWORD {
DIGCDP_FLAG_BASIC = 0x00000001,
DIGCDP_FLAG_ADVANCED = 0x00000002
}
enum : DWORD {
DIOCR_INSTALLER = 0x00000001,
DIOCR_INTERFACE = 0x00000002
}
enum : DWORD {
DIODI_NO_ADD = 0x00000001
}
enum : DWORD {
DIOD_INHERIT_CLASSDRVS = 0x00000002,
DIOD_CANCEL_REMOVE = 0x00000004
}
enum : DWORD {
DIREG_DEV = 0x00000001,
DIREG_DRV = 0x00000002,
DIREG_BOTH = 0x00000004
}
enum : int {
DIRID_ABSOLUTE = -1,
DIRID_NULL = 0,
DIRID_SRCPATH = 1,
DIRID_WINDOWS = 10,
DIRID_SYSTEM = 11,
DIRID_DRIVERS = 12,
DIRID_IOSUBSYS = DIRID_DRIVERS,
DIRID_INF = 17,
DIRID_HELP = 18,
DIRID_FONTS = 20,
DIRID_VIEWERS = 21,
DIRID_COLOR = 23,
DIRID_APPS = 24,
DIRID_SHARED = 25,
DIRID_BOOT = 30,
DIRID_SYSTEM16 = 50,
DIRID_SPOOL = 51,
DIRID_SPOOLDRIVERS = 52,
DIRID_USERPROFILE = 53,
DIRID_LOADER = 54,
DIRID_PRINTPROCESSOR = 55,
DIRID_DEFAULT = DIRID_SYSTEM
}
enum : int {
DIRID_COMMON_STARTMENU = 16406,
DIRID_COMMON_PROGRAMS = 16407,
DIRID_COMMON_STARTUP = 16408,
DIRID_COMMON_DESKTOPDIRECTORY = 16409,
DIRID_COMMON_FAVORITES = 16415,
DIRID_COMMON_APPDATA = 16419,
DIRID_PROGRAM_FILES = 16422,
DIRID_SYSTEM_X86 = 16425,
DIRID_PROGRAM_FILES_X86 = 16426,
DIRID_PROGRAM_FILES_COMMON = 16427,
DIRID_PROGRAM_FILES_COMMONX86 = 16428,
DIRID_COMMON_TEMPLATES = 16429,
DIRID_COMMON_DOCUMENTS = 16430,
DIRID_USER = 0x8000,
DIRID_ABSOLUTE_16BIT = 0xffff
}
enum : DWORD {
DMI_MASK = 0x00000001,
DMI_BKCOLOR = 0x00000002,
DMI_USERECT = 0x00000004
}
enum : DWORD {
DNF_DUPDESC = 0x00000001,
DNF_OLDDRIVER = 0x00000002,
DNF_EXCLUDEFROMLIST = 0x00000004,
DNF_NODRIVER = 0x00000008,
DNF_LEGACYINF = 0x00000010,
DNF_CLASS_DRIVER = 0x00000020,
DNF_COMPATIBLE_DRIVER = 0x00000040,
DNF_INET_DRIVER = 0x00000080,
DNF_UNUSED1 = 0x00000100,
DNF_INDEXED_DRIVER = 0x00000200,
DNF_OLD_INET_DRIVER = 0x00000400,
DNF_BAD_DRIVER = 0x00000800,
DNF_DUPPROVIDER = 0x00001000
}
enum : UINT {
DPROMPT_SUCCESS,
DPROMPT_CANCEL,
DPROMPT_SKIPFILE,
DPROMPT_BUFFERTOOSMALL,
DPROMPT_OUTOFMEMORY // = 4
}
enum : DWORD {
DRIVER_HARDWAREID_RANK = 0x00000FFF,
DRIVER_COMPATID_RANK = 0x00003FFF,
DRIVER_UNTRUSTED_RANK = 0x00008000,
DRIVER_UNTRUSTED_HARDWAREID_RANK = 0x00008FFF,
DRIVER_UNTRUSTED_COMPATID_RANK = 0x0000BFFF,
DRIVER_W9X_SUSPECT_RANK = 0x0000C000,
DRIVER_W9X_SUSPECT_HARDWAREID_RANK = 0x0000CFFF,
DRIVER_W9X_SUSPECT_COMPATID_RANK = 0x0000FFFF
}
enum : DWORD {
DYNAWIZ_FLAG_PAGESADDED = 0x00000001,
DYNAWIZ_FLAG_INSTALLDET_NEXT = 0x00000002,
DYNAWIZ_FLAG_INSTALLDET_PREV = 0x00000004,
DYNAWIZ_FLAG_ANALYZE_HANDLECONFLICT = 0x00000008
}
enum : WORD {
ENABLECLASS_QUERY,
ENABLECLASS_SUCCESS,
ENABLECLASS_FAILURE // = 2
}
enum : DWORD {
ERROR_EXPECTED_SECTION_NAME = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0,
ERROR_BAD_SECTION_NAME_LINE = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 1,
ERROR_SECTION_NAME_TOO_LONG = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 2,
ERROR_GENERAL_SYNTAX = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 3,
ERROR_WRONG_INF_STYLE = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x100,
ERROR_NOT_INSTALLED = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x1000,
ERROR_SECTION_NOT_FOUND = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x101,
ERROR_LINE_NOT_FOUND = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x102,
ERROR_NO_BACKUP = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x103,
ERROR_NO_ASSOCIATED_CLASS = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x200,
ERROR_CLASS_MISMATCH = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x201,
ERROR_DUPLICATE_FOUND = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x202,
ERROR_NO_DRIVER_SELECTED = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x203,
ERROR_KEY_DOES_NOT_EXIST = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x204,
ERROR_INVALID_DEVINST_NAME = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x205,
ERROR_INVALID_CLASS = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x206,
ERROR_DEVINST_ALREADY_EXISTS = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x207,
ERROR_DEVINFO_NOT_REGISTERED = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x208,
ERROR_INVALID_REG_PROPERTY = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x209,
ERROR_NO_INF = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x20A,
ERROR_NO_SUCH_DEVINST = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x20B,
ERROR_CANT_LOAD_CLASS_ICON = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x20C,
ERROR_INVALID_CLASS_INSTALLER = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x20D,
ERROR_DI_DO_DEFAULT = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x20E,
ERROR_DI_NOFILECOPY = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x20F,
ERROR_INVALID_HWPROFILE = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x210,
ERROR_NO_DEVICE_SELECTED = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x211,
ERROR_DEVINFO_LIST_LOCKED = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x212,
ERROR_DEVINFO_DATA_LOCKED = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x213,
ERROR_DI_BAD_PATH = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x214,
ERROR_NO_CLASSINSTALL_PARAMS = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x215,
ERROR_FILEQUEUE_LOCKED = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x216,
ERROR_BAD_SERVICE_INSTALLSECT = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x217,
ERROR_NO_CLASS_DRIVER_LIST = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x218,
ERROR_NO_ASSOCIATED_SERVICE = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x219,
ERROR_NO_DEFAULT_DEVICE_INTERFACE = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x21A,
ERROR_DEVICE_INTERFACE_ACTIVE = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x21B,
ERROR_DEVICE_INTERFACE_REMOVED = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x21C,
ERROR_BAD_INTERFACE_INSTALLSECT = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x21D,
ERROR_NO_SUCH_INTERFACE_CLASS = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x21E,
ERROR_INVALID_REFERENCE_STRING = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x21F,
ERROR_INVALID_MACHINENAME = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x220,
ERROR_REMOTE_COMM_FAILURE = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x221,
ERROR_MACHINE_UNAVAILABLE = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x222,
ERROR_NO_CONFIGMGR_SERVICES = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x223,
ERROR_INVALID_PROPPAGE_PROVIDER = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x224,
ERROR_NO_SUCH_DEVICE_INTERFACE = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x225,
ERROR_DI_POSTPROCESSING_REQUIRED = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x226,
ERROR_INVALID_COINSTALLER = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x227,
ERROR_NO_COMPAT_DRIVERS = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x228,
ERROR_NO_DEVICE_ICON = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x229,
ERROR_INVALID_INF_LOGCONFIG = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x22A,
ERROR_DI_DONT_INSTALL = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x22B,
ERROR_INVALID_FILTER_DRIVER = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x22C,
ERROR_NON_WINDOWS_NT_DRIVER = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x22D,
ERROR_NON_WINDOWS_DRIVER = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x22E,
ERROR_NO_CATALOG_FOR_OEM_INF = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x22F,
ERROR_DEVINSTALL_QUEUE_NONNATIVE = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x230,
ERROR_NOT_DISABLEABLE = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x231,
ERROR_CANT_REMOVE_DEVINST = APPLICATION_ERROR_MASK | ERROR_SEVERITY_ERROR | 0x232
}
deprecated enum : DWORD {
ERROR_NO_DEFAULT_INTERFACE_DEVICE = ERROR_NO_DEFAULT_DEVICE_INTERFACE,
ERROR_INTERFACE_DEVICE_ACTIVE = ERROR_DEVICE_INTERFACE_ACTIVE,
ERROR_INTERFACE_DEVICE_REMOVED = ERROR_DEVICE_INTERFACE_REMOVED,
ERROR_NO_SUCH_INTERFACE_DEVICE = ERROR_NO_SUCH_DEVICE_INTERFACE,
}
enum : UINT {
FILEOP_COPY,
FILEOP_RENAME,
FILEOP_DELETE,
FILEOP_BACKUP,
FILEOP_NEWPATH, // = 4
FILEOP_ABORT = 0,
FILEOP_DOIT,
FILEOP_SKIP, // = 2
FILEOP_RETRY = FILEOP_DOIT
}
enum : UINT {
FILE_COMPRESSION_NONE,
FILE_COMPRESSION_WINLZA,
FILE_COMPRESSION_MSZIP,
FILE_COMPRESSION_NTCAB // = 3
}
enum : DWORD {
FLG_ADDREG_TYPE_SZ = 0x00000000,
FLG_ADDREG_BINVALUETYPE = 0x00000001,
FLG_ADDREG_NOCLOBBER = 0x00000002,
FLG_ADDREG_DELVAL = 0x00000004,
FLG_ADDREG_APPEND = 0x00000008,
FLG_ADDREG_KEYONLY = 0x00000010,
FLG_ADDREG_OVERWRITEONLY = 0x00000020,
FLG_ADDREG_TYPE_MULTI_SZ = 0x00010000,
FLG_ADDREG_TYPE_EXPAND_SZ = 0x00020000,
FLG_ADDREG_TYPE_BINARY = 0x00000000 | FLG_ADDREG_BINVALUETYPE,
FLG_ADDREG_TYPE_DWORD = 0x00010000 | FLG_ADDREG_BINVALUETYPE,
FLG_ADDREG_TYPE_NONE = 0x00020000 | FLG_ADDREG_BINVALUETYPE,
FLG_ADDREG_TYPE_MASK = 0xFFFF0000 | FLG_ADDREG_BINVALUETYPE
}
static if(_SETUPAPI_VER >= 0x0501) {
enum : DWORD {
FLG_ADDREG_64BITKEY = 0x00001000,
FLG_ADDREG_KEYONLY_COMMON = 0x00002000,
FLG_ADDREG_32BITKEY = 0x00004000,
FLG_ADDREG_DELREG_BIT = 0x00008000
}
}
enum : DWORD {
FLG_DELREG_VALUE = 0x00000000
}
static if(_SETUPAPI_VER >= 0x0501) {
enum : DWORD {
FLG_DELREG_TYPE_MASK = FLG_ADDREG_TYPE_MASK,
FLG_DELREG_TYPE_SZ = FLG_ADDREG_TYPE_SZ,
FLG_DELREG_TYPE_MULTI_SZ = FLG_ADDREG_TYPE_MULTI_SZ,
FLG_DELREG_TYPE_EXPAND_SZ = FLG_ADDREG_TYPE_EXPAND_SZ,
FLG_DELREG_TYPE_BINARY = FLG_ADDREG_TYPE_BINARY,
FLG_DELREG_TYPE_DWORD = FLG_ADDREG_TYPE_DWORD,
FLG_DELREG_TYPE_NONE = FLG_ADDREG_TYPE_NONE,
FLG_DELREG_64BITKEY = FLG_ADDREG_64BITKEY,
FLG_DELREG_KEYONLY_COMMON = FLG_ADDREG_KEYONLY_COMMON,
FLG_DELREG_32BITKEY = FLG_ADDREG_32BITKEY,
FLG_DELREG_OPERATION_MASK = 0x000000FE,
FLG_DELREG_MULTI_SZ_DELSTRING = 0x00000002 | FLG_DELREG_TYPE_MULTI_SZ | FLG_ADDREG_DELREG_BIT
}
}
enum : DWORD {
FLG_BITREG_CLEARBITS = 0x00000000,
FLG_BITREG_SETBITS = 0x00000001
}
static if(_SETUPAPI_VER >= 0x0501) {
enum : DWORD {
FLG_BITREG_64BITKEY = 0x00001000,
FLG_BITREG_32BITKEY = 0x00004000
}
}
enum : DWORD {
FLG_PROFITEM_CURRENTUSER = 0x00000001,
FLG_PROFITEM_DELETE = 0x00000002,
FLG_PROFITEM_GROUP = 0x00000004,
FLG_PROFITEM_CSIDL = 0x00000008
}
enum : DWORD {
FLG_REGSVR_DLLREGISTER = 0x00000001,
FLG_REGSVR_DLLINSTALL = 0x00000002
}
enum {
IDD_DYNAWIZ_FIRSTPAGE = 10000,
IDD_DYNAWIZ_SELECT_PREVPAGE,
IDD_DYNAWIZ_SELECT_NEXTPAGE,
IDD_DYNAWIZ_ANALYZE_PREVPAGE,
IDD_DYNAWIZ_ANALYZE_NEXTPAGE, // = 1004
IDD_DYNAWIZ_INSTALLDETECTED_PREVPAGE = 10006,
IDD_DYNAWIZ_INSTALLDETECTED_NEXTPAGE,
IDD_DYNAWIZ_INSTALLDETECTED_NODEVS,
IDD_DYNAWIZ_SELECTDEV_PAGE,
IDD_DYNAWIZ_ANALYZEDEV_PAGE,
IDD_DYNAWIZ_INSTALLDETECTEDDEVS_PAGE,
IDD_DYNAWIZ_SELECTCLASS_PAGE, // = 10012
MIN_IDD_DYNAWIZ_RESOURCE_ID = 10000,
MAX_IDD_DYNAWIZ_RESOURCE_ID = 11000
}
enum : DWORD {
IDF_NOBROWSE = 0x00000001,
IDF_NOSKIP = 0x00000002,
IDF_NODETAILS = 0x00000004,
IDF_NOCOMPRESSED = 0x00000008,
IDF_CHECKFIRST = 0x00000100,
IDF_NOBEEP = 0x00000200,
IDF_NOFOREGROUND = 0x00000400,
IDF_WARNIFSKIP = 0x00000800
}
static if(_SETUPAPI_VER >= 0x0501) {
enum : DWORD {
IDF_NOREMOVABLEMEDIAPROMPT = 0x00001000,
IDF_USEDISKNAMEASPROMPT = 0x00002000,
IDF_OEMDISK = 0x80000000
}
}
enum {
IDI_RESOURCEFIRST = 159,
IDI_RESOURCE = 159,
IDI_RESOURCELAST = 161,
IDI_RESOURCEOVERLAYFIRST = 161,
IDI_RESOURCEOVERLAYLAST = 161,
IDI_CONFLICT = 161,
IDI_PROBLEM_OVL = 500,
IDI_DISABLED_OVL = 501,
IDI_FORCED_OVL = 502,
IDI_CLASSICON_OVERLAYFIRST = 500,
IDI_CLASSICON_OVERLAYLAST = 502
}
enum : DWORD {
INF_STYLE_NONE = 0x00000000,
INF_STYLE_OLDNT = 0x00000001,
INF_STYLE_WIN4 = 0x00000002,
INF_STYLE_CACHE_ENABLE = 0x00000010,
INF_STYLE_CACHE_DISABLE = 0x00000020
}
enum : DWORD {
INFINFO_INF_SPEC_IS_HINF = 1,
INFINFO_INF_NAME_IS_ABSOLUTE,
INFINFO_DEFAULT_SEARCH,
INFINFO_REVERSE_DEFAULT_SEARCH,
INFINFO_INF_PATH_LIST_SEARCH // = 5
}
alias DWORD LogSeverity;
enum : LogSeverity {
LogSevInformation,
LogSevWarning,
LogSevError,
LogSevFatalError,
LogSevMaximum // = 4
}
const MAX_INSTALLWIZARD_DYNAPAGES = 20;
enum : DWORD {
NDW_INSTALLFLAG_DIDFACTDEFS = 0x00000001,
NDW_INSTALLFLAG_HARDWAREALLREADYIN = 0x00000002,
NDW_INSTALLFLAG_NEEDSHUTDOWN = 0x00000200,
NDW_INSTALLFLAG_EXPRESSINTRO = 0x00000400,
NDW_INSTALLFLAG_SKIPISDEVINSTALLED = 0x00000800,
NDW_INSTALLFLAG_NODETECTEDDEVS = 0x00001000,
NDW_INSTALLFLAG_INSTALLSPECIFIC = 0x00002000,
NDW_INSTALLFLAG_SKIPCLASSLIST = 0x00004000,
NDW_INSTALLFLAG_CI_PICKED_OEM = 0x00008000,
NDW_INSTALLFLAG_PCMCIAMODE = 0x00010000,
NDW_INSTALLFLAG_PCMCIADEVICE = 0x00020000,
NDW_INSTALLFLAG_USERCANCEL = 0x00040000,
NDW_INSTALLFLAG_KNOWNCLASS = 0x00080000,
NDW_INSTALLFLAG_NEEDRESTART = 0x00000080,
NDW_INSTALLFLAG_NEEDREBOOT = 0x00000100
}
enum : DWORD {
SETDIRID_NOT_FULL_PATH = 0x00000001
}
enum : DWORD {
SP_COPY_DELETESOURCE = 0x0000001,
SP_COPY_REPLACEONLY = 0x0000002,
SP_COPY_NEWER = 0x0000004,
SP_COPY_NEWER_OR_SAME = 0x0000004,
SP_COPY_NOOVERWRITE = 0x0000008,
SP_COPY_NODECOMP = 0x0000010,
SP_COPY_LANGUAGEAWARE = 0x0000020,
SP_COPY_SOURCE_ABSOLUTE = 0x0000040,
SP_COPY_SOURCEPATH_ABSOLUTE = 0x0000080,
SP_COPY_IN_USE_NEEDS_REBOOT = 0x0000100,
SP_COPY_FORCE_IN_USE = 0x0000200,
SP_COPY_NOSKIP = 0x0000400,
SP_FLAG_CABINETCONTINUATION = 0x0000800,
SP_COPY_FORCE_NOOVERWRITE = 0x0001000,
SP_COPY_FORCE_NEWER = 0x0002000,
SP_COPY_WARNIFSKIP = 0x0004000,
SP_COPY_NOBROWSE = 0x0008000,
SP_COPY_NEWER_ONLY = 0x0010000,
SP_COPY_SOURCE_SIS_MASTER = 0x0020000,
SP_COPY_OEMINF_CATALOG_ONLY = 0x0040000,
SP_COPY_REPLACE_BOOT_FILE = 0x0080000,
SP_COPY_NOPRUNE = 0x0100000
}
static if(_SETUPAPI_VER >= 0x0501) {
enum : DWORD {
SP_COPY_OEM_F6_INF = 0x0200000
}
}
enum : DWORD {
SPCRP_SECURITY = 23,
SPCRP_SECURITY_SDS,
SPCRP_DEVTYPE,
SPCRP_EXCLUSIVE,
SPCRP_CHARACTERISTICS,
SPCRP_MAXIMUM_PROPERTY // = 28
}
enum : DWORD {
SPDIT_NODRIVER,
SPDIT_CLASSDRIVER,
SPDIT_COMPATDRIVER // = 2
}
enum : DWORD {
SPDRP_DEVICEDESC,
SPDRP_HARDWAREID,
SPDRP_COMPATIBLEIDS,
SPDRP_UNUSED0,
SPDRP_SERVICE,
SPDRP_UNUSED1,
SPDRP_UNUSED2,
SPDRP_CLASS,
SPDRP_CLASSGUID,
SPDRP_DRIVER,
SPDRP_CONFIGFLAGS,
SPDRP_MFG,
SPDRP_FRIENDLYNAME,
SPDRP_LOCATION_INFORMATION,
SPDRP_PHYSICAL_DEVICE_OBJECT_NAME,
SPDRP_CAPABILITIES,
SPDRP_UI_NUMBER,
SPDRP_UPPERFILTERS,
SPDRP_LOWERFILTERS,
SPDRP_BUSTYPEGUID,
SPDRP_LEGACYBUSTYPE,
SPDRP_BUSNUMBER,
SPDRP_ENUMERATOR_NAME,
SPDRP_SECURITY,
SPDRP_SECURITY_SDS,
SPDRP_DEVTYPE,
SPDRP_EXCLUSIVE,
SPDRP_CHARACTERISTICS,
SPDRP_ADDRESS, // = 28
SPDRP_UI_NUMBER_DESC_FORMAT = 30,
SPDRP_MAXIMUM_PROPERTY = 31
}
enum : UINT {
SPDSL_IGNORE_DISK = 1,
SPDSL_DISALLOW_NEGATIVE_ADJUST
}
enum : UINT {
SPFILENOTIFY_STARTQUEUE = 1,
SPFILENOTIFY_ENDQUEUE,
SPFILENOTIFY_STARTSUBQUEUE,
SPFILENOTIFY_ENDSUBQUEUE,
SPFILENOTIFY_STARTDELETE,
SPFILENOTIFY_ENDDELETE,
SPFILENOTIFY_DELETEERROR,
SPFILENOTIFY_STARTRENAME,
SPFILENOTIFY_ENDRENAME,
SPFILENOTIFY_RENAMEERROR,
SPFILENOTIFY_STARTCOPY,
SPFILENOTIFY_ENDCOPY,
SPFILENOTIFY_COPYERROR,
SPFILENOTIFY_NEEDMEDIA,
SPFILENOTIFY_QUEUESCAN,
SPFILENOTIFY_CABINETINFO,
SPFILENOTIFY_FILEINCABINET,
SPFILENOTIFY_NEEDNEWCABINET,
SPFILENOTIFY_FILEEXTRACTED,
SPFILENOTIFY_FILEOPDELAYED,
SPFILENOTIFY_STARTBACKUP,
SPFILENOTIFY_BACKUPERROR,
SPFILENOTIFY_ENDBACKUP,
SPFILENOTIFY_QUEUESCAN_EX,
SPFILENOTIFY_STARTREGISTRATION, // = 25
SPFILENOTIFY_ENDREGISTRATION = 32,
SPFILENOTIFY_LANGMISMATCH = 0x00010000,
SPFILENOTIFY_TARGETEXISTS = 0x00020000,
SPFILENOTIFY_TARGETNEWER = 0x00040000
}
static if(_SETUPAPI_VER >= 0x0501) {
enum : UINT {
SPFILENOTIFY_QUEUESCAN_SIGNERINFO = 0x00000040
}
}
enum : DWORD {
SPFILELOG_SYSTEMLOG = 0x00000001,
SPFILELOG_OEMFILE = 0x00000001,
SPFILELOG_FORCENEW = 0x00000002,
SPFILELOG_QUERYONLY = 0x00000004
}
enum : INT {
SPFILEQ_FILE_IN_USE = 0x00000001,
SPFILEQ_REBOOT_RECOMMENDED = 0x00000002,
SPFILEQ_REBOOT_IN_PROGRESS = 0x00000004
}
enum : DWORD {
SPINT_ACTIVE = 0x00000001,
SPINT_DEFAULT = 0x00000002,
SPINT_REMOVED = 0x00000004
}
deprecated enum : DWORD {
SPID_ACTIVE = SPINT_ACTIVE,
SPID_DEFAULT = SPINT_DEFAULT,
SPID_REMOVED = SPINT_REMOVED
}
enum : UINT {
SPINST_LOGCONFIG = 0x00000001,
SPINST_INIFILES = 0x00000002,
SPINST_REGISTRY = 0x00000004,
SPINST_INI2REG = 0x00000008,
SPINST_FILES = 0x00000010,
SPINST_BITREG = 0x00000020,
SPINST_REGSVR = 0x00000040,
SPINST_UNREGSVR = 0x00000080,
SPINST_PROFILEITEMS = 0x00000100,
SPINST_SINGLESECTION = 0x00010000,
SPINST_LOGCONFIG_IS_FORCED = 0x00020000,
SPINST_LOGCONFIGS_ARE_OVERRIDES = 0x00040000
}
static if(_SETUPAPI_VER >= 0x0501) {
enum : UINT {
SPINST_COPYINF = 0x00000200,
SPINST_ALL = 0x000003ff,
SPINST_REGISTERCALLBACKAWARE = 0x00080000
}
} else {
enum : UINT {
SPINST_ALL = 0x000001ff
}
}
enum : DWORD {
SPOST_NONE,
SPOST_PATH,
SPOST_URL,
SPOST_MAX // = 3
}
enum : DWORD {
SPPSR_SELECT_DEVICE_RESOURCES = 1,
SPPSR_ENUM_BASIC_DEVICE_PROPERTIES,
SPPSR_ENUM_ADV_DEVICE_PROPERTIES
}
enum : DWORD {
SPQ_SCAN_FILE_PRESENCE = 0x00000001,
SPQ_SCAN_FILE_VALIDITY = 0x00000002,
SPQ_SCAN_USE_CALLBACK = 0x00000004,
SPQ_SCAN_USE_CALLBACKEX = 0x00000008,
SPQ_SCAN_INFORM_USER = 0x00000010,
SPQ_SCAN_PRUNE_COPY_QUEUE = 0x00000020
}
static if(_SETUPAPI_VER >= 0x0501) {
enum : DWORD {
SPQ_SCAN_USE_CALLBACK_SIGNERINFO = 0x00000040,
SPQ_SCAN_PRUNE_DELREN = 0x00000080
}
}
enum : UINT_PTR {
SPQ_DELAYED_COPY = 0x00000001
}
enum : DWORD {
SPRDI_FIND_DUPS = 0x00000001,
}
enum : DWORD {
SPSVCINST_TAGTOFRONT = 0x00000001,
SPSVCINST_ASSOCSERVICE = 0x00000002,
SPSVCINST_DELETEEVENTLOGENTRY = 0x00000004,
SPSVCINST_NOCLOBBER_DISPLAYNAME = 0x00000008,
SPSVCINST_NOCLOBBER_STARTTYPE = 0x00000010,
SPSVCINST_NOCLOBBER_ERRORCONTROL = 0x00000020,
SPSVCINST_NOCLOBBER_LOADORDERGROUP = 0x00000040,
SPSVCINST_NOCLOBBER_DEPENDENCIES = 0x00000080,
SPSVCINST_NOCLOBBER_DESCRIPTION = 0x00000100,
SPSVCINST_STOPSERVICE = 0x00000200
}
static if(_SETUPAPI_VER >= 0x0501) {
enum : DWORD {
SPSVCINST_CLOBBER_SECURITY = 0x00000400
}
}
enum : DWORD {
SPWPT_SELECTDEVICE = 0x00000001
}
enum : DWORD {
SPWP_USE_DEVINFO_DATA = 0x00000001
}
enum : UINT {
SRCINFO_PATH = 1,
SRCINFO_TAGFILE,
SRCINFO_DESCRIPTION,
SRCINFO_FLAGS // = 4
}
enum : DWORD {
SRCLIST_TEMPORARY = 0x00000001,
SRCLIST_NOBROWSE = 0x00000002,
SRCLIST_SYSTEM = 0x00000010,
SRCLIST_USER = 0x00000020,
SRCLIST_SYSIFADMIN = 0x00000040,
SRCLIST_SUBDIRS = 0x00000100,
SRCLIST_APPEND = 0x00000200,
SRCLIST_NOSTRIPPLATFORM = 0x00000400
}
alias PVOID HINF;
alias PVOID HDSKSPC;
mixin DECLARE_HANDLE!("HDEVINFO");
alias PVOID HSPFILEQ;
alias PVOID HSPFILELOG;
enum SetupFileLogInfo {
SetupFileLogSourceFilename,
SetupFileLogChecksum,
SetupFileLogDiskTagfile,
SetupFileLogDiskDescription,
SetupFileLogOtherInfo,
SetupFileLogMax
}
align(1):
struct INFCONTEXT {
PVOID Inf;
PVOID CurrentInf;
UINT Section;
UINT Line;
}
alias INFCONTEXT* PINFCONTEXT;
struct SP_INF_INFORMATION {
DWORD InfStyle;
DWORD InfCount;
BYTE[1] _VersionData;
BYTE* VersionData() return { return _VersionData.ptr; }
}
alias SP_INF_INFORMATION* PSP_INF_INFORMATION;
struct SP_ALTPLATFORM_INFO {
DWORD cbSize = SP_ALTPLATFORM_INFO.sizeof;
DWORD Platform;
DWORD MajorVersion;
DWORD MinorVersion;
WORD ProcessorArchitecture;
WORD Reserved;
}
alias SP_ALTPLATFORM_INFO* PSP_ALTPLATFORM_INFO;
struct SP_ORIGINAL_FILE_INFO_A {
DWORD cbSize = SP_ORIGINAL_FILE_INFO_A.sizeof;
CHAR[MAX_PATH] OriginalInfName;
CHAR[MAX_PATH] OriginalCatalogName;
}
alias SP_ORIGINAL_FILE_INFO_A* PSP_ORIGINAL_FILE_INFO_A;
struct SP_ORIGINAL_FILE_INFO_W {
DWORD cbSize = SP_ORIGINAL_FILE_INFO_W.sizeof;
WCHAR[MAX_PATH] OriginalInfName;
WCHAR[MAX_PATH] OriginalCatalogName;
}
alias SP_ORIGINAL_FILE_INFO_W* PSP_ORIGINAL_FILE_INFO_W;
struct FILEPATHS_A {
PCSTR Target;
PCSTR Source;
UINT Win32Error;
DWORD Flags;
}
alias FILEPATHS_A* PFILEPATHS_A;
struct FILEPATHS_W {
PCWSTR Target;
PCWSTR Source;
UINT Win32Error;
DWORD Flags;
}
alias FILEPATHS_W* PFILEPATHS_W;
struct SOURCE_MEDIA_A {
PCSTR Reserved;
PCSTR Tagfile;
PCSTR Description;
PCSTR SourcePath;
PCSTR SourceFile;
DWORD Flags;
}
alias SOURCE_MEDIA_A* PSOURCE_MEDIA_A;
struct SOURCE_MEDIA_W {
PCWSTR Reserved;
PCWSTR Tagfile;
PCWSTR Description;
PCWSTR SourcePath;
PCWSTR SourceFile;
DWORD Flags;
}
alias SOURCE_MEDIA_W* PSOURCE_MEDIA_W;
struct CABINET_INFO_A {
PCSTR CabinetPath;
PCSTR CabinetFile;
PCSTR DiskName;
USHORT SetId;
USHORT CabinetNumber;
}
alias CABINET_INFO_A* PCABINET_INFO_A;
struct CABINET_INFO_W {
PCWSTR CabinetPath;
PCWSTR CabinetFile;
PCWSTR DiskName;
USHORT SetId;
USHORT CabinetNumber;
}
alias CABINET_INFO_W* PCABINET_INFO_W;
struct FILE_IN_CABINET_INFO_A {
PCSTR NameInCabinet;
DWORD FileSize;
DWORD Win32Error;
WORD DosDate;
WORD DosTime;
WORD DosAttribs;
CHAR[MAX_PATH] FullTargetName;
}
alias FILE_IN_CABINET_INFO_A* PFILE_IN_CABINET_INFO_A;
struct FILE_IN_CABINET_INFO_W {
PCWSTR NameInCabinet;
DWORD FileSize;
DWORD Win32Error;
WORD DosDate;
WORD DosTime;
WORD DosAttribs;
WCHAR[MAX_PATH] FullTargetName;
}
alias FILE_IN_CABINET_INFO_W* PFILE_IN_CABINET_INFO_W;
struct SP_FILE_COPY_PARAMS_A {
DWORD cbSize = SP_FILE_COPY_PARAMS_A.sizeof;
HSPFILEQ QueueHandle;
PCSTR SourceRootPath;
PCSTR SourcePath;
PCSTR SourceFilename;
PCSTR SourceDescription;
PCSTR SourceTagfile;
PCSTR TargetDirectory;
PCSTR TargetFilename;
DWORD CopyStyle;
HINF LayoutInf;
PCSTR SecurityDescriptor;
}
alias SP_FILE_COPY_PARAMS_A* PSP_FILE_COPY_PARAMS_A;
struct SP_FILE_COPY_PARAMS_W {
DWORD cbSize = SP_FILE_COPY_PARAMS_W.sizeof;
HSPFILEQ QueueHandle;
PCWSTR SourceRootPath;
PCWSTR SourcePath;
PCWSTR SourceFilename;
PCWSTR SourceDescription;
PCWSTR SourceTagfile;
PCWSTR TargetDirectory;
PCWSTR TargetFilename;
DWORD CopyStyle;
HINF LayoutInf;
PCWSTR SecurityDescriptor;
}
alias SP_FILE_COPY_PARAMS_W* PSP_FILE_COPY_PARAMS_W;
struct SP_DEVINFO_DATA {
DWORD cbSize = SP_DEVINFO_DATA.sizeof;
GUID ClassGuid;
DWORD DevInst;
ULONG_PTR Reserved;
}
alias SP_DEVINFO_DATA* PSP_DEVINFO_DATA;
struct SP_DEVICE_INTERFACE_DATA {
DWORD cbSize = SP_DEVICE_INTERFACE_DATA.sizeof;
GUID InterfaceClassGuid;
DWORD Flags;
ULONG_PTR Reserved;
}
alias SP_DEVICE_INTERFACE_DATA* PSP_DEVICE_INTERFACE_DATA;
deprecated alias SP_DEVICE_INTERFACE_DATA SP_INTERFACE_DEVICE_DATA;
deprecated alias SP_DEVICE_INTERFACE_DATA* PSP_INTERFACE_DEVICE_DATA;
struct SP_DEVICE_INTERFACE_DETAIL_DATA_A {
DWORD cbSize = SP_DEVICE_INTERFACE_DETAIL_DATA_A.sizeof;
CHAR[1] _DevicePath;
CHAR* DevicePath() return { return _DevicePath.ptr; }
}
alias SP_DEVICE_INTERFACE_DETAIL_DATA_A* PSP_DEVICE_INTERFACE_DETAIL_DATA_A;
struct SP_DEVICE_INTERFACE_DETAIL_DATA_W {
DWORD cbSize = SP_DEVICE_INTERFACE_DETAIL_DATA_W.sizeof;
WCHAR[1] _DevicePath;
WCHAR* DevicePath() return { return _DevicePath.ptr; }
}
alias SP_DEVICE_INTERFACE_DETAIL_DATA_W* PSP_DEVICE_INTERFACE_DETAIL_DATA_W;
deprecated alias SP_DEVICE_INTERFACE_DETAIL_DATA_A SP_INTERFACE_DEVICE_DETAIL_DATA_A;
deprecated alias SP_DEVICE_INTERFACE_DETAIL_DATA_A* PSP_INTERFACE_DEVICE_DETAIL_DATA_A;
deprecated alias SP_DEVICE_INTERFACE_DETAIL_DATA_W SP_INTERFACE_DEVICE_DETAIL_DATA_W;
deprecated alias SP_DEVICE_INTERFACE_DETAIL_DATA_W* PSP_INTERFACE_DEVICE_DETAIL_DATA_W;
struct SP_DEVINFO_LIST_DETAIL_DATA_A {
DWORD cbSize = SP_DEVINFO_LIST_DETAIL_DATA_A.sizeof;
GUID ClassGuid;
HANDLE RemoteMachineHandle;
CHAR[SP_MAX_MACHINENAME_LENGTH] RemoteMachineName;
}
alias SP_DEVINFO_LIST_DETAIL_DATA_A* PSP_DEVINFO_LIST_DETAIL_DATA_A;
struct SP_DEVINFO_LIST_DETAIL_DATA_W {
DWORD cbSize = SP_DEVINFO_LIST_DETAIL_DATA_W.sizeof;
GUID ClassGuid;
HANDLE RemoteMachineHandle;
WCHAR[SP_MAX_MACHINENAME_LENGTH] RemoteMachineName;
}
alias SP_DEVINFO_LIST_DETAIL_DATA_W* PSP_DEVINFO_LIST_DETAIL_DATA_W;
extern(Windows) alias UINT function(PVOID, UINT, UINT_PTR, UINT_PTR) PSP_FILE_CALLBACK_A;
extern(Windows) alias UINT function(PVOID, UINT, UINT_PTR, UINT_PTR) PSP_FILE_CALLBACK_W;
struct SP_DEVINSTALL_PARAMS_A {
DWORD cbSize = SP_DEVINSTALL_PARAMS_A.sizeof;
DWORD Flags;
DWORD FlagsEx;
HWND hwndParent;
PSP_FILE_CALLBACK_A InstallMsgHandler;
PVOID InstallMsgHandlerContext;
HSPFILEQ FileQueue;
ULONG_PTR ClassInstallReserved;
DWORD Reserved;
CHAR[MAX_PATH] DriverPath;
}
alias SP_DEVINSTALL_PARAMS_A* PSP_DEVINSTALL_PARAMS_A;
struct SP_DEVINSTALL_PARAMS_W {
DWORD cbSize = SP_DEVINSTALL_PARAMS_W.sizeof;
DWORD Flags;
DWORD FlagsEx;
HWND hwndParent;
PSP_FILE_CALLBACK_W InstallMsgHandler;
PVOID InstallMsgHandlerContext;
HSPFILEQ FileQueue;
ULONG_PTR ClassInstallReserved;
DWORD Reserved;
WCHAR[MAX_PATH] DriverPath;
}
alias SP_DEVINSTALL_PARAMS_W* PSP_DEVINSTALL_PARAMS_W;
struct SP_CLASSINSTALL_HEADER {
DWORD cbSize = SP_CLASSINSTALL_HEADER.sizeof;
DI_FUNCTION InstallFunction;
}
alias SP_CLASSINSTALL_HEADER* PSP_CLASSINSTALL_HEADER;
struct SP_ENABLECLASS_PARAMS {
SP_CLASSINSTALL_HEADER ClassInstallHeader;
GUID ClassGuid;
DWORD EnableMessage;
}
alias SP_ENABLECLASS_PARAMS* PSP_ENABLECLASS_PARAMS;
struct SP_MOVEDEV_PARAMS {
SP_CLASSINSTALL_HEADER ClassInstallHeader;
SP_DEVINFO_DATA SourceDeviceInfoData;
}
alias SP_MOVEDEV_PARAMS* PSP_MOVEDEV_PARAMS;
struct SP_PROPCHANGE_PARAMS {
SP_CLASSINSTALL_HEADER ClassInstallHeader;
DWORD StateChange;
DWORD Scope;
DWORD HwProfile;
}
alias SP_PROPCHANGE_PARAMS* PSP_PROPCHANGE_PARAMS;
struct SP_REMOVEDEVICE_PARAMS {
SP_CLASSINSTALL_HEADER ClassInstallHeader;
DWORD Scope;
DWORD HwProfile;
}
alias SP_REMOVEDEVICE_PARAMS* PSP_REMOVEDEVICE_PARAMS;
struct SP_UNREMOVEDEVICE_PARAMS {
SP_CLASSINSTALL_HEADER ClassInstallHeader;
DWORD Scope;
DWORD HwProfile;
}
alias SP_UNREMOVEDEVICE_PARAMS* PSP_UNREMOVEDEVICE_PARAMS;
struct SP_SELECTDEVICE_PARAMS_A {
SP_CLASSINSTALL_HEADER ClassInstallHeader;
CHAR[MAX_TITLE_LEN] Title;
CHAR[MAX_INSTRUCTION_LEN] Instructions;
CHAR[MAX_LABEL_LEN] ListLabel;
CHAR[MAX_SUBTITLE_LEN] SubTitle;
BYTE[2] Reserved;
}
alias SP_SELECTDEVICE_PARAMS_A* PSP_SELECTDEVICE_PARAMS_A;
struct SP_SELECTDEVICE_PARAMS_W {
SP_CLASSINSTALL_HEADER ClassInstallHeader;
WCHAR[MAX_TITLE_LEN] Title;
WCHAR[MAX_INSTRUCTION_LEN] Instructions;
WCHAR[MAX_LABEL_LEN] ListLabel;
WCHAR[MAX_SUBTITLE_LEN] SubTitle;
}
alias SP_SELECTDEVICE_PARAMS_W* PSP_SELECTDEVICE_PARAMS_W;
extern(Windows) alias BOOL function(PVOID, DWORD) PDETECT_PROGRESS_NOTIFY;
struct SP_DETECTDEVICE_PARAMS {
SP_CLASSINSTALL_HEADER ClassInstallHeader;
PDETECT_PROGRESS_NOTIFY DetectProgressNotify;
PVOID ProgressNotifyParam;
}
alias SP_DETECTDEVICE_PARAMS* PSP_DETECTDEVICE_PARAMS;
struct SP_INSTALLWIZARD_DATA {
SP_CLASSINSTALL_HEADER ClassInstallHeader;
DWORD Flags;
HPROPSHEETPAGE[MAX_INSTALLWIZARD_DYNAPAGES] DynamicPages;
DWORD NumDynamicPages;
DWORD DynamicPageFlags;
DWORD PrivateFlags;
LPARAM PrivateData;
HWND hwndWizardDlg;
}
alias SP_INSTALLWIZARD_DATA* PSP_INSTALLWIZARD_DATA;
struct SP_NEWDEVICEWIZARD_DATA {
SP_CLASSINSTALL_HEADER ClassInstallHeader;
DWORD Flags;
HPROPSHEETPAGE[MAX_INSTALLWIZARD_DYNAPAGES] DynamicPages;
DWORD NumDynamicPages;
HWND hwndWizardDlg;
}
alias SP_NEWDEVICEWIZARD_DATA* PSP_NEWDEVICEWIZARD_DATA;
alias SP_NEWDEVICEWIZARD_DATA SP_ADDPROPERTYPAGE_DATA;
alias SP_NEWDEVICEWIZARD_DATA* PSP_ADDPROPERTYPAGE_DATA;
struct SP_TROUBLESHOOTER_PARAMS_A {
SP_CLASSINSTALL_HEADER ClassInstallHeader;
CHAR[MAX_PATH] ChmFile;
CHAR[MAX_PATH] HtmlTroubleShooter;
}
alias SP_TROUBLESHOOTER_PARAMS_A* PSP_TROUBLESHOOTER_PARAMS_A;
struct SP_TROUBLESHOOTER_PARAMS_W {
SP_CLASSINSTALL_HEADER ClassInstallHeader;
WCHAR[MAX_PATH] ChmFile;
WCHAR[MAX_PATH] HtmlTroubleShooter;
}
alias SP_TROUBLESHOOTER_PARAMS_W* PSP_TROUBLESHOOTER_PARAMS_W;
struct SP_POWERMESSAGEWAKE_PARAMS_A {
SP_CLASSINSTALL_HEADER ClassInstallHeader;
CHAR[LINE_LEN*2] PowerMessageWake;
}
alias SP_POWERMESSAGEWAKE_PARAMS_A* PSP_POWERMESSAGEWAKE_PARAMS_A;
struct SP_POWERMESSAGEWAKE_PARAMS_W {
SP_CLASSINSTALL_HEADER ClassInstallHeader;
WCHAR[LINE_LEN*2] PowerMessageWake;
}
alias SP_POWERMESSAGEWAKE_PARAMS_W* PSP_POWERMESSAGEWAKE_PARAMS_W;
struct SP_DRVINFO_DATA_V2_A {
DWORD cbSize = SP_DRVINFO_DATA_V2_A.sizeof;
DWORD DriverType;
ULONG_PTR Reserved;
CHAR[LINE_LEN] Description;
CHAR[LINE_LEN] MfgName;
CHAR[LINE_LEN] ProviderName;
FILETIME DriverDate;
DWORDLONG DriverVersion;
}
alias SP_DRVINFO_DATA_V2_A* PSP_DRVINFO_DATA_V2_A;
struct SP_DRVINFO_DATA_V2_W {
DWORD cbSize = SP_DRVINFO_DATA_V2_A.sizeof;
DWORD DriverType;
ULONG_PTR Reserved;
WCHAR[LINE_LEN] Description;
WCHAR[LINE_LEN] MfgName;
WCHAR[LINE_LEN] ProviderName;
FILETIME DriverDate;
DWORDLONG DriverVersion;
}
alias SP_DRVINFO_DATA_V2_W* PSP_DRVINFO_DATA_V2_W;
struct SP_DRVINFO_DATA_V1_A {
DWORD cbSize = SP_DRVINFO_DATA_V1_A.sizeof;
DWORD DriverType;
ULONG_PTR Reserved;
CHAR[LINE_LEN] Description;
CHAR[LINE_LEN] MfgName;
CHAR[LINE_LEN] ProviderName;
}
alias SP_DRVINFO_DATA_V1_A* PSP_DRVINFO_DATA_V1_A;
struct SP_DRVINFO_DATA_V1_W {
DWORD cbSize = SP_DRVINFO_DATA_V1_W.sizeof;
DWORD DriverType;
ULONG_PTR Reserved;
WCHAR[LINE_LEN] Description;
WCHAR[LINE_LEN] MfgName;
WCHAR[LINE_LEN] ProviderName;
}
alias SP_DRVINFO_DATA_V1_W* PSP_DRVINFO_DATA_V1_W;
version (Unicode) {
alias SP_DRVINFO_DATA_V1_W SP_DRVINFO_DATA_V1;
alias SP_DRVINFO_DATA_V2_W SP_DRVINFO_DATA_V2;
} else {
alias SP_DRVINFO_DATA_V1_A SP_DRVINFO_DATA_V1;
alias SP_DRVINFO_DATA_V2_A SP_DRVINFO_DATA_V2;
}
alias SP_DRVINFO_DATA_V1* PSP_DRVINFO_DATA_V1;
alias SP_DRVINFO_DATA_V2* PSP_DRVINFO_DATA_V2;
static if(USE_SP_DRVINFO_DATA_V1) {
alias SP_DRVINFO_DATA_V1_A SP_DRVINFO_DATA_A;
alias SP_DRVINFO_DATA_V1_A* PSP_DRVINFO_DATA_A;
alias SP_DRVINFO_DATA_V1_W SP_DRVINFO_DATA_W;
alias SP_DRVINFO_DATA_V1_W* PSP_DRVINFO_DATA_W;
alias SP_DRVINFO_DATA_V1 SP_DRVINFO_DATA;
alias SP_DRVINFO_DATA_V1* PSP_DRVINFO_DATA;
} else {
alias SP_DRVINFO_DATA_V2_A SP_DRVINFO_DATA_A;
alias SP_DRVINFO_DATA_V2_A* PSP_DRVINFO_DATA_A;
alias SP_DRVINFO_DATA_V2_W SP_DRVINFO_DATA_W;
alias SP_DRVINFO_DATA_V2_W* PSP_DRVINFO_DATA_W;
alias SP_DRVINFO_DATA_V2 SP_DRVINFO_DATA;
alias SP_DRVINFO_DATA_V2* PSP_DRVINFO_DATA;
}
extern(Windows) alias DWORD function(HDEVINFO, PSP_DEVINFO_DATA, PSP_DEVINFO_DATA, PVOID) PSP_DETSIG_CMPPROC;
struct SP_DRVINFO_DETAIL_DATA_A {
DWORD cbSize = SP_DRVINFO_DETAIL_DATA_A.sizeof;
FILETIME InfDate;
DWORD CompatIDsOffset;
DWORD CompatIDsLength;
ULONG_PTR Reserved;
CHAR[LINE_LEN] SectionName;
CHAR[MAX_PATH] InfFileName;
CHAR[LINE_LEN] DrvDescription;
CHAR[1] _HardwareID;
CHAR* HardwareID() return { return _HardwareID.ptr; }
}
alias SP_DRVINFO_DETAIL_DATA_A* PSP_DRVINFO_DETAIL_DATA_A;
struct SP_DRVINFO_DETAIL_DATA_W {
DWORD cbSize = SP_DRVINFO_DETAIL_DATA_W.sizeof;
FILETIME InfDate;
DWORD CompatIDsOffset;
DWORD CompatIDsLength;
ULONG_PTR Reserved;
WCHAR[LINE_LEN] SectionName;
WCHAR[MAX_PATH] InfFileName;
WCHAR[LINE_LEN] DrvDescription;
WCHAR[1] _HardwareID;
WCHAR* HardwareID() return { return _HardwareID.ptr; }
}
alias SP_DRVINFO_DETAIL_DATA_W* PSP_DRVINFO_DETAIL_DATA_W;
struct SP_DRVINSTALL_PARAMS {
DWORD cbSize = SP_DRVINSTALL_PARAMS.sizeof;
DWORD Rank;
DWORD Flags;
DWORD_PTR PrivateData;
DWORD Reserved;
}
alias SP_DRVINSTALL_PARAMS* PSP_DRVINSTALL_PARAMS;
struct COINSTALLER_CONTEXT_DATA {
BOOL PostProcessing;
DWORD InstallResult;
PVOID PrivateData;
}
alias COINSTALLER_CONTEXT_DATA* PCOINSTALLER_CONTEXT_DATA;
struct SP_CLASSIMAGELIST_DATA {
DWORD cbSize = SP_CLASSIMAGELIST_DATA.sizeof;
HIMAGELIST ImageList;
ULONG_PTR Reserved;
}
alias SP_CLASSIMAGELIST_DATA* PSP_CLASSIMAGELIST_DATA;
struct SP_PROPSHEETPAGE_REQUEST {
DWORD cbSize = SP_PROPSHEETPAGE_REQUEST.sizeof;
DWORD PageRequested;
HDEVINFO DeviceInfoSet;
PSP_DEVINFO_DATA DeviceInfoData;
}
alias SP_PROPSHEETPAGE_REQUEST* PSP_PROPSHEETPAGE_REQUEST;
struct SP_BACKUP_QUEUE_PARAMS_A {
DWORD cbSize = SP_BACKUP_QUEUE_PARAMS_A.sizeof;
CHAR[MAX_PATH] FullInfPath;
INT FilenameOffset;
}
alias SP_BACKUP_QUEUE_PARAMS_A* PSP_BACKUP_QUEUE_PARAMS_A;
struct SP_BACKUP_QUEUE_PARAMS_W {
DWORD cbSize = SP_BACKUP_QUEUE_PARAMS_W.sizeof;
WCHAR[MAX_PATH] FullInfPath;
INT FilenameOffset;
}
alias SP_BACKUP_QUEUE_PARAMS_W* PSP_BACKUP_QUEUE_PARAMS_W;
version (Unicode) {
alias SP_ORIGINAL_FILE_INFO_W SP_ORIGINAL_FILE_INFO;
alias SP_ORIGINAL_FILE_INFO_W* PSP_ORIGINAL_FILE_INFO;
alias FILEPATHS_W FILEPATHS;
alias FILEPATHS_W* PFILEPATHS;
alias SOURCE_MEDIA_W SOURCE_MEDIA;
alias SOURCE_MEDIA_W* PSOURCE_MEDIA;
alias CABINET_INFO_W CABINET_INFO;
alias CABINET_INFO_W* PCABINET_INFO;
alias FILE_IN_CABINET_INFO_W FILE_IN_CABINET_INFO;
alias FILE_IN_CABINET_INFO_W* PFILE_IN_CABINET_INFO;
alias SP_FILE_COPY_PARAMS_W SP_FILE_COPY_PARAMS;
alias SP_FILE_COPY_PARAMS_W* PSP_FILE_COPY_PARAMS;
alias SP_DEVICE_INTERFACE_DETAIL_DATA_W SP_DEVICE_INTERFACE_DETAIL_DATA;
alias SP_DEVICE_INTERFACE_DETAIL_DATA_W* PSP_DEVICE_INTERFACE_DETAIL_DATA;
deprecated {
alias SP_DEVICE_INTERFACE_DETAIL_DATA_W SP_INTERFACE_DEVICE_DETAIL_DATA;
alias SP_DEVICE_INTERFACE_DETAIL_DATA_W* PSP_INTERFACE_DEVICE_DETAIL_DATA;
}
alias SP_DEVINFO_LIST_DETAIL_DATA_W SP_DEVINFO_LIST_DETAIL_DATA;
alias SP_DEVINFO_LIST_DETAIL_DATA_W *PSP_DEVINFO_LIST_DETAIL_DATA;
alias SP_DEVINSTALL_PARAMS_W SP_DEVINSTALL_PARAMS;
alias SP_DEVINSTALL_PARAMS_W* PSP_DEVINSTALL_PARAMS;
alias SP_SELECTDEVICE_PARAMS_W SP_SELECTDEVICE_PARAMS;
alias SP_SELECTDEVICE_PARAMS_W* PSP_SELECTDEVICE_PARAMS;
alias SP_TROUBLESHOOTER_PARAMS_W SP_TROUBLESHOOTER_PARAMS;
alias SP_TROUBLESHOOTER_PARAMS_W* PSP_TROUBLESHOOTER_PARAMS;
alias SP_POWERMESSAGEWAKE_PARAMS_W SP_POWERMESSAGEWAKE_PARAMS;
alias SP_POWERMESSAGEWAKE_PARAMS_W* PSP_POWERMESSAGEWAKE_PARAMS;
alias SP_DRVINFO_DETAIL_DATA_W SP_DRVINFO_DETAIL_DATA;
alias SP_DRVINFO_DETAIL_DATA_W* PSP_DRVINFO_DETAIL_DATA;
alias SP_BACKUP_QUEUE_PARAMS_W SP_BACKUP_QUEUE_PARAMS;
alias SP_BACKUP_QUEUE_PARAMS_W* PSP_BACKUP_QUEUE_PARAMS;
} else {
alias SP_ORIGINAL_FILE_INFO_A SP_ORIGINAL_FILE_INFO;
alias SP_ORIGINAL_FILE_INFO_A* PSP_ORIGINAL_FILE_INFO;
alias FILEPATHS_A FILEPATHS;
alias FILEPATHS_A* PFILEPATHS;
alias SOURCE_MEDIA_A SOURCE_MEDIA;
alias SOURCE_MEDIA_A* PSOURCE_MEDIA;
alias CABINET_INFO_A CABINET_INFO;
alias CABINET_INFO_A* PCABINET_INFO;
alias FILE_IN_CABINET_INFO_A FILE_IN_CABINET_INFO;
alias FILE_IN_CABINET_INFO_A* PFILE_IN_CABINET_INFO;
alias SP_FILE_COPY_PARAMS_A SP_FILE_COPY_PARAMS;
alias SP_FILE_COPY_PARAMS_A* PSP_FILE_COPY_PARAMS;
alias SP_DEVICE_INTERFACE_DETAIL_DATA_A SP_DEVICE_INTERFACE_DETAIL_DATA;
alias SP_DEVICE_INTERFACE_DETAIL_DATA_A* PSP_DEVICE_INTERFACE_DETAIL_DATA;
deprecated {
alias SP_DEVICE_INTERFACE_DETAIL_DATA_A SP_INTERFACE_DEVICE_DETAIL_DATA;
alias SP_DEVICE_INTERFACE_DETAIL_DATA_A* PSP_INTERFACE_DEVICE_DETAIL_DATA;
}
alias SP_DEVINFO_LIST_DETAIL_DATA_A SP_DEVINFO_LIST_DETAIL_DATA;
alias SP_DEVINFO_LIST_DETAIL_DATA_A* PSP_DEVINFO_LIST_DETAIL_DATA;
alias SP_DEVINSTALL_PARAMS_A SP_DEVINSTALL_PARAMS;
alias SP_DEVINSTALL_PARAMS_A* PSP_DEVINSTALL_PARAMS;
alias SP_SELECTDEVICE_PARAMS_A SP_SELECTDEVICE_PARAMS;
alias SP_SELECTDEVICE_PARAMS_A* PSP_SELECTDEVICE_PARAMS;
alias SP_TROUBLESHOOTER_PARAMS_A SP_TROUBLESHOOTER_PARAMS;
alias SP_TROUBLESHOOTER_PARAMS_A* PSP_TROUBLESHOOTER_PARAMS;
alias SP_POWERMESSAGEWAKE_PARAMS_A SP_POWERMESSAGEWAKE_PARAMS;
alias SP_POWERMESSAGEWAKE_PARAMS_A* PSP_POWERMESSAGEWAKE_PARAMS;
alias SP_DRVINFO_DETAIL_DATA_A SP_DRVINFO_DETAIL_DATA;
alias SP_DRVINFO_DETAIL_DATA_A* PSP_DRVINFO_DETAIL_DATA;
alias SP_BACKUP_QUEUE_PARAMS_A SP_BACKUP_QUEUE_PARAMS;
alias SP_BACKUP_QUEUE_PARAMS_A* PSP_BACKUP_QUEUE_PARAMS;
}
extern (Windows) {
BOOL SetupAddInstallSectionToDiskSpaceListA(HDSKSPC, HINF, HINF, PCSTR, PVOID, UINT);
BOOL SetupAddInstallSectionToDiskSpaceListW(HDSKSPC, HINF, HINF, PCWSTR, PVOID, UINT);
BOOL SetupAddSectionToDiskSpaceListA(HDSKSPC, HINF, HINF, PCSTR, UINT, PVOID, UINT);
BOOL SetupAddSectionToDiskSpaceListW(HDSKSPC, HINF, HINF, PCWSTR, UINT, PVOID, UINT);
BOOL SetupAddToDiskSpaceListA(HDSKSPC, PCSTR, LONGLONG, UINT, PVOID, UINT);
BOOL SetupAddToDiskSpaceListW(HDSKSPC, PCWSTR, LONGLONG, UINT, PVOID, UINT);
BOOL SetupAddToSourceListA(DWORD, PCSTR);
BOOL SetupAddToSourceListW(DWORD, PCWSTR);
BOOL SetupQuerySourceListA(DWORD, PCSTR**List, PUINT);
BOOL SetupQuerySourceListW(DWORD, PCWSTR**List, PUINT);
BOOL SetupFreeSourceListA(PCSTR**List, UINT);
BOOL SetupFreeSourceListW(PCWSTR**List, UINT);
BOOL SetupAdjustDiskSpaceListA(HDSKSPC, LPCSTR, LONGLONG, PVOID, UINT);
BOOL SetupAdjustDiskSpaceListW(HDSKSPC, LPCWSTR, LONGLONG, PVOID, UINT);
UINT SetupBackupErrorA(HWND, PCSTR, PCSTR, PCSTR, UINT, DWORD);
UINT SetupBackupErrorW(HWND, PCWSTR, PCWSTR, PCWSTR, UINT, DWORD);
BOOL SetupCancelTemporary();
BOOL SetupCloseFileQueue(HSPFILEQ);
VOID SetupCloseInfFile(HINF);
VOID SetupCloseLog();
BOOL SetupCommitFileQueueA(HWND, HSPFILEQ, PSP_FILE_CALLBACK_A, PVOID);
BOOL SetupCommitFileQueueW(HWND, HSPFILEQ, PSP_FILE_CALLBACK_W, PVOID);
UINT SetupCopyErrorA(HWND, PCSTR, PCSTR, PCSTR, PCSTR, PCSTR, UINT, DWORD, PSTR, DWORD, PDWORD);
UINT SetupCopyErrorW(HWND, PCWSTR, PCWSTR, PCWSTR, PCWSTR, PCWSTR, UINT, DWORD, PWSTR, DWORD, PDWORD);
BOOL SetupCopyOEMInfA(PCSTR, PCSTR, DWORD, DWORD, PSTR, DWORD, PDWORD, PSTR*);
BOOL SetupCopyOEMInfW(PCWSTR, PCWSTR, DWORD, DWORD, PWSTR, DWORD, PDWORD, PWSTR*);
HDSKSPC SetupCreateDiskSpaceListA(PVOID, DWORD, UINT);
HDSKSPC SetupCreateDiskSpaceListW(PVOID, DWORD, UINT);
DWORD SetupDecompressOrCopyFileA(PCSTR, PCSTR, PUINT);
DWORD SetupDecompressOrCopyFileW(PCWSTR, PCWSTR, PUINT);
UINT SetupDefaultQueueCallbackA(PVOID, UINT, UINT_PTR, UINT_PTR);
UINT SetupDefaultQueueCallbackW(PVOID, UINT, UINT_PTR, UINT_PTR);
UINT SetupDeleteErrorA(HWND, PCSTR, PCSTR, UINT, DWORD);
UINT SetupDeleteErrorW(HWND, PCWSTR, PCWSTR, UINT, DWORD);
BOOL SetupDestroyDiskSpaceList(HDSKSPC);
BOOL SetupDiAskForOEMDisk(HDEVINFO, PSP_DEVINFO_DATA);
BOOL SetupDiBuildClassInfoList(DWORD, LPGUID, DWORD, PDWORD);
BOOL SetupDiBuildClassInfoListExA(DWORD, LPGUID, DWORD, PDWORD, PCSTR, PVOID);
BOOL SetupDiBuildClassInfoListExW(DWORD, LPGUID, DWORD, PDWORD, PCWSTR, PVOID);
BOOL SetupDiBuildDriverInfoList(HDEVINFO, PSP_DEVINFO_DATA, DWORD);
BOOL SetupDiCallClassInstaller(DI_FUNCTION, HDEVINFO, PSP_DEVINFO_DATA);
BOOL SetupDiCancelDriverInfoSearch(HDEVINFO);
BOOL SetupDiChangeState(HDEVINFO, PSP_DEVINFO_DATA);
BOOL SetupDiClassGuidsFromNameA(PCSTR, LPGUID, DWORD, PDWORD);
BOOL SetupDiClassGuidsFromNameW(PCWSTR, LPGUID, DWORD, PDWORD);
BOOL SetupDiClassGuidsFromNameExA(PCSTR, LPGUID, DWORD, PDWORD, PCSTR, PVOID);
BOOL SetupDiClassGuidsFromNameExW(PCWSTR, LPGUID, DWORD, PDWORD, PCWSTR, PVOID);
BOOL SetupDiClassNameFromGuidA(const(GUID)*, PSTR, DWORD, PDWORD);
BOOL SetupDiClassNameFromGuidW(const(GUID)*, PWSTR, DWORD, PDWORD);
BOOL SetupDiClassNameFromGuidExA(const(GUID)*, PSTR, DWORD, PDWORD, PCSTR, PVOID);
BOOL SetupDiClassNameFromGuidExW(const(GUID)*, PWSTR, DWORD, PDWORD, PCWSTR, PVOID);
BOOL SetupDiCreateDeviceInfoA(HDEVINFO, PCSTR, const(GUID)*, PCSTR, HWND, DWORD, PSP_DEVINFO_DATA);
BOOL SetupDiCreateDeviceInfoW(HDEVINFO, PCWSTR, const(GUID)*, PCWSTR, HWND, DWORD, PSP_DEVINFO_DATA);
HDEVINFO SetupDiCreateDeviceInfoList(const(GUID)*, HWND);
HDEVINFO SetupDiCreateDeviceInfoListExA(const(GUID)*, HWND, PCSTR, PVOID);
HDEVINFO SetupDiCreateDeviceInfoListExW(const(GUID)*, HWND, PCWSTR, PVOID);
BOOL SetupDiCreateDeviceInterfaceA(HDEVINFO, PSP_DEVINFO_DATA, const(GUID)*, PCSTR, DWORD, PSP_DEVICE_INTERFACE_DATA);
BOOL SetupDiCreateDeviceInterfaceW(HDEVINFO, PSP_DEVINFO_DATA, const(GUID)*, PCWSTR, DWORD, PSP_DEVICE_INTERFACE_DATA);
HKEY SetupDiCreateDeviceInterfaceRegKeyA(HDEVINFO, PSP_DEVICE_INTERFACE_DATA, DWORD, REGSAM, HINF, PCSTR);
HKEY SetupDiCreateDeviceInterfaceRegKeyW(HDEVINFO, PSP_DEVICE_INTERFACE_DATA, DWORD, REGSAM, HINF, PCWSTR);
HKEY SetupDiCreateDevRegKeyA(HDEVINFO, PSP_DEVINFO_DATA, DWORD, DWORD, DWORD, HINF, PCSTR);
HKEY SetupDiCreateDevRegKeyW(HDEVINFO, PSP_DEVINFO_DATA, DWORD, DWORD, DWORD, HINF, PCWSTR);
BOOL SetupDiDeleteDeviceInfo(HDEVINFO, PSP_DEVINFO_DATA);
BOOL SetupDiDeleteDeviceInterfaceData(HDEVINFO, PSP_DEVICE_INTERFACE_DATA);
BOOL SetupDiDeleteDeviceInterfaceRegKey(HDEVINFO, PSP_DEVICE_INTERFACE_DATA, DWORD);
BOOL SetupDiDeleteDevRegKey(HDEVINFO, PSP_DEVINFO_DATA, DWORD, DWORD, DWORD);
BOOL SetupDiDestroyClassImageList(PSP_CLASSIMAGELIST_DATA);
BOOL SetupDiDestroyDeviceInfoList(HDEVINFO);
BOOL SetupDiDestroyDriverInfoList(HDEVINFO, PSP_DEVINFO_DATA, DWORD);
INT SetupDiDrawMiniIcon(HDC, RECT, INT, DWORD);
BOOL SetupDiEnumDeviceInfo(HDEVINFO, DWORD, PSP_DEVINFO_DATA);
BOOL SetupDiEnumDeviceInterfaces(HDEVINFO, PSP_DEVINFO_DATA, const(GUID)*, DWORD, PSP_DEVICE_INTERFACE_DATA);
BOOL SetupDiEnumDriverInfoA(HDEVINFO, PSP_DEVINFO_DATA, DWORD, DWORD, PSP_DRVINFO_DATA_A);
BOOL SetupDiEnumDriverInfoW(HDEVINFO, PSP_DEVINFO_DATA, DWORD, DWORD, PSP_DRVINFO_DATA_W);
BOOL SetupDiGetActualSectionToInstallA(HINF, PCSTR, PSTR, DWORD, PDWORD, PSTR*);
BOOL SetupDiGetActualSectionToInstallW(HINF, PCWSTR, PWSTR, DWORD, PDWORD, PWSTR*);
BOOL SetupDiGetClassBitmapIndex(const(GUID)*, PINT);
BOOL SetupDiGetClassDescriptionA(const(GUID)*, PSTR, DWORD, PDWORD);
BOOL SetupDiGetClassDescriptionW(const(GUID)*, PWSTR, DWORD, PDWORD);
BOOL SetupDiGetClassDescriptionExA(const(GUID)*, PSTR, DWORD, PDWORD, PCSTR, PVOID);
BOOL SetupDiGetClassDescriptionExW(const(GUID)*, PWSTR, DWORD, PDWORD, PCWSTR, PVOID);
BOOL SetupDiGetClassDevPropertySheetsA(HDEVINFO, PSP_DEVINFO_DATA, LPPROPSHEETHEADERA, DWORD, PDWORD, DWORD);
BOOL SetupDiGetClassDevPropertySheetsW(HDEVINFO, PSP_DEVINFO_DATA, LPPROPSHEETHEADERW, DWORD, PDWORD, DWORD);
HDEVINFO SetupDiGetClassDevsA(const(GUID)*, PCSTR, HWND, DWORD);
HDEVINFO SetupDiGetClassDevsW(const(GUID)*, PCWSTR, HWND, DWORD);
HDEVINFO SetupDiGetClassDevsExA(const(GUID)*, PCSTR, HWND, DWORD, HDEVINFO, PCSTR, PVOID);
HDEVINFO SetupDiGetClassDevsExW(const(GUID)*, PCWSTR, HWND, DWORD, HDEVINFO, PCWSTR, PVOID);
BOOL SetupDiGetClassImageIndex(PSP_CLASSIMAGELIST_DATA, const(GUID)*, PINT);
BOOL SetupDiGetClassImageList(PSP_CLASSIMAGELIST_DATA);
BOOL SetupDiGetClassImageListExA(PSP_CLASSIMAGELIST_DATA, PCSTR, PVOID);
BOOL SetupDiGetClassImageListExW(PSP_CLASSIMAGELIST_DATA, PCWSTR, PVOID);
BOOL SetupDiGetClassInstallParamsA(HDEVINFO, PSP_DEVINFO_DATA, PSP_CLASSINSTALL_HEADER, DWORD, PDWORD);
BOOL SetupDiGetClassInstallParamsW(HDEVINFO, PSP_DEVINFO_DATA, PSP_CLASSINSTALL_HEADER, DWORD, PDWORD);
BOOL SetupDiGetClassRegistryPropertyA(LPGUID, DWORD, PDWORD, PBYTE, DWORD, PDWORD, PCSTR, PVOID);
BOOL SetupDiGetClassRegistryPropertyW(LPGUID, DWORD, PDWORD, PBYTE, DWORD, PDWORD, PCWSTR, PVOID);
BOOL SetupDiGetDeviceInfoListClass(HDEVINFO, LPGUID);
BOOL SetupDiGetDeviceInfoListDetailA(HDEVINFO, PSP_DEVINFO_LIST_DETAIL_DATA_A);
BOOL SetupDiGetDeviceInfoListDetailW(HDEVINFO, PSP_DEVINFO_LIST_DETAIL_DATA_W);
BOOL SetupDiGetDeviceInstallParamsA(HDEVINFO, PSP_DEVINFO_DATA, PSP_DEVINSTALL_PARAMS_A);
BOOL SetupDiGetDeviceInstallParamsW(HDEVINFO, PSP_DEVINFO_DATA, PSP_DEVINSTALL_PARAMS_W);
BOOL SetupDiGetDeviceInstanceIdA(HDEVINFO, PSP_DEVINFO_DATA, PSTR, DWORD, PDWORD);
BOOL SetupDiGetDeviceInstanceIdW(HDEVINFO, PSP_DEVINFO_DATA, PWSTR, DWORD, PDWORD);
BOOL SetupDiGetDeviceInterfaceAlias(HDEVINFO, PSP_DEVICE_INTERFACE_DATA, const(GUID)*, PSP_DEVICE_INTERFACE_DATA);
BOOL SetupDiGetDeviceInterfaceDetailA(HDEVINFO, PSP_DEVICE_INTERFACE_DATA, PSP_DEVICE_INTERFACE_DETAIL_DATA_A, DWORD, PDWORD, PSP_DEVINFO_DATA);
BOOL SetupDiGetDeviceInterfaceDetailW(HDEVINFO, PSP_DEVICE_INTERFACE_DATA, PSP_DEVICE_INTERFACE_DETAIL_DATA_W, DWORD, PDWORD, PSP_DEVINFO_DATA);
BOOL SetupDiGetDeviceRegistryPropertyA(HDEVINFO, PSP_DEVINFO_DATA, DWORD, PDWORD, PBYTE, DWORD, PDWORD);
BOOL SetupDiGetDeviceRegistryPropertyW(HDEVINFO, PSP_DEVINFO_DATA, DWORD, PDWORD, PBYTE, DWORD, PDWORD);
BOOL SetupDiGetDriverInfoDetailA(HDEVINFO, PSP_DEVINFO_DATA, PSP_DRVINFO_DATA_A, PSP_DRVINFO_DETAIL_DATA_A, DWORD, PDWORD);
BOOL SetupDiGetDriverInfoDetailW(HDEVINFO, PSP_DEVINFO_DATA, PSP_DRVINFO_DATA_W, PSP_DRVINFO_DETAIL_DATA_W, DWORD, PDWORD);
BOOL SetupDiGetDriverInstallParamsA(HDEVINFO, PSP_DEVINFO_DATA, PSP_DRVINFO_DATA_A, PSP_DRVINSTALL_PARAMS);
BOOL SetupDiGetDriverInstallParamsW(HDEVINFO, PSP_DEVINFO_DATA, PSP_DRVINFO_DATA_W, PSP_DRVINSTALL_PARAMS);
BOOL SetupDiGetHwProfileFriendlyNameA(DWORD, PSTR, DWORD, PDWORD);
BOOL SetupDiGetHwProfileFriendlyNameExA(DWORD, PSTR, DWORD, PDWORD, PCSTR, PVOID);
BOOL SetupDiGetHwProfileFriendlyNameExW(DWORD, PWSTR, DWORD, PDWORD, PCWSTR, PVOID);
BOOL SetupDiGetHwProfileFriendlyNameW(DWORD, PWSTR, DWORD, PDWORD);
BOOL SetupDiGetHwProfileList(PDWORD, DWORD, PDWORD, PDWORD);
BOOL SetupDiGetHwProfileListExA(PDWORD, DWORD, PDWORD, PDWORD, PCSTR, PVOID);
BOOL SetupDiGetHwProfileListExW(PDWORD, DWORD, PDWORD, PDWORD, PCWSTR, PVOID);
BOOL SetupDiGetINFClassA(PCSTR, LPGUID, PSTR, DWORD, PDWORD);
BOOL SetupDiGetINFClassW(PCWSTR, LPGUID, PWSTR, DWORD, PDWORD);
BOOL SetupDiGetSelectedDevice(HDEVINFO, PSP_DEVINFO_DATA);
BOOL SetupDiGetSelectedDriverA(HDEVINFO, PSP_DEVINFO_DATA, PSP_DRVINFO_DATA_A);
BOOL SetupDiGetSelectedDriverW(HDEVINFO, PSP_DEVINFO_DATA, PSP_DRVINFO_DATA_W);
HPROPSHEETPAGE SetupDiGetWizardage(HDEVINFO, PSP_DEVINFO_DATA, PSP_INSTALLWIZARD_DATA, DWORD, DWORD);
BOOL SetupDiInstallClassA(HWND, PCSTR, DWORD, HSPFILEQ);
BOOL SetupDiInstallClassW(HWND, PCWSTR, DWORD, HSPFILEQ);
BOOL SetupDiInstallClassExA(HWND, PCSTR, DWORD, HSPFILEQ, const(GUID)*, PVOID, PVOID);
BOOL SetupDiInstallClassExW(HWND, PCWSTR, DWORD, HSPFILEQ, const(GUID)*, PVOID, PVOID);
BOOL SetupDiInstallDevice(HDEVINFO, PSP_DEVINFO_DATA);
BOOL SetupDiInstallDeviceInterfaces(HDEVINFO, PSP_DEVINFO_DATA);
BOOL SetupDiInstallDriverFiles(HDEVINFO, PSP_DEVINFO_DATA);
BOOL SetupDiLoadClassIcon(const(GUID)*, HICON*, PINT);
BOOL SetupDiMoveDuplicateDevice(HDEVINFO, PSP_DEVINFO_DATA);
HKEY SetupDiOpenClassRegKey(const(GUID)*, REGSAM);
HKEY SetupDiOpenClassRegKeyExA(const(GUID)*, REGSAM, DWORD, PCSTR, PVOID);
HKEY SetupDiOpenClassRegKeyExW(const(GUID)*, REGSAM, DWORD, PCWSTR, PVOID);
BOOL SetupDiOpenDeviceInfoA(HDEVINFO, PCSTR, HWND, DWORD, PSP_DEVINFO_DATA);
BOOL SetupDiOpenDeviceInfoW(HDEVINFO, PCWSTR, HWND, DWORD, PSP_DEVINFO_DATA);
BOOL SetupDiOpenDeviceInterfaceA(HDEVINFO, PCSTR, DWORD, PSP_DEVICE_INTERFACE_DATA);
BOOL SetupDiOpenDeviceInterfaceW(HDEVINFO, PCWSTR, DWORD, PSP_DEVICE_INTERFACE_DATA);
HKEY SetupDiOpenDeviceInterfaceRegKey(HDEVINFO, PSP_DEVICE_INTERFACE_DATA, DWORD, REGSAM);
HKEY SetupDiOpenDevRegKey(HDEVINFO, PSP_DEVINFO_DATA, DWORD, DWORD, DWORD, REGSAM);
BOOL SetupDiRegisterCoDeviceInstallers(HDEVINFO, PSP_DEVINFO_DATA);
BOOL SetupDiRegisterDeviceInfo(HDEVINFO, PSP_DEVINFO_DATA, DWORD, PSP_DETSIG_CMPPROC, PVOID, PSP_DEVINFO_DATA);
BOOL SetupDiRemoveDevice(HDEVINFO, PSP_DEVINFO_DATA);
BOOL SetupDiRemoveDeviceInterface(HDEVINFO, PSP_DEVICE_INTERFACE_DATA);
BOOL SetupDiSelectBestCompatDrv(HDEVINFO, PSP_DEVINFO_DATA);
BOOL SetupDiSelectDevice(HDEVINFO, PSP_DEVINFO_DATA);
BOOL SetupDiSelectOEMDrv(HWND, HDEVINFO, PSP_DEVINFO_DATA);
BOOL SetupDiSetClassInstallParamsA(HDEVINFO, PSP_DEVINFO_DATA, PSP_CLASSINSTALL_HEADER, DWORD);
BOOL SetupDiSetClassInstallParamsW(HDEVINFO, PSP_DEVINFO_DATA, PSP_CLASSINSTALL_HEADER, DWORD);
BOOL SetupDiSetClassRegistryPropertyA(LPGUID, DWORD, const(BYTE)*, DWORD, PCSTR, PVOID);
BOOL SetupDiSetClassRegistryPropertyW(LPGUID, DWORD, const(BYTE)*, DWORD, PCWSTR, PVOID);
BOOL SetupDiSetDeviceInstallParamsA(HDEVINFO, PSP_DEVINFO_DATA, PSP_DEVINSTALL_PARAMS_A);
BOOL SetupDiSetDeviceInstallParamsW(HDEVINFO, PSP_DEVINFO_DATA, PSP_DEVINSTALL_PARAMS_W);
BOOL SetupDiSetDeviceRegistryPropertyA(HDEVINFO, PSP_DEVINFO_DATA, DWORD, const(BYTE)*, DWORD);
BOOL SetupDiSetDeviceRegistryPropertyW(HDEVINFO, PSP_DEVINFO_DATA, DWORD, const(BYTE)*, DWORD);
BOOL SetupDiSetDriverInstallParamsA(HDEVINFO, PSP_DEVINFO_DATA, PSP_DRVINFO_DATA_A, PSP_DRVINSTALL_PARAMS);
BOOL SetupDiSetDriverInstallParamsW(HDEVINFO, PSP_DEVINFO_DATA, PSP_DRVINFO_DATA_W, PSP_DRVINSTALL_PARAMS);
BOOL SetupDiSetSelectedDevice(HDEVINFO, PSP_DEVINFO_DATA);
BOOL SetupDiSetSelectedDriverA(HDEVINFO, PSP_DEVINFO_DATA, PSP_DRVINFO_DATA_A);
BOOL SetupDiSetSelectedDriverW(HDEVINFO, PSP_DEVINFO_DATA, PSP_DRVINFO_DATA_W);
BOOL SetupDiUnremoveDevice(HDEVINFO, PSP_DEVINFO_DATA);
HDSKSPC SetupDuplicateDiskSpaceListA(HDSKSPC, PVOID, DWORD, UINT);
HDSKSPC SetupDuplicateDiskSpaceListW(HDSKSPC, PVOID, DWORD, UINT);
BOOL SetupFindFirstLineA(HINF, PCSTR, PCSTR, PINFCONTEXT);
BOOL SetupFindFirstLineW(HINF, PCWSTR, PCWSTR, PINFCONTEXT);
BOOL SetupFindNextLine(PINFCONTEXT, PINFCONTEXT);
BOOL SetupFindNextMatchLineA(PINFCONTEXT, PCSTR, PINFCONTEXT);
BOOL SetupFindNextMatchLineW(PINFCONTEXT, PCWSTR, PINFCONTEXT);
BOOL SetupFreeA(PCSTR**, UINT);
BOOL SetupFreeW(PCWSTR**, UINT);
BOOL SetupGetBackupInformationA(HSPFILEQ, PSP_BACKUP_QUEUE_PARAMS_A);
BOOL SetupGetBackupInformationW(HSPFILEQ, PSP_BACKUP_QUEUE_PARAMS_W);
BOOL SetupGetBinaryField(PINFCONTEXT, DWORD, PBYTE, DWORD, LPDWORD);
DWORD SetupGetFieldCount(PINFCONTEXT);
DWORD SetupGetFileCompressionInfoA(PCSTR, PSTR*, PDWORD, PDWORD, PUINT);
DWORD SetupGetFileCompressionInfoW(PCWSTR, PWSTR*, PDWORD, PDWORD, PUINT);
BOOL SetupGetInfFileListA(PCSTR, DWORD, PSTR, DWORD, PDWORD);
BOOL SetupGetInfFileListW(PCWSTR, DWORD, PWSTR, DWORD, PDWORD);
BOOL SetupGetInfInformationA(LPCVOID, DWORD, PSP_INF_INFORMATION, DWORD, PDWORD);
BOOL SetupGetInfInformationW(LPCVOID, DWORD, PSP_INF_INFORMATION, DWORD, PDWORD);
BOOL SetupGetIntField(PINFCONTEXT, DWORD, PINT);
BOOL SetupGetLineByIndexA(HINF, PCSTR, DWORD, PINFCONTEXT);
BOOL SetupGetLineByIndexW(HINF, PCWSTR, DWORD, PINFCONTEXT);
LONG SetupGetLineCountA(HINF, PCSTR);
LONG SetupGetLineCountW(HINF, PCWSTR);
BOOL SetupGetLineTextA(PINFCONTEXT, HINF, PCSTR, PCSTR, PSTR, DWORD, PDWORD);
BOOL SetupGetLineTextW(PINFCONTEXT, HINF, PCWSTR, PCWSTR, PWSTR, DWORD, PDWORD);
BOOL SetupGetMultiSzFieldA(PINFCONTEXT, DWORD, PSTR, DWORD, LPDWORD);
BOOL SetupGetMultiSzFieldW(PINFCONTEXT, DWORD, PWSTR, DWORD, LPDWORD);
BOOL SetupGetSourceFileLocationA(HINF, PINFCONTEXT, PCSTR, PUINT, PSTR, DWORD, PDWORD);
BOOL SetupGetSourceFileLocationW(HINF, PINFCONTEXT, PCWSTR, PUINT, PWSTR, DWORD, PDWORD);
BOOL SetupGetSourceFileSizeA(HINF, PINFCONTEXT, PCSTR, PCSTR, PDWORD, UINT);
BOOL SetupGetSourceFileSizeW(HINF, PINFCONTEXT, PCWSTR, PCWSTR, PDWORD, UINT);
BOOL SetupGetSourceInfoA(HINF, UINT, UINT, PSTR, DWORD, PDWORD);
BOOL SetupGetSourceInfoW(HINF, UINT, UINT, PWSTR, DWORD, PDWORD);
BOOL SetupGetStringFieldA(PINFCONTEXT, DWORD, PSTR, DWORD, PDWORD);
BOOL SetupGetStringFieldW(PINFCONTEXT, DWORD, PWSTR, DWORD, PDWORD);
BOOL SetupGetTargetPathA(HINF, PINFCONTEXT, PCSTR, PSTR, DWORD, PDWORD);
BOOL SetupGetTargetPathW(HINF, PINFCONTEXT, PCWSTR, PWSTR, DWORD, PDWORD);
PVOID SetupInitDefaultQueueCallback(HWND);
PVOID SetupInitDefaultQueueCallbackEx(HWND, HWND, UINT, DWORD, PVOID);
HSPFILELOG SetupInitializeFileLogA(PCSTR, DWORD);
HSPFILELOG SetupInitializeFileLogW(PCWSTR, DWORD);
BOOL SetupInstallFileA(HINF, PINFCONTEXT, PCSTR, PCSTR, PCSTR, DWORD, PSP_FILE_CALLBACK_A, PVOID);
BOOL SetupInstallFileW(HINF, PINFCONTEXT, PCWSTR, PCWSTR, PCWSTR, DWORD, PSP_FILE_CALLBACK_W, PVOID);
BOOL SetupInstallFileExA(HINF, PINFCONTEXT, PCSTR, PCSTR, PCSTR, DWORD, PSP_FILE_CALLBACK_A, PVOID, PBOOL);
BOOL SetupInstallFileExW(HINF, PINFCONTEXT, PCWSTR, PCWSTR, PCWSTR, DWORD, PSP_FILE_CALLBACK_W, PVOID, PBOOL);
BOOL SetupInstallFilesFromInfSectionA(HINF, HINF, HSPFILEQ, PCSTR, PCSTR, UINT);
BOOL SetupInstallFilesFromInfSectionW(HINF, HINF, HSPFILEQ, PCWSTR, PCWSTR, UINT);
BOOL SetupInstallFromInfSectionA(HWND, HINF, PCSTR, UINT, HKEY, PCSTR, UINT, PSP_FILE_CALLBACK_A, PVOID, HDEVINFO, PSP_DEVINFO_DATA);
BOOL SetupInstallFromInfSectionW(HWND, HINF, PCWSTR, UINT, HKEY, PCWSTR, UINT, PSP_FILE_CALLBACK_W, PVOID, HDEVINFO, PSP_DEVINFO_DATA);
BOOL SetupInstallServicesFromInfSectionA(HINF, PCSTR, DWORD);
BOOL SetupInstallServicesFromInfSectionW(HINF, PCWSTR, DWORD);
BOOL SetupInstallServicesFromInfSectionExA(HINF, PCSTR, DWORD, HDEVINFO, PSP_DEVINFO_DATA, PVOID, PVOID);
BOOL SetupInstallServicesFromInfSectionExW(HINF, PCWSTR, DWORD, HDEVINFO, PSP_DEVINFO_DATA, PVOID, PVOID);
BOOL SetupIterateCabinetA(PCSTR, DWORD, PSP_FILE_CALLBACK_A, PVOID);
BOOL SetupIterateCabinetW(PCWSTR, DWORD, PSP_FILE_CALLBACK_W, PVOID);
BOOL SetupLogErrorA(LPCSTR, LogSeverity);
BOOL SetupLogErrorW(LPCWSTR, LogSeverity);
BOOL SetupLogFileA(HSPFILELOG, PCSTR, PCSTR, PCSTR, DWORD, PCSTR, PCSTR, PCSTR, DWORD);
BOOL SetupLogFileW(HSPFILELOG, PCWSTR, PCWSTR, PCWSTR, DWORD, PCWSTR, PCWSTR, PCWSTR, DWORD);
BOOL SetupOpenAppendInfFileA(PCSTR, HINF, PUINT);
BOOL SetupOpenAppendInfFileW(PCWSTR, HINF, PUINT);
HSPFILEQ SetupOpenFileQueue();
HINF SetupOpenInfFileA(PCSTR, PCSTR, DWORD, PUINT);
HINF SetupOpenInfFileW(PCWSTR, PCWSTR, DWORD, PUINT);
BOOL SetupOpenLog(BOOL);
HINF SetupOpenMasterInf();
UINT SetupPromptForDiskA(HWND, PCSTR, PCSTR, PCSTR, PCSTR, PCSTR, DWORD, PSTR, DWORD, PDWORD);
UINT SetupPromptForDiskW(HWND, PCWSTR, PCWSTR, PCWSTR, PCWSTR, PCWSTR, DWORD, PWSTR, DWORD, PDWORD);
INT SetupPromptReboot(HSPFILEQ, HWND, BOOL);
BOOL SetupQueryA(DWORD, PCSTR**, PUINT);
BOOL SetupQueryW(DWORD, PCWSTR**, PUINT);
BOOL SetupQueryDrivesInDiskSpaceListA(HDSKSPC, PSTR, DWORD, PDWORD);
BOOL SetupQueryDrivesInDiskSpaceListW(HDSKSPC, PWSTR, DWORD, PDWORD);
BOOL SetupQueryFileLogA(HSPFILELOG, PCSTR, PCSTR, SetupFileLogInfo, PSTR, DWORD, PDWORD);
BOOL SetupQueryFileLogW(HSPFILELOG, PCWSTR, PCWSTR, SetupFileLogInfo, PWSTR, DWORD, PDWORD);
BOOL SetupQueryInfFileInformationA(PSP_INF_INFORMATION, UINT, PSTR, DWORD, PDWORD);
BOOL SetupQueryInfFileInformationW(PSP_INF_INFORMATION, UINT, PWSTR, DWORD, PDWORD);
BOOL SetupQueryInfOriginalFileInformationA(PSP_INF_INFORMATION, UINT, PSP_ALTPLATFORM_INFO, PSP_ORIGINAL_FILE_INFO_A);
BOOL SetupQueryInfOriginalFileInformationW(PSP_INF_INFORMATION, UINT, PSP_ALTPLATFORM_INFO, PSP_ORIGINAL_FILE_INFO_W);
BOOL SetupQueryInfVersionInformationA(PSP_INF_INFORMATION, UINT, PSTR, PSTR, DWORD, PDWORD);
BOOL SetupQueryInfVersionInformationW(PSP_INF_INFORMATION, UINT, PCWSTR, PWSTR, DWORD, PDWORD);
BOOL SetupQuerySpaceRequiredOnDriveA(HDSKSPC, PCSTR, LONGLONG*, PVOID, UINT);
BOOL SetupQuerySpaceRequiredOnDriveW(HDSKSPC, PCWSTR, LONGLONG*, PVOID, UINT);
BOOL SetupQueueCopyA(HSPFILEQ, PCSTR, PCSTR, PCSTR, PCSTR, PCSTR, PCSTR, PCSTR, DWORD);
BOOL SetupQueueCopyW(HSPFILEQ, PCWSTR, PCWSTR, PCWSTR, PCWSTR, PCWSTR, PCWSTR, PCWSTR, DWORD);
BOOL SetupQueueCopyIndirectA(PSP_FILE_COPY_PARAMS_A);
BOOL SetupQueueCopyIndirectW(PSP_FILE_COPY_PARAMS_W);
BOOL SetupQueueCopySectionA(HSPFILEQ, PCSTR, HINF, HINF, PCSTR, DWORD);
BOOL SetupQueueCopySectionW(HSPFILEQ, PCWSTR, HINF, HINF, PCWSTR, DWORD);
BOOL SetupQueueDefaultCopyA(HSPFILEQ, HINF, PCSTR, PCSTR, PCSTR, DWORD);
BOOL SetupQueueDefaultCopyW(HSPFILEQ, HINF, PCWSTR, PCWSTR, PCWSTR, DWORD);
BOOL SetupQueueDeleteA(HSPFILEQ, PCSTR, PCSTR);
BOOL SetupQueueDeleteW(HSPFILEQ, PCWSTR, PCWSTR);
BOOL SetupQueueDeleteSectionA(HSPFILEQ, HINF, HINF, PCSTR);
BOOL SetupQueueDeleteSectionW(HSPFILEQ, HINF, HINF, PCWSTR);
BOOL SetupQueueRenameA(HSPFILEQ, PCSTR, PCSTR, PCSTR, PCSTR);
BOOL SetupQueueRenameW(HSPFILEQ, PCWSTR, PCWSTR, PCWSTR, PCWSTR);
BOOL SetupQueueRenameSectionA(HSPFILEQ, HINF, HINF, PCSTR);
BOOL SetupQueueRenameSectionW(HSPFILEQ, HINF, HINF, PCWSTR);
BOOL SetupRemoveFileLogEntryA(HSPFILELOG, PCSTR, PCSTR);
BOOL SetupRemoveFileLogEntryW(HSPFILELOG, PCWSTR, PCWSTR);
BOOL SetupRemoveFromDiskSpaceListA(HDSKSPC, PCSTR, UINT, PVOID, UINT);
BOOL SetupRemoveFromDiskSpaceListW(HDSKSPC, PCWSTR, UINT, PVOID, UINT);
BOOL SetupRemoveFromSourceListA(DWORD, PCSTR);
BOOL SetupRemoveFromSourceListW(DWORD, PCWSTR);
BOOL SetupRemoveInstallSectionFromDiskSpaceListA(HDSKSPC, HINF, HINF, PCSTR, PVOID, UINT);
BOOL SetupRemoveInstallSectionFromDiskSpaceListW(HDSKSPC, HINF, HINF, PCWSTR, PVOID, UINT);
BOOL SetupRemoveSectionFromDiskSpaceListA(HDSKSPC, HINF, HINF, PCSTR, UINT, PVOID, UINT);
BOOL SetupRemoveSectionFromDiskSpaceListW(HDSKSPC, HINF, HINF, PCWSTR, UINT, PVOID, UINT);
UINT SetupRenameErrorA(HWND, PCSTR, PCSTR, PCSTR, UINT, DWORD);
UINT SetupRenameErrorW(HWND, PCWSTR, PCWSTR, PCWSTR, UINT, DWORD);
BOOL SetupScanFileQueueA(HSPFILEQ, DWORD, HWND, PSP_FILE_CALLBACK_A, PVOID, PDWORD);
BOOL SetupScanFileQueueW(HSPFILEQ, DWORD, HWND, PSP_FILE_CALLBACK_W, PVOID, PDWORD);
BOOL SetupSetDirectoryIdA(HINF, DWORD, PCSTR);
BOOL SetupSetDirectoryIdW(HINF, DWORD, PCWSTR);
BOOL SetupSetDirectoryIdExA(HINF, DWORD, PCSTR, DWORD, DWORD, PVOID);
BOOL SetupSetDirectoryIdExW(HINF, DWORD, PCWSTR, DWORD, DWORD, PVOID);
BOOL SetupSetFileQueueAlternatePlatformA(HSPFILEQ, PSP_ALTPLATFORM_INFO, PCSTR);
BOOL SetupSetFileQueueAlternatePlatformW(HSPFILEQ, PSP_ALTPLATFORM_INFO, PCWSTR);
BOOL SetupSetPlatformPathOverrideA(PCSTR);
BOOL SetupSetPlatformPathOverrideW(PCWSTR);
BOOL SetupSetSourceListA(DWORD, PCSTR*, UINT);
BOOL SetupSetSourceListW(DWORD, PCWSTR*, UINT);
VOID SetupTermDefaultQueueCallback(PVOID);
BOOL SetupTerminateFileLog(HSPFILELOG);
}
deprecated {
alias SetupDiCreateDeviceInterfaceW SetupDiCreateInterfaceDeviceW;
alias SetupDiCreateDeviceInterfaceRegKeyW SetupDiCreateInterfaceDeviceRegKeyW;
alias SetupDiOpenDeviceInterfaceW SetupDiOpenInterfaceDeviceW;
alias SetupDiGetDeviceInterfaceDetailW SetupDiGetInterfaceDeviceDetailW;
alias SetupDiCreateDeviceInterfaceA SetupDiCreateInterfaceDeviceA;
alias SetupDiCreateDeviceInterfaceRegKeyA SetupDiCreateInterfaceDeviceRegKeyA;
alias SetupDiOpenDeviceInterfaceA SetupDiOpenInterfaceDeviceA;
alias SetupDiGetDeviceInterfaceDetailA SetupDiGetInterfaceDeviceDetailA;
}
version (Unicode) {
alias PSP_FILE_CALLBACK_W PSP_FILE_CALLBACK;
alias SetupAddInstallSectionToDiskSpaceListW SetupAddInstallSectionToDiskSpaceList;
alias SetupAddSectionToDiskSpaceListW SetupAddSectionToDiskSpaceList;
alias SetupAddToDiskSpaceListW SetupAddToDiskSpaceList;
alias SetupAddToSourceListW SetupAddToSourceList;
alias SetupAdjustDiskSpaceListW SetupAdjustDiskSpaceList;
alias SetupBackupErrorW SetupBackupError;
alias SetupCommitFileQueueW SetupCommitFileQueue;
alias SetupCopyErrorW SetupCopyError;
alias SetupCopyOEMInfW SetupCopyOEMInf;
alias SetupCreateDiskSpaceListW SetupCreateDiskSpaceList;
alias SetupDecompressOrCopyFileW SetupDecompressOrCopyFile;
alias SetupDefaultQueueCallbackW SetupDefaultQueueCallback;
alias SetupDeleteErrorW SetupDeleteError;
alias SetupDiBuildClassInfoListExW SetupDiBuildClassInfoListEx;
alias SetupDiClassGuidsFromNameExW SetupDiClassGuidsFromNameEx;
alias SetupDiClassGuidsFromNameW SetupDiClassGuidsFromName;
alias SetupDiClassNameFromGuidExW SetupDiClassNameFromGuidEx;
alias SetupDiClassNameFromGuidW SetupDiClassNameFromGuid;
alias SetupDiCreateDeviceInfoListExW SetupDiCreateDeviceInfoListEx;
alias SetupDiCreateDeviceInfoW SetupDiCreateDeviceInfo;
alias SetupDiCreateDeviceInterfaceRegKeyW SetupDiCreateDeviceInterfaceRegKey;
deprecated alias SetupDiCreateDeviceInterfaceRegKeyW SetupDiCreateInterfaceDeviceRegKey;
alias SetupDiCreateDeviceInterfaceW SetupDiCreateDeviceInterface;
deprecated alias SetupDiCreateDeviceInterfaceW SetupDiCreateInterfaceDevice;
alias SetupDiCreateDevRegKeyW SetupDiCreateDevRegKey;
alias SetupDiEnumDriverInfoW SetupDiEnumDriverInfo;
alias SetupDiGetActualSectionToInstallW SetupDiGetActualSectionToInstall;
alias SetupDiGetClassDescriptionExW SetupDiGetClassDescriptionEx;
alias SetupDiGetClassDescriptionW SetupDiGetClassDescription;
alias SetupDiGetClassDevPropertySheetsW SetupDiGetClassDevPropertySheets;
alias SetupDiGetClassDevsExW SetupDiGetClassDevsEx;
alias SetupDiGetClassDevsW SetupDiGetClassDevs;
alias SetupDiGetClassImageListExW SetupDiGetClassImageListEx;
alias SetupDiGetClassInstallParamsW SetupDiGetClassInstallParams;
alias SetupDiGetClassRegistryPropertyW SetupDiGetClassRegistryProperty;
alias SetupDiGetDeviceInfoListDetailW SetupDiGetDeviceInfoListDetail;
alias SetupDiGetDeviceInstallParamsW SetupDiGetDeviceInstallParams;
alias SetupDiGetDeviceInstanceIdW SetupDiGetDeviceInstanceId;
alias SetupDiGetDeviceInterfaceDetailW SetupDiGetDeviceInterfaceDetail;
deprecated alias SetupDiGetDeviceInterfaceDetailW SetupDiGetInterfaceDeviceDetail;
alias SetupDiGetDeviceRegistryPropertyW SetupDiGetDeviceRegistryProperty;
alias SetupDiGetDriverInfoDetailW SetupDiGetDriverInfoDetail;
alias SetupDiGetDriverInstallParamsW SetupDiGetDriverInstallParams;
alias SetupDiGetHwProfileFriendlyNameExW SetupDiGetHwProfileFriendlyNameEx;
alias SetupDiGetHwProfileFriendlyNameW SetupDiGetHwProfileFriendlyName;
alias SetupDiGetHwProfileListExW SetupDiGetHwProfileListEx;
alias SetupDiGetINFClassW SetupDiGetINFClass;
alias SetupDiGetSelectedDriverW SetupDiGetSelectedDriver;
alias SetupDiInstallClassExW SetupDiInstallClassEx;
alias SetupDiInstallClassW SetupDiInstallClass;
alias SetupDiOpenClassRegKeyExW SetupDiOpenClassRegKeyEx;
alias SetupDiOpenDeviceInfoW SetupDiOpenDeviceInfo;
alias SetupDiOpenDeviceInterfaceW SetupDiOpenDeviceInterface;
deprecated alias SetupDiOpenDeviceInterfaceW SetupDiOpenInterfaceDevice;
alias SetupDiSetClassInstallParamsW SetupDiSetClassInstallParams;
alias SetupDiSetClassRegistryPropertyW SetupDiSetClassRegistryProperty;
alias SetupDiSetDeviceInstallParamsW SetupDiSetDeviceInstallParams;
alias SetupDiSetDeviceRegistryPropertyW SetupDiSetDeviceRegistryProperty;
alias SetupDiSetDriverInstallParamsW SetupDiSetDriverInstallParams;
alias SetupDiSetSelectedDriverW SetupDiSetSelectedDriver;
alias SetupDuplicateDiskSpaceListW SetupDuplicateDiskSpaceList;
alias SetupFindFirstLineW SetupFindFirstLine;
alias SetupFindNextMatchLineW SetupFindNextMatchLine;
alias SetupFreeSourceListW SetupFreeSourceList;
alias SetupGetBackupInformationW SetupGetBackupInformation;
alias SetupGetFileCompressionInfoW SetupGetFileCompressionInfo;
alias SetupGetInfFileListW SetupGetInfFileList;
alias SetupGetInfInformationW SetupGetInfInformation;
alias SetupGetLineByIndexW SetupGetLineByIndex;
alias SetupGetLineCountW SetupGetLineCount;
alias SetupGetLineTextW SetupGetLineText;
alias SetupGetMultiSzFieldW SetupGetMultiSzField;
alias SetupGetSourceFileLocationW SetupGetSourceFileLocation;
alias SetupGetSourceFileSizeW SetupGetSourceFileSize;
alias SetupGetSourceInfoW SetupGetSourceInfo;
alias SetupGetStringFieldW SetupGetStringField;
alias SetupGetTargetPathW SetupGetTargetPath;
alias SetupInitializeFileLogW SetupInitializeFileLog;
alias SetupInstallFileExW SetupInstallFileEx;
alias SetupInstallFilesFromInfSectionW SetupInstallFilesFromInfSection;
alias SetupInstallFileW SetupInstallFile;
alias SetupInstallFromInfSectionW SetupInstallFromInfSection;
alias SetupInstallServicesFromInfSectionExW SetupInstallServicesFromInfSectionEx;
alias SetupInstallServicesFromInfSectionW SetupInstallServicesFromInfSection;
alias SetupIterateCabinetW SetupIterateCabinet;
alias SetupLogErrorW SetupLogError;
alias SetupLogFileW SetupLogFile;
alias SetupOpenAppendInfFileW SetupOpenAppendInfFile;
alias SetupOpenInfFileW SetupOpenInfFile;
alias SetupPromptForDiskW SetupPromptForDisk;
alias SetupQueryDrivesInDiskSpaceListW SetupQueryDrivesInDiskSpaceList;
alias SetupQueryFileLogW SetupQueryFileLog;
alias SetupQueryInfFileInformationW SetupQueryInfFileInformation;
alias SetupQueryInfOriginalFileInformationW SetupQueryInfOriginalFileInformation;
alias SetupQueryInfVersionInformationW SetupQueryInfVersionInformation;
alias SetupQuerySourceListW SetupQuerySourceList;
alias SetupQuerySpaceRequiredOnDriveW SetupQuerySpaceRequiredOnDrive;
alias SetupQueueCopyIndirectW SetupQueueCopyIndirect;
alias SetupQueueCopySectionW SetupQueueCopySection;
alias SetupQueueCopyW SetupQueueCopy;
alias SetupQueueDefaultCopyW SetupQueueDefaultCopy;
alias SetupQueueDeleteSectionW SetupQueueDeleteSection;
alias SetupQueueDeleteW SetupQueueDelete;
alias SetupQueueRenameSectionW SetupQueueRenameSection;
alias SetupQueueRenameW SetupQueueRename;
alias SetupRemoveFileLogEntryW SetupRemoveFileLogEntry;
alias SetupRemoveFromDiskSpaceListW SetupRemoveFromDiskSpaceList;
alias SetupRemoveFromSourceListW SetupRemoveFromSourceList;
alias SetupRemoveInstallSectionFromDiskSpaceListW SetupRemoveInstallSectionFromDiskSpaceList;
alias SetupRemoveSectionFromDiskSpaceListW SetupRemoveSectionFromDiskSpaceList;
alias SetupRenameErrorW SetupRenameError;
alias SetupScanFileQueueW SetupScanFileQueue;
alias SetupSetDirectoryIdExW SetupSetDirectoryIdEx;
alias SetupSetDirectoryIdW SetupSetDirectoryId;
alias SetupSetFileQueueAlternatePlatformW SetupSetFileQueueAlternatePlatform;
alias SetupSetPlatformPathOverrideW SetupSetPlatformPathOverride;
alias SetupSetSourceListW SetupSetSourceList;
} else {
alias PSP_FILE_CALLBACK_A PSP_FILE_CALLBACK;
alias SetupAddInstallSectionToDiskSpaceListA SetupAddInstallSectionToDiskSpaceList;
alias SetupAddSectionToDiskSpaceListA SetupAddSectionToDiskSpaceList;
alias SetupAddToDiskSpaceListA SetupAddToDiskSpaceList;
alias SetupAddToSourceListA SetupAddToSourceList;
alias SetupAdjustDiskSpaceListA SetupAdjustDiskSpaceList;
alias SetupBackupErrorA SetupBackupError;
alias SetupCommitFileQueueA SetupCommitFileQueue;
alias SetupCopyErrorA SetupCopyError;
alias SetupCopyOEMInfA SetupCopyOEMInf;
alias SetupCreateDiskSpaceListA SetupCreateDiskSpaceList;
alias SetupDecompressOrCopyFileA SetupDecompressOrCopyFile;
alias SetupDefaultQueueCallbackA SetupDefaultQueueCallback;
alias SetupDeleteErrorA SetupDeleteError;
alias SetupDiBuildClassInfoListExA SetupDiBuildClassInfoListEx;
alias SetupDiClassGuidsFromNameA SetupDiClassGuidsFromName;
alias SetupDiClassGuidsFromNameExA SetupDiClassGuidsFromNameEx;
alias SetupDiClassNameFromGuidA SetupDiClassNameFromGuid;
alias SetupDiClassNameFromGuidExA SetupDiClassNameFromGuidEx;
alias SetupDiCreateDeviceInfoA SetupDiCreateDeviceInfo;
alias SetupDiCreateDeviceInfoListExA SetupDiCreateDeviceInfoListEx;
alias SetupDiCreateDeviceInterfaceA SetupDiCreateDeviceInterface;
deprecated alias SetupDiCreateDeviceInterfaceA SetupDiCreateInterfaceDevice;
alias SetupDiCreateDeviceInterfaceRegKeyA SetupDiCreateDeviceInterfaceRegKey;
deprecated alias SetupDiCreateDeviceInterfaceRegKeyA SetupDiCreateInterfaceDeviceRegKey;
alias SetupDiCreateDevRegKeyA SetupDiCreateDevRegKey;
alias SetupDiDeleteDeviceInterfaceData SetupDiDeleteInterfaceDeviceData;
alias SetupDiEnumDriverInfoA SetupDiEnumDriverInfo;
alias SetupDiGetActualSectionToInstallA SetupDiGetActualSectionToInstall;
alias SetupDiGetClassDescriptionA SetupDiGetClassDescription;
alias SetupDiGetClassDescriptionExA SetupDiGetClassDescriptionEx;
alias SetupDiGetClassDevPropertySheetsA SetupDiGetClassDevPropertySheets;
alias SetupDiGetClassDevsA SetupDiGetClassDevs;
alias SetupDiGetClassDevsExA SetupDiGetClassDevsEx;
alias SetupDiGetClassImageListExA SetupDiGetClassImageListEx;
alias SetupDiGetClassInstallParamsA SetupDiGetClassInstallParams;
alias SetupDiGetClassRegistryPropertyA SetupDiGetClassRegistryProperty;
alias SetupDiGetDeviceInfoListDetailA SetupDiGetDeviceInfoListDetail;
alias SetupDiGetDeviceInstallParamsA SetupDiGetDeviceInstallParams;
alias SetupDiGetDeviceInstanceIdA SetupDiGetDeviceInstanceId;
alias SetupDiGetDeviceInterfaceDetailA SetupDiGetDeviceInterfaceDetail;
deprecated alias SetupDiGetDeviceInterfaceDetailA SetupDiGetInterfaceDeviceDetail;
alias SetupDiGetDeviceRegistryPropertyA SetupDiGetDeviceRegistryProperty;
alias SetupDiGetDriverInfoDetailA SetupDiGetDriverInfoDetail;
alias SetupDiGetDriverInstallParamsA SetupDiGetDriverInstallParams;
alias SetupDiGetHwProfileFriendlyNameA SetupDiGetHwProfileFriendlyName;
alias SetupDiGetHwProfileFriendlyNameExA SetupDiGetHwProfileFriendlyNameEx;
alias SetupDiGetHwProfileListExA SetupDiGetHwProfileListEx;
alias SetupDiGetINFClassA SetupDiGetINFClass;
alias SetupDiGetSelectedDriverA SetupDiGetSelectedDriver;
alias SetupDiInstallClassA SetupDiInstallClass;
alias SetupDiInstallClassExA SetupDiInstallClassEx;
alias SetupDiOpenClassRegKeyExA SetupDiOpenClassRegKeyEx;
alias SetupDiOpenDeviceInfoA SetupDiOpenDeviceInfo;
alias SetupDiOpenDeviceInterfaceA SetupDiOpenDeviceInterface;
deprecated alias SetupDiOpenDeviceInterfaceA SetupDiOpenInterfaceDevice;
alias SetupDiSetClassInstallParamsA SetupDiSetClassInstallParams;
alias SetupDiSetClassRegistryPropertyA SetupDiSetClassRegistryProperty;
alias SetupDiSetDeviceInstallParamsA SetupDiSetDeviceInstallParams;
alias SetupDiSetDeviceRegistryPropertyA SetupDiSetDeviceRegistryProperty;
alias SetupDiSetDriverInstallParamsA SetupDiSetDriverInstallParams;
alias SetupDiSetSelectedDriverA SetupDiSetSelectedDriver;
alias SetupDuplicateDiskSpaceListA SetupDuplicateDiskSpaceList;
alias SetupFindFirstLineA SetupFindFirstLine;
alias SetupFindNextMatchLineA SetupFindNextMatchLine;
alias SetupFreeSourceListA SetupFreeSourceList;
alias SetupGetBackupInformationA SetupGetBackupInformation;
alias SetupGetFileCompressionInfoA SetupGetFileCompressionInfo;
alias SetupGetInfFileListA SetupGetInfFileList;
alias SetupGetInfInformationA SetupGetInfInformation;
alias SetupGetLineByIndexA SetupGetLineByIndex;
alias SetupGetLineCountA SetupGetLineCount;
alias SetupGetLineTextA SetupGetLineText;
alias SetupGetMultiSzFieldA SetupGetMultiSzField;
alias SetupGetSourceFileLocationA SetupGetSourceFileLocation;
alias SetupGetSourceFileSizeA SetupGetSourceFileSize;
alias SetupGetSourceInfoA SetupGetSourceInfo;
alias SetupGetStringFieldA SetupGetStringField;
alias SetupGetTargetPathA SetupGetTargetPath;
alias SetupInitializeFileLogA SetupInitializeFileLog;
alias SetupInstallFileA SetupInstallFile;
alias SetupInstallFileExA SetupInstallFileEx;
alias SetupInstallFilesFromInfSectionA SetupInstallFilesFromInfSection;
alias SetupInstallFromInfSectionA SetupInstallFromInfSection;
alias SetupInstallServicesFromInfSectionA SetupInstallServicesFromInfSection;
alias SetupInstallServicesFromInfSectionExA SetupInstallServicesFromInfSectionEx;
alias SetupIterateCabinetA SetupIterateCabinet;
alias SetupLogErrorA SetupLogError;
alias SetupLogFileA SetupLogFile;
alias SetupOpenAppendInfFileA SetupOpenAppendInfFile;
alias SetupOpenInfFileA SetupOpenInfFile;
alias SetupPromptForDiskA SetupPromptForDisk;
alias SetupQueryDrivesInDiskSpaceListA SetupQueryDrivesInDiskSpaceList;
alias SetupQueryFileLogA SetupQueryFileLog;
alias SetupQueryInfFileInformationA SetupQueryInfFileInformation;
alias SetupQueryInfOriginalFileInformationA SetupQueryInfOriginalFileInformation;
alias SetupQueryInfVersionInformationA SetupQueryInfVersionInformation;
alias SetupQuerySourceListA SetupQuerySourceList;
alias SetupQuerySpaceRequiredOnDriveA SetupQuerySpaceRequiredOnDrive;
alias SetupQueueCopyA SetupQueueCopy;
alias SetupQueueCopyIndirectA SetupQueueCopyIndirect;
alias SetupQueueCopySectionA SetupQueueCopySection;
alias SetupQueueDefaultCopyA SetupQueueDefaultCopy;
alias SetupQueueDeleteA SetupQueueDelete;
alias SetupQueueDeleteSectionA SetupQueueDeleteSection;
alias SetupQueueRenameA SetupQueueRename;
alias SetupQueueRenameSectionA SetupQueueRenameSection;
alias SetupRemoveFileLogEntryA SetupRemoveFileLogEntry;
alias SetupRemoveFromDiskSpaceListA SetupRemoveFromDiskSpaceList;
alias SetupRemoveFromSourceListA SetupRemoveFromSourceList;
alias SetupRemoveInstallSectionFromDiskSpaceListA SetupRemoveInstallSectionFromDiskSpaceList;
alias SetupRemoveSectionFromDiskSpaceListA SetupRemoveSectionFromDiskSpaceList;
alias SetupRenameErrorA SetupRenameError;
alias SetupScanFileQueueA SetupScanFileQueue;
alias SetupSetDirectoryIdA SetupSetDirectoryId;
alias SetupSetDirectoryIdExA SetupSetDirectoryIdEx;
alias SetupSetFileQueueAlternatePlatformA SetupSetFileQueueAlternatePlatform;
alias SetupSetPlatformPathOverrideA SetupSetPlatformPathOverride;
alias SetupSetSourceListA SetupSetSourceList;
}
| D |
// Written in the D programming language.
/**
A one-stop shop for converting values from one type to another.
$(SCRIPT inhibitQuickIndex = 1;)
$(DIVC quickindex,
$(BOOKTABLE,
$(TR $(TH Category) $(TH Functions))
$(TR $(TD Generic) $(TD
$(LREF asOriginalType)
$(LREF castFrom)
$(LREF parse)
$(LREF to)
$(LREF toChars)
))
$(TR $(TD Strings) $(TD
$(LREF text)
$(LREF wtext)
$(LREF dtext)
$(LREF hexString)
))
$(TR $(TD Numeric) $(TD
$(LREF octal)
$(LREF roundTo)
$(LREF signed)
$(LREF unsigned)
))
$(TR $(TD Exceptions) $(TD
$(LREF ConvException)
$(LREF ConvOverflowException)
))
))
Copyright: Copyright The D Language Foundation 2007-.
License: $(HTTP boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: $(HTTP digitalmars.com, Walter Bright),
$(HTTP erdani.org, Andrei Alexandrescu),
Shin Fujishiro,
Adam D. Ruppe,
Kenji Hara
Source: $(PHOBOSSRC std/conv.d)
*/
module std.conv;
public import std.ascii : LetterCase;
import std.meta;
import std.range;
import std.traits;
import std.typecons : Flag, Yes, No, tuple, isTuple;
// Same as std.string.format, but "self-importing".
// Helps reduce code and imports, particularly in static asserts.
// Also helps with missing imports errors.
package template convFormat()
{
import std.format : format;
alias convFormat = format;
}
/* ************* Exceptions *************** */
/**
* Thrown on conversion errors.
*/
class ConvException : Exception
{
import std.exception : basicExceptionCtors;
///
mixin basicExceptionCtors;
}
///
@safe unittest
{
import std.exception : assertThrown;
assertThrown!ConvException(to!int("abc"));
}
private auto convError(S, T)(S source, string fn = __FILE__, size_t ln = __LINE__)
{
string msg;
if (source.empty)
msg = "Unexpected end of input when converting from type " ~ S.stringof ~ " to type " ~ T.stringof;
else
{
ElementType!S el = source.front;
if (el == '\n')
msg = text("Unexpected '\\n' when converting from type " ~ S.stringof ~ " to type " ~ T.stringof);
else
msg = text("Unexpected '", el,
"' when converting from type " ~ S.stringof ~ " to type " ~ T.stringof);
}
return new ConvException(msg, fn, ln);
}
private auto convError(S, T)(S source, int radix, string fn = __FILE__, size_t ln = __LINE__)
{
string msg;
if (source.empty)
msg = text("Unexpected end of input when converting from type " ~ S.stringof ~ " base ", radix,
" to type " ~ T.stringof);
else
msg = text("Unexpected '", source.front,
"' when converting from type " ~ S.stringof ~ " base ", radix,
" to type " ~ T.stringof);
return new ConvException(msg, fn, ln);
}
@safe pure/* nothrow*/ // lazy parameter bug
private auto parseError(lazy string msg, string fn = __FILE__, size_t ln = __LINE__)
{
return new ConvException(text("Can't parse string: ", msg), fn, ln);
}
private void parseCheck(alias source)(dchar c, string fn = __FILE__, size_t ln = __LINE__)
{
if (source.empty)
throw parseError(text("unexpected end of input when expecting \"", c, "\""));
if (source.front != c)
throw parseError(text("\"", c, "\" is missing"), fn, ln);
source.popFront();
}
private
{
T toStr(T, S)(S src)
if (isSomeString!T)
{
// workaround for https://issues.dlang.org/show_bug.cgi?id=14198
static if (is(S == bool) && is(typeof({ T s = "string"; })))
{
return src ? "true" : "false";
}
else
{
import std.array : appender;
import std.format.spec : FormatSpec;
import std.format.write : formatValue;
auto w = appender!T();
FormatSpec!(ElementEncodingType!T) f;
formatValue(w, src, f);
return w.data;
}
}
template isExactSomeString(T)
{
enum isExactSomeString = isSomeString!T && !is(T == enum);
}
template isEnumStrToStr(S, T)
{
enum isEnumStrToStr = isImplicitlyConvertible!(S, T) &&
is(S == enum) && isExactSomeString!T;
}
template isNullToStr(S, T)
{
enum isNullToStr = isImplicitlyConvertible!(S, T) &&
(is(immutable S == immutable typeof(null))) && isExactSomeString!T;
}
}
/**
* Thrown on conversion overflow errors.
*/
class ConvOverflowException : ConvException
{
@safe pure nothrow
this(string s, string fn = __FILE__, size_t ln = __LINE__)
{
super(s, fn, ln);
}
}
///
@safe unittest
{
import std.exception : assertThrown;
assertThrown!ConvOverflowException(to!ubyte(1_000_000));
}
/**
The `to` template converts a value from one type _to another.
The source type is deduced and the target type must be specified, for example the
expression `to!int(42.0)` converts the number 42 from
`double` _to `int`. The conversion is "safe", i.e.,
it checks for overflow; `to!int(4.2e10)` would throw the
`ConvOverflowException` exception. Overflow checks are only
inserted when necessary, e.g., `to!double(42)` does not do
any checking because any `int` fits in a `double`.
Conversions from string _to numeric types differ from the C equivalents
`atoi()` and `atol()` by checking for overflow and not allowing whitespace.
For conversion of strings _to signed types, the grammar recognized is:
$(PRE $(I Integer): $(I Sign UnsignedInteger)
$(I UnsignedInteger)
$(I Sign):
$(B +)
$(B -))
For conversion _to unsigned types, the grammar recognized is:
$(PRE $(I UnsignedInteger):
$(I DecimalDigit)
$(I DecimalDigit) $(I UnsignedInteger))
*/
template to(T)
{
T to(A...)(A args)
if (A.length > 0)
{
return toImpl!T(args);
}
// Fix issue 6175
T to(S)(ref S arg)
if (isStaticArray!S)
{
return toImpl!T(arg);
}
// Fix issue 16108
T to(S)(ref S arg)
if (isAggregateType!S && !isCopyable!S)
{
return toImpl!T(arg);
}
}
/**
* Converting a value _to its own type (useful mostly for generic code)
* simply returns its argument.
*/
@safe pure unittest
{
int a = 42;
int b = to!int(a);
double c = to!double(3.14); // c is double with value 3.14
}
/**
* Converting among numeric types is a safe way _to cast them around.
*
* Conversions from floating-point types _to integral types allow loss of
* precision (the fractional part of a floating-point number). The
* conversion is truncating towards zero, the same way a cast would
* truncate. (_To round a floating point value when casting _to an
* integral, use `roundTo`.)
*/
@safe pure unittest
{
import std.exception : assertThrown;
int a = 420;
assert(to!long(a) == a);
assertThrown!ConvOverflowException(to!byte(a));
assert(to!int(4.2e6) == 4200000);
assertThrown!ConvOverflowException(to!uint(-3.14));
assert(to!uint(3.14) == 3);
assert(to!uint(3.99) == 3);
assert(to!int(-3.99) == -3);
}
/**
* When converting strings _to numeric types, note that the D hexadecimal and binary
* literals are not handled. Neither the prefixes that indicate the base, nor the
* horizontal bar used _to separate groups of digits are recognized. This also
* applies to the suffixes that indicate the type.
*
* _To work around this, you can specify a radix for conversions involving numbers.
*/
@safe pure unittest
{
auto str = to!string(42, 16);
assert(str == "2A");
auto i = to!int(str, 16);
assert(i == 42);
}
/**
* Conversions from integral types _to floating-point types always
* succeed, but might lose accuracy. The largest integers with a
* predecessor representable in floating-point format are `2^24-1` for
* `float`, `2^53-1` for `double`, and `2^64-1` for `real` (when
* `real` is 80-bit, e.g. on Intel machines).
*/
@safe pure unittest
{
// 2^24 - 1, largest proper integer representable as float
int a = 16_777_215;
assert(to!int(to!float(a)) == a);
assert(to!int(to!float(-a)) == -a);
}
/**
Conversion from string types to char types enforces the input
to consist of a single code point, and said code point must
fit in the target type. Otherwise, $(LREF ConvException) is thrown.
*/
@safe pure unittest
{
import std.exception : assertThrown;
assert(to!char("a") == 'a');
assertThrown(to!char("ñ")); // 'ñ' does not fit into a char
assert(to!wchar("ñ") == 'ñ');
assertThrown(to!wchar("😃")); // '😃' does not fit into a wchar
assert(to!dchar("😃") == '😃');
// Using wstring or dstring as source type does not affect the result
assert(to!char("a"w) == 'a');
assert(to!char("a"d) == 'a');
// Two code points cannot be converted to a single one
assertThrown(to!char("ab"));
}
/**
* Converting an array _to another array type works by converting each
* element in turn. Associative arrays can be converted _to associative
* arrays as long as keys and values can in turn be converted.
*/
@safe pure unittest
{
import std.string : split;
int[] a = [1, 2, 3];
auto b = to!(float[])(a);
assert(b == [1.0f, 2, 3]);
string str = "1 2 3 4 5 6";
auto numbers = to!(double[])(split(str));
assert(numbers == [1.0, 2, 3, 4, 5, 6]);
int[string] c;
c["a"] = 1;
c["b"] = 2;
auto d = to!(double[wstring])(c);
assert(d["a"w] == 1 && d["b"w] == 2);
}
/**
* Conversions operate transitively, meaning that they work on arrays and
* associative arrays of any complexity.
*
* This conversion works because `to!short` applies _to an `int`, `to!wstring`
* applies _to a `string`, `to!string` applies _to a `double`, and
* `to!(double[])` applies _to an `int[]`. The conversion might throw an
* exception because `to!short` might fail the range check.
*/
@safe unittest
{
int[string][double[int[]]] a;
auto b = to!(short[wstring][string[double[]]])(a);
}
/**
* Object-to-object conversions by dynamic casting throw exception when
* the source is non-null and the target is null.
*/
@safe pure unittest
{
import std.exception : assertThrown;
// Testing object conversions
class A {}
class B : A {}
class C : A {}
A a1 = new A, a2 = new B, a3 = new C;
assert(to!B(a2) is a2);
assert(to!C(a3) is a3);
assertThrown!ConvException(to!B(a3));
}
/**
* Stringize conversion from all types is supported.
* $(UL
* $(LI String _to string conversion works for any two string types having
* (`char`, `wchar`, `dchar`) character widths and any
* combination of qualifiers (mutable, `const`, or `immutable`).)
* $(LI Converts array (other than strings) _to string.
* Each element is converted by calling `to!T`.)
* $(LI Associative array _to string conversion.
* Each element is converted by calling `to!T`.)
* $(LI Object _to string conversion calls `toString` against the object or
* returns `"null"` if the object is null.)
* $(LI Struct _to string conversion calls `toString` against the struct if
* it is defined.)
* $(LI For structs that do not define `toString`, the conversion _to string
* produces the list of fields.)
* $(LI Enumerated types are converted _to strings as their symbolic names.)
* $(LI Boolean values are converted to `"true"` or `"false"`.)
* $(LI `char`, `wchar`, `dchar` _to a string type.)
* $(LI Unsigned or signed integers _to strings.
* $(DL $(DT [special case])
* $(DD Convert integral value _to string in $(D_PARAM radix) radix.
* radix must be a value from 2 to 36.
* value is treated as a signed value only if radix is 10.
* The characters A through Z are used to represent values 10 through 36
* and their case is determined by the $(D_PARAM letterCase) parameter.)))
* $(LI All floating point types _to all string types.)
* $(LI Pointer to string conversions convert the pointer to a `size_t` value.
* If pointer is `char*`, treat it as C-style strings.
* In that case, this function is `@system`.))
* See $(REF formatValue, std,format) on how toString should be defined.
*/
@system pure unittest // @system due to cast and ptr
{
// Conversion representing dynamic/static array with string
long[] a = [ 1, 3, 5 ];
assert(to!string(a) == "[1, 3, 5]");
// Conversion representing associative array with string
int[string] associativeArray = ["0":1, "1":2];
assert(to!string(associativeArray) == `["0":1, "1":2]` ||
to!string(associativeArray) == `["1":2, "0":1]`);
// char* to string conversion
assert(to!string(cast(char*) null) == "");
assert(to!string("foo\0".ptr) == "foo");
// Conversion reinterpreting void array to string
auto w = "abcx"w;
const(void)[] b = w;
assert(b.length == 8);
auto c = to!(wchar[])(b);
assert(c == "abcx");
}
// Tests for issue 6175
@safe pure nothrow unittest
{
char[9] sarr = "blablabla";
auto darr = to!(char[])(sarr);
assert(sarr.ptr == darr.ptr);
assert(sarr.length == darr.length);
}
// Tests for issue 7348
@safe pure /+nothrow+/ unittest
{
assert(to!string(null) == "null");
assert(text(null) == "null");
}
// Test `scope` inference of parameters of `text`
@safe unittest
{
static struct S
{
int* x; // make S a type with pointers
string toString() const scope
{
return "S";
}
}
scope S s;
assert(text("a", s) == "aS");
}
// Tests for issue 11390
@safe pure /+nothrow+/ unittest
{
const(typeof(null)) ctn;
immutable(typeof(null)) itn;
assert(to!string(ctn) == "null");
assert(to!string(itn) == "null");
}
// Tests for issue 8729: do NOT skip leading WS
@safe pure unittest
{
import std.exception;
static foreach (T; AliasSeq!(byte, ubyte, short, ushort, int, uint, long, ulong))
{
assertThrown!ConvException(to!T(" 0"));
assertThrown!ConvException(to!T(" 0", 8));
}
static foreach (T; AliasSeq!(float, double, real))
{
assertThrown!ConvException(to!T(" 0"));
}
assertThrown!ConvException(to!bool(" true"));
alias NullType = typeof(null);
assertThrown!ConvException(to!NullType(" null"));
alias ARR = int[];
assertThrown!ConvException(to!ARR(" [1]"));
alias AA = int[int];
assertThrown!ConvException(to!AA(" [1:1]"));
}
// https://issues.dlang.org/show_bug.cgi?id=20623
@safe pure nothrow unittest
{
// static class C
// {
// override string toString() const
// {
// return "C()";
// }
// }
static struct S
{
bool b;
int i;
float f;
int[] a;
int[int] aa;
S* p;
// C c; // TODO: Fails because of hasToString
void fun() inout
{
static foreach (const idx; 0 .. this.tupleof.length)
{
{
const _ = this.tupleof[idx].to!string();
}
}
}
}
}
/**
If the source type is implicitly convertible to the target type, $(D
to) simply performs the implicit conversion.
*/
private T toImpl(T, S)(S value)
if (isImplicitlyConvertible!(S, T) &&
!isEnumStrToStr!(S, T) && !isNullToStr!(S, T))
{
template isSignedInt(T)
{
enum isSignedInt = isIntegral!T && isSigned!T;
}
alias isUnsignedInt = isUnsigned;
// Conversion from integer to integer, and changing its sign
static if (isUnsignedInt!S && isSignedInt!T && S.sizeof == T.sizeof)
{ // unsigned to signed & same size
import std.exception : enforce;
enforce(value <= cast(S) T.max,
new ConvOverflowException("Conversion positive overflow"));
}
else static if (isSignedInt!S && isUnsignedInt!T)
{ // signed to unsigned
import std.exception : enforce;
enforce(0 <= value,
new ConvOverflowException("Conversion negative overflow"));
}
return value;
}
// https://issues.dlang.org/show_bug.cgi?id=9523: Allow identity enum conversion
@safe pure nothrow unittest
{
enum E { a }
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);
}
// https://issues.dlang.org/show_bug.cgi?id=6377
@safe pure unittest
{
import std.exception;
// Conversion between same size
static foreach (S; AliasSeq!(byte, short, int, long))
{{
alias U = Unsigned!S;
static foreach (Sint; AliasSeq!(S, const S, immutable S))
static foreach (Uint; AliasSeq!(U, const U, immutable U))
{{
// positive overflow
Uint un = Uint.max;
assertThrown!ConvOverflowException(to!Sint(un),
text(Sint.stringof, ' ', Uint.stringof, ' ', un));
// negative overflow
Sint sn = -1;
assertThrown!ConvOverflowException(to!Uint(sn),
text(Sint.stringof, ' ', Uint.stringof, ' ', un));
}}
}}
// Conversion between different size
static foreach (i, S1; AliasSeq!(byte, short, int, long))
static foreach ( S2; AliasSeq!(byte, short, int, long)[i+1..$])
{{
alias U1 = Unsigned!S1;
alias U2 = Unsigned!S2;
static assert(U1.sizeof < S2.sizeof);
// small unsigned to big signed
static foreach (Uint; AliasSeq!(U1, const U1, immutable U1))
static foreach (Sint; AliasSeq!(S2, const S2, immutable S2))
{{
Uint un = Uint.max;
assertNotThrown(to!Sint(un));
assert(to!Sint(un) == un);
}}
// big unsigned to small signed
static foreach (Uint; AliasSeq!(U2, const U2, immutable U2))
static foreach (Sint; AliasSeq!(S1, const S1, immutable S1))
{{
Uint un = Uint.max;
assertThrown(to!Sint(un));
}}
static assert(S1.sizeof < U2.sizeof);
// small signed to big unsigned
static foreach (Sint; AliasSeq!(S1, const S1, immutable S1))
static foreach (Uint; AliasSeq!(U2, const U2, immutable U2))
{{
Sint sn = -1;
assertThrown!ConvOverflowException(to!Uint(sn));
}}
// big signed to small unsigned
static foreach (Sint; AliasSeq!(S2, const S2, immutable S2))
static foreach (Uint; AliasSeq!(U1, const U1, immutable U1))
{{
Sint sn = -1;
assertThrown!ConvOverflowException(to!Uint(sn));
}}
}}
}
// https://issues.dlang.org/show_bug.cgi?id=13551
private T toImpl(T, S)(S value)
if (isTuple!T)
{
T t;
static foreach (i; 0 .. T.length)
{
t[i] = value[i].to!(typeof(T[i]));
}
return t;
}
@safe unittest
{
import std.typecons : Tuple;
auto test = ["10", "20", "30"];
assert(test.to!(Tuple!(int, int, int)) == Tuple!(int, int, int)(10, 20, 30));
auto test1 = [1, 2];
assert(test1.to!(Tuple!(int, int)) == Tuple!(int, int)(1, 2));
auto test2 = [1.0, 2.0, 3.0];
assert(test2.to!(Tuple!(int, int, int)) == Tuple!(int, int, int)(1, 2, 3));
}
/*
Converting static arrays forwards to their dynamic counterparts.
*/
private T toImpl(T, S)(ref S s)
if (isStaticArray!S)
{
return toImpl!(T, typeof(s[0])[])(s);
}
@safe pure nothrow unittest
{
char[4] test = ['a', 'b', 'c', 'd'];
static assert(!isInputRange!(Unqual!(char[4])));
assert(to!string(test) == test);
}
/**
When source type supports member template function opCast, it is used.
*/
private T toImpl(T, S)(S value)
if (!isImplicitlyConvertible!(S, T) &&
is(typeof(S.init.opCast!T()) : T) &&
!isExactSomeString!T &&
!is(typeof(T(value))))
{
return value.opCast!T();
}
@safe pure unittest
{
static struct Test
{
struct T
{
this(S s) @safe pure { }
}
struct S
{
T opCast(U)() @safe pure { assert(false); }
}
}
cast(void) to!(Test.T)(Test.S());
// make sure std.conv.to is doing the same thing as initialization
Test.S s;
Test.T t = s;
}
@safe pure unittest
{
class B
{
T opCast(T)() { return 43; }
}
auto b = new B;
assert(to!int(b) == 43);
struct S
{
T opCast(T)() { return 43; }
}
auto s = S();
assert(to!int(s) == 43);
}
/**
When target type supports 'converting construction', it is used.
$(UL $(LI If target type is struct, `T(value)` is used.)
$(LI If target type is class, $(D new T(value)) is used.))
*/
private T toImpl(T, S)(S value)
if (!isImplicitlyConvertible!(S, T) &&
is(T == struct) && is(typeof(T(value))))
{
return T(value);
}
// https://issues.dlang.org/show_bug.cgi?id=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);
}
// https://issues.dlang.org/show_bug.cgi?id=6808
@safe pure unittest
{
static struct FakeBigInt
{
this(string s) @safe pure {}
}
string s = "101";
auto i3 = to!FakeBigInt(s);
}
/// ditto
private T toImpl(T, S)(S value)
if (!isImplicitlyConvertible!(S, T) &&
is(T == class) && is(typeof(new T(value))))
{
return new T(value);
}
@safe pure unittest
{
static struct S
{
int x;
}
static class C
{
int x;
this(int x) @safe pure { this.x = x; }
}
static class B
{
int value;
this(S src) @safe pure { value = src.x; }
this(C src) @safe pure { value = src.x; }
}
S s = S(1);
auto b1 = to!B(s); // == new B(s)
assert(b1.value == 1);
C c = new C(2);
auto b2 = to!B(c); // == new B(c)
assert(b2.value == 2);
auto c2 = to!C(3); // == new C(3)
assert(c2.x == 3);
}
@safe pure unittest
{
struct S
{
class A
{
this(B b) @safe pure {}
}
class B : A
{
this() @safe pure { super(this); }
}
}
S.B b = new S.B();
S.A a = to!(S.A)(b); // == cast(S.A) b
// (do not run construction conversion like new S.A(b))
assert(b is a);
static class C : Object
{
this() @safe pure {}
this(Object o) @safe pure {}
}
Object oc = new C();
C a2 = to!C(oc); // == new C(a)
// Construction conversion overrides down-casting conversion
assert(a2 !is a); //
}
/**
Object-to-object conversions by dynamic casting throw exception when the source is
non-null and the target is null.
*/
private T toImpl(T, S)(S value)
if (!isImplicitlyConvertible!(S, T) &&
(is(S == class) || is(S == interface)) && !is(typeof(value.opCast!T()) : T) &&
(is(T == class) || is(T == interface)) && !is(typeof(new T(value))))
{
static if (is(T == immutable))
{
// immutable <- immutable
enum isModConvertible = is(S == immutable);
}
else static if (is(T == const))
{
static if (is(T == shared))
{
// shared const <- shared
// shared const <- shared const
// shared const <- immutable
enum isModConvertible = is(S == shared) || is(S == immutable);
}
else
{
// const <- mutable
// const <- immutable
enum isModConvertible = !is(S == shared);
}
}
else
{
static if (is(T == shared))
{
// shared <- shared mutable
enum isModConvertible = is(S == shared) && !is(S == const);
}
else
{
// (mutable) <- (mutable)
enum isModConvertible = is(Unqual!S == S);
}
}
static assert(isModConvertible, "Bad modifier conversion: "~S.stringof~" to "~T.stringof);
auto result = ()@trusted{ return cast(T) value; }();
if (!result && value)
{
throw new ConvException("Cannot convert object of static type "
~S.classinfo.name~" and dynamic type "~value.classinfo.name
~" to type "~T.classinfo.name);
}
return result;
}
// Unittest for 6288
@safe pure unittest
{
import std.exception;
alias Identity(T) = T;
alias toConst(T) = const T;
alias toShared(T) = shared T;
alias toSharedConst(T) = shared const T;
alias toImmutable(T) = immutable T;
template AddModifier(int n)
if (0 <= n && n < 5)
{
static if (n == 0) alias AddModifier = Identity;
else static if (n == 1) alias AddModifier = toConst;
else static if (n == 2) alias AddModifier = toShared;
else static if (n == 3) alias AddModifier = toSharedConst;
else static if (n == 4) alias AddModifier = toImmutable;
}
interface I {}
interface J {}
class A {}
class B : A {}
class C : B, I, J {}
class D : I {}
static foreach (m1; 0 .. 5) // enumerate modifiers
static foreach (m2; 0 .. 5) // ditto
{{
alias srcmod = AddModifier!m1;
alias tgtmod = AddModifier!m2;
// Compile time convertible equals to modifier convertible.
static if (isImplicitlyConvertible!(srcmod!Object, tgtmod!Object))
{
// Test runtime conversions: class to class, class to interface,
// interface to class, and interface to interface
// Check that the runtime conversion to succeed
srcmod!A ac = new srcmod!C();
srcmod!I ic = new srcmod!C();
assert(to!(tgtmod!C)(ac) !is null); // A(c) to C
assert(to!(tgtmod!I)(ac) !is null); // A(c) to I
assert(to!(tgtmod!C)(ic) !is null); // I(c) to C
assert(to!(tgtmod!J)(ic) !is null); // I(c) to J
// Check that the runtime conversion fails
srcmod!A ab = new srcmod!B();
srcmod!I id = new srcmod!D();
assertThrown(to!(tgtmod!C)(ab)); // A(b) to C
assertThrown(to!(tgtmod!I)(ab)); // A(b) to I
assertThrown(to!(tgtmod!C)(id)); // I(d) to C
assertThrown(to!(tgtmod!J)(id)); // I(d) to J
}
else
{
// Check that the conversion is rejected statically
static assert(!is(typeof(to!(tgtmod!C)(srcmod!A.init)))); // A to C
static assert(!is(typeof(to!(tgtmod!I)(srcmod!A.init)))); // A to I
static assert(!is(typeof(to!(tgtmod!C)(srcmod!I.init)))); // I to C
static assert(!is(typeof(to!(tgtmod!J)(srcmod!I.init)))); // I to J
}
}}
}
/**
Handles type _to string conversions
*/
private T toImpl(T, S)(S value)
if (!(isImplicitlyConvertible!(S, T) &&
!isEnumStrToStr!(S, T) && !isNullToStr!(S, T)) &&
!isInfinite!S && isExactSomeString!T)
{
static if (isExactSomeString!S && value[0].sizeof == ElementEncodingType!T.sizeof)
{
// string-to-string with incompatible qualifier conversion
static if (is(ElementEncodingType!T == immutable))
{
// conversion (mutable|const) -> immutable
return value.idup;
}
else
{
// conversion (immutable|const) -> mutable
return value.dup;
}
}
else static if (isExactSomeString!S)
{
import std.array : appender;
// other string-to-string
//Use Appender directly instead of toStr, which also uses a formatedWrite
auto w = appender!T();
w.put(value);
return w.data;
}
else static if (isIntegral!S && !is(S == enum))
{
// other integral-to-string conversions with default radix
return toImpl!(T, S)(value, 10);
}
else static if (is(S == void[]) || is(S == const(void)[]) || is(S == immutable(void)[]))
{
import core.stdc.string : memcpy;
import std.exception : enforce;
// Converting void array to string
alias Char = Unqual!(ElementEncodingType!T);
auto raw = cast(const(ubyte)[]) value;
enforce(raw.length % Char.sizeof == 0,
new ConvException("Alignment mismatch in converting a "
~ S.stringof ~ " to a "
~ T.stringof));
auto result = new Char[raw.length / Char.sizeof];
()@trusted{ memcpy(result.ptr, value.ptr, value.length); }();
return cast(T) result;
}
else static if (isPointer!S && isSomeChar!(PointerTarget!S))
{
// This is unsafe because we cannot guarantee that the pointer is null terminated.
return () @system {
static if (is(S : const(char)*))
import core.stdc.string : strlen;
else
size_t strlen(S s) nothrow
{
S p = s;
while (*p++) {}
return p-s-1;
}
return toImpl!T(value ? value[0 .. strlen(value)].dup : null);
}();
}
else static if (isSomeString!T && is(S == enum))
{
static if (isSwitchable!(OriginalType!S) && EnumMembers!S.length <= 50)
{
switch (value)
{
foreach (member; NoDuplicates!(EnumMembers!S))
{
case member:
return to!T(enumRep!(immutable(T), S, member));
}
default:
}
}
else
{
foreach (member; EnumMembers!S)
{
if (value == member)
return to!T(enumRep!(immutable(T), S, member));
}
}
import std.array : appender;
import std.format.spec : FormatSpec;
import std.format.write : formatValue;
//Default case, delegate to format
//Note: we don't call toStr directly, to avoid duplicate work.
auto app = appender!T();
app.put("cast(" ~ S.stringof ~ ")");
FormatSpec!char f;
formatValue(app, cast(OriginalType!S) value, f);
return app.data;
}
else
{
// other non-string values runs formatting
return toStr!T(value);
}
}
// https://issues.dlang.org/show_bug.cgi?id=14042
@system unittest
{
immutable(char)* ptr = "hello".ptr;
auto result = ptr.to!(char[]);
}
// https://issues.dlang.org/show_bug.cgi?id=8384
@system unittest
{
void test1(T)(T lp, string cmp)
{
static foreach (e; AliasSeq!(char, wchar, dchar))
{
test2!(e[])(lp, cmp);
test2!(const(e)[])(lp, cmp);
test2!(immutable(e)[])(lp, cmp);
}
}
void test2(D, S)(S lp, string cmp)
{
assert(to!string(to!D(lp)) == cmp);
}
static foreach (e; AliasSeq!("Hello, world!", "Hello, world!"w, "Hello, world!"d))
{
test1(e, "Hello, world!");
test1(e.ptr, "Hello, world!");
}
static foreach (e; AliasSeq!("", ""w, ""d))
{
test1(e, "");
test1(e.ptr, "");
}
}
/*
To string conversion for non copy-able structs
*/
private T toImpl(T, S)(ref S value)
if (!(isImplicitlyConvertible!(S, T) &&
!isEnumStrToStr!(S, T) && !isNullToStr!(S, T)) &&
!isInfinite!S && isExactSomeString!T && !isCopyable!S && !isStaticArray!S)
{
import std.array : appender;
import std.format.spec : FormatSpec;
import std.format.write : formatValue;
auto w = appender!T();
FormatSpec!(ElementEncodingType!T) f;
formatValue(w, value, f);
return w.data;
}
// https://issues.dlang.org/show_bug.cgi?id=16108
@safe unittest
{
static struct A
{
int val;
bool flag;
string toString() { return text(val, ":", flag); }
@disable this(this);
}
auto a = A();
assert(to!string(a) == "0:false");
static struct B
{
int val;
bool flag;
@disable this(this);
}
auto b = B();
assert(to!string(b) == "B(0, false)");
}
// https://issues.dlang.org/show_bug.cgi?id=20070
@safe unittest
{
void writeThem(T)(ref inout(T) them)
{
assert(them.to!string == "[1, 2, 3, 4]");
}
const(uint)[4] vals = [ 1, 2, 3, 4 ];
writeThem(vals);
}
/*
Check whether type `T` can be used in a switch statement.
This is useful for compile-time generation of switch case statements.
*/
private template isSwitchable(E)
{
enum bool isSwitchable = is(typeof({
switch (E.init) { default: }
}));
}
//
@safe unittest
{
static assert(isSwitchable!int);
static assert(!isSwitchable!double);
static assert(!isSwitchable!real);
}
//Static representation of the index I of the enum S,
//In representation T.
//T must be an immutable string (avoids un-necessary initializations).
private template enumRep(T, S, S value)
if (is (T == immutable) && isExactSomeString!T && is(S == enum))
{
static T enumRep = toStr!T(value);
}
@safe pure unittest
{
import std.exception;
void dg()
{
// string to string conversion
alias Chars = AliasSeq!(char, wchar, dchar);
foreach (LhsC; Chars)
{
alias LhStrings = AliasSeq!(LhsC[], const(LhsC)[], immutable(LhsC)[]);
foreach (Lhs; LhStrings)
{
foreach (RhsC; Chars)
{
alias RhStrings = AliasSeq!(RhsC[], const(RhsC)[], immutable(RhsC)[]);
foreach (Rhs; RhStrings)
{
Lhs s1 = to!Lhs("wyda");
Rhs s2 = to!Rhs(s1);
//writeln(Lhs.stringof, " -> ", Rhs.stringof);
assert(s1 == to!Lhs(s2));
}
}
}
}
foreach (T; Chars)
{
foreach (U; Chars)
{
T[] s1 = to!(T[])("Hello, world!");
auto s2 = to!(U[])(s1);
assert(s1 == to!(T[])(s2));
auto s3 = to!(const(U)[])(s1);
assert(s1 == to!(T[])(s3));
auto s4 = to!(immutable(U)[])(s1);
assert(s1 == to!(T[])(s4));
}
}
}
dg();
assertCTFEable!dg;
}
@safe pure unittest
{
// Conversion representing bool value with string
bool b;
assert(to!string(b) == "false");
b = true;
assert(to!string(b) == "true");
}
@safe pure unittest
{
// Conversion representing character value with string
alias AllChars =
AliasSeq!( char, const( char), immutable( char),
wchar, const(wchar), immutable(wchar),
dchar, const(dchar), immutable(dchar));
foreach (Char1; AllChars)
{
foreach (Char2; AllChars)
{
Char1 c = 'a';
assert(to!(Char2[])(c)[0] == c);
}
uint x = 4;
assert(to!(Char1[])(x) == "4");
}
string s = "foo";
string s2;
foreach (char c; s)
{
s2 ~= to!string(c);
}
assert(s2 == "foo");
}
@safe pure nothrow unittest
{
import std.exception;
// Conversion representing integer values with string
static foreach (Int; AliasSeq!(ubyte, ushort, uint, ulong))
{
assert(to!string(Int(0)) == "0");
assert(to!string(Int(9)) == "9");
assert(to!string(Int(123)) == "123");
}
static foreach (Int; AliasSeq!(byte, short, int, long))
{
assert(to!string(Int(0)) == "0");
assert(to!string(Int(9)) == "9");
assert(to!string(Int(123)) == "123");
assert(to!string(Int(-0)) == "0");
assert(to!string(Int(-9)) == "-9");
assert(to!string(Int(-123)) == "-123");
assert(to!string(const(Int)(6)) == "6");
}
assert(wtext(int.max) == "2147483647"w);
assert(wtext(int.min) == "-2147483648"w);
assert(to!string(0L) == "0");
assertCTFEable!(
{
assert(to!string(1uL << 62) == "4611686018427387904");
assert(to!string(0x100000000) == "4294967296");
assert(to!string(-138L) == "-138");
});
}
@safe unittest // sprintf issue
{
double[2] a = [ 1.5, 2.5 ];
assert(to!string(a) == "[1.5, 2.5]");
}
@safe unittest
{
// Conversion representing class object with string
class A
{
override string toString() @safe const { return "an A"; }
}
A a;
assert(to!string(a) == "null");
a = new A;
assert(to!string(a) == "an A");
// https://issues.dlang.org/show_bug.cgi?id=7660
class C { override string toString() @safe const { return "C"; } }
struct S { C c; alias c this; }
S s; s.c = new C();
assert(to!string(s) == "C");
}
@safe unittest
{
// Conversion representing struct object with string
struct S1
{
string toString() { return "wyda"; }
}
assert(to!string(S1()) == "wyda");
struct S2
{
int a = 42;
float b = 43.5;
}
S2 s2;
assert(to!string(s2) == "S2(42, 43.5)");
// Test for issue 8080
struct S8080
{
short[4] data;
alias data this;
string toString() { return "<S>"; }
}
S8080 s8080;
assert(to!string(s8080) == "<S>");
}
@safe unittest
{
// Conversion representing enum value with string
enum EB : bool { a = true }
enum EU : uint { a = 0, b = 1, c = 2 } // base type is unsigned
// base type is signed (https://issues.dlang.org/show_bug.cgi?id=7909)
enum EI : int { a = -1, b = 0, c = 1 }
enum EF : real { a = 1.414, b = 1.732, c = 2.236 }
enum EC : char { a = 'x', b = 'y' }
enum ES : string { a = "aaa", b = "bbb" }
static foreach (E; AliasSeq!(EB, EU, EI, EF, EC, ES))
{
assert(to! string(E.a) == "a"c);
assert(to!wstring(E.a) == "a"w);
assert(to!dstring(E.a) == "a"d);
}
// Test an value not corresponding to an enum member.
auto o = cast(EU) 5;
assert(to! string(o) == "cast(EU)5"c);
assert(to!wstring(o) == "cast(EU)5"w);
assert(to!dstring(o) == "cast(EU)5"d);
}
@safe unittest
{
enum E
{
foo,
doo = foo, // check duplicate switch statements
bar,
}
//Test regression 12494
assert(to!string(E.foo) == "foo");
assert(to!string(E.doo) == "foo");
assert(to!string(E.bar) == "bar");
static foreach (S; AliasSeq!(string, wstring, dstring, const(char[]), const(wchar[]), const(dchar[])))
{{
auto s1 = to!S(E.foo);
auto s2 = to!S(E.foo);
assert(s1 == s2);
// ensure we don't allocate when it's unnecessary
assert(s1 is s2);
}}
static foreach (S; AliasSeq!(char[], wchar[], dchar[]))
{{
auto s1 = to!S(E.foo);
auto s2 = to!S(E.foo);
assert(s1 == s2);
// ensure each mutable array is unique
assert(s1 !is s2);
}}
}
// ditto
@trusted pure private T toImpl(T, S)(S value, uint radix, LetterCase letterCase = LetterCase.upper)
if (isIntegral!S &&
isExactSomeString!T)
in
{
assert(radix >= 2 && radix <= 36, "radix must be in range [2,36]");
}
do
{
alias EEType = Unqual!(ElementEncodingType!T);
T toStringRadixConvert(size_t bufLen)(uint runtimeRadix = 0)
{
Unsigned!(Unqual!S) div = void, mValue = unsigned(value);
size_t index = bufLen;
EEType[bufLen] buffer = void;
char baseChar = letterCase == LetterCase.lower ? 'a' : 'A';
char mod = void;
do
{
div = cast(S)(mValue / runtimeRadix );
mod = cast(ubyte)(mValue % runtimeRadix);
mod += mod < 10 ? '0' : baseChar - 10;
buffer[--index] = cast(char) mod;
mValue = div;
} while (mValue);
return cast(T) buffer[index .. $].dup;
}
import std.array : array;
switch (radix)
{
case 10:
// The (value+0) is so integral promotions happen to the type
return toChars!(10, EEType)(value + 0).array;
case 16:
// The unsigned(unsigned(value)+0) is so unsigned integral promotions happen to the type
if (letterCase == letterCase.upper)
return toChars!(16, EEType, LetterCase.upper)(unsigned(unsigned(value) + 0)).array;
else
return toChars!(16, EEType, LetterCase.lower)(unsigned(unsigned(value) + 0)).array;
case 2:
return toChars!(2, EEType)(unsigned(unsigned(value) + 0)).array;
case 8:
return toChars!(8, EEType)(unsigned(unsigned(value) + 0)).array;
default:
return toStringRadixConvert!(S.sizeof * 6)(radix);
}
}
@safe pure nothrow unittest
{
static foreach (Int; AliasSeq!(uint, ulong))
{
assert(to!string(Int(16), 16) == "10");
assert(to!string(Int(15), 2u) == "1111");
assert(to!string(Int(1), 2u) == "1");
assert(to!string(Int(0x1234AF), 16u) == "1234AF");
assert(to!string(Int(0x1234BCD), 16u, LetterCase.upper) == "1234BCD");
assert(to!string(Int(0x1234AF), 16u, LetterCase.lower) == "1234af");
}
static foreach (Int; AliasSeq!(int, long))
{
assert(to!string(Int(-10), 10u) == "-10");
}
assert(to!string(byte(-10), 16) == "F6");
assert(to!string(long.min) == "-9223372036854775808");
assert(to!string(long.max) == "9223372036854775807");
}
/**
Narrowing numeric-numeric conversions throw when the value does not
fit in the narrower type.
*/
private T toImpl(T, S)(S value)
if (!isImplicitlyConvertible!(S, T) &&
(isNumeric!S || isSomeChar!S || isBoolean!S) &&
(isNumeric!T || isSomeChar!T || isBoolean!T) && !is(T == enum))
{
static if (isFloatingPoint!S && isIntegral!T)
{
import std.math.traits : isNaN;
if (value.isNaN) throw new ConvException("Input was NaN");
}
enum sSmallest = mostNegative!S;
enum tSmallest = mostNegative!T;
static if (sSmallest < 0)
{
// possible underflow converting from a signed
static if (tSmallest == 0)
{
immutable good = value >= 0;
}
else
{
static assert(tSmallest < 0,
"minimum value of T must be smaller than 0");
immutable good = value >= tSmallest;
}
if (!good)
throw new ConvOverflowException("Conversion negative overflow");
}
static if (S.max > T.max)
{
// possible overflow
if (value > T.max)
throw new ConvOverflowException("Conversion positive overflow");
}
return (ref value)@trusted{ return cast(T) value; }(value);
}
@safe pure unittest
{
import std.exception;
dchar a = ' ';
assert(to!char(a) == ' ');
a = 300;
assert(collectException(to!char(a)));
dchar from0 = 'A';
char to0 = to!char(from0);
wchar from1 = 'A';
char to1 = to!char(from1);
char from2 = 'A';
char to2 = to!char(from2);
char from3 = 'A';
wchar to3 = to!wchar(from3);
char from4 = 'A';
dchar to4 = to!dchar(from4);
}
@safe unittest
{
import std.exception;
// Narrowing conversions from enum -> integral should be allowed, but they
// should throw at runtime if the enum value doesn't fit in the target
// type.
enum E1 : ulong { A = 1, B = 1UL << 48, C = 0 }
assert(to!int(E1.A) == 1);
assert(to!bool(E1.A) == true);
assertThrown!ConvOverflowException(to!int(E1.B)); // E1.B overflows int
assertThrown!ConvOverflowException(to!bool(E1.B)); // E1.B overflows bool
assert(to!bool(E1.C) == false);
enum E2 : long { A = -1L << 48, B = -1 << 31, C = 1 << 31 }
assertThrown!ConvOverflowException(to!int(E2.A)); // E2.A overflows int
assertThrown!ConvOverflowException(to!uint(E2.B)); // E2.B overflows uint
assert(to!int(E2.B) == -1 << 31); // but does not overflow int
assert(to!int(E2.C) == 1 << 31); // E2.C does not overflow int
enum E3 : int { A = -1, B = 1, C = 255, D = 0 }
assertThrown!ConvOverflowException(to!ubyte(E3.A));
assertThrown!ConvOverflowException(to!bool(E3.A));
assert(to!byte(E3.A) == -1);
assert(to!byte(E3.B) == 1);
assert(to!ubyte(E3.C) == 255);
assert(to!bool(E3.B) == true);
assertThrown!ConvOverflowException(to!byte(E3.C));
assertThrown!ConvOverflowException(to!bool(E3.C));
assert(to!bool(E3.D) == false);
}
@safe unittest
{
import std.exception;
import std.math.traits : isNaN;
double d = double.nan;
float f = to!float(d);
assert(f.isNaN);
assert(to!double(f).isNaN);
assertThrown!ConvException(to!int(d));
assertThrown!ConvException(to!int(f));
auto ex = collectException(d.to!int);
assert(ex.msg == "Input was NaN");
}
/**
Array-to-array conversion (except when target is a string type)
converts each element in turn by using `to`.
*/
private T toImpl(T, S)(scope S value)
if (!isImplicitlyConvertible!(S, T) &&
!isSomeString!S && isDynamicArray!S &&
!isExactSomeString!T && isArray!T)
{
alias E = typeof(T.init[0]);
static if (isStaticArray!T)
{
import std.exception : enforce;
auto res = to!(E[])(value);
enforce!ConvException(T.length == res.length,
convFormat("Length mismatch when converting to static array: %s vs %s", T.length, res.length));
return res[0 .. T.length];
}
else
{
import std.array : appender;
auto w = appender!(E[])();
w.reserve(value.length);
foreach (ref e; value)
{
w.put(to!E(e));
}
return w.data;
}
}
@safe pure unittest
{
import std.exception;
// array to array conversions
uint[] a = [ 1u, 2, 3 ];
auto b = to!(float[])(a);
assert(b == [ 1.0f, 2, 3 ]);
immutable(int)[3] d = [ 1, 2, 3 ];
b = to!(float[])(d);
assert(b == [ 1.0f, 2, 3 ]);
uint[][] e = [ a, a ];
auto f = to!(float[][])(e);
assert(f[0] == b && f[1] == b);
// Test for https://issues.dlang.org/show_bug.cgi?id=8264
struct Wrap
{
string wrap;
alias wrap this;
}
Wrap[] warr = to!(Wrap[])(["foo", "bar"]); // should work
// https://issues.dlang.org/show_bug.cgi?id=12633
import std.conv : to;
const s2 = ["10", "20"];
immutable int[2] a3 = s2.to!(int[2]);
assert(a3 == [10, 20]);
// verify length mismatches are caught
immutable s4 = [1, 2, 3, 4];
foreach (i; [1, 4])
{
auto ex = collectException(s4[0 .. i].to!(int[2]));
assert(ex && ex.msg == "Length mismatch when converting to static array: 2 vs " ~ [cast(char)(i + '0')],
ex ? ex.msg : "Exception was not thrown!");
}
}
@safe unittest
{
auto b = [ 1.0f, 2, 3 ];
auto c = to!(string[])(b);
assert(c[0] == "1" && c[1] == "2" && c[2] == "3");
}
/**
Associative array to associative array conversion converts each key
and each value in turn.
*/
private T toImpl(T, S)(S value)
if (!isImplicitlyConvertible!(S, T) && isAssociativeArray!S &&
isAssociativeArray!T && !is(T == enum))
{
/* This code is potentially unsafe.
*/
alias K2 = KeyType!T;
alias V2 = ValueType!T;
// While we are "building" the AA, we need to unqualify its values, and only re-qualify at the end
Unqual!V2[K2] result;
foreach (k1, v1; value)
{
// Cast values temporarily to Unqual!V2 to store them to result variable
result[to!K2(k1)] = to!(Unqual!V2)(v1);
}
// Cast back to original type
return () @trusted { return cast(T) result; }();
}
@safe unittest
{
// hash to hash conversions
int[string] a;
a["0"] = 1;
a["1"] = 2;
auto b = to!(double[dstring])(a);
assert(b["0"d] == 1 && b["1"d] == 2);
}
// https://issues.dlang.org/show_bug.cgi?id=8705, from doc
@safe unittest
{
import std.exception;
int[string][double[int[]]] a;
auto b = to!(short[wstring][string[double[]]])(a);
a = [null:["hello":int.max]];
assertThrown!ConvOverflowException(to!(short[wstring][string[double[]]])(a));
}
@system unittest // Extra cases for AA with qualifiers conversion
{
int[][int[]] a;// = [[], []];
auto b = to!(immutable(short[])[immutable short[]])(a);
double[dstring][int[long[]]] c;
auto d = to!(immutable(short[immutable wstring])[immutable string[double[]]])(c);
}
@safe unittest
{
import std.algorithm.comparison : equal;
import std.array : byPair;
int[int] a;
assert(a.to!(int[int]) == a);
assert(a.to!(const(int)[int]).byPair.equal(a.byPair));
}
@safe pure unittest
{
static void testIntegralToFloating(Integral, Floating)()
{
Integral a = 42;
auto b = to!Floating(a);
assert(a == b);
assert(a == to!Integral(b));
}
static void testFloatingToIntegral(Floating, Integral)()
{
import std.math : floatTraits, RealFormat;
bool convFails(Source, Target, E)(Source src)
{
try
cast(void) to!Target(src);
catch (E)
return true;
return false;
}
// convert some value
Floating a = 4.2e1;
auto b = to!Integral(a);
assert(is(typeof(b) == Integral) && b == 42);
// convert some negative value (if applicable)
a = -4.2e1;
static if (Integral.min < 0)
{
b = to!Integral(a);
assert(is(typeof(b) == Integral) && b == -42);
}
else
{
// no go for unsigned types
assert(convFails!(Floating, Integral, ConvOverflowException)(a));
}
// convert to the smallest integral value
a = 0.0 + Integral.min;
static if (Integral.min < 0)
{
a = -a; // -Integral.min not representable as an Integral
assert(convFails!(Floating, Integral, ConvOverflowException)(a)
|| Floating.sizeof <= Integral.sizeof
|| floatTraits!Floating.realFormat == RealFormat.ieeeExtended53);
}
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
|| floatTraits!Floating.realFormat == RealFormat.ieeeExtended53);
a = 0.0 + Integral.max;
assert(to!Integral(a) == Integral.max
|| Floating.sizeof <= Integral.sizeof
|| floatTraits!Floating.realFormat == RealFormat.ieeeExtended53);
++a; // no more representable as an Integral
assert(convFails!(Floating, Integral, ConvOverflowException)(a)
|| Floating.sizeof <= Integral.sizeof
|| floatTraits!Floating.realFormat == RealFormat.ieeeExtended53);
// 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);
}
}
alias AllInts = AliasSeq!(byte, ubyte, short, ushort, int, uint, long, ulong);
alias AllFloats = AliasSeq!(float, double, real);
alias AllNumerics = AliasSeq!(AllInts, AllFloats);
// test with same type
{
foreach (T; AllNumerics)
{
T a = 42;
auto b = to!T(a);
assert(is(typeof(a) == typeof(b)) && a == b);
}
}
// test that floating-point numbers convert properly to largest ints
// see http://oregonstate.edu/~peterseb/mth351/docs/351s2001_fp80x87.html
// look for "largest fp integer with a predecessor"
{
// float
int a = 16_777_215; // 2^24 - 1
assert(to!int(to!float(a)) == a);
assert(to!int(to!float(-a)) == -a);
// double
long b = 9_007_199_254_740_991; // 2^53 - 1
assert(to!long(to!double(b)) == b);
assert(to!long(to!double(-b)) == -b);
// real
static if (real.mant_dig >= 64)
{
ulong c = 18_446_744_073_709_551_615UL; // 2^64 - 1
assert(to!ulong(to!real(c)) == c);
}
}
// test conversions floating => integral
{
// AllInts[0 .. $ - 1] should be AllInts
// @@@ BUG IN COMPILER @@@
foreach (Integral; AllInts[0 .. $ - 1])
{
foreach (Floating; AllFloats)
{
testFloatingToIntegral!(Floating, Integral)();
}
}
}
// test conversion integral => floating
{
foreach (Integral; AllInts[0 .. $ - 1])
{
foreach (Floating; AllFloats)
{
testIntegralToFloating!(Integral, Floating)();
}
}
}
// test parsing
{
foreach (T; AllNumerics)
{
// from type immutable(char)[2]
auto a = to!T("42");
assert(a == 42);
// from type char[]
char[] s1 = "42".dup;
a = to!T(s1);
assert(a == 42);
// from type char[2]
char[2] s2;
s2[] = "42";
a = to!T(s2);
assert(a == 42);
// from type immutable(wchar)[2]
a = to!T("42"w);
assert(a == 42);
}
}
}
@safe unittest
{
alias AllInts = AliasSeq!(byte, ubyte, short, ushort, int, uint, long, ulong);
alias AllFloats = AliasSeq!(float, double, real);
alias AllNumerics = AliasSeq!(AllInts, AllFloats);
// test conversions to string
{
foreach (T; AllNumerics)
{
T a = 42;
string s = to!string(a);
assert(s == "42", s);
wstring ws = to!wstring(a);
assert(ws == "42"w, to!string(ws));
dstring ds = to!dstring(a);
assert(ds == "42"d, to!string(ds));
// array test
T[] b = new T[2];
b[0] = 42;
b[1] = 33;
assert(to!string(b) == "[42, 33]");
}
}
// test array to string conversion
foreach (T ; AllNumerics)
{
auto a = [to!T(1), 2, 3];
assert(to!string(a) == "[1, 2, 3]");
}
// test enum to int conversion
enum Testing { Test1, Test2 }
Testing t;
auto a = to!string(t);
assert(a == "Test1");
}
/**
String, or string-like input range, to non-string conversion runs parsing.
$(UL
$(LI When the source is a wide string, it is first converted to a narrow
string and then parsed.)
$(LI When the source is a narrow string, normal text parsing occurs.))
*/
private T toImpl(T, S)(S value)
if (isInputRange!S && isSomeChar!(ElementEncodingType!S) &&
!isExactSomeString!T && is(typeof(parse!T(value))) &&
// issue 20539
!(is(T == enum) && is(typeof(value == OriginalType!T.init)) && !isSomeString!(OriginalType!T)))
{
scope(success)
{
if (!value.empty)
{
throw convError!(S, T)(value);
}
}
return parse!T(value);
}
/// ditto
private T toImpl(T, S)(S value, uint radix)
if (isSomeFiniteCharInputRange!S &&
isIntegral!T && is(typeof(parse!T(value, radix))))
{
scope(success)
{
if (!value.empty)
{
throw convError!(S, T)(value);
}
}
return parse!T(value, radix);
}
@safe pure unittest
{
// https://issues.dlang.org/show_bug.cgi?id=6668
// ensure no collaterals thrown
try { to!uint("-1"); }
catch (ConvException e) { assert(e.next is null); }
}
@safe pure unittest
{
static foreach (Str; AliasSeq!(string, wstring, dstring))
{{
Str a = "123";
assert(to!int(a) == 123);
assert(to!double(a) == 123);
}}
// https://issues.dlang.org/show_bug.cgi?id=6255
auto n = to!int("FF", 16);
assert(n == 255);
}
// https://issues.dlang.org/show_bug.cgi?id=15800
@safe unittest
{
import std.utf : byCodeUnit, byChar, byWchar, byDchar;
assert(to!int(byCodeUnit("10")) == 10);
assert(to!int(byCodeUnit("10"), 10) == 10);
assert(to!int(byCodeUnit("10"w)) == 10);
assert(to!int(byCodeUnit("10"w), 10) == 10);
assert(to!int(byChar("10")) == 10);
assert(to!int(byChar("10"), 10) == 10);
assert(to!int(byWchar("10")) == 10);
assert(to!int(byWchar("10"), 10) == 10);
assert(to!int(byDchar("10")) == 10);
assert(to!int(byDchar("10"), 10) == 10);
}
/**
String, or string-like input range, to char type not directly
supported by parse parses the first dchar of the source.
Returns: the first code point of the input range, converted
to type T.
Throws: ConvException if the input range contains more than
a single code point, or if the code point does not
fit into a code unit of type T.
*/
private T toImpl(T, S)(S value)
if (isSomeChar!T && !is(typeof(parse!T(value))) &&
is(typeof(parse!dchar(value))))
{
import std.utf : encode;
immutable dchar codepoint = parse!dchar(value);
if (!value.empty)
throw new ConvException(convFormat("Cannot convert \"%s\" to %s because it " ~
"contains more than a single code point.",
value, T.stringof));
T[dchar.sizeof / T.sizeof] decodedCodepoint;
if (encode(decodedCodepoint, codepoint) != 1)
throw new ConvException(convFormat("First code point '%s' of \"%s\" does not fit into a " ~
"single %s code unit", codepoint, value, T.stringof));
return decodedCodepoint[0];
}
@safe pure unittest
{
import std.exception : assertThrown;
assert(toImpl!wchar("a") == 'a');
assert(toImpl!char("a"d) == 'a');
assert(toImpl!char("a"w) == 'a');
assert(toImpl!wchar("a"d) == 'a');
assertThrown!ConvException(toImpl!wchar("ab"));
assertThrown!ConvException(toImpl!char("😃"d));
}
/**
Convert a value that is implicitly convertible to the enum base type
into an Enum value. If the value does not match any enum member values
a ConvException is thrown.
Enums with floating-point or string base types are not supported.
*/
private T toImpl(T, S)(S value)
if (is(T == enum) && !is(S == enum)
&& is(typeof(value == OriginalType!T.init))
&& !isFloatingPoint!(OriginalType!T) && !isSomeString!(OriginalType!T))
{
foreach (Member; EnumMembers!T)
{
if (Member == value)
return Member;
}
throw new ConvException(convFormat("Value (%s) does not match any member value of enum '%s'", value, T.stringof));
}
@safe pure unittest
{
import std.exception;
enum En8143 : int { A = 10, B = 20, C = 30, D = 20 }
enum En8143[][] m3 = to!(En8143[][])([[10, 30], [30, 10]]);
static assert(m3 == [[En8143.A, En8143.C], [En8143.C, En8143.A]]);
En8143 en1 = to!En8143(10);
assert(en1 == En8143.A);
assertThrown!ConvException(to!En8143(5)); // matches none
En8143[][] m1 = to!(En8143[][])([[10, 30], [30, 10]]);
assert(m1 == [[En8143.A, En8143.C], [En8143.C, En8143.A]]);
}
// https://issues.dlang.org/show_bug.cgi?id=20539
@safe pure unittest
{
import std.exception : assertNotThrown;
// To test that the bug is fixed it is required that the struct is static,
// otherwise, the frame pointer makes the test pass even if the bug is not
// fixed.
static struct A
{
auto opEquals(U)(U)
{
return true;
}
}
enum ColorA
{
red = A()
}
assertNotThrown("xxx".to!ColorA);
// This is a guard for the future.
struct B
{
auto opEquals(U)(U)
{
return true;
}
}
enum ColorB
{
red = B()
}
assertNotThrown("xxx".to!ColorB);
}
/***************************************************************
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 core.math : abs = fabs;
import std.math.exponential : log2;
import std.math.rounding : trunc;
static assert(isFloatingPoint!Source);
static assert(isIntegral!Target);
// If value >= 2 ^^ (real.mant_dig - 1), the number is an integer
// and adding 0.5 won't work, but we allready know, that we do
// not have to round anything.
if (log2(abs(value)) >= real.mant_dig - 1)
return to!Target(value);
return to!Target(trunc(value + (value < 0 ? -0.5L : 0.5L)));
}
}
///
@safe unittest
{
assert(roundTo!int(3.14) == 3);
assert(roundTo!int(3.49) == 3);
assert(roundTo!int(3.5) == 4);
assert(roundTo!int(3.999) == 4);
assert(roundTo!int(-3.14) == -3);
assert(roundTo!int(-3.49) == -3);
assert(roundTo!int(-3.5) == -4);
assert(roundTo!int(-3.999) == -4);
assert(roundTo!(const int)(to!(const double)(-3.999)) == -4);
}
@safe unittest
{
import std.exception;
// boundary values
static foreach (Int; AliasSeq!(byte, ubyte, short, ushort, int, uint))
{
assert(roundTo!Int(Int.min - 0.4L) == Int.min);
assert(roundTo!Int(Int.max + 0.4L) == Int.max);
assertThrown!ConvOverflowException(roundTo!Int(Int.min - 0.5L));
assertThrown!ConvOverflowException(roundTo!Int(Int.max + 0.5L));
}
}
@safe unittest
{
import std.exception;
assertThrown!ConvException(roundTo!int(float.init));
auto ex = collectException(roundTo!int(float.init));
assert(ex.msg == "Input was NaN");
}
// https://issues.dlang.org/show_bug.cgi?id=5232
@safe pure unittest
{
static if (real.mant_dig >= 64)
ulong maxOdd = ulong.max;
else
ulong maxOdd = (1UL << real.mant_dig) - 1;
real r1 = maxOdd;
assert(roundTo!ulong(r1) == maxOdd);
real r2 = maxOdd - 1;
assert(roundTo!ulong(r2) == maxOdd - 1);
real r3 = maxOdd / 2;
assert(roundTo!ulong(r3) == maxOdd / 2);
real r4 = maxOdd / 2 + 1;
assert(roundTo!ulong(r4) == maxOdd / 2 + 1);
// this is only an issue on computers where real == double
long l = -((1L << double.mant_dig) - 1);
double r5 = l;
assert(roundTo!long(r5) == l);
}
/**
The `parse` family of functions works quite like the `to`
family, except that:
$(OL
$(LI It only works with character ranges as input.)
$(LI It takes the input by reference. (This means that rvalues - such
as string literals - are not accepted: use `to` instead.))
$(LI It advances the input to the position following the conversion.)
$(LI It does not throw if it could not convert the entire input.))
This overload converts a character input range to a `bool`.
Params:
Target = the type to convert to
source = the lvalue of an $(REF_ALTTEXT input range, isInputRange, std,range,primitives)
doCount = the flag for deciding to report the number of consumed characters
Returns:
$(UL
$(LI A `bool` if `doCount` is set to `No.doCount`)
$(LI A `tuple` containing a `bool` and a `size_t` if `doCount` is set to `Yes.doCount`))
Throws:
A $(LREF ConvException) if the range does not represent a `bool`.
Note:
All character input range conversions using $(LREF to) are forwarded
to `parse` and do not require lvalues.
*/
auto parse(Target, Source, Flag!"doCount" doCount = No.doCount)(ref Source source)
if (isInputRange!Source &&
isSomeChar!(ElementType!Source) &&
is(immutable Target == immutable bool))
{
import std.ascii : toLower;
static if (isNarrowString!Source)
{
import std.string : representation;
auto s = source.representation;
}
else
{
alias s = source;
}
if (!s.empty)
{
auto c1 = toLower(s.front);
bool result = c1 == 't';
if (result || c1 == 'f')
{
s.popFront();
foreach (c; result ? "rue" : "alse")
{
if (s.empty || toLower(s.front) != c)
goto Lerr;
s.popFront();
}
static if (isNarrowString!Source)
source = cast(Source) s;
static if (doCount)
{
if (result)
return tuple!("data", "count")(result, 4);
return tuple!("data", "count")(result, 5);
}
else
{
return result;
}
}
}
Lerr:
throw parseError("bool should be case-insensitive 'true' or 'false'");
}
///
@safe unittest
{
import std.typecons : Flag, Yes, No;
auto s = "true";
bool b = parse!bool(s);
assert(b);
auto s2 = "true";
bool b2 = parse!(bool, string, No.doCount)(s2);
assert(b2);
auto s3 = "true";
auto b3 = parse!(bool, string, Yes.doCount)(s3);
assert(b3.data && b3.count == 4);
auto s4 = "falSE";
auto b4 = parse!(bool, string, Yes.doCount)(s4);
assert(!b4.data && b4.count == 5);
}
@safe unittest
{
import std.algorithm.comparison : equal;
import std.exception;
struct InputString
{
string _s;
@property auto front() { return _s.front; }
@property bool empty() { return _s.empty; }
void popFront() { _s.popFront(); }
}
auto s = InputString("trueFALSETrueFalsetRUEfALSE");
assert(parse!bool(s) == true);
assert(s.equal("FALSETrueFalsetRUEfALSE"));
assert(parse!bool(s) == false);
assert(s.equal("TrueFalsetRUEfALSE"));
assert(parse!bool(s) == true);
assert(s.equal("FalsetRUEfALSE"));
assert(parse!bool(s) == false);
assert(s.equal("tRUEfALSE"));
assert(parse!bool(s) == true);
assert(s.equal("fALSE"));
assert(parse!bool(s) == false);
assert(s.empty);
foreach (ss; ["tfalse", "ftrue", "t", "f", "tru", "fals", ""])
{
s = InputString(ss);
assertThrown!ConvException(parse!bool(s));
}
}
/**
Parses a character $(REF_ALTTEXT input range, isInputRange, std,range,primitives)
to an integral value.
Params:
Target = the integral type to convert to
s = the lvalue of an input range
doCount = the flag for deciding to report the number of consumed characters
Returns:
$(UL
$(LI A number of type `Target` if `doCount` is set to `No.doCount`)
$(LI A `tuple` containing a number of type `Target` and a `size_t` if `doCount` is set to `Yes.doCount`))
Throws:
A $(LREF ConvException) If an overflow occurred during conversion or
if no character of the input was meaningfully converted.
*/
auto parse(Target, Source, Flag!"doCount" doCount = No.doCount)(ref scope 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), Source, Yes.doCount)(s);
auto result = (() @trusted => cast (Target) v.data)();
if (result == v.data)
{
static if (doCount)
{
return tuple!("data", "count")(result, v.count);
}
else
{
return result;
}
}
throw new ConvOverflowException("Overflow in integral conversion");
}
else
{
// int or larger types
static if (Target.min < 0)
bool sign = false;
else
enum bool sign = false;
enum char maxLastDigit = Target.min < 0 ? 7 : 5;
uint c;
static if (isNarrowString!Source)
{
import std.string : representation;
auto source = s.representation;
}
else
{
alias source = s;
}
size_t count = 0;
if (source.empty)
goto Lerr;
c = source.front;
static if (Target.min < 0)
{
switch (c)
{
case '-':
sign = true;
goto case '+';
case '+':
++count;
source.popFront();
if (source.empty)
goto Lerr;
c = source.front;
break;
default:
break;
}
}
c -= '0';
if (c <= 9)
{
Target v = cast(Target) c;
++count;
source.popFront();
while (!source.empty)
{
c = cast(typeof(c)) (source.front - '0');
if (c > 9)
break;
if (v >= 0 && (v < Target.max/10 ||
(v == Target.max/10 && c <= maxLastDigit + sign)))
{
// Note: `v` can become negative here in case of parsing
// the most negative value:
v = cast(Target) (v * 10 + c);
++count;
source.popFront();
}
else
throw new ConvOverflowException("Overflow in integral conversion");
}
if (sign)
v = -v;
static if (isNarrowString!Source)
s = s[$-source.length..$];
static if (doCount)
{
return tuple!("data", "count")(v, count);
}
else
{
return v;
}
}
Lerr:
static if (isNarrowString!Source)
throw convError!(Source, Target)(cast(Source) source);
else
throw convError!(Source, Target)(source);
}
}
///
@safe pure unittest
{
import std.typecons : Flag, Yes, No;
string s = "123";
auto a = parse!int(s);
assert(a == 123);
string s1 = "123";
auto a1 = parse!(int, string, Yes.doCount)(s1);
assert(a1.data == 123 && a1.count == 3);
// parse only accepts lvalues
static assert(!__traits(compiles, parse!int("123")));
}
///
@safe pure unittest
{
import std.string : tr;
import std.typecons : Flag, Yes, No;
string test = "123 \t 76.14";
auto a = parse!uint(test);
assert(a == 123);
assert(test == " \t 76.14"); // parse bumps string
test = tr(test, " \t\n\r", "", "d"); // skip ws
assert(test == "76.14");
auto b = parse!double(test);
assert(b == 76.14);
assert(test == "");
string test2 = "123 \t 76.14";
auto a2 = parse!(uint, string, Yes.doCount)(test2);
assert(a2.data == 123 && a2.count == 3);
assert(test2 == " \t 76.14");// parse bumps string
test2 = tr(test2, " \t\n\r", "", "d"); // skip ws
assert(test2 == "76.14");
auto b2 = parse!(double, string, Yes.doCount)(test2);
assert(b2.data == 76.14 && b2.count == 5);
assert(test2 == "");
}
@safe pure unittest
{
static foreach (Int; AliasSeq!(byte, ubyte, short, ushort, int, uint, long, ulong))
{
{
assert(to!Int("0") == 0);
static if (isSigned!Int)
{
assert(to!Int("+0") == 0);
assert(to!Int("-0") == 0);
}
}
static if (Int.sizeof >= byte.sizeof)
{
assert(to!Int("6") == 6);
assert(to!Int("23") == 23);
assert(to!Int("68") == 68);
assert(to!Int("127") == 0x7F);
static if (isUnsigned!Int)
{
assert(to!Int("255") == 0xFF);
}
static if (isSigned!Int)
{
assert(to!Int("+6") == 6);
assert(to!Int("+23") == 23);
assert(to!Int("+68") == 68);
assert(to!Int("+127") == 0x7F);
assert(to!Int("-6") == -6);
assert(to!Int("-23") == -23);
assert(to!Int("-68") == -68);
assert(to!Int("-128") == -128);
}
}
static if (Int.sizeof >= short.sizeof)
{
assert(to!Int("468") == 468);
assert(to!Int("32767") == 0x7FFF);
static if (isUnsigned!Int)
{
assert(to!Int("65535") == 0xFFFF);
}
static if (isSigned!Int)
{
assert(to!Int("+468") == 468);
assert(to!Int("+32767") == 0x7FFF);
assert(to!Int("-468") == -468);
assert(to!Int("-32768") == -32768);
}
}
static if (Int.sizeof >= int.sizeof)
{
assert(to!Int("2147483647") == 0x7FFFFFFF);
static if (isUnsigned!Int)
{
assert(to!Int("4294967295") == 0xFFFFFFFF);
}
static if (isSigned!Int)
{
assert(to!Int("+2147483647") == 0x7FFFFFFF);
assert(to!Int("-2147483648") == -2147483648);
}
}
static if (Int.sizeof >= long.sizeof)
{
assert(to!Int("9223372036854775807") == 0x7FFFFFFFFFFFFFFF);
static if (isUnsigned!Int)
{
assert(to!Int("18446744073709551615") == 0xFFFFFFFFFFFFFFFF);
}
static if (isSigned!Int)
{
assert(to!Int("+9223372036854775807") == 0x7FFFFFFFFFFFFFFF);
assert(to!Int("-9223372036854775808") == 0x8000000000000000);
}
}
}
}
@safe pure unittest
{
import std.exception;
immutable string[] errors =
[
"",
"-",
"+",
"-+",
" ",
" 0",
"0 ",
"- 0",
"1-",
"xx",
"123h",
"-+1",
"--1",
"+-1",
"++1",
];
immutable string[] unsignedErrors =
[
"+5",
"-78",
];
// parsing error check
static foreach (Int; AliasSeq!(byte, ubyte, short, ushort, int, uint, long, ulong))
{
foreach (j, s; errors)
assertThrown!ConvException(to!Int(s));
// parse!SomeUnsigned cannot parse head sign.
static if (isUnsigned!Int)
{
foreach (j, s; unsignedErrors)
assertThrown!ConvException(to!Int(s));
}
}
immutable string[] positiveOverflowErrors =
[
"128", // > byte.max
"256", // > ubyte.max
"32768", // > short.max
"65536", // > ushort.max
"2147483648", // > int.max
"4294967296", // > uint.max
"9223372036854775808", // > long.max
"18446744073709551616", // > ulong.max
];
// positive overflow check
static foreach (i, Int; AliasSeq!(byte, ubyte, short, ushort, int, uint, long, ulong))
{
foreach (j, s; positiveOverflowErrors[i..$])
assertThrown!ConvOverflowException(to!Int(s));
}
immutable string[] negativeOverflowErrors =
[
"-129", // < byte.min
"-32769", // < short.min
"-2147483649", // < int.min
"-9223372036854775809", // < long.min
];
// negative overflow check
static foreach (i, Int; AliasSeq!(byte, short, int, long))
{
foreach (j, s; negativeOverflowErrors[i..$])
assertThrown!ConvOverflowException(to!Int(s));
}
}
@safe pure unittest
{
void checkErrMsg(string input, dchar charInMsg, dchar charNotInMsg)
{
try
{
int x = input.to!int();
assert(false, "Invalid conversion did not throw");
}
catch (ConvException e)
{
// Ensure error message contains failing character, not the character
// beyond.
import std.algorithm.searching : canFind;
assert( e.msg.canFind(charInMsg) &&
!e.msg.canFind(charNotInMsg));
}
catch (Exception e)
{
assert(false, "Did not throw ConvException");
}
}
checkErrMsg("@$", '@', '$');
checkErrMsg("@$123", '@', '$');
checkErrMsg("1@$23", '@', '$');
checkErrMsg("1@$", '@', '$');
checkErrMsg("1@$2", '@', '$');
checkErrMsg("12@$", '@', '$');
}
@safe pure unittest
{
import std.exception;
assertCTFEable!({ string s = "1234abc"; assert(parse! int(s) == 1234 && s == "abc"); });
assertCTFEable!({ string s = "-1234abc"; assert(parse! int(s) == -1234 && s == "abc"); });
assertCTFEable!({ string s = "1234abc"; assert(parse!uint(s) == 1234 && s == "abc"); });
assertCTFEable!({ string s = "1234abc"; assert(parse!( int, string, Yes.doCount)(s) ==
tuple( 1234, 4) && s == "abc"); });
assertCTFEable!({ string s = "-1234abc"; assert(parse!( int, string, Yes.doCount)(s) ==
tuple(-1234, 5) && s == "abc"); });
assertCTFEable!({ string s = "1234abc"; assert(parse!(uint, string, Yes.doCount)(s) ==
tuple( 1234 ,4) && s == "abc"); });
}
// https://issues.dlang.org/show_bug.cgi?id=13931
@safe pure unittest
{
import std.exception;
assertThrown!ConvOverflowException("-21474836480".to!int());
assertThrown!ConvOverflowException("-92233720368547758080".to!long());
}
// https://issues.dlang.org/show_bug.cgi?id=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);
auto input2 = StrInputRange("777");
assert(parse!(int, StrInputRange, Yes.doCount)(input2) == tuple(777, 3));
}
// https://issues.dlang.org/show_bug.cgi?id=9621
@safe pure unittest
{
string s1 = "[ \"\\141\", \"\\0\", \"\\41\", \"\\418\" ]";
assert(parse!(string[])(s1) == ["a", "\0", "!", "!8"]);
s1 = "[ \"\\141\", \"\\0\", \"\\41\", \"\\418\" ]";
auto len = s1.length;
assert(parse!(string[], string, Yes.doCount)(s1) == tuple(["a", "\0", "!", "!8"], len));
}
/// ditto
auto parse(Target, Source, Flag!"doCount" doCount = No.doCount)(ref Source source, uint radix)
if (isSomeChar!(ElementType!Source) &&
isIntegral!Target && !is(Target == enum))
in
{
assert(radix >= 2 && radix <= 36, "radix must be in range [2,36]");
}
do
{
import core.checkedint : mulu, addu;
import std.exception : enforce;
if (radix == 10)
{
return parse!(Target, Source, doCount)(source);
}
enforce!ConvException(!source.empty, "s must not be empty in integral parse");
immutable uint beyond = (radix < 10 ? '0' : 'a'-10) + radix;
Target v = 0;
static if (isNarrowString!Source)
{
import std.string : representation;
scope s = source.representation;
}
else
{
alias s = source;
}
size_t count = 0;
auto found = false;
do
{
uint c = s.front;
if (c < '0')
break;
if (radix < 10)
{
if (c >= beyond)
break;
}
else
{
if (c > '9')
{
c |= 0x20;//poorman's tolower
if (c < 'a' || c >= beyond)
break;
c -= 'a'-10-'0';
}
}
bool overflow = false;
auto nextv = v.mulu(radix, overflow).addu(c - '0', overflow);
enforce!ConvOverflowException(!overflow && nextv <= Target.max, "Overflow in integral conversion");
v = cast(Target) nextv;
++count;
s.popFront();
found = true;
} while (!s.empty);
if (!found)
{
static if (isNarrowString!Source)
throw convError!(Source, Target)(cast(Source) source);
else
throw convError!(Source, Target)(source);
}
static if (isNarrowString!Source)
source = source[$ - s.length .. $];
static if (doCount)
{
return tuple!("data", "count")(v, count);
}
else
{
return v;
}
}
@safe pure unittest
{
string s; // parse doesn't accept rvalues
foreach (i; 2 .. 37)
{
assert(parse!int(s = "0", i) == 0);
assert(parse!int(s = "1", i) == 1);
assert(parse!byte(s = "10", i) == i);
assert(parse!(int, string, Yes.doCount)(s = "0", i) == tuple(0, 1));
assert(parse!(int, string, Yes.doCount)(s = "1", i) == tuple(1, 1));
assert(parse!(byte, string, Yes.doCount)(s = "10", i) == tuple(i, 2));
}
assert(parse!int(s = "0011001101101", 2) == 0b0011001101101);
assert(parse!int(s = "765", 8) == octal!765);
assert(parse!int(s = "000135", 8) == octal!"135");
assert(parse!int(s = "fCDe", 16) == 0xfcde);
// https://issues.dlang.org/show_bug.cgi?id=6609
assert(parse!int(s = "-42", 10) == -42);
assert(parse!ubyte(s = "ff", 16) == 0xFF);
}
// https://issues.dlang.org/show_bug.cgi?id=7302
@safe pure unittest
{
import std.range : cycle;
auto r = cycle("2A!");
auto u = parse!uint(r, 16);
assert(u == 42);
assert(r.front == '!');
auto r2 = cycle("2A!");
auto u2 = parse!(uint, typeof(r2), Yes.doCount)(r2, 16);
assert(u2.data == 42 && u2.count == 2);
assert(r2.front == '!');
}
// https://issues.dlang.org/show_bug.cgi?id=13163
@safe pure unittest
{
import std.exception;
foreach (s; ["fff", "123"])
assertThrown!ConvOverflowException(s.parse!ubyte(16));
}
// https://issues.dlang.org/show_bug.cgi?id=17282
@safe pure unittest
{
auto str = "0=\x00\x02\x55\x40&\xff\xf0\n\x00\x04\x55\x40\xff\xf0~4+10\n";
assert(parse!uint(str) == 0);
str = "0=\x00\x02\x55\x40&\xff\xf0\n\x00\x04\x55\x40\xff\xf0~4+10\n";
assert(parse!(uint, string, Yes.doCount)(str) == tuple(0, 1));
}
// https://issues.dlang.org/show_bug.cgi?id=18248
@safe pure unittest
{
import std.exception : assertThrown;
auto str = ";";
assertThrown(str.parse!uint(16));
assertThrown(str.parse!(uint, string, Yes.doCount)(16));
}
/**
* Takes a string representing an `enum` type and returns that type.
*
* Params:
* Target = the `enum` type to convert to
* s = the lvalue of the range to _parse
* doCount = the flag for deciding to report the number of consumed characters
*
* Returns:
$(UL
* $(LI An `enum` of type `Target` if `doCount` is set to `No.doCount`)
* $(LI A `tuple` containing an `enum` of type `Target` and a `size_t` if `doCount` is set to `Yes.doCount`))
*
* Throws:
* A $(LREF ConvException) if type `Target` does not have a member
* represented by `s`.
*/
auto parse(Target, Source, Flag!"doCount" doCount = No.doCount)(ref Source s)
if (isSomeString!Source && !is(Source == enum) &&
is(Target == enum))
{
import std.algorithm.searching : startsWith;
import std.traits : Unqual, EnumMembers;
Unqual!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 .. $];
static if (doCount)
{
return tuple!("data", "count")(result, longest_match);
}
else
{
return result;
}
}
throw new ConvException(
Target.stringof ~ " does not have a member named '"
~ to!string(s) ~ "'");
}
///
@safe unittest
{
import std.typecons : Flag, Yes, No, tuple;
enum EnumType : bool { a = true, b = false, c = a }
auto str = "a";
assert(parse!EnumType(str) == EnumType.a);
auto str2 = "a";
assert(parse!(EnumType, string, No.doCount)(str2) == EnumType.a);
auto str3 = "a";
assert(parse!(EnumType, string, Yes.doCount)(str3) == tuple(EnumType.a, 1));
}
@safe unittest
{
import std.exception;
enum EB : bool { a = true, b = false, c = a }
enum EU { a, b, c }
enum EI { a = -1, b = 0, c = 1 }
enum EF : real { a = 1.414, b = 1.732, c = 2.236 }
enum EC : char { a = 'a', b = 'b', c = 'c' }
enum ES : string { a = "aaa", b = "bbb", c = "ccc" }
static foreach (E; AliasSeq!(EB, EU, EI, EF, EC, ES))
{
assert(to!E("a"c) == E.a);
assert(to!E("b"w) == E.b);
assert(to!E("c"d) == E.c);
assert(to!(const E)("a") == E.a);
assert(to!(immutable E)("a") == E.a);
assert(to!(shared E)("a") == E.a);
assertThrown!ConvException(to!E("d"));
}
}
// https://issues.dlang.org/show_bug.cgi?id=4744
@safe pure unittest
{
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");
auto s2 = "member1111";
assert(parse!(A, string, No.doCount)(s2) == A.member111 && s2 == "1");
auto s3 = "member1111";
assert(parse!(A, string, Yes.doCount)(s3) == tuple(A.member111, 9) && s3 == "1");
}
/**
* Parses a character range to a floating point number.
*
* Params:
* Target = a floating point type
* source = the lvalue of the range to _parse
* doCount = the flag for deciding to report the number of consumed characters
*
* Returns:
$(UL
* $(LI A floating point number of type `Target` if `doCount` is set to `No.doCount`)
* $(LI A `tuple` containing a floating point number of·type `Target` and a `size_t`
* if `doCount` is set to `Yes.doCount`))
*
* Throws:
* A $(LREF ConvException) if `source` is empty, if no number could be
* parsed, or if an overflow occurred.
*/
auto parse(Target, Source, Flag!"doCount" doCount = No.doCount)(ref Source source)
if (isInputRange!Source && isSomeChar!(ElementType!Source) && !is(Source == enum) &&
isFloatingPoint!Target && !is(Target == enum))
{
import std.ascii : isDigit, isAlpha, toLower, toUpper, isHexDigit;
import std.exception : enforce;
static if (isNarrowString!Source)
{
import std.string : representation;
scope p = source.representation;
}
else
{
alias p = source;
}
void advanceSource()
{
static if (isNarrowString!Source)
source = source[$ - p.length .. $];
}
static immutable real[14] negtab =
[ 1e-4096L,1e-2048L,1e-1024L,1e-512L,1e-256L,1e-128L,1e-64L,1e-32L,
1e-16L,1e-8L,1e-4L,1e-2L,1e-1L,1.0L ];
static immutable real[13] postab =
[ 1e+4096L,1e+2048L,1e+1024L,1e+512L,1e+256L,1e+128L,1e+64L,1e+32L,
1e+16L,1e+8L,1e+4L,1e+2L,1e+1L ];
ConvException bailOut()(string msg = null, string fn = __FILE__, size_t ln = __LINE__)
{
if (msg == null)
msg = "Floating point conversion error";
return new ConvException(text(msg, " for input \"", source, "\"."), fn, ln);
}
enforce(!p.empty, bailOut());
size_t count = 0;
bool sign = false;
switch (p.front)
{
case '-':
sign = true;
++count;
p.popFront();
enforce(!p.empty, bailOut());
if (toLower(p.front) == 'i')
goto case 'i';
break;
case '+':
++count;
p.popFront();
enforce(!p.empty, bailOut());
break;
case 'i': case 'I':
// inf
++count;
p.popFront();
enforce(!p.empty && toUpper(p.front) == 'N',
bailOut("error converting input to floating point"));
++count;
p.popFront();
enforce(!p.empty && toUpper(p.front) == 'F',
bailOut("error converting input to floating point"));
// skip past the last 'f'
++count;
p.popFront();
advanceSource();
static if (doCount)
{
return tuple!("data", "count")(sign ? -Target.infinity : Target.infinity, count);
}
else
{
return sign ? -Target.infinity : Target.infinity;
}
default: {}
}
bool isHex = false;
bool startsWithZero = p.front == '0';
if (startsWithZero)
{
++count;
p.popFront();
if (p.empty)
{
advanceSource();
static if (doCount)
{
return tuple!("data", "count")(cast (Target) (sign ? -0.0 : 0.0), count);
}
else
{
return sign ? -0.0 : 0.0;
}
}
isHex = p.front == 'x' || p.front == 'X';
if (isHex)
{
++count;
p.popFront();
}
}
else if (toLower(p.front) == 'n')
{
// nan
++count;
p.popFront();
enforce(!p.empty && toUpper(p.front) == 'A',
bailOut("error converting input to floating point"));
++count;
p.popFront();
enforce(!p.empty && toUpper(p.front) == 'N',
bailOut("error converting input to floating point"));
// skip past the last 'n'
++count;
p.popFront();
advanceSource();
static if (doCount)
{
return tuple!("data", "count")(Target.nan, count);
}
else
{
return typeof(return).nan;
}
}
/*
* The following algorithm consists of 2 steps:
* 1) parseDigits processes the textual input into msdec and possibly
* lsdec/msscale variables, followed by the exponent parser which sets
* exp below.
* Hex: input is 0xaaaaa...p+000... where aaaa is the mantissa in hex
* and 000 is the exponent in decimal format with base 2.
* Decimal: input is 0.00333...p+000... where 0.0033 is the mantissa
* in decimal and 000 is the exponent in decimal format with base 10.
* 2) Convert msdec/lsdec and exp into native real format
*/
real ldval = 0.0;
char dot = 0; /* if decimal point has been seen */
int exp = 0;
ulong msdec = 0, lsdec = 0;
ulong msscale = 1;
bool sawDigits;
enum { hex, decimal }
// sets msdec, lsdec/msscale, and sawDigits by parsing the mantissa digits
void parseDigits(alias FloatFormat)()
{
static if (FloatFormat == hex)
{
enum uint base = 16;
enum ulong msscaleMax = 0x1000_0000_0000_0000UL; // largest power of 16 a ulong holds
enum ubyte expIter = 4; // iterate the base-2 exponent by 4 for every hex digit
alias checkDigit = isHexDigit;
/*
* convert letter to binary representation: First clear bit
* to convert lower space chars to upperspace, then -('A'-10)
* converts letter A to 10, letter B to 11, ...
*/
alias convertDigit = (int x) => isAlpha(x) ? ((x & ~0x20) - ('A' - 10)) : x - '0';
sawDigits = false;
}
else static if (FloatFormat == decimal)
{
enum uint base = 10;
enum ulong msscaleMax = 10_000_000_000_000_000_000UL; // largest power of 10 a ulong holds
enum ubyte expIter = 1; // iterate the base-10 exponent once for every decimal digit
alias checkDigit = isDigit;
alias convertDigit = (int x) => x - '0';
// Used to enforce that any mantissa digits are present
sawDigits = startsWithZero;
}
else
static assert(false, "Unrecognized floating-point format used.");
while (!p.empty)
{
int i = p.front;
while (checkDigit(i))
{
sawDigits = true; /* must have at least 1 digit */
i = convertDigit(i);
if (msdec < (ulong.max - base)/base)
{
// For base 16: Y = ... + y3*16^3 + y2*16^2 + y1*16^1 + y0*16^0
msdec = msdec * base + i;
}
else if (msscale < msscaleMax)
{
lsdec = lsdec * base + i;
msscale *= base;
}
else
{
exp += expIter;
}
exp -= dot;
++count;
p.popFront();
if (p.empty)
break;
i = p.front;
if (i == '_')
{
++count;
p.popFront();
if (p.empty)
break;
i = p.front;
}
}
if (i == '.' && !dot)
{
++count;
p.popFront();
dot += expIter;
}
else
break;
}
// Have we seen any mantissa digits so far?
enforce(sawDigits, bailOut("no digits seen"));
static if (FloatFormat == hex)
enforce(!p.empty && (p.front == 'p' || p.front == 'P'),
bailOut("Floating point parsing: exponent is required"));
}
if (isHex)
parseDigits!hex;
else
parseDigits!decimal;
if (isHex || (!p.empty && (p.front == 'e' || p.front == 'E')))
{
char sexp = 0;
int e = 0;
++count;
p.popFront();
enforce(!p.empty, new ConvException("Unexpected end of input"));
switch (p.front)
{
case '-': sexp++;
goto case;
case '+': ++count;
p.popFront();
break;
default: {}
}
sawDigits = false;
while (!p.empty && isDigit(p.front))
{
if (e < 0x7FFFFFFF / 10 - 10) // prevent integer overflow
{
e = e * 10 + p.front - '0';
}
++count;
p.popFront();
sawDigits = true;
}
exp += (sexp) ? -e : e;
enforce(sawDigits, new ConvException("No digits seen."));
}
ldval = msdec;
if (msscale != 1) /* if stuff was accumulated in lsdec */
ldval = ldval * msscale + lsdec;
if (isHex)
{
import core.math : ldexp;
// Exponent is power of 2, not power of 10
ldval = ldexp(ldval,exp);
}
else if (ldval)
{
uint u = 0;
int pow = 4096;
while (exp > 0)
{
while (exp >= pow)
{
ldval *= postab[u];
exp -= pow;
}
pow >>= 1;
u++;
}
while (exp < 0)
{
while (exp <= -pow)
{
ldval *= negtab[u];
enforce(ldval != 0, new ConvException("Range error"));
exp += pow;
}
pow >>= 1;
u++;
}
}
// if overflow occurred
enforce(ldval != real.infinity, new ConvException("Range error"));
advanceSource();
static if (doCount)
{
return tuple!("data", "count")(cast (Target) (sign ? -ldval : ldval), count);
}
else
{
return cast (Target) (sign ? -ldval : ldval);
}
}
///
@safe unittest
{
import std.math.operations : isClose;
import std.math.traits : isNaN, isInfinity;
import std.typecons : Flag, Yes, No;
auto str = "123.456";
assert(parse!double(str).isClose(123.456));
auto str2 = "123.456";
assert(parse!(double, string, No.doCount)(str2).isClose(123.456));
auto str3 = "123.456";
auto r = parse!(double, string, Yes.doCount)(str3);
assert(r.data.isClose(123.456));
assert(r.count == 7);
auto str4 = "-123.456";
r = parse!(double, string, Yes.doCount)(str4);
assert(r.data.isClose(-123.456));
assert(r.count == 8);
auto str5 = "+123.456";
r = parse!(double, string, Yes.doCount)(str5);
assert(r.data.isClose(123.456));
assert(r.count == 8);
auto str6 = "inf0";
r = parse!(double, string, Yes.doCount)(str6);
assert(isInfinity(r.data) && r.count == 3 && str6 == "0");
auto str7 = "-0";
auto r2 = parse!(float, string, Yes.doCount)(str7);
assert(r2.data.isClose(0.0) && r2.count == 2);
auto str8 = "nan";
auto r3 = parse!(real, string, Yes.doCount)(str8);
assert(isNaN(r3.data) && r3.count == 3);
}
@safe unittest
{
import std.exception;
import std.math.traits : isNaN, isInfinity;
import std.math.algebraic : 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;
}
static foreach (Float; AliasSeq!(float, double, real))
{
assert(to!Float("123") == Literal!Float(123));
assert(to!Float("+123") == Literal!Float(+123));
assert(to!Float("-123") == Literal!Float(-123));
assert(to!Float("123e2") == Literal!Float(123e2));
assert(to!Float("123e+2") == Literal!Float(123e+2));
assert(to!Float("123e-2") == Literal!Float(123e-2L));
assert(to!Float("123.") == Literal!Float(123.0));
assert(to!Float(".375") == Literal!Float(.375));
assert(to!Float("1.23375E+2") == Literal!Float(1.23375E+2));
assert(to!Float("0") is 0.0);
assert(to!Float("-0") is -0.0);
assert(isNaN(to!Float("nan")));
assertThrown!ConvException(to!Float("\x00"));
}
// min and max
float f = to!float("1.17549e-38");
assert(feq(cast(real) f, cast(real) 1.17549e-38));
assert(feq(cast(real) f, cast(real) float.min_normal));
f = to!float("3.40282e+38");
assert(to!string(f) == to!string(3.40282e+38));
// min and max
double d = to!double("2.22508e-308");
assert(feq(cast(real) d, cast(real) 2.22508e-308));
assert(feq(cast(real) d, cast(real) double.min_normal));
d = to!double("1.79769e+308");
assert(to!string(d) == to!string(1.79769e+308));
assert(to!string(d) == to!string(double.max));
auto z = real.max / 2L;
static assert(is(typeof(z) == real));
assert(!isNaN(z));
assert(!isInfinity(z));
string a = to!string(z);
real b = to!real(a);
string c = to!string(b);
assert(c == a, "\n" ~ c ~ "\n" ~ a);
assert(to!string(to!real(to!string(real.max / 2L))) == to!string(real.max / 2L));
// min and max
real r = to!real(to!string(real.min_normal));
version (NetBSD)
{
// NetBSD notice
// to!string returns 3.3621e-4932L. It is less than real.min_normal and it is subnormal value
// Simple C code
// long double rd = 3.3621e-4932L;
// printf("%Le\n", rd);
// has unexpected result: 1.681050e-4932
//
// Bug report: http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=50937
}
else
{
assert(to!string(r) == to!string(real.min_normal));
}
r = to!real(to!string(real.max));
assert(to!string(r) == to!string(real.max));
real pi = 3.1415926535897932384626433832795028841971693993751L;
string fullPrecision = "3.1415926535897932384626433832795028841971693993751";
assert(feq(parse!real(fullPrecision), pi, 2*real.epsilon));
string fullPrecision2 = "3.1415926535897932384626433832795028841971693993751";
assert(feq(parse!(real, string, No.doCount)(fullPrecision2), pi, 2*real.epsilon));
string fullPrecision3= "3.1415926535897932384626433832795028841971693993751";
auto len = fullPrecision3.length;
auto res = parse!(real, string, Yes.doCount)(fullPrecision3);
assert(feq(res.data, pi, 2*real.epsilon));
assert(res.count == len);
real x = 0x1.FAFAFAFAFAFAFAFAFAFAFAFAFAFAFAFAAFAAFAFAFAFAFAFAFAP-252L;
string full = "0x1.FAFAFAFAFAFAFAFAFAFAFAFAFAFAFAFAAFAAFAFAFAFAFAFAFAP-252";
assert(parse!real(full) == x);
string full2 = "0x1.FAFAFAFAFAFAFAFAFAFAFAFAFAFAFAFAAFAAFAFAFAFAFAFAFAP-252";
assert(parse!(real, string, No.doCount)(full2) == x);
string full3 = "0x1.FAFAFAFAFAFAFAFAFAFAFAFAFAFAFAFAAFAAFAFAFAFAFAFAFAP-252";
auto len2 = full3.length;
assert(parse!(real, string, Yes.doCount)(full3) == tuple(x, len2));
}
// Tests for the double implementation
@system unittest
{
// @system because strtod is not @safe.
import std.math : floatTraits, RealFormat;
static if (floatTraits!real.realFormat == RealFormat.ieeeDouble)
{
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);
s = "0x1A_BCDE_F012_3456p10";
auto len = s.length;
assert(parse!(real, string, Yes.doCount)(s) == tuple(x, len));
//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(isClose(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(isClose(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(isClose(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(isClose(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);
s = "0x1FFFFFFFFFFFFFp-2000";
len = s.length;
assert(parse!(real, string, Yes.doCount)(s) == tuple(x, len));
}
}
@system unittest
{
import core.stdc.errno;
import core.stdc.stdlib;
import std.math : floatTraits, RealFormat;
errno = 0; // In case it was set by another unittest in a different module.
struct longdouble
{
static if (floatTraits!real.realFormat == RealFormat.ieeeQuadruple)
{
ushort[8] value;
}
else static if (floatTraits!real.realFormat == RealFormat.ieeeExtended ||
floatTraits!real.realFormat == RealFormat.ieeeExtended53)
{
ushort[5] value;
}
else static if (floatTraits!real.realFormat == RealFormat.ieeeDouble)
{
ushort[4] value;
}
else
static assert(false, "Not implemented");
}
real ld;
longdouble x;
real ld1;
longdouble x1;
int i;
static if (floatTraits!real.realFormat == RealFormat.ieeeQuadruple)
enum s = "0x1.FFFFFFFFFFFFFFFFFFFFFFFFFFFFp-16382";
else static if (floatTraits!real.realFormat == RealFormat.ieeeExtended)
enum s = "0x1.FFFFFFFFFFFFFFFEp-16382";
else static if (floatTraits!real.realFormat == RealFormat.ieeeExtended53)
enum s = "0x1.FFFFFFFFFFFFFFFEp-16382";
else static if (floatTraits!real.realFormat == RealFormat.ieeeDouble)
enum s = "0x1.FFFFFFFFFFFFFFFEp-1000";
else
static assert(false, "Floating point format for real not supported");
auto s2 = s.idup;
ld = parse!real(s2);
assert(s2.empty);
x = *cast(longdouble *)&ld;
static if (floatTraits!real.realFormat == RealFormat.ieeeExtended)
{
version (CRuntime_Microsoft)
ld1 = 0x1.FFFFFFFFFFFFFFFEp-16382L; // strtold currently mapped to strtod
else
ld1 = strtold(s.ptr, null);
}
else static if (floatTraits!real.realFormat == RealFormat.ieeeExtended53)
ld1 = 0x1.FFFFFFFFFFFFFFFEp-16382L; // strtold rounds to 53 bits.
else
ld1 = strtold(s.ptr, null);
x1 = *cast(longdouble *)&ld1;
assert(x1 == x && ld1 == ld);
assert(!errno);
s2 = "1.0e5";
ld = parse!real(s2);
assert(s2.empty);
x = *cast(longdouble *)&ld;
ld1 = strtold("1.0e5", null);
x1 = *cast(longdouble *)&ld1;
}
@safe pure unittest
{
import std.exception;
// https://issues.dlang.org/show_bug.cgi?id=4959
{
auto s = "0 ";
auto x = parse!double(s);
assert(s == " ");
assert(x == 0.0);
}
{
auto s = "0 ";
auto x = parse!(double, string, Yes.doCount)(s);
assert(s == " ");
assert(x == tuple(0.0, 1));
}
// https://issues.dlang.org/show_bug.cgi?id=3369
assert(to!float("inf") == float.infinity);
assert(to!float("-inf") == -float.infinity);
// https://issues.dlang.org/show_bug.cgi?id=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
// https://issues.dlang.org/show_bug.cgi?id=6258
assertThrown!ConvException(to!real("-"));
assertThrown!ConvException(to!real("in"));
// https://issues.dlang.org/show_bug.cgi?id=7055
assertThrown!ConvException(to!float("INF2"));
//extra stress testing
auto ssOK = ["1.", "1.1.1", "1.e5", "2e1e", "2a", "2e1_1", "3.4_",
"inf", "-inf", "infa", "-infa", "inf2e2", "-inf2e2",
"nan", "-NAN", "+NaN", "-nAna", "NAn2e2", "-naN2e2"];
auto ssKO = ["", " ", "2e", "2e+", "2e-", "2ee", "2e++1", "2e--1", "2e_1",
"+inf", "-in", "I", "+N", "-NaD", "0x3.F"];
foreach (s; ssOK)
parse!double(s);
foreach (s; ssKO)
assertThrown!ConvException(parse!double(s));
}
/**
Parsing one character off a range returns the first element and calls `popFront`.
Params:
Target = the type to convert to
s = the lvalue of an $(REF_ALTTEXT input range, isInputRange, std,range,primitives)
doCount = the flag for deciding to report the number of consumed characters
Returns:
$(UL
$(LI A character of type `Target` if `doCount` is set to `No.doCount`)
$(LI A `tuple` containing a character of type `Target` and a `size_t` if `doCount` is set to `Yes.doCount`))
Throws:
A $(LREF ConvException) if the range is empty.
*/
auto parse(Target, Source, Flag!"doCount" doCount = No.doCount)(ref Source s)
if (isSomeString!Source && !is(Source == enum) &&
staticIndexOf!(immutable Target, immutable dchar, immutable ElementEncodingType!Source) >= 0)
{
if (s.empty)
throw convError!(Source, Target)(s);
static if (is(immutable Target == immutable dchar))
{
Target result = s.front;
s.popFront();
static if (doCount)
{
return tuple!("data", "count")(result, 1);
}
else
{
return result;
}
}
else
{
// Special case: okay so parse a Char off a Char[]
Target result = s[0];
s = s[1 .. $];
static if (doCount)
{
return tuple!("data", "count")(result, 1);
}
else
{
return result;
}
}
}
@safe pure unittest
{
static foreach (Str; AliasSeq!(string, wstring, dstring))
{
static foreach (Char; AliasSeq!(char, wchar, dchar))
{{
static if (is(immutable Char == immutable dchar) ||
Char.sizeof == ElementEncodingType!Str.sizeof)
{
Str s = "aaa";
assert(parse!Char(s) == 'a');
assert(s == "aa");
assert(parse!(Char, typeof(s), No.doCount)(s) == 'a');
assert(s == "a");
assert(parse!(Char, typeof(s), Yes.doCount)(s) == tuple('a', 1) && s == "");
}
}}
}
}
/// ditto
auto parse(Target, Source, Flag!"doCount" doCount = No.doCount)(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();
static if (doCount)
{
return tuple!("data", "count")(result, 1);
}
else
{
return result;
}
}
///
@safe pure unittest
{
import std.typecons : Flag, Yes, No;
auto s = "Hello, World!";
char first = parse!char(s);
assert(first == 'H');
assert(s == "ello, World!");
char second = parse!(char, string, No.doCount)(s);
assert(second == 'e');
assert(s == "llo, World!");
auto third = parse!(char, string, Yes.doCount)(s);
assert(third.data == 'l' && third.count == 1);
assert(s == "lo, World!");
}
/*
Tests for to!bool and parse!bool
*/
@safe pure unittest
{
import std.exception;
assert(to!bool("TruE") == true);
assert(to!bool("faLse"d) == false);
assertThrown!ConvException(to!bool("maybe"));
auto t = "TrueType";
assert(parse!bool(t) == true);
assert(t == "Type");
auto f = "False killer whale"d;
assert(parse!bool(f) == false);
assert(f == " killer whale"d);
f = "False killer whale"d;
assert(parse!(bool, dstring, Yes.doCount)(f) == tuple(false, 5));
assert(f == " killer whale"d);
auto m = "maybe";
assertThrown!ConvException(parse!bool(m));
assertThrown!ConvException(parse!(bool, string, Yes.doCount)(m));
assert(m == "maybe"); // m shouldn't change on failure
auto s = "true";
auto b = parse!(const(bool))(s);
assert(b == true);
}
/**
Parsing a character range to `typeof(null)` returns `null` if the range
spells `"null"`. This function is case insensitive.
Params:
Target = the type to convert to
s = the lvalue of an $(REF_ALTTEXT input range, isInputRange, std,range,primitives)
doCount = the flag for deciding to report the number of consumed characters
Returns:
$(UL
$(LI `null` if `doCount` is set to `No.doCount`)
$(LI A `tuple` containing `null` and a `size_t` if `doCount` is set to `Yes.doCount`))
Throws:
A $(LREF ConvException) if the range doesn't represent `null`.
*/
auto parse(Target, Source, Flag!"doCount" doCount = No.doCount)(ref Source s)
if (isInputRange!Source &&
isSomeChar!(ElementType!Source) &&
is(immutable Target == immutable 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();
}
static if (doCount)
{
return tuple!("data", "count")(null, 4);
}
else
{
return null;
}
}
///
@safe pure unittest
{
import std.exception : assertThrown;
import std.typecons : Flag, Yes, No;
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 s3 = "nuLlNULl";
assert(parse!(NullType, string, No.doCount)(s3) is null);
auto r = parse!(NullType, string, Yes.doCount)(s3);
assert(r.data is null && r.count == 4);
auto m = "maybe";
assertThrown!ConvException(parse!NullType(m));
assertThrown!ConvException(parse!(NullType, string, Yes.doCount)(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 auto skipWS(R, Flag!"doCount" doCount = No.doCount)(ref R r)
{
import std.ascii : isWhite;
static if (isSomeString!R)
{
//Implementation inspired from stripLeft.
foreach (i, c; r)
{
if (!isWhite(c))
{
r = r[i .. $];
static if (doCount)
{
return i;
}
else
{
return;
}
}
}
auto len = r.length;
r = r[0 .. 0]; //Empty string with correct type.
static if (doCount)
{
return len;
}
else
{
return;
}
}
else
{
size_t i = 0;
for (; !r.empty && isWhite(r.front); r.popFront(), ++i)
{ }
static if (doCount)
{
return i;
}
}
}
/**
* Parses an array from a string given the left bracket (default $(D
* '[')), right bracket (default `']'`), and element separator (by
* default `','`). A trailing separator is allowed.
*
* Params:
* s = The string to parse
* lbracket = the character that starts the array
* rbracket = the character that ends the array
* comma = the character that separates the elements of the array
* doCount = the flag for deciding to report the number of consumed characters
*
* Returns:
$(UL
* $(LI An array of type `Target` if `doCount` is set to `No.doCount`)
* $(LI A `tuple` containing an array of type `Target` and a `size_t` if `doCount` is set to `Yes.doCount`))
*/
auto parse(Target, Source, Flag!"doCount" doCount = No.doCount)(ref Source s, dchar lbracket = '[',
dchar rbracket = ']', dchar comma = ',')
if (isSomeString!Source && !is(Source == enum) &&
isDynamicArray!Target && !is(Target == enum))
{
import std.array : appender;
auto result = appender!Target();
parseCheck!s(lbracket);
size_t count = 1 + skipWS!(Source, Yes.doCount)(s);
if (s.empty)
throw convError!(Source, Target)(s);
if (s.front == rbracket)
{
s.popFront();
static if (doCount)
{
return tuple!("data", "count")(result.data, ++count);
}
else
{
return result.data;
}
}
for (;; s.popFront(), count += 1 + skipWS!(Source, Yes.doCount)(s))
{
if (!s.empty && s.front == rbracket)
break;
auto r = parseElement!(WideElementType!Target, Source, Yes.doCount)(s);
result ~= r.data;
count += r.count + skipWS!(Source, Yes.doCount)(s);
if (s.empty)
throw convError!(Source, Target)(s);
if (s.front != comma)
break;
}
parseCheck!s(rbracket);
static if (doCount)
{
return tuple!("data", "count")(result.data, ++count);
}
else
{
return result.data;
}
}
///
@safe pure unittest
{
import std.typecons : Flag, Yes, No;
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"]);
auto s3 = `[['h', 'e', 'l', 'l', 'o'], "world"]`;
auto len3 = s3.length;
auto a3 = parse!(string[], string, Yes.doCount)(s3);
assert(a3.data == ["hello", "world"]);
assert(a3.count == len3);
}
// https://issues.dlang.org/show_bug.cgi?id=9615
@safe unittest
{
import std.typecons : Flag, Yes, No, tuple;
string s0 = "[1,2, ]";
string s1 = "[1,2, \t\v\r\n]";
string s2 = "[1,2]";
assert(s0.parse!(int[]) == [1,2]);
assert(s1.parse!(int[]) == [1,2]);
assert(s2.parse!(int[]) == [1,2]);
s0 = "[1,2, ]";
auto len0 = s0.length;
s1 = "[1,2, \t\v\r\n]";
auto len1 = s1.length;
s2 = "[1,2]";
auto len2 = s2.length;
assert(s0.parse!(int[], string, Yes.doCount) == tuple([1,2], len0));
assert(s1.parse!(int[], string, Yes.doCount) == tuple([1,2], len1));
assert(s2.parse!(int[], string, Yes.doCount) == tuple([1,2], len2));
string s3 = `["a","b",]`;
string s4 = `["a","b"]`;
assert(s3.parse!(string[]) == ["a","b"]);
assert(s4.parse!(string[]) == ["a","b"]);
s3 = `["a","b",]`;
auto len3 = s3.length;
assert(s3.parse!(string[], string, Yes.doCount) == tuple(["a","b"], len3));
s3 = `[ ]`;
assert(tuple([], s3.length) == s3.parse!(string[], string, Yes.doCount));
import std.exception : assertThrown;
string s5 = "[,]";
string s6 = "[, \t,]";
assertThrown!ConvException(parse!(string[])(s5));
assertThrown!ConvException(parse!(int[])(s6));
s5 = "[,]";
s6 = "[,·\t,]";
assertThrown!ConvException(parse!(string[], string, Yes.doCount)(s5));
assertThrown!ConvException(parse!(string[], string, Yes.doCount)(s6));
}
@safe unittest
{
int[] a = [1, 2, 3, 4, 5];
auto s = to!string(a);
assert(to!(int[])(s) == a);
}
@safe unittest
{
int[][] a = [ [1, 2] , [3], [4, 5] ];
auto s = to!string(a);
assert(to!(int[][])(s) == a);
}
@safe unittest
{
int[][][] ia = [ [[1,2],[3,4],[5]] , [[6],[],[7,8,9]] , [[]] ];
char[] s = to!(char[])(ia);
int[][][] ia2;
ia2 = to!(typeof(ia2))(s);
assert( ia == ia2);
}
@safe pure unittest
{
import std.exception;
import std.typecons : Flag, Yes, No;
//Check proper failure
auto s = "[ 1 , 2 , 3 ]";
auto s2 = s.save;
foreach (i ; 0 .. s.length-1)
{
auto ss = s[0 .. i];
assertThrown!ConvException(parse!(int[])(ss));
assertThrown!ConvException(parse!(int[], string, Yes.doCount)(ss));
}
int[] arr = parse!(int[])(s);
auto arr2 = parse!(int[], string, Yes.doCount)(s2);
arr = arr2.data;
}
@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"
];
string s3 = s1.save;
assert(s2 == parse!(string[])(s1));
assert(s1.empty);
assert(tuple(s2, s3.length) == parse!(string[], string, Yes.doCount)(s3));
}
/// ditto
auto parse(Target, Source, Flag!"doCount" doCount = No.doCount)(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);
size_t count = 1 + skipWS!(Source, Yes.doCount)(s);
if (s.empty)
throw convError!(Source, Target)(s);
if (s.front == rbracket)
{
static if (result.length != 0)
goto Lmanyerr;
else
{
s.popFront();
static if (doCount)
{
return tuple!("data", "count")(result, ++count);
}
else
{
return result;
}
}
}
for (size_t i = 0; ; s.popFront(), count += 1 + skipWS!(Source, Yes.doCount)(s))
{
if (i == result.length)
goto Lmanyerr;
auto r = parseElement!(ElementType!Target, Source, Yes.doCount)(s);
result[i++] = r.data;
count += r.count + skipWS!(Source, Yes.doCount)(s);
if (s.empty)
throw convError!(Source, Target)(s);
if (s.front != comma)
{
if (i != result.length)
goto Lfewerr;
break;
}
}
parseCheck!s(rbracket);
static if (doCount)
{
return tuple!("data", "count")(result, ++count);
}
else
{
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]);
s1 = "[1,2,3,4]";
assert(tuple([1,2,3,4], s1.length) == parse!(int[4], string, Yes.doCount)(s1));
auto s2 = "[[1],[2,3],[4]]";
auto sa2 = parse!(int[][3])(s2);
assert(sa2 == [[1],[2,3],[4]]);
s2 = "[[1],[2,3],[4]]";
assert(tuple([[1],[2,3],[4]], s2.length) == parse!(int[][3], string, Yes.doCount)(s2));
auto s3 = "[1,2,3]";
assertThrown!ConvException(parse!(int[4])(s3));
assertThrown!ConvException(parse!(int[4], string, Yes.doCount)(s3));
auto s4 = "[1,2,3,4,5]";
assertThrown!ConvException(parse!(int[4])(s4));
assertThrown!ConvException(parse!(int[4], string, Yes.doCount)(s4));
}
/**
* Parses an associative array from a string given the left bracket (default $(D
* '[')), right bracket (default `']'`), key-value separator (default $(D
* ':')), and element seprator (by default `','`).
*
* Params:
* s = the string to parse
* lbracket = the character that starts the associative array
* rbracket = the character that ends the associative array
* keyval = the character that associates the key with the value
* comma = the character that separates the elements of the associative array
* doCount = the flag for deciding to report the number of consumed characters
*
* Returns:
$(UL
* $(LI An associative array of type `Target` if `doCount` is set to `No.doCount`)
* $(LI A `tuple` containing an associative array of type `Target` and a `size_t`
* if `doCount` is set to `Yes.doCount`))
*/
auto parse(Target, Source, Flag!"doCount" doCount = No.doCount)(ref Source s, dchar lbracket = '[',
dchar rbracket = ']', dchar keyval = ':', dchar comma = ',')
if (isSomeString!Source && !is(Source == enum) &&
isAssociativeArray!Target && !is(Target == enum))
{
alias KeyType = typeof(Target.init.keys[0]);
alias ValType = typeof(Target.init.values[0]);
Target result;
parseCheck!s(lbracket);
size_t count = 1 + skipWS!(Source, Yes.doCount)(s);
if (s.empty)
throw convError!(Source, Target)(s);
if (s.front == rbracket)
{
s.popFront();
static if (doCount)
{
return tuple!("data", "count")(result, ++count);
}
else
{
return result;
}
}
for (;; s.popFront(), count += 1 + skipWS!(Source, Yes.doCount)(s))
{
auto key = parseElement!(KeyType, Source, Yes.doCount)(s);
count += key.count + skipWS!(Source, Yes.doCount)(s);
parseCheck!s(keyval);
count += 1 + skipWS!(Source, Yes.doCount)(s);
auto val = parseElement!(ValType, Source, Yes.doCount)(s);
count += val.count + skipWS!(Source, Yes.doCount)(s);
result[key.data] = val.data;
if (s.empty)
throw convError!(Source, Target)(s);
if (s.front != comma)
break;
}
parseCheck!s(rbracket);
static if (doCount)
{
return tuple!("data", "count")(result, ++count);
}
else
{
return result;
}
}
///
@safe pure unittest
{
import std.typecons : Flag, Yes, No, tuple;
import std.range.primitives : save;
import std.array : assocArray;
auto s1 = "[1:10, 2:20, 3:30]";
auto copyS1 = s1.save;
auto aa1 = parse!(int[int])(s1);
assert(aa1 == [1:10, 2:20, 3:30]);
assert(tuple([1:10, 2:20, 3:30], copyS1.length) == parse!(int[int], string, Yes.doCount)(copyS1));
auto s2 = `["aaa":10, "bbb":20, "ccc":30]`;
auto copyS2 = s2.save;
auto aa2 = parse!(int[string])(s2);
assert(aa2 == ["aaa":10, "bbb":20, "ccc":30]);
assert(tuple(["aaa":10, "bbb":20, "ccc":30], copyS2.length) ==
parse!(int[string], string, Yes.doCount)(copyS2));
auto s3 = `["aaa":[1], "bbb":[2,3], "ccc":[4,5,6]]`;
auto copyS3 = s3.save;
auto aa3 = parse!(int[][string])(s3);
assert(aa3 == ["aaa":[1], "bbb":[2,3], "ccc":[4,5,6]]);
assert(tuple(["aaa":[1], "bbb":[2,3], "ccc":[4,5,6]], copyS3.length) ==
parse!(int[][string], string, Yes.doCount)(copyS3));
auto s4 = `[]`;
int[int] emptyAA;
assert(tuple(emptyAA, s4.length) == parse!(int[int], string, Yes.doCount)(s4));
}
@safe pure unittest
{
import std.exception;
//Check proper failure
auto s = "[1:10, 2:20, 3:30]";
auto s2 = s.save;
foreach (i ; 0 .. s.length-1)
{
auto ss = s[0 .. i];
assertThrown!ConvException(parse!(int[int])(ss));
assertThrown!ConvException(parse!(int[int], string, Yes.doCount)(ss));
}
int[int] aa = parse!(int[int])(s);
auto aa2 = parse!(int[int], string, Yes.doCount)(s2);
aa = aa2[0];
}
private auto parseEscape(Source, Flag!"doCount" doCount = No.doCount)(ref Source s)
if (isInputRange!Source && isSomeChar!(ElementType!Source))
{
parseCheck!s('\\');
size_t count = 1;
if (s.empty)
throw parseError("Unterminated escape sequence");
// consumes 1 element from Source
dchar getHexDigit()(ref Source s_ = s) // workaround
{
import std.ascii : isAlpha, isHexDigit;
if (s_.empty)
throw parseError("Unterminated escape sequence");
s_.popFront();
if (s_.empty)
throw parseError("Unterminated escape sequence");
dchar c = s_.front;
if (!isHexDigit(c))
throw parseError("Hex digit is missing");
return isAlpha(c) ? ((c & ~0x20) - ('A' - 10)) : c - '0';
}
// We need to do octals separate, because they need a lookahead to find out,
// where the escape sequence ends.
auto first = s.front;
if (first >= '0' && first <= '7')
{
dchar c1 = s.front;
++count;
s.popFront();
if (s.empty)
{
static if (doCount)
{
return tuple!("data", "count")(cast (dchar) (c1 - '0'), count);
}
else
{
return cast (dchar) (c1 - '0');
}
}
dchar c2 = s.front;
if (c2 < '0' || c2 > '7')
{
static if (doCount)
{
return tuple!("data", "count")(cast (dchar)(c1 - '0'), count);
}
else
{
return cast (dchar)(c1 - '0');
}
}
++count;
s.popFront();
dchar c3 = s.front;
if (c3 < '0' || c3 > '7')
{
static if (doCount)
{
return tuple!("data", "count")(cast (dchar) (8 * (c1 - '0') + (c2 - '0')), count);
}
else
{
return cast (dchar) (8 * (c1 - '0') + (c2 - '0'));
}
}
++count;
s.popFront();
if (c1 > '3')
throw parseError("Octal sequence is larger than \\377");
static if (doCount)
{
return tuple!("data", "count")(cast (dchar) (64 * (c1 - '0') + 8 * (c2 - '0') + (c3 - '0')), count);
}
else
{
return cast (dchar) (64 * (c1 - '0') + 8 * (c2 - '0') + (c3 - '0'));
}
}
dchar result;
switch (first)
{
case '"': result = '\"'; break;
case '\'': result = '\''; break;
case '?': result = '\?'; break;
case '\\': result = '\\'; break;
case 'a': result = '\a'; break;
case 'b': result = '\b'; break;
case 'f': result = '\f'; break;
case 'n': result = '\n'; break;
case 'r': result = '\r'; break;
case 't': result = '\t'; break;
case 'v': result = '\v'; break;
case 'x':
result = getHexDigit() << 4;
result |= getHexDigit();
count += 2;
break;
case 'u':
result = getHexDigit() << 12;
result |= getHexDigit() << 8;
result |= getHexDigit() << 4;
result |= getHexDigit();
count += 4;
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();
count += 8;
break;
default:
throw parseError("Unknown escape character " ~ to!string(s.front));
}
if (s.empty)
throw parseError("Unterminated escape sequence");
s.popFront();
static if (doCount)
{
return tuple!("data", "count")(cast (dchar) result, ++count);
}
else
{
return cast (dchar) result;
}
}
@safe pure unittest
{
string[] s1 = [
`\"`, `\'`, `\?`, `\\`, `\a`, `\b`, `\f`, `\n`, `\r`, `\t`, `\v`, //Normal escapes
`\141`,
`\x61`,
`\u65E5`, `\U00012456`,
// https://issues.dlang.org/show_bug.cgi?id=9621 (Named Character Entities)
//`\&`, `\"`,
];
string[] copyS1 = s1 ~ s1[0 .. 0];
const(dchar)[] s2 = [
'\"', '\'', '\?', '\\', '\a', '\b', '\f', '\n', '\r', '\t', '\v', //Normal escapes
'\141',
'\x61',
'\u65E5', '\U00012456',
// https://issues.dlang.org/show_bug.cgi?id=9621 (Named Character Entities)
//'\&', '\"',
];
foreach (i ; 0 .. s1.length)
{
assert(s2[i] == parseEscape(s1[i]));
assert(s1[i].empty);
assert(tuple(s2[i], copyS1[i].length) == parseEscape!(string, Yes.doCount)(copyS1[i]));
assert(copyS1[i].empty);
}
}
@safe pure unittest
{
import std.exception;
string[] ss = [
`hello!`, //Not an escape
`\`, //Premature termination
`\/`, //Not an escape
`\gggg`, //Not an escape
`\xzz`, //Not an hex
`\x0`, //Premature hex end
`\XB9`, //Not legal hex syntax
`\u!!`, //Not a unicode hex
`\777`, //Octal is larger than a byte
`\80`, //Wrong digit at beginning of octal
`\u123`, //Premature hex end
`\U123123` //Premature hex end
];
foreach (s ; ss)
{
assertThrown!ConvException(parseEscape(s));
assertThrown!ConvException(parseEscape!(string, Yes.doCount)(s));
}
}
// Undocumented
auto parseElement(Target, Source, Flag!"doCount" doCount = No.doCount)(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, Source, doCount)(s);
}
parseCheck!s('\"');
size_t count = 1;
if (s.empty)
throw convError!(Source, Target)(s);
if (s.front == '\"')
{
s.popFront();
static if (doCount)
{
return tuple!("data", "count")(result.data, ++count);
}
else
{
return result.data;
}
}
while (true)
{
if (s.empty)
throw parseError("Unterminated quoted string");
switch (s.front)
{
case '\"':
s.popFront();
static if (doCount)
{
return tuple!("data", "count")(result.data, ++count);
}
else
{
return result.data;
}
case '\\':
auto r = parseEscape!(typeof(s), Yes.doCount)(s);
result.put(r[0]);
count += r[1];
break;
default:
result.put(s.front);
++count;
s.popFront();
break;
}
}
assert(false, "Unexpected fallthrough");
}
// ditto
auto parseElement(Target, Source, Flag!"doCount" doCount = No.doCount)(ref Source s)
if (isInputRange!Source && isSomeChar!(ElementType!Source) && !is(Source == enum) &&
is(CharTypeOf!Target == dchar) && !is(Target == enum))
{
Unqual!Target c;
parseCheck!s('\'');
size_t count = 1;
if (s.empty)
throw convError!(Source, Target)(s);
++count; // for the following if-else sequence
if (s.front != '\\')
{
c = s.front;
s.popFront();
}
else
c = parseEscape(s);
parseCheck!s('\'');
static if (doCount)
{
return tuple!("data", "count")(c, ++count);
}
else
{
return c;
}
}
// ditto
auto parseElement(Target, Source, Flag!"doCount" doCount = No.doCount)(ref Source s)
if (isInputRange!Source && isSomeChar!(ElementType!Source) &&
!isSomeString!Target && !isSomeChar!Target)
{
return parse!(Target, Source, doCount)(s);
}
// Use this when parsing a type that will ultimately be appended to a
// string.
package template WideElementType(T)
{
alias E = ElementType!T;
static if (isSomeChar!E)
alias WideElementType = dchar;
else
alias WideElementType = E;
}
/***************************************************************
* Convenience functions for converting one or more arguments
* of any type into _text (the three character widths).
*/
string text(T...)(T args)
if (T.length > 0) { return textImpl!string(args); }
///ditto
wstring wtext(T...)(T args)
if (T.length > 0) { return textImpl!wstring(args); }
///ditto
dstring dtext(T...)(T args)
if (T.length > 0) { return textImpl!dstring(args); }
///
@safe unittest
{
assert( text(42, ' ', 1.5, ": xyz") == "42 1.5: xyz"c);
assert(wtext(42, ' ', 1.5, ": xyz") == "42 1.5: xyz"w);
assert(dtext(42, ' ', 1.5, ": xyz") == "42 1.5: xyz"d);
}
@safe unittest
{
char c = 'h';
wchar w = '你';
dchar d = 'እ';
assert( text(c, "ello", ' ', w, "好 ", d, "ው ሰላም ነው") == "hello 你好 እው ሰላም ነው"c);
assert(wtext(c, "ello", ' ', w, "好 ", d, "ው ሰላም ነው") == "hello 你好 እው ሰላም ነው"w);
assert(dtext(c, "ello", ' ', w, "好 ", d, "ው ሰላም ነው") == "hello 你好 እው ሰላም ነው"d);
string cs = "今日は";
wstring ws = "여보세요";
dstring ds = "Здравствуйте";
assert( text(cs, ' ', ws, " ", ds) == "今日は 여보세요 Здравствуйте"c);
assert(wtext(cs, ' ', ws, " ", ds) == "今日は 여보세요 Здравствуйте"w);
assert(dtext(cs, ' ', ws, " ", ds) == "今日は 여보세요 Здравствуйте"d);
}
private S textImpl(S, U...)(U args)
{
static if (U.length == 0)
{
return null;
}
else static if (U.length == 1)
{
return to!S(args[0]);
}
else
{
import std.array : appender;
import std.traits : isSomeChar, isSomeString;
auto app = appender!S();
// assume that on average, parameters will have less
// than 20 elements
app.reserve(U.length * 20);
// Must be static foreach because of https://issues.dlang.org/show_bug.cgi?id=21209
static foreach (arg; args)
{
static if (
isSomeChar!(typeof(arg)) || isSomeString!(typeof(arg)) ||
( isInputRange!(typeof(arg)) && isSomeChar!(ElementType!(typeof(arg))) )
)
app.put(arg);
else static if (
is(immutable typeof(arg) == immutable uint) || is(immutable typeof(arg) == immutable ulong) ||
is(immutable typeof(arg) == immutable int) || is(immutable typeof(arg) == immutable long)
)
// https://issues.dlang.org/show_bug.cgi?id=17712#c15
app.put(textImpl!(S)(arg));
else
app.put(to!S(arg));
}
return app.data;
}
}
/***************************************************************
The `octal` facility provides a means to declare a number in base 8.
Using `octal!177` or `octal!"177"` for 127 represented in octal
(same as 0177 in C).
The rules for strings are the usual for literals: If it can fit in an
`int`, it is an `int`. Otherwise, it is a `long`. But, if the
user specifically asks for a `long` with the `L` suffix, always
give the `long`. Give an unsigned iff it is asked for with the $(D
U) or `u` suffix. _Octals created from integers preserve the type
of the passed-in integral.
See_Also:
$(LREF parse) for parsing octal strings at runtime.
*/
template octal(string num)
if (isOctalLiteral(num))
{
static if ((octalFitsInInt!num && !literalIsLong!num) && !literalIsUnsigned!num)
enum octal = octal!int(num);
else static if ((!octalFitsInInt!num || literalIsLong!num) && !literalIsUnsigned!num)
enum octal = octal!long(num);
else static if ((octalFitsInInt!num && !literalIsLong!num) && literalIsUnsigned!num)
enum octal = octal!uint(num);
else static if ((!octalFitsInInt!(num) || literalIsLong!(num)) && literalIsUnsigned!(num))
enum octal = octal!ulong(num);
else
static assert(false, "Unusable input " ~ num);
}
/// Ditto
template octal(alias decimalInteger)
if (is(typeof(decimalInteger)) && isIntegral!(typeof(decimalInteger)))
{
enum octal = octal!(typeof(decimalInteger))(to!string(decimalInteger));
}
///
@safe unittest
{
// Same as 0177
auto a = octal!177;
// octal is a compile-time device
enum b = octal!160;
// Create an unsigned octal
auto c = octal!"1_000_000u";
// Leading zeros are allowed when converting from a string
auto d = octal!"0001_200_000";
}
/*
Takes a string, num, which is an octal literal, and returns its
value, in the type T specified.
*/
private T octal(T)(const string num)
{
assert(isOctalLiteral(num), num ~ " is not an octal literal");
T value = 0;
foreach (const char s; num)
{
if (s < '0' || s > '7') // we only care about digits; skip the rest
// safe to skip - this is checked out in the assert so these
// are just suffixes
continue;
value *= 8;
value += s - '0';
}
return value;
}
@safe unittest
{
int a = octal!int("10");
assert(a == 8);
int b = octal!int("000137");
assert(b == 95);
}
/*
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 = "";
bool leading_zeros = true;
foreach (c; original)
{
if (!('0' <= c && c <= '7'))
continue;
if (c == '0')
{
if (leading_zeros)
continue;
}
else
{
leading_zeros = false;
}
stripped ~= c;
}
if (stripped.length == 0)
{
assert(leading_zeros);
return "0";
}
return stripped;
}
@safe unittest
{
static assert(strippedOctalLiteral("7") == "7");
static assert(strippedOctalLiteral("123") == "123");
static assert(strippedOctalLiteral("00123") == "123");
static assert(strippedOctalLiteral("01230") == "1230");
static assert(strippedOctalLiteral("0") == "0");
static assert(strippedOctalLiteral("00_000") == "0");
static assert(strippedOctalLiteral("000_000_12_300") == "12300");
}
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 zeros are allowed,
but not required.
*/
@safe pure nothrow @nogc
private bool isOctalLiteral(const string num)
{
if (num.length == 0)
return false;
// Must start with a digit.
if (num[0] < '0' || num[0] > '7')
return false;
foreach (i, c; num)
{
if (('0' <= c && c <= '7') || c == '_') // a legal character
continue;
if (i < num.length - 2)
return false;
// gotta check for those suffixes
if (c != 'U' && c != 'u' && c != 'L')
return false;
if (i != num.length - 1)
{
// if we're not the last one, the next one must
// also be a suffix to be valid
char c2 = num[$-1];
if (c2 != 'U' && c2 != 'u' && c2 != 'L')
return false; // spam at the end of the string
if (c2 == c)
return false; // repeats are disallowed
}
}
return true;
}
@safe unittest
{
// ensure that you get the right types, even with embedded underscores
auto w = octal!"100_000_000_000";
static assert(!is(typeof(w) == int));
auto w2 = octal!"1_000_000_000";
static assert(is(typeof(w2) == int));
static assert(octal!"45" == 37);
static assert(octal!"0" == 0);
static assert(octal!"7" == 7);
static assert(octal!"10" == 8);
static assert(octal!"666" == 438);
static assert(octal!"0004001" == 2049);
static assert(octal!"00" == 0);
static assert(octal!"0_0" == 0);
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!"0_0_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);
}
// emplace() used to be here but was moved to druntime
public import core.lifetime : emplace;
// https://issues.dlang.org/show_bug.cgi?id=9559
@safe unittest
{
import std.algorithm.iteration : map;
import std.array : array;
import std.typecons : Nullable;
alias I = Nullable!int;
auto ints = [0, 1, 2].map!(i => i & 1 ? I.init : I(i))();
auto asArray = array(ints);
}
@system unittest //http://forum.dlang.org/post/[email protected]
{
import std.array : array;
import std.datetime : SysTime, UTC;
import std.math.traits : 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
}
@safe unittest
{
import std.algorithm.comparison : equal;
import std.algorithm.iteration : map;
// Check fix for https://issues.dlang.org/show_bug.cgi?id=2971
assert(equal(map!(to!int)(["42", "34", "345"]), [42, 34, 345]));
}
// Undocumented for the time being
void toTextRange(T, W)(T value, W writer)
if (isIntegral!T && isOutputRange!(W, char))
{
import core.internal.string : SignedStringBuf, signedToTempString,
UnsignedStringBuf, unsignedToTempString;
if (value < 0)
{
SignedStringBuf buf = void;
put(writer, signedToTempString(value, buf));
}
else
{
UnsignedStringBuf buf = void;
put(writer, unsignedToTempString(value, buf));
}
}
@safe unittest
{
import std.array : appender;
auto result = appender!(char[])();
toTextRange(-1, result);
assert(result.data == "-1");
}
/**
Returns the corresponding _unsigned value for `x` (e.g. if `x` has type
`int`, it returns $(D cast(uint) x)). The advantage compared to the cast
is that you do not need to rewrite the cast if `x` later changes type
(e.g from `int` to `long`).
Note that the result is always mutable even if the original type was const
or immutable. In order to retain the constness, use $(REF Unsigned, std,traits).
*/
auto unsigned(T)(T x)
if (isIntegral!T)
{
return cast(Unqual!(Unsigned!T))x;
}
///
@safe unittest
{
import std.traits : Unsigned;
immutable int s = 42;
auto u1 = unsigned(s); //not qualified
static assert(is(typeof(u1) == uint));
Unsigned!(typeof(s)) u2 = unsigned(s); //same qualification
static assert(is(typeof(u2) == immutable uint));
immutable u3 = unsigned(s); //explicitly qualified
}
/// Ditto
auto unsigned(T)(T x)
if (isSomeChar!T)
{
// All characters are unsigned
static assert(T.min == 0, T.stringof ~ ".min must be zero");
return cast(Unqual!T) x;
}
@safe unittest
{
static foreach (T; AliasSeq!(byte, ubyte))
{
static assert(is(typeof(unsigned(cast(T) 1)) == ubyte));
static assert(is(typeof(unsigned(cast(const T) 1)) == ubyte));
static assert(is(typeof(unsigned(cast(immutable T) 1)) == ubyte));
}
static foreach (T; AliasSeq!(short, ushort))
{
static assert(is(typeof(unsigned(cast(T) 1)) == ushort));
static assert(is(typeof(unsigned(cast(const T) 1)) == ushort));
static assert(is(typeof(unsigned(cast(immutable T) 1)) == ushort));
}
static foreach (T; AliasSeq!(int, uint))
{
static assert(is(typeof(unsigned(cast(T) 1)) == uint));
static assert(is(typeof(unsigned(cast(const T) 1)) == uint));
static assert(is(typeof(unsigned(cast(immutable T) 1)) == uint));
}
static foreach (T; AliasSeq!(long, ulong))
{
static assert(is(typeof(unsigned(cast(T) 1)) == ulong));
static assert(is(typeof(unsigned(cast(const T) 1)) == ulong));
static assert(is(typeof(unsigned(cast(immutable T) 1)) == ulong));
}
}
@safe unittest
{
static foreach (T; AliasSeq!(char, wchar, dchar))
{
static assert(is(typeof(unsigned(cast(T)'A')) == T));
static assert(is(typeof(unsigned(cast(const T)'A')) == T));
static assert(is(typeof(unsigned(cast(immutable T)'A')) == T));
}
}
/**
Returns the corresponding _signed value for `x` (e.g. if `x` has type
`uint`, it returns $(D cast(int) x)). The advantage compared to the cast
is that you do not need to rewrite the cast if `x` later changes type
(e.g from `uint` to `ulong`).
Note that the result is always mutable even if the original type was const
or immutable. In order to retain the constness, use $(REF Signed, std,traits).
*/
auto signed(T)(T x)
if (isIntegral!T)
{
return cast(Unqual!(Signed!T))x;
}
///
@safe unittest
{
import std.traits : Signed;
immutable uint u = 42;
auto s1 = signed(u); //not qualified
static assert(is(typeof(s1) == int));
Signed!(typeof(u)) s2 = signed(u); //same qualification
static assert(is(typeof(s2) == immutable int));
immutable s3 = signed(u); //explicitly qualified
}
@system unittest
{
static foreach (T; AliasSeq!(byte, ubyte))
{
static assert(is(typeof(signed(cast(T) 1)) == byte));
static assert(is(typeof(signed(cast(const T) 1)) == byte));
static assert(is(typeof(signed(cast(immutable T) 1)) == byte));
}
static foreach (T; AliasSeq!(short, ushort))
{
static assert(is(typeof(signed(cast(T) 1)) == short));
static assert(is(typeof(signed(cast(const T) 1)) == short));
static assert(is(typeof(signed(cast(immutable T) 1)) == short));
}
static foreach (T; AliasSeq!(int, uint))
{
static assert(is(typeof(signed(cast(T) 1)) == int));
static assert(is(typeof(signed(cast(const T) 1)) == int));
static assert(is(typeof(signed(cast(immutable T) 1)) == int));
}
static foreach (T; AliasSeq!(long, ulong))
{
static assert(is(typeof(signed(cast(T) 1)) == long));
static assert(is(typeof(signed(cast(const T) 1)) == long));
static assert(is(typeof(signed(cast(immutable T) 1)) == long));
}
}
// https://issues.dlang.org/show_bug.cgi?id=10874
@safe unittest
{
enum Test { a = 0 }
ulong l = 0;
auto t = l.to!Test;
}
// asOriginalType
/**
Returns the representation of an enumerated value, i.e. the value converted to
the base type of the enumeration.
*/
OriginalType!E asOriginalType(E)(E value)
if (is(E == enum))
{
return value;
}
///
@safe unittest
{
enum A { a = 42 }
static assert(is(typeof(A.a.asOriginalType) == int));
assert(A.a.asOriginalType == 42);
enum B : double { a = 43 }
static assert(is(typeof(B.a.asOriginalType) == double));
assert(B.a.asOriginalType == 43);
}
/**
A wrapper on top of the built-in cast operator that allows one to restrict
casting of the original type of the value.
A common issue with using a raw cast is that it may silently continue to
compile even if the value's type has changed during refactoring,
which breaks the initial assumption about the cast.
Params:
From = The type to cast from. The programmer must ensure it is legal
to make this cast.
*/
template castFrom(From)
{
/**
Params:
To = The type _to cast _to.
value = The value _to cast. It must be of type `From`,
otherwise a compile-time error is emitted.
Returns:
the value after the cast, returned by reference if possible.
*/
auto ref to(To, T)(auto ref T value) @system
{
static assert(
is(From == T),
"the value to cast is not of specified type '" ~ From.stringof ~
"', it is of type '" ~ T.stringof ~ "'"
);
static assert(
is(typeof(cast(To) value)),
"can't cast from '" ~ From.stringof ~ "' to '" ~ To.stringof ~ "'"
);
return cast(To) value;
}
}
///
@system unittest
{
// Regular cast, which has been verified to be legal by the programmer:
{
long x;
auto y = cast(int) x;
}
// However this will still compile if 'x' is changed to be a pointer:
{
long* x;
auto y = cast(int) x;
}
// castFrom provides a more reliable alternative to casting:
{
long x;
auto y = castFrom!long.to!int(x);
}
// Changing the type of 'x' will now issue a compiler error,
// allowing bad casts to be caught before it's too late:
{
long* x;
static assert(
!__traits(compiles, castFrom!long.to!int(x))
);
// if cast is still needed, must be changed to:
auto y = castFrom!(long*).to!int(x);
}
}
// https://issues.dlang.org/show_bug.cgi?id=16667
@system unittest
{
ubyte[] a = ['a', 'b', 'c'];
assert(castFrom!(ubyte[]).to!(string)(a) == "abc");
}
/**
Check the correctness of a string for `hexString`.
The result is true if and only if the input string is composed of whitespace
characters (\f\n\r\t\v lineSep paraSep nelSep) and
an even number of hexadecimal digits (regardless of the case).
*/
@safe pure @nogc
private bool isHexLiteral(String)(scope const String hexData)
{
import std.ascii : isHexDigit;
import std.uni : lineSep, paraSep, nelSep;
size_t i;
foreach (const dchar c; hexData)
{
switch (c)
{
case ' ':
case '\t':
case '\v':
case '\f':
case '\r':
case '\n':
case lineSep:
case paraSep:
case nelSep:
continue;
default:
break;
}
if (c.isHexDigit)
++i;
else
return false;
}
return !(i & 1);
}
@safe unittest
{
// test all the hex digits
static assert( ("0123456789abcdefABCDEF").isHexLiteral);
// empty or white strings are not valid
static assert( "\r\n\t".isHexLiteral);
// but are accepted if the count of hex digits is even
static assert( "A\r\n\tB".isHexLiteral);
}
@safe unittest
{
import std.ascii;
// empty/whites
static assert( "".isHexLiteral);
static assert( " \r".isHexLiteral);
static assert( whitespace.isHexLiteral);
static assert( ""w.isHexLiteral);
static assert( " \r"w.isHexLiteral);
static assert( ""d.isHexLiteral);
static assert( " \r"d.isHexLiteral);
static assert( "\u2028\u2029\u0085"d.isHexLiteral);
// odd x strings
static assert( !("5" ~ whitespace).isHexLiteral);
static assert( !"123".isHexLiteral);
static assert( !"1A3".isHexLiteral);
static assert( !"1 23".isHexLiteral);
static assert( !"\r\n\tC".isHexLiteral);
static assert( !"123"w.isHexLiteral);
static assert( !"1A3"w.isHexLiteral);
static assert( !"1 23"w.isHexLiteral);
static assert( !"\r\n\tC"w.isHexLiteral);
static assert( !"123"d.isHexLiteral);
static assert( !"1A3"d.isHexLiteral);
static assert( !"1 23"d.isHexLiteral);
static assert( !"\r\n\tC"d.isHexLiteral);
// even x strings with invalid charset
static assert( !"12gG".isHexLiteral);
static assert( !"2A 3q".isHexLiteral);
static assert( !"12gG"w.isHexLiteral);
static assert( !"2A 3q"w.isHexLiteral);
static assert( !"12gG"d.isHexLiteral);
static assert( !"2A 3q"d.isHexLiteral);
// valid x strings
static assert( ("5A" ~ whitespace).isHexLiteral);
static assert( ("5A 01A C FF de 1b").isHexLiteral);
static assert( ("0123456789abcdefABCDEF").isHexLiteral);
static assert( (" 012 34 5 6789 abcd ef\rAB\nCDEF").isHexLiteral);
static assert( ("5A 01A C FF de 1b"w).isHexLiteral);
static assert( ("0123456789abcdefABCDEF"w).isHexLiteral);
static assert( (" 012 34 5 6789 abcd ef\rAB\nCDEF"w).isHexLiteral);
static assert( ("5A 01A C FF de 1b"d).isHexLiteral);
static assert( ("0123456789abcdefABCDEF"d).isHexLiteral);
static assert( (" 012 34 5 6789 abcd ef\rAB\nCDEF"d).isHexLiteral);
// library version allows what's pointed by issue 10454
static assert( ("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF").isHexLiteral);
}
/**
Converts a hex literal to a string at compile time.
Takes a string made of hexadecimal digits and returns
the matching string by converting each pair of digits to a character.
The input string can also include white characters, which can be used
to keep the literal string readable in the source code.
The function is intended to replace the hexadecimal literal strings
starting with `'x'`, which could be removed to simplify the core language.
Params:
hexData = string to be converted.
Returns:
a `string`, a `wstring` or a `dstring`, according to the type of hexData.
*/
template hexString(string hexData)
if (hexData.isHexLiteral)
{
enum hexString = mixin(hexToString(hexData));
}
/// ditto
template hexString(wstring hexData)
if (hexData.isHexLiteral)
{
enum wstring hexString = mixin(hexToString(hexData));
}
/// ditto
template hexString(dstring hexData)
if (hexData.isHexLiteral)
{
enum dstring hexString = mixin(hexToString(hexData));
}
///
@safe unittest
{
// conversion at compile time
auto string1 = hexString!"304A314B";
assert(string1 == "0J1K");
auto string2 = hexString!"304A314B"w;
assert(string2 == "0J1K"w);
auto string3 = hexString!"304A314B"d;
assert(string3 == "0J1K"d);
}
@safe nothrow pure private
{
/* These are meant to be used with CTFE.
* They cause the instantiations of hexStrLiteral()
* to be in Phobos, not user code.
*/
string hexToString(string s)
{
return hexStrLiteral(s);
}
wstring hexToString(wstring s)
{
return hexStrLiteral(s);
}
dstring hexToString(dstring s)
{
return hexStrLiteral(s);
}
}
/*
Turn a hexadecimal string into a regular string literal.
I.e. "dead beef" is transformed into "\xde\xad\xbe\xef"
suitable for use in a mixin.
Params:
hexData is string, wstring, or dstring and validated by isHexLiteral()
*/
@trusted nothrow pure
private auto hexStrLiteral(String)(scope String hexData)
{
import std.ascii : isHexDigit;
alias C = Unqual!(ElementEncodingType!String); // char, wchar or dchar
C[] result;
result.length = 1 + hexData.length * 2 + 1; // don't forget the " "
/* Use a pointer because we know it won't overrun,
* and this will reduce the size of the function substantially
* by not doing the array bounds checks.
* This is why this function is @trusted.
*/
auto r = result.ptr;
r[0] = '"';
size_t cnt = 0;
foreach (c; hexData)
{
if (c.isHexDigit)
{
if ((cnt & 1) == 0)
{
r[1 + cnt] = '\\';
r[1 + cnt + 1] = 'x';
cnt += 2;
}
r[1 + cnt] = c;
++cnt;
}
}
r[1 + cnt] = '"';
result.length = 1 + cnt + 1; // trim off any excess length
return result;
}
@safe unittest
{
// compile time
assert(hexString!"46 47 48 49 4A 4B" == "FGHIJK");
assert(hexString!"30\r\n\t\f\v31 32 33 32 31 30" == "0123210");
assert(hexString!"ab cd" == hexString!"ABCD");
}
/**
* Convert integer to a range of characters.
* Intended to be lightweight and fast.
*
* Params:
* radix = 2, 8, 10, 16
* Char = character type for output
* letterCase = lower for deadbeef, upper for DEADBEEF
* value = integer to convert. Can be uint or ulong. If radix is 10, can also be
* int or long.
* Returns:
* Random access range with slicing and everything
*/
auto toChars(ubyte radix = 10, Char = char, LetterCase letterCase = LetterCase.lower, T)(T value)
pure nothrow @nogc @safe
if ((radix == 2 || radix == 8 || radix == 10 || radix == 16) &&
(is(immutable T == immutable uint) || is(immutable T == immutable ulong) ||
radix == 10 && (is(immutable T == immutable int) || is(immutable T == immutable long))))
{
alias UT = Unqual!T;
static if (radix == 10)
{
/* uint.max is 42_9496_7295
* int.max is 21_4748_3647
* ulong.max is 1844_6744_0737_0955_1615
* long.max is 922_3372_0368_5477_5807
*/
static struct Result
{
void initialize(UT value)
{
bool neg = false;
if (value < 10)
{
if (value >= 0)
{
lwr = 0;
upr = 1;
buf[0] = cast(char)(cast(uint) value + '0');
return;
}
value = -value;
neg = true;
}
auto i = cast(uint) buf.length - 1;
while (cast(Unsigned!UT) value >= 10)
{
buf[i] = cast(ubyte)('0' + cast(Unsigned!UT) value % 10);
value = unsigned(value) / 10;
--i;
}
buf[i] = cast(char)(cast(uint) value + '0');
if (neg)
{
buf[i - 1] = '-';
--i;
}
lwr = i;
upr = cast(uint) buf.length;
}
@property size_t length() { return upr - lwr; }
alias opDollar = length;
@property bool empty() { return upr == lwr; }
@property Char front() { return buf[lwr]; }
void popFront() { ++lwr; }
@property Char back() { return buf[upr - 1]; }
void popBack() { --upr; }
@property Result save() { return this; }
Char opIndex(size_t i) { return buf[lwr + i]; }
Result opSlice(size_t lwr, size_t upr)
{
Result result = void;
result.buf = buf;
result.lwr = cast(uint)(this.lwr + lwr);
result.upr = cast(uint)(this.lwr + upr);
return result;
}
private:
uint lwr = void, upr = void;
char[(UT.sizeof == 4) ? 10 + isSigned!T : 20] buf = void;
}
Result result;
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(false, "radix must be 2, 8, 10, or 16");
static struct Result
{
this(UT value)
{
this.value = value;
ubyte len = 1;
while (value >>>= SHIFT)
++len;
this.len = len;
}
@property size_t length() { return len; }
@property bool empty() { return len == 0; }
@property Char front() { return opIndex(0); }
void popFront() { --len; }
@property Char back() { return opIndex(len - 1); }
void popBack()
{
value >>>= SHIFT;
--len;
}
@property Result save() { return this; }
Char opIndex(size_t i)
{
Char c = (value >>> ((len - i - 1) * SHIFT)) & ((1 << SHIFT) - 1);
return cast(Char)((radix < 10 || c < 10) ? c + '0'
: (letterCase == LetterCase.upper ? c + 'A' - 10
: c + 'a' - 10));
}
Result opSlice(size_t lwr, size_t upr)
{
Result result = void;
result.value = value >>> ((len - upr) * SHIFT);
result.len = cast(ubyte)(upr - lwr);
return result;
}
private:
UT value;
ubyte len;
}
return Result(value);
}
}
///
@safe unittest
{
import std.algorithm.comparison : equal;
assert(toChars(1).equal("1"));
assert(toChars(1_000_000).equal("1000000"));
assert(toChars!(2)(2U).equal("10"));
assert(toChars!(16)(255U).equal("ff"));
assert(toChars!(16, char, LetterCase.upper)(255U).equal("FF"));
}
@safe unittest
{
import std.array;
import std.range;
assert(toChars(123) == toChars(123));
{
assert(toChars!2(0u).array == "0");
assert(toChars!2(0Lu).array == "0");
assert(toChars!2(1u).array == "1");
assert(toChars!2(1Lu).array == "1");
auto r = toChars!2(2u);
assert(r.length == 2);
assert(r[0] == '1');
assert(r[1 .. 2].array == "0");
auto s = r.save;
assert(r.array == "10");
assert(s.retro.array == "01");
}
{
assert(toChars!8(0u).array == "0");
assert(toChars!8(0Lu).array == "0");
assert(toChars!8(1u).array == "1");
assert(toChars!8(1234567Lu).array == "4553207");
auto r = toChars!8(8u);
assert(r.length == 2);
assert(r[0] == '1');
assert(r[1 .. 2].array == "0");
auto s = r.save;
assert(r.array == "10");
assert(s.retro.array == "01");
}
{
assert(toChars!10(0u).array == "0");
assert(toChars!10(0Lu).array == "0");
assert(toChars!10(1u).array == "1");
assert(toChars!10(1234567Lu).array == "1234567");
assert(toChars!10(uint.max).array == "4294967295");
assert(toChars!10(ulong.max).array == "18446744073709551615");
auto r = toChars(10u);
assert(r.length == 2);
assert(r[0] == '1');
assert(r[1 .. 2].array == "0");
auto s = r.save;
assert(r.array == "10");
assert(s.retro.array == "01");
}
{
assert(toChars!10(0).array == "0");
assert(toChars!10(0L).array == "0");
assert(toChars!10(1).array == "1");
assert(toChars!10(1234567L).array == "1234567");
assert(toChars!10(int.max).array == "2147483647");
assert(toChars!10(long.max).array == "9223372036854775807");
assert(toChars!10(-int.max).array == "-2147483647");
assert(toChars!10(-long.max).array == "-9223372036854775807");
assert(toChars!10(int.min).array == "-2147483648");
assert(toChars!10(long.min).array == "-9223372036854775808");
auto r = toChars!10(10);
assert(r.length == 2);
assert(r[0] == '1');
assert(r[1 .. 2].array == "0");
auto s = r.save;
assert(r.array == "10");
assert(s.retro.array == "01");
}
{
assert(toChars!(16)(0u).array == "0");
assert(toChars!(16)(0Lu).array == "0");
assert(toChars!(16)(10u).array == "a");
assert(toChars!(16, char, LetterCase.upper)(0x12AF34567Lu).array == "12AF34567");
auto r = toChars!(16)(16u);
assert(r.length == 2);
assert(r[0] == '1');
assert(r[1 .. 2].array == "0");
auto s = r.save;
assert(r.array == "10");
assert(s.retro.array == "01");
}
}
@safe unittest // opSlice (issue 16192)
{
import std.meta : AliasSeq;
static struct Test { ubyte radix; uint number; }
alias tests = AliasSeq!(
Test(2, 0b1_0110_0111u),
Test(2, 0b10_1100_1110u),
Test(8, octal!123456701u),
Test(8, octal!1234567012u),
Test(10, 123456789u),
Test(10, 1234567890u),
Test(16, 0x789ABCDu),
Test(16, 0x789ABCDEu),
);
foreach (test; tests)
{
enum ubyte radix = test.radix;
auto original = toChars!radix(test.number);
// opSlice vs popFront
auto r = original.save;
size_t i = 0;
for (; !r.empty; r.popFront(), ++i)
{
assert(original[i .. original.length].tupleof == r.tupleof);
// tupleof is used to work around issue 16216.
}
// opSlice vs popBack
r = original.save;
i = 0;
for (; !r.empty; r.popBack(), ++i)
{
assert(original[0 .. original.length - i].tupleof == r.tupleof);
}
// opSlice vs both popFront and popBack
r = original.save;
i = 0;
for (; r.length >= 2; r.popFront(), r.popBack(), ++i)
{
assert(original[i .. original.length - i].tupleof == r.tupleof);
}
}
}
// Converts an unsigned integer to a compile-time string constant.
package enum toCtString(ulong n) = n.stringof[0 .. $ - "LU".length];
// Check that .stringof does what we expect, since it's not guaranteed by the
// language spec.
@safe /*@betterC*/ unittest
{
assert(toCtString!0 == "0");
assert(toCtString!123456 == "123456");
}
| D |
module org.serviio.upnp.service.contentdirectory.rest.representation.all;
public import org.serviio.upnp.service.contentdirectory.rest.representation.ClosingInputRepresentation;
public import org.serviio.upnp.service.contentdirectory.rest.representation.ContentDirectoryRepresentation;
public import org.serviio.upnp.service.contentdirectory.rest.representation.ContentURLRepresentation;
public import org.serviio.upnp.service.contentdirectory.rest.representation.DirectoryObjectRepresentation;
public import org.serviio.upnp.service.contentdirectory.rest.representation.OnlineIdentifierRepresentation;
| D |
import std.stdio;
import std.bitmanip;
int main() {
foreach (s; [0, 63, 64]) {
bool[] buf = new bool[64*3];
buf[0..64] = true;
BitArray b = BitArray(buf);
//writeln(b);
if (s)
b <<= s;
writeln(b);
}
return 0;
}
| D |
utter obscenities or profanities
heap obscenities upon
wish harm upon
exclude from a church or a religious community
| D |
/Users/augustomachado/github/rust_snake_game/snake_game/target/rls/debug/build/num-iter-1a58a513009c3c3b/build_script_build-1a58a513009c3c3b: /Users/augustomachado/.cargo/registry/src/github.com-1ecc6299db9ec823/num-iter-0.1.42/build.rs
/Users/augustomachado/github/rust_snake_game/snake_game/target/rls/debug/build/num-iter-1a58a513009c3c3b/build_script_build-1a58a513009c3c3b.d: /Users/augustomachado/.cargo/registry/src/github.com-1ecc6299db9ec823/num-iter-0.1.42/build.rs
/Users/augustomachado/.cargo/registry/src/github.com-1ecc6299db9ec823/num-iter-0.1.42/build.rs:
| D |
.source T_rem_double_2addr_4.java
.class public dot.junit.opcodes.rem_double_2addr.d.T_rem_double_2addr_4
.super java/lang/Object
.method public <init>()V
.limit regs 1
invoke-direct {v0}, java/lang/Object/<init>()V
return-void
.end method
.method public run(JD)D
.limit regs 14
rem-double/2addr v10, v12
return-wide v10
.end method
| D |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.