code stringlengths 3 10M | language stringclasses 31 values |
|---|---|
import vibe.d;
shared static this()
{
auto settings = new HttpServerSettings;
settings.sessionStore = new MemorySessionStore();
settings.port = 8080;
listenHttp(settings, staticTemplate!("info.dt"));
}
| D |
extern (C) int printf(const(char*) fmt, ...);
import core.vararg;
struct Tup(T...)
{
T field;
alias field this;
bool opEquals(const Tup rhs) const
{
foreach (i, _; T)
if (field[i] != rhs.field[i])
return false;
return true;
}
}
Tup!T tup(T...)(T fields)
{
return typeof(return)(fields);
}
template Seq(T...)
{
alias T Seq;
}
/**********************************************/
struct S
{
int x;
alias x this;
}
int foo(int i)
{
return i * 2;
}
void test1()
{
S s;
s.x = 7;
int i = -s;
assert(i == -7);
i = s + 8;
assert(i == 15);
i = s + s;
assert(i == 14);
i = 9 + s;
assert(i == 16);
i = foo(s);
assert(i == 14);
}
/**********************************************/
class C
{
int x;
alias x this;
}
void test2()
{
C s = new C();
s.x = 7;
int i = -s;
assert(i == -7);
i = s + 8;
assert(i == 15);
i = s + s;
assert(i == 14);
i = 9 + s;
assert(i == 16);
i = foo(s);
assert(i == 14);
}
/**********************************************/
void test3()
{
Tup!(int, double) t;
t[0] = 1;
t[1] = 1.1;
assert(t[0] == 1);
assert(t[1] == 1.1);
printf("%d %g\n", t[0], t[1]);
}
/**********************************************/
struct Iter
{
bool empty() { return true; }
void popFront() { }
ref Tup!(int, int) front() { return *new Tup!(int, int); }
ref Iter opSlice() { return this; }
}
void test4()
{
foreach (a; Iter()) { }
}
/**********************************************/
void test5()
{
static struct Double1 {
double val = 1;
alias val this;
}
static Double1 x() { return Double1(); }
x()++;
}
/**********************************************/
// 4773
void test4773()
{
struct Rebindable
{
Object obj;
@property const(Object) get(){ return obj; }
alias get this;
}
Rebindable r;
if (r) assert(0);
r.obj = new Object;
if (!r) assert(0);
}
/**********************************************/
// 5188
void test5188()
{
struct S
{
int v = 10;
alias v this;
}
S s;
assert(s <= 20);
assert(s != 14);
}
/***********************************************/
struct Foo {
void opIndexAssign(int x, size_t i) {
val = x;
}
void opSliceAssign(int x, size_t a, size_t b) {
val = x;
}
int val;
}
struct Bar {
Foo foo;
alias foo this;
}
void test6() {
Bar b;
b[0] = 1;
assert(b.val == 1);
b[0 .. 1] = 2;
assert(b.val == 2);
}
/**********************************************/
// 2781
struct Tuple2781a(T...) {
T data;
alias data this;
}
struct Tuple2781b(T) {
T data;
alias data this;
}
void test2781()
{
Tuple2781a!(uint, float) foo;
foreach(elem; foo) {}
{
Tuple2781b!(int[]) bar1;
foreach(elem; bar1) {}
Tuple2781b!(int[int]) bar2;
foreach(key, elem; bar2) {}
Tuple2781b!(string) bar3;
foreach(dchar elem; bar3) {}
}
{
Tuple2781b!(int[]) bar1;
foreach(elem; bar1) goto L1;
Tuple2781b!(int[int]) bar2;
foreach(key, elem; bar2) goto L1;
Tuple2781b!(string) bar3;
foreach(dchar elem; bar3) goto L1;
L1:
;
}
int eval;
auto t1 = tup(10, "str");
auto i1 = 0;
foreach (e; t1)
{
pragma(msg, "[] = ", typeof(e));
static if (is(typeof(e) == int )) assert(i1 == 0 && e == 10);
static if (is(typeof(e) == string)) assert(i1 == 1 && e == "str");
++i1;
}
auto t2 = tup(10, "str");
foreach (i2, e; t2)
{
pragma(msg, "[", cast(int)i2, "] = ", typeof(e));
static if (is(typeof(e) == int )) { static assert(i2 == 0); assert(e == 10); }
static if (is(typeof(e) == string)) { static assert(i2 == 1); assert(e == "str"); }
}
auto t3 = tup(10, "str");
auto i3 = 2;
foreach_reverse (e; t3)
{
--i3;
pragma(msg, "[] = ", typeof(e));
static if (is(typeof(e) == int )) assert(i3 == 0 && e == 10);
static if (is(typeof(e) == string)) assert(i3 == 1 && e == "str");
}
auto t4 = tup(10, "str");
foreach_reverse (i4, e; t4)
{
pragma(msg, "[", cast(int)i4, "] = ", typeof(e));
static if (is(typeof(e) == int )) { static assert(i4 == 0); assert(e == 10); }
static if (is(typeof(e) == string)) { static assert(i4 == 1); assert(e == "str"); }
}
eval = 0;
foreach (i, e; tup(tup((eval++, 10), 3.14), tup("str", [1,2])))
{
static if (i == 0) assert(e == tup(10, 3.14));
static if (i == 1) assert(e == tup("str", [1,2]));
}
assert(eval == 1);
eval = 0;
foreach (i, e; tup((eval++,10), tup(3.14, tup("str", tup([1,2])))))
{
static if (i == 0) assert(e == 10);
static if (i == 1) assert(e == tup(3.14, tup("str", tup([1,2]))));
}
assert(eval == 1);
}
/**********************************************/
// 6546
void test6546()
{
class C {}
class D : C {}
struct S { C c; alias c this; } // S : C
struct T { S s; alias s this; } // T : S
struct U { T t; alias t this; } // U : T
C c;
D d;
S s;
T t;
U u;
assert(c is c); // OK
assert(c is d); // OK
assert(c is s); // OK
assert(c is t); // OK
assert(c is u); // OK
assert(d is c); // OK
assert(d is d); // OK
assert(d is s); // doesn't work
assert(d is t); // doesn't work
assert(d is u); // doesn't work
assert(s is c); // OK
assert(s is d); // doesn't work
assert(s is s); // OK
assert(s is t); // doesn't work
assert(s is u); // doesn't work
assert(t is c); // OK
assert(t is d); // doesn't work
assert(t is s); // doesn't work
assert(t is t); // OK
assert(t is u); // doesn't work
assert(u is c); // OK
assert(u is d); // doesn't work
assert(u is s); // doesn't work
assert(u is t); // doesn't work
assert(u is u); // OK
}
/**********************************************/
// 6736
void test6736()
{
static struct S1
{
struct S2 // must be 8 bytes in size
{
uint a, b;
}
S2 s2;
alias s2 this;
}
S1 c;
static assert(!is(typeof(c + c)));
}
/**********************************************/
// 2777
struct ArrayWrapper(T) {
T[] array;
alias array this;
}
// alias array this
void test2777a()
{
ArrayWrapper!(uint) foo;
foo.length = 5; // Works
foo[0] = 1; // Works
auto e0 = foo[0]; // Works
auto e4 = foo[$ - 1]; // Error: undefined identifier __dollar
auto s01 = foo[0..2]; // Error: ArrayWrapper!(uint) cannot be sliced with[]
}
// alias tuple this
void test2777b()
{
auto t = tup(10, 3.14, "str", [1,2]);
assert(t[$ - 1] == [1,2]);
auto f1 = t[];
assert(f1[0] == 10);
assert(f1[1] == 3.14);
assert(f1[2] == "str");
assert(f1[3] == [1,2]);
auto f2 = t[1..3];
assert(f2[0] == 3.14);
assert(f2[1] == "str");
}
/****************************************/
// 2787
struct Base2787
{
int x;
void foo() { auto _ = x; }
}
struct Derived2787
{
Base2787 _base;
alias _base this;
int y;
void bar() { auto _ = x; }
}
/***********************************/
// 5679
void test5679()
{
/+
class Foo {}
class Base
{
@property Foo getFoo() { return null; }
}
class Derived : Base
{
alias getFoo this;
}
Derived[] dl;
Derived d = new Derived();
dl ~= d; // Error: cannot append type alias_test.Base to type Derived[]
+/
}
/***********************************/
// 6508
void test6508()
{
int x, y;
Seq!(x, y) = tup(10, 20);
assert(x == 10);
assert(y == 20);
}
/***********************************/
// 6369
void test6369a()
{
alias Seq!(int, string) Field;
auto t1 = Tup!(int, string)(10, "str");
Field field1 = t1; // NG -> OK
assert(field1[0] == 10);
assert(field1[1] == "str");
auto t2 = Tup!(int, string)(10, "str");
Field field2 = t2.field; // NG -> OK
assert(field2[0] == 10);
assert(field2[1] == "str");
auto t3 = Tup!(int, string)(10, "str");
Field field3;
field3 = t3.field;
assert(field3[0] == 10);
assert(field3[1] == "str");
}
void test6369b()
{
auto t = Tup!(Tup!(int, double), string)(tup(10, 3.14), "str");
Seq!(int, double, string) fs1 = t;
assert(fs1[0] == 10);
assert(fs1[1] == 3.14);
assert(fs1[2] == "str");
Seq!(Tup!(int, double), string) fs2 = t;
assert(fs2[0][0] == 10);
assert(fs2[0][1] == 3.14);
assert(fs2[0] == tup(10, 3.14));
assert(fs2[1] == "str");
Tup!(Tup!(int, double), string) fs3 = t;
assert(fs3[0][0] == 10);
assert(fs3[0][1] == 3.14);
assert(fs3[0] == tup(10, 3.14));
assert(fs3[1] == "str");
}
void test6369c()
{
auto t = Tup!(Tup!(int, double), Tup!(string, int[]))(tup(10, 3.14), tup("str", [1,2]));
Seq!(int, double, string, int[]) fs1 = t;
assert(fs1[0] == 10);
assert(fs1[1] == 3.14);
assert(fs1[2] == "str");
assert(fs1[3] == [1,2]);
Seq!(int, double, Tup!(string, int[])) fs2 = t;
assert(fs2[0] == 10);
assert(fs2[1] == 3.14);
assert(fs2[2] == tup("str", [1,2]));
Seq!(Tup!(int, double), string, int[]) fs3 = t;
assert(fs3[0] == tup(10, 3.14));
assert(fs3[0][0] == 10);
assert(fs3[0][1] == 3.14);
assert(fs3[1] == "str");
assert(fs3[2] == [1,2]);
}
void test6369d()
{
int eval = 0;
Seq!(int, string) t = tup((++eval, 10), "str");
assert(eval == 1);
assert(t[0] == 10);
assert(t[1] == "str");
}
/**********************************************/
// 6434
struct Variant6434{}
struct A6434
{
Variant6434 i;
alias i this;
void opDispatch(string name)()
{
}
}
void test6434()
{
A6434 a;
a.weird; // no property 'weird' for type 'VariantN!(maxSize)'
}
/**************************************/
// 6366
void test6366()
{
struct Zip
{
string str;
size_t i;
this(string s)
{
str = s;
}
@property const bool empty()
{
return i == str.length;
}
@property Tup!(size_t, char) front()
{
return typeof(return)(i, str[i]);
}
void popFront()
{
++i;
}
}
foreach (i, c; Zip("hello"))
{
switch (i)
{
case 0: assert(c == 'h'); break;
case 1: assert(c == 'e'); break;
case 2: assert(c == 'l'); break;
case 3: assert(c == 'l'); break;
case 4: assert(c == 'o'); break;
default:assert(0);
}
}
auto range(F...)(F field)
{
static struct Range {
F field;
bool empty = false;
Tup!F front() { return typeof(return)(field); }
void popFront(){ empty = true; }
}
return Range(field);
}
foreach (i, t; range(10, tup("str", [1,2]))){
static assert(is(typeof(i) == int));
static assert(is(typeof(t) == Tup!(string, int[])));
assert(i == 10);
assert(t == tup("str", [1,2]));
}
auto r1 = range(10, "str", [1,2]);
auto r2 = range(tup(10, "str"), [1,2]);
auto r3 = range(10, tup("str", [1,2]));
auto r4 = range(tup(10, "str", [1,2]));
alias Seq!(r1, r2, r3, r4) ranges;
foreach (n, _; ranges)
{
foreach (i, s, a; ranges[n]){
static assert(is(typeof(i) == int));
static assert(is(typeof(s) == string));
static assert(is(typeof(a) == int[]));
assert(i == 10);
assert(s == "str");
assert(a == [1,2]);
}
}
}
/**********************************************/
// Bugzill 6759
struct Range
{
size_t front() { return 0; }
void popFront() { empty = true; }
bool empty;
}
struct ARange
{
Range range;
alias range this;
}
void test6759()
{
ARange arange;
assert(arange.front == 0);
foreach(e; arange)
{
assert(e == 0);
}
}
/**********************************************/
// 6479
struct Memory6479
{
mixin Wrapper6479!();
}
struct Image6479
{
Memory6479 sup;
alias sup this;
}
mixin template Wrapper6479()
{
}
/**********************************************/
// 6832
void test6832()
{
static class Foo { }
static struct Bar { Foo foo; alias foo this; }
Bar bar;
bar = new Foo; // ok
assert(bar !is null); // ng
struct Int { int n; alias n this; }
Int a;
int b;
auto c = (true ? a : b); // TODO
assert(c == a);
}
/**********************************************/
// 6928
void test6928()
{
struct T { int* p; } // p is necessary.
T tx;
struct S {
T get() const { return tx; }
alias get this;
}
immutable(S) s;
immutable(T) t;
static assert(is(typeof(1? s:t))); // ok.
static assert(is(typeof(1? t:s))); // ok.
static assert(is(typeof(1? s:t)==typeof(1? t:s))); // fail.
auto x = 1? t:s; // ok.
auto y = 1? s:t; // compile error.
}
/**********************************************/
// 6929
struct S6929
{
T6929 get() const { return T6929.init; }
alias get this;
}
struct T6929
{
S6929 get() const { return S6929.init; }
alias get this;
}
void test6929()
{
T6929 t;
S6929 s;
static assert(!is(typeof(1? t:s)));
}
/***************************************************/
// 7136
void test7136()
{
struct X
{
Object get() immutable { return null; }
alias get this;
}
immutable(X) x;
Object y;
static assert( is(typeof(1?x:y) == Object)); // fails
static assert(!is(typeof(1?x:y) == const(Object))); // fails
struct A
{
int[] get() immutable { return null; }
alias get this;
}
immutable(A) a;
int[] b;
static assert( is(typeof(1?a:b) == int[])); // fails
static assert(!is(typeof(1?a:b) == const(int[]))); // fails
}
/***************************************************/
// 7731
struct A7731
{
int a;
}
template Inherit7731(alias X)
{
X __super;
alias __super this;
}
struct B7731
{
mixin Inherit7731!A7731;
int b;
}
struct PolyPtr7731(X)
{
X* _payload;
static if (is(typeof(X.init.__super)))
{
alias typeof(X.init.__super) Super;
@property auto getSuper(){ return PolyPtr7731!Super(&_payload.__super); }
alias getSuper this;
}
}
template create7731(X)
{
PolyPtr7731!X create7731(T...)(T args){
return PolyPtr7731!X(args);
}
}
void f7731a(PolyPtr7731!A7731 a) {/*...*/}
void f7731b(PolyPtr7731!B7731 b) {f7731a(b);/*...*/}
void test7731()
{
auto b = create7731!B7731();
}
/***************************************************/
// 7808
struct Nullable7808(T)
{
private T _value;
this()(T value)
{
_value = value;
}
@property ref inout(T) get() inout pure @safe
{
return _value;
}
alias get this;
}
class C7808 {}
struct S7808 { C7808 c; }
void func7808(S7808 s) {}
void test7808()
{
auto s = Nullable7808!S7808(S7808(new C7808));
func7808(s);
}
/***************************************************/
// 7945
struct S7945
{
int v;
alias v this;
}
void foo7945(ref int n){}
void test7945()
{
auto s = S7945(1);
foo7945(s); // 1.NG -> OK
s.foo7945(); // 2.OK, ufcs
foo7945(s.v); // 3.OK
s.v.foo7945(); // 4.OK, ufcs
}
/***************************************************/
// 7992
struct S7992
{
int[] arr;
alias arr this;
}
S7992 func7992(...)
{
S7992 ret;
ret.arr.length = _arguments.length;
return ret;
}
void test7992()
{
int[] arr;
assert(arr.length == 0);
arr ~= func7992(1, 2); //NG
//arr = func7992(1, 2); //OK
assert(arr.length == 2);
}
/***************************************************/
// 8169
void test8169()
{
static struct ValueImpl
{
static immutable(int) getValue()
{
return 42;
}
}
static struct ValueUser
{
ValueImpl m_valueImpl;
alias m_valueImpl this;
}
static assert(ValueImpl.getValue() == 42); // #0, OK
static assert(ValueUser.getValue() == 42); // #1, NG
static assert( ValueUser.m_valueImpl .getValue() == 42); // #2, NG
static assert(typeof(ValueUser.m_valueImpl).getValue() == 42); // #3, OK
}
/***************************************************/
int main()
{
test1();
test2();
test3();
test4();
test5();
test4773();
test5188();
test6();
test2781();
test6546();
test6736();
test2777a();
test2777b();
test5679();
test6508();
test6369a();
test6369b();
test6369c();
test6369d();
test6434();
test6366();
test6759();
test6832();
test6928();
test6929();
test7136();
test7731();
test7808();
test7945();
test7992();
test8169();
printf("Success\n");
return 0;
}
| D |
module UnrealScript.Engine.SeqAct_SetMaterial;
import ScriptClasses;
import UnrealScript.Helpers;
import UnrealScript.Engine.MaterialInterface;
import UnrealScript.Engine.SequenceAction;
extern(C++) interface SeqAct_SetMaterial : SequenceAction
{
public extern(D):
private static __gshared ScriptClass mStaticClass;
@property final static ScriptClass StaticClass() { mixin(MGSCC("Class Engine.SeqAct_SetMaterial")); }
private static __gshared SeqAct_SetMaterial mDefaultProperties;
@property final static SeqAct_SetMaterial DefaultProperties() { mixin(MGDPC("SeqAct_SetMaterial", "SeqAct_SetMaterial Engine.Default__SeqAct_SetMaterial")); }
@property final auto ref
{
int MaterialIndex() { mixin(MGPC("int", 236)); }
MaterialInterface NewMaterial() { mixin(MGPC("MaterialInterface", 232)); }
}
}
| D |
module imports.test40a;
import std.stdio;
template Mix()
{
static void foobar()
{
auto context = new Context;
auto ts = context.toString;
printf("context: %.*s %p\n", ts.length, ts.ptr, context);
context.func!(typeof(this))();
printf(`returning from opCall`\n);
}
}
class Bar
{
mixin Mix;
}
void someFunc(string z)
{
printf(`str length: %d`\n, z.length);
printf(`str: '%.*s'`\n, z.length, z.ptr);
}
class Context
{
void func(T)()
{
printf(`<context.func`\n);
printf(`thisptr: %p`\n, this);
someFunc(`a`);
printf(`context.func>`\n);
}
}
| D |
farther along in space or time or degree
on the farther side from the observer
in addition
| D |
<div class="datePicker">
<ul>
<li *ngFor="let picker of datePickerList" [ngClass]="{active: picker.active}" (click)="pick(picker)">
{{ picker.text }}
</li>
</ul>
</div> | D |
/Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DerivedData/DetectiveBoard/Build/Intermediates.noindex/Previews/DetectiveBoard/Intermediates.noindex/DetectiveBoard.build/Debug-iphonesimulator/DetectiveBoard.build/Objects-normal/x86_64/RoundedCircleStyle.o : /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/Tree.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/RoundedCircleStyle.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/Line.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/SceneDelegate.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/AppDelegate.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/Unique.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/Diagram.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/CollectDict.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/BinaryTreeView.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/ContentView.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreData.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Metal.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/os.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/SwiftUI.framework/Modules/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreData.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/os.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftUI.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/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DerivedData/DetectiveBoard/Build/Intermediates.noindex/Previews/DetectiveBoard/Intermediates.noindex/DetectiveBoard.build/Debug-iphonesimulator/DetectiveBoard.build/Objects-normal/x86_64/RoundedCircleStyle~partial.swiftmodule : /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/Tree.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/RoundedCircleStyle.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/Line.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/SceneDelegate.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/AppDelegate.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/Unique.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/Diagram.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/CollectDict.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/BinaryTreeView.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/ContentView.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreData.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Metal.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/os.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/SwiftUI.framework/Modules/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreData.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/os.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftUI.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/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DerivedData/DetectiveBoard/Build/Intermediates.noindex/Previews/DetectiveBoard/Intermediates.noindex/DetectiveBoard.build/Debug-iphonesimulator/DetectiveBoard.build/Objects-normal/x86_64/RoundedCircleStyle~partial.swiftdoc : /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/Tree.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/RoundedCircleStyle.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/Line.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/SceneDelegate.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/AppDelegate.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/Unique.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/Diagram.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/CollectDict.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/BinaryTreeView.swift /Users/rgero215/dev/DetectiveBoard/DetectiveBoard/DetectiveBoard/ContentView.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreData.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Metal.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/os.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/SwiftUI.framework/Modules/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreData.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/os.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftUI.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/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
| D |
//#not work
import std.stdio;
//#not work
template isVersion(string ver) {
enum bool isVersion =3D !is(typeof({
mixin("version(" ~ ver ~") static assert(0);");
}));
}
static if (isVersion"VERSION1" || isVersion!"VERSION3") {
writeln( "version is VERSION1 or VERSION3" );
} else {
writeln( "version is not either VERSION1 or VERSION3" );
}
void main() { }
| D |
/Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/MainFlutterWindow.o : /Users/ezshine/Work/Playgrounds/keepalive100s/macos/Runner/AppDelegate.swift /Users/ezshine/Work/Playgrounds/keepalive100s/macos/Flutter/GeneratedPluginRegistrant.swift /Users/ezshine/Work/Playgrounds/keepalive100s/macos/Runner/MainFlutterWindow.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreMedia.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreData.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Metal.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreLocation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreAudio.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CloudKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/AppKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterPluginMacOS.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterPluginRegistrarMacOS.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterMacOS.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterEngine.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterTexture.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterAppDelegate.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterBinaryMessenger.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterViewController.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterCodecs.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterChannels.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterMacros.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterDartProject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/dyld.modulemap /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.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/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioTypes.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CloudKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/MainFlutterWindow~partial.swiftmodule : /Users/ezshine/Work/Playgrounds/keepalive100s/macos/Runner/AppDelegate.swift /Users/ezshine/Work/Playgrounds/keepalive100s/macos/Flutter/GeneratedPluginRegistrant.swift /Users/ezshine/Work/Playgrounds/keepalive100s/macos/Runner/MainFlutterWindow.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreMedia.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreData.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Metal.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreLocation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreAudio.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CloudKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/AppKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterPluginMacOS.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterPluginRegistrarMacOS.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterMacOS.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterEngine.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterTexture.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterAppDelegate.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterBinaryMessenger.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterViewController.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterCodecs.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterChannels.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterMacros.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterDartProject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/dyld.modulemap /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.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/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioTypes.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CloudKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/MainFlutterWindow~partial.swiftdoc : /Users/ezshine/Work/Playgrounds/keepalive100s/macos/Runner/AppDelegate.swift /Users/ezshine/Work/Playgrounds/keepalive100s/macos/Flutter/GeneratedPluginRegistrant.swift /Users/ezshine/Work/Playgrounds/keepalive100s/macos/Runner/MainFlutterWindow.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreMedia.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreData.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Metal.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreLocation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreAudio.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CloudKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/AppKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterPluginMacOS.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterPluginRegistrarMacOS.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterMacOS.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterEngine.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterTexture.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterAppDelegate.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterBinaryMessenger.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterViewController.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterCodecs.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterChannels.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterMacros.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterDartProject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/dyld.modulemap /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.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/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioTypes.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CloudKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Intermediates.noindex/Runner.build/Debug/Runner.build/Objects-normal/x86_64/MainFlutterWindow~partial.swiftsourceinfo : /Users/ezshine/Work/Playgrounds/keepalive100s/macos/Runner/AppDelegate.swift /Users/ezshine/Work/Playgrounds/keepalive100s/macos/Flutter/GeneratedPluginRegistrant.swift /Users/ezshine/Work/Playgrounds/keepalive100s/macos/Runner/MainFlutterWindow.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreMedia.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreData.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Metal.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreLocation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreAudio.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CloudKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/AppKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterPluginMacOS.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterPluginRegistrarMacOS.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterMacOS.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterEngine.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterTexture.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterAppDelegate.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterBinaryMessenger.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterViewController.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterCodecs.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterChannels.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterMacros.h /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Headers/FlutterDartProject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/dyld.modulemap /Users/ezshine/Work/Playgrounds/keepalive100s/build/macos/Build/Products/Debug/FlutterMacOS.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreMedia.framework/Headers/CoreMedia.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.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/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreAudioTypes.framework/Headers/CoreAudioTypes.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CloudKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
| D |
/Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactiveCocoa.build/Objects-normal/x86_64/ObjC+Runtime.o : /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UITextField.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UIKeyboard.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+Lifetime.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/ReactiveSwift+Lifetime.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/ObjC+Runtime.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+ObjCRuntime.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/ObjC+RuntimeSubclassing.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+Intercepting.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+KeyValueObserving.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+Synchronizing.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UISwitch.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UILabel.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIControl.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UISegmentedControl.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UIRefreshControl.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UINavigationItem.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIBarButtonItem.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIBarItem.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UITabBarItem.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+Association.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/CocoaAction.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIButton.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UISearchBar.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UISlider.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+ReactiveExtensionsProvider.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UIDatePicker.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UIStepper.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIGestureRecognizer.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UINotificationFeedbackGenerator.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UISelectionFeedbackGenerator.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UIImpactFeedbackGenerator.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UIFeedbackGenerator.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/ObjC+Selector.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/ObjC+Messages.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/Deprecations+Removals.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/ObjC+Constants.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/ReusableComponents.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/CocoaTarget.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+BindingTarget.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/Shared/NSLayoutConstraint.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIImageView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UITableView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIScrollView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UICollectionView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UIPickerView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIActivityIndicatorView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIProgressView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UITextView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/DynamicProperty.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/DelegateProxy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Products/Debug-iphonesimulator/ReactiveSwift/ReactiveSwift.framework/Modules/ReactiveSwift.swiftmodule/x86_64.swiftmodule /Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Products/Debug-iphonesimulator/Result/Result.framework/Modules/Result.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/linjianguo/Desktop/ReactiveCoCoDemo/Pods/Target\ Support\ Files/ReactiveSwift/ReactiveSwift-umbrella.h /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/Target\ Support\ Files/Result/Result-umbrella.h /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/ReactiveCocoa.h /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/ObjCRuntimeAliases.h /Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Products/Debug-iphonesimulator/ReactiveSwift/ReactiveSwift.framework/Headers/ReactiveSwift-Swift.h /Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Products/Debug-iphonesimulator/Result/Result.framework/Headers/Result-Swift.h /Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactiveCocoa.build/unextended-module.modulemap /Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactiveSwift.build/module.modulemap /Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Result.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactiveCocoa.build/Objects-normal/x86_64/ObjC+Runtime~partial.swiftmodule : /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UITextField.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UIKeyboard.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+Lifetime.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/ReactiveSwift+Lifetime.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/ObjC+Runtime.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+ObjCRuntime.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/ObjC+RuntimeSubclassing.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+Intercepting.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+KeyValueObserving.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+Synchronizing.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UISwitch.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UILabel.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIControl.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UISegmentedControl.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UIRefreshControl.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UINavigationItem.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIBarButtonItem.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIBarItem.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UITabBarItem.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+Association.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/CocoaAction.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIButton.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UISearchBar.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UISlider.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+ReactiveExtensionsProvider.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UIDatePicker.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UIStepper.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIGestureRecognizer.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UINotificationFeedbackGenerator.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UISelectionFeedbackGenerator.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UIImpactFeedbackGenerator.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UIFeedbackGenerator.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/ObjC+Selector.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/ObjC+Messages.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/Deprecations+Removals.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/ObjC+Constants.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/ReusableComponents.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/CocoaTarget.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+BindingTarget.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/Shared/NSLayoutConstraint.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIImageView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UITableView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIScrollView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UICollectionView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UIPickerView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIActivityIndicatorView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIProgressView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UITextView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/DynamicProperty.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/DelegateProxy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Products/Debug-iphonesimulator/ReactiveSwift/ReactiveSwift.framework/Modules/ReactiveSwift.swiftmodule/x86_64.swiftmodule /Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Products/Debug-iphonesimulator/Result/Result.framework/Modules/Result.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/linjianguo/Desktop/ReactiveCoCoDemo/Pods/Target\ Support\ Files/ReactiveSwift/ReactiveSwift-umbrella.h /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/Target\ Support\ Files/Result/Result-umbrella.h /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/ReactiveCocoa.h /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/ObjCRuntimeAliases.h /Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Products/Debug-iphonesimulator/ReactiveSwift/ReactiveSwift.framework/Headers/ReactiveSwift-Swift.h /Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Products/Debug-iphonesimulator/Result/Result.framework/Headers/Result-Swift.h /Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactiveCocoa.build/unextended-module.modulemap /Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactiveSwift.build/module.modulemap /Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Result.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactiveCocoa.build/Objects-normal/x86_64/ObjC+Runtime~partial.swiftdoc : /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UITextField.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UIKeyboard.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+Lifetime.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/ReactiveSwift+Lifetime.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/ObjC+Runtime.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+ObjCRuntime.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/ObjC+RuntimeSubclassing.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+Intercepting.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+KeyValueObserving.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+Synchronizing.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UISwitch.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UILabel.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIControl.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UISegmentedControl.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UIRefreshControl.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UINavigationItem.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIBarButtonItem.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIBarItem.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UITabBarItem.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+Association.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/CocoaAction.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIButton.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UISearchBar.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UISlider.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+ReactiveExtensionsProvider.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UIDatePicker.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UIStepper.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIGestureRecognizer.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UINotificationFeedbackGenerator.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UISelectionFeedbackGenerator.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UIImpactFeedbackGenerator.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UIFeedbackGenerator.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/ObjC+Selector.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/ObjC+Messages.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/Deprecations+Removals.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/ObjC+Constants.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/ReusableComponents.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/CocoaTarget.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+BindingTarget.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/Shared/NSLayoutConstraint.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIImageView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UITableView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIScrollView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UICollectionView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/iOS/UIPickerView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIActivityIndicatorView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UIProgressView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/UIKit/UITextView.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/DynamicProperty.swift /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/DelegateProxy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Products/Debug-iphonesimulator/ReactiveSwift/ReactiveSwift.framework/Modules/ReactiveSwift.swiftmodule/x86_64.swiftmodule /Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Products/Debug-iphonesimulator/Result/Result.framework/Modules/Result.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/linjianguo/Desktop/ReactiveCoCoDemo/Pods/Target\ Support\ Files/ReactiveSwift/ReactiveSwift-umbrella.h /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/Target\ Support\ Files/Result/Result-umbrella.h /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/ReactiveCocoa.h /Users/linjianguo/Desktop/ReactiveCoCoDemo/Pods/ReactiveCocoa/ReactiveCocoa/ObjCRuntimeAliases.h /Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Products/Debug-iphonesimulator/ReactiveSwift/ReactiveSwift.framework/Headers/ReactiveSwift-Swift.h /Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Products/Debug-iphonesimulator/Result/Result.framework/Headers/Result-Swift.h /Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactiveCocoa.build/unextended-module.modulemap /Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactiveSwift.build/module.modulemap /Users/linjianguo/Desktop/ReactiveCoCoDemo/DerivedData/ReactiveCoCoDemo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Result.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.3.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
| D |
instance DIA_Bromor_EXIT(C_Info)
{
npc = VLK_433_Bromor;
nr = 999;
condition = DIA_Bromor_EXIT_Condition;
information = DIA_Bromor_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Bromor_EXIT_Condition()
{
return TRUE;
};
func void DIA_Bromor_EXIT_Info()
{
B_NpcClearObsessionByDMT(self);
};
var int BromorFirstMeet;
instance DIA_Bromor_GIRLS(C_Info)
{
npc = VLK_433_Bromor;
nr = 2;
condition = DIA_Bromor_GIRLS_Condition;
information = DIA_Bromor_GIRLS_Info;
permanent = TRUE;
description = "To je tvůj kšeft?";
};
func int DIA_Bromor_GIRLS_Condition()
{
if((NpcObsessedByDMT_Bromor == FALSE) && (BromorFirstMeet == FALSE))
{
return TRUE;
};
};
func void DIA_Bromor_GIRLS_Info()
{
if(Wld_IsTime(13,0,16,0) == FALSE)
{
AI_Output(other,self,"DIA_Addon_Bromor_GIRLS_15_00"); //To je tvůj kšeft?
AI_Output(self,other,"DIA_Bromor_GIRLS_07_02"); //Jsem Bromor. Tohle je můj dům a tohle jsou moje holky. Mám je rád.
AI_Output(self,other,"DIA_Bromor_GIRLS_07_03"); //A jestli se líbí i tobě, pak za to musíš zaplatit - 50 zlatých.
AI_Output(self,other,"DIA_Bromor_GIRLS_07_04"); //A ať tě ani nenapadne dělat tu nějaký bordel.
BromorFirstMeet = TRUE;
}
else
{
B_Say(self,other,"$NOTNOW");
AI_StopProcessInfos(self);
Npc_SetRefuseTalk(self,300);
};
};
instance DIA_Addon_Bromor_MissingPeople(C_Info)
{
npc = VLK_433_Bromor;
nr = 2;
condition = DIA_Addon_Bromor_MissingPeople_Condition;
information = DIA_Addon_Bromor_MissingPeople_Info;
description = "Jsou holky vpořádku?";
};
func int DIA_Addon_Bromor_MissingPeople_Condition()
{
if((NpcObsessedByDMT_Bromor == FALSE) && (SC_HearedAboutMissingPeople == TRUE) && (BromorFirstMeet == TRUE))
{
return TRUE;
};
};
func void DIA_Addon_Bromor_MissingPeople_Info()
{
AI_Output(other,self,"DIA_Addon_Bromor_MissingPeople_15_00"); //Jsou holky vpořádku?
AI_Output(self,other,"DIA_Addon_Bromor_MissingPeople_07_01"); //Samozřejmě! Myslíš, že bych chtěl být ve vězení za takovou blbost?
AI_Output(other,self,"DIA_Addon_Bromor_MissingPeople_15_02"); //Hm... Nezmiňuji jejich věk. Možná některá z nich chybí?
AI_Output(self,other,"DIA_Addon_Bromor_MissingPeople_07_03"); //Ach tak. Právě jedna z mých dívek zmizela - její jméno je Lucia.
AI_Output(self,other,"DIA_Addon_Bromor_MissingPeople_07_04"); //Oznámil jsem to i domobraně, ale nebyli schopni sledovat její stoupu příliš dlouho.
Log_CreateTopic(TOPIC_Addon_MissingPeople,LOG_MISSION);
Log_SetTopicStatus(TOPIC_Addon_MissingPeople,LOG_Running);
B_LogEntry(TOPIC_Addon_MissingPeople,"Jedna z holek z Červené lucerny v přístavu se ztratila.");
};
instance DIA_Addon_Bromor_Lucia(C_Info)
{
npc = VLK_433_Bromor;
nr = 5;
condition = DIA_Addon_Bromor_Lucia_Condition;
information = DIA_Addon_Bromor_Lucia_Info;
description = "Jak dlouho už ji postrádáš?";
};
func int DIA_Addon_Bromor_Lucia_Condition()
{
if((NpcObsessedByDMT_Bromor == FALSE) && (SC_HearedAboutMissingPeople == TRUE) && Npc_KnowsInfo(other,DIA_Addon_Bromor_MissingPeople))
{
return TRUE;
};
};
func void DIA_Addon_Bromor_Lucia_Info()
{
AI_Output(other,self,"DIA_Addon_Bromor_Lucia_15_00"); //Jak dlouho už ji postrádáš?
AI_Output(self,other,"DIA_Addon_Bromor_Lucia_07_01"); //Musí to být jen pár dnů. Nevím to ale přesně.
AI_Output(self,other,"DIA_Addon_Bromor_Lucia_07_02"); //Hádám, že utekla s jedním se svých nápadníků.
AI_Output(self,other,"DIA_Addon_Bromor_Lucia_07_03"); //A ta štětka taky utekla s mou cennou zlatou mísou.
AI_Output(self,other,"DIA_Addon_Bromor_Lucia_07_04"); //Kdybych ji chytil, pěkně by za to zaplatila!
AI_Output(self,other,"DIA_Addon_Bromor_Lucia_07_05"); //Přijde ti něco na té věci směšného?
Log_CreateTopic(TOPIC_Addon_BromorsGold,LOG_MISSION);
Log_SetTopicStatus(TOPIC_Addon_BromorsGold,LOG_Running);
B_LogEntry(TOPIC_Addon_BromorsGold,"Jedna z holek jménem Lucia ukradla svému šéfovi zlatou mísu. Bromor ji chce zpět.");
MIS_Bromor_LuciaStoleGold = LOG_Running;
};
instance DIA_Addon_Bromor_LuciaGold(C_Info)
{
npc = VLK_433_Bromor;
nr = 5;
condition = DIA_Addon_Bromor_LuciaGold_Condition;
information = DIA_Addon_Bromor_LuciaGold_Info;
permanent = TRUE;
description = "Našel jsem tu mísu, co ti Lucia vzala.";
};
func int DIA_Addon_Bromor_LuciaGold_Condition()
{
if((NpcObsessedByDMT_Bromor == FALSE) && (MIS_Bromor_LuciaStoleGold == LOG_Running) && Npc_HasItems(other,ItMi_BromorsGeld_Addon))
{
return TRUE;
};
};
func void DIA_Addon_Bromor_LuciaGold_Info()
{
AI_Output(other,self,"DIA_Addon_Bromor_LuciaGold_15_00"); //Našel jsem tu mísu, co ti Lucia vzala.
AI_Output(self,other,"DIA_Addon_Bromor_LuciaGold_07_01"); //Skvělé!
Info_ClearChoices(DIA_Addon_Bromor_LuciaGold);
if(Bromor_Hausverbot == FALSE)
{
Info_AddChoice(DIA_Addon_Bromor_LuciaGold,"A co nějaká odměna?",DIA_Addon_Bromor_LuciaGold_lohn);
};
Info_AddChoice(DIA_Addon_Bromor_LuciaGold,"Tady je tvá mísa.",DIA_Addon_Bromor_LuciaGold_einfachgeben);
if(DIA_Addon_Bromor_LuciaGold_lucia_OneTime == FALSE)
{
Info_AddChoice(DIA_Addon_Bromor_LuciaGold,"Nechceš vědět, kde Lucia je?",DIA_Addon_Bromor_LuciaGold_lucia);
};
};
func void DIA_Addon_Bromor_LuciaGold_einfachgeben()
{
AI_Output(other,self,"DIA_Addon_Bromor_LuciaGold_einfachgeben_15_00"); //Tady je tvá mísa.
B_GiveInvItems(other,self,ItMi_BromorsGeld_Addon,1);
AI_Output(self,other,"DIA_Addon_Bromor_LuciaGold_einfachgeben_07_01"); //Díky, je to od tebe hezké. Chtěl bys něco dalšího?
MIS_Bromor_LuciaStoleGold = LOG_SUCCESS;
Bromor_Hausverbot = FALSE;
B_GivePlayerXP(XP_Addon_Bromor_LuciaGold);
Info_ClearChoices(DIA_Addon_Bromor_LuciaGold);
};
var int DIA_Addon_Bromor_LuciaGold_lucia_OneTime;
func void DIA_Addon_Bromor_LuciaGold_lucia()
{
AI_Output(other,self,"DIA_Addon_Bromor_LuciaGold_lucia_15_00"); //Nechceš vědět, kde Lucia je?
AI_Output(self,other,"DIA_Addon_Bromor_LuciaGold_lucia_07_01"); //Ne, proč? Mísa je zpět.
AI_Output(self,other,"DIA_Addon_Bromor_LuciaGold_lucia_07_02"); //Obchod běží a já se obejdu i bez ní. Přece ji nebudu nutit.
DIA_Addon_Bromor_LuciaGold_lucia_OneTime = TRUE;
};
func void DIA_Addon_Bromor_LuciaGold_lohn()
{
AI_Output(other,self,"DIA_Addon_Bromor_LuciaGold_lohn_15_00"); //A co nějaká odměna?
AI_Output(self,other,"DIA_Addon_Bromor_LuciaGold_lohn_07_01"); //Můžeš mít jednu moji holku zadarmo. Souhlasíš?
Info_ClearChoices(DIA_Addon_Bromor_LuciaGold);
if(DIA_Addon_Bromor_LuciaGold_lucia_OneTime == FALSE)
{
Info_AddChoice(DIA_Addon_Bromor_LuciaGold,"Nechceš vědět, kde Lucia je?",DIA_Addon_Bromor_LuciaGold_lucia);
};
Info_AddChoice(DIA_Addon_Bromor_LuciaGold,"Tak to ne.",DIA_Addon_Bromor_LuciaGold_mehr);
Info_AddChoice(DIA_Addon_Bromor_LuciaGold,"Dohodnuto, tady je tvá mísa.",DIA_Addon_Bromor_LuciaGold_geben);
};
func void DIA_Addon_Bromor_LuciaGold_mehr()
{
AI_Output(other,self,"DIA_Addon_Bromor_LuciaGold_mehr_15_00"); //Tak to ne.
AI_Output(self,other,"DIA_Addon_Bromor_LuciaGold_mehr_07_01"); //Můžeš to přijmout nebo se sem už nevracej.
Info_AddChoice(DIA_Addon_Bromor_LuciaGold,"Zapomeň na to.",DIA_Addon_Bromor_LuciaGold_nein);
};
func void DIA_Addon_Bromor_LuciaGold_nein()
{
AI_Output(other,self,"DIA_Addon_Bromor_LuciaGold_nein_15_00"); //Zapomeň na to.
AI_Output(self,other,"DIA_Addon_Bromor_LuciaGold_nein_07_01"); //Pak vypadni z mého obchodu, ty kriminálníku.
AI_Output(self,other,"DIA_Addon_Bromor_LuciaGold_nein_07_02"); //Neočekávej, že tě tu někdy obsloužím.
Info_ClearChoices(DIA_Addon_Bromor_LuciaGold);
Bromor_Hausverbot = TRUE;
Bromor_Pay = 0;
};
func void DIA_Addon_Bromor_LuciaGold_geben()
{
AI_Output(other,self,"DIA_Addon_Bromor_LuciaGold_geben_15_00"); //Dohodnuto, tady je tvá mísa.
B_GiveInvItems(other,self,ItMi_BromorsGeld_Addon,1);
AI_Output(self,other,"DIA_Addon_Bromor_LuciaGold_geben_07_01"); //Díky, běž za Nadjou. Zajde s tebou nahoru...
Bromor_Pay = TRUE;
NadjaIsUp = FALSE;
Nadja_Nacht = FALSE;
MIS_Bromor_LuciaStoleGold = LOG_SUCCESS;
Bromor_Hausverbot = FALSE;
B_GivePlayerXP(XP_Addon_Bromor_LuciaGold);
Info_ClearChoices(DIA_Addon_Bromor_LuciaGold);
};
instance DIA_Bromor_Pay(C_Info)
{
npc = VLK_433_Bromor;
nr = 2;
condition = DIA_Bromor_Pay_Condition;
information = DIA_Bromor_Pay_Info;
permanent = TRUE;
description = "Chci se trochu pobavit (zaplatit 50 zlatých)";
};
func int DIA_Bromor_Pay_Condition()
{
if((Bromor_Pay == FALSE) && (Bromor_Hausverbot == FALSE) && (BromorFirstMeet == TRUE) && (NpcObsessedByDMT_Bromor == FALSE) && (Npc_IsDead(Nadja) == FALSE))
{
return TRUE;
};
};
var int DIA_Bromor_Pay_OneTime;
func void DIA_Bromor_Pay_Info()
{
AI_Output(other,self,"DIA_Bromor_Pay_15_00"); //Chci se trochu pobavit.
if(B_GiveInvItems(other,self,ItMi_Gold,50))
{
AI_Output(self,other,"DIA_Bromor_Pay_07_01"); //Fajn (zašklebí se). Na následujících pár hodin nejspíš nikdy v životě nezapomeneš.
AI_Output(self,other,"DIA_Bromor_Pay_07_02"); //Vyjdi s Nadjou po schodech nahoru a užij si to!
if(DIA_Bromor_Pay_OneTime == FALSE)
{
DIA_Bromor_Pay_OneTime = TRUE;
};
Bromor_Pay = TRUE;
NadjaIsUp = FALSE;
}
else
{
AI_Output(self,other,"DIA_Bromor_Pay_07_03"); //Nesnáším, když si ze mě někdo dělá dobrý den. Jestli nemáš na zaplacení, tak odsud vymajzni.
};
B_NpcClearObsessionByDMT(self);
};
instance DIA_Bromor_DOPE(C_Info)
{
npc = VLK_433_Bromor;
nr = 3;
condition = DIA_Bromor_DOPE_Condition;
information = DIA_Bromor_DOPE_Info;
permanent = FALSE;
description = "Můžu tu dostat i nějaké 'zvláštní' zboží?";
};
func int DIA_Bromor_DOPE_Condition()
{
if((MIS_Andre_REDLIGHT == LOG_Running) && (NpcObsessedByDMT_Bromor == FALSE) && (Bromor_Hausverbot == FALSE))
{
return TRUE;
};
};
func void DIA_Bromor_DOPE_Info()
{
AI_Output(other,self,"DIA_Bromor_DOPE_15_00"); //Můžu tu dostat i nějaké 'zvláštní' zboží?
AI_Output(self,other,"DIA_Bromor_DOPE_07_01"); //Jasně, všechny holky jsou zvláštní (zašklebí se).
AI_Output(self,other,"DIA_Bromor_DOPE_07_02"); //Jestli máš dost zlata, můžeš jít s Nadjou nahoru.
};
instance DIA_Bromor_Obsession(C_Info)
{
npc = VLK_433_Bromor;
nr = 30;
condition = DIA_Bromor_Obsession_Condition;
information = DIA_Bromor_Obsession_Info;
description = "Jsi v pořádku?";
};
func int DIA_Bromor_Obsession_Condition()
{
if((Kapitel >= 3) && (NpcObsessedByDMT_Bromor == FALSE) && (hero.guild == GIL_KDF))
{
return TRUE;
};
};
var int DIA_Bromor_Obsession_GotMoney;
func void DIA_Bromor_Obsession_Info()
{
B_NpcObsessedByDMT(self);
};
instance DIA_Bromor_Heilung(C_Info)
{
npc = VLK_433_Bromor;
nr = 55;
condition = DIA_Bromor_Heilung_Condition;
information = DIA_Bromor_Heilung_Info;
permanent = TRUE;
description = "Ty jsi posedlý.";
};
func int DIA_Bromor_Heilung_Condition()
{
if((NpcObsessedByDMT_Bromor == TRUE) && (NpcObsessedByDMT == FALSE) && (hero.guild == GIL_KDF))
{
return TRUE;
};
};
func void DIA_Bromor_Heilung_Info()
{
AI_Output(other,self,"DIA_Bromor_Heilung_15_00"); //Ty jsi posedlý.
AI_Output(self,other,"DIA_Bromor_Heilung_07_01"); //Cože? O čem to mluvíš? Vypadni odsud.
B_NpcClearObsessionByDMT(self);
};
instance DIA_Bromor_PICKPOCKET(C_Info)
{
npc = VLK_433_Bromor;
nr = 900;
condition = DIA_Bromor_PICKPOCKET_Condition;
information = DIA_Bromor_PICKPOCKET_Info;
permanent = TRUE;
description = "(Krádež tohoto klíče by byla dosti riskantní.)";
};
func int DIA_Bromor_PICKPOCKET_Condition()
{
if((Npc_GetTalentSkill(other,NPC_TALENT_PICKPOCKET) >= 1) && (self.aivar[AIV_PlayerHasPickedMyPocket] == FALSE) && (Npc_HasItems(self,ItKe_Bromor) >= 1))
{
return TRUE;
};
};
func void DIA_Bromor_PICKPOCKET_Info()
{
Info_ClearChoices(DIA_Bromor_PICKPOCKET);
Info_AddChoice(DIA_Bromor_PICKPOCKET,Dialog_Back,DIA_Bromor_PICKPOCKET_BACK);
Info_AddChoice(DIA_Bromor_PICKPOCKET,DIALOG_PICKPOCKET,DIA_Bromor_PICKPOCKET_DoIt);
};
func void DIA_Bromor_PICKPOCKET_DoIt()
{
AI_PlayAni(other,"T_STEAL");
AI_Wait(other,1);
if((other.attribute[ATR_DEXTERITY] + PickPocketBonusCount) >= Hlp_Random(self.attribute[ATR_DEXTERITY]))
{
if((other.guild == GIL_PAL) || (other.guild == GIL_KDF))
{
INNOSCRIMECOUNT = INNOSCRIMECOUNT + 1;
}
else
{
GlobalThiefCount += 1;
if(GlobalThiefCount >= 3)
{
INNOSCRIMECOUNT = INNOSCRIMECOUNT + 1;
GlobalThiefCount = FALSE;
};
};
B_GiveInvItems(self,other,ItKe_Bromor,1);
self.aivar[AIV_PlayerHasPickedMyPocket] = TRUE;
B_GiveThiefXP();
Info_ClearChoices(DIA_Bromor_PICKPOCKET);
}
else
{
if((other.guild == GIL_PAL) || (other.guild == GIL_KDF))
{
INNOSCRIMECOUNT = INNOSCRIMECOUNT + 1;
};
THIEFCATCHER = Hlp_GetNpc(self);
HERO_CANESCAPEFROMGOTCHA = TRUE;
B_ResetThiefLevel();
AI_StopProcessInfos(self);
self.vars[0] = TRUE;
};
};
func void DIA_Bromor_PICKPOCKET_BACK()
{
Info_ClearChoices(DIA_Bromor_PICKPOCKET);
};
instance DIA_Bromor_AskForWoman(C_Info)
{
npc = VLK_433_Bromor;
nr = 2;
condition = DIA_Bromor_AskForWoman_Condition;
information = DIA_Bromor_AskForWoman_Info;
permanent = FALSE;
description = "Mám zvláštní objednávku!";
};
func int DIA_Bromor_AskForWoman_Condition()
{
if((MIS_WomanForSkip == LOG_Running) && (BromorFirstMeet == TRUE) && (NpcObsessedByDMT_Bromor == FALSE))
{
return TRUE;
};
};
func void DIA_Bromor_AskForWoman_Info()
{
AI_Output(other,self,"DIA_Bromor_AskForWoman_01_01"); //Mám zvláštní objednávku!
if(Npc_IsDead(VLK_436_Sonja) == FALSE)
{
AI_Output(self,other,"DIA_Bromor_AskForWoman_01_02"); //Ty chceš dvě? (ušklíbá se) Nebo snad tři?!
AI_Output(self,other,"DIA_Bromor_AskForWoman_01_03"); //Bohužel, nemám tolik volných holek.
AI_Output(other,self,"DIA_Bromor_AskForWoman_01_04"); //Ne, stačí mě jedna, ale na tři dny.
AI_Output(self,other,"DIA_Bromor_AskForWoman_01_05"); //Žádný problém! (ušklíbá se) Když týden nevylezeš z mého bordelu! Budu jen rád.
AI_Output(other,self,"DIA_Bromor_AskForWoman_01_06"); //No vlastně si chci vzít jednu z tvých holek sebou.
AI_Output(other,self,"DIA_Bromor_AskForWoman_01_07"); //Slibuju, že ji přivedu zpět celou a v pořádku!
AI_Output(self,other,"DIA_Bromor_AskForWoman_01_08"); //(udiveně) Ano, tvůj požadavek je neobvyklý! Nicméně s tím nemám problém.
AI_Output(self,other,"DIA_Bromor_AskForWoman_01_09"); //Chápeš, že to bude něco stát!
AI_Output(other,self,"DIA_Bromor_AskForWoman_01_10"); //Kolik chceš?
AI_Output(self,other,"DIA_Bromor_AskForWoman_01_11"); //Počkej popřemýšlím. Tři dny po padesáti zlatých... To dělá 150 zlatých.
AI_Output(self,other,"DIA_Bromor_AskForWoman_01_12"); //Za práci mimo můj podnik beru dvojitou sazbu, tak to máme 300 zlatých.
AI_Output(self,other,"DIA_Bromor_AskForWoman_01_13"); //A za riziko, že se dívce něco stane nebo že se nevrátí, je příplatek 700 zlatých.
AI_Output(self,other,"DIA_Bromor_AskForWoman_01_14"); //Takže to dělá dva tisíce zlatých a můžem si plácnout!
Info_ClearChoices(DIA_Bromor_AskForWoman);
if(RhetorikSkillValue[1] >= 20)
{
Info_AddChoice(DIA_Bromor_AskForWoman,"Máš velmi zvláštní počty!",DIA_Bromor_AskForWoman_Yes);
};
Info_AddChoice(DIA_Bromor_AskForWoman,"Není to moc?",DIA_Bromor_AskForWoman_No);
}
else
{
AI_Output(self,other,"DIA_Bromor_AskForWoman_01_15"); //Promiň. Jedna z mých dívek je mrtvá.
AI_Output(self,other,"DIA_Bromor_AskForWoman_01_16"); //Takže neberu speciální objednávky.
SonyaNoGoWithMe = TRUE;
};
};
func void DIA_Bromor_AskForWoman_Yes()
{
AI_Output(other,self,"DIA_Bromor_AskForWoman_Yes_01_01"); //Máš velmi zvláštní počty!
AI_Output(self,other,"DIA_Bromor_AskForWoman_Yes_01_02"); //(nechápavě) Vážně?
AI_Output(other,self,"DIA_Bromor_AskForWoman_Yes_01_03"); //Já jsem napočítal 1000 zlatých.
AI_Output(self,other,"DIA_Bromor_AskForWoman_Yes_01_04"); //Ach, ano...(nevinně) Úplně jsem zapomněl zmínit malou daň pro stráže.
AI_Output(self,other,"DIA_Bromor_AskForWoman_Yes_01_05"); //Nikdy nevíš, můžou se vyskytnout nějaký problémy.
AI_Output(other,self,"DIA_Bromor_AskForWoman_Yes_01_06"); //Se strážema si to vyřiď sám. Mě obírat nebudou.
AI_Output(other,self,"DIA_Bromor_AskForWoman_Yes_01_07"); //Tak co, dám ti přesně 1000 zlatých a dívka půjde se mnou.
AI_Output(self,other,"DIA_Bromor_AskForWoman_Yes_01_08"); //Och... (sklamaně) Dobře, ruku na to. Ale zaplať předem!
if(RhetorikSkillValue[1] < 100)
{
RhetorikSkillValue[1] = RhetorikSkillValue[1] + 1;
AI_Print("Rétorika + 1");
};
B_LogEntry(TOPIC_WomanForSkip,"Bromor mě pronajmul jednu ze svých dívek za 1000 zlatých.");
BromorDisCount_01 = TRUE;
};
func void DIA_Bromor_AskForWoman_No()
{
AI_Output(other,self,"DIA_Bromor_AskForWoman_No_01_01"); //Není to moc?
AI_Output(self,other,"DIA_Bromor_AskForWoman_No_01_02"); //Takový jsou podmínky! Jestli nechceš nemusíš platit.
AI_Output(self,other,"DIA_Bromor_AskForWoman_No_01_03"); //Jde tady o moji holku, na to nezapomínej.
B_LogEntry(TOPIC_WomanForSkip,"Bromor mě pronajmul jednu ze svých dívek za 2000 zlatých.");
BromorDisCount_02 = TRUE;
};
instance DIA_Bromor_AskForWoman_Pay(C_Info)
{
npc = VLK_433_Bromor;
nr = 2;
condition = DIA_Bromor_AskForWoman_Pay_Condition;
information = DIA_Bromor_AskForWoman_Pay_Info;
permanent = TRUE;
description = "Tady je tvoje zlato.";
};
func int DIA_Bromor_AskForWoman_Pay_Condition()
{
if((MIS_WomanForSkip == LOG_Running) && (SonyaGoWithMe == FALSE) && (SonyaNoGoWithMe == FALSE) && ((BromorDisCount_01 == TRUE) || (BromorDisCount_02 == TRUE)))
{
return TRUE;
};
};
func void DIA_Bromor_AskForWoman_Pay_Info()
{
AI_Output(other,self,"DIA_Bromor_AskForWoman_Pay_01_01"); //Tady je tvoje zlato.
if(Npc_IsDead(VLK_436_Sonja) == TRUE)
{
AI_Output(self,other,"DIA_Bromor_AskForWoman_Pay_01_02"); //Jedna z mích dívek je mrtvá! Takže dohoda padá.
B_LogEntry(TOPIC_WomanForSkip,"Bromor odmítl dohodu, protože jedna z jeho dívek je mrtvá.");
SonyaNoGoWithMe = TRUE;
AI_StopProcessInfos(self);
}
else
{
if(BromorDisCount_01 == TRUE)
{
if(Npc_HasItems(hero,ItMi_Gold) >= 1000)
{
B_GivePlayerXP(100);
B_GiveInvItems(other,self,ItMi_Gold,1000);
Npc_RemoveInvItems(self,ItMi_Gold,1000);
AI_Output(self,other,"DIA_Bromor_AskForWoman_Pay_01_03"); //Výborně! Sonja může jít s tebou.
AI_Output(self,other,"DIA_Bromor_AskForWoman_Pay_01_04"); //Nezapomeň, vrať mě ji v pořádku a včas! Jinak zalarmuju stráže.
B_LogEntry(TOPIC_WomanForSkip,"Teď si může jít Sonja se mnou. Nesmím zapomenout ji vrátit Bromorovi včas.");
SonyaGoWithMe = TRUE;
SonyaGoWithMeDay = Wld_GetDay();
AI_StopProcessInfos(self);
}
else
{
AI_Print(Print_NotEnoughGold);
AI_Output(self,other,"DIA_Bromor_Pay_07_03"); //Nesnáším, když se mě někdo snaží podvést, vypadni jestli nemůžeš platit.
AI_StopProcessInfos(self);
};
}
else if(BromorDisCount_02 == TRUE)
{
if(Npc_HasItems(hero,ItMi_Gold) >= 2000)
{
B_GivePlayerXP(100);
B_GiveInvItems(other,self,ItMi_Gold,2000);
Npc_RemoveInvItems(self,ItMi_Gold,2000);
AI_Output(self,other,"DIA_Bromor_AskForWoman_Pay_01_03"); //Výborně! Sonja může jít s tebou.
AI_Output(self,other,"DIA_Bromor_AskForWoman_Pay_01_04"); //Nezapomeň, vrať mě ji v pořádku a včas! Jinak zalarmuju stráže.
B_LogEntry(TOPIC_WomanForSkip,"Teď si může jít Sonja se mnou. Nesmím zapomenout ji vrátit Bromorovi včas.");
SonyaGoWithMe = TRUE;
SonyaGoWithMeDay = Wld_GetDay();
AI_StopProcessInfos(self);
}
else
{
AI_Print(Print_NotEnoughGold);
AI_Output(self,other,"DIA_Bromor_Pay_07_03"); //Nesnáším, když se mě někdo snaží podvést, vypadni jestli nemůžeš platit.
AI_StopProcessInfos(self);
};
}
else
{
AI_Print(Print_NotEnoughGold);
AI_Output(self,other,"DIA_Bromor_Pay_07_03"); //Nesnáším, když se mě někdo snaží podvést, vypadni jestli nemůžeš platit.
AI_StopProcessInfos(self);
};
};
};
instance DIA_Bromor_AskForWoman_Back(C_Info)
{
npc = VLK_433_Bromor;
nr = 2;
condition = DIA_Bromor_AskForWoman_Back_Condition;
information = DIA_Bromor_AskForWoman_Back_Info;
permanent = FALSE;
description = "Vracím ti Sonju.";
};
func int DIA_Bromor_AskForWoman_Back_Condition()
{
if((MIS_WomanForSkip == LOG_Running) && (SonyaBackOk == TRUE))
{
return TRUE;
};
};
func void DIA_Bromor_AskForWoman_Back_Info()
{
B_GivePlayerXP(1000);
AI_Output(other,self,"DIA_Bromor_AskForWoman_Back_01_01"); //Vracím ti Sonju.
AI_Output(self,other,"DIA_Bromor_AskForWoman_Back_01_02"); //Dobře! Jestli budeš v budoucnu něco potřebovat, dej vědět.
MIS_WomanForSkip = LOG_SUCCESS;
Log_SetTopicStatus(TOPIC_WomanForSkip,LOG_SUCCESS);
B_LogEntry(TOPIC_WomanForSkip,"Přivedl jsem Sonju zpět do bordelu.");
};
instance DIA_Bromor_AskForWoman_BadBack(C_Info)
{
npc = VLK_433_Bromor;
nr = 2;
condition = DIA_Bromor_AskForWoman_BadBack_Condition;
information = DIA_Bromor_AskForWoman_BadBack_Info;
permanent = FALSE;
description = "Vracím ti Sonju.";
};
func int DIA_Bromor_AskForWoman_BadBack_Condition()
{
if((MIS_WomanForSkip == LOG_Running) && (SonyaBackOkNot == TRUE))
{
return TRUE;
};
};
func void DIA_Bromor_AskForWoman_BadBack_Info()
{
B_GivePlayerXP(100);
AI_Output(other,self,"DIA_Bromor_AskForWoman_BadBack_01_01"); //Vracím ti Sonju.
AI_Output(self,other,"DIA_Bromor_AskForWoman_BadBack_01_02"); //Počkej! Mluvili jsme o třech dnech.
AI_Output(self,other,"DIA_Bromor_AskForWoman_BadBack_01_03"); //A to bylo podstatně víc!
AI_Output(other,self,"DIA_Bromor_AskForWoman_BadBack_01_04"); //A co s tím?
AI_Output(self,other,"DIA_Bromor_AskForWoman_BadBack_01_05"); //A teď co...
MIS_WomanForSkip = LOG_FAILED;
B_LogEntry_Failed(TOPIC_WomanForSkip);
AI_StopProcessInfos(self);
B_Attack(self,other,AR_NONE,1);
}; | D |
instance BAU_964_BAUER(NPC_DEFAULT)
{
name[0] = "Фермер";
guild = GIL_OUT;
id = 964;
voice = 13;
flags = 0;
npctype = NPCTYPE_AMBIENT;
b_setattributestochapter(self,1);
fight_tactic = FAI_HUMAN_COWARD;
EquipItem(self,itmw_1h_bau_axe);
b_createambientinv(self);
b_setnpcvisual(self,MALE,"Hum_Head_Pony",FACE_N_NORMALBART11,BODYTEX_N,itar_bau_l);
Mdl_SetModelFatness(self,0);
Mdl_ApplyOverlayMds(self,"Humans_Tired.mds");
b_givenpctalents(self);
b_setfightskills(self,20);
daily_routine = rtn_start_964;
};
func void rtn_start_964()
{
ta_saw(8,0,21,0,"NW_FARM3_STABLE_OUT_01");
ta_sit_campfire(21,0,8,0,"NW_FARM3_STABLE_REST_02");
};
func void rtn_fleefrompass_964()
{
ta_sit_campfire(8,0,22,0,"NW_BIGMILL_MALAKSVERSTECK_05");
ta_sit_campfire(22,0,8,0,"NW_BIGMILL_MALAKSVERSTECK_05");
};
| D |
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric;
struct PriorityQueue(alias _fun, T) {
import std.functional : binaryFun;
import std.algorithm : swap;
alias fun = binaryFun!_fun;
///
this(T[] ts) {
foreach (t; ts) enqueue(t);
}
///
PriorityQueue!(_fun, T) enqueue(T e) {
if (this.tree.length == 0) this.tree.length = 1;
if (this.tree.length == this.n) this.tree.length *= 2;
this.tree[this.n] = e;
auto i = this.n;
this.n += 1;
while (i) {
auto j = (i-1)/2;
if (fun(this.tree[i], this.tree[j])) {
swap(this.tree[i], this.tree[j]);
i = j;
} else break;
}
return this;
}
alias insertFront = enqueue;
alias insert = enqueue;
///
T dequeue() {
auto ret = this.tree[0];
this.n -= 1;
this.tree[0] = this.tree[this.n];
this.tree = this.tree[0..$-1];
size_t i;
for (;;) {
auto l = i*2+1;
auto r = i*2+2;
if (l >= this.n) break;
size_t j;
if (r >= this.n) {
j = l;
} else {
j = fun(this.tree[r], this.tree[l]) ? r : l;
}
if (fun(this.tree[j], this.tree[i])) {
swap(this.tree[i], this.tree[j]);
i = j;
} else break;
}
return ret;
}
///
@property
T front() {
return this.tree[0];
}
///
@property
bool empty() {
return this.n == 0;
}
///
void popFront() {
this.dequeue();
}
alias removeFront = popFront;
///
@property
size_t length() {
return this.n;
}
private:
size_t n;
T[] tree;
}
///
PriorityQueue!(fun, T) priority_queue(alias fun, T)(T[] ts = []) {
return PriorityQueue!(fun, T)(ts);
}
alias AL = Tuple!(int, "a", long, "b");
AL[10^^5] AS;
void main()
{
auto nm = readln.split.to!(int[]);
auto N = nm[0];
auto M = nm[1];
foreach (i; 0..N) {
auto ab = readln.split.to!(int[]);
AS[i] = AL(ab[0], ab[1]);
}
sort!"a.a < b.a"(AS[0..N]);
auto pq = priority_queue!("a.b > b.b", AL)();
auto as = AS[0..N];
long r;
foreach (i; 1..M+1) {
while (!as.empty && as[0].a <= i) {
pq.enqueue(as[0]);
as = as[1..$];
}
if (!pq.empty) {
r += pq.front.b;
pq.dequeue();
}
}
writeln(r);
} | D |
/*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
* Port to the D programming language:
* Frank Benoit <benoit@tionex.de>
*******************************************************************************/
module dwtx.jface.dialogs.DialogSettings;
import dwtx.jface.dialogs.IDialogSettings;
static import tango.text.xml.Document;
static import tango.text.xml.SaxParser;
static import tango.text.xml.PullParser;
import dwt.dwthelper.utils;
import dwtx.dwtxhelper.Collection;
static import dwt.dwthelper.OutputStream;
static import tango.text.convert.Integer;
static import tango.text.convert.Float;
static import tango.text.Text;
static import tango.io.stream.Format;
static import tango.io.model.IConduit;
import tango.io.device.File;
static import tango.text.convert.Format;
import tango.core.Exception;
alias tango.text.Text.Text!(char) StringBuffer;
import dwt.dwthelper.XmlTranscode;
/**
* Concrete implementation of a dialog settings (<code>IDialogSettings</code>)
* using a hash table and XML. The dialog store can be read
* from and saved to a stream. All keys and values must be strings or array of
* strings. Primitive types are converted to strings.
* <p>
* This class was not designed to be subclassed.
*
* Here is an example of using a DialogSettings:
* </p>
* <pre>
* <code>
* DialogSettings settings = new DialogSettings("root");
* settings.put("Boolean1",true);
* settings.put("Long1",100);
* settings.put("Array1",new String[]{"aaaa1","bbbb1","cccc1"});
* DialogSettings section = new DialogSettings("sectionName");
* settings.addSection(section);
* section.put("Int2",200);
* section.put("Float2",1.1);
* section.put("Array2",new String[]{"aaaa2","bbbb2","cccc2"});
* settings.save("c:\\temp\\test\\dialog.xml");
* </code>
* </pre>
* @noextend This class is not intended to be subclassed by clients.
*/
public class DialogSettings : IDialogSettings {
alias tango.text.xml.Document.Document!(char) Document;
alias tango.text.xml.Document.Document!(char).Node Element;
// The name of the DialogSettings.
private String name;
/* A Map of DialogSettings representing each sections in a DialogSettings.
It maps the DialogSettings' name to the DialogSettings */
private Map sections;
/* A Map with all the keys and values of this sections.
Either the keys an values are restricted to strings. */
private Map items;
// A Map with all the keys mapped to array of strings.
private Map arrayItems;
private static const String TAG_SECTION = "section";//$NON-NLS-1$
private static const String TAG_NAME = "name";//$NON-NLS-1$
private static const String TAG_KEY = "key";//$NON-NLS-1$
private static const String TAG_VALUE = "value";//$NON-NLS-1$
private static const String TAG_LIST = "list";//$NON-NLS-1$
private static const String TAG_ITEM = "item";//$NON-NLS-1$
/**
* Create an empty dialog settings which loads and saves its
* content to a file.
* Use the methods <code>load(String)</code> and <code>store(String)</code>
* to load and store this dialog settings.
*
* @param sectionName the name of the section in the settings.
*/
public this(String sectionName) {
name = sectionName;
items = new HashMap();
arrayItems = new HashMap();
sections = new HashMap();
}
/* (non-Javadoc)
* Method declared on IDialogSettings.
*/
public IDialogSettings addNewSection(String sectionName) {
DialogSettings section = new DialogSettings(sectionName);
addSection(section);
return section;
}
/* (non-Javadoc)
* Method declared on IDialogSettings.
*/
public void addSection(IDialogSettings section) {
sections.put(stringcast(section.getName()), cast(Object)section);
}
/* (non-Javadoc)
* Method declared on IDialogSettings.
*/
public String get(String key) {
return stringcast(items.get(stringcast(key)));
}
/* (non-Javadoc)
* Method declared on IDialogSettings.
*/
public String[] getArray(String key) {
return stringArrayFromObject(arrayItems.get(stringcast(key)));
}
/* (non-Javadoc)
* Method declared on IDialogSettings.
*/
public bool getBoolean(String key) {
return stringcast(items.get(stringcast(key))) == "true";
}
/* (non-Javadoc)
* Method declared on IDialogSettings.
*/
public double getDouble(String key) {
String setting = stringcast(items.get(stringcast(key)));
if (setting is null) {
throw new NumberFormatException(
"There is no setting associated with the key \"" ~ key ~ "\"");//$NON-NLS-1$ //$NON-NLS-2$
}
return tango.text.convert.Float.toFloat(setting);
}
/* (non-Javadoc)
* Method declared on IDialogSettings.
*/
public float getFloat(String key) {
String setting = stringcast(items.get(stringcast(key)));
if (setting is null) {
throw new NumberFormatException(
"There is no setting associated with the key \"" ~ key ~ "\"");//$NON-NLS-1$ //$NON-NLS-2$
}
return tango.text.convert.Float.toFloat(setting);
}
/* (non-Javadoc)
* Method declared on IDialogSettings.
*/
public int getInt(String key) {
String setting = stringcast(items.get(stringcast(key)));
if (setting is null) {
//new Integer(null) will throw a NumberFormatException and meet our spec, but this message
//is clearer.
throw new NumberFormatException(
"There is no setting associated with the key \"" ~ key ~ "\"");//$NON-NLS-1$ //$NON-NLS-2$
}
return tango.text.convert.Integer.toInt(setting);
}
/* (non-Javadoc)
* Method declared on IDialogSettings.
*/
public long getLong(String key) {
String setting = stringcast(items.get(stringcast(key)));
if (setting is null) {
//new Long(null) will throw a NumberFormatException and meet our spec, but this message
//is clearer.
throw new NumberFormatException(
"There is no setting associated with the key \"" ~ key ~ "\"");//$NON-NLS-1$ //$NON-NLS-2$
}
return tango.text.convert.Integer.toLong(setting);
}
/* (non-Javadoc)
* Method declared on IDialogSettings.
*/
public String getName() {
return name;
}
/* (non-Javadoc)
* Method declared on IDialogSettings.
*/
public IDialogSettings getSection(String sectionName) {
return cast(IDialogSettings) sections.get(stringcast(sectionName));
}
/* (non-Javadoc)
* Method declared on IDialogSettings.
*/
public IDialogSettings[] getSections() {
Collection values = sections.values();
IDialogSettings[] result = arraycast!(IDialogSettings)( values.toArray() );
return result;
}
/* (non-Javadoc)
* Method declared on IDialogSettings.
*/
public void load( tango.io.model.IConduit.InputStream input) {
Document document = new Document();
try {
char[] content;
char[1024] readbuf;
int chunksize = 0;
while( (chunksize=input.read(readbuf)) !is tango.io.model.IConduit.InputStream.Eof ){
content ~= readbuf[ 0 .. chunksize ];
}
document.parse( content );
//Strip out any comments first
foreach( n; document.query[].filter( delegate bool(Element n) {
return n.type is tango.text.xml.PullParser.XmlNodeType.Comment ;
})){
//TODO: remove() was added after tango 0.99.5
//n.remove();
}
load(document, document.tree.child );
} catch (IOException e) {
// ignore
} catch (TextException e) {
// ignore
}
}
/* (non-Javadoc)
* Method declared on IDialogSettings.
*/
//TODO: solve overload load(char[])
public void load(String fileName) {
scope file = new File( fileName );
load( file.input );
file.close;
}
/* (non-Javadoc)
* Load the setting from the <code>document</code>
*/
private void load(Document document, Element root) {
name = root.attributes.name(null,TAG_NAME).value();
foreach( n; root.query[TAG_ITEM] ){
if( root is n.parent() ){
String key = n.attributes.name(null,TAG_KEY).value().dup;
String value = n.attributes.name(null,TAG_VALUE).value().dup;
items.put(stringcast(key), stringcast(value));
}
}
foreach( n; root.query[TAG_LIST].dup ){
if( root is n.parent() ){
auto child = n;
String key = child.attributes.name(null,TAG_KEY).value().dup;
char[][] valueList;
foreach( node; root.query[TAG_ITEM].dup ){
if (child is node.parent()) {
valueList ~= node.attributes.name(null,TAG_VALUE).value().dup;
}
}
arrayItems.put(stringcast(key), new ArrayWrapperString2(valueList) );
}
}
foreach( n; root.query[TAG_SECTION].dup ){
if( root is n.parent() ){
DialogSettings s = new DialogSettings("NoName");//$NON-NLS-1$
s.load(document, n);
addSection(s);
}
}
}
/* (non-Javadoc)
* Method declared on IDialogSettings.
*/
public void put(String key, String[] value) {
arrayItems.put(stringcast(key), new ArrayWrapperString2(value));
}
/* (non-Javadoc)
* Method declared on IDialogSettings.
*/
public void put(String key, double value) {
put(key, tango.text.convert.Float.toString(value));
}
/* (non-Javadoc)
* Method declared on IDialogSettings.
*/
public void put(String key, float value) {
put(key, tango.text.convert.Float.toString(value));
}
/* (non-Javadoc)
* Method declared on IDialogSettings.
*/
public void put(String key, int value) {
put(key, tango.text.convert.Integer.toString(value));
}
/* (non-Javadoc)
* Method declared on IDialogSettings.
*/
public void put(String key, long value) {
put(key, tango.text.convert.Integer.toString(value));
}
/* (non-Javadoc)
* Method declared on IDialogSettings.
*/
public void put(String key, String value) {
items.put(stringcast(key), stringcast(value));
}
/* (non-Javadoc)
* Method declared on IDialogSettings.
*/
public void put(String key, bool value) {
put(key, value ? "true" : "false" );
}
/* (non-Javadoc)
* Method declared on IDialogSettings.
*/
public void save(tango.io.model.IConduit.OutputStream writer) {
save(new XMLWriter(writer));
}
/* (non-Javadoc)
* Method declared on IDialogSettings.
*/
public void save(String fileName) {
auto stream = new tango.io.device.File.File(
fileName,
tango.io.device.File.File.WriteCreate);
XMLWriter writer = new XMLWriter(stream.output);
save(writer);
writer.close();
}
/* (non-Javadoc)
* Save the settings in the <code>document</code>.
*/
private void save(XMLWriter out_) {
HashMap attributes = new HashMap(2);
attributes.put(stringcast(TAG_NAME), stringcast(name is null ? "" : name)); //$NON-NLS-1$
out_.startTag(TAG_SECTION, attributes);
attributes.clear();
Object EMPTY_STR = new ArrayWrapperString("");
foreach( key,value; items ){
attributes.put(stringcast(TAG_KEY), key is null ? EMPTY_STR : key); //$NON-NLS-1$
String string = stringcast(value);//cast(String) items.get(stringcast(key));
attributes.put(stringcast(TAG_VALUE), stringcast(string is null ? "" : string)); //$NON-NLS-1$
out_.printTag(TAG_ITEM, attributes, true);
}
attributes.clear();
foreach( key,value; arrayItems ){
attributes.put(stringcast(TAG_KEY), key is null ? EMPTY_STR : key); //$NON-NLS-1$
out_.startTag(TAG_LIST, attributes);
attributes.clear();
String[] strValues = stringArrayFromObject(value);
if (value !is null) {
for (int index = 0; index < strValues.length; index++) {
String string = strValues[index];
attributes.put(stringcast(TAG_VALUE), stringcast(string is null ? "" : string)); //$NON-NLS-1$
out_.printTag(TAG_ITEM, attributes, true);
}
}
out_.endTag(TAG_LIST);
attributes.clear();
}
for (Iterator i = sections.values().iterator(); i.hasNext();) {
(cast(DialogSettings) i.next()).save(out_);
}
out_.endTag(TAG_SECTION);
}
/**
* A simple XML writer. Using this instead of the javax.xml.transform classes allows
* compilation against JCL Foundation (bug 80059).
*/
private static class XMLWriter : tango.io.stream.Format.FormatOutput!(char) {
/** current number of tabs to use for ident */
protected int tab;
/** the xml header */
protected static const String XML_VERSION = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"; //$NON-NLS-1$
/**
* Create a new XMLWriter
* @param output the write to used when writing to
*/
public this(tango.io.model.IConduit.OutputStream output) {
super( tango.text.convert.Format.Format, output);
tab = 0;
print(XML_VERSION);
newline;
}
/**
* write the intended end tag
* @param name the name of the tag to end
*/
public void endTag(String name) {
tab--;
printTag("/" ~ name, null, false); //$NON-NLS-1$
}
private void printTabulation() {
for (int i = 0; i < tab; i++) {
super.print('\t');
}
}
/**
* write the tag to the stream and format it by itending it and add new line after the tag
* @param name the name of the tag
* @param parameters map of parameters
* @param close should the tag be ended automatically (=> empty tag)
*/
public void printTag(String name, HashMap parameters, bool close) {
printTag(name, parameters, true, true, close);
}
private void printTag(String name, HashMap parameters, bool shouldTab, bool newLine, bool close) {
StringBuffer sb = new StringBuffer();
sb.append('<');
sb.append(name);
if (parameters !is null) {
for (Enumeration e = Collections.enumeration(parameters.keySet()); e.hasMoreElements();) {
sb.append(" "); //$NON-NLS-1$
String key = stringcast( e.nextElement());
sb.append(key);
sb.append("=\""); //$NON-NLS-1$
//sb.append(getEscaped(String.valueOf(parameters.get(key))));
sb.append(xmlEscape(stringcast(parameters.get(stringcast(key)))));
sb.append("\""); //$NON-NLS-1$
}
}
if (close) {
sb.append('/');
}
sb.append('>');
if (shouldTab) {
printTabulation();
}
if (newLine) {
print(sb.toString());
newline;
} else {
print(sb.toString());
}
}
/**
* start the tag
* @param name the name of the tag
* @param parameters map of parameters
*/
public void startTag(String name, HashMap parameters) {
startTag(name, parameters, true);
tab++;
}
private void startTag(String name, HashMap parameters, bool newLine) {
printTag(name, parameters, true, newLine, false);
}
}
}
| D |
void main(string[] args) {
import dash.api.admin_server;
import std.conv : to;
import std.stdio;
import std.string : format, join;
import std.traits;
import thrift.codegen.client;
import thrift.protocol.compact;
import thrift.transport.buffered;
import thrift.transport.socket;
import vibecompat.data.json;
enforce(args.length >= 2, "Usage dash-admin <command> [args ...]");
auto socket = new TBufferedTransport(new TSocket("127.0.0.1", 3473));
auto server = tClient!AdminServer(tCompactProtocol(socket));
void delegate(string[])[string] commandMap;
foreach (methodName; __traits(allMembers, AdminServer)) {
alias MethodType = typeof(__traits(getMember, AdminServer, methodName));
alias Args = ParameterTypeTuple!MethodType;
commandMap[methodName] = (string[] stringArgs) {
enforce(stringArgs.length == Args.length,
format("Expected %s arguments for '%s%s'.", Args.length,
methodName, Args.stringof));
Args args;
foreach (i, ref arg; args) {
alias T = typeof(arg);
// DMD @@BUG@@: This causes an ICE due to template being leaked
// out of the speculative to!() instantiations, so just hardcode
// a few types we need.
/+ static if (is(typeof(to!T(stringArgs[i])))) {
arg = to!T(stringArgs[i]);
} +/
static if (is(T : string)) {
arg = stringArgs[i];
} else static if (is(T == enum)) {
arg = to!T(stringArgs[i]);
} else {
arg = parseJson(stringArgs[i]).deserializeJson!T;
} //else static assert(0, "Don't know how to serialize API type " ~ typeof(arg).stringof);
}
static if (is(ReturnType!MethodType == void)) {
__traits(getMember, server, methodName)(args);
} else {
writeln(__traits(getMember, server, methodName)(args));
}
};
}
auto cmd = args[1] in commandMap;
enforce(cmd, "Command must be one of: %s.".format(commandMap.byKey.join(", ")));
socket.open();
scope(exit) socket.close();
(*cmd)(args[2 .. $]);
}
| D |
/**
Metric (e.g., accuracy)
TODO: perplexity, AUC, F1, BLEU, edit distance
*/
module grain.metric;
import grain.autograd : isVariable;
/// compute accuracy comparing prediction y (histgram) to target t (id)
auto accuracy(Vy, Vt)(Vy y, Vt t) if (isVariable!Vy && isVariable!Vt) {
import mir.ndslice : maxIndex;
import grain.autograd : to, HostStorage;
auto nbatch = t.shape[0];
auto hy = y.to!HostStorage.sliced;
auto ht = t.to!HostStorage.sliced;
double acc = 0.0;
foreach (i; 0 .. nbatch) {
auto maxid = hy[i].maxIndex[0];
if (maxid == ht[i]) {
++acc;
}
}
return acc / nbatch;
}
| D |
$NetBSD$
Stolen from https://github.com/nrTQgc/druntime/tree/netbsd
--- runtime/druntime/src/rt/sections_ldc.d.orig 2020-05-07 08:52:18.254675459 +0000
+++ runtime/druntime/src/rt/sections_ldc.d
@@ -19,6 +19,7 @@ module rt.sections_ldc;
version (linux) {}
else version (FreeBSD) {}
else version (DragonFlyBSD) {}
+else version (NetBSD) {}
else version(LDC):
import core.stdc.stdlib : alloca;
| D |
module proto.beta;
import proto.proto;
import net.connection;
import std.typecons;
class beta_protocol: protocol {
private {
import util.conv;
}
void init(string ver) {
}
void start_ping(string addr, ushort port, ref connection con) {
import std.datetime.systime;
import std.stdio;
send_time = Clock.currStdTime();
con.send_some([0xFE]);
}
protocol_data parse_packets(ref connection con) {
import std.datetime.systime, std.algorithm, std.stdio;
import std.array, std.conv;
import util.text_formatter;
ubyte[] resp = con.read_some();
long recv_time = Clock.currStdTime();
protocol_data data;
assert(resp[0] == 0xFF);
short len = decode_short(resp[1 .. 3].reverse);
dstring str = decode_string_utf16be(resp[3 .. $], len);
dstring[] strs = str.split('§');
data.version_protocol = 0;
data.version_name = "N/A";
data.desc = to!string(strs[0]);
data.players_online = to!int(strs[1]);
data.players_max = to!int(strs[2]);
data.ping_ms = (recv_time - send_time) / 10000;
return data;
}
private {
long send_time;
string protocol_version;
}
}
| D |
/Users/lefukeji/Desktop/content/chartDemoForPro/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/ChartRendererBase.o : /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartAxisBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/RadarChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/LineScatterCandleChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/CombinedHighlighter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartLimitLine.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/PieChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/LineChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartAxisRendererBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarLineScatterCandleBubbleChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/CandleChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Formatters/ChartFillFormatter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/ScatterChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ScatterChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/LineChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarLineScatterCandleBubbleChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartYAxisRendererRadarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/ScatterChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/CombinedChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartXAxis.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Filters/ChartDataBaseFilter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Formatters/ChartXAxisValueFormatter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/LineChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/PieChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/RadarChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/BarChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartYAxis.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/RadarChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Animation/ChartAnimationEasing.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/HorizontalBarChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartXAxisRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/CandleChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartXAxisRendererHorizontalBarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartTransformer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartYAxisRendererHorizontalBarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/CandleChartDataEntry.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/HorizontalBarChartHighlighter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/RadarChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartLegendRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BubbleChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartTransformerHorizontalBarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartColorTemplates.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/CandleStickChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartSelectionDetail.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/ChartViewBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/PieChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/LineRadarChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartRendererBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/LineChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartXAxisRendererBarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ScatterChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/CandleStickChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Filters/ChartDataApproximatorFilter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/BarLineChartViewBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/PieChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/LineChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BubbleChartDataEntry.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartDataRendererBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartViewPortHandler.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/LineScatterCandleRadarChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/BubbleChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/BarChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartMarker.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ChartDataEntry.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BubbleChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ScatterChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/ChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/BarChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/CandleChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/ChartHighlighter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/BarChartHighlighter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartXAxisRendererRadarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/PieRadarChartViewBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Animation/ChartAnimator.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/BubbleChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/BubbleChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Formatters/ChartDefaultXAxisValueFormatter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartYAxisRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/CombinedChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartComponentBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarChartDataEntry.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/CombinedChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartUtils.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/ChartHighlight.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartLegend.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/ChartRange.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/HorizontalBarChartView.swift /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Supporting\ Files/Charts.h /Users/lefukeji/Desktop/content/chartDemoForPro/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
/Users/lefukeji/Desktop/content/chartDemoForPro/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/ChartRendererBase~partial.swiftmodule : /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartAxisBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/RadarChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/LineScatterCandleChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/CombinedHighlighter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartLimitLine.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/PieChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/LineChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartAxisRendererBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarLineScatterCandleBubbleChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/CandleChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Formatters/ChartFillFormatter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/ScatterChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ScatterChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/LineChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarLineScatterCandleBubbleChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartYAxisRendererRadarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/ScatterChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/CombinedChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartXAxis.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Filters/ChartDataBaseFilter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Formatters/ChartXAxisValueFormatter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/LineChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/PieChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/RadarChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/BarChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartYAxis.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/RadarChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Animation/ChartAnimationEasing.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/HorizontalBarChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartXAxisRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/CandleChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartXAxisRendererHorizontalBarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartTransformer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartYAxisRendererHorizontalBarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/CandleChartDataEntry.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/HorizontalBarChartHighlighter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/RadarChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartLegendRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BubbleChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartTransformerHorizontalBarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartColorTemplates.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/CandleStickChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartSelectionDetail.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/ChartViewBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/PieChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/LineRadarChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartRendererBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/LineChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartXAxisRendererBarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ScatterChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/CandleStickChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Filters/ChartDataApproximatorFilter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/BarLineChartViewBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/PieChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/LineChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BubbleChartDataEntry.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartDataRendererBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartViewPortHandler.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/LineScatterCandleRadarChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/BubbleChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/BarChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartMarker.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ChartDataEntry.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BubbleChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ScatterChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/ChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/BarChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/CandleChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/ChartHighlighter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/BarChartHighlighter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartXAxisRendererRadarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/PieRadarChartViewBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Animation/ChartAnimator.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/BubbleChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/BubbleChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Formatters/ChartDefaultXAxisValueFormatter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartYAxisRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/CombinedChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartComponentBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarChartDataEntry.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/CombinedChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartUtils.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/ChartHighlight.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartLegend.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/ChartRange.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/HorizontalBarChartView.swift /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Supporting\ Files/Charts.h /Users/lefukeji/Desktop/content/chartDemoForPro/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
/Users/lefukeji/Desktop/content/chartDemoForPro/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/ChartRendererBase~partial.swiftdoc : /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartAxisBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/RadarChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/LineScatterCandleChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/CombinedHighlighter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartLimitLine.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/PieChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/LineChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartAxisRendererBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarLineScatterCandleBubbleChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/CandleChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Formatters/ChartFillFormatter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/ScatterChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ScatterChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/LineChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarLineScatterCandleBubbleChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartYAxisRendererRadarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/ScatterChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/CombinedChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartXAxis.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Filters/ChartDataBaseFilter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Formatters/ChartXAxisValueFormatter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/LineChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/PieChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/RadarChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/BarChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartYAxis.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/RadarChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Animation/ChartAnimationEasing.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/HorizontalBarChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartXAxisRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/CandleChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartXAxisRendererHorizontalBarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartTransformer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartYAxisRendererHorizontalBarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/CandleChartDataEntry.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/HorizontalBarChartHighlighter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/RadarChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartLegendRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BubbleChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartTransformerHorizontalBarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartColorTemplates.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/CandleStickChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartSelectionDetail.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/ChartViewBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/PieChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/LineRadarChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartRendererBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/LineChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartXAxisRendererBarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ScatterChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/CandleStickChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Filters/ChartDataApproximatorFilter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/BarLineChartViewBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/PieChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/LineChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BubbleChartDataEntry.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartDataRendererBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartViewPortHandler.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/LineScatterCandleRadarChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/BubbleChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/BarChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartMarker.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ChartDataEntry.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BubbleChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ScatterChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/ChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Interfaces/BarChartDataProvider.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/CandleChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/ChartHighlighter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/ChartDataSet.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/BarChartHighlighter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartXAxisRendererRadarChart.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/PieRadarChartViewBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Animation/ChartAnimator.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/BubbleChartRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/BubbleChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Formatters/ChartDefaultXAxisValueFormatter.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Renderers/ChartYAxisRenderer.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/CombinedChartView.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartComponentBase.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/BarChartDataEntry.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Data/CombinedChartData.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Utils/ChartUtils.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/ChartHighlight.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Components/ChartLegend.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Highlight/ChartRange.swift /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Classes/Charts/HorizontalBarChartView.swift /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/lefukeji/Desktop/content/chartDemoForPro/Charts/Supporting\ Files/Charts.h /Users/lefukeji/Desktop/content/chartDemoForPro/Build/Intermediates/Charts.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode7.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
| D |
version https://git-lfs.github.com/spec/v1
oid sha256:45ac807aa089c30133f391f3209a30ac53baa64f5da5b4b3c0a43966ee0d99a0
size 2225
| D |
// Written in the D programming language.
/** This module contains the $(LREF Complex) type, which is used to represent
complex numbers, along with related mathematical operations and functions.
$(LREF Complex) will eventually
$(DDLINK deprecate, Deprecated Features, replace)
the built-in types `cfloat`, `cdouble`, `creal`, `ifloat`,
`idouble`, and `ireal`.
Authors: Lars Tandle Kyllingstad, Don Clugston
Copyright: Copyright (c) 2010, Lars T. Kyllingstad.
License: $(HTTP boost.org/LICENSE_1_0.txt, Boost License 1.0)
Source: $(PHOBOSSRC std/complex.d)
*/
module std.complex;
import std.traits;
/** Helper function that returns a complex number with the specified
real and imaginary parts.
Params:
R = (template parameter) type of real part of complex number
I = (template parameter) type of imaginary part of complex number
re = real part of complex number to be constructed
im = (optional) imaginary part of complex number, 0 if omitted.
Returns:
`Complex` instance with real and imaginary parts set
to the values provided as input. If neither `re` nor
`im` are floating-point numbers, the return type will
be `Complex!double`. Otherwise, the return type is
deduced using $(D std.traits.CommonType!(R, I)).
*/
auto complex(R)(const R re) @safe pure nothrow @nogc
if (is(R : double))
{
static if (isFloatingPoint!R)
return Complex!R(re, 0);
else
return Complex!double(re, 0);
}
/// ditto
auto complex(R, I)(const R re, const I im) @safe pure nothrow @nogc
if (is(R : double) && is(I : double))
{
static if (isFloatingPoint!R || isFloatingPoint!I)
return Complex!(CommonType!(R, I))(re, im);
else
return Complex!double(re, im);
}
///
@safe pure nothrow unittest
{
auto a = complex(1.0);
static assert(is(typeof(a) == Complex!double));
assert(a.re == 1.0);
assert(a.im == 0.0);
auto b = complex(2.0L);
static assert(is(typeof(b) == Complex!real));
assert(b.re == 2.0L);
assert(b.im == 0.0L);
auto c = complex(1.0, 2.0);
static assert(is(typeof(c) == Complex!double));
assert(c.re == 1.0);
assert(c.im == 2.0);
auto d = complex(3.0, 4.0L);
static assert(is(typeof(d) == Complex!real));
assert(d.re == 3.0);
assert(d.im == 4.0L);
auto e = complex(1);
static assert(is(typeof(e) == Complex!double));
assert(e.re == 1);
assert(e.im == 0);
auto f = complex(1L, 2);
static assert(is(typeof(f) == Complex!double));
assert(f.re == 1L);
assert(f.im == 2);
auto g = complex(3, 4.0L);
static assert(is(typeof(g) == Complex!real));
assert(g.re == 3);
assert(g.im == 4.0L);
}
/** A complex number parametrised by a type `T`, which must be either
`float`, `double` or `real`.
*/
struct Complex(T)
if (isFloatingPoint!T)
{
import std.format : FormatSpec;
import std.range.primitives : isOutputRange;
/** The real part of the number. */
T re;
/** The imaginary part of the number. */
T im;
/** Converts the complex number to a string representation.
The second form of this function is usually not called directly;
instead, it is used via $(REF format, std,string), as shown in the examples
below. Supported format characters are 'e', 'f', 'g', 'a', and 's'.
See the $(MREF std, format) and $(REF format, std,string)
documentation for more information.
*/
string toString() const @safe /* TODO: pure nothrow */
{
import std.exception : assumeUnique;
char[] buf;
buf.reserve(100);
auto fmt = FormatSpec!char("%s");
toString((const(char)[] s) { buf ~= s; }, fmt);
static trustedAssumeUnique(T)(T t) @trusted { return assumeUnique(t); }
return trustedAssumeUnique(buf);
}
static if (is(T == double))
///
@safe unittest
{
auto c = complex(1.2, 3.4);
// Vanilla toString formatting:
assert(c.toString() == "1.2+3.4i");
// Formatting with std.string.format specs: the precision and width
// specifiers apply to both the real and imaginary parts of the
// complex number.
import std.format : format;
assert(format("%.2f", c) == "1.20+3.40i");
assert(format("%4.1f", c) == " 1.2+ 3.4i");
}
/// ditto
void toString(Writer, Char)(scope Writer w, scope const ref FormatSpec!Char formatSpec) const
if (isOutputRange!(Writer, const(Char)[]))
{
import std.format : formatValue;
import std.math : signbit;
import std.range.primitives : put;
formatValue(w, re, formatSpec);
if (signbit(im) == 0)
put(w, "+");
formatValue(w, im, formatSpec);
put(w, "i");
}
@safe pure nothrow @nogc:
/** Construct a complex number with the specified real and
imaginary parts. In the case where a single argument is passed
that is not complex, the imaginary part of the result will be
zero.
*/
this(R : T)(Complex!R z)
{
re = z.re;
im = z.im;
}
/// ditto
this(Rx : T, Ry : T)(const Rx x, const Ry y)
{
re = x;
im = y;
}
/// ditto
this(R : T)(const R r)
{
re = r;
im = 0;
}
// ASSIGNMENT OPERATORS
// this = complex
ref Complex opAssign(R : T)(Complex!R z)
{
re = z.re;
im = z.im;
return this;
}
// this = numeric
ref Complex opAssign(R : T)(const R r)
{
re = r;
im = 0;
return this;
}
// COMPARISON OPERATORS
// this == complex
bool opEquals(R : T)(Complex!R z) const
{
return re == z.re && im == z.im;
}
// this == numeric
bool opEquals(R : T)(const R r) const
{
return re == r && im == 0;
}
// UNARY OPERATORS
// +complex
Complex opUnary(string op)() const
if (op == "+")
{
return this;
}
// -complex
Complex opUnary(string op)() const
if (op == "-")
{
return Complex(-re, -im);
}
// BINARY OPERATORS
// complex op complex
Complex!(CommonType!(T,R)) opBinary(string op, R)(Complex!R z) const
{
alias C = typeof(return);
auto w = C(this.re, this.im);
return w.opOpAssign!(op)(z);
}
// complex op numeric
Complex!(CommonType!(T,R)) opBinary(string op, R)(const R r) const
if (isNumeric!R)
{
alias C = typeof(return);
auto w = C(this.re, this.im);
return w.opOpAssign!(op)(r);
}
// numeric + complex, numeric * complex
Complex!(CommonType!(T, R)) opBinaryRight(string op, R)(const R r) const
if ((op == "+" || op == "*") && (isNumeric!R))
{
return opBinary!(op)(r);
}
// numeric - complex
Complex!(CommonType!(T, R)) opBinaryRight(string op, R)(const R r) const
if (op == "-" && isNumeric!R)
{
return Complex(r - re, -im);
}
// numeric / complex
Complex!(CommonType!(T, R)) opBinaryRight(string op, R)(const R r) const
if (op == "/" && isNumeric!R)
{
import std.math : fabs;
typeof(return) w = void;
if (fabs(re) < fabs(im))
{
immutable ratio = re/im;
immutable rdivd = r/(re*ratio + im);
w.re = rdivd*ratio;
w.im = -rdivd;
}
else
{
immutable ratio = im/re;
immutable rdivd = r/(re + im*ratio);
w.re = rdivd;
w.im = -rdivd*ratio;
}
return w;
}
// numeric ^^ complex
Complex!(CommonType!(T, R)) opBinaryRight(string op, R)(const R lhs) const
if (op == "^^" && isNumeric!R)
{
import std.math : cos, exp, log, sin, PI;
Unqual!(CommonType!(T, R)) ab = void, ar = void;
if (lhs >= 0)
{
// r = lhs
// theta = 0
ab = lhs ^^ this.re;
ar = log(lhs) * this.im;
}
else
{
// r = -lhs
// theta = PI
ab = (-lhs) ^^ this.re * exp(-PI * this.im);
ar = PI * this.re + log(-lhs) * this.im;
}
return typeof(return)(ab * cos(ar), ab * sin(ar));
}
// OP-ASSIGN OPERATORS
// complex += complex, complex -= complex
ref Complex opOpAssign(string op, C)(const C z)
if ((op == "+" || op == "-") && is(C R == Complex!R))
{
mixin ("re "~op~"= z.re;");
mixin ("im "~op~"= z.im;");
return this;
}
// complex *= complex
ref Complex opOpAssign(string op, C)(const C z)
if (op == "*" && is(C R == Complex!R))
{
auto temp = re*z.re - im*z.im;
im = im*z.re + re*z.im;
re = temp;
return this;
}
// complex /= complex
ref Complex opOpAssign(string op, C)(const C z)
if (op == "/" && is(C R == Complex!R))
{
import std.math : fabs;
if (fabs(z.re) < fabs(z.im))
{
immutable ratio = z.re/z.im;
immutable denom = z.re*ratio + z.im;
immutable temp = (re*ratio + im)/denom;
im = (im*ratio - re)/denom;
re = temp;
}
else
{
immutable ratio = z.im/z.re;
immutable denom = z.re + z.im*ratio;
immutable temp = (re + im*ratio)/denom;
im = (im - re*ratio)/denom;
re = temp;
}
return this;
}
// complex ^^= complex
ref Complex opOpAssign(string op, C)(const C z)
if (op == "^^" && is(C R == Complex!R))
{
import std.math : exp, log, cos, sin;
immutable r = abs(this);
immutable t = arg(this);
immutable ab = r^^z.re * exp(-t*z.im);
immutable ar = t*z.re + log(r)*z.im;
re = ab*cos(ar);
im = ab*sin(ar);
return this;
}
// complex += numeric, complex -= numeric
ref Complex opOpAssign(string op, U : T)(const U a)
if (op == "+" || op == "-")
{
mixin ("re "~op~"= a;");
return this;
}
// complex *= numeric, complex /= numeric
ref Complex opOpAssign(string op, U : T)(const U a)
if (op == "*" || op == "/")
{
mixin ("re "~op~"= a;");
mixin ("im "~op~"= a;");
return this;
}
// complex ^^= real
ref Complex opOpAssign(string op, R)(const R r)
if (op == "^^" && isFloatingPoint!R)
{
import std.math : cos, sin;
immutable ab = abs(this)^^r;
immutable ar = arg(this)*r;
re = ab*cos(ar);
im = ab*sin(ar);
return this;
}
// complex ^^= int
ref Complex opOpAssign(string op, U)(const U i)
if (op == "^^" && isIntegral!U)
{
switch (i)
{
case 0:
re = 1.0;
im = 0.0;
break;
case 1:
// identity; do nothing
break;
case 2:
this *= this;
break;
case 3:
auto z = this;
this *= z;
this *= z;
break;
default:
this ^^= cast(real) i;
}
return this;
}
}
@safe pure nothrow unittest
{
import std.complex;
import std.math;
enum EPS = double.epsilon;
auto c1 = complex(1.0, 1.0);
// Check unary operations.
auto c2 = Complex!double(0.5, 2.0);
assert(c2 == +c2);
assert((-c2).re == -(c2.re));
assert((-c2).im == -(c2.im));
assert(c2 == -(-c2));
// Check complex-complex operations.
auto cpc = c1 + c2;
assert(cpc.re == c1.re + c2.re);
assert(cpc.im == c1.im + c2.im);
auto cmc = c1 - c2;
assert(cmc.re == c1.re - c2.re);
assert(cmc.im == c1.im - c2.im);
auto ctc = c1 * c2;
assert(approxEqual(abs(ctc), abs(c1)*abs(c2), EPS));
assert(approxEqual(arg(ctc), arg(c1)+arg(c2), EPS));
auto cdc = c1 / c2;
assert(approxEqual(abs(cdc), abs(c1)/abs(c2), EPS));
assert(approxEqual(arg(cdc), arg(c1)-arg(c2), EPS));
auto cec = c1^^c2;
assert(approxEqual(cec.re, 0.11524131979943839881, EPS));
assert(approxEqual(cec.im, 0.21870790452746026696, EPS));
// Check complex-real operations.
double a = 123.456;
auto cpr = c1 + a;
assert(cpr.re == c1.re + a);
assert(cpr.im == c1.im);
auto cmr = c1 - a;
assert(cmr.re == c1.re - a);
assert(cmr.im == c1.im);
auto ctr = c1 * a;
assert(ctr.re == c1.re*a);
assert(ctr.im == c1.im*a);
auto cdr = c1 / a;
assert(approxEqual(abs(cdr), abs(c1)/a, EPS));
assert(approxEqual(arg(cdr), arg(c1), EPS));
auto cer = c1^^3.0;
assert(approxEqual(abs(cer), abs(c1)^^3, EPS));
assert(approxEqual(arg(cer), arg(c1)*3, EPS));
auto rpc = a + c1;
assert(rpc == cpr);
auto rmc = a - c1;
assert(rmc.re == a-c1.re);
assert(rmc.im == -c1.im);
auto rtc = a * c1;
assert(rtc == ctr);
auto rdc = a / c1;
assert(approxEqual(abs(rdc), a/abs(c1), EPS));
assert(approxEqual(arg(rdc), -arg(c1), EPS));
rdc = a / c2;
assert(approxEqual(abs(rdc), a/abs(c2), EPS));
assert(approxEqual(arg(rdc), -arg(c2), EPS));
auto rec1a = 1.0 ^^ c1;
assert(rec1a.re == 1.0);
assert(rec1a.im == 0.0);
auto rec2a = 1.0 ^^ c2;
assert(rec2a.re == 1.0);
assert(rec2a.im == 0.0);
auto rec1b = (-1.0) ^^ c1;
assert(approxEqual(abs(rec1b), std.math.exp(-PI * c1.im), EPS));
auto arg1b = arg(rec1b);
/* The argument _should_ be PI, but floating-point rounding error
* means that in fact the imaginary part is very slightly negative.
*/
assert(approxEqual(arg1b, PI, EPS) || approxEqual(arg1b, -PI, EPS));
auto rec2b = (-1.0) ^^ c2;
assert(approxEqual(abs(rec2b), std.math.exp(-2 * PI), EPS));
assert(approxEqual(arg(rec2b), PI_2, EPS));
auto rec3a = 0.79 ^^ complex(6.8, 5.7);
auto rec3b = complex(0.79, 0.0) ^^ complex(6.8, 5.7);
assert(approxEqual(rec3a.re, rec3b.re, EPS));
assert(approxEqual(rec3a.im, rec3b.im, EPS));
auto rec4a = (-0.79) ^^ complex(6.8, 5.7);
auto rec4b = complex(-0.79, 0.0) ^^ complex(6.8, 5.7);
assert(approxEqual(rec4a.re, rec4b.re, EPS));
assert(approxEqual(rec4a.im, rec4b.im, EPS));
auto rer = a ^^ complex(2.0, 0.0);
auto rcheck = a ^^ 2.0;
static assert(is(typeof(rcheck) == double));
assert(feqrel(rer.re, rcheck) == double.mant_dig);
assert(isIdentical(rer.re, rcheck));
assert(rer.im == 0.0);
auto rer2 = (-a) ^^ complex(2.0, 0.0);
rcheck = (-a) ^^ 2.0;
assert(feqrel(rer2.re, rcheck) == double.mant_dig);
assert(isIdentical(rer2.re, rcheck));
assert(approxEqual(rer2.im, 0.0, EPS));
auto rer3 = (-a) ^^ complex(-2.0, 0.0);
rcheck = (-a) ^^ (-2.0);
assert(feqrel(rer3.re, rcheck) == double.mant_dig);
assert(isIdentical(rer3.re, rcheck));
assert(approxEqual(rer3.im, 0.0, EPS));
auto rer4 = a ^^ complex(-2.0, 0.0);
rcheck = a ^^ (-2.0);
assert(feqrel(rer4.re, rcheck) == double.mant_dig);
assert(isIdentical(rer4.re, rcheck));
assert(rer4.im == 0.0);
// Check Complex-int operations.
foreach (i; 0 .. 6)
{
auto cei = c1^^i;
assert(approxEqual(abs(cei), abs(c1)^^i, EPS));
// Use cos() here to deal with arguments that go outside
// the (-pi,pi] interval (only an issue for i>3).
assert(approxEqual(std.math.cos(arg(cei)), std.math.cos(arg(c1)*i), EPS));
}
// Check operations between different complex types.
auto cf = Complex!float(1.0, 1.0);
auto cr = Complex!real(1.0, 1.0);
auto c1pcf = c1 + cf;
auto c1pcr = c1 + cr;
static assert(is(typeof(c1pcf) == Complex!double));
static assert(is(typeof(c1pcr) == Complex!real));
assert(c1pcf.re == c1pcr.re);
assert(c1pcf.im == c1pcr.im);
auto c1c = c1;
auto c2c = c2;
c1c /= c1;
assert(approxEqual(c1c.re, 1.0, EPS));
assert(approxEqual(c1c.im, 0.0, EPS));
c1c = c1;
c1c /= c2;
assert(approxEqual(c1c.re, 0.588235, EPS));
assert(approxEqual(c1c.im, -0.352941, EPS));
c2c /= c1;
assert(approxEqual(c2c.re, 1.25, EPS));
assert(approxEqual(c2c.im, 0.75, EPS));
c2c = c2;
c2c /= c2;
assert(approxEqual(c2c.re, 1.0, EPS));
assert(approxEqual(c2c.im, 0.0, EPS));
}
@safe pure nothrow unittest
{
// Initialization
Complex!double a = 1;
assert(a.re == 1 && a.im == 0);
Complex!double b = 1.0;
assert(b.re == 1.0 && b.im == 0);
Complex!double c = Complex!real(1.0, 2);
assert(c.re == 1.0 && c.im == 2);
}
@safe pure nothrow unittest
{
// Assignments and comparisons
Complex!double z;
z = 1;
assert(z == 1);
assert(z.re == 1.0 && z.im == 0.0);
z = 2.0;
assert(z == 2.0);
assert(z.re == 2.0 && z.im == 0.0);
z = 1.0L;
assert(z == 1.0L);
assert(z.re == 1.0 && z.im == 0.0);
auto w = Complex!real(1.0, 1.0);
z = w;
assert(z == w);
assert(z.re == 1.0 && z.im == 1.0);
auto c = Complex!float(2.0, 2.0);
z = c;
assert(z == c);
assert(z.re == 2.0 && z.im == 2.0);
}
/* Makes Complex!(Complex!T) fold to Complex!T.
The rationale for this is that just like the real line is a
subspace of the complex plane, the complex plane is a subspace
of itself. Example of usage:
---
Complex!T addI(T)(T x)
{
return x + Complex!T(0.0, 1.0);
}
---
The above will work if T is both real and complex.
*/
template Complex(T)
if (is(T R == Complex!R))
{
alias Complex = T;
}
@safe pure nothrow unittest
{
static assert(is(Complex!(Complex!real) == Complex!real));
Complex!T addI(T)(T x)
{
return x + Complex!T(0.0, 1.0);
}
auto z1 = addI(1.0);
assert(z1.re == 1.0 && z1.im == 1.0);
enum one = Complex!double(1.0, 0.0);
auto z2 = addI(one);
assert(z1 == z2);
}
/**
Params: z = A complex number.
Returns: The absolute value (or modulus) of `z`.
*/
T abs(T)(Complex!T z) @safe pure nothrow @nogc
{
import std.math : hypot;
return hypot(z.re, z.im);
}
///
@safe pure nothrow unittest
{
static import std.math;
assert(abs(complex(1.0)) == 1.0);
assert(abs(complex(0.0, 1.0)) == 1.0);
assert(abs(complex(1.0L, -2.0L)) == std.math.sqrt(5.0L));
}
/++
Params:
z = A complex number.
x = A real number.
Returns: The squared modulus of `z`.
For genericity, if called on a real number, returns its square.
+/
T sqAbs(T)(Complex!T z) @safe pure nothrow @nogc
{
return z.re*z.re + z.im*z.im;
}
///
@safe pure nothrow unittest
{
import std.math;
assert(sqAbs(complex(0.0)) == 0.0);
assert(sqAbs(complex(1.0)) == 1.0);
assert(sqAbs(complex(0.0, 1.0)) == 1.0);
assert(approxEqual(sqAbs(complex(1.0L, -2.0L)), 5.0L));
assert(approxEqual(sqAbs(complex(-3.0L, 1.0L)), 10.0L));
assert(approxEqual(sqAbs(complex(1.0f,-1.0f)), 2.0f));
}
/// ditto
T sqAbs(T)(const T x) @safe pure nothrow @nogc
if (isFloatingPoint!T)
{
return x*x;
}
@safe pure nothrow unittest
{
import std.math;
assert(sqAbs(0.0) == 0.0);
assert(sqAbs(-1.0) == 1.0);
assert(approxEqual(sqAbs(-3.0L), 9.0L));
assert(approxEqual(sqAbs(-5.0f), 25.0f));
}
/**
Params: z = A complex number.
Returns: The argument (or phase) of `z`.
*/
T arg(T)(Complex!T z) @safe pure nothrow @nogc
{
import std.math : atan2;
return atan2(z.im, z.re);
}
///
@safe pure nothrow unittest
{
import std.math;
assert(arg(complex(1.0)) == 0.0);
assert(arg(complex(0.0L, 1.0L)) == PI_2);
assert(arg(complex(1.0L, 1.0L)) == PI_4);
}
/**
Params: z = A complex number.
Returns: The complex conjugate of `z`.
*/
Complex!T conj(T)(Complex!T z) @safe pure nothrow @nogc
{
return Complex!T(z.re, -z.im);
}
///
@safe pure nothrow unittest
{
assert(conj(complex(1.0)) == complex(1.0));
assert(conj(complex(1.0, 2.0)) == complex(1.0, -2.0));
}
/**
Constructs a complex number given its absolute value and argument.
Params:
modulus = The modulus
argument = The argument
Returns: The complex number with the given modulus and argument.
*/
Complex!(CommonType!(T, U)) fromPolar(T, U)(const T modulus, const U argument)
@safe pure nothrow @nogc
{
import std.math : sin, cos;
return Complex!(CommonType!(T,U))
(modulus*cos(argument), modulus*sin(argument));
}
///
@safe pure nothrow unittest
{
import std.math;
auto z = fromPolar(std.math.sqrt(2.0), PI_4);
assert(approxEqual(z.re, 1.0L, real.epsilon));
assert(approxEqual(z.im, 1.0L, real.epsilon));
}
/**
Trigonometric functions on complex numbers.
Params: z = A complex number.
Returns: The sine and cosine of `z`, respectively.
*/
Complex!T sin(T)(Complex!T z) @safe pure nothrow @nogc
{
auto cs = expi(z.re);
auto csh = coshisinh(z.im);
return typeof(return)(cs.im * csh.re, cs.re * csh.im);
}
///
@safe pure nothrow unittest
{
static import std.math;
assert(sin(complex(0.0)) == 0.0);
assert(sin(complex(2.0L, 0)) == std.math.sin(2.0L));
}
/// ditto
Complex!T cos(T)(Complex!T z) @safe pure nothrow @nogc
{
auto cs = expi(z.re);
auto csh = coshisinh(z.im);
return typeof(return)(cs.re * csh.re, - cs.im * csh.im);
}
///
@safe pure nothrow unittest
{
import std.complex;
assert(cos(complex(0.0)) == 1.0);
}
deprecated
@safe pure nothrow unittest
{
import std.math;
auto c1 = cos(complex(0, 5.2L));
auto c2 = cosh(5.2L);
assert(feqrel(c1.re, c2.re) >= real.mant_dig - 1 &&
feqrel(c1.im, c2.im) >= real.mant_dig - 1);
assert(cos(complex(1.3L)) == std.math.cos(1.3L));
}
/**
Params: y = A real number.
Returns: The value of cos(y) + i sin(y).
Note:
`expi` is included here for convenience and for easy migration of code
that uses $(REF _expi, std,math). Unlike $(REF _expi, std,math), which uses the
x87 $(I fsincos) instruction when possible, this function is no faster
than calculating cos(y) and sin(y) separately.
*/
Complex!real expi(real y) @trusted pure nothrow @nogc
{
import std.math : cos, sin;
return Complex!real(cos(y), sin(y));
}
///
@safe pure nothrow unittest
{
import std.math : cos, sin;
assert(expi(0.0L) == 1.0L);
assert(expi(1.3e5L) == complex(cos(1.3e5L), sin(1.3e5L)));
}
deprecated
@safe pure nothrow unittest
{
static import std.math;
assert(expi(1.3e5L) == complex(std.math.cos(1.3e5L), std.math.sin(1.3e5L)));
auto z1 = expi(1.234);
auto z2 = std.math.expi(1.234);
assert(z1.re == z2.re && z1.im == z2.im);
}
/**
Params: y = A real number.
Returns: The value of cosh(y) + i sinh(y)
Note:
`coshisinh` is included here for convenience and for easy migration of code
that uses $(REF _coshisinh, std,math).
*/
Complex!real coshisinh(real y) @safe pure nothrow @nogc
{
static import std.math;
if (std.math.fabs(y) <= 0.5)
return Complex!real(std.math.cosh(y), std.math.sinh(y));
else
{
auto z = std.math.exp(y);
auto zi = 0.5 / z;
z = 0.5 * z;
return Complex!real(z + zi, z - zi);
}
}
///
@safe pure nothrow @nogc unittest
{
import std.math : cosh, sinh;
assert(coshisinh(3.0L) == complex(cosh(3.0L), sinh(3.0L)));
}
deprecated
@safe pure nothrow @nogc unittest
{
static import std.math;
assert(coshisinh(3.0L) == complex(std.math.cosh(3.0L), std.math.sinh(3.0L)));
auto z1 = coshisinh(1.234);
auto z2 = std.math.coshisinh(1.234);
static if (real.mant_dig == 53 || real.mant_dig == 113)
{
assert(std.math.feqrel(z1.re, z2.re) >= real.mant_dig - 1 &&
std.math.feqrel(z1.im, z2.im) >= real.mant_dig - 1);
}
else
{
assert(z1.re == z2.re && z1.im == z2.im);
}
}
/**
Params: z = A complex number.
Returns: The square root of `z`.
*/
Complex!T sqrt(T)(Complex!T z) @safe pure nothrow @nogc
{
static import std.math;
typeof(return) c;
real x,y,w,r;
if (z == 0)
{
c = typeof(return)(0, 0);
}
else
{
real z_re = z.re;
real z_im = z.im;
x = std.math.fabs(z_re);
y = std.math.fabs(z_im);
if (x >= y)
{
r = y / x;
w = std.math.sqrt(x)
* std.math.sqrt(0.5 * (1 + std.math.sqrt(1 + r * r)));
}
else
{
r = x / y;
w = std.math.sqrt(y)
* std.math.sqrt(0.5 * (r + std.math.sqrt(1 + r * r)));
}
if (z_re >= 0)
{
c = typeof(return)(w, z_im / (w + w));
}
else
{
if (z_im < 0)
w = -w;
c = typeof(return)(z_im / (w + w), w);
}
}
return c;
}
///
@safe pure nothrow unittest
{
static import std.math;
assert(sqrt(complex(0.0)) == 0.0);
assert(sqrt(complex(1.0L, 0)) == std.math.sqrt(1.0L));
assert(sqrt(complex(-1.0L, 0)) == complex(0, 1.0L));
}
@safe pure nothrow unittest
{
import std.math : approxEqual;
auto c1 = complex(1.0, 1.0);
auto c2 = Complex!double(0.5, 2.0);
auto c1s = sqrt(c1);
assert(approxEqual(c1s.re, 1.09868411));
assert(approxEqual(c1s.im, 0.45508986));
auto c2s = sqrt(c2);
assert(approxEqual(c2s.re, 1.1317134));
assert(approxEqual(c2s.im, 0.8836155));
}
// Issue 10881: support %f formatting of complex numbers
@safe unittest
{
import std.format : format;
auto x = complex(1.2, 3.4);
assert(format("%.2f", x) == "1.20+3.40i");
auto y = complex(1.2, -3.4);
assert(format("%.2f", y) == "1.20-3.40i");
}
@safe unittest
{
// Test wide string formatting
import std.format;
wstring wformat(T)(string format, Complex!T c)
{
import std.array : appender;
auto w = appender!wstring();
auto n = formattedWrite(w, format, c);
return w.data;
}
auto x = complex(1.2, 3.4);
assert(wformat("%.2f", x) == "1.20+3.40i"w);
}
@safe unittest
{
// Test ease of use (vanilla toString() should be supported)
assert(complex(1.2, 3.4).toString() == "1.2+3.4i");
}
| D |
/Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ObserverType.o : /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Deprecated.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Cancelable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObserverType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Reactive.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/RecursiveLock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Errors.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/AtomicInt.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Event.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/First.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/Platform.Linux.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/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/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/Target\ Support\ Files/RxAtomic/RxAtomic-umbrella.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxAtomic/RxAtomic/include/RxAtomic.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxAtomic.build/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/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ObserverType~partial.swiftmodule : /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Deprecated.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Cancelable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObserverType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Reactive.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/RecursiveLock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Errors.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/AtomicInt.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Event.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/First.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/Platform.Linux.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/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/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/Target\ Support\ Files/RxAtomic/RxAtomic-umbrella.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxAtomic/RxAtomic/include/RxAtomic.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxAtomic.build/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/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ObserverType~partial.swiftdoc : /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Deprecated.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Cancelable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObserverType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Reactive.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/RecursiveLock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Errors.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/AtomicInt.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Event.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/First.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/Platform.Linux.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/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/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/Target\ Support\ Files/RxAtomic/RxAtomic-umbrella.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxAtomic/RxAtomic/include/RxAtomic.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxAtomic.build/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 |
module gfm.math.quaternion;
import std.math,
std.string;
import gfm.math.vector,
gfm.math.matrix,
funcs = gfm.math.funcs;
/// Quaternion implementation.
/// Holds a rotation + angle in a proper but wild space.
align(1) struct Quaternion(T)
{
align(1):
public
{
union
{
Vector!(T, 4u) v;
struct
{
T x, y, z, w;
}
}
/// Construct a Quaternion from a value.
this(U)(U x) pure nothrow if (isAssignable!U)
{
opAssign!U(x);
}
/// Constructs a Quaternion from axis + angle.
static Quaternion fromAxis(Vector!(T, 3u) axis, T angle) pure nothrow
{
Quaternion q = void;
axis.normalize();
T cos_a = cos(angle / 2);
T sin_a = sin(angle / 2);
q.x = sin_a * axis.x;
q.y = sin_a * axis.y;
q.z = sin_a * axis.z;
q.w = cos_a;
return q; // should be normalized
}
/// Assign from another Quaternion.
ref Quaternion opAssign(U)(U u) pure nothrow if (is(typeof(U._isQuaternion)) && is(U._T : T))
{
v = u.v;
return this;
}
/// Assign from a vector of 4 elements.
ref Quaternion opAssign(U)(U u) pure nothrow if (is(U : Vector!(T, 4u)))
{
v = u;
return this;
}
/// Converts to a pretty string.
string toString() const nothrow
{
try
return format("%s", v);
catch (Exception e)
assert(false); // should not happen since format is right
}
/// Normalizes a quaternion.
void normalize() pure nothrow
{
v.normalize();
}
/// Returns: Normalized quaternion.
Quaternion normalized() pure const nothrow
{
Quaternion res = void;
res.v = v.normalized();
return res;
}
/// Inverse a quaternion.
void inverse() pure nothrow
{
x = -x;
y = -y;
z = -z;
}
/// Returns: Inversed quaternion.
Quaternion inversed() pure const nothrow
{
Quaternion res = void;
res.v = v;
res.inverse();
return res;
}
ref Quaternion opOpAssign(string op, U)(U q) pure nothrow
if (is(U : Quaternion) && (op == "*"))
{
T nx = w * q.x + x * q.w + y * q.z - z * q.y,
ny = w * q.y + y * q.w + z * q.x - x * q.z,
nz = w * q.z + z * q.w + x * q.y - y * q.x,
nw = w * q.w - x * q.x - y * q.y - z * q.z;
x = nx;
y = ny;
z = nz;
w = nw;
return this;
}
ref Quaternion opOpAssign(string op, U)(U operand) pure nothrow if (isConvertible!U)
{
Quaternion conv = operand;
return opOpAssign!op(conv);
}
Quaternion opBinary(string op, U)(U operand) pure const nothrow
if (is(U: Quaternion) || (isConvertible!U))
{
Quaternion temp = this;
return temp.opOpAssign!op(operand);
}
/// Compare two Quaternions.
bool opEquals(U)(U other) pure const if (is(U : Quaternion))
{
return v == other.v;
}
/// Compare Quaternion and other types.
bool opEquals(U)(U other) pure const nothrow if (isConvertible!U)
{
Quaternion conv = other;
return opEquals(conv);
}
/// Convert to a 3x3 rotation matrix.
/// TODO: check out why we can't do is(Unqual!U == mat3!T)
U opCast(U)() pure const nothrow if (is(typeof(U._isMatrix))
&& is(U._T : _T)
&& (U._R == 3) && (U._C == 3))
{
// do not assume that quaternion is normalized
T norm = x*x + y*y + z*z + w*w;
T s = (norm > 0) ? 2 / norm : 0;
T xx = x * x * s, xy = x * y * s, xz = x * z * s, xw = x * w * s,
yy = y * y * s, yz = y * z * s, yw = y * w * s,
zz = z * z * s, zw = z * w * s;
return mat3!(U._T)
(
1 - (yy + zz) , (xy - zw) , (xz + yw) ,
(xy + zw) , 1 - (xx + zz) , (yz - xw) ,
(xz - yw) , (yz + xw) , 1 - (xx + yy)
);
}
/// Converts a to a 4x4 rotation matrix.
/// Bugs: check why we can't do is(Unqual!U == mat4!T)
U opCast(U)() pure const nothrow if (is(typeof(U._isMatrix))
&& is(U._T : _T)
&& (U._R == 4) && (U._C == 4))
{
auto m3 = cast(mat3!(U._T))(this);
return cast(U)(m3);
}
// Workaround Vector not being constructable through CTFE
static Quaternion IDENTITY() pure nothrow @property
{
Quaternion q;
q.x = q.y = q.z = 0;
q.w = 1;
return q;
}
}
private
{
alias T _T;
enum _isQuaternion = true;
template isAssignable(T)
{
enum bool isAssignable =
is(typeof(
{
T x;
Quaternion v = x;
}()));
}
// define types that can be converted to Quaternion, but are not Quaternion
template isConvertible(T)
{
enum bool isConvertible = (!is(T : Quaternion)) && isAssignable!T;
}
}
}
alias Quaternion!float quaternionf;
alias Quaternion!double quaterniond;
/// Linear interpolation, for quaternions.
Quaternion!T lerp(T)(Quaternion!T a, Quaternion!T b, float t) pure nothrow
{
Quaternion!T res = void;
res.v = funcs.lerp(a.v, b.v, t);
return res;
}
/// Returns: Nlerp of quaternions.
/// See_also: $(WEB keithmaggio.wordpress.com/2011/02/15/math-magician-lerp-slerp-and-nlerp/, Math Magician – Lerp, Slerp, and Nlerp)
Quaternion!T Nlerp(T)(Quaternion!T a, Quaternion!T b, float t) pure nothrow
{
assert(t >= 0 && t <= 1); // else probably doesn't make sense
Quaternion!T res = void;
res.v = funcs.lerp(a.v, b.v, t);
res.v.normalize();
return res;
}
/// Returns: Slerp of quaternions. Slerp is more expensive than Nlerp.
/// See_also: "Understanding Slerp, Then Not Using It"
Quaternion!T slerp(T)(Quaternion!T a, Quaternion!T b, T t) pure nothrow
{
assert(t >= 0 && t <= 1); // else probably doesn't make sense
Quaternion!T res = void;
T dotProduct = dot(a.v, b.v);
// spherical lerp always has 2 potential paths
// here we always take the shortest
if (dotProduct < 0)
{
b.v *= -1;
dotProduct = dot(a.v, b.v);
}
immutable T threshold = 10 * T.epsilon; // idMath uses 1e-6f for 32-bits float precision
if ((1 - dotProduct) > threshold) // if small difference, use lerp
return lerp(a, b, t);
T theta_0 = funcs.safeAcos(dotProduct); // angle between this and other
T theta = theta_0 * t; // angle between this and result
vec3!T v2 = dot(b.v, a.v * dotProduct);
v2.normalize();
res.v = dot(b.v, a.v * dotProduct);
res.v.normalize();
res.v = a.v * cos(theta) + res.v * sin(theta);
return res;
}
unittest
{
quaternionf a = quaternionf.fromAxis(vec3f(1, 0, 0), 1);
quaternionf b = quaternionf.fromAxis(vec3f(0, 1, 0), 0);
a = a * b;
quaternionf c = lerp(a, b, 0.5f);
quaternionf d = Nlerp(a, b, 0.1f);
quaternionf e = slerp(a, b, 0.0f);
}
| D |
/*
* #197 Dialog lines with ambient templar interchanged pt. 2
*
* There does not seem an easy way to test this fix programmatically, so this test relies on manual confirmation.
*
* Expected behavior: The ambient templar NPC that the player is teleported to has the correct subtitles.
*/
func void G1CP_Test_197() {
if (G1CP_TestsuiteAllowManual) {
AI_Teleport(hero, "PSI_GUARD2");
};
};
| D |
instance PIR_1392_Addon_InExtremo_ThomasTheForger(Npc_Default)
{
name[0] = "Thomas the forger";
npcType = npctype_main;
guild = GIL_NONE;
level = 4;
flags = 0;
voice = 8;
id = 1392;
flags = NPC_FLAG_IMMORTAL;
attribute[ATR_STRENGTH] = 20;
attribute[ATR_DEXTERITY] = 10;
attribute[ATR_MANA_MAX] = 0;
attribute[ATR_MANA] = 0;
attribute[ATR_HITPOINTS_MAX] = 88;
attribute[ATR_HITPOINTS] = 88;
CreateInvItem(self,ItMi_IECello);
B_CreateAmbientInv(self);
Mdl_SetVisual(self,"HUMANS.MDS");
Mdl_SetVisualBody(self,"HUM_IE_THOMAS_INSTRUMENT",DEFAULT,DEFAULT,"HUM_HEAD_THOMAS",DEFAULT,DEFAULT,-1);
fight_tactic = FAI_HUMAN_STRONG;
Npc_SetTalentSkill(self,NPC_TALENT_1H,1);
daily_routine = Rtn_Start_1392;
};
func void Rtn_Start_1392()
{
TA_Stand_Eating(5,0,20,0,"WP_COOK_PAN");
TA_Stand_Eating(20,0,5,0,"WP_COOK_PAN");
};
func void Rtn_Concert_1392()
{
TA_Concert(5,0,20,0,"WP_COOK_PAN");
TA_Concert(20,0,5,0,"WP_COOK_PAN");
};
| D |
/*
Copyright (c) 2011-2017 Timur Gafarov
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
module dlib.container.hash;
public:
pure int stringHash(string key, int tableSize = 5381)
{
int hashVal = 0;
for (int x = 0; x < key.length; ++x)
{
hashVal ^= (hashVal << 5) + (hashVal >> 2) + key[x];
}
return hashVal % tableSize;
}
unittest
{
int h = stringHash("Hello!");
assert(h == -4720);
}
| D |
$NetBSD$
--- runtime/druntime/src/core/sys/posix/pthread.d.orig 2016-01-21 15:39:03.000000000 +0000
+++ runtime/druntime/src/core/sys/posix/pthread.d
@@ -209,6 +209,57 @@ else version( FreeBSD )
enum PTHREAD_COND_INITIALIZER = null;
enum PTHREAD_RWLOCK_INITIALIZER = null;
}
+ else version( NetBSD )
+{
+/* MISSING
+ PTHREAD_EXPLICIT_SCHED
+ PTHREAD_INHERIT_SCHED
+*/
+ enum
+ {
+ PTHREAD_CREATE_JOINABLE,
+ PTHREAD_CREATE_DETACHED,
+ }
+ enum
+ {
+ PTHREAD_INHERIT_SCHED,
+ PTHREAD_EXPLICIT_SCHED,
+ }
+ enum
+ {
+ PTHREAD_PROCESS_PRIVATE,
+ PTHREAD_PROCESS_SHARED,
+ }
+ enum
+ {
+ PTHREAD_CANCEL_DEFERRED,
+ PTHREAD_CANCEL_ASYNCHRONOUS,
+ }
+ enum
+ {
+ PTHREAD_CANCEL_ENABLE,
+ PTHREAD_CANCEL_DISABLE,
+ }
+ enum PTHREAD_BARRIER_SERIAL_THREAD = 1234567;
+/*
+ * POSIX 1003.1-2001, section 2.5.9.3: "The symbolic constant
+ * PTHREAD_CANCELED expands to a constant expression of type (void *)
+ * whose value matches no pointer to an object in memory nor the value
+ * NULL."
+ */
+ enum PTHREAD_CANCELED = cast(void*)1;
+
+/*
+ * Maximum length of a thread's name, including the terminating NUL.
+ */
+ enum PTHREAD_MAX_NAMELEN_NP = 32;
+
+ // enum PTHREAD_COND_INITIALIZER = _PTHREAD_COND_INITIALIZER;
+ // enum PTHREAD_MUTEX_INITIALIZER = _PTHREAD_MUTEX_INITIALIZER;
+ // enum PTHREAD_ONCE_INIT = _PTHREAD_ONCE_INIT;
+ // enum PTHREAD_RWLOCK_INITIALIZER = _PTHREAD_RWLOCK_INITIALIZER;
+ // enum PTHREAD_SPINLOCK_INITIALIZER = _PTHREAD_SPINLOCK_INITIALIZER;
+}
else version (Solaris)
{
enum
@@ -362,6 +413,31 @@ else version( FreeBSD )
void __pthread_cleanup_push_imp(_pthread_cleanup_routine, void*, _pthread_cleanup_info*);
void __pthread_cleanup_pop_imp(int);
}
+else version( NetBSD )
+{
+ alias void function(void*) _pthread_cleanup_routine;
+
+ struct pthread_cleanup_store {
+ void*[4] pad;
+ }
+
+ struct pthread_cleanup
+ {
+ pthread_cleanup_store __store = void;
+
+ extern (D) void push()( _pthread_cleanup_routine routine, void* arg)
+ {
+ pthread__cleanup_push(routine, arg, &__store);
+ }
+
+ extern (D) void pop()( int execute )
+ {
+ pthread__cleanup_pop(execute, &__store);
+ }
+ }
+ void pthread__cleanup_push(_pthread_cleanup_routine, void*, void*);
+ void pthread__cleanup_pop(int, void*);
+}
else version (Solaris)
{
alias void function(void*) _pthread_cleanup_routine;
@@ -507,6 +583,16 @@ else version( FreeBSD )
int pthread_barrierattr_init(pthread_barrierattr_t*);
int pthread_barrierattr_setpshared(pthread_barrierattr_t*, int);
}
+else version( NetBSD )
+{
+ int pthread_barrier_destroy(pthread_barrier_t*);
+ int pthread_barrier_init(pthread_barrier_t*, in pthread_barrierattr_t*, uint);
+ int pthread_barrier_wait(pthread_barrier_t*);
+ int pthread_barrierattr_destroy(pthread_barrierattr_t*);
+//int pthread_barrierattr_getpshared(in pthread_barrierattr_t*, int*); (BAR|TSH)
+ int pthread_barrierattr_init(pthread_barrierattr_t*);
+//int pthread_barrierattr_setpshared(pthread_barrierattr_t*, int); (BAR|TSH)
+}
else version (OSX)
{
}
@@ -565,6 +651,14 @@ else version( FreeBSD )
int pthread_spin_trylock(pthread_spinlock_t*);
int pthread_spin_unlock(pthread_spinlock_t*);
}
+else version( NetBSD )
+{
+ int pthread_spin_init(pthread_spinlock_t*, int);
+ int pthread_spin_destroy(pthread_spinlock_t*);
+ int pthread_spin_lock(pthread_spinlock_t*);
+ int pthread_spin_trylock(pthread_spinlock_t*);
+ int pthread_spin_unlock(pthread_spinlock_t*);
+}
else version (OSX)
{
}
@@ -648,6 +742,27 @@ else version( FreeBSD )
int pthread_mutexattr_settype(pthread_mutexattr_t*, int) @trusted;
int pthread_setconcurrency(int);
}
+else version( NetBSD )
+{
+ /*
+ * Mutex attributes.
+ */
+ enum
+ {
+ PTHREAD_MUTEX_NORMAL,
+ PTHREAD_MUTEX_ERRORCHECK,
+ PTHREAD_MUTEX_RECURSIVE,
+ PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL,
+ }
+ int pthread_attr_getguardsize(in pthread_attr_t*, size_t*);
+ int pthread_attr_setguardsize(pthread_attr_t*, size_t);
+ int pthread_mutexattr_gettype(in pthread_mutexattr_t*, int*);
+ int pthread_mutexattr_settype(pthread_mutexattr_t*, int);
+/* MISSING:
+int pthread_getconcurrency();
+int pthread_setconcurrency(int);
+*/
+}
else version (Solaris)
{
enum
@@ -698,6 +813,9 @@ else version( FreeBSD )
{
int pthread_getcpuclockid(pthread_t, clockid_t*);
}
+else version( NetBSD )
+{
+}
else version (OSX)
{
}
@@ -740,6 +858,14 @@ else version( FreeBSD )
int pthread_rwlock_timedrdlock(pthread_rwlock_t*, in timespec*);
int pthread_rwlock_timedwrlock(pthread_rwlock_t*, in timespec*);
}
+else version( NetBSD )
+{
+ /* MISSING:
+ *int pthread_mutex_timedlock(pthread_mutex_t*, in timespec*);
+ */
+ int pthread_rwlock_timedrdlock(pthread_rwlock_t*, in timespec*);
+ int pthread_rwlock_timedwrlock(pthread_rwlock_t*, in timespec*);
+}
else version (Solaris)
{
int pthread_mutex_timedlock(pthread_mutex_t*, in timespec*);
@@ -876,6 +1002,27 @@ else version( FreeBSD )
int pthread_setschedparam(pthread_t, int, sched_param*);
// int pthread_setschedprio(pthread_t, int); // not implemented
}
+else version( NetBSD )
+{
+ enum
+ {
+ PTHREAD_SCOPE_PROCESS,
+ PTHREAD_SCOPE_SYSTEM,
+ }
+
+int pthread_attr_getinheritsched(in pthread_attr_t*, int*);
+int pthread_attr_getschedpolicy(in pthread_attr_t*, int*);
+int pthread_attr_getscope(in pthread_attr_t*, int*);
+int pthread_attr_setinheritsched(pthread_attr_t*, int);
+int pthread_attr_setschedpolicy(pthread_attr_t*, int);
+int pthread_attr_setscope(pthread_attr_t*, int);
+int pthread_getschedparam(pthread_t, int*, sched_param*);
+int pthread_setschedparam(pthread_t, int, in sched_param*);
+
+/* MISSING:
+int pthread_setschedprio(pthread_t, int);
+*/
+}
else version (Solaris)
{
enum
@@ -953,6 +1100,15 @@ else version( FreeBSD )
int pthread_attr_setstackaddr(pthread_attr_t*, void*);
int pthread_attr_setstacksize(pthread_attr_t*, size_t);
}
+else version( NetBSD )
+{
+ int pthread_attr_getstack(in pthread_attr_t*, void**, size_t*);
+ int pthread_attr_getstackaddr(in pthread_attr_t*, void**);
+ int pthread_attr_getstacksize(in pthread_attr_t*, size_t*);
+ int pthread_attr_setstack(pthread_attr_t*, void*, size_t);
+ int pthread_attr_setstackaddr(pthread_attr_t*, void*);
+ int pthread_attr_setstacksize(pthread_attr_t*, size_t);
+}
else version (Solaris)
{
int pthread_attr_getstack(in pthread_attr_t*, void**, size_t*);
@@ -1006,6 +1162,17 @@ else version( FreeBSD )
int pthread_rwlockattr_getpshared(in pthread_rwlockattr_t*, int*);
int pthread_rwlockattr_setpshared(pthread_rwlockattr_t*, int);
}
+else version( NetBSD )
+{
+/* MISSING:
+int pthread_condattr_getpshared(in pthread_condattr_t*, int*);
+int pthread_condattr_setpshared(pthread_condattr_t*, int);
+int pthread_mutexattr_getpshared(in pthread_mutexattr_t*, int*);
+int pthread_mutexattr_setpshared(pthread_mutexattr_t*, int);
+int pthread_rwlockattr_getpshared(in pthread_rwlockattr_t*, int*);
+int pthread_rwlockattr_setpshared(pthread_rwlockattr_t*, int);
+*/
+}
else version( OSX )
{
int pthread_condattr_getpshared(in pthread_condattr_t*, int*);
| D |
import std.stdio, std.algorithm, permutations2;
void permutationSort(T)(T[] items) /*pure nothrow*/ {
foreach (const perm; items.permutations!false)
if (perm.isSorted) {
items[] = perm[];
break;
}
}
void main() {
auto data = [2, 7, 4, 3, 5, 1, 0, 9, 8, 6, -1];
data.permutationSort;
data.writeln;
}
| D |
module blockie.render.clrenderer;
import blockie.all;
final class CLSceneRenderer : IRenderer {
private:
const bool DEBUG = false;
OpenGL gl;
OpenCL cl;
World world;
uint textureID;
int width, height;
IntRect renderRect;
SpriteRenderer quadRenderer;
BoxRenderer boxRenderer;
SphereRenderer3D sphereRenderer;
CLContext ctx;
CLCommandQueue queue;
CLKernel initKernel, marchKernel, shadeKernel;
ulong[2] kernelSquareWGSize2d;
ulong[2] kernelRowMajorWGSize2d;
CLBuffer imageBuf, voxelDataBuf, chunkDataBuf;
CLBuffer voxelsHitBuf, positionsHitBuf;
Constants_CL constants;
ShadeConstants_CL shadeConstants;
Timing renderTiming;
Timing marchKernelTiming;
Timing shadeKernelTiming;
Timing acquireGLTiming;
Timing releaseGLTiming;
cl_event marchKernelEvent;
cl_event shadeKernelEvent;
cl_event acquireGLEvent;
cl_event releaseGLEvent;
static assert(Constants_CL.sizeof==132);
final static struct Constants_CL {
float3 worldBB0; // 16
float3 worldBB1; // 16
float3 cameraOrigin;// 16
float3 cameraUp; // 16
float3 screenMiddle;// 16
float3 screenXDelta;// 16
float3 screenYDelta;// 16
uint width; // 4 bytes
uint height; // 4
uint chunksX; // 4
uint chunksY; // 4
uint chunksZ; // 4
}
static assert(ChunkData_CL.sizeof==4);
final static struct ChunkData_CL {
uint voxelsOffset;
}
static assert(MarchOut_CL.sizeof==16);
align(1) final struct MarchOut_CL { align(1):
float[3] pos; // in world coords
ubyte voxel;
ubyte[3] padding;
}
static assert(ShadeConstants_CL.sizeof==24);
align(1) final struct ShadeConstants_CL { align(1):
uint width;
uint height;
float3 sunPos;
}
public:
this(OpenGL gl, OpenCL cl, IntRect renderRect) {
this.gl = gl;
this.cl = cl;
this.renderRect = renderRect;
this.width = renderRect.w;
this.height = renderRect.h;
this.renderTiming = new Timing(10,3);
this.marchKernelTiming = new Timing(10,3);
this.shadeKernelTiming = new Timing(10,3);
this.acquireGLTiming = new Timing(10,1);
this.releaseGLTiming = new Timing(10,1);
this.boxRenderer = new BoxRenderer(gl);
this.sphereRenderer = new SphereRenderer3D(gl);
boxRenderer.setColour(WHITE*0.5);
setupTexture();
setupSpriteRenderer();
setupCL();
}
void destroy() {
if(boxRenderer) boxRenderer.destroy();
if(quadRenderer) quadRenderer.destroy();
if(sphereRenderer) sphereRenderer.destroy();
if(textureID) glDeleteTextures(1, &textureID);
}
void setWorld(World world) {
this.world = world;
initialiseBuffers();
cameraMoved();
}
void debugToConsole(Console console) {
console.log("Render time ..... %s".format(renderTiming));
console.log(" (March Kernel %s)".format(marchKernelTiming));
console.log(" (Shade Kernel %s)".format(shadeKernelTiming));
console.log("(Acquire GL objs %s)".format(acquireGLTiming));
console.log("(Release GL objs %s)".format(releaseGLTiming));
console.log(" ");
}
void cameraMoved() {
auto camera = world.camera;
const float Y = renderRect.y;
const float w = width;
const float h = height;
const float h2 = h/2;
const float w2 = w/2;
const float z = 0;
Vector3 cameraPos = camera.position();
Vector3 left = camera.screenToWorld(0, Y+h2, z) - cameraPos;
Vector3 right = camera.screenToWorld(w, Y+h2, z) - cameraPos;
Vector3 top = camera.screenToWorld(w2, Y, z) - cameraPos;
Vector3 bottom = camera.screenToWorld(w2, Y+h, z) - cameraPos;
constants.screenMiddle = float3(camera.screenToWorld(w2, Y+h2, z) - cameraPos);
constants.screenXDelta = float3((right-left) / w);
constants.screenYDelta = float3((bottom-top) / h);
updateConstants();
boxRenderer.update(camera, world.bb.min, world.bb.max);
sphereRenderer.cameraUpdate(camera);
sphereRenderer.clear();
sphereRenderer.addSphere(Vector3(0,0,0), 5, WHITE);
//sphereRenderer.addSphere(Vector3(0,0,1024), 5, BLUE);
sphereRenderer.addSphere(world.sunPos, 50, YELLOW);
//sphereRenderer.addSphere(Vector3(50,50,50), 5, RED);
}
void render() {
renderTiming.startFrame();
acquireGLObjects();
executeMarchKernel();
executeShadeKernel();
releaseGLObjects();
//queue.enqueueReadBuffer(outputBuf, output.ptr, null, false, &event4);
queue.finish();
if(!DEBUG) {
marchKernelTiming.endFrame(marchKernelEvent.getRunTime());
shadeKernelTiming.endFrame(shadeKernelEvent.getRunTime());
acquireGLTiming.endFrame(acquireGLEvent.getRunTime());
releaseGLTiming.endFrame(releaseGLEvent.getRunTime());
}
marchKernelEvent.release();
shadeKernelEvent.release();
acquireGLEvent.release();
releaseGLEvent.release();
quadRenderer.render();
boxRenderer.render();
sphereRenderer.render();
renderTiming.endFrame();
}
void chunkUpdated(Chunk chunk) {
}
private:
void executeInitKernel() {
queue.enqueueKernel(
initKernel,
[1, 1],
null,
null,
null);
queue.finish();
}
void executeMarchKernel() {
queue.enqueueKernel(
marchKernel,
[width, height],
kernelSquareWGSize2d,
null,
&marchKernelEvent);
}
void executeShadeKernel() {
queue.enqueueKernel(
shadeKernel,
[width, height],
//null,
kernelRowMajorWGSize2d,
//kernelSquareWGSize2d,
null,
&shadeKernelEvent);
}
void acquireGLObjects() {
queue.enqueueAcquireGLObjects(
[imageBuf], null, &acquireGLEvent
);
}
void releaseGLObjects() {
queue.enqueueReleaseGLObjects(
[imageBuf], null, &releaseGLEvent
);
}
void updateConstants() {
constants.width = width;
constants.height = height;
constants.worldBB0 = float3(world.bb.pp[0]);
constants.worldBB1 = float3(world.bb.pp[1]);
constants.chunksX = world.chunksX;
constants.chunksY = world.chunksY;
constants.chunksZ = world.chunksZ;
constants.cameraOrigin = float3(world.camera.position);
constants.cameraUp = float3(world.camera.up);
marchKernel.setArg!Constants_CL(0, constants);
shadeConstants.width = width;
shadeConstants.height = height;
shadeConstants.sunPos = float3(world.sunPos);
shadeKernel.setArg!ShadeConstants_CL(0, shadeConstants);
}
/// fill up voxelData and chunkData buffers
void initialiseBuffers() {
// todo - handle this
assert(voxelDataBuf is null);
auto voxelsSize = world.chunks.map!(it=>it.getVoxelsLength)
.sum();
this.voxelDataBuf = ctx.createBuffer(
CL_MEM_READ_ONLY | CL_MEM_HOST_WRITE_ONLY,
voxelsSize
);
this.chunkDataBuf = ctx.createBuffer(
CL_MEM_READ_ONLY | CL_MEM_HOST_WRITE_ONLY,
world.chunks.length*ChunkData_CL.sizeof
);
marchKernel.setArg!CLBuffer(1, voxelDataBuf);
marchKernel.setArg!CLBuffer(2, chunkDataBuf);
uint voxelsOffset = 0;
uint chunksOffset = 0;
foreach(c; world.chunks) {
// write voxelData
queue.enqueueWriteBufferRect(
voxelDataBuf, voxelsOffset,
c.getVoxelsPtr, c.getVoxelsLength,
null
);
// write chunkData
ChunkData_CL cd;
cd.voxelsOffset = voxelsOffset;
queue.enqueueWriteBufferRect(
chunkDataBuf, chunksOffset, &cd, ChunkData_CL.sizeof,
null, BLOCKING
);
voxelsOffset += c.getVoxelsLength;
chunksOffset += ChunkData_CL.sizeof;
}
writefln("written %s bytes of voxelData", voxelsOffset);
writefln("written %s bytes of chunkData", chunksOffset);
flushStdErrOut();
}
void setupCL() {
cl_context_properties[] props = [
CL_GL_CONTEXT_KHR,
cast(cl_context_properties)gl.getGLContext(),
CL_WGL_HDC_KHR,
cast(cl_context_properties)gl.getDC()
];
this.ctx = cl.getPlatform().createGPUContext(props);
this.queue = ctx.createQueue(true);
CLDevice dev = ctx.getDevices[0];
this.voxelsHitBuf = ctx.createBuffer(
CL_MEM_READ_WRITE | CL_MEM_HOST_NO_ACCESS,
width*height*ubyte.sizeof
);
this.positionsHitBuf = ctx.createBuffer(
CL_MEM_READ_WRITE | CL_MEM_HOST_NO_ACCESS,
width*height*float.sizeof*3
);
this.imageBuf = ctx.createFromGLTexture(
CL_MEM_WRITE_ONLY,
textureID,
GL_TEXTURE_2D,
width*height*4
);
auto program = ctx.getProgram(
"kernels/main.c",
[
//"-cl-std=CL1.2",
"-D CHUNK_SIZE=%s".format(CHUNK_SIZE),
"-D CHUNK_SIZE_SHR=%s".format(CHUNK_SIZE_SHR),
"-D OCTREE_ROOT_BITS=%s".format(OCTREE_ROOT_BITS),
DEBUG ? "-D DEBUG" : ""
], true
);
if(!program.compiled) {
throw new Error("Unable to compile OpenCL kernel:\n"~program.compilationMessage);
}
this.initKernel = program.getKernel("Init");
this.marchKernel = program.getKernel("March");
this.shadeKernel = program.getKernel("Shade");
//marchKernel[0] = Constants_CL
//marchKernel[1] = voxelDataBuf
//marchKernel[2] = chunkDataBuf
marchKernel.setArg!CLBuffer(3, voxelsHitBuf);
marchKernel.setArg!CLBuffer(4, positionsHitBuf);
//shadeKernel[0] = ShadeConstants_CL
shadeKernel.setArg!CLBuffer(1, voxelsHitBuf);
shadeKernel.setArg!CLBuffer(2, positionsHitBuf);
shadeKernel.setArg!CLBuffer(3, imageBuf);
kernelSquareWGSize2d =
marchKernel.getSquareWorkGroupSize2d(dev);
kernelRowMajorWGSize2d =
marchKernel.getRowMajorWorkGroupSize2d(dev);
log("kernel square work group size 2d = %s", kernelSquareWGSize2d);
executeInitKernel();
}
void setupTexture() {
glGenTextures(1, &textureID);
glBindTexture(GL_TEXTURE_2D, textureID);
glActiveTexture(GL_TEXTURE0 + 0);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA,
width, height,
0, GL_RGBA, GL_UNSIGNED_BYTE, null);
}
void setupSpriteRenderer() {
quadRenderer = new SpriteRenderer(gl, false);
quadRenderer
.setVP(new Camera2D(gl.windowSize).VP);
quadRenderer
.withTexture(new Texture(textureID, Dimension(width, height)))
.addSprites([
cast(BitmapSprite)new BitmapSprite()
.move(Vector2(renderRect.x,renderRect.y))
.scale(renderRect.w, renderRect.h)
]);
}
}
| D |
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric;
void main()
{
auto nm = readln.split.to!(int[]);
auto N = nm[0];
auto M = nm[1];
int[][] T;
T.length = N;
foreach (i; 1..N) {
auto p = readln.chomp.to!int;
T[p] ~= i;
}
auto CS = new long[](N);
foreach (_; 0..M) {
auto bc = readln.split.to!(long[]);
CS[bc[0]] = bc[1];
}
long r;
long solve(int i) {
if (CS[i]) return CS[i];
long[] ds;
long mind = long.max;
foreach (j; T[i]) {
auto d = solve(j);
ds ~= d;
mind = min(mind, d);
}
foreach (d; ds) {
r += d - mind;
}
return mind;
}
foreach (i; T[0]) r += solve(i);
writeln(r);
} | D |
instance DIA_ToughGuy_NEWS(C_Info)
{
nr = 1;
condition = DIA_ToughGuy_NEWS_Condition;
information = DIA_ToughGuy_NEWS_Info;
permanent = TRUE;
important = TRUE;
};
func int DIA_ToughGuy_NEWS_Condition()
{
if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(DJG_Sylvio)) && Npc_KnowsInfo(other,DIA_SylvioDJG_WHATNEXT))
{
return FALSE;
}
else if(Npc_IsInState(self,ZS_Talk) && (self.aivar[AIV_LastFightAgainstPlayer] != FIGHT_NONE) && (self.aivar[AIV_LastFightComment] == FALSE) && (Hlp_GetInstanceID(self) != Hlp_GetInstanceID(Sentenza)))
{
return TRUE;
}
else if((Hlp_GetInstanceID(self) == Hlp_GetInstanceID(Sentenza)) && Npc_KnowsInfo(other,DIA_Sentenza_Hello) && (self.aivar[AIV_LastFightComment] == FALSE))
{
return TRUE;
};
};
func void DIA_ToughGuy_NEWS_Info()
{
if(self.aivar[AIV_LastFightAgainstPlayer] == FIGHT_LOST)
{
B_Say(self,other,"$TOUGHGUY_ATTACKLOST");
}
else if(self.aivar[AIV_LastFightAgainstPlayer] == FIGHT_WON)
{
B_Say(self,other,"$TOUGHGUY_ATTACKWON");
}
else
{
B_Say(self,other,"$TOUGHGUY_PLAYERATTACK");
};
self.aivar[AIV_LastFightComment] = TRUE;
if(Hlp_GetInstanceID(self) == Hlp_GetInstanceID(Skinner))
{
AI_Output(self,other,"DIA_Addon_Skinner_ToughguyNews_08_00"); //...но я не хочу говорить с тобой...
AI_StopProcessInfos(self);
B_Attack(self,other,AR_NONE,1);
};
};
func void B_AssignToughGuyNEWS(var C_Npc slf)
{
DIA_ToughGuy_NEWS.npc = Hlp_GetInstanceID(slf);
};
| D |
// ************************************************************
// Face Helper
// ************************************************************
var int FH_SkinTexture;
var string FH_HeadMesh;
var int FH_HeadMesh_DEFAULT_Hilfsvariable;
var int SEX;
// ************************************************************
// Change Face Helper Visual
// ************************************************************
FUNC VOID Change_FH_Visual()
{
if (FH_HeadMesh_DEFAULT_Hilfsvariable == 0)
{
FH_HeadMesh = "Hum_Head_Bald";
FH_HeadMesh_DEFAULT_Hilfsvariable = 1;
};
if (FH_SkinTexture < 0)
{
FH_SkinTexture = 0;
PrintScreen ("MINUS-Brak twarzy!!!!!" , -1, -1, "FONT_OLD_10_WHITE.TGA", 2);
};
B_SetNpcVisual (self, SEX, FH_HeadMesh, FH_SkinTexture, BodyTex_N, NO_ARMOR);
var string printText;
PrintScreen ("Tekstura skóry:" , -1, 10, "FONT_OLD_10_WHITE.TGA", 4 );
printText = IntToString (FH_SkinTexture);
PrintScreen (printText , -1, 12, "FONT_OLD_10_WHITE.TGA", 2 );
PrintScreen ("Głowa:" , -1, 20, "FONT_OLD_10_WHITE.TGA", 2 );
PrintScreen (FH_HeadMesh , -1, 22, "FONT_OLD_10_WHITE.TGA", 2 );
};
// ************************************************************
// EXIT
// ************************************************************
INSTANCE DIA_FH_EXIT (C_INFO)
{
npc = FH;
nr = 999;
condition = DIA_FH_EXIT_Condition;
information = DIA_FH_EXIT_Info;
permanent = 1;
description = DIALOG_ENDE;
};
FUNC INT DIA_FH_EXIT_Condition()
{
return 1;
};
FUNC VOID DIA_FH_EXIT_Info()
{
AI_StopProcessInfos (self);
};
// ************************************************************
// Next Face
// ************************************************************
INSTANCE DIA_FH_NextFace (C_INFO)
{
npc = FH;
nr = 3;
condition = DIA_FH_NextFace_Condition;
information = DIA_FH_NextFace_Info;
permanent = 1;
description = "Następna twarz";
};
FUNC INT DIA_FH_NextFace_Condition()
{
return 1;
};
FUNC VOID DIA_FH_NextFace_Info()
{
FH_SkinTexture = FH_SkinTexture+1;
Change_FH_Visual();
};
// ************************************************************
// Next Face 10 step
// ************************************************************
INSTANCE DIA_FH_NextFace10 (C_INFO)
{
npc = FH;
nr = 5;
condition = DIA_FH_NextFace10_Condition;
information = DIA_FH_NextFace10_Info;
permanent = 1;
description = "10 wzorów do przodu";
};
FUNC INT DIA_FH_NextFace10_Condition()
{
return 1;
};
FUNC VOID DIA_FH_NextFace10_Info()
{
FH_SkinTexture = FH_SkinTexture+10;
Change_FH_Visual();
};
// ************************************************************
// Previous Face
// ************************************************************
INSTANCE DIA_FH_PreviousFace (C_INFO)
{
npc = FH;
nr = 4;
condition = DIA_FH_PreviousFace_Condition;
information = DIA_FH_PreviousFace_Info;
permanent = 1;
description = "Poprzednia twarz";
};
FUNC INT DIA_FH_PreviousFace_Condition()
{
return 1;
};
FUNC VOID DIA_FH_PreviousFace_Info()
{
FH_SkinTexture = FH_SkinTexture-1;
Change_FH_Visual();
};
// ************************************************************
// Previous Face
// ************************************************************
INSTANCE DIA_FH_PreviousFace10 (C_INFO)
{
npc = FH;
nr = 6;
condition = DIA_FH_PreviousFace10_Condition;
information = DIA_FH_PreviousFace10_Info;
permanent = 1;
description = "10 wzorów wstecz";
};
FUNC INT DIA_FH_PreviousFace10_Condition()
{
return 1;
};
FUNC VOID DIA_FH_PreviousFace10_Info()
{
FH_SkinTexture = FH_SkinTexture-10;
Change_FH_Visual();
};
// ************************************************************
// ResetFace
// ************************************************************
INSTANCE DIA_FH_ResetFace (C_INFO)
{
npc = FH;
nr = 7;
condition = DIA_FH_ResetFace_Condition;
information = DIA_FH_ResetFace_Info;
permanent = 1;
description = "Powrót do twarzy domyślnej";
};
FUNC INT DIA_FH_ResetFace_Condition()
{
return 1;
};
FUNC VOID DIA_FH_ResetFace_Info()
{
FH_SkinTexture = 0;
Change_FH_Visual();
};
// ************************************************************
// WomanFace
// ************************************************************
INSTANCE DIA_FH_WomanFace (C_INFO)
{
npc = FH;
nr = 8;
condition = DIA_FH_WomanFace_Condition;
information = DIA_FH_WomanFace_Info;
permanent = 1;
description = "Twarze kobiece";
};
FUNC INT DIA_FH_WomanFace_Condition()
{
return 1;
};
FUNC VOID DIA_FH_WomanFace_Info()
{
FH_SkinTexture = 137;
Change_FH_Visual();
};
// ************************************************************
// aktuelle Anzeige wiederholen
// ************************************************************
INSTANCE DIA_FH_Repeat (C_INFO)
{
npc = FH;
nr = 1;
condition = DIA_FH_Repeat_Condition;
information = DIA_FH_Repeat_Info;
permanent = 1;
description = "Powtórzenie działania";
};
FUNC INT DIA_FH_Repeat_Condition()
{
return 1;
};
FUNC VOID DIA_FH_Repeat_Info()
{
Change_FH_Visual();
};
// ************************************************************
// aSEX
// ************************************************************
INSTANCE DIA_FH_Sex (C_INFO)
{
npc = FH;
nr = 9;
condition = DIA_FH_Sex_Condition;
information = DIA_FH_Sex_Info;
permanent = 1;
description = "Płeć";
};
FUNC INT DIA_FH_Sex_Condition()
{
return 1;
};
FUNC VOID DIA_FH_Sex_Info()
{
if (sex == MALE)
{
sex = FEMALE;
}
else //Female
{
sex = MALE;
};
Change_FH_Visual();
};
// ************************************************************
// KOPF
// ************************************************************
INSTANCE DIA_FH_Choose_HeadMesh (C_INFO)
{
npc = FH;
nr = 2;
condition = DIA_FH_Choose_HeadMesh_Condition;
information = DIA_FH_Choose_HeadMesh_Info;
permanent = 1;
description = "Wybór głowy";
};
FUNC INT DIA_FH_Choose_HeadMesh_Condition()
{
return 1;
};
FUNC VOID DIA_FH_Choose_HeadMesh_Info()
{
Info_ClearChoices (DIA_FH_Choose_HeadMesh);
Info_AddChoice (DIA_FH_Choose_HeadMesh, "Powrót" , DIA_FH_Choose_HeadMesh_7);
Info_AddChoice (DIA_FH_Choose_HeadMesh, "Hum_Head_Psionic" , DIA_FH_Choose_HeadMesh_6);
Info_AddChoice (DIA_FH_Choose_HeadMesh, "Hum_Head_Thief" , DIA_FH_Choose_HeadMesh_5);
Info_AddChoice (DIA_FH_Choose_HeadMesh, "Hum_Head_Bald" , DIA_FH_Choose_HeadMesh_4);
Info_AddChoice (DIA_FH_Choose_HeadMesh, "Hum_Head_Pony" , DIA_FH_Choose_HeadMesh_3);
Info_AddChoice (DIA_FH_Choose_HeadMesh, "Hum_Head_Fighter" , DIA_FH_Choose_HeadMesh_2);
Info_AddChoice (DIA_FH_Choose_HeadMesh, "Hum_Head_FatBald" , DIA_FH_Choose_HeadMesh_1);
Info_AddChoice (DIA_FH_Choose_HeadMesh, "Hum_Head_BabeHair", DIA_FH_Choose_HeadMesh_17);
Info_AddChoice (DIA_FH_Choose_HeadMesh, "Hum_Head_Babe8" , DIA_FH_Choose_HeadMesh_16);
Info_AddChoice (DIA_FH_Choose_HeadMesh, "Hum_Head_Babe7" , DIA_FH_Choose_HeadMesh_15);
Info_AddChoice (DIA_FH_Choose_HeadMesh, "Hum_Head_Babe6" , DIA_FH_Choose_HeadMesh_14);
Info_AddChoice (DIA_FH_Choose_HeadMesh, "Hum_Head_Babe5" , DIA_FH_Choose_HeadMesh_13);
Info_AddChoice (DIA_FH_Choose_HeadMesh, "Hum_Head_Babe4" , DIA_FH_Choose_HeadMesh_12);
Info_AddChoice (DIA_FH_Choose_HeadMesh, "Hum_Head_Babe3" , DIA_FH_Choose_HeadMesh_11);
Info_AddChoice (DIA_FH_Choose_HeadMesh, "Hum_Head_Babe2" , DIA_FH_Choose_HeadMesh_10);
Info_AddChoice (DIA_FH_Choose_HeadMesh, "Hum_Head_Babe1" , DIA_FH_Choose_HeadMesh_9);
Info_AddChoice (DIA_FH_Choose_HeadMesh, "Hum_Head_Babe" , DIA_FH_Choose_HeadMesh_8);
};
func void DIA_FH_Choose_HeadMesh_8()
{
Info_ClearChoices (DIA_FH_Choose_HeadMesh);
FH_HeadMesh ="Hum_Head_Babe";
Change_FH_Visual();
};
func void DIA_FH_Choose_HeadMesh_9()
{
Info_ClearChoices (DIA_FH_Choose_HeadMesh);
FH_HeadMesh ="Hum_Head_Babe1";
Change_FH_Visual();
};
func void DIA_FH_Choose_HeadMesh_10()
{
Info_ClearChoices (DIA_FH_Choose_HeadMesh);
FH_HeadMesh ="Hum_Head_Babe2";
Change_FH_Visual();
};
func void DIA_FH_Choose_HeadMesh_11()
{
Info_ClearChoices (DIA_FH_Choose_HeadMesh);
FH_HeadMesh ="Hum_Head_Babe3";
Change_FH_Visual();
};
func void DIA_FH_Choose_HeadMesh_12()
{
Info_ClearChoices (DIA_FH_Choose_HeadMesh);
FH_HeadMesh ="Hum_Head_Babe4";
Change_FH_Visual();
};
func void DIA_FH_Choose_HeadMesh_13()
{
Info_ClearChoices (DIA_FH_Choose_HeadMesh);
FH_HeadMesh ="Hum_Head_Babe5";
Change_FH_Visual();
};
func void DIA_FH_Choose_HeadMesh_14()
{
Info_ClearChoices (DIA_FH_Choose_HeadMesh);
FH_HeadMesh ="Hum_Head_Babe6";
Change_FH_Visual();
};
func void DIA_FH_Choose_HeadMesh_15()
{
Info_ClearChoices (DIA_FH_Choose_HeadMesh);
FH_HeadMesh ="Hum_Head_Babe7";
Change_FH_Visual();
};
func void DIA_FH_Choose_HeadMesh_16()
{
Info_ClearChoices (DIA_FH_Choose_HeadMesh);
FH_HeadMesh ="Hum_Head_Babe8";
Change_FH_Visual();
};
func void DIA_FH_Choose_HeadMesh_17()
{
Info_ClearChoices (DIA_FH_Choose_HeadMesh);
FH_HeadMesh ="Hum_Head_BabeHair";
Change_FH_Visual();
};
// ------------------------------------------------
func void DIA_FH_Choose_HeadMesh_1()
{
Info_ClearChoices (DIA_FH_Choose_HeadMesh);
FH_HeadMesh ="Hum_Head_FatBald";
Change_FH_Visual();
};
func void DIA_FH_Choose_HeadMesh_2()
{
Info_ClearChoices (DIA_FH_Choose_HeadMesh);
FH_HeadMesh ="Hum_Head_Fighter";
Change_FH_Visual();
};
func void DIA_FH_Choose_HeadMesh_3()
{
Info_ClearChoices (DIA_FH_Choose_HeadMesh);
FH_HeadMesh ="Hum_Head_Pony";
Change_FH_Visual();
};
func void DIA_FH_Choose_HeadMesh_4()
{
Info_ClearChoices (DIA_FH_Choose_HeadMesh);
FH_HeadMesh ="Hum_Head_Bald";
Change_FH_Visual();
};
func void DIA_FH_Choose_HeadMesh_5()
{
Info_ClearChoices (DIA_FH_Choose_HeadMesh);
FH_HeadMesh ="Hum_Head_Thief";
Change_FH_Visual();
};
func void DIA_FH_Choose_HeadMesh_6()
{
Info_ClearChoices (DIA_FH_Choose_HeadMesh);
FH_HeadMesh ="Hum_Head_Psionic";
Change_FH_Visual();
};
func void DIA_FH_Choose_HeadMesh_7()
{
Info_ClearChoices (DIA_FH_Choose_HeadMesh);
};
| D |
//#############################################
//##
//## Neue Welt
//##
//#############################################
instance VLK_6024_Deep (Npc_Default)
{
// ------ NSC ------
name = "Deep";
guild = GIL_VLK;
id = 6024;
voice = 14;
flags = 0; //Sterblich, optionaler Captain im Kapitel 5!
npctype = NPCTYPE_MAIN;
//-----------AIVARS----------------
aivar[AIV_ToughGuy] = TRUE;
// ------ Attribute ------
B_SetAttributesToChapter (self, 4);
// ------ Kampf-Taktik ------
fight_tactic = FAI_HUMAN_COWARD;
// ------ Equippte Waffen ------
EquipItem (self, ItMw_1h_VLK_Sword);
// ------ Inventory ------
B_CreateAmbientInv (self);
// ------ visuals ------
B_SetNpcVisual (self, MALE, "Hum_Head_Bald", Face_N_ImportantOld, BodyTex_N,ITAR_Vlk_L);
Mdl_SetModelFatness (self,0);
Mdl_ApplyOverlayMds (self, "Humans_Tired.mds");
// ------ NSC-relevante Talente vergeben ------
B_GiveNpcTalents (self);
// ------ Kampf-Talente ------
B_SetFightSkills (self, 30);
// ------ TA anmelden ------
daily_routine = Rtn_Start_6024;
};
FUNC VOID Rtn_Start_6024()
{
TA_Stand_guarding (04,00,19,00,"HL_TH_B");
TA_Stand_guarding (19,00,04,00,"HL_TH_B");
};
| D |
module antlr.runtime.tests.parser_t016actions;
import antlr.runtime.Lexer;
import antlr.runtime.CharStream;
import antlr.runtime.Token;
import antlr.runtime.CommonToken;
import antlr.runtime.ANTLRStringStream;
import antlr.runtime.MismatchedTokenException;
import antlr.runtime.MismatchedRangeException;
import antlr.runtime.NoViableAltException;
import antlr.runtime.RecognitionException;
import antlr.runtime.CommonTokenStream;
import tango.io.Stdout;
import antlr.runtime.tests.t016actionsLexer;
import antlr.runtime.tests.t016actionsParser;
template main_test(char_t) {
void main_test(){
immutable(char_t)[] name;
// Valid test 01
auto input=new ANTLRStringStream!(char_t)("int foo;");
auto lexer=new t016actionsLexer!(char_t)(input);
auto stream=new CommonTokenStream!(char_t)(lexer);
auto parser=new t016actionsParser!(char_t)(stream);
name=parser.declaration();
// Stdout.format("name={}",name).newline;
assert(name == "foo");
Stdout
.format("passed: {}, {}",typeid(typeof(parser)),typeid(typeof(lexer)))
.newline;
}
}
int main() {
main_test!(char);
main_test!(wchar);
main_test!(dchar);
return 0;
}
| D |
// Written in the D programming language
/++
Module containing some basic benchmarking and timing functionality.
For convenience, this module publicly imports $(MREF core,time).
$(RED Unlike the other modules in std.datetime, this module is not currently
publicly imported in std.datetime.package, because the old
versions of this functionality which use
$(REF TickDuration,core,time) are in std.datetime.package and would
conflict with the symbols in this module. After the old symbols have
gone through the deprecation cycle and have been fully removed, then
this module will be publicly imported in std.datetime.package. The
old, deprecated symbols are currently scheduled to be removed from the
documentation in October 2018 and fully removed from Phobos in October
2019.)
So, for now, when using std.datetime.stopwatch, if other modules from
std.datetime are needed, then either import them individually rather than
importing std.datetime, or use selective or static imports to import
std.datetime.stopwatch. e.g.
----------------------------------------------------------------------------
import std.datetime;
import std.datetime.stopwatch : benchmark, StopWatch;
----------------------------------------------------------------------------
The compiler will then know to use the symbols from std.datetime.stopwatch
rather than the deprecated ones from std.datetime.package.
License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: Jonathan M Davis and Kato Shoichi
Source: $(PHOBOSSRC std/datetime/_stopwatch.d)
+/
module std.datetime.stopwatch;
public import core.time;
import std.typecons : Flag;
/++
Used by StopWatch to indicate whether it should start immediately upon
construction.
If set to $(D AutoStart.no), then the StopWatch is not started when it is
constructed.
Otherwise, if set to $(D AutoStart.yes), then the StopWatch is started when
it is constructed.
+/
alias AutoStart = Flag!"autoStart";
/++
StopWatch is used to measure time just like one would do with a physical
stopwatch, including stopping, restarting, and/or resetting it.
$(REF MonoTime,core,time) is used to hold the time, and it uses the system's
monotonic clock, which is high precision and never counts backwards (unlike
the wall clock time, which $(I can) count backwards, which is why
$(REF SysTime,std,datetime,systime) should not be used for timing).
Note that the precision of StopWatch differs from system to system. It is
impossible for it to be the same for all systems, since the precision of the
system clock and other system-dependent and situation-dependent factors
(such as the overhead of a context switch between threads) varies from
system to system and can affect StopWatch's accuracy.
+/
struct StopWatch
{
public:
///
@system nothrow @nogc unittest
{
import core.thread : Thread;
auto sw = StopWatch(AutoStart.yes);
Duration t1 = sw.peek();
Thread.sleep(usecs(1));
Duration t2 = sw.peek();
assert(t2 > t1);
Thread.sleep(usecs(1));
sw.stop();
Duration t3 = sw.peek();
assert(t3 > t2);
Duration t4 = sw.peek();
assert(t3 == t4);
sw.start();
Thread.sleep(usecs(1));
Duration t5 = sw.peek();
assert(t5 > t4);
// If stopping or resetting the StopWatch is not required, then
// MonoTime can easily be used by itself without StopWatch.
auto before = MonoTime.currTime;
// do stuff...
auto timeElapsed = MonoTime.currTime - before;
}
/++
Constructs a StopWatch. Whether it starts immediately depends on the
$(LREF AutoStart) argument.
If $(D StopWatch.init) is used, then the constructed StopWatch isn't
running (and can't be, since no constructor ran).
+/
this(AutoStart autostart) @safe nothrow @nogc
{
if (autostart)
start();
}
///
@system nothrow @nogc unittest
{
import core.thread : Thread;
{
auto sw = StopWatch(AutoStart.yes);
assert(sw.running);
Thread.sleep(usecs(1));
assert(sw.peek() > Duration.zero);
}
{
auto sw = StopWatch(AutoStart.no);
assert(!sw.running);
Thread.sleep(usecs(1));
assert(sw.peek() == Duration.zero);
}
{
StopWatch sw;
assert(!sw.running);
Thread.sleep(usecs(1));
assert(sw.peek() == Duration.zero);
}
assert(StopWatch.init == StopWatch(AutoStart.no));
assert(StopWatch.init != StopWatch(AutoStart.yes));
}
/++
Resets the StopWatch.
The StopWatch can be reset while it's running, and resetting it while
it's running will not cause it to stop.
+/
void reset() @safe nothrow @nogc
{
if (_running)
_timeStarted = MonoTime.currTime;
_ticksElapsed = 0;
}
///
@system nothrow @nogc unittest
{
import core.thread : Thread;
auto sw = StopWatch(AutoStart.yes);
Thread.sleep(usecs(1));
sw.stop();
assert(sw.peek() > Duration.zero);
sw.reset();
assert(sw.peek() == Duration.zero);
}
@system nothrow @nogc unittest
{
import core.thread : Thread;
auto sw = StopWatch(AutoStart.yes);
Thread.sleep(msecs(1));
assert(sw.peek() > msecs(1));
immutable before = MonoTime.currTime;
// Just in case the system clock is slow enough or the system is fast
// enough for the call to MonoTime.currTime inside of reset to get
// the same that we just got by calling MonoTime.currTime.
Thread.sleep(usecs(1));
sw.reset();
assert(sw.peek() < msecs(1));
assert(sw._timeStarted > before);
assert(sw._timeStarted <= MonoTime.currTime);
}
/++
Starts the StopWatch.
start should not be called if the StopWatch is already running.
+/
void start() @safe nothrow @nogc
in { assert(!_running, "start was called when the StopWatch was already running."); }
body
{
_running = true;
_timeStarted = MonoTime.currTime;
}
///
@system nothrow @nogc unittest
{
import core.thread : Thread;
StopWatch sw;
assert(!sw.running);
assert(sw.peek() == Duration.zero);
sw.start();
assert(sw.running);
Thread.sleep(usecs(1));
assert(sw.peek() > Duration.zero);
}
/++
Stops the StopWatch.
stop should not be called if the StopWatch is not running.
+/
void stop() @safe nothrow @nogc
in { assert(_running, "stop was called when the StopWatch was not running."); }
body
{
_running = false;
_ticksElapsed += MonoTime.currTime.ticks - _timeStarted.ticks;
}
///
@system nothrow @nogc unittest
{
import core.thread : Thread;
auto sw = StopWatch(AutoStart.yes);
assert(sw.running);
Thread.sleep(usecs(1));
immutable t1 = sw.peek();
assert(t1 > Duration.zero);
sw.stop();
assert(!sw.running);
immutable t2 = sw.peek();
assert(t2 >= t1);
immutable t3 = sw.peek();
assert(t2 == t3);
}
/++
Peek at the amount of time that the the StopWatch has been running.
This does not include any time during which the StopWatch was stopped but
does include $(I all) of the time that it was running and not just the
time since it was started last.
Calling $(LREF reset) will reset this to $(D Duration.zero).
+/
Duration peek() @safe const nothrow @nogc
{
enum hnsecsPerSecond = convert!("seconds", "hnsecs")(1);
immutable hnsecsMeasured = convClockFreq(_ticksElapsed, MonoTime.ticksPerSecond, hnsecsPerSecond);
return _running ? MonoTime.currTime - _timeStarted + hnsecs(hnsecsMeasured)
: hnsecs(hnsecsMeasured);
}
///
@system nothrow @nogc unittest
{
import core.thread : Thread;
auto sw = StopWatch(AutoStart.no);
assert(sw.peek() == Duration.zero);
sw.start();
Thread.sleep(usecs(1));
assert(sw.peek() >= usecs(1));
Thread.sleep(usecs(1));
assert(sw.peek() >= usecs(2));
sw.stop();
immutable stopped = sw.peek();
Thread.sleep(usecs(1));
assert(sw.peek() == stopped);
sw.start();
Thread.sleep(usecs(1));
assert(sw.peek() > stopped);
}
@safe nothrow @nogc unittest
{
assert(StopWatch.init.peek() == Duration.zero);
}
/++
Sets the total time which the StopWatch has been running (i.e. what peek
returns).
The StopWatch does not have to be stopped for setTimeElapsed to be
called, nor will calling it cause the StopWatch to stop.
+/
void setTimeElapsed(Duration timeElapsed) @safe nothrow @nogc
{
enum hnsecsPerSecond = convert!("seconds", "hnsecs")(1);
_ticksElapsed = convClockFreq(timeElapsed.total!"hnsecs", hnsecsPerSecond, MonoTime.ticksPerSecond);
_timeStarted = MonoTime.currTime;
}
///
@system nothrow @nogc unittest
{
import core.thread : Thread;
StopWatch sw;
sw.setTimeElapsed(hours(1));
// As discussed in MonoTime's documentation, converting between
// Duration and ticks is not exact, though it will be close.
// How exact it is depends on the frequency/resolution of the
// system's monotonic clock.
assert(abs(sw.peek() - hours(1)) < usecs(1));
sw.start();
Thread.sleep(usecs(1));
assert(sw.peek() > hours(1) + usecs(1));
}
/++
Returns whether this StopWatch is currently running.
+/
@property bool running() @safe const pure nothrow @nogc
{
return _running;
}
///
@safe nothrow @nogc unittest
{
StopWatch sw;
assert(!sw.running);
sw.start();
assert(sw.running);
sw.stop();
assert(!sw.running);
}
private:
// We track the ticks for the elapsed time rather than a Duration so that we
// don't lose any precision.
bool _running = false; // Whether the StopWatch is currently running
MonoTime _timeStarted; // The time the StopWatch started measuring (i.e. when it was started or reset).
long _ticksElapsed; // Total time that the StopWatch ran before it was stopped last.
}
/++
Benchmarks code for speed assessment and comparison.
Params:
fun = aliases of callable objects (e.g. function names). Each callable
object should take no arguments.
n = The number of times each function is to be executed.
Returns:
The amount of time (as a $(REF Duration,core,time)) that it took to call
each function $(D n) times. The first value is the length of time that
it took to call $(D fun[0]) $(D n) times. The second value is the length
of time it took to call $(D fun[1]) $(D n) times. Etc.
+/
Duration[fun.length] benchmark(fun...)(uint n)
{
Duration[fun.length] result;
auto sw = StopWatch(AutoStart.yes);
foreach (i, unused; fun)
{
sw.reset();
foreach (_; 0 .. n)
fun[i]();
result[i] = sw.peek();
}
return result;
}
///
@safe unittest
{
import std.conv : to;
int a;
void f0() {}
void f1() { auto b = a; }
void f2() { auto b = to!string(a); }
auto r = benchmark!(f0, f1, f2)(10_000);
Duration f0Result = r[0]; // time f0 took to run 10,000 times
Duration f1Result = r[1]; // time f1 took to run 10,000 times
Duration f2Result = r[2]; // time f2 took to run 10,000 times
}
@safe nothrow unittest
{
import std.conv : to;
int a;
void f0() nothrow {}
void f1() nothrow { auto b = to!string(a); }
auto r = benchmark!(f0, f1)(1000);
assert(r[0] > Duration.zero);
assert(r[1] > Duration.zero);
assert(r[1] > r[0]);
assert(r[0] < seconds(1));
assert(r[1] < seconds(1));
}
@safe nothrow @nogc unittest
{
int f0Count;
int f1Count;
int f2Count;
void f0() nothrow @nogc { ++f0Count; }
void f1() nothrow @nogc { ++f1Count; }
void f2() nothrow @nogc { ++f2Count; }
auto r = benchmark!(f0, f1, f2)(552);
assert(f0Count == 552);
assert(f1Count == 552);
assert(f2Count == 552);
}
| D |
/*
DIrrlicht - D Bindings for Irrlicht Engine
Copyright (C) 2014- Danyal Zia (catofdanyal@yahoo.com)
This software is provided 'as-is', without any express or
implied warranty. In no event will the authors be held
liable for any damages arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute
it freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented;
you must not claim that you wrote the original software.
If you use this software in a product, an acknowledgment
in the product documentation would be appreciated but
is not required.
2. Altered source versions must be plainly marked as such,
and must not be misrepresented as being the original software.
3. This notice may not be removed or altered from any
source distribution.
*/
module dirrlicht.io.xmlwriter;
import dirrlicht.core.array;
import std.conv : to;
import std.utf : toUTFz;
/+++
+ Interface providing methods for making it easier to write XML files.
+ This XML Writer writes xml files using in the platform dependent
+ wchar_t format and sets the xml-encoding correspondingly.
+/
interface XMLWriter {
/***
* Writes an xml 1.0 header.
* Looks like <?xml version="1.0"?>. This should always
* be called before writing anything other, because also the text
* file header for unicode texts is written out with this method.
*/
void writeXMLHeader();
/***
* Writes an xml element with maximal 5 attributes like "<foo />" or
* <foo optAttr="value" />.
* The element can be empty or not.
* Params:
* name = Name of the element
* empty = Specifies if the element should be empty. Like
* "<foo />". If You set this to false, something like this is
* written instead: "<foo>".
* attr1Name = 1st attributes name
* attr1Value = 1st attributes value
* attr2Name = 2nd attributes name
* attr2Value = 2nd attributes value
* attr3Name = 3rd attributes name
* attr3Value = 3rd attributes value
* attr4Name = 4th attributes name
* attr4Value = 4th attributes value
* attr5Name = 5th attributes name
* attr5Value = 5th attributes value
*/
void writeElement(string name, bool empty=false,
string attr1Name = null, string attr1Value = null,
string attr2Name = null, string attr2Value = null,
string attr3Name = null, string attr3Value = null,
string attr4Name = null, string attr4Value = null,
string attr5Name = null, string attr5Value = null);
/// ditto
void writeElement(dstring name, bool empty=false,
dstring attr1Name = null, dstring attr1Value = null,
dstring attr2Name = null, dstring attr2Value = null,
dstring attr3Name = null, dstring attr3Value = null,
dstring attr4Name = null, dstring attr4Value = null,
dstring attr5Name = null, dstring attr5Value = null);
/// Writes an xml element with any number of attributes
void writeElement(string name, bool empty,
string[] names, string[] values);
/// ditto
void writeElement(dstring name, bool empty,
dstring[] names, dstring[] values);
/// Writes a comment into the xml file
void writeComment(string comment);
/// ditto
void writeComment(dstring comment);
/// Writes the closing tag for an element. Like "</foo>"
void writeClosingTag(string name);
/// ditto
void writeClosingTag(dstring name);
/***
* Writes a text into the file.
* All occurrences of special characters such as
* & (&), < (<), > (>), and " (") are automaticly
* replaced.
*/
void writeText(string text);
/// ditto
void writeText(dstring text);
/// Writes a line break
void writeLineBreak();
@property void* c_ptr();
@property void c_ptr(void* ptr);
}
class CXMLWriter : XMLWriter {
this(irr_IXMLWriter* ptr)
in {
assert(ptr != null);
}
body {
this.ptr = ptr;
}
void writeXMLHeader() {
irr_IXMLWriter_writeXMLHeader(ptr);
}
void writeElement(string name, bool empty=false,
string attr1Name = null, string attr1Value = null,
string attr2Name = null, string attr2Value = null,
string attr3Name = null, string attr3Value = null,
string attr4Name = null, string attr4Value = null,
string attr5Name = null, string attr5Value = null) {
irr_IXMLWriter_writeElement(ptr, name.toUTFz!(const(dchar)*), empty, attr1Name.toUTFz!(const(dchar)*), attr1Value.toUTFz!(const(dchar)*), attr2Name.toUTFz!(const(dchar)*), attr2Value.toUTFz!(const(dchar)*), attr3Name.toUTFz!(const(dchar)*), attr3Value.toUTFz!(const(dchar)*), attr4Name.toUTFz!(const(dchar)*), attr4Value.toUTFz!(const(dchar)*), attr5Name.toUTFz!(const(dchar)*), attr5Value.toUTFz!(const(dchar)*));
}
void writeElement(dstring name, bool empty=false,
dstring attr1Name = null, dstring attr1Value = null,
dstring attr2Name = null, dstring attr2Value = null,
dstring attr3Name = null, dstring attr3Value = null,
dstring attr4Name = null, dstring attr4Value = null,
dstring attr5Name = null, dstring attr5Value = null) {
irr_IXMLWriter_writeElement(ptr, name.toUTFz!(const(dchar)*), empty, attr1Name.toUTFz!(const(dchar)*), attr1Value.toUTFz!(const(dchar)*), attr2Name.toUTFz!(const(dchar)*), attr2Value.toUTFz!(const(dchar)*), attr3Name.toUTFz!(const(dchar)*), attr3Value.toUTFz!(const(dchar)*), attr4Name.toUTFz!(const(dchar)*), attr4Value.toUTFz!(const(dchar)*), attr5Name.toUTFz!(const(dchar)*), attr5Value.toUTFz!(const(dchar)*));
}
void writeElement(string name, bool empty, string[] names, string[] values) {
irr_array tempnames, tempvalues;
tempnames.data = names.ptr;
tempvalues.data = values.ptr;
irr_IXMLWriter_writeElement2(ptr, name.toUTFz!(const(dchar)*), empty, &tempnames, &tempvalues);
}
void writeElement(dstring name, bool empty, dstring[] names, dstring[] values) {
irr_array tempnames, tempvalues;
tempnames.data = names.ptr;
tempvalues.data = values.ptr;
irr_IXMLWriter_writeElement2(ptr, name.toUTFz!(const(dchar)*), empty, &tempnames, &tempvalues);
}
void writeComment(string comment) {
irr_IXMLWriter_writeComment(ptr, comment.toUTFz!(const(dchar)*));
}
void writeComment(dstring comment) {
irr_IXMLWriter_writeComment(ptr, comment.toUTFz!(const(dchar)*));
}
void writeClosingTag(string name) {
irr_IXMLWriter_writeClosingTag(ptr, name.toUTFz!(const(dchar)*));
}
void writeClosingTag(dstring name) {
irr_IXMLWriter_writeClosingTag(ptr, name.toUTFz!(const(dchar)*));
}
void writeText(string text) {
irr_IXMLWriter_writeText(ptr, text.toUTFz!(const(dchar)*));
}
void writeText(dstring text) {
irr_IXMLWriter_writeText(ptr, text.toUTFz!(const(dchar)*));
}
void writeLineBreak() {
irr_IXMLWriter_writeLineBreak(ptr);
}
@property void* c_ptr() {
return ptr;
}
@property void c_ptr(void* ptr) {
this.ptr = cast(typeof(this.ptr))(ptr);
}
private:
irr_IXMLWriter* ptr;
}
unittest {
import dirrlicht.compileconfig;
mixin(TestPrerequisite);
}
package extern(C):
struct irr_IXMLWriter;
void irr_IXMLWriter_writeXMLHeader(irr_IXMLWriter* writer);
void irr_IXMLWriter_writeElement(irr_IXMLWriter* writer, const(dchar*) name, bool empty=false,
const(dchar*) attr1Name = null, const(dchar*) attr1Value = null,
const(dchar*) attr2Name = null, const(dchar*) attr2Value = null,
const(dchar*) attr3Name = null, const(dchar*) attr3Value = null,
const(dchar*) attr4Name = null, const(dchar*) attr4Value = null,
const(dchar*) attr5Name = null, const(dchar*) attr5Value = null);
void irr_IXMLWriter_writeElement2(irr_IXMLWriter* writer, const(dchar*) name, bool empty,
irr_array* names, irr_array* values);
void irr_IXMLWriter_writeComment(irr_IXMLWriter* writer, const(dchar*) comment);
void irr_IXMLWriter_writeClosingTag(irr_IXMLWriter* writer, const(dchar*) name);
void irr_IXMLWriter_writeText(irr_IXMLWriter* writer, const(dchar*) text);
void irr_IXMLWriter_writeLineBreak(irr_IXMLWriter* writer);
| D |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
module hunt.shiro.authc.LogoutAware;
import hunt.shiro.subject.PrincipalCollection;
/**
* An SPI interface allowing cleanup logic to be executed during logout of a previously authenticated Subject/user.
*
* <p>As it is an SPI interface, it is really intended for SPI implementors such as those implementing Realms.
*
* <p>All of Shiro's concrete Realm implementations implement this interface as a convenience for those wishing
* to subclass them.
*
*/
interface LogoutAware {
/**
* Callback triggered when a <code>Subject</code> logs out of the system.
*
* @param principals the identifying principals of the Subject logging out.
*/
void onLogout(PrincipalCollection principals);
}
| D |
CHAIN IF ~InParty("B!Gavin2")
InParty(Myself)
See("B!Gavin2")
!StateCheck("B!Gavin2",CD_STATE_NOTVALID)
!StateCheck(Myself,CD_STATE_NOTVALID)
CombatCounter(0)
Global("G#XB.AurenGavinBanter1","GLOBAL",0)~ THEN K#AurenB ag1
~So, Gavin, where are you from?~
DO ~SetGlobal("G#XB.AurenGavinBanter1","GLOBAL",1)~
== ~BB!Gav~ ~A village called Ulgoth's Beard, a bit north of Baldur's Gate. I'd be surprised if you knew it.~
== K#AurenB ~I think I do, though! We stopped there, on our way to Icewind Dale.~
== ~BB!Gav~ ~Icewind Dale! You *have* been all over.~
== K#AurenB ~I love to travel. I wonder if you were there when we passed through.~
== ~BB!Gav~ ~I don't think so. I left Ulgoth's Beard for the temple in Beregost years and years ago, when I was still a boy myself.~
== K#AurenB ~I grew up in Beregost. It really is a small world.~
== ~BB!Gav~ ~It is. You must remember Thunderhammer, then.~
== K#AurenB ~I spent a lot of time in that smithy. He's good company, and doesn't mind explaining things to curious girls. And every traveler in Beregost passed through Thunderhammer's eventually. It was a great place to hear stories.~
== ~BB!Gav~ ~I imagine it was.~
EXIT
CHAIN IF ~InParty("K#Auren")
InParty(Myself)
See("K#Auren")
!StateCheck("K#Auren",CD_STATE_NOTVALID)
!StateCheck(Myself,CD_STATE_NOTVALID)
CombatCounter(0)
Global("G#XB.AurenGavinBanter2","GLOBAL",0)~ THEN ~BB!Gav~ ag2
~What made you want to leave Beregost?~
DO ~SetGlobal("G#XB.AurenGavinBanter2","GLOBAL",1)~
== K#AurenB ~I wanted to see the world. You can hear about the rest of Faerun at the Jovial Juggler, but you can't see it.~
== ~BB!Gav~ ~True enough. And when you've seen all you want to see, you've still got a home to go back to.~
== K#AurenB ~That won't be for a while. There's still too much to see and do.~
EXIT
CHAIN IF WEIGHT #-1 ~Global("G#XB.AurenGavinBanter3","GLOBAL",1)~ THEN K#AurenB ag3
~What is this moth-eaten old rag doing on top of my pack?~
DO ~SetGlobal("G#XB.AurenGavinBanter3","GLOBAL",2)~
== ~BB!Gav~ ~Ah, so that's where my spare tunic got to.~
== K#AurenB ~You're actually going to wear this? It's falling apart!~
== ~BB!Gav~ ~It's still got a couple good years in it.~
== K#AurenB ~You're hopeless.~
EXIT
| D |
/Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/debug/PerfectLib.build/JSONConvertible.swift.o : /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/JSONConvertible.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/File.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Log.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/PerfectServer.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Dir.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/PerfectError.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Utilities.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Bytes.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/SysProcess.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/SwiftCompatibility.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.apinotesc /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/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreText.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/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule
/Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/debug/PerfectLib.build/JSONConvertible~partial.swiftmodule : /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/JSONConvertible.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/File.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Log.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/PerfectServer.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Dir.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/PerfectError.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Utilities.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Bytes.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/SysProcess.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/SwiftCompatibility.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.apinotesc /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/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreText.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/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule
/Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/debug/PerfectLib.build/JSONConvertible~partial.swiftdoc : /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/JSONConvertible.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/File.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Log.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/PerfectServer.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Dir.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/PerfectError.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Utilities.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Bytes.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/SysProcess.swift /Users/cltx/Desktop/MyGit/MyDemo/PerfectTemplate-master/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/SwiftCompatibility.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.apinotesc /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/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreText.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/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
| D |
with undue hurry and confusion
in a wild or reckless manner
| D |
a way of doing or being
United States Jewish leader (born in Hungary) (1874-1949)
United States religious leader (born in Bohemia) who united reform Jewish organizations in the United States (1819-1900)
having or prompted by wisdom or discernment
marked by the exercise of good judgment or common sense in practical matters
evidencing the possession of inside information
improperly forward or bold
| D |
var int Kardif_ItemsGiven_Chapter_1;
var int Kardif_ItemsGiven_Chapter_2;
var int Kardif_ItemsGiven_Chapter_3;
var int Kardif_ItemsGiven_Chapter_4;
var int Kardif_ItemsGiven_Chapter_5;
FUNC VOID B_GiveTradeInv_Mod_Kardif_NW (var C_NPC slf)
{
if ((Kapitel >= 1)
&& (Kardif_ItemsGiven_Chapter_1 == FALSE))
{
CreateInvItems (slf, ItMi_Gold, 80);
CreateInvItems (slf, ItFo_FishSoup, 3);
CreateInvItems (slf, ItFo_Mutton, 1);
CreateInvItems (slf, ItFo_Fish, 4);
CreateInvItems (slf, ItFo_Booze, 12);
CreateInvItems (slf, ItFo_Beer, 14);
CreateInvItems (slf, ItFo_Wine, 13);
Kardif_ItemsGiven_Chapter_1 = TRUE;
};
if ((Kapitel >= 2)
&& (Kardif_ItemsGiven_Chapter_2 == FALSE))
{
CreateInvItems (slf, ItMi_Gold, 100);
CreateInvItems (slf, ItFo_Sausage, 2);
CreateInvItems (slf, ItFo_Fish, 4);
CreateInvItems (slf, ItFo_Booze, 4);
CreateInvItems (slf, ItFo_Beer, 8);
CreateInvItems (slf, ItFo_Wine, 6);
IF (Knows_SecretSign == TRUE)
{
CreateInvItems (self, ItKe_Lockpick, 20);
};
Kardif_ItemsGiven_Chapter_2 = TRUE;
};
if ((Kapitel >= 3)
&& (Kardif_ItemsGiven_Chapter_3 == FALSE))
{
CreateInvItems (slf, ItMi_Gold, 150);
CreateInvItems (slf, ItFo_Sausage, 2);
CreateInvItems (slf, ItFo_FishSoup, 3);
CreateInvItems (slf, ItFo_Mutton, 1);
CreateInvItems (slf, ItFo_Wine, 2);
CreateInvItems (slf, ItFo_Beer, 8);
IF (Knows_SecretSign == TRUE)
{
CreateInvItems (self, ItKe_Lockpick, 20);
};
Kardif_ItemsGiven_Chapter_3 = TRUE;
};
if ((Kapitel >= 4)
&& (Kardif_ItemsGiven_Chapter_4 == FALSE))
{
CreateInvItems (slf, ItMi_Gold, 200);
CreateInvItems (slf, ItFo_Sausage, 2);
CreateInvItems (slf, ItFo_FishSoup, 3);
CreateInvItems (slf, ItFo_Mutton, 1);
CreateInvItems (slf, ItFo_Fish, 4);
CreateInvItems (slf, ItFo_Wine, 2);
CreateInvItems (slf, ItFo_Booze, 4);
CreateInvItems (slf, ItFo_Beer, 8);
IF (Knows_SecretSign == TRUE)
{
CreateInvItems (self, ItKe_Lockpick, 20);
};
Kardif_ItemsGiven_Chapter_4 = TRUE;
};
if ((Kapitel >= 5)
&& (Kardif_ItemsGiven_Chapter_5 == FALSE))
{
CreateInvItems (slf, ItMi_Gold, 300);
CreateInvItems (slf, ItFo_Sausage, 3);
CreateInvItems (slf, ItFo_FishSoup, 5);
CreateInvItems (slf, ItFo_Mutton, 7);
CreateInvItems (slf, ItFo_Fish, 8);
CreateInvItems (slf, ItFo_Wine, 6);
CreateInvItems (slf, ItFo_Booze, 8);
CreateInvItems (slf, ItFo_Beer, 8);
IF (Knows_SecretSign == TRUE)
{
CreateInvItems (self, ItKe_Lockpick, 20);
};
Kardif_ItemsGiven_Chapter_5 = TRUE;
};
};
| D |
/home/thodges/Workspace/Rust/a_gentle_intro_to_rust/slice5/target/debug/deps/slice5-2a55c26b40823622: src/main.rs
/home/thodges/Workspace/Rust/a_gentle_intro_to_rust/slice5/target/debug/deps/slice5-2a55c26b40823622.d: src/main.rs
src/main.rs:
| D |
/*
* Hunt - a framework for web and console application based on Collie using Dlang development
*
* Copyright (C) 2015-2016 Shanghai Putao Technology Co., Ltd
*
* Developer: putao's Dlang team
*
* Licensed under the BSD License.
*
* template parsing is based on dymk/temple source from https://github.com/dymk/temple
*/
module hunt.web.view.funcstringgen;
public import hunt.web.view, hunt.web.view.util, hunt.web.view.delims, std.conv,
std.string, std.array, std.exception, std.uni, std.algorithm;
/**
* Stack and generator for unique temporary variable names
*/
private struct TempBufferNameStack
{
private:
const string base;
uint counter = 0;
string[] stack;
public:
this(string base)
{
this.base = base;
}
/**
* getNew
* Gets a new unique buffer variable name
*/
string pushNew()
{
auto name = base ~ counter.to!string;
counter++;
stack ~= name;
return name;
}
/**
* Pops the topmost unique variable name off the stack
*/
string pop()
{
auto ret = stack[$ - 1];
stack.length--;
return ret;
}
/**
* Checks if there are any names to pop off
*/
bool empty()
{
return !stack.length;
}
}
/**
* Represents a unit of code that makes up the template function
*/
private struct FuncPart
{
enum Type
{
StrLit, // String literal appended to the buffer
Expr, // Runtime computed expression appended to the buffer
Stmt, // Any arbitrary statement/declaration making up the function
Line, // #line directive
}
Type type;
string value;
uint indent;
}
/**
* __temple_gen_temple_func_string
* Generates the function string to be mixed into a template which renders
* a temple file.
*/
package string __temple_gen_temple_func_string(string temple_str,
in string temple_name, in string filter_ident = "")
{
// Output function string being composed
FuncPart[] func_parts;
// Indendation level for a line being pushed
uint indent_level = 0;
// Current line number in the temple_str being scanned
size_t line_number = 0;
// Generates temporary variable names and keeps them on a stack
auto temp_var_names = TempBufferNameStack("__temple_capture_var_");
// Content removed from the head of temple_str is put on the tail of this
string prev_temple_str = "";
/* ----- func_parts appending functions ----- */
void push_expr(string expr)
{
func_parts ~= FuncPart(FuncPart.Type.Expr, expr, indent_level);
}
void push_stmt(string stmt)
{
func_parts ~= FuncPart(FuncPart.Type.Stmt, stmt ~ '\n', indent_level);
}
void push_string_literal(string str)
{
func_parts ~= FuncPart(FuncPart.Type.StrLit, str, indent_level);
}
void push_linenum()
{
func_parts ~= FuncPart(FuncPart.Type.Line,
`#line %d "%s"`.format(line_number + 1, temple_name) ~ "\n", indent_level);
}
void push_linenumanno(string anno)
{
func_parts ~= FuncPart(FuncPart.Type.Line,
`#line %d "%s-------%s"`.format(line_number + 1, temple_name,anno) ~ "\n", indent_level);
}
/* ----------------------------------------- */
void indent()
{
indent_level++;
}
void outdent()
{
indent_level--;
}
// Tracks if the block that the parser has just
// finished processing should be printed (e.g., is
// it the block who's contents are assigned to the last tmp_buffer_var)
bool[] printStartBlockTracker;
void sawBlockStart(bool will_be_printed)
{
printStartBlockTracker ~= will_be_printed;
}
bool sawBlockEnd()
{
auto will_be_printed = printStartBlockTracker[$ - 1];
printStartBlockTracker.length--;
return will_be_printed;
}
// Generate the function signature, taking into account if it has a
// FilterParam to use
push_stmt(build_function_head(filter_ident));
indent();
if (filter_ident.length)
{
push_stmt(`with(%s)`.format(filter_ident));
}
push_stmt(`with(__temple_context) {`);
indent();
// Keeps infinite loops from outright crashing the compiler
// The limit should be set to some arbitrary large number
uint safeswitch = 0;
while (temple_str.length)
{
// This imposes the limiatation of a max of 10_000 delimers parsed for
// a template function. Probably will never ever hit this in a single
// template file without running out of compiler memory
if (safeswitch++ > 10_000)
{
assert(false, "nesting level too deep; throwing saftey switch: \n" ~ temple_str);
}
DelimPos!(OpenDelim)* oDelimPos = temple_str.nextDelim(OpenDelims);
pragma(msg,"context parsing..............................................");
if (oDelimPos is null)
{
//No more delims; append the rest as a string
push_linenum();
push_string_literal(temple_str);
prev_temple_str.munchHeadOf(temple_str, temple_str.length);
}
else
{
immutable OpenDelim oDelim = oDelimPos.delim;
immutable CloseDelim cDelim = OpenToClose[oDelim];
pragma(msg,"delim check........................");
if (oDelimPos.pos == 0)
{
//-------------give it
if (oDelim.isShort())
{
if (!prev_temple_str.validBeforeShort())
{
// Chars before % weren't all whitespace, assume it's part of a
// string literal.
push_linenum();
push_string_literal(temple_str[0 .. oDelim.toString().length]);
prev_temple_str.munchHeadOf(temple_str, oDelim.toString().length);
continue;
}
}
//------------give it end
// If we made it this far, we've got valid open/close delims
DelimPos!(CloseDelim)* cDelimPos = temple_str.nextDelim([cDelim]);
if (cDelimPos is null)
{
if (oDelim.isShort())
{
// don't require a short close delim at the end of the template
temple_str ~= cDelim.toString();
cDelimPos = enforce(temple_str.nextDelim([cDelim]));
}
else
{
assert(false, "Missing close delimer: " ~ cDelim.toString());
}
}
// Made it this far, we've got the position of the close delimer.
push_linenum();
// Get a slice to the content between the delimers
immutable string inbetween_delims = temple_str[oDelim.toString()
.length .. cDelimPos.pos];
// track block starts
immutable bool is_block_start = inbetween_delims.isBlockStart();
immutable bool is_block_end = inbetween_delims.isBlockEnd();
// Invariant
assert(!(is_block_start && is_block_end), "Internal bug: " ~ inbetween_delims);
if (is_block_start)
{
sawBlockStart(oDelim.isStr());
}
if (oDelim.isStr())
{
// Check if this is a block; in that case, put the block's
// contents into a temporary variable, then render that
// variable after the block close delim
// The line would look like:
// <%= capture(() { %>
// <% }); %>
// so look for something like "){" or ") {" at the end
if (is_block_start)
{
string tmp_name = temp_var_names.pushNew();
push_stmt(`auto %s = %s`.format(tmp_name, inbetween_delims));
indent();
}
else
{
push_expr(inbetween_delims);
if (cDelim == CloseDelim.CloseShort)
{
push_stmt(`__temple_buff_filtered_put("\n");`);
}
}
}
/*
else if(oDelim.isIncludeStr())
{
push_linenumanno("compile_temple_file!" ~ inbetween_delims);
//TODO parsing includ template
//auto inTemple = import(inbetween_delims);
}
*/
else
{
// It's just raw code, push it into the function body
push_stmt(inbetween_delims);
// Check if the code looks like the ending to a block;
// e.g. for block:
// <%= capture(() { %>
// <% }, "foo"); %>`
// look for it starting with }<something>);
// If it does, output the last tmp buffer var on the stack
if (is_block_end && !temp_var_names.empty)
{
// the block at this level should be printed
if (sawBlockEnd())
{
outdent();
push_stmt(`__temple_context.put(%s);`.format(temp_var_names.pop()));
}
}
}
// remove up to the closing delimer
prev_temple_str.munchHeadOf(temple_str, cDelimPos.pos + cDelim.toString().length);
}
else
{
// Move ahead to the next open delimer, rendering
// everything between here and there as a string literal
push_linenum();
immutable delim_pos = oDelimPos.pos;
push_string_literal(temple_str[0 .. delim_pos]);
prev_temple_str.munchHeadOf(temple_str, delim_pos);
}
}
// count the number of newlines in the previous part of the template;
// that's the current line number
line_number = prev_temple_str.count('\n');
}
outdent();
push_stmt("}");
outdent();
push_stmt("}");
return buildFromParts(func_parts);
}
private:
string build_function_head(string filter_ident)
{
string ret = "";
string function_type_params = filter_ident.length ? "(%s)".format(filter_ident) : "";
ret ~= (
`static void TempleFunc%s(TempleContext __temple_context) {`.format(function_type_params));
// This isn't just an overload of __temple_buff_filtered_put because D doesn't allow
// overloading of nested functions
ret ~= `
// Ensure that __temple_context is never null
assert(__temple_context);
void __temple_put_expr(T)(T expr) {
// TempleInputStream should never be passed through
// a filter; it should be directly appended to the stream
static if(is(typeof(expr) == TempleInputStream))
{
expr.into(__temple_context.sink);
}
// But other content should be filtered
else
{
__temple_buff_filtered_put(expr);
}
}
deprecated auto renderWith(string __temple_file)(TempleContext tc = null)
{
return render_with!__temple_file(tc);
}
TempleInputStream render(string __temple_file)() {
return render_with!__temple_file(__temple_context);
}
`;
// Is the template using a filter?
if (filter_ident.length)
{
ret ~= `
/// Run 'thing' through the Filter's templeFilter static
void __temple_buff_filtered_put(T)(T thing)
{
static if(__traits(compiles, __fp__.templeFilter(__temple_context.sink, thing)))
{
pragma(msg, "Deprecated: templeFilter on filters is deprecated; please use temple_filter");
__fp__.templeFilter(__temple_context.sink, thing);
}
else static if(__traits(compiles, __fp__.templeFilter(thing)))
{
pragma(msg, "Deprecated: templeFilter on filters is deprecated; please use temple_filter");
__temple_context.put(__fp__.templeFilter(thing));
}
else static if(__traits(compiles, __fp__.temple_filter(__temple_context.sink, thing))) {
__fp__.temple_filter(__temple_context.sink, thing);
}
else static if(__traits(compiles, __fp__.temple_filter(thing)))
{
__temple_context.put(__fp__.temple_filter(thing));
}
else {
// Fall back to templeFilter returning a string
static assert(false, "Filter does not have a case that accepts a " ~ T.stringof);
}
}
/// with filter, render subtemplate with an explicit context (which defaults to null)
TempleInputStream render_with(string __temple_file)(TempleContext tc = null)
{
return TempleInputStream(delegate(ref TempleOutputStream s) {
auto nested = compile_temple_file!(__temple_file, __fp__)();
nested.render(s, tc);
});
}
`
.replace("__fp__", filter_ident);
}
else
{
// No filter means just directly append the thing to the
// buffer, converting it to a string if needed
ret ~= `
void __temple_buff_filtered_put(T)(T thing)
{
static import std.conv;
__temple_context.put(std.conv.to!string(thing));
}
/// without filter, render subtemplate with an explicit context (which defaults to null)
TempleInputStream render_with(string __temple_file)(TempleContext tc = null)
{
return TempleInputStream(delegate(ref TempleOutputStream s) {
auto nested = compile_temple_file!(__temple_file)();
nested.render(s, tc);
});
}
`;
}
return ret;
}
string buildFromParts(in FuncPart[] parts)
{
string func_str = "";
foreach (index, immutable part; parts)
{
string indent()
{
string ret = "";
for (int i = 0; i < part.indent; i++)
ret ~= '\t';
return ret;
}
func_str ~= indent();
final switch (part.type) with (FuncPart.Type)
{
case Stmt:
case Line:
func_str ~= part.value;
break;
case Expr:
func_str ~= "__temple_put_expr(" ~ part.value.strip ~ ");\n";
break;
case StrLit:
if (index > 1 && (index + 2) < parts.length)
{
// look ahead/behind 2 because the generator inserts
// #line annotations after each statement/expr/literal
immutable prev_type = parts[index - 2].type;
immutable next_type = parts[index + 2].type;
// if the previous and next parts are statements, and this part is all
// whitespace, skip inserting it into the template
if (prev_type == FuncPart.Type.Stmt
&& next_type == FuncPart.Type.Stmt
&& part.value.all!((chr) => chr.isWhite()))
{
break;
}
}
func_str ~= `__temple_context.put("` ~ part.value.replace("\r\n", "\\r\\n").escapeQuotes() ~ "\");\n";
break;
}
}
return func_str;
}
| D |
/Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Ink.build/Internal/ModifierCollection.swift.o : /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/HTML.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/URL.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Metadata.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/InlineCode.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Image.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Table.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Readable.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Modifiable.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/HTMLConvertible.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/PlainTextConvertible.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/TextStyle.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/HorizontalLine.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Require.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Blockquote.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Hashable+AnyOf.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Heading.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Substring+Trimming.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Character+Escaping.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Paragraph.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/CodeBlock.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Link.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Character+Classification.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/URLDeclaration.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/NamedURLCollection.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/ModifierCollection.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/API/Markdown.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Reader.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/API/Modifier.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/TextStyleMarker.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/API/MarkdownParser.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/KeyPathPatterns.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Fragment.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/List.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/FormattedText.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/dyld.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Codextended.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/PublishCLICore.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Splash.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Publish.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Ink.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/SplashPublishPlugin.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Sweep.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Files.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Plot.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/ShellOut.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Ink.build/Internal/ModifierCollection~partial.swiftmodule : /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/HTML.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/URL.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Metadata.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/InlineCode.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Image.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Table.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Readable.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Modifiable.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/HTMLConvertible.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/PlainTextConvertible.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/TextStyle.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/HorizontalLine.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Require.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Blockquote.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Hashable+AnyOf.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Heading.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Substring+Trimming.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Character+Escaping.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Paragraph.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/CodeBlock.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Link.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Character+Classification.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/URLDeclaration.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/NamedURLCollection.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/ModifierCollection.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/API/Markdown.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Reader.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/API/Modifier.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/TextStyleMarker.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/API/MarkdownParser.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/KeyPathPatterns.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Fragment.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/List.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/FormattedText.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/dyld.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Codextended.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/PublishCLICore.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Splash.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Publish.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Ink.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/SplashPublishPlugin.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Sweep.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Files.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Plot.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/ShellOut.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Ink.build/Internal/ModifierCollection~partial.swiftdoc : /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/HTML.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/URL.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Metadata.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/InlineCode.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Image.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Table.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Readable.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Modifiable.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/HTMLConvertible.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/PlainTextConvertible.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/TextStyle.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/HorizontalLine.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Require.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Blockquote.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Hashable+AnyOf.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Heading.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Substring+Trimming.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Character+Escaping.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Paragraph.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/CodeBlock.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Link.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Character+Classification.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/URLDeclaration.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/NamedURLCollection.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/ModifierCollection.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/API/Markdown.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Reader.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/API/Modifier.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/TextStyleMarker.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/API/MarkdownParser.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/KeyPathPatterns.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Fragment.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/List.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/FormattedText.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/dyld.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Codextended.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/PublishCLICore.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Splash.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Publish.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Ink.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/SplashPublishPlugin.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Sweep.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Files.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Plot.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/ShellOut.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Ink.build/Internal/ModifierCollection~partial.swiftsourceinfo : /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/HTML.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/URL.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Metadata.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/InlineCode.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Image.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Table.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Readable.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Modifiable.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/HTMLConvertible.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/PlainTextConvertible.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/TextStyle.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/HorizontalLine.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Require.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Blockquote.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Hashable+AnyOf.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Heading.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Substring+Trimming.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Character+Escaping.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Paragraph.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/CodeBlock.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Link.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Character+Classification.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/URLDeclaration.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/NamedURLCollection.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/ModifierCollection.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/API/Markdown.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Reader.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/API/Modifier.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/TextStyleMarker.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/API/MarkdownParser.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/KeyPathPatterns.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/Fragment.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/List.swift /Users/lucasfarah/Documents/lucasfarah.github.io/.build/checkouts/ink/Sources/Ink/Internal/FormattedText.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/dyld.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Codextended.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/PublishCLICore.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Splash.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Publish.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Ink.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/SplashPublishPlugin.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Sweep.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Files.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/Plot.build/module.modulemap /Users/lucasfarah/Documents/lucasfarah.github.io/.build/x86_64-apple-macosx/debug/ShellOut.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
| D |
/// Vulkan types.
module dvulkan.types;
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT MODIFY.
alias uint8_t = ubyte;
alias uint16_t = ushort;
alias uint32_t = uint;
alias uint64_t = ulong;
alias int8_t = byte;
alias int16_t = short;
alias int32_t = int;
alias int64_t = long;
@nogc pure nothrow {
uint VK_MAKE_VERSION(uint major, uint minor, uint patch) {
return (major << 22) | (minor << 12) | (patch);
}
uint VK_VERSION_MAJOR(uint ver) {
return ver >> 22;
}
uint VK_VERSION_MINOR(uint ver) {
return (ver >> 12) & 0x3ff;
}
uint VK_VERSION_PATCH(uint ver) {
return ver & 0xfff;
}
}
/+
+ On 32-bit systems, VK_NULL_HANDLE must be compatible with both opaque struct pointers
+ (for dispatchable object) and integers (for nondispatchable objects). This is not possible
+ with D's type system, which doesn't implicitly convert 0 to the null pointer as in C
+ (for better or for worse). Either use the `VK_NULL_[NON_]DISPATCHABLE_HANDLE` constants or
+ `Vk(Type).init`.
+
+ See also https://github.com/ColonelThirtyTwo/dvulkan/issues/13
+/
deprecated("VK_NULL_HANDLE is impossible to implement portably in D. Use Vk(Type).init or VK_NULL_[NON_]DISPATCHABLE_HANDLE")
enum VK_NULL_HANDLE = null;
enum VK_DEFINE_HANDLE(string name) = "struct "~name~"_handle; alias "~name~" = "~name~"_handle*;";
enum VK_NULL_DISPATCHABLE_HANDLE = null;
version(X86_64) {
alias VK_DEFINE_NON_DISPATCHABLE_HANDLE(string name) = VK_DEFINE_HANDLE!name;
enum VK_NULL_NON_DISPATCHABLE_HANDLE = null;
} else {
enum VK_DEFINE_NON_DISPATCHABLE_HANDLE(string name) = "alias "~name~" = ulong;";
enum VK_NULL_NON_DISPATCHABLE_HANDLE = 0;
}
version(DVulkanAllExtensions) {
version = DVulkan_VK_VERSION_1_0;
version = DVulkan_VK_KHR_surface;
version = DVulkan_VK_KHR_swapchain;
version = DVulkan_VK_KHR_display;
version = DVulkan_VK_KHR_display_swapchain;
version = DVulkan_VK_KHR_sampler_mirror_clamp_to_edge;
version = DVulkan_VK_ANDROID_native_buffer;
version = DVulkan_VK_EXT_debug_report;
version = DVulkan_VK_IMG_filter_cubic;
version = DVulkan_VK_EXT_debug_marker;
version = DVulkan_VK_IMG_format_pvrtc;
version = DVulkan_VK_EXT_validation_flags;
}
version(DVulkan_VK_VERSION_1_0) {
enum VkPipelineCacheHeaderVersion {
VK_PIPELINE_CACHE_HEADER_VERSION_ONE = 1,
}
enum VK_LOD_CLAMP_NONE = 1000.0f;
enum VK_REMAINING_MIP_LEVELS = (~0U);
enum VK_REMAINING_ARRAY_LAYERS = (~0U);
enum VK_WHOLE_SIZE = (~0UL);
enum VK_ATTACHMENT_UNUSED = (~0U);
enum VK_TRUE = 1;
enum VK_FALSE = 0;
enum VK_QUEUE_FAMILY_IGNORED = (~0U);
enum VK_SUBPASS_EXTERNAL = (~0U);
enum VkResult {
VK_SUCCESS = 0,
VK_NOT_READY = 1,
VK_TIMEOUT = 2,
VK_EVENT_SET = 3,
VK_EVENT_RESET = 4,
VK_INCOMPLETE = 5,
VK_ERROR_OUT_OF_HOST_MEMORY = -1,
VK_ERROR_OUT_OF_DEVICE_MEMORY = -2,
VK_ERROR_INITIALIZATION_FAILED = -3,
VK_ERROR_DEVICE_LOST = -4,
VK_ERROR_MEMORY_MAP_FAILED = -5,
VK_ERROR_LAYER_NOT_PRESENT = -6,
VK_ERROR_EXTENSION_NOT_PRESENT = -7,
VK_ERROR_FEATURE_NOT_PRESENT = -8,
VK_ERROR_INCOMPATIBLE_DRIVER = -9,
VK_ERROR_TOO_MANY_OBJECTS = -10,
VK_ERROR_FORMAT_NOT_SUPPORTED = -11,
VK_ERROR_FRAGMENTED_POOL = -12,
VK_ERROR_SURFACE_LOST_KHR = -1000000000,
VK_ERROR_NATIVE_WINDOW_IN_USE_KHR = -1000000001,
VK_SUBOPTIMAL_KHR = 1000001003,
VK_ERROR_OUT_OF_DATE_KHR = -1000001004,
VK_ERROR_INCOMPATIBLE_DISPLAY_KHR = -1000003001,
VK_ERROR_VALIDATION_FAILED_EXT = -1000011001,
VK_ERROR_INVALID_SHADER_NV = -1000012000,
VK_NV_EXTENSION_1_ERROR = -1000013000,
}
enum VkStructureType {
VK_STRUCTURE_TYPE_APPLICATION_INFO = 0,
VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO = 1,
VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO = 2,
VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO = 3,
VK_STRUCTURE_TYPE_SUBMIT_INFO = 4,
VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO = 5,
VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE = 6,
VK_STRUCTURE_TYPE_BIND_SPARSE_INFO = 7,
VK_STRUCTURE_TYPE_FENCE_CREATE_INFO = 8,
VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO = 9,
VK_STRUCTURE_TYPE_EVENT_CREATE_INFO = 10,
VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO = 11,
VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO = 12,
VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO = 13,
VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO = 14,
VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO = 15,
VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO = 16,
VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO = 17,
VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO = 18,
VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO = 19,
VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO = 20,
VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO = 21,
VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO = 22,
VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO = 23,
VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO = 24,
VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO = 25,
VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO = 26,
VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO = 27,
VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO = 28,
VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO = 29,
VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO = 30,
VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO = 31,
VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO = 32,
VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO = 33,
VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO = 34,
VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET = 35,
VK_STRUCTURE_TYPE_COPY_DESCRIPTOR_SET = 36,
VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO = 37,
VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO = 38,
VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO = 39,
VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO = 40,
VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO = 41,
VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO = 42,
VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO = 43,
VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER = 44,
VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER = 45,
VK_STRUCTURE_TYPE_MEMORY_BARRIER = 46,
VK_STRUCTURE_TYPE_LOADER_INSTANCE_CREATE_INFO = 47,
VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO = 48,
VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR = 1000001000,
VK_STRUCTURE_TYPE_PRESENT_INFO_KHR = 1000001001,
VK_STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHR = 1000002000,
VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR = 1000002001,
VK_STRUCTURE_TYPE_DISPLAY_PRESENT_INFO_KHR = 1000003000,
VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR = 1000004000,
VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR = 1000005000,
VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR = 1000006000,
VK_STRUCTURE_TYPE_MIR_SURFACE_CREATE_INFO_KHR = 1000007000,
VK_STRUCTURE_TYPE_ANDROID_SURFACE_CREATE_INFO_KHR = 1000008000,
VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR = 1000009000,
VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT = 1000011000,
VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_RASTERIZATION_ORDER_AMD = 1000018000,
VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_NAME_INFO_EXT = 1000022000,
VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_TAG_INFO_EXT = 1000022001,
VK_STRUCTURE_TYPE_DEBUG_MARKER_MARKER_INFO_EXT = 1000022002,
VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_IMAGE_CREATE_INFO_NV = 1000026000,
VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_BUFFER_CREATE_INFO_NV = 1000026001,
VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_MEMORY_ALLOCATE_INFO_NV = 1000026002,
VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO_NV = 1000056000,
VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_NV = 1000056001,
VK_STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_NV = 1000057000,
VK_STRUCTURE_TYPE_EXPORT_MEMORY_WIN32_HANDLE_INFO_NV = 1000057001,
VK_STRUCTURE_TYPE_WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_NV = 1000058000,
VK_STRUCTURE_TYPE_VALIDATION_FLAGS_EXT = 1000061000,
}
alias VkFlags = uint32_t;
alias VkInstanceCreateFlags = VkFlags;
struct VkApplicationInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_APPLICATION_INFO;
const(void)* pNext;
const(char)* pApplicationName;
uint32_t applicationVersion;
const(char)* pEngineName;
uint32_t engineVersion;
uint32_t apiVersion;
}
struct VkInstanceCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO;
const(void)* pNext;
VkInstanceCreateFlags flags;
const(VkApplicationInfo)* pApplicationInfo;
uint32_t enabledLayerCount;
const(char*)* ppEnabledLayerNames;
uint32_t enabledExtensionCount;
const(char*)* ppEnabledExtensionNames;
}
enum VkSystemAllocationScope {
VK_SYSTEM_ALLOCATION_SCOPE_COMMAND = 0,
VK_SYSTEM_ALLOCATION_SCOPE_OBJECT = 1,
VK_SYSTEM_ALLOCATION_SCOPE_CACHE = 2,
VK_SYSTEM_ALLOCATION_SCOPE_DEVICE = 3,
VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE = 4,
}
alias PFN_vkAllocationFunction = extern(C) void* function(
void* pUserData,
size_t size,
size_t alignment,
VkSystemAllocationScope allocationScope);
alias PFN_vkReallocationFunction = extern(C) void* function(
void* pUserData,
void* pOriginal,
size_t size,
size_t alignment,
VkSystemAllocationScope allocationScope);
alias PFN_vkFreeFunction = extern(C) void function(
void* pUserData,
void* pMemory);
enum VkInternalAllocationType {
VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE = 0,
}
alias PFN_vkInternalAllocationNotification = extern(C) void function(
void* pUserData,
size_t size,
VkInternalAllocationType allocationType,
VkSystemAllocationScope allocationScope);
alias PFN_vkInternalFreeNotification = extern(C) void function(
void* pUserData,
size_t size,
VkInternalAllocationType allocationType,
VkSystemAllocationScope allocationScope);
struct VkAllocationCallbacks {
void* pUserData;
PFN_vkAllocationFunction pfnAllocation;
PFN_vkReallocationFunction pfnReallocation;
PFN_vkFreeFunction pfnFree;
PFN_vkInternalAllocationNotification pfnInternalAllocation;
PFN_vkInternalFreeNotification pfnInternalFree;
}
mixin(VK_DEFINE_HANDLE!q{VkInstance});
mixin(VK_DEFINE_HANDLE!q{VkPhysicalDevice});
alias VkBool32 = uint32_t;
struct VkPhysicalDeviceFeatures {
VkBool32 robustBufferAccess;
VkBool32 fullDrawIndexUint32;
VkBool32 imageCubeArray;
VkBool32 independentBlend;
VkBool32 geometryShader;
VkBool32 tessellationShader;
VkBool32 sampleRateShading;
VkBool32 dualSrcBlend;
VkBool32 logicOp;
VkBool32 multiDrawIndirect;
VkBool32 drawIndirectFirstInstance;
VkBool32 depthClamp;
VkBool32 depthBiasClamp;
VkBool32 fillModeNonSolid;
VkBool32 depthBounds;
VkBool32 wideLines;
VkBool32 largePoints;
VkBool32 alphaToOne;
VkBool32 multiViewport;
VkBool32 samplerAnisotropy;
VkBool32 textureCompressionETC2;
VkBool32 textureCompressionASTC_LDR;
VkBool32 textureCompressionBC;
VkBool32 occlusionQueryPrecise;
VkBool32 pipelineStatisticsQuery;
VkBool32 vertexPipelineStoresAndAtomics;
VkBool32 fragmentStoresAndAtomics;
VkBool32 shaderTessellationAndGeometryPointSize;
VkBool32 shaderImageGatherExtended;
VkBool32 shaderStorageImageExtendedFormats;
VkBool32 shaderStorageImageMultisample;
VkBool32 shaderStorageImageReadWithoutFormat;
VkBool32 shaderStorageImageWriteWithoutFormat;
VkBool32 shaderUniformBufferArrayDynamicIndexing;
VkBool32 shaderSampledImageArrayDynamicIndexing;
VkBool32 shaderStorageBufferArrayDynamicIndexing;
VkBool32 shaderStorageImageArrayDynamicIndexing;
VkBool32 shaderClipDistance;
VkBool32 shaderCullDistance;
VkBool32 shaderFloat64;
VkBool32 shaderInt64;
VkBool32 shaderInt16;
VkBool32 shaderResourceResidency;
VkBool32 shaderResourceMinLod;
VkBool32 sparseBinding;
VkBool32 sparseResidencyBuffer;
VkBool32 sparseResidencyImage2D;
VkBool32 sparseResidencyImage3D;
VkBool32 sparseResidency2Samples;
VkBool32 sparseResidency4Samples;
VkBool32 sparseResidency8Samples;
VkBool32 sparseResidency16Samples;
VkBool32 sparseResidencyAliased;
VkBool32 variableMultisampleRate;
VkBool32 inheritedQueries;
}
enum VkFormat {
VK_FORMAT_UNDEFINED = 0,
VK_FORMAT_R4G4_UNORM_PACK8 = 1,
VK_FORMAT_R4G4B4A4_UNORM_PACK16 = 2,
VK_FORMAT_B4G4R4A4_UNORM_PACK16 = 3,
VK_FORMAT_R5G6B5_UNORM_PACK16 = 4,
VK_FORMAT_B5G6R5_UNORM_PACK16 = 5,
VK_FORMAT_R5G5B5A1_UNORM_PACK16 = 6,
VK_FORMAT_B5G5R5A1_UNORM_PACK16 = 7,
VK_FORMAT_A1R5G5B5_UNORM_PACK16 = 8,
VK_FORMAT_R8_UNORM = 9,
VK_FORMAT_R8_SNORM = 10,
VK_FORMAT_R8_USCALED = 11,
VK_FORMAT_R8_SSCALED = 12,
VK_FORMAT_R8_UINT = 13,
VK_FORMAT_R8_SINT = 14,
VK_FORMAT_R8_SRGB = 15,
VK_FORMAT_R8G8_UNORM = 16,
VK_FORMAT_R8G8_SNORM = 17,
VK_FORMAT_R8G8_USCALED = 18,
VK_FORMAT_R8G8_SSCALED = 19,
VK_FORMAT_R8G8_UINT = 20,
VK_FORMAT_R8G8_SINT = 21,
VK_FORMAT_R8G8_SRGB = 22,
VK_FORMAT_R8G8B8_UNORM = 23,
VK_FORMAT_R8G8B8_SNORM = 24,
VK_FORMAT_R8G8B8_USCALED = 25,
VK_FORMAT_R8G8B8_SSCALED = 26,
VK_FORMAT_R8G8B8_UINT = 27,
VK_FORMAT_R8G8B8_SINT = 28,
VK_FORMAT_R8G8B8_SRGB = 29,
VK_FORMAT_B8G8R8_UNORM = 30,
VK_FORMAT_B8G8R8_SNORM = 31,
VK_FORMAT_B8G8R8_USCALED = 32,
VK_FORMAT_B8G8R8_SSCALED = 33,
VK_FORMAT_B8G8R8_UINT = 34,
VK_FORMAT_B8G8R8_SINT = 35,
VK_FORMAT_B8G8R8_SRGB = 36,
VK_FORMAT_R8G8B8A8_UNORM = 37,
VK_FORMAT_R8G8B8A8_SNORM = 38,
VK_FORMAT_R8G8B8A8_USCALED = 39,
VK_FORMAT_R8G8B8A8_SSCALED = 40,
VK_FORMAT_R8G8B8A8_UINT = 41,
VK_FORMAT_R8G8B8A8_SINT = 42,
VK_FORMAT_R8G8B8A8_SRGB = 43,
VK_FORMAT_B8G8R8A8_UNORM = 44,
VK_FORMAT_B8G8R8A8_SNORM = 45,
VK_FORMAT_B8G8R8A8_USCALED = 46,
VK_FORMAT_B8G8R8A8_SSCALED = 47,
VK_FORMAT_B8G8R8A8_UINT = 48,
VK_FORMAT_B8G8R8A8_SINT = 49,
VK_FORMAT_B8G8R8A8_SRGB = 50,
VK_FORMAT_A8B8G8R8_UNORM_PACK32 = 51,
VK_FORMAT_A8B8G8R8_SNORM_PACK32 = 52,
VK_FORMAT_A8B8G8R8_USCALED_PACK32 = 53,
VK_FORMAT_A8B8G8R8_SSCALED_PACK32 = 54,
VK_FORMAT_A8B8G8R8_UINT_PACK32 = 55,
VK_FORMAT_A8B8G8R8_SINT_PACK32 = 56,
VK_FORMAT_A8B8G8R8_SRGB_PACK32 = 57,
VK_FORMAT_A2R10G10B10_UNORM_PACK32 = 58,
VK_FORMAT_A2R10G10B10_SNORM_PACK32 = 59,
VK_FORMAT_A2R10G10B10_USCALED_PACK32 = 60,
VK_FORMAT_A2R10G10B10_SSCALED_PACK32 = 61,
VK_FORMAT_A2R10G10B10_UINT_PACK32 = 62,
VK_FORMAT_A2R10G10B10_SINT_PACK32 = 63,
VK_FORMAT_A2B10G10R10_UNORM_PACK32 = 64,
VK_FORMAT_A2B10G10R10_SNORM_PACK32 = 65,
VK_FORMAT_A2B10G10R10_USCALED_PACK32 = 66,
VK_FORMAT_A2B10G10R10_SSCALED_PACK32 = 67,
VK_FORMAT_A2B10G10R10_UINT_PACK32 = 68,
VK_FORMAT_A2B10G10R10_SINT_PACK32 = 69,
VK_FORMAT_R16_UNORM = 70,
VK_FORMAT_R16_SNORM = 71,
VK_FORMAT_R16_USCALED = 72,
VK_FORMAT_R16_SSCALED = 73,
VK_FORMAT_R16_UINT = 74,
VK_FORMAT_R16_SINT = 75,
VK_FORMAT_R16_SFLOAT = 76,
VK_FORMAT_R16G16_UNORM = 77,
VK_FORMAT_R16G16_SNORM = 78,
VK_FORMAT_R16G16_USCALED = 79,
VK_FORMAT_R16G16_SSCALED = 80,
VK_FORMAT_R16G16_UINT = 81,
VK_FORMAT_R16G16_SINT = 82,
VK_FORMAT_R16G16_SFLOAT = 83,
VK_FORMAT_R16G16B16_UNORM = 84,
VK_FORMAT_R16G16B16_SNORM = 85,
VK_FORMAT_R16G16B16_USCALED = 86,
VK_FORMAT_R16G16B16_SSCALED = 87,
VK_FORMAT_R16G16B16_UINT = 88,
VK_FORMAT_R16G16B16_SINT = 89,
VK_FORMAT_R16G16B16_SFLOAT = 90,
VK_FORMAT_R16G16B16A16_UNORM = 91,
VK_FORMAT_R16G16B16A16_SNORM = 92,
VK_FORMAT_R16G16B16A16_USCALED = 93,
VK_FORMAT_R16G16B16A16_SSCALED = 94,
VK_FORMAT_R16G16B16A16_UINT = 95,
VK_FORMAT_R16G16B16A16_SINT = 96,
VK_FORMAT_R16G16B16A16_SFLOAT = 97,
VK_FORMAT_R32_UINT = 98,
VK_FORMAT_R32_SINT = 99,
VK_FORMAT_R32_SFLOAT = 100,
VK_FORMAT_R32G32_UINT = 101,
VK_FORMAT_R32G32_SINT = 102,
VK_FORMAT_R32G32_SFLOAT = 103,
VK_FORMAT_R32G32B32_UINT = 104,
VK_FORMAT_R32G32B32_SINT = 105,
VK_FORMAT_R32G32B32_SFLOAT = 106,
VK_FORMAT_R32G32B32A32_UINT = 107,
VK_FORMAT_R32G32B32A32_SINT = 108,
VK_FORMAT_R32G32B32A32_SFLOAT = 109,
VK_FORMAT_R64_UINT = 110,
VK_FORMAT_R64_SINT = 111,
VK_FORMAT_R64_SFLOAT = 112,
VK_FORMAT_R64G64_UINT = 113,
VK_FORMAT_R64G64_SINT = 114,
VK_FORMAT_R64G64_SFLOAT = 115,
VK_FORMAT_R64G64B64_UINT = 116,
VK_FORMAT_R64G64B64_SINT = 117,
VK_FORMAT_R64G64B64_SFLOAT = 118,
VK_FORMAT_R64G64B64A64_UINT = 119,
VK_FORMAT_R64G64B64A64_SINT = 120,
VK_FORMAT_R64G64B64A64_SFLOAT = 121,
VK_FORMAT_B10G11R11_UFLOAT_PACK32 = 122,
VK_FORMAT_E5B9G9R9_UFLOAT_PACK32 = 123,
VK_FORMAT_D16_UNORM = 124,
VK_FORMAT_X8_D24_UNORM_PACK32 = 125,
VK_FORMAT_D32_SFLOAT = 126,
VK_FORMAT_S8_UINT = 127,
VK_FORMAT_D16_UNORM_S8_UINT = 128,
VK_FORMAT_D24_UNORM_S8_UINT = 129,
VK_FORMAT_D32_SFLOAT_S8_UINT = 130,
VK_FORMAT_BC1_RGB_UNORM_BLOCK = 131,
VK_FORMAT_BC1_RGB_SRGB_BLOCK = 132,
VK_FORMAT_BC1_RGBA_UNORM_BLOCK = 133,
VK_FORMAT_BC1_RGBA_SRGB_BLOCK = 134,
VK_FORMAT_BC2_UNORM_BLOCK = 135,
VK_FORMAT_BC2_SRGB_BLOCK = 136,
VK_FORMAT_BC3_UNORM_BLOCK = 137,
VK_FORMAT_BC3_SRGB_BLOCK = 138,
VK_FORMAT_BC4_UNORM_BLOCK = 139,
VK_FORMAT_BC4_SNORM_BLOCK = 140,
VK_FORMAT_BC5_UNORM_BLOCK = 141,
VK_FORMAT_BC5_SNORM_BLOCK = 142,
VK_FORMAT_BC6H_UFLOAT_BLOCK = 143,
VK_FORMAT_BC6H_SFLOAT_BLOCK = 144,
VK_FORMAT_BC7_UNORM_BLOCK = 145,
VK_FORMAT_BC7_SRGB_BLOCK = 146,
VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK = 147,
VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK = 148,
VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK = 149,
VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK = 150,
VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK = 151,
VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK = 152,
VK_FORMAT_EAC_R11_UNORM_BLOCK = 153,
VK_FORMAT_EAC_R11_SNORM_BLOCK = 154,
VK_FORMAT_EAC_R11G11_UNORM_BLOCK = 155,
VK_FORMAT_EAC_R11G11_SNORM_BLOCK = 156,
VK_FORMAT_ASTC_4x4_UNORM_BLOCK = 157,
VK_FORMAT_ASTC_4x4_SRGB_BLOCK = 158,
VK_FORMAT_ASTC_5x4_UNORM_BLOCK = 159,
VK_FORMAT_ASTC_5x4_SRGB_BLOCK = 160,
VK_FORMAT_ASTC_5x5_UNORM_BLOCK = 161,
VK_FORMAT_ASTC_5x5_SRGB_BLOCK = 162,
VK_FORMAT_ASTC_6x5_UNORM_BLOCK = 163,
VK_FORMAT_ASTC_6x5_SRGB_BLOCK = 164,
VK_FORMAT_ASTC_6x6_UNORM_BLOCK = 165,
VK_FORMAT_ASTC_6x6_SRGB_BLOCK = 166,
VK_FORMAT_ASTC_8x5_UNORM_BLOCK = 167,
VK_FORMAT_ASTC_8x5_SRGB_BLOCK = 168,
VK_FORMAT_ASTC_8x6_UNORM_BLOCK = 169,
VK_FORMAT_ASTC_8x6_SRGB_BLOCK = 170,
VK_FORMAT_ASTC_8x8_UNORM_BLOCK = 171,
VK_FORMAT_ASTC_8x8_SRGB_BLOCK = 172,
VK_FORMAT_ASTC_10x5_UNORM_BLOCK = 173,
VK_FORMAT_ASTC_10x5_SRGB_BLOCK = 174,
VK_FORMAT_ASTC_10x6_UNORM_BLOCK = 175,
VK_FORMAT_ASTC_10x6_SRGB_BLOCK = 176,
VK_FORMAT_ASTC_10x8_UNORM_BLOCK = 177,
VK_FORMAT_ASTC_10x8_SRGB_BLOCK = 178,
VK_FORMAT_ASTC_10x10_UNORM_BLOCK = 179,
VK_FORMAT_ASTC_10x10_SRGB_BLOCK = 180,
VK_FORMAT_ASTC_12x10_UNORM_BLOCK = 181,
VK_FORMAT_ASTC_12x10_SRGB_BLOCK = 182,
VK_FORMAT_ASTC_12x12_UNORM_BLOCK = 183,
VK_FORMAT_ASTC_12x12_SRGB_BLOCK = 184,
VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG = 1000054000,
VK_FORMAT_PVRTC1_4BPP_UNORM_BLOCK_IMG = 1000054001,
VK_FORMAT_PVRTC2_2BPP_UNORM_BLOCK_IMG = 1000054002,
VK_FORMAT_PVRTC2_4BPP_UNORM_BLOCK_IMG = 1000054003,
VK_FORMAT_PVRTC1_2BPP_SRGB_BLOCK_IMG = 1000054004,
VK_FORMAT_PVRTC1_4BPP_SRGB_BLOCK_IMG = 1000054005,
VK_FORMAT_PVRTC2_2BPP_SRGB_BLOCK_IMG = 1000054006,
VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG = 1000054007,
}
enum VkFormatFeatureFlagBits {
VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT = 0x00000001,
VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT = 0x00000002,
VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT = 0x00000004,
VK_FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT = 0x00000008,
VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT = 0x00000010,
VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT = 0x00000020,
VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT = 0x00000040,
VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT = 0x00000080,
VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT = 0x00000100,
VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000200,
VK_FORMAT_FEATURE_BLIT_SRC_BIT = 0x00000400,
VK_FORMAT_FEATURE_BLIT_DST_BIT = 0x00000800,
VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT = 0x00001000,
VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG = 0x00002000,
}
alias VkFormatFeatureFlags = VkFlags;
struct VkFormatProperties {
VkFormatFeatureFlags linearTilingFeatures;
VkFormatFeatureFlags optimalTilingFeatures;
VkFormatFeatureFlags bufferFeatures;
}
enum VkImageType {
VK_IMAGE_TYPE_1D = 0,
VK_IMAGE_TYPE_2D = 1,
VK_IMAGE_TYPE_3D = 2,
}
enum VkImageTiling {
VK_IMAGE_TILING_OPTIMAL = 0,
VK_IMAGE_TILING_LINEAR = 1,
}
enum VkImageUsageFlagBits {
VK_IMAGE_USAGE_TRANSFER_SRC_BIT = 0x00000001,
VK_IMAGE_USAGE_TRANSFER_DST_BIT = 0x00000002,
VK_IMAGE_USAGE_SAMPLED_BIT = 0x00000004,
VK_IMAGE_USAGE_STORAGE_BIT = 0x00000008,
VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT = 0x00000010,
VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT = 0x00000020,
VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT = 0x00000040,
VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT = 0x00000080,
}
alias VkImageUsageFlags = VkFlags;
enum VkImageCreateFlagBits {
VK_IMAGE_CREATE_SPARSE_BINDING_BIT = 0x00000001,
VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT = 0x00000002,
VK_IMAGE_CREATE_SPARSE_ALIASED_BIT = 0x00000004,
VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT = 0x00000008,
VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT = 0x00000010,
}
alias VkImageCreateFlags = VkFlags;
struct VkExtent3D {
uint32_t width;
uint32_t height;
uint32_t depth;
}
enum VkSampleCountFlagBits {
VK_SAMPLE_COUNT_1_BIT = 0x00000001,
VK_SAMPLE_COUNT_2_BIT = 0x00000002,
VK_SAMPLE_COUNT_4_BIT = 0x00000004,
VK_SAMPLE_COUNT_8_BIT = 0x00000008,
VK_SAMPLE_COUNT_16_BIT = 0x00000010,
VK_SAMPLE_COUNT_32_BIT = 0x00000020,
VK_SAMPLE_COUNT_64_BIT = 0x00000040,
}
alias VkSampleCountFlags = VkFlags;
alias VkDeviceSize = uint64_t;
struct VkImageFormatProperties {
VkExtent3D maxExtent;
uint32_t maxMipLevels;
uint32_t maxArrayLayers;
VkSampleCountFlags sampleCounts;
VkDeviceSize maxResourceSize;
}
enum VkPhysicalDeviceType {
VK_PHYSICAL_DEVICE_TYPE_OTHER = 0,
VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU = 1,
VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU = 2,
VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU = 3,
VK_PHYSICAL_DEVICE_TYPE_CPU = 4,
}
struct VkPhysicalDeviceLimits {
uint32_t maxImageDimension1D;
uint32_t maxImageDimension2D;
uint32_t maxImageDimension3D;
uint32_t maxImageDimensionCube;
uint32_t maxImageArrayLayers;
uint32_t maxTexelBufferElements;
uint32_t maxUniformBufferRange;
uint32_t maxStorageBufferRange;
uint32_t maxPushConstantsSize;
uint32_t maxMemoryAllocationCount;
uint32_t maxSamplerAllocationCount;
VkDeviceSize bufferImageGranularity;
VkDeviceSize sparseAddressSpaceSize;
uint32_t maxBoundDescriptorSets;
uint32_t maxPerStageDescriptorSamplers;
uint32_t maxPerStageDescriptorUniformBuffers;
uint32_t maxPerStageDescriptorStorageBuffers;
uint32_t maxPerStageDescriptorSampledImages;
uint32_t maxPerStageDescriptorStorageImages;
uint32_t maxPerStageDescriptorInputAttachments;
uint32_t maxPerStageResources;
uint32_t maxDescriptorSetSamplers;
uint32_t maxDescriptorSetUniformBuffers;
uint32_t maxDescriptorSetUniformBuffersDynamic;
uint32_t maxDescriptorSetStorageBuffers;
uint32_t maxDescriptorSetStorageBuffersDynamic;
uint32_t maxDescriptorSetSampledImages;
uint32_t maxDescriptorSetStorageImages;
uint32_t maxDescriptorSetInputAttachments;
uint32_t maxVertexInputAttributes;
uint32_t maxVertexInputBindings;
uint32_t maxVertexInputAttributeOffset;
uint32_t maxVertexInputBindingStride;
uint32_t maxVertexOutputComponents;
uint32_t maxTessellationGenerationLevel;
uint32_t maxTessellationPatchSize;
uint32_t maxTessellationControlPerVertexInputComponents;
uint32_t maxTessellationControlPerVertexOutputComponents;
uint32_t maxTessellationControlPerPatchOutputComponents;
uint32_t maxTessellationControlTotalOutputComponents;
uint32_t maxTessellationEvaluationInputComponents;
uint32_t maxTessellationEvaluationOutputComponents;
uint32_t maxGeometryShaderInvocations;
uint32_t maxGeometryInputComponents;
uint32_t maxGeometryOutputComponents;
uint32_t maxGeometryOutputVertices;
uint32_t maxGeometryTotalOutputComponents;
uint32_t maxFragmentInputComponents;
uint32_t maxFragmentOutputAttachments;
uint32_t maxFragmentDualSrcAttachments;
uint32_t maxFragmentCombinedOutputResources;
uint32_t maxComputeSharedMemorySize;
uint32_t[3] maxComputeWorkGroupCount;
uint32_t maxComputeWorkGroupInvocations;
uint32_t[3] maxComputeWorkGroupSize;
uint32_t subPixelPrecisionBits;
uint32_t subTexelPrecisionBits;
uint32_t mipmapPrecisionBits;
uint32_t maxDrawIndexedIndexValue;
uint32_t maxDrawIndirectCount;
float maxSamplerLodBias;
float maxSamplerAnisotropy;
uint32_t maxViewports;
uint32_t[2] maxViewportDimensions;
float[2] viewportBoundsRange;
uint32_t viewportSubPixelBits;
size_t minMemoryMapAlignment;
VkDeviceSize minTexelBufferOffsetAlignment;
VkDeviceSize minUniformBufferOffsetAlignment;
VkDeviceSize minStorageBufferOffsetAlignment;
int32_t minTexelOffset;
uint32_t maxTexelOffset;
int32_t minTexelGatherOffset;
uint32_t maxTexelGatherOffset;
float minInterpolationOffset;
float maxInterpolationOffset;
uint32_t subPixelInterpolationOffsetBits;
uint32_t maxFramebufferWidth;
uint32_t maxFramebufferHeight;
uint32_t maxFramebufferLayers;
VkSampleCountFlags framebufferColorSampleCounts;
VkSampleCountFlags framebufferDepthSampleCounts;
VkSampleCountFlags framebufferStencilSampleCounts;
VkSampleCountFlags framebufferNoAttachmentsSampleCounts;
uint32_t maxColorAttachments;
VkSampleCountFlags sampledImageColorSampleCounts;
VkSampleCountFlags sampledImageIntegerSampleCounts;
VkSampleCountFlags sampledImageDepthSampleCounts;
VkSampleCountFlags sampledImageStencilSampleCounts;
VkSampleCountFlags storageImageSampleCounts;
uint32_t maxSampleMaskWords;
VkBool32 timestampComputeAndGraphics;
float timestampPeriod;
uint32_t maxClipDistances;
uint32_t maxCullDistances;
uint32_t maxCombinedClipAndCullDistances;
uint32_t discreteQueuePriorities;
float[2] pointSizeRange;
float[2] lineWidthRange;
float pointSizeGranularity;
float lineWidthGranularity;
VkBool32 strictLines;
VkBool32 standardSampleLocations;
VkDeviceSize optimalBufferCopyOffsetAlignment;
VkDeviceSize optimalBufferCopyRowPitchAlignment;
VkDeviceSize nonCoherentAtomSize;
}
struct VkPhysicalDeviceSparseProperties {
VkBool32 residencyStandard2DBlockShape;
VkBool32 residencyStandard2DMultisampleBlockShape;
VkBool32 residencyStandard3DBlockShape;
VkBool32 residencyAlignedMipSize;
VkBool32 residencyNonResidentStrict;
}
enum VK_MAX_PHYSICAL_DEVICE_NAME_SIZE = 256;
enum VK_UUID_SIZE = 16;
struct VkPhysicalDeviceProperties {
uint32_t apiVersion;
uint32_t driverVersion;
uint32_t vendorID;
uint32_t deviceID;
VkPhysicalDeviceType deviceType;
char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE] deviceName;
uint8_t[VK_UUID_SIZE] pipelineCacheUUID;
VkPhysicalDeviceLimits limits;
VkPhysicalDeviceSparseProperties sparseProperties;
}
enum VkQueueFlagBits {
VK_QUEUE_GRAPHICS_BIT = 0x00000001,
VK_QUEUE_COMPUTE_BIT = 0x00000002,
VK_QUEUE_TRANSFER_BIT = 0x00000004,
VK_QUEUE_SPARSE_BINDING_BIT = 0x00000008,
}
alias VkQueueFlags = VkFlags;
struct VkQueueFamilyProperties {
VkQueueFlags queueFlags;
uint32_t queueCount;
uint32_t timestampValidBits;
VkExtent3D minImageTransferGranularity;
}
enum VkMemoryPropertyFlagBits {
VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT = 0x00000001,
VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT = 0x00000002,
VK_MEMORY_PROPERTY_HOST_COHERENT_BIT = 0x00000004,
VK_MEMORY_PROPERTY_HOST_CACHED_BIT = 0x00000008,
VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT = 0x00000010,
}
alias VkMemoryPropertyFlags = VkFlags;
struct VkMemoryType {
VkMemoryPropertyFlags propertyFlags;
uint32_t heapIndex;
}
enum VkMemoryHeapFlagBits {
VK_MEMORY_HEAP_DEVICE_LOCAL_BIT = 0x00000001,
}
alias VkMemoryHeapFlags = VkFlags;
struct VkMemoryHeap {
VkDeviceSize size;
VkMemoryHeapFlags flags;
}
enum VK_MAX_MEMORY_TYPES = 32;
enum VK_MAX_MEMORY_HEAPS = 16;
struct VkPhysicalDeviceMemoryProperties {
uint32_t memoryTypeCount;
VkMemoryType[VK_MAX_MEMORY_TYPES] memoryTypes;
uint32_t memoryHeapCount;
VkMemoryHeap[VK_MAX_MEMORY_HEAPS] memoryHeaps;
}
alias PFN_vkVoidFunction = extern(C) void function();
mixin(VK_DEFINE_HANDLE!q{VkDevice});
alias VkDeviceCreateFlags = VkFlags;
alias VkDeviceQueueCreateFlags = VkFlags;
struct VkDeviceQueueCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO;
const(void)* pNext;
VkDeviceQueueCreateFlags flags;
uint32_t queueFamilyIndex;
uint32_t queueCount;
const(float)* pQueuePriorities;
}
struct VkDeviceCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO;
const(void)* pNext;
VkDeviceCreateFlags flags;
uint32_t queueCreateInfoCount;
const(VkDeviceQueueCreateInfo)* pQueueCreateInfos;
uint32_t enabledLayerCount;
const(char*)* ppEnabledLayerNames;
uint32_t enabledExtensionCount;
const(char*)* ppEnabledExtensionNames;
const(VkPhysicalDeviceFeatures)* pEnabledFeatures;
}
enum VK_MAX_EXTENSION_NAME_SIZE = 256;
struct VkExtensionProperties {
char[VK_MAX_EXTENSION_NAME_SIZE] extensionName;
uint32_t specVersion;
}
enum VK_MAX_DESCRIPTION_SIZE = 256;
struct VkLayerProperties {
char[VK_MAX_EXTENSION_NAME_SIZE] layerName;
uint32_t specVersion;
uint32_t implementationVersion;
char[VK_MAX_DESCRIPTION_SIZE] description;
}
mixin(VK_DEFINE_HANDLE!q{VkQueue});
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkSemaphore});
enum VkPipelineStageFlagBits {
VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT = 0x00000001,
VK_PIPELINE_STAGE_DRAW_INDIRECT_BIT = 0x00000002,
VK_PIPELINE_STAGE_VERTEX_INPUT_BIT = 0x00000004,
VK_PIPELINE_STAGE_VERTEX_SHADER_BIT = 0x00000008,
VK_PIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT = 0x00000010,
VK_PIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT = 0x00000020,
VK_PIPELINE_STAGE_GEOMETRY_SHADER_BIT = 0x00000040,
VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT = 0x00000080,
VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT = 0x00000100,
VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT = 0x00000200,
VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT = 0x00000400,
VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT = 0x00000800,
VK_PIPELINE_STAGE_TRANSFER_BIT = 0x00001000,
VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT = 0x00002000,
VK_PIPELINE_STAGE_HOST_BIT = 0x00004000,
VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT = 0x00008000,
VK_PIPELINE_STAGE_ALL_COMMANDS_BIT = 0x00010000,
}
alias VkPipelineStageFlags = VkFlags;
mixin(VK_DEFINE_HANDLE!q{VkCommandBuffer});
struct VkSubmitInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_SUBMIT_INFO;
const(void)* pNext;
uint32_t waitSemaphoreCount;
const(VkSemaphore)* pWaitSemaphores;
const(VkPipelineStageFlags)* pWaitDstStageMask;
uint32_t commandBufferCount;
const(VkCommandBuffer)* pCommandBuffers;
uint32_t signalSemaphoreCount;
const(VkSemaphore)* pSignalSemaphores;
}
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkFence});
struct VkMemoryAllocateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO;
const(void)* pNext;
VkDeviceSize allocationSize;
uint32_t memoryTypeIndex;
}
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkDeviceMemory});
alias VkMemoryMapFlags = VkFlags;
struct VkMappedMemoryRange {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE;
const(void)* pNext;
VkDeviceMemory memory;
VkDeviceSize offset;
VkDeviceSize size;
}
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkBuffer});
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkImage});
struct VkMemoryRequirements {
VkDeviceSize size;
VkDeviceSize alignment;
uint32_t memoryTypeBits;
}
enum VkImageAspectFlagBits {
VK_IMAGE_ASPECT_COLOR_BIT = 0x00000001,
VK_IMAGE_ASPECT_DEPTH_BIT = 0x00000002,
VK_IMAGE_ASPECT_STENCIL_BIT = 0x00000004,
VK_IMAGE_ASPECT_METADATA_BIT = 0x00000008,
}
alias VkImageAspectFlags = VkFlags;
enum VkSparseImageFormatFlagBits {
VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT = 0x00000001,
VK_SPARSE_IMAGE_FORMAT_ALIGNED_MIP_SIZE_BIT = 0x00000002,
VK_SPARSE_IMAGE_FORMAT_NONSTANDARD_BLOCK_SIZE_BIT = 0x00000004,
}
alias VkSparseImageFormatFlags = VkFlags;
struct VkSparseImageFormatProperties {
VkImageAspectFlags aspectMask;
VkExtent3D imageGranularity;
VkSparseImageFormatFlags flags;
}
struct VkSparseImageMemoryRequirements {
VkSparseImageFormatProperties formatProperties;
uint32_t imageMipTailFirstLod;
VkDeviceSize imageMipTailSize;
VkDeviceSize imageMipTailOffset;
VkDeviceSize imageMipTailStride;
}
enum VkSparseMemoryBindFlagBits {
VK_SPARSE_MEMORY_BIND_METADATA_BIT = 0x00000001,
}
alias VkSparseMemoryBindFlags = VkFlags;
struct VkSparseMemoryBind {
VkDeviceSize resourceOffset;
VkDeviceSize size;
VkDeviceMemory memory;
VkDeviceSize memoryOffset;
VkSparseMemoryBindFlags flags;
}
struct VkSparseBufferMemoryBindInfo {
VkBuffer buffer;
uint32_t bindCount;
const(VkSparseMemoryBind)* pBinds;
}
struct VkSparseImageOpaqueMemoryBindInfo {
VkImage image;
uint32_t bindCount;
const(VkSparseMemoryBind)* pBinds;
}
struct VkImageSubresource {
VkImageAspectFlags aspectMask;
uint32_t mipLevel;
uint32_t arrayLayer;
}
struct VkOffset3D {
int32_t x;
int32_t y;
int32_t z;
}
struct VkSparseImageMemoryBind {
VkImageSubresource subresource;
VkOffset3D offset;
VkExtent3D extent;
VkDeviceMemory memory;
VkDeviceSize memoryOffset;
VkSparseMemoryBindFlags flags;
}
struct VkSparseImageMemoryBindInfo {
VkImage image;
uint32_t bindCount;
const(VkSparseImageMemoryBind)* pBinds;
}
struct VkBindSparseInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_BIND_SPARSE_INFO;
const(void)* pNext;
uint32_t waitSemaphoreCount;
const(VkSemaphore)* pWaitSemaphores;
uint32_t bufferBindCount;
const(VkSparseBufferMemoryBindInfo)* pBufferBinds;
uint32_t imageOpaqueBindCount;
const(VkSparseImageOpaqueMemoryBindInfo)* pImageOpaqueBinds;
uint32_t imageBindCount;
const(VkSparseImageMemoryBindInfo)* pImageBinds;
uint32_t signalSemaphoreCount;
const(VkSemaphore)* pSignalSemaphores;
}
enum VkFenceCreateFlagBits {
VK_FENCE_CREATE_SIGNALED_BIT = 0x00000001,
}
alias VkFenceCreateFlags = VkFlags;
struct VkFenceCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_FENCE_CREATE_INFO;
const(void)* pNext;
VkFenceCreateFlags flags;
}
alias VkSemaphoreCreateFlags = VkFlags;
struct VkSemaphoreCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO;
const(void)* pNext;
VkSemaphoreCreateFlags flags;
}
alias VkEventCreateFlags = VkFlags;
struct VkEventCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_EVENT_CREATE_INFO;
const(void)* pNext;
VkEventCreateFlags flags;
}
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkEvent});
alias VkQueryPoolCreateFlags = VkFlags;
enum VkQueryType {
VK_QUERY_TYPE_OCCLUSION = 0,
VK_QUERY_TYPE_PIPELINE_STATISTICS = 1,
VK_QUERY_TYPE_TIMESTAMP = 2,
}
enum VkQueryPipelineStatisticFlagBits {
VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_VERTICES_BIT = 0x00000001,
VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_PRIMITIVES_BIT = 0x00000002,
VK_QUERY_PIPELINE_STATISTIC_VERTEX_SHADER_INVOCATIONS_BIT = 0x00000004,
VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_INVOCATIONS_BIT = 0x00000008,
VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_PRIMITIVES_BIT = 0x00000010,
VK_QUERY_PIPELINE_STATISTIC_CLIPPING_INVOCATIONS_BIT = 0x00000020,
VK_QUERY_PIPELINE_STATISTIC_CLIPPING_PRIMITIVES_BIT = 0x00000040,
VK_QUERY_PIPELINE_STATISTIC_FRAGMENT_SHADER_INVOCATIONS_BIT = 0x00000080,
VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_CONTROL_SHADER_PATCHES_BIT = 0x00000100,
VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_EVALUATION_SHADER_INVOCATIONS_BIT = 0x00000200,
VK_QUERY_PIPELINE_STATISTIC_COMPUTE_SHADER_INVOCATIONS_BIT = 0x00000400,
}
alias VkQueryPipelineStatisticFlags = VkFlags;
struct VkQueryPoolCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO;
const(void)* pNext;
VkQueryPoolCreateFlags flags;
VkQueryType queryType;
uint32_t queryCount;
VkQueryPipelineStatisticFlags pipelineStatistics;
}
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkQueryPool});
enum VkQueryResultFlagBits {
VK_QUERY_RESULT_64_BIT = 0x00000001,
VK_QUERY_RESULT_WAIT_BIT = 0x00000002,
VK_QUERY_RESULT_WITH_AVAILABILITY_BIT = 0x00000004,
VK_QUERY_RESULT_PARTIAL_BIT = 0x00000008,
}
alias VkQueryResultFlags = VkFlags;
enum VkBufferCreateFlagBits {
VK_BUFFER_CREATE_SPARSE_BINDING_BIT = 0x00000001,
VK_BUFFER_CREATE_SPARSE_RESIDENCY_BIT = 0x00000002,
VK_BUFFER_CREATE_SPARSE_ALIASED_BIT = 0x00000004,
}
alias VkBufferCreateFlags = VkFlags;
enum VkBufferUsageFlagBits {
VK_BUFFER_USAGE_TRANSFER_SRC_BIT = 0x00000001,
VK_BUFFER_USAGE_TRANSFER_DST_BIT = 0x00000002,
VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT = 0x00000004,
VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT = 0x00000008,
VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT = 0x00000010,
VK_BUFFER_USAGE_STORAGE_BUFFER_BIT = 0x00000020,
VK_BUFFER_USAGE_INDEX_BUFFER_BIT = 0x00000040,
VK_BUFFER_USAGE_VERTEX_BUFFER_BIT = 0x00000080,
VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT = 0x00000100,
}
alias VkBufferUsageFlags = VkFlags;
enum VkSharingMode {
VK_SHARING_MODE_EXCLUSIVE = 0,
VK_SHARING_MODE_CONCURRENT = 1,
}
struct VkBufferCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO;
const(void)* pNext;
VkBufferCreateFlags flags;
VkDeviceSize size;
VkBufferUsageFlags usage;
VkSharingMode sharingMode;
uint32_t queueFamilyIndexCount;
const(uint32_t)* pQueueFamilyIndices;
}
alias VkBufferViewCreateFlags = VkFlags;
struct VkBufferViewCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO;
const(void)* pNext;
VkBufferViewCreateFlags flags;
VkBuffer buffer;
VkFormat format;
VkDeviceSize offset;
VkDeviceSize range;
}
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkBufferView});
enum VkImageLayout {
VK_IMAGE_LAYOUT_UNDEFINED = 0,
VK_IMAGE_LAYOUT_GENERAL = 1,
VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL = 2,
VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL = 3,
VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL = 4,
VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL = 5,
VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL = 6,
VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL = 7,
VK_IMAGE_LAYOUT_PREINITIALIZED = 8,
VK_IMAGE_LAYOUT_PRESENT_SRC_KHR = 1000001002,
}
struct VkImageCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO;
const(void)* pNext;
VkImageCreateFlags flags;
VkImageType imageType;
VkFormat format;
VkExtent3D extent;
uint32_t mipLevels;
uint32_t arrayLayers;
VkSampleCountFlagBits samples;
VkImageTiling tiling;
VkImageUsageFlags usage;
VkSharingMode sharingMode;
uint32_t queueFamilyIndexCount;
const(uint32_t)* pQueueFamilyIndices;
VkImageLayout initialLayout;
}
struct VkSubresourceLayout {
VkDeviceSize offset;
VkDeviceSize size;
VkDeviceSize rowPitch;
VkDeviceSize arrayPitch;
VkDeviceSize depthPitch;
}
alias VkImageViewCreateFlags = VkFlags;
enum VkImageViewType {
VK_IMAGE_VIEW_TYPE_1D = 0,
VK_IMAGE_VIEW_TYPE_2D = 1,
VK_IMAGE_VIEW_TYPE_3D = 2,
VK_IMAGE_VIEW_TYPE_CUBE = 3,
VK_IMAGE_VIEW_TYPE_1D_ARRAY = 4,
VK_IMAGE_VIEW_TYPE_2D_ARRAY = 5,
VK_IMAGE_VIEW_TYPE_CUBE_ARRAY = 6,
}
enum VkComponentSwizzle {
VK_COMPONENT_SWIZZLE_IDENTITY = 0,
VK_COMPONENT_SWIZZLE_ZERO = 1,
VK_COMPONENT_SWIZZLE_ONE = 2,
VK_COMPONENT_SWIZZLE_R = 3,
VK_COMPONENT_SWIZZLE_G = 4,
VK_COMPONENT_SWIZZLE_B = 5,
VK_COMPONENT_SWIZZLE_A = 6,
}
struct VkComponentMapping {
VkComponentSwizzle r;
VkComponentSwizzle g;
VkComponentSwizzle b;
VkComponentSwizzle a;
}
struct VkImageSubresourceRange {
VkImageAspectFlags aspectMask;
uint32_t baseMipLevel;
uint32_t levelCount;
uint32_t baseArrayLayer;
uint32_t layerCount;
}
struct VkImageViewCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO;
const(void)* pNext;
VkImageViewCreateFlags flags;
VkImage image;
VkImageViewType viewType;
VkFormat format;
VkComponentMapping components;
VkImageSubresourceRange subresourceRange;
}
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkImageView});
alias VkShaderModuleCreateFlags = VkFlags;
struct VkShaderModuleCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO;
const(void)* pNext;
VkShaderModuleCreateFlags flags;
size_t codeSize;
const(uint32_t)* pCode;
}
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkShaderModule});
alias VkPipelineCacheCreateFlags = VkFlags;
struct VkPipelineCacheCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO;
const(void)* pNext;
VkPipelineCacheCreateFlags flags;
size_t initialDataSize;
const(void)* pInitialData;
}
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkPipelineCache});
enum VkPipelineCreateFlagBits {
VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT = 0x00000001,
VK_PIPELINE_CREATE_ALLOW_DERIVATIVES_BIT = 0x00000002,
VK_PIPELINE_CREATE_DERIVATIVE_BIT = 0x00000004,
}
alias VkPipelineCreateFlags = VkFlags;
alias VkPipelineShaderStageCreateFlags = VkFlags;
enum VkShaderStageFlagBits {
VK_SHADER_STAGE_VERTEX_BIT = 0x00000001,
VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT = 0x00000002,
VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT = 0x00000004,
VK_SHADER_STAGE_GEOMETRY_BIT = 0x00000008,
VK_SHADER_STAGE_FRAGMENT_BIT = 0x00000010,
VK_SHADER_STAGE_COMPUTE_BIT = 0x00000020,
VK_SHADER_STAGE_ALL_GRAPHICS = 0x0000001F,
VK_SHADER_STAGE_ALL = 0x7FFFFFFF,
}
struct VkSpecializationMapEntry {
uint32_t constantID;
uint32_t offset;
size_t size;
}
struct VkSpecializationInfo {
uint32_t mapEntryCount;
const(VkSpecializationMapEntry)* pMapEntries;
size_t dataSize;
const(void)* pData;
}
struct VkPipelineShaderStageCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO;
const(void)* pNext;
VkPipelineShaderStageCreateFlags flags;
VkShaderStageFlagBits stage;
VkShaderModule _module;
const(char)* pName;
const(VkSpecializationInfo)* pSpecializationInfo;
}
alias VkPipelineVertexInputStateCreateFlags = VkFlags;
enum VkVertexInputRate {
VK_VERTEX_INPUT_RATE_VERTEX = 0,
VK_VERTEX_INPUT_RATE_INSTANCE = 1,
}
struct VkVertexInputBindingDescription {
uint32_t binding;
uint32_t stride;
VkVertexInputRate inputRate;
}
struct VkVertexInputAttributeDescription {
uint32_t location;
uint32_t binding;
VkFormat format;
uint32_t offset;
}
struct VkPipelineVertexInputStateCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO;
const(void)* pNext;
VkPipelineVertexInputStateCreateFlags flags;
uint32_t vertexBindingDescriptionCount;
const(VkVertexInputBindingDescription)* pVertexBindingDescriptions;
uint32_t vertexAttributeDescriptionCount;
const(VkVertexInputAttributeDescription)* pVertexAttributeDescriptions;
}
alias VkPipelineInputAssemblyStateCreateFlags = VkFlags;
enum VkPrimitiveTopology {
VK_PRIMITIVE_TOPOLOGY_POINT_LIST = 0,
VK_PRIMITIVE_TOPOLOGY_LINE_LIST = 1,
VK_PRIMITIVE_TOPOLOGY_LINE_STRIP = 2,
VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST = 3,
VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP = 4,
VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN = 5,
VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY = 6,
VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY = 7,
VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY = 8,
VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY = 9,
VK_PRIMITIVE_TOPOLOGY_PATCH_LIST = 10,
}
struct VkPipelineInputAssemblyStateCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO;
const(void)* pNext;
VkPipelineInputAssemblyStateCreateFlags flags;
VkPrimitiveTopology topology;
VkBool32 primitiveRestartEnable;
}
alias VkPipelineTessellationStateCreateFlags = VkFlags;
struct VkPipelineTessellationStateCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO;
const(void)* pNext;
VkPipelineTessellationStateCreateFlags flags;
uint32_t patchControlPoints;
}
alias VkPipelineViewportStateCreateFlags = VkFlags;
struct VkViewport {
float x;
float y;
float width;
float height;
float minDepth;
float maxDepth;
}
struct VkOffset2D {
int32_t x;
int32_t y;
}
struct VkExtent2D {
uint32_t width;
uint32_t height;
}
struct VkRect2D {
VkOffset2D offset;
VkExtent2D extent;
}
struct VkPipelineViewportStateCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO;
const(void)* pNext;
VkPipelineViewportStateCreateFlags flags;
uint32_t viewportCount;
const(VkViewport)* pViewports;
uint32_t scissorCount;
const(VkRect2D)* pScissors;
}
alias VkPipelineRasterizationStateCreateFlags = VkFlags;
enum VkPolygonMode {
VK_POLYGON_MODE_FILL = 0,
VK_POLYGON_MODE_LINE = 1,
VK_POLYGON_MODE_POINT = 2,
}
enum VkCullModeFlagBits {
VK_CULL_MODE_NONE = 0,
VK_CULL_MODE_FRONT_BIT = 0x00000001,
VK_CULL_MODE_BACK_BIT = 0x00000002,
VK_CULL_MODE_FRONT_AND_BACK = 0x00000003,
}
alias VkCullModeFlags = VkFlags;
enum VkFrontFace {
VK_FRONT_FACE_COUNTER_CLOCKWISE = 0,
VK_FRONT_FACE_CLOCKWISE = 1,
}
struct VkPipelineRasterizationStateCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO;
const(void)* pNext;
VkPipelineRasterizationStateCreateFlags flags;
VkBool32 depthClampEnable;
VkBool32 rasterizerDiscardEnable;
VkPolygonMode polygonMode;
VkCullModeFlags cullMode;
VkFrontFace frontFace;
VkBool32 depthBiasEnable;
float depthBiasConstantFactor;
float depthBiasClamp;
float depthBiasSlopeFactor;
float lineWidth;
}
alias VkPipelineMultisampleStateCreateFlags = VkFlags;
alias VkSampleMask = uint32_t;
struct VkPipelineMultisampleStateCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO;
const(void)* pNext;
VkPipelineMultisampleStateCreateFlags flags;
VkSampleCountFlagBits rasterizationSamples;
VkBool32 sampleShadingEnable;
float minSampleShading;
const(VkSampleMask)* pSampleMask;
VkBool32 alphaToCoverageEnable;
VkBool32 alphaToOneEnable;
}
alias VkPipelineDepthStencilStateCreateFlags = VkFlags;
enum VkCompareOp {
VK_COMPARE_OP_NEVER = 0,
VK_COMPARE_OP_LESS = 1,
VK_COMPARE_OP_EQUAL = 2,
VK_COMPARE_OP_LESS_OR_EQUAL = 3,
VK_COMPARE_OP_GREATER = 4,
VK_COMPARE_OP_NOT_EQUAL = 5,
VK_COMPARE_OP_GREATER_OR_EQUAL = 6,
VK_COMPARE_OP_ALWAYS = 7,
}
enum VkStencilOp {
VK_STENCIL_OP_KEEP = 0,
VK_STENCIL_OP_ZERO = 1,
VK_STENCIL_OP_REPLACE = 2,
VK_STENCIL_OP_INCREMENT_AND_CLAMP = 3,
VK_STENCIL_OP_DECREMENT_AND_CLAMP = 4,
VK_STENCIL_OP_INVERT = 5,
VK_STENCIL_OP_INCREMENT_AND_WRAP = 6,
VK_STENCIL_OP_DECREMENT_AND_WRAP = 7,
}
struct VkStencilOpState {
VkStencilOp failOp;
VkStencilOp passOp;
VkStencilOp depthFailOp;
VkCompareOp compareOp;
uint32_t compareMask;
uint32_t writeMask;
uint32_t reference;
}
struct VkPipelineDepthStencilStateCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO;
const(void)* pNext;
VkPipelineDepthStencilStateCreateFlags flags;
VkBool32 depthTestEnable;
VkBool32 depthWriteEnable;
VkCompareOp depthCompareOp;
VkBool32 depthBoundsTestEnable;
VkBool32 stencilTestEnable;
VkStencilOpState front;
VkStencilOpState back;
float minDepthBounds;
float maxDepthBounds;
}
alias VkPipelineColorBlendStateCreateFlags = VkFlags;
enum VkLogicOp {
VK_LOGIC_OP_CLEAR = 0,
VK_LOGIC_OP_AND = 1,
VK_LOGIC_OP_AND_REVERSE = 2,
VK_LOGIC_OP_COPY = 3,
VK_LOGIC_OP_AND_INVERTED = 4,
VK_LOGIC_OP_NO_OP = 5,
VK_LOGIC_OP_XOR = 6,
VK_LOGIC_OP_OR = 7,
VK_LOGIC_OP_NOR = 8,
VK_LOGIC_OP_EQUIVALENT = 9,
VK_LOGIC_OP_INVERT = 10,
VK_LOGIC_OP_OR_REVERSE = 11,
VK_LOGIC_OP_COPY_INVERTED = 12,
VK_LOGIC_OP_OR_INVERTED = 13,
VK_LOGIC_OP_NAND = 14,
VK_LOGIC_OP_SET = 15,
}
enum VkBlendFactor {
VK_BLEND_FACTOR_ZERO = 0,
VK_BLEND_FACTOR_ONE = 1,
VK_BLEND_FACTOR_SRC_COLOR = 2,
VK_BLEND_FACTOR_ONE_MINUS_SRC_COLOR = 3,
VK_BLEND_FACTOR_DST_COLOR = 4,
VK_BLEND_FACTOR_ONE_MINUS_DST_COLOR = 5,
VK_BLEND_FACTOR_SRC_ALPHA = 6,
VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA = 7,
VK_BLEND_FACTOR_DST_ALPHA = 8,
VK_BLEND_FACTOR_ONE_MINUS_DST_ALPHA = 9,
VK_BLEND_FACTOR_CONSTANT_COLOR = 10,
VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR = 11,
VK_BLEND_FACTOR_CONSTANT_ALPHA = 12,
VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA = 13,
VK_BLEND_FACTOR_SRC_ALPHA_SATURATE = 14,
VK_BLEND_FACTOR_SRC1_COLOR = 15,
VK_BLEND_FACTOR_ONE_MINUS_SRC1_COLOR = 16,
VK_BLEND_FACTOR_SRC1_ALPHA = 17,
VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA = 18,
}
enum VkBlendOp {
VK_BLEND_OP_ADD = 0,
VK_BLEND_OP_SUBTRACT = 1,
VK_BLEND_OP_REVERSE_SUBTRACT = 2,
VK_BLEND_OP_MIN = 3,
VK_BLEND_OP_MAX = 4,
}
enum VkColorComponentFlagBits {
VK_COLOR_COMPONENT_R_BIT = 0x00000001,
VK_COLOR_COMPONENT_G_BIT = 0x00000002,
VK_COLOR_COMPONENT_B_BIT = 0x00000004,
VK_COLOR_COMPONENT_A_BIT = 0x00000008,
}
alias VkColorComponentFlags = VkFlags;
struct VkPipelineColorBlendAttachmentState {
VkBool32 blendEnable;
VkBlendFactor srcColorBlendFactor;
VkBlendFactor dstColorBlendFactor;
VkBlendOp colorBlendOp;
VkBlendFactor srcAlphaBlendFactor;
VkBlendFactor dstAlphaBlendFactor;
VkBlendOp alphaBlendOp;
VkColorComponentFlags colorWriteMask;
}
struct VkPipelineColorBlendStateCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO;
const(void)* pNext;
VkPipelineColorBlendStateCreateFlags flags;
VkBool32 logicOpEnable;
VkLogicOp logicOp;
uint32_t attachmentCount;
const(VkPipelineColorBlendAttachmentState)* pAttachments;
float[4] blendConstants;
}
alias VkPipelineDynamicStateCreateFlags = VkFlags;
enum VkDynamicState {
VK_DYNAMIC_STATE_VIEWPORT = 0,
VK_DYNAMIC_STATE_SCISSOR = 1,
VK_DYNAMIC_STATE_LINE_WIDTH = 2,
VK_DYNAMIC_STATE_DEPTH_BIAS = 3,
VK_DYNAMIC_STATE_BLEND_CONSTANTS = 4,
VK_DYNAMIC_STATE_DEPTH_BOUNDS = 5,
VK_DYNAMIC_STATE_STENCIL_COMPARE_MASK = 6,
VK_DYNAMIC_STATE_STENCIL_WRITE_MASK = 7,
VK_DYNAMIC_STATE_STENCIL_REFERENCE = 8,
}
struct VkPipelineDynamicStateCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO;
const(void)* pNext;
VkPipelineDynamicStateCreateFlags flags;
uint32_t dynamicStateCount;
const(VkDynamicState)* pDynamicStates;
}
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkPipelineLayout});
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkRenderPass});
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkPipeline});
struct VkGraphicsPipelineCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO;
const(void)* pNext;
VkPipelineCreateFlags flags;
uint32_t stageCount;
const(VkPipelineShaderStageCreateInfo)* pStages;
const(VkPipelineVertexInputStateCreateInfo)* pVertexInputState;
const(VkPipelineInputAssemblyStateCreateInfo)* pInputAssemblyState;
const(VkPipelineTessellationStateCreateInfo)* pTessellationState;
const(VkPipelineViewportStateCreateInfo)* pViewportState;
const(VkPipelineRasterizationStateCreateInfo)* pRasterizationState;
const(VkPipelineMultisampleStateCreateInfo)* pMultisampleState;
const(VkPipelineDepthStencilStateCreateInfo)* pDepthStencilState;
const(VkPipelineColorBlendStateCreateInfo)* pColorBlendState;
const(VkPipelineDynamicStateCreateInfo)* pDynamicState;
VkPipelineLayout layout;
VkRenderPass renderPass;
uint32_t subpass;
VkPipeline basePipelineHandle;
int32_t basePipelineIndex;
}
struct VkComputePipelineCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO;
const(void)* pNext;
VkPipelineCreateFlags flags;
VkPipelineShaderStageCreateInfo stage;
VkPipelineLayout layout;
VkPipeline basePipelineHandle;
int32_t basePipelineIndex;
}
alias VkPipelineLayoutCreateFlags = VkFlags;
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkDescriptorSetLayout});
alias VkShaderStageFlags = VkFlags;
struct VkPushConstantRange {
VkShaderStageFlags stageFlags;
uint32_t offset;
uint32_t size;
}
struct VkPipelineLayoutCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO;
const(void)* pNext;
VkPipelineLayoutCreateFlags flags;
uint32_t setLayoutCount;
const(VkDescriptorSetLayout)* pSetLayouts;
uint32_t pushConstantRangeCount;
const(VkPushConstantRange)* pPushConstantRanges;
}
alias VkSamplerCreateFlags = VkFlags;
enum VkFilter {
VK_FILTER_NEAREST = 0,
VK_FILTER_LINEAR = 1,
VK_FILTER_CUBIC_IMG = 1000015000,
}
enum VkSamplerMipmapMode {
VK_SAMPLER_MIPMAP_MODE_NEAREST = 0,
VK_SAMPLER_MIPMAP_MODE_LINEAR = 1,
}
enum VkSamplerAddressMode {
VK_SAMPLER_ADDRESS_MODE_REPEAT = 0,
VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT = 1,
VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE = 2,
VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER = 3,
VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE = 4,
}
enum VkBorderColor {
VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK = 0,
VK_BORDER_COLOR_INT_TRANSPARENT_BLACK = 1,
VK_BORDER_COLOR_FLOAT_OPAQUE_BLACK = 2,
VK_BORDER_COLOR_INT_OPAQUE_BLACK = 3,
VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE = 4,
VK_BORDER_COLOR_INT_OPAQUE_WHITE = 5,
}
struct VkSamplerCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO;
const(void)* pNext;
VkSamplerCreateFlags flags;
VkFilter magFilter;
VkFilter minFilter;
VkSamplerMipmapMode mipmapMode;
VkSamplerAddressMode addressModeU;
VkSamplerAddressMode addressModeV;
VkSamplerAddressMode addressModeW;
float mipLodBias;
VkBool32 anisotropyEnable;
float maxAnisotropy;
VkBool32 compareEnable;
VkCompareOp compareOp;
float minLod;
float maxLod;
VkBorderColor borderColor;
VkBool32 unnormalizedCoordinates;
}
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkSampler});
alias VkDescriptorSetLayoutCreateFlags = VkFlags;
enum VkDescriptorType {
VK_DESCRIPTOR_TYPE_SAMPLER = 0,
VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER = 1,
VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE = 2,
VK_DESCRIPTOR_TYPE_STORAGE_IMAGE = 3,
VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER = 4,
VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER = 5,
VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER = 6,
VK_DESCRIPTOR_TYPE_STORAGE_BUFFER = 7,
VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC = 8,
VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC = 9,
VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT = 10,
}
struct VkDescriptorSetLayoutBinding {
uint32_t binding;
VkDescriptorType descriptorType;
uint32_t descriptorCount;
VkShaderStageFlags stageFlags;
const(VkSampler)* pImmutableSamplers;
}
struct VkDescriptorSetLayoutCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO;
const(void)* pNext;
VkDescriptorSetLayoutCreateFlags flags;
uint32_t bindingCount;
const(VkDescriptorSetLayoutBinding)* pBindings;
}
enum VkDescriptorPoolCreateFlagBits {
VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT = 0x00000001,
}
alias VkDescriptorPoolCreateFlags = VkFlags;
struct VkDescriptorPoolSize {
VkDescriptorType type;
uint32_t descriptorCount;
}
struct VkDescriptorPoolCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO;
const(void)* pNext;
VkDescriptorPoolCreateFlags flags;
uint32_t maxSets;
uint32_t poolSizeCount;
const(VkDescriptorPoolSize)* pPoolSizes;
}
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkDescriptorPool});
alias VkDescriptorPoolResetFlags = VkFlags;
struct VkDescriptorSetAllocateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO;
const(void)* pNext;
VkDescriptorPool descriptorPool;
uint32_t descriptorSetCount;
const(VkDescriptorSetLayout)* pSetLayouts;
}
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkDescriptorSet});
struct VkDescriptorImageInfo {
VkSampler sampler;
VkImageView imageView;
VkImageLayout imageLayout;
}
struct VkDescriptorBufferInfo {
VkBuffer buffer;
VkDeviceSize offset;
VkDeviceSize range;
}
struct VkWriteDescriptorSet {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET;
const(void)* pNext;
VkDescriptorSet dstSet;
uint32_t dstBinding;
uint32_t dstArrayElement;
uint32_t descriptorCount;
VkDescriptorType descriptorType;
const(VkDescriptorImageInfo)* pImageInfo;
const(VkDescriptorBufferInfo)* pBufferInfo;
const(VkBufferView)* pTexelBufferView;
}
struct VkCopyDescriptorSet {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_COPY_DESCRIPTOR_SET;
const(void)* pNext;
VkDescriptorSet srcSet;
uint32_t srcBinding;
uint32_t srcArrayElement;
VkDescriptorSet dstSet;
uint32_t dstBinding;
uint32_t dstArrayElement;
uint32_t descriptorCount;
}
alias VkFramebufferCreateFlags = VkFlags;
struct VkFramebufferCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO;
const(void)* pNext;
VkFramebufferCreateFlags flags;
VkRenderPass renderPass;
uint32_t attachmentCount;
const(VkImageView)* pAttachments;
uint32_t width;
uint32_t height;
uint32_t layers;
}
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkFramebuffer});
alias VkRenderPassCreateFlags = VkFlags;
enum VkAttachmentDescriptionFlagBits {
VK_ATTACHMENT_DESCRIPTION_MAY_ALIAS_BIT = 0x00000001,
}
alias VkAttachmentDescriptionFlags = VkFlags;
enum VkAttachmentLoadOp {
VK_ATTACHMENT_LOAD_OP_LOAD = 0,
VK_ATTACHMENT_LOAD_OP_CLEAR = 1,
VK_ATTACHMENT_LOAD_OP_DONT_CARE = 2,
}
enum VkAttachmentStoreOp {
VK_ATTACHMENT_STORE_OP_STORE = 0,
VK_ATTACHMENT_STORE_OP_DONT_CARE = 1,
}
struct VkAttachmentDescription {
VkAttachmentDescriptionFlags flags;
VkFormat format;
VkSampleCountFlagBits samples;
VkAttachmentLoadOp loadOp;
VkAttachmentStoreOp storeOp;
VkAttachmentLoadOp stencilLoadOp;
VkAttachmentStoreOp stencilStoreOp;
VkImageLayout initialLayout;
VkImageLayout finalLayout;
}
alias VkSubpassDescriptionFlags = VkFlags;
enum VkPipelineBindPoint {
VK_PIPELINE_BIND_POINT_GRAPHICS = 0,
VK_PIPELINE_BIND_POINT_COMPUTE = 1,
}
struct VkAttachmentReference {
uint32_t attachment;
VkImageLayout layout;
}
struct VkSubpassDescription {
VkSubpassDescriptionFlags flags;
VkPipelineBindPoint pipelineBindPoint;
uint32_t inputAttachmentCount;
const(VkAttachmentReference)* pInputAttachments;
uint32_t colorAttachmentCount;
const(VkAttachmentReference)* pColorAttachments;
const(VkAttachmentReference)* pResolveAttachments;
const(VkAttachmentReference)* pDepthStencilAttachment;
uint32_t preserveAttachmentCount;
const(uint32_t)* pPreserveAttachments;
}
enum VkAccessFlagBits {
VK_ACCESS_INDIRECT_COMMAND_READ_BIT = 0x00000001,
VK_ACCESS_INDEX_READ_BIT = 0x00000002,
VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT = 0x00000004,
VK_ACCESS_UNIFORM_READ_BIT = 0x00000008,
VK_ACCESS_INPUT_ATTACHMENT_READ_BIT = 0x00000010,
VK_ACCESS_SHADER_READ_BIT = 0x00000020,
VK_ACCESS_SHADER_WRITE_BIT = 0x00000040,
VK_ACCESS_COLOR_ATTACHMENT_READ_BIT = 0x00000080,
VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT = 0x00000100,
VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT = 0x00000200,
VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT = 0x00000400,
VK_ACCESS_TRANSFER_READ_BIT = 0x00000800,
VK_ACCESS_TRANSFER_WRITE_BIT = 0x00001000,
VK_ACCESS_HOST_READ_BIT = 0x00002000,
VK_ACCESS_HOST_WRITE_BIT = 0x00004000,
VK_ACCESS_MEMORY_READ_BIT = 0x00008000,
VK_ACCESS_MEMORY_WRITE_BIT = 0x00010000,
}
alias VkAccessFlags = VkFlags;
enum VkDependencyFlagBits {
VK_DEPENDENCY_BY_REGION_BIT = 0x00000001,
}
alias VkDependencyFlags = VkFlags;
struct VkSubpassDependency {
uint32_t srcSubpass;
uint32_t dstSubpass;
VkPipelineStageFlags srcStageMask;
VkPipelineStageFlags dstStageMask;
VkAccessFlags srcAccessMask;
VkAccessFlags dstAccessMask;
VkDependencyFlags dependencyFlags;
}
struct VkRenderPassCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO;
const(void)* pNext;
VkRenderPassCreateFlags flags;
uint32_t attachmentCount;
const(VkAttachmentDescription)* pAttachments;
uint32_t subpassCount;
const(VkSubpassDescription)* pSubpasses;
uint32_t dependencyCount;
const(VkSubpassDependency)* pDependencies;
}
enum VkCommandPoolCreateFlagBits {
VK_COMMAND_POOL_CREATE_TRANSIENT_BIT = 0x00000001,
VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT = 0x00000002,
}
alias VkCommandPoolCreateFlags = VkFlags;
struct VkCommandPoolCreateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO;
const(void)* pNext;
VkCommandPoolCreateFlags flags;
uint32_t queueFamilyIndex;
}
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkCommandPool});
enum VkCommandPoolResetFlagBits {
VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_BIT = 0x00000001,
}
alias VkCommandPoolResetFlags = VkFlags;
enum VkCommandBufferLevel {
VK_COMMAND_BUFFER_LEVEL_PRIMARY = 0,
VK_COMMAND_BUFFER_LEVEL_SECONDARY = 1,
}
struct VkCommandBufferAllocateInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO;
const(void)* pNext;
VkCommandPool commandPool;
VkCommandBufferLevel level;
uint32_t commandBufferCount;
}
enum VkCommandBufferUsageFlagBits {
VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT = 0x00000001,
VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT = 0x00000002,
VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT = 0x00000004,
}
alias VkCommandBufferUsageFlags = VkFlags;
enum VkQueryControlFlagBits {
VK_QUERY_CONTROL_PRECISE_BIT = 0x00000001,
}
alias VkQueryControlFlags = VkFlags;
struct VkCommandBufferInheritanceInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO;
const(void)* pNext;
VkRenderPass renderPass;
uint32_t subpass;
VkFramebuffer framebuffer;
VkBool32 occlusionQueryEnable;
VkQueryControlFlags queryFlags;
VkQueryPipelineStatisticFlags pipelineStatistics;
}
struct VkCommandBufferBeginInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;
const(void)* pNext;
VkCommandBufferUsageFlags flags;
const(VkCommandBufferInheritanceInfo)* pInheritanceInfo;
}
enum VkCommandBufferResetFlagBits {
VK_COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT = 0x00000001,
}
alias VkCommandBufferResetFlags = VkFlags;
enum VkStencilFaceFlagBits {
VK_STENCIL_FACE_FRONT_BIT = 0x00000001,
VK_STENCIL_FACE_BACK_BIT = 0x00000002,
VK_STENCIL_FRONT_AND_BACK = 0x00000003,
}
alias VkStencilFaceFlags = VkFlags;
enum VkIndexType {
VK_INDEX_TYPE_UINT16 = 0,
VK_INDEX_TYPE_UINT32 = 1,
}
struct VkBufferCopy {
VkDeviceSize srcOffset;
VkDeviceSize dstOffset;
VkDeviceSize size;
}
struct VkImageSubresourceLayers {
VkImageAspectFlags aspectMask;
uint32_t mipLevel;
uint32_t baseArrayLayer;
uint32_t layerCount;
}
struct VkImageCopy {
VkImageSubresourceLayers srcSubresource;
VkOffset3D srcOffset;
VkImageSubresourceLayers dstSubresource;
VkOffset3D dstOffset;
VkExtent3D extent;
}
struct VkImageBlit {
VkImageSubresourceLayers srcSubresource;
VkOffset3D[2] srcOffsets;
VkImageSubresourceLayers dstSubresource;
VkOffset3D[2] dstOffsets;
}
struct VkBufferImageCopy {
VkDeviceSize bufferOffset;
uint32_t bufferRowLength;
uint32_t bufferImageHeight;
VkImageSubresourceLayers imageSubresource;
VkOffset3D imageOffset;
VkExtent3D imageExtent;
}
union VkClearColorValue {
float[4] float32;
int32_t[4] int32;
uint32_t[4] uint32;
}
struct VkClearDepthStencilValue {
float depth;
uint32_t stencil;
}
union VkClearValue {
VkClearColorValue color;
VkClearDepthStencilValue depthStencil;
}
struct VkClearAttachment {
VkImageAspectFlags aspectMask;
uint32_t colorAttachment;
VkClearValue clearValue;
}
struct VkClearRect {
VkRect2D rect;
uint32_t baseArrayLayer;
uint32_t layerCount;
}
struct VkImageResolve {
VkImageSubresourceLayers srcSubresource;
VkOffset3D srcOffset;
VkImageSubresourceLayers dstSubresource;
VkOffset3D dstOffset;
VkExtent3D extent;
}
struct VkMemoryBarrier {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_MEMORY_BARRIER;
const(void)* pNext;
VkAccessFlags srcAccessMask;
VkAccessFlags dstAccessMask;
}
struct VkBufferMemoryBarrier {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER;
const(void)* pNext;
VkAccessFlags srcAccessMask;
VkAccessFlags dstAccessMask;
uint32_t srcQueueFamilyIndex;
uint32_t dstQueueFamilyIndex;
VkBuffer buffer;
VkDeviceSize offset;
VkDeviceSize size;
}
struct VkImageMemoryBarrier {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER;
const(void)* pNext;
VkAccessFlags srcAccessMask;
VkAccessFlags dstAccessMask;
VkImageLayout oldLayout;
VkImageLayout newLayout;
uint32_t srcQueueFamilyIndex;
uint32_t dstQueueFamilyIndex;
VkImage image;
VkImageSubresourceRange subresourceRange;
}
struct VkRenderPassBeginInfo {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO;
const(void)* pNext;
VkRenderPass renderPass;
VkFramebuffer framebuffer;
VkRect2D renderArea;
uint32_t clearValueCount;
const(VkClearValue)* pClearValues;
}
enum VkSubpassContents {
VK_SUBPASS_CONTENTS_INLINE = 0,
VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS = 1,
}
struct VkDispatchIndirectCommand {
uint32_t x;
uint32_t y;
uint32_t z;
}
struct VkDrawIndexedIndirectCommand {
uint32_t indexCount;
uint32_t instanceCount;
uint32_t firstIndex;
int32_t vertexOffset;
uint32_t firstInstance;
}
struct VkDrawIndirectCommand {
uint32_t vertexCount;
uint32_t instanceCount;
uint32_t firstVertex;
uint32_t firstInstance;
}
}
version(DVulkan_VK_KHR_surface) {
enum VK_KHR_SURFACE_SPEC_VERSION = 25;
enum VK_KHR_SURFACE_EXTENSION_NAME = "VK_KHR_surface";
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkSurfaceKHR});
enum VkSurfaceTransformFlagBitsKHR {
VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR = 0x00000001,
VK_SURFACE_TRANSFORM_ROTATE_90_BIT_KHR = 0x00000002,
VK_SURFACE_TRANSFORM_ROTATE_180_BIT_KHR = 0x00000004,
VK_SURFACE_TRANSFORM_ROTATE_270_BIT_KHR = 0x00000008,
VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_BIT_KHR = 0x00000010,
VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_90_BIT_KHR = 0x00000020,
VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_180_BIT_KHR = 0x00000040,
VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_270_BIT_KHR = 0x00000080,
VK_SURFACE_TRANSFORM_INHERIT_BIT_KHR = 0x00000100,
}
alias VkSurfaceTransformFlagsKHR = VkFlags;
enum VkCompositeAlphaFlagBitsKHR {
VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR = 0x00000001,
VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR = 0x00000002,
VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR = 0x00000004,
VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR = 0x00000008,
}
alias VkCompositeAlphaFlagsKHR = VkFlags;
struct VkSurfaceCapabilitiesKHR {
uint32_t minImageCount;
uint32_t maxImageCount;
VkExtent2D currentExtent;
VkExtent2D minImageExtent;
VkExtent2D maxImageExtent;
uint32_t maxImageArrayLayers;
VkSurfaceTransformFlagsKHR supportedTransforms;
VkSurfaceTransformFlagBitsKHR currentTransform;
VkCompositeAlphaFlagsKHR supportedCompositeAlpha;
VkImageUsageFlags supportedUsageFlags;
}
enum VkColorSpaceKHR {
VK_COLOR_SPACE_SRGB_NONLINEAR_KHR = 0,
VK_COLORSPACE_SRGB_NONLINEAR_KHR = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR,
}
struct VkSurfaceFormatKHR {
VkFormat format;
VkColorSpaceKHR colorSpace;
}
enum VkPresentModeKHR {
VK_PRESENT_MODE_IMMEDIATE_KHR = 0,
VK_PRESENT_MODE_MAILBOX_KHR = 1,
VK_PRESENT_MODE_FIFO_KHR = 2,
VK_PRESENT_MODE_FIFO_RELAXED_KHR = 3,
}
}
version(DVulkan_VK_KHR_swapchain) {
enum VK_KHR_SWAPCHAIN_SPEC_VERSION = 68;
enum VK_KHR_SWAPCHAIN_EXTENSION_NAME = "VK_KHR_swapchain";
alias VkSwapchainCreateFlagsKHR = VkFlags;
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkSwapchainKHR});
struct VkSwapchainCreateInfoKHR {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR;
const(void)* pNext;
VkSwapchainCreateFlagsKHR flags;
VkSurfaceKHR surface;
uint32_t minImageCount;
VkFormat imageFormat;
VkColorSpaceKHR imageColorSpace;
VkExtent2D imageExtent;
uint32_t imageArrayLayers;
VkImageUsageFlags imageUsage;
VkSharingMode imageSharingMode;
uint32_t queueFamilyIndexCount;
const(uint32_t)* pQueueFamilyIndices;
VkSurfaceTransformFlagBitsKHR preTransform;
VkCompositeAlphaFlagBitsKHR compositeAlpha;
VkPresentModeKHR presentMode;
VkBool32 clipped;
VkSwapchainKHR oldSwapchain;
}
struct VkPresentInfoKHR {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_PRESENT_INFO_KHR;
const(void)* pNext;
uint32_t waitSemaphoreCount;
const(VkSemaphore)* pWaitSemaphores;
uint32_t swapchainCount;
const(VkSwapchainKHR)* pSwapchains;
const(uint32_t)* pImageIndices;
VkResult* pResults;
}
}
version(DVulkan_VK_KHR_display) {
enum VkDisplayPlaneAlphaFlagBitsKHR {
VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR = 0x00000001,
VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR = 0x00000002,
VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR = 0x00000004,
VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR = 0x00000008,
}
alias VkDisplayPlaneAlphaFlagsKHR = VkFlags;
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkDisplayKHR});
struct VkDisplayPropertiesKHR {
VkDisplayKHR display;
const(char)* displayName;
VkExtent2D physicalDimensions;
VkExtent2D physicalResolution;
VkSurfaceTransformFlagsKHR supportedTransforms;
VkBool32 planeReorderPossible;
VkBool32 persistentContent;
}
struct VkDisplayModeParametersKHR {
VkExtent2D visibleRegion;
uint32_t refreshRate;
}
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkDisplayModeKHR});
struct VkDisplayModePropertiesKHR {
VkDisplayModeKHR displayMode;
VkDisplayModeParametersKHR parameters;
}
alias VkDisplayModeCreateFlagsKHR = VkFlags;
struct VkDisplayModeCreateInfoKHR {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHR;
const(void)* pNext;
VkDisplayModeCreateFlagsKHR flags;
VkDisplayModeParametersKHR parameters;
}
struct VkDisplayPlaneCapabilitiesKHR {
VkDisplayPlaneAlphaFlagsKHR supportedAlpha;
VkOffset2D minSrcPosition;
VkOffset2D maxSrcPosition;
VkExtent2D minSrcExtent;
VkExtent2D maxSrcExtent;
VkOffset2D minDstPosition;
VkOffset2D maxDstPosition;
VkExtent2D minDstExtent;
VkExtent2D maxDstExtent;
}
struct VkDisplayPlanePropertiesKHR {
VkDisplayKHR currentDisplay;
uint32_t currentStackIndex;
}
alias VkDisplaySurfaceCreateFlagsKHR = VkFlags;
struct VkDisplaySurfaceCreateInfoKHR {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR;
const(void)* pNext;
VkDisplaySurfaceCreateFlagsKHR flags;
VkDisplayModeKHR displayMode;
uint32_t planeIndex;
uint32_t planeStackIndex;
VkSurfaceTransformFlagBitsKHR transform;
float globalAlpha;
VkDisplayPlaneAlphaFlagBitsKHR alphaMode;
VkExtent2D imageExtent;
}
enum VK_KHR_DISPLAY_SPEC_VERSION = 21;
enum VK_KHR_DISPLAY_EXTENSION_NAME = "VK_KHR_display";
}
version(DVulkan_VK_KHR_display_swapchain) {
struct VkDisplayPresentInfoKHR {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_DISPLAY_PRESENT_INFO_KHR;
const(void)* pNext;
VkRect2D srcRect;
VkRect2D dstRect;
VkBool32 persistent;
}
enum VK_KHR_DISPLAY_SWAPCHAIN_SPEC_VERSION = 9;
enum VK_KHR_DISPLAY_SWAPCHAIN_EXTENSION_NAME = "VK_KHR_display_swapchain";
}
version(DVulkan_VK_KHR_sampler_mirror_clamp_to_edge) {
enum VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_SPEC_VERSION = 1;
enum VK_KHR_SAMPLER_MIRROR_CLAMP_TO_EDGE_EXTENSION_NAME = "VK_KHR_sampler_mirror_clamp_to_edge";
}
version(DVulkan_VK_ANDROID_native_buffer) {
enum VK_ANDROID_NATIVE_BUFFER_SPEC_VERSION = 4;
enum VK_ANDROID_NATIVE_BUFFER_NUMBER = 11;
enum VK_ANDROID_NATIVE_BUFFER_NAME = "VK_ANDROID_native_buffer";
}
version(DVulkan_VK_EXT_debug_report) {
enum VkDebugReportObjectTypeEXT {
VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT = 0,
VK_DEBUG_REPORT_OBJECT_TYPE_INSTANCE_EXT = 1,
VK_DEBUG_REPORT_OBJECT_TYPE_PHYSICAL_DEVICE_EXT = 2,
VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT = 3,
VK_DEBUG_REPORT_OBJECT_TYPE_QUEUE_EXT = 4,
VK_DEBUG_REPORT_OBJECT_TYPE_SEMAPHORE_EXT = 5,
VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT = 6,
VK_DEBUG_REPORT_OBJECT_TYPE_FENCE_EXT = 7,
VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_MEMORY_EXT = 8,
VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_EXT = 9,
VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT = 10,
VK_DEBUG_REPORT_OBJECT_TYPE_EVENT_EXT = 11,
VK_DEBUG_REPORT_OBJECT_TYPE_QUERY_POOL_EXT = 12,
VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_VIEW_EXT = 13,
VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_VIEW_EXT = 14,
VK_DEBUG_REPORT_OBJECT_TYPE_SHADER_MODULE_EXT = 15,
VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_CACHE_EXT = 16,
VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_LAYOUT_EXT = 17,
VK_DEBUG_REPORT_OBJECT_TYPE_RENDER_PASS_EXT = 18,
VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_EXT = 19,
VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_SET_LAYOUT_EXT = 20,
VK_DEBUG_REPORT_OBJECT_TYPE_SAMPLER_EXT = 21,
VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_POOL_EXT = 22,
VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_SET_EXT = 23,
VK_DEBUG_REPORT_OBJECT_TYPE_FRAMEBUFFER_EXT = 24,
VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_POOL_EXT = 25,
VK_DEBUG_REPORT_OBJECT_TYPE_SURFACE_KHR_EXT = 26,
VK_DEBUG_REPORT_OBJECT_TYPE_SWAPCHAIN_KHR_EXT = 27,
VK_DEBUG_REPORT_OBJECT_TYPE_DEBUG_REPORT_EXT = 28,
}
enum VkDebugReportErrorEXT {
VK_DEBUG_REPORT_ERROR_NONE_EXT = 0,
VK_DEBUG_REPORT_ERROR_CALLBACK_REF_EXT = 1,
}
enum VK_EXT_DEBUG_REPORT_SPEC_VERSION = 3;
enum VK_EXT_DEBUG_REPORT_EXTENSION_NAME = "VK_EXT_debug_report";
enum VK_STRUCTURE_TYPE_DEBUG_REPORT_CREATE_INFO_EXT = VkStructureType.VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT;
enum VkDebugReportFlagBitsEXT {
VK_DEBUG_REPORT_INFORMATION_BIT_EXT = 0x00000001,
VK_DEBUG_REPORT_WARNING_BIT_EXT = 0x00000002,
VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT = 0x00000004,
VK_DEBUG_REPORT_ERROR_BIT_EXT = 0x00000008,
VK_DEBUG_REPORT_DEBUG_BIT_EXT = 0x00000010,
}
alias VkDebugReportFlagsEXT = VkFlags;
alias PFN_vkDebugReportCallbackEXT = extern(C) VkBool32 function(
VkDebugReportFlagsEXT flags,
VkDebugReportObjectTypeEXT objectType,
uint64_t object,
size_t location,
int32_t messageCode,
const char* pLayerPrefix,
const char* pMessage,
void* pUserData);
struct VkDebugReportCallbackCreateInfoEXT {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT;
const(void)* pNext;
VkDebugReportFlagsEXT flags;
PFN_vkDebugReportCallbackEXT pfnCallback;
void* pUserData;
}
mixin(VK_DEFINE_NON_DISPATCHABLE_HANDLE!q{VkDebugReportCallbackEXT});
}
version(DVulkan_VK_IMG_filter_cubic) {
enum VK_IMG_FILTER_CUBIC_SPEC_VERSION = 1;
enum VK_IMG_FILTER_CUBIC_EXTENSION_NAME = "VK_IMG_filter_cubic";
}
version(DVulkan_VK_EXT_debug_marker) {
struct VkDebugMarkerObjectNameInfoEXT {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_NAME_INFO_EXT;
const(void)* pNext;
VkDebugReportObjectTypeEXT objectType;
uint64_t object;
const(char)* pObjectName;
}
struct VkDebugMarkerObjectTagInfoEXT {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_TAG_INFO_EXT;
const(void)* pNext;
VkDebugReportObjectTypeEXT objectType;
uint64_t object;
uint64_t tagName;
size_t tagSize;
const(void)* pTag;
}
struct VkDebugMarkerMarkerInfoEXT {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_DEBUG_MARKER_MARKER_INFO_EXT;
const(void)* pNext;
const(char)* pMarkerName;
float[4] color;
}
enum VK_EXT_DEBUG_MARKER_SPEC_VERSION = 3;
enum VK_EXT_DEBUG_MARKER_EXTENSION_NAME = "VK_EXT_debug_marker";
}
version(DVulkan_VK_IMG_format_pvrtc) {
enum VK_IMG_FORMAT_PVRTC_SPEC_VERSION = 1;
enum VK_IMG_FORMAT_PVRTC_EXTENSION_NAME = "VK_IMG_format_pvrtc";
}
version(DVulkan_VK_EXT_validation_flags) {
enum VkValidationCheckEXT {
VK_VALIDATION_CHECK_ALL_EXT = 0,
}
struct VkValidationFlagsEXT {
VkStructureType sType = VkStructureType.VK_STRUCTURE_TYPE_VALIDATION_FLAGS_EXT;
const(void)* pNext;
uint32_t disabledValidationCheckCount;
VkValidationCheckEXT* pDisabledValidationChecks;
}
enum VK_EXT_VALIDATION_FLAGS_SPEC_VERSION = 1;
enum VK_EXT_VALIDATION_FLAGS_EXTENSION_NAME = "VK_EXT_validation_flags";
}
version(DVulkanGlobalEnums) {
version(DVulkan_VK_VERSION_1_0) {
enum VK_PIPELINE_CACHE_HEADER_VERSION_ONE = VkPipelineCacheHeaderVersion.VK_PIPELINE_CACHE_HEADER_VERSION_ONE;
enum VK_SUCCESS = VkResult.VK_SUCCESS;
enum VK_NOT_READY = VkResult.VK_NOT_READY;
enum VK_TIMEOUT = VkResult.VK_TIMEOUT;
enum VK_EVENT_SET = VkResult.VK_EVENT_SET;
enum VK_EVENT_RESET = VkResult.VK_EVENT_RESET;
enum VK_INCOMPLETE = VkResult.VK_INCOMPLETE;
enum VK_ERROR_OUT_OF_HOST_MEMORY = VkResult.VK_ERROR_OUT_OF_HOST_MEMORY;
enum VK_ERROR_OUT_OF_DEVICE_MEMORY = VkResult.VK_ERROR_OUT_OF_DEVICE_MEMORY;
enum VK_ERROR_INITIALIZATION_FAILED = VkResult.VK_ERROR_INITIALIZATION_FAILED;
enum VK_ERROR_DEVICE_LOST = VkResult.VK_ERROR_DEVICE_LOST;
enum VK_ERROR_MEMORY_MAP_FAILED = VkResult.VK_ERROR_MEMORY_MAP_FAILED;
enum VK_ERROR_LAYER_NOT_PRESENT = VkResult.VK_ERROR_LAYER_NOT_PRESENT;
enum VK_ERROR_EXTENSION_NOT_PRESENT = VkResult.VK_ERROR_EXTENSION_NOT_PRESENT;
enum VK_ERROR_FEATURE_NOT_PRESENT = VkResult.VK_ERROR_FEATURE_NOT_PRESENT;
enum VK_ERROR_INCOMPATIBLE_DRIVER = VkResult.VK_ERROR_INCOMPATIBLE_DRIVER;
enum VK_ERROR_TOO_MANY_OBJECTS = VkResult.VK_ERROR_TOO_MANY_OBJECTS;
enum VK_ERROR_FORMAT_NOT_SUPPORTED = VkResult.VK_ERROR_FORMAT_NOT_SUPPORTED;
enum VK_ERROR_FRAGMENTED_POOL = VkResult.VK_ERROR_FRAGMENTED_POOL;
enum VK_ERROR_SURFACE_LOST_KHR = VkResult.VK_ERROR_SURFACE_LOST_KHR;
enum VK_ERROR_NATIVE_WINDOW_IN_USE_KHR = VkResult.VK_ERROR_NATIVE_WINDOW_IN_USE_KHR;
enum VK_SUBOPTIMAL_KHR = VkResult.VK_SUBOPTIMAL_KHR;
enum VK_ERROR_OUT_OF_DATE_KHR = VkResult.VK_ERROR_OUT_OF_DATE_KHR;
enum VK_ERROR_INCOMPATIBLE_DISPLAY_KHR = VkResult.VK_ERROR_INCOMPATIBLE_DISPLAY_KHR;
enum VK_ERROR_VALIDATION_FAILED_EXT = VkResult.VK_ERROR_VALIDATION_FAILED_EXT;
enum VK_ERROR_INVALID_SHADER_NV = VkResult.VK_ERROR_INVALID_SHADER_NV;
enum VK_NV_EXTENSION_1_ERROR = VkResult.VK_NV_EXTENSION_1_ERROR;
enum VK_STRUCTURE_TYPE_APPLICATION_INFO = VkStructureType.VK_STRUCTURE_TYPE_APPLICATION_INFO;
enum VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_INSTANCE_CREATE_INFO;
enum VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO;
enum VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO;
enum VK_STRUCTURE_TYPE_SUBMIT_INFO = VkStructureType.VK_STRUCTURE_TYPE_SUBMIT_INFO;
enum VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_MEMORY_ALLOCATE_INFO;
enum VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE = VkStructureType.VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE;
enum VK_STRUCTURE_TYPE_BIND_SPARSE_INFO = VkStructureType.VK_STRUCTURE_TYPE_BIND_SPARSE_INFO;
enum VK_STRUCTURE_TYPE_FENCE_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_FENCE_CREATE_INFO;
enum VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO;
enum VK_STRUCTURE_TYPE_EVENT_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_EVENT_CREATE_INFO;
enum VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_QUERY_POOL_CREATE_INFO;
enum VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_BUFFER_CREATE_INFO;
enum VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_BUFFER_VIEW_CREATE_INFO;
enum VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO;
enum VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO;
enum VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO;
enum VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_CACHE_CREATE_INFO;
enum VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO;
enum VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_VERTEX_INPUT_STATE_CREATE_INFO;
enum VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_INPUT_ASSEMBLY_STATE_CREATE_INFO;
enum VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_TESSELLATION_STATE_CREATE_INFO;
enum VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_VIEWPORT_STATE_CREATE_INFO;
enum VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO;
enum VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_MULTISAMPLE_STATE_CREATE_INFO;
enum VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO;
enum VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_COLOR_BLEND_STATE_CREATE_INFO;
enum VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO;
enum VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO;
enum VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO;
enum VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_LAYOUT_CREATE_INFO;
enum VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_SAMPLER_CREATE_INFO;
enum VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_DESCRIPTOR_SET_LAYOUT_CREATE_INFO;
enum VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO;
enum VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO;
enum VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET = VkStructureType.VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET;
enum VK_STRUCTURE_TYPE_COPY_DESCRIPTOR_SET = VkStructureType.VK_STRUCTURE_TYPE_COPY_DESCRIPTOR_SET;
enum VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_FRAMEBUFFER_CREATE_INFO;
enum VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO;
enum VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO;
enum VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_COMMAND_BUFFER_ALLOCATE_INFO;
enum VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO = VkStructureType.VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO;
enum VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO = VkStructureType.VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO;
enum VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO = VkStructureType.VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO;
enum VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER = VkStructureType.VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER;
enum VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER = VkStructureType.VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER;
enum VK_STRUCTURE_TYPE_MEMORY_BARRIER = VkStructureType.VK_STRUCTURE_TYPE_MEMORY_BARRIER;
enum VK_STRUCTURE_TYPE_LOADER_INSTANCE_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_LOADER_INSTANCE_CREATE_INFO;
enum VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO = VkStructureType.VK_STRUCTURE_TYPE_LOADER_DEVICE_CREATE_INFO;
enum VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR = VkStructureType.VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR;
enum VK_STRUCTURE_TYPE_PRESENT_INFO_KHR = VkStructureType.VK_STRUCTURE_TYPE_PRESENT_INFO_KHR;
enum VK_STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHR = VkStructureType.VK_STRUCTURE_TYPE_DISPLAY_MODE_CREATE_INFO_KHR;
enum VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR = VkStructureType.VK_STRUCTURE_TYPE_DISPLAY_SURFACE_CREATE_INFO_KHR;
enum VK_STRUCTURE_TYPE_DISPLAY_PRESENT_INFO_KHR = VkStructureType.VK_STRUCTURE_TYPE_DISPLAY_PRESENT_INFO_KHR;
enum VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR = VkStructureType.VK_STRUCTURE_TYPE_XLIB_SURFACE_CREATE_INFO_KHR;
enum VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR = VkStructureType.VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR;
enum VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR = VkStructureType.VK_STRUCTURE_TYPE_WAYLAND_SURFACE_CREATE_INFO_KHR;
enum VK_STRUCTURE_TYPE_MIR_SURFACE_CREATE_INFO_KHR = VkStructureType.VK_STRUCTURE_TYPE_MIR_SURFACE_CREATE_INFO_KHR;
enum VK_STRUCTURE_TYPE_ANDROID_SURFACE_CREATE_INFO_KHR = VkStructureType.VK_STRUCTURE_TYPE_ANDROID_SURFACE_CREATE_INFO_KHR;
enum VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR = VkStructureType.VK_STRUCTURE_TYPE_WIN32_SURFACE_CREATE_INFO_KHR;
enum VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT = VkStructureType.VK_STRUCTURE_TYPE_DEBUG_REPORT_CALLBACK_CREATE_INFO_EXT;
enum VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_RASTERIZATION_ORDER_AMD = VkStructureType.VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_RASTERIZATION_ORDER_AMD;
enum VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_NAME_INFO_EXT = VkStructureType.VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_NAME_INFO_EXT;
enum VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_TAG_INFO_EXT = VkStructureType.VK_STRUCTURE_TYPE_DEBUG_MARKER_OBJECT_TAG_INFO_EXT;
enum VK_STRUCTURE_TYPE_DEBUG_MARKER_MARKER_INFO_EXT = VkStructureType.VK_STRUCTURE_TYPE_DEBUG_MARKER_MARKER_INFO_EXT;
enum VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_IMAGE_CREATE_INFO_NV = VkStructureType.VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_IMAGE_CREATE_INFO_NV;
enum VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_BUFFER_CREATE_INFO_NV = VkStructureType.VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_BUFFER_CREATE_INFO_NV;
enum VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_MEMORY_ALLOCATE_INFO_NV = VkStructureType.VK_STRUCTURE_TYPE_DEDICATED_ALLOCATION_MEMORY_ALLOCATE_INFO_NV;
enum VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO_NV = VkStructureType.VK_STRUCTURE_TYPE_EXTERNAL_MEMORY_IMAGE_CREATE_INFO_NV;
enum VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_NV = VkStructureType.VK_STRUCTURE_TYPE_EXPORT_MEMORY_ALLOCATE_INFO_NV;
enum VK_STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_NV = VkStructureType.VK_STRUCTURE_TYPE_IMPORT_MEMORY_WIN32_HANDLE_INFO_NV;
enum VK_STRUCTURE_TYPE_EXPORT_MEMORY_WIN32_HANDLE_INFO_NV = VkStructureType.VK_STRUCTURE_TYPE_EXPORT_MEMORY_WIN32_HANDLE_INFO_NV;
enum VK_STRUCTURE_TYPE_WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_NV = VkStructureType.VK_STRUCTURE_TYPE_WIN32_KEYED_MUTEX_ACQUIRE_RELEASE_INFO_NV;
enum VK_STRUCTURE_TYPE_VALIDATION_FLAGS_EXT = VkStructureType.VK_STRUCTURE_TYPE_VALIDATION_FLAGS_EXT;
enum VK_SYSTEM_ALLOCATION_SCOPE_COMMAND = VkSystemAllocationScope.VK_SYSTEM_ALLOCATION_SCOPE_COMMAND;
enum VK_SYSTEM_ALLOCATION_SCOPE_OBJECT = VkSystemAllocationScope.VK_SYSTEM_ALLOCATION_SCOPE_OBJECT;
enum VK_SYSTEM_ALLOCATION_SCOPE_CACHE = VkSystemAllocationScope.VK_SYSTEM_ALLOCATION_SCOPE_CACHE;
enum VK_SYSTEM_ALLOCATION_SCOPE_DEVICE = VkSystemAllocationScope.VK_SYSTEM_ALLOCATION_SCOPE_DEVICE;
enum VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE = VkSystemAllocationScope.VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE;
enum VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE = VkInternalAllocationType.VK_INTERNAL_ALLOCATION_TYPE_EXECUTABLE;
enum VK_FORMAT_UNDEFINED = VkFormat.VK_FORMAT_UNDEFINED;
enum VK_FORMAT_R4G4_UNORM_PACK8 = VkFormat.VK_FORMAT_R4G4_UNORM_PACK8;
enum VK_FORMAT_R4G4B4A4_UNORM_PACK16 = VkFormat.VK_FORMAT_R4G4B4A4_UNORM_PACK16;
enum VK_FORMAT_B4G4R4A4_UNORM_PACK16 = VkFormat.VK_FORMAT_B4G4R4A4_UNORM_PACK16;
enum VK_FORMAT_R5G6B5_UNORM_PACK16 = VkFormat.VK_FORMAT_R5G6B5_UNORM_PACK16;
enum VK_FORMAT_B5G6R5_UNORM_PACK16 = VkFormat.VK_FORMAT_B5G6R5_UNORM_PACK16;
enum VK_FORMAT_R5G5B5A1_UNORM_PACK16 = VkFormat.VK_FORMAT_R5G5B5A1_UNORM_PACK16;
enum VK_FORMAT_B5G5R5A1_UNORM_PACK16 = VkFormat.VK_FORMAT_B5G5R5A1_UNORM_PACK16;
enum VK_FORMAT_A1R5G5B5_UNORM_PACK16 = VkFormat.VK_FORMAT_A1R5G5B5_UNORM_PACK16;
enum VK_FORMAT_R8_UNORM = VkFormat.VK_FORMAT_R8_UNORM;
enum VK_FORMAT_R8_SNORM = VkFormat.VK_FORMAT_R8_SNORM;
enum VK_FORMAT_R8_USCALED = VkFormat.VK_FORMAT_R8_USCALED;
enum VK_FORMAT_R8_SSCALED = VkFormat.VK_FORMAT_R8_SSCALED;
enum VK_FORMAT_R8_UINT = VkFormat.VK_FORMAT_R8_UINT;
enum VK_FORMAT_R8_SINT = VkFormat.VK_FORMAT_R8_SINT;
enum VK_FORMAT_R8_SRGB = VkFormat.VK_FORMAT_R8_SRGB;
enum VK_FORMAT_R8G8_UNORM = VkFormat.VK_FORMAT_R8G8_UNORM;
enum VK_FORMAT_R8G8_SNORM = VkFormat.VK_FORMAT_R8G8_SNORM;
enum VK_FORMAT_R8G8_USCALED = VkFormat.VK_FORMAT_R8G8_USCALED;
enum VK_FORMAT_R8G8_SSCALED = VkFormat.VK_FORMAT_R8G8_SSCALED;
enum VK_FORMAT_R8G8_UINT = VkFormat.VK_FORMAT_R8G8_UINT;
enum VK_FORMAT_R8G8_SINT = VkFormat.VK_FORMAT_R8G8_SINT;
enum VK_FORMAT_R8G8_SRGB = VkFormat.VK_FORMAT_R8G8_SRGB;
enum VK_FORMAT_R8G8B8_UNORM = VkFormat.VK_FORMAT_R8G8B8_UNORM;
enum VK_FORMAT_R8G8B8_SNORM = VkFormat.VK_FORMAT_R8G8B8_SNORM;
enum VK_FORMAT_R8G8B8_USCALED = VkFormat.VK_FORMAT_R8G8B8_USCALED;
enum VK_FORMAT_R8G8B8_SSCALED = VkFormat.VK_FORMAT_R8G8B8_SSCALED;
enum VK_FORMAT_R8G8B8_UINT = VkFormat.VK_FORMAT_R8G8B8_UINT;
enum VK_FORMAT_R8G8B8_SINT = VkFormat.VK_FORMAT_R8G8B8_SINT;
enum VK_FORMAT_R8G8B8_SRGB = VkFormat.VK_FORMAT_R8G8B8_SRGB;
enum VK_FORMAT_B8G8R8_UNORM = VkFormat.VK_FORMAT_B8G8R8_UNORM;
enum VK_FORMAT_B8G8R8_SNORM = VkFormat.VK_FORMAT_B8G8R8_SNORM;
enum VK_FORMAT_B8G8R8_USCALED = VkFormat.VK_FORMAT_B8G8R8_USCALED;
enum VK_FORMAT_B8G8R8_SSCALED = VkFormat.VK_FORMAT_B8G8R8_SSCALED;
enum VK_FORMAT_B8G8R8_UINT = VkFormat.VK_FORMAT_B8G8R8_UINT;
enum VK_FORMAT_B8G8R8_SINT = VkFormat.VK_FORMAT_B8G8R8_SINT;
enum VK_FORMAT_B8G8R8_SRGB = VkFormat.VK_FORMAT_B8G8R8_SRGB;
enum VK_FORMAT_R8G8B8A8_UNORM = VkFormat.VK_FORMAT_R8G8B8A8_UNORM;
enum VK_FORMAT_R8G8B8A8_SNORM = VkFormat.VK_FORMAT_R8G8B8A8_SNORM;
enum VK_FORMAT_R8G8B8A8_USCALED = VkFormat.VK_FORMAT_R8G8B8A8_USCALED;
enum VK_FORMAT_R8G8B8A8_SSCALED = VkFormat.VK_FORMAT_R8G8B8A8_SSCALED;
enum VK_FORMAT_R8G8B8A8_UINT = VkFormat.VK_FORMAT_R8G8B8A8_UINT;
enum VK_FORMAT_R8G8B8A8_SINT = VkFormat.VK_FORMAT_R8G8B8A8_SINT;
enum VK_FORMAT_R8G8B8A8_SRGB = VkFormat.VK_FORMAT_R8G8B8A8_SRGB;
enum VK_FORMAT_B8G8R8A8_UNORM = VkFormat.VK_FORMAT_B8G8R8A8_UNORM;
enum VK_FORMAT_B8G8R8A8_SNORM = VkFormat.VK_FORMAT_B8G8R8A8_SNORM;
enum VK_FORMAT_B8G8R8A8_USCALED = VkFormat.VK_FORMAT_B8G8R8A8_USCALED;
enum VK_FORMAT_B8G8R8A8_SSCALED = VkFormat.VK_FORMAT_B8G8R8A8_SSCALED;
enum VK_FORMAT_B8G8R8A8_UINT = VkFormat.VK_FORMAT_B8G8R8A8_UINT;
enum VK_FORMAT_B8G8R8A8_SINT = VkFormat.VK_FORMAT_B8G8R8A8_SINT;
enum VK_FORMAT_B8G8R8A8_SRGB = VkFormat.VK_FORMAT_B8G8R8A8_SRGB;
enum VK_FORMAT_A8B8G8R8_UNORM_PACK32 = VkFormat.VK_FORMAT_A8B8G8R8_UNORM_PACK32;
enum VK_FORMAT_A8B8G8R8_SNORM_PACK32 = VkFormat.VK_FORMAT_A8B8G8R8_SNORM_PACK32;
enum VK_FORMAT_A8B8G8R8_USCALED_PACK32 = VkFormat.VK_FORMAT_A8B8G8R8_USCALED_PACK32;
enum VK_FORMAT_A8B8G8R8_SSCALED_PACK32 = VkFormat.VK_FORMAT_A8B8G8R8_SSCALED_PACK32;
enum VK_FORMAT_A8B8G8R8_UINT_PACK32 = VkFormat.VK_FORMAT_A8B8G8R8_UINT_PACK32;
enum VK_FORMAT_A8B8G8R8_SINT_PACK32 = VkFormat.VK_FORMAT_A8B8G8R8_SINT_PACK32;
enum VK_FORMAT_A8B8G8R8_SRGB_PACK32 = VkFormat.VK_FORMAT_A8B8G8R8_SRGB_PACK32;
enum VK_FORMAT_A2R10G10B10_UNORM_PACK32 = VkFormat.VK_FORMAT_A2R10G10B10_UNORM_PACK32;
enum VK_FORMAT_A2R10G10B10_SNORM_PACK32 = VkFormat.VK_FORMAT_A2R10G10B10_SNORM_PACK32;
enum VK_FORMAT_A2R10G10B10_USCALED_PACK32 = VkFormat.VK_FORMAT_A2R10G10B10_USCALED_PACK32;
enum VK_FORMAT_A2R10G10B10_SSCALED_PACK32 = VkFormat.VK_FORMAT_A2R10G10B10_SSCALED_PACK32;
enum VK_FORMAT_A2R10G10B10_UINT_PACK32 = VkFormat.VK_FORMAT_A2R10G10B10_UINT_PACK32;
enum VK_FORMAT_A2R10G10B10_SINT_PACK32 = VkFormat.VK_FORMAT_A2R10G10B10_SINT_PACK32;
enum VK_FORMAT_A2B10G10R10_UNORM_PACK32 = VkFormat.VK_FORMAT_A2B10G10R10_UNORM_PACK32;
enum VK_FORMAT_A2B10G10R10_SNORM_PACK32 = VkFormat.VK_FORMAT_A2B10G10R10_SNORM_PACK32;
enum VK_FORMAT_A2B10G10R10_USCALED_PACK32 = VkFormat.VK_FORMAT_A2B10G10R10_USCALED_PACK32;
enum VK_FORMAT_A2B10G10R10_SSCALED_PACK32 = VkFormat.VK_FORMAT_A2B10G10R10_SSCALED_PACK32;
enum VK_FORMAT_A2B10G10R10_UINT_PACK32 = VkFormat.VK_FORMAT_A2B10G10R10_UINT_PACK32;
enum VK_FORMAT_A2B10G10R10_SINT_PACK32 = VkFormat.VK_FORMAT_A2B10G10R10_SINT_PACK32;
enum VK_FORMAT_R16_UNORM = VkFormat.VK_FORMAT_R16_UNORM;
enum VK_FORMAT_R16_SNORM = VkFormat.VK_FORMAT_R16_SNORM;
enum VK_FORMAT_R16_USCALED = VkFormat.VK_FORMAT_R16_USCALED;
enum VK_FORMAT_R16_SSCALED = VkFormat.VK_FORMAT_R16_SSCALED;
enum VK_FORMAT_R16_UINT = VkFormat.VK_FORMAT_R16_UINT;
enum VK_FORMAT_R16_SINT = VkFormat.VK_FORMAT_R16_SINT;
enum VK_FORMAT_R16_SFLOAT = VkFormat.VK_FORMAT_R16_SFLOAT;
enum VK_FORMAT_R16G16_UNORM = VkFormat.VK_FORMAT_R16G16_UNORM;
enum VK_FORMAT_R16G16_SNORM = VkFormat.VK_FORMAT_R16G16_SNORM;
enum VK_FORMAT_R16G16_USCALED = VkFormat.VK_FORMAT_R16G16_USCALED;
enum VK_FORMAT_R16G16_SSCALED = VkFormat.VK_FORMAT_R16G16_SSCALED;
enum VK_FORMAT_R16G16_UINT = VkFormat.VK_FORMAT_R16G16_UINT;
enum VK_FORMAT_R16G16_SINT = VkFormat.VK_FORMAT_R16G16_SINT;
enum VK_FORMAT_R16G16_SFLOAT = VkFormat.VK_FORMAT_R16G16_SFLOAT;
enum VK_FORMAT_R16G16B16_UNORM = VkFormat.VK_FORMAT_R16G16B16_UNORM;
enum VK_FORMAT_R16G16B16_SNORM = VkFormat.VK_FORMAT_R16G16B16_SNORM;
enum VK_FORMAT_R16G16B16_USCALED = VkFormat.VK_FORMAT_R16G16B16_USCALED;
enum VK_FORMAT_R16G16B16_SSCALED = VkFormat.VK_FORMAT_R16G16B16_SSCALED;
enum VK_FORMAT_R16G16B16_UINT = VkFormat.VK_FORMAT_R16G16B16_UINT;
enum VK_FORMAT_R16G16B16_SINT = VkFormat.VK_FORMAT_R16G16B16_SINT;
enum VK_FORMAT_R16G16B16_SFLOAT = VkFormat.VK_FORMAT_R16G16B16_SFLOAT;
enum VK_FORMAT_R16G16B16A16_UNORM = VkFormat.VK_FORMAT_R16G16B16A16_UNORM;
enum VK_FORMAT_R16G16B16A16_SNORM = VkFormat.VK_FORMAT_R16G16B16A16_SNORM;
enum VK_FORMAT_R16G16B16A16_USCALED = VkFormat.VK_FORMAT_R16G16B16A16_USCALED;
enum VK_FORMAT_R16G16B16A16_SSCALED = VkFormat.VK_FORMAT_R16G16B16A16_SSCALED;
enum VK_FORMAT_R16G16B16A16_UINT = VkFormat.VK_FORMAT_R16G16B16A16_UINT;
enum VK_FORMAT_R16G16B16A16_SINT = VkFormat.VK_FORMAT_R16G16B16A16_SINT;
enum VK_FORMAT_R16G16B16A16_SFLOAT = VkFormat.VK_FORMAT_R16G16B16A16_SFLOAT;
enum VK_FORMAT_R32_UINT = VkFormat.VK_FORMAT_R32_UINT;
enum VK_FORMAT_R32_SINT = VkFormat.VK_FORMAT_R32_SINT;
enum VK_FORMAT_R32_SFLOAT = VkFormat.VK_FORMAT_R32_SFLOAT;
enum VK_FORMAT_R32G32_UINT = VkFormat.VK_FORMAT_R32G32_UINT;
enum VK_FORMAT_R32G32_SINT = VkFormat.VK_FORMAT_R32G32_SINT;
enum VK_FORMAT_R32G32_SFLOAT = VkFormat.VK_FORMAT_R32G32_SFLOAT;
enum VK_FORMAT_R32G32B32_UINT = VkFormat.VK_FORMAT_R32G32B32_UINT;
enum VK_FORMAT_R32G32B32_SINT = VkFormat.VK_FORMAT_R32G32B32_SINT;
enum VK_FORMAT_R32G32B32_SFLOAT = VkFormat.VK_FORMAT_R32G32B32_SFLOAT;
enum VK_FORMAT_R32G32B32A32_UINT = VkFormat.VK_FORMAT_R32G32B32A32_UINT;
enum VK_FORMAT_R32G32B32A32_SINT = VkFormat.VK_FORMAT_R32G32B32A32_SINT;
enum VK_FORMAT_R32G32B32A32_SFLOAT = VkFormat.VK_FORMAT_R32G32B32A32_SFLOAT;
enum VK_FORMAT_R64_UINT = VkFormat.VK_FORMAT_R64_UINT;
enum VK_FORMAT_R64_SINT = VkFormat.VK_FORMAT_R64_SINT;
enum VK_FORMAT_R64_SFLOAT = VkFormat.VK_FORMAT_R64_SFLOAT;
enum VK_FORMAT_R64G64_UINT = VkFormat.VK_FORMAT_R64G64_UINT;
enum VK_FORMAT_R64G64_SINT = VkFormat.VK_FORMAT_R64G64_SINT;
enum VK_FORMAT_R64G64_SFLOAT = VkFormat.VK_FORMAT_R64G64_SFLOAT;
enum VK_FORMAT_R64G64B64_UINT = VkFormat.VK_FORMAT_R64G64B64_UINT;
enum VK_FORMAT_R64G64B64_SINT = VkFormat.VK_FORMAT_R64G64B64_SINT;
enum VK_FORMAT_R64G64B64_SFLOAT = VkFormat.VK_FORMAT_R64G64B64_SFLOAT;
enum VK_FORMAT_R64G64B64A64_UINT = VkFormat.VK_FORMAT_R64G64B64A64_UINT;
enum VK_FORMAT_R64G64B64A64_SINT = VkFormat.VK_FORMAT_R64G64B64A64_SINT;
enum VK_FORMAT_R64G64B64A64_SFLOAT = VkFormat.VK_FORMAT_R64G64B64A64_SFLOAT;
enum VK_FORMAT_B10G11R11_UFLOAT_PACK32 = VkFormat.VK_FORMAT_B10G11R11_UFLOAT_PACK32;
enum VK_FORMAT_E5B9G9R9_UFLOAT_PACK32 = VkFormat.VK_FORMAT_E5B9G9R9_UFLOAT_PACK32;
enum VK_FORMAT_D16_UNORM = VkFormat.VK_FORMAT_D16_UNORM;
enum VK_FORMAT_X8_D24_UNORM_PACK32 = VkFormat.VK_FORMAT_X8_D24_UNORM_PACK32;
enum VK_FORMAT_D32_SFLOAT = VkFormat.VK_FORMAT_D32_SFLOAT;
enum VK_FORMAT_S8_UINT = VkFormat.VK_FORMAT_S8_UINT;
enum VK_FORMAT_D16_UNORM_S8_UINT = VkFormat.VK_FORMAT_D16_UNORM_S8_UINT;
enum VK_FORMAT_D24_UNORM_S8_UINT = VkFormat.VK_FORMAT_D24_UNORM_S8_UINT;
enum VK_FORMAT_D32_SFLOAT_S8_UINT = VkFormat.VK_FORMAT_D32_SFLOAT_S8_UINT;
enum VK_FORMAT_BC1_RGB_UNORM_BLOCK = VkFormat.VK_FORMAT_BC1_RGB_UNORM_BLOCK;
enum VK_FORMAT_BC1_RGB_SRGB_BLOCK = VkFormat.VK_FORMAT_BC1_RGB_SRGB_BLOCK;
enum VK_FORMAT_BC1_RGBA_UNORM_BLOCK = VkFormat.VK_FORMAT_BC1_RGBA_UNORM_BLOCK;
enum VK_FORMAT_BC1_RGBA_SRGB_BLOCK = VkFormat.VK_FORMAT_BC1_RGBA_SRGB_BLOCK;
enum VK_FORMAT_BC2_UNORM_BLOCK = VkFormat.VK_FORMAT_BC2_UNORM_BLOCK;
enum VK_FORMAT_BC2_SRGB_BLOCK = VkFormat.VK_FORMAT_BC2_SRGB_BLOCK;
enum VK_FORMAT_BC3_UNORM_BLOCK = VkFormat.VK_FORMAT_BC3_UNORM_BLOCK;
enum VK_FORMAT_BC3_SRGB_BLOCK = VkFormat.VK_FORMAT_BC3_SRGB_BLOCK;
enum VK_FORMAT_BC4_UNORM_BLOCK = VkFormat.VK_FORMAT_BC4_UNORM_BLOCK;
enum VK_FORMAT_BC4_SNORM_BLOCK = VkFormat.VK_FORMAT_BC4_SNORM_BLOCK;
enum VK_FORMAT_BC5_UNORM_BLOCK = VkFormat.VK_FORMAT_BC5_UNORM_BLOCK;
enum VK_FORMAT_BC5_SNORM_BLOCK = VkFormat.VK_FORMAT_BC5_SNORM_BLOCK;
enum VK_FORMAT_BC6H_UFLOAT_BLOCK = VkFormat.VK_FORMAT_BC6H_UFLOAT_BLOCK;
enum VK_FORMAT_BC6H_SFLOAT_BLOCK = VkFormat.VK_FORMAT_BC6H_SFLOAT_BLOCK;
enum VK_FORMAT_BC7_UNORM_BLOCK = VkFormat.VK_FORMAT_BC7_UNORM_BLOCK;
enum VK_FORMAT_BC7_SRGB_BLOCK = VkFormat.VK_FORMAT_BC7_SRGB_BLOCK;
enum VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK = VkFormat.VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK;
enum VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK = VkFormat.VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK;
enum VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK = VkFormat.VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK;
enum VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK = VkFormat.VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK;
enum VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK = VkFormat.VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK;
enum VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK = VkFormat.VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK;
enum VK_FORMAT_EAC_R11_UNORM_BLOCK = VkFormat.VK_FORMAT_EAC_R11_UNORM_BLOCK;
enum VK_FORMAT_EAC_R11_SNORM_BLOCK = VkFormat.VK_FORMAT_EAC_R11_SNORM_BLOCK;
enum VK_FORMAT_EAC_R11G11_UNORM_BLOCK = VkFormat.VK_FORMAT_EAC_R11G11_UNORM_BLOCK;
enum VK_FORMAT_EAC_R11G11_SNORM_BLOCK = VkFormat.VK_FORMAT_EAC_R11G11_SNORM_BLOCK;
enum VK_FORMAT_ASTC_4x4_UNORM_BLOCK = VkFormat.VK_FORMAT_ASTC_4x4_UNORM_BLOCK;
enum VK_FORMAT_ASTC_4x4_SRGB_BLOCK = VkFormat.VK_FORMAT_ASTC_4x4_SRGB_BLOCK;
enum VK_FORMAT_ASTC_5x4_UNORM_BLOCK = VkFormat.VK_FORMAT_ASTC_5x4_UNORM_BLOCK;
enum VK_FORMAT_ASTC_5x4_SRGB_BLOCK = VkFormat.VK_FORMAT_ASTC_5x4_SRGB_BLOCK;
enum VK_FORMAT_ASTC_5x5_UNORM_BLOCK = VkFormat.VK_FORMAT_ASTC_5x5_UNORM_BLOCK;
enum VK_FORMAT_ASTC_5x5_SRGB_BLOCK = VkFormat.VK_FORMAT_ASTC_5x5_SRGB_BLOCK;
enum VK_FORMAT_ASTC_6x5_UNORM_BLOCK = VkFormat.VK_FORMAT_ASTC_6x5_UNORM_BLOCK;
enum VK_FORMAT_ASTC_6x5_SRGB_BLOCK = VkFormat.VK_FORMAT_ASTC_6x5_SRGB_BLOCK;
enum VK_FORMAT_ASTC_6x6_UNORM_BLOCK = VkFormat.VK_FORMAT_ASTC_6x6_UNORM_BLOCK;
enum VK_FORMAT_ASTC_6x6_SRGB_BLOCK = VkFormat.VK_FORMAT_ASTC_6x6_SRGB_BLOCK;
enum VK_FORMAT_ASTC_8x5_UNORM_BLOCK = VkFormat.VK_FORMAT_ASTC_8x5_UNORM_BLOCK;
enum VK_FORMAT_ASTC_8x5_SRGB_BLOCK = VkFormat.VK_FORMAT_ASTC_8x5_SRGB_BLOCK;
enum VK_FORMAT_ASTC_8x6_UNORM_BLOCK = VkFormat.VK_FORMAT_ASTC_8x6_UNORM_BLOCK;
enum VK_FORMAT_ASTC_8x6_SRGB_BLOCK = VkFormat.VK_FORMAT_ASTC_8x6_SRGB_BLOCK;
enum VK_FORMAT_ASTC_8x8_UNORM_BLOCK = VkFormat.VK_FORMAT_ASTC_8x8_UNORM_BLOCK;
enum VK_FORMAT_ASTC_8x8_SRGB_BLOCK = VkFormat.VK_FORMAT_ASTC_8x8_SRGB_BLOCK;
enum VK_FORMAT_ASTC_10x5_UNORM_BLOCK = VkFormat.VK_FORMAT_ASTC_10x5_UNORM_BLOCK;
enum VK_FORMAT_ASTC_10x5_SRGB_BLOCK = VkFormat.VK_FORMAT_ASTC_10x5_SRGB_BLOCK;
enum VK_FORMAT_ASTC_10x6_UNORM_BLOCK = VkFormat.VK_FORMAT_ASTC_10x6_UNORM_BLOCK;
enum VK_FORMAT_ASTC_10x6_SRGB_BLOCK = VkFormat.VK_FORMAT_ASTC_10x6_SRGB_BLOCK;
enum VK_FORMAT_ASTC_10x8_UNORM_BLOCK = VkFormat.VK_FORMAT_ASTC_10x8_UNORM_BLOCK;
enum VK_FORMAT_ASTC_10x8_SRGB_BLOCK = VkFormat.VK_FORMAT_ASTC_10x8_SRGB_BLOCK;
enum VK_FORMAT_ASTC_10x10_UNORM_BLOCK = VkFormat.VK_FORMAT_ASTC_10x10_UNORM_BLOCK;
enum VK_FORMAT_ASTC_10x10_SRGB_BLOCK = VkFormat.VK_FORMAT_ASTC_10x10_SRGB_BLOCK;
enum VK_FORMAT_ASTC_12x10_UNORM_BLOCK = VkFormat.VK_FORMAT_ASTC_12x10_UNORM_BLOCK;
enum VK_FORMAT_ASTC_12x10_SRGB_BLOCK = VkFormat.VK_FORMAT_ASTC_12x10_SRGB_BLOCK;
enum VK_FORMAT_ASTC_12x12_UNORM_BLOCK = VkFormat.VK_FORMAT_ASTC_12x12_UNORM_BLOCK;
enum VK_FORMAT_ASTC_12x12_SRGB_BLOCK = VkFormat.VK_FORMAT_ASTC_12x12_SRGB_BLOCK;
enum VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG = VkFormat.VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG;
enum VK_FORMAT_PVRTC1_4BPP_UNORM_BLOCK_IMG = VkFormat.VK_FORMAT_PVRTC1_4BPP_UNORM_BLOCK_IMG;
enum VK_FORMAT_PVRTC2_2BPP_UNORM_BLOCK_IMG = VkFormat.VK_FORMAT_PVRTC2_2BPP_UNORM_BLOCK_IMG;
enum VK_FORMAT_PVRTC2_4BPP_UNORM_BLOCK_IMG = VkFormat.VK_FORMAT_PVRTC2_4BPP_UNORM_BLOCK_IMG;
enum VK_FORMAT_PVRTC1_2BPP_SRGB_BLOCK_IMG = VkFormat.VK_FORMAT_PVRTC1_2BPP_SRGB_BLOCK_IMG;
enum VK_FORMAT_PVRTC1_4BPP_SRGB_BLOCK_IMG = VkFormat.VK_FORMAT_PVRTC1_4BPP_SRGB_BLOCK_IMG;
enum VK_FORMAT_PVRTC2_2BPP_SRGB_BLOCK_IMG = VkFormat.VK_FORMAT_PVRTC2_2BPP_SRGB_BLOCK_IMG;
enum VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG = VkFormat.VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG;
enum VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT = VkFormatFeatureFlagBits.VK_FORMAT_FEATURE_SAMPLED_IMAGE_BIT;
enum VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT = VkFormatFeatureFlagBits.VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT;
enum VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT = VkFormatFeatureFlagBits.VK_FORMAT_FEATURE_STORAGE_IMAGE_ATOMIC_BIT;
enum VK_FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT = VkFormatFeatureFlagBits.VK_FORMAT_FEATURE_UNIFORM_TEXEL_BUFFER_BIT;
enum VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT = VkFormatFeatureFlagBits.VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_BIT;
enum VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT = VkFormatFeatureFlagBits.VK_FORMAT_FEATURE_STORAGE_TEXEL_BUFFER_ATOMIC_BIT;
enum VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT = VkFormatFeatureFlagBits.VK_FORMAT_FEATURE_VERTEX_BUFFER_BIT;
enum VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT = VkFormatFeatureFlagBits.VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BIT;
enum VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT = VkFormatFeatureFlagBits.VK_FORMAT_FEATURE_COLOR_ATTACHMENT_BLEND_BIT;
enum VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT = VkFormatFeatureFlagBits.VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT;
enum VK_FORMAT_FEATURE_BLIT_SRC_BIT = VkFormatFeatureFlagBits.VK_FORMAT_FEATURE_BLIT_SRC_BIT;
enum VK_FORMAT_FEATURE_BLIT_DST_BIT = VkFormatFeatureFlagBits.VK_FORMAT_FEATURE_BLIT_DST_BIT;
enum VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT = VkFormatFeatureFlagBits.VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT;
enum VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG = VkFormatFeatureFlagBits.VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_CUBIC_BIT_IMG;
enum VK_IMAGE_TYPE_1D = VkImageType.VK_IMAGE_TYPE_1D;
enum VK_IMAGE_TYPE_2D = VkImageType.VK_IMAGE_TYPE_2D;
enum VK_IMAGE_TYPE_3D = VkImageType.VK_IMAGE_TYPE_3D;
enum VK_IMAGE_TILING_OPTIMAL = VkImageTiling.VK_IMAGE_TILING_OPTIMAL;
enum VK_IMAGE_TILING_LINEAR = VkImageTiling.VK_IMAGE_TILING_LINEAR;
enum VK_IMAGE_USAGE_TRANSFER_SRC_BIT = VkImageUsageFlagBits.VK_IMAGE_USAGE_TRANSFER_SRC_BIT;
enum VK_IMAGE_USAGE_TRANSFER_DST_BIT = VkImageUsageFlagBits.VK_IMAGE_USAGE_TRANSFER_DST_BIT;
enum VK_IMAGE_USAGE_SAMPLED_BIT = VkImageUsageFlagBits.VK_IMAGE_USAGE_SAMPLED_BIT;
enum VK_IMAGE_USAGE_STORAGE_BIT = VkImageUsageFlagBits.VK_IMAGE_USAGE_STORAGE_BIT;
enum VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT = VkImageUsageFlagBits.VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT;
enum VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT = VkImageUsageFlagBits.VK_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT;
enum VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT = VkImageUsageFlagBits.VK_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT;
enum VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT = VkImageUsageFlagBits.VK_IMAGE_USAGE_INPUT_ATTACHMENT_BIT;
enum VK_IMAGE_CREATE_SPARSE_BINDING_BIT = VkImageCreateFlagBits.VK_IMAGE_CREATE_SPARSE_BINDING_BIT;
enum VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT = VkImageCreateFlagBits.VK_IMAGE_CREATE_SPARSE_RESIDENCY_BIT;
enum VK_IMAGE_CREATE_SPARSE_ALIASED_BIT = VkImageCreateFlagBits.VK_IMAGE_CREATE_SPARSE_ALIASED_BIT;
enum VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT = VkImageCreateFlagBits.VK_IMAGE_CREATE_MUTABLE_FORMAT_BIT;
enum VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT = VkImageCreateFlagBits.VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT;
enum VK_SAMPLE_COUNT_1_BIT = VkSampleCountFlagBits.VK_SAMPLE_COUNT_1_BIT;
enum VK_SAMPLE_COUNT_2_BIT = VkSampleCountFlagBits.VK_SAMPLE_COUNT_2_BIT;
enum VK_SAMPLE_COUNT_4_BIT = VkSampleCountFlagBits.VK_SAMPLE_COUNT_4_BIT;
enum VK_SAMPLE_COUNT_8_BIT = VkSampleCountFlagBits.VK_SAMPLE_COUNT_8_BIT;
enum VK_SAMPLE_COUNT_16_BIT = VkSampleCountFlagBits.VK_SAMPLE_COUNT_16_BIT;
enum VK_SAMPLE_COUNT_32_BIT = VkSampleCountFlagBits.VK_SAMPLE_COUNT_32_BIT;
enum VK_SAMPLE_COUNT_64_BIT = VkSampleCountFlagBits.VK_SAMPLE_COUNT_64_BIT;
enum VK_PHYSICAL_DEVICE_TYPE_OTHER = VkPhysicalDeviceType.VK_PHYSICAL_DEVICE_TYPE_OTHER;
enum VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU = VkPhysicalDeviceType.VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU;
enum VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU = VkPhysicalDeviceType.VK_PHYSICAL_DEVICE_TYPE_DISCRETE_GPU;
enum VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU = VkPhysicalDeviceType.VK_PHYSICAL_DEVICE_TYPE_VIRTUAL_GPU;
enum VK_PHYSICAL_DEVICE_TYPE_CPU = VkPhysicalDeviceType.VK_PHYSICAL_DEVICE_TYPE_CPU;
enum VK_QUEUE_GRAPHICS_BIT = VkQueueFlagBits.VK_QUEUE_GRAPHICS_BIT;
enum VK_QUEUE_COMPUTE_BIT = VkQueueFlagBits.VK_QUEUE_COMPUTE_BIT;
enum VK_QUEUE_TRANSFER_BIT = VkQueueFlagBits.VK_QUEUE_TRANSFER_BIT;
enum VK_QUEUE_SPARSE_BINDING_BIT = VkQueueFlagBits.VK_QUEUE_SPARSE_BINDING_BIT;
enum VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT = VkMemoryPropertyFlagBits.VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT;
enum VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT = VkMemoryPropertyFlagBits.VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT;
enum VK_MEMORY_PROPERTY_HOST_COHERENT_BIT = VkMemoryPropertyFlagBits.VK_MEMORY_PROPERTY_HOST_COHERENT_BIT;
enum VK_MEMORY_PROPERTY_HOST_CACHED_BIT = VkMemoryPropertyFlagBits.VK_MEMORY_PROPERTY_HOST_CACHED_BIT;
enum VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT = VkMemoryPropertyFlagBits.VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT;
enum VK_MEMORY_HEAP_DEVICE_LOCAL_BIT = VkMemoryHeapFlagBits.VK_MEMORY_HEAP_DEVICE_LOCAL_BIT;
enum VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT = VkPipelineStageFlagBits.VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT;
enum VK_PIPELINE_STAGE_DRAW_INDIRECT_BIT = VkPipelineStageFlagBits.VK_PIPELINE_STAGE_DRAW_INDIRECT_BIT;
enum VK_PIPELINE_STAGE_VERTEX_INPUT_BIT = VkPipelineStageFlagBits.VK_PIPELINE_STAGE_VERTEX_INPUT_BIT;
enum VK_PIPELINE_STAGE_VERTEX_SHADER_BIT = VkPipelineStageFlagBits.VK_PIPELINE_STAGE_VERTEX_SHADER_BIT;
enum VK_PIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT = VkPipelineStageFlagBits.VK_PIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT;
enum VK_PIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT = VkPipelineStageFlagBits.VK_PIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT;
enum VK_PIPELINE_STAGE_GEOMETRY_SHADER_BIT = VkPipelineStageFlagBits.VK_PIPELINE_STAGE_GEOMETRY_SHADER_BIT;
enum VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT = VkPipelineStageFlagBits.VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT;
enum VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT = VkPipelineStageFlagBits.VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT;
enum VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT = VkPipelineStageFlagBits.VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT;
enum VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT = VkPipelineStageFlagBits.VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT;
enum VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT = VkPipelineStageFlagBits.VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT;
enum VK_PIPELINE_STAGE_TRANSFER_BIT = VkPipelineStageFlagBits.VK_PIPELINE_STAGE_TRANSFER_BIT;
enum VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT = VkPipelineStageFlagBits.VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT;
enum VK_PIPELINE_STAGE_HOST_BIT = VkPipelineStageFlagBits.VK_PIPELINE_STAGE_HOST_BIT;
enum VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT = VkPipelineStageFlagBits.VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT;
enum VK_PIPELINE_STAGE_ALL_COMMANDS_BIT = VkPipelineStageFlagBits.VK_PIPELINE_STAGE_ALL_COMMANDS_BIT;
enum VK_IMAGE_ASPECT_COLOR_BIT = VkImageAspectFlagBits.VK_IMAGE_ASPECT_COLOR_BIT;
enum VK_IMAGE_ASPECT_DEPTH_BIT = VkImageAspectFlagBits.VK_IMAGE_ASPECT_DEPTH_BIT;
enum VK_IMAGE_ASPECT_STENCIL_BIT = VkImageAspectFlagBits.VK_IMAGE_ASPECT_STENCIL_BIT;
enum VK_IMAGE_ASPECT_METADATA_BIT = VkImageAspectFlagBits.VK_IMAGE_ASPECT_METADATA_BIT;
enum VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT = VkSparseImageFormatFlagBits.VK_SPARSE_IMAGE_FORMAT_SINGLE_MIPTAIL_BIT;
enum VK_SPARSE_IMAGE_FORMAT_ALIGNED_MIP_SIZE_BIT = VkSparseImageFormatFlagBits.VK_SPARSE_IMAGE_FORMAT_ALIGNED_MIP_SIZE_BIT;
enum VK_SPARSE_IMAGE_FORMAT_NONSTANDARD_BLOCK_SIZE_BIT = VkSparseImageFormatFlagBits.VK_SPARSE_IMAGE_FORMAT_NONSTANDARD_BLOCK_SIZE_BIT;
enum VK_SPARSE_MEMORY_BIND_METADATA_BIT = VkSparseMemoryBindFlagBits.VK_SPARSE_MEMORY_BIND_METADATA_BIT;
enum VK_FENCE_CREATE_SIGNALED_BIT = VkFenceCreateFlagBits.VK_FENCE_CREATE_SIGNALED_BIT;
enum VK_QUERY_TYPE_OCCLUSION = VkQueryType.VK_QUERY_TYPE_OCCLUSION;
enum VK_QUERY_TYPE_PIPELINE_STATISTICS = VkQueryType.VK_QUERY_TYPE_PIPELINE_STATISTICS;
enum VK_QUERY_TYPE_TIMESTAMP = VkQueryType.VK_QUERY_TYPE_TIMESTAMP;
enum VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_VERTICES_BIT = VkQueryPipelineStatisticFlagBits.VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_VERTICES_BIT;
enum VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_PRIMITIVES_BIT = VkQueryPipelineStatisticFlagBits.VK_QUERY_PIPELINE_STATISTIC_INPUT_ASSEMBLY_PRIMITIVES_BIT;
enum VK_QUERY_PIPELINE_STATISTIC_VERTEX_SHADER_INVOCATIONS_BIT = VkQueryPipelineStatisticFlagBits.VK_QUERY_PIPELINE_STATISTIC_VERTEX_SHADER_INVOCATIONS_BIT;
enum VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_INVOCATIONS_BIT = VkQueryPipelineStatisticFlagBits.VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_INVOCATIONS_BIT;
enum VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_PRIMITIVES_BIT = VkQueryPipelineStatisticFlagBits.VK_QUERY_PIPELINE_STATISTIC_GEOMETRY_SHADER_PRIMITIVES_BIT;
enum VK_QUERY_PIPELINE_STATISTIC_CLIPPING_INVOCATIONS_BIT = VkQueryPipelineStatisticFlagBits.VK_QUERY_PIPELINE_STATISTIC_CLIPPING_INVOCATIONS_BIT;
enum VK_QUERY_PIPELINE_STATISTIC_CLIPPING_PRIMITIVES_BIT = VkQueryPipelineStatisticFlagBits.VK_QUERY_PIPELINE_STATISTIC_CLIPPING_PRIMITIVES_BIT;
enum VK_QUERY_PIPELINE_STATISTIC_FRAGMENT_SHADER_INVOCATIONS_BIT = VkQueryPipelineStatisticFlagBits.VK_QUERY_PIPELINE_STATISTIC_FRAGMENT_SHADER_INVOCATIONS_BIT;
enum VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_CONTROL_SHADER_PATCHES_BIT = VkQueryPipelineStatisticFlagBits.VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_CONTROL_SHADER_PATCHES_BIT;
enum VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_EVALUATION_SHADER_INVOCATIONS_BIT = VkQueryPipelineStatisticFlagBits.VK_QUERY_PIPELINE_STATISTIC_TESSELLATION_EVALUATION_SHADER_INVOCATIONS_BIT;
enum VK_QUERY_PIPELINE_STATISTIC_COMPUTE_SHADER_INVOCATIONS_BIT = VkQueryPipelineStatisticFlagBits.VK_QUERY_PIPELINE_STATISTIC_COMPUTE_SHADER_INVOCATIONS_BIT;
enum VK_QUERY_RESULT_64_BIT = VkQueryResultFlagBits.VK_QUERY_RESULT_64_BIT;
enum VK_QUERY_RESULT_WAIT_BIT = VkQueryResultFlagBits.VK_QUERY_RESULT_WAIT_BIT;
enum VK_QUERY_RESULT_WITH_AVAILABILITY_BIT = VkQueryResultFlagBits.VK_QUERY_RESULT_WITH_AVAILABILITY_BIT;
enum VK_QUERY_RESULT_PARTIAL_BIT = VkQueryResultFlagBits.VK_QUERY_RESULT_PARTIAL_BIT;
enum VK_BUFFER_CREATE_SPARSE_BINDING_BIT = VkBufferCreateFlagBits.VK_BUFFER_CREATE_SPARSE_BINDING_BIT;
enum VK_BUFFER_CREATE_SPARSE_RESIDENCY_BIT = VkBufferCreateFlagBits.VK_BUFFER_CREATE_SPARSE_RESIDENCY_BIT;
enum VK_BUFFER_CREATE_SPARSE_ALIASED_BIT = VkBufferCreateFlagBits.VK_BUFFER_CREATE_SPARSE_ALIASED_BIT;
enum VK_BUFFER_USAGE_TRANSFER_SRC_BIT = VkBufferUsageFlagBits.VK_BUFFER_USAGE_TRANSFER_SRC_BIT;
enum VK_BUFFER_USAGE_TRANSFER_DST_BIT = VkBufferUsageFlagBits.VK_BUFFER_USAGE_TRANSFER_DST_BIT;
enum VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT = VkBufferUsageFlagBits.VK_BUFFER_USAGE_UNIFORM_TEXEL_BUFFER_BIT;
enum VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT = VkBufferUsageFlagBits.VK_BUFFER_USAGE_STORAGE_TEXEL_BUFFER_BIT;
enum VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT = VkBufferUsageFlagBits.VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT;
enum VK_BUFFER_USAGE_STORAGE_BUFFER_BIT = VkBufferUsageFlagBits.VK_BUFFER_USAGE_STORAGE_BUFFER_BIT;
enum VK_BUFFER_USAGE_INDEX_BUFFER_BIT = VkBufferUsageFlagBits.VK_BUFFER_USAGE_INDEX_BUFFER_BIT;
enum VK_BUFFER_USAGE_VERTEX_BUFFER_BIT = VkBufferUsageFlagBits.VK_BUFFER_USAGE_VERTEX_BUFFER_BIT;
enum VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT = VkBufferUsageFlagBits.VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT;
enum VK_SHARING_MODE_EXCLUSIVE = VkSharingMode.VK_SHARING_MODE_EXCLUSIVE;
enum VK_SHARING_MODE_CONCURRENT = VkSharingMode.VK_SHARING_MODE_CONCURRENT;
enum VK_IMAGE_LAYOUT_UNDEFINED = VkImageLayout.VK_IMAGE_LAYOUT_UNDEFINED;
enum VK_IMAGE_LAYOUT_GENERAL = VkImageLayout.VK_IMAGE_LAYOUT_GENERAL;
enum VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL = VkImageLayout.VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL;
enum VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL = VkImageLayout.VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL;
enum VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL = VkImageLayout.VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL;
enum VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL = VkImageLayout.VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL;
enum VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL = VkImageLayout.VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL;
enum VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL = VkImageLayout.VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL;
enum VK_IMAGE_LAYOUT_PREINITIALIZED = VkImageLayout.VK_IMAGE_LAYOUT_PREINITIALIZED;
enum VK_IMAGE_LAYOUT_PRESENT_SRC_KHR = VkImageLayout.VK_IMAGE_LAYOUT_PRESENT_SRC_KHR;
enum VK_IMAGE_VIEW_TYPE_1D = VkImageViewType.VK_IMAGE_VIEW_TYPE_1D;
enum VK_IMAGE_VIEW_TYPE_2D = VkImageViewType.VK_IMAGE_VIEW_TYPE_2D;
enum VK_IMAGE_VIEW_TYPE_3D = VkImageViewType.VK_IMAGE_VIEW_TYPE_3D;
enum VK_IMAGE_VIEW_TYPE_CUBE = VkImageViewType.VK_IMAGE_VIEW_TYPE_CUBE;
enum VK_IMAGE_VIEW_TYPE_1D_ARRAY = VkImageViewType.VK_IMAGE_VIEW_TYPE_1D_ARRAY;
enum VK_IMAGE_VIEW_TYPE_2D_ARRAY = VkImageViewType.VK_IMAGE_VIEW_TYPE_2D_ARRAY;
enum VK_IMAGE_VIEW_TYPE_CUBE_ARRAY = VkImageViewType.VK_IMAGE_VIEW_TYPE_CUBE_ARRAY;
enum VK_COMPONENT_SWIZZLE_IDENTITY = VkComponentSwizzle.VK_COMPONENT_SWIZZLE_IDENTITY;
enum VK_COMPONENT_SWIZZLE_ZERO = VkComponentSwizzle.VK_COMPONENT_SWIZZLE_ZERO;
enum VK_COMPONENT_SWIZZLE_ONE = VkComponentSwizzle.VK_COMPONENT_SWIZZLE_ONE;
enum VK_COMPONENT_SWIZZLE_R = VkComponentSwizzle.VK_COMPONENT_SWIZZLE_R;
enum VK_COMPONENT_SWIZZLE_G = VkComponentSwizzle.VK_COMPONENT_SWIZZLE_G;
enum VK_COMPONENT_SWIZZLE_B = VkComponentSwizzle.VK_COMPONENT_SWIZZLE_B;
enum VK_COMPONENT_SWIZZLE_A = VkComponentSwizzle.VK_COMPONENT_SWIZZLE_A;
enum VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT = VkPipelineCreateFlagBits.VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT;
enum VK_PIPELINE_CREATE_ALLOW_DERIVATIVES_BIT = VkPipelineCreateFlagBits.VK_PIPELINE_CREATE_ALLOW_DERIVATIVES_BIT;
enum VK_PIPELINE_CREATE_DERIVATIVE_BIT = VkPipelineCreateFlagBits.VK_PIPELINE_CREATE_DERIVATIVE_BIT;
enum VK_SHADER_STAGE_VERTEX_BIT = VkShaderStageFlagBits.VK_SHADER_STAGE_VERTEX_BIT;
enum VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT = VkShaderStageFlagBits.VK_SHADER_STAGE_TESSELLATION_CONTROL_BIT;
enum VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT = VkShaderStageFlagBits.VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT;
enum VK_SHADER_STAGE_GEOMETRY_BIT = VkShaderStageFlagBits.VK_SHADER_STAGE_GEOMETRY_BIT;
enum VK_SHADER_STAGE_FRAGMENT_BIT = VkShaderStageFlagBits.VK_SHADER_STAGE_FRAGMENT_BIT;
enum VK_SHADER_STAGE_COMPUTE_BIT = VkShaderStageFlagBits.VK_SHADER_STAGE_COMPUTE_BIT;
enum VK_SHADER_STAGE_ALL_GRAPHICS = VkShaderStageFlagBits.VK_SHADER_STAGE_ALL_GRAPHICS;
enum VK_SHADER_STAGE_ALL = VkShaderStageFlagBits.VK_SHADER_STAGE_ALL;
enum VK_VERTEX_INPUT_RATE_VERTEX = VkVertexInputRate.VK_VERTEX_INPUT_RATE_VERTEX;
enum VK_VERTEX_INPUT_RATE_INSTANCE = VkVertexInputRate.VK_VERTEX_INPUT_RATE_INSTANCE;
enum VK_PRIMITIVE_TOPOLOGY_POINT_LIST = VkPrimitiveTopology.VK_PRIMITIVE_TOPOLOGY_POINT_LIST;
enum VK_PRIMITIVE_TOPOLOGY_LINE_LIST = VkPrimitiveTopology.VK_PRIMITIVE_TOPOLOGY_LINE_LIST;
enum VK_PRIMITIVE_TOPOLOGY_LINE_STRIP = VkPrimitiveTopology.VK_PRIMITIVE_TOPOLOGY_LINE_STRIP;
enum VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST = VkPrimitiveTopology.VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST;
enum VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP = VkPrimitiveTopology.VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP;
enum VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN = VkPrimitiveTopology.VK_PRIMITIVE_TOPOLOGY_TRIANGLE_FAN;
enum VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY = VkPrimitiveTopology.VK_PRIMITIVE_TOPOLOGY_LINE_LIST_WITH_ADJACENCY;
enum VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY = VkPrimitiveTopology.VK_PRIMITIVE_TOPOLOGY_LINE_STRIP_WITH_ADJACENCY;
enum VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY = VkPrimitiveTopology.VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST_WITH_ADJACENCY;
enum VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY = VkPrimitiveTopology.VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP_WITH_ADJACENCY;
enum VK_PRIMITIVE_TOPOLOGY_PATCH_LIST = VkPrimitiveTopology.VK_PRIMITIVE_TOPOLOGY_PATCH_LIST;
enum VK_POLYGON_MODE_FILL = VkPolygonMode.VK_POLYGON_MODE_FILL;
enum VK_POLYGON_MODE_LINE = VkPolygonMode.VK_POLYGON_MODE_LINE;
enum VK_POLYGON_MODE_POINT = VkPolygonMode.VK_POLYGON_MODE_POINT;
enum VK_CULL_MODE_NONE = VkCullModeFlagBits.VK_CULL_MODE_NONE;
enum VK_CULL_MODE_FRONT_BIT = VkCullModeFlagBits.VK_CULL_MODE_FRONT_BIT;
enum VK_CULL_MODE_BACK_BIT = VkCullModeFlagBits.VK_CULL_MODE_BACK_BIT;
enum VK_CULL_MODE_FRONT_AND_BACK = VkCullModeFlagBits.VK_CULL_MODE_FRONT_AND_BACK;
enum VK_FRONT_FACE_COUNTER_CLOCKWISE = VkFrontFace.VK_FRONT_FACE_COUNTER_CLOCKWISE;
enum VK_FRONT_FACE_CLOCKWISE = VkFrontFace.VK_FRONT_FACE_CLOCKWISE;
enum VK_COMPARE_OP_NEVER = VkCompareOp.VK_COMPARE_OP_NEVER;
enum VK_COMPARE_OP_LESS = VkCompareOp.VK_COMPARE_OP_LESS;
enum VK_COMPARE_OP_EQUAL = VkCompareOp.VK_COMPARE_OP_EQUAL;
enum VK_COMPARE_OP_LESS_OR_EQUAL = VkCompareOp.VK_COMPARE_OP_LESS_OR_EQUAL;
enum VK_COMPARE_OP_GREATER = VkCompareOp.VK_COMPARE_OP_GREATER;
enum VK_COMPARE_OP_NOT_EQUAL = VkCompareOp.VK_COMPARE_OP_NOT_EQUAL;
enum VK_COMPARE_OP_GREATER_OR_EQUAL = VkCompareOp.VK_COMPARE_OP_GREATER_OR_EQUAL;
enum VK_COMPARE_OP_ALWAYS = VkCompareOp.VK_COMPARE_OP_ALWAYS;
enum VK_STENCIL_OP_KEEP = VkStencilOp.VK_STENCIL_OP_KEEP;
enum VK_STENCIL_OP_ZERO = VkStencilOp.VK_STENCIL_OP_ZERO;
enum VK_STENCIL_OP_REPLACE = VkStencilOp.VK_STENCIL_OP_REPLACE;
enum VK_STENCIL_OP_INCREMENT_AND_CLAMP = VkStencilOp.VK_STENCIL_OP_INCREMENT_AND_CLAMP;
enum VK_STENCIL_OP_DECREMENT_AND_CLAMP = VkStencilOp.VK_STENCIL_OP_DECREMENT_AND_CLAMP;
enum VK_STENCIL_OP_INVERT = VkStencilOp.VK_STENCIL_OP_INVERT;
enum VK_STENCIL_OP_INCREMENT_AND_WRAP = VkStencilOp.VK_STENCIL_OP_INCREMENT_AND_WRAP;
enum VK_STENCIL_OP_DECREMENT_AND_WRAP = VkStencilOp.VK_STENCIL_OP_DECREMENT_AND_WRAP;
enum VK_LOGIC_OP_CLEAR = VkLogicOp.VK_LOGIC_OP_CLEAR;
enum VK_LOGIC_OP_AND = VkLogicOp.VK_LOGIC_OP_AND;
enum VK_LOGIC_OP_AND_REVERSE = VkLogicOp.VK_LOGIC_OP_AND_REVERSE;
enum VK_LOGIC_OP_COPY = VkLogicOp.VK_LOGIC_OP_COPY;
enum VK_LOGIC_OP_AND_INVERTED = VkLogicOp.VK_LOGIC_OP_AND_INVERTED;
enum VK_LOGIC_OP_NO_OP = VkLogicOp.VK_LOGIC_OP_NO_OP;
enum VK_LOGIC_OP_XOR = VkLogicOp.VK_LOGIC_OP_XOR;
enum VK_LOGIC_OP_OR = VkLogicOp.VK_LOGIC_OP_OR;
enum VK_LOGIC_OP_NOR = VkLogicOp.VK_LOGIC_OP_NOR;
enum VK_LOGIC_OP_EQUIVALENT = VkLogicOp.VK_LOGIC_OP_EQUIVALENT;
enum VK_LOGIC_OP_INVERT = VkLogicOp.VK_LOGIC_OP_INVERT;
enum VK_LOGIC_OP_OR_REVERSE = VkLogicOp.VK_LOGIC_OP_OR_REVERSE;
enum VK_LOGIC_OP_COPY_INVERTED = VkLogicOp.VK_LOGIC_OP_COPY_INVERTED;
enum VK_LOGIC_OP_OR_INVERTED = VkLogicOp.VK_LOGIC_OP_OR_INVERTED;
enum VK_LOGIC_OP_NAND = VkLogicOp.VK_LOGIC_OP_NAND;
enum VK_LOGIC_OP_SET = VkLogicOp.VK_LOGIC_OP_SET;
enum VK_BLEND_FACTOR_ZERO = VkBlendFactor.VK_BLEND_FACTOR_ZERO;
enum VK_BLEND_FACTOR_ONE = VkBlendFactor.VK_BLEND_FACTOR_ONE;
enum VK_BLEND_FACTOR_SRC_COLOR = VkBlendFactor.VK_BLEND_FACTOR_SRC_COLOR;
enum VK_BLEND_FACTOR_ONE_MINUS_SRC_COLOR = VkBlendFactor.VK_BLEND_FACTOR_ONE_MINUS_SRC_COLOR;
enum VK_BLEND_FACTOR_DST_COLOR = VkBlendFactor.VK_BLEND_FACTOR_DST_COLOR;
enum VK_BLEND_FACTOR_ONE_MINUS_DST_COLOR = VkBlendFactor.VK_BLEND_FACTOR_ONE_MINUS_DST_COLOR;
enum VK_BLEND_FACTOR_SRC_ALPHA = VkBlendFactor.VK_BLEND_FACTOR_SRC_ALPHA;
enum VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA = VkBlendFactor.VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA;
enum VK_BLEND_FACTOR_DST_ALPHA = VkBlendFactor.VK_BLEND_FACTOR_DST_ALPHA;
enum VK_BLEND_FACTOR_ONE_MINUS_DST_ALPHA = VkBlendFactor.VK_BLEND_FACTOR_ONE_MINUS_DST_ALPHA;
enum VK_BLEND_FACTOR_CONSTANT_COLOR = VkBlendFactor.VK_BLEND_FACTOR_CONSTANT_COLOR;
enum VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR = VkBlendFactor.VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_COLOR;
enum VK_BLEND_FACTOR_CONSTANT_ALPHA = VkBlendFactor.VK_BLEND_FACTOR_CONSTANT_ALPHA;
enum VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA = VkBlendFactor.VK_BLEND_FACTOR_ONE_MINUS_CONSTANT_ALPHA;
enum VK_BLEND_FACTOR_SRC_ALPHA_SATURATE = VkBlendFactor.VK_BLEND_FACTOR_SRC_ALPHA_SATURATE;
enum VK_BLEND_FACTOR_SRC1_COLOR = VkBlendFactor.VK_BLEND_FACTOR_SRC1_COLOR;
enum VK_BLEND_FACTOR_ONE_MINUS_SRC1_COLOR = VkBlendFactor.VK_BLEND_FACTOR_ONE_MINUS_SRC1_COLOR;
enum VK_BLEND_FACTOR_SRC1_ALPHA = VkBlendFactor.VK_BLEND_FACTOR_SRC1_ALPHA;
enum VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA = VkBlendFactor.VK_BLEND_FACTOR_ONE_MINUS_SRC1_ALPHA;
enum VK_BLEND_OP_ADD = VkBlendOp.VK_BLEND_OP_ADD;
enum VK_BLEND_OP_SUBTRACT = VkBlendOp.VK_BLEND_OP_SUBTRACT;
enum VK_BLEND_OP_REVERSE_SUBTRACT = VkBlendOp.VK_BLEND_OP_REVERSE_SUBTRACT;
enum VK_BLEND_OP_MIN = VkBlendOp.VK_BLEND_OP_MIN;
enum VK_BLEND_OP_MAX = VkBlendOp.VK_BLEND_OP_MAX;
enum VK_COLOR_COMPONENT_R_BIT = VkColorComponentFlagBits.VK_COLOR_COMPONENT_R_BIT;
enum VK_COLOR_COMPONENT_G_BIT = VkColorComponentFlagBits.VK_COLOR_COMPONENT_G_BIT;
enum VK_COLOR_COMPONENT_B_BIT = VkColorComponentFlagBits.VK_COLOR_COMPONENT_B_BIT;
enum VK_COLOR_COMPONENT_A_BIT = VkColorComponentFlagBits.VK_COLOR_COMPONENT_A_BIT;
enum VK_DYNAMIC_STATE_VIEWPORT = VkDynamicState.VK_DYNAMIC_STATE_VIEWPORT;
enum VK_DYNAMIC_STATE_SCISSOR = VkDynamicState.VK_DYNAMIC_STATE_SCISSOR;
enum VK_DYNAMIC_STATE_LINE_WIDTH = VkDynamicState.VK_DYNAMIC_STATE_LINE_WIDTH;
enum VK_DYNAMIC_STATE_DEPTH_BIAS = VkDynamicState.VK_DYNAMIC_STATE_DEPTH_BIAS;
enum VK_DYNAMIC_STATE_BLEND_CONSTANTS = VkDynamicState.VK_DYNAMIC_STATE_BLEND_CONSTANTS;
enum VK_DYNAMIC_STATE_DEPTH_BOUNDS = VkDynamicState.VK_DYNAMIC_STATE_DEPTH_BOUNDS;
enum VK_DYNAMIC_STATE_STENCIL_COMPARE_MASK = VkDynamicState.VK_DYNAMIC_STATE_STENCIL_COMPARE_MASK;
enum VK_DYNAMIC_STATE_STENCIL_WRITE_MASK = VkDynamicState.VK_DYNAMIC_STATE_STENCIL_WRITE_MASK;
enum VK_DYNAMIC_STATE_STENCIL_REFERENCE = VkDynamicState.VK_DYNAMIC_STATE_STENCIL_REFERENCE;
enum VK_FILTER_NEAREST = VkFilter.VK_FILTER_NEAREST;
enum VK_FILTER_LINEAR = VkFilter.VK_FILTER_LINEAR;
enum VK_FILTER_CUBIC_IMG = VkFilter.VK_FILTER_CUBIC_IMG;
enum VK_SAMPLER_MIPMAP_MODE_NEAREST = VkSamplerMipmapMode.VK_SAMPLER_MIPMAP_MODE_NEAREST;
enum VK_SAMPLER_MIPMAP_MODE_LINEAR = VkSamplerMipmapMode.VK_SAMPLER_MIPMAP_MODE_LINEAR;
enum VK_SAMPLER_ADDRESS_MODE_REPEAT = VkSamplerAddressMode.VK_SAMPLER_ADDRESS_MODE_REPEAT;
enum VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT = VkSamplerAddressMode.VK_SAMPLER_ADDRESS_MODE_MIRRORED_REPEAT;
enum VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE = VkSamplerAddressMode.VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE;
enum VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER = VkSamplerAddressMode.VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER;
enum VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE = VkSamplerAddressMode.VK_SAMPLER_ADDRESS_MODE_MIRROR_CLAMP_TO_EDGE;
enum VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK = VkBorderColor.VK_BORDER_COLOR_FLOAT_TRANSPARENT_BLACK;
enum VK_BORDER_COLOR_INT_TRANSPARENT_BLACK = VkBorderColor.VK_BORDER_COLOR_INT_TRANSPARENT_BLACK;
enum VK_BORDER_COLOR_FLOAT_OPAQUE_BLACK = VkBorderColor.VK_BORDER_COLOR_FLOAT_OPAQUE_BLACK;
enum VK_BORDER_COLOR_INT_OPAQUE_BLACK = VkBorderColor.VK_BORDER_COLOR_INT_OPAQUE_BLACK;
enum VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE = VkBorderColor.VK_BORDER_COLOR_FLOAT_OPAQUE_WHITE;
enum VK_BORDER_COLOR_INT_OPAQUE_WHITE = VkBorderColor.VK_BORDER_COLOR_INT_OPAQUE_WHITE;
enum VK_DESCRIPTOR_TYPE_SAMPLER = VkDescriptorType.VK_DESCRIPTOR_TYPE_SAMPLER;
enum VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER = VkDescriptorType.VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER;
enum VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE = VkDescriptorType.VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE;
enum VK_DESCRIPTOR_TYPE_STORAGE_IMAGE = VkDescriptorType.VK_DESCRIPTOR_TYPE_STORAGE_IMAGE;
enum VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER = VkDescriptorType.VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER;
enum VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER = VkDescriptorType.VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER;
enum VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER = VkDescriptorType.VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER;
enum VK_DESCRIPTOR_TYPE_STORAGE_BUFFER = VkDescriptorType.VK_DESCRIPTOR_TYPE_STORAGE_BUFFER;
enum VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC = VkDescriptorType.VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC;
enum VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC = VkDescriptorType.VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC;
enum VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT = VkDescriptorType.VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT;
enum VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT = VkDescriptorPoolCreateFlagBits.VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT;
enum VK_ATTACHMENT_DESCRIPTION_MAY_ALIAS_BIT = VkAttachmentDescriptionFlagBits.VK_ATTACHMENT_DESCRIPTION_MAY_ALIAS_BIT;
enum VK_ATTACHMENT_LOAD_OP_LOAD = VkAttachmentLoadOp.VK_ATTACHMENT_LOAD_OP_LOAD;
enum VK_ATTACHMENT_LOAD_OP_CLEAR = VkAttachmentLoadOp.VK_ATTACHMENT_LOAD_OP_CLEAR;
enum VK_ATTACHMENT_LOAD_OP_DONT_CARE = VkAttachmentLoadOp.VK_ATTACHMENT_LOAD_OP_DONT_CARE;
enum VK_ATTACHMENT_STORE_OP_STORE = VkAttachmentStoreOp.VK_ATTACHMENT_STORE_OP_STORE;
enum VK_ATTACHMENT_STORE_OP_DONT_CARE = VkAttachmentStoreOp.VK_ATTACHMENT_STORE_OP_DONT_CARE;
enum VK_PIPELINE_BIND_POINT_GRAPHICS = VkPipelineBindPoint.VK_PIPELINE_BIND_POINT_GRAPHICS;
enum VK_PIPELINE_BIND_POINT_COMPUTE = VkPipelineBindPoint.VK_PIPELINE_BIND_POINT_COMPUTE;
enum VK_ACCESS_INDIRECT_COMMAND_READ_BIT = VkAccessFlagBits.VK_ACCESS_INDIRECT_COMMAND_READ_BIT;
enum VK_ACCESS_INDEX_READ_BIT = VkAccessFlagBits.VK_ACCESS_INDEX_READ_BIT;
enum VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT = VkAccessFlagBits.VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT;
enum VK_ACCESS_UNIFORM_READ_BIT = VkAccessFlagBits.VK_ACCESS_UNIFORM_READ_BIT;
enum VK_ACCESS_INPUT_ATTACHMENT_READ_BIT = VkAccessFlagBits.VK_ACCESS_INPUT_ATTACHMENT_READ_BIT;
enum VK_ACCESS_SHADER_READ_BIT = VkAccessFlagBits.VK_ACCESS_SHADER_READ_BIT;
enum VK_ACCESS_SHADER_WRITE_BIT = VkAccessFlagBits.VK_ACCESS_SHADER_WRITE_BIT;
enum VK_ACCESS_COLOR_ATTACHMENT_READ_BIT = VkAccessFlagBits.VK_ACCESS_COLOR_ATTACHMENT_READ_BIT;
enum VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT = VkAccessFlagBits.VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT;
enum VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT = VkAccessFlagBits.VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT;
enum VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT = VkAccessFlagBits.VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT;
enum VK_ACCESS_TRANSFER_READ_BIT = VkAccessFlagBits.VK_ACCESS_TRANSFER_READ_BIT;
enum VK_ACCESS_TRANSFER_WRITE_BIT = VkAccessFlagBits.VK_ACCESS_TRANSFER_WRITE_BIT;
enum VK_ACCESS_HOST_READ_BIT = VkAccessFlagBits.VK_ACCESS_HOST_READ_BIT;
enum VK_ACCESS_HOST_WRITE_BIT = VkAccessFlagBits.VK_ACCESS_HOST_WRITE_BIT;
enum VK_ACCESS_MEMORY_READ_BIT = VkAccessFlagBits.VK_ACCESS_MEMORY_READ_BIT;
enum VK_ACCESS_MEMORY_WRITE_BIT = VkAccessFlagBits.VK_ACCESS_MEMORY_WRITE_BIT;
enum VK_DEPENDENCY_BY_REGION_BIT = VkDependencyFlagBits.VK_DEPENDENCY_BY_REGION_BIT;
enum VK_COMMAND_POOL_CREATE_TRANSIENT_BIT = VkCommandPoolCreateFlagBits.VK_COMMAND_POOL_CREATE_TRANSIENT_BIT;
enum VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT = VkCommandPoolCreateFlagBits.VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT;
enum VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_BIT = VkCommandPoolResetFlagBits.VK_COMMAND_POOL_RESET_RELEASE_RESOURCES_BIT;
enum VK_COMMAND_BUFFER_LEVEL_PRIMARY = VkCommandBufferLevel.VK_COMMAND_BUFFER_LEVEL_PRIMARY;
enum VK_COMMAND_BUFFER_LEVEL_SECONDARY = VkCommandBufferLevel.VK_COMMAND_BUFFER_LEVEL_SECONDARY;
enum VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT = VkCommandBufferUsageFlagBits.VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT;
enum VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT = VkCommandBufferUsageFlagBits.VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT;
enum VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT = VkCommandBufferUsageFlagBits.VK_COMMAND_BUFFER_USAGE_SIMULTANEOUS_USE_BIT;
enum VK_QUERY_CONTROL_PRECISE_BIT = VkQueryControlFlagBits.VK_QUERY_CONTROL_PRECISE_BIT;
enum VK_COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT = VkCommandBufferResetFlagBits.VK_COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT;
enum VK_STENCIL_FACE_FRONT_BIT = VkStencilFaceFlagBits.VK_STENCIL_FACE_FRONT_BIT;
enum VK_STENCIL_FACE_BACK_BIT = VkStencilFaceFlagBits.VK_STENCIL_FACE_BACK_BIT;
enum VK_STENCIL_FRONT_AND_BACK = VkStencilFaceFlagBits.VK_STENCIL_FRONT_AND_BACK;
enum VK_INDEX_TYPE_UINT16 = VkIndexType.VK_INDEX_TYPE_UINT16;
enum VK_INDEX_TYPE_UINT32 = VkIndexType.VK_INDEX_TYPE_UINT32;
enum VK_SUBPASS_CONTENTS_INLINE = VkSubpassContents.VK_SUBPASS_CONTENTS_INLINE;
enum VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS = VkSubpassContents.VK_SUBPASS_CONTENTS_SECONDARY_COMMAND_BUFFERS;
}
version(DVulkan_VK_KHR_surface) {
enum VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR = VkSurfaceTransformFlagBitsKHR.VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR;
enum VK_SURFACE_TRANSFORM_ROTATE_90_BIT_KHR = VkSurfaceTransformFlagBitsKHR.VK_SURFACE_TRANSFORM_ROTATE_90_BIT_KHR;
enum VK_SURFACE_TRANSFORM_ROTATE_180_BIT_KHR = VkSurfaceTransformFlagBitsKHR.VK_SURFACE_TRANSFORM_ROTATE_180_BIT_KHR;
enum VK_SURFACE_TRANSFORM_ROTATE_270_BIT_KHR = VkSurfaceTransformFlagBitsKHR.VK_SURFACE_TRANSFORM_ROTATE_270_BIT_KHR;
enum VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_BIT_KHR = VkSurfaceTransformFlagBitsKHR.VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_BIT_KHR;
enum VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_90_BIT_KHR = VkSurfaceTransformFlagBitsKHR.VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_90_BIT_KHR;
enum VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_180_BIT_KHR = VkSurfaceTransformFlagBitsKHR.VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_180_BIT_KHR;
enum VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_270_BIT_KHR = VkSurfaceTransformFlagBitsKHR.VK_SURFACE_TRANSFORM_HORIZONTAL_MIRROR_ROTATE_270_BIT_KHR;
enum VK_SURFACE_TRANSFORM_INHERIT_BIT_KHR = VkSurfaceTransformFlagBitsKHR.VK_SURFACE_TRANSFORM_INHERIT_BIT_KHR;
enum VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR = VkCompositeAlphaFlagBitsKHR.VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR;
enum VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR = VkCompositeAlphaFlagBitsKHR.VK_COMPOSITE_ALPHA_PRE_MULTIPLIED_BIT_KHR;
enum VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR = VkCompositeAlphaFlagBitsKHR.VK_COMPOSITE_ALPHA_POST_MULTIPLIED_BIT_KHR;
enum VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR = VkCompositeAlphaFlagBitsKHR.VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR;
enum VK_COLOR_SPACE_SRGB_NONLINEAR_KHR = VkColorSpaceKHR.VK_COLOR_SPACE_SRGB_NONLINEAR_KHR;
enum VK_COLORSPACE_SRGB_NONLINEAR_KHR = VkColorSpaceKHR.VK_COLORSPACE_SRGB_NONLINEAR_KHR;
enum VK_PRESENT_MODE_IMMEDIATE_KHR = VkPresentModeKHR.VK_PRESENT_MODE_IMMEDIATE_KHR;
enum VK_PRESENT_MODE_MAILBOX_KHR = VkPresentModeKHR.VK_PRESENT_MODE_MAILBOX_KHR;
enum VK_PRESENT_MODE_FIFO_KHR = VkPresentModeKHR.VK_PRESENT_MODE_FIFO_KHR;
enum VK_PRESENT_MODE_FIFO_RELAXED_KHR = VkPresentModeKHR.VK_PRESENT_MODE_FIFO_RELAXED_KHR;
}
version(DVulkan_VK_KHR_swapchain) {
}
version(DVulkan_VK_KHR_display) {
enum VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR = VkDisplayPlaneAlphaFlagBitsKHR.VK_DISPLAY_PLANE_ALPHA_OPAQUE_BIT_KHR;
enum VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR = VkDisplayPlaneAlphaFlagBitsKHR.VK_DISPLAY_PLANE_ALPHA_GLOBAL_BIT_KHR;
enum VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR = VkDisplayPlaneAlphaFlagBitsKHR.VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_BIT_KHR;
enum VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR = VkDisplayPlaneAlphaFlagBitsKHR.VK_DISPLAY_PLANE_ALPHA_PER_PIXEL_PREMULTIPLIED_BIT_KHR;
}
version(DVulkan_VK_KHR_display_swapchain) {
}
version(DVulkan_VK_KHR_sampler_mirror_clamp_to_edge) {
}
version(DVulkan_VK_ANDROID_native_buffer) {
}
version(DVulkan_VK_EXT_debug_report) {
enum VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_UNKNOWN_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_INSTANCE_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_INSTANCE_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_PHYSICAL_DEVICE_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_PHYSICAL_DEVICE_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_QUEUE_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_QUEUE_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_SEMAPHORE_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_SEMAPHORE_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_BUFFER_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_FENCE_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_FENCE_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_MEMORY_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_MEMORY_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_EVENT_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_EVENT_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_QUERY_POOL_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_QUERY_POOL_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_VIEW_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_BUFFER_VIEW_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_VIEW_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_VIEW_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_SHADER_MODULE_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_SHADER_MODULE_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_CACHE_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_CACHE_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_LAYOUT_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_LAYOUT_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_RENDER_PASS_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_RENDER_PASS_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_PIPELINE_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_SET_LAYOUT_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_SET_LAYOUT_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_SAMPLER_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_SAMPLER_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_POOL_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_POOL_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_SET_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_DESCRIPTOR_SET_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_FRAMEBUFFER_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_FRAMEBUFFER_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_POOL_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_COMMAND_POOL_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_SURFACE_KHR_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_SURFACE_KHR_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_SWAPCHAIN_KHR_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_SWAPCHAIN_KHR_EXT;
enum VK_DEBUG_REPORT_OBJECT_TYPE_DEBUG_REPORT_EXT = VkDebugReportObjectTypeEXT.VK_DEBUG_REPORT_OBJECT_TYPE_DEBUG_REPORT_EXT;
enum VK_DEBUG_REPORT_ERROR_NONE_EXT = VkDebugReportErrorEXT.VK_DEBUG_REPORT_ERROR_NONE_EXT;
enum VK_DEBUG_REPORT_ERROR_CALLBACK_REF_EXT = VkDebugReportErrorEXT.VK_DEBUG_REPORT_ERROR_CALLBACK_REF_EXT;
enum VK_DEBUG_REPORT_INFORMATION_BIT_EXT = VkDebugReportFlagBitsEXT.VK_DEBUG_REPORT_INFORMATION_BIT_EXT;
enum VK_DEBUG_REPORT_WARNING_BIT_EXT = VkDebugReportFlagBitsEXT.VK_DEBUG_REPORT_WARNING_BIT_EXT;
enum VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT = VkDebugReportFlagBitsEXT.VK_DEBUG_REPORT_PERFORMANCE_WARNING_BIT_EXT;
enum VK_DEBUG_REPORT_ERROR_BIT_EXT = VkDebugReportFlagBitsEXT.VK_DEBUG_REPORT_ERROR_BIT_EXT;
enum VK_DEBUG_REPORT_DEBUG_BIT_EXT = VkDebugReportFlagBitsEXT.VK_DEBUG_REPORT_DEBUG_BIT_EXT;
}
version(DVulkan_VK_IMG_filter_cubic) {
}
version(DVulkan_VK_EXT_debug_marker) {
}
version(DVulkan_VK_IMG_format_pvrtc) {
}
version(DVulkan_VK_EXT_validation_flags) {
enum VK_VALIDATION_CHECK_ALL_EXT = VkValidationCheckEXT.VK_VALIDATION_CHECK_ALL_EXT;
}
}
| D |
# FIXED
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/src/proj_lab05a.c
proj_lab05a.obj: C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/math.h
proj_lab05a.obj: C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/linkage.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/src/main.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/math.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/iqmath/src/32b/IQmathLib.h
proj_lab05a.obj: C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/limits.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/types/src/types.h
proj_lab05a.obj: C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/stdbool.h
proj_lab05a.obj: C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/yvals.h
proj_lab05a.obj: C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/stdarg.h
proj_lab05a.obj: C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/_lock.h
proj_lab05a.obj: C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/string.h
proj_lab05a.obj: C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/stdint.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/memCopy/src/memCopy.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/est/src/32b/est.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/est/src/est_states.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/svgen/src/32b/svgen_current.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/fw/src/32b/fw.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/fem/src/32b/fem.h
proj_lab05a.obj: C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/math.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/cpu_usage/src/32b/cpu_usage.h
proj_lab05a.obj: C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/math.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/flyingStart/src/32b/flyingStart.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/ctrl/src/32b/ctrl.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/clarke/src/32b/clarke.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/park/src/32b/park.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/ipark/src/32b/ipark.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/motor/src/32b/motor.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/offset/src/32b/offset.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/filter/src/32b/filter_fo.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/pid/src/32b/pid.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/svgen/src/32b/svgen.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/traj/src/32b/traj.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/ctrl/src/32b/ctrl_obj.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/ctrl/src/ctrl_states.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/vs_freq/src/32b/vs_freq.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/angle_gen/src/32b/angle_gen.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/datalog/src/32b/datalog.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/hvkit_rev1p1/f28x/f2806x/src/hal_obj.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/drivers/adc/src/32b/f28x/f2806x/adc.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/drivers/cpu/src/32b/f28x/f2806x/cpu.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/drivers/clk/src/32b/f28x/f2806x/clk.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/drivers/pwm/src/32b/f28x/f2806x/pwm.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/drivers/flash/src/32b/f28x/f2806x/flash.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/drivers/gpio/src/32b/f28x/f2806x/gpio.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/drivers/osc/src/32b/f28x/f2806x/osc.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/drivers/pie/src/32b/f28x/f2806x/pie.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/drivers/pll/src/32b/f28x/f2806x/pll.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/drivers/pwmdac/src/32b/f28x/f2806x/pwmdac.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/drivers/pwr/src/32b/f28x/f2806x/pwr.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/drivers/timer/src/32b/f28x/f2806x/timer.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/drivers/wdog/src/32b/f28x/f2806x/wdog.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/drivers/sci/src/32b/f28x/f2806x/sci.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/usDelay/src/32b/usDelay.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/hvkit_rev1p1/f28x/f2806xF/src/user.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/est/src/est_Flux_states.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/est/src/est_Ls_states.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/est/src/est_Rs_states.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/fast/src/32b/userParams.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/cpu_time/src/32b/cpu_time.h
proj_lab05a.obj: C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/math.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/hallbldc/src/32b/hallbldc.h
proj_lab05a.obj: C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/hvkit_rev1p1/f28x/f2806x/src/hal.h
C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/src/proj_lab05a.c:
C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/math.h:
C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/linkage.h:
C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/src/main.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/math/src/32b/math.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/iqmath/src/32b/IQmathLib.h:
C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/limits.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/types/src/types.h:
C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/stdbool.h:
C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/yvals.h:
C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/stdarg.h:
C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/_lock.h:
C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/string.h:
C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/stdint.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/memCopy/src/memCopy.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/est/src/32b/est.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/est/src/est_states.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/svgen/src/32b/svgen_current.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/fw/src/32b/fw.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/fem/src/32b/fem.h:
C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/math.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/cpu_usage/src/32b/cpu_usage.h:
C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/math.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/flyingStart/src/32b/flyingStart.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/ctrl/src/32b/ctrl.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/clarke/src/32b/clarke.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/park/src/32b/park.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/ipark/src/32b/ipark.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/motor/src/32b/motor.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/offset/src/32b/offset.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/filter/src/32b/filter_fo.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/pid/src/32b/pid.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/svgen/src/32b/svgen.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/traj/src/32b/traj.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/ctrl/src/32b/ctrl_obj.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/ctrl/src/ctrl_states.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/vs_freq/src/32b/vs_freq.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/angle_gen/src/32b/angle_gen.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/datalog/src/32b/datalog.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/hvkit_rev1p1/f28x/f2806x/src/hal_obj.h:
C:/ti/motorware/motorware_1_01_00_18/sw/drivers/adc/src/32b/f28x/f2806x/adc.h:
C:/ti/motorware/motorware_1_01_00_18/sw/drivers/cpu/src/32b/f28x/f2806x/cpu.h:
C:/ti/motorware/motorware_1_01_00_18/sw/drivers/clk/src/32b/f28x/f2806x/clk.h:
C:/ti/motorware/motorware_1_01_00_18/sw/drivers/pwm/src/32b/f28x/f2806x/pwm.h:
C:/ti/motorware/motorware_1_01_00_18/sw/drivers/flash/src/32b/f28x/f2806x/flash.h:
C:/ti/motorware/motorware_1_01_00_18/sw/drivers/gpio/src/32b/f28x/f2806x/gpio.h:
C:/ti/motorware/motorware_1_01_00_18/sw/drivers/osc/src/32b/f28x/f2806x/osc.h:
C:/ti/motorware/motorware_1_01_00_18/sw/drivers/pie/src/32b/f28x/f2806x/pie.h:
C:/ti/motorware/motorware_1_01_00_18/sw/drivers/pll/src/32b/f28x/f2806x/pll.h:
C:/ti/motorware/motorware_1_01_00_18/sw/drivers/pwmdac/src/32b/f28x/f2806x/pwmdac.h:
C:/ti/motorware/motorware_1_01_00_18/sw/drivers/pwr/src/32b/f28x/f2806x/pwr.h:
C:/ti/motorware/motorware_1_01_00_18/sw/drivers/timer/src/32b/f28x/f2806x/timer.h:
C:/ti/motorware/motorware_1_01_00_18/sw/drivers/wdog/src/32b/f28x/f2806x/wdog.h:
C:/ti/motorware/motorware_1_01_00_18/sw/drivers/sci/src/32b/f28x/f2806x/sci.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/usDelay/src/32b/usDelay.h:
C:/ti/motorware/motorware_1_01_00_18/sw/solutions/instaspin_foc/boards/hvkit_rev1p1/f28x/f2806xF/src/user.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/est/src/est_Flux_states.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/est/src/est_Ls_states.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/est/src/est_Rs_states.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/fast/src/32b/userParams.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/cpu_time/src/32b/cpu_time.h:
C:/ti/ccsv6/tools/compiler/c2000_6.2.5/include/math.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/hallbldc/src/32b/hallbldc.h:
C:/ti/motorware/motorware_1_01_00_18/sw/modules/hal/boards/hvkit_rev1p1/f28x/f2806x/src/hal.h:
| D |
//////////////////////////////////////////////////////////////////////
// Info EXIT
///////////////////////////////////////////////////////////////////////
INSTANCE DIA_Ramirez_EXIT (C_INFO)
{
npc = VLK_445_Ramirez;
nr = 999;
condition = DIA_Ramirez_EXIT_Condition;
information = DIA_Ramirez_EXIT_Info;
permanent = TRUE;
description = DIALOG_ENDE;
};
FUNC INT DIA_Ramirez_EXIT_Condition()
{
return TRUE;
};
FUNC VOID DIA_Ramirez_EXIT_Info()
{
AI_StopProcessInfos (self);
};
// ************************************************************
// PICK POCKET
// ************************************************************
INSTANCE DIA_Ramirez_PICKPOCKET (C_INFO)
{
npc = VLK_445_Ramirez;
nr = 900;
condition = DIA_Ramirez_PICKPOCKET_Condition;
information = DIA_Ramirez_PICKPOCKET_Info;
permanent = TRUE;
description = Pickpocket_100;
};
FUNC INT DIA_Ramirez_PICKPOCKET_Condition()
{
C_Beklauen (90, 300);
};
FUNC VOID DIA_Ramirez_PICKPOCKET_Info()
{
Info_ClearChoices (DIA_Ramirez_PICKPOCKET);
Info_AddChoice (DIA_Ramirez_PICKPOCKET, DIALOG_BACK ,DIA_Ramirez_PICKPOCKET_BACK);
Info_AddChoice (DIA_Ramirez_PICKPOCKET, DIALOG_PICKPOCKET ,DIA_Ramirez_PICKPOCKET_DoIt);
};
func void DIA_Ramirez_PICKPOCKET_DoIt()
{
B_Beklauen ();
Info_ClearChoices (DIA_Ramirez_PICKPOCKET);
};
func void DIA_Ramirez_PICKPOCKET_BACK()
{
Info_ClearChoices (DIA_Ramirez_PICKPOCKET);
};
///////////////////////////////////////////////////////////////////////
// Info Diebeszeichen
///////////////////////////////////////////////////////////////////////
INSTANCE DIA_Ramirez_Zeichen (C_INFO)
{
npc = VLK_445_Ramirez;
nr = 2;
condition = DIA_Ramirez_Zeichen_Condition;
information = DIA_Ramirez_Zeichen_Info;
permanent = FALSE;
description = "(Pâedvést zlodęjský signál.)";
};
FUNC INT DIA_Ramirez_Zeichen_Condition()
{
if (Knows_SecretSign == TRUE)
{
return TRUE;
};
};
FUNC VOID DIA_Ramirez_Zeichen_Info()
{
AI_PlayAni (other, "T_YES");
AI_Output (self, other, "DIA_Ramirez_Zeichen_14_00");//Fajn, fajn, znáš signál. (zívá) Docela mę to pâekvapuje.
};
//////////////////////////////////////////////////////////////////////
// Info Hallo
///////////////////////////////////////////////////////////////////////
INSTANCE DIA_Ramirez_Hallo (C_INFO)
{
npc = VLK_445_Ramirez;
nr = 2;
condition = DIA_Ramirez_Hallo_Condition;
information = DIA_Ramirez_Hallo_Info;
permanent = TRUE;
important = TRUE;
};
//----------------------------------
var int DIA_Ramirez_Hallo_permanent;
//----------------------------------
FUNC INT DIA_Ramirez_Hallo_Condition()
{
if Npc_IsInState (self, ZS_Talk)
&& (DIA_Ramirez_Hallo_permanent == FALSE)
{
return TRUE;
};
};
FUNC VOID DIA_Ramirez_Hallo_Info()
{
if (self.aivar [AIV_TalkedToPlayer] == FALSE)
&& (Join_Thiefs == FALSE)
{
AI_Output (self, other, "DIA_Ramirez_Hallo_14_00");//Ztratil ses? Nemyslim si, že tohle je to pravé místo pro tebe.
AI_Output (self, other, "DIA_Ramirez_Hallo_14_01");//Jestli se ti tady nęco stane, nikdo z nás ti pomoct nepůjde. Takže si dávej bacha. (široký úsmęv)
};
if (Join_Thiefs == TRUE)
{
AI_Output (self, other, "DIA_Ramirez_Hallo_14_02");//Tak jsi tady. Dobrá, tak ti pâeju hodnę štęstí - ale buë opatrný, aă už dęláš cokoli.
AI_Output (self, other, "DIA_Ramirez_Hallo_14_03");//A ještę jedna vęc - je mi jedno, kdo jsi tam nahoâe a s kým pracuješ.
AI_Output (self, other, "DIA_Ramirez_Hallo_14_04");//Tady dole jsi jen jedním z nás. Zlodęj. Nic víc, nic míŕ.
DIA_Ramirez_Hallo_permanent = TRUE;
};
DG_gefunden = TRUE;
};
///////////////////////////////////////////////////////////////////////
// Info Beute
///////////////////////////////////////////////////////////////////////
INSTANCE DIA_Ramirez_Beute (C_INFO)
{
npc = VLK_445_Ramirez;
nr = 3;
condition = DIA_Ramirez_Beute_Condition;
information = DIA_Ramirez_Beute_Info;
permanent = FALSE;
important = TRUE;
};
FUNC INT DIA_Ramirez_Beute_Condition()
{
if ((Mob_HasItems ("THIEF_CHEST_01",ItMi_Gold) < 50)
|| (Mob_HasItems ("THIEF_CHEST_02",ItMi_Gold) < 100)
|| (Mob_HasItems ("THIEF_CHEST_02",ItMi_Silvercup) == FALSE)
|| (Mob_HasItems ("THIEF_CHEST_03",ItMi_Gold) < 75))
{
return TRUE;
};
};
FUNC VOID DIA_Ramirez_Beute_Info()
{
AI_Output (self, other, "DIA_Ramirez_Beute_14_00");//Poslouchej, to nemůžeš myslet vážnę, že ne? Hrabeš se v našem zlatu - to se nás pokoušíš okrást?
AI_Output (other, self, "DIA_Ramirez_Beute_15_01");//Neâíkej, že za tu dâinu je jen tęchhle pár mincí.
AI_Output (other, self, "DIA_Ramirez_Beute_15_02");//Myslím, tahle hromádka tady - to je CELÁ koâist? To je všechno, co má zlodęjský cech Khorinisu k dispozici?
AI_Output (self, other, "DIA_Ramirez_Beute_14_03");//Kdo âíkal, že tady dole máme naši koâist?
AI_Output (other, self, "DIA_Ramirez_Beute_15_04");//Stejnę tomu nemůžu uvęâit. Tak kde jste schovali ty poklady?
AI_Output (self, other, "DIA_Ramirez_Beute_14_05");//Na velmi bezpečné místo.
AI_Output (other, self, "DIA_Ramirez_Beute_15_06");//Aha.
AI_Output (self, other, "DIA_Ramirez_Beute_14_07");//Dobrá, můžeš si to zlato nechat. Ale budu na tebe dávat pozor. Tak to nepâepískni.
};
//////////////////////////////////////////////////////////////////////
// Info Lernen freischalten
///////////////////////////////////////////////////////////////////////
INSTANCE DIA_Ramirez_Bezahlen (C_INFO)
{
npc = VLK_445_Ramirez;
nr = 9;
condition = DIA_Ramirez_Bezahlen_Condition;
information = DIA_Ramirez_Bezahlen_Info;
permanent = TRUE;
description = "Můžeš mę nęčemu naučit?";
};
//--------------------------------------
var int DIA_Ramirez_Bezahlen_permanent;
//--------------------------------------
FUNC INT DIA_Ramirez_Bezahlen_Condition()
{
if (Join_Thiefs == TRUE)
&& (DIA_Ramirez_Bezahlen_permanent == FALSE)
&& (Npc_KnowsInfo (other,DIA_Cassia_Lernen))
{
return TRUE;
};
};
FUNC VOID DIA_Ramirez_Bezahlen_Info()
{
if (MIS_ThiefGuild_sucked == FALSE)
{
Ramirez_Cost = 150;
}
else
{
Ramirez_Cost = 300;
};
AI_Output (other, self, "DIA_Ramirez_Bezahlen_15_00");//Můžeš mę nęčemu naučit?
if (Npc_GetTalentSkill (other, NPC_TALENT_PICKLOCK) == TRUE)
{
AI_Output (self, other, "DIA_Ramirez_Bezahlen_14_01");//Nemůžu tę naučit nic. O páčení zámků už víš všechno.
if (other.attribute[ATR_DEXTERITY] < T_MAX)
{
AI_Output (self, other, "DIA_Ramirez_Add_14_00"); //Teë už jen potâebuješ zdokonalit svou obratnost.
};
DIA_Ramirez_Bezahlen_permanent = TRUE;
Info_ClearChoices (DIA_Ramirez_Bezahlen);
}
else
{
AI_Output (self, other, "DIA_Ramirez_Bezahlen_14_02");//Můžu ti ukázat, jak páčit zámky. Bude tę to stát jen...
B_Say_Gold (self, other, Ramirez_Cost);
Info_ClearChoices (DIA_Ramirez_Bezahlen);
Info_AddChoice (DIA_Ramirez_Bezahlen,"Možná pozdęji ... (ZPĘT)",DIA_Ramirez_Bezahlen_Spaeter);
Info_AddChoice (DIA_Ramirez_Bezahlen,"OK, zaplatím ...",DIA_Ramirez_Bezahlen_Okay);
};
};
FUNC VOID DIA_Ramirez_Bezahlen_Spaeter()
{
Info_ClearChoices (DIA_Ramirez_Bezahlen);
};
FUNC VOID DIA_Ramirez_Bezahlen_Okay()
{
AI_Output (other, self, "DIA_Ramirez_Bezahlen_Okay_15_00");//Dobrá, zaplatím.
if B_GiveInvItems (other, self, ItMi_Gold, Ramirez_Cost)
{
AI_Output (other, self, "DIA_Ramirez_Bezahlen_Okay_15_01");//... Tady je zlato.
AI_Output (self, other, "DIA_Ramirez_Bezahlen_Okay_14_02");//Výbornę. Jsem ti k službám.
Ramirez_TeachPlayer = TRUE;
DIA_Ramirez_Bezahlen_permanent = TRUE;
Info_ClearChoices (DIA_Ramirez_Bezahlen);
}
else
{
AI_Output (self, other, "DIA_Ramirez_Bezahlen_Okay_14_03");//Nejdâív si sežeŕ zlato a pak se vraă.
Info_ClearChoices (DIA_Ramirez_Bezahlen);
};
};
//////////////////////////////////////////////////////////////////////
// Info Teach
///////////////////////////////////////////////////////////////////////
INSTANCE DIA_Ramirez_Teach (C_INFO)
{
npc = VLK_445_Ramirez;
nr = 99;
condition = DIA_Ramirez_Teach_Condition;
information = DIA_Ramirez_Teach_Info;
permanent = TRUE;
description = "Ukaž mi, jak se páčí zámky!";
};
FUNC INT DIA_Ramirez_Teach_Condition()
{
if (Ramirez_TeachPlayer == TRUE)
&& (Npc_GetTalentSkill (other, NPC_TALENT_PICKLOCK) == FALSE)
{
return TRUE;
};
};
FUNC VOID DIA_Ramirez_Teach_Info()
{
AI_Output (other,self, "DIA_Ramirez_Teach_15_00");//Ukaž mi, jak se páčí zámky!
if (Ramirez_Zweimal == FALSE)
{
AI_Output (self, other, "DIA_Ramirez_Teach_14_06");//Páčení zámku je zlodęjské umęní.
AI_Output (self, other, "DIA_Ramirez_Teach_14_01");//Potâebuješ spoustu citu a intuice. A hromadu šperháků.
AI_Output (self, other, "DIA_Ramirez_Teach_14_02");//Nicménę, nękteré truhly mají speciální zámky, které lze odemknout jen za pomoci odpovídajícího klíče.
Ramirez_Zweimal = TRUE;
}
if B_TeachThiefTalent (self, other, NPC_TALENT_PICKLOCK)
{
AI_Output (self, other, "DIA_Ramirez_Teach_14_03");//Takže si klekneš pâed zámek a šperhákem otáčíš napravo a nalevo.
AI_Output (self, other, "DIA_Ramirez_Teach_14_04");//Když jím otočíš moc rychle nebo moc silnę, zlomí se.
AI_Output (self, other, "DIA_Ramirez_Teach_14_05");//Ale čím zkušenęjší budeš, tím pro tebe bude snazší s nimi zacházet.
};
};
///////////////////////////////////////////////////////////////////////
// Info oberes Viertel
///////////////////////////////////////////////////////////////////////
INSTANCE DIA_Ramirez_Viertel (C_INFO)
{
npc = VLK_445_Ramirez;
nr = 8;
condition = DIA_Ramirez_Viertel_Condition;
information = DIA_Ramirez_Viertel_Info;
permanent = FALSE;
description = "Kde to páčení zámků stojí za námahu?";
};
FUNC INT DIA_Ramirez_Viertel_Condition()
{
if (Knows_SecretSign == TRUE)
{
return TRUE;
};
};
FUNC VOID DIA_Ramirez_Viertel_Info()
{
AI_Output (other, self, "DIA_Ramirez_Viertel_15_00");//Kde to páčení zámků stojí za námahu?
AI_Output (self, other, "DIA_Ramirez_Viertel_14_01");//V horní čtvrti, samozâejmę.
AI_Output (self, other, "DIA_Ramirez_Viertel_14_02");//Ale jestli se tam budeš chtít k nękomu vloupat, počkej si na noc, až všichni usnou - teda kromę stráží.
AI_Output (self, other, "DIA_Ramirez_Viertel_14_03");//Hlídkují tam celou noc. Jednoho z nich znám - jmenuje se Wambo. On je jedinej, koho zajímá zlato.
AI_Output (self, other, "DIA_Ramirez_Viertel_14_04");//Je drahej, ale když mu jednou zaplatíš, už se o to nemusíš dál starat.
};
///////////////////////////////////////////////////////////////////////
// Info Sextant
///////////////////////////////////////////////////////////////////////
INSTANCE DIA_Ramirez_Sextant (C_INFO)
{
npc = VLK_445_Ramirez;
nr = 2;
condition = DIA_Ramirez_Sextant_Condition;
information = DIA_Ramirez_Sextant_Info;
permanent = FALSE;
description = "Máš pro mę práci?";
};
FUNC INT DIA_Ramirez_Sextant_Condition()
{
if (Knows_SecretSign == TRUE)
&& (MIS_CassiaRing == LOG_SUCCESS)
&& (Kapitel >= 2)
{
return TRUE;
};
};
FUNC VOID DIA_Ramirez_Sextant_Info()
{
AI_Output (other, self, "DIA_Ramirez_Sextant_15_00");//Máš pro mę práci?
AI_Output (self, other, "DIA_Ramirez_Sextant_14_01");//Hmm... je tu jedna vęcička, kterou bych rád męl. Ale zatím jsem ji nenašel.
AI_Output (other, self, "DIA_Ramirez_Sextant_15_02");//Co to je?
AI_Output (self, other, "DIA_Ramirez_Sextant_14_03");//Úhlomęr. Pâines mi úhlomęr - dám ti za nęj dobrou cenu.
Log_CreateTopic (Topic_RamirezSextant,LOG_MISSION);
Log_SetTopicStatus (Topic_RamirezSextant, LOG_RUNNING);
B_LogEntry (Topic_RamirezSextant, "Ramirez mę požádal, abych mu pâinesl úhlomęr.");
MIS_RamirezSextant = LOG_RUNNING;
};
///////////////////////////////////////////////////////////////////////
// Info Success
///////////////////////////////////////////////////////////////////////
INSTANCE DIA_Ramirez_Success (C_INFO)
{
npc = VLK_445_Ramirez;
nr = 2;
condition = DIA_Ramirez_Success_Condition;
information = DIA_Ramirez_Success_Info;
permanent = FALSE;
description = "Mám pro tebe ten úhlomęr.";
};
FUNC INT DIA_Ramirez_Success_Condition()
{
if Npc_KnowsInfo (other, DIA_Ramirez_Sextant)
&& (Npc_HasItems (other, Itmi_Sextant ) > 0)
{
return TRUE;
};
};
FUNC VOID DIA_Ramirez_Success_Info()
{
AI_Output (other, self, "DIA_Ramirez_Success_15_00");//Mám pro tebe ten sextant.
B_GiveInvItems (other, self, Itmi_Sextant,1);
AI_Output (self, other, "DIA_Ramirez_Success_14_01");//To není možný. Vážnę se ti povedlo nęjaký najít.
AI_Output (self, other, "DIA_Ramirez_Success_14_02");//Tady, ty peníze si vážnę zasloužíš.
B_GiveInvItems (self, other, Itmi_Gold,Value_Sextant/2);
Ramirez_Sextant = TRUE;
MIS_RamirezSextant = LOG_SUCCESS;
B_GivePlayerXP (XP_RamirezSextant);
};
| D |
/Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Async.build/Future+DoCatch.swift.o : /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Async+NIO.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Future+Variadic.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Deprecated.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Future+Void.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/FutureType.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Collection+Future.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Future+DoCatch.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Future+Global.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Future+Transform.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Future+Flatten.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Future+Map.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Worker.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/QueueHandler.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/AsyncError.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Exports.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/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/NIO.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 /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.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/SwiftOnoneSupport.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOAtomics/include/cpp_magic.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOLinux/include/ifaddrs-android.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIODarwin/include/CNIODarwin.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOLinux/include/CNIOLinux.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio-zlib-support.git-1048424751408724151/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.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
/Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Async.build/Future+DoCatch~partial.swiftmodule : /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Async+NIO.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Future+Variadic.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Deprecated.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Future+Void.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/FutureType.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Collection+Future.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Future+DoCatch.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Future+Global.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Future+Transform.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Future+Flatten.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Future+Map.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Worker.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/QueueHandler.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/AsyncError.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Exports.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/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/NIO.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 /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.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/SwiftOnoneSupport.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOAtomics/include/cpp_magic.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOLinux/include/ifaddrs-android.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIODarwin/include/CNIODarwin.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOLinux/include/CNIOLinux.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio-zlib-support.git-1048424751408724151/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.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
/Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Async.build/Future+DoCatch~partial.swiftdoc : /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Async+NIO.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Future+Variadic.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Deprecated.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Future+Void.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/FutureType.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Collection+Future.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Future+DoCatch.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Future+Global.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Future+Transform.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Future+Flatten.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Future+Map.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Worker.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/QueueHandler.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/AsyncError.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/core.git-8311783259025539290/Sources/Async/Exports.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/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/NIO.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 /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.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/SwiftOnoneSupport.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOAtomics/include/cpp_magic.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOLinux/include/ifaddrs-android.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIODarwin/include/CNIODarwin.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOLinux/include/CNIOLinux.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio-zlib-support.git-1048424751408724151/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.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
| D |
module gui.widgetfeature.ninegridrenderer;
import graphics.model;
import gui.models;
import gui.style;
import gui.widget : Widget;
import gui.widgetfeature;
import math;
/** A 9 grid model for rendering boxes with expandables borders
-----------------
| | | |
-----------------
| | | |
| | content | |
| | | |
-----------------
| | | |
-----------------
The four corners of the widget are draw with fixed size images.
The four sides are draw with images that can expand horizontally/vertically depending on axis of the side
The center is either tiling or streching depending of style setting.
All these settings are stored in the style.
*/
class NineGridRenderer : WidgetFeature
{
private import graphics.color : Color;
string styleName;
BoxModel model;
private RectfOffset _spriteBorder;
private Rectf _spriteRect;
@property void color(Color col)
{
model.color = col;
}
/*
this(string styleName = DefaultStyleName)
{
this.styleName = styleName;
// model = new BoxModel(Sprite(0,0,160,160), RectfOffset(6,6,6,6));
//model = createQuad(Rectf(0,0,1,1));
}
Model createQuad(Rectf worldRect, Material mat = null)
{
auto m = new Model;
// float[] vert = quadVertices(worldRect);
float[] uv = [
0f, 1f,
0f, 1f,
1f, 1f,
0f, 1f,
1f, 1f,
1f, 0f];
//float[] uv = quadUVForTextureRenderTargetPixels(worldRect, mat, Window.active.size);
float[] cols = new float[vert.length];
std.algorithm.fill(cols, 1.0f);
Buffer vertexBuf = Buffer.create(vert);
Buffer colorBuf = Buffer.create(uv);
Buffer vertCols = Buffer.create(cols);
Mesh mesh = Mesh.create();
mesh.setBuffer(vertexBuf, 3, 0);
mesh.setBuffer(colorBuf, 2, 1);
mesh.setBuffer(vertCols, 3, 2);
m.mesh = mesh;
m.material = mat;
return m;
}
*/
override void draw(Widget widget)
{
Style style = styleName is null ? widget.style : widget.window.styleSheet.getStyle(styleName);
auto mat = style.background;
if (mat is null || mat.texture is null)
return;
Mat4f transform;
widget.getStyledScreenToWorldTransform(transform);
RectfOffset spriteBorder = style.backgroundSpriteBorder;
//Rectf spriteRect = style.backgroundSprite;
Rectf spriteRect = widget.backgroundSpriteRect;
//
//if (widget.id == 8)
// std.stdio.writeln("w8 dpos ", widget.rect.h);
if (model is null)
{
model = new BoxModel(widget.id, Sprite(spriteRect), spriteBorder);
_spriteBorder = spriteBorder;
_spriteRect = spriteRect;
}
else if (_spriteRect != spriteRect || _spriteBorder != spriteBorder)
{
model.borders = spriteBorder;
model.setupDefaultNinePatch(Sprite(spriteRect));
_spriteBorder = spriteBorder;
_spriteRect = spriteRect;
}
// auto wr = widget.rectStyled.size;
auto wr = widget.rect.size;
model.rect = Rectf(0, 0, wr);
model.material = mat;
color = style.backgroundColor;
model.draw(widget.window.MVP * transform);
//Style style = widget.window.styleddSet.getStyle(styleName);
//model.material = style.background;
//const Rectf r = Rectf(widget.rect);
//Rectf wrect = widget.window.windowToWorld(r);
//
//// Move model using translate to we do not have to update vertex position array
//auto transform = Mat4f.makeTranslate(Vec3f(wrect.x, wrect.y, 0));
//
//// All size changes need to adjust vertices and/or uvs.
//// Translation is done using transform so move rect to 0,0
//wrect.pos = Vec2f(0,0);
//float[] uv = quadUVForTextureMatchingRenderTargetPixels(wrect, model.material.texture, widget.window.size);
//float[] vert = quadVertices(wrect);
//model.mesh.buffers[0].data = vert;
//model.mesh.buffers[1].data = uv;
//model.draw(widget.window.MVP * transform);
}
}
| D |
/Users/sapientisat/Projects/Supplements/Supplements/XcodeBuild/Intermediates.noindex/Pods.build/Debug-iphonesimulator/CollectionViewPagingLayout.build/Objects-normal/x86_64/PagingCollectionViewController.o : /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/PagingCollectionViewModifierData.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Utilities/CGFloat+Range.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Utilities/Multipliable.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Utilities/CGFloat+Interpolate.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Snapshot/SnapshotTransformViewOptions.PiecesValue.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/TransformCurve.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/PagePadding.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/PagingCollectionViewCell.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/TransformPageViewProtocol.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Snapshot/SnapshotTransformViewOptions.PiecePosition.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/PagingCollectionViewControllerBuilder.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/CollectionViewPagingLayout.ZPositionHandler.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/PagingCollectionViewController.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/ViewAnimator.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Utilities/UIView+Utilities.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Scale/ScaleTransformViewOptions.Translation3dOptions.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Scale/ScaleTransformViewOptions.Rotation3dOptions.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Scale/ScaleTransformViewOptions.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Stack/StackTransformViewOptions.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Snapshot/SnapshotTransformViewOptions.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Scale/ScaleTransformViewOptions+Layout.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Stack/StackTransformViewOptions+Layout.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Snapshot/SnapshotTransformViewOptions+Layout.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/CollectionViewPagingLayout.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/ScalePageView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/StackPageView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/TransformPageView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/SnapshotPageView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/TransformableView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Scale/ScaleTransformView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Stack/StackTransformView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Snapshot/SnapshotTransformView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Snapshot/SnapshotContainerView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/BlurEffectView.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/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreData.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/CoreLocation.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/os.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UniformTypeIdentifiers.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/CloudKit.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/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/DeveloperToolsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/sapientisat/Projects/Supplements/Supplements/Pods/Target\ Support\ Files/CollectionViewPagingLayout/CollectionViewPagingLayout-umbrella.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/dyld.modulemap /Users/sapientisat/Projects/Supplements/Supplements/XcodeBuild/Intermediates.noindex/Pods.build/Debug-iphonesimulator/CollectionViewPagingLayout.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CloudKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/sapientisat/Projects/Supplements/Supplements/XcodeBuild/Intermediates.noindex/Pods.build/Debug-iphonesimulator/CollectionViewPagingLayout.build/Objects-normal/x86_64/PagingCollectionViewController~partial.swiftmodule : /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/PagingCollectionViewModifierData.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Utilities/CGFloat+Range.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Utilities/Multipliable.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Utilities/CGFloat+Interpolate.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Snapshot/SnapshotTransformViewOptions.PiecesValue.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/TransformCurve.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/PagePadding.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/PagingCollectionViewCell.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/TransformPageViewProtocol.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Snapshot/SnapshotTransformViewOptions.PiecePosition.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/PagingCollectionViewControllerBuilder.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/CollectionViewPagingLayout.ZPositionHandler.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/PagingCollectionViewController.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/ViewAnimator.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Utilities/UIView+Utilities.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Scale/ScaleTransformViewOptions.Translation3dOptions.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Scale/ScaleTransformViewOptions.Rotation3dOptions.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Scale/ScaleTransformViewOptions.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Stack/StackTransformViewOptions.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Snapshot/SnapshotTransformViewOptions.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Scale/ScaleTransformViewOptions+Layout.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Stack/StackTransformViewOptions+Layout.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Snapshot/SnapshotTransformViewOptions+Layout.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/CollectionViewPagingLayout.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/ScalePageView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/StackPageView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/TransformPageView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/SnapshotPageView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/TransformableView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Scale/ScaleTransformView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Stack/StackTransformView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Snapshot/SnapshotTransformView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Snapshot/SnapshotContainerView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/BlurEffectView.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/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreData.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/CoreLocation.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/os.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UniformTypeIdentifiers.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/CloudKit.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/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/DeveloperToolsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/sapientisat/Projects/Supplements/Supplements/Pods/Target\ Support\ Files/CollectionViewPagingLayout/CollectionViewPagingLayout-umbrella.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/dyld.modulemap /Users/sapientisat/Projects/Supplements/Supplements/XcodeBuild/Intermediates.noindex/Pods.build/Debug-iphonesimulator/CollectionViewPagingLayout.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CloudKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/sapientisat/Projects/Supplements/Supplements/XcodeBuild/Intermediates.noindex/Pods.build/Debug-iphonesimulator/CollectionViewPagingLayout.build/Objects-normal/x86_64/PagingCollectionViewController~partial.swiftdoc : /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/PagingCollectionViewModifierData.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Utilities/CGFloat+Range.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Utilities/Multipliable.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Utilities/CGFloat+Interpolate.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Snapshot/SnapshotTransformViewOptions.PiecesValue.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/TransformCurve.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/PagePadding.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/PagingCollectionViewCell.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/TransformPageViewProtocol.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Snapshot/SnapshotTransformViewOptions.PiecePosition.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/PagingCollectionViewControllerBuilder.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/CollectionViewPagingLayout.ZPositionHandler.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/PagingCollectionViewController.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/ViewAnimator.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Utilities/UIView+Utilities.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Scale/ScaleTransformViewOptions.Translation3dOptions.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Scale/ScaleTransformViewOptions.Rotation3dOptions.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Scale/ScaleTransformViewOptions.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Stack/StackTransformViewOptions.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Snapshot/SnapshotTransformViewOptions.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Scale/ScaleTransformViewOptions+Layout.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Stack/StackTransformViewOptions+Layout.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Snapshot/SnapshotTransformViewOptions+Layout.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/CollectionViewPagingLayout.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/ScalePageView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/StackPageView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/TransformPageView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/SnapshotPageView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/TransformableView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Scale/ScaleTransformView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Stack/StackTransformView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Snapshot/SnapshotTransformView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Snapshot/SnapshotContainerView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/BlurEffectView.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/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreData.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/CoreLocation.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/os.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UniformTypeIdentifiers.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/CloudKit.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/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/DeveloperToolsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/sapientisat/Projects/Supplements/Supplements/Pods/Target\ Support\ Files/CollectionViewPagingLayout/CollectionViewPagingLayout-umbrella.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/dyld.modulemap /Users/sapientisat/Projects/Supplements/Supplements/XcodeBuild/Intermediates.noindex/Pods.build/Debug-iphonesimulator/CollectionViewPagingLayout.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CloudKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/sapientisat/Projects/Supplements/Supplements/XcodeBuild/Intermediates.noindex/Pods.build/Debug-iphonesimulator/CollectionViewPagingLayout.build/Objects-normal/x86_64/PagingCollectionViewController~partial.swiftsourceinfo : /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/PagingCollectionViewModifierData.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Utilities/CGFloat+Range.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Utilities/Multipliable.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Utilities/CGFloat+Interpolate.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Snapshot/SnapshotTransformViewOptions.PiecesValue.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/TransformCurve.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/PagePadding.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/PagingCollectionViewCell.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/TransformPageViewProtocol.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Snapshot/SnapshotTransformViewOptions.PiecePosition.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/PagingCollectionViewControllerBuilder.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/CollectionViewPagingLayout.ZPositionHandler.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/PagingCollectionViewController.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/ViewAnimator.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Utilities/UIView+Utilities.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Scale/ScaleTransformViewOptions.Translation3dOptions.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Scale/ScaleTransformViewOptions.Rotation3dOptions.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Scale/ScaleTransformViewOptions.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Stack/StackTransformViewOptions.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Snapshot/SnapshotTransformViewOptions.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Scale/ScaleTransformViewOptions+Layout.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Stack/StackTransformViewOptions+Layout.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Snapshot/SnapshotTransformViewOptions+Layout.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/CollectionViewPagingLayout.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/ScalePageView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/StackPageView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/TransformPageView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/SwiftUI/SnapshotPageView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/TransformableView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Scale/ScaleTransformView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Stack/StackTransformView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Snapshot/SnapshotTransformView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/Snapshot/SnapshotContainerView.swift /Users/sapientisat/Projects/Supplements/Supplements/Pods/CollectionViewPagingLayout/Lib/BlurEffectView.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/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreData.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/CoreLocation.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/os.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UniformTypeIdentifiers.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/CloudKit.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/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/DeveloperToolsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/sapientisat/Projects/Supplements/Supplements/Pods/Target\ Support\ Files/CollectionViewPagingLayout/CollectionViewPagingLayout-umbrella.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/dyld.modulemap /Users/sapientisat/Projects/Supplements/Supplements/XcodeBuild/Intermediates.noindex/Pods.build/Debug-iphonesimulator/CollectionViewPagingLayout.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CloudKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
| D |
// Написано на языке программирования Динрус. Разработчик Виталий Кулич.
module std.file;
import std.string,std.regexp, std.path, sys.WinStructs,cidrus: getenv;
export extern(D)
{
проц[] читайФайл(ткст имяф){return read(имяф);}
проц пишиФайл(ткст имяф, проц[] буф){write(имяф, буф);}
проц допишиФайл(ткст имяф, проц[] буф){append(имяф, буф);}
проц переименуйФайл(ткст из, ткст в){rename(из, в);}
проц удалиФайл(ткст имяф){remove(имяф);}
бдол дайРазмерФайла(ткст имяф){return getSize(имяф);}
проц дайВременаФайла(ткст имяф, out т_время фтц, out т_время фта, out т_время фтм){getTimes(имяф, фтц, фта, фтм);}
бул естьФайл(ткст имяф){return cast(бул) exists(имяф);}
бцел дайАтрибутыФайла(ткст имяф){return getAttributes(имяф);}
бул файл_ли(ткст имяф){return cast(бул) isfile(имяф);}
бул папка_ли(ткст имяп){return cast(бул) isdir(имяп);}
проц сменипап(ткст имяп){chdir(имяп);}
проц сделайпап(ткст имяп){mkdir(имяп);}
проц удалипап(ткст имяп){rmdir(имяп);}
ткст дайтекпап(){return getcwd();}
ткст[] списпап(ткст имяп){return listdir(имяп);}
ткст[] списпап(ткст имяп, ткст образец){return listdir(имяп, образец);}
проц копируйФайл(ткст из, ткст в){copy(из, в);}
struct Папка
{
private
{
ткст м_имяп;
}
export:
проц opCall(ткст имяп)
{
м_имяп = имяп;
}
ткст текущая()
{
return м_имяп = дайтекпап();
}
alias текущая opCall;
проц перейди(ткст имяп)
{
сменипап(имяп);
м_имяп = имяп;
}
проц создай(ткст имяп)
{
сделайпап(имяп);
м_имяп = имяп;
}
проц удали()
{
удалипап(м_имяп);
}
ткст[] список()
{
return списпап(м_имяп);
}
ткст[] список(ткст образец)
{
return списпап(м_имяп, образец);
}
}
struct Файл
{
private
{
ткст м_имяф = ткст.init;
т_время м_времяСоздания,
м_времяДоступа,
м_времяИзменения;
проц дайВремена()
{
getTimes(м_имяф, м_времяСоздания, м_времяДоступа, м_времяИзменения);
}
}
export:
проц opCall(ткст имяф)
{
м_имяф = имяф;
}
проц[] читай()
{
return read(м_имяф);
}
ткст имя()
{
return м_имяф;
}
проц допиши(проц[] буф)
{
append(м_имяф, буф);
}
проц пиши( проц[] буф)
{
write(м_имяф, буф);
}
проц переименуй(ткст в)
{
rename(м_имяф, в);
}
проц удали()
{
remove(м_имяф);
}
бдол размер()
{
return getSize(м_имяф);
}
бул существует()
{
return cast(бул) exists(м_имяф);
}
бцел атрибуты()
{
return getAttributes(м_имяф);
}
бул действительноФайл()
{
return cast(бул) isfile(м_имяф);
}
т_время времяСоздания()
{
дайВремена();
return м_времяСоздания;
}
т_время времяДоступа()
{
дайВремена();
return м_времяДоступа;
}
т_время времяИзменения()
{
дайВремена();
return м_времяИзменения;
}
проц копируй(ткст в)
{
copy(м_имяф, в);
}
}
/** Get an environment variable D-ly */
ткст дайПеремСреды(ткст пер)
{
сим[10240] буфер;
буфер[0] = '\0';
GetEnvironmentVariableA(
std.string.вТкст0(пер),
буфер.ptr,
10240);
return std.string.вТкст(буфер.ptr);
}
/** Set an environment variable D-ly */
проц устПеремСреды(ткст пер, ткст знач)
{
SetEnvironmentVariableA(
std.string.вТкст0(пер),
std.string.вТкст0(знач));
}
/** Get the system PATH */
ткст[] дайПуть()
{
return std.regexp.разбей(std.string.вТкст(getenv("PATH")), РАЗДПСТР);
}
/** From args[0], figure out our путь. Returns 'нет' on failure */
бул гдеЯ(ткст argvz, inout ткст пап, inout ткст bname)
{
// split it
bname = извлекиИмяПути(argvz);
пап = извлекиПапку(argvz);
// on Windows, this is a .exe
version (Windows) {
bname = устДефРасш(bname, "exe");
}
// is this a directory?
if (пап != "") {
if (!абсПуть_ли(пап)) {
// make it absolute
пап = дайтекпап() ~ РАЗДПАП ~ пап;
}
return да;
}
version (Windows) {
// is it in cwd?
char[] cwd = дайтекпап();
if (естьФайл(cwd ~ РАЗДПАП ~ bname)) {
пап = cwd;
return да;
}
}
// rifle through the путь
char[][] путь = дайПуть();
foreach (pe; путь) {
char[] fullname = pe ~ РАЗДПАП ~ bname;
if (естьФайл(fullname)) {
version (Windows) {
пап = pe;
return да;
} else {
if (дайАтрибутыФайла(fullname) & 0100) {
пап = pe;
return да;
}
}
}
}
// bad
return нет;
}
/// Return a canonical pathname
ткст канонПуть(ткст исхПуть)
{
char[] возвр;
version (Windows) {
// replace any altsep with sep
if (АЛЬТРАЗДПАП.length) {
возвр = замени(исхПуть, АЛЬТРАЗДПАП, "\\\\");
} else {
возвр = исхПуть.dup;
}
} else {
возвр = исхПуть.dup;
}
// expand tildes
возвр = разверниТильду(возвр);
// get rid of any duplicate separatoрс
for (int i = 0; i < возвр.length; i++) {
if (возвр[i .. (i + 1)] == РАЗДПАП) {
// drop the duplicate separator
i++;
while (i < возвр.length &&
возвр[i .. (i + 1)] == РАЗДПАП) {
возвр = возвр[0 .. i] ~ возвр[(i + 1) .. $];
}
}
}
// make sure we don't miss a .. element
if (возвр.length > 3 && возвр[($-3) .. $] == РАЗДПАП ~ "..") {
возвр ~= РАЗДПАП;
}
// or a . element
if (возвр.length > 2 && возвр[($-2) .. $] == РАЗДПАП ~ ".") {
возвр ~= РАЗДПАП;
}
// search for .. elements
for (int i = 0; возвр.length > 4 && i <= возвр.length - 4; i++) {
if (возвр[i .. (i + 4)] == РАЗДПАП ~ ".." ~ РАЗДПАП) {
// drop the previous путь element
int j;
for (j = i - 1; j > 0 && возвр[j..(j+1)] != РАЗДПАП; j--) {}
if (j > 0) {
// cut
if (возвр[j..j+2] == "/.") {
j = i + 2; // skip it
} else {
возвр = возвр[0..j] ~ возвр[(i + 3) .. $];
}
} else {
// can't cut
j = i + 2;
}
i = j - 1;
}
}
// search for . elements
for (int i = 0; возвр.length > 2 && i <= возвр.length - 3; i++) {
if (возвр[i .. (i + 3)] == РАЗДПАП ~ "." ~ РАЗДПАП) {
// drop this путь element
возвр = возвр[0..i] ~ возвр[(i + 2) .. $];
i--;
}
}
// get rid of any introductory ./'т
while (возвр.length > 2 && возвр[0..2] == "." ~ РАЗДПАП) {
возвр = возвр[2..$];
}
// finally, get rid of any trailing separatoрс
while (возвр.length &&
возвр[($ - 1) .. $] == РАЗДПАП) {
возвр = возвр[0 .. ($ - 1)];
}
return возвр;
}
/** Make a directory and all parent directories */
проц сделпапР(ткст пап)
{
пап = канонПуть(пап);
version (Windows) {
пап = std.string.замени(пап, "/", "\\\\");
}
// split it into elements
char[][] элтыпап = std.regexp.разбей(пап, "\\\\");
char[] текпап;
// check for root пап
if (элтыпап.length &&
элтыпап[0] == "") {
текпап = РАЗДПАП;
элтыпап = элтыпап[1..$];
}
// then go piece-by-piece, making directories
foreach (элтпап; элтыпап) {
if (текпап.length) {
текпап ~= РАЗДПАП ~ элтпап;
} else {
текпап ~= элтпап;
}
if (!естьФайл(текпап)) {
сделайпап(текпап);
}
}
}
/** Remove a file or directory and all of its children */
проц удалиРек(ткст имя)
{
// can only delete writable files on Windows
version (Windows) {
SetFileAttributesA(toStringz(имя),
GetFileAttributesA(toStringz(имя)) &
~0x00000001);
}
if (isdir(имя)) {
foreach (элем; listdir(имя)) {
// don't delete . or ..
if (элем == "." ||
элем == "..") continue;
удалиРек(имя ~ РАЗДПАП ~ элем);
}
// remove the directory itself
rmdir(имя);
} else {
remove(имя);
}
}
private{
бул[ткст] спСущФайлов;
}
// --------------------------------------------------
бул естьФайлВКэш(ткст имяФ)
{
if (имяФ in спСущФайлов)
{
return да;
}
try {
if(файл_ли(имяФ) && естьФайл(имяФ))
{
спСущФайлов[имяФ] = да;
return да;
}
} catch { };
return нет;
}
// --------------------------------------------------
проц удалиКэшСущФайлов()
{
ткст[] спКлюч;
спКлюч = спСущФайлов.keys.dup;
foreach(ткст спФайл; спКлюч)
{
спСущФайлов.remove(спФайл);
}
}
}
//////////////////////////////////////////////////////
private import cidrus, exception:ФайлИскл, СисОш;
private import std.path;
private import std.string;
private import std.regexp;
private import runtime;
/* =========================== Win32 ======================= */
version (Win32)
{
private import sys.WinFuncs;
private import std.utf;
private import rt.syserror;
private import rt.charset;
private import std.date;
alias rt.charset.toMBSz toMBSz;
int useWfuncs = 1;
//extern(C) int wcscmp(in wchar_t* s1, in wchar_t* s2);
/*
static this()
{
// Win 95, 98, ME do not implement the W functions
useWfuncs = (GetVersion() < 0x80000000);
}
*/
/********************************************
* Read file name[], return array of bytes read.
* Throws:
* ФайлИскл on error.
*/
void[] read(char[] name)
{
DWORD numread;
HANDLE h;
if (useWfuncs)
{
wchar* namez = std.utf.toUTF16z(name);
h = CreateFileW(namez,ППраваДоступа.ГенерноеЧтение,ПФайл.СЧ,null,ПРежСоздФайла.ОткрытьСущ,
ПФайл.Нормальный | ПФайл.ПоследоватСкан,cast(HANDLE)null);
}
else
{
char* namez = toMBSz(name);
h = CreateFileA(namez,ППраваДоступа.ГенерноеЧтение,ПФайл.СЧ,null,ПРежСоздФайла.ОткрытьСущ,
ПФайл.Нормальный | ПФайл.ПоследоватСкан,cast(HANDLE)null);
}
if (h == cast(HANDLE) НЕВЕРНХЭНДЛ)
goto err1;
auto size = GetFileSize(h, null);
if (size == НЕВЕРНРАЗМФАЙЛА)
goto err2;
auto buf = runtime.malloc(size);
if (buf)
runtime.hasNoPointers(buf.ptr);
if (ReadFile(h,buf.ptr,size,&numread,null) != 1)
goto err2;
if (numread != size)
goto err2;
if (!CloseHandle(h))
goto err;
return buf[0 .. size];
err2:
CloseHandle(h);
err:
delete buf;
err1:
throw new ФайлИскл(name, GetLastError());
}
/*********************************************
* Write buffer[] to file name[].
* Throws: ФайлИскл on error.
*/
void write(char[] name, void[] buffer)
{
HANDLE h;
DWORD numwritten;
if (useWfuncs)
{
wchar* namez = std.utf.toUTF16z(name);
h = CreateFileW(namez,ППраваДоступа.ГенернаяЗапись,0,null,ПРежСоздФайла.СоздатьВсегда,
ПФайл.Нормальный | ПФайл.ПоследоватСкан,cast(HANDLE)null);
}
else
{
char* namez = toMBSz(name);
h = CreateFileA(namez,ППраваДоступа.ГенернаяЗапись,0,null,ПРежСоздФайла.СоздатьВсегда,
ПФайл.Нормальный | ПФайл.ПоследоватСкан,cast(sys.WinFuncs.HANDLE)null);
}
if (h == cast(HANDLE) НЕВЕРНХЭНДЛ)
goto err;
if (sys.WinFuncs.WriteFile(h,buffer.ptr,buffer.length,&numwritten,null) != 1)
goto err2;
if (buffer.length != numwritten)
goto err2;
if (!CloseHandle(h))
goto err;
return;
err2:
CloseHandle(h);
err:
throw new ФайлИскл(name, GetLastError());
}
/*********************************************
* Append buffer[] to file name[].
* Throws: ФайлИскл on error.
*/
void append(char[] name, void[] buffer)
{
HANDLE h;
DWORD numwritten;
if (useWfuncs)
{
wchar* namez = std.utf.toUTF16z(name);
h = CreateFileW(namez,ППраваДоступа.ГенернаяЗапись,0,null,ПРежСоздФайла.ОткрытьВсегда,
ПФайл.Нормальный | ПФайл.ПоследоватСкан,cast(HANDLE)null);
}
else
{
char* namez = toMBSz(name);
h = CreateFileA(namez,ППраваДоступа.ГенернаяЗапись,0,null,ПРежСоздФайла.ОткрытьВсегда,
ПФайл.Нормальный | ПФайл.ПоследоватСкан,cast(sys.WinFuncs.HANDLE)null);
}
if (h == cast(HANDLE) НЕВЕРНХЭНДЛ)
goto err;
SetFilePointer(h, 0, null, ПФайл.Кон);
if (sys.WinFuncs.WriteFile(h,buffer.ptr,buffer.length,&numwritten,null) != 1)
goto err2;
if (buffer.length != numwritten)
goto err2;
if (!CloseHandle(h))
goto err;
return;
err2:
CloseHandle(h);
err:
throw new ФайлИскл(name, GetLastError());
}
/***************************************************
* Rename file from[] to to[].
* Throws: ФайлИскл on error.
*/
void rename(char[] from, char[] to)
{
BOOL результат;
if (useWfuncs)
результат = MoveFileW(std.utf.toUTF16z(from), std.utf.toUTF16z(to));
else
результат = MoveFileA(toMBSz(from), toMBSz(to));
if (!результат)
throw new ФайлИскл(to, GetLastError());
}
/***************************************************
* Delete file name[].
* Throws: ФайлИскл on error.
*/
void remove(char[] name)
{
BOOL результат;
if (useWfuncs)
результат = УдалиФайл(вЮ16(name));
else
результат = УдалиФайлА(name);
if (!результат)
throw new ФайлИскл(name, GetLastError());
}
/***************************************************
* Get size of file name[].
* Throws: ФайлИскл on error.
*/
ulong getSize(char[] name)
{
HANDLE findhndl;
uint resulth;
uint resultl;
if (useWfuncs)
{
WIN32_FIND_DATAW filefindbuf;
findhndl = FindFirstFileW(std.utf.toUTF16z(name), &filefindbuf);
resulth = filefindbuf.nFileSizeHigh;
resultl = filefindbuf.nFileSizeLow;
}
else
{
WIN32_FIND_DATA filefindbuf;
findhndl = FindFirstFileA(toMBSz(name), &filefindbuf);
resulth = filefindbuf.nFileSizeHigh;
resultl = filefindbuf.nFileSizeLow;
}
if (findhndl == cast(HANDLE)-1)
{
throw new ФайлИскл(name, GetLastError());
}
FindClose(findhndl);
return (cast(ulong)resulth << 32) + resultl;
}
/*************************
* Get creation/access/modified times of file name[].
* Throws: ФайлИскл on error.
*/
void getTimes(char[] name, out т_время ftc, out т_время fta, out т_время ftm)
{
HANDLE findhndl;
ПДАН filefindbuf;
findhndl = НайдиПервыйФайл(std.utf.toUTF16(name), &filefindbuf);
ftc = std.date.FILETIME2d_time(&filefindbuf.времяСоздания);
fta = std.date.FILETIME2d_time(&filefindbuf.времяПоследнегоДоступа);
ftm = std.date.FILETIME2d_time(&filefindbuf.времяПоследнейЗаписи);
if (findhndl == cast(ук)-1)
{
throw new ФайлИскл(name, ДайПоследнююОшибку());
}
НайдиЗакрой(findhndl);
}
/***************************************************
* Does file name[] (or directory) exist?
* Return 1 if it does, 0 if not.
*/
int exists(char[] name)
{
uint результат = GetFileAttributesW(std.utf.toUTF16z(name));
return результат != 0xFFFFFFFF;
}
/***************************************************
* Get file name[] attributes.
* Throws: ФайлИскл on error.
*/
uint getAttributes(string name)
{
бцел результат = GetFileAttributesW(std.utf.toUTF16z(name));
if ( результат == 0xFFFFFFFF)
{
throw new ФайлИскл(name, GetLastError());
}
return результат;
}
/****************************************************
* Is name[] a file?
* Throws: ФайлИскл if name[] doesn't exist.
*/
int isfile(char[] name)
{
return (getAttributes(name) & ПФайл.Папка) == 0;
}
/****************************************************
* Is name[] a directory?
* Throws: ФайлИскл if name[] doesn't exist.
*/
int isdir(char[] name)
{
return (getAttributes(name) & ПФайл.Папка) != 0;
}
/****************************************************
* Change directory to pathname[].
* Throws: ФайлИскл on error.
*/
void chdir(char[] pathname)
{
if (!SetCurrentDirectoryW(std.utf.toUTF16z(pathname)))
{
throw new ФайлИскл(pathname, GetLastError());
}
}
/****************************************************
* Make directory pathname[].
* Throws: ФайлИскл on error.
*/
void mkdir(char[] pathname)
{
if (! CreateDirectoryW(std.utf.toUTF16z(pathname), null))
{
throw new ФайлИскл(pathname, GetLastError());
}
}
/****************************************************
* Remove directory pathname[].
* Throws: ФайлИскл on error.
*/
void rmdir(char[] pathname)
{
if (!RemoveDirectoryW(std.utf.toUTF16z(pathname)))
{
throw new ФайлИскл(pathname, GetLastError());
}
}
/****************************************************
* Get current directory.
* Throws: ФайлИскл on error.
*/
char[] getcwd()
{
wchar c;
auto len = GetCurrentDirectoryW(0, &c);
if (!len)
goto Lerr;
auto dir = new wchar[len];
len = GetCurrentDirectoryW(len, dir.ptr);
if (!len)
goto Lerr;
return std.utf.toUTF8(dir[0 .. len]); // leave off terminating 0
Lerr:
throw new ФайлИскл("getcwd", GetLastError());
}
/***************************************************
* Directory Entry
*/
struct DirEntry
{
alias name имя;
alias size размер;
alias creationTime датаСозд;
alias lastAccessTime последВремяДост;
alias lastWriteTime последнВремяЗап;
alias attributes атрибуты;
alias init иниц;
alias isdir папка_ли;
alias isfile файл_ли;
string name; /// file or directory name
ulong size = ~0UL; /// size of file in bytes
т_время creationTime = т_время_нч; /// time of file creation
т_время lastAccessTime = т_время_нч; /// time file was last accessed
т_время lastWriteTime = т_время_нч; /// time file was last written to
uint attributes; // Windows file attributes OR'd together
void init(string path, ПДАН_А *fd)
{
wchar[] wbuf;
size_t clength;
size_t wlength;
size_t n;
clength = cidrus.strlen(fd.имяФайла.ptr);
// Convert cFileName[] to unicode
wlength = sys.WinFuncs.MultiByteToWideChar(0,0,fd.имяФайла.ptr,clength,null,0);
if (wlength > wbuf.length)
wbuf.length = wlength;
n = sys.WinFuncs.MultiByteToWideChar(0,0,fd.имяФайла.ptr,clength,cast(wchar*)wbuf,wlength);
assert(n == wlength);
// toUTF8() returns a new buffer
name = std.path.join(path, std.utf.toUTF8(wbuf[0 .. wlength]));
size = (cast(ulong)fd.размерФайлаВ << 32) | fd.размерФайлаН;
creationTime = std.date.FILETIME2d_time(&fd.времяСоздания);
lastAccessTime = std.date.FILETIME2d_time(&fd.времяПоследнегоДоступа);
lastWriteTime = std.date.FILETIME2d_time(&fd.времяПоследнейЗаписи);
attributes = fd.атрибутыФайла;
}
void init(string path, ПДАН *fd)
{
size_t clength = wcslen(fd.имяФайла.ptr);
name = std.path.join(path, std.utf.toUTF8(fd.имяФайла[0 .. clength]));
size = (cast(ulong)fd.размерФайлаВ << 32) | fd.размерФайлаН;
creationTime = std.date.FILETIME2d_time(&fd.времяСоздания);
lastAccessTime = std.date.FILETIME2d_time(&fd.времяПоследнегоДоступа);
lastWriteTime = std.date.FILETIME2d_time(&fd.времяПоследнейЗаписи);
attributes = fd.атрибутыФайла;
}
/****
* Return !=0 if DirEntry is a directory.
*/
uint isdir()
{
return attributes & ПФайл.Папка;
}
/****
* Return !=0 if DirEntry is a file.
*/
uint isfile()
{
return !(attributes & ПФайл.Папка);
}
}
/***************************************************
* Return contents of directory pathname[].
* The names in the contents do not include the pathname.
* Throws: ФайлИскл on error
* Example:
* This program lists all the files and subdirectories in its
* path argument.
* ----
* import std.io;
* import std.file;
*
* void main(string[] args)
* {
* auto dirs = listdir(args[1]);
*
* foreach (d; dirs)
* writefln(d);
* }
* ----
*/
string[] listdir(string pathname)
{
string[] результат;
bool listing(string filename)
{
результат ~= filename;
return true; // continue
}
listdir(pathname, &listing);
return результат;
}
/*****************************************************
* Return all the files in the directory and its subdirectories
* that match pattern or regular expression r.
* Параметры:
* pathname = Directory name
* pattern = String with wildcards, such as $(RED "*.d"). The supported
* wildcard strings are described under fnmatch() in
* $(LINK2 std_path.html, std.path).
* r = Regular expression, for more powerful _pattern matching.
* Example:
* This program lists all the files with a "d" extension in
* the path passed as the first argument.
* ----
* import std.io;
* import std.file;
*
* void main(string[] args)
* {
* auto d_source_files = listdir(args[1], "*.d");
*
* foreach (d; d_source_files)
* writefln(d);
* }
* ----
* A regular expression version that searches for all files with "d" or
* "объ" extensions:
* ----
* import std.io;
* import std.file;
* import std.regexp;
*
* void main(string[] args)
* {
* auto d_source_files = listdir(args[1], РегВыр(r"\.(d|объ)$"));
*
* foreach (d; d_source_files)
* writefln(d);
* }
* ----
*/
string[] listdir(string pathname, string pattern)
{ string[] результат;
bool callback(DirEntry* de)
{
if (de.isdir)
listdir(de.name, &callback);
else
{ if (std.path.fnmatch(de.name, pattern))
результат ~= de.name;
}
return true; // continue
}
listdir(pathname, &callback);
return результат;
}
/** Ditto */
string[] listdir(string pathname, РегВыр r)
{ string[] результат;
bool callback(DirEntry* de)
{
if (de.isdir)
listdir(de.name, &callback);
else
{ if (r.проверь(de.name))
результат ~= de.name;
}
return true; // continue
}
listdir(pathname, &callback);
return результат;
}
/******************************************************
* For each file and directory name in pathname[],
* pass it to the callback delegate.
* Параметры:
* callback = Delegate that processes each
* filename in turn. Returns true to
* continue, false to stop.
* Example:
* This program lists all the files in its
* path argument, including the path.
* ----
* import std.io;
* import std.path;
* import std.file;
*
* void main(string[] args)
* {
* auto pathname = args[1];
* string[] результат;
*
* bool listing(string filename)
* {
* результат ~= std.path.join(pathname, filename);
* return true; // continue
* }
*
* listdir(pathname, &listing);
*
* foreach (name; результат)
* writefln("%s", name);
* }
* ----
*/
void listdir(string pathname, bool delegate(string filename) callback)
{
bool listing(DirEntry* de)
{
return callback(std.path.getBaseName(de.name));
}
listdir(pathname, &listing);
}
/******************************************************
* For each file and directory DirEntry in pathname[],
* pass it to the callback delegate.
* Параметры:
* callback = Delegate that processes each
* DirEntry in turn. Returns true to
* continue, false to stop.
* Example:
* This program lists all the files in its
* path argument and all subdirectories thereof.
* ----
* import std.io;
* import std.file;
*
* void main(string[] args)
* {
* bool callback(DirEntry* de)
* {
* if (de.isdir)
* listdir(de.name, &callback);
* else
* writefln(de.name);
* return true;
* }
*
* listdir(args[1], &callback);
* }
* ----
*/
void listdir(string pathname, bool delegate(DirEntry* de) callback)
{
string c;
ук h;
DirEntry de;
c = std.path.join(pathname, "*.*");
if (useWfuncs)
{
ПДАН fileinfo;
h = НайдиПервыйФайл(std.utf.toUTF16(c), &fileinfo);
if (h != cast(ук) НЕВЕРНХЭНДЛ)
{
try
{
do
{
// Skip "." and ".."
if (wcscmp(fileinfo.имяФайла.ptr, ".") == 0 ||
wcscmp(fileinfo.имяФайла.ptr, "..") == 0)
continue;
de.init(pathname, &fileinfo);
if (!callback(&de))
break;
} while (НайдиСледующийФайл(cast(ук)h,&fileinfo) != ЛОЖЬ);
}
finally
{
НайдиЗакрой(h);
}
}
}
else
{
ПДАН_А fileinfo;
h = НайдиПервыйФайлА(c, &fileinfo);
if (h != cast(ук) НЕВЕРНХЭНДЛ) // should we throw exception if invalid?
{
try
{
do
{
// Skip "." and ".."
if (cidrus.strcmp(fileinfo.имяФайла.ptr, ".") == 0 ||
cidrus.strcmp(fileinfo.имяФайла.ptr, "..") == 0)
continue;
de.init(pathname, &fileinfo);
if (!callback(&de))
break;
} while (НайдиСледующийФайлА(h,&fileinfo) != ЛОЖЬ);
}
finally
{
НайдиЗакрой(h);
}
}
}
}
void copy(string from, string to)
{
BOOL результат;
if (useWfuncs)
результат = CopyFileW(std.utf.toUTF16z(from), std.utf.toUTF16z(to), false);
else
результат = CopyFileA(toMBSz(from), toMBSz(to), false);
if (!результат)
throw new ФайлИскл(to, GetLastError());
}
}
/* =========================== Posix ======================= */
version (Posix)
{
private import std.date;
private import os.posix;
private import cidrus;
/***********************************
*/
class ФайлИскл : Exception
{
uint errno; // operating system error code
this(string name)
{
this(name, "ввод-вывод файла");
}
this(string name, string message)
{
super(name ~ ": " ~ message);
}
this(string name, uint errno)
{
char[1024] buf = void;
auto s = strerror_r(errno, buf.ptr, buf.length);
this(name, std.string.toString(s).dup);
this.errno = errno;
}
}
/********************************************
* Read a file.
* Returns:
* array of bytes read
*/
void[] read(string name)
{
struct_stat statbuf;
auto namez = toStringz(name);
//эхо("file.read('%s')\n",namez);
auto fd = os.posix.open(namez, O_RDONLY);
if (fd == -1)
{
//эхо("\topen error, errno = %d\n",getErrno());
goto err1;
}
//эхо("\tfile opened\n");
if (os.posix.fstat(fd, &statbuf))
{
//эхо("\tfstat error, errno = %d\n",getErrno());
goto err2;
}
auto size = statbuf.st_size;
if (size > int.max)
goto err2;
void[] buf;
if (size == 0)
{ /* The size could be 0 if the file is a device or a procFS file,
* so we just have to try reading it.
*/
int readsize = 1024;
while (1)
{
buf = runtime.realloc(buf.ptr, cast(int)size + readsize);
auto toread = readsize;
while (toread)
{
auto numread = os.posix.read(fd, buf.ptr + size, toread);
if (numread == -1)
goto err2;
size += numread;
if (numread == 0)
{ if (size == 0) // it really was 0 size
delete buf; // don't need the buffer
else
runtime.hasNoPointers(buf.ptr);
goto Leof; // end of file
}
toread -= numread;
}
}
}
else
{
buf = runtime.malloc(cast(int)size);
if (buf.ptr)
runtime.hasNoPointers(buf.ptr);
auto numread = os.posix.read(fd, buf.ptr, cast(int)size);
if (numread != size)
{
//эхо("\tread error, errno = %d\n",getErrno());
goto err2;
}
}
Leof:
if (os.posix.close(fd) == -1)
{
//эхо("\tclose error, errno = %d\n",getErrno());
goto err;
}
return buf[0 .. cast(size_t)size];
err2:
os.posix.close(fd);
err:
delete buf;
err1:
throw new ФайлИскл(name, getErrno());
}
unittest
{
version (linux)
{ // A file with "zero" length that doesn't have 0 length at all
char[] s = cast(char[])read("/proc/sys/kernel/osrelease");
assert(s.length > 0);
//writefln("'%s'", s);
}
}
/*********************************************
* Write a file.
*/
void write(string name, void[] buffer)
{
int fd;
int numwritten;
char *namez;
namez = toStringz(name);
fd = os.posix.open(namez, O_CREAT | O_WRONLY | O_TRUNC, 0660);
if (fd == -1)
goto err;
numwritten = os.posix.write(fd, buffer.ptr, buffer.length);
if (buffer.length != numwritten)
goto err2;
if (os.posix.close(fd) == -1)
goto err;
return;
err2:
os.posix.close(fd);
err:
throw new ФайлИскл(name, getErrno());
}
/*********************************************
* Append to a file.
*/
void append(string name, void[] buffer)
{
int fd;
int numwritten;
char *namez;
namez = toStringz(name);
fd = os.posix.open(namez, O_APPEND | O_WRONLY | O_CREAT, 0660);
if (fd == -1)
goto err;
numwritten = os.posix.write(fd, buffer.ptr, buffer.length);
if (buffer.length != numwritten)
goto err2;
if (os.posix.close(fd) == -1)
goto err;
return;
err2:
os.posix.close(fd);
err:
throw new ФайлИскл(name, getErrno());
}
/***************************************************
* Rename a file.
*/
void rename(string from, string to)
{
char *fromz = toStringz(from);
char *toz = toStringz(to);
if (cidrus.rename(fromz, toz) == -1)
throw new ФайлИскл(to, getErrno());
}
/***************************************************
* Delete a file.
*/
void remove(string name)
{
if (cidrus.remove(toStringz(name)) == -1)
throw new ФайлИскл(name, getErrno());
}
/***************************************************
* Get file size.
*/
ulong getSize(string name)
{
int fd;
struct_stat statbuf;
char *namez;
namez = toStringz(name);
//эхо("file.getSize('%s')\n",namez);
fd = os.posix.open(namez, O_RDONLY);
if (fd == -1)
{
//эхо("\topen error, errno = %d\n",getErrno());
goto err1;
}
//эхо("\tfile opened\n");
if (os.posix.fstat(fd, &statbuf))
{
//эхо("\tfstat error, errno = %d\n",getErrno());
goto err2;
}
auto size = statbuf.st_size;
if (os.posix.close(fd) == -1)
{
//эхо("\tclose error, errno = %d\n",getErrno());
goto err;
}
return cast(ulong)size;
err2:
os.posix.close(fd);
err:
err1:
throw new ФайлИскл(name, getErrno());
}
/***************************************************
* Get file attributes.
*/
uint getAttributes(string name)
{
struct_stat statbuf;
char *namez;
namez = toStringz(name);
if (os.posix.stat(namez, &statbuf))
{
throw new ФайлИскл(name, getErrno());
}
return statbuf.st_mode;
}
/*************************
* Get creation/access/modified times of file name[].
* Throws: ФайлИскл on error.
*/
void getTimes(string name, out т_время ftc, out т_время fta, out т_время ftm)
{
struct_stat statbuf;
char *namez;
namez = toStringz(name);
if (os.posix.stat(namez, &statbuf))
{
throw new ФайлИскл(name, getErrno());
}
version (linux)
{
ftc = cast(т_время)statbuf.st_ctime * std.date.TicksPerSecond;
fta = cast(т_время)statbuf.st_atime * std.date.TicksPerSecond;
ftm = cast(т_время)statbuf.st_mtime * std.date.TicksPerSecond;
}
else version (OSX)
{ // BUG: should add in tv_nsec field
ftc = cast(т_время)statbuf.st_ctimespec.tv_sec * std.date.TicksPerSecond;
fta = cast(т_время)statbuf.st_atimespec.tv_sec * std.date.TicksPerSecond;
ftm = cast(т_время)statbuf.st_mtimespec.tv_sec * std.date.TicksPerSecond;
}
else version (FreeBSD)
{ // BUG: should add in tv_nsec field
ftc = cast(т_время)statbuf.st_ctimespec.tv_sec * std.date.TicksPerSecond;
fta = cast(т_время)statbuf.st_atimespec.tv_sec * std.date.TicksPerSecond;
ftm = cast(т_время)statbuf.st_mtimespec.tv_sec * std.date.TicksPerSecond;
}
else version (Solaris)
{ // BUG: should add in *nsec fields
ftc = cast(т_время)statbuf.st_ctime * std.date.TicksPerSecond;
fta = cast(т_время)statbuf.st_atime * std.date.TicksPerSecond;
ftm = cast(т_время)statbuf.st_mtime * std.date.TicksPerSecond;
}
else
{
static assert(0);
}
}
/****************************************************
* Does file/directory exist?
*/
int exists(char[] name)
{
return access(toStringz(name),0) == 0;
/+
struct_stat statbuf;
char *namez;
namez = toStringz(name);
if (os.posix.stat(namez, &statbuf))
{
return 0;
}
return 1;
+/
}
unittest
{
assert(exists("."));
}
/****************************************************
* Is name a file?
*/
int isfile(string name)
{
return (getAttributes(name) & S_IFMT) == S_IFREG; // regular file
}
/****************************************************
* Is name a directory?
*/
int isdir(string name)
{
return (getAttributes(name) & S_IFMT) == S_IFDIR;
}
/****************************************************
* Change directory.
*/
void chdir(string pathname)
{
if (os.posix.chdir(toStringz(pathname)))
{
throw new ФайлИскл(pathname, getErrno());
}
}
/****************************************************
* Make directory.
*/
void mkdir(char[] pathname)
{
if (os.posix.mkdir(toStringz(pathname), 0777))
{
throw new ФайлИскл(pathname, getErrno());
}
}
/****************************************************
* Remove directory.
*/
void rmdir(string pathname)
{
if (os.posix.rmdir(toStringz(pathname)))
{
throw new ФайлИскл(pathname, getErrno());
}
}
/****************************************************
* Get current directory.
*/
string getcwd()
{
auto p = os.posix.getcwd(null, 0);
if (!p)
{
throw new ФайлИскл("cannot get cwd", getErrno());
}
auto len = cidrus.strlen(p);
auto buf = new char[len];
buf[] = p[0 .. len];
cidrus.free(p);
return buf;
}
/***************************************************
* Directory Entry
*/
alias DirEntry ПапЗапись;
struct DirEntry
{
alias isfile файл_ли;
alias isdir папка_ли;
alias init иниц;
alias attributes атрибуты;
alias lastWriteTime последнВремяЗап;
alias lastAccessTime последВремяДост;
alias creationTime датаСозд;
alias size размер;
alias name имя;
string name; /// file or directory name
ulong _size = ~0UL; // size of file in bytes
т_время _creationTime = т_время_нч; // time of file creation
т_время _lastAccessTime = т_время_нч; // time file was last accessed
т_время _lastWriteTime = т_время_нч; // time file was last written to
ubyte d_type;
ubyte didstat; // done lazy evaluation of stat()
void init(string path, dirent *fd)
{ size_t len = cidrus.strlen(fd.d_name.ptr);
name = std.path.join(path, fd.d_name[0 .. len]);
d_type = fd.d_type;
// Some platforms, like Solaris, don't have this member.
// TODO: Bug: d_type is never set on Solaris (see bugzilla 2838 for fix.)
static if (is(fd.d_type))
d_type = fd.d_type;
didstat = 0;
}
int isdir()
{
return d_type & DT_DIR;
}
int isfile()
{
return d_type & DT_REG;
}
ulong size()
{
if (!didstat)
doStat();
return _size;
}
т_время creationTime()
{
if (!didstat)
doStat();
return _creationTime;
}
т_время lastAccessTime()
{
if (!didstat)
doStat();
return _lastAccessTime;
}
т_время lastWriteTime()
{
if (!didstat)
doStat();
return _lastWriteTime;
}
/* This is to support lazy evaluation, because doing stat's is
* expensive and not always needed.
*/
void doStat()
{
int fd;
struct_stat statbuf;
char* namez;
namez = toStringz(name);
if (os.posix.stat(namez, &statbuf))
{
//эхо("\tstat error, errno = %d\n",getErrno());
return;
}
_size = cast(ulong)statbuf.st_size;
version (linux)
{
_creationTime = cast(т_время)statbuf.st_ctime * std.date.TicksPerSecond;
_lastAccessTime = cast(т_время)statbuf.st_atime * std.date.TicksPerSecond;
_lastWriteTime = cast(т_время)statbuf.st_mtime * std.date.TicksPerSecond;
}
else version (OSX)
{
_creationTime = cast(т_время)statbuf.st_ctimespec.tv_sec * std.date.TicksPerSecond;
_lastAccessTime = cast(т_время)statbuf.st_atimespec.tv_sec * std.date.TicksPerSecond;
_lastWriteTime = cast(т_время)statbuf.st_mtimespec.tv_sec * std.date.TicksPerSecond;
}
else version (FreeBSD)
{
_creationTime = cast(т_время)statbuf.st_ctimespec.tv_sec * std.date.TicksPerSecond;
_lastAccessTime = cast(т_время)statbuf.st_atimespec.tv_sec * std.date.TicksPerSecond;
_lastWriteTime = cast(т_время)statbuf.st_mtimespec.tv_sec * std.date.TicksPerSecond;
}
else version (Solaris)
{
_creationTime = cast(т_время)statbuf.st_ctime * std.date.TicksPerSecond;
_lastAccessTime = cast(т_время)statbuf.st_atime * std.date.TicksPerSecond;
_lastWriteTime = cast(т_время)statbuf.st_mtime * std.date.TicksPerSecond;
}
else
{
static assert(0);
}
didstat = 1;
}
}
/***************************************************
* Return contents of directory.
*/
string[] listdir(string pathname)
{
string[] результат;
bool listing(string filename)
{
результат ~= filename;
return true; // continue
}
listdir(pathname, &listing);
return результат;
}
string[] listdir(string pathname, string pattern)
{ string[] результат;
bool callback(DirEntry* de)
{
if (de.isdir)
listdir(de.name, &callback);
else
{ if (std.path.fnmatch(de.name, pattern))
результат ~= de.name;
}
return true; // continue
}
listdir(pathname, &callback);
return результат;
}
string[] listdir(string pathname, РегВыр r)
{ string[] результат;
bool callback(DirEntry* de)
{
if (de.isdir)
listdir(de.name, &callback);
else
{ if (r.test(de.name))
результат ~= de.name;
}
return true; // continue
}
listdir(pathname, &callback);
return результат;
}
void listdir(string pathname, bool delegate(string filename) callback)
{
bool listing(DirEntry* de)
{
return callback(std.path.getBaseName(de.name));
}
listdir(pathname, &listing);
}
void listdir(string pathname, bool delegate(DirEntry* de) callback)
{
DIR* h;
dirent* fdata;
DirEntry de;
h = opendir(toStringz(pathname));
if (h)
{
try
{
while((fdata = readdir(h)) != null)
{
// Skip "." and ".."
if (!cidrus.strcmp(fdata.d_name.ptr, ".") ||
!cidrus.strcmp(fdata.d_name.ptr, ".."))
continue;
de.init(pathname, fdata);
if (!callback(&de))
break;
}
}
finally
{
closedir(h);
}
}
else
{
throw new ФайлИскл(pathname, getErrno());
}
}
/***************************************************
* Copy a file. File timestamps are preserved.
*/
void copy(string from, string to)
{
version (all)
{
struct_stat statbuf;
char* fromz = toStringz(from);
char* toz = toStringz(to);
//эхо("file.copy(from='%s', to='%s')\n", fromz, toz);
int fd = os.posix.open(fromz, O_RDONLY);
if (fd == -1)
{
//эхо("\topen error, errno = %d\n",getErrno());
goto err1;
}
//эхо("\tfile opened\n");
if (os.posix.fstat(fd, &statbuf))
{
//эхо("\tfstat error, errno = %d\n",getErrno());
goto err2;
}
int fdw = os.posix.open(toz, O_CREAT | O_WRONLY | O_TRUNC, 0660);
if (fdw == -1)
{
//эхо("\topen error, errno = %d\n",getErrno());
goto err2;
}
size_t BUFSIZ = 4096 * 16;
void* buf = cidrus.malloc(BUFSIZ);
if (!buf)
{ BUFSIZ = 4096;
buf = cidrus.malloc(BUFSIZ);
}
if (!buf)
{
//эхо("\topen error, errno = %d\n",getErrno());
goto err4;
}
for (auto size = statbuf.st_size; size; )
{ size_t toread = (size > BUFSIZ) ? BUFSIZ : cast(size_t)size;
auto n = os.posix.read(fd, buf, toread);
if (n != toread)
{
//эхо("\tread error, errno = %d\n",getErrno());
goto err5;
}
n = os.posix.write(fdw, buf, toread);
if (n != toread)
{
//эхо("\twrite error, errno = %d\n",getErrno());
goto err5;
}
size -= toread;
}
cidrus.free(buf);
if (os.posix.close(fdw) == -1)
{
//эхо("\tclose error, errno = %d\n",getErrno());
goto err2;
}
utimbuf utim = void;
version (linux)
{
utim.actime = cast(__time_t)statbuf.st_atime;
utim.modtime = cast(__time_t)statbuf.st_mtime;
}
else version (OSX)
{
utim.actime = cast(__time_t)statbuf.st_atimespec.tv_sec;
utim.modtime = cast(__time_t)statbuf.st_mtimespec.tv_sec;
}
else version (FreeBSD)
{
utim.actime = cast(__time_t)statbuf.st_atimespec.tv_sec;
utim.modtime = cast(__time_t)statbuf.st_mtimespec.tv_sec;
}
else version (Solaris)
{
utim.actime = cast(__time_t)statbuf.st_atime;
utim.modtime = cast(__time_t)statbuf.st_mtime;
}
else
{
static assert(0);
}
if (utime(toz, &utim) == -1)
{
//эхо("\tutime error, errno = %d\n",getErrno());
goto err3;
}
if (os.posix.close(fd) == -1)
{
//эхо("\tclose error, errno = %d\n",getErrno());
goto err1;
}
return;
err5:
cidrus.free(buf);
err4:
os.posix.close(fdw);
err3:
cidrus.remove(toz);
err2:
os.posix.close(fd);
err1:
throw new ФайлИскл(from, getErrno());
}
else
{
void[] buffer;
buffer = read(from);
write(to, buffer);
delete buffer;
}
}
}
unittest
{
//эхо("unittest\n");
void[] buf;
buf = new void[10];
(cast(byte[])buf)[] = 3;
write("unittest_write.tmp", buf);
void buf2[] = read("unittest_write.tmp");
assert(buf == buf2);
copy("unittest_write.tmp", "unittest_write2.tmp");
buf2 = read("unittest_write2.tmp");
assert(buf == buf2);
remove("unittest_write.tmp");
if (exists("unittest_write.tmp"))
assert(0);
remove("unittest_write2.tmp");
if (exists("unittest_write2.tmp"))
assert(0);
}
unittest
{
listdir (".", delegate bool (DirEntry * de)
{
auto s = std.string.format("%s : c %s, w %s, a %s", de.name,
toUTCString (de.creationTime),
toUTCString (de.lastWriteTime),
toUTCString (de.lastAccessTime));
return true;
}
);
}
| D |
// { dg-shouldfail "uncaught exception" }
void test()
{
int innerLocal = 20;
throw new Exception("foo");
}
void main(string[] args)
{
string myLocal = "bar";
test();
}
| D |
import vector;
import ray;
import std.typecons;
struct BBox(int dim, T) {
Vec!(dim, T) pmin = 0;
Vec!(dim, T) pmax = 0;
@disable this();
this(Vec!(dim, T) point) {
pmin = point;
pmax = point;
}
this(Vec!(dim, T) min, Vec!(dim, T) max) {
pmin = min;
pmax = max;
}
Vec!(dim, T) extends() const {
return pmax - pmin;
}
float half_area() const {
auto ext = extends();
return (ext.x * (ext.y + ext.z) + ext.y * ext.z);
}
float area() const {
return 2.0 * half_area;
}
BBox!(dim, T) expand(const Vec!(dim, T) point) const {
BBox!(dim, T) n = BBox!(dim, T) (min(this.pmin, point), max(this.pmax, point) );
return n;
}
BBox!(dim, T) expand(BBox!(dim, T) other) const {
return this.expand(other.pmin).expand(other.pmax);
}
}
alias BBox3f = BBox!(3, float);
pragma(inline, true)
@nogc float fast_multiply_add(float a, float b, float c) {
return a * b + c;
}
pragma(inline, true)
@nogc Tuple!(float, float) intersect(const ref BBox3f bbox, const ref Ray ray, const Vec3f ray_inv_dir) {
import std.algorithm.comparison : min, max;
float txmin = fast_multiply_add(bbox.pmin.x, ray_inv_dir.x, -(ray.origin.x * ray_inv_dir.x));
float txmax = fast_multiply_add(bbox.pmax.x, ray_inv_dir.x, -(ray.origin.x * ray_inv_dir.x));
float tymin = fast_multiply_add(bbox.pmin.y, ray_inv_dir.y, -(ray.origin.y * ray_inv_dir.y));
float tymax = fast_multiply_add(bbox.pmax.y, ray_inv_dir.y, -(ray.origin.y * ray_inv_dir.y));
float tzmin = fast_multiply_add(bbox.pmin.z, ray_inv_dir.z, -(ray.origin.z * ray_inv_dir.z));
float tzmax = fast_multiply_add(bbox.pmax.z, ray_inv_dir.z, -(ray.origin.z * ray_inv_dir.z));
auto t0x = min(txmin, txmax);
auto t1x = max(txmin, txmax);
auto t0y = min(tymin, tymax);
auto t1y = max(tymin, tymax);
auto t0z = min(tzmin, tzmax);
auto t1z = max(tzmin, tzmax);
auto t0 = max(max(t0x, t0y), max(ray.tmin, t0z));
auto t1 = min(min(t1x, t1y), min(ray.tmax, t1z));
return tuple(t0, t1);
}
| D |
module GameScene;
private import Scene;
private import Sofu.Sofu;
private import derelict.sdl.sdl;
private import Layer;
private import SofuResource;
private import ImageResource;
private import Image;
private import Lemming;
private import BrickLayer;
private import BulletLayer;
private import EnemyLayer;
private import Vector;
private import Game;
private import Brick;
private import Log;
private import Sprite;
private import EditScene;
private import Music;
private import Button;
class GameScene : Scene
{
this(Game game, EditScene editScene, Sofu.Map.Map level,Sofu.Map.Map user)
{
_editScene = editScene;
super(game);
_brickLayer = new BrickLayer(this);
_background = new Layer(this);
_bulletlayer = new BulletLayer(this);
_enemylayer = new EnemyLayer(this);
foreach(SofuObject object; user.list("Bricks")) {
Map map = object.asMap();
wchar[] type = map.value("Type").toUTF16();
Brick newBrick = new Brick(map);
_brickLayer.addEntity(newBrick);
}
foreach(SofuObject object; level.list("World")) {
Map map = object.asMap();
wchar[] type = map.value("Type").toUTF16();
Brick newBrick = new Brick(map);
_brickLayer.addEntity(newBrick);
}
foreach(SofuObject object; level.list("Decoration")) {
Map map = object.asMap();
Sprite newSprite = new Sprite(map);
_background.addEntity(newSprite);
}
foreach(SofuObject object; level.list("Enemies")) {
Map map = object.asMap();
Enemy newEnemy = new Enemy(map,_bulletlayer);
_enemylayer.addEntity(newEnemy);
}
_lemmingLayer = new Layer(this);
Map lemmingMap = loadSofu("player.sofu");
_lemming = new Lemming(
new Vector2d(level.list("PlayerStart")),
_brickLayer,
lemmingMap);
_lemmingLayer.addEntity(_lemming);
_titletime=level.value("TitleTime").toDouble();
_title=loadImage(level.value("Title").toUTF8());
_gravity = new Vector2d(level.list("Gravity"));
Sofu.Map.Map gameSceneData = loadSofu("GameScene.sofu");
_guiLayer = new Layer(this);
_stopButton = new Button(gameSceneData.map("StopButton"));
_guiLayer.addEntity(_stopButton);
Music.playSound("voice/mau.ogg");
}
void advance(double frametime)
{
if(_stopButton.clicked()) {
_lemming.die();
}
_titletime-=frametime;
_brickLayer.advance(frametime);
_lemmingLayer.advance(frametime);
_background.advance(frametime);
_bulletlayer.advance(frametime);
_enemylayer.advance(frametime);
_guiLayer.advance(frametime);
_brickLayer.centerOn(_lemming.extent().center());
_lemmingLayer.centerOn(_lemming.extent().center());
_background.centerOn(_lemming.extent().center());
_bulletlayer.centerOn(_lemming.extent().center());
_enemylayer.centerOn(_lemming.extent().center());
_bulletlayer.collide(_lemming);
_enemylayer.collide(_lemming);
}
void draw()
{
_background.draw();
_brickLayer.draw();
_lemmingLayer.draw();
_bulletlayer.draw();
_enemylayer.draw();
_guiLayer.draw();
if (_titletime>0) _title.draw(new Vector2d(320-_title.width()/2,20));
}
void finish()
{
_finished = true;
}
bit finished() {
return _finished;
}
bit won() {
return _won;
}
void win() {
Music.playSound("voice/bictori.ogg");
_won=true;
_editScene.win();
finish();
}
void mouseMotion(Vector2d mousePosition, Vector2d mouseRel)
{
_guiLayer.mouseMotion(mousePosition, mouseRel);
}
void lmbDown(Vector2d mousePosition)
{
_guiLayer.lmbDown(mousePosition);
}
void lmbUp(Vector2d mousePosition)
{
_guiLayer.lmbUp(mousePosition);
}
void keyUp(SDL_KeyboardEvent event) {
switch (event.keysym.sym) {
case SDLK_ESCAPE:_lemming.die();break;
default:break;
}
}
Vector2d gravity() {
return _gravity;
}
private:
EditScene _editScene;
BrickLayer _brickLayer;
Lemming _lemming;
Layer _lemmingLayer;
BulletLayer _bulletlayer;
EnemyLayer _enemylayer;
Layer _background;
Layer _guiLayer;
Vector2d _gravity;
Button _stopButton;
double _titletime;
Image _title;
bit _won=false;
bit _finished = false;
}
| D |
/Users/brunodaluz/Desktop/project/Build/Intermediates/project.build/Debug/Async.build/Objects-normal/x86_64/Worker.o : /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Async+NIO.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Variadic.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Deprecated.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Void.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/FutureType.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Collection+Future.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+DoCatch.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Global.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Transform.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Flatten.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Map.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Worker.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/QueueHandler.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/AsyncError.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Exports.swift /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIO.framework/Modules/NIO.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOConcurrencyHelpers.framework/Modules/NIOConcurrencyHelpers.swiftmodule/x86_64.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOAtomics/include/cpp_magic.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIODarwin/include/c_nio_darwin.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOAtomics/include/c-atomics.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOLinux/include/c_nio_linux.h /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOSHA1/module.modulemap /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio-zlib-support.git-4597058737275259177/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIODarwin/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOAtomics/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOLinux/module.modulemap /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes
/Users/brunodaluz/Desktop/project/Build/Intermediates/project.build/Debug/Async.build/Objects-normal/x86_64/Worker~partial.swiftmodule : /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Async+NIO.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Variadic.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Deprecated.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Void.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/FutureType.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Collection+Future.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+DoCatch.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Global.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Transform.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Flatten.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Map.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Worker.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/QueueHandler.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/AsyncError.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Exports.swift /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIO.framework/Modules/NIO.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOConcurrencyHelpers.framework/Modules/NIOConcurrencyHelpers.swiftmodule/x86_64.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOAtomics/include/cpp_magic.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIODarwin/include/c_nio_darwin.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOAtomics/include/c-atomics.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOLinux/include/c_nio_linux.h /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOSHA1/module.modulemap /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio-zlib-support.git-4597058737275259177/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIODarwin/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOAtomics/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOLinux/module.modulemap /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes
/Users/brunodaluz/Desktop/project/Build/Intermediates/project.build/Debug/Async.build/Objects-normal/x86_64/Worker~partial.swiftdoc : /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Async+NIO.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Variadic.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Deprecated.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Void.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/FutureType.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Collection+Future.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+DoCatch.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Global.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Transform.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Flatten.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Future+Map.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Worker.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/QueueHandler.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/AsyncError.swift /Users/brunodaluz/Desktop/project/.build/checkouts/core.git-3993699855654508100/Sources/Async/Exports.swift /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIO.framework/Modules/NIO.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOConcurrencyHelpers.framework/Modules/NIOConcurrencyHelpers.swiftmodule/x86_64.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOAtomics/include/cpp_magic.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIODarwin/include/c_nio_darwin.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOAtomics/include/c-atomics.h /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio.git--325538877768392360/Sources/CNIOLinux/include/c_nio_linux.h /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOSHA1/module.modulemap /Users/brunodaluz/Desktop/project/.build/checkouts/swift-nio-zlib-support.git-4597058737275259177/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIODarwin/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOAtomics/module.modulemap /Users/brunodaluz/Desktop/project/project.xcodeproj/GeneratedModuleMap/CNIOLinux/module.modulemap /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes
| D |
module webkit2webextension.DOMHTMLHeadElement;
private import glib.Str;
private import webkit2webextension.DOMHTMLElement;
private import webkit2webextension.c.functions;
public import webkit2webextension.c.types;
/** */
public class DOMHTMLHeadElement : DOMHTMLElement
{
/** the main Gtk struct */
protected WebKitDOMHTMLHeadElement* webKitDOMHTMLHeadElement;
/** Get the main Gtk struct */
public WebKitDOMHTMLHeadElement* getDOMHTMLHeadElementStruct(bool transferOwnership = false)
{
if (transferOwnership)
ownedRef = false;
return webKitDOMHTMLHeadElement;
}
/** the main Gtk struct as a void* */
protected override void* getStruct()
{
return cast(void*)webKitDOMHTMLHeadElement;
}
/**
* Sets our main struct and passes it to the parent class.
*/
public this (WebKitDOMHTMLHeadElement* webKitDOMHTMLHeadElement, bool ownedRef = false)
{
this.webKitDOMHTMLHeadElement = webKitDOMHTMLHeadElement;
super(cast(WebKitDOMHTMLElement*)webKitDOMHTMLHeadElement, ownedRef);
}
/** */
public static GType getType()
{
return webkit_dom_html_head_element_get_type();
}
/**
*
*
* Deprecated: Use JavaScriptCore API instead
*
* Returns: A #gchar
*/
public string getProfile()
{
auto retStr = webkit_dom_html_head_element_get_profile(webKitDOMHTMLHeadElement);
scope(exit) Str.freeString(retStr);
return Str.toString(retStr);
}
/**
*
*
* Deprecated: Use JavaScriptCore API instead
*
* Params:
* value = A #gchar
*/
public void setProfile(string value)
{
webkit_dom_html_head_element_set_profile(webKitDOMHTMLHeadElement, Str.toStringz(value));
}
}
| D |
extern (C) int printf(const(char*) fmt, ...);
import core.vararg;
struct Tup(T...)
{
T field;
alias field this;
bool opEquals(const Tup rhs) const
{
foreach (i, _; T)
if (field[i] != rhs.field[i])
return false;
return true;
}
}
Tup!T tup(T...)(T fields)
{
return typeof(return)(fields);
}
template Seq(T...)
{
alias T Seq;
}
/**********************************************/
struct S
{
int x;
alias x this;
}
int foo(int i)
{
return i * 2;
}
void test1()
{
S s;
s.x = 7;
int i = -s;
assert(i == -7);
i = s + 8;
assert(i == 15);
i = s + s;
assert(i == 14);
i = 9 + s;
assert(i == 16);
i = foo(s);
assert(i == 14);
}
/**********************************************/
class C
{
int x;
alias x this;
}
void test2()
{
C s = new C();
s.x = 7;
int i = -s;
assert(i == -7);
i = s + 8;
assert(i == 15);
i = s + s;
assert(i == 14);
i = 9 + s;
assert(i == 16);
i = foo(s);
assert(i == 14);
}
/**********************************************/
void test3()
{
Tup!(int, double) t;
t[0] = 1;
t[1] = 1.1;
assert(t[0] == 1);
assert(t[1] == 1.1);
printf("%d %g\n", t[0], t[1]);
}
/**********************************************/
struct Iter
{
bool empty() { return true; }
void popFront() { }
ref Tup!(int, int) front() { return *new Tup!(int, int); }
ref Iter opSlice() { return this; }
}
void test4()
{
foreach (a; Iter()) { }
}
/**********************************************/
void test5()
{
static struct Double1 {
double val = 1;
alias val this;
}
static Double1 x() { return Double1(); }
x()++;
}
/**********************************************/
// 4773
void test4773()
{
struct Rebindable
{
Object obj;
@property const(Object) get(){ return obj; }
alias get this;
}
Rebindable r;
if (r) assert(0);
r.obj = new Object;
if (!r) assert(0);
}
/**********************************************/
// 5188
void test5188()
{
struct S
{
int v = 10;
alias v this;
}
S s;
assert(s <= 20);
assert(s != 14);
}
/***********************************************/
struct Foo {
void opIndexAssign(int x, size_t i) {
val = x;
}
void opSliceAssign(int x, size_t a, size_t b) {
val = x;
}
int val;
}
struct Bar {
Foo foo;
alias foo this;
}
void test6() {
Bar b;
b[0] = 1;
assert(b.val == 1);
b[0 .. 1] = 2;
assert(b.val == 2);
}
/**********************************************/
// 2781
struct Tuple2781a(T...) {
T data;
alias data this;
}
struct Tuple2781b(T) {
T data;
alias data this;
}
void test2781()
{
Tuple2781a!(uint, float) foo;
foreach(elem; foo) {}
{
Tuple2781b!(int[]) bar1;
foreach(elem; bar1) {}
Tuple2781b!(int[int]) bar2;
foreach(key, elem; bar2) {}
Tuple2781b!(string) bar3;
foreach(dchar elem; bar3) {}
}
{
Tuple2781b!(int[]) bar1;
foreach(elem; bar1) goto L1;
Tuple2781b!(int[int]) bar2;
foreach(key, elem; bar2) goto L1;
Tuple2781b!(string) bar3;
foreach(dchar elem; bar3) goto L1;
L1:
;
}
int eval;
auto t1 = tup(10, "str");
auto i1 = 0;
foreach (e; t1)
{
pragma(msg, "[] = ", typeof(e));
static if (is(typeof(e) == int )) assert(i1 == 0 && e == 10);
static if (is(typeof(e) == string)) assert(i1 == 1 && e == "str");
++i1;
}
auto t2 = tup(10, "str");
foreach (i2, e; t2)
{
pragma(msg, "[", cast(int)i2, "] = ", typeof(e));
static if (is(typeof(e) == int )) { static assert(i2 == 0); assert(e == 10); }
static if (is(typeof(e) == string)) { static assert(i2 == 1); assert(e == "str"); }
}
auto t3 = tup(10, "str");
auto i3 = 2;
foreach_reverse (e; t3)
{
--i3;
pragma(msg, "[] = ", typeof(e));
static if (is(typeof(e) == int )) assert(i3 == 0 && e == 10);
static if (is(typeof(e) == string)) assert(i3 == 1 && e == "str");
}
auto t4 = tup(10, "str");
foreach_reverse (i4, e; t4)
{
pragma(msg, "[", cast(int)i4, "] = ", typeof(e));
static if (is(typeof(e) == int )) { static assert(i4 == 0); assert(e == 10); }
static if (is(typeof(e) == string)) { static assert(i4 == 1); assert(e == "str"); }
}
eval = 0;
foreach (i, e; tup(tup((eval++, 10), 3.14), tup("str", [1,2])))
{
static if (i == 0) assert(e == tup(10, 3.14));
static if (i == 1) assert(e == tup("str", [1,2]));
}
assert(eval == 1);
eval = 0;
foreach (i, e; tup((eval++,10), tup(3.14, tup("str", tup([1,2])))))
{
static if (i == 0) assert(e == 10);
static if (i == 1) assert(e == tup(3.14, tup("str", tup([1,2]))));
}
assert(eval == 1);
}
/**********************************************/
// 6546
void test6546()
{
class C {}
class D : C {}
struct S { C c; alias c this; } // S : C
struct T { S s; alias s this; } // T : S
struct U { T t; alias t this; } // U : T
C c;
D d;
S s;
T t;
U u;
assert(c is c); // OK
assert(c is d); // OK
assert(c is s); // OK
assert(c is t); // OK
assert(c is u); // OK
assert(d is c); // OK
assert(d is d); // OK
assert(d is s); // doesn't work
assert(d is t); // doesn't work
assert(d is u); // doesn't work
assert(s is c); // OK
assert(s is d); // doesn't work
assert(s is s); // OK
assert(s is t); // doesn't work
assert(s is u); // doesn't work
assert(t is c); // OK
assert(t is d); // doesn't work
assert(t is s); // doesn't work
assert(t is t); // OK
assert(t is u); // doesn't work
assert(u is c); // OK
assert(u is d); // doesn't work
assert(u is s); // doesn't work
assert(u is t); // doesn't work
assert(u is u); // OK
}
/**********************************************/
// 6736
void test6736()
{
static struct S1
{
struct S2 // must be 8 bytes in size
{
uint a, b;
}
S2 s2;
alias s2 this;
}
S1 c;
static assert(!is(typeof(c + c)));
}
/**********************************************/
// 2777
struct ArrayWrapper(T) {
T[] array;
alias array this;
}
// alias array this
void test2777a()
{
ArrayWrapper!(uint) foo;
foo.length = 5; // Works
foo[0] = 1; // Works
auto e0 = foo[0]; // Works
auto e4 = foo[$ - 1]; // Error: undefined identifier __dollar
auto s01 = foo[0..2]; // Error: ArrayWrapper!(uint) cannot be sliced with[]
}
// alias tuple this
void test2777b()
{
auto t = tup(10, 3.14, "str", [1,2]);
assert(t[$ - 1] == [1,2]);
auto f1 = t[];
assert(f1[0] == 10);
assert(f1[1] == 3.14);
assert(f1[2] == "str");
assert(f1[3] == [1,2]);
auto f2 = t[1..3];
assert(f2[0] == 3.14);
assert(f2[1] == "str");
}
/****************************************/
// 2787
struct Base2787
{
int x;
void foo() { auto _ = x; }
}
struct Derived2787
{
Base2787 _base;
alias _base this;
int y;
void bar() { auto _ = x; }
}
/***********************************/
// 6508
void test6508()
{
int x, y;
Seq!(x, y) = tup(10, 20);
assert(x == 10);
assert(y == 20);
}
/***********************************/
// 6369
void test6369a()
{
alias Seq!(int, string) Field;
auto t1 = Tup!(int, string)(10, "str");
Field field1 = t1; // NG -> OK
assert(field1[0] == 10);
assert(field1[1] == "str");
auto t2 = Tup!(int, string)(10, "str");
Field field2 = t2.field; // NG -> OK
assert(field2[0] == 10);
assert(field2[1] == "str");
auto t3 = Tup!(int, string)(10, "str");
Field field3;
field3 = t3.field;
assert(field3[0] == 10);
assert(field3[1] == "str");
}
void test6369b()
{
auto t = Tup!(Tup!(int, double), string)(tup(10, 3.14), "str");
Seq!(int, double, string) fs1 = t;
assert(fs1[0] == 10);
assert(fs1[1] == 3.14);
assert(fs1[2] == "str");
Seq!(Tup!(int, double), string) fs2 = t;
assert(fs2[0][0] == 10);
assert(fs2[0][1] == 3.14);
assert(fs2[0] == tup(10, 3.14));
assert(fs2[1] == "str");
Tup!(Tup!(int, double), string) fs3 = t;
assert(fs3[0][0] == 10);
assert(fs3[0][1] == 3.14);
assert(fs3[0] == tup(10, 3.14));
assert(fs3[1] == "str");
}
void test6369c()
{
auto t = Tup!(Tup!(int, double), Tup!(string, int[]))(tup(10, 3.14), tup("str", [1,2]));
Seq!(int, double, string, int[]) fs1 = t;
assert(fs1[0] == 10);
assert(fs1[1] == 3.14);
assert(fs1[2] == "str");
assert(fs1[3] == [1,2]);
Seq!(int, double, Tup!(string, int[])) fs2 = t;
assert(fs2[0] == 10);
assert(fs2[1] == 3.14);
assert(fs2[2] == tup("str", [1,2]));
Seq!(Tup!(int, double), string, int[]) fs3 = t;
assert(fs3[0] == tup(10, 3.14));
assert(fs3[0][0] == 10);
assert(fs3[0][1] == 3.14);
assert(fs3[1] == "str");
assert(fs3[2] == [1,2]);
}
void test6369d()
{
int eval = 0;
Seq!(int, string) t = tup((++eval, 10), "str");
assert(eval == 1);
assert(t[0] == 10);
assert(t[1] == "str");
}
/**********************************************/
// 6434
struct Variant6434{}
struct A6434
{
Variant6434 i;
alias i this;
void opDispatch(string name)()
{
}
}
void test6434()
{
A6434 a;
a.weird; // no property 'weird' for type 'VariantN!(maxSize)'
}
/**************************************/
// 6366
void test6366()
{
struct Zip
{
string str;
size_t i;
this(string s)
{
str = s;
}
@property const bool empty()
{
return i == str.length;
}
@property Tup!(size_t, char) front()
{
return typeof(return)(i, str[i]);
}
void popFront()
{
++i;
}
}
foreach (i, c; Zip("hello"))
{
switch (i)
{
case 0: assert(c == 'h'); break;
case 1: assert(c == 'e'); break;
case 2: assert(c == 'l'); break;
case 3: assert(c == 'l'); break;
case 4: assert(c == 'o'); break;
default:assert(0);
}
}
auto range(F...)(F field)
{
static struct Range {
F field;
bool empty = false;
Tup!F front() { return typeof(return)(field); }
void popFront(){ empty = true; }
}
return Range(field);
}
foreach (i, t; range(10, tup("str", [1,2]))){
static assert(is(typeof(i) == int));
static assert(is(typeof(t) == Tup!(string, int[])));
assert(i == 10);
assert(t == tup("str", [1,2]));
}
auto r1 = range(10, "str", [1,2]);
auto r2 = range(tup(10, "str"), [1,2]);
auto r3 = range(10, tup("str", [1,2]));
auto r4 = range(tup(10, "str", [1,2]));
alias Seq!(r1, r2, r3, r4) ranges;
foreach (n, _; ranges)
{
foreach (i, s, a; ranges[n]){
static assert(is(typeof(i) == int));
static assert(is(typeof(s) == string));
static assert(is(typeof(a) == int[]));
assert(i == 10);
assert(s == "str");
assert(a == [1,2]);
}
}
}
/**********************************************/
// Bugzill 6759
struct Range
{
size_t front() { return 0; }
void popFront() { empty = true; }
bool empty;
}
struct ARange
{
Range range;
alias range this;
}
void test6759()
{
ARange arange;
assert(arange.front == 0);
foreach(e; arange)
{
assert(e == 0);
}
}
/**********************************************/
// 6479
struct Memory6479
{
mixin Wrapper6479!();
}
struct Image6479
{
Memory6479 sup;
alias sup this;
}
mixin template Wrapper6479()
{
}
/**********************************************/
// 6832
void test6832()
{
static class Foo { }
static struct Bar { Foo foo; alias foo this; }
Bar bar;
bar = new Foo; // ok
assert(bar !is null); // ng
struct Int { int n; alias n this; }
Int a;
int b;
auto c = (true ? a : b); // TODO
assert(c == a);
}
/**********************************************/
// 6928
void test6928()
{
struct T { int* p; } // p is necessary.
T tx;
struct S {
T get() const { return tx; }
alias get this;
}
immutable(S) s;
immutable(T) t;
static assert(is(typeof(1? s:t))); // ok.
static assert(is(typeof(1? t:s))); // ok.
static assert(is(typeof(1? s:t)==typeof(1? t:s))); // fail.
auto x = 1? t:s; // ok.
auto y = 1? s:t; // compile error.
}
/**********************************************/
// 6929
struct S6929
{
T6929 get() const { return T6929.init; }
alias get this;
}
struct T6929
{
S6929 get() const { return S6929.init; }
alias get this;
}
void test6929()
{
T6929 t;
S6929 s;
static assert(!is(typeof(1? t:s)));
}
/***************************************************/
// 7136
void test7136()
{
struct X
{
Object get() immutable { return null; }
alias get this;
}
immutable(X) x;
Object y;
static assert( is(typeof(1?x:y) == Object)); // fails
static assert(!is(typeof(1?x:y) == const(Object))); // fails
struct A
{
int[] get() immutable { return null; }
alias get this;
}
immutable(A) a;
int[] b;
static assert( is(typeof(1?a:b) == int[])); // fails
static assert(!is(typeof(1?a:b) == const(int[]))); // fails
}
/***************************************************/
// 7731
struct A7731
{
int a;
}
template Inherit7731(alias X)
{
X __super;
alias __super this;
}
struct B7731
{
mixin Inherit7731!A7731;
int b;
}
struct PolyPtr7731(X)
{
X* _payload;
static if (is(typeof(X.init.__super)))
{
alias typeof(X.init.__super) Super;
@property auto getSuper(){ return PolyPtr7731!Super(&_payload.__super); }
alias getSuper this;
}
}
template create7731(X)
{
PolyPtr7731!X create7731(T...)(T args){
return PolyPtr7731!X(args);
}
}
void f7731a(PolyPtr7731!A7731 a) {/*...*/}
void f7731b(PolyPtr7731!B7731 b) {f7731a(b);/*...*/}
void test7731()
{
auto b = create7731!B7731();
}
/***************************************************/
// 7808
struct Nullable7808(T)
{
private T _value;
this()(T value)
{
_value = value;
}
@property ref inout(T) get() inout pure @safe
{
return _value;
}
alias get this;
}
class C7808 {}
struct S7808 { C7808 c; }
void func7808(S7808 s) {}
void test7808()
{
auto s = Nullable7808!S7808(S7808(new C7808));
func7808(s);
}
/***************************************************/
// 7945
struct S7945
{
int v;
alias v this;
}
void foo7945(ref int n){}
void test7945()
{
auto s = S7945(1);
foo7945(s); // 1.NG -> OK
s.foo7945(); // 2.OK, ufcs
foo7945(s.v); // 3.OK
s.v.foo7945(); // 4.OK, ufcs
}
/***************************************************/
// 7992
struct S7992
{
int[] arr;
alias arr this;
}
S7992 func7992(...)
{
S7992 ret;
ret.arr.length = _arguments.length;
return ret;
}
void test7992()
{
int[] arr;
assert(arr.length == 0);
arr ~= func7992(1, 2); //NG
//arr = func7992(1, 2); //OK
assert(arr.length == 2);
}
/***************************************************/
int main()
{
test1();
test2();
test3();
test4();
test5();
test4773();
test5188();
test6();
test2781();
test6546();
test6736();
test2777a();
test2777b();
test6508();
test6369a();
test6369b();
test6369c();
test6369d();
test6434();
test6366();
test6759();
test6832();
test6928();
test6929();
test7136();
test7731();
test7808();
test7945();
test7992();
printf("Success\n");
return 0;
}
| D |
a word borrowed from another language
| D |
/Users/Dominik/Documents/Programmieren/Libraries/SwipeCellSUI_Example/Build/Intermediates.noindex/SwipeCellSUI.build/Debug-iphonesimulator/SwipeCellSUI.build/Objects-normal/x86_64/SwipeCellSUI.o : /Users/Dominik/Documents/Programmieren/Libraries/SwipeCellSUI/Sources/SwipeCellSUI/SwipeCellSUI.swift /Users/Dominik/Documents/Programmieren/Libraries/SwipeCellSUI/Sources/SwipeCellSUI/SwipeCellSUI_Model.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/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreData.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/CoreLocation.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/os.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UniformTypeIdentifiers.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/CloudKit.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/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/DeveloperToolsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.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.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CloudKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/Dominik/Documents/Programmieren/Libraries/SwipeCellSUI_Example/Build/Intermediates.noindex/SwipeCellSUI.build/Debug-iphonesimulator/SwipeCellSUI.build/Objects-normal/x86_64/SwipeCellSUI~partial.swiftmodule : /Users/Dominik/Documents/Programmieren/Libraries/SwipeCellSUI/Sources/SwipeCellSUI/SwipeCellSUI.swift /Users/Dominik/Documents/Programmieren/Libraries/SwipeCellSUI/Sources/SwipeCellSUI/SwipeCellSUI_Model.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/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreData.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/CoreLocation.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/os.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UniformTypeIdentifiers.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/CloudKit.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/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/DeveloperToolsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.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.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CloudKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/Dominik/Documents/Programmieren/Libraries/SwipeCellSUI_Example/Build/Intermediates.noindex/SwipeCellSUI.build/Debug-iphonesimulator/SwipeCellSUI.build/Objects-normal/x86_64/SwipeCellSUI~partial.swiftdoc : /Users/Dominik/Documents/Programmieren/Libraries/SwipeCellSUI/Sources/SwipeCellSUI/SwipeCellSUI.swift /Users/Dominik/Documents/Programmieren/Libraries/SwipeCellSUI/Sources/SwipeCellSUI/SwipeCellSUI_Model.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/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreData.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/CoreLocation.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/os.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UniformTypeIdentifiers.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/CloudKit.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/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/DeveloperToolsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.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.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CloudKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/Dominik/Documents/Programmieren/Libraries/SwipeCellSUI_Example/Build/Intermediates.noindex/SwipeCellSUI.build/Debug-iphonesimulator/SwipeCellSUI.build/Objects-normal/x86_64/SwipeCellSUI~partial.swiftsourceinfo : /Users/Dominik/Documents/Programmieren/Libraries/SwipeCellSUI/Sources/SwipeCellSUI/SwipeCellSUI.swift /Users/Dominik/Documents/Programmieren/Libraries/SwipeCellSUI/Sources/SwipeCellSUI/SwipeCellSUI_Model.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/SwiftUI.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreData.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/CoreLocation.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/os.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UniformTypeIdentifiers.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/CloudKit.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/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/DeveloperToolsSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.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.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UniformTypeIdentifiers.framework/Headers/UniformTypeIdentifiers.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CloudKit.framework/Headers/CloudKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
| D |
/Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/DerivedData/CryptoLive/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/YAxis.o : /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Filters/DataApproximator+N.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/Legend.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/MarkerImage.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/Range.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/AxisBase.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/ComponentBase.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Utils/Fill.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Utils/Platform.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/Description.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/IMarker.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Utils/Transformer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Renderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Animation/Animator.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Filters/DataApproximator.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/XAxis.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/YAxis.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Utils/ChartUtils.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/Highlight.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/MarkerView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/PieChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/LineChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/BarChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/RadarChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/LegendEntry.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/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Target\ Support\ Files/Charts/Charts-umbrella.h /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/DerivedData/CryptoLive/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap
/Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/DerivedData/CryptoLive/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/YAxis~partial.swiftmodule : /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Filters/DataApproximator+N.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/Legend.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/MarkerImage.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/Range.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/AxisBase.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/ComponentBase.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Utils/Fill.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Utils/Platform.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/Description.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/IMarker.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Utils/Transformer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Renderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Animation/Animator.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Filters/DataApproximator.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/XAxis.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/YAxis.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Utils/ChartUtils.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/Highlight.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/MarkerView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/PieChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/LineChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/BarChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/RadarChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/LegendEntry.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/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Target\ Support\ Files/Charts/Charts-umbrella.h /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/DerivedData/CryptoLive/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap
/Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/DerivedData/CryptoLive/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/YAxis~partial.swiftdoc : /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Filters/DataApproximator+N.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/Legend.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/MarkerImage.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/Range.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/AxisBase.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/ComponentBase.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Utils/Fill.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Utils/Platform.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/Description.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/IMarker.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Utils/Transformer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Renderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Animation/Animator.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Filters/DataApproximator.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/XAxis.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/YAxis.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Utils/ChartUtils.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Highlight/Highlight.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/MarkerView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/PieChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/LineChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/BarChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/RadarChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Charts/Source/Charts/Components/LegendEntry.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/Jaskeerat/Desktop/CryptoLive/CryptoLive/Pods/Target\ Support\ Files/Charts/Charts-umbrella.h /Users/Jaskeerat/Desktop/CryptoLive/CryptoLive/DerivedData/CryptoLive/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap
| D |
/Users/Takashi/Documents/codepath/tips/DerivedData/tips/Build/Intermediates/tips.build/Debug-iphoneos/tips.build/Objects-normal/armv7/SettingsViewController.o : /Users/Takashi/Documents/codepath/tips/tips/ViewController.swift /Users/Takashi/Documents/codepath/tips/tips/AppDelegate.swift /Users/Takashi/Documents/codepath/tips/tips/SettingsViewController.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
/Users/Takashi/Documents/codepath/tips/DerivedData/tips/Build/Intermediates/tips.build/Debug-iphoneos/tips.build/Objects-normal/armv7/SettingsViewController~partial.swiftmodule : /Users/Takashi/Documents/codepath/tips/tips/ViewController.swift /Users/Takashi/Documents/codepath/tips/tips/AppDelegate.swift /Users/Takashi/Documents/codepath/tips/tips/SettingsViewController.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
/Users/Takashi/Documents/codepath/tips/DerivedData/tips/Build/Intermediates/tips.build/Debug-iphoneos/tips.build/Objects-normal/armv7/SettingsViewController~partial.swiftdoc : /Users/Takashi/Documents/codepath/tips/tips/ViewController.swift /Users/Takashi/Documents/codepath/tips/tips/AppDelegate.swift /Users/Takashi/Documents/codepath/tips/tips/SettingsViewController.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
| D |
// Written in the D programming language
/++
License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: Jonathan M Davis
Source: $(PHOBOSSRC std/datetime/_systime.d)
+/
module std.datetime.systime;
// Note: reconsider using specific imports below after
// https://issues.dlang.org/show_bug.cgi?id=17630 has been fixed
import core.time;// : ClockType, convert, dur, Duration, seconds, TimeException;
import std.datetime.date;// : _monthNames, AllowDayOverflow, CmpTimeUnits, Date,
//DateTime, DateTimeException, DayOfWeek, enforceValid, getDayOfWeek, maxDay,
//Month, splitUnitsFromHNSecs, TimeOfDay, validTimeUnits, yearIsLeapYear;
import std.datetime.timezone;// : LocalTime, SimpleTimeZone, TimeZone, UTC;
import std.exception : enforce;
import std.format : format;
import std.range.primitives;
import std.traits : isIntegral, isSigned, isSomeString, Unqual;
version(Windows)
{
import core.stdc.time : time_t;
import core.sys.windows.windows;
import core.sys.windows.winsock2;
}
else version(Posix)
{
import core.sys.posix.signal : timespec;
import core.sys.posix.sys.types : time_t;
}
version(unittest)
{
import core.exception : AssertError;
import std.exception : assertThrown;
}
@safe unittest
{
initializeTests();
}
/++
Effectively a namespace to make it clear that the methods it contains are
getting the time from the system clock. It cannot be instantiated.
+/
final class Clock
{
public:
/++
Returns the current time in the given time zone.
Params:
clockType = The $(REF ClockType, core,time) indicates which system
clock to use to get the current time. Very few programs
need to use anything other than the default.
tz = The time zone for the SysTime that's returned.
Throws:
$(REF DateTimeException,std,datetime,date) if it fails to get the
time.
+/
static SysTime currTime(ClockType clockType = ClockType.normal)(immutable TimeZone tz = LocalTime()) @safe
{
return SysTime(currStdTime!clockType, tz);
}
@safe unittest
{
import std.format : format;
import std.stdio : writefln;
import core.time;
assert(currTime().timezone is LocalTime());
assert(currTime(UTC()).timezone is UTC());
// core.stdc.time.time does not always use unix time on Windows systems.
// In particular, dmc does not use unix time. If we can guarantee that
// the MS runtime uses unix time, then we may be able run this test
// then, but for now, we're just not going to run this test on Windows.
version(Posix)
{
static import core.stdc.time;
static import std.math;
immutable unixTimeD = currTime().toUnixTime();
immutable unixTimeC = core.stdc.time.time(null);
assert(std.math.abs(unixTimeC - unixTimeD) <= 2);
}
auto norm1 = Clock.currTime;
auto norm2 = Clock.currTime(UTC());
assert(norm1 <= norm2, format("%s %s", norm1, norm2));
assert(abs(norm1 - norm2) <= seconds(2));
import std.meta : AliasSeq;
static foreach (ct; AliasSeq!(ClockType.coarse, ClockType.precise, ClockType.second))
{{
scope(failure) writefln("ClockType.%s", ct);
auto value1 = Clock.currTime!ct;
auto value2 = Clock.currTime!ct(UTC());
assert(value1 <= value2, format("%s %s", value1, value2));
assert(abs(value1 - value2) <= seconds(2));
}}
}
/++
Returns the number of hnsecs since midnight, January 1st, 1 A.D. for the
current time.
Params:
clockType = The $(REF ClockType, core,time) indicates which system
clock to use to get the current time. Very few programs
need to use anything other than the default.
Throws:
$(REF DateTimeException,std,datetime,date) if it fails to get the
time.
+/
static @property long currStdTime(ClockType clockType = ClockType.normal)() @trusted
{
static if (clockType != ClockType.coarse &&
clockType != ClockType.normal &&
clockType != ClockType.precise &&
clockType != ClockType.second)
{
static assert(0, format("ClockType.%s is not supported by Clock.currTime or Clock.currStdTime", clockType));
}
version(Windows)
{
FILETIME fileTime;
GetSystemTimeAsFileTime(&fileTime);
immutable result = FILETIMEToStdTime(&fileTime);
static if (clockType == ClockType.second)
{
// Ideally, this would use core.std.time.time, but the C runtime
// has to be using unix time for that to work, and that's not
// guaranteed on Windows. Digital Mars does not use unix time.
// MS may or may not. If it does, then this can be made to use
// core.stdc.time for MS, but for now, we'll leave it like this.
return convert!("seconds", "hnsecs")(convert!("hnsecs", "seconds")(result));
}
else
return result;
}
else version(Posix)
{
static import core.stdc.time;
enum hnsecsToUnixEpoch = unixTimeToStdTime(0);
version(OSX)
{
static if (clockType == ClockType.second)
return unixTimeToStdTime(core.stdc.time.time(null));
else
{
import core.sys.posix.sys.time : gettimeofday, timeval;
timeval tv;
if (gettimeofday(&tv, null) != 0)
throw new TimeException("Call to gettimeofday() failed");
return convert!("seconds", "hnsecs")(tv.tv_sec) +
convert!("usecs", "hnsecs")(tv.tv_usec) +
hnsecsToUnixEpoch;
}
}
else version(linux)
{
static if (clockType == ClockType.second)
return unixTimeToStdTime(core.stdc.time.time(null));
else
{
import core.sys.linux.time : CLOCK_REALTIME_COARSE;
import core.sys.posix.time : clock_gettime, CLOCK_REALTIME;
static if (clockType == ClockType.coarse) alias clockArg = CLOCK_REALTIME_COARSE;
else static if (clockType == ClockType.normal) alias clockArg = CLOCK_REALTIME;
else static if (clockType == ClockType.precise) alias clockArg = CLOCK_REALTIME;
else static assert(0, "Previous static if is wrong.");
timespec ts;
if (clock_gettime(clockArg, &ts) != 0)
throw new TimeException("Call to clock_gettime() failed");
return convert!("seconds", "hnsecs")(ts.tv_sec) +
ts.tv_nsec / 100 +
hnsecsToUnixEpoch;
}
}
else version(FreeBSD)
{
import core.sys.freebsd.time : clock_gettime, CLOCK_REALTIME,
CLOCK_REALTIME_FAST, CLOCK_REALTIME_PRECISE, CLOCK_SECOND;
static if (clockType == ClockType.coarse) alias clockArg = CLOCK_REALTIME_FAST;
else static if (clockType == ClockType.normal) alias clockArg = CLOCK_REALTIME;
else static if (clockType == ClockType.precise) alias clockArg = CLOCK_REALTIME_PRECISE;
else static if (clockType == ClockType.second) alias clockArg = CLOCK_SECOND;
else static assert(0, "Previous static if is wrong.");
timespec ts;
if (clock_gettime(clockArg, &ts) != 0)
throw new TimeException("Call to clock_gettime() failed");
return convert!("seconds", "hnsecs")(ts.tv_sec) +
ts.tv_nsec / 100 +
hnsecsToUnixEpoch;
}
else version(NetBSD)
{
static if (clockType == ClockType.second)
return unixTimeToStdTime(core.stdc.time.time(null));
else
{
import core.sys.posix.sys.time : gettimeofday, timeval;
timeval tv;
if (gettimeofday(&tv, null) != 0)
throw new TimeException("Call to gettimeofday() failed");
return convert!("seconds", "hnsecs")(tv.tv_sec) +
convert!("usecs", "hnsecs")(tv.tv_usec) +
hnsecsToUnixEpoch;
}
}
else version(DragonFlyBSD)
{
import core.sys.dragonflybsd.time : clock_gettime, CLOCK_REALTIME,
CLOCK_REALTIME_FAST, CLOCK_REALTIME_PRECISE, CLOCK_SECOND;
static if (clockType == ClockType.coarse) alias clockArg = CLOCK_REALTIME_FAST;
else static if (clockType == ClockType.normal) alias clockArg = CLOCK_REALTIME;
else static if (clockType == ClockType.precise) alias clockArg = CLOCK_REALTIME_PRECISE;
else static if (clockType == ClockType.second) alias clockArg = CLOCK_SECOND;
else static assert(0, "Previous static if is wrong.");
timespec ts;
if (clock_gettime(clockArg, &ts) != 0)
throw new TimeException("Call to clock_gettime() failed");
return convert!("seconds", "hnsecs")(ts.tv_sec) +
ts.tv_nsec / 100 +
hnsecsToUnixEpoch;
}
else version(Solaris)
{
static if (clockType == ClockType.second)
return unixTimeToStdTime(core.stdc.time.time(null));
else
{
import core.sys.solaris.time : clock_gettime, CLOCK_REALTIME;
static if (clockType == ClockType.coarse) alias clockArg = CLOCK_REALTIME;
else static if (clockType == ClockType.normal) alias clockArg = CLOCK_REALTIME;
else static if (clockType == ClockType.precise) alias clockArg = CLOCK_REALTIME;
else static assert(0, "Previous static if is wrong.");
timespec ts;
if (clock_gettime(clockArg, &ts) != 0)
throw new TimeException("Call to clock_gettime() failed");
return convert!("seconds", "hnsecs")(ts.tv_sec) +
ts.tv_nsec / 100 +
hnsecsToUnixEpoch;
}
}
else static assert(0, "Unsupported OS");
}
else static assert(0, "Unsupported OS");
}
@safe unittest
{
import std.format : format;
import std.math : abs;
import std.meta : AliasSeq;
import std.stdio : writefln;
enum limit = convert!("seconds", "hnsecs")(2);
auto norm1 = Clock.currStdTime;
auto norm2 = Clock.currStdTime;
assert(norm1 <= norm2, format("%s %s", norm1, norm2));
assert(abs(norm1 - norm2) <= limit);
static foreach (ct; AliasSeq!(ClockType.coarse, ClockType.precise, ClockType.second))
{{
scope(failure) writefln("ClockType.%s", ct);
auto value1 = Clock.currStdTime!ct;
auto value2 = Clock.currStdTime!ct;
assert(value1 <= value2, format("%s %s", value1, value2));
assert(abs(value1 - value2) <= limit);
}}
}
private:
@disable this() {}
}
/++
$(D SysTime) is the type used to get the current time from the
system or doing anything that involves time zones. Unlike
$(REF DateTime,std,datetime,date), the time zone is an integral part of
$(D SysTime) (though for local time applications, time zones can be ignored
and it will work, since it defaults to using the local time zone). It holds
its internal time in std time (hnsecs since midnight, January 1st, 1 A.D.
UTC), so it interfaces well with the system time. However, that means that,
unlike $(REF DateTime,std,datetime,date), it is not optimized for
calendar-based operations, and getting individual units from it such as
years or days is going to involve conversions and be less efficient.
For calendar-based operations that don't
care about time zones, then $(REF DateTime,std,datetime,date) would be
the type to use. For system time, use $(D SysTime).
$(LREF Clock.currTime) will return the current time as a $(D SysTime).
To convert a $(D SysTime) to a $(REF Date,std,datetime,date) or
$(REF DateTime,std,datetime,date), simply cast it. To convert a
$(REF Date,std,datetime,date) or $(REF DateTime,std,datetime,date) to a
$(D SysTime), use $(D SysTime)'s constructor, and pass in the ntended time
zone with it (or don't pass in a $(REF TimeZone,std,datetime,timezone), and
the local time zone will be used). Be aware, however, that converting from a
$(REF DateTime,std,datetime,date) to a $(D SysTime) will not necessarily
be 100% accurate due to DST (one hour of the year doesn't exist and another
occurs twice). To not risk any conversion errors, keep times as
$(D SysTime)s. Aside from DST though, there shouldn't be any conversion
problems.
For using time zones other than local time or UTC, use
$(REF PosixTimeZone,std,datetime,timezone) on Posix systems (or on Windows,
if providing the TZ Database files), and use
$(REF WindowsTimeZone,std,datetime,timezone) on Windows systems. The time in
$(D SysTime) is kept internally in hnsecs from midnight, January 1st, 1 A.D.
UTC. Conversion error cannot happen when changing the time zone of a
$(D SysTime). $(REF LocalTime,std,datetime,timezone) is the
$(REF TimeZone,std,datetime,timezone) class which represents the local time,
and $(D UTC) is the $(REF TimeZone,std,datetime,timezone) class which
represents UTC. $(D SysTime) uses $(REF LocalTime,std,datetime,timezone) if
no $(REF TimeZone,std,datetime,timezone) is provided. For more details on
time zones, see the documentation for $(REF TimeZone,std,datetime,timezone),
$(REF PosixTimeZone,std,datetime,timezone), and
$(REF WindowsTimeZone,std,datetime,timezone).
$(D SysTime)'s range is from approximately 29,000 B.C. to approximately
29,000 A.D.
+/
struct SysTime
{
import core.stdc.time : tm;
version(Posix) import core.sys.posix.sys.time : timeval;
import std.typecons : Rebindable;
public:
/++
Params:
dateTime = The $(REF DateTime,std,datetime,date) to use to set
this $(LREF SysTime)'s internal std time. As
$(REF DateTime,std,datetime,date) has no concept of
time zone, tz is used as its time zone.
tz = The $(REF TimeZone,std,datetime,timezone) to use for this
$(LREF SysTime). If null,
$(REF LocalTime,std,datetime,timezone) will be used. The
given $(REF DateTime,std,datetime,date) is assumed to
be in the given time zone.
+/
this(in DateTime dateTime, immutable TimeZone tz = null) @safe nothrow
{
try
this(dateTime, Duration.zero, tz);
catch (Exception e)
assert(0, "SysTime's constructor threw when it shouldn't have.");
}
@safe unittest
{
static void test(DateTime dt, immutable TimeZone tz, long expected)
{
auto sysTime = SysTime(dt, tz);
assert(sysTime._stdTime == expected);
assert(sysTime._timezone is (tz is null ? LocalTime() : tz), format("Given DateTime: %s", dt));
}
test(DateTime.init, UTC(), 0);
test(DateTime(1, 1, 1, 12, 30, 33), UTC(), 450_330_000_000L);
test(DateTime(0, 12, 31, 12, 30, 33), UTC(), -413_670_000_000L);
test(DateTime(1, 1, 1, 0, 0, 0), UTC(), 0);
test(DateTime(1, 1, 1, 0, 0, 1), UTC(), 10_000_000L);
test(DateTime(0, 12, 31, 23, 59, 59), UTC(), -10_000_000L);
test(DateTime(1, 1, 1, 0, 0, 0), new immutable SimpleTimeZone(dur!"minutes"(-60)), 36_000_000_000L);
test(DateTime(1, 1, 1, 0, 0, 0), new immutable SimpleTimeZone(Duration.zero), 0);
test(DateTime(1, 1, 1, 0, 0, 0), new immutable SimpleTimeZone(dur!"minutes"(60)), -36_000_000_000L);
}
/++
Params:
dateTime = The $(REF DateTime,std,datetime,date) to use to set
this $(LREF SysTime)'s internal std time. As
$(REF DateTime,std,datetime,date) has no concept of
time zone, tz is used as its time zone.
fracSecs = The fractional seconds portion of the time.
tz = The $(REF TimeZone,std,datetime,timezone) to use for this
$(LREF SysTime). If null,
$(REF LocalTime,std,datetime,timezone) will be used. The
given $(REF DateTime,std,datetime,date) is assumed to
be in the given time zone.
Throws:
$(REF DateTimeException,std,datetime,date) if $(D fracSecs) is negative or if it's
greater than or equal to one second.
+/
this(in DateTime dateTime, in Duration fracSecs, immutable TimeZone tz = null) @safe
{
enforce(fracSecs >= Duration.zero, new DateTimeException("A SysTime cannot have negative fractional seconds."));
enforce(fracSecs < seconds(1), new DateTimeException("Fractional seconds must be less than one second."));
auto nonNullTZ = tz is null ? LocalTime() : tz;
immutable dateDiff = dateTime.date - Date.init;
immutable todDiff = dateTime.timeOfDay - TimeOfDay.init;
immutable adjustedTime = dateDiff + todDiff + fracSecs;
immutable standardTime = nonNullTZ.tzToUTC(adjustedTime.total!"hnsecs");
this(standardTime, nonNullTZ);
}
@safe unittest
{
import core.time;
static void test(DateTime dt, Duration fracSecs, immutable TimeZone tz, long expected)
{
auto sysTime = SysTime(dt, fracSecs, tz);
assert(sysTime._stdTime == expected);
assert(sysTime._timezone is (tz is null ? LocalTime() : tz),
format("Given DateTime: %s, Given Duration: %s", dt, fracSecs));
}
test(DateTime.init, Duration.zero, UTC(), 0);
test(DateTime(1, 1, 1, 12, 30, 33), Duration.zero, UTC(), 450_330_000_000L);
test(DateTime(0, 12, 31, 12, 30, 33), Duration.zero, UTC(), -413_670_000_000L);
test(DateTime(1, 1, 1, 0, 0, 0), msecs(1), UTC(), 10_000L);
test(DateTime(0, 12, 31, 23, 59, 59), msecs(999), UTC(), -10_000L);
test(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999), UTC(), -1);
test(DateTime(0, 12, 31, 23, 59, 59), hnsecs(1), UTC(), -9_999_999);
test(DateTime(0, 12, 31, 23, 59, 59), Duration.zero, UTC(), -10_000_000);
assertThrown!DateTimeException(SysTime(DateTime.init, hnsecs(-1), UTC()));
assertThrown!DateTimeException(SysTime(DateTime.init, seconds(1), UTC()));
}
/++
Params:
date = The $(REF Date,std,datetime,date) to use to set this
$(LREF SysTime)'s internal std time. As
$(REF Date,std,datetime,date) has no concept of time zone, tz
is used as its time zone.
tz = The $(REF TimeZone,std,datetime,timezone) to use for this
$(LREF SysTime). If null,
$(REF LocalTime,std,datetime,timezone) will be used. The
given $(REF Date,std,datetime,date) is assumed to be in the
given time zone.
+/
this(in Date date, immutable TimeZone tz = null) @safe nothrow
{
_timezone = tz is null ? LocalTime() : tz;
try
{
immutable adjustedTime = (date - Date(1, 1, 1)).total!"hnsecs";
immutable standardTime = _timezone.tzToUTC(adjustedTime);
this(standardTime, _timezone);
}
catch (Exception e)
assert(0, "Date's constructor through when it shouldn't have.");
}
@safe unittest
{
static void test(Date d, immutable TimeZone tz, long expected)
{
auto sysTime = SysTime(d, tz);
assert(sysTime._stdTime == expected);
assert(sysTime._timezone is (tz is null ? LocalTime() : tz), format("Given Date: %s", d));
}
test(Date.init, UTC(), 0);
test(Date(1, 1, 1), UTC(), 0);
test(Date(1, 1, 2), UTC(), 864000000000);
test(Date(0, 12, 31), UTC(), -864000000000);
}
/++
Note:
Whereas the other constructors take in the given date/time, assume
that it's in the given time zone, and convert it to hnsecs in UTC
since midnight, January 1st, 1 A.D. UTC - i.e. std time - this
constructor takes a std time, which is specifically already in UTC,
so no conversion takes place. Of course, the various getter
properties and functions will use the given time zone's conversion
function to convert the results to that time zone, but no conversion
of the arguments to this constructor takes place.
Params:
stdTime = The number of hnsecs since midnight, January 1st, 1 A.D.
UTC.
tz = The $(REF TimeZone,std,datetime,timezone) to use for this
$(LREF SysTime). If null,
$(REF LocalTime,std,datetime,timezone) will be used.
+/
this(long stdTime, immutable TimeZone tz = null) @safe pure nothrow
{
_stdTime = stdTime;
_timezone = tz is null ? LocalTime() : tz;
}
@safe unittest
{
static void test(long stdTime, immutable TimeZone tz)
{
auto sysTime = SysTime(stdTime, tz);
assert(sysTime._stdTime == stdTime);
assert(sysTime._timezone is (tz is null ? LocalTime() : tz), format("Given stdTime: %s", stdTime));
}
foreach (stdTime; [-1234567890L, -250, 0, 250, 1235657390L])
{
foreach (tz; testTZs)
test(stdTime, tz);
}
}
/++
Params:
rhs = The $(LREF SysTime) to assign to this one.
+/
ref SysTime opAssign(const ref SysTime rhs) return @safe pure nothrow
{
_stdTime = rhs._stdTime;
_timezone = rhs._timezone;
return this;
}
/++
Params:
rhs = The $(LREF SysTime) to assign to this one.
+/
ref SysTime opAssign(SysTime rhs) scope return @safe pure nothrow
{
_stdTime = rhs._stdTime;
_timezone = rhs._timezone;
return this;
}
/++
Checks for equality between this $(LREF SysTime) and the given
$(LREF SysTime).
Note that the time zone is ignored. Only the internal
std times (which are in UTC) are compared.
+/
bool opEquals(const SysTime rhs) @safe const pure nothrow
{
return opEquals(rhs);
}
/// ditto
bool opEquals(const ref SysTime rhs) @safe const pure nothrow
{
return _stdTime == rhs._stdTime;
}
@safe unittest
{
import std.range : chain;
assert(SysTime(DateTime.init, UTC()) == SysTime(0, UTC()));
assert(SysTime(DateTime.init, UTC()) == SysTime(0));
assert(SysTime(Date.init, UTC()) == SysTime(0));
assert(SysTime(0) == SysTime(0));
static void test(DateTime dt, immutable TimeZone tz1, immutable TimeZone tz2)
{
auto st1 = SysTime(dt);
st1.timezone = tz1;
auto st2 = SysTime(dt);
st2.timezone = tz2;
assert(st1 == st2);
}
foreach (tz1; testTZs)
{
foreach (tz2; testTZs)
{
foreach (dt; chain(testDateTimesBC, testDateTimesAD))
test(dt, tz1, tz2);
}
}
auto st = SysTime(DateTime(1999, 7, 6, 12, 33, 30));
const cst = SysTime(DateTime(1999, 7, 6, 12, 33, 30));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 33, 30));
assert(st == st);
assert(st == cst);
//assert(st == ist);
assert(cst == st);
assert(cst == cst);
//assert(cst == ist);
//assert(ist == st);
//assert(ist == cst);
//assert(ist == ist);
}
/++
Compares this $(LREF SysTime) with the given $(LREF SysTime).
Time zone is irrelevant when comparing $(LREF SysTime)s.
Returns:
$(BOOKTABLE,
$(TR $(TD this < rhs) $(TD < 0))
$(TR $(TD this == rhs) $(TD 0))
$(TR $(TD this > rhs) $(TD > 0))
)
+/
int opCmp(in SysTime rhs) @safe const pure nothrow
{
if (_stdTime < rhs._stdTime)
return -1;
if (_stdTime > rhs._stdTime)
return 1;
return 0;
}
@safe unittest
{
import std.algorithm.iteration : map;
import std.array : array;
import std.range : chain;
assert(SysTime(DateTime.init, UTC()).opCmp(SysTime(0, UTC())) == 0);
assert(SysTime(DateTime.init, UTC()).opCmp(SysTime(0)) == 0);
assert(SysTime(Date.init, UTC()).opCmp(SysTime(0)) == 0);
assert(SysTime(0).opCmp(SysTime(0)) == 0);
static void testEqual(SysTime st, immutable TimeZone tz1, immutable TimeZone tz2)
{
auto st1 = st;
st1.timezone = tz1;
auto st2 = st;
st2.timezone = tz2;
assert(st1.opCmp(st2) == 0);
}
auto sts = array(map!SysTime(chain(testDateTimesBC, testDateTimesAD)));
foreach (st; sts)
{
foreach (tz1; testTZs)
{
foreach (tz2; testTZs)
testEqual(st, tz1, tz2);
}
}
static void testCmp(SysTime st1, immutable TimeZone tz1, SysTime st2, immutable TimeZone tz2)
{
st1.timezone = tz1;
st2.timezone = tz2;
assert(st1.opCmp(st2) < 0);
assert(st2.opCmp(st1) > 0);
}
foreach (si, st1; sts)
{
foreach (st2; sts[si + 1 .. $])
{
foreach (tz1; testTZs)
{
foreach (tz2; testTZs)
testCmp(st1, tz1, st2, tz2);
}
}
}
auto st = SysTime(DateTime(1999, 7, 6, 12, 33, 30));
const cst = SysTime(DateTime(1999, 7, 6, 12, 33, 30));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 33, 30));
assert(st.opCmp(st) == 0);
assert(st.opCmp(cst) == 0);
//assert(st.opCmp(ist) == 0);
assert(cst.opCmp(st) == 0);
assert(cst.opCmp(cst) == 0);
//assert(cst.opCmp(ist) == 0);
//assert(ist.opCmp(st) == 0);
//assert(ist.opCmp(cst) == 0);
//assert(ist.opCmp(ist) == 0);
}
/**
* Returns: A hash of the $(LREF SysTime)
*/
size_t toHash() const @nogc pure nothrow @safe
{
static if (is(size_t == ulong))
return _stdTime;
else
{
// MurmurHash2
enum ulong m = 0xc6a4a7935bd1e995UL;
enum ulong n = m * 16;
enum uint r = 47;
ulong k = _stdTime;
k *= m;
k ^= k >> r;
k *= m;
ulong h = n;
h ^= k;
h *= m;
return cast(size_t) h;
}
}
@safe unittest
{
assert(SysTime(0).toHash == SysTime(0).toHash);
assert(SysTime(DateTime(2000, 1, 1)).toHash == SysTime(DateTime(2000, 1, 1)).toHash);
assert(SysTime(DateTime(2000, 1, 1)).toHash != SysTime(DateTime(2000, 1, 2)).toHash);
// test that timezones aren't taken into account
assert(SysTime(0, LocalTime()).toHash == SysTime(0, LocalTime()).toHash);
assert(SysTime(0, LocalTime()).toHash == SysTime(0, UTC()).toHash);
assert(SysTime(DateTime(2000, 1, 1), LocalTime()).toHash == SysTime(DateTime(2000, 1, 1), LocalTime()).toHash);
immutable zone = new SimpleTimeZone(dur!"minutes"(60));
assert(SysTime(DateTime(2000, 1, 1, 1), zone).toHash == SysTime(DateTime(2000, 1, 1), UTC()).toHash);
assert(SysTime(DateTime(2000, 1, 1), zone).toHash != SysTime(DateTime(2000, 1, 1), UTC()).toHash);
}
/++
Year of the Gregorian Calendar. Positive numbers are A.D. Non-positive
are B.C.
+/
@property short year() @safe const nothrow
{
return (cast(Date) this).year;
}
@safe unittest
{
import std.range : chain;
static void test(SysTime sysTime, long expected)
{
assert(sysTime.year == expected, format("Value given: %s", sysTime));
}
test(SysTime(0, UTC()), 1);
test(SysTime(1, UTC()), 1);
test(SysTime(-1, UTC()), 0);
foreach (year; chain(testYearsBC, testYearsAD))
{
foreach (md; testMonthDays)
{
foreach (tod; testTODs)
{
auto dt = DateTime(Date(year, md.month, md.day), tod);
foreach (tz; testTZs)
{
foreach (fs; testFracSecs)
test(SysTime(dt, fs, tz), year);
}
}
}
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.year == 1999);
//assert(ist.year == 1999);
}
/++
Year of the Gregorian Calendar. Positive numbers are A.D. Non-positive
are B.C.
Params:
year = The year to set this $(LREF SysTime)'s year to.
Throws:
$(REF DateTimeException,std,datetime,date) if the new year is not
a leap year and the resulting date would be on February 29th.
+/
@property void year(int year) @safe
{
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
auto date = Date(cast(int) days);
date.year = year;
immutable newDaysHNSecs = convert!("days", "hnsecs")(date.dayOfGregorianCal - 1);
adjTime = newDaysHNSecs + hnsecs;
}
///
@safe unittest
{
import std.datetime.date : DateTime;
assert(SysTime(DateTime(1999, 7, 6, 9, 7, 5)).year == 1999);
assert(SysTime(DateTime(2010, 10, 4, 0, 0, 30)).year == 2010);
assert(SysTime(DateTime(-7, 4, 5, 7, 45, 2)).year == -7);
}
@safe unittest
{
import std.range : chain;
static void test(SysTime st, int year, in SysTime expected)
{
st.year = year;
assert(st == expected);
}
foreach (st; chain(testSysTimesBC, testSysTimesAD))
{
auto dt = cast(DateTime) st;
foreach (year; chain(testYearsBC, testYearsAD))
{
auto e = SysTime(DateTime(year, dt.month, dt.day, dt.hour, dt.minute, dt.second),
st.fracSecs,
st.timezone);
test(st, year, e);
}
}
foreach (fs; testFracSecs)
{
foreach (tz; testTZs)
{
foreach (tod; testTODs)
{
test(SysTime(DateTime(Date(1999, 2, 28), tod), fs, tz), 2000,
SysTime(DateTime(Date(2000, 2, 28), tod), fs, tz));
test(SysTime(DateTime(Date(2000, 2, 28), tod), fs, tz), 1999,
SysTime(DateTime(Date(1999, 2, 28), tod), fs, tz));
}
foreach (tod; testTODsThrown)
{
auto st = SysTime(DateTime(Date(2000, 2, 29), tod), fs, tz);
assertThrown!DateTimeException(st.year = 1999);
}
}
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.year = 7));
//static assert(!__traits(compiles, ist.year = 7));
}
/++
Year B.C. of the Gregorian Calendar counting year 0 as 1 B.C.
Throws:
$(REF DateTimeException,std,datetime,date) if $(D isAD) is true.
+/
@property ushort yearBC() @safe const
{
return (cast(Date) this).yearBC;
}
///
@safe unittest
{
import std.datetime.date : DateTime;
assert(SysTime(DateTime(0, 1, 1, 12, 30, 33)).yearBC == 1);
assert(SysTime(DateTime(-1, 1, 1, 10, 7, 2)).yearBC == 2);
assert(SysTime(DateTime(-100, 1, 1, 4, 59, 0)).yearBC == 101);
}
@safe unittest
{
import std.exception : assertNotThrown;
foreach (st; testSysTimesBC)
{
auto msg = format("SysTime: %s", st);
assertNotThrown!DateTimeException(st.yearBC, msg);
assert(st.yearBC == (st.year * -1) + 1, msg);
}
foreach (st; [testSysTimesAD[0], testSysTimesAD[$/2], testSysTimesAD[$-1]])
assertThrown!DateTimeException(st.yearBC, format("SysTime: %s", st));
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
st.year = 12;
assert(st.year == 12);
static assert(!__traits(compiles, cst.year = 12));
//static assert(!__traits(compiles, ist.year = 12));
}
/++
Year B.C. of the Gregorian Calendar counting year 0 as 1 B.C.
Params:
year = The year B.C. to set this $(LREF SysTime)'s year to.
Throws:
$(REF DateTimeException,std,datetime,date) if a non-positive value
is given.
+/
@property void yearBC(int year) @safe
{
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
auto date = Date(cast(int) days);
date.yearBC = year;
immutable newDaysHNSecs = convert!("days", "hnsecs")(date.dayOfGregorianCal - 1);
adjTime = newDaysHNSecs + hnsecs;
}
@safe unittest
{
auto st = SysTime(DateTime(2010, 1, 1, 7, 30, 0));
st.yearBC = 1;
assert(st == SysTime(DateTime(0, 1, 1, 7, 30, 0)));
st.yearBC = 10;
assert(st == SysTime(DateTime(-9, 1, 1, 7, 30, 0)));
}
@safe unittest
{
import std.range : chain;
static void test(SysTime st, int year, in SysTime expected)
{
st.yearBC = year;
assert(st == expected, format("SysTime: %s", st));
}
foreach (st; chain(testSysTimesBC, testSysTimesAD))
{
auto dt = cast(DateTime) st;
foreach (year; testYearsBC)
{
auto e = SysTime(DateTime(year, dt.month, dt.day, dt.hour, dt.minute, dt.second),
st.fracSecs,
st.timezone);
test(st, (year * -1) + 1, e);
}
}
foreach (st; [testSysTimesBC[0], testSysTimesBC[$ - 1], testSysTimesAD[0], testSysTimesAD[$ - 1]])
{
foreach (year; testYearsBC)
assertThrown!DateTimeException(st.yearBC = year);
}
foreach (fs; testFracSecs)
{
foreach (tz; testTZs)
{
foreach (tod; testTODs)
{
test(SysTime(DateTime(Date(-1999, 2, 28), tod), fs, tz), 2001,
SysTime(DateTime(Date(-2000, 2, 28), tod), fs, tz));
test(SysTime(DateTime(Date(-2000, 2, 28), tod), fs, tz), 2000,
SysTime(DateTime(Date(-1999, 2, 28), tod), fs, tz));
}
foreach (tod; testTODsThrown)
{
auto st = SysTime(DateTime(Date(-2000, 2, 29), tod), fs, tz);
assertThrown!DateTimeException(st.year = -1999);
}
}
}
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
st.yearBC = 12;
assert(st.yearBC == 12);
static assert(!__traits(compiles, cst.yearBC = 12));
//static assert(!__traits(compiles, ist.yearBC = 12));
}
/++
Month of a Gregorian Year.
+/
@property Month month() @safe const nothrow
{
return (cast(Date) this).month;
}
///
@safe unittest
{
import std.datetime.date : DateTime;
assert(SysTime(DateTime(1999, 7, 6, 9, 7, 5)).month == 7);
assert(SysTime(DateTime(2010, 10, 4, 0, 0, 30)).month == 10);
assert(SysTime(DateTime(-7, 4, 5, 7, 45, 2)).month == 4);
}
@safe unittest
{
import std.range : chain;
static void test(SysTime sysTime, Month expected)
{
assert(sysTime.month == expected, format("Value given: %s", sysTime));
}
test(SysTime(0, UTC()), Month.jan);
test(SysTime(1, UTC()), Month.jan);
test(SysTime(-1, UTC()), Month.dec);
foreach (year; chain(testYearsBC, testYearsAD))
{
foreach (md; testMonthDays)
{
foreach (tod; testTODs)
{
auto dt = DateTime(Date(year, md.month, md.day), tod);
foreach (fs; testFracSecs)
{
foreach (tz; testTZs)
test(SysTime(dt, fs, tz), md.month);
}
}
}
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.month == 7);
//assert(ist.month == 7);
}
/++
Month of a Gregorian Year.
Params:
month = The month to set this $(LREF SysTime)'s month to.
Throws:
$(REF DateTimeException,std,datetime,date) if the given month is
not a valid month.
+/
@property void month(Month month) @safe
{
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
auto date = Date(cast(int) days);
date.month = month;
immutable newDaysHNSecs = convert!("days", "hnsecs")(date.dayOfGregorianCal - 1);
adjTime = newDaysHNSecs + hnsecs;
}
@safe unittest
{
import std.algorithm.iteration : filter;
import std.range : chain;
static void test(SysTime st, Month month, in SysTime expected)
{
st.month = cast(Month) month;
assert(st == expected);
}
foreach (st; chain(testSysTimesBC, testSysTimesAD))
{
auto dt = cast(DateTime) st;
foreach (md; testMonthDays)
{
if (st.day > maxDay(dt.year, md.month))
continue;
auto e = SysTime(DateTime(dt.year, md.month, dt.day, dt.hour, dt.minute, dt.second),
st.fracSecs,
st.timezone);
test(st, md.month, e);
}
}
foreach (fs; testFracSecs)
{
foreach (tz; testTZs)
{
foreach (tod; testTODs)
{
foreach (year; filter!((a){return yearIsLeapYear(a);}) (chain(testYearsBC, testYearsAD)))
{
test(SysTime(DateTime(Date(year, 1, 29), tod), fs, tz),
Month.feb,
SysTime(DateTime(Date(year, 2, 29), tod), fs, tz));
}
foreach (year; chain(testYearsBC, testYearsAD))
{
test(SysTime(DateTime(Date(year, 1, 28), tod), fs, tz),
Month.feb,
SysTime(DateTime(Date(year, 2, 28), tod), fs, tz));
test(SysTime(DateTime(Date(year, 7, 30), tod), fs, tz),
Month.jun,
SysTime(DateTime(Date(year, 6, 30), tod), fs, tz));
}
}
}
}
foreach (fs; [testFracSecs[0], testFracSecs[$-1]])
{
foreach (tz; testTZs)
{
foreach (tod; testTODsThrown)
{
foreach (year; [testYearsBC[$-3], testYearsBC[$-2],
testYearsBC[$-2], testYearsAD[0],
testYearsAD[$-2], testYearsAD[$-1]])
{
auto day = yearIsLeapYear(year) ? 30 : 29;
auto st1 = SysTime(DateTime(Date(year, 1, day), tod), fs, tz);
assertThrown!DateTimeException(st1.month = Month.feb);
auto st2 = SysTime(DateTime(Date(year, 7, 31), tod), fs, tz);
assertThrown!DateTimeException(st2.month = Month.jun);
}
}
}
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.month = 12));
//static assert(!__traits(compiles, ist.month = 12));
}
/++
Day of a Gregorian Month.
+/
@property ubyte day() @safe const nothrow
{
return (cast(Date) this).day;
}
///
@safe unittest
{
import std.datetime.date : DateTime;
assert(SysTime(DateTime(1999, 7, 6, 9, 7, 5)).day == 6);
assert(SysTime(DateTime(2010, 10, 4, 0, 0, 30)).day == 4);
assert(SysTime(DateTime(-7, 4, 5, 7, 45, 2)).day == 5);
}
@safe unittest
{
import std.range : chain;
static void test(SysTime sysTime, int expected)
{
assert(sysTime.day == expected, format("Value given: %s", sysTime));
}
test(SysTime(0, UTC()), 1);
test(SysTime(1, UTC()), 1);
test(SysTime(-1, UTC()), 31);
foreach (year; chain(testYearsBC, testYearsAD))
{
foreach (md; testMonthDays)
{
foreach (tod; testTODs)
{
auto dt = DateTime(Date(year, md.month, md.day), tod);
foreach (tz; testTZs)
{
foreach (fs; testFracSecs)
test(SysTime(dt, fs, tz), md.day);
}
}
}
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.day == 6);
//assert(ist.day == 6);
}
/++
Day of a Gregorian Month.
Params:
day = The day of the month to set this $(LREF SysTime)'s day to.
Throws:
$(REF DateTimeException,std,datetime,date) if the given day is not
a valid day of the current month.
+/
@property void day(int day) @safe
{
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
auto date = Date(cast(int) days);
date.day = day;
immutable newDaysHNSecs = convert!("days", "hnsecs")(date.dayOfGregorianCal - 1);
adjTime = newDaysHNSecs + hnsecs;
}
@safe unittest
{
import std.range : chain;
import std.traits : EnumMembers;
foreach (day; chain(testDays))
{
foreach (st; chain(testSysTimesBC, testSysTimesAD))
{
auto dt = cast(DateTime) st;
if (day > maxDay(dt.year, dt.month))
continue;
auto expected = SysTime(DateTime(dt.year, dt.month, day, dt.hour, dt.minute, dt.second),
st.fracSecs,
st.timezone);
st.day = day;
assert(st == expected, format("[%s] [%s]", st, expected));
}
}
foreach (tz; testTZs)
{
foreach (tod; testTODs)
{
foreach (fs; testFracSecs)
{
foreach (year; chain(testYearsBC, testYearsAD))
{
foreach (month; EnumMembers!Month)
{
auto st = SysTime(DateTime(Date(year, month, 1), tod), fs, tz);
immutable max = maxDay(year, month);
auto expected = SysTime(DateTime(Date(year, month, max), tod), fs, tz);
st.day = max;
assert(st == expected, format("[%s] [%s]", st, expected));
}
}
}
}
}
foreach (tz; testTZs)
{
foreach (tod; testTODsThrown)
{
foreach (fs; [testFracSecs[0], testFracSecs[$-1]])
{
foreach (year; [testYearsBC[$-3], testYearsBC[$-2],
testYearsBC[$-2], testYearsAD[0],
testYearsAD[$-2], testYearsAD[$-1]])
{
foreach (month; EnumMembers!Month)
{
auto st = SysTime(DateTime(Date(year, month, 1), tod), fs, tz);
immutable max = maxDay(year, month);
assertThrown!DateTimeException(st.day = max + 1);
}
}
}
}
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.day = 27));
//static assert(!__traits(compiles, ist.day = 27));
}
/++
Hours past midnight.
+/
@property ubyte hour() @safe const nothrow
{
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
return cast(ubyte) getUnitsFromHNSecs!"hours"(hnsecs);
}
@safe unittest
{
import std.range : chain;
static void test(SysTime sysTime, int expected)
{
assert(sysTime.hour == expected, format("Value given: %s", sysTime));
}
test(SysTime(0, UTC()), 0);
test(SysTime(1, UTC()), 0);
test(SysTime(-1, UTC()), 23);
foreach (tz; testTZs)
{
foreach (year; chain(testYearsBC, testYearsAD))
{
foreach (md; testMonthDays)
{
foreach (hour; testHours)
{
foreach (minute; testMinSecs)
{
foreach (second; testMinSecs)
{
auto dt = DateTime(Date(year, md.month, md.day), TimeOfDay(hour, minute, second));
foreach (fs; testFracSecs)
test(SysTime(dt, fs, tz), hour);
}
}
}
}
}
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.hour == 12);
//assert(ist.hour == 12);
}
/++
Hours past midnight.
Params:
hour = The hours to set this $(LREF SysTime)'s hour to.
Throws:
$(REF DateTimeException,std,datetime,date) if the given hour are
not a valid hour of the day.
+/
@property void hour(int hour) @safe
{
enforceValid!"hours"(hour);
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs);
immutable daysHNSecs = convert!("days", "hnsecs")(days);
immutable negative = hnsecs < 0;
if (negative)
hnsecs += convert!("hours", "hnsecs")(24);
hnsecs = removeUnitsFromHNSecs!"hours"(hnsecs);
hnsecs += convert!("hours", "hnsecs")(hour);
if (negative)
hnsecs -= convert!("hours", "hnsecs")(24);
adjTime = daysHNSecs + hnsecs;
}
@safe unittest
{
import std.range : chain;
foreach (hour; chain(testHours))
{
foreach (st; chain(testSysTimesBC, testSysTimesAD))
{
auto dt = cast(DateTime) st;
auto expected = SysTime(DateTime(dt.year, dt.month, dt.day, hour, dt.minute, dt.second),
st.fracSecs,
st.timezone);
st.hour = hour;
assert(st == expected, format("[%s] [%s]", st, expected));
}
}
auto st = testSysTimesAD[0];
assertThrown!DateTimeException(st.hour = -1);
assertThrown!DateTimeException(st.hour = 60);
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.hour = 27));
//static assert(!__traits(compiles, ist.hour = 27));
}
/++
Minutes past the current hour.
+/
@property ubyte minute() @safe const nothrow
{
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
hnsecs = removeUnitsFromHNSecs!"hours"(hnsecs);
return cast(ubyte) getUnitsFromHNSecs!"minutes"(hnsecs);
}
@safe unittest
{
import std.range : chain;
static void test(SysTime sysTime, int expected)
{
assert(sysTime.minute == expected, format("Value given: %s", sysTime));
}
test(SysTime(0, UTC()), 0);
test(SysTime(1, UTC()), 0);
test(SysTime(-1, UTC()), 59);
foreach (tz; testTZs)
{
foreach (year; chain(testYearsBC, testYearsAD))
{
foreach (md; testMonthDays)
{
foreach (hour; testHours)
{
foreach (minute; testMinSecs)
{
foreach (second; testMinSecs)
{
auto dt = DateTime(Date(year, md.month, md.day), TimeOfDay(hour, minute, second));
foreach (fs; testFracSecs)
test(SysTime(dt, fs, tz), minute);
}
}
}
}
}
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.minute == 30);
//assert(ist.minute == 30);
}
/++
Minutes past the current hour.
Params:
minute = The minute to set this $(LREF SysTime)'s minute to.
Throws:
$(REF DateTimeException,std,datetime,date) if the given minute are
not a valid minute of an hour.
+/
@property void minute(int minute) @safe
{
enforceValid!"minutes"(minute);
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs);
immutable daysHNSecs = convert!("days", "hnsecs")(days);
immutable negative = hnsecs < 0;
if (negative)
hnsecs += convert!("hours", "hnsecs")(24);
immutable hour = splitUnitsFromHNSecs!"hours"(hnsecs);
hnsecs = removeUnitsFromHNSecs!"minutes"(hnsecs);
hnsecs += convert!("hours", "hnsecs")(hour);
hnsecs += convert!("minutes", "hnsecs")(minute);
if (negative)
hnsecs -= convert!("hours", "hnsecs")(24);
adjTime = daysHNSecs + hnsecs;
}
@safe unittest
{
import std.range : chain;
foreach (minute; testMinSecs)
{
foreach (st; chain(testSysTimesBC, testSysTimesAD))
{
auto dt = cast(DateTime) st;
auto expected = SysTime(DateTime(dt.year, dt.month, dt.day, dt.hour, minute, dt.second),
st.fracSecs,
st.timezone);
st.minute = minute;
assert(st == expected, format("[%s] [%s]", st, expected));
}
}
auto st = testSysTimesAD[0];
assertThrown!DateTimeException(st.minute = -1);
assertThrown!DateTimeException(st.minute = 60);
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.minute = 27));
//static assert(!__traits(compiles, ist.minute = 27));
}
/++
Seconds past the current minute.
+/
@property ubyte second() @safe const nothrow
{
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
hnsecs = removeUnitsFromHNSecs!"hours"(hnsecs);
hnsecs = removeUnitsFromHNSecs!"minutes"(hnsecs);
return cast(ubyte) getUnitsFromHNSecs!"seconds"(hnsecs);
}
@safe unittest
{
import std.range : chain;
static void test(SysTime sysTime, int expected)
{
assert(sysTime.second == expected, format("Value given: %s", sysTime));
}
test(SysTime(0, UTC()), 0);
test(SysTime(1, UTC()), 0);
test(SysTime(-1, UTC()), 59);
foreach (tz; testTZs)
{
foreach (year; chain(testYearsBC, testYearsAD))
{
foreach (md; testMonthDays)
{
foreach (hour; testHours)
{
foreach (minute; testMinSecs)
{
foreach (second; testMinSecs)
{
auto dt = DateTime(Date(year, md.month, md.day), TimeOfDay(hour, minute, second));
foreach (fs; testFracSecs)
test(SysTime(dt, fs, tz), second);
}
}
}
}
}
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.second == 33);
//assert(ist.second == 33);
}
/++
Seconds past the current minute.
Params:
second = The second to set this $(LREF SysTime)'s second to.
Throws:
$(REF DateTimeException,std,datetime,date) if the given second are
not a valid second of a minute.
+/
@property void second(int second) @safe
{
enforceValid!"seconds"(second);
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs);
immutable daysHNSecs = convert!("days", "hnsecs")(days);
immutable negative = hnsecs < 0;
if (negative)
hnsecs += convert!("hours", "hnsecs")(24);
immutable hour = splitUnitsFromHNSecs!"hours"(hnsecs);
immutable minute = splitUnitsFromHNSecs!"minutes"(hnsecs);
hnsecs = removeUnitsFromHNSecs!"seconds"(hnsecs);
hnsecs += convert!("hours", "hnsecs")(hour);
hnsecs += convert!("minutes", "hnsecs")(minute);
hnsecs += convert!("seconds", "hnsecs")(second);
if (negative)
hnsecs -= convert!("hours", "hnsecs")(24);
adjTime = daysHNSecs + hnsecs;
}
@safe unittest
{
import std.range : chain;
foreach (second; testMinSecs)
{
foreach (st; chain(testSysTimesBC, testSysTimesAD))
{
auto dt = cast(DateTime) st;
auto expected = SysTime(DateTime(dt.year, dt.month, dt.day, dt.hour, dt.minute, second),
st.fracSecs,
st.timezone);
st.second = second;
assert(st == expected, format("[%s] [%s]", st, expected));
}
}
auto st = testSysTimesAD[0];
assertThrown!DateTimeException(st.second = -1);
assertThrown!DateTimeException(st.second = 60);
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.seconds = 27));
//static assert(!__traits(compiles, ist.seconds = 27));
}
/++
Fractional seconds past the second (i.e. the portion of a
$(LREF SysTime) which is less than a second).
+/
@property Duration fracSecs() @safe const nothrow
{
auto hnsecs = removeUnitsFromHNSecs!"days"(adjTime);
if (hnsecs < 0)
hnsecs += convert!("hours", "hnsecs")(24);
return dur!"hnsecs"(removeUnitsFromHNSecs!"seconds"(hnsecs));
}
///
@safe unittest
{
import core.time : msecs, usecs, hnsecs, nsecs;
import std.datetime.date : DateTime;
auto dt = DateTime(1982, 4, 1, 20, 59, 22);
assert(SysTime(dt, msecs(213)).fracSecs == msecs(213));
assert(SysTime(dt, usecs(5202)).fracSecs == usecs(5202));
assert(SysTime(dt, hnsecs(1234567)).fracSecs == hnsecs(1234567));
// SysTime and Duration both have a precision of hnsecs (100 ns),
// so nsecs are going to be truncated.
assert(SysTime(dt, nsecs(123456789)).fracSecs == nsecs(123456700));
}
@safe unittest
{
import std.range : chain;
import core.time;
assert(SysTime(0, UTC()).fracSecs == Duration.zero);
assert(SysTime(1, UTC()).fracSecs == hnsecs(1));
assert(SysTime(-1, UTC()).fracSecs == hnsecs(9_999_999));
foreach (tz; testTZs)
{
foreach (year; chain(testYearsBC, testYearsAD))
{
foreach (md; testMonthDays)
{
foreach (hour; testHours)
{
foreach (minute; testMinSecs)
{
foreach (second; testMinSecs)
{
auto dt = DateTime(Date(year, md.month, md.day), TimeOfDay(hour, minute, second));
foreach (fs; testFracSecs)
assert(SysTime(dt, fs, tz).fracSecs == fs);
}
}
}
}
}
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.fracSecs == Duration.zero);
//assert(ist.fracSecs == Duration.zero);
}
/++
Fractional seconds past the second (i.e. the portion of a
$(LREF SysTime) which is less than a second).
Params:
fracSecs = The duration to set this $(LREF SysTime)'s fractional
seconds to.
Throws:
$(REF DateTimeException,std,datetime,date) if the given duration
is negative or if it's greater than or equal to one second.
+/
@property void fracSecs(Duration fracSecs) @safe
{
enforce(fracSecs >= Duration.zero, new DateTimeException("A SysTime cannot have negative fractional seconds."));
enforce(fracSecs < seconds(1), new DateTimeException("Fractional seconds must be less than one second."));
auto oldHNSecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(oldHNSecs);
immutable daysHNSecs = convert!("days", "hnsecs")(days);
immutable negative = oldHNSecs < 0;
if (negative)
oldHNSecs += convert!("hours", "hnsecs")(24);
immutable seconds = splitUnitsFromHNSecs!"seconds"(oldHNSecs);
immutable secondsHNSecs = convert!("seconds", "hnsecs")(seconds);
auto newHNSecs = fracSecs.total!"hnsecs" + secondsHNSecs;
if (negative)
newHNSecs -= convert!("hours", "hnsecs")(24);
adjTime = daysHNSecs + newHNSecs;
}
///
@safe unittest
{
import core.time : Duration, msecs, hnsecs, nsecs;
import std.datetime.date : DateTime;
auto st = SysTime(DateTime(1982, 4, 1, 20, 59, 22));
assert(st.fracSecs == Duration.zero);
st.fracSecs = msecs(213);
assert(st.fracSecs == msecs(213));
st.fracSecs = hnsecs(1234567);
assert(st.fracSecs == hnsecs(1234567));
// SysTime has a precision of hnsecs (100 ns), so nsecs are
// going to be truncated.
st.fracSecs = nsecs(123456789);
assert(st.fracSecs == hnsecs(1234567));
}
@safe unittest
{
import std.range : chain;
import core.time;
foreach (fracSec; testFracSecs)
{
foreach (st; chain(testSysTimesBC, testSysTimesAD))
{
auto dt = cast(DateTime) st;
auto expected = SysTime(dt, fracSec, st.timezone);
st.fracSecs = fracSec;
assert(st == expected, format("[%s] [%s]", st, expected));
}
}
auto st = testSysTimesAD[0];
assertThrown!DateTimeException(st.fracSecs = hnsecs(-1));
assertThrown!DateTimeException(st.fracSecs = seconds(1));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.fracSecs = msecs(7)));
//static assert(!__traits(compiles, ist.fracSecs = msecs(7)));
}
/++
The total hnsecs from midnight, January 1st, 1 A.D. UTC. This is the
internal representation of $(LREF SysTime).
+/
@property long stdTime() @safe const pure nothrow
{
return _stdTime;
}
@safe unittest
{
import core.time;
assert(SysTime(0).stdTime == 0);
assert(SysTime(1).stdTime == 1);
assert(SysTime(-1).stdTime == -1);
assert(SysTime(DateTime(1, 1, 1, 0, 0, 33), hnsecs(502), UTC()).stdTime == 330_000_502L);
assert(SysTime(DateTime(1970, 1, 1, 0, 0, 0), UTC()).stdTime == 621_355_968_000_000_000L);
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.stdTime > 0);
//assert(ist.stdTime > 0);
}
/++
The total hnsecs from midnight, January 1st, 1 A.D. UTC. This is the
internal representation of $(LREF SysTime).
Params:
stdTime = The number of hnsecs since January 1st, 1 A.D. UTC.
+/
@property void stdTime(long stdTime) @safe pure nothrow
{
_stdTime = stdTime;
}
@safe unittest
{
import core.time;
static void test(long stdTime, in SysTime expected, size_t line = __LINE__)
{
auto st = SysTime(0, UTC());
st.stdTime = stdTime;
assert(st == expected);
}
test(0, SysTime(Date(1, 1, 1), UTC()));
test(1, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1), UTC()));
test(-1, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999), UTC()));
test(330_000_502L, SysTime(DateTime(1, 1, 1, 0, 0, 33), hnsecs(502), UTC()));
test(621_355_968_000_000_000L, SysTime(DateTime(1970, 1, 1, 0, 0, 0), UTC()));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.stdTime = 27));
//static assert(!__traits(compiles, ist.stdTime = 27));
}
/++
The current time zone of this $(LREF SysTime). Its internal time is
always kept in UTC, so there are no conversion issues between time zones
due to DST. Functions which return all or part of the time - such as
hours - adjust the time to this $(LREF SysTime)'s time zone before
returning.
+/
@property immutable(TimeZone) timezone() @safe const pure nothrow
{
return _timezone;
}
/++
The current time zone of this $(LREF SysTime). It's internal time is
always kept in UTC, so there are no conversion issues between time zones
due to DST. Functions which return all or part of the time - such as
hours - adjust the time to this $(LREF SysTime)'s time zone before
returning.
Params:
timezone = The $(REF _TimeZone,std,datetime,_timezone) to set this
$(LREF SysTime)'s time zone to.
+/
@property void timezone(immutable TimeZone timezone) @safe pure nothrow
{
if (timezone is null)
_timezone = LocalTime();
else
_timezone = timezone;
}
/++
Returns whether DST is in effect for this $(LREF SysTime).
+/
@property bool dstInEffect() @safe const nothrow
{
return _timezone.dstInEffect(_stdTime);
// This function's unit testing is done in the time zone classes.
}
/++
Returns what the offset from UTC is for this $(LREF SysTime).
It includes the DST offset in effect at that time (if any).
+/
@property Duration utcOffset() @safe const nothrow
{
return _timezone.utcOffsetAt(_stdTime);
}
/++
Returns a $(LREF SysTime) with the same std time as this one, but with
$(REF LocalTime,std,datetime,timezone) as its time zone.
+/
SysTime toLocalTime() @safe const pure nothrow
{
return SysTime(_stdTime, LocalTime());
}
@safe unittest
{
import core.time;
{
auto sysTime = SysTime(DateTime(1982, 1, 4, 8, 59, 7), hnsecs(27));
assert(sysTime == sysTime.toLocalTime());
assert(sysTime._stdTime == sysTime.toLocalTime()._stdTime);
assert(sysTime.toLocalTime().timezone is LocalTime());
assert(sysTime.toLocalTime().timezone is sysTime.timezone);
assert(sysTime.toLocalTime().timezone !is UTC());
}
{
auto stz = new immutable SimpleTimeZone(dur!"minutes"(-3 * 60));
auto sysTime = SysTime(DateTime(1982, 1, 4, 8, 59, 7), hnsecs(27), stz);
assert(sysTime == sysTime.toLocalTime());
assert(sysTime._stdTime == sysTime.toLocalTime()._stdTime);
assert(sysTime.toLocalTime().timezone is LocalTime());
assert(sysTime.toLocalTime().timezone !is UTC());
assert(sysTime.toLocalTime().timezone !is stz);
}
}
/++
Returns a $(LREF SysTime) with the same std time as this one, but with
$(D UTC) as its time zone.
+/
SysTime toUTC() @safe const pure nothrow
{
return SysTime(_stdTime, UTC());
}
@safe unittest
{
import core.time;
auto sysTime = SysTime(DateTime(1982, 1, 4, 8, 59, 7), hnsecs(27));
assert(sysTime == sysTime.toUTC());
assert(sysTime._stdTime == sysTime.toUTC()._stdTime);
assert(sysTime.toUTC().timezone is UTC());
assert(sysTime.toUTC().timezone !is LocalTime());
assert(sysTime.toUTC().timezone !is sysTime.timezone);
}
/++
Returns a $(LREF SysTime) with the same std time as this one, but with
given time zone as its time zone.
+/
SysTime toOtherTZ(immutable TimeZone tz) @safe const pure nothrow
{
if (tz is null)
return SysTime(_stdTime, LocalTime());
else
return SysTime(_stdTime, tz);
}
@safe unittest
{
import core.time;
auto stz = new immutable SimpleTimeZone(dur!"minutes"(11 * 60));
auto sysTime = SysTime(DateTime(1982, 1, 4, 8, 59, 7), hnsecs(27));
assert(sysTime == sysTime.toOtherTZ(stz));
assert(sysTime._stdTime == sysTime.toOtherTZ(stz)._stdTime);
assert(sysTime.toOtherTZ(stz).timezone is stz);
assert(sysTime.toOtherTZ(stz).timezone !is LocalTime());
assert(sysTime.toOtherTZ(stz).timezone !is UTC());
}
/++
Converts this $(LREF SysTime) to unix time (i.e. seconds from midnight,
January 1st, 1970 in UTC).
The C standard does not specify the representation of time_t, so it is
implementation defined. On POSIX systems, unix time is equivalent to
time_t, but that's not necessarily true on other systems (e.g. it is
not true for the Digital Mars C runtime). So, be careful when using unix
time with C functions on non-POSIX systems.
By default, the return type is time_t (which is normally an alias for
int on 32-bit systems and long on 64-bit systems), but if a different
size is required than either int or long can be passed as a template
argument to get the desired size.
If the return type is int, and the result can't fit in an int, then the
closest value that can be held in 32 bits will be used (so $(D int.max)
if it goes over and $(D int.min) if it goes under). However, no attempt
is made to deal with integer overflow if the return type is long.
Params:
T = The return type (int or long). It defaults to time_t, which is
normally 32 bits on a 32-bit system and 64 bits on a 64-bit
system.
Returns:
A signed integer representing the unix time which is equivalent to
this SysTime.
+/
T toUnixTime(T = time_t)() @safe const pure nothrow
if (is(T == int) || is(T == long))
{
return stdTimeToUnixTime!T(_stdTime);
}
///
@safe unittest
{
import core.time : hours;
import std.datetime.date : DateTime;
import std.datetime.timezone : SimpleTimeZone, UTC;
assert(SysTime(DateTime(1970, 1, 1), UTC()).toUnixTime() == 0);
auto pst = new immutable SimpleTimeZone(hours(-8));
assert(SysTime(DateTime(1970, 1, 1), pst).toUnixTime() == 28800);
auto utc = SysTime(DateTime(2007, 12, 22, 8, 14, 45), UTC());
assert(utc.toUnixTime() == 1_198_311_285);
auto ca = SysTime(DateTime(2007, 12, 22, 8, 14, 45), pst);
assert(ca.toUnixTime() == 1_198_340_085);
}
@safe unittest
{
import std.meta : AliasSeq;
import core.time;
assert(SysTime(DateTime(1970, 1, 1), UTC()).toUnixTime() == 0);
static foreach (units; ["hnsecs", "usecs", "msecs"])
assert(SysTime(DateTime(1970, 1, 1, 0, 0, 0), dur!units(1), UTC()).toUnixTime() == 0);
assert(SysTime(DateTime(1970, 1, 1, 0, 0, 1), UTC()).toUnixTime() == 1);
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), hnsecs(9_999_999), UTC()).toUnixTime() == 0);
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), usecs(999_999), UTC()).toUnixTime() == 0);
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), msecs(999), UTC()).toUnixTime() == 0);
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), UTC()).toUnixTime() == -1);
}
/++
Converts from unix time (i.e. seconds from midnight, January 1st, 1970
in UTC) to a $(LREF SysTime).
The C standard does not specify the representation of time_t, so it is
implementation defined. On POSIX systems, unix time is equivalent to
time_t, but that's not necessarily true on other systems (e.g. it is
not true for the Digital Mars C runtime). So, be careful when using unix
time with C functions on non-POSIX systems.
Params:
unixTime = Seconds from midnight, January 1st, 1970 in UTC.
tz = The time zone for the SysTime that's returned.
+/
static SysTime fromUnixTime(long unixTime, immutable TimeZone tz = LocalTime()) @safe pure nothrow
{
return SysTime(unixTimeToStdTime(unixTime), tz);
}
///
@safe unittest
{
import core.time : hours;
import std.datetime.date : DateTime;
import std.datetime.timezone : SimpleTimeZone, UTC;
assert(SysTime.fromUnixTime(0) ==
SysTime(DateTime(1970, 1, 1), UTC()));
auto pst = new immutable SimpleTimeZone(hours(-8));
assert(SysTime.fromUnixTime(28800) ==
SysTime(DateTime(1970, 1, 1), pst));
auto st1 = SysTime.fromUnixTime(1_198_311_285, UTC());
assert(st1 == SysTime(DateTime(2007, 12, 22, 8, 14, 45), UTC()));
assert(st1.timezone is UTC());
assert(st1 == SysTime(DateTime(2007, 12, 22, 0, 14, 45), pst));
auto st2 = SysTime.fromUnixTime(1_198_311_285, pst);
assert(st2 == SysTime(DateTime(2007, 12, 22, 8, 14, 45), UTC()));
assert(st2.timezone is pst);
assert(st2 == SysTime(DateTime(2007, 12, 22, 0, 14, 45), pst));
}
@safe unittest
{
import core.time;
assert(SysTime.fromUnixTime(0) == SysTime(DateTime(1970, 1, 1), UTC()));
assert(SysTime.fromUnixTime(1) == SysTime(DateTime(1970, 1, 1, 0, 0, 1), UTC()));
assert(SysTime.fromUnixTime(-1) == SysTime(DateTime(1969, 12, 31, 23, 59, 59), UTC()));
auto st = SysTime.fromUnixTime(0);
auto dt = cast(DateTime) st;
assert(dt <= DateTime(1970, 2, 1) && dt >= DateTime(1969, 12, 31));
assert(st.timezone is LocalTime());
auto aest = new immutable SimpleTimeZone(hours(10));
assert(SysTime.fromUnixTime(-36000) == SysTime(DateTime(1970, 1, 1), aest));
}
/++
Returns a $(D timeval) which represents this $(LREF SysTime).
Note that like all conversions in std.datetime, this is a truncating
conversion.
If $(D timeval.tv_sec) is int, and the result can't fit in an int, then
the closest value that can be held in 32 bits will be used for
$(D tv_sec). (so $(D int.max) if it goes over and $(D int.min) if it
goes under).
+/
timeval toTimeVal() @safe const pure nothrow
{
immutable tv_sec = toUnixTime!(typeof(timeval.tv_sec))();
immutable fracHNSecs = removeUnitsFromHNSecs!"seconds"(_stdTime - 621_355_968_000_000_000L);
immutable tv_usec = cast(typeof(timeval.tv_usec))convert!("hnsecs", "usecs")(fracHNSecs);
return timeval(tv_sec, tv_usec);
}
@safe unittest
{
import core.time;
assert(SysTime(DateTime(1970, 1, 1), UTC()).toTimeVal() == timeval(0, 0));
assert(SysTime(DateTime(1970, 1, 1), hnsecs(9), UTC()).toTimeVal() == timeval(0, 0));
assert(SysTime(DateTime(1970, 1, 1), hnsecs(10), UTC()).toTimeVal() == timeval(0, 1));
assert(SysTime(DateTime(1970, 1, 1), usecs(7), UTC()).toTimeVal() == timeval(0, 7));
assert(SysTime(DateTime(1970, 1, 1, 0, 0, 1), UTC()).toTimeVal() == timeval(1, 0));
assert(SysTime(DateTime(1970, 1, 1, 0, 0, 1), hnsecs(9), UTC()).toTimeVal() == timeval(1, 0));
assert(SysTime(DateTime(1970, 1, 1, 0, 0, 1), hnsecs(10), UTC()).toTimeVal() == timeval(1, 1));
assert(SysTime(DateTime(1970, 1, 1, 0, 0, 1), usecs(7), UTC()).toTimeVal() == timeval(1, 7));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), hnsecs(9_999_999), UTC()).toTimeVal() == timeval(0, 0));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), hnsecs(9_999_990), UTC()).toTimeVal() == timeval(0, -1));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), usecs(999_999), UTC()).toTimeVal() == timeval(0, -1));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), usecs(999), UTC()).toTimeVal() == timeval(0, -999_001));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), msecs(999), UTC()).toTimeVal() == timeval(0, -1000));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), UTC()).toTimeVal() == timeval(-1, 0));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 58), usecs(17), UTC()).toTimeVal() == timeval(-1, -999_983));
}
version(StdDdoc)
{
private struct timespec {}
/++
Returns a $(D timespec) which represents this $(LREF SysTime).
$(BLUE This function is Posix-Only.)
+/
timespec toTimeSpec() @safe const pure nothrow;
}
else version(Posix)
{
timespec toTimeSpec() @safe const pure nothrow
{
immutable tv_sec = toUnixTime!(typeof(timespec.tv_sec))();
immutable fracHNSecs = removeUnitsFromHNSecs!"seconds"(_stdTime - 621_355_968_000_000_000L);
immutable tv_nsec = cast(typeof(timespec.tv_nsec))convert!("hnsecs", "nsecs")(fracHNSecs);
return timespec(tv_sec, tv_nsec);
}
@safe unittest
{
import core.time;
assert(SysTime(DateTime(1970, 1, 1), UTC()).toTimeSpec() == timespec(0, 0));
assert(SysTime(DateTime(1970, 1, 1), hnsecs(9), UTC()).toTimeSpec() == timespec(0, 900));
assert(SysTime(DateTime(1970, 1, 1), hnsecs(10), UTC()).toTimeSpec() == timespec(0, 1000));
assert(SysTime(DateTime(1970, 1, 1), usecs(7), UTC()).toTimeSpec() == timespec(0, 7000));
assert(SysTime(DateTime(1970, 1, 1, 0, 0, 1), UTC()).toTimeSpec() == timespec(1, 0));
assert(SysTime(DateTime(1970, 1, 1, 0, 0, 1), hnsecs(9), UTC()).toTimeSpec() == timespec(1, 900));
assert(SysTime(DateTime(1970, 1, 1, 0, 0, 1), hnsecs(10), UTC()).toTimeSpec() == timespec(1, 1000));
assert(SysTime(DateTime(1970, 1, 1, 0, 0, 1), usecs(7), UTC()).toTimeSpec() == timespec(1, 7000));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), hnsecs(9_999_999), UTC()).toTimeSpec() ==
timespec(0, -100));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), hnsecs(9_999_990), UTC()).toTimeSpec() ==
timespec(0, -1000));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), usecs(999_999), UTC()).toTimeSpec() ==
timespec(0, -1_000));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), usecs(999), UTC()).toTimeSpec() ==
timespec(0, -999_001_000));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), msecs(999), UTC()).toTimeSpec() ==
timespec(0, -1_000_000));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), UTC()).toTimeSpec() ==
timespec(-1, 0));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 58), usecs(17), UTC()).toTimeSpec() ==
timespec(-1, -999_983_000));
}
}
/++
Returns a $(D tm) which represents this $(LREF SysTime).
+/
tm toTM() @safe const nothrow
{
auto dateTime = cast(DateTime) this;
tm timeInfo;
timeInfo.tm_sec = dateTime.second;
timeInfo.tm_min = dateTime.minute;
timeInfo.tm_hour = dateTime.hour;
timeInfo.tm_mday = dateTime.day;
timeInfo.tm_mon = dateTime.month - 1;
timeInfo.tm_year = dateTime.year - 1900;
timeInfo.tm_wday = dateTime.dayOfWeek;
timeInfo.tm_yday = dateTime.dayOfYear - 1;
timeInfo.tm_isdst = _timezone.dstInEffect(_stdTime);
version(Posix)
{
import std.utf : toUTFz;
timeInfo.tm_gmtoff = cast(int) convert!("hnsecs", "seconds")(adjTime - _stdTime);
auto zone = (timeInfo.tm_isdst ? _timezone.dstName : _timezone.stdName);
timeInfo.tm_zone = zone.toUTFz!(char*)();
}
return timeInfo;
}
@system unittest
{
import std.conv : to;
import core.time;
version(Posix)
{
import std.datetime.timezone : clearTZEnvVar, setTZEnvVar;
setTZEnvVar("America/Los_Angeles");
scope(exit) clearTZEnvVar();
}
{
auto timeInfo = SysTime(DateTime(1970, 1, 1)).toTM();
assert(timeInfo.tm_sec == 0);
assert(timeInfo.tm_min == 0);
assert(timeInfo.tm_hour == 0);
assert(timeInfo.tm_mday == 1);
assert(timeInfo.tm_mon == 0);
assert(timeInfo.tm_year == 70);
assert(timeInfo.tm_wday == 4);
assert(timeInfo.tm_yday == 0);
version(Posix)
assert(timeInfo.tm_isdst == 0);
else version(Windows)
assert(timeInfo.tm_isdst == 0 || timeInfo.tm_isdst == 1);
version(Posix)
{
assert(timeInfo.tm_gmtoff == -8 * 60 * 60);
assert(to!string(timeInfo.tm_zone) == "PST");
}
}
{
auto timeInfo = SysTime(DateTime(2010, 7, 4, 12, 15, 7), hnsecs(15)).toTM();
assert(timeInfo.tm_sec == 7);
assert(timeInfo.tm_min == 15);
assert(timeInfo.tm_hour == 12);
assert(timeInfo.tm_mday == 4);
assert(timeInfo.tm_mon == 6);
assert(timeInfo.tm_year == 110);
assert(timeInfo.tm_wday == 0);
assert(timeInfo.tm_yday == 184);
version(Posix)
assert(timeInfo.tm_isdst == 1);
else version(Windows)
assert(timeInfo.tm_isdst == 0 || timeInfo.tm_isdst == 1);
version(Posix)
{
assert(timeInfo.tm_gmtoff == -7 * 60 * 60);
assert(to!string(timeInfo.tm_zone) == "PDT");
}
}
}
/++
Adds the given number of years or months to this $(LREF SysTime). A
negative number will subtract.
Note that if day overflow is allowed, and the date with the adjusted
year/month overflows the number of days in the new month, then the month
will be incremented by one, and the day set to the number of days
overflowed. (e.g. if the day were 31 and the new month were June, then
the month would be incremented to July, and the new day would be 1). If
day overflow is not allowed, then the day will be set to the last valid
day in the month (e.g. June 31st would become June 30th).
Params:
units = The type of units to add ("years" or "months").
value = The number of months or years to add to this
$(LREF SysTime).
allowOverflow = Whether the days should be allowed to overflow,
causing the month to increment.
+/
ref SysTime add(string units)(long value, AllowDayOverflow allowOverflow = AllowDayOverflow.yes) @safe nothrow
if (units == "years" || units == "months")
{
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
auto date = Date(cast(int) days);
date.add!units(value, allowOverflow);
days = date.dayOfGregorianCal - 1;
if (days < 0)
{
hnsecs -= convert!("hours", "hnsecs")(24);
++days;
}
immutable newDaysHNSecs = convert!("days", "hnsecs")(days);
adjTime = newDaysHNSecs + hnsecs;
return this;
}
@safe unittest
{
auto st1 = SysTime(DateTime(2010, 1, 1, 12, 30, 33));
st1.add!"months"(11);
assert(st1 == SysTime(DateTime(2010, 12, 1, 12, 30, 33)));
auto st2 = SysTime(DateTime(2010, 1, 1, 12, 30, 33));
st2.add!"months"(-11);
assert(st2 == SysTime(DateTime(2009, 2, 1, 12, 30, 33)));
auto st3 = SysTime(DateTime(2000, 2, 29, 12, 30, 33));
st3.add!"years"(1);
assert(st3 == SysTime(DateTime(2001, 3, 1, 12, 30, 33)));
auto st4 = SysTime(DateTime(2000, 2, 29, 12, 30, 33));
st4.add!"years"(1, AllowDayOverflow.no);
assert(st4 == SysTime(DateTime(2001, 2, 28, 12, 30, 33)));
}
// Test add!"years"() with AllowDayOverflow.yes
@safe unittest
{
import core.time;
// Test A.D.
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.add!"years"(7);
assert(sysTime == SysTime(Date(2006, 7, 6)));
sysTime.add!"years"(-9);
assert(sysTime == SysTime(Date(1997, 7, 6)));
}
{
auto sysTime = SysTime(Date(1999, 2, 28));
sysTime.add!"years"(1);
assert(sysTime == SysTime(Date(2000, 2, 28)));
}
{
auto sysTime = SysTime(Date(2000, 2, 29));
sysTime.add!"years"(-1);
assert(sysTime == SysTime(Date(1999, 3, 1)));
}
{
auto sysTime = SysTime(DateTime(1999, 7, 6, 12, 7, 3), msecs(234));
sysTime.add!"years"(7);
assert(sysTime == SysTime(DateTime(2006, 7, 6, 12, 7, 3), msecs(234)));
sysTime.add!"years"(-9);
assert(sysTime == SysTime(DateTime(1997, 7, 6, 12, 7, 3), msecs(234)));
}
{
auto sysTime = SysTime(DateTime(1999, 2, 28, 0, 7, 2), usecs(1207));
sysTime.add!"years"(1);
assert(sysTime == SysTime(DateTime(2000, 2, 28, 0, 7, 2), usecs(1207)));
}
{
auto sysTime = SysTime(DateTime(2000, 2, 29, 0, 7, 2), usecs(1207));
sysTime.add!"years"(-1);
assert(sysTime == SysTime(DateTime(1999, 3, 1, 0, 7, 2), usecs(1207)));
}
// Test B.C.
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.add!"years"(-7);
assert(sysTime == SysTime(Date(-2006, 7, 6)));
sysTime.add!"years"(9);
assert(sysTime == SysTime(Date(-1997, 7, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 2, 28));
sysTime.add!"years"(-1);
assert(sysTime == SysTime(Date(-2000, 2, 28)));
}
{
auto sysTime = SysTime(Date(-2000, 2, 29));
sysTime.add!"years"(1);
assert(sysTime == SysTime(Date(-1999, 3, 1)));
}
{
auto sysTime = SysTime(DateTime(-1999, 7, 6, 12, 7, 3), msecs(234));
sysTime.add!"years"(-7);
assert(sysTime == SysTime(DateTime(-2006, 7, 6, 12, 7, 3), msecs(234)));
sysTime.add!"years"(9);
assert(sysTime == SysTime(DateTime(-1997, 7, 6, 12, 7, 3), msecs(234)));
}
{
auto sysTime = SysTime(DateTime(-1999, 2, 28, 3, 3, 3), hnsecs(3));
sysTime.add!"years"(-1);
assert(sysTime == SysTime(DateTime(-2000, 2, 28, 3, 3, 3), hnsecs(3)));
}
{
auto sysTime = SysTime(DateTime(-2000, 2, 29, 3, 3, 3), hnsecs(3));
sysTime.add!"years"(1);
assert(sysTime == SysTime(DateTime(-1999, 3, 1, 3, 3, 3), hnsecs(3)));
}
// Test Both
{
auto sysTime = SysTime(Date(4, 7, 6));
sysTime.add!"years"(-5);
assert(sysTime == SysTime(Date(-1, 7, 6)));
sysTime.add!"years"(5);
assert(sysTime == SysTime(Date(4, 7, 6)));
}
{
auto sysTime = SysTime(Date(-4, 7, 6));
sysTime.add!"years"(5);
assert(sysTime == SysTime(Date(1, 7, 6)));
sysTime.add!"years"(-5);
assert(sysTime == SysTime(Date(-4, 7, 6)));
}
{
auto sysTime = SysTime(Date(4, 7, 6));
sysTime.add!"years"(-8);
assert(sysTime == SysTime(Date(-4, 7, 6)));
sysTime.add!"years"(8);
assert(sysTime == SysTime(Date(4, 7, 6)));
}
{
auto sysTime = SysTime(Date(-4, 7, 6));
sysTime.add!"years"(8);
assert(sysTime == SysTime(Date(4, 7, 6)));
sysTime.add!"years"(-8);
assert(sysTime == SysTime(Date(-4, 7, 6)));
}
{
auto sysTime = SysTime(Date(-4, 2, 29));
sysTime.add!"years"(5);
assert(sysTime == SysTime(Date(1, 3, 1)));
}
{
auto sysTime = SysTime(Date(4, 2, 29));
sysTime.add!"years"(-5);
assert(sysTime == SysTime(Date(-1, 3, 1)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 0, 0));
sysTime.add!"years"(-1);
assert(sysTime == SysTime(DateTime(0, 1, 1, 0, 0, 0)));
sysTime.add!"years"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.add!"years"(-1);
assert(sysTime == SysTime(DateTime(0, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.add!"years"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 1, 1, 0, 0, 0));
sysTime.add!"years"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
sysTime.add!"years"(-1);
assert(sysTime == SysTime(DateTime(0, 1, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(0, 1, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.add!"years"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.add!"years"(-1);
assert(sysTime == SysTime(DateTime(0, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(4, 7, 6, 14, 7, 1), usecs(54329));
sysTime.add!"years"(-5);
assert(sysTime == SysTime(DateTime(-1, 7, 6, 14, 7, 1), usecs(54329)));
sysTime.add!"years"(5);
assert(sysTime == SysTime(DateTime(4, 7, 6, 14, 7, 1), usecs(54329)));
}
{
auto sysTime = SysTime(DateTime(-4, 7, 6, 14, 7, 1), usecs(54329));
sysTime.add!"years"(5);
assert(sysTime == SysTime(DateTime(1, 7, 6, 14, 7, 1), usecs(54329)));
sysTime.add!"years"(-5);
assert(sysTime == SysTime(DateTime(-4, 7, 6, 14, 7, 1), usecs(54329)));
}
{
auto sysTime = SysTime(DateTime(-4, 2, 29, 5, 5, 5), msecs(555));
sysTime.add!"years"(5);
assert(sysTime == SysTime(DateTime(1, 3, 1, 5, 5, 5), msecs(555)));
}
{
auto sysTime = SysTime(DateTime(4, 2, 29, 5, 5, 5), msecs(555));
sysTime.add!"years"(-5);
assert(sysTime == SysTime(DateTime(-1, 3, 1, 5, 5, 5), msecs(555)));
}
{
auto sysTime = SysTime(DateTime(4, 2, 29, 5, 5, 5), msecs(555));
sysTime.add!"years"(-5).add!"years"(7);
assert(sysTime == SysTime(DateTime(6, 3, 1, 5, 5, 5), msecs(555)));
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.add!"years"(4)));
//static assert(!__traits(compiles, ist.add!"years"(4)));
}
// Test add!"years"() with AllowDayOverflow.no
@safe unittest
{
import core.time;
// Test A.D.
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.add!"years"(7, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(2006, 7, 6)));
sysTime.add!"years"(-9, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1997, 7, 6)));
}
{
auto sysTime = SysTime(Date(1999, 2, 28));
sysTime.add!"years"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(2000, 2, 28)));
}
{
auto sysTime = SysTime(Date(2000, 2, 29));
sysTime.add!"years"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 2, 28)));
}
{
auto sysTime = SysTime(DateTime(1999, 7, 6, 12, 7, 3), msecs(234));
sysTime.add!"years"(7, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(2006, 7, 6, 12, 7, 3), msecs(234)));
sysTime.add!"years"(-9, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1997, 7, 6, 12, 7, 3), msecs(234)));
}
{
auto sysTime = SysTime(DateTime(1999, 2, 28, 0, 7, 2), usecs(1207));
sysTime.add!"years"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(2000, 2, 28, 0, 7, 2), usecs(1207)));
}
{
auto sysTime = SysTime(DateTime(2000, 2, 29, 0, 7, 2), usecs(1207));
sysTime.add!"years"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1999, 2, 28, 0, 7, 2), usecs(1207)));
}
// Test B.C.
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.add!"years"(-7, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2006, 7, 6)));
sysTime.add!"years"(9, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1997, 7, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 2, 28));
sysTime.add!"years"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2000, 2, 28)));
}
{
auto sysTime = SysTime(Date(-2000, 2, 29));
sysTime.add!"years"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 2, 28)));
}
{
auto sysTime = SysTime(DateTime(-1999, 7, 6, 12, 7, 3), msecs(234));
sysTime.add!"years"(-7, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-2006, 7, 6, 12, 7, 3), msecs(234)));
sysTime.add!"years"(9, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-1997, 7, 6, 12, 7, 3), msecs(234)));
}
{
auto sysTime = SysTime(DateTime(-1999, 2, 28, 3, 3, 3), hnsecs(3));
sysTime.add!"years"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-2000, 2, 28, 3, 3, 3), hnsecs(3)));
}
{
auto sysTime = SysTime(DateTime(-2000, 2, 29, 3, 3, 3), hnsecs(3));
sysTime.add!"years"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-1999, 2, 28, 3, 3, 3), hnsecs(3)));
}
// Test Both
{
auto sysTime = SysTime(Date(4, 7, 6));
sysTime.add!"years"(-5, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1, 7, 6)));
sysTime.add!"years"(5, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(4, 7, 6)));
}
{
auto sysTime = SysTime(Date(-4, 7, 6));
sysTime.add!"years"(5, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1, 7, 6)));
sysTime.add!"years"(-5, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-4, 7, 6)));
}
{
auto sysTime = SysTime(Date(4, 7, 6));
sysTime.add!"years"(-8, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-4, 7, 6)));
sysTime.add!"years"(8, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(4, 7, 6)));
}
{
auto sysTime = SysTime(Date(-4, 7, 6));
sysTime.add!"years"(8, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(4, 7, 6)));
sysTime.add!"years"(-8, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-4, 7, 6)));
}
{
auto sysTime = SysTime(Date(-4, 2, 29));
sysTime.add!"years"(5, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1, 2, 28)));
}
{
auto sysTime = SysTime(Date(4, 2, 29));
sysTime.add!"years"(-5, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1, 2, 28)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 0, 0));
sysTime.add!"years"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 1, 1, 0, 0, 0)));
sysTime.add!"years"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.add!"years"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.add!"years"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 1, 1, 0, 0, 0));
sysTime.add!"years"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
sysTime.add!"years"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 1, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(0, 1, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.add!"years"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.add!"years"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(4, 7, 6, 14, 7, 1), usecs(54329));
sysTime.add!"years"(-5);
assert(sysTime == SysTime(DateTime(-1, 7, 6, 14, 7, 1), usecs(54329)));
sysTime.add!"years"(5);
assert(sysTime == SysTime(DateTime(4, 7, 6, 14, 7, 1), usecs(54329)));
}
{
auto sysTime = SysTime(DateTime(4, 7, 6, 14, 7, 1), usecs(54329));
sysTime.add!"years"(-5, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-1, 7, 6, 14, 7, 1), usecs(54329)));
sysTime.add!"years"(5, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(4, 7, 6, 14, 7, 1), usecs(54329)));
}
{
auto sysTime = SysTime(DateTime(-4, 7, 6, 14, 7, 1), usecs(54329));
sysTime.add!"years"(5, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 7, 6, 14, 7, 1), usecs(54329)));
sysTime.add!"years"(-5, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-4, 7, 6, 14, 7, 1), usecs(54329)));
}
{
auto sysTime = SysTime(DateTime(-4, 2, 29, 5, 5, 5), msecs(555));
sysTime.add!"years"(5, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 2, 28, 5, 5, 5), msecs(555)));
}
{
auto sysTime = SysTime(DateTime(4, 2, 29, 5, 5, 5), msecs(555));
sysTime.add!"years"(-5, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-1, 2, 28, 5, 5, 5), msecs(555)));
}
{
auto sysTime = SysTime(DateTime(4, 2, 29, 5, 5, 5), msecs(555));
sysTime.add!"years"(-5, AllowDayOverflow.no).add!"years"(7, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(6, 2, 28, 5, 5, 5), msecs(555)));
}
}
// Test add!"months"() with AllowDayOverflow.yes
@safe unittest
{
import core.time;
// Test A.D.
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.add!"months"(3);
assert(sysTime == SysTime(Date(1999, 10, 6)));
sysTime.add!"months"(-4);
assert(sysTime == SysTime(Date(1999, 6, 6)));
}
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.add!"months"(6);
assert(sysTime == SysTime(Date(2000, 1, 6)));
sysTime.add!"months"(-6);
assert(sysTime == SysTime(Date(1999, 7, 6)));
}
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.add!"months"(27);
assert(sysTime == SysTime(Date(2001, 10, 6)));
sysTime.add!"months"(-28);
assert(sysTime == SysTime(Date(1999, 6, 6)));
}
{
auto sysTime = SysTime(Date(1999, 5, 31));
sysTime.add!"months"(1);
assert(sysTime == SysTime(Date(1999, 7, 1)));
}
{
auto sysTime = SysTime(Date(1999, 5, 31));
sysTime.add!"months"(-1);
assert(sysTime == SysTime(Date(1999, 5, 1)));
}
{
auto sysTime = SysTime(Date(1999, 2, 28));
sysTime.add!"months"(12);
assert(sysTime == SysTime(Date(2000, 2, 28)));
}
{
auto sysTime = SysTime(Date(2000, 2, 29));
sysTime.add!"months"(12);
assert(sysTime == SysTime(Date(2001, 3, 1)));
}
{
auto sysTime = SysTime(Date(1999, 7, 31));
sysTime.add!"months"(1);
assert(sysTime == SysTime(Date(1999, 8, 31)));
sysTime.add!"months"(1);
assert(sysTime == SysTime(Date(1999, 10, 1)));
}
{
auto sysTime = SysTime(Date(1998, 8, 31));
sysTime.add!"months"(13);
assert(sysTime == SysTime(Date(1999, 10, 1)));
sysTime.add!"months"(-13);
assert(sysTime == SysTime(Date(1998, 9, 1)));
}
{
auto sysTime = SysTime(Date(1997, 12, 31));
sysTime.add!"months"(13);
assert(sysTime == SysTime(Date(1999, 1, 31)));
sysTime.add!"months"(-13);
assert(sysTime == SysTime(Date(1997, 12, 31)));
}
{
auto sysTime = SysTime(Date(1997, 12, 31));
sysTime.add!"months"(14);
assert(sysTime == SysTime(Date(1999, 3, 3)));
sysTime.add!"months"(-14);
assert(sysTime == SysTime(Date(1998, 1, 3)));
}
{
auto sysTime = SysTime(Date(1998, 12, 31));
sysTime.add!"months"(14);
assert(sysTime == SysTime(Date(2000, 3, 2)));
sysTime.add!"months"(-14);
assert(sysTime == SysTime(Date(1999, 1, 2)));
}
{
auto sysTime = SysTime(Date(1999, 12, 31));
sysTime.add!"months"(14);
assert(sysTime == SysTime(Date(2001, 3, 3)));
sysTime.add!"months"(-14);
assert(sysTime == SysTime(Date(2000, 1, 3)));
}
{
auto sysTime = SysTime(DateTime(1999, 7, 6, 12, 2, 7), usecs(5007));
sysTime.add!"months"(3);
assert(sysTime == SysTime(DateTime(1999, 10, 6, 12, 2, 7), usecs(5007)));
sysTime.add!"months"(-4);
assert(sysTime == SysTime(DateTime(1999, 6, 6, 12, 2, 7), usecs(5007)));
}
{
auto sysTime = SysTime(DateTime(1998, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.add!"months"(14);
assert(sysTime == SysTime(DateTime(2000, 3, 2, 7, 7, 7), hnsecs(422202)));
sysTime.add!"months"(-14);
assert(sysTime == SysTime(DateTime(1999, 1, 2, 7, 7, 7), hnsecs(422202)));
}
{
auto sysTime = SysTime(DateTime(1999, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.add!"months"(14);
assert(sysTime == SysTime(DateTime(2001, 3, 3, 7, 7, 7), hnsecs(422202)));
sysTime.add!"months"(-14);
assert(sysTime == SysTime(DateTime(2000, 1, 3, 7, 7, 7), hnsecs(422202)));
}
// Test B.C.
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.add!"months"(3);
assert(sysTime == SysTime(Date(-1999, 10, 6)));
sysTime.add!"months"(-4);
assert(sysTime == SysTime(Date(-1999, 6, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.add!"months"(6);
assert(sysTime == SysTime(Date(-1998, 1, 6)));
sysTime.add!"months"(-6);
assert(sysTime == SysTime(Date(-1999, 7, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.add!"months"(-27);
assert(sysTime == SysTime(Date(-2001, 4, 6)));
sysTime.add!"months"(28);
assert(sysTime == SysTime(Date(-1999, 8, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 5, 31));
sysTime.add!"months"(1);
assert(sysTime == SysTime(Date(-1999, 7, 1)));
}
{
auto sysTime = SysTime(Date(-1999, 5, 31));
sysTime.add!"months"(-1);
assert(sysTime == SysTime(Date(-1999, 5, 1)));
}
{
auto sysTime = SysTime(Date(-1999, 2, 28));
sysTime.add!"months"(-12);
assert(sysTime == SysTime(Date(-2000, 2, 28)));
}
{
auto sysTime = SysTime(Date(-2000, 2, 29));
sysTime.add!"months"(-12);
assert(sysTime == SysTime(Date(-2001, 3, 1)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 31));
sysTime.add!"months"(1);
assert(sysTime == SysTime(Date(-1999, 8, 31)));
sysTime.add!"months"(1);
assert(sysTime == SysTime(Date(-1999, 10, 1)));
}
{
auto sysTime = SysTime(Date(-1998, 8, 31));
sysTime.add!"months"(13);
assert(sysTime == SysTime(Date(-1997, 10, 1)));
sysTime.add!"months"(-13);
assert(sysTime == SysTime(Date(-1998, 9, 1)));
}
{
auto sysTime = SysTime(Date(-1997, 12, 31));
sysTime.add!"months"(13);
assert(sysTime == SysTime(Date(-1995, 1, 31)));
sysTime.add!"months"(-13);
assert(sysTime == SysTime(Date(-1997, 12, 31)));
}
{
auto sysTime = SysTime(Date(-1997, 12, 31));
sysTime.add!"months"(14);
assert(sysTime == SysTime(Date(-1995, 3, 3)));
sysTime.add!"months"(-14);
assert(sysTime == SysTime(Date(-1996, 1, 3)));
}
{
auto sysTime = SysTime(Date(-2002, 12, 31));
sysTime.add!"months"(14);
assert(sysTime == SysTime(Date(-2000, 3, 2)));
sysTime.add!"months"(-14);
assert(sysTime == SysTime(Date(-2001, 1, 2)));
}
{
auto sysTime = SysTime(Date(-2001, 12, 31));
sysTime.add!"months"(14);
assert(sysTime == SysTime(Date(-1999, 3, 3)));
sysTime.add!"months"(-14);
assert(sysTime == SysTime(Date(-2000, 1, 3)));
}
{
auto sysTime = SysTime(DateTime(-1999, 7, 6, 12, 2, 7), usecs(5007));
sysTime.add!"months"(3);
assert(sysTime == SysTime(DateTime(-1999, 10, 6, 12, 2, 7), usecs(5007)));
sysTime.add!"months"(-4);
assert(sysTime == SysTime(DateTime(-1999, 6, 6, 12, 2, 7), usecs(5007)));
}
{
auto sysTime = SysTime(DateTime(-2002, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.add!"months"(14);
assert(sysTime == SysTime(DateTime(-2000, 3, 2, 7, 7, 7), hnsecs(422202)));
sysTime.add!"months"(-14);
assert(sysTime == SysTime(DateTime(-2001, 1, 2, 7, 7, 7), hnsecs(422202)));
}
{
auto sysTime = SysTime(DateTime(-2001, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.add!"months"(14);
assert(sysTime == SysTime(DateTime(-1999, 3, 3, 7, 7, 7), hnsecs(422202)));
sysTime.add!"months"(-14);
assert(sysTime == SysTime(DateTime(-2000, 1, 3, 7, 7, 7), hnsecs(422202)));
}
// Test Both
{
auto sysTime = SysTime(Date(1, 1, 1));
sysTime.add!"months"(-1);
assert(sysTime == SysTime(Date(0, 12, 1)));
sysTime.add!"months"(1);
assert(sysTime == SysTime(Date(1, 1, 1)));
}
{
auto sysTime = SysTime(Date(4, 1, 1));
sysTime.add!"months"(-48);
assert(sysTime == SysTime(Date(0, 1, 1)));
sysTime.add!"months"(48);
assert(sysTime == SysTime(Date(4, 1, 1)));
}
{
auto sysTime = SysTime(Date(4, 3, 31));
sysTime.add!"months"(-49);
assert(sysTime == SysTime(Date(0, 3, 2)));
sysTime.add!"months"(49);
assert(sysTime == SysTime(Date(4, 4, 2)));
}
{
auto sysTime = SysTime(Date(4, 3, 31));
sysTime.add!"months"(-85);
assert(sysTime == SysTime(Date(-3, 3, 3)));
sysTime.add!"months"(85);
assert(sysTime == SysTime(Date(4, 4, 3)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 0, 0));
sysTime.add!"months"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 1, 0, 0, 0)));
sysTime.add!"months"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.add!"months"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.add!"months"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 1, 0, 0, 0));
sysTime.add!"months"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
sysTime.add!"months"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.add!"months"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.add!"months"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 7, 9), hnsecs(17));
sysTime.add!"months"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 1, 0, 7, 9), hnsecs(17)));
sysTime.add!"months"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 7, 9), hnsecs(17)));
}
{
auto sysTime = SysTime(DateTime(4, 3, 31, 12, 11, 10), msecs(9));
sysTime.add!"months"(-85);
assert(sysTime == SysTime(DateTime(-3, 3, 3, 12, 11, 10), msecs(9)));
sysTime.add!"months"(85);
assert(sysTime == SysTime(DateTime(4, 4, 3, 12, 11, 10), msecs(9)));
}
{
auto sysTime = SysTime(DateTime(-3, 3, 31, 12, 11, 10), msecs(9));
sysTime.add!"months"(85);
assert(sysTime == SysTime(DateTime(4, 5, 1, 12, 11, 10), msecs(9)));
sysTime.add!"months"(-85);
assert(sysTime == SysTime(DateTime(-3, 4, 1, 12, 11, 10), msecs(9)));
}
{
auto sysTime = SysTime(DateTime(-3, 3, 31, 12, 11, 10), msecs(9));
sysTime.add!"months"(85).add!"months"(-83);
assert(sysTime == SysTime(DateTime(-3, 6, 1, 12, 11, 10), msecs(9)));
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.add!"months"(4)));
//static assert(!__traits(compiles, ist.add!"months"(4)));
}
// Test add!"months"() with AllowDayOverflow.no
@safe unittest
{
import core.time;
// Test A.D.
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.add!"months"(3, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 10, 6)));
sysTime.add!"months"(-4, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 6, 6)));
}
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.add!"months"(6, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(2000, 1, 6)));
sysTime.add!"months"(-6, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 7, 6)));
}
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.add!"months"(27, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(2001, 10, 6)));
sysTime.add!"months"(-28, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 6, 6)));
}
{
auto sysTime = SysTime(Date(1999, 5, 31));
sysTime.add!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 6, 30)));
}
{
auto sysTime = SysTime(Date(1999, 5, 31));
sysTime.add!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 4, 30)));
}
{
auto sysTime = SysTime(Date(1999, 2, 28));
sysTime.add!"months"(12, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(2000, 2, 28)));
}
{
auto sysTime = SysTime(Date(2000, 2, 29));
sysTime.add!"months"(12, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(2001, 2, 28)));
}
{
auto sysTime = SysTime(Date(1999, 7, 31));
sysTime.add!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 8, 31)));
sysTime.add!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 9, 30)));
}
{
auto sysTime = SysTime(Date(1998, 8, 31));
sysTime.add!"months"(13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 9, 30)));
sysTime.add!"months"(-13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1998, 8, 30)));
}
{
auto sysTime = SysTime(Date(1997, 12, 31));
sysTime.add!"months"(13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 1, 31)));
sysTime.add!"months"(-13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1997, 12, 31)));
}
{
auto sysTime = SysTime(Date(1997, 12, 31));
sysTime.add!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 2, 28)));
sysTime.add!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1997, 12, 28)));
}
{
auto sysTime = SysTime(Date(1998, 12, 31));
sysTime.add!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(2000, 2, 29)));
sysTime.add!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1998, 12, 29)));
}
{
auto sysTime = SysTime(Date(1999, 12, 31));
sysTime.add!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(2001, 2, 28)));
sysTime.add!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 12, 28)));
}
{
auto sysTime = SysTime(DateTime(1999, 7, 6, 12, 2, 7), usecs(5007));
sysTime.add!"months"(3, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1999, 10, 6, 12, 2, 7), usecs(5007)));
sysTime.add!"months"(-4, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1999, 6, 6, 12, 2, 7), usecs(5007)));
}
{
auto sysTime = SysTime(DateTime(1998, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.add!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(2000, 2, 29, 7, 7, 7), hnsecs(422202)));
sysTime.add!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1998, 12, 29, 7, 7, 7), hnsecs(422202)));
}
{
auto sysTime = SysTime(DateTime(1999, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.add!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(2001, 2, 28, 7, 7, 7), hnsecs(422202)));
sysTime.add!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1999, 12, 28, 7, 7, 7), hnsecs(422202)));
}
// Test B.C.
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.add!"months"(3, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 10, 6)));
sysTime.add!"months"(-4, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 6, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.add!"months"(6, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1998, 1, 6)));
sysTime.add!"months"(-6, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 7, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.add!"months"(-27, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2001, 4, 6)));
sysTime.add!"months"(28, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 8, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 5, 31));
sysTime.add!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 6, 30)));
}
{
auto sysTime = SysTime(Date(-1999, 5, 31));
sysTime.add!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 4, 30)));
}
{
auto sysTime = SysTime(Date(-1999, 2, 28));
sysTime.add!"months"(-12, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2000, 2, 28)));
}
{
auto sysTime = SysTime(Date(-2000, 2, 29));
sysTime.add!"months"(-12, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2001, 2, 28)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 31));
sysTime.add!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 8, 31)));
sysTime.add!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 9, 30)));
}
{
auto sysTime = SysTime(Date(-1998, 8, 31));
sysTime.add!"months"(13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1997, 9, 30)));
sysTime.add!"months"(-13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1998, 8, 30)));
}
{
auto sysTime = SysTime(Date(-1997, 12, 31));
sysTime.add!"months"(13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1995, 1, 31)));
sysTime.add!"months"(-13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1997, 12, 31)));
}
{
auto sysTime = SysTime(Date(-1997, 12, 31));
sysTime.add!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1995, 2, 28)));
sysTime.add!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1997, 12, 28)));
}
{
auto sysTime = SysTime(Date(-2002, 12, 31));
sysTime.add!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2000, 2, 29)));
sysTime.add!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2002, 12, 29)));
}
{
auto sysTime = SysTime(Date(-2001, 12, 31));
sysTime.add!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 2, 28)));
sysTime.add!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2001, 12, 28)));
}
{
auto sysTime = SysTime(DateTime(-1999, 7, 6, 12, 2, 7), usecs(5007));
sysTime.add!"months"(3, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-1999, 10, 6, 12, 2, 7), usecs(5007)));
sysTime.add!"months"(-4, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-1999, 6, 6, 12, 2, 7), usecs(5007)));
}
{
auto sysTime = SysTime(DateTime(-2002, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.add!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-2000, 2, 29, 7, 7, 7), hnsecs(422202)));
sysTime.add!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-2002, 12, 29, 7, 7, 7), hnsecs(422202)));
}
{
auto sysTime = SysTime(DateTime(-2001, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.add!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-1999, 2, 28, 7, 7, 7), hnsecs(422202)));
sysTime.add!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-2001, 12, 28, 7, 7, 7), hnsecs(422202)));
}
// Test Both
{
auto sysTime = SysTime(Date(1, 1, 1));
sysTime.add!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(0, 12, 1)));
sysTime.add!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1, 1, 1)));
}
{
auto sysTime = SysTime(Date(4, 1, 1));
sysTime.add!"months"(-48, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(0, 1, 1)));
sysTime.add!"months"(48, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(4, 1, 1)));
}
{
auto sysTime = SysTime(Date(4, 3, 31));
sysTime.add!"months"(-49, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(0, 2, 29)));
sysTime.add!"months"(49, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(4, 3, 29)));
}
{
auto sysTime = SysTime(Date(4, 3, 31));
sysTime.add!"months"(-85, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-3, 2, 28)));
sysTime.add!"months"(85, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(4, 3, 28)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 0, 0));
sysTime.add!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 12, 1, 0, 0, 0)));
sysTime.add!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.add!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 12, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.add!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 1, 0, 0, 0));
sysTime.add!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
sysTime.add!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 12, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.add!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.add!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 12, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 7, 9), hnsecs(17));
sysTime.add!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 12, 1, 0, 7, 9), hnsecs(17)));
sysTime.add!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 7, 9), hnsecs(17)));
}
{
auto sysTime = SysTime(DateTime(4, 3, 31, 12, 11, 10), msecs(9));
sysTime.add!"months"(-85, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-3, 2, 28, 12, 11, 10), msecs(9)));
sysTime.add!"months"(85, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(4, 3, 28, 12, 11, 10), msecs(9)));
}
{
auto sysTime = SysTime(DateTime(-3, 3, 31, 12, 11, 10), msecs(9));
sysTime.add!"months"(85, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(4, 4, 30, 12, 11, 10), msecs(9)));
sysTime.add!"months"(-85, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-3, 3, 30, 12, 11, 10), msecs(9)));
}
{
auto sysTime = SysTime(DateTime(-3, 3, 31, 12, 11, 10), msecs(9));
sysTime.add!"months"(85, AllowDayOverflow.no).add!"months"(-83, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-3, 5, 30, 12, 11, 10), msecs(9)));
}
}
/++
Adds the given number of years or months to this $(LREF SysTime). A
negative number will subtract.
The difference between rolling and adding is that rolling does not
affect larger units. Rolling a $(LREF SysTime) 12 months
gets the exact same $(LREF SysTime). However, the days can still be
affected due to the differing number of days in each month.
Because there are no units larger than years, there is no difference
between adding and rolling years.
Params:
units = The type of units to add ("years" or "months").
value = The number of months or years to add to this
$(LREF SysTime).
allowOverflow = Whether the days should be allowed to overflow,
causing the month to increment.
+/
ref SysTime roll(string units)(long value, AllowDayOverflow allowOverflow = AllowDayOverflow.yes) @safe nothrow
if (units == "years")
{
return add!"years"(value, allowOverflow);
}
///
@safe unittest
{
import std.datetime.date : AllowDayOverflow, DateTime;
auto st1 = SysTime(DateTime(2010, 1, 1, 12, 33, 33));
st1.roll!"months"(1);
assert(st1 == SysTime(DateTime(2010, 2, 1, 12, 33, 33)));
auto st2 = SysTime(DateTime(2010, 1, 1, 12, 33, 33));
st2.roll!"months"(-1);
assert(st2 == SysTime(DateTime(2010, 12, 1, 12, 33, 33)));
auto st3 = SysTime(DateTime(1999, 1, 29, 12, 33, 33));
st3.roll!"months"(1);
assert(st3 == SysTime(DateTime(1999, 3, 1, 12, 33, 33)));
auto st4 = SysTime(DateTime(1999, 1, 29, 12, 33, 33));
st4.roll!"months"(1, AllowDayOverflow.no);
assert(st4 == SysTime(DateTime(1999, 2, 28, 12, 33, 33)));
auto st5 = SysTime(DateTime(2000, 2, 29, 12, 30, 33));
st5.roll!"years"(1);
assert(st5 == SysTime(DateTime(2001, 3, 1, 12, 30, 33)));
auto st6 = SysTime(DateTime(2000, 2, 29, 12, 30, 33));
st6.roll!"years"(1, AllowDayOverflow.no);
assert(st6 == SysTime(DateTime(2001, 2, 28, 12, 30, 33)));
}
@safe unittest
{
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
st.roll!"years"(4);
static assert(!__traits(compiles, cst.roll!"years"(4)));
//static assert(!__traits(compiles, ist.roll!"years"(4)));
}
// Shares documentation with "years" overload.
ref SysTime roll(string units)(long value, AllowDayOverflow allowOverflow = AllowDayOverflow.yes) @safe nothrow
if (units == "months")
{
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
auto date = Date(cast(int) days);
date.roll!"months"(value, allowOverflow);
days = date.dayOfGregorianCal - 1;
if (days < 0)
{
hnsecs -= convert!("hours", "hnsecs")(24);
++days;
}
immutable newDaysHNSecs = convert!("days", "hnsecs")(days);
adjTime = newDaysHNSecs + hnsecs;
return this;
}
// Test roll!"months"() with AllowDayOverflow.yes
@safe unittest
{
import core.time;
// Test A.D.
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.roll!"months"(3);
assert(sysTime == SysTime(Date(1999, 10, 6)));
sysTime.roll!"months"(-4);
assert(sysTime == SysTime(Date(1999, 6, 6)));
}
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.roll!"months"(6);
assert(sysTime == SysTime(Date(1999, 1, 6)));
sysTime.roll!"months"(-6);
assert(sysTime == SysTime(Date(1999, 7, 6)));
}
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.roll!"months"(27);
assert(sysTime == SysTime(Date(1999, 10, 6)));
sysTime.roll!"months"(-28);
assert(sysTime == SysTime(Date(1999, 6, 6)));
}
{
auto sysTime = SysTime(Date(1999, 5, 31));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(Date(1999, 7, 1)));
}
{
auto sysTime = SysTime(Date(1999, 5, 31));
sysTime.roll!"months"(-1);
assert(sysTime == SysTime(Date(1999, 5, 1)));
}
{
auto sysTime = SysTime(Date(1999, 2, 28));
sysTime.roll!"months"(12);
assert(sysTime == SysTime(Date(1999, 2, 28)));
}
{
auto sysTime = SysTime(Date(2000, 2, 29));
sysTime.roll!"months"(12);
assert(sysTime == SysTime(Date(2000, 2, 29)));
}
{
auto sysTime = SysTime(Date(1999, 7, 31));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(Date(1999, 8, 31)));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(Date(1999, 10, 1)));
}
{
auto sysTime = SysTime(Date(1998, 8, 31));
sysTime.roll!"months"(13);
assert(sysTime == SysTime(Date(1998, 10, 1)));
sysTime.roll!"months"(-13);
assert(sysTime == SysTime(Date(1998, 9, 1)));
}
{
auto sysTime = SysTime(Date(1997, 12, 31));
sysTime.roll!"months"(13);
assert(sysTime == SysTime(Date(1997, 1, 31)));
sysTime.roll!"months"(-13);
assert(sysTime == SysTime(Date(1997, 12, 31)));
}
{
auto sysTime = SysTime(Date(1997, 12, 31));
sysTime.roll!"months"(14);
assert(sysTime == SysTime(Date(1997, 3, 3)));
sysTime.roll!"months"(-14);
assert(sysTime == SysTime(Date(1997, 1, 3)));
}
{
auto sysTime = SysTime(Date(1998, 12, 31));
sysTime.roll!"months"(14);
assert(sysTime == SysTime(Date(1998, 3, 3)));
sysTime.roll!"months"(-14);
assert(sysTime == SysTime(Date(1998, 1, 3)));
}
{
auto sysTime = SysTime(Date(1999, 12, 31));
sysTime.roll!"months"(14);
assert(sysTime == SysTime(Date(1999, 3, 3)));
sysTime.roll!"months"(-14);
assert(sysTime == SysTime(Date(1999, 1, 3)));
}
{
auto sysTime = SysTime(DateTime(1999, 7, 6, 12, 2, 7), usecs(5007));
sysTime.roll!"months"(3);
assert(sysTime == SysTime(DateTime(1999, 10, 6, 12, 2, 7), usecs(5007)));
sysTime.roll!"months"(-4);
assert(sysTime == SysTime(DateTime(1999, 6, 6, 12, 2, 7), usecs(5007)));
}
{
auto sysTime = SysTime(DateTime(1998, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.roll!"months"(14);
assert(sysTime == SysTime(DateTime(1998, 3, 3, 7, 7, 7), hnsecs(422202)));
sysTime.roll!"months"(-14);
assert(sysTime == SysTime(DateTime(1998, 1, 3, 7, 7, 7), hnsecs(422202)));
}
{
auto sysTime = SysTime(DateTime(1999, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.roll!"months"(14);
assert(sysTime == SysTime(DateTime(1999, 3, 3, 7, 7, 7), hnsecs(422202)));
sysTime.roll!"months"(-14);
assert(sysTime == SysTime(DateTime(1999, 1, 3, 7, 7, 7), hnsecs(422202)));
}
// Test B.C.
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.roll!"months"(3);
assert(sysTime == SysTime(Date(-1999, 10, 6)));
sysTime.roll!"months"(-4);
assert(sysTime == SysTime(Date(-1999, 6, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.roll!"months"(6);
assert(sysTime == SysTime(Date(-1999, 1, 6)));
sysTime.roll!"months"(-6);
assert(sysTime == SysTime(Date(-1999, 7, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.roll!"months"(-27);
assert(sysTime == SysTime(Date(-1999, 4, 6)));
sysTime.roll!"months"(28);
assert(sysTime == SysTime(Date(-1999, 8, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 5, 31));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(Date(-1999, 7, 1)));
}
{
auto sysTime = SysTime(Date(-1999, 5, 31));
sysTime.roll!"months"(-1);
assert(sysTime == SysTime(Date(-1999, 5, 1)));
}
{
auto sysTime = SysTime(Date(-1999, 2, 28));
sysTime.roll!"months"(-12);
assert(sysTime == SysTime(Date(-1999, 2, 28)));
}
{
auto sysTime = SysTime(Date(-2000, 2, 29));
sysTime.roll!"months"(-12);
assert(sysTime == SysTime(Date(-2000, 2, 29)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 31));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(Date(-1999, 8, 31)));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(Date(-1999, 10, 1)));
}
{
auto sysTime = SysTime(Date(-1998, 8, 31));
sysTime.roll!"months"(13);
assert(sysTime == SysTime(Date(-1998, 10, 1)));
sysTime.roll!"months"(-13);
assert(sysTime == SysTime(Date(-1998, 9, 1)));
}
{
auto sysTime = SysTime(Date(-1997, 12, 31));
sysTime.roll!"months"(13);
assert(sysTime == SysTime(Date(-1997, 1, 31)));
sysTime.roll!"months"(-13);
assert(sysTime == SysTime(Date(-1997, 12, 31)));
}
{
auto sysTime = SysTime(Date(-1997, 12, 31));
sysTime.roll!"months"(14);
assert(sysTime == SysTime(Date(-1997, 3, 3)));
sysTime.roll!"months"(-14);
assert(sysTime == SysTime(Date(-1997, 1, 3)));
}
{
auto sysTime = SysTime(Date(-2002, 12, 31));
sysTime.roll!"months"(14);
assert(sysTime == SysTime(Date(-2002, 3, 3)));
sysTime.roll!"months"(-14);
assert(sysTime == SysTime(Date(-2002, 1, 3)));
}
{
auto sysTime = SysTime(Date(-2001, 12, 31));
sysTime.roll!"months"(14);
assert(sysTime == SysTime(Date(-2001, 3, 3)));
sysTime.roll!"months"(-14);
assert(sysTime == SysTime(Date(-2001, 1, 3)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 0, 0));
sysTime.roll!"months"(-1);
assert(sysTime == SysTime(DateTime(1, 12, 1, 0, 0, 0)));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.roll!"months"(-1);
assert(sysTime == SysTime(DateTime(1, 12, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 1, 0, 0, 0));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(DateTime(0, 1, 1, 0, 0, 0)));
sysTime.roll!"months"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(DateTime(0, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.roll!"months"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(-1999, 7, 6, 12, 2, 7), hnsecs(5007));
sysTime.roll!"months"(3);
assert(sysTime == SysTime(DateTime(-1999, 10, 6, 12, 2, 7), hnsecs(5007)));
sysTime.roll!"months"(-4);
assert(sysTime == SysTime(DateTime(-1999, 6, 6, 12, 2, 7), hnsecs(5007)));
}
{
auto sysTime = SysTime(DateTime(-2002, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.roll!"months"(14);
assert(sysTime == SysTime(DateTime(-2002, 3, 3, 7, 7, 7), hnsecs(422202)));
sysTime.roll!"months"(-14);
assert(sysTime == SysTime(DateTime(-2002, 1, 3, 7, 7, 7), hnsecs(422202)));
}
{
auto sysTime = SysTime(DateTime(-2001, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.roll!"months"(14);
assert(sysTime == SysTime(DateTime(-2001, 3, 3, 7, 7, 7), hnsecs(422202)));
sysTime.roll!"months"(-14);
assert(sysTime == SysTime(DateTime(-2001, 1, 3, 7, 7, 7), hnsecs(422202)));
}
// Test Both
{
auto sysTime = SysTime(Date(1, 1, 1));
sysTime.roll!"months"(-1);
assert(sysTime == SysTime(Date(1, 12, 1)));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(Date(1, 1, 1)));
}
{
auto sysTime = SysTime(Date(4, 1, 1));
sysTime.roll!"months"(-48);
assert(sysTime == SysTime(Date(4, 1, 1)));
sysTime.roll!"months"(48);
assert(sysTime == SysTime(Date(4, 1, 1)));
}
{
auto sysTime = SysTime(Date(4, 3, 31));
sysTime.roll!"months"(-49);
assert(sysTime == SysTime(Date(4, 3, 2)));
sysTime.roll!"months"(49);
assert(sysTime == SysTime(Date(4, 4, 2)));
}
{
auto sysTime = SysTime(Date(4, 3, 31));
sysTime.roll!"months"(-85);
assert(sysTime == SysTime(Date(4, 3, 2)));
sysTime.roll!"months"(85);
assert(sysTime == SysTime(Date(4, 4, 2)));
}
{
auto sysTime = SysTime(Date(-1, 1, 1));
sysTime.roll!"months"(-1);
assert(sysTime == SysTime(Date(-1, 12, 1)));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(Date(-1, 1, 1)));
}
{
auto sysTime = SysTime(Date(-4, 1, 1));
sysTime.roll!"months"(-48);
assert(sysTime == SysTime(Date(-4, 1, 1)));
sysTime.roll!"months"(48);
assert(sysTime == SysTime(Date(-4, 1, 1)));
}
{
auto sysTime = SysTime(Date(-4, 3, 31));
sysTime.roll!"months"(-49);
assert(sysTime == SysTime(Date(-4, 3, 2)));
sysTime.roll!"months"(49);
assert(sysTime == SysTime(Date(-4, 4, 2)));
}
{
auto sysTime = SysTime(Date(-4, 3, 31));
sysTime.roll!"months"(-85);
assert(sysTime == SysTime(Date(-4, 3, 2)));
sysTime.roll!"months"(85);
assert(sysTime == SysTime(Date(-4, 4, 2)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 7, 9), hnsecs(17));
sysTime.roll!"months"(-1);
assert(sysTime == SysTime(DateTime(1, 12, 1, 0, 7, 9), hnsecs(17)));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 7, 9), hnsecs(17)));
}
{
auto sysTime = SysTime(DateTime(4, 3, 31, 12, 11, 10), msecs(9));
sysTime.roll!"months"(-85);
assert(sysTime == SysTime(DateTime(4, 3, 2, 12, 11, 10), msecs(9)));
sysTime.roll!"months"(85);
assert(sysTime == SysTime(DateTime(4, 4, 2, 12, 11, 10), msecs(9)));
}
{
auto sysTime = SysTime(DateTime(-3, 3, 31, 12, 11, 10), msecs(9));
sysTime.roll!"months"(85);
assert(sysTime == SysTime(DateTime(-3, 5, 1, 12, 11, 10), msecs(9)));
sysTime.roll!"months"(-85);
assert(sysTime == SysTime(DateTime(-3, 4, 1, 12, 11, 10), msecs(9)));
}
{
auto sysTime = SysTime(DateTime(-3, 3, 31, 12, 11, 10), msecs(9));
sysTime.roll!"months"(85).roll!"months"(-83);
assert(sysTime == SysTime(DateTime(-3, 6, 1, 12, 11, 10), msecs(9)));
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.roll!"months"(4)));
//static assert(!__traits(compiles, ist.roll!"months"(4)));
}
// Test roll!"months"() with AllowDayOverflow.no
@safe unittest
{
import core.time;
// Test A.D.
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.roll!"months"(3, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 10, 6)));
sysTime.roll!"months"(-4, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 6, 6)));
}
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.roll!"months"(6, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 1, 6)));
sysTime.roll!"months"(-6, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 7, 6)));
}
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.roll!"months"(27, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 10, 6)));
sysTime.roll!"months"(-28, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 6, 6)));
}
{
auto sysTime = SysTime(Date(1999, 5, 31));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 6, 30)));
}
{
auto sysTime = SysTime(Date(1999, 5, 31));
sysTime.roll!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 4, 30)));
}
{
auto sysTime = SysTime(Date(1999, 2, 28));
sysTime.roll!"months"(12, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 2, 28)));
}
{
auto sysTime = SysTime(Date(2000, 2, 29));
sysTime.roll!"months"(12, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(2000, 2, 29)));
}
{
auto sysTime = SysTime(Date(1999, 7, 31));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 8, 31)));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 9, 30)));
}
{
auto sysTime = SysTime(Date(1998, 8, 31));
sysTime.roll!"months"(13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1998, 9, 30)));
sysTime.roll!"months"(-13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1998, 8, 30)));
}
{
auto sysTime = SysTime(Date(1997, 12, 31));
sysTime.roll!"months"(13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1997, 1, 31)));
sysTime.roll!"months"(-13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1997, 12, 31)));
}
{
auto sysTime = SysTime(Date(1997, 12, 31));
sysTime.roll!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1997, 2, 28)));
sysTime.roll!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1997, 12, 28)));
}
{
auto sysTime = SysTime(Date(1998, 12, 31));
sysTime.roll!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1998, 2, 28)));
sysTime.roll!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1998, 12, 28)));
}
{
auto sysTime = SysTime(Date(1999, 12, 31));
sysTime.roll!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 2, 28)));
sysTime.roll!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 12, 28)));
}
{
auto sysTime = SysTime(DateTime(1999, 7, 6, 12, 2, 7), usecs(5007));
sysTime.roll!"months"(3, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1999, 10, 6, 12, 2, 7), usecs(5007)));
sysTime.roll!"months"(-4, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1999, 6, 6, 12, 2, 7), usecs(5007)));
}
{
auto sysTime = SysTime(DateTime(1998, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.roll!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1998, 2, 28, 7, 7, 7), hnsecs(422202)));
sysTime.roll!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1998, 12, 28, 7, 7, 7), hnsecs(422202)));
}
{
auto sysTime = SysTime(DateTime(1999, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.roll!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1999, 2, 28, 7, 7, 7), hnsecs(422202)));
sysTime.roll!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1999, 12, 28, 7, 7, 7), hnsecs(422202)));
}
// Test B.C.
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.roll!"months"(3, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 10, 6)));
sysTime.roll!"months"(-4, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 6, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.roll!"months"(6, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 1, 6)));
sysTime.roll!"months"(-6, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 7, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.roll!"months"(-27, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 4, 6)));
sysTime.roll!"months"(28, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 8, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 5, 31));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 6, 30)));
}
{
auto sysTime = SysTime(Date(-1999, 5, 31));
sysTime.roll!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 4, 30)));
}
{
auto sysTime = SysTime(Date(-1999, 2, 28));
sysTime.roll!"months"(-12, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 2, 28)));
}
{
auto sysTime = SysTime(Date(-2000, 2, 29));
sysTime.roll!"months"(-12, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2000, 2, 29)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 31));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 8, 31)));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 9, 30)));
}
{
auto sysTime = SysTime(Date(-1998, 8, 31));
sysTime.roll!"months"(13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1998, 9, 30)));
sysTime.roll!"months"(-13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1998, 8, 30)));
}
{
auto sysTime = SysTime(Date(-1997, 12, 31));
sysTime.roll!"months"(13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1997, 1, 31)));
sysTime.roll!"months"(-13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1997, 12, 31)));
}
{
auto sysTime = SysTime(Date(-1997, 12, 31));
sysTime.roll!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1997, 2, 28)));
sysTime.roll!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1997, 12, 28)));
}
{
auto sysTime = SysTime(Date(-2002, 12, 31));
sysTime.roll!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2002, 2, 28)));
sysTime.roll!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2002, 12, 28)));
}
{
auto sysTime = SysTime(Date(-2001, 12, 31));
sysTime.roll!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2001, 2, 28)));
sysTime.roll!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2001, 12, 28)));
}
{
auto sysTime = SysTime(DateTime(-1999, 7, 6, 12, 2, 7), usecs(5007));
sysTime.roll!"months"(3, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-1999, 10, 6, 12, 2, 7), usecs(5007)));
sysTime.roll!"months"(-4, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-1999, 6, 6, 12, 2, 7), usecs(5007)));
}
{
auto sysTime = SysTime(DateTime(-2002, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.roll!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-2002, 2, 28, 7, 7, 7), hnsecs(422202)));
sysTime.roll!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-2002, 12, 28, 7, 7, 7), hnsecs(422202)));
}
{
auto sysTime = SysTime(DateTime(-2001, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.roll!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-2001, 2, 28, 7, 7, 7), hnsecs(422202)));
sysTime.roll!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-2001, 12, 28, 7, 7, 7), hnsecs(422202)));
}
// Test Both
{
auto sysTime = SysTime(Date(1, 1, 1));
sysTime.roll!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1, 12, 1)));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1, 1, 1)));
}
{
auto sysTime = SysTime(Date(4, 1, 1));
sysTime.roll!"months"(-48, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(4, 1, 1)));
sysTime.roll!"months"(48, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(4, 1, 1)));
}
{
auto sysTime = SysTime(Date(4, 3, 31));
sysTime.roll!"months"(-49, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(4, 2, 29)));
sysTime.roll!"months"(49, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(4, 3, 29)));
}
{
auto sysTime = SysTime(Date(4, 3, 31));
sysTime.roll!"months"(-85, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(4, 2, 29)));
sysTime.roll!"months"(85, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(4, 3, 29)));
}
{
auto sysTime = SysTime(Date(-1, 1, 1));
sysTime.roll!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1, 12, 1)));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1, 1, 1)));
}
{
auto sysTime = SysTime(Date(-4, 1, 1));
sysTime.roll!"months"(-48, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-4, 1, 1)));
sysTime.roll!"months"(48, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-4, 1, 1)));
}
{
auto sysTime = SysTime(Date(-4, 3, 31));
sysTime.roll!"months"(-49, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-4, 2, 29)));
sysTime.roll!"months"(49, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-4, 3, 29)));
}
{
auto sysTime = SysTime(Date(-4, 3, 31));
sysTime.roll!"months"(-85, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-4, 2, 29)));
sysTime.roll!"months"(85, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-4, 3, 29)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 0, 0));
sysTime.roll!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 12, 1, 0, 0, 0)));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.roll!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 12, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 1, 0, 0, 0));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 1, 1, 0, 0, 0)));
sysTime.roll!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 12, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.roll!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 12, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 7, 9), hnsecs(17));
sysTime.roll!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 12, 1, 0, 7, 9), hnsecs(17)));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 7, 9), hnsecs(17)));
}
{
auto sysTime = SysTime(DateTime(4, 3, 31, 12, 11, 10), msecs(9));
sysTime.roll!"months"(-85, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(4, 2, 29, 12, 11, 10), msecs(9)));
sysTime.roll!"months"(85, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(4, 3, 29, 12, 11, 10), msecs(9)));
}
{
auto sysTime = SysTime(DateTime(-3, 3, 31, 12, 11, 10), msecs(9));
sysTime.roll!"months"(85, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-3, 4, 30, 12, 11, 10), msecs(9)));
sysTime.roll!"months"(-85, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-3, 3, 30, 12, 11, 10), msecs(9)));
}
{
auto sysTime = SysTime(DateTime(-3, 3, 31, 12, 11, 10), msecs(9));
sysTime.roll!"months"(85, AllowDayOverflow.no).roll!"months"(-83, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-3, 5, 30, 12, 11, 10), msecs(9)));
}
}
/++
Adds the given number of units to this $(LREF SysTime). A negative number
will subtract.
The difference between rolling and adding is that rolling does not
affect larger units. For instance, rolling a $(LREF SysTime) one
year's worth of days gets the exact same $(LREF SysTime).
Accepted units are $(D "days"), $(D "minutes"), $(D "hours"),
$(D "minutes"), $(D "seconds"), $(D "msecs"), $(D "usecs"), and
$(D "hnsecs").
Note that when rolling msecs, usecs or hnsecs, they all add up to a
second. So, for example, rolling 1000 msecs is exactly the same as
rolling 100,000 usecs.
Params:
units = The units to add.
value = The number of $(D_PARAM units) to add to this
$(LREF SysTime).
+/
ref SysTime roll(string units)(long value) @safe nothrow
if (units == "days")
{
auto hnsecs = adjTime;
auto gdays = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--gdays;
}
auto date = Date(cast(int) gdays);
date.roll!"days"(value);
gdays = date.dayOfGregorianCal - 1;
if (gdays < 0)
{
hnsecs -= convert!("hours", "hnsecs")(24);
++gdays;
}
immutable newDaysHNSecs = convert!("days", "hnsecs")(gdays);
adjTime = newDaysHNSecs + hnsecs;
return this;
}
///
@safe unittest
{
import core.time : msecs, hnsecs;
import std.datetime.date : DateTime;
auto st1 = SysTime(DateTime(2010, 1, 1, 11, 23, 12));
st1.roll!"days"(1);
assert(st1 == SysTime(DateTime(2010, 1, 2, 11, 23, 12)));
st1.roll!"days"(365);
assert(st1 == SysTime(DateTime(2010, 1, 26, 11, 23, 12)));
st1.roll!"days"(-32);
assert(st1 == SysTime(DateTime(2010, 1, 25, 11, 23, 12)));
auto st2 = SysTime(DateTime(2010, 7, 4, 12, 0, 0));
st2.roll!"hours"(1);
assert(st2 == SysTime(DateTime(2010, 7, 4, 13, 0, 0)));
auto st3 = SysTime(DateTime(2010, 2, 12, 12, 0, 0));
st3.roll!"hours"(-1);
assert(st3 == SysTime(DateTime(2010, 2, 12, 11, 0, 0)));
auto st4 = SysTime(DateTime(2009, 12, 31, 0, 0, 0));
st4.roll!"minutes"(1);
assert(st4 == SysTime(DateTime(2009, 12, 31, 0, 1, 0)));
auto st5 = SysTime(DateTime(2010, 1, 1, 0, 0, 0));
st5.roll!"minutes"(-1);
assert(st5 == SysTime(DateTime(2010, 1, 1, 0, 59, 0)));
auto st6 = SysTime(DateTime(2009, 12, 31, 0, 0, 0));
st6.roll!"seconds"(1);
assert(st6 == SysTime(DateTime(2009, 12, 31, 0, 0, 1)));
auto st7 = SysTime(DateTime(2010, 1, 1, 0, 0, 0));
st7.roll!"seconds"(-1);
assert(st7 == SysTime(DateTime(2010, 1, 1, 0, 0, 59)));
auto dt = DateTime(2010, 1, 1, 0, 0, 0);
auto st8 = SysTime(dt);
st8.roll!"msecs"(1);
assert(st8 == SysTime(dt, msecs(1)));
auto st9 = SysTime(dt);
st9.roll!"msecs"(-1);
assert(st9 == SysTime(dt, msecs(999)));
auto st10 = SysTime(dt);
st10.roll!"hnsecs"(1);
assert(st10 == SysTime(dt, hnsecs(1)));
auto st11 = SysTime(dt);
st11.roll!"hnsecs"(-1);
assert(st11 == SysTime(dt, hnsecs(9_999_999)));
}
@safe unittest
{
import core.time;
// Test A.D.
{
auto sysTime = SysTime(Date(1999, 2, 28));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(Date(1999, 2, 1)));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(Date(1999, 2, 28)));
}
{
auto sysTime = SysTime(Date(2000, 2, 28));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(Date(2000, 2, 29)));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(Date(2000, 2, 1)));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(Date(2000, 2, 29)));
}
{
auto sysTime = SysTime(Date(1999, 6, 30));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(Date(1999, 6, 1)));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(Date(1999, 6, 30)));
}
{
auto sysTime = SysTime(Date(1999, 7, 31));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(Date(1999, 7, 1)));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(Date(1999, 7, 31)));
}
{
auto sysTime = SysTime(Date(1999, 1, 1));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(Date(1999, 1, 31)));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(Date(1999, 1, 1)));
}
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.roll!"days"(9);
assert(sysTime == SysTime(Date(1999, 7, 15)));
sysTime.roll!"days"(-11);
assert(sysTime == SysTime(Date(1999, 7, 4)));
sysTime.roll!"days"(30);
assert(sysTime == SysTime(Date(1999, 7, 3)));
sysTime.roll!"days"(-3);
assert(sysTime == SysTime(Date(1999, 7, 31)));
}
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.roll!"days"(365);
assert(sysTime == SysTime(Date(1999, 7, 30)));
sysTime.roll!"days"(-365);
assert(sysTime == SysTime(Date(1999, 7, 6)));
sysTime.roll!"days"(366);
assert(sysTime == SysTime(Date(1999, 7, 31)));
sysTime.roll!"days"(730);
assert(sysTime == SysTime(Date(1999, 7, 17)));
sysTime.roll!"days"(-1096);
assert(sysTime == SysTime(Date(1999, 7, 6)));
}
{
auto sysTime = SysTime(Date(1999, 2, 6));
sysTime.roll!"days"(365);
assert(sysTime == SysTime(Date(1999, 2, 7)));
sysTime.roll!"days"(-365);
assert(sysTime == SysTime(Date(1999, 2, 6)));
sysTime.roll!"days"(366);
assert(sysTime == SysTime(Date(1999, 2, 8)));
sysTime.roll!"days"(730);
assert(sysTime == SysTime(Date(1999, 2, 10)));
sysTime.roll!"days"(-1096);
assert(sysTime == SysTime(Date(1999, 2, 6)));
}
{
auto sysTime = SysTime(DateTime(1999, 2, 28, 7, 9, 2), usecs(234578));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(DateTime(1999, 2, 1, 7, 9, 2), usecs(234578)));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(DateTime(1999, 2, 28, 7, 9, 2), usecs(234578)));
}
{
auto sysTime = SysTime(DateTime(1999, 7, 6, 7, 9, 2), usecs(234578));
sysTime.roll!"days"(9);
assert(sysTime == SysTime(DateTime(1999, 7, 15, 7, 9, 2), usecs(234578)));
sysTime.roll!"days"(-11);
assert(sysTime == SysTime(DateTime(1999, 7, 4, 7, 9, 2), usecs(234578)));
sysTime.roll!"days"(30);
assert(sysTime == SysTime(DateTime(1999, 7, 3, 7, 9, 2), usecs(234578)));
sysTime.roll!"days"(-3);
assert(sysTime == SysTime(DateTime(1999, 7, 31, 7, 9, 2), usecs(234578)));
}
// Test B.C.
{
auto sysTime = SysTime(Date(-1999, 2, 28));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(Date(-1999, 2, 1)));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(Date(-1999, 2, 28)));
}
{
auto sysTime = SysTime(Date(-2000, 2, 28));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(Date(-2000, 2, 29)));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(Date(-2000, 2, 1)));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(Date(-2000, 2, 29)));
}
{
auto sysTime = SysTime(Date(-1999, 6, 30));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(Date(-1999, 6, 1)));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(Date(-1999, 6, 30)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 31));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(Date(-1999, 7, 1)));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(Date(-1999, 7, 31)));
}
{
auto sysTime = SysTime(Date(-1999, 1, 1));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(Date(-1999, 1, 31)));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(Date(-1999, 1, 1)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.roll!"days"(9);
assert(sysTime == SysTime(Date(-1999, 7, 15)));
sysTime.roll!"days"(-11);
assert(sysTime == SysTime(Date(-1999, 7, 4)));
sysTime.roll!"days"(30);
assert(sysTime == SysTime(Date(-1999, 7, 3)));
sysTime.roll!"days"(-3);
assert(sysTime == SysTime(Date(-1999, 7, 31)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.roll!"days"(365);
assert(sysTime == SysTime(Date(-1999, 7, 30)));
sysTime.roll!"days"(-365);
assert(sysTime == SysTime(Date(-1999, 7, 6)));
sysTime.roll!"days"(366);
assert(sysTime == SysTime(Date(-1999, 7, 31)));
sysTime.roll!"days"(730);
assert(sysTime == SysTime(Date(-1999, 7, 17)));
sysTime.roll!"days"(-1096);
assert(sysTime == SysTime(Date(-1999, 7, 6)));
}
{
auto sysTime = SysTime(DateTime(-1999, 2, 28, 7, 9, 2), usecs(234578));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(DateTime(-1999, 2, 1, 7, 9, 2), usecs(234578)));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(DateTime(-1999, 2, 28, 7, 9, 2), usecs(234578)));
}
{
auto sysTime = SysTime(DateTime(-1999, 7, 6, 7, 9, 2), usecs(234578));
sysTime.roll!"days"(9);
assert(sysTime == SysTime(DateTime(-1999, 7, 15, 7, 9, 2), usecs(234578)));
sysTime.roll!"days"(-11);
assert(sysTime == SysTime(DateTime(-1999, 7, 4, 7, 9, 2), usecs(234578)));
sysTime.roll!"days"(30);
assert(sysTime == SysTime(DateTime(-1999, 7, 3, 7, 9, 2), usecs(234578)));
sysTime.roll!"days"(-3);
}
// Test Both
{
auto sysTime = SysTime(Date(1, 7, 6));
sysTime.roll!"days"(-365);
assert(sysTime == SysTime(Date(1, 7, 13)));
sysTime.roll!"days"(365);
assert(sysTime == SysTime(Date(1, 7, 6)));
sysTime.roll!"days"(-731);
assert(sysTime == SysTime(Date(1, 7, 19)));
sysTime.roll!"days"(730);
assert(sysTime == SysTime(Date(1, 7, 5)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 0, 0));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(DateTime(1, 1, 31, 0, 0, 0)));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(DateTime(1, 1, 31, 23, 59, 59), hnsecs(9_999_999)));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 31, 0, 0, 0));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(DateTime(0, 12, 1, 0, 0, 0)));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(DateTime(0, 12, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(1, 7, 6, 13, 13, 9), msecs(22));
sysTime.roll!"days"(-365);
assert(sysTime == SysTime(DateTime(1, 7, 13, 13, 13, 9), msecs(22)));
sysTime.roll!"days"(365);
assert(sysTime == SysTime(DateTime(1, 7, 6, 13, 13, 9), msecs(22)));
sysTime.roll!"days"(-731);
assert(sysTime == SysTime(DateTime(1, 7, 19, 13, 13, 9), msecs(22)));
sysTime.roll!"days"(730);
assert(sysTime == SysTime(DateTime(1, 7, 5, 13, 13, 9), msecs(22)));
}
{
auto sysTime = SysTime(DateTime(0, 7, 6, 13, 13, 9), msecs(22));
sysTime.roll!"days"(-365);
assert(sysTime == SysTime(DateTime(0, 7, 13, 13, 13, 9), msecs(22)));
sysTime.roll!"days"(365);
assert(sysTime == SysTime(DateTime(0, 7, 6, 13, 13, 9), msecs(22)));
sysTime.roll!"days"(-731);
assert(sysTime == SysTime(DateTime(0, 7, 19, 13, 13, 9), msecs(22)));
sysTime.roll!"days"(730);
assert(sysTime == SysTime(DateTime(0, 7, 5, 13, 13, 9), msecs(22)));
}
{
auto sysTime = SysTime(DateTime(0, 7, 6, 13, 13, 9), msecs(22));
sysTime.roll!"days"(-365).roll!"days"(362).roll!"days"(-12).roll!"days"(730);
assert(sysTime == SysTime(DateTime(0, 7, 8, 13, 13, 9), msecs(22)));
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.roll!"days"(4)));
//static assert(!__traits(compiles, ist.roll!"days"(4)));
}
// Shares documentation with "days" version.
ref SysTime roll(string units)(long value) @safe nothrow
if (units == "hours" || units == "minutes" || units == "seconds")
{
try
{
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
immutable hour = splitUnitsFromHNSecs!"hours"(hnsecs);
immutable minute = splitUnitsFromHNSecs!"minutes"(hnsecs);
immutable second = splitUnitsFromHNSecs!"seconds"(hnsecs);
auto dateTime = DateTime(Date(cast(int) days), TimeOfDay(cast(int) hour,
cast(int) minute, cast(int) second));
dateTime.roll!units(value);
--days;
hnsecs += convert!("hours", "hnsecs")(dateTime.hour);
hnsecs += convert!("minutes", "hnsecs")(dateTime.minute);
hnsecs += convert!("seconds", "hnsecs")(dateTime.second);
if (days < 0)
{
hnsecs -= convert!("hours", "hnsecs")(24);
++days;
}
immutable newDaysHNSecs = convert!("days", "hnsecs")(days);
adjTime = newDaysHNSecs + hnsecs;
return this;
}
catch (Exception e)
assert(0, "Either DateTime's constructor or TimeOfDay's constructor threw.");
}
// Test roll!"hours"().
@safe unittest
{
import core.time;
static void testST(SysTime orig, int hours, in SysTime expected, size_t line = __LINE__)
{
orig.roll!"hours"(hours);
if (orig != expected)
throw new AssertError(format("Failed. actual [%s] != expected [%s]", orig, expected), __FILE__, line);
}
// Test A.D.
immutable d = msecs(45);
auto beforeAD = SysTime(DateTime(1999, 7, 6, 12, 30, 33), d);
testST(beforeAD, 0, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, 1, SysTime(DateTime(1999, 7, 6, 13, 30, 33), d));
testST(beforeAD, 2, SysTime(DateTime(1999, 7, 6, 14, 30, 33), d));
testST(beforeAD, 3, SysTime(DateTime(1999, 7, 6, 15, 30, 33), d));
testST(beforeAD, 4, SysTime(DateTime(1999, 7, 6, 16, 30, 33), d));
testST(beforeAD, 5, SysTime(DateTime(1999, 7, 6, 17, 30, 33), d));
testST(beforeAD, 6, SysTime(DateTime(1999, 7, 6, 18, 30, 33), d));
testST(beforeAD, 7, SysTime(DateTime(1999, 7, 6, 19, 30, 33), d));
testST(beforeAD, 8, SysTime(DateTime(1999, 7, 6, 20, 30, 33), d));
testST(beforeAD, 9, SysTime(DateTime(1999, 7, 6, 21, 30, 33), d));
testST(beforeAD, 10, SysTime(DateTime(1999, 7, 6, 22, 30, 33), d));
testST(beforeAD, 11, SysTime(DateTime(1999, 7, 6, 23, 30, 33), d));
testST(beforeAD, 12, SysTime(DateTime(1999, 7, 6, 0, 30, 33), d));
testST(beforeAD, 13, SysTime(DateTime(1999, 7, 6, 1, 30, 33), d));
testST(beforeAD, 14, SysTime(DateTime(1999, 7, 6, 2, 30, 33), d));
testST(beforeAD, 15, SysTime(DateTime(1999, 7, 6, 3, 30, 33), d));
testST(beforeAD, 16, SysTime(DateTime(1999, 7, 6, 4, 30, 33), d));
testST(beforeAD, 17, SysTime(DateTime(1999, 7, 6, 5, 30, 33), d));
testST(beforeAD, 18, SysTime(DateTime(1999, 7, 6, 6, 30, 33), d));
testST(beforeAD, 19, SysTime(DateTime(1999, 7, 6, 7, 30, 33), d));
testST(beforeAD, 20, SysTime(DateTime(1999, 7, 6, 8, 30, 33), d));
testST(beforeAD, 21, SysTime(DateTime(1999, 7, 6, 9, 30, 33), d));
testST(beforeAD, 22, SysTime(DateTime(1999, 7, 6, 10, 30, 33), d));
testST(beforeAD, 23, SysTime(DateTime(1999, 7, 6, 11, 30, 33), d));
testST(beforeAD, 24, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, 25, SysTime(DateTime(1999, 7, 6, 13, 30, 33), d));
testST(beforeAD, 50, SysTime(DateTime(1999, 7, 6, 14, 30, 33), d));
testST(beforeAD, 10_000, SysTime(DateTime(1999, 7, 6, 4, 30, 33), d));
testST(beforeAD, -1, SysTime(DateTime(1999, 7, 6, 11, 30, 33), d));
testST(beforeAD, -2, SysTime(DateTime(1999, 7, 6, 10, 30, 33), d));
testST(beforeAD, -3, SysTime(DateTime(1999, 7, 6, 9, 30, 33), d));
testST(beforeAD, -4, SysTime(DateTime(1999, 7, 6, 8, 30, 33), d));
testST(beforeAD, -5, SysTime(DateTime(1999, 7, 6, 7, 30, 33), d));
testST(beforeAD, -6, SysTime(DateTime(1999, 7, 6, 6, 30, 33), d));
testST(beforeAD, -7, SysTime(DateTime(1999, 7, 6, 5, 30, 33), d));
testST(beforeAD, -8, SysTime(DateTime(1999, 7, 6, 4, 30, 33), d));
testST(beforeAD, -9, SysTime(DateTime(1999, 7, 6, 3, 30, 33), d));
testST(beforeAD, -10, SysTime(DateTime(1999, 7, 6, 2, 30, 33), d));
testST(beforeAD, -11, SysTime(DateTime(1999, 7, 6, 1, 30, 33), d));
testST(beforeAD, -12, SysTime(DateTime(1999, 7, 6, 0, 30, 33), d));
testST(beforeAD, -13, SysTime(DateTime(1999, 7, 6, 23, 30, 33), d));
testST(beforeAD, -14, SysTime(DateTime(1999, 7, 6, 22, 30, 33), d));
testST(beforeAD, -15, SysTime(DateTime(1999, 7, 6, 21, 30, 33), d));
testST(beforeAD, -16, SysTime(DateTime(1999, 7, 6, 20, 30, 33), d));
testST(beforeAD, -17, SysTime(DateTime(1999, 7, 6, 19, 30, 33), d));
testST(beforeAD, -18, SysTime(DateTime(1999, 7, 6, 18, 30, 33), d));
testST(beforeAD, -19, SysTime(DateTime(1999, 7, 6, 17, 30, 33), d));
testST(beforeAD, -20, SysTime(DateTime(1999, 7, 6, 16, 30, 33), d));
testST(beforeAD, -21, SysTime(DateTime(1999, 7, 6, 15, 30, 33), d));
testST(beforeAD, -22, SysTime(DateTime(1999, 7, 6, 14, 30, 33), d));
testST(beforeAD, -23, SysTime(DateTime(1999, 7, 6, 13, 30, 33), d));
testST(beforeAD, -24, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, -25, SysTime(DateTime(1999, 7, 6, 11, 30, 33), d));
testST(beforeAD, -50, SysTime(DateTime(1999, 7, 6, 10, 30, 33), d));
testST(beforeAD, -10_000, SysTime(DateTime(1999, 7, 6, 20, 30, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 0, 30, 33), d), 1, SysTime(DateTime(1999, 7, 6, 1, 30, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 0, 30, 33), d), 0, SysTime(DateTime(1999, 7, 6, 0, 30, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 0, 30, 33), d), -1, SysTime(DateTime(1999, 7, 6, 23, 30, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 23, 30, 33), d), 1, SysTime(DateTime(1999, 7, 6, 0, 30, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 23, 30, 33), d), 0, SysTime(DateTime(1999, 7, 6, 23, 30, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 23, 30, 33), d), -1, SysTime(DateTime(1999, 7, 6, 22, 30, 33), d));
testST(SysTime(DateTime(1999, 7, 31, 23, 30, 33), d), 1, SysTime(DateTime(1999, 7, 31, 0, 30, 33), d));
testST(SysTime(DateTime(1999, 8, 1, 0, 30, 33), d), -1, SysTime(DateTime(1999, 8, 1, 23, 30, 33), d));
testST(SysTime(DateTime(1999, 12, 31, 23, 30, 33), d), 1, SysTime(DateTime(1999, 12, 31, 0, 30, 33), d));
testST(SysTime(DateTime(2000, 1, 1, 0, 30, 33), d), -1, SysTime(DateTime(2000, 1, 1, 23, 30, 33), d));
testST(SysTime(DateTime(1999, 2, 28, 23, 30, 33), d), 25, SysTime(DateTime(1999, 2, 28, 0, 30, 33), d));
testST(SysTime(DateTime(1999, 3, 2, 0, 30, 33), d), -25, SysTime(DateTime(1999, 3, 2, 23, 30, 33), d));
testST(SysTime(DateTime(2000, 2, 28, 23, 30, 33), d), 25, SysTime(DateTime(2000, 2, 28, 0, 30, 33), d));
testST(SysTime(DateTime(2000, 3, 1, 0, 30, 33), d), -25, SysTime(DateTime(2000, 3, 1, 23, 30, 33), d));
// Test B.C.
auto beforeBC = SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d);
testST(beforeBC, 0, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, 1, SysTime(DateTime(-1999, 7, 6, 13, 30, 33), d));
testST(beforeBC, 2, SysTime(DateTime(-1999, 7, 6, 14, 30, 33), d));
testST(beforeBC, 3, SysTime(DateTime(-1999, 7, 6, 15, 30, 33), d));
testST(beforeBC, 4, SysTime(DateTime(-1999, 7, 6, 16, 30, 33), d));
testST(beforeBC, 5, SysTime(DateTime(-1999, 7, 6, 17, 30, 33), d));
testST(beforeBC, 6, SysTime(DateTime(-1999, 7, 6, 18, 30, 33), d));
testST(beforeBC, 7, SysTime(DateTime(-1999, 7, 6, 19, 30, 33), d));
testST(beforeBC, 8, SysTime(DateTime(-1999, 7, 6, 20, 30, 33), d));
testST(beforeBC, 9, SysTime(DateTime(-1999, 7, 6, 21, 30, 33), d));
testST(beforeBC, 10, SysTime(DateTime(-1999, 7, 6, 22, 30, 33), d));
testST(beforeBC, 11, SysTime(DateTime(-1999, 7, 6, 23, 30, 33), d));
testST(beforeBC, 12, SysTime(DateTime(-1999, 7, 6, 0, 30, 33), d));
testST(beforeBC, 13, SysTime(DateTime(-1999, 7, 6, 1, 30, 33), d));
testST(beforeBC, 14, SysTime(DateTime(-1999, 7, 6, 2, 30, 33), d));
testST(beforeBC, 15, SysTime(DateTime(-1999, 7, 6, 3, 30, 33), d));
testST(beforeBC, 16, SysTime(DateTime(-1999, 7, 6, 4, 30, 33), d));
testST(beforeBC, 17, SysTime(DateTime(-1999, 7, 6, 5, 30, 33), d));
testST(beforeBC, 18, SysTime(DateTime(-1999, 7, 6, 6, 30, 33), d));
testST(beforeBC, 19, SysTime(DateTime(-1999, 7, 6, 7, 30, 33), d));
testST(beforeBC, 20, SysTime(DateTime(-1999, 7, 6, 8, 30, 33), d));
testST(beforeBC, 21, SysTime(DateTime(-1999, 7, 6, 9, 30, 33), d));
testST(beforeBC, 22, SysTime(DateTime(-1999, 7, 6, 10, 30, 33), d));
testST(beforeBC, 23, SysTime(DateTime(-1999, 7, 6, 11, 30, 33), d));
testST(beforeBC, 24, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, 25, SysTime(DateTime(-1999, 7, 6, 13, 30, 33), d));
testST(beforeBC, 50, SysTime(DateTime(-1999, 7, 6, 14, 30, 33), d));
testST(beforeBC, 10_000, SysTime(DateTime(-1999, 7, 6, 4, 30, 33), d));
testST(beforeBC, -1, SysTime(DateTime(-1999, 7, 6, 11, 30, 33), d));
testST(beforeBC, -2, SysTime(DateTime(-1999, 7, 6, 10, 30, 33), d));
testST(beforeBC, -3, SysTime(DateTime(-1999, 7, 6, 9, 30, 33), d));
testST(beforeBC, -4, SysTime(DateTime(-1999, 7, 6, 8, 30, 33), d));
testST(beforeBC, -5, SysTime(DateTime(-1999, 7, 6, 7, 30, 33), d));
testST(beforeBC, -6, SysTime(DateTime(-1999, 7, 6, 6, 30, 33), d));
testST(beforeBC, -7, SysTime(DateTime(-1999, 7, 6, 5, 30, 33), d));
testST(beforeBC, -8, SysTime(DateTime(-1999, 7, 6, 4, 30, 33), d));
testST(beforeBC, -9, SysTime(DateTime(-1999, 7, 6, 3, 30, 33), d));
testST(beforeBC, -10, SysTime(DateTime(-1999, 7, 6, 2, 30, 33), d));
testST(beforeBC, -11, SysTime(DateTime(-1999, 7, 6, 1, 30, 33), d));
testST(beforeBC, -12, SysTime(DateTime(-1999, 7, 6, 0, 30, 33), d));
testST(beforeBC, -13, SysTime(DateTime(-1999, 7, 6, 23, 30, 33), d));
testST(beforeBC, -14, SysTime(DateTime(-1999, 7, 6, 22, 30, 33), d));
testST(beforeBC, -15, SysTime(DateTime(-1999, 7, 6, 21, 30, 33), d));
testST(beforeBC, -16, SysTime(DateTime(-1999, 7, 6, 20, 30, 33), d));
testST(beforeBC, -17, SysTime(DateTime(-1999, 7, 6, 19, 30, 33), d));
testST(beforeBC, -18, SysTime(DateTime(-1999, 7, 6, 18, 30, 33), d));
testST(beforeBC, -19, SysTime(DateTime(-1999, 7, 6, 17, 30, 33), d));
testST(beforeBC, -20, SysTime(DateTime(-1999, 7, 6, 16, 30, 33), d));
testST(beforeBC, -21, SysTime(DateTime(-1999, 7, 6, 15, 30, 33), d));
testST(beforeBC, -22, SysTime(DateTime(-1999, 7, 6, 14, 30, 33), d));
testST(beforeBC, -23, SysTime(DateTime(-1999, 7, 6, 13, 30, 33), d));
testST(beforeBC, -24, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, -25, SysTime(DateTime(-1999, 7, 6, 11, 30, 33), d));
testST(beforeBC, -50, SysTime(DateTime(-1999, 7, 6, 10, 30, 33), d));
testST(beforeBC, -10_000, SysTime(DateTime(-1999, 7, 6, 20, 30, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 0, 30, 33), d), 1, SysTime(DateTime(-1999, 7, 6, 1, 30, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 0, 30, 33), d), 0, SysTime(DateTime(-1999, 7, 6, 0, 30, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 0, 30, 33), d), -1, SysTime(DateTime(-1999, 7, 6, 23, 30, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 23, 30, 33), d), 1, SysTime(DateTime(-1999, 7, 6, 0, 30, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 23, 30, 33), d), 0, SysTime(DateTime(-1999, 7, 6, 23, 30, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 23, 30, 33), d), -1, SysTime(DateTime(-1999, 7, 6, 22, 30, 33), d));
testST(SysTime(DateTime(-1999, 7, 31, 23, 30, 33), d), 1, SysTime(DateTime(-1999, 7, 31, 0, 30, 33), d));
testST(SysTime(DateTime(-1999, 8, 1, 0, 30, 33), d), -1, SysTime(DateTime(-1999, 8, 1, 23, 30, 33), d));
testST(SysTime(DateTime(-2001, 12, 31, 23, 30, 33), d), 1, SysTime(DateTime(-2001, 12, 31, 0, 30, 33), d));
testST(SysTime(DateTime(-2000, 1, 1, 0, 30, 33), d), -1, SysTime(DateTime(-2000, 1, 1, 23, 30, 33), d));
testST(SysTime(DateTime(-2001, 2, 28, 23, 30, 33), d), 25, SysTime(DateTime(-2001, 2, 28, 0, 30, 33), d));
testST(SysTime(DateTime(-2001, 3, 2, 0, 30, 33), d), -25, SysTime(DateTime(-2001, 3, 2, 23, 30, 33), d));
testST(SysTime(DateTime(-2000, 2, 28, 23, 30, 33), d), 25, SysTime(DateTime(-2000, 2, 28, 0, 30, 33), d));
testST(SysTime(DateTime(-2000, 3, 1, 0, 30, 33), d), -25, SysTime(DateTime(-2000, 3, 1, 23, 30, 33), d));
// Test Both
testST(SysTime(DateTime(-1, 1, 1, 11, 30, 33), d), 17_546, SysTime(DateTime(-1, 1, 1, 13, 30, 33), d));
testST(SysTime(DateTime(1, 1, 1, 13, 30, 33), d), -17_546, SysTime(DateTime(1, 1, 1, 11, 30, 33), d));
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 0, 0));
sysTime.roll!"hours"(-1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 0, 0)));
sysTime.roll!"hours"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 59, 59), hnsecs(9_999_999));
sysTime.roll!"hours"(-1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.roll!"hours"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 31, 23, 0, 0));
sysTime.roll!"hours"(1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 0, 0, 0)));
sysTime.roll!"hours"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
sysTime.roll!"hours"(1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 0, 59, 59), hnsecs(9_999_999)));
sysTime.roll!"hours"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
sysTime.roll!"hours"(1).roll!"hours"(-67);
assert(sysTime == SysTime(DateTime(0, 12, 31, 5, 59, 59), hnsecs(9_999_999)));
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.roll!"hours"(4)));
//static assert(!__traits(compiles, ist.roll!"hours"(4)));
}
// Test roll!"minutes"().
@safe unittest
{
import core.time;
static void testST(SysTime orig, int minutes, in SysTime expected, size_t line = __LINE__)
{
orig.roll!"minutes"(minutes);
if (orig != expected)
throw new AssertError(format("Failed. actual [%s] != expected [%s]", orig, expected), __FILE__, line);
}
// Test A.D.
immutable d = usecs(7203);
auto beforeAD = SysTime(DateTime(1999, 7, 6, 12, 30, 33), d);
testST(beforeAD, 0, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, 1, SysTime(DateTime(1999, 7, 6, 12, 31, 33), d));
testST(beforeAD, 2, SysTime(DateTime(1999, 7, 6, 12, 32, 33), d));
testST(beforeAD, 3, SysTime(DateTime(1999, 7, 6, 12, 33, 33), d));
testST(beforeAD, 4, SysTime(DateTime(1999, 7, 6, 12, 34, 33), d));
testST(beforeAD, 5, SysTime(DateTime(1999, 7, 6, 12, 35, 33), d));
testST(beforeAD, 10, SysTime(DateTime(1999, 7, 6, 12, 40, 33), d));
testST(beforeAD, 15, SysTime(DateTime(1999, 7, 6, 12, 45, 33), d));
testST(beforeAD, 29, SysTime(DateTime(1999, 7, 6, 12, 59, 33), d));
testST(beforeAD, 30, SysTime(DateTime(1999, 7, 6, 12, 0, 33), d));
testST(beforeAD, 45, SysTime(DateTime(1999, 7, 6, 12, 15, 33), d));
testST(beforeAD, 60, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, 75, SysTime(DateTime(1999, 7, 6, 12, 45, 33), d));
testST(beforeAD, 90, SysTime(DateTime(1999, 7, 6, 12, 0, 33), d));
testST(beforeAD, 100, SysTime(DateTime(1999, 7, 6, 12, 10, 33), d));
testST(beforeAD, 689, SysTime(DateTime(1999, 7, 6, 12, 59, 33), d));
testST(beforeAD, 690, SysTime(DateTime(1999, 7, 6, 12, 0, 33), d));
testST(beforeAD, 691, SysTime(DateTime(1999, 7, 6, 12, 1, 33), d));
testST(beforeAD, 960, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, 1439, SysTime(DateTime(1999, 7, 6, 12, 29, 33), d));
testST(beforeAD, 1440, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, 1441, SysTime(DateTime(1999, 7, 6, 12, 31, 33), d));
testST(beforeAD, 2880, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, -1, SysTime(DateTime(1999, 7, 6, 12, 29, 33), d));
testST(beforeAD, -2, SysTime(DateTime(1999, 7, 6, 12, 28, 33), d));
testST(beforeAD, -3, SysTime(DateTime(1999, 7, 6, 12, 27, 33), d));
testST(beforeAD, -4, SysTime(DateTime(1999, 7, 6, 12, 26, 33), d));
testST(beforeAD, -5, SysTime(DateTime(1999, 7, 6, 12, 25, 33), d));
testST(beforeAD, -10, SysTime(DateTime(1999, 7, 6, 12, 20, 33), d));
testST(beforeAD, -15, SysTime(DateTime(1999, 7, 6, 12, 15, 33), d));
testST(beforeAD, -29, SysTime(DateTime(1999, 7, 6, 12, 1, 33), d));
testST(beforeAD, -30, SysTime(DateTime(1999, 7, 6, 12, 0, 33), d));
testST(beforeAD, -45, SysTime(DateTime(1999, 7, 6, 12, 45, 33), d));
testST(beforeAD, -60, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, -75, SysTime(DateTime(1999, 7, 6, 12, 15, 33), d));
testST(beforeAD, -90, SysTime(DateTime(1999, 7, 6, 12, 0, 33), d));
testST(beforeAD, -100, SysTime(DateTime(1999, 7, 6, 12, 50, 33), d));
testST(beforeAD, -749, SysTime(DateTime(1999, 7, 6, 12, 1, 33), d));
testST(beforeAD, -750, SysTime(DateTime(1999, 7, 6, 12, 0, 33), d));
testST(beforeAD, -751, SysTime(DateTime(1999, 7, 6, 12, 59, 33), d));
testST(beforeAD, -960, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, -1439, SysTime(DateTime(1999, 7, 6, 12, 31, 33), d));
testST(beforeAD, -1440, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, -1441, SysTime(DateTime(1999, 7, 6, 12, 29, 33), d));
testST(beforeAD, -2880, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 12, 0, 33), d), 1, SysTime(DateTime(1999, 7, 6, 12, 1, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 12, 0, 33), d), 0, SysTime(DateTime(1999, 7, 6, 12, 0, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 12, 0, 33), d), -1, SysTime(DateTime(1999, 7, 6, 12, 59, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 11, 59, 33), d), 1, SysTime(DateTime(1999, 7, 6, 11, 0, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 11, 59, 33), d), 0, SysTime(DateTime(1999, 7, 6, 11, 59, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 11, 59, 33), d), -1, SysTime(DateTime(1999, 7, 6, 11, 58, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 0, 0, 33), d), 1, SysTime(DateTime(1999, 7, 6, 0, 1, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 0, 0, 33), d), 0, SysTime(DateTime(1999, 7, 6, 0, 0, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 0, 0, 33), d), -1, SysTime(DateTime(1999, 7, 6, 0, 59, 33), d));
testST(SysTime(DateTime(1999, 7, 5, 23, 59, 33), d), 1, SysTime(DateTime(1999, 7, 5, 23, 0, 33), d));
testST(SysTime(DateTime(1999, 7, 5, 23, 59, 33), d), 0, SysTime(DateTime(1999, 7, 5, 23, 59, 33), d));
testST(SysTime(DateTime(1999, 7, 5, 23, 59, 33), d), -1, SysTime(DateTime(1999, 7, 5, 23, 58, 33), d));
testST(SysTime(DateTime(1998, 12, 31, 23, 59, 33), d), 1, SysTime(DateTime(1998, 12, 31, 23, 0, 33), d));
testST(SysTime(DateTime(1998, 12, 31, 23, 59, 33), d), 0, SysTime(DateTime(1998, 12, 31, 23, 59, 33), d));
testST(SysTime(DateTime(1998, 12, 31, 23, 59, 33), d), -1, SysTime(DateTime(1998, 12, 31, 23, 58, 33), d));
// Test B.C.
auto beforeBC = SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d);
testST(beforeBC, 0, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, 1, SysTime(DateTime(-1999, 7, 6, 12, 31, 33), d));
testST(beforeBC, 2, SysTime(DateTime(-1999, 7, 6, 12, 32, 33), d));
testST(beforeBC, 3, SysTime(DateTime(-1999, 7, 6, 12, 33, 33), d));
testST(beforeBC, 4, SysTime(DateTime(-1999, 7, 6, 12, 34, 33), d));
testST(beforeBC, 5, SysTime(DateTime(-1999, 7, 6, 12, 35, 33), d));
testST(beforeBC, 10, SysTime(DateTime(-1999, 7, 6, 12, 40, 33), d));
testST(beforeBC, 15, SysTime(DateTime(-1999, 7, 6, 12, 45, 33), d));
testST(beforeBC, 29, SysTime(DateTime(-1999, 7, 6, 12, 59, 33), d));
testST(beforeBC, 30, SysTime(DateTime(-1999, 7, 6, 12, 0, 33), d));
testST(beforeBC, 45, SysTime(DateTime(-1999, 7, 6, 12, 15, 33), d));
testST(beforeBC, 60, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, 75, SysTime(DateTime(-1999, 7, 6, 12, 45, 33), d));
testST(beforeBC, 90, SysTime(DateTime(-1999, 7, 6, 12, 0, 33), d));
testST(beforeBC, 100, SysTime(DateTime(-1999, 7, 6, 12, 10, 33), d));
testST(beforeBC, 689, SysTime(DateTime(-1999, 7, 6, 12, 59, 33), d));
testST(beforeBC, 690, SysTime(DateTime(-1999, 7, 6, 12, 0, 33), d));
testST(beforeBC, 691, SysTime(DateTime(-1999, 7, 6, 12, 1, 33), d));
testST(beforeBC, 960, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, 1439, SysTime(DateTime(-1999, 7, 6, 12, 29, 33), d));
testST(beforeBC, 1440, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, 1441, SysTime(DateTime(-1999, 7, 6, 12, 31, 33), d));
testST(beforeBC, 2880, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, -1, SysTime(DateTime(-1999, 7, 6, 12, 29, 33), d));
testST(beforeBC, -2, SysTime(DateTime(-1999, 7, 6, 12, 28, 33), d));
testST(beforeBC, -3, SysTime(DateTime(-1999, 7, 6, 12, 27, 33), d));
testST(beforeBC, -4, SysTime(DateTime(-1999, 7, 6, 12, 26, 33), d));
testST(beforeBC, -5, SysTime(DateTime(-1999, 7, 6, 12, 25, 33), d));
testST(beforeBC, -10, SysTime(DateTime(-1999, 7, 6, 12, 20, 33), d));
testST(beforeBC, -15, SysTime(DateTime(-1999, 7, 6, 12, 15, 33), d));
testST(beforeBC, -29, SysTime(DateTime(-1999, 7, 6, 12, 1, 33), d));
testST(beforeBC, -30, SysTime(DateTime(-1999, 7, 6, 12, 0, 33), d));
testST(beforeBC, -45, SysTime(DateTime(-1999, 7, 6, 12, 45, 33), d));
testST(beforeBC, -60, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, -75, SysTime(DateTime(-1999, 7, 6, 12, 15, 33), d));
testST(beforeBC, -90, SysTime(DateTime(-1999, 7, 6, 12, 0, 33), d));
testST(beforeBC, -100, SysTime(DateTime(-1999, 7, 6, 12, 50, 33), d));
testST(beforeBC, -749, SysTime(DateTime(-1999, 7, 6, 12, 1, 33), d));
testST(beforeBC, -750, SysTime(DateTime(-1999, 7, 6, 12, 0, 33), d));
testST(beforeBC, -751, SysTime(DateTime(-1999, 7, 6, 12, 59, 33), d));
testST(beforeBC, -960, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, -1439, SysTime(DateTime(-1999, 7, 6, 12, 31, 33), d));
testST(beforeBC, -1440, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, -1441, SysTime(DateTime(-1999, 7, 6, 12, 29, 33), d));
testST(beforeBC, -2880, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 12, 0, 33), d), 1, SysTime(DateTime(-1999, 7, 6, 12, 1, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 12, 0, 33), d), 0, SysTime(DateTime(-1999, 7, 6, 12, 0, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 12, 0, 33), d), -1, SysTime(DateTime(-1999, 7, 6, 12, 59, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 11, 59, 33), d), 1, SysTime(DateTime(-1999, 7, 6, 11, 0, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 11, 59, 33), d), 0, SysTime(DateTime(-1999, 7, 6, 11, 59, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 11, 59, 33), d), -1, SysTime(DateTime(-1999, 7, 6, 11, 58, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 0, 0, 33), d), 1, SysTime(DateTime(-1999, 7, 6, 0, 1, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 0, 0, 33), d), 0, SysTime(DateTime(-1999, 7, 6, 0, 0, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 0, 0, 33), d), -1, SysTime(DateTime(-1999, 7, 6, 0, 59, 33), d));
testST(SysTime(DateTime(-1999, 7, 5, 23, 59, 33), d), 1, SysTime(DateTime(-1999, 7, 5, 23, 0, 33), d));
testST(SysTime(DateTime(-1999, 7, 5, 23, 59, 33), d), 0, SysTime(DateTime(-1999, 7, 5, 23, 59, 33), d));
testST(SysTime(DateTime(-1999, 7, 5, 23, 59, 33), d), -1, SysTime(DateTime(-1999, 7, 5, 23, 58, 33), d));
testST(SysTime(DateTime(-2000, 12, 31, 23, 59, 33), d), 1, SysTime(DateTime(-2000, 12, 31, 23, 0, 33), d));
testST(SysTime(DateTime(-2000, 12, 31, 23, 59, 33), d), 0, SysTime(DateTime(-2000, 12, 31, 23, 59, 33), d));
testST(SysTime(DateTime(-2000, 12, 31, 23, 59, 33), d), -1, SysTime(DateTime(-2000, 12, 31, 23, 58, 33), d));
// Test Both
testST(SysTime(DateTime(1, 1, 1, 0, 0, 0)), -1, SysTime(DateTime(1, 1, 1, 0, 59, 0)));
testST(SysTime(DateTime(0, 12, 31, 23, 59, 0)), 1, SysTime(DateTime(0, 12, 31, 23, 0, 0)));
testST(SysTime(DateTime(0, 1, 1, 0, 0, 0)), -1, SysTime(DateTime(0, 1, 1, 0, 59, 0)));
testST(SysTime(DateTime(-1, 12, 31, 23, 59, 0)), 1, SysTime(DateTime(-1, 12, 31, 23, 0, 0)));
testST(SysTime(DateTime(-1, 1, 1, 11, 30, 33), d), 1_052_760, SysTime(DateTime(-1, 1, 1, 11, 30, 33), d));
testST(SysTime(DateTime(1, 1, 1, 13, 30, 33), d), -1_052_760, SysTime(DateTime(1, 1, 1, 13, 30, 33), d));
testST(SysTime(DateTime(-1, 1, 1, 11, 30, 33), d), 1_052_782, SysTime(DateTime(-1, 1, 1, 11, 52, 33), d));
testST(SysTime(DateTime(1, 1, 1, 13, 52, 33), d), -1_052_782, SysTime(DateTime(1, 1, 1, 13, 30, 33), d));
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 0, 0));
sysTime.roll!"minutes"(-1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 59, 0)));
sysTime.roll!"minutes"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 0, 59), hnsecs(9_999_999));
sysTime.roll!"minutes"(-1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 59, 59), hnsecs(9_999_999)));
sysTime.roll!"minutes"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 31, 23, 59, 0));
sysTime.roll!"minutes"(1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 0, 0)));
sysTime.roll!"minutes"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 59, 0)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
sysTime.roll!"minutes"(1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 0, 59), hnsecs(9_999_999)));
sysTime.roll!"minutes"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
sysTime.roll!"minutes"(1).roll!"minutes"(-79);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 41, 59), hnsecs(9_999_999)));
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.roll!"minutes"(4)));
//static assert(!__traits(compiles, ist.roll!"minutes"(4)));
}
// Test roll!"seconds"().
@safe unittest
{
import core.time;
static void testST(SysTime orig, int seconds, in SysTime expected, size_t line = __LINE__)
{
orig.roll!"seconds"(seconds);
if (orig != expected)
throw new AssertError(format("Failed. actual [%s] != expected [%s]", orig, expected), __FILE__, line);
}
// Test A.D.
immutable d = msecs(274);
auto beforeAD = SysTime(DateTime(1999, 7, 6, 12, 30, 33), d);
testST(beforeAD, 0, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, 1, SysTime(DateTime(1999, 7, 6, 12, 30, 34), d));
testST(beforeAD, 2, SysTime(DateTime(1999, 7, 6, 12, 30, 35), d));
testST(beforeAD, 3, SysTime(DateTime(1999, 7, 6, 12, 30, 36), d));
testST(beforeAD, 4, SysTime(DateTime(1999, 7, 6, 12, 30, 37), d));
testST(beforeAD, 5, SysTime(DateTime(1999, 7, 6, 12, 30, 38), d));
testST(beforeAD, 10, SysTime(DateTime(1999, 7, 6, 12, 30, 43), d));
testST(beforeAD, 15, SysTime(DateTime(1999, 7, 6, 12, 30, 48), d));
testST(beforeAD, 26, SysTime(DateTime(1999, 7, 6, 12, 30, 59), d));
testST(beforeAD, 27, SysTime(DateTime(1999, 7, 6, 12, 30, 0), d));
testST(beforeAD, 30, SysTime(DateTime(1999, 7, 6, 12, 30, 3), d));
testST(beforeAD, 59, SysTime(DateTime(1999, 7, 6, 12, 30, 32), d));
testST(beforeAD, 60, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, 61, SysTime(DateTime(1999, 7, 6, 12, 30, 34), d));
testST(beforeAD, 1766, SysTime(DateTime(1999, 7, 6, 12, 30, 59), d));
testST(beforeAD, 1767, SysTime(DateTime(1999, 7, 6, 12, 30, 0), d));
testST(beforeAD, 1768, SysTime(DateTime(1999, 7, 6, 12, 30, 1), d));
testST(beforeAD, 2007, SysTime(DateTime(1999, 7, 6, 12, 30, 0), d));
testST(beforeAD, 3599, SysTime(DateTime(1999, 7, 6, 12, 30, 32), d));
testST(beforeAD, 3600, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, 3601, SysTime(DateTime(1999, 7, 6, 12, 30, 34), d));
testST(beforeAD, 7200, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, -1, SysTime(DateTime(1999, 7, 6, 12, 30, 32), d));
testST(beforeAD, -2, SysTime(DateTime(1999, 7, 6, 12, 30, 31), d));
testST(beforeAD, -3, SysTime(DateTime(1999, 7, 6, 12, 30, 30), d));
testST(beforeAD, -4, SysTime(DateTime(1999, 7, 6, 12, 30, 29), d));
testST(beforeAD, -5, SysTime(DateTime(1999, 7, 6, 12, 30, 28), d));
testST(beforeAD, -10, SysTime(DateTime(1999, 7, 6, 12, 30, 23), d));
testST(beforeAD, -15, SysTime(DateTime(1999, 7, 6, 12, 30, 18), d));
testST(beforeAD, -33, SysTime(DateTime(1999, 7, 6, 12, 30, 0), d));
testST(beforeAD, -34, SysTime(DateTime(1999, 7, 6, 12, 30, 59), d));
testST(beforeAD, -35, SysTime(DateTime(1999, 7, 6, 12, 30, 58), d));
testST(beforeAD, -59, SysTime(DateTime(1999, 7, 6, 12, 30, 34), d));
testST(beforeAD, -60, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, -61, SysTime(DateTime(1999, 7, 6, 12, 30, 32), d));
testST(SysTime(DateTime(1999, 7, 6, 12, 30, 0), d), 1, SysTime(DateTime(1999, 7, 6, 12, 30, 1), d));
testST(SysTime(DateTime(1999, 7, 6, 12, 30, 0), d), 0, SysTime(DateTime(1999, 7, 6, 12, 30, 0), d));
testST(SysTime(DateTime(1999, 7, 6, 12, 30, 0), d), -1, SysTime(DateTime(1999, 7, 6, 12, 30, 59), d));
testST(SysTime(DateTime(1999, 7, 6, 12, 0, 0), d), 1, SysTime(DateTime(1999, 7, 6, 12, 0, 1), d));
testST(SysTime(DateTime(1999, 7, 6, 12, 0, 0), d), 0, SysTime(DateTime(1999, 7, 6, 12, 0, 0), d));
testST(SysTime(DateTime(1999, 7, 6, 12, 0, 0), d), -1, SysTime(DateTime(1999, 7, 6, 12, 0, 59), d));
testST(SysTime(DateTime(1999, 7, 6, 0, 0, 0), d), 1, SysTime(DateTime(1999, 7, 6, 0, 0, 1), d));
testST(SysTime(DateTime(1999, 7, 6, 0, 0, 0), d), 0, SysTime(DateTime(1999, 7, 6, 0, 0, 0), d));
testST(SysTime(DateTime(1999, 7, 6, 0, 0, 0), d), -1, SysTime(DateTime(1999, 7, 6, 0, 0, 59), d));
testST(SysTime(DateTime(1999, 7, 5, 23, 59, 59), d), 1, SysTime(DateTime(1999, 7, 5, 23, 59, 0), d));
testST(SysTime(DateTime(1999, 7, 5, 23, 59, 59), d), 0, SysTime(DateTime(1999, 7, 5, 23, 59, 59), d));
testST(SysTime(DateTime(1999, 7, 5, 23, 59, 59), d), -1, SysTime(DateTime(1999, 7, 5, 23, 59, 58), d));
testST(SysTime(DateTime(1998, 12, 31, 23, 59, 59), d), 1, SysTime(DateTime(1998, 12, 31, 23, 59, 0), d));
testST(SysTime(DateTime(1998, 12, 31, 23, 59, 59), d), 0, SysTime(DateTime(1998, 12, 31, 23, 59, 59), d));
testST(SysTime(DateTime(1998, 12, 31, 23, 59, 59), d), -1, SysTime(DateTime(1998, 12, 31, 23, 59, 58), d));
// Test B.C.
auto beforeBC = SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d);
testST(beforeBC, 0, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, 1, SysTime(DateTime(-1999, 7, 6, 12, 30, 34), d));
testST(beforeBC, 2, SysTime(DateTime(-1999, 7, 6, 12, 30, 35), d));
testST(beforeBC, 3, SysTime(DateTime(-1999, 7, 6, 12, 30, 36), d));
testST(beforeBC, 4, SysTime(DateTime(-1999, 7, 6, 12, 30, 37), d));
testST(beforeBC, 5, SysTime(DateTime(-1999, 7, 6, 12, 30, 38), d));
testST(beforeBC, 10, SysTime(DateTime(-1999, 7, 6, 12, 30, 43), d));
testST(beforeBC, 15, SysTime(DateTime(-1999, 7, 6, 12, 30, 48), d));
testST(beforeBC, 26, SysTime(DateTime(-1999, 7, 6, 12, 30, 59), d));
testST(beforeBC, 27, SysTime(DateTime(-1999, 7, 6, 12, 30, 0), d));
testST(beforeBC, 30, SysTime(DateTime(-1999, 7, 6, 12, 30, 3), d));
testST(beforeBC, 59, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), d));
testST(beforeBC, 60, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, 61, SysTime(DateTime(-1999, 7, 6, 12, 30, 34), d));
testST(beforeBC, 1766, SysTime(DateTime(-1999, 7, 6, 12, 30, 59), d));
testST(beforeBC, 1767, SysTime(DateTime(-1999, 7, 6, 12, 30, 0), d));
testST(beforeBC, 1768, SysTime(DateTime(-1999, 7, 6, 12, 30, 1), d));
testST(beforeBC, 2007, SysTime(DateTime(-1999, 7, 6, 12, 30, 0), d));
testST(beforeBC, 3599, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), d));
testST(beforeBC, 3600, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, 3601, SysTime(DateTime(-1999, 7, 6, 12, 30, 34), d));
testST(beforeBC, 7200, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, -1, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), d));
testST(beforeBC, -2, SysTime(DateTime(-1999, 7, 6, 12, 30, 31), d));
testST(beforeBC, -3, SysTime(DateTime(-1999, 7, 6, 12, 30, 30), d));
testST(beforeBC, -4, SysTime(DateTime(-1999, 7, 6, 12, 30, 29), d));
testST(beforeBC, -5, SysTime(DateTime(-1999, 7, 6, 12, 30, 28), d));
testST(beforeBC, -10, SysTime(DateTime(-1999, 7, 6, 12, 30, 23), d));
testST(beforeBC, -15, SysTime(DateTime(-1999, 7, 6, 12, 30, 18), d));
testST(beforeBC, -33, SysTime(DateTime(-1999, 7, 6, 12, 30, 0), d));
testST(beforeBC, -34, SysTime(DateTime(-1999, 7, 6, 12, 30, 59), d));
testST(beforeBC, -35, SysTime(DateTime(-1999, 7, 6, 12, 30, 58), d));
testST(beforeBC, -59, SysTime(DateTime(-1999, 7, 6, 12, 30, 34), d));
testST(beforeBC, -60, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, -61, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), d));
testST(SysTime(DateTime(-1999, 7, 6, 12, 30, 0), d), 1, SysTime(DateTime(-1999, 7, 6, 12, 30, 1), d));
testST(SysTime(DateTime(-1999, 7, 6, 12, 30, 0), d), 0, SysTime(DateTime(-1999, 7, 6, 12, 30, 0), d));
testST(SysTime(DateTime(-1999, 7, 6, 12, 30, 0), d), -1, SysTime(DateTime(-1999, 7, 6, 12, 30, 59), d));
testST(SysTime(DateTime(-1999, 7, 6, 12, 0, 0), d), 1, SysTime(DateTime(-1999, 7, 6, 12, 0, 1), d));
testST(SysTime(DateTime(-1999, 7, 6, 12, 0, 0), d), 0, SysTime(DateTime(-1999, 7, 6, 12, 0, 0), d));
testST(SysTime(DateTime(-1999, 7, 6, 12, 0, 0), d), -1, SysTime(DateTime(-1999, 7, 6, 12, 0, 59), d));
testST(SysTime(DateTime(-1999, 7, 6, 0, 0, 0), d), 1, SysTime(DateTime(-1999, 7, 6, 0, 0, 1), d));
testST(SysTime(DateTime(-1999, 7, 6, 0, 0, 0), d), 0, SysTime(DateTime(-1999, 7, 6, 0, 0, 0), d));
testST(SysTime(DateTime(-1999, 7, 6, 0, 0, 0), d), -1, SysTime(DateTime(-1999, 7, 6, 0, 0, 59), d));
testST(SysTime(DateTime(-1999, 7, 5, 23, 59, 59), d), 1, SysTime(DateTime(-1999, 7, 5, 23, 59, 0), d));
testST(SysTime(DateTime(-1999, 7, 5, 23, 59, 59), d), 0, SysTime(DateTime(-1999, 7, 5, 23, 59, 59), d));
testST(SysTime(DateTime(-1999, 7, 5, 23, 59, 59), d), -1, SysTime(DateTime(-1999, 7, 5, 23, 59, 58), d));
testST(SysTime(DateTime(-2000, 12, 31, 23, 59, 59), d), 1, SysTime(DateTime(-2000, 12, 31, 23, 59, 0), d));
testST(SysTime(DateTime(-2000, 12, 31, 23, 59, 59), d), 0, SysTime(DateTime(-2000, 12, 31, 23, 59, 59), d));
testST(SysTime(DateTime(-2000, 12, 31, 23, 59, 59), d), -1, SysTime(DateTime(-2000, 12, 31, 23, 59, 58), d));
// Test Both
testST(SysTime(DateTime(1, 1, 1, 0, 0, 0), d), -1, SysTime(DateTime(1, 1, 1, 0, 0, 59), d));
testST(SysTime(DateTime(0, 12, 31, 23, 59, 59), d), 1, SysTime(DateTime(0, 12, 31, 23, 59, 0), d));
testST(SysTime(DateTime(0, 1, 1, 0, 0, 0), d), -1, SysTime(DateTime(0, 1, 1, 0, 0, 59), d));
testST(SysTime(DateTime(-1, 12, 31, 23, 59, 59), d), 1, SysTime(DateTime(-1, 12, 31, 23, 59, 0), d));
testST(SysTime(DateTime(-1, 1, 1, 11, 30, 33), d), 63_165_600L, SysTime(DateTime(-1, 1, 1, 11, 30, 33), d));
testST(SysTime(DateTime(1, 1, 1, 13, 30, 33), d), -63_165_600L, SysTime(DateTime(1, 1, 1, 13, 30, 33), d));
testST(SysTime(DateTime(-1, 1, 1, 11, 30, 33), d), 63_165_617L, SysTime(DateTime(-1, 1, 1, 11, 30, 50), d));
testST(SysTime(DateTime(1, 1, 1, 13, 30, 50), d), -63_165_617L, SysTime(DateTime(1, 1, 1, 13, 30, 33), d));
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 0, 0));
sysTime.roll!"seconds"(-1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 59)));
sysTime.roll!"seconds"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(9_999_999));
sysTime.roll!"seconds"(-1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 59), hnsecs(9_999_999)));
sysTime.roll!"seconds"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 31, 23, 59, 59));
sysTime.roll!"seconds"(1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 59, 0)));
sysTime.roll!"seconds"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 59, 59)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
sysTime.roll!"seconds"(1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 59, 0), hnsecs(9_999_999)));
sysTime.roll!"seconds"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
sysTime.roll!"seconds"(1).roll!"seconds"(-102);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 59, 18), hnsecs(9_999_999)));
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.roll!"seconds"(4)));
//static assert(!__traits(compiles, ist.roll!"seconds"(4)));
}
// Shares documentation with "days" version.
ref SysTime roll(string units)(long value) @safe nothrow
if (units == "msecs" || units == "usecs" || units == "hnsecs")
{
auto hnsecs = adjTime;
immutable days = splitUnitsFromHNSecs!"days"(hnsecs);
immutable negative = hnsecs < 0;
if (negative)
hnsecs += convert!("hours", "hnsecs")(24);
immutable seconds = splitUnitsFromHNSecs!"seconds"(hnsecs);
hnsecs += convert!(units, "hnsecs")(value);
hnsecs %= convert!("seconds", "hnsecs")(1);
if (hnsecs < 0)
hnsecs += convert!("seconds", "hnsecs")(1);
hnsecs += convert!("seconds", "hnsecs")(seconds);
if (negative)
hnsecs -= convert!("hours", "hnsecs")(24);
immutable newDaysHNSecs = convert!("days", "hnsecs")(days);
adjTime = newDaysHNSecs + hnsecs;
return this;
}
// Test roll!"msecs"().
@safe unittest
{
import core.time;
static void testST(SysTime orig, int milliseconds, in SysTime expected, size_t line = __LINE__)
{
orig.roll!"msecs"(milliseconds);
if (orig != expected)
throw new AssertError(format("Failed. actual [%s] != expected [%s]", orig, expected), __FILE__, line);
}
// Test A.D.
auto beforeAD = SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(274));
testST(beforeAD, 0, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(274)));
testST(beforeAD, 1, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(275)));
testST(beforeAD, 2, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(276)));
testST(beforeAD, 10, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(284)));
testST(beforeAD, 100, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(374)));
testST(beforeAD, 725, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(999)));
testST(beforeAD, 726, SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
testST(beforeAD, 1000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(274)));
testST(beforeAD, 1001, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(275)));
testST(beforeAD, 2000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(274)));
testST(beforeAD, 26_725, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(999)));
testST(beforeAD, 26_726, SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
testST(beforeAD, 26_727, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(1)));
testST(beforeAD, 1_766_725, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(999)));
testST(beforeAD, 1_766_726, SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
testST(beforeAD, -1, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(273)));
testST(beforeAD, -2, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(272)));
testST(beforeAD, -10, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(264)));
testST(beforeAD, -100, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(174)));
testST(beforeAD, -274, SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
testST(beforeAD, -275, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(999)));
testST(beforeAD, -1000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(274)));
testST(beforeAD, -1001, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(273)));
testST(beforeAD, -2000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(274)));
testST(beforeAD, -33_274, SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
testST(beforeAD, -33_275, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(999)));
testST(beforeAD, -1_833_274, SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
testST(beforeAD, -1_833_275, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(999)));
// Test B.C.
auto beforeBC = SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(274));
testST(beforeBC, 0, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(274)));
testST(beforeBC, 1, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(275)));
testST(beforeBC, 2, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(276)));
testST(beforeBC, 10, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(284)));
testST(beforeBC, 100, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(374)));
testST(beforeBC, 725, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(999)));
testST(beforeBC, 726, SysTime(DateTime(-1999, 7, 6, 12, 30, 33)));
testST(beforeBC, 1000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(274)));
testST(beforeBC, 1001, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(275)));
testST(beforeBC, 2000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(274)));
testST(beforeBC, 26_725, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(999)));
testST(beforeBC, 26_726, SysTime(DateTime(-1999, 7, 6, 12, 30, 33)));
testST(beforeBC, 26_727, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(1)));
testST(beforeBC, 1_766_725, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(999)));
testST(beforeBC, 1_766_726, SysTime(DateTime(-1999, 7, 6, 12, 30, 33)));
testST(beforeBC, -1, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(273)));
testST(beforeBC, -2, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(272)));
testST(beforeBC, -10, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(264)));
testST(beforeBC, -100, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(174)));
testST(beforeBC, -274, SysTime(DateTime(-1999, 7, 6, 12, 30, 33)));
testST(beforeBC, -275, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(999)));
testST(beforeBC, -1000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(274)));
testST(beforeBC, -1001, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(273)));
testST(beforeBC, -2000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(274)));
testST(beforeBC, -33_274, SysTime(DateTime(-1999, 7, 6, 12, 30, 33)));
testST(beforeBC, -33_275, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(999)));
testST(beforeBC, -1_833_274, SysTime(DateTime(-1999, 7, 6, 12, 30, 33)));
testST(beforeBC, -1_833_275, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(999)));
// Test Both
auto beforeBoth1 = SysTime(DateTime(1, 1, 1, 0, 0, 0));
testST(beforeBoth1, 1, SysTime(DateTime(1, 1, 1, 0, 0, 0), msecs(1)));
testST(beforeBoth1, 0, SysTime(DateTime(1, 1, 1, 0, 0, 0)));
testST(beforeBoth1, -1, SysTime(DateTime(1, 1, 1, 0, 0, 0), msecs(999)));
testST(beforeBoth1, -2, SysTime(DateTime(1, 1, 1, 0, 0, 0), msecs(998)));
testST(beforeBoth1, -1000, SysTime(DateTime(1, 1, 1, 0, 0, 0)));
testST(beforeBoth1, -2000, SysTime(DateTime(1, 1, 1, 0, 0, 0)));
testST(beforeBoth1, -2555, SysTime(DateTime(1, 1, 1, 0, 0, 0), msecs(445)));
auto beforeBoth2 = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
testST(beforeBoth2, -1, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_989_999)));
testST(beforeBoth2, 0, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
testST(beforeBoth2, 1, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9999)));
testST(beforeBoth2, 2, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(19_999)));
testST(beforeBoth2, 1000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
testST(beforeBoth2, 2000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
testST(beforeBoth2, 2555, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(5_549_999)));
{
auto st = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
st.roll!"msecs"(1202).roll!"msecs"(-703);
assert(st == SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(4_989_999)));
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.addMSecs(4)));
//static assert(!__traits(compiles, ist.addMSecs(4)));
}
// Test roll!"usecs"().
@safe unittest
{
import core.time;
static void testST(SysTime orig, long microseconds, in SysTime expected, size_t line = __LINE__)
{
orig.roll!"usecs"(microseconds);
if (orig != expected)
throw new AssertError(format("Failed. actual [%s] != expected [%s]", orig, expected), __FILE__, line);
}
// Test A.D.
auto beforeAD = SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(274));
testST(beforeAD, 0, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(274)));
testST(beforeAD, 1, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(275)));
testST(beforeAD, 2, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(276)));
testST(beforeAD, 10, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(284)));
testST(beforeAD, 100, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(374)));
testST(beforeAD, 725, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(999)));
testST(beforeAD, 726, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(1000)));
testST(beforeAD, 1000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(1274)));
testST(beforeAD, 1001, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(1275)));
testST(beforeAD, 2000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(2274)));
testST(beforeAD, 26_725, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(26_999)));
testST(beforeAD, 26_726, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(27_000)));
testST(beforeAD, 26_727, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(27_001)));
testST(beforeAD, 1_766_725, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(766_999)));
testST(beforeAD, 1_766_726, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(767_000)));
testST(beforeAD, 1_000_000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(274)));
testST(beforeAD, 60_000_000L, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(274)));
testST(beforeAD, 3_600_000_000L, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(274)));
testST(beforeAD, -1, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(273)));
testST(beforeAD, -2, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(272)));
testST(beforeAD, -10, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(264)));
testST(beforeAD, -100, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(174)));
testST(beforeAD, -274, SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
testST(beforeAD, -275, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(999_999)));
testST(beforeAD, -1000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(999_274)));
testST(beforeAD, -1001, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(999_273)));
testST(beforeAD, -2000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(998_274)));
testST(beforeAD, -33_274, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(967_000)));
testST(beforeAD, -33_275, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(966_999)));
testST(beforeAD, -1_833_274, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(167_000)));
testST(beforeAD, -1_833_275, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(166_999)));
testST(beforeAD, -1_000_000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(274)));
testST(beforeAD, -60_000_000L, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(274)));
testST(beforeAD, -3_600_000_000L, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(274)));
// Test B.C.
auto beforeBC = SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(274));
testST(beforeBC, 0, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(274)));
testST(beforeBC, 1, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(275)));
testST(beforeBC, 2, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(276)));
testST(beforeBC, 10, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(284)));
testST(beforeBC, 100, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(374)));
testST(beforeBC, 725, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(999)));
testST(beforeBC, 726, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(1000)));
testST(beforeBC, 1000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(1274)));
testST(beforeBC, 1001, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(1275)));
testST(beforeBC, 2000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(2274)));
testST(beforeBC, 26_725, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(26_999)));
testST(beforeBC, 26_726, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(27_000)));
testST(beforeBC, 26_727, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(27_001)));
testST(beforeBC, 1_766_725, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(766_999)));
testST(beforeBC, 1_766_726, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(767_000)));
testST(beforeBC, 1_000_000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(274)));
testST(beforeBC, 60_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(274)));
testST(beforeBC, 3_600_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(274)));
testST(beforeBC, -1, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(273)));
testST(beforeBC, -2, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(272)));
testST(beforeBC, -10, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(264)));
testST(beforeBC, -100, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(174)));
testST(beforeBC, -274, SysTime(DateTime(-1999, 7, 6, 12, 30, 33)));
testST(beforeBC, -275, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(999_999)));
testST(beforeBC, -1000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(999_274)));
testST(beforeBC, -1001, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(999_273)));
testST(beforeBC, -2000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(998_274)));
testST(beforeBC, -33_274, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(967_000)));
testST(beforeBC, -33_275, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(966_999)));
testST(beforeBC, -1_833_274, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(167_000)));
testST(beforeBC, -1_833_275, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(166_999)));
testST(beforeBC, -1_000_000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(274)));
testST(beforeBC, -60_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(274)));
testST(beforeBC, -3_600_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(274)));
// Test Both
auto beforeBoth1 = SysTime(DateTime(1, 1, 1, 0, 0, 0));
testST(beforeBoth1, 1, SysTime(DateTime(1, 1, 1, 0, 0, 0), usecs(1)));
testST(beforeBoth1, 0, SysTime(DateTime(1, 1, 1, 0, 0, 0)));
testST(beforeBoth1, -1, SysTime(DateTime(1, 1, 1, 0, 0, 0), usecs(999_999)));
testST(beforeBoth1, -2, SysTime(DateTime(1, 1, 1, 0, 0, 0), usecs(999_998)));
testST(beforeBoth1, -1000, SysTime(DateTime(1, 1, 1, 0, 0, 0), usecs(999_000)));
testST(beforeBoth1, -2000, SysTime(DateTime(1, 1, 1, 0, 0, 0), usecs(998_000)));
testST(beforeBoth1, -2555, SysTime(DateTime(1, 1, 1, 0, 0, 0), usecs(997_445)));
testST(beforeBoth1, -1_000_000, SysTime(DateTime(1, 1, 1, 0, 0, 0)));
testST(beforeBoth1, -2_000_000, SysTime(DateTime(1, 1, 1, 0, 0, 0)));
testST(beforeBoth1, -2_333_333, SysTime(DateTime(1, 1, 1, 0, 0, 0), usecs(666_667)));
auto beforeBoth2 = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
testST(beforeBoth2, -1, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_989)));
testST(beforeBoth2, 0, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
testST(beforeBoth2, 1, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9)));
testST(beforeBoth2, 2, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(19)));
testST(beforeBoth2, 1000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9999)));
testST(beforeBoth2, 2000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(19_999)));
testST(beforeBoth2, 2555, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(25_549)));
testST(beforeBoth2, 1_000_000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
testST(beforeBoth2, 2_000_000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
testST(beforeBoth2, 2_333_333, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(3_333_329)));
{
auto st = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
st.roll!"usecs"(9_020_027);
assert(st == SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(200_269)));
}
{
auto st = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
st.roll!"usecs"(9_020_027).roll!"usecs"(-70_034);
assert(st == SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_499_929)));
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.roll!"usecs"(4)));
//static assert(!__traits(compiles, ist.roll!"usecs"(4)));
}
// Test roll!"hnsecs"().
@safe unittest
{
import core.time;
static void testST(SysTime orig, long hnsecs, in SysTime expected, size_t line = __LINE__)
{
orig.roll!"hnsecs"(hnsecs);
if (orig != expected)
throw new AssertError(format("Failed. actual [%s] != expected [%s]", orig, expected), __FILE__, line);
}
// Test A.D.
auto dtAD = DateTime(1999, 7, 6, 12, 30, 33);
auto beforeAD = SysTime(dtAD, hnsecs(274));
testST(beforeAD, 0, SysTime(dtAD, hnsecs(274)));
testST(beforeAD, 1, SysTime(dtAD, hnsecs(275)));
testST(beforeAD, 2, SysTime(dtAD, hnsecs(276)));
testST(beforeAD, 10, SysTime(dtAD, hnsecs(284)));
testST(beforeAD, 100, SysTime(dtAD, hnsecs(374)));
testST(beforeAD, 725, SysTime(dtAD, hnsecs(999)));
testST(beforeAD, 726, SysTime(dtAD, hnsecs(1000)));
testST(beforeAD, 1000, SysTime(dtAD, hnsecs(1274)));
testST(beforeAD, 1001, SysTime(dtAD, hnsecs(1275)));
testST(beforeAD, 2000, SysTime(dtAD, hnsecs(2274)));
testST(beforeAD, 26_725, SysTime(dtAD, hnsecs(26_999)));
testST(beforeAD, 26_726, SysTime(dtAD, hnsecs(27_000)));
testST(beforeAD, 26_727, SysTime(dtAD, hnsecs(27_001)));
testST(beforeAD, 1_766_725, SysTime(dtAD, hnsecs(1_766_999)));
testST(beforeAD, 1_766_726, SysTime(dtAD, hnsecs(1_767_000)));
testST(beforeAD, 1_000_000, SysTime(dtAD, hnsecs(1_000_274)));
testST(beforeAD, 60_000_000L, SysTime(dtAD, hnsecs(274)));
testST(beforeAD, 3_600_000_000L, SysTime(dtAD, hnsecs(274)));
testST(beforeAD, 600_000_000L, SysTime(dtAD, hnsecs(274)));
testST(beforeAD, 36_000_000_000L, SysTime(dtAD, hnsecs(274)));
testST(beforeAD, -1, SysTime(dtAD, hnsecs(273)));
testST(beforeAD, -2, SysTime(dtAD, hnsecs(272)));
testST(beforeAD, -10, SysTime(dtAD, hnsecs(264)));
testST(beforeAD, -100, SysTime(dtAD, hnsecs(174)));
testST(beforeAD, -274, SysTime(dtAD));
testST(beforeAD, -275, SysTime(dtAD, hnsecs(9_999_999)));
testST(beforeAD, -1000, SysTime(dtAD, hnsecs(9_999_274)));
testST(beforeAD, -1001, SysTime(dtAD, hnsecs(9_999_273)));
testST(beforeAD, -2000, SysTime(dtAD, hnsecs(9_998_274)));
testST(beforeAD, -33_274, SysTime(dtAD, hnsecs(9_967_000)));
testST(beforeAD, -33_275, SysTime(dtAD, hnsecs(9_966_999)));
testST(beforeAD, -1_833_274, SysTime(dtAD, hnsecs(8_167_000)));
testST(beforeAD, -1_833_275, SysTime(dtAD, hnsecs(8_166_999)));
testST(beforeAD, -1_000_000, SysTime(dtAD, hnsecs(9_000_274)));
testST(beforeAD, -60_000_000L, SysTime(dtAD, hnsecs(274)));
testST(beforeAD, -3_600_000_000L, SysTime(dtAD, hnsecs(274)));
testST(beforeAD, -600_000_000L, SysTime(dtAD, hnsecs(274)));
testST(beforeAD, -36_000_000_000L, SysTime(dtAD, hnsecs(274)));
// Test B.C.
auto dtBC = DateTime(-1999, 7, 6, 12, 30, 33);
auto beforeBC = SysTime(dtBC, hnsecs(274));
testST(beforeBC, 0, SysTime(dtBC, hnsecs(274)));
testST(beforeBC, 1, SysTime(dtBC, hnsecs(275)));
testST(beforeBC, 2, SysTime(dtBC, hnsecs(276)));
testST(beforeBC, 10, SysTime(dtBC, hnsecs(284)));
testST(beforeBC, 100, SysTime(dtBC, hnsecs(374)));
testST(beforeBC, 725, SysTime(dtBC, hnsecs(999)));
testST(beforeBC, 726, SysTime(dtBC, hnsecs(1000)));
testST(beforeBC, 1000, SysTime(dtBC, hnsecs(1274)));
testST(beforeBC, 1001, SysTime(dtBC, hnsecs(1275)));
testST(beforeBC, 2000, SysTime(dtBC, hnsecs(2274)));
testST(beforeBC, 26_725, SysTime(dtBC, hnsecs(26_999)));
testST(beforeBC, 26_726, SysTime(dtBC, hnsecs(27_000)));
testST(beforeBC, 26_727, SysTime(dtBC, hnsecs(27_001)));
testST(beforeBC, 1_766_725, SysTime(dtBC, hnsecs(1_766_999)));
testST(beforeBC, 1_766_726, SysTime(dtBC, hnsecs(1_767_000)));
testST(beforeBC, 1_000_000, SysTime(dtBC, hnsecs(1_000_274)));
testST(beforeBC, 60_000_000L, SysTime(dtBC, hnsecs(274)));
testST(beforeBC, 3_600_000_000L, SysTime(dtBC, hnsecs(274)));
testST(beforeBC, 600_000_000L, SysTime(dtBC, hnsecs(274)));
testST(beforeBC, 36_000_000_000L, SysTime(dtBC, hnsecs(274)));
testST(beforeBC, -1, SysTime(dtBC, hnsecs(273)));
testST(beforeBC, -2, SysTime(dtBC, hnsecs(272)));
testST(beforeBC, -10, SysTime(dtBC, hnsecs(264)));
testST(beforeBC, -100, SysTime(dtBC, hnsecs(174)));
testST(beforeBC, -274, SysTime(dtBC));
testST(beforeBC, -275, SysTime(dtBC, hnsecs(9_999_999)));
testST(beforeBC, -1000, SysTime(dtBC, hnsecs(9_999_274)));
testST(beforeBC, -1001, SysTime(dtBC, hnsecs(9_999_273)));
testST(beforeBC, -2000, SysTime(dtBC, hnsecs(9_998_274)));
testST(beforeBC, -33_274, SysTime(dtBC, hnsecs(9_967_000)));
testST(beforeBC, -33_275, SysTime(dtBC, hnsecs(9_966_999)));
testST(beforeBC, -1_833_274, SysTime(dtBC, hnsecs(8_167_000)));
testST(beforeBC, -1_833_275, SysTime(dtBC, hnsecs(8_166_999)));
testST(beforeBC, -1_000_000, SysTime(dtBC, hnsecs(9_000_274)));
testST(beforeBC, -60_000_000L, SysTime(dtBC, hnsecs(274)));
testST(beforeBC, -3_600_000_000L, SysTime(dtBC, hnsecs(274)));
testST(beforeBC, -600_000_000L, SysTime(dtBC, hnsecs(274)));
testST(beforeBC, -36_000_000_000L, SysTime(dtBC, hnsecs(274)));
// Test Both
auto dtBoth1 = DateTime(1, 1, 1, 0, 0, 0);
auto beforeBoth1 = SysTime(dtBoth1);
testST(beforeBoth1, 1, SysTime(dtBoth1, hnsecs(1)));
testST(beforeBoth1, 0, SysTime(dtBoth1));
testST(beforeBoth1, -1, SysTime(dtBoth1, hnsecs(9_999_999)));
testST(beforeBoth1, -2, SysTime(dtBoth1, hnsecs(9_999_998)));
testST(beforeBoth1, -1000, SysTime(dtBoth1, hnsecs(9_999_000)));
testST(beforeBoth1, -2000, SysTime(dtBoth1, hnsecs(9_998_000)));
testST(beforeBoth1, -2555, SysTime(dtBoth1, hnsecs(9_997_445)));
testST(beforeBoth1, -1_000_000, SysTime(dtBoth1, hnsecs(9_000_000)));
testST(beforeBoth1, -2_000_000, SysTime(dtBoth1, hnsecs(8_000_000)));
testST(beforeBoth1, -2_333_333, SysTime(dtBoth1, hnsecs(7_666_667)));
testST(beforeBoth1, -10_000_000, SysTime(dtBoth1));
testST(beforeBoth1, -20_000_000, SysTime(dtBoth1));
testST(beforeBoth1, -20_888_888, SysTime(dtBoth1, hnsecs(9_111_112)));
auto dtBoth2 = DateTime(0, 12, 31, 23, 59, 59);
auto beforeBoth2 = SysTime(dtBoth2, hnsecs(9_999_999));
testST(beforeBoth2, -1, SysTime(dtBoth2, hnsecs(9_999_998)));
testST(beforeBoth2, 0, SysTime(dtBoth2, hnsecs(9_999_999)));
testST(beforeBoth2, 1, SysTime(dtBoth2));
testST(beforeBoth2, 2, SysTime(dtBoth2, hnsecs(1)));
testST(beforeBoth2, 1000, SysTime(dtBoth2, hnsecs(999)));
testST(beforeBoth2, 2000, SysTime(dtBoth2, hnsecs(1999)));
testST(beforeBoth2, 2555, SysTime(dtBoth2, hnsecs(2554)));
testST(beforeBoth2, 1_000_000, SysTime(dtBoth2, hnsecs(999_999)));
testST(beforeBoth2, 2_000_000, SysTime(dtBoth2, hnsecs(1_999_999)));
testST(beforeBoth2, 2_333_333, SysTime(dtBoth2, hnsecs(2_333_332)));
testST(beforeBoth2, 10_000_000, SysTime(dtBoth2, hnsecs(9_999_999)));
testST(beforeBoth2, 20_000_000, SysTime(dtBoth2, hnsecs(9_999_999)));
testST(beforeBoth2, 20_888_888, SysTime(dtBoth2, hnsecs(888_887)));
{
auto st = SysTime(dtBoth2, hnsecs(9_999_999));
st.roll!"hnsecs"(70_777_222).roll!"hnsecs"(-222_555_292);
assert(st == SysTime(dtBoth2, hnsecs(8_221_929)));
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.roll!"hnsecs"(4)));
//static assert(!__traits(compiles, ist.roll!"hnsecs"(4)));
}
/++
Gives the result of adding or subtracting a $(REF Duration, core,time)
from this $(LREF SysTime).
The legal types of arithmetic for $(LREF SysTime) using this operator
are
$(BOOKTABLE,
$(TR $(TD SysTime) $(TD +) $(TD Duration) $(TD -->) $(TD SysTime))
$(TR $(TD SysTime) $(TD -) $(TD Duration) $(TD -->) $(TD SysTime))
)
Params:
duration = The $(REF Duration, core,time) to add to or subtract from
this $(LREF SysTime).
+/
SysTime opBinary(string op)(Duration duration) @safe const pure nothrow
if (op == "+" || op == "-")
{
SysTime retval = SysTime(this._stdTime, this._timezone);
immutable hnsecs = duration.total!"hnsecs";
mixin("retval._stdTime " ~ op ~ "= hnsecs;");
return retval;
}
///
@safe unittest
{
import core.time : hours, seconds;
import std.datetime.date : DateTime;
assert(SysTime(DateTime(2015, 12, 31, 23, 59, 59)) + seconds(1) ==
SysTime(DateTime(2016, 1, 1, 0, 0, 0)));
assert(SysTime(DateTime(2015, 12, 31, 23, 59, 59)) + hours(1) ==
SysTime(DateTime(2016, 1, 1, 0, 59, 59)));
assert(SysTime(DateTime(2016, 1, 1, 0, 0, 0)) - seconds(1) ==
SysTime(DateTime(2015, 12, 31, 23, 59, 59)));
assert(SysTime(DateTime(2016, 1, 1, 0, 59, 59)) - hours(1) ==
SysTime(DateTime(2015, 12, 31, 23, 59, 59)));
}
@safe unittest
{
import core.time;
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_678));
assert(st + dur!"weeks"(7) == SysTime(DateTime(1999, 8, 24, 12, 30, 33), hnsecs(2_345_678)));
assert(st + dur!"weeks"(-7) == SysTime(DateTime(1999, 5, 18, 12, 30, 33), hnsecs(2_345_678)));
assert(st + dur!"days"(7) == SysTime(DateTime(1999, 7, 13, 12, 30, 33), hnsecs(2_345_678)));
assert(st + dur!"days"(-7) == SysTime(DateTime(1999, 6, 29, 12, 30, 33), hnsecs(2_345_678)));
assert(st + dur!"hours"(7) == SysTime(DateTime(1999, 7, 6, 19, 30, 33), hnsecs(2_345_678)));
assert(st + dur!"hours"(-7) == SysTime(DateTime(1999, 7, 6, 5, 30, 33), hnsecs(2_345_678)));
assert(st + dur!"minutes"(7) == SysTime(DateTime(1999, 7, 6, 12, 37, 33), hnsecs(2_345_678)));
assert(st + dur!"minutes"(-7) == SysTime(DateTime(1999, 7, 6, 12, 23, 33), hnsecs(2_345_678)));
assert(st + dur!"seconds"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 40), hnsecs(2_345_678)));
assert(st + dur!"seconds"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 26), hnsecs(2_345_678)));
assert(st + dur!"msecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_415_678)));
assert(st + dur!"msecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_275_678)));
assert(st + dur!"usecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_748)));
assert(st + dur!"usecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_608)));
assert(st + dur!"hnsecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_685)));
assert(st + dur!"hnsecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_671)));
assert(st - dur!"weeks"(-7) == SysTime(DateTime(1999, 8, 24, 12, 30, 33), hnsecs(2_345_678)));
assert(st - dur!"weeks"(7) == SysTime(DateTime(1999, 5, 18, 12, 30, 33), hnsecs(2_345_678)));
assert(st - dur!"days"(-7) == SysTime(DateTime(1999, 7, 13, 12, 30, 33), hnsecs(2_345_678)));
assert(st - dur!"days"(7) == SysTime(DateTime(1999, 6, 29, 12, 30, 33), hnsecs(2_345_678)));
assert(st - dur!"hours"(-7) == SysTime(DateTime(1999, 7, 6, 19, 30, 33), hnsecs(2_345_678)));
assert(st - dur!"hours"(7) == SysTime(DateTime(1999, 7, 6, 5, 30, 33), hnsecs(2_345_678)));
assert(st - dur!"minutes"(-7) == SysTime(DateTime(1999, 7, 6, 12, 37, 33), hnsecs(2_345_678)));
assert(st - dur!"minutes"(7) == SysTime(DateTime(1999, 7, 6, 12, 23, 33), hnsecs(2_345_678)));
assert(st - dur!"seconds"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 40), hnsecs(2_345_678)));
assert(st - dur!"seconds"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 26), hnsecs(2_345_678)));
assert(st - dur!"msecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_415_678)));
assert(st - dur!"msecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_275_678)));
assert(st - dur!"usecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_748)));
assert(st - dur!"usecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_608)));
assert(st - dur!"hnsecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_685)));
assert(st - dur!"hnsecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_671)));
static void testST(in SysTime orig, long hnsecs, in SysTime expected, size_t line = __LINE__)
{
auto result = orig + dur!"hnsecs"(hnsecs);
if (result != expected)
throw new AssertError(format("Failed. actual [%s] != expected [%s]", result, expected), __FILE__, line);
}
// Test A.D.
auto beforeAD = SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(274));
testST(beforeAD, 0, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(274)));
testST(beforeAD, 1, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(275)));
testST(beforeAD, 2, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(276)));
testST(beforeAD, 10, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(284)));
testST(beforeAD, 100, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(374)));
testST(beforeAD, 725, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(999)));
testST(beforeAD, 726, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(1000)));
testST(beforeAD, 1000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(1274)));
testST(beforeAD, 1001, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(1275)));
testST(beforeAD, 2000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2274)));
testST(beforeAD, 26_725, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(26_999)));
testST(beforeAD, 26_726, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(27_000)));
testST(beforeAD, 26_727, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(27_001)));
testST(beforeAD, 1_766_725, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(1_766_999)));
testST(beforeAD, 1_766_726, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(1_767_000)));
testST(beforeAD, 1_000_000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(1_000_274)));
testST(beforeAD, 60_000_000L, SysTime(DateTime(1999, 7, 6, 12, 30, 39), hnsecs(274)));
testST(beforeAD, 3_600_000_000L, SysTime(DateTime(1999, 7, 6, 12, 36, 33), hnsecs(274)));
testST(beforeAD, 600_000_000L, SysTime(DateTime(1999, 7, 6, 12, 31, 33), hnsecs(274)));
testST(beforeAD, 36_000_000_000L, SysTime(DateTime(1999, 7, 6, 13, 30, 33), hnsecs(274)));
testST(beforeAD, -1, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(273)));
testST(beforeAD, -2, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(272)));
testST(beforeAD, -10, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(264)));
testST(beforeAD, -100, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(174)));
testST(beforeAD, -274, SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
testST(beforeAD, -275, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_999_999)));
testST(beforeAD, -1000, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_999_274)));
testST(beforeAD, -1001, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_999_273)));
testST(beforeAD, -2000, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_998_274)));
testST(beforeAD, -33_274, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_967_000)));
testST(beforeAD, -33_275, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_966_999)));
testST(beforeAD, -1_833_274, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(8_167_000)));
testST(beforeAD, -1_833_275, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(8_166_999)));
testST(beforeAD, -1_000_000, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_000_274)));
testST(beforeAD, -60_000_000L, SysTime(DateTime(1999, 7, 6, 12, 30, 27), hnsecs(274)));
testST(beforeAD, -3_600_000_000L, SysTime(DateTime(1999, 7, 6, 12, 24, 33), hnsecs(274)));
testST(beforeAD, -600_000_000L, SysTime(DateTime(1999, 7, 6, 12, 29, 33), hnsecs(274)));
testST(beforeAD, -36_000_000_000L, SysTime(DateTime(1999, 7, 6, 11, 30, 33), hnsecs(274)));
// Test B.C.
auto beforeBC = SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(274));
testST(beforeBC, 0, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(274)));
testST(beforeBC, 1, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(275)));
testST(beforeBC, 2, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(276)));
testST(beforeBC, 10, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(284)));
testST(beforeBC, 100, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(374)));
testST(beforeBC, 725, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(999)));
testST(beforeBC, 726, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(1000)));
testST(beforeBC, 1000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(1274)));
testST(beforeBC, 1001, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(1275)));
testST(beforeBC, 2000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(2274)));
testST(beforeBC, 26_725, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(26_999)));
testST(beforeBC, 26_726, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(27_000)));
testST(beforeBC, 26_727, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(27_001)));
testST(beforeBC, 1_766_725, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(1_766_999)));
testST(beforeBC, 1_766_726, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(1_767_000)));
testST(beforeBC, 1_000_000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(1_000_274)));
testST(beforeBC, 60_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 30, 39), hnsecs(274)));
testST(beforeBC, 3_600_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 36, 33), hnsecs(274)));
testST(beforeBC, 600_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 31, 33), hnsecs(274)));
testST(beforeBC, 36_000_000_000L, SysTime(DateTime(-1999, 7, 6, 13, 30, 33), hnsecs(274)));
testST(beforeBC, -1, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(273)));
testST(beforeBC, -2, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(272)));
testST(beforeBC, -10, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(264)));
testST(beforeBC, -100, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(174)));
testST(beforeBC, -274, SysTime(DateTime(-1999, 7, 6, 12, 30, 33)));
testST(beforeBC, -275, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_999_999)));
testST(beforeBC, -1000, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_999_274)));
testST(beforeBC, -1001, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_999_273)));
testST(beforeBC, -2000, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_998_274)));
testST(beforeBC, -33_274, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_967_000)));
testST(beforeBC, -33_275, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_966_999)));
testST(beforeBC, -1_833_274, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(8_167_000)));
testST(beforeBC, -1_833_275, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(8_166_999)));
testST(beforeBC, -1_000_000, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_000_274)));
testST(beforeBC, -60_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 30, 27), hnsecs(274)));
testST(beforeBC, -3_600_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 24, 33), hnsecs(274)));
testST(beforeBC, -600_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 29, 33), hnsecs(274)));
testST(beforeBC, -36_000_000_000L, SysTime(DateTime(-1999, 7, 6, 11, 30, 33), hnsecs(274)));
// Test Both
auto beforeBoth1 = SysTime(DateTime(1, 1, 1, 0, 0, 0));
testST(beforeBoth1, 1, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1)));
testST(beforeBoth1, 0, SysTime(DateTime(1, 1, 1, 0, 0, 0)));
testST(beforeBoth1, -1, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
testST(beforeBoth1, -2, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_998)));
testST(beforeBoth1, -1000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_000)));
testST(beforeBoth1, -2000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_998_000)));
testST(beforeBoth1, -2555, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_997_445)));
testST(beforeBoth1, -1_000_000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_000_000)));
testST(beforeBoth1, -2_000_000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(8_000_000)));
testST(beforeBoth1, -2_333_333, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(7_666_667)));
testST(beforeBoth1, -10_000_000, SysTime(DateTime(0, 12, 31, 23, 59, 59)));
testST(beforeBoth1, -20_000_000, SysTime(DateTime(0, 12, 31, 23, 59, 58)));
testST(beforeBoth1, -20_888_888, SysTime(DateTime(0, 12, 31, 23, 59, 57), hnsecs(9_111_112)));
auto beforeBoth2 = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
testST(beforeBoth2, -1, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_998)));
testST(beforeBoth2, 0, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
testST(beforeBoth2, 1, SysTime(DateTime(1, 1, 1, 0, 0, 0)));
testST(beforeBoth2, 2, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1)));
testST(beforeBoth2, 1000, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(999)));
testST(beforeBoth2, 2000, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1999)));
testST(beforeBoth2, 2555, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(2554)));
testST(beforeBoth2, 1_000_000, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(999_999)));
testST(beforeBoth2, 2_000_000, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1_999_999)));
testST(beforeBoth2, 2_333_333, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(2_333_332)));
testST(beforeBoth2, 10_000_000, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(9_999_999)));
testST(beforeBoth2, 20_000_000, SysTime(DateTime(1, 1, 1, 0, 0, 1), hnsecs(9_999_999)));
testST(beforeBoth2, 20_888_888, SysTime(DateTime(1, 1, 1, 0, 0, 2), hnsecs(888_887)));
auto duration = dur!"seconds"(12);
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst + duration == SysTime(DateTime(1999, 7, 6, 12, 30, 45)));
//assert(ist + duration == SysTime(DateTime(1999, 7, 6, 12, 30, 45)));
assert(cst - duration == SysTime(DateTime(1999, 7, 6, 12, 30, 21)));
//assert(ist - duration == SysTime(DateTime(1999, 7, 6, 12, 30, 21)));
}
/++
Gives the result of adding or subtracting a $(REF Duration, core,time) from
this $(LREF SysTime), as well as assigning the result to this
$(LREF SysTime).
The legal types of arithmetic for $(LREF SysTime) using this operator are
$(BOOKTABLE,
$(TR $(TD SysTime) $(TD +) $(TD Duration) $(TD -->) $(TD SysTime))
$(TR $(TD SysTime) $(TD -) $(TD Duration) $(TD -->) $(TD SysTime))
)
Params:
duration = The $(REF Duration, core,time) to add to or subtract from
this $(LREF SysTime).
+/
ref SysTime opOpAssign(string op)(Duration duration) @safe pure nothrow
if (op == "+" || op == "-")
{
immutable hnsecs = duration.total!"hnsecs";
mixin("_stdTime " ~ op ~ "= hnsecs;");
return this;
}
@safe unittest
{
import core.time;
auto before = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(before + dur!"weeks"(7) == SysTime(DateTime(1999, 8, 24, 12, 30, 33)));
assert(before + dur!"weeks"(-7) == SysTime(DateTime(1999, 5, 18, 12, 30, 33)));
assert(before + dur!"days"(7) == SysTime(DateTime(1999, 7, 13, 12, 30, 33)));
assert(before + dur!"days"(-7) == SysTime(DateTime(1999, 6, 29, 12, 30, 33)));
assert(before + dur!"hours"(7) == SysTime(DateTime(1999, 7, 6, 19, 30, 33)));
assert(before + dur!"hours"(-7) == SysTime(DateTime(1999, 7, 6, 5, 30, 33)));
assert(before + dur!"minutes"(7) == SysTime(DateTime(1999, 7, 6, 12, 37, 33)));
assert(before + dur!"minutes"(-7) == SysTime(DateTime(1999, 7, 6, 12, 23, 33)));
assert(before + dur!"seconds"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 40)));
assert(before + dur!"seconds"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 26)));
assert(before + dur!"msecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(7)));
assert(before + dur!"msecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 32), msecs(993)));
assert(before + dur!"usecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(7)));
assert(before + dur!"usecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 32), usecs(999_993)));
assert(before + dur!"hnsecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(7)));
assert(before + dur!"hnsecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_999_993)));
assert(before - dur!"weeks"(-7) == SysTime(DateTime(1999, 8, 24, 12, 30, 33)));
assert(before - dur!"weeks"(7) == SysTime(DateTime(1999, 5, 18, 12, 30, 33)));
assert(before - dur!"days"(-7) == SysTime(DateTime(1999, 7, 13, 12, 30, 33)));
assert(before - dur!"days"(7) == SysTime(DateTime(1999, 6, 29, 12, 30, 33)));
assert(before - dur!"hours"(-7) == SysTime(DateTime(1999, 7, 6, 19, 30, 33)));
assert(before - dur!"hours"(7) == SysTime(DateTime(1999, 7, 6, 5, 30, 33)));
assert(before - dur!"minutes"(-7) == SysTime(DateTime(1999, 7, 6, 12, 37, 33)));
assert(before - dur!"minutes"(7) == SysTime(DateTime(1999, 7, 6, 12, 23, 33)));
assert(before - dur!"seconds"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 40)));
assert(before - dur!"seconds"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 26)));
assert(before - dur!"msecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(7)));
assert(before - dur!"msecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 32), msecs(993)));
assert(before - dur!"usecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(7)));
assert(before - dur!"usecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 32), usecs(999_993)));
assert(before - dur!"hnsecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(7)));
assert(before - dur!"hnsecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_999_993)));
static void testST(SysTime orig, long hnsecs, in SysTime expected, size_t line = __LINE__)
{
auto r = orig += dur!"hnsecs"(hnsecs);
if (orig != expected)
throw new AssertError(format("Failed 1. actual [%s] != expected [%s]", orig, expected), __FILE__, line);
if (r != expected)
throw new AssertError(format("Failed 2. actual [%s] != expected [%s]", r, expected), __FILE__, line);
}
// Test A.D.
auto beforeAD = SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(274));
testST(beforeAD, 0, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(274)));
testST(beforeAD, 1, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(275)));
testST(beforeAD, 2, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(276)));
testST(beforeAD, 10, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(284)));
testST(beforeAD, 100, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(374)));
testST(beforeAD, 725, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(999)));
testST(beforeAD, 726, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(1000)));
testST(beforeAD, 1000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(1274)));
testST(beforeAD, 1001, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(1275)));
testST(beforeAD, 2000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2274)));
testST(beforeAD, 26_725, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(26_999)));
testST(beforeAD, 26_726, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(27_000)));
testST(beforeAD, 26_727, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(27_001)));
testST(beforeAD, 1_766_725, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(1_766_999)));
testST(beforeAD, 1_766_726, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(1_767_000)));
testST(beforeAD, 1_000_000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(1_000_274)));
testST(beforeAD, 60_000_000L, SysTime(DateTime(1999, 7, 6, 12, 30, 39), hnsecs(274)));
testST(beforeAD, 3_600_000_000L, SysTime(DateTime(1999, 7, 6, 12, 36, 33), hnsecs(274)));
testST(beforeAD, 600_000_000L, SysTime(DateTime(1999, 7, 6, 12, 31, 33), hnsecs(274)));
testST(beforeAD, 36_000_000_000L, SysTime(DateTime(1999, 7, 6, 13, 30, 33), hnsecs(274)));
testST(beforeAD, -1, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(273)));
testST(beforeAD, -2, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(272)));
testST(beforeAD, -10, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(264)));
testST(beforeAD, -100, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(174)));
testST(beforeAD, -274, SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
testST(beforeAD, -275, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_999_999)));
testST(beforeAD, -1000, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_999_274)));
testST(beforeAD, -1001, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_999_273)));
testST(beforeAD, -2000, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_998_274)));
testST(beforeAD, -33_274, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_967_000)));
testST(beforeAD, -33_275, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_966_999)));
testST(beforeAD, -1_833_274, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(8_167_000)));
testST(beforeAD, -1_833_275, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(8_166_999)));
testST(beforeAD, -1_000_000, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_000_274)));
testST(beforeAD, -60_000_000L, SysTime(DateTime(1999, 7, 6, 12, 30, 27), hnsecs(274)));
testST(beforeAD, -3_600_000_000L, SysTime(DateTime(1999, 7, 6, 12, 24, 33), hnsecs(274)));
testST(beforeAD, -600_000_000L, SysTime(DateTime(1999, 7, 6, 12, 29, 33), hnsecs(274)));
testST(beforeAD, -36_000_000_000L, SysTime(DateTime(1999, 7, 6, 11, 30, 33), hnsecs(274)));
// Test B.C.
auto beforeBC = SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(274));
testST(beforeBC, 0, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(274)));
testST(beforeBC, 1, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(275)));
testST(beforeBC, 2, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(276)));
testST(beforeBC, 10, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(284)));
testST(beforeBC, 100, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(374)));
testST(beforeBC, 725, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(999)));
testST(beforeBC, 726, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(1000)));
testST(beforeBC, 1000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(1274)));
testST(beforeBC, 1001, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(1275)));
testST(beforeBC, 2000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(2274)));
testST(beforeBC, 26_725, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(26_999)));
testST(beforeBC, 26_726, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(27_000)));
testST(beforeBC, 26_727, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(27_001)));
testST(beforeBC, 1_766_725, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(1_766_999)));
testST(beforeBC, 1_766_726, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(1_767_000)));
testST(beforeBC, 1_000_000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(1_000_274)));
testST(beforeBC, 60_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 30, 39), hnsecs(274)));
testST(beforeBC, 3_600_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 36, 33), hnsecs(274)));
testST(beforeBC, 600_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 31, 33), hnsecs(274)));
testST(beforeBC, 36_000_000_000L, SysTime(DateTime(-1999, 7, 6, 13, 30, 33), hnsecs(274)));
testST(beforeBC, -1, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(273)));
testST(beforeBC, -2, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(272)));
testST(beforeBC, -10, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(264)));
testST(beforeBC, -100, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(174)));
testST(beforeBC, -274, SysTime(DateTime(-1999, 7, 6, 12, 30, 33)));
testST(beforeBC, -275, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_999_999)));
testST(beforeBC, -1000, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_999_274)));
testST(beforeBC, -1001, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_999_273)));
testST(beforeBC, -2000, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_998_274)));
testST(beforeBC, -33_274, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_967_000)));
testST(beforeBC, -33_275, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_966_999)));
testST(beforeBC, -1_833_274, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(8_167_000)));
testST(beforeBC, -1_833_275, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(8_166_999)));
testST(beforeBC, -1_000_000, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_000_274)));
testST(beforeBC, -60_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 30, 27), hnsecs(274)));
testST(beforeBC, -3_600_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 24, 33), hnsecs(274)));
testST(beforeBC, -600_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 29, 33), hnsecs(274)));
testST(beforeBC, -36_000_000_000L, SysTime(DateTime(-1999, 7, 6, 11, 30, 33), hnsecs(274)));
// Test Both
auto beforeBoth1 = SysTime(DateTime(1, 1, 1, 0, 0, 0));
testST(beforeBoth1, 1, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1)));
testST(beforeBoth1, 0, SysTime(DateTime(1, 1, 1, 0, 0, 0)));
testST(beforeBoth1, -1, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
testST(beforeBoth1, -2, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_998)));
testST(beforeBoth1, -1000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_000)));
testST(beforeBoth1, -2000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_998_000)));
testST(beforeBoth1, -2555, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_997_445)));
testST(beforeBoth1, -1_000_000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_000_000)));
testST(beforeBoth1, -2_000_000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(8_000_000)));
testST(beforeBoth1, -2_333_333, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(7_666_667)));
testST(beforeBoth1, -10_000_000, SysTime(DateTime(0, 12, 31, 23, 59, 59)));
testST(beforeBoth1, -20_000_000, SysTime(DateTime(0, 12, 31, 23, 59, 58)));
testST(beforeBoth1, -20_888_888, SysTime(DateTime(0, 12, 31, 23, 59, 57), hnsecs(9_111_112)));
auto beforeBoth2 = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
testST(beforeBoth2, -1, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_998)));
testST(beforeBoth2, 0, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
testST(beforeBoth2, 1, SysTime(DateTime(1, 1, 1, 0, 0, 0)));
testST(beforeBoth2, 2, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1)));
testST(beforeBoth2, 1000, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(999)));
testST(beforeBoth2, 2000, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1999)));
testST(beforeBoth2, 2555, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(2554)));
testST(beforeBoth2, 1_000_000, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(999_999)));
testST(beforeBoth2, 2_000_000, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1_999_999)));
testST(beforeBoth2, 2_333_333, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(2_333_332)));
testST(beforeBoth2, 10_000_000, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(9_999_999)));
testST(beforeBoth2, 20_000_000, SysTime(DateTime(1, 1, 1, 0, 0, 1), hnsecs(9_999_999)));
testST(beforeBoth2, 20_888_888, SysTime(DateTime(1, 1, 1, 0, 0, 2), hnsecs(888_887)));
{
auto st = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
(st += dur!"hnsecs"(52)) += dur!"seconds"(-907);
assert(st == SysTime(DateTime(0, 12, 31, 23, 44, 53), hnsecs(51)));
}
auto duration = dur!"seconds"(12);
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst += duration));
//static assert(!__traits(compiles, ist += duration));
static assert(!__traits(compiles, cst -= duration));
//static assert(!__traits(compiles, ist -= duration));
}
/++
Gives the difference between two $(LREF SysTime)s.
The legal types of arithmetic for $(LREF SysTime) using this operator
are
$(BOOKTABLE,
$(TR $(TD SysTime) $(TD -) $(TD SysTime) $(TD -->) $(TD duration))
)
+/
Duration opBinary(string op)(in SysTime rhs) @safe const pure nothrow
if (op == "-")
{
return dur!"hnsecs"(_stdTime - rhs._stdTime);
}
@safe unittest
{
import core.time;
assert(SysTime(DateTime(1999, 7, 6, 12, 30, 33)) - SysTime(DateTime(1998, 7, 6, 12, 30, 33)) ==
dur!"seconds"(31_536_000));
assert(SysTime(DateTime(1998, 7, 6, 12, 30, 33)) - SysTime(DateTime(1999, 7, 6, 12, 30, 33)) ==
dur!"seconds"(-31_536_000));
assert(SysTime(DateTime(1999, 8, 6, 12, 30, 33)) - SysTime(DateTime(1999, 7, 6, 12, 30, 33)) ==
dur!"seconds"(26_78_400));
assert(SysTime(DateTime(1999, 7, 6, 12, 30, 33)) - SysTime(DateTime(1999, 8, 6, 12, 30, 33)) ==
dur!"seconds"(-26_78_400));
assert(SysTime(DateTime(1999, 7, 6, 12, 30, 33)) - SysTime(DateTime(1999, 7, 5, 12, 30, 33)) ==
dur!"seconds"(86_400));
assert(SysTime(DateTime(1999, 7, 5, 12, 30, 33)) - SysTime(DateTime(1999, 7, 6, 12, 30, 33)) ==
dur!"seconds"(-86_400));
assert(SysTime(DateTime(1999, 7, 6, 12, 30, 33)) - SysTime(DateTime(1999, 7, 6, 11, 30, 33)) ==
dur!"seconds"(3600));
assert(SysTime(DateTime(1999, 7, 6, 11, 30, 33)) - SysTime(DateTime(1999, 7, 6, 12, 30, 33)) ==
dur!"seconds"(-3600));
assert(SysTime(DateTime(1999, 7, 6, 12, 31, 33)) - SysTime(DateTime(1999, 7, 6, 12, 30, 33)) ==
dur!"seconds"(60));
assert(SysTime(DateTime(1999, 7, 6, 12, 30, 33)) - SysTime(DateTime(1999, 7, 6, 12, 31, 33)) ==
dur!"seconds"(-60));
assert(SysTime(DateTime(1999, 7, 6, 12, 30, 34)) - SysTime(DateTime(1999, 7, 6, 12, 30, 33)) ==
dur!"seconds"(1));
assert(SysTime(DateTime(1999, 7, 6, 12, 30, 33)) - SysTime(DateTime(1999, 7, 6, 12, 30, 34)) ==
dur!"seconds"(-1));
{
auto dt = DateTime(1999, 7, 6, 12, 30, 33);
assert(SysTime(dt, msecs(532)) - SysTime(dt) == msecs(532));
assert(SysTime(dt) - SysTime(dt, msecs(532)) == msecs(-532));
assert(SysTime(dt, usecs(333_347)) - SysTime(dt) == usecs(333_347));
assert(SysTime(dt) - SysTime(dt, usecs(333_347)) == usecs(-333_347));
assert(SysTime(dt, hnsecs(1_234_567)) - SysTime(dt) == hnsecs(1_234_567));
assert(SysTime(dt) - SysTime(dt, hnsecs(1_234_567)) == hnsecs(-1_234_567));
}
assert(SysTime(DateTime(1, 1, 1, 12, 30, 33)) - SysTime(DateTime(1, 1, 1, 0, 0, 0)) == dur!"seconds"(45033));
assert(SysTime(DateTime(1, 1, 1, 0, 0, 0)) - SysTime(DateTime(1, 1, 1, 12, 30, 33)) == dur!"seconds"(-45033));
assert(SysTime(DateTime(0, 12, 31, 12, 30, 33)) - SysTime(DateTime(1, 1, 1, 0, 0, 0)) == dur!"seconds"(-41367));
assert(SysTime(DateTime(1, 1, 1, 0, 0, 0)) - SysTime(DateTime(0, 12, 31, 12, 30, 33)) == dur!"seconds"(41367));
assert(SysTime(DateTime(1, 1, 1, 0, 0, 0)) - SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)) ==
dur!"hnsecs"(1));
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)) - SysTime(DateTime(1, 1, 1, 0, 0, 0)) ==
dur!"hnsecs"(-1));
version(Posix)
{
import std.datetime.timezone : PosixTimeZone;
immutable tz = PosixTimeZone.getTimeZone("America/Los_Angeles");
}
else version(Windows)
{
import std.datetime.timezone : WindowsTimeZone;
immutable tz = WindowsTimeZone.getTimeZone("Pacific Standard Time");
}
{
auto dt = DateTime(2011, 1, 13, 8, 17, 2);
auto d = msecs(296);
assert(SysTime(dt, d, tz) - SysTime(dt, d, tz) == Duration.zero);
assert(SysTime(dt, d, tz) - SysTime(dt, d, UTC()) == hours(8));
assert(SysTime(dt, d, UTC()) - SysTime(dt, d, tz) == hours(-8));
}
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(st - st == Duration.zero);
assert(cst - st == Duration.zero);
//assert(ist - st == Duration.zero);
assert(st - cst == Duration.zero);
assert(cst - cst == Duration.zero);
//assert(ist - cst == Duration.zero);
//assert(st - ist == Duration.zero);
//assert(cst - ist == Duration.zero);
//assert(ist - ist == Duration.zero);
}
/++
Returns the difference between the two $(LREF SysTime)s in months.
To get the difference in years, subtract the year property
of two $(LREF SysTime)s. To get the difference in days or weeks,
subtract the $(LREF SysTime)s themselves and use the
$(REF Duration, core,time) that results. Because converting between
months and smaller units requires a specific date (which
$(REF Duration, core,time)s don't have), getting the difference in
months requires some math using both the year and month properties, so
this is a convenience function for getting the difference in months.
Note that the number of days in the months or how far into the month
either date is is irrelevant. It is the difference in the month property
combined with the difference in years * 12. So, for instance,
December 31st and January 1st are one month apart just as December 1st
and January 31st are one month apart.
Params:
rhs = The $(LREF SysTime) to subtract from this one.
+/
int diffMonths(in SysTime rhs) @safe const nothrow
{
return (cast(Date) this).diffMonths(cast(Date) rhs);
}
///
@safe unittest
{
import core.time;
import std.datetime.date : Date;
assert(SysTime(Date(1999, 2, 1)).diffMonths(
SysTime(Date(1999, 1, 31))) == 1);
assert(SysTime(Date(1999, 1, 31)).diffMonths(
SysTime(Date(1999, 2, 1))) == -1);
assert(SysTime(Date(1999, 3, 1)).diffMonths(
SysTime(Date(1999, 1, 1))) == 2);
assert(SysTime(Date(1999, 1, 1)).diffMonths(
SysTime(Date(1999, 3, 31))) == -2);
}
@safe unittest
{
import core.time;
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(st.diffMonths(st) == 0);
assert(cst.diffMonths(st) == 0);
//assert(ist.diffMonths(st) == 0);
assert(st.diffMonths(cst) == 0);
assert(cst.diffMonths(cst) == 0);
//assert(ist.diffMonths(cst) == 0);
//assert(st.diffMonths(ist) == 0);
//assert(cst.diffMonths(ist) == 0);
//assert(ist.diffMonths(ist) == 0);
}
/++
Whether this $(LREF SysTime) is in a leap year.
+/
@property bool isLeapYear() @safe const nothrow
{
return (cast(Date) this).isLeapYear;
}
@safe unittest
{
import core.time;
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(!st.isLeapYear);
assert(!cst.isLeapYear);
//assert(!ist.isLeapYear);
}
/++
Day of the week this $(LREF SysTime) is on.
+/
@property DayOfWeek dayOfWeek() @safe const nothrow
{
return getDayOfWeek(dayOfGregorianCal);
}
@safe unittest
{
import core.time;
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(st.dayOfWeek == DayOfWeek.tue);
assert(cst.dayOfWeek == DayOfWeek.tue);
//assert(ist.dayOfWeek == DayOfWeek.tue);
}
/++
Day of the year this $(LREF SysTime) is on.
+/
@property ushort dayOfYear() @safe const nothrow
{
return (cast(Date) this).dayOfYear;
}
///
@safe unittest
{
import core.time;
import std.datetime.date : DateTime;
assert(SysTime(DateTime(1999, 1, 1, 12, 22, 7)).dayOfYear == 1);
assert(SysTime(DateTime(1999, 12, 31, 7, 2, 59)).dayOfYear == 365);
assert(SysTime(DateTime(2000, 12, 31, 21, 20, 0)).dayOfYear == 366);
}
@safe unittest
{
import core.time;
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(st.dayOfYear == 187);
assert(cst.dayOfYear == 187);
//assert(ist.dayOfYear == 187);
}
/++
Day of the year.
Params:
day = The day of the year to set which day of the year this
$(LREF SysTime) is on.
+/
@property void dayOfYear(int day) @safe
{
immutable hnsecs = adjTime;
immutable days = convert!("hnsecs", "days")(hnsecs);
immutable theRest = hnsecs - convert!("days", "hnsecs")(days);
auto date = Date(cast(int) days);
date.dayOfYear = day;
immutable newDaysHNSecs = convert!("days", "hnsecs")(date.dayOfGregorianCal - 1);
adjTime = newDaysHNSecs + theRest;
}
@safe unittest
{
import core.time;
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
st.dayOfYear = 12;
assert(st.dayOfYear == 12);
static assert(!__traits(compiles, cst.dayOfYear = 12));
//static assert(!__traits(compiles, ist.dayOfYear = 12));
}
/++
The Xth day of the Gregorian Calendar that this $(LREF SysTime) is on.
+/
@property int dayOfGregorianCal() @safe const nothrow
{
immutable adjustedTime = adjTime;
// We have to add one because 0 would be midnight, January 1st, 1 A.D.,
// which would be the 1st day of the Gregorian Calendar, not the 0th. So,
// simply casting to days is one day off.
if (adjustedTime > 0)
return cast(int) getUnitsFromHNSecs!"days"(adjustedTime) + 1;
long hnsecs = adjustedTime;
immutable days = cast(int) splitUnitsFromHNSecs!"days"(hnsecs);
return hnsecs == 0 ? days + 1 : days;
}
///
@safe unittest
{
import core.time;
import std.datetime.date : DateTime;
assert(SysTime(DateTime(1, 1, 1, 0, 0, 0)).dayOfGregorianCal == 1);
assert(SysTime(DateTime(1, 12, 31, 23, 59, 59)).dayOfGregorianCal == 365);
assert(SysTime(DateTime(2, 1, 1, 2, 2, 2)).dayOfGregorianCal == 366);
assert(SysTime(DateTime(0, 12, 31, 7, 7, 7)).dayOfGregorianCal == 0);
assert(SysTime(DateTime(0, 1, 1, 19, 30, 0)).dayOfGregorianCal == -365);
assert(SysTime(DateTime(-1, 12, 31, 4, 7, 0)).dayOfGregorianCal == -366);
assert(SysTime(DateTime(2000, 1, 1, 9, 30, 20)).dayOfGregorianCal == 730_120);
assert(SysTime(DateTime(2010, 12, 31, 15, 45, 50)).dayOfGregorianCal == 734_137);
}
@safe unittest
{
import core.time;
// Test A.D.
assert(SysTime(DateTime(1, 1, 1, 0, 0, 0)).dayOfGregorianCal == 1);
assert(SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1)).dayOfGregorianCal == 1);
assert(SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)).dayOfGregorianCal == 1);
assert(SysTime(DateTime(1, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 1);
assert(SysTime(DateTime(1, 1, 2, 12, 2, 9), msecs(212)).dayOfGregorianCal == 2);
assert(SysTime(DateTime(1, 2, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 32);
assert(SysTime(DateTime(2, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 366);
assert(SysTime(DateTime(3, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 731);
assert(SysTime(DateTime(4, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 1096);
assert(SysTime(DateTime(5, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 1462);
assert(SysTime(DateTime(50, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 17_898);
assert(SysTime(DateTime(97, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 35_065);
assert(SysTime(DateTime(100, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 36_160);
assert(SysTime(DateTime(101, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 36_525);
assert(SysTime(DateTime(105, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 37_986);
assert(SysTime(DateTime(200, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 72_684);
assert(SysTime(DateTime(201, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 73_049);
assert(SysTime(DateTime(300, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 109_208);
assert(SysTime(DateTime(301, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 109_573);
assert(SysTime(DateTime(400, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 145_732);
assert(SysTime(DateTime(401, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 146_098);
assert(SysTime(DateTime(500, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 182_257);
assert(SysTime(DateTime(501, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 182_622);
assert(SysTime(DateTime(1000, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 364_878);
assert(SysTime(DateTime(1001, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 365_243);
assert(SysTime(DateTime(1600, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 584_023);
assert(SysTime(DateTime(1601, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 584_389);
assert(SysTime(DateTime(1900, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 693_596);
assert(SysTime(DateTime(1901, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 693_961);
assert(SysTime(DateTime(1945, 11, 12, 12, 2, 9), msecs(212)).dayOfGregorianCal == 710_347);
assert(SysTime(DateTime(1999, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 729_755);
assert(SysTime(DateTime(2000, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 730_120);
assert(SysTime(DateTime(2001, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 730_486);
assert(SysTime(DateTime(2010, 1, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_773);
assert(SysTime(DateTime(2010, 1, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_803);
assert(SysTime(DateTime(2010, 2, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_804);
assert(SysTime(DateTime(2010, 2, 28, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_831);
assert(SysTime(DateTime(2010, 3, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_832);
assert(SysTime(DateTime(2010, 3, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_862);
assert(SysTime(DateTime(2010, 4, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_863);
assert(SysTime(DateTime(2010, 4, 30, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_892);
assert(SysTime(DateTime(2010, 5, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_893);
assert(SysTime(DateTime(2010, 5, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_923);
assert(SysTime(DateTime(2010, 6, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_924);
assert(SysTime(DateTime(2010, 6, 30, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_953);
assert(SysTime(DateTime(2010, 7, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_954);
assert(SysTime(DateTime(2010, 7, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_984);
assert(SysTime(DateTime(2010, 8, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_985);
assert(SysTime(DateTime(2010, 8, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == 734_015);
assert(SysTime(DateTime(2010, 9, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == 734_016);
assert(SysTime(DateTime(2010, 9, 30, 23, 59, 59), msecs(999)).dayOfGregorianCal == 734_045);
assert(SysTime(DateTime(2010, 10, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == 734_046);
assert(SysTime(DateTime(2010, 10, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == 734_076);
assert(SysTime(DateTime(2010, 11, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == 734_077);
assert(SysTime(DateTime(2010, 11, 30, 23, 59, 59), msecs(999)).dayOfGregorianCal == 734_106);
assert(SysTime(DateTime(2010, 12, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == 734_107);
assert(SysTime(DateTime(2010, 12, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == 734_137);
assert(SysTime(DateTime(2012, 2, 1, 0, 0, 0)).dayOfGregorianCal == 734_534);
assert(SysTime(DateTime(2012, 2, 28, 0, 0, 0)).dayOfGregorianCal == 734_561);
assert(SysTime(DateTime(2012, 2, 29, 0, 0, 0)).dayOfGregorianCal == 734_562);
assert(SysTime(DateTime(2012, 3, 1, 0, 0, 0)).dayOfGregorianCal == 734_563);
// Test B.C.
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)).dayOfGregorianCal == 0);
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_998)).dayOfGregorianCal == 0);
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59)).dayOfGregorianCal == 0);
assert(SysTime(DateTime(0, 12, 31, 0, 0, 0), hnsecs(1)).dayOfGregorianCal == 0);
assert(SysTime(DateTime(0, 12, 31, 0, 0, 0)).dayOfGregorianCal == 0);
assert(SysTime(DateTime(-1, 12, 31, 23, 59, 59), hnsecs(9_999_999)).dayOfGregorianCal == -366);
assert(SysTime(DateTime(-1, 12, 31, 23, 59, 59), hnsecs(9_999_998)).dayOfGregorianCal == -366);
assert(SysTime(DateTime(-1, 12, 31, 23, 59, 59)).dayOfGregorianCal == -366);
assert(SysTime(DateTime(-1, 12, 31, 0, 0, 0)).dayOfGregorianCal == -366);
assert(SysTime(DateTime(0, 12, 31, 12, 2, 9), msecs(212)).dayOfGregorianCal == 0);
assert(SysTime(DateTime(0, 12, 30, 12, 2, 9), msecs(212)).dayOfGregorianCal == -1);
assert(SysTime(DateTime(0, 12, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -30);
assert(SysTime(DateTime(0, 11, 30, 12, 2, 9), msecs(212)).dayOfGregorianCal == -31);
assert(SysTime(DateTime(-1, 12, 31, 12, 2, 9), msecs(212)).dayOfGregorianCal == -366);
assert(SysTime(DateTime(-1, 12, 30, 12, 2, 9), msecs(212)).dayOfGregorianCal == -367);
assert(SysTime(DateTime(-1, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -730);
assert(SysTime(DateTime(-2, 12, 31, 12, 2, 9), msecs(212)).dayOfGregorianCal == -731);
assert(SysTime(DateTime(-2, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -1095);
assert(SysTime(DateTime(-3, 12, 31, 12, 2, 9), msecs(212)).dayOfGregorianCal == -1096);
assert(SysTime(DateTime(-3, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -1460);
assert(SysTime(DateTime(-4, 12, 31, 12, 2, 9), msecs(212)).dayOfGregorianCal == -1461);
assert(SysTime(DateTime(-4, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -1826);
assert(SysTime(DateTime(-5, 12, 31, 12, 2, 9), msecs(212)).dayOfGregorianCal == -1827);
assert(SysTime(DateTime(-5, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -2191);
assert(SysTime(DateTime(-9, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -3652);
assert(SysTime(DateTime(-49, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -18_262);
assert(SysTime(DateTime(-50, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -18_627);
assert(SysTime(DateTime(-97, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -35_794);
assert(SysTime(DateTime(-99, 12, 31, 12, 2, 9), msecs(212)).dayOfGregorianCal == -36_160);
assert(SysTime(DateTime(-99, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -36_524);
assert(SysTime(DateTime(-100, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -36_889);
assert(SysTime(DateTime(-101, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -37_254);
assert(SysTime(DateTime(-105, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -38_715);
assert(SysTime(DateTime(-200, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -73_413);
assert(SysTime(DateTime(-201, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -73_778);
assert(SysTime(DateTime(-300, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -109_937);
assert(SysTime(DateTime(-301, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -110_302);
assert(SysTime(DateTime(-400, 12, 31, 12, 2, 9), msecs(212)).dayOfGregorianCal == -146_097);
assert(SysTime(DateTime(-400, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -146_462);
assert(SysTime(DateTime(-401, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -146_827);
assert(SysTime(DateTime(-499, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -182_621);
assert(SysTime(DateTime(-500, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -182_986);
assert(SysTime(DateTime(-501, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -183_351);
assert(SysTime(DateTime(-1000, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -365_607);
assert(SysTime(DateTime(-1001, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -365_972);
assert(SysTime(DateTime(-1599, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -584_387);
assert(SysTime(DateTime(-1600, 12, 31, 12, 2, 9), msecs(212)).dayOfGregorianCal == -584_388);
assert(SysTime(DateTime(-1600, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -584_753);
assert(SysTime(DateTime(-1601, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -585_118);
assert(SysTime(DateTime(-1900, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -694_325);
assert(SysTime(DateTime(-1901, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -694_690);
assert(SysTime(DateTime(-1999, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -730_484);
assert(SysTime(DateTime(-2000, 12, 31, 12, 2, 9), msecs(212)).dayOfGregorianCal == -730_485);
assert(SysTime(DateTime(-2000, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -730_850);
assert(SysTime(DateTime(-2001, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -731_215);
assert(SysTime(DateTime(-2010, 1, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_502);
assert(SysTime(DateTime(-2010, 1, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_472);
assert(SysTime(DateTime(-2010, 2, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_471);
assert(SysTime(DateTime(-2010, 2, 28, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_444);
assert(SysTime(DateTime(-2010, 3, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_443);
assert(SysTime(DateTime(-2010, 3, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_413);
assert(SysTime(DateTime(-2010, 4, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_412);
assert(SysTime(DateTime(-2010, 4, 30, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_383);
assert(SysTime(DateTime(-2010, 5, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_382);
assert(SysTime(DateTime(-2010, 5, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_352);
assert(SysTime(DateTime(-2010, 6, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_351);
assert(SysTime(DateTime(-2010, 6, 30, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_322);
assert(SysTime(DateTime(-2010, 7, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_321);
assert(SysTime(DateTime(-2010, 7, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_291);
assert(SysTime(DateTime(-2010, 8, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_290);
assert(SysTime(DateTime(-2010, 8, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_260);
assert(SysTime(DateTime(-2010, 9, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_259);
assert(SysTime(DateTime(-2010, 9, 30, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_230);
assert(SysTime(DateTime(-2010, 10, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_229);
assert(SysTime(DateTime(-2010, 10, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_199);
assert(SysTime(DateTime(-2010, 11, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_198);
assert(SysTime(DateTime(-2010, 11, 30, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_169);
assert(SysTime(DateTime(-2010, 12, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_168);
assert(SysTime(DateTime(-2010, 12, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_138);
assert(SysTime(DateTime(-2012, 2, 1, 0, 0, 0)).dayOfGregorianCal == -735_202);
assert(SysTime(DateTime(-2012, 2, 28, 0, 0, 0)).dayOfGregorianCal == -735_175);
assert(SysTime(DateTime(-2012, 2, 29, 0, 0, 0)).dayOfGregorianCal == -735_174);
assert(SysTime(DateTime(-2012, 3, 1, 0, 0, 0)).dayOfGregorianCal == -735_173);
// Start of Hebrew Calendar
assert(SysTime(DateTime(-3760, 9, 7, 0, 0, 0)).dayOfGregorianCal == -1_373_427);
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.dayOfGregorianCal == 729_941);
//assert(ist.dayOfGregorianCal == 729_941);
}
// Test that the logic for the day of the Gregorian Calendar is consistent
// between Date and SysTime.
@safe unittest
{
import core.time;
void test(Date date, SysTime st, size_t line = __LINE__)
{
if (date.dayOfGregorianCal != st.dayOfGregorianCal)
{
throw new AssertError(format("Date [%s] SysTime [%s]", date.dayOfGregorianCal, st.dayOfGregorianCal),
__FILE__, line);
}
}
// Test A.D.
test(Date(1, 1, 1), SysTime(DateTime(1, 1, 1, 0, 0, 0)));
test(Date(1, 1, 2), SysTime(DateTime(1, 1, 2, 0, 0, 0), hnsecs(500)));
test(Date(1, 2, 1), SysTime(DateTime(1, 2, 1, 0, 0, 0), hnsecs(50_000)));
test(Date(2, 1, 1), SysTime(DateTime(2, 1, 1, 0, 0, 0), hnsecs(9_999_999)));
test(Date(3, 1, 1), SysTime(DateTime(3, 1, 1, 12, 13, 14)));
test(Date(4, 1, 1), SysTime(DateTime(4, 1, 1, 12, 13, 14), hnsecs(500)));
test(Date(5, 1, 1), SysTime(DateTime(5, 1, 1, 12, 13, 14), hnsecs(50_000)));
test(Date(50, 1, 1), SysTime(DateTime(50, 1, 1, 12, 13, 14), hnsecs(9_999_999)));
test(Date(97, 1, 1), SysTime(DateTime(97, 1, 1, 23, 59, 59)));
test(Date(100, 1, 1), SysTime(DateTime(100, 1, 1, 23, 59, 59), hnsecs(500)));
test(Date(101, 1, 1), SysTime(DateTime(101, 1, 1, 23, 59, 59), hnsecs(50_000)));
test(Date(105, 1, 1), SysTime(DateTime(105, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
test(Date(200, 1, 1), SysTime(DateTime(200, 1, 1, 0, 0, 0)));
test(Date(201, 1, 1), SysTime(DateTime(201, 1, 1, 0, 0, 0), hnsecs(500)));
test(Date(300, 1, 1), SysTime(DateTime(300, 1, 1, 0, 0, 0), hnsecs(50_000)));
test(Date(301, 1, 1), SysTime(DateTime(301, 1, 1, 0, 0, 0), hnsecs(9_999_999)));
test(Date(400, 1, 1), SysTime(DateTime(400, 1, 1, 12, 13, 14)));
test(Date(401, 1, 1), SysTime(DateTime(401, 1, 1, 12, 13, 14), hnsecs(500)));
test(Date(500, 1, 1), SysTime(DateTime(500, 1, 1, 12, 13, 14), hnsecs(50_000)));
test(Date(501, 1, 1), SysTime(DateTime(501, 1, 1, 12, 13, 14), hnsecs(9_999_999)));
test(Date(1000, 1, 1), SysTime(DateTime(1000, 1, 1, 23, 59, 59)));
test(Date(1001, 1, 1), SysTime(DateTime(1001, 1, 1, 23, 59, 59), hnsecs(500)));
test(Date(1600, 1, 1), SysTime(DateTime(1600, 1, 1, 23, 59, 59), hnsecs(50_000)));
test(Date(1601, 1, 1), SysTime(DateTime(1601, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
test(Date(1900, 1, 1), SysTime(DateTime(1900, 1, 1, 0, 0, 0)));
test(Date(1901, 1, 1), SysTime(DateTime(1901, 1, 1, 0, 0, 0), hnsecs(500)));
test(Date(1945, 11, 12), SysTime(DateTime(1945, 11, 12, 0, 0, 0), hnsecs(50_000)));
test(Date(1999, 1, 1), SysTime(DateTime(1999, 1, 1, 0, 0, 0), hnsecs(9_999_999)));
test(Date(1999, 7, 6), SysTime(DateTime(1999, 7, 6, 12, 13, 14)));
test(Date(2000, 1, 1), SysTime(DateTime(2000, 1, 1, 12, 13, 14), hnsecs(500)));
test(Date(2001, 1, 1), SysTime(DateTime(2001, 1, 1, 12, 13, 14), hnsecs(50_000)));
test(Date(2010, 1, 1), SysTime(DateTime(2010, 1, 1, 12, 13, 14), hnsecs(9_999_999)));
test(Date(2010, 1, 31), SysTime(DateTime(2010, 1, 31, 23, 0, 0)));
test(Date(2010, 2, 1), SysTime(DateTime(2010, 2, 1, 23, 59, 59), hnsecs(500)));
test(Date(2010, 2, 28), SysTime(DateTime(2010, 2, 28, 23, 59, 59), hnsecs(50_000)));
test(Date(2010, 3, 1), SysTime(DateTime(2010, 3, 1, 23, 59, 59), hnsecs(9_999_999)));
test(Date(2010, 3, 31), SysTime(DateTime(2010, 3, 31, 0, 0, 0)));
test(Date(2010, 4, 1), SysTime(DateTime(2010, 4, 1, 0, 0, 0), hnsecs(500)));
test(Date(2010, 4, 30), SysTime(DateTime(2010, 4, 30, 0, 0, 0), hnsecs(50_000)));
test(Date(2010, 5, 1), SysTime(DateTime(2010, 5, 1, 0, 0, 0), hnsecs(9_999_999)));
test(Date(2010, 5, 31), SysTime(DateTime(2010, 5, 31, 12, 13, 14)));
test(Date(2010, 6, 1), SysTime(DateTime(2010, 6, 1, 12, 13, 14), hnsecs(500)));
test(Date(2010, 6, 30), SysTime(DateTime(2010, 6, 30, 12, 13, 14), hnsecs(50_000)));
test(Date(2010, 7, 1), SysTime(DateTime(2010, 7, 1, 12, 13, 14), hnsecs(9_999_999)));
test(Date(2010, 7, 31), SysTime(DateTime(2010, 7, 31, 23, 59, 59)));
test(Date(2010, 8, 1), SysTime(DateTime(2010, 8, 1, 23, 59, 59), hnsecs(500)));
test(Date(2010, 8, 31), SysTime(DateTime(2010, 8, 31, 23, 59, 59), hnsecs(50_000)));
test(Date(2010, 9, 1), SysTime(DateTime(2010, 9, 1, 23, 59, 59), hnsecs(9_999_999)));
test(Date(2010, 9, 30), SysTime(DateTime(2010, 9, 30, 12, 0, 0)));
test(Date(2010, 10, 1), SysTime(DateTime(2010, 10, 1, 0, 12, 0), hnsecs(500)));
test(Date(2010, 10, 31), SysTime(DateTime(2010, 10, 31, 0, 0, 12), hnsecs(50_000)));
test(Date(2010, 11, 1), SysTime(DateTime(2010, 11, 1, 23, 0, 0), hnsecs(9_999_999)));
test(Date(2010, 11, 30), SysTime(DateTime(2010, 11, 30, 0, 59, 0)));
test(Date(2010, 12, 1), SysTime(DateTime(2010, 12, 1, 0, 0, 59), hnsecs(500)));
test(Date(2010, 12, 31), SysTime(DateTime(2010, 12, 31, 0, 59, 59), hnsecs(50_000)));
test(Date(2012, 2, 1), SysTime(DateTime(2012, 2, 1, 23, 0, 59), hnsecs(9_999_999)));
test(Date(2012, 2, 28), SysTime(DateTime(2012, 2, 28, 23, 59, 0)));
test(Date(2012, 2, 29), SysTime(DateTime(2012, 2, 29, 7, 7, 7), hnsecs(7)));
test(Date(2012, 3, 1), SysTime(DateTime(2012, 3, 1, 7, 7, 7), hnsecs(7)));
// Test B.C.
test(Date(0, 12, 31), SysTime(DateTime(0, 12, 31, 0, 0, 0)));
test(Date(0, 12, 30), SysTime(DateTime(0, 12, 30, 0, 0, 0), hnsecs(500)));
test(Date(0, 12, 1), SysTime(DateTime(0, 12, 1, 0, 0, 0), hnsecs(50_000)));
test(Date(0, 11, 30), SysTime(DateTime(0, 11, 30, 0, 0, 0), hnsecs(9_999_999)));
test(Date(-1, 12, 31), SysTime(DateTime(-1, 12, 31, 12, 13, 14)));
test(Date(-1, 12, 30), SysTime(DateTime(-1, 12, 30, 12, 13, 14), hnsecs(500)));
test(Date(-1, 1, 1), SysTime(DateTime(-1, 1, 1, 12, 13, 14), hnsecs(50_000)));
test(Date(-2, 12, 31), SysTime(DateTime(-2, 12, 31, 12, 13, 14), hnsecs(9_999_999)));
test(Date(-2, 1, 1), SysTime(DateTime(-2, 1, 1, 23, 59, 59)));
test(Date(-3, 12, 31), SysTime(DateTime(-3, 12, 31, 23, 59, 59), hnsecs(500)));
test(Date(-3, 1, 1), SysTime(DateTime(-3, 1, 1, 23, 59, 59), hnsecs(50_000)));
test(Date(-4, 12, 31), SysTime(DateTime(-4, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
test(Date(-4, 1, 1), SysTime(DateTime(-4, 1, 1, 0, 0, 0)));
test(Date(-5, 12, 31), SysTime(DateTime(-5, 12, 31, 0, 0, 0), hnsecs(500)));
test(Date(-5, 1, 1), SysTime(DateTime(-5, 1, 1, 0, 0, 0), hnsecs(50_000)));
test(Date(-9, 1, 1), SysTime(DateTime(-9, 1, 1, 0, 0, 0), hnsecs(9_999_999)));
test(Date(-49, 1, 1), SysTime(DateTime(-49, 1, 1, 12, 13, 14)));
test(Date(-50, 1, 1), SysTime(DateTime(-50, 1, 1, 12, 13, 14), hnsecs(500)));
test(Date(-97, 1, 1), SysTime(DateTime(-97, 1, 1, 12, 13, 14), hnsecs(50_000)));
test(Date(-99, 12, 31), SysTime(DateTime(-99, 12, 31, 12, 13, 14), hnsecs(9_999_999)));
test(Date(-99, 1, 1), SysTime(DateTime(-99, 1, 1, 23, 59, 59)));
test(Date(-100, 1, 1), SysTime(DateTime(-100, 1, 1, 23, 59, 59), hnsecs(500)));
test(Date(-101, 1, 1), SysTime(DateTime(-101, 1, 1, 23, 59, 59), hnsecs(50_000)));
test(Date(-105, 1, 1), SysTime(DateTime(-105, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
test(Date(-200, 1, 1), SysTime(DateTime(-200, 1, 1, 0, 0, 0)));
test(Date(-201, 1, 1), SysTime(DateTime(-201, 1, 1, 0, 0, 0), hnsecs(500)));
test(Date(-300, 1, 1), SysTime(DateTime(-300, 1, 1, 0, 0, 0), hnsecs(50_000)));
test(Date(-301, 1, 1), SysTime(DateTime(-301, 1, 1, 0, 0, 0), hnsecs(9_999_999)));
test(Date(-400, 12, 31), SysTime(DateTime(-400, 12, 31, 12, 13, 14)));
test(Date(-400, 1, 1), SysTime(DateTime(-400, 1, 1, 12, 13, 14), hnsecs(500)));
test(Date(-401, 1, 1), SysTime(DateTime(-401, 1, 1, 12, 13, 14), hnsecs(50_000)));
test(Date(-499, 1, 1), SysTime(DateTime(-499, 1, 1, 12, 13, 14), hnsecs(9_999_999)));
test(Date(-500, 1, 1), SysTime(DateTime(-500, 1, 1, 23, 59, 59)));
test(Date(-501, 1, 1), SysTime(DateTime(-501, 1, 1, 23, 59, 59), hnsecs(500)));
test(Date(-1000, 1, 1), SysTime(DateTime(-1000, 1, 1, 23, 59, 59), hnsecs(50_000)));
test(Date(-1001, 1, 1), SysTime(DateTime(-1001, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
test(Date(-1599, 1, 1), SysTime(DateTime(-1599, 1, 1, 0, 0, 0)));
test(Date(-1600, 12, 31), SysTime(DateTime(-1600, 12, 31, 0, 0, 0), hnsecs(500)));
test(Date(-1600, 1, 1), SysTime(DateTime(-1600, 1, 1, 0, 0, 0), hnsecs(50_000)));
test(Date(-1601, 1, 1), SysTime(DateTime(-1601, 1, 1, 0, 0, 0), hnsecs(9_999_999)));
test(Date(-1900, 1, 1), SysTime(DateTime(-1900, 1, 1, 12, 13, 14)));
test(Date(-1901, 1, 1), SysTime(DateTime(-1901, 1, 1, 12, 13, 14), hnsecs(500)));
test(Date(-1999, 1, 1), SysTime(DateTime(-1999, 1, 1, 12, 13, 14), hnsecs(50_000)));
test(Date(-1999, 7, 6), SysTime(DateTime(-1999, 7, 6, 12, 13, 14), hnsecs(9_999_999)));
test(Date(-2000, 12, 31), SysTime(DateTime(-2000, 12, 31, 23, 59, 59)));
test(Date(-2000, 1, 1), SysTime(DateTime(-2000, 1, 1, 23, 59, 59), hnsecs(500)));
test(Date(-2001, 1, 1), SysTime(DateTime(-2001, 1, 1, 23, 59, 59), hnsecs(50_000)));
test(Date(-2010, 1, 1), SysTime(DateTime(-2010, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
test(Date(-2010, 1, 31), SysTime(DateTime(-2010, 1, 31, 0, 0, 0)));
test(Date(-2010, 2, 1), SysTime(DateTime(-2010, 2, 1, 0, 0, 0), hnsecs(500)));
test(Date(-2010, 2, 28), SysTime(DateTime(-2010, 2, 28, 0, 0, 0), hnsecs(50_000)));
test(Date(-2010, 3, 1), SysTime(DateTime(-2010, 3, 1, 0, 0, 0), hnsecs(9_999_999)));
test(Date(-2010, 3, 31), SysTime(DateTime(-2010, 3, 31, 12, 13, 14)));
test(Date(-2010, 4, 1), SysTime(DateTime(-2010, 4, 1, 12, 13, 14), hnsecs(500)));
test(Date(-2010, 4, 30), SysTime(DateTime(-2010, 4, 30, 12, 13, 14), hnsecs(50_000)));
test(Date(-2010, 5, 1), SysTime(DateTime(-2010, 5, 1, 12, 13, 14), hnsecs(9_999_999)));
test(Date(-2010, 5, 31), SysTime(DateTime(-2010, 5, 31, 23, 59, 59)));
test(Date(-2010, 6, 1), SysTime(DateTime(-2010, 6, 1, 23, 59, 59), hnsecs(500)));
test(Date(-2010, 6, 30), SysTime(DateTime(-2010, 6, 30, 23, 59, 59), hnsecs(50_000)));
test(Date(-2010, 7, 1), SysTime(DateTime(-2010, 7, 1, 23, 59, 59), hnsecs(9_999_999)));
test(Date(-2010, 7, 31), SysTime(DateTime(-2010, 7, 31, 0, 0, 0)));
test(Date(-2010, 8, 1), SysTime(DateTime(-2010, 8, 1, 0, 0, 0), hnsecs(500)));
test(Date(-2010, 8, 31), SysTime(DateTime(-2010, 8, 31, 0, 0, 0), hnsecs(50_000)));
test(Date(-2010, 9, 1), SysTime(DateTime(-2010, 9, 1, 0, 0, 0), hnsecs(9_999_999)));
test(Date(-2010, 9, 30), SysTime(DateTime(-2010, 9, 30, 12, 0, 0)));
test(Date(-2010, 10, 1), SysTime(DateTime(-2010, 10, 1, 0, 12, 0), hnsecs(500)));
test(Date(-2010, 10, 31), SysTime(DateTime(-2010, 10, 31, 0, 0, 12), hnsecs(50_000)));
test(Date(-2010, 11, 1), SysTime(DateTime(-2010, 11, 1, 23, 0, 0), hnsecs(9_999_999)));
test(Date(-2010, 11, 30), SysTime(DateTime(-2010, 11, 30, 0, 59, 0)));
test(Date(-2010, 12, 1), SysTime(DateTime(-2010, 12, 1, 0, 0, 59), hnsecs(500)));
test(Date(-2010, 12, 31), SysTime(DateTime(-2010, 12, 31, 0, 59, 59), hnsecs(50_000)));
test(Date(-2012, 2, 1), SysTime(DateTime(-2012, 2, 1, 23, 0, 59), hnsecs(9_999_999)));
test(Date(-2012, 2, 28), SysTime(DateTime(-2012, 2, 28, 23, 59, 0)));
test(Date(-2012, 2, 29), SysTime(DateTime(-2012, 2, 29, 7, 7, 7), hnsecs(7)));
test(Date(-2012, 3, 1), SysTime(DateTime(-2012, 3, 1, 7, 7, 7), hnsecs(7)));
test(Date(-3760, 9, 7), SysTime(DateTime(-3760, 9, 7, 0, 0, 0)));
}
/++
The Xth day of the Gregorian Calendar that this $(LREF SysTime) is on.
Setting this property does not affect the time portion of $(LREF SysTime).
Params:
days = The day of the Gregorian Calendar to set this $(LREF SysTime)
to.
+/
@property void dayOfGregorianCal(int days) @safe nothrow
{
auto hnsecs = adjTime;
hnsecs = removeUnitsFromHNSecs!"days"(hnsecs);
if (hnsecs < 0)
hnsecs += convert!("hours", "hnsecs")(24);
if (--days < 0)
{
hnsecs -= convert!("hours", "hnsecs")(24);
++days;
}
immutable newDaysHNSecs = convert!("days", "hnsecs")(days);
adjTime = newDaysHNSecs + hnsecs;
}
///
@safe unittest
{
import core.time;
import std.datetime.date : DateTime;
auto st = SysTime(DateTime(0, 1, 1, 12, 0, 0));
st.dayOfGregorianCal = 1;
assert(st == SysTime(DateTime(1, 1, 1, 12, 0, 0)));
st.dayOfGregorianCal = 365;
assert(st == SysTime(DateTime(1, 12, 31, 12, 0, 0)));
st.dayOfGregorianCal = 366;
assert(st == SysTime(DateTime(2, 1, 1, 12, 0, 0)));
st.dayOfGregorianCal = 0;
assert(st == SysTime(DateTime(0, 12, 31, 12, 0, 0)));
st.dayOfGregorianCal = -365;
assert(st == SysTime(DateTime(-0, 1, 1, 12, 0, 0)));
st.dayOfGregorianCal = -366;
assert(st == SysTime(DateTime(-1, 12, 31, 12, 0, 0)));
st.dayOfGregorianCal = 730_120;
assert(st == SysTime(DateTime(2000, 1, 1, 12, 0, 0)));
st.dayOfGregorianCal = 734_137;
assert(st == SysTime(DateTime(2010, 12, 31, 12, 0, 0)));
}
@safe unittest
{
import core.time;
void testST(SysTime orig, int day, in SysTime expected, size_t line = __LINE__)
{
orig.dayOfGregorianCal = day;
if (orig != expected)
throw new AssertError(format("Failed. actual [%s] != expected [%s]", orig, expected), __FILE__, line);
}
// Test A.D.
testST(SysTime(DateTime(1, 1, 1, 0, 0, 0)), 1, SysTime(DateTime(1, 1, 1, 0, 0, 0)));
testST(SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1)), 1, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1)));
testST(SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)), 1,
SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
// Test B.C.
testST(SysTime(DateTime(0, 1, 1, 0, 0, 0)), 0, SysTime(DateTime(0, 12, 31, 0, 0, 0)));
testST(SysTime(DateTime(0, 1, 1, 23, 59, 59), hnsecs(9_999_999)), 0,
SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
testST(SysTime(DateTime(0, 1, 1, 23, 59, 59), hnsecs(1)), 0,
SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(1)));
testST(SysTime(DateTime(0, 1, 1, 23, 59, 59)), 0, SysTime(DateTime(0, 12, 31, 23, 59, 59)));
// Test Both.
testST(SysTime(DateTime(-512, 7, 20, 0, 0, 0)), 1, SysTime(DateTime(1, 1, 1, 0, 0, 0)));
testST(SysTime(DateTime(-513, 6, 6, 0, 0, 0), hnsecs(1)), 1, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1)));
testST(SysTime(DateTime(-511, 5, 7, 23, 59, 59), hnsecs(9_999_999)), 1,
SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
testST(SysTime(DateTime(1607, 4, 8, 0, 0, 0)), 0, SysTime(DateTime(0, 12, 31, 0, 0, 0)));
testST(SysTime(DateTime(1500, 3, 9, 23, 59, 59), hnsecs(9_999_999)), 0,
SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
testST(SysTime(DateTime(999, 2, 10, 23, 59, 59), hnsecs(1)), 0,
SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(1)));
testST(SysTime(DateTime(2007, 12, 11, 23, 59, 59)), 0, SysTime(DateTime(0, 12, 31, 23, 59, 59)));
auto st = SysTime(DateTime(1, 1, 1, 12, 2, 9), msecs(212));
void testST2(int day, in SysTime expected, size_t line = __LINE__)
{
st.dayOfGregorianCal = day;
if (st != expected)
throw new AssertError(format("Failed. actual [%s] != expected [%s]", st, expected), __FILE__, line);
}
// Test A.D.
testST2(1, SysTime(DateTime(1, 1, 1, 12, 2, 9), msecs(212)));
testST2(2, SysTime(DateTime(1, 1, 2, 12, 2, 9), msecs(212)));
testST2(32, SysTime(DateTime(1, 2, 1, 12, 2, 9), msecs(212)));
testST2(366, SysTime(DateTime(2, 1, 1, 12, 2, 9), msecs(212)));
testST2(731, SysTime(DateTime(3, 1, 1, 12, 2, 9), msecs(212)));
testST2(1096, SysTime(DateTime(4, 1, 1, 12, 2, 9), msecs(212)));
testST2(1462, SysTime(DateTime(5, 1, 1, 12, 2, 9), msecs(212)));
testST2(17_898, SysTime(DateTime(50, 1, 1, 12, 2, 9), msecs(212)));
testST2(35_065, SysTime(DateTime(97, 1, 1, 12, 2, 9), msecs(212)));
testST2(36_160, SysTime(DateTime(100, 1, 1, 12, 2, 9), msecs(212)));
testST2(36_525, SysTime(DateTime(101, 1, 1, 12, 2, 9), msecs(212)));
testST2(37_986, SysTime(DateTime(105, 1, 1, 12, 2, 9), msecs(212)));
testST2(72_684, SysTime(DateTime(200, 1, 1, 12, 2, 9), msecs(212)));
testST2(73_049, SysTime(DateTime(201, 1, 1, 12, 2, 9), msecs(212)));
testST2(109_208, SysTime(DateTime(300, 1, 1, 12, 2, 9), msecs(212)));
testST2(109_573, SysTime(DateTime(301, 1, 1, 12, 2, 9), msecs(212)));
testST2(145_732, SysTime(DateTime(400, 1, 1, 12, 2, 9), msecs(212)));
testST2(146_098, SysTime(DateTime(401, 1, 1, 12, 2, 9), msecs(212)));
testST2(182_257, SysTime(DateTime(500, 1, 1, 12, 2, 9), msecs(212)));
testST2(182_622, SysTime(DateTime(501, 1, 1, 12, 2, 9), msecs(212)));
testST2(364_878, SysTime(DateTime(1000, 1, 1, 12, 2, 9), msecs(212)));
testST2(365_243, SysTime(DateTime(1001, 1, 1, 12, 2, 9), msecs(212)));
testST2(584_023, SysTime(DateTime(1600, 1, 1, 12, 2, 9), msecs(212)));
testST2(584_389, SysTime(DateTime(1601, 1, 1, 12, 2, 9), msecs(212)));
testST2(693_596, SysTime(DateTime(1900, 1, 1, 12, 2, 9), msecs(212)));
testST2(693_961, SysTime(DateTime(1901, 1, 1, 12, 2, 9), msecs(212)));
testST2(729_755, SysTime(DateTime(1999, 1, 1, 12, 2, 9), msecs(212)));
testST2(730_120, SysTime(DateTime(2000, 1, 1, 12, 2, 9), msecs(212)));
testST2(730_486, SysTime(DateTime(2001, 1, 1, 12, 2, 9), msecs(212)));
testST2(733_773, SysTime(DateTime(2010, 1, 1, 12, 2, 9), msecs(212)));
testST2(733_803, SysTime(DateTime(2010, 1, 31, 12, 2, 9), msecs(212)));
testST2(733_804, SysTime(DateTime(2010, 2, 1, 12, 2, 9), msecs(212)));
testST2(733_831, SysTime(DateTime(2010, 2, 28, 12, 2, 9), msecs(212)));
testST2(733_832, SysTime(DateTime(2010, 3, 1, 12, 2, 9), msecs(212)));
testST2(733_862, SysTime(DateTime(2010, 3, 31, 12, 2, 9), msecs(212)));
testST2(733_863, SysTime(DateTime(2010, 4, 1, 12, 2, 9), msecs(212)));
testST2(733_892, SysTime(DateTime(2010, 4, 30, 12, 2, 9), msecs(212)));
testST2(733_893, SysTime(DateTime(2010, 5, 1, 12, 2, 9), msecs(212)));
testST2(733_923, SysTime(DateTime(2010, 5, 31, 12, 2, 9), msecs(212)));
testST2(733_924, SysTime(DateTime(2010, 6, 1, 12, 2, 9), msecs(212)));
testST2(733_953, SysTime(DateTime(2010, 6, 30, 12, 2, 9), msecs(212)));
testST2(733_954, SysTime(DateTime(2010, 7, 1, 12, 2, 9), msecs(212)));
testST2(733_984, SysTime(DateTime(2010, 7, 31, 12, 2, 9), msecs(212)));
testST2(733_985, SysTime(DateTime(2010, 8, 1, 12, 2, 9), msecs(212)));
testST2(734_015, SysTime(DateTime(2010, 8, 31, 12, 2, 9), msecs(212)));
testST2(734_016, SysTime(DateTime(2010, 9, 1, 12, 2, 9), msecs(212)));
testST2(734_045, SysTime(DateTime(2010, 9, 30, 12, 2, 9), msecs(212)));
testST2(734_046, SysTime(DateTime(2010, 10, 1, 12, 2, 9), msecs(212)));
testST2(734_076, SysTime(DateTime(2010, 10, 31, 12, 2, 9), msecs(212)));
testST2(734_077, SysTime(DateTime(2010, 11, 1, 12, 2, 9), msecs(212)));
testST2(734_106, SysTime(DateTime(2010, 11, 30, 12, 2, 9), msecs(212)));
testST2(734_107, SysTime(DateTime(2010, 12, 1, 12, 2, 9), msecs(212)));
testST2(734_137, SysTime(DateTime(2010, 12, 31, 12, 2, 9), msecs(212)));
testST2(734_534, SysTime(DateTime(2012, 2, 1, 12, 2, 9), msecs(212)));
testST2(734_561, SysTime(DateTime(2012, 2, 28, 12, 2, 9), msecs(212)));
testST2(734_562, SysTime(DateTime(2012, 2, 29, 12, 2, 9), msecs(212)));
testST2(734_563, SysTime(DateTime(2012, 3, 1, 12, 2, 9), msecs(212)));
testST2(734_534, SysTime(DateTime(2012, 2, 1, 12, 2, 9), msecs(212)));
testST2(734_561, SysTime(DateTime(2012, 2, 28, 12, 2, 9), msecs(212)));
testST2(734_562, SysTime(DateTime(2012, 2, 29, 12, 2, 9), msecs(212)));
testST2(734_563, SysTime(DateTime(2012, 3, 1, 12, 2, 9), msecs(212)));
// Test B.C.
testST2(0, SysTime(DateTime(0, 12, 31, 12, 2, 9), msecs(212)));
testST2(-1, SysTime(DateTime(0, 12, 30, 12, 2, 9), msecs(212)));
testST2(-30, SysTime(DateTime(0, 12, 1, 12, 2, 9), msecs(212)));
testST2(-31, SysTime(DateTime(0, 11, 30, 12, 2, 9), msecs(212)));
testST2(-366, SysTime(DateTime(-1, 12, 31, 12, 2, 9), msecs(212)));
testST2(-367, SysTime(DateTime(-1, 12, 30, 12, 2, 9), msecs(212)));
testST2(-730, SysTime(DateTime(-1, 1, 1, 12, 2, 9), msecs(212)));
testST2(-731, SysTime(DateTime(-2, 12, 31, 12, 2, 9), msecs(212)));
testST2(-1095, SysTime(DateTime(-2, 1, 1, 12, 2, 9), msecs(212)));
testST2(-1096, SysTime(DateTime(-3, 12, 31, 12, 2, 9), msecs(212)));
testST2(-1460, SysTime(DateTime(-3, 1, 1, 12, 2, 9), msecs(212)));
testST2(-1461, SysTime(DateTime(-4, 12, 31, 12, 2, 9), msecs(212)));
testST2(-1826, SysTime(DateTime(-4, 1, 1, 12, 2, 9), msecs(212)));
testST2(-1827, SysTime(DateTime(-5, 12, 31, 12, 2, 9), msecs(212)));
testST2(-2191, SysTime(DateTime(-5, 1, 1, 12, 2, 9), msecs(212)));
testST2(-3652, SysTime(DateTime(-9, 1, 1, 12, 2, 9), msecs(212)));
testST2(-18_262, SysTime(DateTime(-49, 1, 1, 12, 2, 9), msecs(212)));
testST2(-18_627, SysTime(DateTime(-50, 1, 1, 12, 2, 9), msecs(212)));
testST2(-35_794, SysTime(DateTime(-97, 1, 1, 12, 2, 9), msecs(212)));
testST2(-36_160, SysTime(DateTime(-99, 12, 31, 12, 2, 9), msecs(212)));
testST2(-36_524, SysTime(DateTime(-99, 1, 1, 12, 2, 9), msecs(212)));
testST2(-36_889, SysTime(DateTime(-100, 1, 1, 12, 2, 9), msecs(212)));
testST2(-37_254, SysTime(DateTime(-101, 1, 1, 12, 2, 9), msecs(212)));
testST2(-38_715, SysTime(DateTime(-105, 1, 1, 12, 2, 9), msecs(212)));
testST2(-73_413, SysTime(DateTime(-200, 1, 1, 12, 2, 9), msecs(212)));
testST2(-73_778, SysTime(DateTime(-201, 1, 1, 12, 2, 9), msecs(212)));
testST2(-109_937, SysTime(DateTime(-300, 1, 1, 12, 2, 9), msecs(212)));
testST2(-110_302, SysTime(DateTime(-301, 1, 1, 12, 2, 9), msecs(212)));
testST2(-146_097, SysTime(DateTime(-400, 12, 31, 12, 2, 9), msecs(212)));
testST2(-146_462, SysTime(DateTime(-400, 1, 1, 12, 2, 9), msecs(212)));
testST2(-146_827, SysTime(DateTime(-401, 1, 1, 12, 2, 9), msecs(212)));
testST2(-182_621, SysTime(DateTime(-499, 1, 1, 12, 2, 9), msecs(212)));
testST2(-182_986, SysTime(DateTime(-500, 1, 1, 12, 2, 9), msecs(212)));
testST2(-183_351, SysTime(DateTime(-501, 1, 1, 12, 2, 9), msecs(212)));
testST2(-365_607, SysTime(DateTime(-1000, 1, 1, 12, 2, 9), msecs(212)));
testST2(-365_972, SysTime(DateTime(-1001, 1, 1, 12, 2, 9), msecs(212)));
testST2(-584_387, SysTime(DateTime(-1599, 1, 1, 12, 2, 9), msecs(212)));
testST2(-584_388, SysTime(DateTime(-1600, 12, 31, 12, 2, 9), msecs(212)));
testST2(-584_753, SysTime(DateTime(-1600, 1, 1, 12, 2, 9), msecs(212)));
testST2(-585_118, SysTime(DateTime(-1601, 1, 1, 12, 2, 9), msecs(212)));
testST2(-694_325, SysTime(DateTime(-1900, 1, 1, 12, 2, 9), msecs(212)));
testST2(-694_690, SysTime(DateTime(-1901, 1, 1, 12, 2, 9), msecs(212)));
testST2(-730_484, SysTime(DateTime(-1999, 1, 1, 12, 2, 9), msecs(212)));
testST2(-730_485, SysTime(DateTime(-2000, 12, 31, 12, 2, 9), msecs(212)));
testST2(-730_850, SysTime(DateTime(-2000, 1, 1, 12, 2, 9), msecs(212)));
testST2(-731_215, SysTime(DateTime(-2001, 1, 1, 12, 2, 9), msecs(212)));
testST2(-734_502, SysTime(DateTime(-2010, 1, 1, 12, 2, 9), msecs(212)));
testST2(-734_472, SysTime(DateTime(-2010, 1, 31, 12, 2, 9), msecs(212)));
testST2(-734_471, SysTime(DateTime(-2010, 2, 1, 12, 2, 9), msecs(212)));
testST2(-734_444, SysTime(DateTime(-2010, 2, 28, 12, 2, 9), msecs(212)));
testST2(-734_443, SysTime(DateTime(-2010, 3, 1, 12, 2, 9), msecs(212)));
testST2(-734_413, SysTime(DateTime(-2010, 3, 31, 12, 2, 9), msecs(212)));
testST2(-734_412, SysTime(DateTime(-2010, 4, 1, 12, 2, 9), msecs(212)));
testST2(-734_383, SysTime(DateTime(-2010, 4, 30, 12, 2, 9), msecs(212)));
testST2(-734_382, SysTime(DateTime(-2010, 5, 1, 12, 2, 9), msecs(212)));
testST2(-734_352, SysTime(DateTime(-2010, 5, 31, 12, 2, 9), msecs(212)));
testST2(-734_351, SysTime(DateTime(-2010, 6, 1, 12, 2, 9), msecs(212)));
testST2(-734_322, SysTime(DateTime(-2010, 6, 30, 12, 2, 9), msecs(212)));
testST2(-734_321, SysTime(DateTime(-2010, 7, 1, 12, 2, 9), msecs(212)));
testST2(-734_291, SysTime(DateTime(-2010, 7, 31, 12, 2, 9), msecs(212)));
testST2(-734_290, SysTime(DateTime(-2010, 8, 1, 12, 2, 9), msecs(212)));
testST2(-734_260, SysTime(DateTime(-2010, 8, 31, 12, 2, 9), msecs(212)));
testST2(-734_259, SysTime(DateTime(-2010, 9, 1, 12, 2, 9), msecs(212)));
testST2(-734_230, SysTime(DateTime(-2010, 9, 30, 12, 2, 9), msecs(212)));
testST2(-734_229, SysTime(DateTime(-2010, 10, 1, 12, 2, 9), msecs(212)));
testST2(-734_199, SysTime(DateTime(-2010, 10, 31, 12, 2, 9), msecs(212)));
testST2(-734_198, SysTime(DateTime(-2010, 11, 1, 12, 2, 9), msecs(212)));
testST2(-734_169, SysTime(DateTime(-2010, 11, 30, 12, 2, 9), msecs(212)));
testST2(-734_168, SysTime(DateTime(-2010, 12, 1, 12, 2, 9), msecs(212)));
testST2(-734_138, SysTime(DateTime(-2010, 12, 31, 12, 2, 9), msecs(212)));
testST2(-735_202, SysTime(DateTime(-2012, 2, 1, 12, 2, 9), msecs(212)));
testST2(-735_175, SysTime(DateTime(-2012, 2, 28, 12, 2, 9), msecs(212)));
testST2(-735_174, SysTime(DateTime(-2012, 2, 29, 12, 2, 9), msecs(212)));
testST2(-735_173, SysTime(DateTime(-2012, 3, 1, 12, 2, 9), msecs(212)));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.dayOfGregorianCal = 7));
//static assert(!__traits(compiles, ist.dayOfGregorianCal = 7));
}
/++
The ISO 8601 week of the year that this $(LREF SysTime) is in.
See_Also:
$(HTTP en.wikipedia.org/wiki/ISO_week_date, ISO Week Date).
+/
@property ubyte isoWeek() @safe const nothrow
{
return (cast(Date) this).isoWeek;
}
///
@safe unittest
{
import core.time;
import std.datetime.date : Date;
auto st = SysTime(Date(1999, 7, 6));
const cst = SysTime(Date(2010, 5, 1));
immutable ist = SysTime(Date(2015, 10, 10));
assert(st.isoWeek == 27);
assert(cst.isoWeek == 17);
assert(ist.isoWeek == 41);
}
/++
$(LREF SysTime) for the last day in the month that this Date is in.
The time portion of endOfMonth is always 23:59:59.9999999.
+/
@property SysTime endOfMonth() @safe const nothrow
{
immutable hnsecs = adjTime;
immutable days = getUnitsFromHNSecs!"days"(hnsecs);
auto date = Date(cast(int) days + 1).endOfMonth;
auto newDays = date.dayOfGregorianCal - 1;
long theTimeHNSecs;
if (newDays < 0)
{
theTimeHNSecs = -1;
++newDays;
}
else
theTimeHNSecs = convert!("days", "hnsecs")(1) - 1;
immutable newDaysHNSecs = convert!("days", "hnsecs")(newDays);
auto retval = SysTime(this._stdTime, this._timezone);
retval.adjTime = newDaysHNSecs + theTimeHNSecs;
return retval;
}
///
@safe unittest
{
import core.time : msecs, usecs, hnsecs;
import std.datetime.date : DateTime;
assert(SysTime(DateTime(1999, 1, 6, 0, 0, 0)).endOfMonth ==
SysTime(DateTime(1999, 1, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(DateTime(1999, 2, 7, 19, 30, 0), msecs(24)).endOfMonth ==
SysTime(DateTime(1999, 2, 28, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(DateTime(2000, 2, 7, 5, 12, 27), usecs(5203)).endOfMonth ==
SysTime(DateTime(2000, 2, 29, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(DateTime(2000, 6, 4, 12, 22, 9), hnsecs(12345)).endOfMonth ==
SysTime(DateTime(2000, 6, 30, 23, 59, 59), hnsecs(9_999_999)));
}
@safe unittest
{
import core.time;
// Test A.D.
assert(SysTime(Date(1999, 1, 1)).endOfMonth == SysTime(DateTime(1999, 1, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(1999, 2, 1)).endOfMonth == SysTime(DateTime(1999, 2, 28, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(2000, 2, 1)).endOfMonth == SysTime(DateTime(2000, 2, 29, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(1999, 3, 1)).endOfMonth == SysTime(DateTime(1999, 3, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(1999, 4, 1)).endOfMonth == SysTime(DateTime(1999, 4, 30, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(1999, 5, 1)).endOfMonth == SysTime(DateTime(1999, 5, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(1999, 6, 1)).endOfMonth == SysTime(DateTime(1999, 6, 30, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(1999, 7, 1)).endOfMonth == SysTime(DateTime(1999, 7, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(1999, 8, 1)).endOfMonth == SysTime(DateTime(1999, 8, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(1999, 9, 1)).endOfMonth == SysTime(DateTime(1999, 9, 30, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(1999, 10, 1)).endOfMonth == SysTime(DateTime(1999, 10, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(1999, 11, 1)).endOfMonth == SysTime(DateTime(1999, 11, 30, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(1999, 12, 1)).endOfMonth == SysTime(DateTime(1999, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
// Test B.C.
assert(SysTime(Date(-1999, 1, 1)).endOfMonth == SysTime(DateTime(-1999, 1, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(-1999, 2, 1)).endOfMonth == SysTime(DateTime(-1999, 2, 28, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(-2000, 2, 1)).endOfMonth == SysTime(DateTime(-2000, 2, 29, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(-1999, 3, 1)).endOfMonth == SysTime(DateTime(-1999, 3, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(-1999, 4, 1)).endOfMonth == SysTime(DateTime(-1999, 4, 30, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(-1999, 5, 1)).endOfMonth == SysTime(DateTime(-1999, 5, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(-1999, 6, 1)).endOfMonth == SysTime(DateTime(-1999, 6, 30, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(-1999, 7, 1)).endOfMonth == SysTime(DateTime(-1999, 7, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(-1999, 8, 1)).endOfMonth == SysTime(DateTime(-1999, 8, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(-1999, 9, 1)).endOfMonth == SysTime(DateTime(-1999, 9, 30, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(-1999, 10, 1)).endOfMonth ==
SysTime(DateTime(-1999, 10, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(-1999, 11, 1)).endOfMonth ==
SysTime(DateTime(-1999, 11, 30, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(-1999, 12, 1)).endOfMonth ==
SysTime(DateTime(-1999, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.endOfMonth == SysTime(DateTime(1999, 7, 31, 23, 59, 59), hnsecs(9_999_999)));
//assert(ist.endOfMonth == SysTime(DateTime(1999, 7, 31, 23, 59, 59), hnsecs(9_999_999)));
}
/++
The last day in the month that this $(LREF SysTime) is in.
+/
@property ubyte daysInMonth() @safe const nothrow
{
return Date(dayOfGregorianCal).daysInMonth;
}
///
@safe unittest
{
import core.time;
import std.datetime.date : DateTime;
assert(SysTime(DateTime(1999, 1, 6, 0, 0, 0)).daysInMonth == 31);
assert(SysTime(DateTime(1999, 2, 7, 19, 30, 0)).daysInMonth == 28);
assert(SysTime(DateTime(2000, 2, 7, 5, 12, 27)).daysInMonth == 29);
assert(SysTime(DateTime(2000, 6, 4, 12, 22, 9)).daysInMonth == 30);
}
@safe unittest
{
import core.time;
// Test A.D.
assert(SysTime(DateTime(1999, 1, 1, 12, 1, 13)).daysInMonth == 31);
assert(SysTime(DateTime(1999, 2, 1, 17, 13, 12)).daysInMonth == 28);
assert(SysTime(DateTime(2000, 2, 1, 13, 2, 12)).daysInMonth == 29);
assert(SysTime(DateTime(1999, 3, 1, 12, 13, 12)).daysInMonth == 31);
assert(SysTime(DateTime(1999, 4, 1, 12, 6, 13)).daysInMonth == 30);
assert(SysTime(DateTime(1999, 5, 1, 15, 13, 12)).daysInMonth == 31);
assert(SysTime(DateTime(1999, 6, 1, 13, 7, 12)).daysInMonth == 30);
assert(SysTime(DateTime(1999, 7, 1, 12, 13, 17)).daysInMonth == 31);
assert(SysTime(DateTime(1999, 8, 1, 12, 3, 13)).daysInMonth == 31);
assert(SysTime(DateTime(1999, 9, 1, 12, 13, 12)).daysInMonth == 30);
assert(SysTime(DateTime(1999, 10, 1, 13, 19, 12)).daysInMonth == 31);
assert(SysTime(DateTime(1999, 11, 1, 12, 13, 17)).daysInMonth == 30);
assert(SysTime(DateTime(1999, 12, 1, 12, 52, 13)).daysInMonth == 31);
// Test B.C.
assert(SysTime(DateTime(-1999, 1, 1, 12, 1, 13)).daysInMonth == 31);
assert(SysTime(DateTime(-1999, 2, 1, 7, 13, 12)).daysInMonth == 28);
assert(SysTime(DateTime(-2000, 2, 1, 13, 2, 12)).daysInMonth == 29);
assert(SysTime(DateTime(-1999, 3, 1, 12, 13, 12)).daysInMonth == 31);
assert(SysTime(DateTime(-1999, 4, 1, 12, 6, 13)).daysInMonth == 30);
assert(SysTime(DateTime(-1999, 5, 1, 5, 13, 12)).daysInMonth == 31);
assert(SysTime(DateTime(-1999, 6, 1, 13, 7, 12)).daysInMonth == 30);
assert(SysTime(DateTime(-1999, 7, 1, 12, 13, 17)).daysInMonth == 31);
assert(SysTime(DateTime(-1999, 8, 1, 12, 3, 13)).daysInMonth == 31);
assert(SysTime(DateTime(-1999, 9, 1, 12, 13, 12)).daysInMonth == 30);
assert(SysTime(DateTime(-1999, 10, 1, 13, 19, 12)).daysInMonth == 31);
assert(SysTime(DateTime(-1999, 11, 1, 12, 13, 17)).daysInMonth == 30);
assert(SysTime(DateTime(-1999, 12, 1, 12, 52, 13)).daysInMonth == 31);
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.daysInMonth == 31);
//assert(ist.daysInMonth == 31);
}
/++
Whether the current year is a date in A.D.
+/
@property bool isAD() @safe const nothrow
{
return adjTime >= 0;
}
///
@safe unittest
{
import core.time;
import std.datetime.date : DateTime;
assert(SysTime(DateTime(1, 1, 1, 12, 7, 0)).isAD);
assert(SysTime(DateTime(2010, 12, 31, 0, 0, 0)).isAD);
assert(!SysTime(DateTime(0, 12, 31, 23, 59, 59)).isAD);
assert(!SysTime(DateTime(-2010, 1, 1, 2, 2, 2)).isAD);
}
@safe unittest
{
import core.time;
assert(SysTime(DateTime(2010, 7, 4, 12, 0, 9)).isAD);
assert(SysTime(DateTime(1, 1, 1, 0, 0, 0)).isAD);
assert(!SysTime(DateTime(0, 12, 31, 23, 59, 59)).isAD);
assert(!SysTime(DateTime(0, 1, 1, 23, 59, 59)).isAD);
assert(!SysTime(DateTime(-1, 1, 1, 23 ,59 ,59)).isAD);
assert(!SysTime(DateTime(-2010, 7, 4, 12, 2, 2)).isAD);
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.isAD);
//assert(ist.isAD);
}
/++
The $(HTTP en.wikipedia.org/wiki/Julian_day, Julian day)
for this $(LREF SysTime) at the given time. For example,
prior to noon, 1996-03-31 would be the Julian day number 2_450_173, so
this function returns 2_450_173, while from noon onward, the Julian
day number would be 2_450_174, so this function returns 2_450_174.
+/
@property long julianDay() @safe const nothrow
{
immutable jd = dayOfGregorianCal + 1_721_425;
return hour < 12 ? jd - 1 : jd;
}
@safe unittest
{
import core.time;
assert(SysTime(DateTime(-4713, 11, 24, 0, 0, 0)).julianDay == -1);
assert(SysTime(DateTime(-4713, 11, 24, 12, 0, 0)).julianDay == 0);
assert(SysTime(DateTime(0, 12, 31, 0, 0, 0)).julianDay == 1_721_424);
assert(SysTime(DateTime(0, 12, 31, 12, 0, 0)).julianDay == 1_721_425);
assert(SysTime(DateTime(1, 1, 1, 0, 0, 0)).julianDay == 1_721_425);
assert(SysTime(DateTime(1, 1, 1, 12, 0, 0)).julianDay == 1_721_426);
assert(SysTime(DateTime(1582, 10, 15, 0, 0, 0)).julianDay == 2_299_160);
assert(SysTime(DateTime(1582, 10, 15, 12, 0, 0)).julianDay == 2_299_161);
assert(SysTime(DateTime(1858, 11, 17, 0, 0, 0)).julianDay == 2_400_000);
assert(SysTime(DateTime(1858, 11, 17, 12, 0, 0)).julianDay == 2_400_001);
assert(SysTime(DateTime(1982, 1, 4, 0, 0, 0)).julianDay == 2_444_973);
assert(SysTime(DateTime(1982, 1, 4, 12, 0, 0)).julianDay == 2_444_974);
assert(SysTime(DateTime(1996, 3, 31, 0, 0, 0)).julianDay == 2_450_173);
assert(SysTime(DateTime(1996, 3, 31, 12, 0, 0)).julianDay == 2_450_174);
assert(SysTime(DateTime(2010, 8, 24, 0, 0, 0)).julianDay == 2_455_432);
assert(SysTime(DateTime(2010, 8, 24, 12, 0, 0)).julianDay == 2_455_433);
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.julianDay == 2_451_366);
//assert(ist.julianDay == 2_451_366);
}
/++
The modified $(HTTP en.wikipedia.org/wiki/Julian_day, Julian day) for
any time on this date (since, the modified Julian day changes at
midnight).
+/
@property long modJulianDay() @safe const nothrow
{
return dayOfGregorianCal + 1_721_425 - 2_400_001;
}
@safe unittest
{
import core.time;
assert(SysTime(DateTime(1858, 11, 17, 0, 0, 0)).modJulianDay == 0);
assert(SysTime(DateTime(1858, 11, 17, 12, 0, 0)).modJulianDay == 0);
assert(SysTime(DateTime(2010, 8, 24, 0, 0, 0)).modJulianDay == 55_432);
assert(SysTime(DateTime(2010, 8, 24, 12, 0, 0)).modJulianDay == 55_432);
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.modJulianDay == 51_365);
//assert(ist.modJulianDay == 51_365);
}
/++
Returns a $(REF Date,std,datetime,date) equivalent to this $(LREF SysTime).
+/
Date opCast(T)() @safe const nothrow
if (is(Unqual!T == Date))
{
return Date(dayOfGregorianCal);
}
@safe unittest
{
import core.time;
assert(cast(Date) SysTime(Date(1999, 7, 6)) == Date(1999, 7, 6));
assert(cast(Date) SysTime(Date(2000, 12, 31)) == Date(2000, 12, 31));
assert(cast(Date) SysTime(Date(2001, 1, 1)) == Date(2001, 1, 1));
assert(cast(Date) SysTime(DateTime(1999, 7, 6, 12, 10, 9)) == Date(1999, 7, 6));
assert(cast(Date) SysTime(DateTime(2000, 12, 31, 13, 11, 10)) == Date(2000, 12, 31));
assert(cast(Date) SysTime(DateTime(2001, 1, 1, 14, 12, 11)) == Date(2001, 1, 1));
assert(cast(Date) SysTime(Date(-1999, 7, 6)) == Date(-1999, 7, 6));
assert(cast(Date) SysTime(Date(-2000, 12, 31)) == Date(-2000, 12, 31));
assert(cast(Date) SysTime(Date(-2001, 1, 1)) == Date(-2001, 1, 1));
assert(cast(Date) SysTime(DateTime(-1999, 7, 6, 12, 10, 9)) == Date(-1999, 7, 6));
assert(cast(Date) SysTime(DateTime(-2000, 12, 31, 13, 11, 10)) == Date(-2000, 12, 31));
assert(cast(Date) SysTime(DateTime(-2001, 1, 1, 14, 12, 11)) == Date(-2001, 1, 1));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cast(Date) cst != Date.init);
//assert(cast(Date) ist != Date.init);
}
/++
Returns a $(REF DateTime,std,datetime,date) equivalent to this
$(LREF SysTime).
+/
DateTime opCast(T)() @safe const nothrow
if (is(Unqual!T == DateTime))
{
try
{
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
immutable hour = splitUnitsFromHNSecs!"hours"(hnsecs);
immutable minute = splitUnitsFromHNSecs!"minutes"(hnsecs);
immutable second = getUnitsFromHNSecs!"seconds"(hnsecs);
return DateTime(Date(cast(int) days), TimeOfDay(cast(int) hour, cast(int) minute, cast(int) second));
}
catch (Exception e)
assert(0, "Either DateTime's constructor or TimeOfDay's constructor threw.");
}
@safe unittest
{
import core.time;
assert(cast(DateTime) SysTime(DateTime(1, 1, 6, 7, 12, 22)) == DateTime(1, 1, 6, 7, 12, 22));
assert(cast(DateTime) SysTime(DateTime(1, 1, 6, 7, 12, 22), msecs(22)) == DateTime(1, 1, 6, 7, 12, 22));
assert(cast(DateTime) SysTime(Date(1999, 7, 6)) == DateTime(1999, 7, 6, 0, 0, 0));
assert(cast(DateTime) SysTime(Date(2000, 12, 31)) == DateTime(2000, 12, 31, 0, 0, 0));
assert(cast(DateTime) SysTime(Date(2001, 1, 1)) == DateTime(2001, 1, 1, 0, 0, 0));
assert(cast(DateTime) SysTime(DateTime(1999, 7, 6, 12, 10, 9)) == DateTime(1999, 7, 6, 12, 10, 9));
assert(cast(DateTime) SysTime(DateTime(2000, 12, 31, 13, 11, 10)) == DateTime(2000, 12, 31, 13, 11, 10));
assert(cast(DateTime) SysTime(DateTime(2001, 1, 1, 14, 12, 11)) == DateTime(2001, 1, 1, 14, 12, 11));
assert(cast(DateTime) SysTime(DateTime(-1, 1, 6, 7, 12, 22)) == DateTime(-1, 1, 6, 7, 12, 22));
assert(cast(DateTime) SysTime(DateTime(-1, 1, 6, 7, 12, 22), msecs(22)) == DateTime(-1, 1, 6, 7, 12, 22));
assert(cast(DateTime) SysTime(Date(-1999, 7, 6)) == DateTime(-1999, 7, 6, 0, 0, 0));
assert(cast(DateTime) SysTime(Date(-2000, 12, 31)) == DateTime(-2000, 12, 31, 0, 0, 0));
assert(cast(DateTime) SysTime(Date(-2001, 1, 1)) == DateTime(-2001, 1, 1, 0, 0, 0));
assert(cast(DateTime) SysTime(DateTime(-1999, 7, 6, 12, 10, 9)) == DateTime(-1999, 7, 6, 12, 10, 9));
assert(cast(DateTime) SysTime(DateTime(-2000, 12, 31, 13, 11, 10)) == DateTime(-2000, 12, 31, 13, 11, 10));
assert(cast(DateTime) SysTime(DateTime(-2001, 1, 1, 14, 12, 11)) == DateTime(-2001, 1, 1, 14, 12, 11));
assert(cast(DateTime) SysTime(DateTime(2011, 1, 13, 8, 17, 2), msecs(296), LocalTime()) ==
DateTime(2011, 1, 13, 8, 17, 2));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cast(DateTime) cst != DateTime.init);
//assert(cast(DateTime) ist != DateTime.init);
}
/++
Returns a $(REF TimeOfDay,std,datetime,date) equivalent to this
$(LREF SysTime).
+/
TimeOfDay opCast(T)() @safe const nothrow
if (is(Unqual!T == TimeOfDay))
{
try
{
auto hnsecs = adjTime;
hnsecs = removeUnitsFromHNSecs!"days"(hnsecs);
if (hnsecs < 0)
hnsecs += convert!("hours", "hnsecs")(24);
immutable hour = splitUnitsFromHNSecs!"hours"(hnsecs);
immutable minute = splitUnitsFromHNSecs!"minutes"(hnsecs);
immutable second = getUnitsFromHNSecs!"seconds"(hnsecs);
return TimeOfDay(cast(int) hour, cast(int) minute, cast(int) second);
}
catch (Exception e)
assert(0, "TimeOfDay's constructor threw.");
}
@safe unittest
{
import core.time;
assert(cast(TimeOfDay) SysTime(Date(1999, 7, 6)) == TimeOfDay(0, 0, 0));
assert(cast(TimeOfDay) SysTime(Date(2000, 12, 31)) == TimeOfDay(0, 0, 0));
assert(cast(TimeOfDay) SysTime(Date(2001, 1, 1)) == TimeOfDay(0, 0, 0));
assert(cast(TimeOfDay) SysTime(DateTime(1999, 7, 6, 12, 10, 9)) == TimeOfDay(12, 10, 9));
assert(cast(TimeOfDay) SysTime(DateTime(2000, 12, 31, 13, 11, 10)) == TimeOfDay(13, 11, 10));
assert(cast(TimeOfDay) SysTime(DateTime(2001, 1, 1, 14, 12, 11)) == TimeOfDay(14, 12, 11));
assert(cast(TimeOfDay) SysTime(Date(-1999, 7, 6)) == TimeOfDay(0, 0, 0));
assert(cast(TimeOfDay) SysTime(Date(-2000, 12, 31)) == TimeOfDay(0, 0, 0));
assert(cast(TimeOfDay) SysTime(Date(-2001, 1, 1)) == TimeOfDay(0, 0, 0));
assert(cast(TimeOfDay) SysTime(DateTime(-1999, 7, 6, 12, 10, 9)) == TimeOfDay(12, 10, 9));
assert(cast(TimeOfDay) SysTime(DateTime(-2000, 12, 31, 13, 11, 10)) == TimeOfDay(13, 11, 10));
assert(cast(TimeOfDay) SysTime(DateTime(-2001, 1, 1, 14, 12, 11)) == TimeOfDay(14, 12, 11));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cast(TimeOfDay) cst != TimeOfDay.init);
//assert(cast(TimeOfDay) ist != TimeOfDay.init);
}
// Temporary hack until bug http://d.puremagic.com/issues/show_bug.cgi?id=4867 is fixed.
// This allows assignment from const(SysTime) to SysTime.
// It may be a good idea to keep it though, since casting from a type to itself
// should be allowed, and it doesn't work without this opCast() since opCast()
// has already been defined for other types.
SysTime opCast(T)() @safe const pure nothrow
if (is(Unqual!T == SysTime))
{
return SysTime(_stdTime, _timezone);
}
/++
Converts this $(LREF SysTime) to a string with the format
YYYYMMDDTHHMMSS.FFFFFFFTZ (where F is fractional seconds and TZ is time
zone).
Note that the number of digits in the fractional seconds varies with the
number of fractional seconds. It's a maximum of 7 (which would be
hnsecs), but only has as many as are necessary to hold the correct value
(so no trailing zeroes), and if there are no fractional seconds, then
there is no decimal point.
If this $(LREF SysTime)'s time zone is
$(REF LocalTime,std,datetime,timezone), then TZ is empty. If its time
zone is $(D UTC), then it is "Z". Otherwise, it is the offset from UTC
(e.g. +0100 or -0700). Note that the offset from UTC is $(I not) enough
to uniquely identify the time zone.
Time zone offsets will be in the form +HHMM or -HHMM.
$(RED Warning:
Previously, toISOString did the same as $(LREF toISOExtString) and
generated +HH:MM or -HH:MM for the time zone when it was not
$(REF LocalTime,std,datetime,timezone) or
$(REF UTC,std,datetime,timezone), which is not in conformance with
ISO 8601 for the non-extended string format. This has now been
fixed. However, for now, fromISOString will continue to accept the
extended format for the time zone so that any code which has been
writing out the result of toISOString to read in later will continue
to work. The current behavior will be kept until July 2019 at which
point, fromISOString will be fixed to be standards compliant.)
+/
string toISOString() @safe const nothrow
{
try
{
immutable adjustedTime = adjTime;
long hnsecs = adjustedTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
auto hour = splitUnitsFromHNSecs!"hours"(hnsecs);
auto minute = splitUnitsFromHNSecs!"minutes"(hnsecs);
auto second = splitUnitsFromHNSecs!"seconds"(hnsecs);
auto dateTime = DateTime(Date(cast(int) days), TimeOfDay(cast(int) hour,
cast(int) minute, cast(int) second));
auto fracSecStr = fracSecsToISOString(cast(int) hnsecs);
if (_timezone is LocalTime())
return dateTime.toISOString() ~ fracSecStr;
if (_timezone is UTC())
return dateTime.toISOString() ~ fracSecStr ~ "Z";
immutable utcOffset = dur!"hnsecs"(adjustedTime - stdTime);
return format("%s%s%s",
dateTime.toISOString(),
fracSecStr,
SimpleTimeZone.toISOExtString(utcOffset));
}
catch (Exception e)
assert(0, "format() threw.");
}
///
@safe unittest
{
import core.time : msecs, hnsecs;
import std.datetime.date : DateTime;
assert(SysTime(DateTime(2010, 7, 4, 7, 6, 12)).toISOString() ==
"20100704T070612");
assert(SysTime(DateTime(1998, 12, 25, 2, 15, 0), msecs(24)).toISOString() ==
"19981225T021500.024");
assert(SysTime(DateTime(0, 1, 5, 23, 9, 59)).toISOString() ==
"00000105T230959");
assert(SysTime(DateTime(-4, 1, 5, 0, 0, 2), hnsecs(520_920)).toISOString() ==
"-00040105T000002.052092");
}
@safe unittest
{
import core.time;
// Test A.D.
assert(SysTime(DateTime.init, UTC()).toISOString() == "00010101T000000Z");
assert(SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1), UTC()).toISOString() == "00010101T000000.0000001Z");
assert(SysTime(DateTime(9, 12, 4, 0, 0, 0)).toISOString() == "00091204T000000");
assert(SysTime(DateTime(99, 12, 4, 5, 6, 12)).toISOString() == "00991204T050612");
assert(SysTime(DateTime(999, 12, 4, 13, 44, 59)).toISOString() == "09991204T134459");
assert(SysTime(DateTime(9999, 7, 4, 23, 59, 59)).toISOString() == "99990704T235959");
assert(SysTime(DateTime(10000, 10, 20, 1, 1, 1)).toISOString() == "+100001020T010101");
assert(SysTime(DateTime(9, 12, 4, 0, 0, 0), msecs(42)).toISOString() == "00091204T000000.042");
assert(SysTime(DateTime(99, 12, 4, 5, 6, 12), msecs(100)).toISOString() == "00991204T050612.1");
assert(SysTime(DateTime(999, 12, 4, 13, 44, 59), usecs(45020)).toISOString() == "09991204T134459.04502");
assert(SysTime(DateTime(9999, 7, 4, 23, 59, 59), hnsecs(12)).toISOString() == "99990704T235959.0000012");
assert(SysTime(DateTime(10000, 10, 20, 1, 1, 1), hnsecs(507890)).toISOString() == "+100001020T010101.050789");
assert(SysTime(DateTime(2012, 12, 21, 12, 12, 12),
new immutable SimpleTimeZone(dur!"minutes"(-360))).toISOString() ==
"20121221T121212-06:00");
assert(SysTime(DateTime(2012, 12, 21, 12, 12, 12),
new immutable SimpleTimeZone(dur!"minutes"(420))).toISOString() ==
"20121221T121212+07:00");
// Test B.C.
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999), UTC()).toISOString() ==
"00001231T235959.9999999Z");
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(1), UTC()).toISOString() == "00001231T235959.0000001Z");
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59), UTC()).toISOString() == "00001231T235959Z");
assert(SysTime(DateTime(0, 12, 4, 0, 12, 4)).toISOString() == "00001204T001204");
assert(SysTime(DateTime(-9, 12, 4, 0, 0, 0)).toISOString() == "-00091204T000000");
assert(SysTime(DateTime(-99, 12, 4, 5, 6, 12)).toISOString() == "-00991204T050612");
assert(SysTime(DateTime(-999, 12, 4, 13, 44, 59)).toISOString() == "-09991204T134459");
assert(SysTime(DateTime(-9999, 7, 4, 23, 59, 59)).toISOString() == "-99990704T235959");
assert(SysTime(DateTime(-10000, 10, 20, 1, 1, 1)).toISOString() == "-100001020T010101");
assert(SysTime(DateTime(0, 12, 4, 0, 0, 0), msecs(7)).toISOString() == "00001204T000000.007");
assert(SysTime(DateTime(-9, 12, 4, 0, 0, 0), msecs(42)).toISOString() == "-00091204T000000.042");
assert(SysTime(DateTime(-99, 12, 4, 5, 6, 12), msecs(100)).toISOString() == "-00991204T050612.1");
assert(SysTime(DateTime(-999, 12, 4, 13, 44, 59), usecs(45020)).toISOString() == "-09991204T134459.04502");
assert(SysTime(DateTime(-9999, 7, 4, 23, 59, 59), hnsecs(12)).toISOString() == "-99990704T235959.0000012");
assert(SysTime(DateTime(-10000, 10, 20, 1, 1, 1), hnsecs(507890)).toISOString() == "-100001020T010101.050789");
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cast(TimeOfDay) cst != TimeOfDay.init);
//assert(cast(TimeOfDay) ist != TimeOfDay.init);
}
/++
Converts this $(LREF SysTime) to a string with the format
YYYY-MM-DDTHH:MM:SS.FFFFFFFTZ (where F is fractional seconds and TZ
is the time zone).
Note that the number of digits in the fractional seconds varies with the
number of fractional seconds. It's a maximum of 7 (which would be
hnsecs), but only has as many as are necessary to hold the correct value
(so no trailing zeroes), and if there are no fractional seconds, then
there is no decimal point.
If this $(LREF SysTime)'s time zone is
$(REF LocalTime,std,datetime,timezone), then TZ is empty. If its time
zone is $(D UTC), then it is "Z". Otherwise, it is the offset from UTC
(e.g. +01:00 or -07:00). Note that the offset from UTC is $(I not)
enough to uniquely identify the time zone.
Time zone offsets will be in the form +HH:MM or -HH:MM.
+/
string toISOExtString() @safe const nothrow
{
try
{
immutable adjustedTime = adjTime;
long hnsecs = adjustedTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
auto hour = splitUnitsFromHNSecs!"hours"(hnsecs);
auto minute = splitUnitsFromHNSecs!"minutes"(hnsecs);
auto second = splitUnitsFromHNSecs!"seconds"(hnsecs);
auto dateTime = DateTime(Date(cast(int) days), TimeOfDay(cast(int) hour,
cast(int) minute, cast(int) second));
auto fracSecStr = fracSecsToISOString(cast(int) hnsecs);
if (_timezone is LocalTime())
return dateTime.toISOExtString() ~ fracSecStr;
if (_timezone is UTC())
return dateTime.toISOExtString() ~ fracSecStr ~ "Z";
immutable utcOffset = dur!"hnsecs"(adjustedTime - stdTime);
return format("%s%s%s",
dateTime.toISOExtString(),
fracSecStr,
SimpleTimeZone.toISOExtString(utcOffset));
}
catch (Exception e)
assert(0, "format() threw.");
}
///
@safe unittest
{
import core.time : msecs, hnsecs;
import std.datetime.date : DateTime;
assert(SysTime(DateTime(2010, 7, 4, 7, 6, 12)).toISOExtString() ==
"2010-07-04T07:06:12");
assert(SysTime(DateTime(1998, 12, 25, 2, 15, 0), msecs(24)).toISOExtString() ==
"1998-12-25T02:15:00.024");
assert(SysTime(DateTime(0, 1, 5, 23, 9, 59)).toISOExtString() ==
"0000-01-05T23:09:59");
assert(SysTime(DateTime(-4, 1, 5, 0, 0, 2), hnsecs(520_920)).toISOExtString() ==
"-0004-01-05T00:00:02.052092");
}
@safe unittest
{
import core.time;
// Test A.D.
assert(SysTime(DateTime.init, UTC()).toISOExtString() == "0001-01-01T00:00:00Z");
assert(SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1), UTC()).toISOExtString() ==
"0001-01-01T00:00:00.0000001Z");
assert(SysTime(DateTime(9, 12, 4, 0, 0, 0)).toISOExtString() == "0009-12-04T00:00:00");
assert(SysTime(DateTime(99, 12, 4, 5, 6, 12)).toISOExtString() == "0099-12-04T05:06:12");
assert(SysTime(DateTime(999, 12, 4, 13, 44, 59)).toISOExtString() == "0999-12-04T13:44:59");
assert(SysTime(DateTime(9999, 7, 4, 23, 59, 59)).toISOExtString() == "9999-07-04T23:59:59");
assert(SysTime(DateTime(10000, 10, 20, 1, 1, 1)).toISOExtString() == "+10000-10-20T01:01:01");
assert(SysTime(DateTime(9, 12, 4, 0, 0, 0), msecs(42)).toISOExtString() == "0009-12-04T00:00:00.042");
assert(SysTime(DateTime(99, 12, 4, 5, 6, 12), msecs(100)).toISOExtString() == "0099-12-04T05:06:12.1");
assert(SysTime(DateTime(999, 12, 4, 13, 44, 59), usecs(45020)).toISOExtString() == "0999-12-04T13:44:59.04502");
assert(SysTime(DateTime(9999, 7, 4, 23, 59, 59), hnsecs(12)).toISOExtString() == "9999-07-04T23:59:59.0000012");
assert(SysTime(DateTime(10000, 10, 20, 1, 1, 1), hnsecs(507890)).toISOExtString() ==
"+10000-10-20T01:01:01.050789");
assert(SysTime(DateTime(2012, 12, 21, 12, 12, 12),
new immutable SimpleTimeZone(dur!"minutes"(-360))).toISOExtString() ==
"2012-12-21T12:12:12-06:00");
assert(SysTime(DateTime(2012, 12, 21, 12, 12, 12),
new immutable SimpleTimeZone(dur!"minutes"(420))).toISOExtString() ==
"2012-12-21T12:12:12+07:00");
// Test B.C.
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999), UTC()).toISOExtString() ==
"0000-12-31T23:59:59.9999999Z");
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(1), UTC()).toISOExtString() ==
"0000-12-31T23:59:59.0000001Z");
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59), UTC()).toISOExtString() == "0000-12-31T23:59:59Z");
assert(SysTime(DateTime(0, 12, 4, 0, 12, 4)).toISOExtString() == "0000-12-04T00:12:04");
assert(SysTime(DateTime(-9, 12, 4, 0, 0, 0)).toISOExtString() == "-0009-12-04T00:00:00");
assert(SysTime(DateTime(-99, 12, 4, 5, 6, 12)).toISOExtString() == "-0099-12-04T05:06:12");
assert(SysTime(DateTime(-999, 12, 4, 13, 44, 59)).toISOExtString() == "-0999-12-04T13:44:59");
assert(SysTime(DateTime(-9999, 7, 4, 23, 59, 59)).toISOExtString() == "-9999-07-04T23:59:59");
assert(SysTime(DateTime(-10000, 10, 20, 1, 1, 1)).toISOExtString() == "-10000-10-20T01:01:01");
assert(SysTime(DateTime(0, 12, 4, 0, 0, 0), msecs(7)).toISOExtString() == "0000-12-04T00:00:00.007");
assert(SysTime(DateTime(-9, 12, 4, 0, 0, 0), msecs(42)).toISOExtString() == "-0009-12-04T00:00:00.042");
assert(SysTime(DateTime(-99, 12, 4, 5, 6, 12), msecs(100)).toISOExtString() == "-0099-12-04T05:06:12.1");
assert(SysTime(DateTime(-999, 12, 4, 13, 44, 59), usecs(45020)).toISOExtString() ==
"-0999-12-04T13:44:59.04502");
assert(SysTime(DateTime(-9999, 7, 4, 23, 59, 59), hnsecs(12)).toISOExtString() ==
"-9999-07-04T23:59:59.0000012");
assert(SysTime(DateTime(-10000, 10, 20, 1, 1, 1), hnsecs(507890)).toISOExtString() ==
"-10000-10-20T01:01:01.050789");
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cast(TimeOfDay) cst != TimeOfDay.init);
//assert(cast(TimeOfDay) ist != TimeOfDay.init);
}
/++
Converts this $(LREF SysTime) to a string with the format
YYYY-Mon-DD HH:MM:SS.FFFFFFFTZ (where F is fractional seconds and TZ
is the time zone).
Note that the number of digits in the fractional seconds varies with the
number of fractional seconds. It's a maximum of 7 (which would be
hnsecs), but only has as many as are necessary to hold the correct value
(so no trailing zeroes), and if there are no fractional seconds, then
there is no decimal point.
If this $(LREF SysTime)'s time zone is
$(REF LocalTime,std,datetime,timezone), then TZ is empty. If its time
zone is $(D UTC), then it is "Z". Otherwise, it is the offset from UTC
(e.g. +01:00 or -07:00). Note that the offset from UTC is $(I not)
enough to uniquely identify the time zone.
Time zone offsets will be in the form +HH:MM or -HH:MM.
+/
string toSimpleString() @safe const nothrow
{
try
{
immutable adjustedTime = adjTime;
long hnsecs = adjustedTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
auto hour = splitUnitsFromHNSecs!"hours"(hnsecs);
auto minute = splitUnitsFromHNSecs!"minutes"(hnsecs);
auto second = splitUnitsFromHNSecs!"seconds"(hnsecs);
auto dateTime = DateTime(Date(cast(int) days), TimeOfDay(cast(int) hour,
cast(int) minute, cast(int) second));
auto fracSecStr = fracSecsToISOString(cast(int) hnsecs);
if (_timezone is LocalTime())
return dateTime.toSimpleString() ~ fracSecStr;
if (_timezone is UTC())
return dateTime.toSimpleString() ~ fracSecStr ~ "Z";
immutable utcOffset = dur!"hnsecs"(adjustedTime - stdTime);
return format("%s%s%s",
dateTime.toSimpleString(),
fracSecStr,
SimpleTimeZone.toISOExtString(utcOffset));
}
catch (Exception e)
assert(0, "format() threw.");
}
///
@safe unittest
{
import core.time : msecs, hnsecs;
import std.datetime.date : DateTime;
assert(SysTime(DateTime(2010, 7, 4, 7, 6, 12)).toSimpleString() ==
"2010-Jul-04 07:06:12");
assert(SysTime(DateTime(1998, 12, 25, 2, 15, 0), msecs(24)).toSimpleString() ==
"1998-Dec-25 02:15:00.024");
assert(SysTime(DateTime(0, 1, 5, 23, 9, 59)).toSimpleString() ==
"0000-Jan-05 23:09:59");
assert(SysTime(DateTime(-4, 1, 5, 0, 0, 2), hnsecs(520_920)).toSimpleString() ==
"-0004-Jan-05 00:00:02.052092");
}
@safe unittest
{
import core.time;
// Test A.D.
assert(SysTime(DateTime.init, UTC()).toString() == "0001-Jan-01 00:00:00Z");
assert(SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1), UTC()).toString() == "0001-Jan-01 00:00:00.0000001Z");
assert(SysTime(DateTime(9, 12, 4, 0, 0, 0)).toSimpleString() == "0009-Dec-04 00:00:00");
assert(SysTime(DateTime(99, 12, 4, 5, 6, 12)).toSimpleString() == "0099-Dec-04 05:06:12");
assert(SysTime(DateTime(999, 12, 4, 13, 44, 59)).toSimpleString() == "0999-Dec-04 13:44:59");
assert(SysTime(DateTime(9999, 7, 4, 23, 59, 59)).toSimpleString() == "9999-Jul-04 23:59:59");
assert(SysTime(DateTime(10000, 10, 20, 1, 1, 1)).toSimpleString() == "+10000-Oct-20 01:01:01");
assert(SysTime(DateTime(9, 12, 4, 0, 0, 0), msecs(42)).toSimpleString() == "0009-Dec-04 00:00:00.042");
assert(SysTime(DateTime(99, 12, 4, 5, 6, 12), msecs(100)).toSimpleString() == "0099-Dec-04 05:06:12.1");
assert(SysTime(DateTime(999, 12, 4, 13, 44, 59), usecs(45020)).toSimpleString() ==
"0999-Dec-04 13:44:59.04502");
assert(SysTime(DateTime(9999, 7, 4, 23, 59, 59), hnsecs(12)).toSimpleString() ==
"9999-Jul-04 23:59:59.0000012");
assert(SysTime(DateTime(10000, 10, 20, 1, 1, 1), hnsecs(507890)).toSimpleString() ==
"+10000-Oct-20 01:01:01.050789");
assert(SysTime(DateTime(2012, 12, 21, 12, 12, 12),
new immutable SimpleTimeZone(dur!"minutes"(-360))).toSimpleString() ==
"2012-Dec-21 12:12:12-06:00");
assert(SysTime(DateTime(2012, 12, 21, 12, 12, 12),
new immutable SimpleTimeZone(dur!"minutes"(420))).toSimpleString() ==
"2012-Dec-21 12:12:12+07:00");
// Test B.C.
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999), UTC()).toSimpleString() ==
"0000-Dec-31 23:59:59.9999999Z");
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(1), UTC()).toSimpleString() ==
"0000-Dec-31 23:59:59.0000001Z");
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59), UTC()).toSimpleString() == "0000-Dec-31 23:59:59Z");
assert(SysTime(DateTime(0, 12, 4, 0, 12, 4)).toSimpleString() == "0000-Dec-04 00:12:04");
assert(SysTime(DateTime(-9, 12, 4, 0, 0, 0)).toSimpleString() == "-0009-Dec-04 00:00:00");
assert(SysTime(DateTime(-99, 12, 4, 5, 6, 12)).toSimpleString() == "-0099-Dec-04 05:06:12");
assert(SysTime(DateTime(-999, 12, 4, 13, 44, 59)).toSimpleString() == "-0999-Dec-04 13:44:59");
assert(SysTime(DateTime(-9999, 7, 4, 23, 59, 59)).toSimpleString() == "-9999-Jul-04 23:59:59");
assert(SysTime(DateTime(-10000, 10, 20, 1, 1, 1)).toSimpleString() == "-10000-Oct-20 01:01:01");
assert(SysTime(DateTime(0, 12, 4, 0, 0, 0), msecs(7)).toSimpleString() == "0000-Dec-04 00:00:00.007");
assert(SysTime(DateTime(-9, 12, 4, 0, 0, 0), msecs(42)).toSimpleString() == "-0009-Dec-04 00:00:00.042");
assert(SysTime(DateTime(-99, 12, 4, 5, 6, 12), msecs(100)).toSimpleString() == "-0099-Dec-04 05:06:12.1");
assert(SysTime(DateTime(-999, 12, 4, 13, 44, 59), usecs(45020)).toSimpleString() ==
"-0999-Dec-04 13:44:59.04502");
assert(SysTime(DateTime(-9999, 7, 4, 23, 59, 59), hnsecs(12)).toSimpleString() ==
"-9999-Jul-04 23:59:59.0000012");
assert(SysTime(DateTime(-10000, 10, 20, 1, 1, 1), hnsecs(507890)).toSimpleString() ==
"-10000-Oct-20 01:01:01.050789");
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cast(TimeOfDay) cst != TimeOfDay.init);
//assert(cast(TimeOfDay) ist != TimeOfDay.init);
}
/++
Converts this $(LREF SysTime) to a string.
This function exists to make it easy to convert a $(LREF SysTime) to a
string for code that does not care what the exact format is - just that
it presents the information in a clear manner. It also makes it easy to
simply convert a $(LREF SysTime) to a string when using functions such
as `to!string`, `format`, or `writeln` which use toString to convert
user-defined types. So, it is unlikely that much code will call
toString directly.
The format of the string is purposefully unspecified, and code that
cares about the format of the string should use `toISOString`,
`toISOExtString`, `toSimpleString`, or some other custom formatting
function that explicitly generates the format that the code needs. The
reason is that the code is then clear about what format it's using,
making it less error-prone to maintain the code and interact with other
software that consumes the generated strings. It's for this same reason
that $(LREF SysTime) has no `fromString` function, whereas it does have
`fromISOString`, `fromISOExtString`, and `fromSimpleString`.
The format returned by toString may or may not change in the future.
+/
string toString() @safe const nothrow
{
return toSimpleString();
}
@safe unittest
{
import core.time;
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(st.toString());
assert(cst.toString());
//assert(ist.toString());
}
/++
Creates a $(LREF SysTime) from a string with the format
YYYYMMDDTHHMMSS.FFFFFFFTZ (where F is fractional seconds is the time
zone). Whitespace is stripped from the given string.
The exact format is exactly as described in $(D toISOString) except that
trailing zeroes are permitted - including having fractional seconds with
all zeroes. However, a decimal point with nothing following it is
invalid. Also, while $(LREF toISOString) will never generate a string
with more than 7 digits in the fractional seconds (because that's the
limit with hecto-nanosecond precision), it will allow more than 7 digits
in order to read strings from other sources that have higher precision
(however, any digits beyond 7 will be truncated).
If there is no time zone in the string, then
$(REF LocalTime,std,datetime,timezone) is used. If the time zone is "Z",
then $(D UTC) is used. Otherwise, a
$(REF SimpleTimeZone,std,datetime,timezone) which corresponds to the
given offset from UTC is used. To get the returned $(LREF SysTime) to be
a particular time zone, pass in that time zone and the $(LREF SysTime)
to be returned will be converted to that time zone (though it will still
be read in as whatever time zone is in its string).
The accepted formats for time zone offsets are +HH, -HH, +HHMM, and
-HHMM.
$(RED Warning:
Previously, $(LREF toISOString) did the same as
$(LREF toISOExtString) and generated +HH:MM or -HH:MM for the time
zone when it was not $(REF LocalTime,std,datetime,timezone) or
$(REF UTC,std,datetime,timezone), which is not in conformance with
ISO 8601 for the non-extended string format. This has now been
fixed. However, for now, fromISOString will continue to accept the
extended format for the time zone so that any code which has been
writing out the result of toISOString to read in later will continue
to work. The current behavior will be kept until July 2019 at which
point, fromISOString will be fixed to be standards compliant.)
Params:
isoString = A string formatted in the ISO format for dates and times.
tz = The time zone to convert the given time to (no
conversion occurs if null).
Throws:
$(REF DateTimeException,std,datetime,date) if the given string is
not in the ISO format or if the resulting $(LREF SysTime) would not
be valid.
+/
static SysTime fromISOString(S)(in S isoString, immutable TimeZone tz = null) @safe
if (isSomeString!S)
{
import std.algorithm.searching : startsWith, find;
import std.conv : to;
import std.string : strip;
auto dstr = to!dstring(strip(isoString));
immutable skipFirst = dstr.startsWith('+', '-') != 0;
auto found = (skipFirst ? dstr[1..$] : dstr).find('.', 'Z', '+', '-');
auto dateTimeStr = dstr[0 .. $ - found[0].length];
dstring fracSecStr;
dstring zoneStr;
if (found[1] != 0)
{
if (found[1] == 1)
{
auto foundTZ = found[0].find('Z', '+', '-');
if (foundTZ[1] != 0)
{
fracSecStr = found[0][0 .. $ - foundTZ[0].length];
zoneStr = foundTZ[0];
}
else
fracSecStr = found[0];
}
else
zoneStr = found[0];
}
try
{
auto dateTime = DateTime.fromISOString(dateTimeStr);
auto fracSec = fracSecsFromISOString(fracSecStr);
Rebindable!(immutable TimeZone) parsedZone;
if (zoneStr.empty)
parsedZone = LocalTime();
else if (zoneStr == "Z")
parsedZone = UTC();
else
{
try
parsedZone = SimpleTimeZone.fromISOString(zoneStr);
catch (DateTimeException dte)
parsedZone = SimpleTimeZone.fromISOExtString(zoneStr);
}
auto retval = SysTime(dateTime, fracSec, parsedZone);
if (tz !is null)
retval.timezone = tz;
return retval;
}
catch (DateTimeException dte)
throw new DateTimeException(format("Invalid ISO String: %s", isoString));
}
///
@safe unittest
{
import core.time : hours, msecs, usecs, hnsecs;
import std.datetime.date : DateTime;
import std.datetime.timezone : SimpleTimeZone, UTC;
assert(SysTime.fromISOString("20100704T070612") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12)));
assert(SysTime.fromISOString("19981225T021500.007") ==
SysTime(DateTime(1998, 12, 25, 2, 15, 0), msecs(7)));
assert(SysTime.fromISOString("00000105T230959.00002") ==
SysTime(DateTime(0, 1, 5, 23, 9, 59), usecs(20)));
assert(SysTime.fromISOString("20130207T043937.000050392") ==
SysTime(DateTime(2013, 2, 7, 4, 39, 37), hnsecs(503)));
assert(SysTime.fromISOString("-00040105T000002") ==
SysTime(DateTime(-4, 1, 5, 0, 0, 2)));
assert(SysTime.fromISOString(" 20100704T070612 ") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12)));
assert(SysTime.fromISOString("20100704T070612Z") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12), UTC()));
assert(SysTime.fromISOString("20100704T070612-0800") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12),
new immutable SimpleTimeZone(hours(-8))));
assert(SysTime.fromISOString("20100704T070612+0800") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12),
new immutable SimpleTimeZone(hours(8))));
}
@safe unittest
{
import core.time;
foreach (str; ["", "20100704000000", "20100704 000000", "20100704t000000",
"20100704T000000.", "20100704T000000.A", "20100704T000000.Z",
"20100704T000000.0000000A", "20100704T000000.00000000A",
"20100704T000000+", "20100704T000000-", "20100704T000000:",
"20100704T000000-:", "20100704T000000+:", "20100704T000000-1:",
"20100704T000000+1:", "20100704T000000+1:0",
"20100704T000000-12.00", "20100704T000000+12.00",
"20100704T000000-8", "20100704T000000+8",
"20100704T000000-800", "20100704T000000+800",
"20100704T000000-080", "20100704T000000+080",
"20100704T000000-2400", "20100704T000000+2400",
"20100704T000000-1260", "20100704T000000+1260",
"20100704T000000.0-8", "20100704T000000.0+8",
"20100704T000000.0-800", "20100704T000000.0+800",
"20100704T000000.0-080", "20100704T000000.0+080",
"20100704T000000.0-2400", "20100704T000000.0+2400",
"20100704T000000.0-1260", "20100704T000000.0+1260",
"20100704T000000-8:00", "20100704T000000+8:00",
"20100704T000000-08:0", "20100704T000000+08:0",
"20100704T000000-24:00", "20100704T000000+24:00",
"20100704T000000-12:60", "20100704T000000+12:60",
"20100704T000000.0-8:00", "20100704T000000.0+8:00",
"20100704T000000.0-08:0", "20100704T000000.0+08:0",
"20100704T000000.0-24:00", "20100704T000000.0+24:00",
"20100704T000000.0-12:60", "20100704T000000.0+12:60",
"2010-07-0400:00:00", "2010-07-04 00:00:00",
"2010-07-04t00:00:00", "2010-07-04T00:00:00.",
"2010-Jul-0400:00:00", "2010-Jul-04 00:00:00", "2010-Jul-04t00:00:00",
"2010-Jul-04T00:00:00", "2010-Jul-04 00:00:00.",
"2010-12-22T172201", "2010-Dec-22 17:22:01"])
{
assertThrown!DateTimeException(SysTime.fromISOString(str), format("[%s]", str));
}
static void test(string str, SysTime st, size_t line = __LINE__)
{
if (SysTime.fromISOString(str) != st)
throw new AssertError("unittest failure", __FILE__, line);
}
test("20101222T172201", SysTime(DateTime(2010, 12, 22, 17, 22, 01)));
test("19990706T123033", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test("-19990706T123033", SysTime(DateTime(-1999, 7, 6, 12, 30, 33)));
test("+019990706T123033", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test("19990706T123033 ", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test(" 19990706T123033", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test(" 19990706T123033 ", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test("19070707T121212.0", SysTime(DateTime(1907, 07, 07, 12, 12, 12)));
test("19070707T121212.0000000", SysTime(DateTime(1907, 07, 07, 12, 12, 12)));
test("19070707T121212.0000001", SysTime(DateTime(1907, 07, 07, 12, 12, 12), hnsecs(1)));
test("20100704T000000.00000000", SysTime(Date(2010, 07, 04)));
test("20100704T000000.00000009", SysTime(Date(2010, 07, 04)));
test("20100704T000000.00000019", SysTime(DateTime(2010, 07, 04), hnsecs(1)));
test("19070707T121212.000001", SysTime(DateTime(1907, 07, 07, 12, 12, 12), usecs(1)));
test("19070707T121212.0000010", SysTime(DateTime(1907, 07, 07, 12, 12, 12), usecs(1)));
test("19070707T121212.001", SysTime(DateTime(1907, 07, 07, 12, 12, 12), msecs(1)));
test("19070707T121212.0010000", SysTime(DateTime(1907, 07, 07, 12, 12, 12), msecs(1)));
auto west60 = new immutable SimpleTimeZone(hours(-1));
auto west90 = new immutable SimpleTimeZone(minutes(-90));
auto west480 = new immutable SimpleTimeZone(hours(-8));
auto east60 = new immutable SimpleTimeZone(hours(1));
auto east90 = new immutable SimpleTimeZone(minutes(90));
auto east480 = new immutable SimpleTimeZone(hours(8));
test("20101222T172201Z", SysTime(DateTime(2010, 12, 22, 17, 22, 01), UTC()));
test("20101222T172201-0100", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west60));
test("20101222T172201-01", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west60));
test("20101222T172201-0130", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west90));
test("20101222T172201-0800", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west480));
test("20101222T172201+0100", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east60));
test("20101222T172201+01", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east60));
test("20101222T172201+0130", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east90));
test("20101222T172201+0800", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east480));
test("20101103T065106.57159Z", SysTime(DateTime(2010, 11, 3, 6, 51, 6), hnsecs(5715900), UTC()));
test("20101222T172201.23412Z", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(2_341_200), UTC()));
test("20101222T172201.23112-0100", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(2_311_200), west60));
test("20101222T172201.45-01", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(4_500_000), west60));
test("20101222T172201.1-0130", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(1_000_000), west90));
test("20101222T172201.55-0800", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(5_500_000), west480));
test("20101222T172201.1234567+0100", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(1_234_567), east60));
test("20101222T172201.0+01", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east60));
test("20101222T172201.0000000+0130", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east90));
test("20101222T172201.45+0800", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(4_500_000), east480));
// @@@DEPRECATED_2019-07@@@
// This isn't deprecated per se, but that text will make it so that it
// pops up when deprecations are moved along around July 2019. At that
// time, we will update fromISOString so that it is conformant with ISO
// 8601, and it will no longer accept ISO extended time zones (it does
// currently because of issue #15654 - toISOString used to incorrectly
// use the ISO extended time zone format). These tests will then start
// failing will need to be updated accordingly. Also, the notes about
// this issue in toISOString and fromISOString's documentation will need
// to be removed.
test("20101222T172201-01:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west60));
test("20101222T172201-01:30", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west90));
test("20101222T172201-08:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west480));
test("20101222T172201+01:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east60));
test("20101222T172201+01:30", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east90));
test("20101222T172201+08:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east480));
test("20101222T172201.23112-01:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(2_311_200), west60));
test("20101222T172201.1-01:30", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(1_000_000), west90));
test("20101222T172201.55-08:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(5_500_000), west480));
test("20101222T172201.1234567+01:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(1_234_567), east60));
test("20101222T172201.0000000+01:30", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east90));
test("20101222T172201.45+08:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(4_500_000), east480));
}
// bug# 17801
@safe unittest
{
import std.conv : to;
import std.meta : AliasSeq;
static foreach (C; AliasSeq!(char, wchar, dchar))
{
static foreach (S; AliasSeq!(C[], const(C)[], immutable(C)[]))
{
assert(SysTime.fromISOString(to!S("20121221T141516Z")) ==
SysTime(DateTime(2012, 12, 21, 14, 15, 16), UTC()));
}
}
}
/++
Creates a $(LREF SysTime) from a string with the format
YYYY-MM-DDTHH:MM:SS.FFFFFFFTZ (where F is fractional seconds is the
time zone). Whitespace is stripped from the given string.
The exact format is exactly as described in $(D toISOExtString)
except that trailing zeroes are permitted - including having fractional
seconds with all zeroes. However, a decimal point with nothing following
it is invalid. Also, while $(LREF toISOExtString) will never generate a
string with more than 7 digits in the fractional seconds (because that's
the limit with hecto-nanosecond precision), it will allow more than 7
digits in order to read strings from other sources that have higher
precision (however, any digits beyond 7 will be truncated).
If there is no time zone in the string, then
$(REF LocalTime,std,datetime,timezone) is used. If the time zone is "Z",
then $(D UTC) is used. Otherwise, a
$(REF SimpleTimeZone,std,datetime,timezone) which corresponds to the
given offset from UTC is used. To get the returned $(LREF SysTime) to be
a particular time zone, pass in that time zone and the $(LREF SysTime)
to be returned will be converted to that time zone (though it will still
be read in as whatever time zone is in its string).
The accepted formats for time zone offsets are +HH, -HH, +HH:MM, and
-HH:MM.
Params:
isoExtString = A string formatted in the ISO Extended format for
dates and times.
tz = The time zone to convert the given time to (no
conversion occurs if null).
Throws:
$(REF DateTimeException,std,datetime,date) if the given string is
not in the ISO format or if the resulting $(LREF SysTime) would not
be valid.
+/
static SysTime fromISOExtString(S)(in S isoExtString, immutable TimeZone tz = null) @safe
if (isSomeString!(S))
{
import std.algorithm.searching : countUntil, find;
import std.conv : to;
import std.string : strip;
auto dstr = to!dstring(strip(isoExtString));
auto tIndex = dstr.countUntil('T');
enforce(tIndex != -1, new DateTimeException(format("Invalid ISO Extended String: %s", isoExtString)));
auto found = dstr[tIndex + 1 .. $].find('.', 'Z', '+', '-');
auto dateTimeStr = dstr[0 .. $ - found[0].length];
dstring fracSecStr;
dstring zoneStr;
if (found[1] != 0)
{
if (found[1] == 1)
{
auto foundTZ = found[0].find('Z', '+', '-');
if (foundTZ[1] != 0)
{
fracSecStr = found[0][0 .. $ - foundTZ[0].length];
zoneStr = foundTZ[0];
}
else
fracSecStr = found[0];
}
else
zoneStr = found[0];
}
try
{
auto dateTime = DateTime.fromISOExtString(dateTimeStr);
auto fracSec = fracSecsFromISOString(fracSecStr);
Rebindable!(immutable TimeZone) parsedZone;
if (zoneStr.empty)
parsedZone = LocalTime();
else if (zoneStr == "Z")
parsedZone = UTC();
else
parsedZone = SimpleTimeZone.fromISOExtString(zoneStr);
auto retval = SysTime(dateTime, fracSec, parsedZone);
if (tz !is null)
retval.timezone = tz;
return retval;
}
catch (DateTimeException dte)
throw new DateTimeException(format("Invalid ISO Extended String: %s", isoExtString));
}
///
@safe unittest
{
import core.time : hours, msecs, usecs, hnsecs;
import std.datetime.date : DateTime;
import std.datetime.timezone : SimpleTimeZone, UTC;
assert(SysTime.fromISOExtString("2010-07-04T07:06:12") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12)));
assert(SysTime.fromISOExtString("1998-12-25T02:15:00.007") ==
SysTime(DateTime(1998, 12, 25, 2, 15, 0), msecs(7)));
assert(SysTime.fromISOExtString("0000-01-05T23:09:59.00002") ==
SysTime(DateTime(0, 1, 5, 23, 9, 59), usecs(20)));
assert(SysTime.fromISOExtString("2013-02-07T04:39:37.000050392") ==
SysTime(DateTime(2013, 2, 7, 4, 39, 37), hnsecs(503)));
assert(SysTime.fromISOExtString("-0004-01-05T00:00:02") ==
SysTime(DateTime(-4, 1, 5, 0, 0, 2)));
assert(SysTime.fromISOExtString(" 2010-07-04T07:06:12 ") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12)));
assert(SysTime.fromISOExtString("2010-07-04T07:06:12Z") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12), UTC()));
assert(SysTime.fromISOExtString("2010-07-04T07:06:12-08:00") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12),
new immutable SimpleTimeZone(hours(-8))));
assert(SysTime.fromISOExtString("2010-07-04T07:06:12+08:00") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12),
new immutable SimpleTimeZone(hours(8))));
}
@safe unittest
{
import core.time;
foreach (str; ["", "20100704000000", "20100704 000000",
"20100704t000000", "20100704T000000.", "20100704T000000.0",
"2010-07:0400:00:00", "2010-07-04 00:00:00",
"2010-07-04 00:00:00", "2010-07-04t00:00:00",
"2010-07-04T00:00:00.", "2010-07-04T00:00:00.A", "2010-07-04T00:00:00.Z",
"2010-07-04T00:00:00.0000000A", "2010-07-04T00:00:00.00000000A",
"2010-07-04T00:00:00+", "2010-07-04T00:00:00-",
"2010-07-04T00:00:00:", "2010-07-04T00:00:00-:", "2010-07-04T00:00:00+:",
"2010-07-04T00:00:00-1:", "2010-07-04T00:00:00+1:", "2010-07-04T00:00:00+1:0",
"2010-07-04T00:00:00-12.00", "2010-07-04T00:00:00+12.00",
"2010-07-04T00:00:00-8", "2010-07-04T00:00:00+8",
"20100704T000000-800", "20100704T000000+800",
"20100704T000000-080", "20100704T000000+080",
"20100704T000000-2400", "20100704T000000+2400",
"20100704T000000-1260", "20100704T000000+1260",
"20100704T000000.0-800", "20100704T000000.0+800",
"20100704T000000.0-8", "20100704T000000.0+8",
"20100704T000000.0-080", "20100704T000000.0+080",
"20100704T000000.0-2400", "20100704T000000.0+2400",
"20100704T000000.0-1260", "20100704T000000.0+1260",
"2010-07-04T00:00:00-8:00", "2010-07-04T00:00:00+8:00",
"2010-07-04T00:00:00-24:00", "2010-07-04T00:00:00+24:00",
"2010-07-04T00:00:00-12:60", "2010-07-04T00:00:00+12:60",
"2010-07-04T00:00:00.0-8:00", "2010-07-04T00:00:00.0+8:00",
"2010-07-04T00:00:00.0-8", "2010-07-04T00:00:00.0+8",
"2010-07-04T00:00:00.0-24:00", "2010-07-04T00:00:00.0+24:00",
"2010-07-04T00:00:00.0-12:60", "2010-07-04T00:00:00.0+12:60",
"2010-Jul-0400:00:00", "2010-Jul-04t00:00:00",
"2010-Jul-04 00:00:00.", "2010-Jul-04 00:00:00.0",
"20101222T172201", "2010-Dec-22 17:22:01"])
{
assertThrown!DateTimeException(SysTime.fromISOExtString(str), format("[%s]", str));
}
static void test(string str, SysTime st, size_t line = __LINE__)
{
if (SysTime.fromISOExtString(str) != st)
throw new AssertError("unittest failure", __FILE__, line);
}
test("2010-12-22T17:22:01", SysTime(DateTime(2010, 12, 22, 17, 22, 01)));
test("1999-07-06T12:30:33", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test("-1999-07-06T12:30:33", SysTime(DateTime(-1999, 7, 6, 12, 30, 33)));
test("+01999-07-06T12:30:33", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test("1999-07-06T12:30:33 ", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test(" 1999-07-06T12:30:33", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test(" 1999-07-06T12:30:33 ", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test("1907-07-07T12:12:12.0", SysTime(DateTime(1907, 07, 07, 12, 12, 12)));
test("1907-07-07T12:12:12.0000000", SysTime(DateTime(1907, 07, 07, 12, 12, 12)));
test("1907-07-07T12:12:12.0000001", SysTime(DateTime(1907, 07, 07, 12, 12, 12), hnsecs(1)));
test("2010-07-04T00:00:00.00000000", SysTime(Date(2010, 07, 04)));
test("2010-07-04T00:00:00.00000009", SysTime(Date(2010, 07, 04)));
test("2010-07-04T00:00:00.00000019", SysTime(DateTime(2010, 07, 04), hnsecs(1)));
test("1907-07-07T12:12:12.000001", SysTime(DateTime(1907, 07, 07, 12, 12, 12), usecs(1)));
test("1907-07-07T12:12:12.0000010", SysTime(DateTime(1907, 07, 07, 12, 12, 12), usecs(1)));
test("1907-07-07T12:12:12.001", SysTime(DateTime(1907, 07, 07, 12, 12, 12), msecs(1)));
test("1907-07-07T12:12:12.0010000", SysTime(DateTime(1907, 07, 07, 12, 12, 12), msecs(1)));
auto west60 = new immutable SimpleTimeZone(hours(-1));
auto west90 = new immutable SimpleTimeZone(minutes(-90));
auto west480 = new immutable SimpleTimeZone(hours(-8));
auto east60 = new immutable SimpleTimeZone(hours(1));
auto east90 = new immutable SimpleTimeZone(minutes(90));
auto east480 = new immutable SimpleTimeZone(hours(8));
test("2010-12-22T17:22:01Z", SysTime(DateTime(2010, 12, 22, 17, 22, 01), UTC()));
test("2010-12-22T17:22:01-01:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west60));
test("2010-12-22T17:22:01-01", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west60));
test("2010-12-22T17:22:01-01:30", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west90));
test("2010-12-22T17:22:01-08:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west480));
test("2010-12-22T17:22:01+01:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east60));
test("2010-12-22T17:22:01+01", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east60));
test("2010-12-22T17:22:01+01:30", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east90));
test("2010-12-22T17:22:01+08:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east480));
test("2010-11-03T06:51:06.57159Z", SysTime(DateTime(2010, 11, 3, 6, 51, 6), hnsecs(5715900), UTC()));
test("2010-12-22T17:22:01.23412Z", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(2_341_200), UTC()));
test("2010-12-22T17:22:01.23112-01:00",
SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(2_311_200), west60));
test("2010-12-22T17:22:01.45-01", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(4_500_000), west60));
test("2010-12-22T17:22:01.1-01:30", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(1_000_000), west90));
test("2010-12-22T17:22:01.55-08:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(5_500_000), west480));
test("2010-12-22T17:22:01.1234567+01:00",
SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(1_234_567), east60));
test("2010-12-22T17:22:01.0+01", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east60));
test("2010-12-22T17:22:01.0000000+01:30", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east90));
test("2010-12-22T17:22:01.45+08:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(4_500_000), east480));
}
// bug# 17801
@safe unittest
{
import core.time;
import std.conv : to;
import std.meta : AliasSeq;
static foreach (C; AliasSeq!(char, wchar, dchar))
{
static foreach (S; AliasSeq!(C[], const(C)[], immutable(C)[]))
{
assert(SysTime.fromISOExtString(to!S("2012-12-21T14:15:16Z")) ==
SysTime(DateTime(2012, 12, 21, 14, 15, 16), UTC()));
}
}
}
/++
Creates a $(LREF SysTime) from a string with the format
YYYY-MM-DD HH:MM:SS.FFFFFFFTZ (where F is fractional seconds is the
time zone). Whitespace is stripped from the given string.
The exact format is exactly as described in $(D toSimpleString) except
that trailing zeroes are permitted - including having fractional seconds
with all zeroes. However, a decimal point with nothing following it is
invalid. Also, while $(LREF toSimpleString) will never generate a
string with more than 7 digits in the fractional seconds (because that's
the limit with hecto-nanosecond precision), it will allow more than 7
digits in order to read strings from other sources that have higher
precision (however, any digits beyond 7 will be truncated).
If there is no time zone in the string, then
$(REF LocalTime,std,datetime,timezone) is used. If the time zone is "Z",
then $(D UTC) is used. Otherwise, a
$(REF SimpleTimeZone,std,datetime,timezone) which corresponds to the
given offset from UTC is used. To get the returned $(LREF SysTime) to be
a particular time zone, pass in that time zone and the $(LREF SysTime)
to be returned will be converted to that time zone (though it will still
be read in as whatever time zone is in its string).
The accepted formats for time zone offsets are +HH, -HH, +HH:MM, and
-HH:MM.
Params:
simpleString = A string formatted in the way that
$(D toSimpleString) formats dates and times.
tz = The time zone to convert the given time to (no
conversion occurs if null).
Throws:
$(REF DateTimeException,std,datetime,date) if the given string is
not in the ISO format or if the resulting $(LREF SysTime) would not
be valid.
+/
static SysTime fromSimpleString(S)(in S simpleString, immutable TimeZone tz = null) @safe
if (isSomeString!(S))
{
import std.algorithm.searching : countUntil, find;
import std.conv : to;
import std.string : strip;
auto dstr = to!dstring(strip(simpleString));
auto spaceIndex = dstr.countUntil(' ');
enforce(spaceIndex != -1, new DateTimeException(format("Invalid Simple String: %s", simpleString)));
auto found = dstr[spaceIndex + 1 .. $].find('.', 'Z', '+', '-');
auto dateTimeStr = dstr[0 .. $ - found[0].length];
dstring fracSecStr;
dstring zoneStr;
if (found[1] != 0)
{
if (found[1] == 1)
{
auto foundTZ = found[0].find('Z', '+', '-');
if (foundTZ[1] != 0)
{
fracSecStr = found[0][0 .. $ - foundTZ[0].length];
zoneStr = foundTZ[0];
}
else
fracSecStr = found[0];
}
else
zoneStr = found[0];
}
try
{
auto dateTime = DateTime.fromSimpleString(dateTimeStr);
auto fracSec = fracSecsFromISOString(fracSecStr);
Rebindable!(immutable TimeZone) parsedZone;
if (zoneStr.empty)
parsedZone = LocalTime();
else if (zoneStr == "Z")
parsedZone = UTC();
else
parsedZone = SimpleTimeZone.fromISOExtString(zoneStr);
auto retval = SysTime(dateTime, fracSec, parsedZone);
if (tz !is null)
retval.timezone = tz;
return retval;
}
catch (DateTimeException dte)
throw new DateTimeException(format("Invalid Simple String: %s", simpleString));
}
///
@safe unittest
{
import core.time : hours, msecs, usecs, hnsecs;
import std.datetime.date : DateTime;
import std.datetime.timezone : SimpleTimeZone, UTC;
assert(SysTime.fromSimpleString("2010-Jul-04 07:06:12") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12)));
assert(SysTime.fromSimpleString("1998-Dec-25 02:15:00.007") ==
SysTime(DateTime(1998, 12, 25, 2, 15, 0), msecs(7)));
assert(SysTime.fromSimpleString("0000-Jan-05 23:09:59.00002") ==
SysTime(DateTime(0, 1, 5, 23, 9, 59), usecs(20)));
assert(SysTime.fromSimpleString("2013-Feb-07 04:39:37.000050392") ==
SysTime(DateTime(2013, 2, 7, 4, 39, 37), hnsecs(503)));
assert(SysTime.fromSimpleString("-0004-Jan-05 00:00:02") ==
SysTime(DateTime(-4, 1, 5, 0, 0, 2)));
assert(SysTime.fromSimpleString(" 2010-Jul-04 07:06:12 ") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12)));
assert(SysTime.fromSimpleString("2010-Jul-04 07:06:12Z") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12), UTC()));
assert(SysTime.fromSimpleString("2010-Jul-04 07:06:12-08:00") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12),
new immutable SimpleTimeZone(hours(-8))));
assert(SysTime.fromSimpleString("2010-Jul-04 07:06:12+08:00") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12),
new immutable SimpleTimeZone(hours(8))));
}
@safe unittest
{
import core.time;
foreach (str; ["", "20100704000000", "20100704 000000",
"20100704t000000", "20100704T000000.", "20100704T000000.0",
"2010-07-0400:00:00", "2010-07-04 00:00:00", "2010-07-04t00:00:00",
"2010-07-04T00:00:00.", "2010-07-04T00:00:00.0",
"2010-Jul-0400:00:00", "2010-Jul-04t00:00:00", "2010-Jul-04T00:00:00",
"2010-Jul-04 00:00:00.", "2010-Jul-04 00:00:00.A", "2010-Jul-04 00:00:00.Z",
"2010-Jul-04 00:00:00.0000000A", "2010-Jul-04 00:00:00.00000000A",
"2010-Jul-04 00:00:00+", "2010-Jul-04 00:00:00-",
"2010-Jul-04 00:00:00:", "2010-Jul-04 00:00:00-:",
"2010-Jul-04 00:00:00+:", "2010-Jul-04 00:00:00-1:",
"2010-Jul-04 00:00:00+1:", "2010-Jul-04 00:00:00+1:0",
"2010-Jul-04 00:00:00-12.00", "2010-Jul-04 00:00:00+12.00",
"2010-Jul-04 00:00:00-8", "2010-Jul-04 00:00:00+8",
"20100704T000000-800", "20100704T000000+800",
"20100704T000000-080", "20100704T000000+080",
"20100704T000000-2400", "20100704T000000+2400",
"20100704T000000-1260", "20100704T000000+1260",
"20100704T000000.0-800", "20100704T000000.0+800",
"20100704T000000.0-8", "20100704T000000.0+8",
"20100704T000000.0-080", "20100704T000000.0+080",
"20100704T000000.0-2400", "20100704T000000.0+2400",
"20100704T000000.0-1260", "20100704T000000.0+1260",
"2010-Jul-04 00:00:00-8:00", "2010-Jul-04 00:00:00+8:00",
"2010-Jul-04 00:00:00-08:0", "2010-Jul-04 00:00:00+08:0",
"2010-Jul-04 00:00:00-24:00", "2010-Jul-04 00:00:00+24:00",
"2010-Jul-04 00:00:00-12:60", "2010-Jul-04 00:00:00+24:60",
"2010-Jul-04 00:00:00.0-8:00", "2010-Jul-04 00:00:00+8:00",
"2010-Jul-04 00:00:00.0-8", "2010-Jul-04 00:00:00.0+8",
"2010-Jul-04 00:00:00.0-08:0", "2010-Jul-04 00:00:00.0+08:0",
"2010-Jul-04 00:00:00.0-24:00", "2010-Jul-04 00:00:00.0+24:00",
"2010-Jul-04 00:00:00.0-12:60", "2010-Jul-04 00:00:00.0+24:60",
"20101222T172201", "2010-12-22T172201"])
{
assertThrown!DateTimeException(SysTime.fromSimpleString(str), format("[%s]", str));
}
static void test(string str, SysTime st, size_t line = __LINE__)
{
if (SysTime.fromSimpleString(str) != st)
throw new AssertError("unittest failure", __FILE__, line);
}
test("2010-Dec-22 17:22:01", SysTime(DateTime(2010, 12, 22, 17, 22, 01)));
test("1999-Jul-06 12:30:33", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test("-1999-Jul-06 12:30:33", SysTime(DateTime(-1999, 7, 6, 12, 30, 33)));
test("+01999-Jul-06 12:30:33", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test("1999-Jul-06 12:30:33 ", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test(" 1999-Jul-06 12:30:33", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test(" 1999-Jul-06 12:30:33 ", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test("1907-Jul-07 12:12:12.0", SysTime(DateTime(1907, 07, 07, 12, 12, 12)));
test("1907-Jul-07 12:12:12.0000000", SysTime(DateTime(1907, 07, 07, 12, 12, 12)));
test("2010-Jul-04 00:00:00.00000000", SysTime(Date(2010, 07, 04)));
test("2010-Jul-04 00:00:00.00000009", SysTime(Date(2010, 07, 04)));
test("2010-Jul-04 00:00:00.00000019", SysTime(DateTime(2010, 07, 04), hnsecs(1)));
test("1907-Jul-07 12:12:12.0000001", SysTime(DateTime(1907, 07, 07, 12, 12, 12), hnsecs(1)));
test("1907-Jul-07 12:12:12.000001", SysTime(DateTime(1907, 07, 07, 12, 12, 12), usecs(1)));
test("1907-Jul-07 12:12:12.0000010", SysTime(DateTime(1907, 07, 07, 12, 12, 12), usecs(1)));
test("1907-Jul-07 12:12:12.001", SysTime(DateTime(1907, 07, 07, 12, 12, 12), msecs(1)));
test("1907-Jul-07 12:12:12.0010000", SysTime(DateTime(1907, 07, 07, 12, 12, 12), msecs(1)));
auto west60 = new immutable SimpleTimeZone(hours(-1));
auto west90 = new immutable SimpleTimeZone(minutes(-90));
auto west480 = new immutable SimpleTimeZone(hours(-8));
auto east60 = new immutable SimpleTimeZone(hours(1));
auto east90 = new immutable SimpleTimeZone(minutes(90));
auto east480 = new immutable SimpleTimeZone(hours(8));
test("2010-Dec-22 17:22:01Z", SysTime(DateTime(2010, 12, 22, 17, 22, 01), UTC()));
test("2010-Dec-22 17:22:01-01:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west60));
test("2010-Dec-22 17:22:01-01", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west60));
test("2010-Dec-22 17:22:01-01:30", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west90));
test("2010-Dec-22 17:22:01-08:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west480));
test("2010-Dec-22 17:22:01+01:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east60));
test("2010-Dec-22 17:22:01+01", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east60));
test("2010-Dec-22 17:22:01+01:30", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east90));
test("2010-Dec-22 17:22:01+08:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east480));
test("2010-Nov-03 06:51:06.57159Z", SysTime(DateTime(2010, 11, 3, 6, 51, 6), hnsecs(5715900), UTC()));
test("2010-Dec-22 17:22:01.23412Z", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(2_341_200), UTC()));
test("2010-Dec-22 17:22:01.23112-01:00",
SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(2_311_200), west60));
test("2010-Dec-22 17:22:01.45-01", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(4_500_000), west60));
test("2010-Dec-22 17:22:01.1-01:30", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(1_000_000), west90));
test("2010-Dec-22 17:22:01.55-08:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(5_500_000), west480));
test("2010-Dec-22 17:22:01.1234567+01:00",
SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(1_234_567), east60));
test("2010-Dec-22 17:22:01.0+01", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east60));
test("2010-Dec-22 17:22:01.0000000+01:30", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east90));
test("2010-Dec-22 17:22:01.45+08:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(4_500_000), east480));
}
// bug# 17801
@safe unittest
{
import core.time;
import std.conv : to;
import std.meta : AliasSeq;
static foreach (C; AliasSeq!(char, wchar, dchar))
{
static foreach (S; AliasSeq!(C[], const(C)[], immutable(C)[]))
{
assert(SysTime.fromSimpleString(to!S("2012-Dec-21 14:15:16Z")) ==
SysTime(DateTime(2012, 12, 21, 14, 15, 16), UTC()));
}
}
}
/++
Returns the $(LREF SysTime) farthest in the past which is representable
by $(LREF SysTime).
The $(LREF SysTime) which is returned is in UTC.
+/
@property static SysTime min() @safe pure nothrow
{
return SysTime(long.min, UTC());
}
@safe unittest
{
assert(SysTime.min.year < 0);
assert(SysTime.min < SysTime.max);
}
/++
Returns the $(LREF SysTime) farthest in the future which is representable
by $(LREF SysTime).
The $(LREF SysTime) which is returned is in UTC.
+/
@property static SysTime max() @safe pure nothrow
{
return SysTime(long.max, UTC());
}
@safe unittest
{
assert(SysTime.max.year > 0);
assert(SysTime.max > SysTime.min);
}
private:
/+
Returns $(D stdTime) converted to $(LREF SysTime)'s time zone.
+/
@property long adjTime() @safe const nothrow
{
return _timezone.utcToTZ(_stdTime);
}
/+
Converts the given hnsecs from $(LREF SysTime)'s time zone to std time.
+/
@property void adjTime(long adjTime) @safe nothrow
{
_stdTime = _timezone.tzToUTC(adjTime);
}
// Commented out due to bug http://d.puremagic.com/issues/show_bug.cgi?id=5058
/+
invariant()
{
assert(_timezone !is null, "Invariant Failure: timezone is null. Were you foolish enough to use " ~
"SysTime.init? (since timezone for SysTime.init can't be set at compile time).");
}
+/
long _stdTime;
Rebindable!(immutable TimeZone) _timezone;
}
/++
Converts from unix time (which uses midnight, January 1st, 1970 UTC as its
epoch and seconds as its units) to "std time" (which uses midnight,
January 1st, 1 A.D. UTC and hnsecs as its units).
The C standard does not specify the representation of time_t, so it is
implementation defined. On POSIX systems, unix time is equivalent to
time_t, but that's not necessarily true on other systems (e.g. it is
not true for the Digital Mars C runtime). So, be careful when using unix
time with C functions on non-POSIX systems.
"std time"'s epoch is based on the Proleptic Gregorian Calendar per ISO
8601 and is what $(LREF SysTime) uses internally. However, holding the time
as an integer in hnsecs since that epoch technically isn't actually part of
the standard, much as it's based on it, so the name "std time" isn't
particularly good, but there isn't an official name for it. C# uses "ticks"
for the same thing, but they aren't actually clock ticks, and the term
"ticks" $(I is) used for actual clock ticks for $(REF MonoTime, core,time),
so it didn't make sense to use the term ticks here. So, for better or worse,
std.datetime uses the term "std time" for this.
Params:
unixTime = The unix time to convert.
See_Also:
SysTime.fromUnixTime
+/
long unixTimeToStdTime(long unixTime) @safe pure nothrow
{
return 621_355_968_000_000_000L + convert!("seconds", "hnsecs")(unixTime);
}
///
@safe unittest
{
import std.datetime.date : DateTime;
import std.datetime.timezone : UTC;
// Midnight, January 1st, 1970
assert(unixTimeToStdTime(0) == 621_355_968_000_000_000L);
assert(SysTime(unixTimeToStdTime(0)) ==
SysTime(DateTime(1970, 1, 1), UTC()));
assert(unixTimeToStdTime(int.max) == 642_830_804_470_000_000L);
assert(SysTime(unixTimeToStdTime(int.max)) ==
SysTime(DateTime(2038, 1, 19, 3, 14, 07), UTC()));
assert(unixTimeToStdTime(-127_127) == 621_354_696_730_000_000L);
assert(SysTime(unixTimeToStdTime(-127_127)) ==
SysTime(DateTime(1969, 12, 30, 12, 41, 13), UTC()));
}
@safe unittest
{
// Midnight, January 2nd, 1970
assert(unixTimeToStdTime(86_400) == 621_355_968_000_000_000L + 864_000_000_000L);
// Midnight, December 31st, 1969
assert(unixTimeToStdTime(-86_400) == 621_355_968_000_000_000L - 864_000_000_000L);
assert(unixTimeToStdTime(0) == (Date(1970, 1, 1) - Date(1, 1, 1)).total!"hnsecs");
assert(unixTimeToStdTime(0) == (DateTime(1970, 1, 1) - DateTime(1, 1, 1)).total!"hnsecs");
foreach (dt; [DateTime(2010, 11, 1, 19, 5, 22), DateTime(1952, 7, 6, 2, 17, 9)])
assert(unixTimeToStdTime((dt - DateTime(1970, 1, 1)).total!"seconds") == (dt - DateTime.init).total!"hnsecs");
}
/++
Converts std time (which uses midnight, January 1st, 1 A.D. UTC as its epoch
and hnsecs as its units) to unix time (which uses midnight, January 1st,
1970 UTC as its epoch and seconds as its units).
The C standard does not specify the representation of time_t, so it is
implementation defined. On POSIX systems, unix time is equivalent to
time_t, but that's not necessarily true on other systems (e.g. it is
not true for the Digital Mars C runtime). So, be careful when using unix
time with C functions on non-POSIX systems.
"std time"'s epoch is based on the Proleptic Gregorian Calendar per ISO
8601 and is what $(LREF SysTime) uses internally. However, holding the time
as an integer in hnescs since that epoch technically isn't actually part of
the standard, much as it's based on it, so the name "std time" isn't
particularly good, but there isn't an official name for it. C# uses "ticks"
for the same thing, but they aren't actually clock ticks, and the term
"ticks" $(I is) used for actual clock ticks for $(REF MonoTime, core,time),
so it didn't make sense to use the term ticks here. So, for better or worse,
std.datetime uses the term "std time" for this.
By default, the return type is time_t (which is normally an alias for
int on 32-bit systems and long on 64-bit systems), but if a different
size is required than either int or long can be passed as a template
argument to get the desired size.
If the return type is int, and the result can't fit in an int, then the
closest value that can be held in 32 bits will be used (so $(D int.max)
if it goes over and $(D int.min) if it goes under). However, no attempt
is made to deal with integer overflow if the return type is long.
Params:
T = The return type (int or long). It defaults to time_t, which is
normally 32 bits on a 32-bit system and 64 bits on a 64-bit
system.
stdTime = The std time to convert.
Returns:
A signed integer representing the unix time which is equivalent to
the given std time.
See_Also:
SysTime.toUnixTime
+/
T stdTimeToUnixTime(T = time_t)(long stdTime) @safe pure nothrow
if (is(T == int) || is(T == long))
{
immutable unixTime = convert!("hnsecs", "seconds")(stdTime - 621_355_968_000_000_000L);
static assert(is(time_t == int) || is(time_t == long),
"Currently, std.datetime only supports systems where time_t is int or long");
static if (is(T == long))
return unixTime;
else static if (is(T == int))
{
if (unixTime > int.max)
return int.max;
return unixTime < int.min ? int.min : cast(int) unixTime;
}
else
static assert(0, "Bug in template constraint. Only int and long allowed.");
}
///
@safe unittest
{
// Midnight, January 1st, 1970 UTC
assert(stdTimeToUnixTime(621_355_968_000_000_000L) == 0);
// 2038-01-19 03:14:07 UTC
assert(stdTimeToUnixTime(642_830_804_470_000_000L) == int.max);
}
@safe unittest
{
enum unixEpochAsStdTime = (Date(1970, 1, 1) - Date.init).total!"hnsecs";
assert(stdTimeToUnixTime(unixEpochAsStdTime) == 0); // Midnight, January 1st, 1970
assert(stdTimeToUnixTime(unixEpochAsStdTime + 864_000_000_000L) == 86_400); // Midnight, January 2nd, 1970
assert(stdTimeToUnixTime(unixEpochAsStdTime - 864_000_000_000L) == -86_400); // Midnight, December 31st, 1969
assert(stdTimeToUnixTime((Date(1970, 1, 1) - Date(1, 1, 1)).total!"hnsecs") == 0);
assert(stdTimeToUnixTime((DateTime(1970, 1, 1) - DateTime(1, 1, 1)).total!"hnsecs") == 0);
foreach (dt; [DateTime(2010, 11, 1, 19, 5, 22), DateTime(1952, 7, 6, 2, 17, 9)])
assert(stdTimeToUnixTime((dt - DateTime.init).total!"hnsecs") == (dt - DateTime(1970, 1, 1)).total!"seconds");
enum max = convert!("seconds", "hnsecs")(int.max);
enum min = convert!("seconds", "hnsecs")(int.min);
enum one = convert!("seconds", "hnsecs")(1);
assert(stdTimeToUnixTime!long(unixEpochAsStdTime + max) == int.max);
assert(stdTimeToUnixTime!int(unixEpochAsStdTime + max) == int.max);
assert(stdTimeToUnixTime!long(unixEpochAsStdTime + max + one) == int.max + 1L);
assert(stdTimeToUnixTime!int(unixEpochAsStdTime + max + one) == int.max);
assert(stdTimeToUnixTime!long(unixEpochAsStdTime + max + 9_999_999) == int.max);
assert(stdTimeToUnixTime!int(unixEpochAsStdTime + max + 9_999_999) == int.max);
assert(stdTimeToUnixTime!long(unixEpochAsStdTime + min) == int.min);
assert(stdTimeToUnixTime!int(unixEpochAsStdTime + min) == int.min);
assert(stdTimeToUnixTime!long(unixEpochAsStdTime + min - one) == int.min - 1L);
assert(stdTimeToUnixTime!int(unixEpochAsStdTime + min - one) == int.min);
assert(stdTimeToUnixTime!long(unixEpochAsStdTime + min - 9_999_999) == int.min);
assert(stdTimeToUnixTime!int(unixEpochAsStdTime + min - 9_999_999) == int.min);
}
version(StdDdoc)
{
version(Windows)
{}
else
{
alias SYSTEMTIME = void*;
alias FILETIME = void*;
}
/++
$(BLUE This function is Windows-Only.)
Converts a $(D SYSTEMTIME) struct to a $(LREF SysTime).
Params:
st = The $(D SYSTEMTIME) struct to convert.
tz = The time zone that the time in the $(D SYSTEMTIME) struct is
assumed to be (if the $(D SYSTEMTIME) was supplied by a Windows
system call, the $(D SYSTEMTIME) will either be in local time
or UTC, depending on the call).
Throws:
$(REF DateTimeException,std,datetime,date) if the given
$(D SYSTEMTIME) will not fit in a $(LREF SysTime), which is highly
unlikely to happen given that $(D SysTime.max) is in 29,228 A.D. and
the maximum $(D SYSTEMTIME) is in 30,827 A.D.
+/
SysTime SYSTEMTIMEToSysTime(const SYSTEMTIME* st, immutable TimeZone tz = LocalTime()) @safe;
/++
$(BLUE This function is Windows-Only.)
Converts a $(LREF SysTime) to a $(D SYSTEMTIME) struct.
The $(D SYSTEMTIME) which is returned will be set using the given
$(LREF SysTime)'s time zone, so to get the $(D SYSTEMTIME) in
UTC, set the $(LREF SysTime)'s time zone to UTC.
Params:
sysTime = The $(LREF SysTime) to convert.
Throws:
$(REF DateTimeException,std,datetime,date) if the given
$(LREF SysTime) will not fit in a $(D SYSTEMTIME). This will only
happen if the $(LREF SysTime)'s date is prior to 1601 A.D.
+/
SYSTEMTIME SysTimeToSYSTEMTIME(in SysTime sysTime) @safe;
/++
$(BLUE This function is Windows-Only.)
Converts a $(D FILETIME) struct to the number of hnsecs since midnight,
January 1st, 1 A.D.
Params:
ft = The $(D FILETIME) struct to convert.
Throws:
$(REF DateTimeException,std,datetime,date) if the given
$(D FILETIME) cannot be represented as the return value.
+/
long FILETIMEToStdTime(scope const FILETIME* ft) @safe;
/++
$(BLUE This function is Windows-Only.)
Converts a $(D FILETIME) struct to a $(LREF SysTime).
Params:
ft = The $(D FILETIME) struct to convert.
tz = The time zone that the $(LREF SysTime) will be in
($(D FILETIME)s are in UTC).
Throws:
$(REF DateTimeException,std,datetime,date) if the given
$(D FILETIME) will not fit in a $(LREF SysTime).
+/
SysTime FILETIMEToSysTime(scope const FILETIME* ft, immutable TimeZone tz = LocalTime()) @safe;
/++
$(BLUE This function is Windows-Only.)
Converts a number of hnsecs since midnight, January 1st, 1 A.D. to a
$(D FILETIME) struct.
Params:
stdTime = The number of hnsecs since midnight, January 1st, 1 A.D.
UTC.
Throws:
$(REF DateTimeException,std,datetime,date) if the given value will
not fit in a $(D FILETIME).
+/
FILETIME stdTimeToFILETIME(long stdTime) @safe;
/++
$(BLUE This function is Windows-Only.)
Converts a $(LREF SysTime) to a $(D FILETIME) struct.
$(D FILETIME)s are always in UTC.
Params:
sysTime = The $(LREF SysTime) to convert.
Throws:
$(REF DateTimeException,std,datetime,date) if the given
$(LREF SysTime) will not fit in a $(D FILETIME).
+/
FILETIME SysTimeToFILETIME(SysTime sysTime) @safe;
}
else version(Windows)
{
SysTime SYSTEMTIMEToSysTime(const SYSTEMTIME* st, immutable TimeZone tz = LocalTime()) @safe
{
const max = SysTime.max;
static void throwLaterThanMax()
{
throw new DateTimeException("The given SYSTEMTIME is for a date greater than SysTime.max.");
}
if (st.wYear > max.year)
throwLaterThanMax();
else if (st.wYear == max.year)
{
if (st.wMonth > max.month)
throwLaterThanMax();
else if (st.wMonth == max.month)
{
if (st.wDay > max.day)
throwLaterThanMax();
else if (st.wDay == max.day)
{
if (st.wHour > max.hour)
throwLaterThanMax();
else if (st.wHour == max.hour)
{
if (st.wMinute > max.minute)
throwLaterThanMax();
else if (st.wMinute == max.minute)
{
if (st.wSecond > max.second)
throwLaterThanMax();
else if (st.wSecond == max.second)
{
if (st.wMilliseconds > max.fracSecs.total!"msecs")
throwLaterThanMax();
}
}
}
}
}
}
auto dt = DateTime(st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond);
import core.time : msecs;
return SysTime(dt, msecs(st.wMilliseconds), tz);
}
@system unittest
{
auto sysTime = Clock.currTime(UTC());
SYSTEMTIME st = void;
GetSystemTime(&st);
auto converted = SYSTEMTIMEToSysTime(&st, UTC());
import core.time : abs;
assert(abs((converted - sysTime)) <= dur!"seconds"(2));
}
SYSTEMTIME SysTimeToSYSTEMTIME(in SysTime sysTime) @safe
{
immutable dt = cast(DateTime) sysTime;
if (dt.year < 1601)
throw new DateTimeException("SYSTEMTIME cannot hold dates prior to the year 1601.");
SYSTEMTIME st;
st.wYear = dt.year;
st.wMonth = dt.month;
st.wDayOfWeek = dt.dayOfWeek;
st.wDay = dt.day;
st.wHour = dt.hour;
st.wMinute = dt.minute;
st.wSecond = dt.second;
st.wMilliseconds = cast(ushort) sysTime.fracSecs.total!"msecs";
return st;
}
@system unittest
{
SYSTEMTIME st = void;
GetSystemTime(&st);
auto sysTime = SYSTEMTIMEToSysTime(&st, UTC());
SYSTEMTIME result = SysTimeToSYSTEMTIME(sysTime);
assert(st.wYear == result.wYear);
assert(st.wMonth == result.wMonth);
assert(st.wDayOfWeek == result.wDayOfWeek);
assert(st.wDay == result.wDay);
assert(st.wHour == result.wHour);
assert(st.wMinute == result.wMinute);
assert(st.wSecond == result.wSecond);
assert(st.wMilliseconds == result.wMilliseconds);
}
private enum hnsecsFrom1601 = 504_911_232_000_000_000L;
long FILETIMEToStdTime(scope const FILETIME* ft) @safe
{
ULARGE_INTEGER ul;
ul.HighPart = ft.dwHighDateTime;
ul.LowPart = ft.dwLowDateTime;
ulong tempHNSecs = ul.QuadPart;
if (tempHNSecs > long.max - hnsecsFrom1601)
throw new DateTimeException("The given FILETIME cannot be represented as a stdTime value.");
return cast(long) tempHNSecs + hnsecsFrom1601;
}
SysTime FILETIMEToSysTime(scope const FILETIME* ft, immutable TimeZone tz = LocalTime()) @safe
{
auto sysTime = SysTime(FILETIMEToStdTime(ft), UTC());
sysTime.timezone = tz;
return sysTime;
}
@system unittest
{
auto sysTime = Clock.currTime(UTC());
SYSTEMTIME st = void;
GetSystemTime(&st);
FILETIME ft = void;
SystemTimeToFileTime(&st, &ft);
auto converted = FILETIMEToSysTime(&ft);
import core.time : abs;
assert(abs((converted - sysTime)) <= dur!"seconds"(2));
}
FILETIME stdTimeToFILETIME(long stdTime) @safe
{
if (stdTime < hnsecsFrom1601)
throw new DateTimeException("The given stdTime value cannot be represented as a FILETIME.");
ULARGE_INTEGER ul;
ul.QuadPart = cast(ulong) stdTime - hnsecsFrom1601;
FILETIME ft;
ft.dwHighDateTime = ul.HighPart;
ft.dwLowDateTime = ul.LowPart;
return ft;
}
FILETIME SysTimeToFILETIME(SysTime sysTime) @safe
{
return stdTimeToFILETIME(sysTime.stdTime);
}
@system unittest
{
SYSTEMTIME st = void;
GetSystemTime(&st);
FILETIME ft = void;
SystemTimeToFileTime(&st, &ft);
auto sysTime = FILETIMEToSysTime(&ft, UTC());
FILETIME result = SysTimeToFILETIME(sysTime);
assert(ft.dwLowDateTime == result.dwLowDateTime);
assert(ft.dwHighDateTime == result.dwHighDateTime);
}
}
/++
Type representing the DOS file date/time format.
+/
alias DosFileTime = uint;
/++
Converts from DOS file date/time to $(LREF SysTime).
Params:
dft = The DOS file time to convert.
tz = The time zone which the DOS file time is assumed to be in.
Throws:
$(REF DateTimeException,std,datetime,date) if the $(D DosFileTime) is
invalid.
+/
SysTime DosFileTimeToSysTime(DosFileTime dft, immutable TimeZone tz = LocalTime()) @safe
{
uint dt = cast(uint) dft;
if (dt == 0)
throw new DateTimeException("Invalid DosFileTime.");
int year = ((dt >> 25) & 0x7F) + 1980;
int month = ((dt >> 21) & 0x0F); // 1 .. 12
int dayOfMonth = ((dt >> 16) & 0x1F); // 1 .. 31
int hour = (dt >> 11) & 0x1F; // 0 .. 23
int minute = (dt >> 5) & 0x3F; // 0 .. 59
int second = (dt << 1) & 0x3E; // 0 .. 58 (in 2 second increments)
try
return SysTime(DateTime(year, month, dayOfMonth, hour, minute, second), tz);
catch (DateTimeException dte)
throw new DateTimeException("Invalid DosFileTime", __FILE__, __LINE__, dte);
}
@safe unittest
{
assert(DosFileTimeToSysTime(0b00000000001000010000000000000000) == SysTime(DateTime(1980, 1, 1, 0, 0, 0)));
assert(DosFileTimeToSysTime(0b11111111100111111011111101111101) == SysTime(DateTime(2107, 12, 31, 23, 59, 58)));
assert(DosFileTimeToSysTime(0x3E3F8456) == SysTime(DateTime(2011, 1, 31, 16, 34, 44)));
}
/++
Converts from $(LREF SysTime) to DOS file date/time.
Params:
sysTime = The $(LREF SysTime) to convert.
Throws:
$(REF DateTimeException,std,datetime,date) if the given
$(LREF SysTime) cannot be converted to a $(D DosFileTime).
+/
DosFileTime SysTimeToDosFileTime(SysTime sysTime) @safe
{
auto dateTime = cast(DateTime) sysTime;
if (dateTime.year < 1980)
throw new DateTimeException("DOS File Times cannot hold dates prior to 1980.");
if (dateTime.year > 2107)
throw new DateTimeException("DOS File Times cannot hold dates past 2107.");
uint retval = 0;
retval = (dateTime.year - 1980) << 25;
retval |= (dateTime.month & 0x0F) << 21;
retval |= (dateTime.day & 0x1F) << 16;
retval |= (dateTime.hour & 0x1F) << 11;
retval |= (dateTime.minute & 0x3F) << 5;
retval |= (dateTime.second >> 1) & 0x1F;
return cast(DosFileTime) retval;
}
@safe unittest
{
assert(SysTimeToDosFileTime(SysTime(DateTime(1980, 1, 1, 0, 0, 0))) == 0b00000000001000010000000000000000);
assert(SysTimeToDosFileTime(SysTime(DateTime(2107, 12, 31, 23, 59, 58))) == 0b11111111100111111011111101111101);
assert(SysTimeToDosFileTime(SysTime(DateTime(2011, 1, 31, 16, 34, 44))) == 0x3E3F8456);
}
/++
The given array of $(D char) or random-access range of $(D char) or
$(D ubyte) is expected to be in the format specified in
$(HTTP tools.ietf.org/html/rfc5322, RFC 5322) section 3.3 with the
grammar rule $(I date-time). It is the date-time format commonly used in
internet messages such as e-mail and HTTP. The corresponding
$(LREF SysTime) will be returned.
RFC 822 was the original spec (hence the function's name), whereas RFC 5322
is the current spec.
The day of the week is ignored beyond verifying that it's a valid day of the
week, as the day of the week can be inferred from the date. It is not
checked whether the given day of the week matches the actual day of the week
of the given date (though it is technically invalid per the spec if the
day of the week doesn't match the actual day of the week of the given date).
If the time zone is $(D "-0000") (or considered to be equivalent to
$(D "-0000") by section 4.3 of the spec), a
$(REF SimpleTimeZone,std,datetime,timezone) with a utc offset of $(D 0) is
used rather than $(REF UTC,std,datetime,timezone), whereas $(D "+0000") uses
$(REF UTC,std,datetime,timezone).
Note that because $(LREF SysTime) does not currently support having a second
value of 60 (as is sometimes done for leap seconds), if the date-time value
does have a value of 60 for the seconds, it is treated as 59.
The one area in which this function violates RFC 5322 is that it accepts
$(D "\n") in folding whitespace in the place of $(D "\r\n"), because the
HTTP spec requires it.
Throws:
$(REF DateTimeException,std,datetime,date) if the given string doesn't
follow the grammar for a date-time field or if the resulting
$(LREF SysTime) is invalid.
+/
SysTime parseRFC822DateTime()(in char[] value) @safe
{
import std.string : representation;
return parseRFC822DateTime(value.representation);
}
/++ Ditto +/
SysTime parseRFC822DateTime(R)(R value) @safe
if (isRandomAccessRange!R && hasSlicing!R && hasLength!R &&
(is(Unqual!(ElementType!R) == char) || is(Unqual!(ElementType!R) == ubyte)))
{
import std.algorithm.searching : find, all;
import std.ascii : isDigit, isAlpha, isPrintable;
import std.conv : to;
import std.functional : not;
import std.string : capitalize, format;
import std.traits : EnumMembers, isArray;
import std.typecons : Rebindable;
void stripAndCheckLen(R valueBefore, size_t minLen, size_t line = __LINE__)
{
value = _stripCFWS(valueBefore);
if (value.length < minLen)
throw new DateTimeException("date-time value too short", __FILE__, line);
}
stripAndCheckLen(value, "7Dec1200:00A".length);
static if (isArray!R && (is(ElementEncodingType!R == char) || is(ElementEncodingType!R == ubyte)))
{
static string sliceAsString(R str) @trusted
{
return cast(string) str;
}
}
else
{
char[4] temp;
char[] sliceAsString(R str) @trusted
{
size_t i = 0;
foreach (c; str)
temp[i++] = cast(char) c;
return temp[0 .. str.length];
}
}
// day-of-week
if (isAlpha(value[0]))
{
auto dowStr = sliceAsString(value[0 .. 3]);
switch (dowStr)
{
foreach (dow; EnumMembers!DayOfWeek)
{
enum dowC = capitalize(to!string(dow));
case dowC:
goto afterDoW;
}
default: throw new DateTimeException(format("Invalid day-of-week: %s", dowStr));
}
afterDoW: stripAndCheckLen(value[3 .. value.length], ",7Dec1200:00A".length);
if (value[0] != ',')
throw new DateTimeException("day-of-week missing comma");
stripAndCheckLen(value[1 .. value.length], "7Dec1200:00A".length);
}
// day
immutable digits = isDigit(value[1]) ? 2 : 1;
immutable day = _convDigits!short(value[0 .. digits]);
if (day == -1)
throw new DateTimeException("Invalid day");
stripAndCheckLen(value[digits .. value.length], "Dec1200:00A".length);
// month
Month month;
{
auto monStr = sliceAsString(value[0 .. 3]);
switch (monStr)
{
foreach (mon; EnumMembers!Month)
{
enum monC = capitalize(to!string(mon));
case monC:
{
month = mon;
goto afterMon;
}
}
default: throw new DateTimeException(format("Invalid month: %s", monStr));
}
afterMon: stripAndCheckLen(value[3 .. value.length], "1200:00A".length);
}
// year
auto found = value[2 .. value.length].find!(not!(std.ascii.isDigit))();
size_t yearLen = value.length - found.length;
if (found.length == 0)
throw new DateTimeException("Invalid year");
if (found[0] == ':')
yearLen -= 2;
auto year = _convDigits!short(value[0 .. yearLen]);
if (year < 1900)
{
if (year == -1)
throw new DateTimeException("Invalid year");
if (yearLen < 4)
{
if (yearLen == 3)
year += 1900;
else if (yearLen == 2)
year += year < 50 ? 2000 : 1900;
else
throw new DateTimeException("Invalid year. Too few digits.");
}
else
throw new DateTimeException("Invalid year. Cannot be earlier than 1900.");
}
stripAndCheckLen(value[yearLen .. value.length], "00:00A".length);
// hour
immutable hour = _convDigits!short(value[0 .. 2]);
stripAndCheckLen(value[2 .. value.length], ":00A".length);
if (value[0] != ':')
throw new DateTimeException("Invalid hour");
stripAndCheckLen(value[1 .. value.length], "00A".length);
// minute
immutable minute = _convDigits!short(value[0 .. 2]);
stripAndCheckLen(value[2 .. value.length], "A".length);
// second
short second;
if (value[0] == ':')
{
stripAndCheckLen(value[1 .. value.length], "00A".length);
second = _convDigits!short(value[0 .. 2]);
// this is just if/until SysTime is sorted out to fully support leap seconds
if (second == 60)
second = 59;
stripAndCheckLen(value[2 .. value.length], "A".length);
}
immutable(TimeZone) parseTZ(int sign)
{
if (value.length < 5)
throw new DateTimeException("Invalid timezone");
immutable zoneHours = _convDigits!short(value[1 .. 3]);
immutable zoneMinutes = _convDigits!short(value[3 .. 5]);
if (zoneHours == -1 || zoneMinutes == -1 || zoneMinutes > 59)
throw new DateTimeException("Invalid timezone");
value = value[5 .. value.length];
immutable utcOffset = (dur!"hours"(zoneHours) + dur!"minutes"(zoneMinutes)) * sign;
if (utcOffset == Duration.zero)
{
return sign == 1 ? cast(immutable(TimeZone))UTC()
: cast(immutable(TimeZone))new immutable SimpleTimeZone(Duration.zero);
}
return new immutable(SimpleTimeZone)(utcOffset);
}
// zone
Rebindable!(immutable TimeZone) tz;
if (value[0] == '-')
tz = parseTZ(-1);
else if (value[0] == '+')
tz = parseTZ(1);
else
{
// obs-zone
immutable tzLen = value.length - find(value, ' ', '\t', '(')[0].length;
switch (sliceAsString(value[0 .. tzLen <= 4 ? tzLen : 4]))
{
case "UT": case "GMT": tz = UTC(); break;
case "EST": tz = new immutable SimpleTimeZone(dur!"hours"(-5)); break;
case "EDT": tz = new immutable SimpleTimeZone(dur!"hours"(-4)); break;
case "CST": tz = new immutable SimpleTimeZone(dur!"hours"(-6)); break;
case "CDT": tz = new immutable SimpleTimeZone(dur!"hours"(-5)); break;
case "MST": tz = new immutable SimpleTimeZone(dur!"hours"(-7)); break;
case "MDT": tz = new immutable SimpleTimeZone(dur!"hours"(-6)); break;
case "PST": tz = new immutable SimpleTimeZone(dur!"hours"(-8)); break;
case "PDT": tz = new immutable SimpleTimeZone(dur!"hours"(-7)); break;
case "J": case "j": throw new DateTimeException("Invalid timezone");
default:
{
if (all!(std.ascii.isAlpha)(value[0 .. tzLen]))
{
tz = new immutable SimpleTimeZone(Duration.zero);
break;
}
throw new DateTimeException("Invalid timezone");
}
}
value = value[tzLen .. value.length];
}
// This is kind of arbitrary. Technically, nothing but CFWS is legal past
// the end of the timezone, but we don't want to be picky about that in a
// function that's just parsing rather than validating. So, the idea here is
// that if the next character is printable (and not part of CFWS), then it
// might be part of the timezone and thus affect what the timezone was
// supposed to be, so we'll throw, but otherwise, we'll just ignore it.
if (!value.empty && isPrintable(value[0]) && value[0] != ' ' && value[0] != '(')
throw new DateTimeException("Invalid timezone");
try
return SysTime(DateTime(year, month, day, hour, minute, second), tz);
catch (DateTimeException dte)
throw new DateTimeException("date-time format is correct, but the resulting SysTime is invalid.", dte);
}
///
@safe unittest
{
import core.time : hours;
import std.datetime.date : DateTime, DateTimeException;
import std.datetime.timezone : SimpleTimeZone, UTC;
import std.exception : assertThrown;
auto tz = new immutable SimpleTimeZone(hours(-8));
assert(parseRFC822DateTime("Sat, 6 Jan 1990 12:14:19 -0800") ==
SysTime(DateTime(1990, 1, 6, 12, 14, 19), tz));
assert(parseRFC822DateTime("9 Jul 2002 13:11 +0000") ==
SysTime(DateTime(2002, 7, 9, 13, 11, 0), UTC()));
auto badStr = "29 Feb 2001 12:17:16 +0200";
assertThrown!DateTimeException(parseRFC822DateTime(badStr));
}
version(unittest) void testParse822(alias cr)(string str, SysTime expected, size_t line = __LINE__)
{
import std.format : format;
auto value = cr(str);
auto result = parseRFC822DateTime(value);
if (result != expected)
throw new AssertError(format("wrong result. expected [%s], actual[%s]", expected, result), __FILE__, line);
}
version(unittest) void testBadParse822(alias cr)(string str, size_t line = __LINE__)
{
try
parseRFC822DateTime(cr(str));
catch (DateTimeException)
return;
throw new AssertError("No DateTimeException was thrown", __FILE__, line);
}
@system unittest
{
import core.time;
import std.algorithm.iteration : filter, map;
import std.algorithm.searching : canFind;
import std.array : array;
import std.ascii : letters;
import std.format : format;
import std.meta : AliasSeq;
import std.range : chain, iota, take;
import std.stdio : writefln, writeln;
import std.string : representation;
static struct Rand3Letters
{
enum empty = false;
@property auto front() { return _mon; }
void popFront()
{
import std.exception : assumeUnique;
import std.random : rndGen;
_mon = rndGen.map!(a => letters[a % letters.length])().take(3).array().assumeUnique();
}
string _mon;
static auto start() { Rand3Letters retval; retval.popFront(); return retval; }
}
static foreach (cr; AliasSeq!(function(string a){return cast(char[]) a;},
function(string a){return cast(ubyte[]) a;},
function(string a){return a;},
function(string a){return map!(b => cast(char) b)(a.representation);}))
{{
scope(failure) writeln(typeof(cr).stringof);
alias test = testParse822!cr;
alias testBad = testBadParse822!cr;
immutable std1 = DateTime(2012, 12, 21, 13, 14, 15);
immutable std2 = DateTime(2012, 12, 21, 13, 14, 0);
immutable dst1 = DateTime(1976, 7, 4, 5, 4, 22);
immutable dst2 = DateTime(1976, 7, 4, 5, 4, 0);
test("21 Dec 2012 13:14:15 +0000", SysTime(std1, UTC()));
test("21 Dec 2012 13:14 +0000", SysTime(std2, UTC()));
test("Fri, 21 Dec 2012 13:14 +0000", SysTime(std2, UTC()));
test("Fri, 21 Dec 2012 13:14:15 +0000", SysTime(std1, UTC()));
test("04 Jul 1976 05:04:22 +0000", SysTime(dst1, UTC()));
test("04 Jul 1976 05:04 +0000", SysTime(dst2, UTC()));
test("Sun, 04 Jul 1976 05:04 +0000", SysTime(dst2, UTC()));
test("Sun, 04 Jul 1976 05:04:22 +0000", SysTime(dst1, UTC()));
test("4 Jul 1976 05:04:22 +0000", SysTime(dst1, UTC()));
test("4 Jul 1976 05:04 +0000", SysTime(dst2, UTC()));
test("Sun, 4 Jul 1976 05:04 +0000", SysTime(dst2, UTC()));
test("Sun, 4 Jul 1976 05:04:22 +0000", SysTime(dst1, UTC()));
auto badTZ = new immutable SimpleTimeZone(Duration.zero);
test("21 Dec 2012 13:14:15 -0000", SysTime(std1, badTZ));
test("21 Dec 2012 13:14 -0000", SysTime(std2, badTZ));
test("Fri, 21 Dec 2012 13:14 -0000", SysTime(std2, badTZ));
test("Fri, 21 Dec 2012 13:14:15 -0000", SysTime(std1, badTZ));
test("04 Jul 1976 05:04:22 -0000", SysTime(dst1, badTZ));
test("04 Jul 1976 05:04 -0000", SysTime(dst2, badTZ));
test("Sun, 04 Jul 1976 05:04 -0000", SysTime(dst2, badTZ));
test("Sun, 04 Jul 1976 05:04:22 -0000", SysTime(dst1, badTZ));
test("4 Jul 1976 05:04:22 -0000", SysTime(dst1, badTZ));
test("4 Jul 1976 05:04 -0000", SysTime(dst2, badTZ));
test("Sun, 4 Jul 1976 05:04 -0000", SysTime(dst2, badTZ));
test("Sun, 4 Jul 1976 05:04:22 -0000", SysTime(dst1, badTZ));
auto pst = new immutable SimpleTimeZone(dur!"hours"(-8));
auto pdt = new immutable SimpleTimeZone(dur!"hours"(-7));
test("21 Dec 2012 13:14:15 -0800", SysTime(std1, pst));
test("21 Dec 2012 13:14 -0800", SysTime(std2, pst));
test("Fri, 21 Dec 2012 13:14 -0800", SysTime(std2, pst));
test("Fri, 21 Dec 2012 13:14:15 -0800", SysTime(std1, pst));
test("04 Jul 1976 05:04:22 -0700", SysTime(dst1, pdt));
test("04 Jul 1976 05:04 -0700", SysTime(dst2, pdt));
test("Sun, 04 Jul 1976 05:04 -0700", SysTime(dst2, pdt));
test("Sun, 04 Jul 1976 05:04:22 -0700", SysTime(dst1, pdt));
test("4 Jul 1976 05:04:22 -0700", SysTime(dst1, pdt));
test("4 Jul 1976 05:04 -0700", SysTime(dst2, pdt));
test("Sun, 4 Jul 1976 05:04 -0700", SysTime(dst2, pdt));
test("Sun, 4 Jul 1976 05:04:22 -0700", SysTime(dst1, pdt));
auto cet = new immutable SimpleTimeZone(dur!"hours"(1));
auto cest = new immutable SimpleTimeZone(dur!"hours"(2));
test("21 Dec 2012 13:14:15 +0100", SysTime(std1, cet));
test("21 Dec 2012 13:14 +0100", SysTime(std2, cet));
test("Fri, 21 Dec 2012 13:14 +0100", SysTime(std2, cet));
test("Fri, 21 Dec 2012 13:14:15 +0100", SysTime(std1, cet));
test("04 Jul 1976 05:04:22 +0200", SysTime(dst1, cest));
test("04 Jul 1976 05:04 +0200", SysTime(dst2, cest));
test("Sun, 04 Jul 1976 05:04 +0200", SysTime(dst2, cest));
test("Sun, 04 Jul 1976 05:04:22 +0200", SysTime(dst1, cest));
test("4 Jul 1976 05:04:22 +0200", SysTime(dst1, cest));
test("4 Jul 1976 05:04 +0200", SysTime(dst2, cest));
test("Sun, 4 Jul 1976 05:04 +0200", SysTime(dst2, cest));
test("Sun, 4 Jul 1976 05:04:22 +0200", SysTime(dst1, cest));
// dst and std times are switched in the Southern Hemisphere which is why the
// time zone names and DateTime variables don't match.
auto cstStd = new immutable SimpleTimeZone(dur!"hours"(9) + dur!"minutes"(30));
auto cstDST = new immutable SimpleTimeZone(dur!"hours"(10) + dur!"minutes"(30));
test("21 Dec 2012 13:14:15 +1030", SysTime(std1, cstDST));
test("21 Dec 2012 13:14 +1030", SysTime(std2, cstDST));
test("Fri, 21 Dec 2012 13:14 +1030", SysTime(std2, cstDST));
test("Fri, 21 Dec 2012 13:14:15 +1030", SysTime(std1, cstDST));
test("04 Jul 1976 05:04:22 +0930", SysTime(dst1, cstStd));
test("04 Jul 1976 05:04 +0930", SysTime(dst2, cstStd));
test("Sun, 04 Jul 1976 05:04 +0930", SysTime(dst2, cstStd));
test("Sun, 04 Jul 1976 05:04:22 +0930", SysTime(dst1, cstStd));
test("4 Jul 1976 05:04:22 +0930", SysTime(dst1, cstStd));
test("4 Jul 1976 05:04 +0930", SysTime(dst2, cstStd));
test("Sun, 4 Jul 1976 05:04 +0930", SysTime(dst2, cstStd));
test("Sun, 4 Jul 1976 05:04:22 +0930", SysTime(dst1, cstStd));
foreach (int i, mon; _monthNames)
{
test(format("17 %s 2012 00:05:02 +0000", mon), SysTime(DateTime(2012, i + 1, 17, 0, 5, 2), UTC()));
test(format("17 %s 2012 00:05 +0000", mon), SysTime(DateTime(2012, i + 1, 17, 0, 5, 0), UTC()));
}
import std.uni : toLower, toUpper;
foreach (mon; chain(_monthNames[].map!(a => toLower(a))(),
_monthNames[].map!(a => toUpper(a))(),
["Jam", "Jen", "Fec", "Fdb", "Mas", "Mbr", "Aps", "Aqr", "Mai", "Miy",
"Jum", "Jbn", "Jup", "Jal", "Aur", "Apg", "Sem", "Sap", "Ocm", "Odt",
"Nom", "Nav", "Dem", "Dac"],
Rand3Letters.start().filter!(a => !_monthNames[].canFind(a)).take(20)))
{
scope(failure) writefln("Month: %s", mon);
testBad(format("17 %s 2012 00:05:02 +0000", mon));
testBad(format("17 %s 2012 00:05 +0000", mon));
}
immutable string[7] daysOfWeekNames = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
{
auto start = SysTime(DateTime(2012, 11, 11, 9, 42, 0), UTC());
int day = 11;
foreach (int i, dow; daysOfWeekNames)
{
auto curr = start + dur!"days"(i);
test(format("%s, %s Nov 2012 09:42:00 +0000", dow, day), curr);
test(format("%s, %s Nov 2012 09:42 +0000", dow, day++), curr);
// Whether the day of the week matches the date is ignored.
test(format("%s, 11 Nov 2012 09:42:00 +0000", dow), start);
test(format("%s, 11 Nov 2012 09:42 +0000", dow), start);
}
}
foreach (dow; chain(daysOfWeekNames[].map!(a => toLower(a))(),
daysOfWeekNames[].map!(a => toUpper(a))(),
["Sum", "Spn", "Mom", "Man", "Tuf", "Tae", "Wem", "Wdd", "The", "Tur",
"Fro", "Fai", "San", "Sut"],
Rand3Letters.start().filter!(a => !daysOfWeekNames[].canFind(a)).take(20)))
{
scope(failure) writefln("Day of Week: %s", dow);
testBad(format("%s, 11 Nov 2012 09:42:00 +0000", dow));
testBad(format("%s, 11 Nov 2012 09:42 +0000", dow));
}
testBad("31 Dec 1899 23:59:59 +0000");
test("01 Jan 1900 00:00:00 +0000", SysTime(Date(1900, 1, 1), UTC()));
test("01 Jan 1900 00:00:00 -0000", SysTime(Date(1900, 1, 1),
new immutable SimpleTimeZone(Duration.zero)));
test("01 Jan 1900 00:00:00 -0700", SysTime(Date(1900, 1, 1),
new immutable SimpleTimeZone(dur!"hours"(-7))));
{
auto st1 = SysTime(Date(1900, 1, 1), UTC());
auto st2 = SysTime(Date(1900, 1, 1), new immutable SimpleTimeZone(dur!"hours"(-11)));
foreach (i; 1900 .. 2102)
{
test(format("1 Jan %05d 00:00 +0000", i), st1);
test(format("1 Jan %05d 00:00 -1100", i), st2);
st1.add!"years"(1);
st2.add!"years"(1);
}
st1.year = 9998;
st2.year = 9998;
foreach (i; 9998 .. 11_002)
{
test(format("1 Jan %05d 00:00 +0000", i), st1);
test(format("1 Jan %05d 00:00 -1100", i), st2);
st1.add!"years"(1);
st2.add!"years"(1);
}
}
testBad("12 Feb 1907 23:17:09 0000");
testBad("12 Feb 1907 23:17:09 +000");
testBad("12 Feb 1907 23:17:09 -000");
testBad("12 Feb 1907 23:17:09 +00000");
testBad("12 Feb 1907 23:17:09 -00000");
testBad("12 Feb 1907 23:17:09 +A");
testBad("12 Feb 1907 23:17:09 +PST");
testBad("12 Feb 1907 23:17:09 -A");
testBad("12 Feb 1907 23:17:09 -PST");
// test trailing stuff that gets ignored
{
foreach (c; chain(iota(0, 33), ['('], iota(127, ubyte.max + 1)))
{
scope(failure) writefln("c: %d", c);
test(format("21 Dec 2012 13:14:15 +0000%c", cast(char) c), SysTime(std1, UTC()));
test(format("21 Dec 2012 13:14:15 +0000%c ", cast(char) c), SysTime(std1, UTC()));
test(format("21 Dec 2012 13:14:15 +0000%chello", cast(char) c), SysTime(std1, UTC()));
}
}
// test trailing stuff that doesn't get ignored
{
foreach (c; chain(iota(33, '('), iota('(' + 1, 127)))
{
scope(failure) writefln("c: %d", c);
testBad(format("21 Dec 2012 13:14:15 +0000%c", cast(char) c));
testBad(format("21 Dec 2012 13:14:15 +0000%c ", cast(char) c));
testBad(format("21 Dec 2012 13:14:15 +0000%chello", cast(char) c));
}
}
testBad("32 Jan 2012 12:13:14 -0800");
testBad("31 Jan 2012 24:13:14 -0800");
testBad("31 Jan 2012 12:60:14 -0800");
testBad("31 Jan 2012 12:13:61 -0800");
testBad("31 Jan 2012 12:13:14 -0860");
test("31 Jan 2012 12:13:14 -0859",
SysTime(DateTime(2012, 1, 31, 12, 13, 14),
new immutable SimpleTimeZone(dur!"hours"(-8) + dur!"minutes"(-59))));
// leap-seconds
test("21 Dec 2012 15:59:60 -0800", SysTime(DateTime(2012, 12, 21, 15, 59, 59), pst));
// FWS
test("Sun,4 Jul 1976 05:04 +0930", SysTime(dst2, cstStd));
test("Sun,4 Jul 1976 05:04:22 +0930", SysTime(dst1, cstStd));
test("Sun,4 Jul 1976 05:04 +0930 (foo)", SysTime(dst2, cstStd));
test("Sun,4 Jul 1976 05:04:22 +0930 (foo)", SysTime(dst1, cstStd));
test("Sun,4 \r\n Jul \r\n 1976 \r\n 05:04 \r\n +0930 \r\n (foo)", SysTime(dst2, cstStd));
test("Sun,4 \r\n Jul \r\n 1976 \r\n 05:04:22 \r\n +0930 \r\n (foo)", SysTime(dst1, cstStd));
auto str = "01 Jan 2012 12:13:14 -0800 ";
test(str, SysTime(DateTime(2012, 1, 1, 12, 13, 14), new immutable SimpleTimeZone(hours(-8))));
foreach (i; 0 .. str.length)
{
auto currStr = str.dup;
currStr[i] = 'x';
scope(failure) writefln("failed: %s", currStr);
testBad(cast(string) currStr);
}
foreach (i; 2 .. str.length)
{
auto currStr = str[0 .. $ - i];
scope(failure) writefln("failed: %s", currStr);
testBad(cast(string) currStr);
testBad((cast(string) currStr) ~ " ");
}
}}
}
// Obsolete Format per section 4.3 of RFC 5322.
@system unittest
{
import std.algorithm.iteration : filter, map;
import std.ascii : letters;
import std.exception : collectExceptionMsg;
import std.format : format;
import std.meta : AliasSeq;
import std.range : chain, iota;
import std.stdio : writefln, writeln;
import std.string : representation;
auto std1 = SysTime(DateTime(2012, 12, 21, 13, 14, 15), UTC());
auto std2 = SysTime(DateTime(2012, 12, 21, 13, 14, 0), UTC());
auto std3 = SysTime(DateTime(1912, 12, 21, 13, 14, 15), UTC());
auto std4 = SysTime(DateTime(1912, 12, 21, 13, 14, 0), UTC());
auto dst1 = SysTime(DateTime(1976, 7, 4, 5, 4, 22), UTC());
auto dst2 = SysTime(DateTime(1976, 7, 4, 5, 4, 0), UTC());
auto tooLate1 = SysTime(Date(10_000, 1, 1), UTC());
auto tooLate2 = SysTime(DateTime(12_007, 12, 31, 12, 22, 19), UTC());
static foreach (cr; AliasSeq!(function(string a){return cast(char[]) a;},
function(string a){return cast(ubyte[]) a;},
function(string a){return a;},
function(string a){return map!(b => cast(char) b)(a.representation);}))
{{
scope(failure) writeln(typeof(cr).stringof);
alias test = testParse822!cr;
{
auto list = ["", " ", " \r\n\t", "\t\r\n (hello world( frien(dog)) silly \r\n ) \t\t \r\n ()",
" \n ", "\t\n\t", " \n\t (foo) \n (bar) \r\n (baz) \n "];
foreach (i, cfws; list)
{
scope(failure) writefln("i: %s", i);
test(format("%1$s21%1$sDec%1$s2012%1$s13:14:15%1$s+0000%1$s", cfws), std1);
test(format("%1$s21%1$sDec%1$s2012%1$s13:14%1$s+0000%1$s", cfws), std2);
test(format("%1$sFri%1$s,%1$s21%1$sDec%1$s2012%1$s13:14%1$s+0000%1$s", cfws), std2);
test(format("%1$sFri%1$s,%1$s21%1$sDec%1$s2012%1$s13:14:15%1$s+0000%1$s", cfws), std1);
test(format("%1$s04%1$sJul%1$s1976%1$s05:04:22%1$s+0000%1$s", cfws), dst1);
test(format("%1$s04%1$sJul%1$s1976%1$s05:04%1$s+0000%1$s", cfws), dst2);
test(format("%1$sSun%1$s,%1$s04%1$sJul%1$s1976%1$s05:04%1$s+0000%1$s", cfws), dst2);
test(format("%1$sSun%1$s,%1$s04%1$sJul%1$s1976%1$s05:04:22 +0000%1$s", cfws), dst1);
test(format("%1$s4%1$sJul%1$s1976%1$s05:04:22%1$s+0000%1$s", cfws), dst1);
test(format("%1$s4%1$sJul%1$s1976%1$s05:04%1$s+0000%1$s", cfws), dst2);
test(format("%1$sSun%1$s,%1$s4%1$sJul%1$s1976%1$s05:04%1$s+0000%1$s", cfws), dst2);
test(format("%1$sSun%1$s,%1$s4%1$sJul%1$s1976%1$s05:04:22%1$s+0000%1$s", cfws), dst1);
test(format("%1$s21%1$sDec%1$s12%1$s13:14:15%1$s+0000%1$s", cfws), std1);
test(format("%1$s21%1$sDec%1$s12%1$s13:14%1$s+0000%1$s", cfws), std2);
test(format("%1$sFri%1$s,%1$s21%1$sDec%1$s12%1$s13:14%1$s+0000%1$s", cfws), std2);
test(format("%1$sFri%1$s,%1$s21%1$sDec%1$s12%1$s13:14:15%1$s+0000%1$s", cfws), std1);
test(format("%1$s04%1$sJul%1$s76%1$s05:04:22%1$s+0000%1$s", cfws), dst1);
test(format("%1$s04%1$sJul%1$s76%1$s05:04%1$s+0000%1$s", cfws), dst2);
test(format("%1$sSun%1$s,%1$s04%1$sJul%1$s76%1$s05:04%1$s+0000%1$s", cfws), dst2);
test(format("%1$sSun%1$s,%1$s04%1$sJul%1$s76%1$s05:04:22%1$s+0000%1$s", cfws), dst1);
test(format("%1$s4%1$sJul%1$s76 05:04:22%1$s+0000%1$s", cfws), dst1);
test(format("%1$s4%1$sJul%1$s76 05:04%1$s+0000%1$s", cfws), dst2);
test(format("%1$sSun%1$s,%1$s4%1$sJul%1$s76%1$s05:04%1$s+0000%1$s", cfws), dst2);
test(format("%1$sSun%1$s,%1$s4%1$sJul%1$s76%1$s05:04:22%1$s+0000%1$s", cfws), dst1);
test(format("%1$s21%1$sDec%1$s012%1$s13:14:15%1$s+0000%1$s", cfws), std3);
test(format("%1$s21%1$sDec%1$s012%1$s13:14%1$s+0000%1$s", cfws), std4);
test(format("%1$sFri%1$s,%1$s21%1$sDec%1$s012%1$s13:14%1$s+0000%1$s", cfws), std4);
test(format("%1$sFri%1$s,%1$s21%1$sDec%1$s012%1$s13:14:15%1$s+0000%1$s", cfws), std3);
test(format("%1$s04%1$sJul%1$s076%1$s05:04:22%1$s+0000%1$s", cfws), dst1);
test(format("%1$s04%1$sJul%1$s076%1$s05:04%1$s+0000%1$s", cfws), dst2);
test(format("%1$sSun%1$s,%1$s04%1$sJul%1$s076%1$s05:04%1$s+0000%1$s", cfws), dst2);
test(format("%1$sSun%1$s,%1$s04%1$sJul%1$s076%1$s05:04:22%1$s+0000%1$s", cfws), dst1);
test(format("%1$s4%1$sJul%1$s076%1$s05:04:22%1$s+0000%1$s", cfws), dst1);
test(format("%1$s4%1$sJul%1$s076%1$s05:04%1$s+0000%1$s", cfws), dst2);
test(format("%1$sSun%1$s,%1$s4%1$sJul%1$s076%1$s05:04%1$s+0000%1$s", cfws), dst2);
test(format("%1$sSun%1$s,%1$s4%1$sJul%1$s076%1$s05:04:22%1$s+0000%1$s", cfws), dst1);
test(format("%1$s1%1$sJan%1$s10000%1$s00:00:00%1$s+0000%1$s", cfws), tooLate1);
test(format("%1$s31%1$sDec%1$s12007%1$s12:22:19%1$s+0000%1$s", cfws), tooLate2);
test(format("%1$sSat%1$s,%1$s1%1$sJan%1$s10000%1$s00:00:00%1$s+0000%1$s", cfws), tooLate1);
test(format("%1$sSun%1$s,%1$s31%1$sDec%1$s12007%1$s12:22:19%1$s+0000%1$s", cfws), tooLate2);
}
}
// test years of 1, 2, and 3 digits.
{
auto st1 = SysTime(Date(2000, 1, 1), UTC());
auto st2 = SysTime(Date(2000, 1, 1), new immutable SimpleTimeZone(dur!"hours"(-12)));
foreach (i; 0 .. 50)
{
test(format("1 Jan %02d 00:00 GMT", i), st1);
test(format("1 Jan %02d 00:00 -1200", i), st2);
st1.add!"years"(1);
st2.add!"years"(1);
}
}
{
auto st1 = SysTime(Date(1950, 1, 1), UTC());
auto st2 = SysTime(Date(1950, 1, 1), new immutable SimpleTimeZone(dur!"hours"(-12)));
foreach (i; 50 .. 100)
{
test(format("1 Jan %02d 00:00 GMT", i), st1);
test(format("1 Jan %02d 00:00 -1200", i), st2);
st1.add!"years"(1);
st2.add!"years"(1);
}
}
{
auto st1 = SysTime(Date(1900, 1, 1), UTC());
auto st2 = SysTime(Date(1900, 1, 1), new immutable SimpleTimeZone(dur!"hours"(-11)));
foreach (i; 0 .. 1000)
{
test(format("1 Jan %03d 00:00 GMT", i), st1);
test(format("1 Jan %03d 00:00 -1100", i), st2);
st1.add!"years"(1);
st2.add!"years"(1);
}
}
foreach (i; 0 .. 10)
{
auto str1 = cr(format("1 Jan %d 00:00 GMT", i));
auto str2 = cr(format("1 Jan %d 00:00 -1200", i));
assertThrown!DateTimeException(parseRFC822DateTime(str1));
assertThrown!DateTimeException(parseRFC822DateTime(str1));
}
// test time zones
{
auto dt = DateTime(1982, 05, 03, 12, 22, 04);
test("Wed, 03 May 1982 12:22:04 UT", SysTime(dt, UTC()));
test("Wed, 03 May 1982 12:22:04 GMT", SysTime(dt, UTC()));
test("Wed, 03 May 1982 12:22:04 EST", SysTime(dt, new immutable SimpleTimeZone(dur!"hours"(-5))));
test("Wed, 03 May 1982 12:22:04 EDT", SysTime(dt, new immutable SimpleTimeZone(dur!"hours"(-4))));
test("Wed, 03 May 1982 12:22:04 CST", SysTime(dt, new immutable SimpleTimeZone(dur!"hours"(-6))));
test("Wed, 03 May 1982 12:22:04 CDT", SysTime(dt, new immutable SimpleTimeZone(dur!"hours"(-5))));
test("Wed, 03 May 1982 12:22:04 MST", SysTime(dt, new immutable SimpleTimeZone(dur!"hours"(-7))));
test("Wed, 03 May 1982 12:22:04 MDT", SysTime(dt, new immutable SimpleTimeZone(dur!"hours"(-6))));
test("Wed, 03 May 1982 12:22:04 PST", SysTime(dt, new immutable SimpleTimeZone(dur!"hours"(-8))));
test("Wed, 03 May 1982 12:22:04 PDT", SysTime(dt, new immutable SimpleTimeZone(dur!"hours"(-7))));
auto badTZ = new immutable SimpleTimeZone(Duration.zero);
foreach (dchar c; filter!(a => a != 'j' && a != 'J')(letters))
{
scope(failure) writefln("c: %s", c);
test(format("Wed, 03 May 1982 12:22:04 %s", c), SysTime(dt, badTZ));
test(format("Wed, 03 May 1982 12:22:04%s", c), SysTime(dt, badTZ));
}
foreach (dchar c; ['j', 'J'])
{
scope(failure) writefln("c: %s", c);
assertThrown!DateTimeException(parseRFC822DateTime(cr(format("Wed, 03 May 1982 12:22:04 %s", c))));
assertThrown!DateTimeException(parseRFC822DateTime(cr(format("Wed, 03 May 1982 12:22:04%s", c))));
}
foreach (string s; ["AAA", "GQW", "DDT", "PDA", "GT", "GM"])
{
scope(failure) writefln("s: %s", s);
test(format("Wed, 03 May 1982 12:22:04 %s", s), SysTime(dt, badTZ));
}
// test trailing stuff that gets ignored
{
foreach (c; chain(iota(0, 33), ['('], iota(127, ubyte.max + 1)))
{
scope(failure) writefln("c: %d", c);
test(format("21Dec1213:14:15+0000%c", cast(char) c), std1);
test(format("21Dec1213:14:15+0000%c ", cast(char) c), std1);
test(format("21Dec1213:14:15+0000%chello", cast(char) c), std1);
}
}
// test trailing stuff that doesn't get ignored
{
foreach (c; chain(iota(33, '('), iota('(' + 1, 127)))
{
scope(failure) writefln("c: %d", c);
assertThrown!DateTimeException(
parseRFC822DateTime(cr(format("21Dec1213:14:15+0000%c", cast(char) c))));
assertThrown!DateTimeException(
parseRFC822DateTime(cr(format("21Dec1213:14:15+0000%c ", cast(char) c))));
assertThrown!DateTimeException(
parseRFC822DateTime(cr(format("21Dec1213:14:15+0000%chello", cast(char) c))));
}
}
}
// test that the checks for minimum length work correctly and avoid
// any RangeErrors.
test("7Dec1200:00A", SysTime(DateTime(2012, 12, 7, 00, 00, 00),
new immutable SimpleTimeZone(Duration.zero)));
test("Fri,7Dec1200:00A", SysTime(DateTime(2012, 12, 7, 00, 00, 00),
new immutable SimpleTimeZone(Duration.zero)));
test("7Dec1200:00:00A", SysTime(DateTime(2012, 12, 7, 00, 00, 00),
new immutable SimpleTimeZone(Duration.zero)));
test("Fri,7Dec1200:00:00A", SysTime(DateTime(2012, 12, 7, 00, 00, 00),
new immutable SimpleTimeZone(Duration.zero)));
auto tooShortMsg = collectExceptionMsg!DateTimeException(parseRFC822DateTime(""));
foreach (str; ["Fri,7Dec1200:00:00", "7Dec1200:00:00"])
{
foreach (i; 0 .. str.length)
{
auto value = str[0 .. $ - i];
scope(failure) writeln(value);
assert(collectExceptionMsg!DateTimeException(parseRFC822DateTime(value)) == tooShortMsg);
}
}
}}
}
private:
/+
Returns the given hnsecs as an ISO string of fractional seconds.
+/
static string fracSecsToISOString(int hnsecs) @safe pure nothrow
{
assert(hnsecs >= 0);
try
{
if (hnsecs == 0)
return "";
string isoString = format(".%07d", hnsecs);
while (isoString[$ - 1] == '0')
isoString.popBack();
return isoString;
}
catch (Exception e)
assert(0, "format() threw.");
}
@safe unittest
{
assert(fracSecsToISOString(0) == "");
assert(fracSecsToISOString(1) == ".0000001");
assert(fracSecsToISOString(10) == ".000001");
assert(fracSecsToISOString(100) == ".00001");
assert(fracSecsToISOString(1000) == ".0001");
assert(fracSecsToISOString(10_000) == ".001");
assert(fracSecsToISOString(100_000) == ".01");
assert(fracSecsToISOString(1_000_000) == ".1");
assert(fracSecsToISOString(1_000_001) == ".1000001");
assert(fracSecsToISOString(1_001_001) == ".1001001");
assert(fracSecsToISOString(1_071_601) == ".1071601");
assert(fracSecsToISOString(1_271_641) == ".1271641");
assert(fracSecsToISOString(9_999_999) == ".9999999");
assert(fracSecsToISOString(9_999_990) == ".999999");
assert(fracSecsToISOString(9_999_900) == ".99999");
assert(fracSecsToISOString(9_999_000) == ".9999");
assert(fracSecsToISOString(9_990_000) == ".999");
assert(fracSecsToISOString(9_900_000) == ".99");
assert(fracSecsToISOString(9_000_000) == ".9");
assert(fracSecsToISOString(999) == ".0000999");
assert(fracSecsToISOString(9990) == ".000999");
assert(fracSecsToISOString(99_900) == ".00999");
assert(fracSecsToISOString(999_000) == ".0999");
}
/+
Returns a Duration corresponding to to the given ISO string of
fractional seconds.
+/
static Duration fracSecsFromISOString(S)(in S isoString) @trusted pure
if (isSomeString!S)
{
import std.algorithm.searching : all;
import std.ascii : isDigit;
import std.conv : to;
import std.string : representation;
import core.time;
if (isoString.empty)
return Duration.zero;
auto str = isoString.representation;
enforce(str[0] == '.', new DateTimeException("Invalid ISO String"));
str.popFront();
enforce(!str.empty && all!isDigit(str), new DateTimeException("Invalid ISO String"));
dchar[7] fullISOString = void;
foreach (i, ref dchar c; fullISOString)
{
if (i < str.length)
c = str[i];
else
c = '0';
}
return hnsecs(to!int(fullISOString[]));
}
@safe unittest
{
import core.time;
static void testFSInvalid(string isoString)
{
fracSecsFromISOString(isoString);
}
assertThrown!DateTimeException(testFSInvalid("."));
assertThrown!DateTimeException(testFSInvalid("0."));
assertThrown!DateTimeException(testFSInvalid("0"));
assertThrown!DateTimeException(testFSInvalid("0000000"));
assertThrown!DateTimeException(testFSInvalid("T"));
assertThrown!DateTimeException(testFSInvalid("T."));
assertThrown!DateTimeException(testFSInvalid(".T"));
assertThrown!DateTimeException(testFSInvalid(".00000Q0"));
assertThrown!DateTimeException(testFSInvalid(".000000Q"));
assertThrown!DateTimeException(testFSInvalid(".0000000Q"));
assertThrown!DateTimeException(testFSInvalid(".0000000000Q"));
assert(fracSecsFromISOString("") == Duration.zero);
assert(fracSecsFromISOString(".0000001") == hnsecs(1));
assert(fracSecsFromISOString(".000001") == hnsecs(10));
assert(fracSecsFromISOString(".00001") == hnsecs(100));
assert(fracSecsFromISOString(".0001") == hnsecs(1000));
assert(fracSecsFromISOString(".001") == hnsecs(10_000));
assert(fracSecsFromISOString(".01") == hnsecs(100_000));
assert(fracSecsFromISOString(".1") == hnsecs(1_000_000));
assert(fracSecsFromISOString(".1000001") == hnsecs(1_000_001));
assert(fracSecsFromISOString(".1001001") == hnsecs(1_001_001));
assert(fracSecsFromISOString(".1071601") == hnsecs(1_071_601));
assert(fracSecsFromISOString(".1271641") == hnsecs(1_271_641));
assert(fracSecsFromISOString(".9999999") == hnsecs(9_999_999));
assert(fracSecsFromISOString(".9999990") == hnsecs(9_999_990));
assert(fracSecsFromISOString(".999999") == hnsecs(9_999_990));
assert(fracSecsFromISOString(".9999900") == hnsecs(9_999_900));
assert(fracSecsFromISOString(".99999") == hnsecs(9_999_900));
assert(fracSecsFromISOString(".9999000") == hnsecs(9_999_000));
assert(fracSecsFromISOString(".9999") == hnsecs(9_999_000));
assert(fracSecsFromISOString(".9990000") == hnsecs(9_990_000));
assert(fracSecsFromISOString(".999") == hnsecs(9_990_000));
assert(fracSecsFromISOString(".9900000") == hnsecs(9_900_000));
assert(fracSecsFromISOString(".9900") == hnsecs(9_900_000));
assert(fracSecsFromISOString(".99") == hnsecs(9_900_000));
assert(fracSecsFromISOString(".9000000") == hnsecs(9_000_000));
assert(fracSecsFromISOString(".9") == hnsecs(9_000_000));
assert(fracSecsFromISOString(".0000999") == hnsecs(999));
assert(fracSecsFromISOString(".0009990") == hnsecs(9990));
assert(fracSecsFromISOString(".000999") == hnsecs(9990));
assert(fracSecsFromISOString(".0099900") == hnsecs(99_900));
assert(fracSecsFromISOString(".00999") == hnsecs(99_900));
assert(fracSecsFromISOString(".0999000") == hnsecs(999_000));
assert(fracSecsFromISOString(".0999") == hnsecs(999_000));
assert(fracSecsFromISOString(".00000000") == Duration.zero);
assert(fracSecsFromISOString(".00000001") == Duration.zero);
assert(fracSecsFromISOString(".00000009") == Duration.zero);
assert(fracSecsFromISOString(".1234567890") == hnsecs(1_234_567));
assert(fracSecsFromISOString(".12345678901234567890") == hnsecs(1_234_567));
}
/+
This function is used to split out the units without getting the remaining
hnsecs.
Params:
units = The units to split out.
hnsecs = The current total hnsecs.
Returns:
The split out value.
+/
long getUnitsFromHNSecs(string units)(long hnsecs) @safe pure nothrow
if (validTimeUnits(units) &&
CmpTimeUnits!(units, "months") < 0)
{
return convert!("hnsecs", units)(hnsecs);
}
@safe unittest
{
auto hnsecs = 2595000000007L;
immutable days = getUnitsFromHNSecs!"days"(hnsecs);
assert(days == 3);
assert(hnsecs == 2595000000007L);
}
/+
This function is used to split out the units without getting the units but
just the remaining hnsecs.
Params:
units = The units to split out.
hnsecs = The current total hnsecs.
Returns:
The remaining hnsecs.
+/
long removeUnitsFromHNSecs(string units)(long hnsecs) @safe pure nothrow
if (validTimeUnits(units) &&
CmpTimeUnits!(units, "months") < 0)
{
immutable value = convert!("hnsecs", units)(hnsecs);
return hnsecs - convert!(units, "hnsecs")(value);
}
@safe unittest
{
auto hnsecs = 2595000000007L;
auto returned = removeUnitsFromHNSecs!"days"(hnsecs);
assert(returned == 3000000007);
assert(hnsecs == 2595000000007L);
}
/+
Strips what RFC 5322, section 3.2.2 refers to as CFWS from the left-hand
side of the given range (it strips comments delimited by $(D '(') and
$(D ')') as well as folding whitespace).
It is assumed that the given range contains the value of a header field and
no terminating CRLF for the line (though the CRLF for folding whitespace is
of course expected and stripped) and thus that the only case of CR or LF is
in folding whitespace.
If a comment does not terminate correctly (e.g. mismatched parens) or if the
the FWS is malformed, then the range will be empty when stripCWFS is done.
However, only minimal validation of the content is done (e.g. quoted pairs
within a comment aren't validated beyond \$LPAREN or \$RPAREN, because
they're inside a comment, and thus their value doesn't matter anyway). It's
only when the content does not conform to the grammar rules for FWS and thus
literally cannot be parsed that content is considered invalid, and an empty
range is returned.
Note that _stripCFWS is eager, not lazy. It does not create a new range.
Rather, it pops off the CFWS from the range and returns it.
+/
R _stripCFWS(R)(R range)
if (isRandomAccessRange!R && hasSlicing!R && hasLength!R &&
(is(Unqual!(ElementType!R) == char) || is(Unqual!(ElementType!R) == ubyte)))
{
immutable e = range.length;
outer: for (size_t i = 0; i < e; )
{
switch (range[i])
{
case ' ': case '\t':
{
++i;
break;
}
case '\r':
{
if (i + 2 < e && range[i + 1] == '\n' && (range[i + 2] == ' ' || range[i + 2] == '\t'))
{
i += 3;
break;
}
break outer;
}
case '\n':
{
if (i + 1 < e && (range[i + 1] == ' ' || range[i + 1] == '\t'))
{
i += 2;
break;
}
break outer;
}
case '(':
{
++i;
size_t commentLevel = 1;
while (i < e)
{
if (range[i] == '(')
++commentLevel;
else if (range[i] == ')')
{
++i;
if (--commentLevel == 0)
continue outer;
continue;
}
else if (range[i] == '\\')
{
if (++i == e)
break outer;
}
++i;
}
break outer;
}
default: return range[i .. e];
}
}
return range[e .. e];
}
@system unittest
{
import std.algorithm.comparison : equal;
import std.algorithm.iteration : map;
import std.meta : AliasSeq;
import std.stdio : writeln;
import std.string : representation;
static foreach (cr; AliasSeq!(function(string a){return cast(ubyte[]) a;},
function(string a){return map!(b => cast(char) b)(a.representation);}))
{
scope(failure) writeln(typeof(cr).stringof);
assert(_stripCFWS(cr("")).empty);
assert(_stripCFWS(cr("\r")).empty);
assert(_stripCFWS(cr("\r\n")).empty);
assert(_stripCFWS(cr("\r\n ")).empty);
assert(_stripCFWS(cr(" \t\r\n")).empty);
assert(equal(_stripCFWS(cr(" \t\r\n hello")), cr("hello")));
assert(_stripCFWS(cr(" \t\r\nhello")).empty);
assert(_stripCFWS(cr(" \t\r\n\v")).empty);
assert(equal(_stripCFWS(cr("\v \t\r\n\v")), cr("\v \t\r\n\v")));
assert(_stripCFWS(cr("()")).empty);
assert(_stripCFWS(cr("(hello world)")).empty);
assert(_stripCFWS(cr("(hello world)(hello world)")).empty);
assert(_stripCFWS(cr("(hello world\r\n foo\r where's\nwaldo)")).empty);
assert(_stripCFWS(cr(" \t (hello \tworld\r\n foo\r where's\nwaldo)\t\t ")).empty);
assert(_stripCFWS(cr(" ")).empty);
assert(_stripCFWS(cr("\t\t\t")).empty);
assert(_stripCFWS(cr("\t \r\n\r \n")).empty);
assert(_stripCFWS(cr("(hello world) (can't find waldo) (he's lost)")).empty);
assert(_stripCFWS(cr("(hello\\) world) (can't \\(find waldo) (he's \\(\\)lost)")).empty);
assert(_stripCFWS(cr("(((((")).empty);
assert(_stripCFWS(cr("(((()))")).empty);
assert(_stripCFWS(cr("(((())))")).empty);
assert(equal(_stripCFWS(cr("(((()))))")), cr(")")));
assert(equal(_stripCFWS(cr(")))))")), cr(")))))")));
assert(equal(_stripCFWS(cr("()))))")), cr("))))")));
assert(equal(_stripCFWS(cr(" hello hello ")), cr("hello hello ")));
assert(equal(_stripCFWS(cr("\thello (world)")), cr("hello (world)")));
assert(equal(_stripCFWS(cr(" \r\n \\((\\)) foo")), cr("\\((\\)) foo")));
assert(equal(_stripCFWS(cr(" \r\n (\\((\\))) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" \r\n (\\(())) foo")), cr(") foo")));
assert(_stripCFWS(cr(" \r\n (((\\))) foo")).empty);
assert(_stripCFWS(cr("(hello)(hello)")).empty);
assert(_stripCFWS(cr(" \r\n (hello)\r\n (hello)")).empty);
assert(_stripCFWS(cr(" \r\n (hello) \r\n (hello) \r\n ")).empty);
assert(_stripCFWS(cr("\t\t\t\t(hello)\t\t\t\t(hello)\t\t\t\t")).empty);
assert(equal(_stripCFWS(cr(" \r\n (hello)\r\n (hello) \r\n hello")), cr("hello")));
assert(equal(_stripCFWS(cr(" \r\n (hello) \r\n (hello) \r\n hello")), cr("hello")));
assert(equal(_stripCFWS(cr("\t\r\n\t(hello)\r\n\t(hello)\t\r\n hello")), cr("hello")));
assert(equal(_stripCFWS(cr("\t\r\n\t(hello)\t\r\n\t(hello)\t\r\n hello")), cr("hello")));
assert(equal(_stripCFWS(cr(" \r\n (hello) \r\n \r\n (hello) \r\n hello")), cr("hello")));
assert(equal(_stripCFWS(cr(" \r\n (hello) \r\n (hello) \r\n \r\n hello")), cr("hello")));
assert(equal(_stripCFWS(cr(" \r\n \r\n (hello)\t\r\n (hello) \r\n hello")), cr("hello")));
assert(equal(_stripCFWS(cr(" \r\n\t\r\n\t(hello)\t\r\n (hello) \r\n hello")), cr("hello")));
assert(equal(_stripCFWS(cr(" (\r\n ( \r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n ( \r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" (\t\r\n ( \r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" (\r\n\t( \r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n (\t\r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n (\r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n (\r\n\t) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n ( \r\n) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n ( \r\n )\t\r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n ( \r\n )\r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n ( \r\n ) \r\n) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n ( \r\n ) \r\n\t) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n ( \r\n ) \r\n ) \r\n foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n ( \r\n ) \r\n )\t\r\n foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n ( \r\n ) \r\n )\r\n foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n \r\n ( \r\n \r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n \r\n ( \r\n \r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" (\t\r\n \r\n ( \r\n \r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" (\r\n \r\n\t( \r\n \r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" (\r\n \r\n( \r\n \r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" (\r\n \r\n ( \r\n \r\n\t) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" (\r\n \r\n ( \r\n \r\n )\t\r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" (\r\n \r\n ( \r\n \r\n )\r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n bar \r\n ( \r\n bar \r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n () \r\n ( \r\n () \r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n \\\\ \r\n ( \r\n \\\\ \r\n ) \r\n ) foo")), cr("foo")));
assert(_stripCFWS(cr("(hello)(hello)")).empty);
assert(_stripCFWS(cr(" \n (hello)\n (hello) \n ")).empty);
assert(_stripCFWS(cr(" \n (hello) \n (hello) \n ")).empty);
assert(equal(_stripCFWS(cr(" \n (hello)\n (hello) \n hello")), cr("hello")));
assert(equal(_stripCFWS(cr(" \n (hello) \n (hello) \n hello")), cr("hello")));
assert(equal(_stripCFWS(cr("\t\n\t(hello)\n\t(hello)\t\n hello")), cr("hello")));
assert(equal(_stripCFWS(cr("\t\n\t(hello)\t\n\t(hello)\t\n hello")), cr("hello")));
assert(equal(_stripCFWS(cr(" \n (hello) \n \n (hello) \n hello")), cr("hello")));
assert(equal(_stripCFWS(cr(" \n (hello) \n (hello) \n \n hello")), cr("hello")));
assert(equal(_stripCFWS(cr(" \n \n (hello)\t\n (hello) \n hello")), cr("hello")));
assert(equal(_stripCFWS(cr(" \n\t\n\t(hello)\t\n (hello) \n hello")), cr("hello")));
}
}
// This is so that we don't have to worry about std.conv.to throwing. It also
// doesn't have to worry about quite as many cases as std.conv.to, since it
// doesn't have to worry about a sign on the value or about whether it fits.
T _convDigits(T, R)(R str)
if (isIntegral!T && isSigned!T) // The constraints on R were already covered by parseRFC822DateTime.
{
import std.ascii : isDigit;
assert(!str.empty);
T num = 0;
foreach (i; 0 .. str.length)
{
if (i != 0)
num *= 10;
if (!isDigit(str[i]))
return -1;
num += str[i] - '0';
}
return num;
}
@safe unittest
{
import std.conv : to;
import std.range : chain, iota;
import std.stdio : writeln;
foreach (i; chain(iota(0, 101), [250, 999, 1000, 1001, 2345, 9999]))
{
scope(failure) writeln(i);
assert(_convDigits!int(to!string(i)) == i);
}
foreach (str; ["-42", "+42", "1a", "1 ", " ", " 42 "])
{
scope(failure) writeln(str);
assert(_convDigits!int(str) == -1);
}
}
version(unittest)
{
// Variables to help in testing.
Duration currLocalDiffFromUTC;
immutable (TimeZone)[] testTZs;
// All of these helper arrays are sorted in ascending order.
auto testYearsBC = [-1999, -1200, -600, -4, -1, 0];
auto testYearsAD = [1, 4, 1000, 1999, 2000, 2012];
// I'd use a Tuple, but I get forward reference errors if I try.
struct MonthDay
{
Month month;
short day;
this(int m, short d)
{
month = cast(Month) m;
day = d;
}
}
MonthDay[] testMonthDays = [MonthDay(1, 1),
MonthDay(1, 2),
MonthDay(3, 17),
MonthDay(7, 4),
MonthDay(10, 27),
MonthDay(12, 30),
MonthDay(12, 31)];
auto testDays = [1, 2, 9, 10, 16, 20, 25, 28, 29, 30, 31];
auto testTODs = [TimeOfDay(0, 0, 0),
TimeOfDay(0, 0, 1),
TimeOfDay(0, 1, 0),
TimeOfDay(1, 0, 0),
TimeOfDay(13, 13, 13),
TimeOfDay(23, 59, 59)];
auto testHours = [0, 1, 12, 22, 23];
auto testMinSecs = [0, 1, 30, 58, 59];
// Throwing exceptions is incredibly expensive, so we want to use a smaller
// set of values for tests using assertThrown.
auto testTODsThrown = [TimeOfDay(0, 0, 0),
TimeOfDay(13, 13, 13),
TimeOfDay(23, 59, 59)];
Date[] testDatesBC;
Date[] testDatesAD;
DateTime[] testDateTimesBC;
DateTime[] testDateTimesAD;
Duration[] testFracSecs;
SysTime[] testSysTimesBC;
SysTime[] testSysTimesAD;
// I'd use a Tuple, but I get forward reference errors if I try.
struct GregDay { int day; Date date; }
auto testGregDaysBC = [GregDay(-1_373_427, Date(-3760, 9, 7)), // Start of the Hebrew Calendar
GregDay(-735_233, Date(-2012, 1, 1)),
GregDay(-735_202, Date(-2012, 2, 1)),
GregDay(-735_175, Date(-2012, 2, 28)),
GregDay(-735_174, Date(-2012, 2, 29)),
GregDay(-735_173, Date(-2012, 3, 1)),
GregDay(-734_502, Date(-2010, 1, 1)),
GregDay(-734_472, Date(-2010, 1, 31)),
GregDay(-734_471, Date(-2010, 2, 1)),
GregDay(-734_444, Date(-2010, 2, 28)),
GregDay(-734_443, Date(-2010, 3, 1)),
GregDay(-734_413, Date(-2010, 3, 31)),
GregDay(-734_412, Date(-2010, 4, 1)),
GregDay(-734_383, Date(-2010, 4, 30)),
GregDay(-734_382, Date(-2010, 5, 1)),
GregDay(-734_352, Date(-2010, 5, 31)),
GregDay(-734_351, Date(-2010, 6, 1)),
GregDay(-734_322, Date(-2010, 6, 30)),
GregDay(-734_321, Date(-2010, 7, 1)),
GregDay(-734_291, Date(-2010, 7, 31)),
GregDay(-734_290, Date(-2010, 8, 1)),
GregDay(-734_260, Date(-2010, 8, 31)),
GregDay(-734_259, Date(-2010, 9, 1)),
GregDay(-734_230, Date(-2010, 9, 30)),
GregDay(-734_229, Date(-2010, 10, 1)),
GregDay(-734_199, Date(-2010, 10, 31)),
GregDay(-734_198, Date(-2010, 11, 1)),
GregDay(-734_169, Date(-2010, 11, 30)),
GregDay(-734_168, Date(-2010, 12, 1)),
GregDay(-734_139, Date(-2010, 12, 30)),
GregDay(-734_138, Date(-2010, 12, 31)),
GregDay(-731_215, Date(-2001, 1, 1)),
GregDay(-730_850, Date(-2000, 1, 1)),
GregDay(-730_849, Date(-2000, 1, 2)),
GregDay(-730_486, Date(-2000, 12, 30)),
GregDay(-730_485, Date(-2000, 12, 31)),
GregDay(-730_484, Date(-1999, 1, 1)),
GregDay(-694_690, Date(-1901, 1, 1)),
GregDay(-694_325, Date(-1900, 1, 1)),
GregDay(-585_118, Date(-1601, 1, 1)),
GregDay(-584_753, Date(-1600, 1, 1)),
GregDay(-584_388, Date(-1600, 12, 31)),
GregDay(-584_387, Date(-1599, 1, 1)),
GregDay(-365_972, Date(-1001, 1, 1)),
GregDay(-365_607, Date(-1000, 1, 1)),
GregDay(-183_351, Date(-501, 1, 1)),
GregDay(-182_986, Date(-500, 1, 1)),
GregDay(-182_621, Date(-499, 1, 1)),
GregDay(-146_827, Date(-401, 1, 1)),
GregDay(-146_462, Date(-400, 1, 1)),
GregDay(-146_097, Date(-400, 12, 31)),
GregDay(-110_302, Date(-301, 1, 1)),
GregDay(-109_937, Date(-300, 1, 1)),
GregDay(-73_778, Date(-201, 1, 1)),
GregDay(-73_413, Date(-200, 1, 1)),
GregDay(-38_715, Date(-105, 1, 1)),
GregDay(-37_254, Date(-101, 1, 1)),
GregDay(-36_889, Date(-100, 1, 1)),
GregDay(-36_524, Date(-99, 1, 1)),
GregDay(-36_160, Date(-99, 12, 31)),
GregDay(-35_794, Date(-97, 1, 1)),
GregDay(-18_627, Date(-50, 1, 1)),
GregDay(-18_262, Date(-49, 1, 1)),
GregDay(-3652, Date(-9, 1, 1)),
GregDay(-2191, Date(-5, 1, 1)),
GregDay(-1827, Date(-5, 12, 31)),
GregDay(-1826, Date(-4, 1, 1)),
GregDay(-1825, Date(-4, 1, 2)),
GregDay(-1462, Date(-4, 12, 30)),
GregDay(-1461, Date(-4, 12, 31)),
GregDay(-1460, Date(-3, 1, 1)),
GregDay(-1096, Date(-3, 12, 31)),
GregDay(-1095, Date(-2, 1, 1)),
GregDay(-731, Date(-2, 12, 31)),
GregDay(-730, Date(-1, 1, 1)),
GregDay(-367, Date(-1, 12, 30)),
GregDay(-366, Date(-1, 12, 31)),
GregDay(-365, Date(0, 1, 1)),
GregDay(-31, Date(0, 11, 30)),
GregDay(-30, Date(0, 12, 1)),
GregDay(-1, Date(0, 12, 30)),
GregDay(0, Date(0, 12, 31))];
auto testGregDaysAD = [GregDay(1, Date(1, 1, 1)),
GregDay(2, Date(1, 1, 2)),
GregDay(32, Date(1, 2, 1)),
GregDay(365, Date(1, 12, 31)),
GregDay(366, Date(2, 1, 1)),
GregDay(731, Date(3, 1, 1)),
GregDay(1096, Date(4, 1, 1)),
GregDay(1097, Date(4, 1, 2)),
GregDay(1460, Date(4, 12, 30)),
GregDay(1461, Date(4, 12, 31)),
GregDay(1462, Date(5, 1, 1)),
GregDay(17_898, Date(50, 1, 1)),
GregDay(35_065, Date(97, 1, 1)),
GregDay(36_160, Date(100, 1, 1)),
GregDay(36_525, Date(101, 1, 1)),
GregDay(37_986, Date(105, 1, 1)),
GregDay(72_684, Date(200, 1, 1)),
GregDay(73_049, Date(201, 1, 1)),
GregDay(109_208, Date(300, 1, 1)),
GregDay(109_573, Date(301, 1, 1)),
GregDay(145_732, Date(400, 1, 1)),
GregDay(146_098, Date(401, 1, 1)),
GregDay(182_257, Date(500, 1, 1)),
GregDay(182_622, Date(501, 1, 1)),
GregDay(364_878, Date(1000, 1, 1)),
GregDay(365_243, Date(1001, 1, 1)),
GregDay(584_023, Date(1600, 1, 1)),
GregDay(584_389, Date(1601, 1, 1)),
GregDay(693_596, Date(1900, 1, 1)),
GregDay(693_961, Date(1901, 1, 1)),
GregDay(729_755, Date(1999, 1, 1)),
GregDay(730_120, Date(2000, 1, 1)),
GregDay(730_121, Date(2000, 1, 2)),
GregDay(730_484, Date(2000, 12, 30)),
GregDay(730_485, Date(2000, 12, 31)),
GregDay(730_486, Date(2001, 1, 1)),
GregDay(733_773, Date(2010, 1, 1)),
GregDay(733_774, Date(2010, 1, 2)),
GregDay(733_803, Date(2010, 1, 31)),
GregDay(733_804, Date(2010, 2, 1)),
GregDay(733_831, Date(2010, 2, 28)),
GregDay(733_832, Date(2010, 3, 1)),
GregDay(733_862, Date(2010, 3, 31)),
GregDay(733_863, Date(2010, 4, 1)),
GregDay(733_892, Date(2010, 4, 30)),
GregDay(733_893, Date(2010, 5, 1)),
GregDay(733_923, Date(2010, 5, 31)),
GregDay(733_924, Date(2010, 6, 1)),
GregDay(733_953, Date(2010, 6, 30)),
GregDay(733_954, Date(2010, 7, 1)),
GregDay(733_984, Date(2010, 7, 31)),
GregDay(733_985, Date(2010, 8, 1)),
GregDay(734_015, Date(2010, 8, 31)),
GregDay(734_016, Date(2010, 9, 1)),
GregDay(734_045, Date(2010, 9, 30)),
GregDay(734_046, Date(2010, 10, 1)),
GregDay(734_076, Date(2010, 10, 31)),
GregDay(734_077, Date(2010, 11, 1)),
GregDay(734_106, Date(2010, 11, 30)),
GregDay(734_107, Date(2010, 12, 1)),
GregDay(734_136, Date(2010, 12, 30)),
GregDay(734_137, Date(2010, 12, 31)),
GregDay(734_503, Date(2012, 1, 1)),
GregDay(734_534, Date(2012, 2, 1)),
GregDay(734_561, Date(2012, 2, 28)),
GregDay(734_562, Date(2012, 2, 29)),
GregDay(734_563, Date(2012, 3, 1)),
GregDay(734_858, Date(2012, 12, 21))];
// I'd use a Tuple, but I get forward reference errors if I try.
struct DayOfYear { int day; MonthDay md; }
auto testDaysOfYear = [DayOfYear(1, MonthDay(1, 1)),
DayOfYear(2, MonthDay(1, 2)),
DayOfYear(3, MonthDay(1, 3)),
DayOfYear(31, MonthDay(1, 31)),
DayOfYear(32, MonthDay(2, 1)),
DayOfYear(59, MonthDay(2, 28)),
DayOfYear(60, MonthDay(3, 1)),
DayOfYear(90, MonthDay(3, 31)),
DayOfYear(91, MonthDay(4, 1)),
DayOfYear(120, MonthDay(4, 30)),
DayOfYear(121, MonthDay(5, 1)),
DayOfYear(151, MonthDay(5, 31)),
DayOfYear(152, MonthDay(6, 1)),
DayOfYear(181, MonthDay(6, 30)),
DayOfYear(182, MonthDay(7, 1)),
DayOfYear(212, MonthDay(7, 31)),
DayOfYear(213, MonthDay(8, 1)),
DayOfYear(243, MonthDay(8, 31)),
DayOfYear(244, MonthDay(9, 1)),
DayOfYear(273, MonthDay(9, 30)),
DayOfYear(274, MonthDay(10, 1)),
DayOfYear(304, MonthDay(10, 31)),
DayOfYear(305, MonthDay(11, 1)),
DayOfYear(334, MonthDay(11, 30)),
DayOfYear(335, MonthDay(12, 1)),
DayOfYear(363, MonthDay(12, 29)),
DayOfYear(364, MonthDay(12, 30)),
DayOfYear(365, MonthDay(12, 31))];
auto testDaysOfLeapYear = [DayOfYear(1, MonthDay(1, 1)),
DayOfYear(2, MonthDay(1, 2)),
DayOfYear(3, MonthDay(1, 3)),
DayOfYear(31, MonthDay(1, 31)),
DayOfYear(32, MonthDay(2, 1)),
DayOfYear(59, MonthDay(2, 28)),
DayOfYear(60, MonthDay(2, 29)),
DayOfYear(61, MonthDay(3, 1)),
DayOfYear(91, MonthDay(3, 31)),
DayOfYear(92, MonthDay(4, 1)),
DayOfYear(121, MonthDay(4, 30)),
DayOfYear(122, MonthDay(5, 1)),
DayOfYear(152, MonthDay(5, 31)),
DayOfYear(153, MonthDay(6, 1)),
DayOfYear(182, MonthDay(6, 30)),
DayOfYear(183, MonthDay(7, 1)),
DayOfYear(213, MonthDay(7, 31)),
DayOfYear(214, MonthDay(8, 1)),
DayOfYear(244, MonthDay(8, 31)),
DayOfYear(245, MonthDay(9, 1)),
DayOfYear(274, MonthDay(9, 30)),
DayOfYear(275, MonthDay(10, 1)),
DayOfYear(305, MonthDay(10, 31)),
DayOfYear(306, MonthDay(11, 1)),
DayOfYear(335, MonthDay(11, 30)),
DayOfYear(336, MonthDay(12, 1)),
DayOfYear(364, MonthDay(12, 29)),
DayOfYear(365, MonthDay(12, 30)),
DayOfYear(366, MonthDay(12, 31))];
void initializeTests() @safe
{
import core.time;
import std.algorithm.sorting : sort;
import std.typecons : Rebindable;
immutable lt = LocalTime().utcToTZ(0);
currLocalDiffFromUTC = dur!"hnsecs"(lt);
version(Posix)
{
import std.datetime.timezone : PosixTimeZone;
immutable otherTZ = lt < 0 ? PosixTimeZone.getTimeZone("Australia/Sydney")
: PosixTimeZone.getTimeZone("America/Denver");
}
else version(Windows)
{
import std.datetime.timezone : WindowsTimeZone;
immutable otherTZ = lt < 0 ? WindowsTimeZone.getTimeZone("AUS Eastern Standard Time")
: WindowsTimeZone.getTimeZone("Mountain Standard Time");
}
immutable ot = otherTZ.utcToTZ(0);
auto diffs = [0L, lt, ot];
auto diffAA = [0L : Rebindable!(immutable TimeZone)(UTC())];
diffAA[lt] = Rebindable!(immutable TimeZone)(LocalTime());
diffAA[ot] = Rebindable!(immutable TimeZone)(otherTZ);
sort(diffs);
testTZs = [diffAA[diffs[0]], diffAA[diffs[1]], diffAA[diffs[2]]];
testFracSecs = [Duration.zero, hnsecs(1), hnsecs(5007), hnsecs(9_999_999)];
foreach (year; testYearsBC)
{
foreach (md; testMonthDays)
testDatesBC ~= Date(year, md.month, md.day);
}
foreach (year; testYearsAD)
{
foreach (md; testMonthDays)
testDatesAD ~= Date(year, md.month, md.day);
}
foreach (dt; testDatesBC)
{
foreach (tod; testTODs)
testDateTimesBC ~= DateTime(dt, tod);
}
foreach (dt; testDatesAD)
{
foreach (tod; testTODs)
testDateTimesAD ~= DateTime(dt, tod);
}
foreach (dt; testDateTimesBC)
{
foreach (tz; testTZs)
{
foreach (fs; testFracSecs)
testSysTimesBC ~= SysTime(dt, fs, tz);
}
}
foreach (dt; testDateTimesAD)
{
foreach (tz; testTZs)
{
foreach (fs; testFracSecs)
testSysTimesAD ~= SysTime(dt, fs, tz);
}
}
}
}
| D |
import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop, std.bitmanip;
alias Point = Tuple!(real, "X", real, "Y");
auto dr = [0, 0, 1, 1];
auto dc = [0, 1, 0, 1];
void main() {
auto N = readln.chomp.to!long;
auto m1 = Point(N * 0.5L, 0.0L);
auto m2 = Point(N * 1.0L, N * 0.5L);
auto m3 = Point(N * 0.5L, N * 1.0L);
auto m4 = Point(0.0L , N * 0.5);
int ans = 0;
foreach (r; 0..N) {
foreach (c; 0..N) {
int tmp = 1;
foreach (i; 0..4) {
auto P = Point((r+dr[i]).to!real, (c+dc[i]).to!real);
if (product(m1, m2, P) < 0) tmp = 0;
if (product(m2, m3, P) < 0) tmp = 0;
if (product(m3, m4, P) < 0) tmp = 0;
if (product(m4, m1, P) < 0) tmp = 0;
}
ans += tmp;
}
}
ans.writeln;
}
real product(Point a, Point b, Point p) {
auto vecab = Point(a.X - b.X, a.Y - b.Y);
auto vecpa = Point(a.X - p.X, a.Y - p.Y);
auto ext = vecab.X * vecpa.Y - vecpa.X * vecab.Y;
return ext;
}
| D |
//: binary_tree_set3.d
//: D port for binary_tree_set3.pl
//: Copyright (c) 2006 Agent Zhang
//: 2006-03-03 2006-03-04
import std.conv;
import std.stdio;
int main (char[][] args) {
int n;
if (args.length !> 1) {
fprintf(stderr, "No n specified.\n");
return 1;
}
try { n = toInt(args[1]); }
catch(Exception e) {
fprintf(stderr, "n is not a valid integer.\n");
}
//printf("n = %d\n", n);
if (n <= 0) {
printf("\n");
return 0;
}
// (partially) store the set M and also the n minimals:
int[] M = new int[n];
M[0] = 1;
int pL = 0;
int pR = 0;
for (int i = 1; i < M.length; i++) {
int L = L( M[pL] ); int R = R( M[pR] );
if (L < R) {
M[i] = L; pL++;
} else if (R < L) {
M[i] = R; pR++;
} else { // R == L
M[i] = L;
pL++; pR++;
}
}
//printf("M.len = %d\n", M.length);
dump_list(M);
return 0;
}
int L (int x) {
return 2 * x + 1;
}
int R (int x) {
return 3 * x + 1;
}
void dump_list (int[] list) {
for (int i = 0; i < list.length-1; i++)
printf("%d ", list[i]);
printf("%d\n", list[length-1]);
}
| D |
void main() {
auto X = ri;
if(X == 7 || X == 5 || X == 3) {
writeln("YES");
} else writeln("NO");
}
// ===================================
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 |
/**
* Copyright © DiamondMVC 2018
* License: MIT (https://github.com/DiamondMVC/Diamond/blob/master/LICENSE)
* Author: Jacob Jensen (bausshf)
*/
module diamond.controllers;
public
{
import diamond.controllers.action;
import diamond.controllers.status;
import diamond.controllers.basecontroller;
import diamond.controllers.controller;
import diamond.controllers.attributes;
import diamond.controllers.authentication;
import diamond.controllers.rest;
}
| D |
build/x86_64-debug/src/mian.o: src/mian.cpp src/TestCase.h src/Airplane.h
| D |
import std.stdio, std.algorithm, std.range;
enum say = (in string s) pure => s.group.map!q{ text(a[1],a[0]) }.join;
void main() {
"1".recurrence!((t, n) => t[n - 1].say).take(8).writeln;
}
| D |
/*******************************************************************************
* Copyright (c) 2000, 2005 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:
* Bill Baxter <bill@billbaxter.com>
*******************************************************************************/
module spinner.Snippet190;
import dwt.DWT;
import dwt.widgets.Display;
import dwt.widgets.Shell;
import dwt.widgets.Spinner;
import dwt.events.SelectionAdapter;
import dwt.events.SelectionEvent;
import dwt.layout.GridLayout;
import Math = tango.math.Math;
import tango.io.Stdout;
/*
* Floating point values in Spinner
*
* For a list of all DWT example snippets see
* http://www.eclipse.org/swt/snippets/
*
* @since 3.1
*/
void main () {
Display display = new Display ();
Shell shell = new Shell (display);
shell.setText("Spinner with float values");
shell.setLayout(new GridLayout());
final Spinner spinner = new Spinner(shell, DWT.NONE);
// allow 3 decimal places
spinner.setDigits(3);
// set the minimum value to 0.001
spinner.setMinimum(1);
// set the maximum value to 20
spinner.setMaximum(20000);
// set the increment value to 0.010
spinner.setIncrement(10);
// set the seletion to 3.456
spinner.setSelection(3456);
spinner.addSelectionListener(new class() SelectionAdapter {
public void widgetSelected(SelectionEvent e) {
int selection = spinner.getSelection();
float digits = spinner.getDigits();
Stdout.formatln("Selection is {}", selection / Math.pow(10.f, digits));
}
});
shell.setSize(200, 200);
shell.open();
while (!shell.isDisposed ()) {
if (!display.readAndDispatch ()) display.sleep ();
}
display.dispose ();
}
| D |
/**
Copyright: Copyright (c) 2013-2017 Andrey Penechko.
License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: Andrey Penechko.
*/
module voxelman.world.block.blockinfo;
import voxelman.log;
import voxelman.container.buffer;
import voxelman.math;
import voxelman.geometry;
import voxelman.core.config;
import voxelman.world.storage;
import voxelman.utils.mapping;
import voxelman.world.block;
import voxelman.world.mesh.chunkmesh;
struct ChunkAndBlockAt
{
ubyte chunk;
// position of block in chunk
ubyte bx, by, bz;
}
// 0-5 sides, or 6 if center
ChunkAndBlockAt chunkAndBlockAt6(int x, int y, int z)
{
ubyte bx = cast(ubyte)x;
ubyte by = cast(ubyte)y;
ubyte bz = cast(ubyte)z;
if(x == -1) return ChunkAndBlockAt(CubeSide.xneg, CHUNK_SIZE-1, by, bz);
else if(x == CHUNK_SIZE) return ChunkAndBlockAt(CubeSide.xpos, 0, by, bz);
if(y == -1) return ChunkAndBlockAt(CubeSide.yneg, bx, CHUNK_SIZE-1, bz);
else if(y == CHUNK_SIZE) return ChunkAndBlockAt(CubeSide.ypos, bx, 0, bz);
if(z == -1) return ChunkAndBlockAt(CubeSide.zneg, bx, by, CHUNK_SIZE-1);
else if(z == CHUNK_SIZE) return ChunkAndBlockAt(CubeSide.zpos, bx, by, 0);
return ChunkAndBlockAt(26, bx, by, bz);
}
// convert -1..33 -> 0..34 to use as index
ubyte[34] position_in_target_chunk = [CHUNK_SIZE-1, // CHUNK_SIZE-1 is in adjacent chunk
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,
17,18,19,20,21,22,23,24,25,26,27,28,29,30,31, 0]; // 0 is in adjacent chunk
// 0 chunk in neg direction, 1 this chunk, 1 pos dir
ubyte[34] target_chunk =
[0, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 2];
ChunkAndBlockAt chunkAndBlockAt27(int x, int y, int z)
{
ubyte bx = position_in_target_chunk[x+1];
ubyte by = position_in_target_chunk[y+1];
ubyte bz = position_in_target_chunk[z+1];
ubyte cx = target_chunk[x+1];
ubyte cy = target_chunk[y+1];
ubyte cz = target_chunk[z+1];
ubyte chunk_index = cast(ubyte)(cx + cz * 3 + cy * 9);
return ChunkAndBlockAt(chunk_index, bx, by, bz);
}
alias BlockUpdateHandler = void delegate(BlockWorldPos bwp);
struct BlockMeshingData
{
Buffer!MeshVertex* buffer;
ubyte[4] delegate(ushort blockIndex, CubeSide side) occlusionHandler;
ubvec3 color;
ubyte[2] uv;
ubvec3 chunkPos;
ubyte sides;
ushort blockIndex;
BlockMetadata metadata;
}
alias MeshHandler = void function(BlockMeshingData);
alias ShapeMetaHandler = BlockShape function(BlockMetadata);
alias RotationHandler = void function(ref BlockMetadata, ubyte, CubeSide);
void makeNullMesh(BlockMeshingData) {}
alias SideSolidityHandler = Solidity function(CubeSide);
Solidity transparentSideSolidity(CubeSide) { return Solidity.transparent; }
Solidity semitransparentSideSolidity(CubeSide) { return Solidity.semiTransparent; }
Solidity solidSideSolidity(CubeSide) { return Solidity.solid; }
// solidity number increases with solidity
enum Solidity : ubyte
{
transparent,
semiTransparent,
solid,
}
bool isMoreSolidThan(Solidity first, Solidity second)
{
return first > second;
}
struct BlockInfo
{
string name;
MeshHandler meshHandler = &makeNullMesh;
ubvec3 color;
bool isVisible = true;
Solidity solidity = Solidity.solid;
BlockShape shape = fullShape;
ShapeMetaHandler shapeMetaHandler;
RotationHandler rotationHandler;
bool shapeDependsOnMeta = false;
bool meshDependOnMeta = false;
//irect atlasRect;
ubyte[2] uv;
size_t id;
}
BlockInfo entityBlock = BlockInfo("Entity", &makeColoredFullBlockMesh);
struct BlockInfoTable
{
immutable(BlockInfo)[] blockInfos;
SideIntersectionTable sideTable;
size_t length() {return blockInfos.length; }
BlockInfo opIndex(BlockId blockId) {
if (blockId >= blockInfos.length)
return entityBlock;
return blockInfos[blockId];
}
}
struct SeparatedBlockInfoTable
{
this(BlockInfoTable infoTable)
{
sideTable = infoTable.sideTable;
shape.length = infoTable.length;
corners.length = infoTable.length;
hasGeometry.length = infoTable.length;
hasInternalGeometry.length = infoTable.length;
sideMasks.length = infoTable.length;
color.length = infoTable.length;
meshHandler.length = infoTable.length;
shapeMetaHandler.length = infoTable.length;
shapeDependsOnMeta.length = infoTable.length;
meshDependOnMeta.length = infoTable.length;
foreach(i, binfo; infoTable.blockInfos)
{
shape[i] = binfo.shape;
corners[i] = binfo.shape.corners;
hasGeometry[i] = binfo.shape.hasGeometry;
hasInternalGeometry[i] = binfo.shape.hasInternalGeometry;
sideMasks[i] = binfo.shape.sideMasks;
color[i] = binfo.color;
meshHandler[i] = binfo.meshHandler;
shapeMetaHandler[i] = binfo.shapeMetaHandler;
shapeDependsOnMeta[i] = binfo.shapeDependsOnMeta;
meshDependOnMeta[i] = binfo.meshDependOnMeta;
}
blockInfos = infoTable.blockInfos;
}
immutable(BlockInfo)[] blockInfos;
SideIntersectionTable sideTable;
BlockShape[] shape;
ubyte[] corners;
bool[] hasGeometry;
bool[] hasInternalGeometry;
bool[] shapeDependsOnMeta;
bool[] meshDependOnMeta;
ShapeSideMask[6][] sideMasks;
ubvec3[] color;
MeshHandler[] meshHandler;
ShapeMetaHandler[] shapeMetaHandler;
}
/// Returned when registering block.
/// Use this to set block properties.
struct BlockInfoSetter
{
private Mapping!(BlockInfo)* mapping;
private size_t blockId;
private ref BlockInfo info() {return (*mapping)[blockId]; }
ref BlockInfoSetter meshHandler(MeshHandler val) { info.meshHandler = val; return this; }
ref BlockInfoSetter color(ubyte[3] color ...) { info.color = ubvec3(color); return this; }
ref BlockInfoSetter colorHex(uint hex) { info.color = ubvec3((hex>>16)&0xFF,(hex>>8)&0xFF,hex&0xFF); return this; }
ref BlockInfoSetter isVisible(bool val) { info.isVisible = val; return this; }
ref BlockInfoSetter solidity(Solidity val) { info.solidity = val; return this; }
ref BlockInfoSetter blockShape(BlockShape val) { info.shape = val; return this; }
ref BlockInfoSetter shapeMetaHandler(ShapeMetaHandler val) {
info.shapeMetaHandler = val;
info.shapeDependsOnMeta = true;
return this;
}
//ref BlockInfoSetter shapeDependsOnMeta(bool val) { info.shapeDependsOnMeta = val; return this; }
ref BlockInfoSetter meshDependOnMeta(bool val) { info.meshDependOnMeta = val; return this; }
ref BlockInfoSetter rotationHandler(RotationHandler val) { info.rotationHandler = val; return this; }
}
import voxelman.world.mesh.blockmeshers.full;
import voxelman.world.mesh.blockmeshers.slope;
void regBaseBlocks(BlockInfoSetter delegate(string name) regBlock)
{
regBlock("unknown").color(0,0,0).isVisible(false).solidity(Solidity.solid).meshHandler(&makeNullMesh).blockShape(unknownShape);
regBlock("air").color(0,0,0).isVisible(false).solidity(Solidity.transparent).meshHandler(&makeNullMesh).blockShape(emptyShape);
regBlock("grass").colorHex(0x01A611).meshHandler(&makeColoredFullBlockMesh);
regBlock("dirt").colorHex(0x835929).meshHandler(&makeColoredFullBlockMesh);
regBlock("stone").colorHex(0x8B8D7A).meshHandler(&makeColoredFullBlockMesh);
regBlock("sand").colorHex(0xA68117).meshHandler(&makeColoredFullBlockMesh);
regBlock("water").colorHex(0x0055AA).meshHandler(&makeColoredFullBlockMesh).solidity(Solidity.semiTransparent).blockShape(waterShape);
regBlock("lava").colorHex(0xFF6920).meshHandler(&makeColoredFullBlockMesh);
regBlock("snow").colorHex(0xDBECF6).meshHandler(&makeColoredFullBlockMesh);
regBlock("slope").colorHex(0x857FFF).meshHandler(&makeColoredSlopeBlockMesh).shapeMetaHandler(&slopeShapeFromMeta)
.meshDependOnMeta(true).rotationHandler(&slopeRotationHandler);
}
void setSideTable(ref SideIntersectionTable sideTable)
{
sideTable.set(ShapeSideMask.full, ShapeSideMask.empty);
sideTable.set(ShapeSideMask.water, ShapeSideMask.empty);
sideTable.set(ShapeSideMask.full, ShapeSideMask.water);
sideTable.set(ShapeSideMask.water, ShapeSideMask.slope0);
sideTable.set(ShapeSideMask.full, ShapeSideMask.slope0);
sideTable.set(ShapeSideMask.water, ShapeSideMask.slope1);
sideTable.set(ShapeSideMask.full, ShapeSideMask.slope1);
sideTable.set(ShapeSideMask.water, ShapeSideMask.slope2);
sideTable.set(ShapeSideMask.full, ShapeSideMask.slope2);
sideTable.set(ShapeSideMask.water, ShapeSideMask.slope3);
sideTable.set(ShapeSideMask.full, ShapeSideMask.slope3);
sideTable.set(ShapeSideMask.slope0, ShapeSideMask.slope0);
sideTable.set(ShapeSideMask.slope0, ShapeSideMask.slope1);
sideTable.set(ShapeSideMask.slope0, ShapeSideMask.slope2);
sideTable.set(ShapeSideMask.slope0, ShapeSideMask.empty);
sideTable.set(ShapeSideMask.slope0, ShapeSideMask.water);
sideTable.set(ShapeSideMask.slope1, ShapeSideMask.slope0);
sideTable.set(ShapeSideMask.slope1, ShapeSideMask.slope1);
sideTable.set(ShapeSideMask.slope1, ShapeSideMask.slope3);
sideTable.set(ShapeSideMask.slope1, ShapeSideMask.empty);
sideTable.set(ShapeSideMask.slope1, ShapeSideMask.water);
sideTable.set(ShapeSideMask.slope2, ShapeSideMask.slope0);
sideTable.set(ShapeSideMask.slope2, ShapeSideMask.slope2);
sideTable.set(ShapeSideMask.slope2, ShapeSideMask.slope3);
sideTable.set(ShapeSideMask.slope2, ShapeSideMask.empty);
sideTable.set(ShapeSideMask.slope2, ShapeSideMask.water);
sideTable.set(ShapeSideMask.slope3, ShapeSideMask.slope1);
sideTable.set(ShapeSideMask.slope3, ShapeSideMask.slope2);
sideTable.set(ShapeSideMask.slope3, ShapeSideMask.slope3);
sideTable.set(ShapeSideMask.slope3, ShapeSideMask.empty);
sideTable.set(ShapeSideMask.slope3, ShapeSideMask.water);
}
void slopeRotationHandler(ref BlockMetadata meta, ubyte rotation, CubeSide side)
{
import voxelman.world.mesh.tables.slope : slopeSideRotations;
meta = slopeSideRotations[side][rotation];
}
| D |
/* -------------------- CZ CHANGELOG -------------------- */
/*
v1.00:
DIA_Jack_SmokePipe_Done_01_02 - opraveno other/self
DIA_Jack_SmokePipe_Done_01_04 - opraveno other/self
*/
instance DIA_Jack_EXIT(C_Info)
{
npc = VLK_444_Jack;
nr = 999;
condition = DIA_Jack_EXIT_Condition;
information = DIA_Jack_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Jack_EXIT_Condition()
{
if(Kapitel < 3)
{
return TRUE;
};
};
func void DIA_Jack_EXIT_Info()
{
AI_StopProcessInfos(self);
};
instance DIA_Jack_PICKPOCKET(C_Info)
{
npc = VLK_444_Jack;
nr = 900;
condition = DIA_Jack_PICKPOCKET_Condition;
information = DIA_Jack_PICKPOCKET_Info;
permanent = TRUE;
description = PICKPOCKET_COMM;
};
func int DIA_Jack_PICKPOCKET_Condition()
{
return C_Beklauen(50,100);
};
func void DIA_Jack_PICKPOCKET_Info()
{
Info_ClearChoices(DIA_Jack_PICKPOCKET);
Info_AddChoice(DIA_Jack_PICKPOCKET,Dialog_Back,DIA_Jack_PICKPOCKET_BACK);
Info_AddChoice(DIA_Jack_PICKPOCKET,DIALOG_PICKPOCKET,DIA_Jack_PICKPOCKET_DoIt);
};
func void DIA_Jack_PICKPOCKET_DoIt()
{
B_Beklauen();
Info_ClearChoices(DIA_Jack_PICKPOCKET);
};
func void DIA_Jack_PICKPOCKET_BACK()
{
Info_ClearChoices(DIA_Jack_PICKPOCKET);
};
instance DIA_Jack_GREET(C_Info)
{
npc = VLK_444_Jack;
nr = 4;
condition = DIA_Jack_GREET_Condition;
information = DIA_Jack_GREET_Info;
important = TRUE;
};
func int DIA_Jack_GREET_Condition()
{
if(Npc_IsInState(self,ZS_Talk))
{
return TRUE;
};
};
func void DIA_Jack_GREET_Info()
{
AI_Output(self,other,"DIA_Jack_GREET_14_00"); //Zdravím, ty suchozemská kryso, vypadá to, že zůstáváš tady.
AI_Output(self,other,"DIA_Jack_GREET_14_01"); //Jsi nějakej pobledlej kolem žaber.
AI_Output(self,other,"DIA_Jack_GREET_14_02"); //Nic si z toho nedělej, kámo. Všechno, co potřebuješ, je dobrý silný mořský vzduch.
};
instance DIA_Jack_Job(C_Info)
{
npc = VLK_444_Jack;
nr = 5;
condition = DIA_Jack_Job_Condition;
information = DIA_Jack_Job_Info;
description = "Co tady děláš?";
};
func int DIA_Jack_Job_Condition()
{
if(Npc_KnowsInfo(other,DIA_Jack_GREET) && (JackIsCaptain == FALSE))
{
return TRUE;
};
};
func void DIA_Jack_Job_Info()
{
AI_Output(other,self,"DIA_Jack_Job_15_00"); //Co tady děláš?
AI_Output(self,other,"DIA_Jack_Job_14_01"); //Dřív, když jsem byl ještě mladej, jsem hodně času trávil na moři a prožil spoustu bouří.
AI_Output(self,other,"DIA_Jack_Job_14_02"); //Před mnoha lety jsem se tu usadil a už pěknou řádku let se starám o khoriniský maják.
AI_Output(self,other,"DIA_Jack_Job_14_03"); //Žádnej velkej kšeft. Vůbec ne. Ale ta stará věž mi tak přirostla k srdci, že už se v ní cítím jako doma.
AI_Output(self,other,"DIA_Jack_Job_14_04"); //Už jsem tam nahoře nebyl celou věčnost.
AI_Output(other,self,"DIA_Jack_Job_15_05"); //Proč ne?
AI_Output(self,other,"DIA_Jack_Job_14_06"); //Od tý doby, co můj maják obsadili nějací budižkničemové, jsem neměl odvahu se tam dostat blíž než na dvacet stop. Vážně hrozná chátra.
AI_Output(self,other,"DIA_Jack_Job_14_07"); //Jsou to trestanci z Hornického údolí, však víš.
AI_Output(self,other,"DIA_Jack_Job_14_08"); //Jednou to na druhý straně hor pořádně bouchlo a pak zamořili celou zem jako kobylky. Teď se ukrývají úplně všude, dokonce i v mym majáku.
AI_Output(self,other,"DIA_Jack_Job_14_09"); //Mám dojem, že vyhlížej nějakou loď, co by mohli okrást.
AI_Output(self,other,"DIA_Jack_Job_14_10"); //Ha! Ať to udělaj. Alespoň vypadnou z mojí věže.
Log_CreateTopic(TOPIC_KillLighthouseBandits,LOG_MISSION);
Log_SetTopicStatus(TOPIC_KillLighthouseBandits,LOG_Running);
B_LogEntry(TOPIC_KillLighthouseBandits,"Starý mořský vlk Jack se nemůže vrátit na svůj maják, neboť ho obsadili banditi.");
MIS_Jack_KillLighthouseBandits = LOG_Running;
};
instance DIA_Jack_HauntedLH(C_Info)
{
npc = VLK_444_Jack;
nr = 5;
condition = DIA_Jack_HauntedLH_Condition;
information = DIA_Jack_HauntedLH_Info;
description = "Myslíš maják, který je umístěn v moři mimo ostrov?";
};
func int DIA_Jack_HauntedLH_Condition()
{
if((Npc_KnowsInfo(other,DIA_Jack_Job) == TRUE) && (Kapitel <= 4))
{
return TRUE;
};
};
func void DIA_Jack_HauntedLH_Info()
{
AI_Output(other,self,"DIA_Jack_HauntedLH_01_00"); //Myslíš maják, který je umístěn v moři mimo ostrov?
AI_Output(self,other,"DIA_Jack_HauntedLH_01_01"); //Ne, mluvím o tom který je na pevnině, na vysokém svahu nedaleko města.
AI_Output(self,other,"DIA_Jack_HauntedLH_01_02"); //Ten v moři, velmi starý maják. Už se dlouho nepoužívá.
AI_Output(other,self,"DIA_Jack_HauntedLH_01_03"); //Jakto?
AI_Output(self,other,"DIA_Jack_HauntedLH_01_04"); //Ehm... lidé se tam bojí chodit. Říká se že to tam obývají duchové.
AI_Output(other,self,"DIA_Jack_HauntedLH_01_05"); //To myslíš vážně?
AI_Output(self,other,"DIA_Jack_HauntedLH_01_06"); //Říkám jak to je! Jednoho jsem viděl osobně. Před dlouhou dobou, asi deseti lety.
AI_Output(other,self,"DIA_Jack_HauntedLH_01_07"); //Zajímavé. Duchové majáku?
AI_Output(self,other,"DIA_Jack_HauntedLH_01_08"); //Nevím přesně co se tam stalo. Ale lidé říkají, že maják je prokletý. A za co a proč - nikdo neví.
MIS_HauntedLighthouse = LOG_Running;
Log_CreateTopic(TOPIC_HauntedLighthouse,LOG_MISSION);
Log_SetTopicStatus(TOPIC_HauntedLighthouse,LOG_Running);
B_LogEntry(TOPIC_HauntedLighthouse,"Jak řekl Jack, starý maják který se nachází uprostřed moře u pobřeží Khorinisu je obýván duchy.");
};
instance DIA_Jack_City(C_Info)
{
npc = VLK_444_Jack;
nr = 6;
condition = DIA_Jack_City_Condition;
information = DIA_Jack_City_Info;
description = "Přicházíš do města často?";
};
func int DIA_Jack_City_Condition()
{
if(Npc_KnowsInfo(other,DIA_Jack_Job) && (JackIsCaptain == FALSE))
{
return TRUE;
};
};
func void DIA_Jack_City_Info()
{
AI_Output(other,self,"DIA_Jack_City_15_00"); //Přicházíš do města často?
AI_Output(self,other,"DIA_Jack_City_14_01"); //Vždycky říkám, že město je tak dobrý, jak dobrej je jeho přístav.
AI_Output(self,other,"DIA_Jack_City_14_02"); //Přístav je brána do světa. Tady se všichni setkávají a tady všechno začíná.
AI_Output(self,other,"DIA_Jack_City_14_03"); //Jakmile je přístav v háji, zbytek města dopadne brzo stejně.
};
instance DIA_Jack_Harbor(C_Info)
{
npc = VLK_444_Jack;
nr = 70;
condition = DIA_Jack_Harbor_Condition;
information = DIA_Jack_Harbor_Info;
permanent = TRUE;
description = "Řekni mi něco o přístavu.";
};
func int DIA_Jack_Harbor_Condition()
{
if(Npc_KnowsInfo(other,DIA_Jack_City) && ((Npc_GetDistToWP(self,"LIGHTHOUSE") < 3000) == FALSE) && (JackIsCaptain == FALSE))
{
return TRUE;
};
};
func void DIA_Jack_Harbor_Info()
{
AI_Output(other,self,"DIA_Jack_Harbor_15_00"); //Řekni mi něco o přístavu.
AI_Output(self,other,"DIA_Jack_Harbor_14_01"); //Khoriniský přístav už není, co býval.
AI_Output(self,other,"DIA_Jack_Harbor_14_02"); //Není tu nic než chátra, co se poflakuje kolem, už sem nepřiplouvají žádné lodě a obchod je mrtvej. Tenhle přístav je odepsanej.
Info_ClearChoices(DIA_Jack_Harbor);
Info_AddChoice(DIA_Jack_Harbor,Dialog_Back,DIA_Jack_Harbor_Back);
Info_AddChoice(DIA_Jack_Harbor,"Proč už sem nepřiplouvají žádné lodě?",DIA_Jack_Harbor_Ships);
Info_AddChoice(DIA_Jack_Harbor,"Co myslíš tou chátrou?",DIA_Jack_Harbor_Rogue);
Info_AddChoice(DIA_Jack_Harbor,"Tak proč tedy neodejdeš?",DIA_Jack_Harbor_Leave);
};
func void DIA_Jack_Harbor_Back()
{
Info_ClearChoices(DIA_Jack_Harbor);
};
func void DIA_Jack_Harbor_Ships()
{
AI_Output(other,self,"DIA_Jack_Harbor_Ships_15_00"); //Proč už sem nepřiplouvají žádné lodě?
AI_Output(self,other,"DIA_Jack_Harbor_Ships_14_01"); //Všichni říkají, že až válka skončí, vrátí se všechno do starejch kolejí. Jsou to jenom kecy.
AI_Output(self,other,"DIA_Jack_Harbor_Ships_14_02"); //Říkám ti, námořník pozná, když to jde s městem z kopce.
AI_Output(self,other,"DIA_Jack_Harbor_Ships_14_03"); //Námořník to cítí v krvi. A řeknu ti, zapomeň na přístav, ten už to má spočítaný.
};
func void DIA_Jack_Harbor_Rogue()
{
AI_Output(other,self,"DIA_Jack_Harbor_Rogue_15_00"); //Co myslíš tou chátrou?
AI_Output(self,other,"DIA_Jack_Harbor_Rogue_14_01"); //Koukni na ně, líná sebranka. Většina z nich vůbec netuší, co je práce. Všechno, co svedou, je chlastat celej den a poslední prachy utratit v bordelu.
AI_Output(self,other,"DIA_Jack_Harbor_Rogue_14_02"); //Říkám ti, drž se od nich dál.
};
func void DIA_Jack_Harbor_Leave()
{
AI_Output(other,self,"DIA_Jack_Harbor_Leave_15_00"); //Tak proč tedy neodejdeš?
AI_Output(self,other,"DIA_Jack_Harbor_Leave_14_01"); //Nikdo si v tuhle dobu nevezme na palubu takovýho starýho mořskýho vlka, jako jsem já.
AI_Output(self,other,"DIA_Jack_Harbor_Leave_14_02"); //Většina lidí si myslí, ze starej Jack má ve svejch prohnilejch kostech dnu.
AI_Output(other,self,"DIA_Jack_Harbor_Leave_15_03"); //A? Je to pravda?
AI_Output(self,other,"DIA_Jack_Harbor_Leave_14_04"); //Nesmysl. Jakmile mám palubu pod nohama, cítím se jako nový.
};
instance DIA_Jack_BANDITENWEG(C_Info)
{
npc = VLK_444_Jack;
nr = 7;
condition = DIA_Jack_BANDITENWEG_Condition;
information = DIA_Jack_BANDITENWEG_Info;
description = "Ti banditi, co zabrali tvůj maják, jsou pryč.";
};
func int DIA_Jack_BANDITENWEG_Condition()
{
if(Npc_IsDead(LeuchtturmBandit_1021) && Npc_IsDead(LeuchtturmBandit_1022) && Npc_IsDead(LeuchtturmBandit_1023) && (MIS_Jack_KillLighthouseBandits == LOG_Running))
{
return TRUE;
};
};
func void DIA_Jack_BANDITENWEG_Info()
{
AI_Output(other,self,"DIA_Jack_BANDITENWEG_15_00"); //Ti banditi, co zabrali tvůj maják, jsou pryč.
AI_Output(self,other,"DIA_Jack_BANDITENWEG_14_01"); //Je to vážně pravda? Konečně se můžu vrátit ke svý práci.
AI_Output(self,other,"DIA_Jack_BANDITENWEG_14_02"); //Pojď se mnou na maják. Nahoře je krásnej výhled na moře.
AI_StopProcessInfos(self);
Npc_ExchangeRoutine(self,"Lighthouse");
MIS_Jack_KillLighthouseBandits = LOG_SUCCESS;
B_GivePlayerXP(XP_KillLighthouseBandits);
};
instance DIA_Jack_LIGHTHOUSEFREE(C_Info)
{
npc = VLK_444_Jack;
nr = 8;
condition = DIA_Jack_LIGHTHOUSEFREE_Condition;
information = DIA_Jack_LIGHTHOUSEFREE_Info;
permanent = FALSE;
description = "Máš tady pěknej maják.";
};
func int DIA_Jack_LIGHTHOUSEFREE_Condition()
{
if((MIS_Jack_KillLighthouseBandits == LOG_SUCCESS) && (Npc_GetDistToWP(self,"LIGHTHOUSE") < 3000) && (MIS_SCKnowsWayToIrdorath == FALSE))
{
return TRUE;
};
};
func void DIA_Jack_LIGHTHOUSEFREE_Info()
{
AI_Output(other,self,"DIA_Jack_LIGHTHOUSEFREE_15_00"); //Máš tady pěknej maják.
AI_Output(self,other,"DIA_Jack_LIGHTHOUSEFREE_14_01"); //Díky. Prostě vyjdi po všech těch schodech nahoru a vychutnej si ten nádherný výhled, chlapče. Jako doma.
};
instance DIA_Jack_SmokePipe(C_Info)
{
npc = VLK_444_Jack;
nr = 3;
condition = DIA_Jack_SmokePipe_Condition;
information = DIA_Jack_SmokePipe_Info;
permanent = FALSE;
description = "Nad čím přemýšlíš?";
};
func int DIA_Jack_SmokePipe_Condition()
{
if((Npc_KnowsInfo(other,DIA_Jack_LIGHTHOUSEFREE) == TRUE) && (Kapitel < 5))
{
return TRUE;
};
};
func void DIA_Jack_SmokePipe_Info()
{
AI_Output(other,self,"DIA_Jack_SmokePipe_01_00"); //Nad čím přemýšlíš?
AI_Output(self,other,"DIA_Jack_SmokePipe_01_01"); //Och... Myslím, že teď by byl dobrý nápad pokouřit dobrý tabák.
AI_Output(other,self,"DIA_Jack_SmokePipe_01_02"); //A v čem je problém?
AI_Output(self,other,"DIA_Jack_SmokePipe_01_03"); //V tom, že moje stará fajka již není co bývala.
AI_Output(self,other,"DIA_Jack_SmokePipe_01_04"); //A teď, když přestali přicházet loďe z pevniny...
AI_Output(other,self,"DIA_Jack_SmokePipe_01_05"); //A co bys chtěl?
AI_Output(self,other,"DIA_Jack_SmokePipe_01_06"); //Nooo... Jsem zvyklý na dobrý tabák a fajku. Ta stará se mnou byla věčnost a dobře mi sloužila...
AI_Output(self,other,"DIA_Jack_SmokePipe_01_07"); //Zahřívala mě počas chladných nocí, když jsem stával na vrcholu majáku.
AI_Output(self,other,"DIA_Jack_SmokePipe_01_08"); //Byla dokonalá...
AI_Output(other,self,"DIA_Jack_SmokePipe_01_09"); //No, skusím ti nějakou najít.
AI_Output(self,other,"DIA_Jack_SmokePipe_01_10"); //Och, to by bylo od tebe velkorysé! Odměna tě nemine...
MIS_JackSmokePipe = LOG_Running;
Log_CreateTopic(TOPIC_JackSmokePipe,LOG_MISSION);
Log_SetTopicStatus(TOPIC_JackSmokePipe,LOG_Running);
B_LogEntry(TOPIC_JackSmokePipe,"Jackovi by se zišla nová fajka. Dobře mě odmění když mu ji seženu.");
};
instance DIA_Jack_SmokePipe_Done(C_Info)
{
npc = VLK_444_Jack;
nr = 3;
condition = DIA_Jack_SmokePipe_Done_Condition;
information = DIA_Jack_SmokePipe_Done_Info;
permanent = FALSE;
description = "Mám tu fajku.";
};
func int DIA_Jack_SmokePipe_Done_Condition()
{
if((MIS_JackSmokePipe == LOG_Running) && (Npc_HasItems(other,ItMi_Smoke_Pipe) >= 1))
{
return TRUE;
};
};
func void DIA_Jack_SmokePipe_Done_Info()
{
B_GivePlayerXP(300);
AI_Output(other,self,"DIA_Jack_SmokePipe_Done_01_00"); //Mám tu fajku.
B_GiveInvItems(other,self,ItMi_Smoke_Pipe,1);
Npc_RemoveInvItems(self,ItMi_Smoke_Pipe,1);
AI_Output(self,other,"DIA_Jack_SmokePipe_Done_01_01"); //To je přesně to co potřebuju!
AI_Output(other,self,"DIA_Jack_SmokePipe_Done_01_02"); //A co moje odměna?
AI_Output(self,other,"DIA_Jack_SmokePipe_Done_01_03"); //Tady, vem si tohle zlato.
B_GiveInvItems(self,other,ItMi_Gold,250);
AI_Output(other,self,"DIA_Jack_SmokePipe_Done_01_04"); //Díky.
MIS_JackSmokePipe = LOG_SUCCESS;
Log_SetTopicStatus(TOPIC_JackSmokePipe,LOG_SUCCESS);
B_LogEntry(TOPIC_JackSmokePipe,"Donesl jsem Jackovi novou fajku.");
AI_StopProcessInfos(self);
if(Kapitel < 5)
{
Npc_ExchangeRoutine(self,"LighthouseSmoke");
};
};
instance DIA_Jack_KAP3_EXIT(C_Info)
{
npc = VLK_444_Jack;
nr = 999;
condition = DIA_Jack_KAP3_EXIT_Condition;
information = DIA_Jack_KAP3_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Jack_KAP3_EXIT_Condition()
{
if(Kapitel == 3)
{
return TRUE;
};
};
func void DIA_Jack_KAP3_EXIT_Info()
{
AI_StopProcessInfos(self);
};
instance DIA_Jack_KAP4_EXIT(C_Info)
{
npc = VLK_444_Jack;
nr = 999;
condition = DIA_Jack_KAP4_EXIT_Condition;
information = DIA_Jack_KAP4_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Jack_KAP4_EXIT_Condition()
{
if(Kapitel == 4)
{
return TRUE;
};
};
func void DIA_Jack_KAP4_EXIT_Info()
{
AI_StopProcessInfos(self);
};
instance DIA_Jack_KAP5_EXIT(C_Info)
{
npc = VLK_444_Jack;
nr = 999;
condition = DIA_Jack_KAP5_EXIT_Condition;
information = DIA_Jack_KAP5_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Jack_KAP5_EXIT_Condition()
{
if(Kapitel == 5)
{
return TRUE;
};
};
func void DIA_Jack_KAP5_EXIT_Info()
{
AI_StopProcessInfos(self);
};
instance DIA_Jack_BEMYCAPTAIN(C_Info)
{
npc = VLK_444_Jack;
nr = 51;
condition = DIA_Jack_BEMYCAPTAIN_Condition;
information = DIA_Jack_BEMYCAPTAIN_Info;
permanent = TRUE;
description = "Nechtěl by ses vrátit na moře?";
};
func int DIA_Jack_BEMYCAPTAIN_Condition()
{
if((Kapitel == 5) && (MIS_SCKnowsWayToIrdorath == TRUE) && (MIS_Jack_KillLighthouseBandits == LOG_SUCCESS) && (MIS_Jack_NewLighthouseOfficer == 0))
{
return TRUE;
};
};
func void DIA_Jack_BEMYCAPTAIN_Info()
{
AI_Output(other,self,"DIA_Jack_BEMYCAPTAIN_15_00"); //Nechtěl by ses vrátit na moře?
AI_Output(self,other,"DIA_Jack_BEMYCAPTAIN_14_01"); //Dal bych pravou ruku za to, kdyby mě ještě jednou někdo najal na velkej škuner.
AI_Output(self,other,"DIA_Jack_BEMYCAPTAIN_14_02"); //Ale pro takovýho starýho mořskýho vlka to není tak snadný, hochu. A stejně, kdo by se pak staral o maják?
Info_ClearChoices(DIA_Jack_BEMYCAPTAIN);
Info_AddChoice(DIA_Jack_BEMYCAPTAIN,"Nevadí. Byl to jen nápad.",DIA_Jack_BEMYCAPTAIN_no);
Info_AddChoice(DIA_Jack_BEMYCAPTAIN,"Potřebuju tvoje námořnický zkušenosti.",DIA_Jack_BEMYCAPTAIN_seaman);
};
func void DIA_Jack_BEMYCAPTAIN_seaman()
{
AI_Output(other,self,"DIA_Jack_BEMYCAPTAIN_seaman_15_00"); //Potřebuju tvoje námořnický zkušenosti.
AI_Output(self,other,"DIA_Jack_BEMYCAPTAIN_seaman_14_01"); //U všech rozvrzanejch fošen. Co máš za lubem, chlapče? Nehodláš si vyzkoušet palubu královský válečný galéry, že ne?
AI_Output(other,self,"DIA_Jack_BEMYCAPTAIN_seaman_15_02"); //Kdo ví?
AI_Output(self,other,"DIA_Jack_BEMYCAPTAIN_seaman_14_03"); //(smích) To by mohlo něco znamenat. No dobrá. Nemůžu tu jen tak nechat můj maják. Mmh. Co s tím uděláme?
Log_CreateTopic(Topic_Captain,LOG_MISSION);
Log_SetTopicStatus(Topic_Captain,LOG_Running);
B_LogEntry(Topic_Captain,"Ze starého námořníka Jacka z přístavu může být dobrý kapitán - nejdřív ale musím sehnat někoho, kdo mu ohlídá maják.");
Info_ClearChoices(DIA_Jack_BEMYCAPTAIN);
Info_AddChoice(DIA_Jack_BEMYCAPTAIN,"Nevadí. Byl to jen nápad.",DIA_Jack_BEMYCAPTAIN_no);
Info_AddChoice(DIA_Jack_BEMYCAPTAIN,"Co když ti někoho přivedu...?",DIA_Jack_BEMYCAPTAIN_seaman_NewOfficer);
};
func void DIA_Jack_BEMYCAPTAIN_seaman_NewOfficer()
{
AI_Output(other,self,"DIA_Jack_BEMYCAPTAIN_seaman_NewOfficer_15_00"); //Co když ti seženu někoho, kdo se zatím o maják postará?
AI_Output(self,other,"DIA_Jack_BEMYCAPTAIN_seaman_NewOfficer_14_01"); //To není špatnej nápad, hochu. A já takovýho člověka znám.
AI_Output(self,other,"DIA_Jack_BEMYCAPTAIN_seaman_NewOfficer_14_02"); //Kovář Harad má učedníka jménem Brian. Už jsem s ním hodněkrát mluvil.
AI_Output(self,other,"DIA_Jack_BEMYCAPTAIN_seaman_NewOfficer_14_03"); //Chtěl bych svůj maják svěřit právě jemu. Myslim, že je pro to ten pravej.
AI_Output(self,other,"DIA_Jack_BEMYCAPTAIN_seaman_NewOfficer_14_04"); //Běž si s ním promluvit. Možná budeme mít štěstí a ten kluk nám pomůže.
Info_ClearChoices(DIA_Jack_BEMYCAPTAIN);
MIS_Jack_NewLighthouseOfficer = LOG_Running;
};
func void DIA_Jack_BEMYCAPTAIN_no()
{
AI_Output(other,self,"DIA_Jack_BEMYCAPTAIN_no_15_00"); //Nevadí. Byl to jen nápad.
Info_ClearChoices(DIA_Jack_BEMYCAPTAIN);
};
instance DIA_Jack_BEMYCAPTAIN2(C_Info)
{
npc = VLK_444_Jack;
nr = 52;
condition = DIA_Jack_BEMYCAPTAIN2_Condition;
information = DIA_Jack_BEMYCAPTAIN2_Info;
description = "Co se týče Briana...";
};
func int DIA_Jack_BEMYCAPTAIN2_Condition()
{
if((MIS_Jack_NewLighthouseOfficer == LOG_SUCCESS) || ((MIS_Jack_NewLighthouseOfficer == LOG_Running) && Npc_IsDead(Brian)))
{
return TRUE;
};
};
func void DIA_Jack_BEMYCAPTAIN2_Info()
{
if(Npc_IsDead(Brian))
{
AI_Output(other,self,"DIA_Jack_BEMYCAPTAIN2_15_00"); //Brian je mrtvý.
AI_Output(self,other,"DIA_Jack_BEMYCAPTAIN2_14_01"); //Ach. Tohle jsou strašný časy. A byli jsme tak dobrý kámoši.
MIS_Jack_NewLighthouseOfficer = LOG_OBSOLETE;
}
else
{
AI_Output(other,self,"DIA_Jack_BEMYCAPTAIN2_15_02"); //Brian se odteď bude starat o tvůj maják.
AI_Output(self,other,"DIA_Jack_BEMYCAPTAIN2_14_03"); //Doufal jsem, že to řekneš.
B_GivePlayerXP(XP_Jack_NewLighthouseOfficer);
if(SCGotCaptain == FALSE)
{
AI_Output(self,other,"DIA_Jack_BEMYCAPTAIN2_14_04"); //Ještě mě pořád potřebuješ?
}
else
{
AI_Output(self,other,"DIA_Jack_BEMYCAPTAIN2_14_05"); //Podíváme se, jestli je ten kluk k něčemu dobrej
AI_StopProcessInfos(self);
};
};
};
instance DIA_Jack_BEMYCAPTAIN3(C_Info)
{
npc = VLK_444_Jack;
nr = 53;
condition = DIA_Jack_BEMYCAPTAIN3_Condition;
information = DIA_Jack_BEMYCAPTAIN3_Info;
description = "Buď mým kapitánem!";
};
func int DIA_Jack_BEMYCAPTAIN3_Condition()
{
if(Npc_KnowsInfo(other,DIA_Jack_BEMYCAPTAIN2) && (SCGotCaptain == FALSE) && (MIS_Jack_NewLighthouseOfficer == LOG_SUCCESS))
{
return TRUE;
};
};
func void DIA_Jack_BEMYCAPTAIN3_Info()
{
AI_Output(other,self,"DIA_Jack_BEMYCAPTAIN3_15_00"); //Buď mým kapitánem!
AI_Output(self,other,"DIA_Jack_BEMYCAPTAIN3_14_01"); //Proplul jsem sedmero moří, hochu, ale ještě nikdy jsem nebyl kapitánem lodi.
AI_Output(other,self,"DIA_Jack_BEMYCAPTAIN3_15_02"); //O navigaci nevím vůbec nic. Měl by ses toho ujmout sám.
AI_Output(self,other,"DIA_Jack_BEMYCAPTAIN3_14_03"); //Udělám, co bude v mých silách.
AI_Output(self,other,"DIA_Jack_BEMYCAPTAIN3_14_04"); //Tak mi ukaž svou loď i s posádkou. A víš ty vůbec, kam máme namířeno? Myslim, jestli máš námořní mapu?
AI_Output(other,self,"DIA_Jack_BEMYCAPTAIN3_15_05"); //Počkej na mě v přístavu. O zbytek se nestarej.
AI_Output(self,other,"DIA_Jack_BEMYCAPTAIN3_14_06"); //Když to říkáš.
AI_StopProcessInfos(self);
SCGotCaptain = TRUE;
JackIsCaptain = TRUE;
Npc_ExchangeRoutine(self,"WaitForShipCaptain");
B_GivePlayerXP(XP_Captain_Success);
};
instance DIA_Jack_LOSFAHREN(C_Info)
{
npc = VLK_444_Jack;
nr = 59;
condition = DIA_Jack_LOSFAHREN_Condition;
information = DIA_Jack_LOSFAHREN_Info;
permanent = TRUE;
description = "Dobrá. Tak vyplouváme!";
};
func int DIA_Jack_LOSFAHREN_Condition()
{
if((JackIsCaptain == TRUE) && (MIS_ReadyforChapter6 == FALSE))
{
return TRUE;
};
};
func void DIA_Jack_LOSFAHREN_Info()
{
AI_Output(other,self,"DIA_Jack_LOSFAHREN_15_00"); //Dobrá. Tak vyplouváme!
if(B_CaptainConditions(self) == TRUE)
{
AI_Output(self,other,"DIA_Jack_LOSFAHREN_14_01"); //Všechno je v pořádku. Tak mi ukaž tu námořní mapu.
AI_Output(other,self,"DIA_Jack_LOSFAHREN_14_07"); //Tady je.
B_GiveInvItems(other,self,ItWr_Seamap_Irdorath,1);
AI_Output(self,other,"DIA_Jack_LOSFAHREN_14_02"); //To bude pěknej výlet. Doufám, že se tam dostaneme v jednom kuse.
AI_Output(self,other,"DIA_Jack_LOSFAHREN_14_03"); //Máš opravdu všechno, co potřebuješ? Nebudeme se vracet jen proto, že jsi něco zapomněl.
AI_Output(self,other,"DIA_Jack_LOSFAHREN_14_04"); //Jestli jseš si jistej, že máme opravdu všechno, běž do kapitánský kajuty a dej si dvacet. Bude se ti to hodit!
B_GiveInvItems(self,other,ItKe_Ship_Levelchange_MIS,1);
AI_StopProcessInfos(self);
B_CaptainCallsAllOnBoard(self);
}
else
{
AI_Output(self,other,"DIA_Jack_LOSFAHREN_14_05"); //Klídek, chlapče. Ještě jsem ten škopek neviděl. Takhle to nepude.
AI_Output(self,other,"DIA_Jack_LOSFAHREN_14_06"); //Nejdřív budeš potřebovat kompletní posádku s minimálně pěti chlapama, volný přístup na loď a námořní mapu. Jinak na to zapomeň.
AI_StopProcessInfos(self);
};
};
instance DIA_Jack_KAP6_EXIT(C_Info)
{
npc = VLK_444_Jack;
nr = 999;
condition = DIA_Jack_KAP6_EXIT_Condition;
information = DIA_Jack_KAP6_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Jack_KAP6_EXIT_Condition()
{
if(Kapitel == 6)
{
return TRUE;
};
};
func void DIA_Jack_KAP6_EXIT_Info()
{
AI_StopProcessInfos(self);
};
instance DIA_JACK_NW_KAPITELORCATTACK(C_Info)
{
npc = VLK_444_Jack;
nr = 1;
condition = dia_jack_nw_kapitelorcattack_condition;
information = dia_jack_nw_kapitelorcattack_info;
permanent = FALSE;
description = "Co máte za hlášení kapitáne?";
};
func int dia_jack_nw_kapitelorcattack_condition()
{
if((MIS_HELPCREW == LOG_Running) && (MOVECREWTOHOME == FALSE) && (JACKBACKNW == TRUE))
{
return TRUE;
};
};
func void dia_jack_nw_kapitelorcattack_info()
{
AI_Output(other,self,"DIA_Jack_NW_KapitelOrcAttack_01_00"); //Co máte za hlášení kapitáne?
AI_Output(self,other,"DIA_Jack_NW_KapitelOrcAttack_01_01"); //Ano, zdá se že je to pravda co se říká...(smutně) Khorinis obsadili skřeti! Teď odsud nemůžeme vystrčit ani nos!
AI_Output(other,self,"DIA_Jack_NW_KapitelOrcAttack_01_02"); //Pár chlapů se chce zkusit probojovat skrz město...
AI_Output(self,other,"DIA_Jack_NW_KapitelOrcAttack_01_04"); //Možná že jo, zkušený voják by to mohl dokázat... ale co mi ostatní?
AI_Output(self,other,"DIA_Jack_NW_KapitelOrcAttack_01_03"); //Eh, to mi neříkej, ani ze srandy!... (vyděšeně) Já ani meč v ruce neudržím, už na to nemám léta, a navíc proti skřetům...
Info_ClearChoices(dia_jack_nw_kapitelorcattack);
if(Npc_HasItems(other,ItMi_TeleportTaverne) >= 1)
{
Info_AddChoice(dia_jack_nw_kapitelorcattack,"Nabídnout teleportační runu k hostinci.",dia_jack_nw_kapitelorcattack_taverne);
};
Info_AddChoice(dia_jack_nw_kapitelorcattack,"Je nezbytné, abys bojoval.",dia_jack_nw_kapitelorcattack_nogiverune);
};
func void dia_jack_nw_kapitelorcattack_taverne()
{
B_GivePlayerXP(200);
AI_Output(other,self,"DIA_Jack_NW_KapitelOrcAttack_Taverne_01_01"); //Počkej, uklidni se! Mám tady u sebe teleportační runu k hostinci 'U Mrtvé harpyje'.
AI_Output(other,self,"DIA_Jack_NW_KapitelOrcAttack_Taverne_01_05"); //Navíc, Vy opravdu nejste schopen čelit tolika skřetům, a rozhodně byste to až k bráně nezvládl.
AI_Output(self,other,"DIA_Jack_NW_KapitelOrcAttack_Taverne_01_08"); //Dobrá... (značně skepticky) Doufám, že takhle přesvědčíš i ostatní. Vezmu si ji.
B_GiveInvItems(other,self,ItMi_TeleportTaverne,1);
Npc_RemoveInvItems(self,ItMi_TeleportTaverne,1);
AI_Output(self,other,"DIA_Jack_NW_KapitelOrcAttack_Taverne_01_10"); //Eh! Dooufám, že potom cestování nebudu mít kocovinu, jako posledně po těžkým fláku.
JACKNOBATTLETHROUGTH = TRUE;
B_LogEntry(TOPIC_HELPCREW,"Dal jsem kapitánovi teleportční runu k hostinci 'U Mrtvé harpyje'. Teď už se o něj nemusím strachovat!");
PERMCOUNTBACKNW = PERMCOUNTBACKNW + 1;
b_countbackcrew();
AI_StopProcessInfos(self);
};
func void dia_jack_nw_kapitelorcattack_nogiverune()
{
B_GivePlayerXP(50);
AI_Output(other,self,"DIA_Jack_NW_KapitelOrcAttack_NoGiveRune_01_01"); //Musíš bojovat! Jiná možnost, jak se odtud dostat bohužel není!
AI_Output(self,other,"DIA_Jack_NW_KapitelOrcAttack_NoGiveRune_01_02"); //Nemyslím si, že to zvládnu... (vydýchne si) ale můžeš vzít jed na to, že to zkusím.
AI_Output(other,self,"DIA_Jack_NW_KapitelOrcAttack_NoGiveRune_01_03"); //Tak dobrá! Určitě to zvládneš.
AI_Output(self,other,"DIA_Jack_NW_KapitelOrcAttack_NoGiveRune_01_04"); //Díky.
B_LogEntry(TOPIC_HELPCREW,"Kapitán se s ostatními pokusí probojovat si cestu skrz město. Ale myslím si, že nemá šanci!");
JACKBATTLETHROUGTH = TRUE;
PERMCOUNTBACKNW = PERMCOUNTBACKNW + 1;
b_countbackcrew();
AI_StopProcessInfos(self);
};
instance DIA_JACK_NW_AGAINCAPITAN(C_Info)
{
npc = VLK_444_Jack;
nr = 1;
condition = dia_jack_nw_againcapitan_condition;
information = dia_jack_nw_againcapitan_info;
permanent = FALSE;
description = "Potřebuju zase kapitána na moji loď.";
};
func int dia_jack_nw_againcapitan_condition()
{
if(Npc_KnowsInfo(hero,dia_lord_hagen_needcapitan) && (WHOTRAVELONBIGLAND == FALSE) && (SHIPAGAINACCESS == TRUE))
{
return TRUE;
};
};
func void dia_jack_nw_againcapitan_info()
{
B_GivePlayerXP(100);
AI_Output(other,self,"DIA_Jack_NW_AgainCapitan_01_00"); //Potřebuju zase kapitána na moji loď.
AI_Output(self,other,"DIA_Jack_NW_AgainCapitan_01_01"); //Hmmm... (podezíravě) A kam se budem plavit tentokrát?
AI_Output(other,self,"DIA_Jack_NW_AgainCapitan_01_02"); //Na pevninu. mám velmi důležitou zprávu pro krále! Pomůžeš mi s tím?!
AI_Output(self,other,"DIA_Jack_NW_AgainCapitan_01_03"); //Na pevninu?! Eh, chlape... (nerozhodně) To tě asi zklamu, já se nechci plavit na pevninu!
AI_Output(self,other,"DIA_Jack_NW_AgainCapitan_01_04"); //Slyšel jsem, že na pevnině to mají se skřety ještě horší, než sme měli my.
AI_Output(self,other,"DIA_Jack_NW_AgainCapitan_01_05"); //Takže, by ses měl podívat po někom jiném.
AI_Output(other,self,"DIA_Jack_NW_AgainCapitan_01_06"); //Tak to je škoda, počítal jsem s tebou.
B_LogEntry(TOPIC_SALETOBIGLAND,"Jack se se mnou odmítl plavit na pevninu.");
};
instance DIA_JACK_BANDITENWEG1(C_Info)
{
npc = VLK_444_Jack;
nr = 2;
condition = dia_jack_banditenweg1_condition;
information = dia_jack_banditenweg1_info;
permanent = FALSE;
description = "Co víš o pirátech?";
};
func int dia_jack_banditenweg1_condition()
{
if(Npc_KnowsInfo(hero,DIA_Jack_City))
{
return TRUE;
};
};
func void dia_jack_banditenweg1_info()
{
AI_Output(other,self,"DIA_Jack_BANDITENWEG_01_01"); //Co víš o pirátech?
AI_Output(self,other,"DIA_Jack_BANDITENWEG_01_02"); //Noo... vsichni piati jsou stejní - zloději a budižkničemové!
AI_Output(self,other,"DIA_Jack_BANDITENWEG_01_03"); //Pravda, za jejich krutostí a nelidskostí se někdy skrývá i něco jiného...
AI_Output(self,other,"DIA_Jack_BANDITENWEG_01_04"); //Například na zabití času mezi loupežemi skládají písně a básně.
AI_Output(self,other,"DIA_Jack_BANDITENWEG_01_05"); //A často jsou vcelku dobré! Chtěl bys nějakou slyšet?
Info_ClearChoices(dia_jack_banditenweg1);
Info_AddChoice(dia_jack_banditenweg1,"Ne, díky.",dia_jack_banditenweg1_no);
Info_AddChoice(dia_jack_banditenweg1,"Tak to skus!",dia_jack_banditenweg1_yes);
};
func void dia_jack_banditenweg1_no()
{
AI_Output(other,self,"DIA_Jack_BANDITENWEG_no_01_01"); //Ne, díky.
AI_Output(self,other,"DIA_Jack_BANDITENWEG_no_01_02"); //Chápu...
AI_StopProcessInfos(self);
};
func void dia_jack_banditenweg1_yes()
{
AI_Output(other,self,"DIA_Jack_BANDITENWEG_yes_01_01"); //Tak to skus!
AI_Output(self,other,"DIA_Jack_BANDITENWEG_yes_01_02"); //Tak poslouchej...
AI_Output(self,other,"DIA_Jack_BANDITENWEG_yes_01_03"); //Piráti ta cháska bídná, to už každej ví,
AI_Output(self,other,"DIA_Jack_BANDITENWEG_yes_01_04"); //o nich vyprávěj se příběhy, kdy tě až zamrazí.
AI_Output(self,other,"DIA_Jack_BANDITENWEG_yes_01_05"); //Než se vydáš na moře, černý sny budeš mít,
AI_Output(self,other,"DIA_Jack_BANDITENWEG_yes_01_06"); //potkáš-li nás piráty, na dně moře budeš hnít.
AI_Output(self,other,"DIA_Jack_BANDITENWEG_yes_01_07"); //Johohou johohou piráti se rumem nalejou.
AI_Output(self,other,"DIA_Jack_BANDITENWEG_yes_01_08"); //Johohou johohou potápěj jednu loď za druhou.
AI_Output(self,other,"DIA_Jack_BANDITENWEG_yes_01_09"); //Na moře se vydáme a naším cílem jest,
AI_Output(self,other,"DIA_Jack_BANDITENWEG_yes_01_10"); //potopit pár plachetnic napakovat se fest.
AI_Output(self,other,"DIA_Jack_BANDITENWEG_yes_01_11"); //Až uvidíš černou vlajku, hnáty zkřížený,
AI_Output(self,other,"DIA_Jack_BANDITENWEG_yes_01_12"); //odříkej si otčenáš, už máš to spočtený.
AI_Output(self,other,"DIA_Jack_BANDITENWEG_yes_01_13"); //Johohou johohou piráti se rumem nalejou.
AI_Output(self,other,"DIA_Jack_BANDITENWEG_yes_01_14"); //Johohou johohou potápěj jednu loď za druhou.
AI_Output(self,other,"DIA_Jack_BANDITENWEG_yes_01_15"); //Pravá noha dřevěná na levý ruce hák,
AI_Output(self,other,"DIA_Jack_BANDITENWEG_yes_01_16"); //tak to je náš kapitán, z lodi udělá vám vrak.
AI_Output(self,other,"DIA_Jack_BANDITENWEG_yes_01_17"); //Ať slunce pálí nebo bouře zmítá kajutou
AI_Output(self,other,"DIA_Jack_BANDITENWEG_yes_01_18"); //My piráti jsme ve svým živlu pějem píseň svou.
AI_Output(self,other,"DIA_Jack_BANDITENWEG_yes_01_19"); //Hmmm... tak co na to říkáš?
Info_ClearChoices(dia_jack_banditenweg1);
Info_AddChoice(dia_jack_banditenweg1,"Nic moc.",dia_jack_banditenweg1_not);
Info_AddChoice(dia_jack_banditenweg1,"To bylo teda něco!",dia_jack_banditenweg1_yea);
};
func void dia_jack_banditenweg1_not()
{
AI_Output(other,self,"DIA_Jack_BANDITENWEG_not_01_01"); //Nic moc.
AI_Output(self,other,"DIA_Jack_BANDITENWEG_not_01_02"); //Co...? (naštvaně) Tak se teda vidíme později!
AI_StopProcessInfos(self);
};
func void dia_jack_banditenweg1_yea()
{
B_GivePlayerXP(200);
AI_Output(other,self,"DIA_Jack_BANDITENWEG_yea_01_01"); //To bylo teda něco!
AI_Output(self,other,"DIA_Jack_BANDITENWEG_yea_01_02"); //Věděl jsem, že se ti bude líbit.
AI_Output(other,self,"DIA_Jack_BANDITENWEG_yea_01_03"); //Ty jsi byl pirát?
AI_Output(self,other,"DIA_Jack_BANDITENWEG_yea_01_04"); //Kdo! Já? Co tě to napadá... Já jsem jen starý námořník.
AI_Output(other,self,"DIA_Jack_BANDITENWEG_yea_01_05"); //Samozřejmě...
AI_StopProcessInfos(self);
};
instance DIA_Jack_DiscoverLH(C_Info)
{
npc = VLK_444_Jack;
nr = 5;
condition = DIA_Jack_DiscoverLH_Condition;
information = DIA_Jack_DiscoverLH_Info;
description = "Počul si už o pirátovi menom Kelevra?";
};
func int DIA_Jack_DiscoverLH_Condition()
{
if((MIS_HauntedLighthouse == LOG_Running) && (KnowStoryDLH == TRUE))
{
return TRUE;
};
};
func void DIA_Jack_DiscoverLH_Info()
{
B_GivePlayerXP(100);
AI_Output(other,self,"DIA_Jack_DiscoverLH_01_00"); //Počul si už o pirátovi menom Kelevra?
AI_Output(self,other,"DIA_Jack_DiscoverLH_01_01"); //Ešte som o ňom nepočul.
AI_Output(self,other,"DIA_Jack_DiscoverLH_01_02"); //A celkovo s pirátmi sa snažím nemať nič spoločné.
AI_Output(other,self,"DIA_Jack_DiscoverLH_01_03"); //Chápem.
CanGoGreg = TRUE;
B_LogEntry(TOPIC_HauntedLighthouse,"Jack o Kelevrovi nič nevie. Možno by som sa mal spýtať samotných pirátov?");
};
instance DIA_Jack_GotPirate(C_Info)
{
npc = VLK_444_Jack;
nr = 5;
condition = DIA_Jack_GotPirate_Condition;
information = DIA_Jack_GotPirate_Info;
description = "Ahoj Jack.";
};
func int DIA_Jack_GotPirate_Condition()
{
if((MIS_HauntedLighthouse == LOG_Running) && (GotPirate == TRUE))
{
return TRUE;
};
};
func void DIA_Jack_GotPirate_Info()
{
B_GivePlayerXP(500);
AI_Output(other,self,"DIA_Jack_GotPirate_01_00"); //Alebo ti mám hovoriť Kelevra?
AI_Output(self,other,"DIA_Jack_GotPirate_01_01"); //Čo?
AI_Output(other,self,"DIA_Jack_GotPirate_01_02"); //Neskúšaj to poprieť. Greg mi všetko povedal.
AI_Output(self,other,"DIA_Jack_GotPirate_01_03"); //Zatraceně! ... Och... A čo?
AI_Output(other,self,"DIA_Jack_GotPirate_01_04"); //Vyzerá to, že nie si úplne obyčajný muž ako vyzeráš.
AI_Output(self,other,"DIA_Jack_GotPirate_01_05"); //O čo ti ide?
AI_Output(other,self,"DIA_Jack_GotPirate_01_06"); //Myslím, že vieš kam tým smerujem. Nakoniec, bol si to ty, kto zabil Stefana aj napriek tomu, že ti zachránil život.
AI_Output(self,other,"DIA_Jack_GotPirate_01_07"); //Bodaj by si zhorel v plameňoch Beliara! Odkial to všetko vieš? To ti povedal Greg?
AI_Output(other,self,"DIA_Jack_GotPirate_01_08"); //Povedal mi to správca, ktorého si zabil len preto, že ti nechcel dať loď.
AI_Output(self,other,"DIA_Jack_GotPirate_01_09"); //Áno, zabil som ho! Tak čo teraz? Zabiješ ma? Do toho! Ešte teraz mi to nedáva spať.
AI_Output(self,other,"DIA_Jack_GotPirate_01_10"); //Po tom, ako sa to stalo som skončil s pirátstvom a usadil som sa na pobreží a začal som pracovať ako správca majáku.
AI_Output(other,self,"DIA_Jack_GotPirate_01_11"); //Ja ťa nezabijem. Mám lepší nápad. Pomožeš mi zdvihnúť kliatbu z majáku.
AI_Output(self,other,"DIA_Jack_GotPirate_01_12"); //Ja?! A čo by som mal robiť? Ísť tam zomrieť?
AI_Output(other,self,"DIA_Jack_GotPirate_01_13"); //To hádam nebude nutné. Stačí ak požiadaš ducha o odpustenie a malo by to oslabiť kliatbu.
AI_Output(other,self,"DIA_Jack_GotPirate_01_14"); //Ale v jednej veci máš pravdu, budeš tam musieť ísť.
AI_Output(self,other,"DIA_Jack_GotPirate_01_15"); //Tak to ma rovno zabi! A vyjde to na rovnako.
AI_Output(self,other,"DIA_Jack_GotPirate_01_16"); //Len... Predtým než pojdem, nechaj ma vybaviť si pár vecí tu na pláži. Neviem, či sa odtial vrátim alebo nie.
AI_Output(other,self,"DIA_Jack_GotPirate_01_17"); //Dobre. Máš jeden deň.
AI_Output(self,other,"DIA_Jack_GotPirate_01_18"); //Pozajtra sa teda stretneme pri majáku.
AI_Output(other,self,"DIA_Jack_GotPirate_01_19"); //Vidíme sa. Och, a ešte niečo čo mi vrta hlavou... čo znamená tá prezývka Kelevra?
AI_Output(self,other,"DIA_Jack_GotPirate_01_20"); //V jazyku asasínov to znamená Zlý pes. Nepýtaj sa ako mi prischlo.
JackGoLH = TRUE;
JackGoLHDay = Wld_GetDay();
B_LogEntry(TOPIC_HauntedLighthouse,"Jack sa priznal. Teraz s ním pojdeme skúsiť zdvihnúť kliatbu z majáku.");
AI_StopProcessInfos(self);
};
instance DIA_Jack_OnLH(C_Info)
{
npc = VLK_444_Jack;
nr = 5;
condition = DIA_Jack_OnLH_Condition;
information = DIA_Jack_OnLH_Info;
important = TRUE;
};
func int DIA_Jack_OnLH_Condition()
{
if((MIS_HauntedLighthouse == LOG_Running) && (JackOnLH == TRUE) && (Npc_GetDistToWP(self,"NW_JACK_LH_01") <= 1000))
{
return TRUE;
};
};
func void DIA_Jack_OnLH_Info()
{
B_GivePlayerXP(150);
AI_Output(other,self,"DIA_Jack_OnLH_01_00"); //Tak ty si prišiel.
AI_Output(self,other,"DIA_Jack_OnLH_01_01"); //Za čo ma máš chlapče? Keď raz dám svoje slovo, tak ho dodržím.
AI_Output(other,self,"DIA_Jack_OnLH_01_02"); //Tak poďme. Nechaj ma hovoriť.
AI_Output(self,other,"DIA_Jack_OnLH_01_03"); //Ako povieš.
self.aivar[AIV_PARTYMEMBER] = TRUE;
JackMeetLHGhost = TRUE;
B_LogEntry(TOPIC_HauntedLighthouse,"Stretol som Jacka pri majáku a spolu sme sa vydali za Stefanovým duchom.");
AI_StopProcessInfos(self);
Npc_ExchangeRoutine(self,"FollowLH");
};
instance DIA_Jack_OnLHDone(C_Info)
{
npc = VLK_444_Jack;
nr = 5;
condition = DIA_Jack_OnLHDone_Condition;
information = DIA_Jack_OnLHDone_Info;
important = TRUE;
};
func int DIA_Jack_OnLHDone_Condition()
{
if(FinishStoryLH == TRUE)
{
return TRUE;
};
};
func void DIA_Jack_OnLHDone_Info()
{
AI_Output(self,other,"DIA_Jack_OnLHDone_01_00"); //Tak to ma podrž! Už som si myslel, že som mrtvy.
AI_Output(other,self,"DIA_Jack_OnLHDone_01_01"); //Upokoj sa. Všetko je v pohode.
AI_Output(self,other,"DIA_Jack_OnLHDone_01_02"); //Po tom všetkom mám pocit ako by mi spadol kameň zo srdca.
if(JackMeetGhost == TRUE)
{
B_GivePlayerXP(1000);
AI_Output(other,self,"DIA_Jack_OnLHDone_01_03"); //A čo sa ti stalo z okom?
AI_Output(self,other,"DIA_Jack_OnLHDone_01_04"); //Och, osleplo... Pamiatka na toho ducha.
AI_Output(other,self,"DIA_Jack_OnLHDone_01_05"); //Máš šťastie, že ťa nezabil.
AI_Output(self,other,"DIA_Jack_OnLHDone_01_06"); //To mi nemusíš hovoriť. Vďaka za pomoc. Navždy budem tvojim dlžníkom.
MIS_HauntedLighthouse = LOG_Success;
Log_SetTopicStatus(TOPIC_HauntedLighthouse,LOG_Success);
B_LogEntry(TOPIC_HauntedLighthouse,"Zbavil som maják kliatby.");
}
else
{
B_GivePlayerXP(500);
AI_Output(self,other,"DIA_Jack_OnLHDone_01_08"); //Vďaka za pomoc. Navždy budem tvojim dlžníkom.
};
AI_StopProcessInfos(self);
if(JackIsCaptain == TRUE)
{
Npc_ExchangeRoutine(self,"WaitForShipCaptain");
}
else if(MIS_JackSmokePipe == LOG_SUCCESS)
{
Npc_ExchangeRoutine(self,"LighthouseSmoke");
}
else
{
if(MIS_Jack_KillLighthouseBandits == LOG_SUCCESS)
{
Npc_ExchangeRoutine(self,"Lighthouse");
}
else
{
Npc_ExchangeRoutine(self,"Start");
};
};
}; | D |
module lib.funcs;
import std.stdio;
import core.stdc.stdlib;
import thing;
import lib.cmp;
import lib.flow;
import lib.io;
import lib.math;
import lib.meta;
import lib.sesl;
import lib.state;
import lib.string;
import lib.sys;
import lib.table;
import lib.vector;
Value function(Args) byName(string name)
{
switch (name)
{
case "if":
return &fnIf;
// case "intern:if":
// return &internIf;
case "while":
return &fnWhile;
case "while:iftrue":
return &helpWhileByIfTrue;
case "pass":
return &fnPass;
case "lambda":
return &fnLambda;
case "print":
return &fnPrint;
case "write":
return &fnWrite;
case "to-json":
return &fnToJson;
case "make-world":
return &fnMakeWorld;
case "system":
return &fnSystem;
case "exec":
return &fnExec;
case "save-to":
return &fnSaveTo;
case "read-from":
return &fnReadFrom;
case "table":
return &fnTableNew;
case "table-index":
return &fnTableIndex;
case "table-set":
return &fnTableSet;
case "list":
return &fnVectorNew;
case "list-index":
return &fnVectorIndex;
case "list-set":
return &fnVectorSet;
case "strip":
return &fnStrip;
case "cat":
return &fnCat;
case "+":
return &fnAdd;
case "-":
return &fnSub;
case "*":
return &fnMul;
case "/":
return &fnDiv;
case "%":
return &fnMod;
case "=":
return &fnEq;
case "!=":
return &fnNeq;
case "<":
return &fnLt;
case ">":
return &fnGt;
case "<=":
return &fnLte;
case ">=":
return &fnGte;
case "set":
return &fnSet;
case "proc":
return &fnProc;
default:
writeln("no name " ~ name);
exit(1);
}
assert(0);
}
| D |
/Users/sergiysobol/Projects/MovieDatabase/build/Pods.build/Debug-iphonesimulator/netfox.build/Objects-normal/x86_64/NFXListController.o : /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXListCell_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXInfoController_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXStatisticsController_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXSettingsController_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXDetailsController_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXListController_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXHelper_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFX.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXHTTPModel.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXProtocol.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXAuthenticationChallengeSender.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXHTTPModelManager.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXGenericController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXInfoController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXStatisticsController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXSettingsController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXDetailsController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXGenericBodyDetailsController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXImageBodyDetailsController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXRawBodyDetailsController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXListController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXURLDetailsControllerViewController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXWindowController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXHelper.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXAssets.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXConstants.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/sergiysobol/Projects/MovieDatabase/Pods/Target\ Support\ Files/netfox/netfox-umbrella.h /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXLoader.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/mach-o/dyld.modulemap /Users/sergiysobol/Projects/MovieDatabase/build/Pods.build/Debug-iphonesimulator/netfox.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/MessageUI.framework/Headers/MessageUI.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.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.5.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/sergiysobol/Projects/MovieDatabase/build/Pods.build/Debug-iphonesimulator/netfox.build/Objects-normal/x86_64/NFXListController~partial.swiftmodule : /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXListCell_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXInfoController_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXStatisticsController_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXSettingsController_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXDetailsController_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXListController_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXHelper_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFX.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXHTTPModel.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXProtocol.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXAuthenticationChallengeSender.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXHTTPModelManager.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXGenericController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXInfoController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXStatisticsController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXSettingsController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXDetailsController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXGenericBodyDetailsController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXImageBodyDetailsController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXRawBodyDetailsController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXListController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXURLDetailsControllerViewController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXWindowController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXHelper.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXAssets.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXConstants.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/sergiysobol/Projects/MovieDatabase/Pods/Target\ Support\ Files/netfox/netfox-umbrella.h /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXLoader.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/mach-o/dyld.modulemap /Users/sergiysobol/Projects/MovieDatabase/build/Pods.build/Debug-iphonesimulator/netfox.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/MessageUI.framework/Headers/MessageUI.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.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.5.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/sergiysobol/Projects/MovieDatabase/build/Pods.build/Debug-iphonesimulator/netfox.build/Objects-normal/x86_64/NFXListController~partial.swiftdoc : /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXListCell_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXInfoController_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXStatisticsController_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXSettingsController_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXDetailsController_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXListController_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXHelper_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFX.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXHTTPModel.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXProtocol.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXAuthenticationChallengeSender.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXHTTPModelManager.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXGenericController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXInfoController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXStatisticsController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXSettingsController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXDetailsController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXGenericBodyDetailsController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXImageBodyDetailsController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXRawBodyDetailsController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXListController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXURLDetailsControllerViewController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXWindowController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXHelper.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXAssets.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXConstants.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/sergiysobol/Projects/MovieDatabase/Pods/Target\ Support\ Files/netfox/netfox-umbrella.h /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXLoader.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/mach-o/dyld.modulemap /Users/sergiysobol/Projects/MovieDatabase/build/Pods.build/Debug-iphonesimulator/netfox.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/MessageUI.framework/Headers/MessageUI.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.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.5.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/sergiysobol/Projects/MovieDatabase/build/Pods.build/Debug-iphonesimulator/netfox.build/Objects-normal/x86_64/NFXListController~partial.swiftsourceinfo : /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXListCell_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXInfoController_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXStatisticsController_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXSettingsController_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXDetailsController_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXListController_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXHelper_iOS.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFX.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXHTTPModel.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXProtocol.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXAuthenticationChallengeSender.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXHTTPModelManager.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXGenericController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXInfoController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXStatisticsController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXSettingsController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXDetailsController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXGenericBodyDetailsController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXImageBodyDetailsController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXRawBodyDetailsController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXListController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/iOS/NFXURLDetailsControllerViewController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXWindowController.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXHelper.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXAssets.swift /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXConstants.swift /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/14.5/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/sergiysobol/Projects/MovieDatabase/Pods/Target\ Support\ Files/netfox/netfox-umbrella.h /Users/sergiysobol/Projects/MovieDatabase/Pods/netfox/netfox/Core/NFXLoader.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/mach-o/dyld.modulemap /Users/sergiysobol/Projects/MovieDatabase/build/Pods.build/Debug-iphonesimulator/netfox.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/MessageUI.framework/Headers/MessageUI.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.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.5.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.5.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
| D |
/**
*
*/
module hunt.wechat.bean.shakearound.page.update.PageUpdate;
import hunt.wechat.bean.shakearound.page.PageInfo;
/**
* 微信摇一摇周边-页面管理-编辑页面信息-请求参数
*
*
*/
class PageUpdate : PageInfo {
}
| D |
/*
TEST_OUTPUT:
---
fail_compilation/fail347.d(21): Error: undefined identifier `bbr`, did you mean variable `bar`?
fail_compilation/fail347.d(22): Error: no property 'ofo' for type 'S', did you mean 'foo'?
fail_compilation/fail347.d(23): Error: undefined identifier `strlenx`, did you mean function `strlen`?
---
*/
//import core.stdc.string;
import imports.fail347a;
struct S
{
int foo;
}
void main()
{
S bar;
bbr.foo = 3;
bar.ofo = 4;
auto s = strlenx("hello");
}
| D |
import std.stdio;
import std.string;
import std.conv;
import std.algorithm;
import std.range;
import std.traits;
import std.math;
import std.conv;
import std.typecons;
void main() {
auto ip = readAs!(int[]), A = ip[0], B = ip[1];
bool flag = false;
foreach(i; A..B+1) {
foreach(j; i.to!string) {
if(j == '3') flag = true;
}
if(i % 3 == 0) flag = true;
if(flag) i.writeln;
flag = false;
}
}
// ===================================
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 (isBasicType!T) {
auto res = new T[][](height, width);
foreach(i; 0..height) {
res[i] = readAs!(T[]);
}
return res;
}
int ri() {
return readAs!int;
}
string rs() {
return readln.chomp;
} | D |
/home/zbf/workspace/git/RTAP/target/debug/deps/hostname-1e6936739ba4f890.rmeta: /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/hostname-0.1.5/src/lib.rs
/home/zbf/workspace/git/RTAP/target/debug/deps/hostname-1e6936739ba4f890.d: /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/hostname-0.1.5/src/lib.rs
/home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/hostname-0.1.5/src/lib.rs:
| D |
import uctl.util: OSC;
import uctl.modul: svm, swm;
import uctl.math: sin;
import uctl.unit: as, Hz, rev, sec;
import uctl: mk;
alias sine = sin!5;
enum dts = dt.as!sec;
private nothrow @nogc void entry() {
immutable param = mk!(OSC.Param, rev, dts)(freq.as!Hz);
auto state = OSC.State!(param, float)();
foreach (i; 0 .. cast(int)(tend/dt)) {
immutable float t = i * dt;
immutable auto phase = state(param);
immutable auto abc1 = svm!(sine, [3])(phase);
immutable auto abc2 = swm!(sine, [3])(phase);
printf("%f %f %f %f %f %f %f %f\n", t, phase.raw, abc1[0], abc1[1], abc1[2], abc2[0], abc2[1], abc2[2]);
}
}
| D |
/++
+ darksky-d fetches weather data from darksky.net and builds
+ a plain text file which conky will read to construct a nice weather
+ widget.
+ +
+ © 2019, Alex Vie <silvercircle@gmail.com>
+ License: MIT
+/
module context;
import std.process, std.path, std.stdio, std.file, std.string, std.conv, core.stdc.stdlib: exit;
import vibe.data.json, vibe.data.serialization, std.datetime :Clock, SysTime;
import database;
/**
* app configuration class
* implemented as thread safe singleton
* used for config storage via JSON, logging.
*/
final class GlobalContext
{
private:
/*
* example of a config data object with sub-structures representable
* in Json
*/
struct Config {
@optional @name("appname") string myName = "darksky";
@optional @name("firstrun") SysTime firstRun;
@optional @name("lastrun") SysTime lastRun;
@optional @name("datadir") string dataDir;
@optional @name("is_portable") bool isPortable = false;
@optional @name("last_fetched") SysTime lastFetched;
@optional @name("num_updates") uint numUpdates = 0;
@optional @name("location") string location = "48.2082,16.3738";
@optional @name("units") string units = "si";
}
this(ref string[] args)
{
this.exePath = std.path.dirName(std.file.thisExePath());
version(Windows) {
this.homeDir = std.process.environment["APPDATA"];
this.homeDir = buildPath(this.homeDir, "darksky-d");
this.configDir = this.homeDir;
}
else {
this.homeDir = std.process.environment["HOME"];
this.configDir = buildPath(this.homeDir, ".config/darksky-d");
this.homeDir = buildPath(this.homeDir, ".local/share/darksky-d");
}
try {
std.file.isDir(this.homeDir);
}
catch (FileException e) {
std.file.mkdirRecurse(this.homeDir);
}
try {
std.file.isDir(this.configDir);
}
catch (FileException e) {
std.file.mkdirRecurse(this.configDir);
}
if(args != null && !this.isInitialized)
this.initContext(args);
}
~this() {
this.saveConfig();
}
// TLS flag, each thread has its own
static bool isInstantiated = false;
// "True" global
__gshared GlobalContext instance_;
string homeDir;
string configDir;
bool isInitialized = false;
bool isPortable = false;
string portableDir;
string exePath;
string configFilePath;
string cacheFileName, prettyCacheFileName, dbFileName;
public:
/**
* the configuration object
*/
Config cfg;
char[] apiJson;
static GlobalContext getInstance(string[] args = null)
{
if (!isInstantiated) {
synchronized (GlobalContext.classinfo) {
if (!instance_) {
instance_ = new GlobalContext(args);
}
isInstantiated = true;
}
}
return instance_;
}
/**
* initialize the context, parse command line arguments, determine data
* directory
*/
void initContext(ref string[] args) {
if(this.isInitialized)
return;
this.isInitialized = true;
if(this.isPortable && this.portableDir.length == 0)
this.portableDir = ".darksky-d.data";
if(this.portableDir.length > 0) {
this.isPortable = true;
if(!std.path.isAbsolute(this.portableDir))
this.homeDir = buildPath(this.exePath, this.portableDir);
else
this.homeDir = this.portableDir;
try {
std.file.isDir(this.homeDir);
} catch (FileException e) {
std.file.mkdirRecurse(this.homeDir);
}
}
this.configFilePath = buildPath(this.configDir, "config.json");
try {
std.file.isFile(this.configFilePath);
string rawJson = std.file.readText(this.configFilePath);
try
this.cfg = deserializeJson!Config(rawJson);
catch (JSONException e) {
writef("exception while deserialize\n%s\n", e);
}
} catch(FileException e) {
File f = File(this.configFilePath, "w");
this.cfg = Config();
this.cfg.firstRun = Clock.currTime();
Json s = this.cfg.serializeToJson();
writeln("serialize done...");
writeln(s.toPrettyString());
f.write(s.toPrettyString());
f.close();
destroy(s);
}
cfg.dataDir = this.homeDir;
this.cacheFileName = buildPath(this.homeDir, "darksky_response.json");
this.prettyCacheFileName = buildPath(this.homeDir, "darksky_pretty_response.json");
this.dbFileName = buildPath(this.homedir, "history.sqlite3");
const DB db = DB.getInstance(this.dbFileName);
}
/**
* shut down the application, save config
* exit with error code
*/
void orderlyShutDown(const int code = 0) {
this.saveConfig();
exit(code);
}
/**
* save configuration
*/
void saveConfig() {
this.cfg.lastRun = Clock.currTime();
this.cfg.isPortable = this.isPortable;
Json s = this.cfg.serializeToJson();
try {
File f = File(this.configFilePath, "w");
f.write(s.toPrettyString());
f.close();
} catch (FileException e) {}
}
/**
* the data directory
*/
@property homedir() const { return this.homeDir; }
@property configdir() const { return this.configDir; }
@property cachefile() const { return this.cacheFileName; }
@property prettycachefile() const { return this.prettyCacheFileName; }
}
| D |
/*******************************************************************************
Tests for the transaction-level absolute time lock.
Copyright:
Copyright (c) 2019-2021 BOSAGORA Foundation
All rights reserved.
License:
MIT License. See LICENSE for details.
*******************************************************************************/
module agora.test.LockHeight;
version (unittest):
import agora.api.Validator;
import agora.crypto.Hash;
import agora.test.Base;
/// Ditto
unittest
{
TestConf conf = TestConf.init;
auto network = makeTestNetwork!TestAPIManager(conf);
network.start();
scope(exit) network.shutdown();
scope(failure) network.printLogs();
network.waitForDiscovery();
auto nodes = network.clients;
auto node_1 = nodes[0];
// height 1
auto txs = genesisSpendable().map!(txb => txb.sign()).array();
txs.each!(tx => node_1.postTransaction(tx));
txs.each!(tx => network.ensureTxInPool(tx.hashFull()));
network.expectHeightAndPreImg(Height(1), network.blocks[0].header);
const Height UnlockHeight_2 = Height(2);
auto unlock_2_txs = txs.map!(
tx => TxBuilder(tx).lock(UnlockHeight_2).sign(OutputType.Payment)).array();
const Height UnlockHeight_3 = Height(3);
auto unlock_3_txs = txs.map!(
tx => TxBuilder(tx).lock(UnlockHeight_3).sign(OutputType.Payment)).array();
assert(unlock_2_txs != unlock_3_txs);
// these should all be rejected, or alternatively accepted by the pool but
// not added to the block at height 2
unlock_3_txs.each!(tx => node_1.postTransaction(tx));
// should be accepted
unlock_2_txs.each!(tx => network.postAndEnsureTxInPool(tx));
network.expectHeightAndPreImg(Height(2), network.blocks[0].header);
auto blocks = node_1.getBlocksFrom(2, 1);
assert(blocks.length == 1);
sort(unlock_2_txs);
assert(blocks[0].txs == unlock_2_txs);
}
| D |
module hunt.serialization.Specify;
import std.traits;
import std.range;
import hunt.serialization.BinarySerializer;
import hunt.serialization.BinaryDeserializer;
template PtrType(T) {
static if (is(T == bool) || is(T == char)) {
alias PtrType = ubyte*;
} else static if (is(T == float)) {
alias PtrType = uint*;
} else static if (is(T == double)) {
alias PtrType = ulong*;
} else {
alias PtrType = Unsigned!T*;
}
}
enum NULL = [110, 117, 108, 108];
void specify(C, T)(auto ref C obj, ref T val) if (is(T == wchar)) {
specify(obj, *cast(ushort*)&val);
}
void specify(C, T)(auto ref C obj, ref T val) if (is(T == dchar)) {
specify(obj, *cast(uint*)&val);
}
void specify(C, T)(auto ref C obj, ref T val) if (is(T == ushort)) {
ubyte valh = (val >> 8);
ubyte vall = val & 0xff;
obj.putUbyte(valh);
obj.putUbyte(vall);
val = (valh << 8) + vall;
}
void specify(C, T)(auto ref C obj, ref T val) if (is(T == uint)) {
ubyte val0 = (val >> 24);
ubyte val1 = cast(ubyte)(val >> 16);
ubyte val2 = cast(ubyte)(val >> 8);
ubyte val3 = val & 0xff;
obj.putUbyte(val0);
obj.putUbyte(val1);
obj.putUbyte(val2);
obj.putUbyte(val3);
val = (val0 << 24) + (val1 << 16) + (val2 << 8) + val3;
}
void specify(C, T)(auto ref C obj, ref T val) if (is(T == ulong)) {
T newVal;
for (int i = 0; i < T.sizeof; ++i) {
immutable shiftBy = 64 - (i + 1) * T.sizeof;
ubyte byteVal = (val >> shiftBy) & 0xff;
obj.putUbyte(byteVal);
newVal |= (cast(T) byteVal << shiftBy);
}
val = newVal;
}
void specify(C, T)(auto ref C obj, ref T val) if (isStaticArray!T) {
static if (is(Unqual!(ElementType!T) : ubyte) && T.sizeof == 1) {
obj.putRaw(cast(ubyte[]) val);
} else {
foreach (ref v; val) {
specify(obj, v);
}
}
}
void specify(C, T)(auto ref C obj, ref T val) if (is(T == string)) {
ushort len = cast(ushort) val.length;
specify(obj, len);
static if (is(C == BinarySerializer)) {
obj.putRaw(cast(ubyte[]) val);
} else {
val = cast(string) obj.putRaw(len).idup;
}
}
void specify(U, C, T)(auto ref C obj, ref T val) if(is(T == string)) {
U length = cast(U)val.length;
assert(length == val.length, "overflow");
specify(obj,length);
static if(is(C == BinarySerializer))
obj.putRaw(cast(ubyte[])val);
else
val = cast(string) obj.putRaw(length).idup;
}
void specify(C, T)(auto ref C obj, ref T val) if (isAssociativeArray!T) {
ushort length = cast(ushort) val.length;
specify(obj, length);
const keys = val.keys;
for (ushort i = 0; i < length; ++i) {
KeyType!T k = keys.length ? keys[i] : KeyType!T.init;
auto v = keys.length ? val[k] : ValueType!T.init;
specify(obj, k);
specify(obj, v);
val[k] = v;
}
}
void specify(C, T)(auto ref C obj, ref T val) if (isPointer!T) {
alias ValueType = PointerTarget!T;
specify(obj, *val);
}
//ubyte
void specify(C, T)(auto ref C obj, ref T val) if (is(T == ubyte)) {
obj.putUbyte(val);
}
void specify(C, T)(auto ref C obj, ref T val)
if (!is(T == enum) && (isSigned!T || isBoolean!T || is(T == char) || isFloatingPoint!T)) {
specifyPtr(obj, val);
}
//ENUM
void specify(C, T)(auto ref C obj, ref T val) if (is(T == enum)) {
specify(obj, cast(Unqual!(OriginalType!(T))) val);
}
void specify(C, T)(auto ref C obj, ref T val)
if (is(C == BinarySerializer) && isInputRange!T && !isInfinite!T
&& !is(T == string) && !isStaticArray!T && !isAssociativeArray!T) {
enum hasLength = is(typeof(() { auto l = val.length; }));
ushort length = cast(ushort) val.length;
specify(obj, length);
static if (hasSlicing!(Unqual!T) && is(Unqual!(ElementType!T) : ubyte) && T.sizeof == 1) {
obj.putRaw(cast(ubyte[]) val.array);
} else {
foreach (ref v; val) {
specify(obj, v);
}
}
}
void specify(C, T)(auto ref C obj, ref T val)
if (isAggregateType!T && !isInputRange!T && !isOutputRange!(T, ubyte)) {
loopMembers(obj, val);
}
void specify(C, T)(auto ref C obj, ref T val)
if (isDecerealiser!C && !isOutputRange!(T, ubyte) && isDynamicArray!T && !is(T == string)) {
ushort length;
specify(obj, length);
decerealiseArrayImpl(obj, val, length);
}
void decerealiseArrayImpl(C, T, U)(auto ref C obj, ref T val, U length)
if (is(T == E[], E) && isDecerealiser!C) {
ulong neededBytes(T)(ulong length) {
alias E = ElementType!T;
static if (isScalarType!E)
return length * E.sizeof;
else static if (isInputRange!E)
return neededBytes!E(length);
else
return 0;
}
immutable needed = neededBytes!T(length);
static if (is(Unqual!(ElementType!T) : ubyte) && T.sizeof == 1) {
val = obj.putRaw(length).dup;
} else {
if (val.length != length)
val.length = cast(uint) length;
foreach (ref e; val)
obj.specify(e);
}
}
void specifyPtr(C, T)(auto ref C obj, ref T val) {
auto ptr = cast(PtrType!T)(&val);
specify(obj, *ptr);
}
void loopMembers(C, T)(auto ref C obj, ref T val) if (is(T == struct)) {
loopMembersImpl!T(obj, val);
}
void loopMembers(C, T)(auto ref C obj, ref T val) if (is(T == class)) {
static if (is(C == BinarySerializer)) {
if (val is null) {
obj.putRaw(NULL);
return;
}
//assert(val !is null, "null value cannot be serialised");
}
static if (is(C == BinaryDeserializer)) {
if (obj.isNullObj) {
val = null;
return;
}
}
static if (is(typeof(() { val = new T; }))) {
if (val is null)
val = new T;
} else {
}
obj.putClass(val);
}
void loopMembersImpl(T, C, VT)(auto ref C obj, ref VT val) {
foreach (member; __traits(derivedMembers, T)) {
enum isMemberVariable = is(typeof(() {
__traits(getMember, val, member) = __traits(getMember, val, member).init;
}));
static if (isMemberVariable) {
specifyAggregateMember!member(obj, val);
}
}
}
void specifyAggregateMember(string member, C, T)(auto ref C obj, ref T val) {
import std.meta : staticIndexOf;
enum NoCereal;
enum noCerealIndex = staticIndexOf!(NoCereal, __traits(getAttributes,
__traits(getMember, val, member)));
static if (noCerealIndex == -1) {
specifyMember!member(obj, val);
}
}
void specifyMember(string member, C, T)(auto ref C obj, ref T val) {
specify(obj, __traits(getMember, val, member));
}
void specifyBaseClass(C, T)(auto ref C obj, ref T val) if (is(T == class)) {
foreach (base; BaseTypeTuple!T) {
loopMembersImpl!base(obj, val);
}
}
void specifyClass(C, T)(auto ref C obj, ref T val) if (is(T == class)) {
specifyBaseClass(obj, val);
loopMembersImpl!T(obj, val);
}
void checkDecerealiser(T)() {
//static assert(T.type == CerealType.ReadBytes);
auto dec = T();
ulong bl = dec.bytesLeft;
}
enum isDecerealiser(T) = (is(T == BinaryDeserializer) && is(typeof(checkDecerealiser!T)));
| D |
module test17899;
// Test that the ICE in 13259 does not ICE but produces correct code
auto dg = delegate {};
int setme = 0;
void delegate() bar1 = (){ setme = 1;};
__gshared void delegate() bar2 = (){ setme = 2;};
void main()
{
dg();
assert(setme == 0);
bar1();
assert(setme == 1);
bar2();
assert(setme == 2);
}
| D |
//========================================
//-----------------> OPCJA *KONIEC*
//========================================
INSTANCE DIA_Orik_EXIT(C_INFO)
{
npc = Sld_701_Orik;
nr = 999;
condition = DIA_Orik_EXIT_Condition;
information = DIA_Orik_EXIT_Info;
permanent = TRUE;
description = DIALOG_ENDE;
};
FUNC INT DIA_Orik_EXIT_Condition()
{
return TRUE;
};
FUNC VOID DIA_Orik_EXIT_Info()
{
AI_StopProcessInfos (self);
};
//========================================
//-----------------> HELLO1
//========================================
INSTANCE DIA_Orik_HELLO1 (C_INFO)
{
npc = Sld_701_Orik;
nr = 1;
condition = DIA_Orik_HELLO1_Condition;
information = DIA_Orik_HELLO1_Info;
permanent = FALSE;
description = "Kim jesteś?";
};
FUNC INT DIA_Orik_HELLO1_Condition()
{
return TRUE;
};
FUNC VOID DIA_Orik_HELLO1_Info()
{
AI_Output (other, self ,"DIA_Orik_HELLO1_15_01"); //Kim jesteś?
AI_Output (self, other ,"DIA_Orik_HELLO1_03_02"); //Nazywam się Orik. Jestem Najemnikiem, ale to już pewnie wiesz.
AI_Output (other, self ,"DIA_Orik_HELLO1_15_03"); //Czym się na ogół zajmujesz?
AI_Output (self, other ,"DIA_Orik_HELLO1_03_04"); //Wykonuję specjalne zlecenia na życzenie samego Lee.
};
//========================================
//-----------------> QUEST1
//========================================
INSTANCE DIA_Orik_QUEST1 (C_INFO)
{
npc = Sld_701_Orik;
nr = 2;
condition = DIA_Orik_QUEST1_Condition;
information = DIA_Orik_QUEST1_Info;
permanent = TRUE;
description = "Jak się mają sprawy Obozu?";
};
FUNC INT DIA_Orik_QUEST1_Condition()
{
if (QuestFromOrik == FALSE)
{
return TRUE;
};
};
FUNC VOID DIA_Orik_QUEST1_Info()
{
AI_Output (other, self ,"DIA_Orik_QUEST1_15_01"); //Jak się mają sprawy Obozu?
if (Npc_GetTrueGuild (hero) == GIL_SLD) || (Npc_GetTrueGuild (hero) == GIL_KDW)
{
AI_Output (self, other ,"DIA_Orik_QUEST1_03_02"); //Szkodniki coraz bardziej mnie irytują. Ostatnio w Obozie miała miejsce kradzież.
AI_Output (other, self ,"DIA_Orik_QUEST1_15_03"); //Jaka kradzież?
AI_Output (self, other ,"DIA_Orik_QUEST1_03_04"); //Ukradziono jakieś magiczne duperele Cronosowi. Złodzieje to banda Szkodników.
AI_Output (self, other ,"DIA_Orik_QUEST1_03_05"); //Ostatnio jeden z nich zwrócił moją uwagę. Zachowuje się dziwnie. Nie znam tego gościa. Zawsze wtapia się w tłum.
AI_Output (self, other ,"DIA_Orik_QUEST1_03_06"); //Ale wygląda, jakby miał coś do ukrycia.
AI_Output (other, self ,"DIA_Orik_QUEST1_15_07"); //Coś sugerujesz? Bo niezbyt rozumiem.
AI_Output (self, other ,"DIA_Orik_QUEST1_03_08"); //Myślę, że jeden ze Szkodników oderwał się od bandy i potajemnie wrócił do Obozu.
AI_Output (self, other ,"DIA_Orik_QUEST1_03_09"); //Musimy go złapać. Jakiś czas temu widziałem go po drugiej stronie jeziora. Pewnie coś kombinuje.
AI_Output (self, other ,"DIA_Orik_QUEST1_03_10"); //Chodź za mną. Pomożesz mi w razie potrzeby.
AI_Output (other, self ,"DIA_Orik_QUEST1_15_11"); //Dlaczego nie zajmie się tym Lares? To jego ludzie.
AI_Output (self, other ,"DIA_Orik_QUEST1_03_12"); //Ten dureń dał im za dużo swobody. Teraz wszystko wymknęło się spod kontroli.
AI_Output (self, other ,"DIA_Orik_QUEST1_03_13"); //Sami musimy zająć się tą sprawą. No chodź!
Npc_ExchangeRoutine (self, "wodospad");
Sld_701_Orik.aivar[AIV_PARTYMEMBER] = TRUE;
B_SetPermAttitude (Sld_701_Orik, ATT_FRIENDLY);
Sld_701_Orik.flags = 2;
MIS_StupidMagican = LOG_RUNNING;
Log_CreateTopic (CH2_StupidMagican, LOG_MISSION);
Log_SetTopicStatus (CH2_StupidMagican, LOG_RUNNING);
B_LogEntry (CH2_StupidMagican,"Orik podejrzewa, że jeden ze Szkodników w Obozie należy do bandy złodziei artefaktów. Widział go po drugiej stronie jeziora. Musimy tam iść i dowiedzieć się co knuje bandzior.");
Wld_InsertNpc (ORG_953_OrganisatorMage,"WODOSPAD");
QuestFromOrik = TRUE;
}
else
{
AI_Output (self, other ,"DIA_Orik_QUEST1_03_14"); //Rozmawiam o sprawach obozu WYŁĄCZNIE z Najemnikami. Lepiej zajmij się swoimi sprawami.
};
AI_StopProcessInfos (Sld_701_Orik);
};
//========================================
//-----------------> QUEST1_PLACE
//========================================
INSTANCE DIA_Orik_QUEST1_PLACE (C_INFO)
{
npc = Sld_701_Orik;
nr = 3;
condition = DIA_Orik_QUEST1_PLACE_Condition;
information = DIA_Orik_QUEST1_PLACE_Info;
permanent = FALSE;
Important = TRUE;
};
FUNC INT DIA_Orik_QUEST1_PLACE_Condition()
{
if (Npc_KnowsInfo (hero, DIA_Orik_QUEST1))
&& (Npc_GetDistToWP (self, "WODOSPAD") < 1000)
{
return TRUE;
};
};
FUNC VOID DIA_Orik_QUEST1_PLACE_Info()
{
AI_Output (self, other ,"DIA_Orik_QUEST1_PLACE_03_01"); //Spójrz! Ten sukinsyn próbuje zaczarować wodę z gór.
AI_Output (other, self ,"DIA_Orik_QUEST1_PLACE_15_02"); //Ciekawe w jakim celu. Poobserwujmy go chwilę. Zobaczymy co się stanie.
AI_TurnToNpc(Sld_701_Orik,ORG_953_OrganisatorMage);
AI_Output (self, other ,"DIA_Orik_QUEST1_PLACE_03_03"); //Co on robi?!
AI_TurnToNpc(Sld_701_Orik,hero);
AI_DrawWeapon (self);
AI_Output (other, self ,"DIA_Orik_QUEST1_PLACE_15_04"); //Chyba chce przywołać jakąś istotę.
Wld_InsertItem (Pfx_ResurectionItem,"GOLEM_WODNY");
Wld_InsertNpc (WaterGolem,"GOLEM_WODNY");
AI_Output (self, other ,"DIA_Orik_QUEST1_PLACE_03_05"); //Cholera! Co to jest!
B_killnpc (ORG_953_OrganisatorMage);
AI_StopProcessInfos (self);
};
//========================================
//-----------------> QUEST1_SUCCESS
//========================================
INSTANCE DIA_Orik_QUEST1_SUCCESS (C_INFO)
{
npc = Sld_701_Orik;
nr = 1;
condition = DIA_Orik_QUEST1_SUCCESS_Condition;
information = DIA_Orik_QUEST1_SUCCESS_Info;
permanent = FALSE;
Important = TRUE;
};
FUNC INT DIA_Orik_QUEST1_SUCCESS_Condition()
{
var C_NPC whodie0; whodie0 = Hlp_GetNpc(ORG_953_OrganisatorMage);
if (Npc_KnowsInfo (hero, DIA_Orik_QUEST1_PLACE))
&& (Npc_IsDead(whodie0))
{
return TRUE;
};
};
FUNC VOID DIA_Orik_QUEST1_SUCCESS_Info()
{
AI_Output (self, other ,"DIA_Orik_QUEST1_SUCCESS_03_01"); //Co za kretyn! Dać idiocie magię, to pół Obozu rozwali!
AI_Output (other, self ,"DIA_Orik_QUEST1_SUCCESS_15_02"); //Na szczęście tym razem do tego nie doszło. Wiesz co się tu tak w ogóle stało? Biłem w coś... w sumie nie wiem w co.
AI_Output (self, other ,"DIA_Orik_QUEST1_SUCCESS_03_03"); //Ten głupi magik próbował przywołać jakiegoś potwora. Krążyły niegdyś legendy o duchu z jeziora, ale to co przywołał ducha mi nie przypominało.
AI_Output (other, self ,"DIA_Orik_QUEST1_SUCCESS_15_04"); //Najważniejsze, że pozbyliśmy się tego potwora.
AI_Output (self, other ,"DIA_Orik_QUEST1_SUCCESS_03_05"); //Idź teraz do Cronosa i wypytaj go o kradzież. Musisz pozbyć się reszty tych świrów, bo to się zaczyna robić niebezpieczne.
B_LogEntry (CH2_StupidMagican,"Nieudolny magik przywołał wodnego potwora, którego nie mógł opanować. Podczas przywołania Szkodnik zginął, a my rozprawiliśmy się z przyzwanym przez niego magicznym tworem.");
Log_SetTopicStatus (CH2_StupidMagican, LOG_SUCCESS);
MIS_StupidMagican = LOG_SUCCESS;
B_GiveXP (100);
Npc_ExchangeRoutine (self, "START");
AI_StopProcessInfos (self);
};
//========================================
//-----------------> PORACHUNKI
//========================================
INSTANCE DIA_Orik_PORACHUNKI (C_INFO)
{
npc = Sld_701_Orik;
nr = 1;
condition = DIA_Orik_PORACHUNKI_Condition;
information = DIA_Orik_PORACHUNKI_Info;
permanent = FALSE;
description = "Blizna nie żyje.";
};
FUNC INT DIA_Orik_PORACHUNKI_Condition()
{
if (MIS_ScarMurder == LOG_SUCCESS)
{
return TRUE;
};
};
FUNC VOID DIA_Orik_PORACHUNKI_Info()
{
AI_Output (other, self ,"DIA_Orik_PORACHUNKI_15_01"); //Blizna nie żyje.
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_02"); //A ty skąd o tym wiesz?
AI_Output (other, self ,"DIA_Orik_PORACHUNKI_15_03"); //Bo pomagałem wysyłać go na tamten świat.
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_04"); //Ale czemu przychodzisz z tym do mnie?
AI_Output (other, self ,"DIA_Orik_PORACHUNKI_15_05"); //Kosa mnie przysłał.
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_06"); //To znaczy?
AI_Output (other, self ,"DIA_Orik_PORACHUNKI_15_07"); //To ty zleciłeś zabójstwo Blizny. Chce wiedzieć dlaczego.
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_08"); //Trochę by o tym opowiadał...
AI_Output (other, self ,"DIA_Orik_PORACHUNKI_15_09"); //Nigdzie mi się nie śpieszy. Przynajmniej do czasu kiedy Bariera jest na swoim miejscu.
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_10"); //Gdy część osób opuściła Stary Obóz i utworzyła nową frakcje wśród ludzi, którzy pozostali na swoim miejscu powstał niemały chaos.
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_11"); //Wiele ważnych stanowisk w Obozie zostało opuszczonych i ktoś musiał je zastąpić.
AI_Output (other, self ,"DIA_Orik_PORACHUNKI_15_12"); //Którą ze stron wtedy wybrałeś?
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_13"); //Zdecydowałem się pozostać w Obozie. Po prostu wydawał mi się silniejszy i sprawniej zarządzany.
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_14"); //W dodatku byłem jednym z najlepszych Strażników Gomeza. Aż do momentu, gdy złożył mi pewną propozycję….
AI_Output (other, self ,"DIA_Orik_PORACHUNKI_15_15"); //Jaką?
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_16"); //W tamtym czasie z naprawdę zaufanych ludzi przy boku Gomezowi zostali tylko Kruk i Bartholo.
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_17"); //Gomez postanowił lekko poszerzyć tę grupę, aby lepiej zarządzać Kolonią.
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_18"); //Wiadomo, handel ze Światem Zewnętrznym i Bractwem, obrona konwojów przed Szkodnikami i Bandytami z gór no i zagrożenie ze strony Orków wymagały stałej kontroli.
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_19"); //W tamtym czasie najlepszymi Strażnikami byli Thorus, Arto, ja no i Blizna. To z nich Gomez wybierał dwóch, którzy mieli zostać Magnatami, choć wtedy nie stosowano jeszcze takiego określenia.
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_20"); //Gomez zdecydował się na mnie i Thorusa. Rozwścieczyło to Bliznę, bo liczył, że to on zostanie awansowany, a na dodatek nie znosił mnie.
AI_Output (other, self ,"DIA_Orik_PORACHUNKI_15_21"); //Thorusa?
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_22"); //On wolał jednak zostać formalnym przywódcą Strażników. Bał się przesadnej władzy i jadu jakim zatruwa człowieka.
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_23"); //Zamiast niego wybrano więc Arto. Blizna znowu został pominięty. Tyle, że Arto był jego kumplem, więc pominięty Blizna skupił się na mnie. Postanowił mi zaszkodzić w oczach Gomeza.
AI_Output (other, self ,"DIA_Orik_PORACHUNKI_15_24"); //Cokolwiek zrobił patrząc na to, gdzie dzisiaj znajdujesz się w Kolonii chyba mu się udało...
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_25"); //Daj mi dokończyć. Gdy ja i Arto zostaliśmy awansowani, wydano na naszą część przyjęcie. Byłem bardzo uradowany i wypiłem parę butelek dobrego wina.
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_26"); //Potem poszedłem do swojego pokoju. Wtedy pojawił się Blizna z butelką jakiegoś alkoholu i udawał, że gratuluje mi sukcesu. Byłem pijany i dałem się oszukać.
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_27"); //Wypiłem z nim flaszkę, a potem zasnąłem. Rano obudzili mnie Strażnicy z wyciągniętymi mieczami.
AI_Output (other, self ,"DIA_Orik_PORACHUNKI_15_28"); //Co takiego niby się stało?
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_29"); //Znaleźli przy mnie flakonik z trucizną, razem z moim rzekomym pamiętnikiem, gdzie na jednej ze stron było napisane, że zamierzam otruć Gomeza i spróbować przejąć władzę. Nie muszę mówić, kto mi to podrzucił i kiedy.
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_30"); //Gomez wpadł w szał. Od zawsze ma obsesję podpowiadając mu, że ktoś chce go zabić. Tylko interwencja Kruka ocaliła mnie przed natychmiastowym posiekaniem przez Strażników.
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_31"); //On przeczuwał, że jestem niewinny. W każdym razie trafiłem do lochów. Jednak pewnej nocy ktoś podrzucił mi klucz do celi.
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_32"); //Uciekłem z Zamku i jakoś wymknąłem się przez bramę Obozu. Potem ruszyłem przed siebie i błąkałem się przez wiele dni po Kolonii. Kiedy nie miałem już nic do stracenia poszedłem do Nowego Obozu.
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_33"); //Wszyscy byli początkowo nieufni wobec mnie i mieli prawo, bo dopiero co byłem jednym z najważniejszych ludzi Gomeza. Jednak z czasem moje czyny zapewniły mi szacunek.
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_34"); //Stałem się jednym z najważniejszych Najemników, a Lee uczynił mnie swoim osobistym doradcą.
AI_Output (other, self ,"DIA_Orik_PORACHUNKI_15_35"); //A co z Blizną?
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_36"); //Osiągnął swój cel. Zajął moje miejsce.
AI_Output (other, self ,"DIA_Orik_PORACHUNKI_15_37"); //Nie rozumiem, dlaczego ja miałem się mścić za ciebie?
AI_Output (self, other ,"DIA_Orik_PORACHUNKI_03_38"); //Kolonię dość szybko obiegły wieści o twoich czynach. To nie byle jakie zasługi. Sam nie mogłem się pokazać w Obozie. Nadawałeś się do tego zadania.
B_GiveXP (200);
};
| D |
/**
* Authors: The D DBI project
*
* Version: 0.2.5
*
* Copyright: BSD license
*/
module dbi.DBIException;
private import dinrus: ва_арг;
private import dbi.ErrorCode;
/**
* This is the exception class used within all of D DBI.
*
* Some functions may also throw different types of exceptions when they access the
* standard library, so be sure to also catch Exception in your code.
*/
class ИсклДБИ : Искл {
/**
* Create a new ИсклДБИ.
*
* Params:
* сооб = The message to report to the users.
*
* Thряды:
* ИсклДБИ on invalid arguments.
*/
this (ткст сооб, дол номОш = 0, КодОшибки кодОш = КодОшибки.ОшибкиНет, ткст эскюэл = пусто) {
super("ИсклДБИ: " ~ сооб);
кодДби = кодОш;
this.эскюэл = эскюэл;
this.спецКод = номОш;
}
/**
* Create a new ИсклДБИ.
*
* Params:
* сооб = The message to report to the users.
*
* Thряды:
* ИсклДБИ on invalid arguments.
*/
this (ткст сооб, ...) {
super("ИсключениеДБИ: " ~ сооб);
for (т_мера i = 0; i < _arguments.length; i++) {
if (_arguments[i] == typeid(ткст)) {
эскюэл = ва_арг!(ткст)(_argptr);
} else if (_arguments[i] == typeid(байт)) {
спецКод = ва_арг!(байт)(_argptr);
} else if (_arguments[i] == typeid(ббайт)) {
спецКод = ва_арг!(ббайт)(_argptr);
} else if (_arguments[i] == typeid(крат)) {
спецКод = ва_арг!(крат)(_argptr);
} else if (_arguments[i] == typeid(бкрат)) {
спецКод = ва_арг!(бкрат)(_argptr);
} else if (_arguments[i] == typeid(цел)) {
спецКод = ва_арг!(цел)(_argptr);
} else if (_arguments[i] == typeid(бцел)) {
спецКод = ва_арг!(бцел)(_argptr);
} else if (_arguments[i] == typeid(дол)) {
спецКод = ва_арг!(дол)(_argptr);
} else if (_arguments[i] == typeid(бдол)) {
спецКод = cast(дол)ва_арг!(бдол)(_argptr);
} else if (_arguments[i] == typeid(КодОшибки)) {
кодДби = ва_арг!(КодОшибки)(_argptr);
} else {
throw new Искл("Конструктору ИсклДБИ передан неверный аргумент типа \"" ~ _arguments[i].вТкст() ~ "\".");
}
}
}
/**
* Create a new ИсклДБИ.
*/
this () {
super("Неизвестная Ошибка.");
}
/**
* Get the бд's DBI ошибка code.
*
* Returns:
* БазаДанных's DBI ошибка code.
*/
КодОшибки дайКодОшибки () {
return кодДби;
}
/**
* Get the бд's numeric ошибка code.
*
* Returns:
* БазаДанных's numeric ошибка code.
*/
дол дайСпецКод () {
return спецКод;
}
/**
* Get the SQL statement that caused the ошибка.
*
* Returns:
* SQL statement that caused the ошибка.
*/
ткст дайЭсКюЭл () {
return эскюэл;
}
private:
ткст эскюэл;
дол спецКод = 0;
КодОшибки кодДби = КодОшибки.Неизвестен;
} | D |
/Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/PostgreSQL.build/SQL/PostgreSQLFunction.swift.o : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+0.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+UUID.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/ChannelPipeline+PostgreSQL.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+Data.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+BackendKeyData.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLGeneric.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLBind.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Column/PostgreSQLDataTypeCode.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+FormatCode.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+PasswordMessage.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+StartupMessage.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection+TableNameCache.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLTable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLAlterTable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLDataTypeStaticRepresentable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLDataConvertible.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLQuery+DataType.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Database/PostgreSQLDatabase.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+NotificationResponse.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+ErrorResponse.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+SSLSupportResponse.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+Close.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+Date.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection+Authenticate.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Database/PostgreSQLDatabaseConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection+TransportConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+String.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLBoolLiteral.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+Bool.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection+NotifyAndListen.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Column/PostgreSQLColumn.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+Polygon.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLCollation.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLFunction.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+ParameterDescription.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+RowDescription.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Utilities/PostgreSQLProvider.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Codable/PostgreSQLDataDecoder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Pipeline/PostgreSQLMessageDecoder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Codable/PostgreSQLRowDecoder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Pipeline/PostgreSQLMessageEncoder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Codable/PostgreSQLValueEncoder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+FixedWidthInteger.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Database/PostgreSQLLogger.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Utilities/PostgreSQLError.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLBinaryOperator.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Utilities/Utilities.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection+ServerAddress.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Utilities/Exports.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+ParameterStatus.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLResultFormat.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection+Connect.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLDefault.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+Point.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+BinaryFloatingPoint.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLInsert.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLUpsert.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+BindRequest.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+DescribeRequest.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+ParseRequest.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+ExecuteRequest.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+AuthenticationRequest.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+SSLSupportRequest.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+DataRow.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLDropIndex.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLPrimaryKey.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+Query.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection+Query.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLQuery.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection+SimpleQuery.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+ReadyForQuery.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/SQL.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/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/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /usr/local/Cellar/libressl/2.9.2/include/openssl/asn1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/tls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/md5.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509.h /usr/local/Cellar/libressl/2.9.2/include/openssl/sha.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/hmac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ec.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rand.h /usr/local/Cellar/libressl/2.9.2/include/openssl/conf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/lhash.h /usr/local/Cellar/libressl/2.9.2/include/openssl/stack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/safestack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bn.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bio.h /usr/local/Cellar/libressl/2.9.2/include/openssl/crypto.h /usr/local/Cellar/libressl/2.9.2/include/openssl/srtp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/evp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.9.2/include/openssl/buffer.h /usr/local/Cellar/libressl/2.9.2/include/openssl/err.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.9.2/include/openssl/objects.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslv.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509_vfy.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-ssl-support/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/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.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/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/PostgreSQL.build/SQL/PostgreSQLFunction~partial.swiftmodule : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+0.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+UUID.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/ChannelPipeline+PostgreSQL.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+Data.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+BackendKeyData.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLGeneric.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLBind.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Column/PostgreSQLDataTypeCode.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+FormatCode.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+PasswordMessage.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+StartupMessage.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection+TableNameCache.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLTable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLAlterTable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLDataTypeStaticRepresentable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLDataConvertible.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLQuery+DataType.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Database/PostgreSQLDatabase.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+NotificationResponse.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+ErrorResponse.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+SSLSupportResponse.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+Close.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+Date.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection+Authenticate.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Database/PostgreSQLDatabaseConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection+TransportConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+String.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLBoolLiteral.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+Bool.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection+NotifyAndListen.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Column/PostgreSQLColumn.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+Polygon.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLCollation.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLFunction.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+ParameterDescription.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+RowDescription.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Utilities/PostgreSQLProvider.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Codable/PostgreSQLDataDecoder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Pipeline/PostgreSQLMessageDecoder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Codable/PostgreSQLRowDecoder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Pipeline/PostgreSQLMessageEncoder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Codable/PostgreSQLValueEncoder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+FixedWidthInteger.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Database/PostgreSQLLogger.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Utilities/PostgreSQLError.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLBinaryOperator.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Utilities/Utilities.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection+ServerAddress.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Utilities/Exports.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+ParameterStatus.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLResultFormat.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection+Connect.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLDefault.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+Point.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+BinaryFloatingPoint.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLInsert.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLUpsert.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+BindRequest.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+DescribeRequest.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+ParseRequest.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+ExecuteRequest.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+AuthenticationRequest.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+SSLSupportRequest.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+DataRow.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLDropIndex.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLPrimaryKey.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+Query.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection+Query.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLQuery.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection+SimpleQuery.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+ReadyForQuery.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/SQL.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/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/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /usr/local/Cellar/libressl/2.9.2/include/openssl/asn1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/tls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/md5.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509.h /usr/local/Cellar/libressl/2.9.2/include/openssl/sha.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/hmac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ec.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rand.h /usr/local/Cellar/libressl/2.9.2/include/openssl/conf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/lhash.h /usr/local/Cellar/libressl/2.9.2/include/openssl/stack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/safestack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bn.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bio.h /usr/local/Cellar/libressl/2.9.2/include/openssl/crypto.h /usr/local/Cellar/libressl/2.9.2/include/openssl/srtp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/evp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.9.2/include/openssl/buffer.h /usr/local/Cellar/libressl/2.9.2/include/openssl/err.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.9.2/include/openssl/objects.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslv.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509_vfy.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-ssl-support/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/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.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/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/PostgreSQL.build/SQL/PostgreSQLFunction~partial.swiftdoc : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+0.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+UUID.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/ChannelPipeline+PostgreSQL.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+Data.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+BackendKeyData.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLGeneric.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLBind.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Column/PostgreSQLDataTypeCode.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+FormatCode.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+PasswordMessage.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+StartupMessage.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection+TableNameCache.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLTable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLAlterTable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLDataTypeStaticRepresentable.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLDataConvertible.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLQuery+DataType.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Database/PostgreSQLDatabase.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+NotificationResponse.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+ErrorResponse.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+SSLSupportResponse.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+Close.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+Date.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection+Authenticate.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Database/PostgreSQLDatabaseConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection+TransportConfig.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+String.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLBoolLiteral.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+Bool.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection+NotifyAndListen.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Column/PostgreSQLColumn.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+Polygon.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLCollation.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLFunction.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+ParameterDescription.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+RowDescription.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Utilities/PostgreSQLProvider.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Codable/PostgreSQLDataDecoder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Pipeline/PostgreSQLMessageDecoder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Codable/PostgreSQLRowDecoder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Pipeline/PostgreSQLMessageEncoder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Codable/PostgreSQLValueEncoder.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+FixedWidthInteger.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Database/PostgreSQLLogger.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Utilities/PostgreSQLError.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLBinaryOperator.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Utilities/Utilities.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection+ServerAddress.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Utilities/Exports.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+ParameterStatus.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLResultFormat.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection+Connect.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLDefault.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+Point.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Data/PostgreSQLData+BinaryFloatingPoint.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLInsert.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLUpsert.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+BindRequest.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+DescribeRequest.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+ParseRequest.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+ExecuteRequest.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+AuthenticationRequest.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+SSLSupportRequest.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+DataRow.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLDropIndex.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLPrimaryKey.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+Query.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection+Query.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/SQL/PostgreSQLQuery.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Connection/PostgreSQLConnection+SimpleQuery.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/postgresql/Sources/PostgreSQL/Message/PostgreSQLMessage+ReadyForQuery.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/SQL.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOOpenSSL.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOTLS.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Crypto.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/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/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /usr/local/Cellar/libressl/2.9.2/include/openssl/asn1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/tls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem2.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.9.2/include/openssl/md5.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509.h /usr/local/Cellar/libressl/2.9.2/include/openssl/sha.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rsa.h /usr/local/Cellar/libressl/2.9.2/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/hmac.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ec.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /usr/local/Cellar/libressl/2.9.2/include/openssl/rand.h /usr/local/Cellar/libressl/2.9.2/include/openssl/conf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.9.2/include/openssl/dh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.9.2/include/openssl/lhash.h /usr/local/Cellar/libressl/2.9.2/include/openssl/stack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/safestack.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ssl.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-ssl/Sources/CNIOOpenSSL/include/c_nio_openssl.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CCryptoOpenSSL/include/c_crypto_openssl.h /usr/local/Cellar/libressl/2.9.2/include/openssl/pem.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bn.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /usr/local/Cellar/libressl/2.9.2/include/openssl/bio.h /usr/local/Cellar/libressl/2.9.2/include/openssl/crypto.h /usr/local/Cellar/libressl/2.9.2/include/openssl/srtp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/evp.h /usr/local/Cellar/libressl/2.9.2/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.9.2/include/openssl/buffer.h /usr/local/Cellar/libressl/2.9.2/include/openssl/err.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.9.2/include/openssl/objects.h /usr/local/Cellar/libressl/2.9.2/include/openssl/opensslv.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /usr/local/Cellar/libressl/2.9.2/include/openssl/x509_vfy.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CBase32/include/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/crypto/Sources/CBcrypt/include/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-zlib-support/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-ssl-support/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/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.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 |
/**
* Windows API header module
*
* Translated from MinGW Windows headers
*
* Authors: Stewart Gordon
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(DRUNTIMESRC core/sys/windows/_pbt.d)
*/
module core.sys.windows.pbt;
version (Windows):
import core.sys.windows.windef;
enum : WPARAM {
PBT_APMQUERYSUSPEND,
PBT_APMQUERYSTANDBY,
PBT_APMQUERYSUSPENDFAILED,
PBT_APMQUERYSTANDBYFAILED,
PBT_APMSUSPEND,
PBT_APMSTANDBY,
PBT_APMRESUMECRITICAL,
PBT_APMRESUMESUSPEND,
PBT_APMRESUMESTANDBY,
PBT_APMBATTERYLOW,
PBT_APMPOWERSTATUSCHANGE,
PBT_APMOEMEVENT // = 11
}
enum LPARAM PBTF_APMRESUMEFROMFAILURE = 1;
| D |
module ddparser.dparse;
import ddparser.dparse_tables;
import ddparser.symtab;
import ddparser.parse;
alias d_voidp = void *;
alias D_ParseNode_User = d_voidp;
alias D_ParseNode_Globals = void;
alias D_SyntaxErrorFn = void function(D_Parser *);
alias D_AmbiguityFn = D_ParseNode * function(D_Parser *,
int n, D_ParseNode **v);
alias D_FreeNodeFn = void function(D_ParseNode *d);
struct D_ParseNode {
int symbol;
d_loc_t start_loc;
const(char) *end;
const(char) *end_skip;
D_Scope *scope_;
D_WhiteSpaceFn white_space;
D_ParseNode_Globals *globals;
D_ParseNode_User user;
@property string matchedString() const
{
assert(end, "End is null");
return start_loc.s[0 .. end - start_loc.s].idup;
}
}
| D |
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric, std.container, std.range;
enum P = 998244353L;
void main()
{
auto nk = readln.split.to!(int[]);
auto N = nk[0];
auto K = nk[1];
int[] LS, RS;
foreach (_; 0..K) {
auto lr = readln.split.to!(int[]);
LS ~= lr[0];
RS ~= lr[1];
}
auto DP = new long[](N+1);
DP[1] = 1;
DP[2] = P - 1;
foreach (i; 1..N+1) {
(DP[i] += DP[i-1]) %= P;
foreach (j; 0..K) {
auto l = LS[j];
auto r = RS[j]+1;
if (i+l <= N) (DP[i+l] += DP[i]) %= P;
if (i+r <= N) (DP[i+r] += P - DP[i]) %= P;
}
}
writeln(DP[N]);
} | D |
/**
* term: In-house console/terminal library
*/
module os.term;
import ddc : putchar, getchar, fputs, stdout;
nothrow:
private import core.stdc.stdio : printf;
private alias sys = core.stdc.stdlib.system;
version (Windows) {
private import core.sys.windows.windows;
private enum ALT_PRESSED = RIGHT_ALT_PRESSED | LEFT_ALT_PRESSED;
private enum CTRL_PRESSED = RIGHT_CTRL_PRESSED | LEFT_CTRL_PRESSED;
private enum DEFAULT_COLOR =
FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED;
private enum DISABLE_NEWLINE_AUTO_RETURN = 0x0008;
/// Necessary handles.
//TODO: Get external handles from C runtimes instead if possible (depending on version)
__gshared HANDLE hIn = void, hOut = void;
private __gshared USHORT defaultColor = DEFAULT_COLOR;
}
version (Posix) {
private import core.sys.posix.sys.ioctl;
private import core.sys.posix.unistd;
private import core.sys.posix.termios;
private enum TERM_ATTR = ~ICANON & ~ECHO;
private __gshared termios old_tio = void, new_tio = void;
}
/*******************************************************************
* Initiation
*******************************************************************/
/// Initiate os.term
extern (C)
void con_init() {
version (Windows) {
hOut = GetStdHandle(STD_OUTPUT_HANDLE);
hIn = GetStdHandle(STD_INPUT_HANDLE);
SetPos(0, 0);
}
version (Posix) {
tcgetattr(STDIN_FILENO, &old_tio);
new_tio = old_tio;
new_tio.c_lflag &= TERM_ATTR;
//TODO: See flags we can put
// tty_ioctl TIOCSETD
}
}
/*******************************************************************
* Colors
*******************************************************************/
extern (C)
void InvertColor() {
version (Windows)
SetConsoleTextAttribute(hOut, COMMON_LVB_REVERSE_VIDEO | defaultColor);
version (Posix)
printf("\033[7m");
}
extern (C)
void ResetColor() {
version (Windows)
SetConsoleTextAttribute(hOut, defaultColor);
version (Posix)
printf("\033[0m");
}
/*******************************************************************
* Clear
*******************************************************************/
/// Clear screen
extern (C)
void Clear() {
version (Windows) {
CONSOLE_SCREEN_BUFFER_INFO csbi = void;
COORD c; // 0, 0
GetConsoleScreenBufferInfo(hOut, &csbi);
//const int size = csbi.dwSize.X * csbi.dwSize.Y; buffer size
const int size = // window size
(csbi.srWindow.Right - csbi.srWindow.Left + 1) * // width
(csbi.srWindow.Bottom - csbi.srWindow.Top + 1); // height
DWORD num = void; // kind of ala .NET
FillConsoleOutputCharacterA(hOut, ' ', size, c, &num);
FillConsoleOutputAttribute(hOut, csbi.wAttributes, size, c, &num);
SetPos(0, 0);
} else version (Posix) {
WindowSize ws = void;
GetWinSize(&ws);
const int size = ws.Height * ws.Width;
//TODO: write 'default' attribute character
printf("\033[0;0H%*s\033[0;0H", size, cast(char*)"");
}
else static assert(0, "Clear: Not implemented");
}
/*******************************************************************
* Window dimensions
*******************************************************************/
// Note: A COORD uses SHORT (short) and Linux uses unsigned shorts.
/**
* Get current window size
* Params: ws = Pointer to a WindowSize structure
*/
extern (C)
void GetWinSize(WindowSize *ws) {
version (Windows) {
CONSOLE_SCREEN_BUFFER_INFO c = void;
GetConsoleScreenBufferInfo(hOut, &c);
ws.Width = cast(ushort)(c.srWindow.Right - c.srWindow.Left + 1);
ws.Height = cast(ushort)(c.srWindow.Bottom - c.srWindow.Top + 1);
}
version (Posix) {
winsize w = void;
ioctl(STDOUT_FILENO, TIOCGWINSZ, &w);
ws.Width = w.ws_col;
ws.Height = w.ws_row;
}
}
/*******************************************************************
* Cursor management
*******************************************************************/
/**
* Set cursor position x and y position respectively from the top left corner,
* 0-based.
* Params:
* x = X position (horizontal)
* y = Y position (vertical)
*/
extern (C)
void SetPos(int x, int y) {
version (Windows) { // 0-based
COORD c = { cast(SHORT)x, cast(SHORT)y };
SetConsoleCursorPosition(hOut, c);
} else version (Posix) { // 1-based
printf("\033[%d;%dH", y + 1, x + 1);
}
}
extern (C)
void ResetPos() {
version (Windows) { // 0-based
COORD c = { 0, 0 };
SetConsoleCursorPosition(hOut, c);
} else version (Posix) { // 1-based
fputs("\033[0;0H", stdout);
}
}
/*@property ushort CursorLeft()
{
version (Windows)
{
return 0;
}
else version (Posix)
{
return 0;
}
}
@property ushort CursorTop()
{
version (Windows)
{
return 0;
}
else version (Posix)
{
return 0;
}
}*/
/*******************************************************************
* Input
*******************************************************************/
/**
* Read a single character.
* Returns: A KeyInfo structure.
*/
extern (C)
KeyInfo ReadKey() {
KeyInfo k;
version (Windows) { // Sort of is like .NET's ReadKey
INPUT_RECORD ir = void;
DWORD num = void;
if (ReadConsoleInput(hIn, &ir, 1, &num)) {
if (ir.KeyEvent.bKeyDown && ir.EventType == KEY_EVENT) {
const DWORD state = ir.KeyEvent.dwControlKeyState;
k.alt = (state & ALT_PRESSED) != 0;
k.ctrl = (state & CTRL_PRESSED) != 0;
k.shift = (state & SHIFT_PRESSED) != 0;
k.keyChar = ir.KeyEvent.AsciiChar;
k.keyCode = ir.KeyEvent.wVirtualKeyCode;
k.scanCode = ir.KeyEvent.wVirtualScanCode;
}
}
} else version (Posix) {
//TODO: Get modifier keys states
// or better yet
//TODO: See console_ioctl for KDGETKEYCODE
// https://linux.die.net/man/4/console_ioctl
tcsetattr(STDIN_FILENO,TCSANOW, &new_tio);
uint c = getchar;
with (k) switch (c) {
case '\n': // \n (ENTER)
keyCode = Key.Enter;
goto _READKEY_END;
case 27: // ESC
switch (c = getchar) {
case '[':
switch (c = getchar) {
case 'A': keyCode = Key.UpArrow; goto _READKEY_END;
case 'B': keyCode = Key.DownArrow; goto _READKEY_END;
case 'C': keyCode = Key.RightArrow; goto _READKEY_END;
case 'D': keyCode = Key.LeftArrow; goto _READKEY_END;
case 'F': keyCode = Key.End; goto _READKEY_END;
case 'H': keyCode = Key.Home; goto _READKEY_END;
// There is an additional getchar due to the pending '~'
case '2': keyCode = Key.Insert; getchar; goto _READKEY_END;
case '3': keyCode = Key.Delete; getchar; goto _READKEY_END;
case '5': keyCode = Key.PageUp; getchar; goto _READKEY_END;
case '6': keyCode = Key.PageDown; getchar; goto _READKEY_END;
default: goto _READKEY_DEFAULT;
} // [
default: goto _READKEY_DEFAULT;
} // ESC
case 0x08, 0x7F: // backspace
keyCode = Key.Backspace;
goto _READKEY_END;
case 23: // #
keyCode = Key.NoName;
keyChar = '#';
goto _READKEY_END;
default:
if (c >= 'a' && c <= 'z') {
keyCode = cast(Key)(c - 32);
keyChar = cast(char)c;
goto _READKEY_END;
}
if (c >= 20 && c <= 126) {
keyCode = cast(Key)c;
keyChar = cast(char)c;
goto _READKEY_END;
}
}
_READKEY_DEFAULT:
k.keyCode = cast(ushort)c;
_READKEY_END:
tcsetattr(STDIN_FILENO,TCSANOW, &old_tio);
} // version Posix
return k;
}
/*
RawEvent ReadGlobal()
{
version (Windows)
{
RawEvent r;
INPUT_RECORD ir;
DWORD num = 0;
if (ReadConsoleInput(hIn, &ir, 1, &num))
{
r.Type = cast(EventType)ir.EventType;
if (ir.KeyEvent.bKeyDown)
{
DWORD state = ir.KeyEvent.dwControlKeyState;
r.Key.alt = (state & ALT_PRESSED) != 0;
r.Key.ctrl = (state & CTRL_PRESSED) != 0;
r.Key.shift = (state & SHIFT_PRESSED) != 0;
r.Key.keyChar = ir.KeyEvent.AsciiChar;
r.Key.keyCode = ir.KeyEvent.wVirtualKeyCode;
r.Key.scanCode = ir.KeyEvent.wVirtualScanCode;
}
r.Mouse.Location.X = cast(ushort)ir.MouseEvent.dwMousePosition.X;
r.Mouse.Location.Y = cast(ushort)ir.MouseEvent.dwMousePosition.Y;
r.Mouse.Buttons = cast(ushort)ir.MouseEvent.dwButtonState;
r.Mouse.State = cast(ushort)ir.MouseEvent.dwControlKeyState;
r.Mouse.Type = cast(ushort)ir.MouseEvent.dwEventFlags;
r.Size.Width = ir.WindowBufferSizeEvent.dwSize.X;
r.Size.Height = ir.WindowBufferSizeEvent.dwSize.Y;
}
return r;
}
else version (Posix)
{ //TODO: RawEvent (Posix)
RawEvent r;
return r;
}
}
*/
/*******************************************************************
* Handlers
*******************************************************************/
/*void SetCtrlHandler(void function() f)
{ //TODO: Ctrl handler
}*/
/*******************************************************************
* Emunerations
*******************************************************************/
/*
enum EventType : ushort {
Key = 1, Mouse = 2, Resize = 4
}
enum MouseButton : ushort { // Windows compilant
Left = 1, Right = 2, Middle = 4, Mouse4 = 8, Mouse5 = 16
}
enum MouseState : ushort { // Windows compilant
RightAlt = 1, LeftAlt = 2, RightCtrl = 4,
LeftCtrl = 8, Shift = 0x10, NumLock = 0x20,
ScrollLock = 0x40, CapsLock = 0x80, EnhancedKey = 0x100
}
enum MouseEventType { // Windows compilant
Moved = 1, DoubleClick = 2, Wheel = 4, HorizontalWheel = 8
}
*/
/// Key codes mapping.
enum Key : ubyte {
Backspace = 8,
Tab = 9,
Clear = 12,
Enter = 13,
Pause = 19,
Escape = 27,
Spacebar = 32,
PageUp = 33,
PageDown = 34,
End = 35,
Home = 36,
LeftArrow = 37,
UpArrow = 38,
RightArrow = 39,
DownArrow = 40,
Select = 41,
Print = 42,
Execute = 43,
PrintScreen = 44,
Insert = 45,
Delete = 46,
Help = 47,
D0 = 48,
D1 = 49,
D2 = 50,
D3 = 51,
D4 = 52,
D5 = 53,
D6 = 54,
D7 = 55,
D8 = 56,
D9 = 57,
A = 65,
B = 66,
C = 67,
D = 68,
E = 69,
F = 70,
G = 71,
H = 72,
I = 73,
J = 74,
K = 75,
L = 76,
M = 77,
N = 78,
O = 79,
P = 80,
Q = 81,
R = 82,
S = 83,
T = 84,
U = 85,
V = 86,
W = 87,
X = 88,
Y = 89,
Z = 90,
LeftMeta = 91,
RightMeta = 92,
Applications = 93,
Sleep = 95,
NumPad0 = 96,
NumPad1 = 97,
NumPad2 = 98,
NumPad3 = 99,
NumPad4 = 100,
NumPad5 = 101,
NumPad6 = 102,
NumPad7 = 103,
NumPad8 = 104,
NumPad9 = 105,
Multiply = 106,
Add = 107,
Separator = 108,
Subtract = 109,
Decimal = 110,
Divide = 111,
F1 = 112,
F2 = 113,
F3 = 114,
F4 = 115,
F5 = 116,
F6 = 117,
F7 = 118,
F8 = 119,
F9 = 120,
F10 = 121,
F11 = 122,
F12 = 123,
F13 = 124,
F14 = 125,
F15 = 126,
F16 = 127,
F17 = 128,
F18 = 129,
F19 = 130,
F20 = 131,
F21 = 132,
F22 = 133,
F23 = 134,
F24 = 135,
BrowserBack = 166,
BrowserForward = 167,
BrowserRefresh = 168,
BrowserStop = 169,
BrowserSearch = 170,
BrowserFavorites = 171,
BrowserHome = 172,
VolumeMute = 173,
VolumeDown = 174,
VolumeUp = 175,
MediaNext = 176,
MediaPrevious = 177,
MediaStop = 178,
MediaPlay = 179,
LaunchMail = 180,
LaunchMediaSelect = 181,
LaunchApp1 = 182,
LaunchApp2 = 183,
Oem1 = 186,
OemPlus = 187,
OemComma = 188,
OemMinus = 189,
OemPeriod = 190,
Oem2 = 191,
Oem3 = 192,
Oem4 = 219,
Oem5 = 220,
Oem6 = 221,
Oem7 = 222,
Oem8 = 223,
Oem102 = 226,
Process = 229,
Packet = 231,
Attention = 246,
CrSel = 247,
ExSel = 248,
EraseEndOfFile = 249,
Play = 250,
Zoom = 251,
NoName = 252,
Pa1 = 253,
OemClear = 254
}
/*******************************************************************
* Structs
*******************************************************************/
/*
struct GlobalEvent {
EventType Type;
KeyInfo Key;
MouseInfo Mouse;
WindowSize Size;
}
*/
/// Key information structure
struct KeyInfo {
char keyChar; /// UTF-8 Character.
ushort keyCode; /// Key code.
ushort scanCode; /// Scan code.
ubyte ctrl; /// If either CTRL was held down.
ubyte alt; /// If either ALT was held down.
ubyte shift; /// If SHIFT was held down.
}
/*
struct MouseInfo {
struct ScreenLocation { ushort X, Y; }
ScreenLocation Location;
ushort Buttons;
ushort State;
ushort Type;
}
*/
struct WindowSize {
ushort Width, Height;
} | D |
/* REQUIRED_ARGS: -preview=bitfields
*/
/***************************************************/
class C
{
uint a:3;
uint b:1;
ulong c:64;
int d:3;
int e:1;
long f:64;
int i;
}
static assert(C.a.min == 0);
static assert(C.a.max == 7);
static assert(C.b.min == 0);
static assert(C.b.max == 1);
static assert(C.c.min == 0);
static assert(C.c.max == ulong.max);
static assert(C.d.min == -4);
static assert(C.d.max == 3);
static assert(C.e.min == -1);
static assert(C.e.max == 0);
static assert(C.f.min == long.min);
static assert(C.f.max == long.max);
int testc()
{
scope c = new C();
c.d = 9;
return c.d;
}
static assert(testc() == 1);
/***************************************************/
union U
{
uint a:3;
uint b:1;
ulong c:64;
int d:3;
int e:1;
long f:64;
int i;
}
static assert(U.sizeof == 8);
static assert(U.a.min == 0);
static assert(U.a.max == 7);
static assert(U.b.min == 0);
static assert(U.b.max == 1);
static assert(U.c.min == 0);
static assert(U.c.max == ulong.max);
static assert(U.d.min == -4);
static assert(U.d.max == 3);
static assert(U.e.min == -1);
static assert(U.e.max == 0);
static assert(U.f.min == long.min);
static assert(U.f.max == long.max);
int testu()
{
U u;
u.d = 9;
return u.d;
}
static assert(testu() == 1);
| D |
module sdl.semaphore;
import derelict.sdl.sdl;
import sdl.state;
final class Semaphore
{
private
{
SDL_sem * m_handle;
}
public
{
this(Uint32 initial_value)
{
m_handle = SDL_CreateSemaphore(initial_value);
assert(m_handle !is null);
}
~this()
{
SDL_DestroySemaphore(m_handle);
}
void lock()
{
int r = SDL_SemWait(m_handle);
assert(r == 0);
}
void unlock()
{
int r = SDL_SemPost(m_handle);
assert(r == 0);
}
Uint32 value()
{
return SDL_SemValue(m_handle);
}
}
}
| D |
/**
*
*/
module hunt.wechat.bean.shakearound.device.group.getlist.DeviceGroupGetList;
/**
* 微信摇一摇周边-查询分组列表-请求参数
*
*
*/
class DeviceGroupGetList {
/**
* 分组列表的起始索引值
* 必填
*/
private Integer begin;
/**
* 待查询的分组数量,不能超过1000个
* 必填
*/
private Integer count;
/**
* @return 分组列表的起始索引值
*/
public Integer getBegin() {
return begin;
}
/**
* 分组列表的起始索引值
* 必填
* @param begin 分组列表的起始索引值
*/
public void setBegin(Integer begin) {
this.begin = begin;
}
/**
* @return 待查询的分组数量
*/
public Integer getCount() {
return count;
}
/**
* 待查询的分组数量,不能超过1000个
* 必填
* @param count 待查询的分组数量
*/
public void setCount(Integer count) {
this.count = count;
}
}
| D |
a dreamy romantic or sentimental quality
| D |
/home/tardigrade/filecoin/filecoin_loans_test/filecoin-signing-tools/target/debug/build/unicase-2137c1c63720b857/build_script_build-2137c1c63720b857: /home/tardigrade/.cargo/registry/src/github.com-1ecc6299db9ec823/unicase-2.6.0/build.rs
/home/tardigrade/filecoin/filecoin_loans_test/filecoin-signing-tools/target/debug/build/unicase-2137c1c63720b857/build_script_build-2137c1c63720b857.d: /home/tardigrade/.cargo/registry/src/github.com-1ecc6299db9ec823/unicase-2.6.0/build.rs
/home/tardigrade/.cargo/registry/src/github.com-1ecc6299db9ec823/unicase-2.6.0/build.rs:
| D |
/**
The most important data type in Godot.
Copyright:
Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur.
Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md)
Copyright (c) 2017-2018 Godot-D contributors
License: $(LINK2 https://opensource.org/licenses/MIT, MIT License)
*/
module godot.core.variant;
import godot.c;
import godot.core;
import godot.object;
import godot.d.meta;
import godot.d.reference;
import std.meta, std.traits;
import std.conv : text;
import std.range;
// ABI type should probably have its own `version`...
version(X86_64)
{
version(linux) version = GodotSystemV;
version(OSX) version = GodotSystemV;
version(Posix) version = GodotSystemV;
}
/**
A Variant takes up only 20 bytes and can store almost any engine datatype inside of it. Variants are rarely used to hold information for long periods of time, instead they are used mainly for communication, editing, serialization and moving data around.
*/
struct Variant
{
@nogc nothrow:
package(godot) godot_variant _godot_variant;
///
enum Type
{
nil,
// atomic types
bool_,
int_,
real_,
string,
// math types
vector2,// 5
rect2,
vector3,
transform2d,
plane,
quat,// 10
rect3,
basis,
transform,
// misc types
color,
node_path,// 15
rid,
object,
dictionary,
array,
// arrays
pool_byte_array,// 20
pool_int_array,
pool_real_array,
pool_string_array,
pool_vector2_array,
pool_vector3_array,// 25
pool_color_array,
}
/// GDNative type that gets passed to the C functions
alias InternalType = AliasSeq!
(
typeof(null),
godot_bool,
long,
double,
godot_string,
godot_vector2,
godot_rect2,
godot_vector3,
godot_transform2d,
godot_plane,
godot_quat,
godot_aabb,
godot_basis,
godot_transform,
godot_color,
godot_node_path,
godot_rid,
godot_object,
godot_dictionary,
godot_array,
godot_pool_byte_array,
godot_pool_int_array,
godot_pool_real_array,
godot_pool_string_array,
godot_pool_vector2_array,
godot_pool_vector3_array,
godot_pool_color_array,
);
/// D type that this Variant implementation uses
alias DType = AliasSeq!
(
typeof(null),
bool,
long,
double,
String,
Vector2,// 5
Rect2,
Vector3,
Transform2D,
Plane,
Quat,// 10
AABB,
Basis,
Transform,
// misc types
Color,
NodePath,// 15
RID,
GodotObject,
Dictionary,
Array,
// arrays
PoolByteArray,// 20
PoolIntArray,
PoolRealArray,
PoolStringArray,
PoolVector2Array,
PoolVector3Array,// 25
PoolColorArray,
);
///
enum Operator
{
//comparation
equal,
notEqual,
less,
lessEqual,
greater,
greaterEqual,
//mathematic
add,
substract,
multiply,
divide,
negate,
positive,
modulus,
stringConcat,
//bitwise
shiftLeft,
shiftRight,
bitAnd,
bitOr,
bitXor,
bitNegate,
//logic
and,
or,
xor,
not,
//containment
in_
}
private enum bool implicit(Src, Dest) = is(Src : Dest) || isImplicitlyConvertible!(Src, Dest);
private static GodotObject objectToGodot(T)(T o)
{
return o.getGodotObject;
}
private static R objectFromGodot(R)(in GodotObject o)
{
static if(is(R == const)) alias co = o;
else GodotObject co = cast(GodotObject)o._godot_object; // annoying hack to deal with const
return co.as!R;
}
/// function to convert T to an equivalent Godot type
template conversionToGodot(T)
{
static if(isGodotClass!T) alias conversionToGodot = objectToGodot!T;
else static if(is(T : Ref!U, U)) alias conversionToGodot = objectToGodot!U;
else static if(isIntegral!T) alias conversionToGodot = (T t) => cast(long)t;
else static if(isFloatingPoint!T) alias conversionToGodot = (T t) => cast(double)t;
else static if(implicit!(T, const(char)[]) || implicit!(T, const(char)*))
alias conversionToGodot = (T t) => String(t);
else static if((isForwardRange!T || isStaticArray!T) && compatibleToGodot!(ElementType!T))
alias conversionToGodot = (T t)
{
import std.algorithm.iteration;
Array ret = Array.empty_array;
static if(hasLength!T)
{
ret.resize(cast(int)t.length);
foreach(ei, e; t) ret[cast(int)ei] = e;
}
else t.each!(e => ret ~= e);
return ret;
};
else alias conversionToGodot = void; // none
}
enum bool convertsToGodot(T) = isCallable!(conversionToGodot!T);
alias conversionToGodotType(T) = Unqual!(ReturnType!(conversionToGodot!T));
/// function to convert a Godot-compatible type to T
template conversionFromGodot(T)
{
static if(isGodotClass!T || is(T : Ref!U, U)) alias conversionFromGodot = objectFromGodot!T;
else static if(isIntegral!T) alias conversionFromGodot = (long v) => cast(T)v;
else static if(isFloatingPoint!T) alias conversionFromGodot = (double v) => cast(T)v;
/*
TODO: overhaul this badly-designed conversion system. These should be
moved out of Variant, into conversion functions on the core types themselves.
*/
else static if(isStaticArray!T && compatibleFromGodot!(ElementType!T))
alias conversionFromGodot = (in Array arr)
{
if(arr.length == T.length)
{
T ret;
foreach(i; 0..T.length) ret[i] = (arr[i]).as!(ElementType!T);
return ret;
}
else assert(0, "Array length doesn't match static array "~T.stringof);
};
else alias conversionFromGodot = void;
}
enum bool convertsFromGodot(T) = isCallable!(conversionFromGodot!T);
alias conversionFromGodotType(T) = Unqual!(Parameters!(conversionFromGodot!T)[0]);
enum bool directlyCompatible(T) = staticIndexOf!(Unqual!T, DType) != -1;
template compatibleToGodot(T)
{
static if(directlyCompatible!T) enum bool compatibleToGodot = true;
else enum bool compatibleToGodot = convertsToGodot!T;
}
template compatibleFromGodot(T)
{
static if(directlyCompatible!T) enum bool compatibleFromGodot = true;
else enum bool compatibleFromGodot = convertsFromGodot!T;
}
enum bool compatible(R) = compatibleToGodot!(R) && compatibleFromGodot!(R);
/// All target Variant.Types that T could implicitly convert to, as indices
private template implicitTargetIndices(T)
{
private enum bool _implicit(size_t di) = implicit!(T, DType[di]);
alias implicitTargetIndices = Filter!(_implicit, aliasSeqOf!(iota(DType.length)));
}
/++
Get the Variant.Type of a compatible D type. Incompatible types return nil.
+/
public template variantTypeOf(T)
{
import std.traits, godot;
static if(directlyCompatible!T)
{
enum Type variantTypeOf = EnumMembers!Type[staticIndexOf!(Unqual!T, DType)];
}
else static if(convertsToGodot!T)
{
enum Type variantTypeOf = EnumMembers!Type[staticIndexOf!(
conversionToGodotType!T, DType)];
}
else enum Type variantTypeOf = Type.nil; // so the template always returns a Type
}
unittest
{
static assert(allSatisfy!(compatible, DType));
static assert(!compatible!Object); // D Object
static assert(directlyCompatible!GodotObject);
static assert(directlyCompatible!(const(GodotObject)));
import godot.camera;
static assert(!directlyCompatible!Camera);
static assert(compatibleFromGodot!Camera);
static assert(compatibleToGodot!Camera);
static assert(compatibleFromGodot!(const(Camera)));
static assert(compatibleToGodot!(const(Camera)));
}
private template FunctionAs(Type type)
{
private enum string name_ = text(type);
private enum string FunctionAs = (name_[$-1]=='_')?(name_[0..$-1]):name_;
}
private template FunctionNew(Type type)
{
private enum string name_ = text(type);
private enum string FunctionNew = (name_[$-1]=='_')?(name_[0..$-1]):name_;
}
this(this)
{
godot_variant other = _godot_variant; // source Variant still owns this
_godot_api.godot_variant_new_copy(&_godot_variant, &other);
}
static Variant nil()
{
Variant v = void;
_godot_api.godot_variant_new_nil(&v._godot_variant);
return v;
}
this(in ref Variant other)
{
_godot_api.godot_variant_new_copy(&_godot_variant, &other._godot_variant);
}
this(T : typeof(null))(in T nil)
{
_godot_api.godot_variant_new_nil(&_godot_variant);
}
this(R)(auto ref R input) if(!is(R : Variant) && !is(R : typeof(null)))
{
static assert(compatibleToGodot!R, R.stringof~" isn't compatible with Variant.");
enum VarType = variantTypeOf!R;
mixin("auto Fn = _godot_api.godot_variant_new_"~FunctionNew!VarType~";");
alias PassType = Parameters!Fn[1]; // second param is the value
alias IT = InternalType[VarType];
// handle explicit conversions
static if(directlyCompatible!R) alias inputConv = input;
else auto inputConv = conversionToGodot!R(input);
static if(is(IT == Unqual!PassType)) Fn(&_godot_variant, cast(IT)inputConv); // value
else Fn(&_godot_variant, cast(IT*)&inputConv); // pointer
}
~this()
{
_godot_api.godot_variant_destroy(&_godot_variant);
}
Type type() const
{
return cast(Type)_godot_api.godot_variant_get_type(&_godot_variant);
}
inout(T) as(T : Variant)() inout { return this; }
R as(R)() const if(!is(R == Variant) && !is(R==typeof(null)) && compatibleFromGodot!R)
{
static if(directlyCompatible!R) enum VarType = variantTypeOf!R;
else enum VarType = EnumMembers!Type[staticIndexOf!(conversionFromGodotType!R, DType)];
mixin("auto Fa = _godot_api.godot_variant_as_"~FunctionAs!VarType~";");
static if(VarType == Type.vector3)
{
version(GodotSystemV) /// HACK workaround for DMD issue #5570
{
godot_vector3 ret = void;
auto _func = &_godot_api.godot_variant_as_vector3; // LDC won't link the symbol if it's only inside asm statement
void* _this = cast(void*)&this; // LDC doesn't allow using `this` directly in asm
asm @nogc nothrow
{
mov RDI, _this;
call _func;
mov ret[0], RAX;
mov ret[8], EDX;
}
}
else InternalType[VarType] ret = Fa(&_godot_variant);
}
else InternalType[VarType] ret = Fa(&_godot_variant);
// ret should NOT be destroyed by RAII here.
DType[VarType]* ptr = cast(DType[VarType]*)&ret;
static if(directlyCompatible!R) return *ptr;
else
{
return conversionFromGodot!R(*ptr);
}
}
pragma(inline, true)
void opAssign(T)(in auto ref T input) if(!is(T : Variant) && !is(T : typeof(null)))
{
import std.conv : emplace;
_godot_api.godot_variant_destroy(&_godot_variant);
emplace!(Variant)(&this, input);
}
pragma(inline, true)
void opAssign(T : typeof(null))(in T nil)
{
_godot_api.godot_variant_destroy(&_godot_variant);
_godot_api.godot_variant_new_nil(&_godot_variant);
}
pragma(inline, true)
void opAssign(T : Variant)(in T other)
{
_godot_api.godot_variant_destroy(&_godot_variant);
_godot_api.godot_variant_new_copy(&_godot_variant, &other._godot_variant);
}
bool opEquals(in ref Variant other) const
{
return cast(bool)_godot_api.godot_variant_operator_equal(&_godot_variant, &other._godot_variant);
}
int opCmp(in ref Variant other) const
{
if(_godot_api.godot_variant_operator_equal(&_godot_variant, &other._godot_variant))
return 0;
return _godot_api.godot_variant_operator_less(&_godot_variant, &other._godot_variant)?
-1 : 1;
}
bool booleanize() const
{
return cast(bool)_godot_api.godot_variant_booleanize(&_godot_variant);
}
auto toString() const
{
String str = as!String;
return str.data;
}
}
| D |
module lazer;
import std.stdio;
import std.random;
import jeca.all;
import base, unit, unitlist, ship, board, weakbrickblow, larverbombblow;
class Lazer: Unit {
private:
bool m_weaponBoost;
int m_wallTime;
public:
this( int player0, bool weaponBoost0, double x, double y, double dirx0, double diry0 ) {
player = player0;
m_weaponBoost = weaponBoost0;
mainType = UnitType.lazer;
xpos = x;
ypos = y;
dirx = dirx0 * 2;
diry = diry0 * 2;
m_wallTime = 20;
}
override void process( Board board, UnitList unitList ) {
int otherShipId=player == 0 ? 1 : 0; /+ other ship +/
auto otherShip=unitList[otherShipId];
bool hit = false;
auto x = xpos,
y = ypos;
x += dirx * 10;
y += diry * 10;
int hitWeakBrickx = pos(xpos + dirx * 5),
hitWeakBricky = pos(ypos + diry * 5);
if (board.getPieceType(hitWeakBrickx*24, hitWeakBricky*24) == PieceType.larverBomb) {
unitList.append(new LarverBombBlow(player, x,y));
board.map[hitWeakBricky][hitWeakBrickx].type = PieceType.darkBrick;
board.map[hitWeakBricky][hitWeakBrickx].draw;
if (! m_weaponBoost)
hit=true;
else
m_weaponBoost=false;
}
if (board.getPieceType(hitWeakBrickx*24, hitWeakBricky*24) == PieceType.weakBrick ) {
board.map[hitWeakBricky][hitWeakBrickx].type = PieceType.darkBrick;
board.map[hitWeakBricky][hitWeakBrickx].draw;
unitList.append( new WeakBrickBlow( player, hitWeakBrickx * 24, hitWeakBricky * 24 ) );
int blowId=uniform(0, g_smallBlows.length);
g_smallBlows[blowId].speed=0.4+uniform(0, 1.2);
g_smallBlows[blowId].play;
//g_snds[blowId].speed=0.6 + uniform( 0, 0.8 );
//g_snds[blowId].play;
//g_morris.speed = 0.6 + uniform( 0, 0.8 );
//g_morris.play;
if ( ! m_weaponBoost )
hit = true;
else
m_weaponBoost = false;
}
if ((cast(Ship)otherShip).state == ShipState.good
&& distance(x, y, otherShip.xpos + 12, otherShip.ypos + 12) < 16 + (m_weaponBoost ? 12 : 0)) {
g_snds[Sound.blowUp].speed=0.6 + uniform(0, 0.8);
g_snds[Sound.blowUp].play;
hit = true;
(cast(Ship)otherShip).doDamage(m_weaponBoost ? 6 : 2);
}
if ( m_wallTime == 0 && board.hitBrick( xpos + dirx * 5, ypos + diry * 5 ) ) // 5 - half way down the bolt
hit = true;
if ( hit || xpos < 0 || xpos > DISPLAY_W || ypos < 0 || ypos > DISPLAY_H )
unitList.remove(this);
xpos += dirx;
ypos += diry;
if ( m_wallTime > 0 )
--m_wallTime;
}
override void draw() {
al_draw_line( xpos, ypos, xpos + dirx * 10, ypos + diry * 10,
m_weaponBoost ? Colour.red : Colour.white, 3 );
}
}
| D |
module cl.quote;
// TODO Add comments and strings support.
// TODO Make sure "\"" is ok and has no weird corner cases.
// TODO Speed this up a little.
string unquote(string code) {
string result = "\"";
auto i = 0;
auto len = code.length;
while(i < len) {
if(code[i] == 'd') {
if(i+1 < len && code[i+1] == '{') {
++i;
string mixed = "";
uint parenCount = 0;
do {
assert(i < len, "End of qasiquote reached while parsing expression.");
if(code[i] == '{') ++parenCount;
else if(code[i] == '}') --parenCount;
mixed ~= code[i++];
} while(parenCount);
result ~= "\" ~ to!string(" ~ mixed[1..$-1] ~ ") ~ \"";
// `mixed' is always wrapped in {}.
}
}
result ~= code[i++];
}
return result ~ "\"";
}
// Quasiquate template.
template q(string code, bool printGenerated = false) {
enum q = unquote(code);
static if(printGenerated) {
pragma(msg, q);
}
}
unittest {
import std.conv;
import std.stdio;
string makeAsserts(T)(T a, T b, string msg = "Assert failure!") {
return mixin(q!q{
assert( d{ a } == d{ b });//, d{ msg } ); // FIXME
assert( d{ b } == d{ a });//, d{ msg } );
});
}
enum a = 23;
enum b = 23;
enum msg = "Another statement.";
enum generated = mixin(q!q{
if(d{a * b} == 23^^2) {
d{ makeAsserts(a, b, msg) }
}
});
mixin(generated);
} | D |
/**
Functions and structures for dealing with threads and concurrent access.
This module is modeled after std.concurrency, but provides a fiber-aware alternative
to it. All blocking operations will yield the calling fiber instead of blocking it.
Copyright: © 2013 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 vibe.core.concurrency;
import std.typecons;
private extern (C) pure void _d_monitorenter(Object h);
private extern (C) pure void _d_monitorexit(Object h);
/**
Locks the given shared object and returns a ScopedLock for accessing any unshared members.
Using this function will ensure that there are no data races. For this reason, the class
type T is required to contain no unshared or unisolated aliasing.
Examples:
---
import vibe.core.typecons;
class Item {
private double m_value;
this(double value) { m_value = value; }
@property double value() const { return m_value; }
}
class Manager {
private {
string m_name;
Isolated!(Item) m_ownedItem;
Isolated!(shared(Item)[]) m_items;
}
this(string name)
{
m_name = name;
auto itm = makeIsolated!Item(3.5);
m_ownedItem = itm;
}
void addItem(shared(Item) item) { m_items ~= item; }
double getTotalValue()
const {
double sum = 0;
// lock() is required to access shared objects
foreach( itm; m_items ) sum += itm.lock().value;
// owned objects can be accessed without locking
sum += m_ownedItem.value;
return sum;
}
}
void main()
{
import std.stdio;
auto man = new shared(Manager)("My manager");
{
auto l = man.lock();
l.addItem(new shared(Item)(1.5));
l.addItem(new shared(Item)(0.5));
}
writefln("Total value: %s", man.lock().getTotalValue());
}
---
See_Also: stdx.traits.isWeaklyIsolated
*/
ScopedLock!T lock(T)(shared(T) object)
pure {
return ScopedLock!T(object);
}
/**
Proxy structure that keeps the monitor of the given object locked until it
goes out of scope.
Any unshared members of the object are safely accessible during this time. The usual
way to use it is by calling lock.
See_Also: lock
*/
struct ScopedLock(T)
{
static assert(is(T == class), "ScopedLock is only usable with classes.");
//static assert(isWeaklyIsolated!(FieldTypeTuple!T), T.stringof~" contains non-immutable, non-shared references. Accessing it in a multi-threaded environment is not safe.");
private Rebindable!T m_ref;
@disable this(this);
this(shared(T) obj)
pure {
assert(obj !is null, "Attempting to lock null object.");
m_ref = cast(T)obj;
_d_monitorenter(getObject());
}
pure ~this()
{
_d_monitorexit(getObject());
}
/**
Returns an unshared reference to the locked object.
Note that using this function breaks type safety. Be sure to not escape the reference beyond
the life time of the lock.
*/
@property inout(T) unsafeGet() inout { return m_ref; }
alias unsafeGet this;
//pragma(msg, "In ScopedLock!("~T.stringof~")");
//pragma(msg, isolatedRefMethods!T());
#line 1 "isolatedAggreateMethodsString"
//mixin(isolatedAggregateMethodsString!T());
#line 591 "typecons.d"
private Object getObject()
pure {
static if( is(Rebindable!T == struct) ) return cast()m_ref.get();
else return cast()m_ref;
}
}
| D |
/**
Common classes for HTTP clients and servers.
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.common;
public import vibe.http.status;
import vibe.core.log;
import vibe.core.net;
import vibe.inet.message;
import vibe.stream.operations;
import vibe.stream.tls : TLSStream;
import vibe.http.http2 : HTTP2Stream;
import vibe.utils.array;
import vibe.utils.memory;
import vibe.utils.string;
import std.algorithm;
import std.array;
import std.range;
import std.conv;
import std.datetime;
import std.exception;
import std.format;
import std.string;
import std.typecons;
enum HTTPVersion {
HTTP_1_0,
HTTP_1_1,
HTTP_2
}
enum HTTPMethod {
// HTTP standard
GET,
HEAD,
PUT,
POST,
PATCH,
DELETE,
OPTIONS,
TRACE,
CONNECT,
// WEBDAV extensions
COPY,
LOCK,
MKCOL,
MOVE,
PROPFIND,
PROPPATCH,
UNLOCK,
REPORT
}
/**
Returns the string representation of the given HttpMethod.
*/
string httpMethodString(HTTPMethod m)
{
return to!string(m);
}
/**
Returns the HttpMethod value matching the given HTTP method string.
*/
HTTPMethod httpMethodFromString(string str)
{
switch(str){
default: throw new Exception("Invalid HTTP method: "~str);
case "GET": return HTTPMethod.GET;
case "HEAD": return HTTPMethod.HEAD;
case "PUT": return HTTPMethod.PUT;
case "POST": return HTTPMethod.POST;
case "PATCH": return HTTPMethod.PATCH;
case "DELETE": return HTTPMethod.DELETE;
case "OPTIONS": return HTTPMethod.OPTIONS;
case "TRACE": return HTTPMethod.TRACE;
case "CONNECT": return HTTPMethod.CONNECT;
case "COPY": return HTTPMethod.COPY;
case "LOCK": return HTTPMethod.LOCK;
case "MKCOL": return HTTPMethod.MKCOL;
case "MOVE": return HTTPMethod.MOVE;
case "PROPFIND": return HTTPMethod.PROPFIND;
case "PROPPATCH": return HTTPMethod.PROPPATCH;
case "UNLOCK": return HTTPMethod.UNLOCK;
case "REPORT": return HTTPMethod.REPORT;
}
}
unittest
{
assert(httpMethodString(HTTPMethod.GET) == "GET");
assert(httpMethodString(HTTPMethod.UNLOCK) == "UNLOCK");
assert(httpMethodFromString("GET") == HTTPMethod.GET);
assert(httpMethodFromString("UNLOCK") == HTTPMethod.UNLOCK);
}
/**
Utility function that throws a HTTPStatusException if the _condition is not met.
*/
T enforceHTTP(T)(T condition, HTTPStatus statusCode, lazy string message = null, string file = __FILE__, typeof(__LINE__) line = __LINE__)
{
return enforce(condition, new HTTPStatusException(statusCode, message, file, line));
}
/**
Utility function that throws a HTTPStatusException with status code "400 Bad Request" if the _condition is not met.
*/
T enforceBadRequest(T)(T condition, lazy string message = null, string file = __FILE__, typeof(__LINE__) line = __LINE__)
{
return enforceHTTP(condition, HTTPStatus.badRequest, message, file, line);
}
/**
Represents an HTTP request made to a server.
*/
class HTTPRequest {
public {
/// The HTTP protocol version used for the request
HTTPVersion httpVersion = HTTPVersion.HTTP_1_1;
/// The HTTP _method of the request
HTTPMethod method = HTTPMethod.GET;
/** The request URL
Note that the request URL usually does not include the global
'http://server' part, but only the local path and a query string.
A possible exception is a proxy server, which will get full URLs.
*/
string requestURL = "/";
/// All request _headers
InetHeaderMap headers;
}
protected this()
{
}
public override string toString()
{
return httpMethodString(method) ~ " " ~ requestURL ~ " " ~ getHTTPVersionString(httpVersion);
}
/** Shortcut to the 'Host' header (always present for HTTP 1.1)
*/
@property string host() const { auto ph = "Host" in headers; return ph ? *ph : null; }
/// ditto
@property void host(string v) { headers["Host"] = v; }
/** Returns the mime type part of the 'Content-Type' header.
This function gets the pure mime type (e.g. "text/plain")
without any supplimentary parameters such as "charset=...".
Use contentTypeParameters to get any parameter string or
headers["Content-Type"] to get the raw value.
*/
@property string contentType()
const {
auto pv = "Content-Type" in headers;
if( !pv ) return null;
auto idx = std.string.indexOf(*pv, ';');
return idx >= 0 ? (*pv)[0 .. idx] : *pv;
}
/// ditto
@property void contentType(string ct) { headers["Content-Type"] = ct; }
/** Returns any supplementary parameters of the 'Content-Type' header.
This is a semicolon separated ist of key/value pairs. Usually, if set,
this contains the character set used for text based content types.
*/
@property string contentTypeParameters()
const {
auto pv = "Content-Type" in headers;
if( !pv ) return null;
auto idx = std.string.indexOf(*pv, ';');
return idx >= 0 ? (*pv)[idx+1 .. $] : null;
}
/** Determines if the connection persists across requests.
*/
@property bool persistent() const
{
if (auto ph = "connection" in headers)
{
final switch(httpVersion) {
case HTTPVersion.HTTP_1_0:
if (icmp2(*ph, "keep-alive") == 0) return true;
return false;
case HTTPVersion.HTTP_1_1:
if (icmp2(*ph, "close") == 0) return false;
return true;
case HTTPVersion.HTTP_2:
return false;
}
}
final switch(httpVersion) {
case HTTPVersion.HTTP_1_0:
return false;
case HTTPVersion.HTTP_1_1:
return true;
case HTTPVersion.HTTP_2:
return false;
}
}
}
/**
Represents the HTTP response from the server back to the client.
*/
class HTTPResponse {
public {
/// The protocol version of the response - should not be changed
HTTPVersion httpVersion = HTTPVersion.HTTP_1_1;
/// The status code of the response, 200 by default
int statusCode = HTTPStatus.OK;
/** The status phrase of the response
If no phrase is set, a default one corresponding to the status code will be used.
*/
string statusPhrase;
/// The response header fields
InetHeaderMap headers;
/// All cookies that shall be set on the client for this request
Cookie[string] cookies;
}
public override string toString()
{
auto app = appender!string();
formattedWrite(app, "%s %d %s", getHTTPVersionString(this.httpVersion), this.statusCode, this.statusPhrase);
return app.data;
}
/** Shortcut to the "Content-Type" header
*/
@property string contentType() const { auto pct = "Content-Type" in headers; return pct ? *pct : "application/octet-stream"; }
/// ditto
@property void contentType(string ct) { headers["Content-Type"] = ct; }
}
/**
Respresents a HTTP response status.
Throwing this exception from within a request handler will produce a matching error page.
*/
class HTTPStatusException : Exception {
private {
int m_status;
}
this(int status, string message = null, string file = __FILE__, int line = __LINE__, Throwable next = null)
{
super(message != "" ? message : httpStatusText(status), file, line, next);
m_status = status;
}
/// The HTTP status code
@property int status() const { return m_status; }
string debugMessage;
}
final class MultiPart {
string contentType;
InputStream stream;
//JsonValue json;
string[string] form;
}
import vibe.core.core;
/// The client multipart requires the full size to be known beforehand in the Content-Length header.
/// For this reason, we require the underlying data to be of type RandomAccessStream
abstract class MultiPartPart {
import vibe.stream.memory : MemoryStream;
private MultiPartPart m_sibling;
private string m_boundary;
// todo: MultiPartPart child;
protected {
MemoryStream m_headers;
RandomAccessStream m_data;
}
@property MultiPartPart addSibling(MultiPartPart part)
{
part.m_boundary = m_boundary;
MultiPartPart sib;
for (sib = this; sib && sib.m_sibling; sib = sib.m_sibling)
continue;
sib.m_sibling = part;
return this;
}
this(ref InetHeaderMap headers, string boundary) {
headers.resolveBoundary(boundary);
m_boundary = boundary;
}
final @property ulong size() { return m_headers.size + m_data.size + (m_sibling ? m_sibling.size + "\r\n".length : (m_boundary.length + "\r\n----\r\n".length)); }
final string peek(bool first = true)
{
Appender!string app;
if (!first)
app ~= "\r\n";
app ~= cast(string)m_headers.readAll();
m_headers.seek(0);
app ~= cast(string)m_data.readAll();
m_data.seek(0);
if (m_sibling)
app ~= m_sibling.peek(false);
else { // we're done
app ~= "\r\n--";
app ~= m_boundary;
app ~= "--\r\n";
}
return app.data;
}
final void read(OutputStream sink, bool first = true) {
if (!first)
sink.write("\r\n");
sink.write(m_headers);
sink.write(m_data);
finalize();
if (m_sibling)
m_sibling.read(sink, false);
else { // we're done
sink.write("\r\n--");
sink.write(m_boundary);
sink.write("--\r\n");
}
}
void finalize();
}
final class CustomMultiPart : MultiPartPart
{
this(ref InetHeaderMap headers, string multipart_headers, ubyte[] data, string boundary = null) {
super(headers, boundary);
m_headers = new MemoryStream(cast(ubyte[])multipart_headers, false);
m_data = new MemoryStream(data, false);
}
this(ref InetHeaderMap headers, string multipart_headers, string data, string boundary = null) {
this(headers, multipart_headers, cast(ubyte[]) data, boundary);
}
override void finalize() {
}
}
final class FileMultiPart : MultiPartPart
{
import vibe.core.file : openFile, FileStream;
import vibe.inet.mimetypes : getMimeTypeForFile;
this(ref InetHeaderMap headers, string field_name, string file_path, string boundary = null, string content_type = null) {
super(headers, boundary);
import std.path : baseName;
Appender!string app;
m_data = openFile(file_path);
if (!content_type) {
content_type = getMimeTypeForFile(file_path);
if (content_type == "text/plain")
content_type ~= "; charset=UTF-8";
}
// we generate the headers here because we need the payload size to be available at all times.
app ~= "--";
app ~= m_boundary;
app ~= "\r\n";
app ~= "Content-Length: ";
app ~= m_data.size().to!string;
app ~= "\r\n";
app ~= "Content-Type: ";
app ~= content_type;
app ~= "\r\n";
app ~= "Content-Disposition: form-data; name=\"";
app ~= field_name;
app ~= "\"; filename=\"";
app ~= baseName(file_path);
app ~= "\"\r\n";
app ~= "Content-Transfer-Encoding: binary\r\n\r\n";
m_headers = new MemoryStream(cast(ubyte[])app.data, false);
}
override void finalize() {
(cast(FileStream)m_data).close();
}
}
final class MemoryMultiPart : MultiPartPart
{
this(ref InetHeaderMap headers, string field_name, ubyte[] form_data, string boundary = null, string charset = "UTF-8") {
super(headers, boundary);
/*headers*/{
Appender!string app;
// we generate the headers here because we need the payload size to be available at all times.
app ~= "--";
app ~= m_boundary;
app ~= "\r\n";
app ~= "Content-Type: text/plain; charset=";
app ~= charset;
app ~= "\r\n";
app ~= "Content-Disposition: form-data; name=\"";
app ~= field_name;
app ~= "\"\r\n";
app ~= "Content-Transfer-Encoding: 8bit\r\n\r\n";
m_headers = new MemoryStream(cast(ubyte[])app.data, false);
}
/*data*/{
m_data = new MemoryStream(form_data, false);
}
}
override void finalize() {
}
}
string getBoundary(ref InetHeaderMap headers)
{
string boundary;
if (headers.get("Content-Type", "").indexOf("boundary=", CaseSensitive.no) == -1)
return null;
auto content_type = headers["Content-Type"];
boundary = content_type[content_type.indexOf("boundary=", CaseSensitive.no) + "boundary=".length .. $];
if (boundary.indexOf(";") != -1) {
boundary = boundary[0 .. boundary.indexOf(";")];
}
return boundary;
}
private void resolveBoundary(ref InetHeaderMap headers, ref string boundary)
{
if (headers.get("Content-Type", "").indexOf("boundary", CaseSensitive.no) == -1) {
if (!boundary) { // by default, we create a boundary
import std.uuid : randomUUID;
boundary = randomUUID().toString();
}
// and we assign it into the headers
headers["Content-Type"] = "multipart/form-data; boundary=" ~ boundary;
}
else {
if (!boundary) // by default, we extract the boundary from the headers
boundary = headers.getBoundary();
}
}
string getHTTPVersionString(HTTPVersion ver)
{
final switch(ver){
case HTTPVersion.HTTP_1_0: return "HTTP/1.0";
case HTTPVersion.HTTP_1_1: return "HTTP/1.1";
case HTTPVersion.HTTP_2: return "HTTP/2";
}
}
HTTPVersion parseHTTPVersion(ref string str)
{
enforceBadRequest(str.startsWith("HTTP/"));
str = str[5 .. $];
int majorVersion = parse!int(str);
enforceBadRequest(str.startsWith("."));
str = str[1 .. $];
int minorVersion = parse!int(str);
enforceBadRequest( majorVersion == 1 && (minorVersion == 0 || minorVersion == 1) );
return minorVersion == 0 ? HTTPVersion.HTTP_1_0 : HTTPVersion.HTTP_1_1;
}
/**
Takes an input stream that contains data in HTTP chunked format and outputs the raw data.
*/
final class ChunkedInputStream : InputStream {
private {
InputStream m_in;
ulong m_bytesInCurrentChunk = 0;
}
this(InputStream stream)
{
assert(stream !is null);
m_in = stream;
readChunk();
}
@property bool empty() const { return m_bytesInCurrentChunk == 0; }
@property ulong leastSize() const { return m_bytesInCurrentChunk; }
@property bool dataAvailableForRead() { return m_bytesInCurrentChunk > 0 && m_in.dataAvailableForRead; }
const(ubyte)[] peek()
{
auto dt = m_in.peek();
return dt[0 .. min(dt.length, m_bytesInCurrentChunk)];
}
void read(ubyte[] dst)
{
enforceBadRequest(!empty, "Read past end of chunked stream.");
while( dst.length > 0 ){
enforceBadRequest(m_bytesInCurrentChunk > 0, "Reading past end of chunked HTTP stream.");
auto sz = cast(size_t)min(m_bytesInCurrentChunk, dst.length);
m_in.read(dst[0 .. sz]);
dst = dst[sz .. $];
m_bytesInCurrentChunk -= sz;
if( m_bytesInCurrentChunk == 0 ){
// skip current chunk footer and read next chunk
ubyte[2] crlf;
m_in.read(crlf);
enforceBadRequest(crlf[0] == '\r' && crlf[1] == '\n');
readChunk();
}
}
}
private void readChunk()
{
assert(m_bytesInCurrentChunk == 0);
// read chunk header
logTrace("read next chunk header");
auto ln = cast(string)m_in.readLine();
logTrace("got chunk header: %s", ln);
m_bytesInCurrentChunk = parse!ulong(ln, 16u);
if( m_bytesInCurrentChunk == 0 ){
// empty chunk denotes the end
// skip final chunk footer
ubyte[2] crlf;
m_in.read(crlf);
enforceBadRequest(crlf[0] == '\r' && crlf[1] == '\n');
}
}
}
/**
Outputs data to an output stream in HTTP chunked format.
*/
final class ChunkedOutputStream : OutputStream {
private {
OutputStream m_out;
AllocAppender!(ubyte[]) m_buffer;
size_t m_maxBufferSize = 512*1024;
ulong m_bytesWritten;
bool m_finalized = false;
}
this(OutputStream stream, Allocator alloc = manualAllocator())
{
m_out = stream;
m_buffer = AllocAppender!(ubyte[])(alloc);
}
/** Maximum buffer size used to buffer individual chunks.
A size of zero means unlimited buffer size. Explicit flush is required
in this case to empty the buffer.
*/
@property size_t maxBufferSize() const { return m_maxBufferSize; }
/// ditto
@property void maxBufferSize(size_t bytes) { m_maxBufferSize = bytes; if (m_buffer.data.length >= m_maxBufferSize) flush(); }
@property ulong bytesWritten() { return m_bytesWritten; }
void write(in ubyte[] bytes_)
{
assert(!m_finalized);
const(ubyte)[] bytes = bytes_;
while (bytes.length > 0) {
auto sz = bytes.length;
if (m_maxBufferSize > 0 && m_maxBufferSize < m_buffer.data.length + sz)
sz = m_maxBufferSize - min(m_buffer.data.length, m_maxBufferSize);
if (sz > 0) {
m_buffer.put(bytes[0 .. sz]);
bytes = bytes[sz .. $];
}
if (bytes.length > 0)
flush();
}
}
void write(InputStream data, ulong nbytes = 0)
{
assert(!m_finalized);
if( m_buffer.data.length > 0 ) flush();
if( nbytes == 0 ){
while( !data.empty ){
auto sz = data.leastSize;
assert(sz > 0);
writeChunkSize(sz);
m_out.write(data, sz);
m_out.write("\r\n");
m_bytesWritten += "\r\n".length;
m_out.flush();
}
} else {
writeChunkSize(nbytes);
m_out.write(data, nbytes);
m_out.write("\r\n");
m_bytesWritten += "\r\n".length;
m_out.flush();
}
}
void flush()
{
assert(!m_finalized);
auto data = m_buffer.data();
if( data.length ){
writeChunkSize(data.length);
m_out.write(data);
m_out.write("\r\n");
}
m_out.flush();
m_buffer.reset(AppenderResetMode.reuseData);
}
void finalize()
{
if (m_finalized) return;
flush();
m_buffer.reset(AppenderResetMode.freeData);
m_finalized = true;
m_out.write("0\r\n\r\n");
m_bytesWritten += "0\r\n\r\n".length;
m_out.flush();
}
private void writeChunkSize(long length)
{
import vibe.stream.wrapper;
auto rng = StreamOutputRange(m_out);
formattedWrite(&rng, "%x\r\n", length);
m_bytesWritten += length + rng.length;
}
}
final class Cookie {
private {
string m_value;
string m_domain;
string m_path;
string m_expires;
long m_maxAge;
bool m_secure;
bool m_httpOnly;
}
@property void value(string value) { m_value = value; }
@property string value() const { return m_value; }
@property void domain(string value) { m_domain = value; }
@property string domain() const { return m_domain; }
@property void path(string value) { m_path = value; }
@property string path() const { return m_path; }
@property void expires(string value) { m_expires = value; }
@property string expires() const { return m_expires; }
@property void maxAge(long value) { m_maxAge = value; }
@property long maxAge() const { return m_maxAge; }
@property void secure(bool value) { m_secure = value; }
@property bool secure() const { return m_secure; }
@property void httpOnly(bool value) { m_httpOnly = value; }
@property bool httpOnly() const { return m_httpOnly; }
string toString(string name = "Cookie") {
Appender!string dst;
writeString(dst, name);
return dst.data;
}
void writeString(R)(R dst, string name, bool encode = true)
if (isOutputRange!(R, char))
{
import vibe.textfilter.urlencode;
dst.put(name);
dst.put('=');
if (encode)
filterURLEncode(dst, this.value);
else
dst.put(this.value);
if (this.domain && this.domain != "") {
dst.put("; Domain=");
dst.put(this.domain);
}
if (this.path != "") {
dst.put("; Path=");
dst.put(this.path);
}
if (this.expires != "") {
dst.put("; Expires=");
dst.put(this.expires);
}
if (this.maxAge) dst.formattedWrite("; Max-Age=%s", this.maxAge);
if (this.secure) dst.put("; Secure");
if (this.httpOnly) dst.put("; HttpOnly");
}
}
/**
*/
struct CookieValueMap {
struct Cookie {
string name;
string value;
}
private {
Cookie[] m_entries;
}
string get(string name, string def_value = null)
const {
auto pv = name in this;
if( !pv ) return def_value;
return *pv;
}
string[] getAll(string name)
const {
string[] ret;
foreach(c; m_entries)
if( c.name == name )
ret ~= c.value;
return ret;
}
void opIndexAssign(string value, string name)
{
m_entries ~= Cookie(name, value);
}
string opIndex(string name)
const {
import core.exception : RangeError;
auto pv = name in this;
if( !pv ) throw new RangeError("Non-existent cookie: "~name);
return *pv;
}
int opApply(scope int delegate(ref Cookie) del)
{
foreach(ref c; m_entries)
if( auto ret = del(c) )
return ret;
return 0;
}
int opApply(scope int delegate(ref Cookie) del)
const {
foreach(Cookie c; m_entries)
if( auto ret = del(c) )
return ret;
return 0;
}
int opApply(scope int delegate(ref string name, ref string value) del)
{
foreach(ref c; m_entries)
if( auto ret = del(c.name, c.value) )
return ret;
return 0;
}
int opApply(scope int delegate(ref string name, ref string value) del)
const {
foreach(Cookie c; m_entries)
if( auto ret = del(c.name, c.value) )
return ret;
return 0;
}
inout(string)* opBinaryRight(string op)(string name) inout if(op == "in")
{
foreach(ref c; m_entries)
if( c.name == name ) {
static if (__VERSION__ < 2066)
return cast(inout(string)*)&c.value;
else
return &c.value;
}
return null;
}
}
interface CookieStore
{
/// Send the '; '-joined concatenation of the cookies corresponding to the URL into sink
void get(string host, string path, bool secure, void delegate(string) send_to) const;
/// Send each matching cookie value individually to the specified sink
void get(string host, string path, bool secure, void delegate(string[]) send_to) const;
/// Sets the cookies using the provided Set-Cookie: header value entry
void set(string host, string set_cookie);
} | D |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.