code
stringlengths
3
10M
language
stringclasses
31 values
the number that is represented as a one followed by 24 zeros the number that is represented as a one followed by 15 zeros
D
/* * Copyright (C) 2007 Mario Kicherer (http://empanyc.net) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * */ import std.stdio; import std.regexp; import std.math; import console; import pluginclasses; import general; import libini; import dmxnode; import dmxdevbus; import dmxfunction; const char[] plugin_name = "pr0led"; const char[] default_device = "/dev/ttyS"; // ttyUSB[0-max_dev] const int max_dev = 4; const char [] Bus_Function = "bus"; class pr0led_busfct : DMXF_Bus { int [] channels; pr0led_bus busdev; int is_active; this(char []name, DMXDeviceAbstract dev) { super(name, dev); this.busdev = cast(pr0led_bus) dev; channels.length = 255; finalfct = 1; } int active() { return is_active; } RetMessage get_channel(int channel) { return new RetMessage(1, std.string.format("%d",channels[channel])); } RetMessage set_channel(int channel, int value) { char []buf; char []result; int success; char on, off; on = cast(char) ceil(cast(float)value*40/255)+1; off = cast(char) ceil(cast(float)-value*250/255+250) +1; buf = ""; buf ~= cast(char) 255; buf ~= cast(char) channel ; buf ~= on; buf ~= off; success = busdev.sconn.write(buf); if (success) { channels[channel] = value; return new RetMessage(1); } else { result = std.string.format("Error writing to device %d.\n", busdev.sconn.name); printd(E_MT.MT_ERROR, result); return new RetMessage(0, result); } } } class pr0led_bus : DMXDeviceAbstract { SerialConnection sconn; char [] device; int rd_open; this(char [] name, char []device) { super(name); this.device = device; functions[Bus_Function] = new pr0led_busfct(Bus_Function, this); } ~this() { if (sconn) delete sconn; } char []status() { char []result; result = super.status(); if (!std.file.exists(device)) result ~= "real device not found. "; else if (!rd_open) result ~= "couldn't communicate with real device. "; return result; } int open() { int i=0; int success = 0; // init serial connection rd_open = 0; sconn = new SerialConnection(device); success = sconn.open(); if (success) { success = sconn.init(115200); rd_open = 1; } return success; } } class pr0led_plugin : Output_Plugin { char []name; char []description; ini_obj ini_config; char [][char[]]devicenames; this(char []name) { super(name); printd(E_MT.MT_DEBUG,std.string.format("Creating plugin.\n")); description = ""; } int init() { printd(E_MT.MT_DEBUG,std.string.format("Init plugin.\n")); load_config(); ini_config = parse_ini(config); scan4buses(); return 1; } ~this() { printd(E_MT.MT_DEBUG,std.string.format("Closing plugin.\n")); /*foreach (dev; devices) { if (dev) { // writef("dev %s\n", dev.name); // delete dev; // dev = null; } }*/ ini_config["devices"] = devicenames; this.config = code_ini(ini_config); save_config(); } int scan4buses() { int i; pr0led_bus plug; char [] r; if ("devices" in ini_config) { devicenames = ini_config["devices"]; } else { for (i = 0;i < max_dev; i++) { devicenames[std.string.format("default%d",i)] = std.string.format(default_device~"%d", i); } } foreach (dev ; devicenames) { printd(E_MT.MT_DEBUG,std.string.format("Checking device '%s' for id %d: ", dev, devices.length)); plug = new pr0led_bus(std.string.format("%s%d",plugin_name, devices.length), dev); //plug.active = 1; if (std.file.exists(dev)) { if (plug.open()) { (cast(pr0led_busfct) plug.functions[Bus_Function]).is_active = 1; // plug.status = "Ok"; general.printd(E_MT.MT_DEBUG, "ok.\n"); } else { // plug.status = "could not communicate with device"; general.printd(E_MT.MT_DEBUG, "could not communicate with device.\n"); } } else { general.printd(E_MT.MT_DEBUG, "real device not found.\n"); // plug.status = "real device not found"; } devices[plug.name] = plug; } return 1; } } // let the main process know what this plugin is good for extern (C) char[] get_plugin_info() { ini_obj info; char [][char[]] general; general["version"] = "0"; general["type"] = "output"; general["name"] = plugin_name; info["general"] = general; return code_ini(info); } // init plugin - scan devices, etc extern (C) Plugin get_plugin() { return new pr0led_plugin(plugin_name); }
D
/** * Interpreted values * * A value is a type symbol and a union of possible internal values * * Also contains a ValueSymbol for use with the symbol table when evaluating */ module exlang.interpreter.value; /** * Imports */ import exlang.symtab.symbol; /** * Value symbol class */ class ValueVar : Symbol { /** * The value */ Value value; /** * Constructor * * Params: * ident = The identifier * value = The value */ this ( string ident, Value value ) { super(ident); this.value = value; } } /** * Value class */ class Value { /** * Utility constants */ static const Value VOID = new Value(new Type("Void")); /** * The type of this value */ Type type; /** * The union of possible internal values */ private union InternalVal { ulong integer; char character; bool boolean; Value[] list; } ///ditto private InternalVal internal_val; /** * Constructor * * Params: * type = The type */ this ( Type type ) { this.type = type; } /** * Set the internal value * * Template_params: * T = The internal value type * * Params: * val = The value */ void set ( T ) ( T val ) { static if ( is(T == ulong) ) { assert(this.type.ident == "Int"); this.internal_val.integer = val; } else static if ( is(T == char) ) { assert(this.type.ident == "Char"); this.internal_val.character = val; } else static if ( is(T == bool) ) { assert(this.type.ident == "Bool"); this.internal_val.boolean = val; } else static if ( is(T == Value[]) ) { assert(this.type.ident[0] == '['); this.internal_val.list = val; } else { static assert(false, "Unknown value type: " ~ T.stringof); } } /** * Get the internal value * * Template_params: * T = The internal value type * * Returns: * The internal value */ T get ( T ) ( ) { static if ( is(T == ulong) ) { assert(this.type.ident == "Int"); return this.internal_val.integer; } else static if ( is(T == char) ) { assert(this.type.ident == "Char"); return this.internal_val.character; } else static if ( is(T == bool) ) { assert(this.type.ident == "Bool"); return this.internal_val.boolean; } else static if ( is(T == Value[]) ) { assert(this.type.ident[0] == '['); return this.internal_val.list; } else { static assert(false, "Unknown value type: " ~ T.stringof); } } /** * Compare two values * * Params: * left = The left value * right = The right value * * Returns: * Negative if left is "less" than right, 0 if they are equal, * positive if left is "greater" than right * * Throws: * EvalException on error */ static int compare ( Value left, Value right ) { import exlang.interpreter.exception; import std.algorithm; import std.exception; import std.format; enforce!EvalException(left.type.ident == right.type.ident, format("Can't compare different types, got: %s and %s", left.type.ident, right.type.ident)); switch ( left.type.ident ) { case "Int": return compareInternal(left.get!ulong, right.get!ulong); case "Char": return compareInternal(left.get!char, right.get!char); case "Bool": return compareInternal(left.get!bool, right.get!bool); default: if ( left.type.ident[0] == '[' ) { return compareAll(left.get!(Value[]), right.get!(Value[])); } else { throw new EvalException(format("Value comparison not implemented for type: %s", left.type.ident)); } } } /** * Compare two value arrays * * Params: * left = The left array * right = The right array * * Returns: * Negative if left is "less" than right, 0 if they are equal, * positive if left is "greater" than right * * Throws: * EvalException on error */ private static int compareAll ( Value[] left, Value[] right ) { if ( left.length < right.length ) { return -1; } else if ( left.length > right.length ) { return 1; } else { assert(left.length == right.length); int total; foreach ( i, val_left; left ) { total += compare(val_left, right[i]); } return total; } } /** * Compare two internal values * * Template_params: * T = The internal value * * Params: * left = The left internal value * right = The right internal value * * Returns: * Negative if left is "less" than right, 0 if they are equal, * positive if left is "greater" than right */ private static int compareInternal ( T ) ( T left, T right ) { static if ( is(T == ulong) || is(T == char) ) { if ( left < right ) return -1; else if ( left > right ) return 1; else return 0; } else static if ( is(T == bool) ) { if ( !left && right ) return -1; else if ( left && !right ) return 1; else return 0; } else { static assert(false, "Unknown value type: " ~ T.stringof); } } }
D
// COMPILE_SEPARATELY // EXTRA_SOURCES: imports/test55a.d // PERMUTE_ARGS: -dw // REQUIRED_ARGS: -d public import imports.test55a; class Queue { typedef int ListHead; Arm a; } class MessageQueue : Queue { } class Queue2 { typedef int ListHead; Arm2 a; }
D
/Users/zyang/SNGithub/Cosmos/Build/Intermediates/Cosmos.build/Debug-iphonesimulator/Cosmos.build/Objects-normal/x86_64/GaussianBlur.o : /Users/zyang/SNGithub/Cosmos/Cosmos/Curve.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Shape+Creation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Wedge.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Image.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Checkerboard.swift /Users/zyang/SNGithub/Cosmos/Cosmos/RegularPolygon.swift /Users/zyang/SNGithub/Cosmos/Cosmos/EventSource.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIImage+AddRemove.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Bloom.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Rectangle.swift /Users/zyang/SNGithub/Cosmos/Cosmos/AstrologicalSignProvider.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ScreenRecorder.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ImageLayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/HueAdjust.swift /Users/zyang/SNGithub/Cosmos/Cosmos/QuadCurve.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Vector.swift /Users/zyang/SNGithub/Cosmos/Cosmos/AppDelegate.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Image+Filter.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Stars.swift /Users/zyang/SNGithub/Cosmos/Cosmos/StarsBig.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+Shadow.swift /Users/zyang/SNGithub/Cosmos/Cosmos/StarsBackground.swift /Users/zyang/SNGithub/Cosmos/Cosmos/PlayerLayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Sepia.swift /Users/zyang/SNGithub/Cosmos/Cosmos/StarsSmall.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Transform.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Pixel.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Shape.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Line.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+Animation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Arc.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIGestureRecognizer+Closure.swift /Users/zyang/SNGithub/Cosmos/Cosmos/MenuShadow.swift /Users/zyang/SNGithub/Cosmos/Cosmos/GradientLayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/StoredAnimation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/MenuIcons.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Ellipse.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Foundation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+Border.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Rect.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIViewController+C4View.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Size.swift /Users/zyang/SNGithub/Cosmos/Cosmos/TextShape.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Image+Crop.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Color.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Star.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Circle.swift /Users/zyang/SNGithub/Cosmos/Cosmos/LinearGradient.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Font.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Movie.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Point.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Sharpen.swift /Users/zyang/SNGithub/Cosmos/Cosmos/DotScreen.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Filter.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Timer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Path.swift /Users/zyang/SNGithub/Cosmos/Cosmos/InfiniteScrollView.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIView+AddRemove.swift /Users/zyang/SNGithub/Cosmos/Cosmos/MenuSelector.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ViewAnimation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/CanvasController.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Animation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Generator.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+KeyValues.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+Render.swift /Users/zyang/SNGithub/Cosmos/Cosmos/InfoPanel.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ColorBurn.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Gradient.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Triangle.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Twirl.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Menu.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Math.swift /Users/zyang/SNGithub/Cosmos/Cosmos/SignLines.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Polygon.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Layer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ShapeLayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Image+Generator.swift /Users/zyang/SNGithub/Cosmos/Cosmos/GaussianBlur.swift /Users/zyang/SNGithub/Cosmos/Cosmos/WorkSpace.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIImage+Color.swift /Users/zyang/SNGithub/Cosmos/Cosmos/AudioPlayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/MenuRings.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Users/zyang/SNGithub/Cosmos/Build/Intermediates/Cosmos.build/Debug-iphonesimulator/Cosmos.build/Objects-normal/x86_64/GaussianBlur~partial.swiftmodule : /Users/zyang/SNGithub/Cosmos/Cosmos/Curve.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Shape+Creation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Wedge.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Image.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Checkerboard.swift /Users/zyang/SNGithub/Cosmos/Cosmos/RegularPolygon.swift /Users/zyang/SNGithub/Cosmos/Cosmos/EventSource.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIImage+AddRemove.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Bloom.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Rectangle.swift /Users/zyang/SNGithub/Cosmos/Cosmos/AstrologicalSignProvider.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ScreenRecorder.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ImageLayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/HueAdjust.swift /Users/zyang/SNGithub/Cosmos/Cosmos/QuadCurve.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Vector.swift /Users/zyang/SNGithub/Cosmos/Cosmos/AppDelegate.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Image+Filter.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Stars.swift /Users/zyang/SNGithub/Cosmos/Cosmos/StarsBig.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+Shadow.swift /Users/zyang/SNGithub/Cosmos/Cosmos/StarsBackground.swift /Users/zyang/SNGithub/Cosmos/Cosmos/PlayerLayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Sepia.swift /Users/zyang/SNGithub/Cosmos/Cosmos/StarsSmall.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Transform.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Pixel.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Shape.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Line.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+Animation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Arc.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIGestureRecognizer+Closure.swift /Users/zyang/SNGithub/Cosmos/Cosmos/MenuShadow.swift /Users/zyang/SNGithub/Cosmos/Cosmos/GradientLayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/StoredAnimation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/MenuIcons.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Ellipse.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Foundation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+Border.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Rect.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIViewController+C4View.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Size.swift /Users/zyang/SNGithub/Cosmos/Cosmos/TextShape.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Image+Crop.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Color.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Star.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Circle.swift /Users/zyang/SNGithub/Cosmos/Cosmos/LinearGradient.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Font.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Movie.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Point.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Sharpen.swift /Users/zyang/SNGithub/Cosmos/Cosmos/DotScreen.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Filter.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Timer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Path.swift /Users/zyang/SNGithub/Cosmos/Cosmos/InfiniteScrollView.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIView+AddRemove.swift /Users/zyang/SNGithub/Cosmos/Cosmos/MenuSelector.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ViewAnimation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/CanvasController.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Animation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Generator.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+KeyValues.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+Render.swift /Users/zyang/SNGithub/Cosmos/Cosmos/InfoPanel.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ColorBurn.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Gradient.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Triangle.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Twirl.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Menu.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Math.swift /Users/zyang/SNGithub/Cosmos/Cosmos/SignLines.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Polygon.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Layer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ShapeLayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Image+Generator.swift /Users/zyang/SNGithub/Cosmos/Cosmos/GaussianBlur.swift /Users/zyang/SNGithub/Cosmos/Cosmos/WorkSpace.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIImage+Color.swift /Users/zyang/SNGithub/Cosmos/Cosmos/AudioPlayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/MenuRings.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Users/zyang/SNGithub/Cosmos/Build/Intermediates/Cosmos.build/Debug-iphonesimulator/Cosmos.build/Objects-normal/x86_64/GaussianBlur~partial.swiftdoc : /Users/zyang/SNGithub/Cosmos/Cosmos/Curve.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Shape+Creation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Wedge.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Image.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Checkerboard.swift /Users/zyang/SNGithub/Cosmos/Cosmos/RegularPolygon.swift /Users/zyang/SNGithub/Cosmos/Cosmos/EventSource.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIImage+AddRemove.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Bloom.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Rectangle.swift /Users/zyang/SNGithub/Cosmos/Cosmos/AstrologicalSignProvider.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ScreenRecorder.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ImageLayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/HueAdjust.swift /Users/zyang/SNGithub/Cosmos/Cosmos/QuadCurve.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Vector.swift /Users/zyang/SNGithub/Cosmos/Cosmos/AppDelegate.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Image+Filter.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Stars.swift /Users/zyang/SNGithub/Cosmos/Cosmos/StarsBig.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+Shadow.swift /Users/zyang/SNGithub/Cosmos/Cosmos/StarsBackground.swift /Users/zyang/SNGithub/Cosmos/Cosmos/PlayerLayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Sepia.swift /Users/zyang/SNGithub/Cosmos/Cosmos/StarsSmall.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Transform.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Pixel.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Shape.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Line.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+Animation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Arc.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIGestureRecognizer+Closure.swift /Users/zyang/SNGithub/Cosmos/Cosmos/MenuShadow.swift /Users/zyang/SNGithub/Cosmos/Cosmos/GradientLayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/StoredAnimation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/MenuIcons.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Ellipse.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Foundation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+Border.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Rect.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIViewController+C4View.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Size.swift /Users/zyang/SNGithub/Cosmos/Cosmos/TextShape.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Image+Crop.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Color.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Star.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Circle.swift /Users/zyang/SNGithub/Cosmos/Cosmos/LinearGradient.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Font.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Movie.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Point.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Sharpen.swift /Users/zyang/SNGithub/Cosmos/Cosmos/DotScreen.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Filter.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Timer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Path.swift /Users/zyang/SNGithub/Cosmos/Cosmos/InfiniteScrollView.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIView+AddRemove.swift /Users/zyang/SNGithub/Cosmos/Cosmos/MenuSelector.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ViewAnimation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/CanvasController.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Animation.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Generator.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+KeyValues.swift /Users/zyang/SNGithub/Cosmos/Cosmos/View+Render.swift /Users/zyang/SNGithub/Cosmos/Cosmos/InfoPanel.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ColorBurn.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Gradient.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Triangle.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Twirl.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Menu.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Math.swift /Users/zyang/SNGithub/Cosmos/Cosmos/SignLines.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Polygon.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Layer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/ShapeLayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/Image+Generator.swift /Users/zyang/SNGithub/Cosmos/Cosmos/GaussianBlur.swift /Users/zyang/SNGithub/Cosmos/Cosmos/WorkSpace.swift /Users/zyang/SNGithub/Cosmos/Cosmos/UIImage+Color.swift /Users/zyang/SNGithub/Cosmos/Cosmos/AudioPlayer.swift /Users/zyang/SNGithub/Cosmos/Cosmos/MenuRings.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule
D
import std.ascii: lowercase; void main() {}
D
/Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/MultipartFormData.o : /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/MultipartFormData.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/Timeline.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/Alamofire.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/Response.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/TaskDelegate.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/SessionDelegate.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/ParameterEncoding.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/Validation.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/ResponseSerialization.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/SessionManager.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/AFError.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/Notifications.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/Result.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/Request.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/ServerTrustPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/build/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/MultipartFormData~partial.swiftmodule : /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/MultipartFormData.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/Timeline.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/Alamofire.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/Response.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/TaskDelegate.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/SessionDelegate.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/ParameterEncoding.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/Validation.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/ResponseSerialization.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/SessionManager.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/AFError.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/Notifications.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/Result.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/Request.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/ServerTrustPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/build/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/MultipartFormData~partial.swiftdoc : /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/MultipartFormData.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/Timeline.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/Alamofire.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/Response.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/TaskDelegate.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/SessionDelegate.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/ParameterEncoding.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/Validation.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/ResponseSerialization.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/SessionManager.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/AFError.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/Notifications.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/Result.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/Request.swift /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Alamofire/Source/ServerTrustPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/akamatechayapiwat/Desktop/SwiftProject/Clima-iOS11-master/build/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
module hunt.wechat.bean.message.MessageSendResult; import hunt.wechat.bean.BaseResult; class MessageSendResult : BaseResult{ private string type; private string msg_id; private string msg_status; private Long msg_data_id; //消息的数据ID,该字段只有在群发图文消息时,才会出现。可以用于在图文分析数据接口中,获取到对应的图文消息的数据,是图文分析数据接口中的msgid字段中的前半部分,详见图文分析数据接口中的msgid字段的介绍。 public string getType() { return type; } public void setType(string type) { this.type = type; } public string getMsg_id() { return msg_id; } public void setMsg_id(string msg_id) { this.msg_id = msg_id; } public string getMsg_status() { return msg_status; } public void setMsg_status(string msg_status) { this.msg_status = msg_status; } public Long getMsg_data_id() { return msg_data_id; } public void setMsg_data_id(Long msg_data_id) { this.msg_data_id = msg_data_id; } }
D
/Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Console.build/Utilities/String+Trim.swift.o : /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Bar/Bar.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Command/Argument.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Command/Command+Print.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Command/Command.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Command/Group.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Command/Option.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Command/Runnable.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Command/Value.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Console+Ask.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Console+Center.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Console+Confirm.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Console+Options.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Console+Print.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Console+Run.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Console.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/ConsoleError.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Stream/FileHandle+Stream.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Stream/Pipe+Stream.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Stream/Stream.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Terminal/ConsoleColor+Terminal.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Terminal/ConsoleStyle+Terminal.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Terminal/String+ANSI.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Terminal/Terminal+Command.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Terminal/Terminal.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Utilities/Bool+Polymorphic.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Utilities/String+Trim.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Bar/Loading/Console+LoadingBar.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Bar/Loading/LoadingBar.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Bar/Progress/Console+ProgressBar.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Bar/Progress/ProgressBar.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Clear/ConsoleClear.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Color/ConsoleColor.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Style/Console+ConsoleStyle.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Style/ConsoleStyle.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/libc.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Polymorphic.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/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Core.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Console.build/String+Trim~partial.swiftmodule : /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Bar/Bar.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Command/Argument.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Command/Command+Print.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Command/Command.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Command/Group.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Command/Option.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Command/Runnable.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Command/Value.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Console+Ask.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Console+Center.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Console+Confirm.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Console+Options.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Console+Print.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Console+Run.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Console.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/ConsoleError.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Stream/FileHandle+Stream.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Stream/Pipe+Stream.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Stream/Stream.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Terminal/ConsoleColor+Terminal.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Terminal/ConsoleStyle+Terminal.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Terminal/String+ANSI.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Terminal/Terminal+Command.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Terminal/Terminal.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Utilities/Bool+Polymorphic.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Utilities/String+Trim.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Bar/Loading/Console+LoadingBar.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Bar/Loading/LoadingBar.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Bar/Progress/Console+ProgressBar.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Bar/Progress/ProgressBar.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Clear/ConsoleClear.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Color/ConsoleColor.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Style/Console+ConsoleStyle.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Style/ConsoleStyle.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/libc.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Polymorphic.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/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Core.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Console.build/String+Trim~partial.swiftdoc : /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Bar/Bar.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Command/Argument.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Command/Command+Print.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Command/Command.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Command/Group.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Command/Option.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Command/Runnable.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Command/Value.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Console+Ask.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Console+Center.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Console+Confirm.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Console+Options.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Console+Print.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Console+Run.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Console.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/ConsoleError.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Stream/FileHandle+Stream.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Stream/Pipe+Stream.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Stream/Stream.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Terminal/ConsoleColor+Terminal.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Terminal/ConsoleStyle+Terminal.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Terminal/String+ANSI.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Terminal/Terminal+Command.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Terminal/Terminal.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Utilities/Bool+Polymorphic.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Utilities/String+Trim.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Bar/Loading/Console+LoadingBar.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Bar/Loading/LoadingBar.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Bar/Progress/Console+ProgressBar.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Bar/Progress/ProgressBar.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Clear/ConsoleClear.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Color/ConsoleColor.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Style/Console+ConsoleStyle.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Console-1.0.2/Sources/Console/Console/Style/ConsoleStyle.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/libc.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Polymorphic.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/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Core.swiftmodule
D
/* * DSFML - The Simple and Fast Multimedia Library for D * * Copyright (c) 2013 - 2018 Jeremy DeHaan (dehaan.jeremiah@gmail.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 * * * DSFML is based on SFML (Copyright Laurent Gomila) */ /// A module containing the sleep function. module dsfml.system.sleep; import core.time; /** * Make the current thread sleep for a given duration. * * sleep is the best way to block a program or one of its threads, as it doesn't * consume any CPU power. * * Params: * duration = The length of time to sleep for */ void sleep(Duration duration) { import core.thread; Thread.sleep(duration); } unittest { version(DSFML_Unittest_System) { import std.stdio; writeln("Unit test for sleep function"); writeln("Start!(sleeping for 1 second)"); sleep(seconds(1)); writeln("Done! Now sleeping for 2 seconds."); sleep(seconds(2)); writeln("Done! I think you get the idea."); writeln(); } }
D
module amigos.minid.arc_wrap.window; import amigos.minid.api; import amigos.minid.bind; import arc.window; void init(MDThread* t) { WrapModule! ( "arc.window", WrapFunc!(arc.window.open), WrapFunc!(arc.window.close), WrapFunc!(arc.window.getWidth), WrapFunc!(arc.window.getHeight), WrapFunc!(arc.window.getSize), WrapFunc!(arc.window.isFullScreen), WrapFunc!(arc.window.resize), WrapFunc!(arc.window.toggleFullScreen), WrapFunc!(arc.window.clear), WrapFunc!(arc.window.swap), WrapFunc!(arc.window.swapClear), WrapFunc!(arc.window.screenshot), WrapNamespace! ( "coordinates", WrapFunc!(arc.window.coordinates.setSize), WrapFunc!(arc.window.coordinates.setOrigin), WrapFunc!(arc.window.coordinates.getSize), WrapFunc!(arc.window.coordinates.getOrigin), WrapFunc!(arc.window.coordinates.getWidth), WrapFunc!(arc.window.coordinates.getHeight) ) )(t); }
D
import std.stdio; import std.algorithm; import std.traits; import std.range; import std.string: format; import multi_index; template Testsies(Allocator) { unittest{ // sequenced index only alias MultiIndexContainer!(int, IndexedBy!(Sequenced!()),Allocator) C1; C1 c = C1.create(); c.insert(1); c.insert(2); c.insert(1); c.insert(2); assert(equal(c[], [1,2,1,2])); assert(c.toString0() == "[1, 2, 1, 2]"); c.insert([45,67,101]); assert(equal(c[], [1,2,1,2,45,67,101])); c.insertFront([-1,0,0,8]); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101])); c.insertBack([13,14]); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101,13,14])); c.insertFront(-2); assert(equal(c[], [-2,-1,0,0,8,1,2,1,2,45,67,101,13,14])); c.insertBack(15); assert(equal(c[], [-2,-1,0,0,8,1,2,1,2,45,67,101,13,14,15])); assert(c.front() == -2); c.removeFront(); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101,13,14,15])); assert(c.front() == -1); assert(c.back() == 15); c.removeBack(); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101,13,14])); assert(c.back() == 14); c.removeAny(); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101,13])); auto r = c[]; popFrontN(r, 6); auto t = take(PSR(r), 3); c.remove(t); assert(equal(c[], [-1,0,0,8,1,2,67,101,13])); r = c[]; popFrontN(r, 7); c.remove(r); assert(equal(c[], [-1,0,0,8,1,2,67])); c.remove(filter!"a.v < 2"(PSR(c[]))); assert(equal(c[], [8,2,67])); c.remove(filter!"a.v < 3"(retro(PSR(c[])))); assert(equal(c[], [8,67])); c.insertFront([1,5,223,9,10]); assert(equal(c[], [1,5,223,9,10,8,67])); c.modify(filter!"a.v % 2 == 1"(PSR(c[])), (ref int i) { i = -i; }); /+ r = c[]; while(!r.empty){ if(r.front % 2) c.modify(r, (ref int i){ i = -i; }); r.popFront(); } +/ assert(equal(c[], [-1,-5,-223,-9,10,8,-67])); c.modify(filter!"a.v % 3 != 0"(retro(PSR(c[]))), (ref int i){ i = -i; }); /+ auto rr = retro(PSR(c[])); while(!rr.empty){ if(rr.front.v % 3) c.modify(rr, (ref int i){ i = -i; }); rr.popFront(); } +/ assert(equal(c[], [1,5,223,-9,-10,-8,67])); c.front = 4; assert(equal(c[], [4,5,223,-9,-10,-8,67])); c.back = 42; assert(equal(c[], [4,5,223,-9,-10,-8,42])); } // again, but for immutable(int) unittest{ // sequenced index only alias MultiIndexContainer!(immutable(int), IndexedBy!(Sequenced!()),Allocator) C1; C1 c = C1.create(); c.insert(1); c.insert(2); c.insert(1); c.insert(2); assert(equal(c[], [1,2,1,2])); assert(c.toString0() == "[1, 2, 1, 2]"); c.insert([45,67,101]); assert(equal(c[], [1,2,1,2,45,67,101])); c.insertFront([-1,0,0,8]); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101])); c.insertBack([13,14]); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101,13,14])); c.insertFront(-2); assert(equal(c[], [-2,-1,0,0,8,1,2,1,2,45,67,101,13,14])); c.insertBack(15); assert(equal(c[], [-2,-1,0,0,8,1,2,1,2,45,67,101,13,14,15])); assert(c.front() == -2); c.removeFront(); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101,13,14,15])); assert(c.front() == -1); assert(c.back() == 15); c.removeBack(); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101,13,14])); assert(c.back() == 14); c.removeAny(); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101,13])); auto r = c[]; popFrontN(r, 6); auto t = take(PSR(r), 3); c.remove(t); assert(equal(c[], [-1,0,0,8,1,2,67,101,13])); r = c[]; popFrontN(r, 7); c.remove(r); assert(equal(c[], [-1,0,0,8,1,2,67])); c.remove(filter!"a.v < 2"(PSR(c[]))); assert(equal(c[], [8,2,67])); c.remove(filter!"a.v < 3"(retro(PSR(c[])))); assert(equal(c[], [8,67])); c.insertFront([1,5,223,9,10]); assert(equal(c[], [1,5,223,9,10,8,67])); c.front = 4; assert(equal(c[], [4,5,223,9,10,8,67])); c.back = 42; assert(equal(c[], [4,5,223,9,10,8,42])); auto posrng = PSR(c[]); auto replace_count = c.replace(posrng.front, 3); assert(replace_count == 1); assert(equal(c[], [3,5,223,9,10,8,42])); replace_count = c.replace(posrng.front, 3); assert(replace_count == 1); assert(equal(c[], [3,5,223,9,10,8,42])); } unittest{ // sequenced index only - mutable view alias MultiIndexContainer!(int, IndexedBy!(Sequenced!()), MutableView, Allocator, ) C1; C1 c = C1.create(); c.insert(1); c.insert(2); c.insert(1); c.insert(2); assert(equal(c[], [1,2,1,2])); c.insert([45,67,101]); assert(equal(c[], [1,2,1,2,45,67,101])); c.insertFront([-1,0,0,8]); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101])); c.insertBack([13,14]); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101,13,14])); c.insertFront(-2); assert(equal(c[], [-2,-1,0,0,8,1,2,1,2,45,67,101,13,14])); c.insertBack(15); assert(equal(c[], [-2,-1,0,0,8,1,2,1,2,45,67,101,13,14,15])); assert(c.front == -2); c.removeFront(); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101,13,14,15])); assert(c.front == -1); assert(c.back == 15); c.removeBack(); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101,13,14])); assert(c.back == 14); c.removeAny(); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101,13])); auto r = c[]; popFrontN(r, 6); auto t = take(PSR(r), 3); c.remove(t); assert(equal(c[], [-1,0,0,8,1,2,67,101,13])); r = c[]; popFrontN(r, 7); c.remove(r); assert(equal(c[], [-1,0,0,8,1,2,67])); c.remove(filter!"a.v < 2"(PSR(c[]))); assert(equal(c[], [8,2,67])); c.remove(filter!"a.v < 3"(retro(PSR(c[])))); assert(equal(c[], [8,67])); c.insertFront([1,5,223,9,10]); assert(equal(c[], [1,5,223,9,10,8,67])); c.modify(filter!"a.v % 2 == 1"(PSR(c[])), (ref int i){ i = -i; }); /+ r = c[]; while(!r.empty){ if(r.front % 2) c.modify(r, (ref int i){ i = -i; }); r.popFront(); } +/ assert(equal(c[], [-1,-5,-223,-9,10,8,-67])); c.modify(filter!"a.v % 3 != 0"(retro(PSR(c[]))), (ref int i){ i = -i; }); /+ auto rr = retro(PSR(c[])); while(!rr.empty){ if(rr.front.v % 3) c.modify(rr, (ref int i){ i = -i; }); rr.popFront(); } +/ assert(equal(c[], [1,5,223,-9,-10,-8,67])); auto posrng = PSR(c[]); auto replace_count = c.replace(posrng.front, 3); assert(replace_count == 1); assert(equal(c[], [3,5,223,-9,-10,-8,67])); replace_count = c.replace(posrng.front, 3); assert(replace_count == 1); assert(equal(c[], [3,5,223,-9,-10,-8,67])); } unittest{ // sequenced, sequenced alias MultiIndexContainer!(int, IndexedBy!(Sequenced!(), Sequenced!()), Allocator) C1; C1 a = C1.create(); auto c = a.get_index!0; auto d = a.get_index!1; c.insert(1); c.insert(2); c.insert(1); c.insert(2); assert(equal(c[], [1,2,1,2])); assert(equal(d[], [1,2,1,2])); c.insert([45,67,101]); assert(equal(c[], [1,2,1,2,45,67,101])); assert(equal(d[], [1,2,1,2,45,67,101])); c.insertFront([-1,0,0,8]); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101])); assert(equal(d[], [1,2,1,2,45,67,101,-1,0,0,8])); c.insertBack([13,14]); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101,13,14])); assert(equal(d[], [1,2,1,2,45,67,101,-1,0,0,8,13,14])); c.insertFront(-2); assert(equal(c[], [-2,-1,0,0,8,1,2,1,2,45,67,101,13,14])); assert(equal(d[], [1,2,1,2,45,67,101,-1,0,0,8,13,14,-2])); c.insertBack(15); assert(equal(c[], [-2,-1,0,0,8,1,2,1,2,45,67,101,13,14,15])); assert(equal(d[], [1,2,1,2,45,67,101,-1,0,0,8,13,14,-2,15])); assert(c.front() == -2); assert(d.front() == 1); c.removeFront(); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101,13,14,15])); assert(equal(d[], [1,2,1,2,45,67,101,-1,0,0,8,13,14,15])); assert(c.front() == -1); assert(d.front() == 1); assert(c.back() == 15); assert(d.back() == 15); c.removeBack(); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101,13,14])); assert(equal(d[], [1,2,1,2,45,67,101,-1,0,0,8,13,14])); assert(c.back() == 14); assert(d.back() == 14); c.removeAny(); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101,13])); assert(equal(d[], [1,2,1,2,45,67,101,-1,0,0,8,13])); auto r = c[]; popFrontN(r, 6); auto t = take(PSR(r), 3); c.remove(t); assert(equal(c[], [-1,0,0,8,1,2,67,101,13])); assert(equal(d[], [1,2,67,101,-1,0,0,8,13])); r = c[]; popFrontN(r, 7); c.remove(r); assert(equal(c[], [-1,0,0,8,1,2,67])); assert(equal(d[], [1,2,67,-1,0,0,8])); c.remove(filter!"a.v < 2"(PSR(c[]))); assert(equal(c[], [8,2,67])); assert(equal(d[], [2,67,8])); c.remove(filter!"a.v < 3"(PSR(d[]))); assert(equal(c[], [8,67])); assert(equal(d[], [67,8])); c.insertFront([1,5,223,9,10]); assert(equal(c[], [1,5,223,9,10,8,67])); assert(equal(d[], [67,8,1,5,223,9,10])); c.modify(filter!"a.v % 2 == 1"(PSR(c[])), (ref int i) { i = -i; }); /+ r = c[]; while(!r.empty){ if(r.front % 2) c.modify(r, (ref int i){ i = -i; }); r.popFront(); } +/ assert(equal(c[], [-1,-5,-223,-9,10,8,-67])); assert(equal(d[], [-67,8,-1,-5,-223,-9,10])); c.modify(filter!"a.v % 3 != 0"(retro(PSR(c[]))), (ref int i){ i = -i; }); /+ auto rr = retro(PSR(c[])); while(!rr.empty){ if(rr.front.v % 3) c.modify(rr, (ref int i){ i = -i; }); rr.popFront(); } +/ assert(equal(c[], [1,5,223,-9,-10,-8,67])); assert(equal(d[], [67,-8,1,5,223,-9,-10])); auto posrng = PSR(c[]); auto replace_count = c.replace(posrng.front, 3); assert(replace_count == 1); assert(equal(c[], [3,5,223,-9,-10,-8,67])); assert(equal(d[], [67,-8,3,5,223,-9,-10])); replace_count = c.replace(posrng.front, 3); assert(replace_count == 1); assert(equal(c[], [3,5,223,-9,-10,-8,67])); assert(equal(d[], [67,-8,3,5,223,-9,-10])); auto posrng2 = PSR(d[]); replace_count = d.replace(posrng2.front, 69); assert(replace_count == 1); assert(equal(c[], [3,5,223,-9,-10,-8,69])); assert(equal(d[], [69,-8,3,5,223,-9,-10])); replace_count = d.replace(posrng2.front, 69); assert(replace_count == 1); assert(equal(c[], [3,5,223,-9,-10,-8,69])); assert(equal(d[], [69,-8,3,5,223,-9,-10])); replace_count = c.replace(posrng2.front, 70); assert(replace_count == 1); assert(equal(c[], [3,5,223,-9,-10,-8,70])); assert(equal(d[], [70,-8,3,5,223,-9,-10])); replace_count = c.replace(posrng2.front, 70); assert(replace_count == 1); assert(equal(c[], [3,5,223,-9,-10,-8,70])); assert(equal(d[], [70,-8,3,5,223,-9,-10])); } // again, but with immutable(int) unittest{ // sequenced, sequenced alias MultiIndexContainer!(immutable(int), IndexedBy!(Sequenced!(), Sequenced!()), Allocator) C1; C1 a = C1.create(); auto c = a.get_index!0; auto d = a.get_index!1; c.insert(1); c.insert(2); c.insert(1); c.insert(2); assert(equal(c[], [1,2,1,2])); assert(equal(d[], [1,2,1,2])); c.insert([45,67,101]); assert(equal(c[], [1,2,1,2,45,67,101])); assert(equal(d[], [1,2,1,2,45,67,101])); c.insertFront([-1,0,0,8]); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101])); assert(equal(d[], [1,2,1,2,45,67,101,-1,0,0,8])); c.insertBack([13,14]); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101,13,14])); assert(equal(d[], [1,2,1,2,45,67,101,-1,0,0,8,13,14])); c.insertFront(-2); assert(equal(c[], [-2,-1,0,0,8,1,2,1,2,45,67,101,13,14])); assert(equal(d[], [1,2,1,2,45,67,101,-1,0,0,8,13,14,-2])); c.insertBack(15); assert(equal(c[], [-2,-1,0,0,8,1,2,1,2,45,67,101,13,14,15])); assert(equal(d[], [1,2,1,2,45,67,101,-1,0,0,8,13,14,-2,15])); assert(c.front() == -2); assert(d.front() == 1); c.removeFront(); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101,13,14,15])); assert(equal(d[], [1,2,1,2,45,67,101,-1,0,0,8,13,14,15])); assert(c.front() == -1); assert(d.front() == 1); assert(c.back() == 15); assert(d.back() == 15); c.removeBack(); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101,13,14])); assert(equal(d[], [1,2,1,2,45,67,101,-1,0,0,8,13,14])); assert(c.back() == 14); assert(d.back() == 14); c.removeAny(); assert(equal(c[], [-1,0,0,8,1,2,1,2,45,67,101,13])); assert(equal(d[], [1,2,1,2,45,67,101,-1,0,0,8,13])); auto r = c[]; popFrontN(r, 6); auto t = take(PSR(r), 3); c.remove(t); assert(equal(c[], [-1,0,0,8,1,2,67,101,13])); assert(equal(d[], [1,2,67,101,-1,0,0,8,13])); r = c[]; popFrontN(r, 7); c.remove(r); assert(equal(c[], [-1,0,0,8,1,2,67])); assert(equal(d[], [1,2,67,-1,0,0,8])); c.remove(filter!"a.v < 2"(PSR(c[]))); assert(equal(c[], [8,2,67])); assert(equal(d[], [2,67,8])); c.remove(filter!"a.v < 3"(PSR(d[]))); assert(equal(c[], [8,67])); assert(equal(d[], [67,8])); c.insertFront([1,5,223,9,10]); assert(equal(c[], [1,5,223,9,10,8,67])); assert(equal(d[], [67,8,1,5,223,9,10])); auto posrng = PSR(c[]); auto replace_count = c.replace(posrng.front, 3); assert(replace_count == 1); assert(equal(c[], [3,5,223,9,10,8,67])); assert(equal(d[], [67,8,3,5,223,9,10])); auto rng2 = d[]; auto posrng2 = PSR(rng2); assert(!posrng2.empty); assert(!rng2.empty); replace_count = c.replace(posrng2.front, 69); assert(replace_count == 1); assert(equal(c[], [3,5,223,9,10,8,69])); assert(equal(d[], [69,8,3,5,223,9,10])); replace_count = d.replace(posrng2.front, 69); assert(replace_count == 1); assert(equal(c[], [3,5,223,9,10,8,69])); assert(equal(d[], [69,8,3,5,223,9,10])); rng2.popFront(); posrng2.popFront(); assert(!rng2.empty); assert(!posrng2.empty); replace_count = d.replace(posrng2.front, 7); assert(equal(c[], [3,5,223,9,10,7,69])); assert(equal(d[], [69,7,3,5,223,9,10])); } unittest{ class A{ int i; int j; double d; this(int _i, int _j, double _d){ i=_i; j=_j; d=_d; } override bool opEquals(Object _a){ A a = cast(A) _a; if (!a) return false; return i==a.i&&j==a.j&&d==a.d; } override string toString()const{ return format("%s %s %s", i,j,d); } } alias MultiIndexContainer!(A, IndexedBy!(Sequenced!()), Allocator) C; C c = C.create(); c.insert(new A(1,2,3.4)); c.insert(new A(4,2,4.2)); c.insert(new A(10,20,42)); assert(equal(c[], [new A(1,2,3.4), new A(4,2,4.2), new A(10,20,42)])); foreach(g; c[]){} auto r = c[]; r.popFront(); assert(equal(r.save(),[new A(4,2,4.2), new A(10,20,42)])); c.modify(takeOne(PSR(r)), (ref A a){ a.j = 55; a.d = 3.14; }); assert(equal(c[], [new A(1,2,3.4), new A(4,55,3.14), new A(10,20,42)])); c.insertFront(new A(3,2,1.1)); assert(equal(c[], [new A(3,2,1.1), new A(1,2,3.4), new A(4,55,3.14), new A(10,20,42)])); c.insertFront([new A(3,2,1.1), new A(4,5,1.2)]); assert(equal(c[], [new A(3,2,1.1), new A(4,5,1.2), new A(3,2,1.1), new A(1,2,3.4), new A(4,55,3.14), new A(10,20,42)])); c.front = new A(2,2,2.2); assert(equal(c[], [new A(2,2,2.2), new A(4,5,1.2), new A(3,2,1.1), new A(1,2,3.4), new A(4,55,3.14), new A(10,20,42)])); c.back = cast() c.front; assert(equal(c[], [new A(2,2,2.2), new A(4,5,1.2), new A(3,2,1.1), new A(1,2,3.4), new A(4,55,3.14), new A(2,2,2.2)])); auto posrng = PSR(c[]); auto replace_count = c.replace(posrng.back, new A(7,3,67.4)); assert(replace_count == 1); assert(equal(c[], [new A(2,2,2.2), new A(4,5,1.2), new A(3,2,1.1), new A(1,2,3.4), new A(4,55,3.14), new A(7,3,67.4)])); replace_count = c.replace(posrng.back, new A(7,3,67.4)); assert(replace_count == 1); assert(equal(c[], [new A(2,2,2.2), new A(4,5,1.2), new A(3,2,1.1), new A(1,2,3.4), new A(4,55,3.14), new A(7,3,67.4)])); alias MultiIndexContainer!(A, IndexedBy!(Sequenced!()), Allocator, MutableView) C2; C2 c2 = C2.create(); c2.insert(new A(1,2,3.4)); c2.front.j = 4; c2[].front.j = 5; c2.back.j = 6; c2[].back.j = 7; } // again, but with immutable(A) unittest{ class _A{ int i; int j; double d; this(int _i, int _j, double _d){ i=_i; j=_j; d=_d; } override bool opEquals(Object _a){ _A a = cast(_A) _a; if (!a) return false; return i==a.i&&j==a.j&&d==a.d; } override string toString()const{ return format("%s %s %s", i,j,d); } } alias immutable(_A) A; alias MultiIndexContainer!(A, IndexedBy!(Sequenced!()), Allocator) C; C c = C.create; c.insert( cast(immutable) new _A(1,2,3.4)); c.insert( cast(immutable) new _A(4,2,4.2)); c.insert( cast(immutable) new _A(10,20,42)); assert(equal(c[], [cast(immutable) new _A(1,2,3.4), cast(immutable) new _A(4,2,4.2), cast(immutable) new _A(10,20,42)])); foreach(g; c[]){} auto r = c[]; r.popFront(); assert(equal(r.save(),[cast(immutable) new _A(4,2,4.2), cast(immutable) new _A(10,20,42)])); c.insertFront(cast(immutable) new _A(3,2,1.1)); assert(equal(c[], [cast(immutable) new _A(3,2,1.1), cast(immutable) new _A(1,2,3.4), cast(immutable) new _A(4,2,4.2), cast(immutable) new _A(10,20,42)])); c.insertFront([cast(immutable) new _A(3,2,1.1), cast(immutable) new _A(4,5,1.2)]); assert(equal(c[], [cast(immutable) new _A(3,2,1.1), cast(immutable) new _A(4,5,1.2), cast(immutable) new _A(3,2,1.1), cast(immutable) new _A(1,2,3.4), cast(immutable) new _A(4,2,4.2), cast(immutable) new _A(10,20,42)])); c.front = cast(immutable) new _A(2,2,2.2); assert(equal(c[], [cast(immutable) new _A(2,2,2.2), cast(immutable) new _A(4,5,1.2), cast(immutable) new _A(3,2,1.1), cast(immutable) new _A(1,2,3.4), cast(immutable) new _A(4,2,4.2), cast(immutable) new _A(10,20,42)])); c.back = c.front; assert(equal(c[], [cast(immutable) new _A(2,2,2.2), cast(immutable) new _A(4,5,1.2), cast(immutable) new _A(3,2,1.1), cast(immutable) new _A(1,2,3.4), cast(immutable) new _A(4,2,4.2), cast(immutable) new _A(2,2,2.2)])); auto posrng = PSR(c[]); auto replace_count = c.replace(posrng.back, cast(immutable) new _A(7,3,67.4)); assert(replace_count == 1); assert(equal(c[], [cast(immutable) new _A(2,2,2.2), cast(immutable) new _A(4,5,1.2), cast(immutable) new _A(3,2,1.1), cast(immutable) new _A(1,2,3.4), cast(immutable) new _A(4,2,4.2), cast(immutable) new _A(7,3,67.4)])); replace_count = c.replace(posrng.back, cast(immutable) new _A(7,3,67.4)); assert(replace_count == 1); assert(equal(c[], [cast(immutable) new _A(2,2,2.2), cast(immutable) new _A(4,5,1.2), cast(immutable) new _A(3,2,1.1), cast(immutable) new _A(1,2,3.4), cast(immutable) new _A(4,2,4.2), cast(immutable) new _A(7,3,67.4)])); } // test rearrangement unittest{ alias MultiIndexContainer!(int, IndexedBy!(Sequenced!()),Allocator) C1; C1 c = C1.create; c.insert(iota(20)); auto r = c[]; while(r.empty == false){ if(r.front() % 2 == 1){ c.relocateFront(r,c[]); }else{ r.popFront(); } } assert(equal(c[], [19,17,15,13,11,9,7,5,3,1,0,2,4,6,8,10,12,14,16,18])); c.clear(); c.insert(iota(20)); r = c[]; while(r.empty == false){ if(r.front() % 2 == 0){ c.relocateFront(r,c[]); }else{ r.popFront(); } } assert(equal(c[], [18,16,14,12,10,8,6,4,2,0,1,3,5,7,9,11,13,15,17,19])); auto c0 = array(c[]); { r = drop(c[],19); auto r2 = drop(c[],4); assert(equal(r,[19])); assert(equal(r2,[10,8,6,4,2,0,1,3,5,7,9,11,13,15,17,19])); c.relocateFront(r2,r); assert(equal(c[], [18,16,14,12,8,6,4,2,0,1,3,5,7,9,11,13,15,17,10,19])); assert(equal(r,[19])); assert(equal(r2,[8,6,4,2,0,1,3,5,7,9,11,13,15,17,10,19])); c.relocateFront(r2,r); assert(equal(c[], [18,16,14,12,6,4,2,0,1,3,5,7,9,11,13,15,17,10,8,19])); assert(equal(r,[19])); assert(equal(r2,[6,4,2,0,1,3,5,7,9,11,13,15,17,10,8,19])); popBackN(r2,5); assert(equal(r2,[6,4,2,0,1,3,5,7,9,11,13])); c.relocateBack(r2,r); assert(equal(c[], [18,16,14,12,6,4,2,0,1,3,5,7,9,11,15,17,10,8,19,13])); assert(equal(r2,[6,4,2,0,1,3,5,7,9,11])); assert(equal(r,[19])); } alias MultiIndexContainer!(int, IndexedBy!(Sequenced!(),OrderedUnique!()),Allocator) C2; C2 z = C2.create; auto z0 = z.get_index!0; auto z1 = z.get_index!1; z0.insert(c0); assert(equal(z0[],[18,16,14,12,10,8,6,4,2,0,1,3,5,7,9,11,13,15,17,19])); assert(equal(z1[],iota(20))); /+ auto r2 = z1.upperBound(0); // should be called aboveBound?! auto r3 = z.to_range!0(r2); assert(equal(r3, [1,3,5,7,9,11,13,15,17,19])); +/ } // again, but with immutable(int) unittest{ alias MultiIndexContainer!(immutable(int), IndexedBy!(Sequenced!()),Allocator) C1; C1 c = C1.create; c.insert(iota(20)); auto r = c[]; while(r.empty == false){ if(r.front() % 2 == 1){ c.relocateFront(r,c[]); }else{ r.popFront(); } } assert(equal(c[], [19,17,15,13,11,9,7,5,3,1,0,2,4,6,8,10,12,14,16,18])); c.clear(); c.insert(iota(20)); r = c[]; while(r.empty == false){ if(r.front() % 2 == 0){ c.relocateFront(r,c[]); }else{ r.popFront(); } } assert(equal(c[], [18,16,14,12,10,8,6,4,2,0,1,3,5,7,9,11,13,15,17,19])); auto c0 = array(c[]); { r = drop(c[],19); auto r2 = drop(c[],4); assert(equal(r,[19])); assert(equal(r2,[10,8,6,4,2,0,1,3,5,7,9,11,13,15,17,19])); c.relocateFront(r2,r); assert(equal(c[], [18,16,14,12,8,6,4,2,0,1,3,5,7,9,11,13,15,17,10,19])); assert(equal(r,[19])); assert(equal(r2,[8,6,4,2,0,1,3,5,7,9,11,13,15,17,10,19])); c.relocateFront(r2,r); assert(equal(c[], [18,16,14,12,6,4,2,0,1,3,5,7,9,11,13,15,17,10,8,19])); assert(equal(r,[19])); assert(equal(r2,[6,4,2,0,1,3,5,7,9,11,13,15,17,10,8,19])); popBackN(r2,5); assert(equal(r2,[6,4,2,0,1,3,5,7,9,11,13])); c.relocateBack(r2,r); assert(equal(c[], [18,16,14,12,6,4,2,0,1,3,5,7,9,11,15,17,10,8,19,13])); assert(equal(r2,[6,4,2,0,1,3,5,7,9,11])); assert(equal(r,[19])); } alias MultiIndexContainer!(int, IndexedBy!(Sequenced!(),OrderedUnique!()),Allocator) C2; C2 z = C2.create; auto z0 = z.get_index!0; auto z1 = z.get_index!1; z0.insert(c0); assert(equal(z0[],[18,16,14,12,10,8,6,4,2,0,1,3,5,7,9,11,13,15,17,19])); assert(equal(z1[],iota(20))); /+ auto r2 = z1.upperBound(0); // should be called aboveBound?! auto r3 = z.to_range!0(r2); assert(equal(r3, [1,3,5,7,9,11,13,15,17,19])); +/ } } mixin Testsies!(GCAllocator) X; mixin Testsies!(MallocAllocator) Y;
D
United States singer and film actress (1922-1969) a city in northeastern Texas (suburb of Dallas) an anthology of short literary pieces and poems and ballads etc. flower arrangement consisting of a circular band of foliage or flowers for ornamental purposes adorn with bands of flowers or leaves
D
instance NOV_1337_Novize(Npc_Default) { name[0] = NAME_Novize; npcType = npctype_ambient; guild = GIL_NOV; level = 3; voice = 2; id = 1337; attribute[ATR_STRENGTH] = 20; attribute[ATR_DEXTERITY] = 20; attribute[ATR_MANA_MAX] = 0; attribute[ATR_MANA] = 0; attribute[ATR_HITPOINTS_MAX] = 106; attribute[ATR_HITPOINTS] = 106; Mdl_SetVisual(self,"HUMANS.MDS"); Mdl_ApplyOverlayMds(self,"Humans_Relaxed.mds"); Mdl_SetVisualBody(self,"hum_body_Naked0",1,1,"Hum_Head_FatBald",31,2,nov_armor_l); B_Scale(self); Mdl_SetModelFatness(self,-1); fight_tactic = FAI_HUMAN_COWARD; EquipItem(self,ItMw_1H_Hatchet_01); CreateInvItem(self,ItFoSoup); daily_routine = Rtn_start_1337; }; func void Rtn_start_1337() { TA_Meditate(8,0,10,0,"PSI_TEMPLE_COURT_2_MOVEMENT"); TA_Meditate(10,0,8,0,"PSI_TEMPLE_COURT_2_MOVEMENT"); }; func void Rtn_Ritual_1337() { TA_Stay(8,0,10,0,"PSI_TEMPLE_NOVIZE_PR2"); TA_Stay(10,0,8,0,"PSI_TEMPLE_NOVIZE_PR2"); }; func void rtn_graveyard_1337() { TA_Stay(8,0,10,0,""); TA_Stay(10,0,8,0,""); };
D
/+ + Copyright (c) Charles Petzold, 1998. + Ported to the D Programming Language by Andrej Mitrovic, 2011. +/ module Bricks3; import core.memory; import core.runtime; import core.thread; import std.conv; import std.math; import std.range; import std.string; import std.utf; auto toUTF16z(S)(S s) { return toUTFz!(const(wchar)*)(s); } pragma(lib, "gdi32.lib"); import core.sys.windows.windef; import core.sys.windows.winuser; import core.sys.windows.wingdi; import core.sys.windows.winbase; import resource; string appName = "Bricks3"; string description = "CreatePatternBrush Demo"; HINSTANCE hinst; extern (Windows) int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow) { int result; try { Runtime.initialize(); result = myWinMain(hInstance, hPrevInstance, lpCmdLine, iCmdShow); Runtime.terminate(); } catch (Throwable o) { MessageBox(null, o.toString().toUTF16z, "Error", MB_OK | MB_ICONEXCLAMATION); result = 0; } return result; } int myWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow) { hinst = hInstance; HBITMAP hBitmap; HBRUSH hBrush; HACCEL hAccel; HWND hwnd; MSG msg; WNDCLASS wndclass; hBitmap = LoadBitmap(hInstance, "Bricks"); hBrush = CreatePatternBrush(hBitmap); DeleteObject(hBitmap); wndclass.style = CS_HREDRAW | CS_VREDRAW; wndclass.lpfnWndProc = &WndProc; wndclass.cbClsExtra = 0; wndclass.cbWndExtra = 0; wndclass.hInstance = hInstance; wndclass.hIcon = LoadIcon(NULL, IDI_APPLICATION); wndclass.hCursor = LoadCursor(NULL, IDC_ARROW); wndclass.hbrBackground = hBrush; wndclass.lpszMenuName = appName.toUTF16z; wndclass.lpszClassName = appName.toUTF16z; if (!RegisterClass(&wndclass)) { MessageBox(NULL, "This program requires Windows NT!", appName.toUTF16z, MB_ICONERROR); return 0; } hwnd = CreateWindow(appName.toUTF16z, // window class name description.toUTF16z, // window caption WS_OVERLAPPEDWINDOW, // window style CW_USEDEFAULT, // initial x position CW_USEDEFAULT, // initial y position CW_USEDEFAULT, // initial x size CW_USEDEFAULT, // initial y size NULL, // parent window handle NULL, // window menu handle hInstance, // program instance handle NULL); // creation parameters ShowWindow(hwnd, iCmdShow); UpdateWindow(hwnd); while (GetMessage(&msg, NULL, 0, 0)) { TranslateMessage(&msg); DispatchMessage(&msg); } return msg.wParam; } extern (Windows) LRESULT WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) nothrow { scope (failure) assert(0); switch (message) { case WM_DESTROY: PostQuitMessage(0); return 0; default: } return DefWindowProc(hwnd, message, wParam, lParam); }
D
module deepmagic.dom.elements.text_level.data_element; import deepmagic.dom; class DataElement : Html5Element!("data"){ mixin(ElementConstructorTemplate!()); mixin(AttributeTemplate!(typeof(this), "Value", "value")); }
D
/// Problem 16: べき乗の数字和 /// /// 2^15 = 32768 であり、これの各桁の和は 3 + 2 + 7 + 6 + 8 = 26 となる。 /// 同様にして、2^1000 の数字和を求めよ。 module project_euler.problem016; import std.bigint : BigInt, toDecimalString; import system.linq : select, sum; import project_euler.foundation : asDigit; uint problem016(in uint exponent) { return toDecimalString(BigInt(2) ^^ exponent).select!asDigit.sum; } unittest { assert(problem016(15) == 26); assert(problem016(1000) == 1366); }
D
; Copyright (C) 2008 The Android Open Source Project ; ; Licensed under the Apache License, Version 2.0 (the "License"); ; you may not use this file except in compliance with the License. ; You may obtain a copy of the License at ; ; http://www.apache.org/licenses/LICENSE-2.0 ; ; Unless required by applicable law or agreed to in writing, software ; distributed under the License is distributed on an "AS IS" BASIS, ; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ; See the License for the specific language governing permissions and ; limitations under the License. .source T_iput_11.java .class public dot.junit.opcodes.iput.d.T_iput_11 .super java/lang/Object .method public <init>()V .limit regs 1 invoke-direct {v0}, java/lang/Object/<init>()V return-void .end method .method public run()V .limit regs 3 new-instance v0, Ldot/junit/opcodes/iput/TestStubs; invoke-direct {v0}, dot/junit/opcodes/iput/TestStubs/<init>()V const v1, 1000000 iput v1, v0, dot.junit.opcodes.iput.TestStubs.TestStubFieldFinal I return-void .end method
D
module draw.window; static import des.flow; alias des.flow.Event FEvent; alias des.flow.SysEvData SysEvData; alias des.flow.SignalBus SignalBus; import des.app; import des.util.stdext.algorithm; import des.util.logsys; import yamlset; import code; import client; import draw.scene; class MainWindow : DesWindow, des.flow.EventProcessor { mixin DES; private: Scene scene; protected: YAMLNode setting; SignalBus sigbus; TextEventProcessor text; JoyEventProcessor joyev; override void prepare() { scene = newEMM!Scene; logger.Debug( "pass scene creation" ); text = newEvProc!TextEventProcessor; connect( text.input, &textProcess ); joyev = newEvProc!JoyEventProcessor; connect( joyev.axisChange, &axisReaction ); connect( idle, &(scene.idle) ); connect( draw, &(scene.draw) ); connect( key, &(scene.keyControl) ); connect( key, &keyControl ); connect( mouse, &(scene.mouseControl) ); connect( event.resized, &(scene.resize) ); } void keyControl( in KeyboardEvent ke ) { if( ke.scan == ke.Scan.I ) startTextInput(); else if( ke.scan == ke.Scan.ESCAPE ) stopTextInput(); } void textProcess( dstring str ) { std.stdio.stdout.writeln( "input: ", str ); } void axisReaction( uint joy, uint axis, short value ) { std.stdio.writefln( "joy [%s] change axis [%d]: [%d]", joyev.devlist[joy].name, axis, value ); } public: this( string title, ivec2 sz, bool fullscreen = false ) { super( title, sz, fullscreen ); } this( SignalBus sigbus, YAMLNode set ) { if( set.containsKey("window") ) { auto ws = set["window"]; auto title = tryYAML!string( ws, "title", "fractaltree" ); auto sz = tryYAML!ivec2( ws, "size", ivec2(800,600) ); auto fs = tryYAML!bool( ws, "fullscreen", false ); super( title, sz, fs ); } else super( "fractaltree", ivec2(800,600), false ); if( set.containsKey("scene") ) this.setting = set["scene"]; this.sigbus = sigbus; } void processEvent( in FEvent ev ) { switch( ev.code ) { case EvCode.SETTING: auto set = loadYAML( ev.pdata ); if( set.containsKey("scene") ) scene.setSettings( set["scene"] ); break; case EvCode.MCLIENT: scene.updateClients( [ev.data.as!MClient] ); break; case FEvent.system_code: if( scene is null ) break; auto sysev = ev.as!SysEvData; //scene.work = sysev.isWork; break; default: break; } } }
D
// Copyright Ahmet Sait Koçak 2020. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // https://www.boost.org/LICENSE_1_0.txt) module bindbc.hb.bind.ot.shape; import bindbc.hb.bind.buffer; import bindbc.hb.bind.common; import bindbc.hb.bind.font; import bindbc.hb.bind.set; import bindbc.hb.bind.shape_plan; extern(C) @nogc nothrow: /* TODO port to shape-plan / set. */ version(BindHB_Static) void hb_ot_shape_glyphs_closure ( hb_font_t* font, hb_buffer_t* buffer, const(hb_feature_t)* features, uint num_features, hb_set_t* glyphs); else { private alias fp_hb_ot_shape_glyphs_closure = void function ( hb_font_t* font, hb_buffer_t* buffer, const(hb_feature_t)* features, uint num_features, hb_set_t* glyphs); __gshared fp_hb_ot_shape_glyphs_closure hb_ot_shape_glyphs_closure; } /* OUT */ version(BindHB_Static) void hb_ot_shape_plan_collect_lookups ( hb_shape_plan_t* shape_plan, hb_tag_t table_tag, hb_set_t* lookup_indexes); else { private alias fp_hb_ot_shape_plan_collect_lookups = void function ( hb_shape_plan_t* shape_plan, hb_tag_t table_tag, hb_set_t* lookup_indexes); __gshared fp_hb_ot_shape_plan_collect_lookups hb_ot_shape_plan_collect_lookups; }
D
/** * Consoleur: a package for interaction with character-oriented terminal emulators * * Copyright: Maxim Freck, 2017. * Authors: Maxim Freck <maxim@freck.pp.ru> * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) */ module consoleur.input.util; import consoleur.core; import consoleur.input.types; /******* * Returns: UTF-8 codepoint length * * Params: * src = The first byte of codepoint */ ubyte codepointLength(ubyte src) @safe { if ((src & 0b11111100) == 0b11111100) return 6; if ((src & 0b11111000) == 0b11111000) return 5; if ((src & 0b11110000) == 0b11110000) return 4; if ((src & 0b11100000) == 0b11100000) return 3; if ((src & 0b11000000) == 0b11000000) return 2; if ((src & 0b10000000) == 0b10000000) return 1; return 0; } package Key readUtf8Char(Key ch) @safe { foreach (size_t n; 1 .. ch.content.utf[0].codepointLength) { popStdin(ch.content.utf[n]); } return ch; } package string escapeString(string src) @trusted { import std.format: format; string str; foreach (b; src) { if (b == 0x1b) { str ~= "⇇"; } else if(b < 0x20) { str ~= cast(wchar)(b + 0x2400); } else if(b > 0x7e){ str ~= format("\\x%x", b); } else { str ~= b; } } return str; }
D
module wx.Gauge; public import wx.common; public import wx.Control; //! \cond EXTERN extern (C) ЦелУкз wxGauge_ctor(); extern (C) проц wxGauge_dtor(ЦелУкз сам); extern (C) бул wxGauge_Create(ЦелУкз сам, ЦелУкз родитель, цел ид, цел диапазон, inout Точка поз, inout Размер размер, бцел стиль, ЦелУкз оценщик, ткст имя); extern (C) проц wxGauge_SetRange(ЦелУкз сам, цел диапазон); extern (C) цел wxGauge_GetRange(ЦелУкз сам); extern (C) проц wxGauge_SetValue(ЦелУкз сам, цел поз); extern (C) цел wxGauge_GetValue(ЦелУкз сам); extern (C) проц wxGauge_SetShadowWidth(ЦелУкз сам, цел w); extern (C) цел wxGauge_GetShadowWidth(ЦелУкз сам); extern (C) проц wxGauge_SetBezelFace(ЦелУкз сам, цел w); extern (C) цел wxGauge_GetBezelFace(ЦелУкз сам); extern (C) бул wxGauge_AcceptsFocus(ЦелУкз сам); extern (C) бул wxGauge_IsVertical(ЦелУкз сам); //! \endcond //--------------------------------------------------------------------- alias Gauge wxGauge; export class Gauge : Контрол { enum { ГОРИЗОНТАЛЬНЫЙ = ПОриентация.Горизонталь, ВЕРТИКАЛЬНЫЙ = ПОриентация.Вертикаль, ПРОГРЕССБАР = 0x0010, } // Windows only public const цел ГЛАДКИЙ = 0x0020; public const ткст wxGaugeNameStr = "gauge"; //--------------------------------------------------------------------- export this(ЦелУкз вхобъ) { super(вхобъ); } export this() { super(wxGauge_ctor()); } export this(Окно родитель, цел ид, цел диапазон, Точка поз = ДЕФПОЗ, Размер размер = ДЕФРАЗМ, цел стиль = ГОРИЗОНТАЛЬНЫЙ, Оценщик оценщик = пусто, ткст имя = wxGaugeNameStr) { super(wxGauge_ctor()); if (!создай(родитель, ид, диапазон, поз, размер, стиль, оценщик, имя)) { throw new ИсклНевернОперации("Не удалось создать Gauge"); } } export static ВизОбъект Нов(ЦелУкз вхобъ) { return new Gauge(вхобъ); } //--------------------------------------------------------------------- // ctors with сам created ид export this(Окно родитель, цел диапазон, Точка поз = ДЕФПОЗ, Размер размер = ДЕФРАЗМ, цел стиль = ГОРИЗОНТАЛЬНЫЙ, Оценщик оценщик = пусто, ткст имя = wxGaugeNameStr) { this(родитель, Окно.уникИд, диапазон, поз, размер, стиль, оценщик, имя); } //--------------------------------------------------------------------- export бул создай(Окно родитель, цел ид, цел диапазон, inout Точка поз, inout Размер размер, цел стиль, Оценщик оценщик, ткст имя) { return wxGauge_Create(вхобъ, ВизОбъект.безопУк(родитель), ид, диапазон, поз, размер, cast(бцел)стиль, ВизОбъект.безопУк(оценщик), имя); } //--------------------------------------------------------------------- export цел диапазон() { return wxGauge_GetRange(вхобъ); } export проц диапазон(цел значение) { wxGauge_SetRange(вхобъ, значение); } //--------------------------------------------------------------------- export цел значение() { return wxGauge_GetValue(вхобъ); } export проц значение(цел значение) { wxGauge_SetValue(вхобъ, значение); } //--------------------------------------------------------------------- export цел ширинаТени() { return wxGauge_GetShadowWidth(вхобъ); } export проц ширинаТени(цел значение) { wxGauge_SetShadowWidth(вхобъ, значение); } //--------------------------------------------------------------------- export цел BezelFace() { return wxGauge_GetBezelFace(вхобъ); } export проц BezelFace(цел значение) { wxGauge_SetBezelFace(вхобъ, значение); } //--------------------------------------------------------------------- export override бул фокусируем() { return wxGauge_AcceptsFocus(вхобъ); } //--------------------------------------------------------------------- export бул вертикален() { return wxGauge_IsVertical(вхобъ); } }
D
module resources.algorithms.lzma.bittree_decoder; import resources.all; final class BitTreeDecoder { private: LZMARangeDecoder rangeDecoder; ByteReader input; int numBitLevels; ushort[] models; public: this(LZMARangeDecoder rangeDecoder, ByteReader input, int numBitLevels) { this.rangeDecoder = rangeDecoder; this.input = input; this.numBitLevels = numBitLevels; this.models = new ushort[1 << numBitLevels]; // Init model const kBitModelTotal = 1 << 11; for(int i = 0; i < models.length; i++) models[i] = (kBitModelTotal >>> 1); } int decode() { int m = 1; for(int bitIndex = numBitLevels; bitIndex != 0; bitIndex--) { m = (m << 1) + rangeDecoder.decodeBit(models, m); } return m - (1 << numBitLevels); } }
D
/* Written by Christopher E. Miller Placed into public domain. */ // @@@DEPRECATED_2017-06@@@ /++ $(RED Deprecated. Use $(D core.sys.windows.winsock2 instead. This module will be removed in June 2017.) +/ deprecated("Import core.sys.windows.winsock2 instead") module std.c.windows.winsock; version (Windows): public import core.sys.windows.winsock2;
D
module wx.PaletteChangedEvent; public import wx.common; public import wx.Event; public import wx.Window; //! \cond EXTERN static extern (C) IntPtr wxPaletteChangedEvent_ctor(int winid); static extern (C) void wxPaletteChangedEvent_SetChangedWindow(IntPtr self, IntPtr win); static extern (C) IntPtr wxPaletteChangedEvent_GetChangedWindow(IntPtr self); //! \endcond //----------------------------------------------------------------------------- alias PaletteChangedEvent wxPaletteChangedEvent; public class PaletteChangedEvent : Event { public this(IntPtr wxobj) ; public this(int winid=0); public Window ChangedWindow() ; public void ChangedWindow(Window value); private static Event New(IntPtr obj); static this() { AddEventType(wxEVT_PALETTE_CHANGED, &PaletteChangedEvent.New); } }
D
/********************************************************* Copyright: (C) 2008-2010 by Steven Schveighoffer. All rights reserved License: Boost Software License version 1.0 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 dcollections.LinkList; public import dcollections.model.List; private import dcollections.Link; private import dcollections.DefaultFunctions; private import std.algorithm; private import std.range; version(unittest) private import std.traits; /** * This class implements the list interface by using Link nodes. This gives * the advantage of O(1) add and removal, but no random access. * * Adding elements does not affect any cursor. * * Removing elements does not affect any cursor unless the cursor points * to a removed element, in which case it is invalidated. * * The implementation can be swapped out for another implementation of * a doubly linked list. The implementation must be a struct which uses one * template argument V with the following members (unless specified, members * can be implemented as properties): * * parameters -> data type that is passed to setup to help set up the Node. * There are no specific requirements for this type. * * Node -> data type that represents a Node in the list. This should be a * reference type. Each Node must define the following members: * V value -> the value held at this Node. Cannot be a property. * Node prev -> (get only) the previous Node in the list * Node next -> (get only) the next Node in the list * * Node end -> (get only) An invalid Node that points just past the last valid * Node. end.prev should be the last valid Node. end.next is undefined. * * Node begin -> (get only) The first valid Node. begin.prev is undefined. * * uint count -> (get only) The number of nodes in the list. This can be * calculated in O(n) time to allow for more efficient removal of multiple * nodes. * * void setup(parameters p) -> set up the list. This is like a constructor. * * Node remove(Node n) -> removes the given Node from the list. Returns the * next Node in the list. * * Node remove(Node first, Node last) -> removes the nodes from first to last, * not including last. Returns last. This can run in O(n) time if count is * O(1), or O(1) time if count is O(n). * * Node insert(Node before, V v) -> add a new Node before the Node 'before', * return a pointer to the new Node. * * void clear() -> remove all nodes from the list. * * void sort(CompareFunction!(V) comp) -> sort the list according to the * compare function * */ final class LinkList(V, alias ImplTemp = LinkHead) : List!(V) { version(unittest) private enum doUnittest = isIntegral!V; else private enum doUnittest = false; /** * convenience alias */ alias ImplTemp!(V) Impl; private Impl _link; /** * A cursor for link list */ struct cursor { private Impl.Node ptr; private bool _empty; // needed to implement belongs private LinkList owner; /** * get the value pointed to by this cursor */ @property V front() { assert(!_empty, "Attempting to read the value of an empty cursor of " ~ LinkList.stringof); return ptr.value; } /** * set the value pointed to by this cursor */ @property V front(V v) { assert(!_empty, "Attempting to write the value of an empty cursor of " ~ LinkList.stringof); return (ptr.value = v); } /** * return true if the range is empty */ @property bool empty() { return _empty; } /** * Move to the next element. */ void popFront() { assert(!_empty, "Attempting to popFront() an empty cursor of " ~ LinkList.stringof); _empty = true; ptr = ptr.next; } /** * length of the cursor range, which is always either 0 or 1. */ @property size_t length() { return _empty ? 0 : 1; } /** * opIndex costs nothing, and it allows more algorithms to accept * cursors. */ @property V opIndex(size_t idx) { assert(idx < length, "Attempt to access invalid index on cursor"); return ptr.value; } /** * trivial save implementation to implement forward range * functionality. */ @property cursor save() { return this; } /** * compare two cursors for equality. Note that only the position of * the cursor is checked, whether it's empty or not is not checked. */ bool opEquals(ref const cursor it) const { return ptr is it.ptr; } /* * TODO: uncomment this when compiler is sane! * compare two cursors for equality. Note that only the position of * the cursor is checked, whether it's empty or not is not checked. */ /* bool opEquals(const cursor it) const { return ptr is it.ptr; }*/ } static if(doUnittest) unittest { auto ll = new LinkList; ll.add(cast(V[])[1, 2, 3, 4, 5]); auto cu = std.algorithm.find(ll[], 3).begin; assert(!cu.empty); assert(cu.front == 3); assert((cu.front = 8) == 8); assert(cu.front == 8); assert(ll == cast(V[])[1, 2, 8, 4, 5]); cu.popFront(); assert(cu.empty); assert(ll == cast(V[])[1, 2, 8, 4, 5]); } /** * A range for link list */ struct range { private Impl.Node _begin; private Impl.Node _end; // needed to implement belongs private LinkList owner; /** * is the range empty? */ @property bool empty() { return _begin is _end; } /** * Get a cursor to the first element in the range */ @property cursor begin() { cursor c; c.ptr = _begin; c.owner = owner; c._empty = empty; return c; } /** * Get a cursor to the end element in the range */ @property cursor end() { cursor c; c.ptr = _end; c.owner = owner; c._empty = true; return c; } /** * Get the first value in the range */ @property V front() { assert(!empty, "Attempting to read front of an empty range of " ~ LinkList.stringof); return _begin.value; } /** * Write the first value in the range. */ @property V front(V v) { assert(!empty, "Attempting to write front of an empty range of " ~ LinkList.stringof); _begin.value = v; return v; } /** * Get the last value in the range */ @property V back() { assert(!empty, "Attempting to read front of an empty range of " ~ LinkList.stringof); return _end.prev.value; } /** * Write the last value in the range. */ @property V back(V v) { assert(!empty, "Attempting to write front of an empty range of " ~ LinkList.stringof); _end.prev.value = v; return v; } /** * Move the front of the range ahead one element */ void popFront() { assert(!empty, "Attempting to popFront() an empty range of " ~ LinkList.stringof); _begin = _begin.next; } /** * Move the back of the range to the previous element */ void popBack() { assert(!empty, "Attempting to popBack() an empty range of " ~ LinkList.stringof); _end = _end.prev; } /** * Implement save as required by forward ranges now. */ @property range save() { return this; } } static if(doUnittest) unittest { auto ll = new LinkList; ll.add(cast(V[])[1, 2, 3, 4, 5]); auto r = ll[]; assert(std.algorithm.equal(r, cast(V[])[1, 2, 3, 4, 5])); assert(r.front == 1); assert(r.back == 5); r.popFront(); r.popBack(); assert(std.algorithm.equal(r, cast(V[])[2, 3, 4])); assert(r.front == 2); assert(r.back == 4); r.front = 10; r.back = 11; assert(std.algorithm.equal(r, cast(V[])[10, 3, 11])); assert(r.front == 10); assert(r.back == 11); auto b = r.begin; assert(!b.empty); assert(b.front == 10); auto e = r.end; assert(e.empty); assert(ll == cast(V[])[1, 10, 3, 11, 5]); } /** * Determine if a cursor belongs to the container */ bool belongs(cursor c) { return c.owner is this; } /** * Determine if a range belongs to the container */ bool belongs(range r) { return r.owner is this; } static if(doUnittest) unittest { auto ll = new LinkList; ll.add(cast(V[])[1, 2, 3, 4, 5]); auto cu = std.algorithm.find(ll[], 3).begin; assert(cu.front == 3); assert(ll.belongs(cu)); auto r = ll[ll.begin..cu]; assert(ll.belongs(r)); auto ll2 = ll.dup; assert(!ll2.belongs(cu)); assert(!ll2.belongs(r)); } /** * Constructor */ this(V[] initialElems...) { _link.setup(); add(initialElems); } /** * Constructor which uses an iterator to create the Linked List */ this(Iterator!V initialElems) { _link.setup(); add(initialElems); } static if(doUnittest) unittest { auto ll = new LinkList(1, 2, 3, 4, 5); auto ll2 = new LinkList(ll); assert(ll == ll2); } // // private constructor for dup // private this(ref Impl dupFrom, bool copyNodes) { _link.setup(); dupFrom.copyTo(_link, copyNodes); } /** * Clear the collection of all elements */ LinkList clear() { _link.clear(); return this; } static if(doUnittest) unittest { auto ll = new LinkList(1, 2, 3, 4, 5); assert(ll.length == 5); ll.clear(); assert(ll.length == 0); } /** * returns number of elements in the collection */ @property uint length() const { return _link.count; } /** * returns a cursor to the first element in the collection. */ @property cursor begin() { cursor it; it.owner = this; it.ptr = _link.begin; it._empty = (_link.count == 0); return it; } /** * returns a cursor that points just past the last element in the * collection. */ @property cursor end() { cursor it; it.owner = this; it.ptr = _link.end; it._empty = true; return it; } /** * remove the element pointed at by the given cursor, returning an * cursor that points to the next element in the collection. * * Runs in O(1) time. */ cursor remove(cursor it) { assert(belongs(it), "Attempting to remove an unowned cursor of type " ~ LinkList.stringof); if(!it.empty) it.ptr = _link.remove(it.ptr); it._empty = (it.ptr == _link.end); return it; } static if(doUnittest) unittest { auto ll = new LinkList; ll.add(cast(V[])[1, 2, 3, 4, 5]); ll.remove(std.algorithm.find(ll[], 3).begin); assert(ll == cast(V[])[1, 2, 4, 5]); } /** * remove the elements pointed at by the given range, returning * a cursor that points to the element just after the range removed. * * Runs in O(n) time where n is the number of elements in the range. */ cursor remove(range r) { assert(belongs(r), "Attempting to remove an unowned range of type " ~ LinkList.stringof); cursor c; c.ptr = _link.remove(r._begin, r._end); c.owner = this; c._empty = (c.ptr is _link.end); return c; } static if(doUnittest) unittest { auto ll = new LinkList; ll.add(cast(V[])[1, 2, 3, 4, 5]); auto r = std.algorithm.find(ll[], 3); r.popBack(); ll.remove(r); assert(ll == cast(V[])[1, 2, 5]); } range opSlice() { range result; result.owner = this; result._begin = _link.begin; result._end = _link.end; return result; } range opSlice(cursor b, cursor e) { // TODO: fix this when compiler is sane! //if((b == begin && belongs(e)) || (e == end && belongs(b))) if((begin == b && belongs(e)) || (end == e && belongs(b))) { range result; result.owner = this; result._begin = b.ptr; result._end = e.ptr; return result; } throw new Exception("invalid slice parameters to " ~ LinkList.stringof); } static if (doUnittest) unittest { auto ll = new LinkList; ll.add(cast(V[])[1, 2, 3, 4, 5]); assert(std.algorithm.equal(ll[], cast(V[])[1, 2, 3, 4, 5])); auto cu = std.algorithm.find(ll[], 3).begin; assert(std.algorithm.equal(ll[ll.begin..cu], cast(V[])[1, 2])); assert(std.algorithm.equal(ll[cu..ll.end], cast(V[])[3, 4, 5])); bool exceptioncaught = false; try { ll[cu..cu]; } catch(Exception) { exceptioncaught = true; } assert(exceptioncaught); } /** * iterate over the collection's values */ int opApply(scope int delegate(ref V value) dg) { int retval = 0; auto last = _link.end; for(auto i = _link.begin; i != last; i = i.next) if((retval = dg(i.value)) != 0) break; return retval; } static if(doUnittest) unittest { auto ll = new LinkList; ll.add(cast(V[])[1, 2, 3, 4, 5]); V v = 0; foreach(i; ll) { assert(i == ++v); } assert(v == ll.length); } /** * Iterate over the collections values, specifying which ones should be * removed * * Use like this: * * ----------- * // remove all odd values * foreach(ref doPurge, v; &list.purge) * { * doPurge = ((v & 1) == 1); * } * ----------- */ int purge(scope int delegate(ref bool doRemove, ref V value) dg) { auto i = _link.begin; auto last = _link.end; int dgret = 0; bool doRemove; while(i != last && i !is _link.end) { doRemove = false; if((dgret = dg(doRemove, i.value)) != 0) break; if(doRemove) i = _link.remove(i); else i = i.next; } return dgret; } static if(doUnittest) unittest { auto ll = new LinkList; ll.add(cast(V[])[0, 1, 2, 3, 4]); foreach(ref p, i; &ll.purge) { p = (i & 1); } assert(ll == cast(V[])[0, 2, 4]); } /** * Adds all the values from the given iterator into the list. * * Returns this. */ LinkList add(Iterator!(V) coll) { if(coll is this) throw new Exception("Attempting to self concatenate " ~ LinkList.stringof); foreach(v; coll) _link.insert(_link.end, v); return this; } /** * Adds all the given elements into the list. * * Returns this. */ LinkList add(V[] elems...) { foreach(v; elems) _link.insert(_link.end, v); return this; } static if(doUnittest) unittest { // add single element auto ll = new LinkList; ll.add(1).add(2); assert(ll.length == 2); assert(ll == cast(V[])[1, 2]); // add other collection // need to add duplicate, adding self is not allowed. ll.add(ll.dup); bool caughtexception = false; try { ll.add(ll); } catch(Exception) { caughtexception = true; } assert(caughtexception); assert(ll == cast(V[])[1, 2, 1, 2]); // add array ll.clear(); ll.add(cast(V[])[1, 2, 3, 4, 5]).add(1,2,3,4,5); assert(ll == cast(V[])[1, 2, 3, 4, 5, 1, 2, 3, 4, 5]); } // // handy link-list only functions // /** * insert an element at the given position. Returns a cursor to the * newly inserted element. */ cursor insert(cursor it, V v) { assert(belongs(it), "Attempting to insert a value using an invalid cursor of " ~ LinkList.stringof); it.ptr = _link.insert(it.ptr, v); it._empty = false; return it; } /** * Insert elements from an iterator. Returns the range just inserted. */ range insert(cursor it, Iterator!V r) { assert(belongs(it), "Attempting to insert range using invalid cursor for type " ~ LinkList.stringof); // ensure we are not inserting ourselves // Although this kinda sucks that we can't do this, allowing it // means a possible infinite loop. if(this is r) { throw new Exception("Attempting to self insert into " ~ LinkList.stringof); } range result; result.owner = this; result._end = it.ptr; result._begin = it.ptr; bool first = true; foreach(v; r) { auto tmp = _link.insert(result._end, v); if(first) { first = false; result._begin = tmp; } } return result; } /** * Insert a range of elements. Returns the range just inserted. * * TODO: this should just be called insert */ range insertRange(R)(cursor it, R r) if (isInputRange!R && is(ElementType!R : V)) { assert(belongs(it), "Attempting to insert range using invalid cursor for type " ~ LinkList.stringof); static if(is(R == range)) { // ensure we are not inserting a range from our own elements. // Although this kinda sucks that we can't do this, allowing it // means a possible infinite loop. if(belongs(r)) throw new Exception("Attempting to self insert range into " ~ LinkList.stringof); } range result; result.owner = this; result._begin = result._end = it.ptr; if(!r.empty) { result._begin = _link.insert(result._end, r.front); r.popFront(); } foreach(v; r) { _link.insert(result._end, v); } return result; } static if(doUnittest) unittest { // insert single element auto ll = new LinkList; ll.add(cast(V[])[1, 2, 3, 4, 5]); auto cu = std.algorithm.find(ll[], 3).begin; auto cu2 = ll.insert(cu, 7); assert(ll == cast(V[])[1, 2, 7, 3, 4, 5]); assert(cu.front == 3); assert(cu2.front == 7); assert(ll.belongs(cu2)); // insert another iterator auto r = ll.insert(cu, ll.dup); assert(std.algorithm.equal(r, cast(V[])[1, 2, 7, 3, 4, 5])); assert(ll.belongs(r)); assert(ll == cast(V[])[1, 2, 7, 1, 2, 7, 3, 4, 5, 3, 4, 5]); // insert a range auto r2 = ll.insertRange(cu2, cast(V[])[8, 9, 10]); assert(std.algorithm.equal(r2, cast(V[])[8, 9, 10])); assert(ll.belongs(r2)); assert(ll == cast(V[])[1, 2, 8, 9, 10, 7, 1, 2, 7, 3, 4, 5, 3, 4, 5]); // test self insertion bool caughtexception = false; try { ll.insert(ll.begin, ll); } catch(Exception) { caughtexception = true; } assert(caughtexception); caughtexception = false; try { ll.insertRange(ll.begin, ll[]); } catch(Exception) { caughtexception = true; } assert(caughtexception); } /** * return the last element in the list. Undefined if the list is empty. * * TODO: should be inout */ @property V back() { assert(length != 0, "Attempting to get last element of empty " ~ LinkList.stringof); return _link.end.prev.value; } /** * return the first element in the list. Undefined if the list is empty. * TODO: should be inout */ @property V front() { assert(length != 0, "Attempting to get first element of empty " ~ LinkList.stringof); return _link.begin.value; } /** * remove the first element in the list, and return its value. * * Do not call this on an empty list. */ V takeFront() { assert(length != 0, "Attempting to take first element of empty " ~ LinkList.stringof); auto retval = front; _link.remove(_link.begin); return retval; } /** * remove the last element in the list, and return its value * Do not call this on an empty list. */ V takeBack() { assert(length != 0, "Attempting to take last element of empty " ~ LinkList.stringof); auto retval = back; _link.remove(_link.end.prev); return retval; } static if(doUnittest) unittest { auto ll = new LinkList; ll.add(cast(V[])[1, 2, 3, 4, 5]); assert(ll.takeBack() == 5); assert(ll == cast(V[])[1, 2, 3, 4]); assert(ll.takeFront() == 1); assert(ll == cast(V[])[2, 3, 4]); } /** * Take the element at the end of the list, and return its value. */ V take() { return takeBack(); } /** * Create a new list with this and the rhs concatenated together */ LinkList concat(List!(V) rhs) { return dup().add(rhs); } /** * Create a new list with this and the array concatenated together */ LinkList concat(V[] array) { return dup().add(array); } /** * Create a new list with the array and this list concatenated together. */ LinkList concat_r(V[] array) { auto result = new LinkList(_link, false); return result.add(array).add(this); } version(testcompiler) { } else { // workaround for compiler deficiencies alias concat opCat; alias concat_r opCat_r; alias add opCatAssign; } static if(doUnittest) unittest { auto ll = new LinkList; ll.add(cast(V[])[1, 2, 3, 4, 5]); auto ll2 = ll.concat(ll); assert(ll2 !is ll); assert(ll2 == cast(V[])[1, 2, 3, 4, 5, 1, 2, 3, 4, 5]); assert(ll == cast(V[])[1, 2, 3, 4, 5]); ll2 = ll.concat(cast(V[])[6, 7, 8, 9, 10]); assert(ll2 !is ll); assert(ll2 == cast(V[])[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); assert(ll == cast(V[])[1, 2, 3, 4, 5]); ll2 = ll.concat_r(cast(V[])[6, 7, 8, 9, 10]); assert(ll2 !is ll); assert(ll2 == cast(V[])[6, 7, 8, 9, 10, 1, 2, 3, 4, 5]); assert(ll == cast(V[])[1, 2, 3, 4, 5]); ll2 = ll ~ ll; assert(ll2 !is ll); assert(ll2 == cast(V[])[1, 2, 3, 4, 5, 1, 2, 3, 4, 5]); assert(ll == cast(V[])[1, 2, 3, 4, 5]); ll2 = ll ~ cast(V[])[6, 7, 8, 9, 10]; assert(ll2 !is ll); assert(ll2 == cast(V[])[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); assert(ll == cast(V[])[1, 2, 3, 4, 5]); ll2 = cast(V[])[6, 7, 8, 9, 10] ~ ll; assert(ll2 !is ll); assert(ll2 == cast(V[])[6, 7, 8, 9, 10, 1, 2, 3, 4, 5]); assert(ll == cast(V[])[1, 2, 3, 4, 5]); } /** * duplicate the list */ LinkList dup() { return new LinkList(_link, true); } /** * Compare this list with another list. Returns true if both lists have * the same length and all the elements are the same. * * If o is null or not a List, return false. */ override bool opEquals(Object o) { if(o !is null) { auto li = cast(List!(V))o; if(li !is null && li.length == length) { auto c = this[]; foreach(elem; li) { // NOTE this is a workaround for compiler bug 4088 static if(is(V == interface)) { if(cast(Object)elem != cast(Object)c.front) return false; } else { if(elem != c.front) return false; } c.popFront(); } return true; } } return false; } static if(doUnittest) unittest { auto ll = new LinkList; ll.add(cast(V[])[1, 2, 3, 4, 5]); assert(ll == ll.dup); } /** * Compare this list with an array. Returns true if both lists have * the same length and all the elements are the same. */ bool opEquals(V[] arr) { if(arr.length == length) { // NOTE this is a workaround for compiler bug 4088 static if(is(V == interface)) { return std.algorithm.equal!"cast(Object)a == cast(Object)b"(this[], arr); } else { return std.algorithm.equal(this[], arr); } } return false; } /** * Sort the linked list according to the given compare function. * * Runs in O(n lg(n)) time * * Returns this after sorting */ LinkList sort(scope bool delegate(ref V, ref V) less) { // TODO: fix when bug 3051 is resolved. // _link.sort!less(); mergesort!(less)(_link); return this; } /** * Sort the linked list according to the given compare function. * * Runs in O(n lg(n)) time * * Returns this after sorting */ LinkList sort(scope bool function(ref V, ref V) less) { // TODO: fix when bug 3051 is resolved. // _link.sort!less(); mergesort!(less)(_link); return this; } /** * Sort the linked list according to the default compare function for V. * * Runs in O(n lg(n)) time * * Returns this */ LinkList sort() { _link.sort!(DefaultLess!V)(); return this; } /** * Sort the linked list according to the given compare functor. This is * a templatized version, and so can be used with functors, and might be * inlined. * * TODO: this should be called sort * TODO: if bug 3051 is resolved, then this can probably be * sortX(alias less)() * instead. */ LinkList sortX(T)(T less) { // TODO: fix when bug 3051 is resolved. // _link.sort!less(); mergesort!(less)(_link); return this; } static if(doUnittest) unittest { auto ll = new LinkList; ll.add(cast(V[])[1, 3, 5, 6, 4, 2]); ll.sort(); assert(ll == cast(V[])[1, 2, 3, 4, 5, 6]); ll.sort(delegate bool (ref V a, ref V b) { return b < a; }); assert(ll == cast(V[])[6, 5, 4, 3, 2, 1]); ll.sort(function bool (ref V a, ref V b) { if((a ^ b) & 1) return cast(bool)(a & 1); return a < b; }); assert(ll == cast(V[])[1, 3, 5, 2, 4, 6]); struct X { V pivot; // if a and b are on both sides of pivot, sort normally, otherwise, // values >= pivot are treated less than values < pivot. bool opCall(V a, V b) { if(a < pivot) { if(b < pivot) { return a < b; } return false; } else if(b >= pivot) { return a < b; } return true; } } X x; x.pivot = 4; ll.sortX(x); assert(ll == cast(V[])[4, 5, 6, 1, 2, 3]); } } unittest { // declare the Link list types that should be unit tested. LinkList!ubyte ll1; LinkList!byte ll2; LinkList!ushort ll3; LinkList!short ll4; LinkList!uint ll5; LinkList!int ll6; LinkList!ulong ll7; LinkList!long ll8; // ensure that reference types can at least *compile* LinkList!(uint*) ll9; interface I {} class C : I {} LinkList!C ll10; LinkList!I ll11; }
D
/Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Intermediates/CoreDataCallViewFRC.build/Debug-iphonesimulator/CoreDataCallViewFRC.build/Objects-normal/x86_64/Item+CoreDataClass.o : /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/WithInternalStorageVC.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/RealmVC.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/MainVC.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/AppDelegate.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/Model/RealmModel.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/ItemCell.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/DataController.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/ViewController.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/Model/InternalData+CoreDataProperties.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/Model/Item+CoreDataProperties.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/Model/InternalData+CoreDataClass.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/Model/Item+CoreDataClass.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/RealmSwift/RealmSwift.framework/Modules/RealmSwift.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/CoreData.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/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/RealmSwift/RealmSwift.framework/Headers/RealmSwift-umbrella.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSchema.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectSchema.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectBase_Dynamic.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm_Dynamic.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm+Sync.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealmConfiguration+Sync.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/NSError+RLMSync.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMThreadSafeReference.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectStore.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMOptionalBase.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectBase.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMListBase.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMSchema_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectSchema_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectBase_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMSyncUtil_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMRealm_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMSyncConfiguration_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMRealmConfiguration_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMCollection_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMResults_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObject_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMArray_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMProperty_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSyncUtil.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/Realm.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMPlatform.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSyncSession.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSyncPermission.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMMigration.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSyncConfiguration.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealmConfiguration.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMCollection.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSyncManager.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSyncUser.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMAccessor.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSyncCredentials.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMResults.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMConstants.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObject.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/RealmSwift/RealmSwift.framework/Headers/RealmSwift-Swift.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMArray.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMProperty.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Modules/module.modulemap /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/RealmSwift/RealmSwift.framework/Modules/module.modulemap /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Intermediates/CoreDataCallViewFRC.build/Debug-iphonesimulator/CoreDataCallViewFRC.build/Objects-normal/x86_64/Item+CoreDataClass~partial.swiftmodule : /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/WithInternalStorageVC.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/RealmVC.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/MainVC.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/AppDelegate.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/Model/RealmModel.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/ItemCell.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/DataController.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/ViewController.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/Model/InternalData+CoreDataProperties.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/Model/Item+CoreDataProperties.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/Model/InternalData+CoreDataClass.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/Model/Item+CoreDataClass.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/RealmSwift/RealmSwift.framework/Modules/RealmSwift.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/CoreData.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/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/RealmSwift/RealmSwift.framework/Headers/RealmSwift-umbrella.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSchema.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectSchema.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectBase_Dynamic.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm_Dynamic.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm+Sync.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealmConfiguration+Sync.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/NSError+RLMSync.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMThreadSafeReference.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectStore.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMOptionalBase.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectBase.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMListBase.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMSchema_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectSchema_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectBase_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMSyncUtil_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMRealm_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMSyncConfiguration_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMRealmConfiguration_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMCollection_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMResults_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObject_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMArray_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMProperty_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSyncUtil.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/Realm.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMPlatform.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSyncSession.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSyncPermission.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMMigration.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSyncConfiguration.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealmConfiguration.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMCollection.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSyncManager.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSyncUser.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMAccessor.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSyncCredentials.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMResults.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMConstants.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObject.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/RealmSwift/RealmSwift.framework/Headers/RealmSwift-Swift.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMArray.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMProperty.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Modules/module.modulemap /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/RealmSwift/RealmSwift.framework/Modules/module.modulemap /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Intermediates/CoreDataCallViewFRC.build/Debug-iphonesimulator/CoreDataCallViewFRC.build/Objects-normal/x86_64/Item+CoreDataClass~partial.swiftdoc : /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/WithInternalStorageVC.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/RealmVC.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/MainVC.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/AppDelegate.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/Model/RealmModel.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/ItemCell.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/DataController.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/ViewController.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/Model/InternalData+CoreDataProperties.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/Model/Item+CoreDataProperties.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/Model/InternalData+CoreDataClass.swift /Users/octoberhammer/Developer/CoreDataCallViewFRC/CoreDataCallViewFRC/Model/Item+CoreDataClass.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/RealmSwift/RealmSwift.framework/Modules/RealmSwift.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/CoreData.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/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/RealmSwift/RealmSwift.framework/Headers/RealmSwift-umbrella.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSchema.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectSchema.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectBase_Dynamic.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm_Dynamic.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm+Sync.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealmConfiguration+Sync.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/NSError+RLMSync.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMThreadSafeReference.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectStore.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMOptionalBase.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectBase.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMListBase.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMSchema_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectSchema_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectBase_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMSyncUtil_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMRealm_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMSyncConfiguration_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMRealmConfiguration_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMCollection_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMResults_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObject_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMArray_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMProperty_Private.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSyncUtil.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/Realm.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMPlatform.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSyncSession.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSyncPermission.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMMigration.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSyncConfiguration.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealmConfiguration.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMCollection.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSyncManager.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSyncUser.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMAccessor.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSyncCredentials.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMResults.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMConstants.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObject.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/RealmSwift/RealmSwift.framework/Headers/RealmSwift-Swift.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMArray.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMProperty.h /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Modules/module.modulemap /Users/octoberhammer/Developer/CoreDataCallViewFRC/Build/Products/Debug-iphonesimulator/RealmSwift/RealmSwift.framework/Modules/module.modulemap
D
/Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Fluent.build/Migration/MigrationSupporting.swift.o : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Model/ID.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Schema/SchemaSupporting+CRUD.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Model/Model+CRUD.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+CRUD.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Utilities/Deprecated.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Service/MigrateCommand.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Service/RevertCommand.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+Decode.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+Range.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Model/SoftDeletable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+Aggregate.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Migration/MigrationConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Schema/SchemaSupporting.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Join/JoinSupporting.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Migration/MigrationSupporting.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Transaction/TransactionSupporting.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Query/QuerySupporting.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Migration/MigrationLog.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+Model.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Model/Model.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Model/AnyModel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Relations/Children.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Join/QueryBuilder+Join.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Schema/SchemaSupporting+Migration.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Migration/Migration.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Migration/AnyMigration.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+Run.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Service/FluentProvider.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Schema/SchemaBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Schema/SchemaUpdater.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+Filter.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Utilities/FluentError.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Schema/SchemaCreator.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Schema/DatabasesConfig+References.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Relations/Siblings.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Migration/Migrations.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Migration/AnyMigrations.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+Operators.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Utilities/Exports.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Relations/Parent.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Service/CommandConfig+Fluent.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Cache/KeyedCacheSupporting+Fluent.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Database/DatabaseConnection+Fluent.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Model/ModelEvent.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Model/Pivot.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+Sort.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Cache/CacheEntry.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Query/FluentProperty.swift /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/XPC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/IOKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Fluent.build/Migration/MigrationSupporting~partial.swiftmodule : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Model/ID.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Schema/SchemaSupporting+CRUD.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Model/Model+CRUD.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+CRUD.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Utilities/Deprecated.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Service/MigrateCommand.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Service/RevertCommand.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+Decode.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+Range.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Model/SoftDeletable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+Aggregate.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Migration/MigrationConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Schema/SchemaSupporting.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Join/JoinSupporting.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Migration/MigrationSupporting.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Transaction/TransactionSupporting.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Query/QuerySupporting.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Migration/MigrationLog.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+Model.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Model/Model.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Model/AnyModel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Relations/Children.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Join/QueryBuilder+Join.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Schema/SchemaSupporting+Migration.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Migration/Migration.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Migration/AnyMigration.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+Run.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Service/FluentProvider.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Schema/SchemaBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Schema/SchemaUpdater.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+Filter.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Utilities/FluentError.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Schema/SchemaCreator.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Schema/DatabasesConfig+References.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Relations/Siblings.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Migration/Migrations.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Migration/AnyMigrations.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+Operators.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Utilities/Exports.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Relations/Parent.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Service/CommandConfig+Fluent.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Cache/KeyedCacheSupporting+Fluent.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Database/DatabaseConnection+Fluent.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Model/ModelEvent.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Model/Pivot.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+Sort.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Cache/CacheEntry.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Query/FluentProperty.swift /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/XPC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/IOKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Fluent.build/Migration/MigrationSupporting~partial.swiftdoc : /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Model/ID.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Schema/SchemaSupporting+CRUD.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Model/Model+CRUD.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+CRUD.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Utilities/Deprecated.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Service/MigrateCommand.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Service/RevertCommand.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+Decode.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+Range.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Model/SoftDeletable.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+Aggregate.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Migration/MigrationConfig.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Schema/SchemaSupporting.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Join/JoinSupporting.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Migration/MigrationSupporting.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Transaction/TransactionSupporting.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Query/QuerySupporting.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Migration/MigrationLog.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+Model.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Model/Model.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Model/AnyModel.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Relations/Children.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Join/QueryBuilder+Join.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Schema/SchemaSupporting+Migration.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Migration/Migration.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Migration/AnyMigration.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+Run.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Service/FluentProvider.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Schema/SchemaBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Schema/SchemaUpdater.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+Filter.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Utilities/FluentError.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Schema/SchemaCreator.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Schema/DatabasesConfig+References.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Relations/Siblings.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Migration/Migrations.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Migration/AnyMigrations.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+Operators.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Utilities/Exports.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Relations/Parent.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Service/CommandConfig+Fluent.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Cache/KeyedCacheSupporting+Fluent.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Database/DatabaseConnection+Fluent.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Model/ModelEvent.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Model/Pivot.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/QueryBuilder/QueryBuilder+Sort.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Cache/CacheEntry.swift /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/fluent/Sources/Fluent/Query/FluentProperty.swift /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/XPC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/IOKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Command.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Console.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/DatabaseKit.swiftmodule /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/weirujian/Desktop/WeiRuJian/Vapor/AuthServer/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
/* * Copyright (c) 2004-2008 Derelict Developers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * * Neither the names 'Derelict', 'DerelictGL', nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ module derelict.opengl.extension.ext.framebuffer_multisample; private { import derelict.opengl.gltypes; import derelict.opengl.gl; import derelict.opengl.extension.loader; import derelict.util.wrapper; } private bool enabled = false; struct EXTFramebufferMultisample { static bool load(char[] extString) { if(extString.findStr("GL_EXT_framebuffer_multisample") == -1) return false; if(!glBindExtFunc(cast(void**)&glRenderbufferStorageMultisampleEXT, "glRenderbufferStorageMultisampleEXT")) return false; enabled = true; return true; } static bool isEnabled() { return enabled; } } version(DerelictGL_NoExtensionLoaders) { } else { static this() { DerelictGL.registerExtensionLoader(&EXTFramebufferMultisample.load); } } enum : GLenum { GL_RENDERBUFFER_SAMPLES_EXT = 0x8CAB } extern(System): typedef void function(GLenum, GLsizei, GLenum, GLsizei, GLsizei) pfglRenderbufferStorageMultisampleEXT; pfglRenderbufferStorageMultisampleEXT glRenderbufferStorageMultisampleEXT;
D
FUNC VOID B_DschinnBesetzteMine () { AI_Output(self, hero, "Info_Mod_Dschinn_MineBesetzt_10_00"); //Diese Mine ist bereits besetzt. }; INSTANCE Info_Mod_Dschinn_FM_Hi (C_INFO) { npc = Dschinn_11012_FM; nr = 1; condition = Info_Mod_Dschinn_FM_Hi_Condition; information = Info_Mod_Dschinn_FM_Hi_Info; permanent = 0; important = 1; }; FUNC INT Info_Mod_Dschinn_FM_Hi_Condition() { return 1; }; FUNC VOID Info_Mod_Dschinn_FM_Hi_Info() { B_DschinnBesetzteMine(); Mod_NL_Dschinn_FM = 2; AI_StopProcessInfos (self); }; INSTANCE Info_Mod_Dschinn_OM_Hi (C_INFO) { npc = Dschinn_11013_OM; nr = 1; condition = Info_Mod_Dschinn_OM_Hi_Condition; information = Info_Mod_Dschinn_OM_Hi_Info; permanent = 0; important = 1; }; FUNC INT Info_Mod_Dschinn_OM_Hi_Condition() { return 1; }; FUNC VOID Info_Mod_Dschinn_OM_Hi_Info() { B_DschinnBesetzteMine(); Mod_NL_Dschinn_OM = 2; AI_StopProcessInfos (self); }; INSTANCE Info_Mod_Dschinn_VM_Hi (C_INFO) { npc = Dschinn_11014_VM; nr = 1; condition = Info_Mod_Dschinn_VM_Hi_Condition; information = Info_Mod_Dschinn_VM_Hi_Info; permanent = 0; important = 1; }; FUNC INT Info_Mod_Dschinn_VM_Hi_Condition() { return 1; }; FUNC VOID Info_Mod_Dschinn_VM_Hi_Info() { AI_Output(self, hero, "Info_Mod_Dschinn_VM_Hi_10_00"); //Eine verlassene Erzmine. Das wird meinen Meister überaus freuen. Mod_NL_Dschinn_VM = 2; AI_StopProcessInfos (self); };
D
/* Copyright (c) 2013 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.image.compleximage; private { import dlib.math.vector; import dlib.math.complex; import dlib.math.fft; import dlib.image.image; import dlib.image.color; import dlib.image.signal2d; } class ComplexImageRGB { Signal2D chR; Signal2D chG; Signal2D chB; this(Signal2D r, Signal2D g, Signal2D b) { chR = r; chG = g; chB = b; } this(SuperImage img) { assert(img.channels >= 3); chR = new Signal2D(img, 0); chG = new Signal2D(img, 1); chB = new Signal2D(img, 2); chR.fft(); chG.fft(); chB.fft(); } ComplexImageRGB convolve(Signal2D kernel) { assert(kernel.domain == Signal2D.Domain.Frequency); return multiply(kernel); } ComplexImageRGB deconvolve(Signal2D kernel) { return divide(kernel); } ComplexImageRGB applyFilter(Signal2D filter) { assert(filter.domain == Signal2D.Domain.Spatial); return multiply(filter); } ComplexImageRGB multiply(Signal2D sig) { auto resR = chR.multiply(sig); auto resG = chG.multiply(sig); auto resB = chB.multiply(sig); return new ComplexImageRGB(resR, resG, resB); } ComplexImageRGB divide(Signal2D sig) { auto resR = chR.divide(sig); auto resG = chG.divide(sig); auto resB = chB.divide(sig); return new ComplexImageRGB(resR, resG, resB); } @property ImageRGB8 image() { if (chR.domain == Signal2D.Domain.Frequency) chR.fftInverse(); if (chG.domain == Signal2D.Domain.Frequency) chG.fftInverse(); if (chB.domain == Signal2D.Domain.Frequency) chB.fftInverse(); return composeRGB(chR, chG, chB); } } ImageRGB8 composeRGB( Signal2D chRed, Signal2D chGreen, Signal2D chBlue) { ImageRGB8 img = new ImageRGB8(chRed.width, chRed.height); float maxIntensityR = 0.0f; float maxIntensityG = 0.0f; float maxIntensityB = 0.0f; Vector3f[] fpImage = new Vector3f[img.width * img.height]; for(int i = 0; i < chRed.data.length; i++) { float mr, mg, mb; mr = chRed.data[i].magnitude; if (mr > maxIntensityR) maxIntensityR = mr; mg = chGreen.data[i].magnitude; if (mg > maxIntensityG) maxIntensityG = mg; mb = chBlue.data[i].magnitude; if (mb > maxIntensityB) maxIntensityB = mb; fpImage[i] = Vector3f(mr, mg, mb); } foreach(ref v; fpImage) { v.r /= maxIntensityR; v.g /= maxIntensityG; v.b /= maxIntensityB; } foreach(y; 0..img.height) foreach(x; 0..img.width) { size_t index = (y * img.width + x); Vector3f m = fpImage[index]; img[x, y] = Color4f(m); } return img; }
D
/Users/brunodaluz/Desktop/project/Build/Intermediates/project.build/Debug/Routing.build/Objects-normal/x86_64/RoutingError.o : /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Utilities/Deprecated.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Routing/RouterNode.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Register/Route.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Parameter/ParameterValue.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Register/RouterOption.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Parameter/Parameter.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Routing/TrieRouter.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Utilities/RoutingError.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Parameter/Parameters.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Utilities/Exports.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Routing/RoutableComponent.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Register/PathComponent.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/Async.framework/Modules/Async.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Service.framework/Modules/Service.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Core.framework/Modules/Core.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Debugging.framework/Modules/Debugging.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/COperatingSystem.framework/Modules/COperatingSystem.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOConcurrencyHelpers.framework/Modules/NIOConcurrencyHelpers.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Bits.framework/Modules/Bits.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOFoundationCompat.framework/Modules/NIOFoundationCompat.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/Foundation.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.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/IOKit.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 /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/brunodaluz/Desktop/project/Build/Intermediates/project.build/Debug/Routing.build/Objects-normal/x86_64/RoutingError~partial.swiftmodule : /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Utilities/Deprecated.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Routing/RouterNode.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Register/Route.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Parameter/ParameterValue.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Register/RouterOption.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Parameter/Parameter.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Routing/TrieRouter.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Utilities/RoutingError.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Parameter/Parameters.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Utilities/Exports.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Routing/RoutableComponent.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Register/PathComponent.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/Async.framework/Modules/Async.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Service.framework/Modules/Service.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Core.framework/Modules/Core.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Debugging.framework/Modules/Debugging.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/COperatingSystem.framework/Modules/COperatingSystem.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOConcurrencyHelpers.framework/Modules/NIOConcurrencyHelpers.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Bits.framework/Modules/Bits.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOFoundationCompat.framework/Modules/NIOFoundationCompat.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/Foundation.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.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/IOKit.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 /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/brunodaluz/Desktop/project/Build/Intermediates/project.build/Debug/Routing.build/Objects-normal/x86_64/RoutingError~partial.swiftdoc : /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Utilities/Deprecated.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Routing/RouterNode.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Register/Route.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Parameter/ParameterValue.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Register/RouterOption.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Parameter/Parameter.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Routing/TrieRouter.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Utilities/RoutingError.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Parameter/Parameters.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Utilities/Exports.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Routing/RoutableComponent.swift /Users/brunodaluz/Desktop/project/.build/checkouts/routing.git-5348454670205955628/Sources/Routing/Register/PathComponent.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/Async.framework/Modules/Async.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Service.framework/Modules/Service.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Core.framework/Modules/Core.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Debugging.framework/Modules/Debugging.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/COperatingSystem.framework/Modules/COperatingSystem.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOConcurrencyHelpers.framework/Modules/NIOConcurrencyHelpers.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/Bits.framework/Modules/Bits.swiftmodule/x86_64.swiftmodule /Users/brunodaluz/Desktop/project/Build/Products/Debug/NIOFoundationCompat.framework/Modules/NIOFoundationCompat.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/Foundation.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.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/IOKit.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 /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
module org.serviio.upnp.protocol.soap.all; public import org.serviio.upnp.protocol.soap.InvocationError; public import org.serviio.upnp.protocol.soap.OperationResult; public import org.serviio.upnp.protocol.soap.ServiceInvocationException; public import org.serviio.upnp.protocol.soap.ServiceInvoker; public import org.serviio.upnp.protocol.soap.SOAPParameter; public import org.serviio.upnp.protocol.soap.SOAPParameters;
D
module modules.variables; int gInt; immutable gDouble = 33.3; struct Struct {} Struct gStruct; enum CONSTANT_INT = 42; enum CONSTANT_STRING = "foobar"; immutable int gImmutableInt = 77; // just to check that this doesn't cause problems auto templateFunction(T...)(T stuff) { ubyte[16] ret; return ret; }
D
func void ZS_Meditate() { PrintDebugNpc(PD_TA_FRAME,"ZS_Meditate"); B_SetPerception(self); AI_SetWalkMode(self,NPC_WALK); if(!Npc_IsOnFP(self,"MEDITATE")) { AI_GotoWP(self,self.wp); }; if(Wld_IsFPAvailable(self,"MEDITATE")) { AI_GotoFP(self,"MEDITATE"); AI_AlignToFP(self); }; Wld_DetectNpc(self,-1,ZS_Teaching,-1); if(Npc_GetDistToNpc(self,other) <= PERC_DIST_INTERMEDIAT) { B_SmartTurnToNpc(self,other); }; AI_PlayAniBS(self,"T_STAND_2_PRAY",BS_SIT); }; func void ZS_Meditate_Loop() { var int praytime; PrintDebugNpc(PD_TA_LOOP,"ZS_Meditate_Loop"); praytime = Hlp_Random(100); if(praytime <= 2) { AI_PlayAniBS(self,"T_PRAY_RANDOM",BS_SIT); }; if(praytime >= 98) { AI_Output(self,NULL,"ZS_Meditate_Om"); //Omm... }; AI_Wait(self,1); }; func void ZS_Meditate_End() { C_StopLookAt(self); AI_PlayAniBS(self,"T_PRAY_2_STAND",BS_STAND); PrintDebugNpc(PD_TA_FRAME,"ZS_Meditate_End"); };
D
// This file is part of CCBI - Conforming Concurrent Befunge-98 Interpreter // Copyright (c) 2006-2010 Matti Niemenmaa // See license.txt, which you should have received together with this file, for // licensing information. // File created: 2007-01-20 21:13:43 module ccbi.fingerprints.rcfunge98.dirf; import ccbi.fingerprint; mixin (Fingerprint!( "DIRF", "Directory functions extension", "C", "changeDir", "M", "makeDir", "R", "removeDir" )); template DIRF() { // Selective import is: // WORKAROUND: http://d.puremagic.com/issues/show_bug.cgi?id=2991 import tango.io.FilePath : FilePath; import tango.sys.Environment; FilePath path; void ctor() { path = new FilePath(Environment.cwd()); path.native; } void changeDir() { try { Environment.cwd = popString(); path.set(Environment.cwd()).native; } catch { reverse(); } } void makeDir() { try (new FilePath(popString())).native.createFolder(); catch { reverse(); } } void removeDir() { try { auto dir = new FilePath(popString()); dir.native; if (dir.isFolder()) dir.remove(); else reverse(); } catch { reverse(); } } }
D
/** * Compiler implementation of the * $(LINK2 http://www.dlang.org, D programming language). * * Copyright: Copyright (c) 1999-2017 by Digital Mars, All Rights Reserved * Authors: $(LINK2 http://www.digitalmars.com, Walter Bright) * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/ddmd/delegatize.d, _delegatize.d) */ module ddmd.delegatize; // Online documentation: https://dlang.org/phobos/ddmd_delegatize.html import core.stdc.stdio; import ddmd.apply; import ddmd.declaration; import ddmd.dscope; import ddmd.dsymbol; import ddmd.expression; import ddmd.func; import ddmd.globals; import ddmd.initsem; import ddmd.mtype; import ddmd.semantic; import ddmd.statement; import ddmd.tokens; import ddmd.visitor; extern (C++) Expression toDelegate(Expression e, Type t, Scope* sc) { //printf("Expression::toDelegate(t = %s) %s\n", t.toChars(), e.toChars()); Loc loc = e.loc; auto tf = new TypeFunction(null, t, 0, LINKd); if (t.hasWild()) tf.mod = MODwild; auto fld = new FuncLiteralDeclaration(loc, loc, tf, TOKdelegate, null); sc = sc.push(); sc.parent = fld; // set current function to be the delegate lambdaSetParent(e, sc); bool r = lambdaCheckForNestedRef(e, sc); sc = sc.pop(); if (r) return new ErrorExp(); Statement s; if (t.ty == Tvoid) s = new ExpStatement(loc, e); else s = new ReturnStatement(loc, e); fld.fbody = s; e = new FuncExp(loc, fld); e = e.semantic(sc); return e; } /****************************************** * Patch the parent of declarations to be the new function literal. */ extern (C++) void lambdaSetParent(Expression e, Scope* sc) { extern (C++) final class LambdaSetParent : StoppableVisitor { alias visit = super.visit; Scope* sc; public: extern (D) this(Scope* sc) { this.sc = sc; } override void visit(Expression) { } override void visit(DeclarationExp e) { e.declaration.parent = sc.parent; } override void visit(IndexExp e) { if (e.lengthVar) { //printf("lengthVar\n"); e.lengthVar.parent = sc.parent; } } override void visit(SliceExp e) { if (e.lengthVar) { //printf("lengthVar\n"); e.lengthVar.parent = sc.parent; } } } scope LambdaSetParent lsp = new LambdaSetParent(sc); walkPostorder(e, lsp); } /******************************************* * Look for references to variables in a scope enclosing the new function literal. * Returns true if error occurs. */ extern (C++) bool lambdaCheckForNestedRef(Expression e, Scope* sc) { extern (C++) final class LambdaCheckForNestedRef : StoppableVisitor { alias visit = super.visit; public: Scope* sc; bool result; extern (D) this(Scope* sc) { this.sc = sc; } override void visit(Expression) { } override void visit(SymOffExp e) { VarDeclaration v = e.var.isVarDeclaration(); if (v) result = v.checkNestedReference(sc, Loc()); } override void visit(VarExp e) { VarDeclaration v = e.var.isVarDeclaration(); if (v) result = v.checkNestedReference(sc, Loc()); } override void visit(ThisExp e) { if (e.var) result = e.var.checkNestedReference(sc, Loc()); } override void visit(DeclarationExp e) { VarDeclaration v = e.declaration.isVarDeclaration(); if (v) { result = v.checkNestedReference(sc, Loc()); if (result) return; /* Some expressions cause the frontend to create a temporary. * For example, structs with cpctors replace the original * expression e with: * __cpcttmp = __cpcttmp.cpctor(e); * * In this instance, we need to ensure that the original * expression e does not have any nested references by * checking the declaration initializer too. */ if (v._init && v._init.isExpInitializer()) { Expression ie = v._init.initializerToExpression(); result = lambdaCheckForNestedRef(ie, sc); } } } } scope LambdaCheckForNestedRef v = new LambdaCheckForNestedRef(sc); walkPostorder(e, v); return v.result; } /***************************************** * See if context `s` is nested within context `p`, meaning * it `p` is reachable at runtime by walking the static links. * If any of the intervening contexts are function literals, * make sure they are delegates. * Params: * s = inner context * p = outer context * Returns: * true means it is accessible by walking the context pointers at runtime * References: * for static links see https://en.wikipedia.org/wiki/Call_stack#Functions_of_the_call_stack */ bool ensureStaticLinkTo(Dsymbol s, Dsymbol p) { while (s) { if (s == p) // hit! return true; if (auto fd = s.isFuncDeclaration()) { if (!fd.isThis() && !fd.isNested()) break; // https://issues.dlang.org/show_bug.cgi?id=15332 // change to delegate if fd is actually nested. if (auto fld = fd.isFuncLiteralDeclaration()) fld.tok = TOKdelegate; } if (auto ad = s.isAggregateDeclaration()) { if (ad.storage_class & STCstatic) break; } s = s.toParent2(); } return false; }
D
/// Author: Aziz Köksal /// License: GPL3 /// $(Maturity average) module Settings; import common; /// Глобальные настройки приложения. struct ГлобальныеНастройки { static: /// Путь к папке с данными. ткст папкаСДанными = "data/"; /// Предопределенные идентификаторы версии. ткст[] идыВерсий; /// Путь к файлу языка. ткст файлЯзыка = "lang.d"; /// Код языка загруженного каталога сообщений. ткст кодЯзыка = "ru"; /// Таблица локализованных сообщений компилятора. ткст[] сообщения; /// Массив путей импорта для поиска модулей. ткст[] путиИмпорта; /// Массив путей к макросам Ддок. ткст[] путиКФайлуДдок; ткст файлКартыРЯР = "xml_map.d"; /// Файл карты РЯР. ткст файлКартыГЯР = "html_map.d"; /// Фацл карты ГЯР. ткст форматОшибкиЛексера = "{0}({1},{2})L: {3}"; /// Ошибка лексера. ткст форматОшибкиПарсера = "{0}({1},{2})P: {3}"; /// Ошибка парсера. ткст форматОшибкиСемантики = "{0}({1},{2})S: {3}"; /// Семантическая ошибка. бцел ширинаТаб = 4; /// Ширина табулятора символа. }
D
instance Mod_1143_GRD_Gardist_MT (Npc_Default) { //-------- primary data -------- name = NAME_Gardist; npctype = npctype_mt_gardist; guild = GIL_OUT; level = 10; voice = 13; id = 1143; //-------- abilities -------- B_SetAttributesToChapter (self, 4); EquipItem (self, ItMw_1H_quantarie_Schwert_01); //-------- visuals -------- // animations Mdl_SetVisual (self,"HUMANS.MDS"); Mdl_ApplyOverlayMds (self,"Humans_Militia.mds"); // body mesh ,bdytex,skin,head mesh ,headtex,teethtex,ruestung Mdl_SetVisualBody (self,"hum_body_Naked0", 0, 2,"Hum_Head_Thief", 4, 2, GRD_ARMOR_L); Mdl_SetModelFatness(self,0); fight_tactic = FAI_HUMAN_STRONG; //-------- Talente -------- B_SetFightSkills (self, 60); B_CreateAmbientInv (self); //-------------Daily Routine------------- daily_routine = Rtn_start_1143; }; FUNC VOID Rtn_start_1143 () { TA_Sleep (01,40,07,50,"OCC_MERCS_UPPER_LEFT_ROOM_BED7"); TA_Sit_Campfire (07,50,01,40,"OCC_WELL_RIGHT_MOVEMENT3"); };
D
instance TPL_1411_TEMPLER(NPC_DEFAULT) { name[0] = NAME_TEMPLER; npctype = NPCTYPE_GUARD; guild = GIL_TPL; level = 12; voice = 8; id = 1411; attribute[ATR_STRENGTH] = 70; attribute[ATR_DEXTERITY] = 25; attribute[ATR_MANA_MAX] = 0; attribute[ATR_MANA] = 0; attribute[ATR_HITPOINTS_MAX] = 184; attribute[ATR_HITPOINTS] = 184; Mdl_SetVisual(self,"HUMANS.MDS"); Mdl_ApplyOverlayMds(self,"Humans_Militia.mds"); Mdl_SetVisualBody(self,"hum_body_Naked0",1,1,"Hum_Head_Psionic",66,1,tpl_armor_l); b_scale(self); Mdl_SetModelFatness(self,0); fight_tactic = FAI_HUMAN_STRONG; Npc_SetTalentSkill(self,NPC_TALENT_2H,1); EquipItem(self,itmw_2h_sword_light_01); CreateInvItem(self,itfosoup); CreateInvItem(self,itmijoint_1); daily_routine = rtn_start_1411; }; func void rtn_start_1411() { ta_sleep(0,0,6,0,"PSI_16_HUT_IN"); ta_practicesword(6,0,0,0,"PSI_PATH_6_8"); }; func void rtn_remove_1411() { ta_stay(23,0,16,0,"WP_INTRO01"); ta_stay(16,0,23,0,"WP_INTRO01"); };
D
module statement.return_fn_stmt; import std.conv, std.string; import pegged.grammar; import language.statement, language.expression; import program; class Return_fn_stmt:Stmt { mixin StmtConstructor; void process() { if(!this.program.in_procedure) { this.program.error("Not in function context"); } Procedure current_proc = this.program.findProcedure(this.program.current_proc_name); if(!current_proc.is_function) { this.program.error("Procedures can't return a value."); } auto e1 = this.node.children[0].children[0]; auto Ex1 = new Expression(e1, this.program); Ex1.eval(); if(Ex1.type != current_proc.type) { this.program.error("Function " ~ current_proc.name ~ " is supposed to return a(n) " ~ this.program.vartype_names[current_proc.type] ~ ", not a(n) " ~ this.program.vartype_names[Ex1.type]); } this.program.appendProgramSegment(to!string(Ex1)); this.program.appendProgramSegment("\tswap" ~ to!string(Ex1.type) ~ "\n"); this.program.appendProgramSegment("\trts\n"); } }
D
module evael.renderer.vertex; import std.conv : to; import evael.renderer.shader : ShaderAttribute, Yes, No; import evael.renderer.enums : AttributeType; import evael.utils.math; import evael.utils.color; alias Vertex2PositionColor = VertexPositionColor!2; alias Vertex2PositionColorTexture = VertexPositionColorTexture!2; alias Vertex2PositionColorNormal = VertexPositionColorNormal!2; alias Vertex3PositionColor = VertexPositionColor!3; alias Vertex3PositionColorTexture = VertexPositionColorTexture!3; alias Vertex3PositionColorNormal = VertexPositionColorNormal!3; struct VertexPositionColor(int positionCount) { @ShaderAttribute(0, AttributeType.Float, positionCount, No.normalized) public Vector!(float, positionCount) position; @ShaderAttribute(1, AttributeType.UByte, 4, Yes.normalized) public Color color; } struct VertexPositionColorTexture(int positionCount) { @ShaderAttribute(0, AttributeType.Float, positionCount, No.normalized) public Vector!(float, positionCount) position; @ShaderAttribute(1, AttributeType.UByte, 4, Yes.normalized) public Color color; @ShaderAttribute(2, AttributeType.Float, 2, No.normalized) public vec2 textureCoordinate; } struct VertexPositionColorNormal(int positionCount) { @ShaderAttribute(0, AttributeType.Float, positionCount, No.normalized) public Vector!(float, positionCount) position; @ShaderAttribute(1, AttributeType.UByte, 4, Yes.normalized) public Color color; @ShaderAttribute(2, AttributeType.Float, 3, Yes.normalized) public vec3 normal; } struct VertexPositionColorNormalTexture { @ShaderAttribute(0, AttributeType.Float, 3, No.normalized) public vec3 position; @ShaderAttribute(1, AttributeType.UByte, 4, Yes.normalized) public Color color; @ShaderAttribute(2, AttributeType.Float, 3, Yes.normalized) public vec3 normal; @ShaderAttribute(3, AttributeType.Float, 2, No.normalized) public vec2 textureCoordinate; } struct TerrainVertex { @ShaderAttribute(0, AttributeType.Float, 3, No.normalized) public vec3 position; @ShaderAttribute(1, AttributeType.UByte, 4, Yes.normalized) public Color color; @ShaderAttribute(2, AttributeType.Float, 3, Yes.normalized) public vec3 normal; @ShaderAttribute(3, AttributeType.Float, 2, No.normalized) public vec2 textureCoordinate; @ShaderAttribute(4, AttributeType.Float, 3, Yes.normalized) public vec3 tangent; @ShaderAttribute(5, AttributeType.Float, 3, Yes.normalized) public vec3 bitangent; @ShaderAttribute(6, AttributeType.Float, 1, No.normalized) public float textureId; @ShaderAttribute(7, AttributeType.Float, 1, No.normalized) public float blendingTextureId; } struct IqmVertex { @ShaderAttribute(0, AttributeType.Float, 3, No.normalized) public vec3 position; @ShaderAttribute(1, AttributeType.UByte, 4, Yes.normalized) public Color color; @ShaderAttribute(2, AttributeType.Float, 3, Yes.normalized) public vec3 normal; @ShaderAttribute(3, AttributeType.Float, 2, No.normalized) public vec2 textureCoordinate; @ShaderAttribute(4, AttributeType.UByte, 4, No.normalized) public ubvec4 blendIndex; @ShaderAttribute(5, AttributeType.UByte, 4, Yes.normalized) public ubvec4 blendWeight; } struct Instancing(int layoutIndex) { @ShaderAttribute(layoutIndex, AttributeType.Float, 4, No.normalized) public vec4 row1; @ShaderAttribute(layoutIndex + 1, AttributeType.Float, 4, No.normalized) public vec4 row2; @ShaderAttribute(layoutIndex + 2, AttributeType.Float, 4, No.normalized) public vec4 row3; @ShaderAttribute(layoutIndex + 3, AttributeType.Float, 4, No.normalized) public vec4 row4; }
D
/* Boost Software License - Version 1.0 - August 17th, 2003 Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by this license (the "Software") to use, reproduce, display, distribute, execute, and transmit the Software, and to prepare derivative works of the Software, and to permit third-parties to whom the Software is furnished to do so, all subject to the following: The copyright notices in the Software and this entire statement, including the above license grant, this restriction and the following disclaimer, must be included in all copies of the Software, in whole or in part, and all derivative works of the Software, unless such copies or derivative works are solely in the form of machine-executable object code generated by a source language processor. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ module derelict.glib.gstring; import derelict.glib.gtypes; import derelict.glib.glibconfig; import derelict.glib.gunicode; import derelict.glib.garray; import std.c.stdarg; import core.stdc.string; import core.stdc.config; extern (C): alias _GString GString; struct _GString { gchar* str; gsize len; gsize allocated_len; } version(Derelict_Link_Static) { extern( C ) nothrow { GString* g_string_new(const(gchar)* init); GString* g_string_new_len(const(gchar)* init, gssize len); GString* g_string_sized_new(gsize dfl_size); GBytes* g_string_free_to_bytes(GString *string); gchar* g_string_free(GString* string, gboolean free_segment); gboolean g_string_equal(const(GString)* v, const(GString)* v2); guint g_string_hash(const(GString)* str); GString* g_string_assign(GString* string, const(gchar)* rval); GString* g_string_truncate(GString* string, gsize len); GString* g_string_set_size(GString* string, gsize len); GString* g_string_insert_len(GString* string, gssize pos, const(gchar)* val, gssize len); GString* g_string_append(GString* string, const(gchar)* val); GString* g_string_append_len(GString* string, const(gchar)* val, gssize len); GString* g_string_append_c(GString* string, gchar c); GString* g_string_append_unichar(GString* string, gunichar wc); GString* g_string_prepend(GString* string, const(gchar)* val); GString* g_string_prepend_c(GString* string, gchar c); GString* g_string_prepend_unichar(GString* string, gunichar wc); GString* g_string_prepend_len(GString* string, const(gchar)* val, gssize len); GString* g_string_insert(GString* string, gssize pos, const(gchar)* val); GString* g_string_insert_c(GString* string, gssize pos, gchar c); GString* g_string_insert_unichar(GString* string, gssize pos, gunichar wc); GString* g_string_overwrite(GString* string, gsize pos, const(gchar)* val); GString* g_string_overwrite_len(GString* string, gsize pos, const(gchar)* val, gssize len); GString* g_string_erase(GString* string, gssize pos, gssize len); GString* g_string_ascii_down(GString* string); GString* g_string_ascii_up(GString* string); void g_string_vprintf(GString* string, const(gchar)* format, va_list args); void g_string_printf(GString* string, const(gchar)* format, ...); void g_string_append_vprintf(GString* string, const(gchar)* format, va_list args); void g_string_append_printf(GString* string, const(gchar)* format, ...); GString* g_string_append_uri_escaped(GString* string, const(gchar)* unescaped, const(gchar)* reserved_chars_allowed, gboolean allow_utf8); GString* g_string_append_c_inline(GString* gstring, gchar c); GString* g_string_down(GString* string); GString* g_string_up(GString* string); } } else { extern( C ) nothrow { alias da_g_string_new = GString* function(const(gchar)* init); alias da_g_string_new_len = GString* function(const(gchar)* init, gssize len); alias da_g_string_sized_new = GString* function(gsize dfl_size); alias da_g_string_free_to_bytes = GBytes* function(GString *string); alias da_g_string_free = gchar* function(GString* string, gboolean free_segment); alias da_g_string_equal = gboolean function(const(GString)* v, const(GString)* v2); alias da_g_string_hash = guint function(const(GString)* str); alias da_g_string_assign = GString* function(GString* string, const(gchar)* rval); alias da_g_string_truncate = GString* function(GString* string, gsize len); alias da_g_string_set_size = GString* function(GString* string, gsize len); alias da_g_string_insert_len = GString* function(GString* string, gssize pos, const(gchar)* val, gssize len); alias da_g_string_append = GString* function(GString* string, const(gchar)* val); alias da_g_string_append_len = GString* function(GString* string, const(gchar)* val, gssize len); alias da_g_string_append_c = GString* function(GString* string, gchar c); alias da_g_string_append_unichar = GString* function(GString* string, gunichar wc); alias da_g_string_prepend = GString* function(GString* string, const(gchar)* val); alias da_g_string_prepend_c = GString* function(GString* string, gchar c); alias da_g_string_prepend_unichar = GString* function(GString* string, gunichar wc); alias da_g_string_prepend_len = GString* function(GString* string, const(gchar)* val, gssize len); alias da_g_string_insert = GString* function(GString* string, gssize pos, const(gchar)* val); alias da_g_string_insert_c = GString* function(GString* string, gssize pos, gchar c); alias da_g_string_insert_unichar = GString* function(GString* string, gssize pos, gunichar wc); alias da_g_string_overwrite = GString* function(GString* string, gsize pos, const(gchar)* val); alias da_g_string_overwrite_len = GString* function(GString* string, gsize pos, const(gchar)* val, gssize len); alias da_g_string_erase = GString* function(GString* string, gssize pos, gssize len); alias da_g_string_ascii_down = GString* function(GString* string); alias da_g_string_ascii_up = GString* function(GString* string); alias da_g_string_vprintf = void function(GString* string, const(gchar)* format, va_list args); alias da_g_string_printf = void function(GString* string, const(gchar)* format, ...); alias da_g_string_append_vprintf = void function(GString* string, const(gchar)* format, va_list args); alias da_g_string_append_printf = void function(GString* string, const(gchar)* format, ...); alias da_g_string_append_uri_escaped = GString* function(GString* string, const(gchar)* unescaped, const(gchar)* reserved_chars_allowed, gboolean allow_utf8); alias da_g_string_append_c_inline = GString* function(GString* gstring, gchar c); alias da_g_string_down = GString* function(GString* string); alias da_g_string_up = GString* function(GString* string); } __gshared { da_g_string_new g_string_new; da_g_string_new_len g_string_new_len; da_g_string_sized_new g_string_sized_new; da_g_string_free g_string_free; da_g_string_free_to_bytes g_string_free_to_bytes; da_g_string_equal g_string_equal; da_g_string_hash g_string_hash; da_g_string_assign g_string_assign; da_g_string_truncate g_string_truncate; da_g_string_set_size g_string_set_size; da_g_string_insert_len g_string_insert_len; da_g_string_append g_string_append; da_g_string_append_len g_string_append_len; da_g_string_append_c g_string_append_c; da_g_string_append_unichar g_string_append_unichar; da_g_string_prepend g_string_prepend; da_g_string_prepend_c g_string_prepend_c; da_g_string_prepend_unichar g_string_prepend_unichar; da_g_string_prepend_len g_string_prepend_len; da_g_string_insert g_string_insert; da_g_string_insert_c g_string_insert_c; da_g_string_insert_unichar g_string_insert_unichar; da_g_string_overwrite g_string_overwrite; da_g_string_overwrite_len g_string_overwrite_len; da_g_string_erase g_string_erase; da_g_string_ascii_down g_string_ascii_down; da_g_string_ascii_up g_string_ascii_up; da_g_string_vprintf g_string_vprintf; da_g_string_printf g_string_printf; da_g_string_append_vprintf g_string_append_vprintf; da_g_string_append_printf g_string_append_printf; da_g_string_append_uri_escaped g_string_append_uri_escaped; da_g_string_append_c_inline g_string_append_c_inline; da_g_string_down g_string_down; da_g_string_up g_string_up; } }
D
module evael.system.input; /** * Mouse buttons. */ enum MouseButton : int { Left = 0, Right = 1, } /** * Keys. */ enum Key : int { Unknown = -1, Space = 32, Apostrophe = 39 /* ' */, Comma = 44 /* , */, Minus = 45 /* - */, Period = 46 /* . */, Slash = 47 /* / */, Num0 = 48, Num1 = 49, Num2 = 50, Num3 = 51, Num4 = 52, Num5 = 53, Num6 = 54, Num7 = 55, Num8 = 56, Num9 = 57, Semicolon = 59 /* ; */, Equal = 61 /* = */, 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, LeftBracket = 91 /* [ */, Backslash = 92 /* \ */, RightBracket = 93 /* ] */, GraveAccent = 96 /* ` */, World1 = 161 /* non-US #1 */, World2 = 162 /* non-US #2 */, Espace = 256, Enter = 257, Tab = 258, Backspace = 259, Insert = 260, Delete = 261, Right = 262, Left = 263, Down = 264, Up = 265, PageUp = 266, PageDown = 267, Home = 268, End = 269, CapsLock = 280, ScrolLock = 281, NumLock = 282, PrintScreen = 283, Pause = 284, F1 = 290, F2 = 291, F3 = 292, F4 = 293, F5 = 294, F6 = 295, F7 = 296, F8 = 297, F9 = 298, F10 = 299, F11 = 300, F12 = 301, F13 = 302, F14 = 303, F15 = 304, F16 = 305, F17 = 306, F18 = 307, F19 = 308, F20 = 309, F21 = 310, F22 = 311, F23 = 312, F24 = 313, F25 = 314, Keypad0 = 320, Keypad1 = 321, Keypad2 = 322, Keypad3 = 323, Keypad4 = 324, Keypad5 = 325, Keypad6 = 326, Keypad7 = 327, Keypad8 = 328, Keypad9 = 329, KeypadDecimal = 330, KeypadDivide = 331, KeypadMultiply = 332, KeypadSubstract = 333, KeypadAdd = 334, KeypadEnter = 335, KeypadEqual = 336, LeftShift = 340, LeftControl = 341, LeftAlt = 342, LeftSuper = 343, RightShift = 344, RightControl = 345, RightAlt = 346, RightSuper = 347, Menu = 348, }
D
/Users/Vidyadhar/Desktop/Github/MapkitTutorial/build/MapkitTutorial.build/Debug-iphonesimulator/MapkitTutorial.build/Objects-normal/x86_64/ViewController.o : /Users/Vidyadhar/Desktop/Github/MapkitTutorial/MapkitTutorial/AppDelegate.swift /Users/Vidyadhar/Desktop/Github/MapkitTutorial/MapkitTutorial/ViewController.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/CoreData.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/CoreLocation.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/MapKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Vidyadhar/Desktop/Github/MapkitTutorial/build/MapkitTutorial.build/Debug-iphonesimulator/MapkitTutorial.build/Objects-normal/x86_64/ViewController~partial.swiftmodule : /Users/Vidyadhar/Desktop/Github/MapkitTutorial/MapkitTutorial/AppDelegate.swift /Users/Vidyadhar/Desktop/Github/MapkitTutorial/MapkitTutorial/ViewController.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/CoreData.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/CoreLocation.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/MapKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Vidyadhar/Desktop/Github/MapkitTutorial/build/MapkitTutorial.build/Debug-iphonesimulator/MapkitTutorial.build/Objects-normal/x86_64/ViewController~partial.swiftdoc : /Users/Vidyadhar/Desktop/Github/MapkitTutorial/MapkitTutorial/AppDelegate.swift /Users/Vidyadhar/Desktop/Github/MapkitTutorial/MapkitTutorial/ViewController.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/CoreData.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/CoreLocation.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/MapKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
D
/* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ //import hunt.collection; // //import flow.common.persistence.entity.Entity; // ///** // * Interface to express a condition whether or not a cached entity should be used in the return result of a query. // * // * @author Joram Barrez // */ //interface CachedEntityMatcher<EntityImpl extends Entity> { // // /** // * Returns true if an entity from the cache should be retained (i.e. used as return result for a query). // * // * Most implementations of this interface probably don't need this method, and should extend the simpler {@link CachedEntityMatcherAdapter}, which hides this method. // * // * Note that the databaseEntities collection can be null, in case only the cache is checked. // */ // bool isRetained(Collection<EntityImpl> databaseEntities, Collection<CachedEntity> cachedEntities, EntityImpl entity, Object param); // //}
D
/** Implements a compile-time Diet template parser. Diet templates are an more or less compatible incarnation of Jade templates but with embedded D source instead of JavaScript. The Diet syntax reference is found at $(LINK http://vibed.org/templates/diet). 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 */ module vibe.templ.diet; public import vibe.stream.stream; import vibe.core.file; import vibe.templ.utils; import vibe.textfilter.html; import vibe.textfilter.markdown; import vibe.utils.string; import std.array; import std.conv; import std.format; import std.metastrings; import std.typecons; import std.variant; /* TODO: support string interpolations in filter blocks to!string and htmlEscape should not be used in conjunction with ~ at run time. instead, use filterHtmlEncode(). */ /** Parses the given diet template at compile time and writes the resulting HTML code into 'stream'. Note that this function currently suffers from multiple DMD bugs in conjunction with local variables passed as alias template parameters. */ void parseDietFile(string template_file, ALIASES...)(OutputStream stream__) { // some imports to make available by default inside templates import vibe.http.common; import vibe.utils.string; pragma(msg, "Compiling diet template '"~template_file~"'..."); static if( ALIASES.length > 0 ){ pragma(msg, "Warning: using render!() or parseDietFile!() with aliases is unsafe,"); pragma(msg, " please consider using renderCompat!()/parseDietFileCompat!()"); pragma(msg, " until DMD is fully stable regarding local alias template arguments."); } //pragma(msg, localAliases!(0, ALIASES)); mixin(localAliases!(0, ALIASES)); // Generate the D source code for the diet template mixin(dietParser!template_file); #line 57 "diet.d" } /** Compatibility version of parseDietFile(). This function should only be called indiretly through HttpServerResponse.renderCompat(). */ void parseDietFileCompat(string template_file, TYPES_AND_NAMES...)(OutputStream stream__, Variant[] args__...) { // some imports to make available by default inside templates import vibe.http.common; import vibe.utils.string; pragma(msg, "Compiling diet template '"~template_file~"' (compat)..."); //pragma(msg, localAliasesCompat!(0, TYPES_AND_NAMES)); mixin(localAliasesCompat!(0, TYPES_AND_NAMES)); // Generate the D source code for the diet template mixin(dietParser!template_file); #line 78 "diet.d" } /** Registers a new text filter for use in Diet templates. The filter will be available using :filtername inside of the template. The following filters are predefined: css, javascript, markdown */ void registerDietTextFilter(string name, string function(string, int indent) filter) { s_filters[name] = filter; } /**************************************************************************************************/ /* private functions */ /**************************************************************************************************/ private { enum string StreamVariableName = "stream__"; string function(string, int indent)[string] s_filters; } static this() { registerDietTextFilter("css", &filterCSS); registerDietTextFilter("javascript", &filterJavaScript); registerDietTextFilter("markdown", &filterMarkdown); registerDietTextFilter("htmlescape", &filterHtmlEscape); } private @property string dietParser(string template_file)() { TemplateBlock[] files; readFileRec!(template_file)(files); auto compiler = DietCompiler(&files[0], &files, new BlockStore); return compiler.buildWriter(); } /******************************************************************************/ /* Reading of input files */ /******************************************************************************/ private struct TemplateBlock { string name; int mode = 0; // -1: prepend, 0: replace, 1: append string indentStyle; Line[] lines; } private class BlockStore { TemplateBlock[] blocks; } private struct Line { string file; int number; string text; } /// private private void readFileRec(string FILE, ALREADY_READ...)(ref TemplateBlock[] dst) { static if( !isPartOf!(FILE, ALREADY_READ)() ){ enum LINES = removeEmptyLines(import(FILE), FILE); TemplateBlock ret; ret.name = FILE; ret.lines = LINES; ret.indentStyle = detectIndentStyle(ret.lines); enum DEPS = extractDependencies(LINES); dst ~= ret; readFilesRec!(DEPS, ALREADY_READ, FILE)(dst); } } /// private private void readFilesRec(alias FILES, ALREADY_READ...)(ref TemplateBlock[] dst) { static if( FILES.length > 0 ){ readFileRec!(FILES[0], ALREADY_READ)(dst); readFilesRec!(FILES[1 .. $], ALREADY_READ, FILES[0])(dst); } } /// private private bool isPartOf(string str, STRINGS...)() { foreach( s; STRINGS ) if( str == s ) return true; return false; } private string[] extractDependencies(in Line[] lines) { string[] ret; foreach( ref ln; lines ){ auto lnstr = ln.text.ctstrip(); if( lnstr.startsWith("extends ") ) ret ~= lnstr[8 .. $].ctstrip() ~ ".dt"; else if( lnstr.startsWith("include ") ) ret ~= lnstr[8 .. $].ctstrip() ~ ".dt"; } return ret; } private string detectIndentStyle(in ref Line[] lines) { // search for the first indented line foreach( i; 0 .. lines.length ){ // empty lines should have been removed assert(lines[0].text.length > 0); // tabs are used if( lines[i].text[0] == '\t' ) return "\t"; // spaces are used -> count the number if( lines[i].text[0] == ' ' ){ size_t cnt = 0; while( lines[i].text[cnt] == ' ' ) cnt++; return lines[i].text[0 .. cnt]; } } // default to tabs if there are no indented lines return "\t"; } /******************************************************************************/ /* The Diet compiler */ /******************************************************************************/ private struct DietCompiler { private { size_t m_lineIndex = 0; TemplateBlock* m_block; TemplateBlock[]* m_files; BlockStore m_blocks; } @property ref string indentStyle() { return m_block.indentStyle; } @property size_t lineCount() { return m_block.lines.length; } ref Line line(size_t ln) { return m_block.lines[ln]; } ref Line currLine() { return m_block.lines[m_lineIndex]; } ref string currLineText() { return m_block.lines[m_lineIndex].text; } Line[] lineRange(size_t from, size_t to) { return m_block.lines[from .. to]; } @disable this(); this(TemplateBlock* block, TemplateBlock[]* files, BlockStore blocks) { m_block = block; m_files = files; m_blocks = blocks; } string buildWriter() { bool in_string = false; string[] node_stack; auto ret = buildWriter(node_stack, in_string, 0); assert(node_stack.length == 0); return ret; } string buildWriter(ref string[] node_stack, ref bool in_string, int base_level) { assert(m_blocks !is null); string ret; while(true){ if( lineCount == 0 ) return ret; auto firstline = line(m_lineIndex); auto firstlinetext = firstline.text; if( firstlinetext.startsWith("extends ") ){ string layout_file = firstlinetext[8 .. $].ctstrip() ~ ".dt"; auto extfile = getFile(layout_file); m_lineIndex++; // extract all blocks while( m_lineIndex < lineCount ){ TemplateBlock subblock; // read block header string blockheader = line(m_lineIndex).text; size_t spidx = 0; auto mode = skipIdent(line(m_lineIndex).text, spidx, ""); assertp(spidx > 0, "Expected block/append/prepend."); subblock.name = blockheader[spidx .. $].ctstrip(); if( mode == "block" ) subblock.mode = 0; else if( mode == "append" ) subblock.mode = 1; else if( mode == "prepend" ) subblock.mode = -1; else assertp(false, "Expected block/append/prepend."); m_lineIndex++; // skip to next block auto block_start = m_lineIndex; while( m_lineIndex < lineCount ){ auto lvl = indentLevel(line(m_lineIndex).text, indentStyle, false); if( lvl == 0 ) break; m_lineIndex++; } // append block to compiler subblock.lines = lineRange(block_start, m_lineIndex); subblock.indentStyle = indentStyle; m_blocks.blocks ~= subblock; //ret ~= startString(in_string) ~ "<!-- found block "~subblock.name~" in "~line(0).file ~ "-->\n"; } // change to layout file and start over m_block = extfile; m_lineIndex = 0; } else { auto start_indent_level = indentLevel(firstlinetext, indentStyle); //assertp(start_indent_level == 0, "Indentation must start at level zero."); ret ~= buildBodyWriter(node_stack, in_string, base_level, start_indent_level); break; } } ret ~= endString(in_string); return ret; } private string buildBodyWriter(ref string[] node_stack, ref bool in_string, int base_level, int start_indent_level) { assert(m_blocks !is null); string ret; assertp(node_stack.length >= base_level); int computeNextIndentLevel(){ return (m_lineIndex+1 < lineCount ? indentLevel(line(m_lineIndex+1).text, indentStyle, false) - start_indent_level : 0) + base_level; } for( ; m_lineIndex < lineCount; m_lineIndex++ ){ auto curline = line(m_lineIndex); if( !in_string ) ret ~= lineMarker(curline); auto level = indentLevel(curline.text, indentStyle) - start_indent_level + base_level; assertp(level <= node_stack.length+1); auto ln = unindent(curline.text, indentStyle); assertp(ln.length > 0); int next_indent_level = computeNextIndentLevel(); assertp(node_stack.length >= level, cttostring(node_stack.length) ~ ">=" ~ cttostring(level)); assertp(next_indent_level <= level+1, "The next line is indented by more than one level deeper. Please unindent accordingly."); if( ln[0] == '-' ){ // embedded D code assertp(ln[$-1] != '{', "Use indentation to nest D statements instead of braces."); ret ~= endString(in_string) ~ ln[1 .. $] ~ "{\n"; node_stack ~= "-}"; } else if( ln[0] == '|' ){ // plain text node ret ~= buildTextNodeWriter(node_stack, ln[1 .. ln.length], level, in_string); } else if( ln[0] == ':' ){ // filter node (filtered raw text) // find all child lines size_t next_tag = m_lineIndex+1; while( next_tag < lineCount && indentLevel(line(next_tag).text, indentStyle, false) - start_indent_level > level-base_level ) { next_tag++; } ret ~= buildFilterNodeWriter(node_stack, ln, curline.number, level + start_indent_level - base_level, in_string, lineRange(m_lineIndex+1, next_tag)); // skip to the next tag //node_stack ~= "-"; m_lineIndex = next_tag-1; next_indent_level = computeNextIndentLevel(); } else { size_t j = 0; auto tag = isAlpha(ln[0]) || ln[0] == '/' ? skipIdent(ln, j, "/:-_") : "div"; if( ln.startsWith("!!! ") ) tag = "!!!"; switch(tag){ default: ret ~= buildHtmlNodeWriter(node_stack, tag, ln[j .. $], level, in_string, next_indent_level > level); break; case "!!!": // HTML Doctype header ret ~= buildSpecialTag!(node_stack)("!DOCTYPE html", level, in_string); break; case "//": // HTML comment skipWhitespace(ln, j); ret ~= startString(in_string) ~ "<!-- " ~ htmlEscape(ln[j .. $]); node_stack ~= " -->"; break; case "//-": // non-output comment // find all child lines size_t next_tag = m_lineIndex+1; while( next_tag < lineCount && indentLevel(line(next_tag).text, indentStyle, false) - start_indent_level > level-base_level ) { next_tag++; } // skip to the next tag m_lineIndex = next_tag-1; next_indent_level = computeNextIndentLevel(); break; case "//if": // IE conditional comment skipWhitespace(ln, j); ret ~= buildSpecialTag!(node_stack)("!--[if "~ln[j .. $]~"]", level, in_string); node_stack ~= "<![endif]-->"; break; case "block": // Block insertion place assertp(next_indent_level <= level, "Child elements for 'include' are not supported."); node_stack ~= "-"; auto block = getBlock(ln[6 .. $].ctstrip()); if( block ){ ret ~= startString(in_string) ~ "<!-- using block " ~ ln[6 .. $] ~ " in " ~ curline.file ~ "-->"; if( block.mode == 1 ){ // output defaults } auto blockcompiler = new DietCompiler(block, m_files, m_blocks); /*blockcompiler.m_block = block; blockcompiler.m_blocks = m_blocks;*/ ret ~= blockcompiler.buildWriter(node_stack, in_string, cast(int)node_stack.length); if( block.mode == -1 ){ // output defaults } } else { // output defaults ret ~= startString(in_string) ~ "<!-- Default block " ~ ln[6 .. $] ~ " in " ~ curline.file ~ "-->"; } break; case "include": // Diet file include assertp(next_indent_level <= level, "Child elements for 'include' are not supported."); auto filename = ln[8 .. $].ctstrip() ~ ".dt"; auto file = getFile(filename); auto includecompiler = new DietCompiler(file, m_files, m_blocks); //includecompiler.m_blocks = m_blocks; ret ~= includecompiler.buildWriter(node_stack, in_string, level); break; case "script": case "style": // pass all child lines to buildRawTag and continue with the next sibling size_t next_tag = m_lineIndex+1; while( next_tag < lineCount && indentLevel(line(next_tag).text, indentStyle, false) - start_indent_level > level-base_level ) { next_tag++; } ret ~= buildRawNodeWriter(node_stack, tag, ln[j .. $], level, base_level, in_string, lineRange(m_lineIndex+1, next_tag)); m_lineIndex = next_tag-1; next_indent_level = computeNextIndentLevel(); break; case "each": case "for": case "if": case "unless": case "mixin": assertp(false, "'"~tag~"' is not supported."); break; } } // close all tags/blocks until we reach the level of the next line while( node_stack.length > next_indent_level ){ if( node_stack[$-1][0] == '-' ){ if( node_stack[$-1].length > 1 ){ ret ~= endString(in_string); ret ~= node_stack[$-1][1 .. $] ~ "\n"; } } else if( node_stack[$-1].length ){ string str; if( node_stack[$-1] != "</pre>" ){ str = "\n"; foreach( j; 0 .. node_stack.length-1 ) if( node_stack[j][0] != '-' ) str ~= "\t"; } str ~= node_stack[$-1]; ret ~= startString(in_string); ret ~= dstringEscape(str); } node_stack.length = node_stack.length-1; } } return ret; } private string buildTextNodeWriter(ref string[] node_stack, in string textline, int level, ref bool in_string) { string ret = startString(in_string); ret ~= "\\n"; if( textline.length >= 1 && textline[0] == '=' ){ ret ~= endString(in_string); ret ~= StreamVariableName ~ ".write(htmlEscape(_toString("; ret ~= textline[1 .. $]; ret ~= ")));\n"; } else if( textline.length >= 2 && textline[0 .. 2] == "!=" ){ ret ~= endString(in_string); ret ~= StreamVariableName ~ ".write(_toString("; ret ~= textline[2 .. $]; ret ~= "));\n"; } else { ret ~= "\""; ret ~= buildInterpolatedString(textline, true, true); ret ~= "\""; } node_stack ~= "-"; return ret; } private string buildHtmlNodeWriter(ref string[] node_stack, in ref string tag, in string line, int level, ref bool in_string, bool has_child_nodes) { // parse the HTML tag, leaving any trailing text as line[i .. $] size_t i; Tuple!(string, string)[] attribs; parseHtmlTag(line, i, attribs); // determine if we need a closing tag bool is_singular_tag = false; switch(tag){ case "area", "base", "basefont", "br", "col", "embed", "frame", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr": is_singular_tag = true; break; default: } assertp(!(is_singular_tag && has_child_nodes), "Singular HTML element '"~tag~"' may not have children."); // parse any text contents (either using "= code" or as plain text) string textstring; bool textstring_isdynamic = true; if( i < line.length && line[i] == '=' ){ textstring = "htmlEscape(_toString("~ctstrip(line[i+1 .. line.length])~"))"; } else if( i+1 < line.length && line[i .. i+2] == "!=" ){ textstring = "_toString("~ctstrip(line[i+2 .. line.length])~")"; } else { if( hasInterpolations(line[i .. line.length]) ){ textstring = buildInterpolatedString(line[i .. line.length], false, false); } else { textstring = sanitizeEscaping(line[i .. line.length]); textstring_isdynamic = false; } } string tail; if( has_child_nodes ){ node_stack ~= "</"~tag~">"; tail = ""; } else if( !is_singular_tag ) tail = "</" ~ tag ~ ">"; string ret = buildHtmlTag(node_stack, tag, level, in_string, attribs, is_singular_tag); if( textstring_isdynamic ){ if( textstring != "\"\"" ){ ret ~= endString(in_string); ret ~= StreamVariableName~".write(" ~ textstring ~ ", false);\n"; } } else ret ~= startString(in_string) ~ textstring; if( tail.length ) ret ~= startString(in_string) ~ tail; return ret; } private string buildRawNodeWriter(ref string[] node_stack, in ref string tag, in string tagline, int level, int base_level, ref bool in_string, in Line[] lines) { // parse the HTML tag leaving any trailing text as tagline[i .. $] size_t i; Tuple!(string, string)[] attribs; parseHtmlTag(tagline, i, attribs); // write the tag string ret = buildHtmlTag(node_stack, tag, level, in_string, attribs, false); string indent_string = "\\t"; foreach( j; 0 .. level ) if( node_stack[j][0] != '-' ) indent_string ~= "\\t"; // write the block contents wrapped in a CDATA for old browsers ret ~= startString(in_string); if( tag == "script" ) ret ~= "\\n"~indent_string~"//<![CDATA[\\n"; else ret ~= "\\n"~indent_string~"<!--\\n"; // write out all lines void writeLine(string str){ if( !hasInterpolations(str) ) ret ~= indent_string ~ dstringEscape(str) ~ "\\n"; else ret ~= indent_string ~ "\"" ~ buildInterpolatedString(str, true, true) ~ "\"\\n"; } if( i < tagline.length ) writeLine(tagline[i .. $]); foreach( j; 0 .. lines.length ){ // remove indentation string lnstr = lines[j].text[(level-base_level+1)*indentStyle.length .. $]; writeLine(lnstr); } if( tag == "script" ) ret ~= indent_string~"//]]>\\n"; else ret ~= indent_string~"-->\\n"; ret ~= indent_string[0 .. $-2] ~ "</" ~ tag ~ ">"; return ret; } private string buildFilterNodeWriter(ref string[] node_stack, in ref string tagline, int tagline_number, int indent, ref bool in_string, in Line[] lines) { string ret; // find all filters size_t j = 0; string[] filters; do { j++; filters ~= skipIdent(tagline, j); skipWhitespace(tagline, j); } while( j < tagline.length && tagline[j] == ':' ); // assemble child lines to one string string content = tagline[j .. $]; int lc = content.length ? tagline_number : tagline_number+1; foreach( i; 0 .. lines.length ){ while( lc < lines[i].number ){ // DMDBUG: while(lc++ < lines[i].number) silently loops and only executes the last iteration content ~= '\n'; lc++; } content ~= lines[i].text[(indent+1)*indentStyle.length .. $]; } // compile-time filter whats possible filter_loop: foreach_reverse( f; filters ){ switch(f){ default: break filter_loop; case "css": content = filterCSS(content, indent); break; case "javascript": content = filterJavaScript(content, indent); break; case "markdown": content = filterMarkdown(content, indent); break; } filters.length = filters.length-1; } // the rest of the filtering will happen at run time ret ~= endString(in_string) ~ StreamVariableName~".write("; string filter_expr; foreach_reverse( flt; filters ) ret ~= "s_filters[\""~dstringEscape(flt)~"\"]("; ret ~= "\"" ~ dstringEscape(content) ~ "\""; foreach( i; 0 .. filters.length ) ret ~= ", "~cttostring(indent)~")"; ret ~= ");\n"; return ret; } private void parseHtmlTag(in ref string line, out size_t i, out Tuple!(string, string)[] attribs) { i = 0; string id; string classes; // parse #id and .classes while( i < line.length ){ if( line[i] == '#' ){ i++; assertp(id.length == 0, "Id may only be set once."); id = skipIdent(line, i, "-"); } else if( line[i] == '.' ){ i++; auto cls = skipIdent(line, i, "-"); if( classes.length == 0 ) classes = cls; else classes ~= " " ~ cls; } else break; } // put #id and .classes into the attribs list if( id.length ) attribs ~= tuple("id", id); // parse other attributes if( i < line.length && line[i] == '(' ){ i++; string attribstring = skipUntilClosingClamp(line, i); parseAttributes(attribstring, attribs); i++; } // Add extra classes bool has_classes = false; if (attribs.length) { foreach (idx, att; attribs) { if (att[0] == "class") { if( classes.length ) attribs[idx] = tuple("class", att[1]~" "~classes); has_classes = true; break; } } } if (!has_classes && classes.length ) attribs ~= tuple("class", classes); // skip until the optional tag text contents begin skipWhitespace(line, i); } private string buildHtmlTag(ref string[] node_stack, in ref string tag, int level, ref bool in_string, ref Tuple!(string, string)[] attribs, bool is_singular_tag) { string tagstring = startString(in_string) ~ "\\n"; assertp(node_stack.length >= level); foreach( j; 0 .. level ) if( node_stack[j][0] != '-' ) tagstring ~= "\\t"; tagstring ~= "<" ~ tag; foreach( att; attribs ){ if( !hasInterpolations(att[1]) ) tagstring ~= " "~att[0]~"=\\\""~dstringEscape(att[1])~"\\\""; else tagstring ~= " "~att[0]~"=\\\"\"~"~buildInterpolatedString(att[1], false, false, true)~"~\"\\\""; } tagstring ~= is_singular_tag ? "/>" : ">"; return tagstring; } private void parseAttributes(in ref string str, ref Tuple!(string, string)[] attribs) { size_t i = 0; skipWhitespace(str, i); while( i < str.length ){ string name = skipIdent(str, i, "-:"); string value; skipWhitespace(str, i); if( str[i] == '=' ){ i++; skipWhitespace(str, i); assertp(i < str.length, "'=' must be followed by attribute string."); if (str[i] == '\'' || str[i] == '"') { auto delimiter = str[i]; i++; value = skipAttribString(str, i, delimiter); i++; skipWhitespace(str, i); } else if(name == "class") { //Support special-case class value = skipIdent(str, i, "_."); value = "#{join("~value~",\" \")}"; } else { assertp(str[i] == '\'' || str[i] == '"', "Expecting ''' or '\"' following '='."); } } assertp(i == str.length || str[i] == ',', "Unexpected text following attribute: '"~str[0..i]~"' ('"~str[i..$]~"')"); if( i < str.length ){ i++; skipWhitespace(str, i); } attribs ~= tuple(name, value); } } private bool hasInterpolations(in ref string str) { size_t i = 0; while( i < str.length ){ if( str[i] == '\\' ){ i += 2; continue; } if( i+1 < str.length && (str[i] == '#' || str[i] == '!') ){ if( str[i+1] == str[i] ){ i += 2; continue; } else if( str[i+1] == '{' ){ return true; } } i++; } return false; } private string buildInterpolatedString(in ref string str, bool prevconcat = false, bool nextconcat = false, bool escape_quotes = false) { string ret; int state = 0; // 0 == start, 1 == in string, 2 == out of string static immutable enter_string = ["\"", "", "~\""]; static immutable enter_non_string = ["", "\"~", "~"]; static immutable exit_string = ["", "\"", ""]; size_t start = 0, i = 0; while( i < str.length ){ // check for escaped characters if( str[i] == '\\' ){ if( i > start ){ ret ~= enter_string[state] ~ dstringEscape(str[start .. i]); state = 1; } ret ~= enter_string[state] ~ sanitizeEscaping(str[i .. i+2]); state = 1; i += 2; start = i; continue; } if( (str[i] == '#' || str[i] == '!') && i+1 < str.length ){ bool escape = str[i] == '#'; if( i > start ){ ret ~= enter_string[state] ~ dstringEscape(str[start .. i]); state = 1; start = i; } assertp(str[i+1] != str[i], "Please use \\ to escape # or ! instead of ## or !!."); if( str[i+1] == '{' ){ i += 2; ret ~= enter_non_string[state]; state = 2; auto expr = dstringUnescape(skipUntilClosingBrace(str, i)); if( escape && !escape_quotes ) ret ~= "htmlEscape(_toString("~expr~"))"; else if( escape ) ret ~= "htmlAttribEscape(_toString("~expr~"))"; else ret ~= "_toString("~expr~")"; i++; start = i; } else i++; } else i++; } if( i > start ){ ret ~= enter_string[state] ~ dstringEscape(str[start .. i]); state = 1; } ret ~= exit_string[state]; if( ret.length == 0 ){ if( prevconcat && nextconcat ) return "~"; else if( !prevconcat && !nextconcat ) return "\"\""; else return ""; } return (prevconcat?"~":"") ~ ret ~ (nextconcat?"~":""); } private string skipIdent(in ref string s, ref size_t idx, string additional_chars = null) { size_t start = idx; while( idx < s.length ){ if( isAlpha(s[idx]) ) idx++; else if( start != idx && s[idx] >= '0' && s[idx] <= '9' ) idx++; else { bool found = false; foreach( ch; additional_chars ) if( s[idx] == ch ){ found = true; idx++; break; } if( !found ){ assertp(start != idx, "Expected identifier but got '"~s[idx]~"'."); return s[start .. idx]; } } } assertp(start != idx, "Expected identifier but got nothing."); return s[start .. idx]; } private string skipWhitespace(in ref string s, ref size_t idx) { size_t start = idx; while( idx < s.length ){ if( s[idx] == ' ' ) idx++; else break; } return s[start .. idx]; } private string skipUntilClosingBrace(in ref string s, ref size_t idx) { int level = 0; auto start = idx; while( idx < s.length ){ if( s[idx] == '{' ) level++; else if( s[idx] == '}' ) level--; if( level < 0 ) return s[start .. idx]; idx++; } assertp(false, "Missing closing brace"); assert(false); } private string skipUntilClosingClamp(in ref string s, ref size_t idx) { int level = 0; auto start = idx; while( idx < s.length ){ if( s[idx] == '(' ) level++; else if( s[idx] == ')' ) level--; if( level < 0 ) return s[start .. idx]; idx++; } assertp(false, "Missing closing clamp"); assert(false); } private string skipAttribString(in ref string s, ref size_t idx, char delimiter) { size_t start = idx; string ret; while( idx < s.length ){ if( s[idx] == '\\' ){ ret ~= s[idx]; // pass escape character through - will be handled later by buildInterpolatedString idx++; assertp(idx < s.length, "'\\' must be followed by something (escaped character)!"); ret ~= s[idx]; } else if( s[idx] == delimiter ) break; else ret ~= s[idx]; idx++; } return ret; } private string unindent(in ref string str, in ref string indent) { size_t lvl = indentLevel(str, indent); return str[lvl*indent.length .. $]; } private int indentLevel(in ref string s, in ref string indent, bool strict = true) { if( indent.length == 0 ) return 0; int l = 0; while( l+indent.length <= s.length && s[l .. l+indent.length] == indent ) l += cast(int)indent.length; assertp(!strict || s[l] != ' ', "Indent is not a multiple of '"~indent~"'"); return l / cast(int)indent.length; } private int indentLevel(in ref Line[] ln, string indent) { return ln.length == 0 ? 0 : indentLevel(ln[0].text, indent); } private void assertp(bool cond, string text = null, string file = __FILE__, int cline = __LINE__) { Line ln; if( m_lineIndex < lineCount ) ln = line(m_lineIndex); assert(cond, "template "~ln.file~" line "~cttostring(ln.number)~": "~text~"("~file~":"~cttostring(cline)~")"); } private TemplateBlock* getFile(string filename) { foreach( i; 0 .. m_files.length ) if( (*m_files)[i].name == filename ) return &(*m_files)[i]; assertp(false, "Bug: include input file "~filename~" not found in internal list!?"); assert(false); } private TemplateBlock* getBlock(string name) { foreach( i; 0 .. m_blocks.blocks.length ) if( m_blocks.blocks[i].name == name ) return &m_blocks.blocks[i]; return null; } } /// private private string buildSpecialTag(alias node_stack)(string tag, int level, ref bool in_string) { // write the tag string tagstring = "\\n"; foreach( j; 0 .. level ) if( node_stack[j][0] != '-' ) tagstring ~= "\\t"; tagstring ~= "<" ~ tag ~ ">"; return startString(in_string) ~ tagstring; } private @property string startString(ref bool in_string){ auto ret = in_string ? "" : StreamVariableName ~ ".write(\""; in_string = true; return ret; } private @property string endString(ref bool in_string){ auto ret = in_string ? "\", false);\n" : ""; in_string = false; return ret; } private void assert_ln(in ref Line ln, bool cond, string text = null, string file = __FILE__, int line = __LINE__) { assert(cond, "Error in template "~ln.file~" line "~cttostring(ln.number) ~": "~text~"("~file~":"~cttostring(line)~")"); } private string unindent(in ref string str, in ref string indent) { size_t lvl = indentLevel(str, indent); return str[lvl*indent.length .. $]; } private int indentLevel(in ref string s, in ref string indent) { if( indent.length == 0 ) return 0; int l = 0; while( l+indent.length <= s.length && s[l .. l+indent.length] == indent ) l += cast(int)indent.length; return l / cast(int)indent.length; } private string lineMarker(in ref Line ln) { return "#line "~cttostring(ln.number)~" \""~ln.file~"\"\n"; } private string dstringEscape(char ch) { switch(ch){ default: return ""~ch; case '\\': return "\\\\"; case '\r': return "\\r"; case '\n': return "\\n"; case '\t': return "\\t"; case '\"': return "\\\""; } } private string sanitizeEscaping(string str) { str = dstringUnescape(str); return dstringEscape(str); } private string dstringEscape(in ref string str) { string ret; foreach( ch; str ) ret ~= dstringEscape(ch); return ret; } private string dstringUnescape(in string str) { string ret; size_t i, start = 0; for( i = 0; i < str.length; i++ ) if( str[i] == '\\' ){ if( i > start ){ if( start > 0 ) ret ~= str[start .. i]; else ret = str[0 .. i]; } switch(str[i+1]){ default: ret ~= str[i+1]; break; case 'r': ret ~= '\r'; break; case 'n': ret ~= '\n'; break; case 't': ret ~= '\t'; break; } i++; start = i+1; } if( i > start ){ if( start == 0 ) return str; else ret ~= str[start .. i]; } return ret; } /// private private string _toString(T)(T v) { static if( is(T == string) ) return v; else static if( __traits(compiles, v.opCast!string()) ) return cast(string)v; else static if( __traits(compiles, v.toString()) ) return v.toString(); else return to!string(v); } private string ctstrip(string s) { size_t strt = 0, end = s.length; while( strt < s.length && (s[strt] == ' ' || s[strt] == '\t') ) strt++; while( end > 0 && (s[end-1] == ' ' || s[end-1] == '\t') ) end--; return strt < end ? s[strt .. end] : null; } private Line[] removeEmptyLines(string text, string file) { text = stripUTF8Bom(text); Line[] ret; int num = 1; size_t idx = 0; while(idx < text.length){ // start end end markers for the current line size_t start_idx = idx; size_t end_idx = text.length; // search for EOL while( idx < text.length ){ if( text[idx] == '\r' || text[idx] == '\n' ){ end_idx = idx; if( idx+1 < text.length && text[idx .. idx+2] == "\r\n" ) idx++; idx++; break; } idx++; } // add the line if not empty auto ln = text[start_idx .. end_idx]; if( ctstrip(ln).length > 0 ) ret ~= Line(file, num, ln); num++; } return ret; } /**************************************************************************************************/ /* Compile time filters */ /**************************************************************************************************/ private string filterCSS(string text, int indent) { auto lines = splitLines(text); string indent_string = "\n"; while( indent-- > 0 ) indent_string ~= '\t'; string ret = indent_string~"<style type=\"text/css\"><!--"; indent_string = indent_string ~ '\t'; foreach( ln; lines ) ret ~= indent_string ~ ln; indent_string = indent_string[0 .. $-1]; ret ~= indent_string ~ "--></style>"; return ret; } private string filterJavaScript(string text, int indent) { auto lines = splitLines(text); string indent_string = "\n"; while( indent-- >= 0 ) indent_string ~= '\t'; string ret = indent_string[0 .. $-1]~"<script type=\"text/javascript\">"; ret ~= indent_string~"//<![CDATA["; foreach( ln; lines ) ret ~= indent_string ~ ln; ret ~= indent_string ~ "//]]>"~indent_string[0 .. $-1]~"</script>"; return ret; } private string filterMarkdown(string text, int indent) { return vibe.textfilter.markdown.filterMarkdown(text); } private string filterHtmlEscape(string text, int indent) { return htmlEscape(text); }
D
the commonest protein in muscle
D
module Google.Apis.Drive.v3.DriveClient; import std.file : read, readText, write, exists; import cerealed; import requests; import std.stdio; import std.json; import std.conv : to; import std.array : replace, split; import std.datetime.systime; import core.time : seconds; import std.format : format; import vibe.data.json; import Google.Apis.Drive.v3.DriveScopes: Scopes, DriveScopes; import std.exception: enforce; class DriveClient { /* Google APIs code uri */ private static const string API_CODE_URI = "https://accounts.google.com/o/oauth2/v2/auth"; /* Google APIs token uri */ private static const string API_TOKEN_URI = "https://oauth2.googleapis.com/token"; /* Name of the file that stores the access token */ private static const string ACCESS_TOKEN_FILE = "DriveAccessToken"; /* Name of the file that stores the refresh token */ private static const string REFRESH_TOKEN_FILE = "DriveRefreshToken"; private Creds _creds; private string _scope; private string _clientCode; private string _redirectUri; this(string credentialsFile, Scopes _scope) { string credsJsonString; enforce(credentialsFile.exists, "Credentials file does not exist."); credsJsonString = readText(credentialsFile); this._creds = deserializeJson!Creds(credsJsonString); this._scope = DriveScopes.all()[_scope]; this._redirectUri = _creds.web.redirect_uris[0]; if (!ACCESS_TOKEN_FILE.exists) { authorize(); } } public string getScope() { return this._scope; } public DriveClient setScope(Scopes _scope) { this._scope = DriveScopes.all()[_scope]; authorize(); return this; } private string getCode(ushort port) { import std.socket : TcpSocket, Socket, InternetAddress; string code = ""; Socket reads = null; auto listener = new TcpSocket(); enforce(listener.isAlive); listener.bind(new InternetAddress(port)); listener.listen(10); reads = listener.accept(); enforce(reads.isAlive); enforce(listener.isAlive); char[1024] buf; auto dataLength = reads.receive(buf[]); if (dataLength == Socket.ERROR) { writeln("Connection error."); stdout.flush(); return ""; } else if (dataLength != 0) { code ~= buf[0 .. dataLength]; } reads.close(); listener.close(); code = code.split("?")[1].split("&")[0].split("=")[1]; return code; } AccessToken authorize(RequestT = Request, ResponseT = Response)() { import core.stdc.stdlib: getenv; auto browserEnvVariable = getenv("BROWSER"); if (browserEnvVariable !is null) { const string browserEnvVariableString = to!(string)(browserEnvVariable); auto command = [browserEnvVariableString, this.getCodeString]; import std.process: spawnProcess; spawnProcess(command); } else { writeln("To authorize the client, please use this link " ~ this.getCodeString ~ " and authorize it."); } import std.string: indexOf, lastIndexOf; enforce(_redirectUri.indexOf(":") != _redirectUri.lastIndexOf(":"), "No port found in the redirect uri"); ushort port = to!(ushort)(this._redirectUri.split(":")[2].split("/")[0]); this._clientCode = this.getCode(port); enforce(this._clientCode != "", "Could not retrieve the authentication_code."); static if (is(RequestT == Request)) { RequestT request = Request(); request.sslSetVerifyPeer(false); ResponseT response = request.post(getAuthorizeString, []); JSONValue responseBody = parseJSON(response.responseBody.toString); AccessToken accessToken = AccessToken(responseBody["access_token"].str, Clock.currTime, responseBody["expires_in"].get!long); write(ACCESS_TOKEN_FILE, accessToken.serializeToJson().toString); write(REFRESH_TOKEN_FILE, cerealise(cast(ubyte[])responseBody["refresh_token"].str)); return accessToken; } else { writefln("%s not supported.", RequestT.stringof); return AccessToken(); } } AccessToken refreshToken(RequestT = Request, ResponseT = Response)() { if (!REFRESH_TOKEN_FILE.exists) { return authorize(); } string refreshToken = decerealise!string( cast(ubyte[])read(REFRESH_TOKEN_FILE) ).replace("\\", ""); static if(is(RequestT == Request)) { RequestT request = Request(); request.sslSetVerifyPeer(false); ResponseT response = request.post(getRefreshTokenString(refreshToken), []); JSONValue responseBody = parseJSON(response.responseBody.toString); AccessToken accessToken = AccessToken(responseBody["access_token"].str, Clock.currTime, responseBody["expires_in"].get!long); write(ACCESS_TOKEN_FILE, accessToken.serializeToJson().toString); return accessToken; } else { writefln("%s not supported.", RequestT.stringof); return AccessToken(); } } public string getToken() { if (!ACCESS_TOKEN_FILE.exists) { return authorize()._accessToken; } AccessToken accessToken = deserializeJson!AccessToken( to!(string)(read(ACCESS_TOKEN_FILE)) ); if (accessToken.isExpired) { accessToken = this.refreshToken(); } return accessToken._accessToken; } private string getCodeString() { const string fmt = "%s?scope=%s&redirect_uri=%s&client_id=%s&" ~ "access_type=offline&response_type=code&" ~ "include_granted_scopes=true&prompt=consent"; return format!fmt(API_CODE_URI, _scope, _redirectUri, _creds.web.client_id); } private string getAuthorizeString() { const string fmt = "%s?code=%s&client_id=%s&client_secret=%s&" ~ "redirect_uri=%s&grant_type=authorization_code"; return format!fmt(API_TOKEN_URI, _clientCode, _creds.web.client_id, _creds.web.client_secret, _redirectUri); } private string getRefreshTokenString(string refreshToken) { const string fmt = "%s?client_id=%s&client_secret=%s&" ~ "refresh_token=%s&grant_type=refresh_token"; return format!fmt(API_TOKEN_URI, _creds.web.client_id, _creds.web.client_secret, refreshToken); } private static struct AccessToken { string _accessToken; SysTime _authorizedTime; long _availability; bool isExpired() { return Clock.currTime >= (_authorizedTime + _availability.seconds); } } static class Web { string client_id; string project_id; string auth_uri; string token_uri; string auth_provider_x509_cert_url; string client_secret; string[] redirect_uris; } static class Creds { Web web; } }
D
module main; import std.stdio; import std.json; import core.service; import core.configuration; import core.flappygame; int main(string[] args) { setupServices(); FlappyGame fg = new FlappyGame(); fg.init(); fg.main(); return 0; } void setupServices() { Configuration c = setupConfiguration(); Service.config(c); } Configuration setupConfiguration() { import std.c.stdlib; import std.string; import std.algorithm; Configuration c = new Configuration(); string userdataPath; version (Windows) { auto t = (char x) => x == '\\' ? '/' : x; userdataPath = (cast(string) getenv(toStringz("APPDATA")) .fromStringz()).map!(t); ~ "/.flappycoconutreloaded/"; } else { userdataPath = cast(string) getenv(toStringz("HOME")) .fromStringz() ~ "/.flappycoconutreloaded/"; } c.homePath = userdataPath; loadConfigFile(c); return c; } void loadConfigFile(Configuration c) { File f = File(c.homePath ~ "config.json", "r+"); char[] buffer = new char[f.size()]; f.rawRead(buffer); auto j = parseJSON(buffer); c.title = j["title"].str(); c.width = cast(uint) j["width"].integer(); c.height = cast(uint) j["height"].integer(); }
D
module graph.dijkstra; import std.container : Array; import graph.daryheap; import graph.csr; private enum infinity = size_t.max; private size_t combine(size_t a, size_t b) { return (a > infinity - b) ? infinity : a + b; } /** * Find shortest paths by Dijkstra method. */ void dijkstra(alias done = v => false, Graph, Vertex = Graph.Vertex, Labels)( in Graph g, in Vertex start, ref VertexPropertyMap!(Labels) labels) { struct HeapNode { Vertex vertex; size_t distance; alias vertex this; } alias Heap = DAryHeap!(HeapNode, 4, "a.distance > b.distance"); alias Handle = Heap.Handle; auto heap = Heap(g.numVertices); auto handles = vertexPropertyMap(new Handle[g.numVertices]); foreach (v; g.vertices) { labels[v].predecessor = v; labels[v].distance = infinity; } labels[start].distance = 0; handles[start] = heap.push(HeapNode(start, 0)); while (!heap.empty) { auto u = heap.pop(); if (done(u)) { break; } foreach (e; g.outEdges(u)) { auto v = g.target(e); auto dist = combine(labels[u].distance, g[e].weight); if (labels[v].distance == size_t.max) { labels[v].predecessor = u; labels[v].distance = dist; handles[v] = heap.push(HeapNode(v, dist)); } else if (dist < labels[v].distance) { labels[v].predecessor = u; labels[v].distance = dist; heap.siftUp(handles[v], HeapNode(v, dist)); } } } } unittest { import graph.csr; import graph.range; import graph.selectors; struct EdgeProperty { size_t source; size_t target; size_t weight; } alias Graph = CsrGraph!(Directed, void, EdgeProperty); alias Vertex = Graph.Vertex; struct Label { Vertex predecessor; size_t distance; } enum numVertices = 3; auto edges = [ EdgeProperty(0, 1, 1), EdgeProperty(0, 2, 4), EdgeProperty(1, 2, 2), ]; auto g = Graph(assumeSortedEdges(edges), edges, numVertices); auto labels = vertexPropertyMap(new Label[g.numVertices]); g.dijkstra(g.vertex(0), labels); assert(labels[g.vertex(0)].distance == 0); assert(labels[g.vertex(1)].distance == 1); assert(labels[g.vertex(2)].distance == 3); assert(labels[g.vertex(0)].predecessor == g.vertex(0)); assert(labels[g.vertex(1)].predecessor == g.vertex(0)); assert(labels[g.vertex(2)].predecessor == g.vertex(1)); }
D
/** * String manipulation and comparison utilities. * * Copyright: Copyright Sean Kelly 2005 - 2009. * License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0). * Authors: Sean Kelly, Walter Bright * Source: $(DRUNTIMESRC rt/util/_string.d) */ module core.internal.string; pure: nothrow: @nogc: alias UnsignedStringBuf = char[20]; /** Converts an unsigned integer value to a string of characters. This implementation is a template so it can be used when compiling with -betterC. Params: value = the unsigned integer value to convert buf = the pre-allocated buffer used to store the result radix = the numeric base to use in the conversion (defaults to 10) Returns: The unsigned integer value as a string of characters */ char[] unsignedToTempString(uint radix = 10)(ulong value, return scope char[] buf) @safe if (radix >= 2 && radix <= 16) { size_t i = buf.length; do { uint x = void; if (value < radix) { x = cast(uint)value; value = 0; } else { x = cast(uint)(value % radix); value /= radix; } buf[--i] = cast(char)((radix <= 10 || x < 10) ? x + '0' : x - 10 + 'a'); } while (value); return buf[i .. $]; } private struct TempStringNoAlloc() { // need to handle 65 bytes for radix of 2 with negative sign. private char[65] _buf = void; private ubyte _len; inout(char)[] get() inout return { return _buf[$-_len..$]; } alias get this; } /** Converts an unsigned integer value to a string of characters. This implementation is a template so it can be used when compiling with -betterC. Params: value = the unsigned integer value to convert radix = the numeric base to use in the conversion (defaults to 10) Returns: The unsigned integer value as a string of characters */ auto unsignedToTempString(uint radix = 10)(ulong value) @safe { TempStringNoAlloc!() result = void; result._len = unsignedToTempString!radix(value, result._buf).length & 0xff; return result; } unittest { UnsignedStringBuf buf; assert(0.unsignedToTempString(buf) == "0"); assert(1.unsignedToTempString(buf) == "1"); assert(12.unsignedToTempString(buf) == "12"); assert(0x12ABCF .unsignedToTempString!16(buf) == "12abcf"); assert(long.sizeof.unsignedToTempString(buf) == "8"); assert(uint.max.unsignedToTempString(buf) == "4294967295"); assert(ulong.max.unsignedToTempString(buf) == "18446744073709551615"); // use stack allocated struct version assert(0.unsignedToTempString == "0"); assert(1.unsignedToTempString == "1"); assert(12.unsignedToTempString == "12"); assert(0x12ABCF .unsignedToTempString!16 == "12abcf"); assert(long.sizeof.unsignedToTempString == "8"); assert(uint.max.unsignedToTempString == "4294967295"); assert(ulong.max.unsignedToTempString == "18446744073709551615"); // test bad radices assert(!is(typeof(100.unsignedToTempString!1(buf)))); assert(!is(typeof(100.unsignedToTempString!0(buf) == ""))); } alias SignedStringBuf = char[20]; char[] signedToTempString(uint radix = 10)(long value, return scope char[] buf) @safe { bool neg = value < 0; if (neg) value = cast(ulong)-value; auto r = unsignedToTempString!radix(value, buf); if (neg) { // about to do a slice without a bounds check auto trustedSlice(return char[] r) @trusted { assert(r.ptr > buf.ptr); return (r.ptr-1)[0..r.length+1]; } r = trustedSlice(r); r[0] = '-'; } return r; } auto signedToTempString(uint radix = 10)(long value) @safe { bool neg = value < 0; if (neg) value = cast(ulong)-value; auto r = unsignedToTempString!radix(value); if (neg) { r._len++; r.get()[0] = '-'; } return r; } unittest { SignedStringBuf buf; assert(0.signedToTempString(buf) == "0"); assert(1.signedToTempString(buf) == "1"); assert((-1).signedToTempString(buf) == "-1"); assert(12.signedToTempString(buf) == "12"); assert((-12).signedToTempString(buf) == "-12"); assert(0x12ABCF .signedToTempString!16(buf) == "12abcf"); assert((-0x12ABCF) .signedToTempString!16(buf) == "-12abcf"); assert(long.sizeof.signedToTempString(buf) == "8"); assert(int.max.signedToTempString(buf) == "2147483647"); assert(int.min.signedToTempString(buf) == "-2147483648"); assert(long.max.signedToTempString(buf) == "9223372036854775807"); assert(long.min.signedToTempString(buf) == "-9223372036854775808"); // use stack allocated struct version assert(0.signedToTempString() == "0"); assert(1.signedToTempString == "1"); assert((-1).signedToTempString == "-1"); assert(12.signedToTempString == "12"); assert((-12).signedToTempString == "-12"); assert(0x12ABCF .signedToTempString!16 == "12abcf"); assert((-0x12ABCF) .signedToTempString!16 == "-12abcf"); assert(long.sizeof.signedToTempString == "8"); assert(int.max.signedToTempString == "2147483647"); assert(int.min.signedToTempString == "-2147483648"); assert(long.max.signedToTempString == "9223372036854775807"); assert(long.min.signedToTempString == "-9223372036854775808"); assert(long.max.signedToTempString!2 == "111111111111111111111111111111111111111111111111111111111111111"); assert(long.min.signedToTempString!2 == "-1000000000000000000000000000000000000000000000000000000000000000"); } /******************************** * Determine number of digits that will result from a * conversion of value to a string. * Params: * value = number to convert * radix = radix * Returns: * number of digits */ int numDigits(uint radix = 10)(ulong value) @safe if (radix >= 2 && radix <= 36) { int n = 1; while (1) { if (value <= uint.max) { uint v = cast(uint)value; while (1) { if (v < radix) return n; if (v < radix * radix) return n + 1; if (v < radix * radix * radix) return n + 2; if (v < radix * radix * radix * radix) return n + 3; n += 4; v /= radix * radix * radix * radix; } } n += 4; value /= radix * radix * radix * radix; } } unittest { assert(0.numDigits == 1); assert(9.numDigits == 1); assert(10.numDigits == 2); assert(99.numDigits == 2); assert(100.numDigits == 3); assert(999.numDigits == 3); assert(1000.numDigits == 4); assert(9999.numDigits == 4); assert(10000.numDigits == 5); assert(99999.numDigits == 5); assert(uint.max.numDigits == 10); assert(ulong.max.numDigits == 20); assert(0.numDigits!2 == 1); assert(1.numDigits!2 == 1); assert(2.numDigits!2 == 2); assert(3.numDigits!2 == 2); // test bad radices static assert(!__traits(compiles, 100.numDigits!1())); static assert(!__traits(compiles, 100.numDigits!0())); static assert(!__traits(compiles, 100.numDigits!37())); } int dstrcmp()( scope const char[] s1, scope const char[] s2 ) @trusted { immutable len = s1.length <= s2.length ? s1.length : s2.length; if (__ctfe) { foreach (const u; 0 .. len) { if (s1[u] != s2[u]) return s1[u] > s2[u] ? 1 : -1; } } else { import core.stdc.string : memcmp; const ret = memcmp( s1.ptr, s2.ptr, len ); if ( ret ) return ret; } return s1.length < s2.length ? -1 : (s1.length > s2.length); }
D
/home/hustccc/OS_Tutorial_Summer_of_Code/rCore_Labs/Lab3/os/target/riscv64imac-unknown-none-elf/debug/deps/ahash-2e588a5ed0a0616b.rmeta: /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/ahash-0.3.8/src/lib.rs /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/ahash-0.3.8/src/convert.rs /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/ahash-0.3.8/src/fallback_hash.rs /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/ahash-0.3.8/src/folded_multiply.rs /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/ahash-0.3.8/src/random_state.rs /home/hustccc/OS_Tutorial_Summer_of_Code/rCore_Labs/Lab3/os/target/riscv64imac-unknown-none-elf/debug/deps/libahash-2e588a5ed0a0616b.rlib: /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/ahash-0.3.8/src/lib.rs /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/ahash-0.3.8/src/convert.rs /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/ahash-0.3.8/src/fallback_hash.rs /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/ahash-0.3.8/src/folded_multiply.rs /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/ahash-0.3.8/src/random_state.rs /home/hustccc/OS_Tutorial_Summer_of_Code/rCore_Labs/Lab3/os/target/riscv64imac-unknown-none-elf/debug/deps/ahash-2e588a5ed0a0616b.d: /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/ahash-0.3.8/src/lib.rs /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/ahash-0.3.8/src/convert.rs /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/ahash-0.3.8/src/fallback_hash.rs /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/ahash-0.3.8/src/folded_multiply.rs /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/ahash-0.3.8/src/random_state.rs /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/ahash-0.3.8/src/lib.rs: /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/ahash-0.3.8/src/convert.rs: /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/ahash-0.3.8/src/fallback_hash.rs: /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/ahash-0.3.8/src/folded_multiply.rs: /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/ahash-0.3.8/src/random_state.rs:
D
instance DIA_Joe_EXIT(C_Info) { npc = VLK_448_Joe; nr = 999; condition = DIA_Joe_EXIT_Condition; information = DIA_Joe_EXIT_Info; permanent = TRUE; description = Dialog_Ende; }; func int DIA_Joe_EXIT_Condition() { return TRUE; }; func void DIA_Joe_EXIT_Info() { AI_StopProcessInfos(self); }; instance DIA_Joe_PICKPOCKET(C_Info) { npc = VLK_448_Joe; nr = 900; condition = DIA_Joe_PICKPOCKET_Condition; information = DIA_Joe_PICKPOCKET_Info; permanent = TRUE; description = Pickpocket_40; }; func int DIA_Joe_PICKPOCKET_Condition() { return C_Beklauen(33,45); }; func void DIA_Joe_PICKPOCKET_Info() { Info_ClearChoices(DIA_Joe_PICKPOCKET); Info_AddChoice(DIA_Joe_PICKPOCKET,Dialog_Back,DIA_Joe_PICKPOCKET_BACK); Info_AddChoice(DIA_Joe_PICKPOCKET,DIALOG_PICKPOCKET,DIA_Joe_PICKPOCKET_DoIt); }; func void DIA_Joe_PICKPOCKET_DoIt() { B_Beklauen(); Info_ClearChoices(DIA_Joe_PICKPOCKET); }; func void DIA_Joe_PICKPOCKET_BACK() { Info_ClearChoices(DIA_Joe_PICKPOCKET); }; instance DIA_Joe_Hallo(C_Info) { npc = VLK_448_Joe; nr = 2; condition = DIA_Joe_Hallo_Condition; information = DIA_Joe_Hallo_Info; permanent = FALSE; important = TRUE; }; func int DIA_Joe_Hallo_Condition() { if(Npc_IsInState(self,ZS_Talk)) { return TRUE; }; }; func void DIA_Joe_Hallo_Info() { AI_Output(self,other,"DIA_Joe_Hallo_10_00"); //Hey, thanks, man, I mean, thank you, really. There I was thinking I'd never get out of here... TOPIC_END_Joe = TRUE; B_GivePlayerXP(XP_AmbientKap2 * 4); AI_Output(other,self,"DIA_Joe_Hallo_15_01"); //What are you doing HERE? AI_Output(self,other,"DIA_Joe_Hallo_10_02"); //I got locked in. The door was open and all I wanted was to have a little looksee - but as soon as I was inside, the watch came and locked the damn door. AI_Output(self,other,"DIA_Joe_Hallo_10_03"); //This is somewhat embarrassing - I'd be very grateful if it could remain just between you and me. AI_Output(other,self,"DIA_Joe_Hallo_15_04"); //I understand, that wasn't exactly something to be proud of. AI_Output(self,other,"DIA_Joe_Hallo_10_05"); //I think I need a drink now. AI_StopProcessInfos(self); Npc_ExchangeRoutine(self,"START"); }; instance DIA_Joe_Perm(C_Info) { npc = VLK_448_Joe; nr = 2; condition = DIA_Joe_Perm_Condition; information = DIA_Joe_Perm_Info; permanent = TRUE; description = "Everything all right?"; }; func int DIA_Joe_Perm_Condition() { if(Npc_GetDistToWP(self,"NW_CITY_HABOUR_TAVERN01_08") <= 500) { return TRUE; }; }; func void DIA_Joe_Perm_Info() { AI_Output(other,self,"DIA_Joe_Perm_15_00"); //Everything all right? AI_Output(self,other,"DIA_Joe_Perm_10_01"); //Thanks for setting me free. AI_StopProcessInfos(self); }; instance DIA_Joe_Sign(C_Info) { npc = VLK_448_Joe; nr = 2; condition = DIA_Joe_Sign_Condition; information = DIA_Joe_Sign_Info; permanent = FALSE; description = "(Show thieves' signal)"; }; func int DIA_Joe_Sign_Condition() { if((Npc_GetDistToWP(self,"NW_CITY_HABOUR_TAVERN01_08") <= 500) && (Knows_SecretSign == TRUE)) { return TRUE; }; }; func void DIA_Joe_Sign_Info() { AI_PlayAni(other,"T_YES"); AI_Output(self,other,"DIA_Joe_Sign_10_00"); //Hey, what do you know - we have mutual friends. In that case, let me express my gratitude for being rescued. AI_Output(self,other,"DIA_Joe_Sign_10_01"); //Here, take these lock picks - I'm sure you'll find them useful. B_GiveInvItems(self,other,ItKE_lockpick,5); AI_StopProcessInfos(self); };
D
/* # What Is This: programming samples # Author: Makoto Takeshita <takeshita.sample@gmail.com> # URL: http://simplesandsamples.com # Version: UNBORN # # Usage: # 1. git clone https://github.com/takeshitamakoto/sss.git # 2. change the directory name to easy-to-use name. (e.g. sss -> sample) # 3. open sss/src/filename when you need any help. # */ import std.stdio; void main() { bool a = true; if(a == true){ writeln("a is true."); } if(a != false) writeln("a is not false."); }
D
/** * Compiler implementation of the * $(LINK2 http://www.dlang.org, D programming language). * * Copyright: Copyright (C) 1985-1998 by Symantec * Copyright (c) 2000-2017 by Digital Mars, All Rights Reserved * Authors: $(LINK2 http://www.digitalmars.com, Walter Bright) * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/ddmd/backend/cdef.d, backend/_cdef.d) */ module ddmd.backend.cdef; // Online documentation: https://dlang.org/phobos/ddmd_backend_cdef.html import ddmd.backend.cc: Classsym, Symbol; import ddmd.backend.el; import ddmd.tk.dlist; extern (C++): @nogc: nothrow: //struct Classsym; //struct Symbol; //struct LIST; struct param_t; // // Attributes // // Types of attributes enum { ATTR_LINKMOD = 1, // link modifier ATTR_TYPEMOD = 2, // basic type modifier ATTR_FUNCINFO = 4, // function information ATTR_DATAINFO = 8, // data information ATTR_TRANSU = 0x10, // transparent union ATTR_IGNORED = 0x20, // attribute can be ignored ATTR_WARNING = 0x40, // attribute was ignored ATTR_SEGMENT = 0x80, // segment secified } // attribute location in code enum { ALOC_DECSTART = 1, // start of declaration ALOC_SYMDEF = 2, // symbol defined ALOC_PARAM = 4, // follows function parameter ALOC_FUNC = 8, // follows function declaration } //#define ATTR_LINK_MODIFIERS (mTYconst|mTYvolatile|mTYcdecl|mTYstdcall) //#define ATTR_CAN_IGNORE(a) (((a) & (ATTR_LINKMOD|ATTR_TYPEMOD|ATTR_FUNCINFO|ATTR_DATAINFO|ATTR_TRANSU)) == 0) //#define LNX_CHECK_ATTRIBUTES(a,x) assert(((a) & ~(x|ATTR_IGNORED|ATTR_WARNING)) == 0) // C++ Language Features enum ANGLE_BRACKET_HACK = 0; // >> means two template arglist closes // C/C++ Language Features enum IMPLIED_PRAGMA_ONCE = 1; // include guards count as #pragma once enum bool HEADER_LIST = true; // Support generating code for 16 bit memory models //#define SIXTEENBIT (SCPP && TARGET_WINDOS) /* Set for supporting the FLAT memory model. * This is not quite the same as !SIXTEENBIT, as one could * have near/far with 32 bit code. */ //#define TARGET_SEGMENTED (!MARS && TARGET_WINDOS) //#if __GNUC__ //#define LDOUBLE 0 // no support for true long doubles //#else //#define LDOUBLE (config.exe == EX_WIN32) // support true long doubles //#endif // Precompiled header variations //#define MEMORYHX (_WINDLL && _WIN32) // HX and SYM files are cached in memory //#define MMFIO (_WIN32 || __linux__ || __APPLE__ || __FreeBSD__ || __OpenBSD__ || __sun) // if memory mapped files //#define LINEARALLOC _WIN32 // if we can reserve address ranges // H_STYLE takes on one of these precompiled header methods enum { H_NONE = 1, // no hydration/dehydration necessary H_BIT0 = 2, // bit 0 of the pointer determines if pointer // is dehydrated, an offset is added to // hydrate it H_OFFSET = 4, // the address range of the pointer determines // if pointer is dehydrated, and an offset is // added to hydrate it. No dehydration necessary. H_COMPLEX = 8, // dehydrated pointers have bit 0 set, hydrated // pointers are in non-contiguous buffers } // Do we need hydration code //#define HYDRATE (H_STYLE & (H_BIT0 | H_OFFSET | H_COMPLEX)) // Do we need dehydration code //#define DEHYDRATE (H_STYLE & (H_BIT0 | H_COMPLEX)) // Determine hydration style // NT console: H_NONE // NT DLL: H_OFFSET // DOSX: H_COMPLEX //#if MARS //#define H_STYLE H_NONE // precompiled headers only used for C/C++ compiler //#else //#if MMFIO //#if _WINDLL //#define H_STYLE H_OFFSET //#else //#define H_STYLE H_OFFSET //H_NONE //#endif //#elif LINEARALLOC //#define H_STYLE H_BIT0 //#else //#define H_STYLE H_COMPLEX //#endif //#endif // NT structured exception handling // 0: no support // 1: old style // 2: new style enum NTEXCEPTIONS = 2; // For Shared Code Base //#if _WINDLL //#define dbg_printf dll_printf //#else //#define dbg_printf printf //#endif //#ifndef ERRSTREAM //#define ERRSTREAM stdout //#endif //#define err_printf printf //#define err_vprintf vfprintf //#define err_fputc fputc //#define dbg_fputc fputc //#define LF '\n' //#define LF_STR "\n" //#define CR '\r' //#define ANSI config.ansi_c //#define ANSI_STRICT config.ansi_c //#define ANSI_RELAX config.ansi_c //#define TRIGRAPHS ANSI //#define T80x86(x) x // For Share MEM_ macros - default to mem_xxx package // PH precompiled header // PARF parser, life of function // PARC parser, life of compilation // BEF back end, function // BEC back end, compilation //#define MEM_PH_FREE mem_free //#define MEM_PARF_FREE mem_free //#define MEM_PARC_FREE mem_free //#define MEM_BEF_FREE mem_free //#define MEM_BEC_FREE mem_free //#define MEM_PH_CALLOC mem_calloc //#define MEM_PARC_CALLOC mem_calloc //#define MEM_PARF_CALLOC mem_calloc //#define MEM_BEF_CALLOC mem_calloc //#define MEM_BEC_CALLOC mem_calloc //#define MEM_PH_MALLOC mem_malloc //#define MEM_PARC_MALLOC mem_malloc //#define MEM_PARF_MALLOC mem_malloc //#define MEM_BEF_MALLOC mem_malloc //#define MEM_BEC_MALLOC mem_malloc //#define MEM_PH_STRDUP mem_strdup //#define MEM_PARC_STRDUP mem_strdup //#define MEM_PARF_STRDUP mem_strdup //#define MEM_BEF_STRDUP mem_strdup //#define MEM_BEC_STRDUP mem_strdup //#define MEM_PH_REALLOC mem_realloc //#define MEM_PARC_REALLOC mem_realloc //#define MEM_PARF_REALLOC mem_realloc //#define MEM_PERM_REALLOC mem_realloc //#define MEM_BEF_REALLOC mem_realloc //#define MEM_BEC_REALLOC mem_realloc //#define MEM_PH_FREEFP mem_freefp //#define MEM_PARC_FREEFP mem_freefp //#define MEM_PARF_FREEFP mem_freefp //#define MEM_BEF_FREEFP mem_freefp //#define MEM_BEC_FREEFP mem_freefp // If we can use 386 instruction set (possible in 16 bit code) //#define I386 (config.target_cpu >= TARGET_80386) // If we are generating 32 bit code //#if MARS //#define I16 0 // no 16 bit code for D //#define I32 (NPTRSIZE == 4) //#define I64 (NPTRSIZE == 8) // 1 if generating 64 bit code //#else //#define I16 (NPTRSIZE == 2) //#define I32 (NPTRSIZE == 4) //#define I64 (NPTRSIZE == 8) // 1 if generating 64 bit code //#endif /********************************** * Limits & machine dependent stuff. */ /* Define stuff that's different between VAX and IBMPC. * HOSTBYTESWAPPED TRUE if on the host machine the bytes are * swapped (TRUE for 6809, 68000, FALSE for 8088 * and VAX). */ enum EXIT_BREAK = 255; // aborted compile with ^C /* Take advantage of machines that can store a word, lsb first */ //#if _M_I86 // if Intel processor //#define TOWORD(ptr,val) (*(unsigned short *)(ptr) = (unsigned short)(val)) //#define TOLONG(ptr,val) (*(unsigned *)(ptr) = (unsigned)(val)) //#else //#define TOWORD(ptr,val) (((ptr)[0] = (unsigned char)(val)),\ // ((ptr)[1] = (unsigned char)((val) >> 8))) //#define TOLONG(ptr,val) (((ptr)[0] = (unsigned char)(val)),\ // ((ptr)[1] = (unsigned char)((val) >> 8)),\ // ((ptr)[2] = (unsigned char)((val) >> 16)),\ // ((ptr)[3] = (unsigned char)((val) >> 24))) //#endif // //#define TOOFFSET(a,b) (I32 ? TOLONG(a,b) : TOWORD(a,b)) /*************************** * Target machine data types as they appear on the host. */ alias targ_char = byte; alias targ_uchar = ubyte; alias targ_schar = byte; alias targ_short = short; alias targ_ushort= ushort; alias targ_long = int; alias targ_ulong = uint; alias targ_llong = long; alias targ_ullong = ulong; alias targ_float = float; alias targ_double = double; alias targ_ldouble = real; // Extract most significant register from constant //#define MSREG(p) ((REGSIZE == 2) ? (p) >> 16 : ((sizeof(targ_llong) == 8) ? (p) >> 32 : 0)) alias targ_int = int; alias targ_uns = uint; /* Sizes of base data types in bytes */ enum { CHARSIZE = 1, SHORTSIZE = 2, WCHARSIZE = 2, // 2 for WIN32, 4 for linux/OSX/FreeBSD/OpenBSD/Solaris LONGSIZE = 4, LLONGSIZE = 8, CENTSIZE = 16, FLOATSIZE = 4, DOUBLESIZE = 8, TMAXSIZE = 16, // largest size a constant can be } //#define intsize _tysize[TYint] //#define REGSIZE _tysize[TYnptr] //#define NPTRSIZE _tysize[TYnptr] //#define FPTRSIZE _tysize[TYfptr] //#define REGMASK 0xFFFF // targ_llong is also used to store host pointers, so it should have at least their size //#if TARGET_LINUX || TARGET_FREEBSD || TARGET_OPENBSD || TARGET_SOLARIS || TARGET_OSX || MARS alias targ_ptrdiff_t = targ_llong; // ptrdiff_t for target machine alias targ_size_t = targ_ullong; // size_t for the target machine //#else //typedef targ_int targ_ptrdiff_t; /* ptrdiff_t for target machine */ //typedef targ_uns targ_size_t; /* size_t for the target machine */ //#endif /* Enable/disable various features (Some features may no longer work the old way when compiled out, I don't test the old ways once the new way is set.) */ //#define NEWTEMPMANGLE (!(config.flags4 & CFG4oldtmangle)) // do new template mangling //#define USEDLLSHELL _WINDLL //#define MFUNC (I32) //0 && config.exe == EX_WIN32) // member functions are TYmfunc //#define CV3 0 // 1 means support CV3 debug format /* Object module format */ //#ifndef OMFOBJ //#define OMFOBJ TARGET_WINDOS //#endif //#ifndef ELFOBJ //#define ELFOBJ (TARGET_LINUX || TARGET_FREEBSD || TARGET_OPENBSD || TARGET_SOLARIS) //#endif //#ifndef MACHOBJ //#define MACHOBJ TARGET_OSX //#endif //#define SYMDEB_CODEVIEW TARGET_WINDOS //#define SYMDEB_DWARF (TARGET_LINUX || TARGET_FREEBSD || TARGET_OPENBSD || TARGET_SOLARIS || TARGET_OSX) //#define TOOLKIT_H enum Smodel = 0; // 64k code, 64k data, or flat model //#ifndef MEMMODELS //#define LARGEDATA (config.memmodel & 6) //#define LARGECODE (config.memmodel & 5) // //#define Mmodel 1 /* large code, 64k data */ //#define Cmodel 2 /* 64k code, large data */ //#define Lmodel 3 /* large code, large data */ //#define Vmodel 4 /* large code, large data, vcm */ //#define MEMMODELS 5 /* number of memory models */ //#endif /* Segments */ enum { CODE = 1, // code segment DATA = 2, // initialized data CDATA = 3, // constant data UDATA = 4, // uninitialized data CDATAREL = 5, // constant data with relocs UNKNOWN = -1, // unknown segment DGROUPIDX = 1, // group index of DGROUP } enum REGMAX = 29; // registers are numbered 0..10 alias tym_t = uint; // data type big enough for type masks alias SYMIDX = int; // symbol table index //#define _chkstack() (void)0 //#if _WINDLL ///* We reference the required Windows-1252 encoding of the copyright symbol // by escaping its character code (0xA9) rather than directly embedding it in // the source text. The character code is invalid in UTF-8, which causes some // of our source-code preprocessing tools (e.g. tolf) to choke. */ //#ifndef COPYRIGHT_SYMBOL //#define COPYRIGHT_SYMBOL "\xA9" //#endif //#define COPYRIGHT "Copyright " COPYRIGHT_SYMBOL " 2001 Digital Mars" //#else //#ifdef DEBUG //#define COPYRIGHT "Copyright (C) Digital Mars 2000-2017. All Rights Reserved.\n\ //Written by Walter Bright\n\ //*****BETA TEST VERSION*****" //#else //#if __linux__ //#define COPYRIGHT "Copyright (C) Digital Mars 2000-2017. All Rights Reserved.\n\ //Written by Walter Bright, Linux version by Pat Nelson" //#else //#define COPYRIGHT "Copyright (C) Digital Mars 2000-2017. All Rights Reserved.\n\ //Written by Walter Bright" //#endif //#endif //#endif /********************************** * Configuration */ /* Linkage type */ enum linkage_t { LINK_C, /* C style */ LINK_CPP, /* C++ style */ LINK_PASCAL, /* Pascal style */ LINK_FORTRAN, LINK_SYSCALL, LINK_STDCALL, LINK_D, // D code LINK_MAXDIM /* array dimension */ } /********************************** * Exception handling method */ enum EHmethod { EH_NONE, // no exception handling EH_WIN32, // Win32 SEH EH_WIN64, // Win64 SEH (not supported yet) EH_DM, // Digital Mars method EH_DWARF, // Dwarf method } // CPU target alias cpu_target_t = byte; enum { TARGET_8086 = 0, TARGET_80286 = 2, TARGET_80386 = 3, TARGET_80486 = 4, TARGET_Pentium = 5, TARGET_PentiumMMX = 6, TARGET_PentiumPro = 7, TARGET_PentiumII = 8, } // Symbolic debug info alias symbolic_debug_t = byte; enum { CVNONE = 0, // No symbolic info CVOLD = 1, // Codeview 1 symbolic info CV4 = 2, // Codeview 4 symbolic info CVSYM = 3, // Symantec format CVTDB = 4, // Symantec format written to file CVDWARF_C = 5, // Dwarf in C format CVDWARF_D = 6, // Dwarf in D format CVSTABS = 7, // Elf Stabs in C format CV8 = 8, // Codeview 8 symbolic info } // Windows code gen flags alias windows_flags_t = uint; enum { WFwindows = 1, // generating code for Windows app or DLL WFdll = 2, // generating code for Windows DLL WFincbp = 4, // mark far stack frame with inc BP / dec BP WFloadds = 8, // assume __loadds for all functions WFexpdef = 0x10, // generate export definition records for // exported functions WFss = 0x20, // load DS from SS WFreduced = 0x40, // skip DS load for non-exported functions WFdgroup = 0x80, // load DS from DGROUP WFexport = 0x100, // assume __export for all far functions WFds = 0x200, // load DS from DS WFmacros = 0x400, // define predefined windows macros WFssneds = 0x800, // SS != DS WFthunk = 0x1000, // use fixups instead of direct ref to CS WFsaveds = 0x2000, // use push/pop DS for far functions WFdsnedgroup = 0x4000, // DS != DGROUP WFexe = 0x8000, // generating code for Windows EXE } // Object file format alias objfmt_t = uint; enum { OBJ_OMF = 1, OBJ_MSCOFF = 2, OBJ_ELF = 4, OBJ_MACH = 8, } // Executable file format alias exefmt_t = uint; enum { EX_DOSX = 1, // DOSX 386 program EX_ZPM = 2, // ZPM 286 program EX_RATIONAL = 4, // RATIONAL 286 program EX_PHARLAP = 8, // PHARLAP 386 program EX_COM = 0x10, // MSDOS .COM program // EX_WIN16 = 0x20, // Windows 3.x 16 bit program (no longer supported) EX_OS2 = 0x40, // OS/2 2.0 32 bit program EX_OS1 = 0x80, // OS/2 1.x 16 bit program EX_WIN32 = 0x100, EX_MZ = 0x200, // MSDOS real mode program EX_XENIX = 0x400, EX_SCOUNIX = 0x800, EX_UNIXSVR4 = 0x1000, EX_LINUX = 0x2000, EX_WIN64 = 0x4000, // AMD64 and Windows (64 bit mode) EX_LINUX64 = 0x8000, // AMD64 and Linux (64 bit mode) EX_OSX = 0x10000, EX_OSX64 = 0x20000, EX_FREEBSD = 0x40000, EX_FREEBSD64 = 0x80000, EX_SOLARIS = 0x100000, EX_SOLARIS64 = 0x200000, EX_OPENBSD = 0x400000, EX_OPENBSD64 = 0x800000, } // All flat memory models (no segment registers) enum exefmt_t EX_flat = EX_OS2 | EX_WIN32 | EX_LINUX | EX_WIN64 | EX_LINUX64 | EX_OSX | EX_OSX64 | EX_FREEBSD | EX_FREEBSD64 | EX_OPENBSD | EX_OPENBSD64 | EX_SOLARIS | EX_SOLARIS64; // All DOS executable types enum exefmt_t EX_dos = EX_DOSX | EX_ZPM | EX_RATIONAL | EX_PHARLAP | EX_COM | EX_MZ /*| EX_WIN16*/; alias config_flags_t = uint; enum { CFGuchar = 1, // chars are unsigned CFGsegs = 2, // new code seg for each far func CFGtrace = 4, // output trace functions CFGglobal = 8, // make all static functions global CFGstack = 0x10, // add stack overflow checking CFGalwaysframe = 0x20, // always generate stack frame CFGnoebp = 0x40, // do not use EBP as general purpose register CFGromable = 0x80, // put switch tables in code segment CFGeasyomf = 0x100, // generate Pharlap Easy-OMF format CFGfarvtbls = 0x200, // store vtables in far segments CFGnoinlines = 0x400, // do not inline functions CFGnowarning = 0x800, // disable warnings } alias config_flags2_t = uint; enum { CFG2comdat = 1, // use initialized common blocks CFG2nodeflib = 2, // no default library imbedded in OBJ file CFG2browse = 4, // generate browse records CFG2dyntyping = 8, // generate dynamic typing information CFG2fulltypes = 0x10, // don't optimize CV4 class info CFG2warniserr = 0x20, // treat warnings as errors CFG2phauto = 0x40, // automatic precompiled headers CFG2phuse = 0x80, // use precompiled headers CFG2phgen = 0x100, // generate precompiled header CFG2once = 0x200, // only include header files once CFG2hdrdebug = 0x400, // generate debug info for header CFG2phautoy = 0x800, // fast build precompiled headers CFG2noobj = 0x1000, // we are not generating a .OBJ file CFG2noerrmax = 0x2000, // no error count maximum CFG2expand = 0x4000, // expanded output to list file CFG2stomp = 0x8000, // enable stack stomping code CFG2gms = 0x10000, // optimize debug symbols for microsoft debuggers } alias config_flags3_t = uint; enum { CFG3ju = 1, // char == unsigned char CFG3eh = 2, // generate exception handling stuff CFG3strcod = 4, // strings are placed in code segment CFG3eseqds = 8, // ES == DS at all times CFG3ptrchk = 0x10, // generate pointer validation code CFG3strictproto = 0x20, // strict prototyping CFG3autoproto = 0x40, // auto prototyping CFG3rtti = 0x80, // add RTTI support CFG3relax = 0x100, // relaxed type checking (C only) CFG3cpp = 0x200, // C++ compile CFG3igninc = 0x400, // ignore standard include directory CFG3mars = 0x800, // use mars libs and headers CFG3nofar = 0x1000, // ignore __far and __huge keywords CFG3noline = 0x2000, // do not output #line directives CFG3comment = 0x4000, // leave comments in preprocessed output CFG3cppcomment = 0x8000, // allow C++ style comments CFG3wkfloat = 0x10000, // make floating point references weak externs CFG3digraphs = 0x20000, // support ANSI C++ digraphs CFG3semirelax = 0x40000, // moderate relaxed type checking (non-Windows targets) CFG3pic = 0x80000, // position independent code } alias config_flags4_t = uint; enum { CFG4speed = 1, // optimized for speed CFG4space = 2, // optimized for space CFG4allcomdat = 4, // place all functions in COMDATs CFG4fastfloat = 8, // fast floating point (-ff) CFG4fdivcall = 0x10, // make function call for FDIV opcodes CFG4tempinst = 0x20, // instantiate templates for undefined functions CFG4oldstdmangle = 0x40, // do stdcall mangling without @ CFG4pascal = 0x80, // default to pascal linkage CFG4stdcall = 0x100, // default to std calling convention CFG4cacheph = 0x200, // cache precompiled headers in memory CFG4alternate = 0x400, // if alternate digraph tokens CFG4bool = 0x800, // support 'bool' as basic type CFG4wchar_t = 0x1000, // support 'wchar_t' as basic type CFG4notempexp = 0x2000, // no instantiation of template functions CFG4anew = 0x4000, // allow operator new[] and delete[] overloading CFG4oldtmangle = 0x8000, // use old template name mangling CFG4dllrtl = 0x10000, // link with DLL RTL CFG4noemptybaseopt = 0x20000, // turn off empty base class optimization CFG4nowchar_t = 0x40000, // use unsigned short name mangling for wchar_t CFG4forscope = 0x80000, // new C++ for scoping rules CFG4warnccast = 0x100000, // warn about C style casts CFG4adl = 0x200000, // argument dependent lookup CFG4enumoverload = 0x400000, // enum overloading CFG4implicitfromvoid = 0x800000, // allow implicit cast from void* to T* CFG4dependent = 0x1000000, // dependent / non-dependent lookup CFG4wchar_is_long = 0x2000000, // wchar_t is 4 bytes CFG4underscore = 0x4000000, // prepend _ for C mangling } enum config_flags4_t CFG4optimized = CFG4speed | CFG4space; enum config_flags4_t CFG4stackalign = CFG4speed; // align stack to 8 bytes alias config_flags5_t = uint; enum { CFG5debug = 1, // compile in __debug code CFG5in = 2, // compile in __in code CFG5out = 4, // compile in __out code CFG5invariant = 8, // compile in __invariant code } /* CFGX: flags ignored in precompiled headers * CFGY: flags copied from precompiled headers into current config */ enum config_flags_t CFGX = CFGnowarning; enum config_flags2_t CFGX2 = CFG2warniserr | CFG2phuse | CFG2phgen | CFG2phauto | CFG2once | CFG2hdrdebug | CFG2noobj | CFG2noerrmax | CFG2expand | CFG2nodeflib | CFG2stomp | CFG2gms; enum config_flags3_t CFGX3 = CFG3strcod | CFG3ptrchk; enum config_flags4_t CFGX4 = CFG4optimized | CFG4fastfloat | CFG4fdivcall | CFG4tempinst | CFG4cacheph | CFG4notempexp | CFG4stackalign | CFG4dependent; enum config_flags4_t CFGY4 = CFG4nowchar_t | CFG4noemptybaseopt | CFG4adl | CFG4enumoverload | CFG4implicitfromvoid | CFG4wchar_is_long | CFG4underscore; // Configuration flags for HTOD executable alias htod_flags_t = uint; enum { HTODFinclude = 1, // -hi drill down into #include files HTODFsysinclude = 2, // -hs drill down into system #include files HTODFtypedef = 4, // -ht drill down into typedefs HTODFcdecl = 8, // -hc skip C declarations as comments } // This part of the configuration is saved in the precompiled header for use // in comparing to make sure it hasn't changed. struct Config { char language; // 'C' = C, 'D' = C++ char[8] _version; // = VERSION char[3] exetype; // distinguish exe types so PH // files are distinct (= SUFFIX) cpu_target_t target_cpu; // instruction selection cpu_target_t target_scheduler; // instruction scheduling (normally same as selection) short versionint; // intermediate file version (= VERSIONINT) int defstructalign; // struct alignment specified by command line short hxversion; // HX version number symbolic_debug_t fulltypes; // format of symbolic debug info windows_flags_t wflags; // flags for Windows code generation bool fpxmmregs; // use XMM registers for floating point ubyte avx; // use AVX instruction set (0, 1, 2) ubyte inline8087; /* 0: emulator 1: IEEE 754 inline 8087 code 2: fast inline 8087 code */ short memmodel; // 0:S,X,N,F, 1:M, 2:C, 3:L, 4:V objfmt_t objfmt; // target object format exefmt_t exe; // target operating system config_flags_t flags; config_flags2_t flags2; config_flags3_t flags3; config_flags4_t flags4; config_flags5_t flags5; htod_flags_t htodFlags; // configuration for htod ubyte ansi_c; // strict ANSI C // 89 for ANSI C89, 99 for ANSI C99 ubyte asian_char; // 0: normal, 1: Japanese, 2: Chinese // and Taiwanese, 3: Korean uint threshold; // data larger than threshold is assumed to // be far (16 bit models only) // if threshold == THRESHMAX, all data defaults // to near linkage_t linkage; // default function call linkage EHmethod ehmethod; // exception handling method bool betterC; // implement "Better C" static uint sizeCheck(); unittest { assert(sizeCheck() == Config.sizeof); } } enum THRESHMAX = 0xFFFF; // Language for error messages enum LANG { LANGenglish, LANGgerman, LANGfrench, LANGjapanese, } // Configuration that is not saved in precompiled header struct Configv { ubyte addlinenumbers; // put line number info in .OBJ file ubyte verbose; // 0: compile quietly (no messages) // 1: show progress to DLL (default) // 2: full verbosity char* csegname; // code segment name char* deflibname; // default library name LANG language; // message language int errmax; // max error count static uint sizeCheck(); unittest { assert(sizeCheck() == Configv.sizeof); } } alias reg_t = ubyte; // register number alias regm_t = uint; // Register mask type struct immed_t { targ_size_t[REGMAX] value; // immediate values in registers regm_t mval; // Mask of which values in regimmed.value[] are valid } struct cse_t { elem*[REGMAX] value; // expression values in registers regm_t mval; // mask of which values in value[] are valid regm_t mops; // subset of mval that contain common subs that need // to be stored in csextab[] if they are destroyed } struct con_t { cse_t cse; // CSEs in registers immed_t immed; // immediate values in registers regm_t mvar; // mask of register variables regm_t mpvar; // mask of SCfastpar, SCshadowreg register variables regm_t indexregs; // !=0 if more than 1 uncommitted index register regm_t used; // mask of registers used regm_t params; // mask of registers which still contain register // function parameters } /********************************* * Bootstrap complex types. */ import ddmd.backend.bcomplex; /********************************* * Union of all data types. Storage allocated must be the right * size of the data on the TARGET, not the host. */ struct Cent { targ_ullong lsw; targ_ullong msw; } union eve { targ_char Vchar; targ_schar Vschar; targ_uchar Vuchar; targ_short Vshort; targ_ushort Vushort; targ_int Vint; targ_uns Vuns; targ_long Vlong; targ_ulong Vulong; targ_llong Vllong; targ_ullong Vullong; Cent Vcent; targ_float Vfloat; targ_double Vdouble; targ_ldouble Vldouble; Complex_f Vcfloat; // 2x float Complex_d Vcdouble; // 2x double Complex_ld Vcldouble; // 2x long double targ_size_t Vpointer; targ_ptrdiff_t Vptrdiff; targ_uchar Vreg; // register number for OPreg elems // 16 byte vector types targ_float[4] Vfloat4; // float[4] targ_double[2] Vdouble2; // double[2] targ_schar[16] Vschar16; // byte[16] targ_uchar[16] Vuchar16; // ubyte[16] targ_short[8] Vshort8; // short[8] targ_ushort[8] Vushort8; // ushort[8] targ_long[4] Vlong4; // int[4] targ_ulong[4] Vulong4; // uint[4] targ_llong[2] Vllong2; // long[2] targ_ullong[2] Vullong2; // ulong[2] // 32 byte vector types targ_float[8] Vfloat8; // float[8] targ_double[4] Vdouble4; // double[4] targ_schar[32] Vschar32; // byte[32] targ_uchar[32] Vuchar32; // ubyte[32] targ_short[16] Vshort16; // short[16] targ_ushort[16] Vushort16; // ushort[16] targ_long[8] Vlong8; // int[8] targ_ulong[8] Vulong8; // uint[8] targ_llong[4] Vllong4; // long[4] targ_ullong[4] Vullong4; // ulong[4] struct // 48 bit 386 far pointer { targ_long Voff; targ_ushort Vseg; } struct { targ_size_t Voffset;// offset from symbol Symbol *Vsym; // pointer to symbol table union { param_t* Vtal; // template-argument-list for SCfunctempl, // used only to transmit it to cpp_overload() LIST* Erd; // OPvar: reaching definitions } } struct { targ_size_t Voffset2;// member pointer offset Classsym* Vsym2; // struct tag elem* ethis; // OPrelconst: 'this' for member pointer } struct { targ_size_t Voffset3;// offset from string char* Vstring; // pointer to string (OPstring or OPasm) targ_size_t Vstrlen;// length of string } struct { elem* E1; // left child for unary & binary nodes elem* E2; // right child for binary nodes Symbol* Edtor; // OPctor: destructor } struct { elem* Eleft2; // left child for OPddtor void* Edecl; // VarDeclaration being constructed } // OPdctor,OPddtor static uint sizeCheck(); unittest { assert(sizeCheck() == eve.sizeof); } } // variants for each type of elem // Symbols //#ifdef DEBUG //#define IDSYMBOL IDsymbol, //#else //#define IDSYMBOL //#endif alias SYMFLGS = uint; /********************************** * Storage classes */ alias SC = int; enum { SCunde, // undefined SCauto, // automatic (stack) SCstatic, // statically allocated SCthread, // thread local SCextern, // external SCregister, // registered variable SCpseudo, // pseudo register variable SCglobal, // top level global definition SCcomdat, // initialized common block SCparameter, // function parameter SCregpar, // function register parameter SCfastpar, // function parameter passed in register SCshadowreg, // function parameter passed in register, shadowed on stack SCtypedef, // type definition SCexplicit, // explicit SCmutable, // mutable SClabel, // goto label SCstruct, // struct/class/union tag name SCenum, // enum tag name SCfield, // bit field of struct or union SCconst, // constant integer SCmember, // member of struct or union SCanon, // member of anonymous union SCinline, // for inline functions SCsinline, // for static inline functions SCeinline, // for extern inline functions SCoverload, // for overloaded function names SCfriend, // friend of a class SCvirtual, // virtual function SClocstat, // static, but local to a function SCtemplate, // class template SCfunctempl, // function template SCftexpspec, // function template explicit specialization SClinkage, // function linkage symbol SCpublic, // generate a pubdef for this SCcomdef, // uninitialized common block SCbprel, // variable at fixed offset from frame pointer SCnamespace, // namespace SCalias, // alias to another symbol SCfuncalias, // alias to another function symbol SCmemalias, // alias to base class member SCstack, // offset from stack pointer (not frame pointer) SCadl, // list of ADL symbols for overloading SCMAX } int ClassInline(int c) { return c == SCinline || c == SCsinline || c == SCeinline; } //#define SymInline(s) ClassInline((s).Sclass)
D
/home/runner/work/econ/econ/server/target/x86_64-unknown-linux-gnu/release/deps/once_cell-e7645ece8b337a87.rmeta: /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/once_cell-1.5.2/src/lib.rs /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/once_cell-1.5.2/src/imp_std.rs /home/runner/work/econ/econ/server/target/x86_64-unknown-linux-gnu/release/deps/libonce_cell-e7645ece8b337a87.rlib: /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/once_cell-1.5.2/src/lib.rs /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/once_cell-1.5.2/src/imp_std.rs /home/runner/work/econ/econ/server/target/x86_64-unknown-linux-gnu/release/deps/once_cell-e7645ece8b337a87.d: /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/once_cell-1.5.2/src/lib.rs /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/once_cell-1.5.2/src/imp_std.rs /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/once_cell-1.5.2/src/lib.rs: /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/once_cell-1.5.2/src/imp_std.rs:
D
module mach.range.chunk; private: import mach.meta : varmin; import mach.traits : hasNumericLength, isSlicingRange, isSavingRange; import mach.range.asrange : asrange, validAsSlicingRange; import mach.math.round : divceil; /++ Docs The `chunk` function returns a range for enumerating sequential chunks of an input, its first argument being the input iterable and its second argument being the size of the chunks to produce. If the iterable is not evenly divisible by the given chunk size, then the final element of the chunk range will be shorter than the given size. The input iterable must support slicing and have numeric length. The outputted range is bidirectional, has `length` and `remaining` properties, allows random access and slicing operations, and can be saved. +/ unittest{ /// Example auto range = "abc123xyz!!".chunk(3); assert(range.length == 4); assert(range[0] == "abc"); assert(range[1] == "123"); assert(range[2] == "xyz"); // Final chunk is shorter because the input wasn't evenly divisble by 3. assert(range[3] == "!!"); } public: /// Determine whether the `chunk` function can be applied to some type. enum canChunk(T) = ( hasNumericLength!T && is(typeof({ size_t low, high; auto slice = T.init[low .. high]; })) ); /// Get a range for lazily enumerating chunks of a sliceable input. auto chunk(T)(auto ref T iter, size_t size) if(canChunk!T) in{ assert(size > 0); }body{ return ChunkRange!T(iter, size); } /// Range for lazily enumerating chunks of an input. struct ChunkRange(Source) if(canChunk!Source){ /// Input to be chunked. Source source; /// Maximum size of each chunk. size_t size; /// Cursor representing the front of the range. size_t frontindex; /// Cursor representing the back of the range. size_t backindex; this(Source source, size_t size, size_t frontindex = 0) in{ assert(size > 0); }body{ this(source, size, frontindex, divceil(source.length, size)); } this(Source source, size_t size, size_t frontindex, size_t backindex) in{ assert(size > 0); }body{ this.source = source; this.size = size; this.frontindex = frontindex; this.backindex = backindex; } @property bool empty() const{ return this.frontindex >= this.backindex; } @property auto length(){ return divceil(cast(size_t) this.source.length, this.size); } alias opDollar = length; @property auto remaining() const{ return this.backindex - this.frontindex; } @property auto front() in{assert(!this.empty);} body{ return this[this.frontindex]; } void popFront() in{assert(!this.empty);} body{ this.frontindex++; } @property auto back() in{assert(!this.empty);} body{ return this[this.backindex - 1]; } void popBack() in{assert(!this.empty);} body{ this.backindex--; } auto opIndex(in size_t index) in{ assert(index >= 0 && index < this.length); }body{ immutable low = index * this.size; immutable high = varmin(low + this.size, cast(size_t) this.source.length); return this.source[low .. high]; } typeof(this) opSlice(in size_t low, in size_t high) in{ assert(low >= 0 && high >= low && high <= this.length); }body{ if(this.source.length){ size_t slicelow = low * this.size; size_t slicehigh = high * this.size; if(slicelow > this.source.length - 1){ slicelow = cast(size_t)(this.source.length - 1); } if(slicehigh > this.source.length){ slicehigh = cast(size_t)(this.source.length); } return typeof(this)(this.source[slicelow .. slicehigh], this.size); }else{ return typeof(this)(this.source[0 .. $], this.size); } } /// Save the range. /// Assumes slicing and random access do not modify the range's content. @property typeof(this) save(){ return typeof(this)( this.source, this.size, this.frontindex, this.backindex ); } } version(unittest){ private: import mach.test; import mach.range.compare : equals; import mach.range.retro : retro; } unittest{ tests("Chunk", { auto input = "abcdefghijklmnop"; tests("Exact", { auto range = input.chunk(4); testeq(range.length, 4); tests("Iteration", { range.equals(["abcd", "efgh", "ijkl", "mnop"]); }); tests("Backwards", { range.retro.equals(["mnop", "ijkl", "efgh", "abcd"]); }); tests("Random access", { test(range[0].equals("abcd")); test(range[1].equals("efgh")); test(range[2].equals("ijkl")); test(range[$-1].equals("mnop")); }); tests("Slicing", { test(range[0 .. $].equals(range)); test(range[0 .. 1].equals(["abcd"])); test(range[1 .. 3].equals(["efgh", "ijkl"])); }); tests("Saving", { auto copy = range.save; copy.popFront(); test(range.front.equals("abcd")); test(copy.front.equals("efgh")); }); }); tests("Inexact", { auto range = input.chunk(5); testeq(range.length, 4); tests("Iteration", { range.equals(["abcde", "fghij", "klmno", "p"]); }); tests("Backwards", { range.retro.equals(["p", "klmno", "fghij", "abcde"]); }); }); }); }
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 thrift.async.libevent; import core.atomic; import core.time : Duration, dur; import core.exception : onOutOfMemoryError; import core.memory : GC; import core.thread : Fiber, Thread; import core.sync.condition; import core.sync.mutex; import core.stdc.stdlib : free, malloc; import deimos.event2.event; import std.array : empty, front, popFront; import std.conv : text, to; import std.exception : enforce; import std.socket : Socket, socketPair; import thrift.base; import thrift.async.base; import thrift.internal.socket; import thrift.internal.traits; import thrift.util.cancellation; // To avoid DMD @@BUG6395@@. import thrift.internal.algorithm; /** * A TAsyncManager implementation based on libevent. * * The libevent loop for handling non-blocking sockets is run in a background * thread, which is lazily spawned. The thread is not daemonized to avoid * crashes on program shutdown, it is only stopped when the manager instance * is destroyed. So, to ensure a clean program teardown, either make sure this * instance gets destroyed (e.g. by using scope), or manually call stop() at * the end. */ class TLibeventAsyncManager : TAsyncSocketManager { this() { eventBase_ = event_base_new(); // Set up the socket pair for transferring control messages to the event // loop. auto pair = socketPair(); controlSendSocket_ = pair[0]; controlReceiveSocket_ = pair[1]; controlReceiveSocket_.blocking = false; // Register an event for receiving control messages. controlReceiveEvent_ = event_new(eventBase_, controlReceiveSocket_.handle, EV_READ | EV_PERSIST | EV_ET, assumeNothrow(&controlMsgReceiveCallback), cast(void*)this); event_add(controlReceiveEvent_, null); queuedCountMutex_ = new Mutex; zeroQueuedCondition_ = new Condition(queuedCountMutex_); } ~this() { // stop() should be safe to call, because either we don't have a worker // thread running and it is a no-op anyway, or it is guaranteed to be // still running (blocked in event_base_loop), and thus guaranteed not to // be garbage collected yet. stop(dur!"hnsecs"(0)); event_free(controlReceiveEvent_); event_base_free(eventBase_); eventBase_ = null; } override void execute(TAsyncTransport transport, Work work, TCancellation cancellation = null ) { if (cancellation && cancellation.triggered) return; // Keep track that there is a new work item to be processed. incrementQueuedCount(); ensureWorkerThreadRunning(); // We should be able to send the control message as a whole – we currently // assume to be able to receive it at once as well. If this proves to be // unstable (e.g. send could possibly return early if the receiving buffer // is full and the blocking call gets interrupted by a signal), it could // be changed to a more sophisticated scheme. // Make sure the delegate context doesn't get GCd while the work item is // on the wire. GC.addRoot(work.ptr); // Send work message. sendControlMsg(ControlMsg(MsgType.WORK, work, transport)); if (cancellation) { cancellation.triggering.addCallback({ sendControlMsg(ControlMsg(MsgType.CANCEL, work, transport)); }); } } override void delay(Duration duration, void delegate() work) { incrementQueuedCount(); ensureWorkerThreadRunning(); const tv = toTimeval(duration); // DMD @@BUG@@: Cannot deduce T to void delegate() here. registerOneshotEvent!(void delegate())( -1, 0, assumeNothrow(&delayCallback), &tv, { work(); decrementQueuedCount(); } ); } override bool stop(Duration waitFinishTimeout = dur!"hnsecs"(-1)) { bool cleanExit = true; synchronized (this) { if (workerThread_) { synchronized (queuedCountMutex_) { if (waitFinishTimeout > dur!"hnsecs"(0)) { if (queuedCount_ > 0) { zeroQueuedCondition_.wait(waitFinishTimeout); } } else if (waitFinishTimeout < dur!"hnsecs"(0)) { while (queuedCount_ > 0) zeroQueuedCondition_.wait(); } else { // waitFinishTimeout is zero, immediately exit in all cases. } cleanExit = (queuedCount_ == 0); } event_base_loopbreak(eventBase_); sendControlMsg(ControlMsg(MsgType.SHUTDOWN)); workerThread_.join(); workQueues_ = null; // We have nuked all currently enqueued items, so set the count to // zero. This is safe to do without locking, since the worker thread // is down. queuedCount_ = 0; atomicStore(*(cast(shared)&workerThread_), cast(shared(Thread))null); } } return cleanExit; } override void addOneshotListener(Socket socket, TAsyncEventType eventType, TSocketEventListener listener ) { addOneshotListenerImpl(socket, eventType, null, listener); } override void addOneshotListener(Socket socket, TAsyncEventType eventType, Duration timeout, TSocketEventListener listener ) { if (timeout <= dur!"hnsecs"(0)) { addOneshotListenerImpl(socket, eventType, null, listener); } else { // This is not really documented well, but libevent does not require to // keep the timeval around after the event was added. auto tv = toTimeval(timeout); addOneshotListenerImpl(socket, eventType, &tv, listener); } } private: alias void delegate() Work; void addOneshotListenerImpl(Socket socket, TAsyncEventType eventType, const(timeval)* timeout, TSocketEventListener listener ) { registerOneshotEvent(socket.handle, libeventEventType(eventType), assumeNothrow(&socketCallback), timeout, listener); } void registerOneshotEvent(T)(evutil_socket_t fd, short type, event_callback_fn callback, const(timeval)* timeout, T payload ) { // Create a copy of the payload on the C heap. auto payloadMem = malloc(payload.sizeof); if (!payloadMem) onOutOfMemoryError(); (cast(T*)payloadMem)[0 .. 1] = payload; GC.addRange(payloadMem, payload.sizeof); auto result = event_base_once(eventBase_, fd, type, callback, payloadMem, timeout); // Assuming that we didn't get our arguments wrong above, the only other // situation in which event_base_once can fail is when it can't allocate // memory. if (result != 0) onOutOfMemoryError(); } enum MsgType : ubyte { SHUTDOWN, WORK, CANCEL } struct ControlMsg { MsgType type; Work work; TAsyncTransport transport; } /** * Starts the worker thread if it is not already running. */ void ensureWorkerThreadRunning() { // Technically, only half barriers would be required here, but adding the // argument seems to trigger a DMD template argument deduction @@BUG@@. if (!atomicLoad(*(cast(shared)&workerThread_))) { synchronized (this) { if (!workerThread_) { auto thread = new Thread({ event_base_loop(eventBase_, 0); }); thread.start(); atomicStore(*(cast(shared)&workerThread_), cast(shared)thread); } } } } /** * Sends a control message to the worker thread. */ void sendControlMsg(const(ControlMsg) msg) { auto result = controlSendSocket_.send((&msg)[0 .. 1]); enum size = msg.sizeof; enforce(result == size, new TException(text( "Sending control message of type ", msg.type, " failed (", result, " bytes instead of ", size, " transmitted)."))); } /** * Receives messages from the control message socket and acts on them. Called * from the worker thread. */ void receiveControlMsg() { // Read as many new work items off the socket as possible (at least one // should be available, as we got notified by libevent). ControlMsg msg; ptrdiff_t bytesRead; while (true) { bytesRead = controlReceiveSocket_.receive(cast(ubyte[])((&msg)[0 .. 1])); if (bytesRead < 0) { auto errno = getSocketErrno(); if (errno != WOULD_BLOCK_ERRNO) { logError("Reading control message, some work item will possibly " ~ "never be executed: %s", socketErrnoString(errno)); } } if (bytesRead != msg.sizeof) break; // Everything went fine, we received a new control message. final switch (msg.type) { case MsgType.SHUTDOWN: // The message was just intended to wake us up for shutdown. break; case MsgType.CANCEL: // When processing a cancellation, we must not touch the first item, // since it is already being processed. auto queue = workQueues_[msg.transport]; if (queue.length > 0) { workQueues_[msg.transport] = [queue[0]] ~ removeEqual(queue[1 .. $], msg.work); } break; case MsgType.WORK: // Now that the work item is back in the D world, we don't need the // extra GC root for the context pointer anymore (see execute()). GC.removeRoot(msg.work.ptr); // Add the work item to the queue and execute it. auto queue = msg.transport in workQueues_; if (queue is null || (*queue).empty) { // If the queue is empty, add the new work item to the queue as well, // but immediately start executing it. workQueues_[msg.transport] = [msg.work]; executeWork(msg.transport, msg.work); } else { (*queue) ~= msg.work; } break; } } // If the last read was successful, but didn't read enough bytes, we got // a problem. if (bytesRead > 0) { logError("Unexpected partial control message read (%s byte(s) " ~ "instead of %s), some work item will possibly never be executed.", bytesRead, msg.sizeof); } } /** * Executes the given work item and all others enqueued for the same * transport in a new fiber. Called from the worker thread. */ void executeWork(TAsyncTransport transport, Work work) { (new Fiber({ auto item = work; while (true) { try { // Execute the actual work. It will possibly add listeners to the // event loop and yield away if it has to wait for blocking // operations. It is quite possible that another fiber will modify // the work queue for the current transport. item(); } catch (Exception e) { // This should never happen, just to be sure the worker thread // doesn't stop working in mysterious ways because of an unhandled // exception. logError("Exception thrown by work item: %s", e); } // Remove the item from the work queue. // Note: Due to the value semantics of array slices, we have to // re-lookup this on every iteration. This could be solved, but I'd // rather replace this directly with a queue type once one becomes // available in Phobos. auto queue = workQueues_[transport]; assert(queue.front == item); queue.popFront(); workQueues_[transport] = queue; // Now that the work item is done, no longer count it as queued. decrementQueuedCount(); if (queue.empty) break; // If the queue is not empty, execute the next waiting item. item = queue.front; } })).call(); } /** * Increments the amount of queued items. */ void incrementQueuedCount() { synchronized (queuedCountMutex_) { ++queuedCount_; } } /** * Decrements the amount of queued items. */ void decrementQueuedCount() { synchronized (queuedCountMutex_) { assert(queuedCount_ > 0); --queuedCount_; if (queuedCount_ == 0) { zeroQueuedCondition_.notifyAll(); } } } static extern(C) void controlMsgReceiveCallback(evutil_socket_t, short, void *managerThis ) { (cast(TLibeventAsyncManager)managerThis).receiveControlMsg(); } static extern(C) void socketCallback(evutil_socket_t, short flags, void *arg ) { auto reason = (flags & EV_TIMEOUT) ? TAsyncEventReason.TIMED_OUT : TAsyncEventReason.NORMAL; (*(cast(TSocketEventListener*)arg))(reason); GC.removeRange(arg); clear(arg); free(arg); } static extern(C) void delayCallback(evutil_socket_t, short flags, void *arg ) { assert(flags & EV_TIMEOUT); (*(cast(void delegate()*)arg))(); GC.removeRange(arg); clear(arg); free(arg); } Thread workerThread_; event_base* eventBase_; /// The socket used for receiving new work items in the event loop. Paired /// with controlSendSocket_. Invalid (i.e. TAsyncWorkItem.init) items are /// ignored and can be used to wake up the worker thread. Socket controlReceiveSocket_; event* controlReceiveEvent_; /// The socket used to send new work items to the event loop. It is /// expected that work items can always be read at once from it, i.e. that /// there will never be short reads. Socket controlSendSocket_; /// Queued up work delegates for async transports. This also includes /// currently active ones, they are removed from the queue on completion, /// which is relied on by the control message receive fiber (the main one) /// to decide whether to immediately start executing items or not. // TODO: This should really be of some queue type, not an array slice, but // std.container doesn't have anything. Work[][TAsyncTransport] workQueues_; /// The total number of work items not yet finished (queued and currently /// executed) and delays not yet executed. uint queuedCount_; /// Protects queuedCount_. Mutex queuedCountMutex_; /// Triggered when queuedCount_ reaches zero, protected by queuedCountMutex_. Condition zeroQueuedCondition_; } private { timeval toTimeval(const(Duration) dur) { timeval tv = {tv_sec: cast(int)dur.total!"seconds"(), tv_usec: dur.fracSec.usecs}; return tv; } /** * Returns the libevent flags combination to represent a given TAsyncEventType. */ short libeventEventType(TAsyncEventType type) { final switch (type) { case TAsyncEventType.READ: return EV_READ | EV_ET; case TAsyncEventType.WRITE: return EV_WRITE | EV_ET; } } }
D
// https://issues.dlang.org/show_bug.cgi?id=20438 import core.stdc.stdio; import core.memory; void main() { auto used0 = GC.stats.usedSize; void* z = GC.malloc(100); GC.free(z); GC.collect(); auto used1 = GC.stats.usedSize; used1 <= used0 || assert(false); }
D
/** * Compiler implementation of the * $(LINK2 http://www.dlang.org, D programming language). * * Copyright: Copyright (c) 1999-2017 by Digital Mars, All Rights Reserved * Authors: $(LINK2 http://www.digitalmars.com, Walter Bright) * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) * Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/ddmd/traits.d, _traits.d) */ module ddmd.traits; // Online documentation: https://dlang.org/phobos/ddmd_traits.html import core.stdc.stdio; import core.stdc.string; import ddmd.aggregate; import ddmd.arraytypes; import ddmd.canthrow; import ddmd.dclass; import ddmd.declaration; import ddmd.dscope; import ddmd.dsymbol; import ddmd.dtemplate; import ddmd.errors; import ddmd.expression; import ddmd.expressionsem; import ddmd.func; import ddmd.globals; import ddmd.hdrgen; import ddmd.id; import ddmd.identifier; import ddmd.mtype; import ddmd.nogc; import ddmd.root.array; import ddmd.root.speller; import ddmd.root.stringtable; import ddmd.semantic; import ddmd.tokens; import ddmd.typesem; import ddmd.visitor; enum LOGSEMANTIC = false; /************************ TraitsExp ************************************/ // callback for TypeFunction::attributesApply struct PushAttributes { Expressions* mods; extern (C++) static int fp(void* param, const(char)* str) { PushAttributes* p = cast(PushAttributes*)param; p.mods.push(new StringExp(Loc(), cast(char*)str)); return 0; } } extern (C++) __gshared StringTable traitsStringTable; shared static this() { static immutable string[] names = [ "isAbstractClass", "isArithmetic", "isAssociativeArray", "isFinalClass", "isPOD", "isNested", "isFloating", "isIntegral", "isScalar", "isStaticArray", "isUnsigned", "isVirtualFunction", "isVirtualMethod", "isAbstractFunction", "isFinalFunction", "isOverrideFunction", "isStaticFunction", "isRef", "isOut", "isLazy", "hasMember", "identifier", "getProtection", "parent", "getLinkage", "getMember", "getOverloads", "getVirtualFunctions", "getVirtualMethods", "classInstanceSize", "allMembers", "derivedMembers", "isSame", "compiles", "parameters", "getAliasThis", "getAttributes", "getFunctionAttributes", "getFunctionVariadicStyle", "getParameterStorageClasses", "getUnitTests", "getVirtualIndex", "getPointerBitmap", ]; traitsStringTable._init(40); foreach (s; names) { auto sv = traitsStringTable.insert(s.ptr, s.length, cast(void*)s.ptr); assert(sv); } } /** * get an array of size_t values that indicate possible pointer words in memory * if interpreted as the type given as argument * Returns: the size of the type in bytes, d_uns64.max on error */ extern (C++) d_uns64 getTypePointerBitmap(Loc loc, Type t, Array!(d_uns64)* data) { d_uns64 sz; if (t.ty == Tclass && !(cast(TypeClass)t).sym.isInterfaceDeclaration()) sz = (cast(TypeClass)t).sym.AggregateDeclaration.size(loc); else sz = t.size(loc); if (sz == SIZE_INVALID) return d_uns64.max; const sz_size_t = Type.tsize_t.size(loc); if (sz > sz.max - sz_size_t) { error(loc, "size overflow for type `%s`", t.toChars()); return d_uns64.max; } d_uns64 bitsPerWord = sz_size_t * 8; d_uns64 cntptr = (sz + sz_size_t - 1) / sz_size_t; d_uns64 cntdata = (cntptr + bitsPerWord - 1) / bitsPerWord; data.setDim(cast(size_t)cntdata); data.zero(); extern (C++) final class PointerBitmapVisitor : Visitor { alias visit = super.visit; public: extern (D) this(Array!(d_uns64)* _data, d_uns64 _sz_size_t) { this.data = _data; this.sz_size_t = _sz_size_t; } void setpointer(d_uns64 off) { d_uns64 ptroff = off / sz_size_t; (*data)[cast(size_t)(ptroff / (8 * sz_size_t))] |= 1L << (ptroff % (8 * sz_size_t)); } override void visit(Type t) { Type tb = t.toBasetype(); if (tb != t) tb.accept(this); } override void visit(TypeError t) { visit(cast(Type)t); } override void visit(TypeNext t) { assert(0); } override void visit(TypeBasic t) { if (t.ty == Tvoid) setpointer(offset); } override void visit(TypeVector t) { } override void visit(TypeArray t) { assert(0); } override void visit(TypeSArray t) { d_uns64 arrayoff = offset; d_uns64 nextsize = t.next.size(); if (nextsize == SIZE_INVALID) error = true; d_uns64 dim = t.dim.toInteger(); for (d_uns64 i = 0; i < dim; i++) { offset = arrayoff + i * nextsize; t.next.accept(this); } offset = arrayoff; } override void visit(TypeDArray t) { setpointer(offset + sz_size_t); } // dynamic array is {length,ptr} override void visit(TypeAArray t) { setpointer(offset); } override void visit(TypePointer t) { if (t.nextOf().ty != Tfunction) // don't mark function pointers setpointer(offset); } override void visit(TypeReference t) { setpointer(offset); } override void visit(TypeClass t) { setpointer(offset); } override void visit(TypeFunction t) { } override void visit(TypeDelegate t) { setpointer(offset); } // delegate is {context, function} override void visit(TypeQualified t) { assert(0); } // assume resolved override void visit(TypeIdentifier t) { assert(0); } override void visit(TypeInstance t) { assert(0); } override void visit(TypeTypeof t) { assert(0); } override void visit(TypeReturn t) { assert(0); } override void visit(TypeEnum t) { visit(cast(Type)t); } override void visit(TypeTuple t) { visit(cast(Type)t); } override void visit(TypeSlice t) { assert(0); } override void visit(TypeNull t) { // always a null pointer } override void visit(TypeStruct t) { d_uns64 structoff = offset; foreach (v; t.sym.fields) { offset = structoff + v.offset; if (v.type.ty == Tclass) setpointer(offset); else v.type.accept(this); } offset = structoff; } // a "toplevel" class is treated as an instance, while TypeClass fields are treated as references void visitClass(TypeClass t) { d_uns64 classoff = offset; // skip vtable-ptr and monitor if (t.sym.baseClass) visitClass(cast(TypeClass)t.sym.baseClass.type); foreach (v; t.sym.fields) { offset = classoff + v.offset; v.type.accept(this); } offset = classoff; } Array!(d_uns64)* data; d_uns64 offset; d_uns64 sz_size_t; bool error; } scope PointerBitmapVisitor pbv = new PointerBitmapVisitor(data, sz_size_t); if (t.ty == Tclass) pbv.visitClass(cast(TypeClass)t); else t.accept(pbv); return pbv.error ? d_uns64.max : sz; } /** * get an array of size_t values that indicate possible pointer words in memory * if interpreted as the type given as argument * the first array element is the size of the type for independent interpretation * of the array * following elements bits represent one word (4/8 bytes depending on the target * architecture). If set the corresponding memory might contain a pointer/reference. * * Returns: [T.sizeof, pointerbit0-31/63, pointerbit32/64-63/128, ...] */ extern (C++) Expression pointerBitmap(TraitsExp e) { if (!e.args || e.args.dim != 1) { error(e.loc, "a single type expected for trait pointerBitmap"); return new ErrorExp(); } Type t = getType((*e.args)[0]); if (!t) { error(e.loc, "`%s` is not a type", (*e.args)[0].toChars()); return new ErrorExp(); } Array!(d_uns64) data; d_uns64 sz = getTypePointerBitmap(e.loc, t, &data); if (sz == d_uns64.max) return new ErrorExp(); auto exps = new Expressions(); exps.push(new IntegerExp(e.loc, sz, Type.tsize_t)); foreach (d_uns64 i; 0 .. data.dim) exps.push(new IntegerExp(e.loc, data[cast(size_t)i], Type.tsize_t)); auto ale = new ArrayLiteralExp(e.loc, exps); ale.type = Type.tsize_t.sarrayOf(data.dim + 1); return ale; } extern (C++) Expression semanticTraits(TraitsExp e, Scope* sc) { static if (LOGSEMANTIC) { printf("TraitsExp::semantic() %s\n", e.toChars()); } if (e.ident != Id.compiles && e.ident != Id.isSame && e.ident != Id.identifier && e.ident != Id.getProtection) { if (!TemplateInstance.semanticTiargs(e.loc, sc, e.args, 1)) return new ErrorExp(); } size_t dim = e.args ? e.args.dim : 0; Expression dimError(int expected) { e.error("expected %d arguments for `%s` but had %d", expected, e.ident.toChars(), cast(int)dim); return new ErrorExp(); } Expression True() { return new IntegerExp(e.loc, true, Type.tbool); } Expression False() { return new IntegerExp(e.loc, false, Type.tbool); } Expression isX(T)(bool function(T) fp) { if (!dim) return False(); foreach (o; *e.args) { static if (is(T == Type)) auto y = getType(o); static if (is(T : Dsymbol)) { auto s = getDsymbol(o); if (!s) return False(); } static if (is(T == Dsymbol)) alias y = s; static if (is(T == Declaration)) auto y = s.isDeclaration(); static if (is(T == FuncDeclaration)) auto y = s.isFuncDeclaration(); if (!y || !fp(y)) return False(); } return True(); } alias isTypeX = isX!Type; alias isDsymX = isX!Dsymbol; alias isDeclX = isX!Declaration; alias isFuncX = isX!FuncDeclaration; if (e.ident == Id.isArithmetic) { return isTypeX(t => t.isintegral() || t.isfloating()); } if (e.ident == Id.isFloating) { return isTypeX(t => t.isfloating()); } if (e.ident == Id.isIntegral) { return isTypeX(t => t.isintegral()); } if (e.ident == Id.isScalar) { return isTypeX(t => t.isscalar()); } if (e.ident == Id.isUnsigned) { return isTypeX(t => t.isunsigned()); } if (e.ident == Id.isAssociativeArray) { return isTypeX(t => t.toBasetype().ty == Taarray); } if (e.ident == Id.isStaticArray) { return isTypeX(t => t.toBasetype().ty == Tsarray); } if (e.ident == Id.isAbstractClass) { return isTypeX(t => t.toBasetype().ty == Tclass && (cast(TypeClass)t.toBasetype()).sym.isAbstract()); } if (e.ident == Id.isFinalClass) { return isTypeX(t => t.toBasetype().ty == Tclass && ((cast(TypeClass)t.toBasetype()).sym.storage_class & STCfinal) != 0); } if (e.ident == Id.isTemplate) { return isDsymX((s) { if (!s.toAlias().isOverloadable()) return false; return overloadApply(s, sm => sm.isTemplateDeclaration() !is null) != 0; }); } if (e.ident == Id.isPOD) { if (dim != 1) return dimError(1); auto o = (*e.args)[0]; auto t = isType(o); if (!t) { e.error("type expected as second argument of __traits `%s` instead of `%s`", e.ident.toChars(), o.toChars()); return new ErrorExp(); } Type tb = t.baseElemOf(); if (auto sd = tb.ty == Tstruct ? (cast(TypeStruct)tb).sym : null) { return sd.isPOD() ? True() : False(); } return True(); } if (e.ident == Id.isNested) { if (dim != 1) return dimError(1); auto o = (*e.args)[0]; auto s = getDsymbol(o); if (!s) { } else if (auto ad = s.isAggregateDeclaration()) { return ad.isNested() ? True() : False(); } else if (auto fd = s.isFuncDeclaration()) { return fd.isNested() ? True() : False(); } e.error("aggregate or function expected instead of `%s`", o.toChars()); return new ErrorExp(); } if (e.ident == Id.isAbstractFunction) { return isFuncX(f => f.isAbstract()); } if (e.ident == Id.isVirtualFunction) { return isFuncX(f => f.isVirtual()); } if (e.ident == Id.isVirtualMethod) { return isFuncX(f => f.isVirtualMethod()); } if (e.ident == Id.isFinalFunction) { return isFuncX(f => f.isFinalFunc()); } if (e.ident == Id.isOverrideFunction) { return isFuncX(f => f.isOverride()); } if (e.ident == Id.isStaticFunction) { return isFuncX(f => !f.needThis() && !f.isNested()); } if (e.ident == Id.isRef) { return isDeclX(d => d.isRef()); } if (e.ident == Id.isOut) { return isDeclX(d => d.isOut()); } if (e.ident == Id.isLazy) { return isDeclX(d => (d.storage_class & STClazy) != 0); } if (e.ident == Id.identifier) { // Get identifier for symbol as a string literal /* Specify 0 for bit 0 of the flags argument to semanticTiargs() so that * a symbol should not be folded to a constant. * Bit 1 means don't convert Parameter to Type if Parameter has an identifier */ if (!TemplateInstance.semanticTiargs(e.loc, sc, e.args, 2)) return new ErrorExp(); if (dim != 1) return dimError(1); auto o = (*e.args)[0]; Identifier id; if (auto po = isParameter(o)) { id = po.ident; assert(id); } else { Dsymbol s = getDsymbol(o); if (!s || !s.ident) { e.error("argument `%s` has no identifier", o.toChars()); return new ErrorExp(); } id = s.ident; } auto se = new StringExp(e.loc, cast(char*)id.toChars()); return se.semantic(sc); } if (e.ident == Id.getProtection) { if (dim != 1) return dimError(1); Scope* sc2 = sc.push(); sc2.flags = sc.flags | SCOPEnoaccesscheck; bool ok = TemplateInstance.semanticTiargs(e.loc, sc2, e.args, 1); sc2.pop(); if (!ok) return new ErrorExp(); auto o = (*e.args)[0]; auto s = getDsymbol(o); if (!s) { if (!isError(o)) e.error("argument `%s` has no protection", o.toChars()); return new ErrorExp(); } if (s.semanticRun == PASSinit) s.semantic(null); auto protName = protectionToChars(s.prot().kind); // TODO: How about package(names) assert(protName); auto se = new StringExp(e.loc, cast(char*)protName); return se.semantic(sc); } if (e.ident == Id.parent) { if (dim != 1) return dimError(1); auto o = (*e.args)[0]; auto s = getDsymbol(o); if (s) { if (auto fd = s.isFuncDeclaration()) // https://issues.dlang.org/show_bug.cgi?id=8943 s = fd.toAliasFunc(); if (!s.isImport()) // https://issues.dlang.org/show_bug.cgi?id=8922 s = s.toParent(); } if (!s || s.isImport()) { e.error("argument `%s` has no parent", o.toChars()); return new ErrorExp(); } if (auto f = s.isFuncDeclaration()) { if (auto td = getFuncTemplateDecl(f)) { if (td.overroot) // if not start of overloaded list of TemplateDeclaration's td = td.overroot; // then get the start Expression ex = new TemplateExp(e.loc, td, f); ex = ex.semantic(sc); return ex; } if (auto fld = f.isFuncLiteralDeclaration()) { // Directly translate to VarExp instead of FuncExp Expression ex = new VarExp(e.loc, fld, true); return ex.semantic(sc); } } return resolve(e.loc, sc, s, false); } if (e.ident == Id.hasMember || e.ident == Id.getMember || e.ident == Id.getOverloads || e.ident == Id.getVirtualMethods || e.ident == Id.getVirtualFunctions) { if (dim != 2) return dimError(2); auto o = (*e.args)[0]; auto ex = isExpression((*e.args)[1]); if (!ex) { e.error("expression expected as second argument of __traits `%s`", e.ident.toChars()); return new ErrorExp(); } ex = ex.ctfeInterpret(); StringExp se = ex.toStringExp(); if (!se || se.len == 0) { e.error("string expected as second argument of __traits `%s` instead of `%s`", e.ident.toChars(), ex.toChars()); return new ErrorExp(); } se = se.toUTF8(sc); if (se.sz != 1) { e.error("string must be chars"); return new ErrorExp(); } auto id = Identifier.idPool(se.peekSlice()); /* Prefer dsymbol, because it might need some runtime contexts. */ Dsymbol sym = getDsymbol(o); if (sym) { ex = new DsymbolExp(e.loc, sym); ex = new DotIdExp(e.loc, ex, id); } else if (auto t = isType(o)) ex = typeDotIdExp(e.loc, t, id); else if (auto ex2 = isExpression(o)) ex = new DotIdExp(e.loc, ex2, id); else { e.error("invalid first argument"); return new ErrorExp(); } // ignore symbol visibility for these traits, should disable access checks as well Scope* scx = sc.push(); scx.flags |= SCOPEignoresymbolvisibility; scope (exit) scx.pop(); if (e.ident == Id.hasMember) { if (sym) { if (auto sm = sym.search(e.loc, id)) return True(); } /* Take any errors as meaning it wasn't found */ ex = ex.trySemantic(scx); return ex ? True() : False(); } else if (e.ident == Id.getMember) { if (ex.op == TOKdotid) // Prevent semantic() from replacing Symbol with its initializer (cast(DotIdExp)ex).wantsym = true; ex = ex.semantic(scx); return ex; } else if (e.ident == Id.getVirtualFunctions || e.ident == Id.getVirtualMethods || e.ident == Id.getOverloads) { uint errors = global.errors; Expression eorig = ex; ex = ex.semantic(scx); if (errors < global.errors) e.error("`%s` cannot be resolved", eorig.toChars()); //ex.print(); /* Create tuple of functions of ex */ auto exps = new Expressions(); FuncDeclaration f; if (ex.op == TOKvar) { VarExp ve = cast(VarExp)ex; f = ve.var.isFuncDeclaration(); ex = null; } else if (ex.op == TOKdotvar) { DotVarExp dve = cast(DotVarExp)ex; f = dve.var.isFuncDeclaration(); if (dve.e1.op == TOKdottype || dve.e1.op == TOKthis) ex = null; else ex = dve.e1; } overloadApply(f, (Dsymbol s) { auto fd = s.isFuncDeclaration(); if (!fd) return 0; if (e.ident == Id.getVirtualFunctions && !fd.isVirtual()) return 0; if (e.ident == Id.getVirtualMethods && !fd.isVirtualMethod()) return 0; auto fa = new FuncAliasDeclaration(fd.ident, fd, false); fa.protection = fd.protection; auto e = ex ? new DotVarExp(Loc(), ex, fa, false) : new DsymbolExp(Loc(), fa, false); exps.push(e); return 0; }); auto tup = new TupleExp(e.loc, exps); return tup.semantic(scx); } else assert(0); } if (e.ident == Id.classInstanceSize) { if (dim != 1) return dimError(1); auto o = (*e.args)[0]; auto s = getDsymbol(o); auto cd = s ? s.isClassDeclaration() : null; if (!cd) { e.error("first argument is not a class"); return new ErrorExp(); } if (cd.sizeok != SIZEOKdone) { cd.size(e.loc); } if (cd.sizeok != SIZEOKdone) { e.error("%s `%s` is forward referenced", cd.kind(), cd.toChars()); return new ErrorExp(); } return new IntegerExp(e.loc, cd.structsize, Type.tsize_t); } if (e.ident == Id.getAliasThis) { if (dim != 1) return dimError(1); auto o = (*e.args)[0]; auto s = getDsymbol(o); auto ad = s ? s.isAggregateDeclaration() : null; if (!ad) { e.error("argument is not an aggregate type"); return new ErrorExp(); } auto exps = new Expressions(); if (ad.aliasthis) exps.push(new StringExp(e.loc, cast(char*)ad.aliasthis.ident.toChars())); Expression ex = new TupleExp(e.loc, exps); ex = ex.semantic(sc); return ex; } if (e.ident == Id.getAttributes) { if (dim != 1) return dimError(1); auto o = (*e.args)[0]; auto s = getDsymbol(o); if (!s) { version (none) { Expression x = isExpression(o); Type t = isType(o); if (x) printf("e = %s %s\n", Token.toChars(x.op), x.toChars()); if (t) printf("t = %d %s\n", t.ty, t.toChars()); } e.error("first argument is not a symbol"); return new ErrorExp(); } if (auto imp = s.isImport()) { s = imp.mod; } //printf("getAttributes %s, attrs = %p, scope = %p\n", s.toChars(), s.userAttribDecl, s.scope); auto udad = s.userAttribDecl; auto exps = udad ? udad.getAttributes() : new Expressions(); auto tup = new TupleExp(e.loc, exps); return tup.semantic(sc); } if (e.ident == Id.getFunctionAttributes) { // extract all function attributes as a tuple (const/shared/inout/pure/nothrow/etc) except UDAs. if (dim != 1) return dimError(1); auto o = (*e.args)[0]; auto s = getDsymbol(o); auto t = isType(o); TypeFunction tf = null; if (s) { if (auto fd = s.isFuncDeclaration()) t = fd.type; else if (auto vd = s.isVarDeclaration()) t = vd.type; } if (t) { if (t.ty == Tfunction) tf = cast(TypeFunction)t; else if (t.ty == Tdelegate) tf = cast(TypeFunction)t.nextOf(); else if (t.ty == Tpointer && t.nextOf().ty == Tfunction) tf = cast(TypeFunction)t.nextOf(); } if (!tf) { e.error("first argument is not a function"); return new ErrorExp(); } auto mods = new Expressions(); PushAttributes pa; pa.mods = mods; tf.modifiersApply(&pa, &PushAttributes.fp); tf.attributesApply(&pa, &PushAttributes.fp, TRUSTformatSystem); auto tup = new TupleExp(e.loc, mods); return tup.semantic(sc); } if (e.ident == Id.getFunctionVariadicStyle) { /* Accept a symbol or a type. Returns one of the following: * "none" not a variadic function * "argptr" extern(D) void dstyle(...), use `__argptr` and `__arguments` * "stdarg" extern(C) void cstyle(int, ...), use core.stdc.stdarg * "typesafe" void typesafe(T[] ...) */ // get symbol linkage as a string if (dim != 1) return dimError(1); LINK link; int varargs; auto o = (*e.args)[0]; auto t = isType(o); TypeFunction tf = null; if (t) { if (t.ty == Tfunction) tf = cast(TypeFunction)t; else if (t.ty == Tdelegate) tf = cast(TypeFunction)t.nextOf(); else if (t.ty == Tpointer && t.nextOf().ty == Tfunction) tf = cast(TypeFunction)t.nextOf(); } if (tf) { link = tf.linkage; varargs = tf.varargs; } else { auto s = getDsymbol(o); FuncDeclaration fd; if (!s || (fd = s.isFuncDeclaration()) is null) { e.error("argument to `__traits(getFunctionVariadicStyle, %s)` is not a function", o.toChars()); return new ErrorExp(); } link = fd.linkage; fd.getParameters(&varargs); } string style; switch (varargs) { case 0: style = "none"; break; case 1: style = (link == LINK.d) ? "argptr" : "stdarg"; break; case 2: style = "typesafe"; break; default: assert(0); } auto se = new StringExp(e.loc, cast(char*)style); return se.semantic(sc); } if (e.ident == Id.getParameterStorageClasses) { /* Accept a function symbol or a type, followed by a parameter index. * Returns a tuple of strings of the parameter's storage classes. */ // get symbol linkage as a string if (dim != 2) return dimError(2); auto o1 = (*e.args)[1]; auto o = (*e.args)[0]; auto t = isType(o); TypeFunction tf = null; if (t) { if (t.ty == Tfunction) tf = cast(TypeFunction)t; else if (t.ty == Tdelegate) tf = cast(TypeFunction)t.nextOf(); else if (t.ty == Tpointer && t.nextOf().ty == Tfunction) tf = cast(TypeFunction)t.nextOf(); } Parameters* fparams; if (tf) { fparams = tf.parameters; } else { auto s = getDsymbol(o); FuncDeclaration fd; if (!s || (fd = s.isFuncDeclaration()) is null) { e.error("first argument to `__traits(getParameterStorageClasses, %s, %s)` is not a function", o.toChars(), o1.toChars()); return new ErrorExp(); } fparams = fd.getParameters(null); } StorageClass stc; // Set stc to storage class of the ith parameter auto ex = isExpression((*e.args)[1]); if (!ex) { e.error("expression expected as second argument of `__traits(getParameterStorageClasses, %s, %s)`", o.toChars(), o1.toChars()); return new ErrorExp(); } ex = ex.ctfeInterpret(); auto ii = ex.toUInteger(); if (ii >= Parameter.dim(fparams)) { e.error("parameter index must be in range 0..%u not %s", cast(uint)Parameter.dim(fparams), ex.toChars()); return new ErrorExp(); } uint n = cast(uint)ii; Parameter p = Parameter.getNth(fparams, n); stc = p.storageClass; // This mirrors hdrgen.visit(Parameter p) if (p.type && p.type.mod & MODshared) stc &= ~STCshared; auto exps = new Expressions; void push(string s) { exps.push(new StringExp(e.loc, cast(char*)s.ptr, cast(uint)s.length)); } if (stc & STCauto) push("auto"); if (stc & STCreturn) push("return"); if (stc & STCout) push("out"); else if (stc & STCref) push("ref"); else if (stc & STCin) push("in"); else if (stc & STClazy) push("lazy"); else if (stc & STCalias) push("alias"); if (stc & STCconst) push("const"); if (stc & STCimmutable) push("immutable"); if (stc & STCwild) push("inout"); if (stc & STCshared) push("shared"); if (stc & STCscope && !(stc & STCscopeinferred)) push("scope"); auto tup = new TupleExp(e.loc, exps); return tup.semantic(sc); } if (e.ident == Id.getLinkage) { // get symbol linkage as a string if (dim != 1) return dimError(1); LINK link; auto o = (*e.args)[0]; auto t = isType(o); TypeFunction tf = null; if (t) { if (t.ty == Tfunction) tf = cast(TypeFunction)t; else if (t.ty == Tdelegate) tf = cast(TypeFunction)t.nextOf(); else if (t.ty == Tpointer && t.nextOf().ty == Tfunction) tf = cast(TypeFunction)t.nextOf(); } if (tf) link = tf.linkage; else { auto s = getDsymbol(o); Declaration d; if (!s || (d = s.isDeclaration()) is null) { e.error("argument to `__traits(getLinkage, %s)` is not a declaration", o.toChars()); return new ErrorExp(); } link = d.linkage; } auto linkage = linkageToChars(link); auto se = new StringExp(e.loc, cast(char*)linkage); return se.semantic(sc); } if (e.ident == Id.allMembers || e.ident == Id.derivedMembers) { if (dim != 1) return dimError(1); auto o = (*e.args)[0]; auto s = getDsymbol(o); if (!s) { e.error("argument has no members"); return new ErrorExp(); } if (auto imp = s.isImport()) { // https://issues.dlang.org/show_bug.cgi?id=9692 s = imp.mod; } auto sds = s.isScopeDsymbol(); if (!sds || sds.isTemplateDeclaration()) { e.error("%s `%s` has no members", s.kind(), s.toChars()); return new ErrorExp(); } auto idents = new Identifiers(); int pushIdentsDg(size_t n, Dsymbol sm) { if (!sm) return 1; // skip local symbols, such as static foreach loop variables if (auto decl = sm.isDeclaration()) { if (decl.storage_class & STClocal) { return 0; } } //printf("\t[%i] %s %s\n", i, sm.kind(), sm.toChars()); if (sm.ident) { const idx = sm.ident.toChars(); if (idx[0] == '_' && idx[1] == '_' && sm.ident != Id.ctor && sm.ident != Id.dtor && sm.ident != Id.__xdtor && sm.ident != Id.postblit && sm.ident != Id.__xpostblit) { return 0; } if (sm.ident == Id.empty) { return 0; } if (sm.isTypeInfoDeclaration()) // https://issues.dlang.org/show_bug.cgi?id=15177 return 0; if (!sds.isModule() && sm.isImport()) // https://issues.dlang.org/show_bug.cgi?id=17057 return 0; //printf("\t%s\n", sm.ident.toChars()); /* Skip if already present in idents[] */ foreach (id; *idents) { if (id == sm.ident) return 0; // Avoid using strcmp in the first place due to the performance impact in an O(N^2) loop. debug assert(strcmp(id.toChars(), sm.ident.toChars()) != 0); } idents.push(sm.ident); } else if (auto ed = sm.isEnumDeclaration()) { ScopeDsymbol._foreach(null, ed.members, &pushIdentsDg); } return 0; } ScopeDsymbol._foreach(sc, sds.members, &pushIdentsDg); auto cd = sds.isClassDeclaration(); if (cd && e.ident == Id.allMembers) { if (cd.semanticRun < PASSsemanticdone) cd.semantic(null); // https://issues.dlang.org/show_bug.cgi?id=13668 // Try to resolve forward reference void pushBaseMembersDg(ClassDeclaration cd) { for (size_t i = 0; i < cd.baseclasses.dim; i++) { auto cb = (*cd.baseclasses)[i].sym; assert(cb); ScopeDsymbol._foreach(null, cb.members, &pushIdentsDg); if (cb.baseclasses.dim) pushBaseMembersDg(cb); } } pushBaseMembersDg(cd); } // Turn Identifiers into StringExps reusing the allocated array assert(Expressions.sizeof == Identifiers.sizeof); auto exps = cast(Expressions*)idents; foreach (i, id; *idents) { auto se = new StringExp(e.loc, cast(char*)id.toChars()); (*exps)[i] = se; } /* Making this a tuple is more flexible, as it can be statically unrolled. * To make an array literal, enclose __traits in [ ]: * [ __traits(allMembers, ...) ] */ Expression ex = new TupleExp(e.loc, exps); ex = ex.semantic(sc); return ex; } if (e.ident == Id.compiles) { /* Determine if all the objects - types, expressions, or symbols - * compile without error */ if (!dim) return False(); foreach (o; *e.args) { uint errors = global.startGagging(); Scope* sc2 = sc.push(); sc2.tinst = null; sc2.minst = null; sc2.flags = (sc.flags & ~(SCOPEctfe | SCOPEcondition)) | SCOPEcompile | SCOPEfullinst; bool err = false; auto t = isType(o); auto ex = t ? t.typeToExpression() : isExpression(o); if (!ex && t) { Dsymbol s; t.resolve(e.loc, sc2, &ex, &t, &s); if (t) { t.semantic(e.loc, sc2); if (t.ty == Terror) err = true; } else if (s && s.errors) err = true; } if (ex) { ex = ex.semantic(sc2); ex = resolvePropertiesOnly(sc2, ex); ex = ex.optimize(WANTvalue); if (sc2.func && sc2.func.type.ty == Tfunction) { auto tf = cast(TypeFunction)sc2.func.type; canThrow(ex, sc2.func, tf.isnothrow); } ex = checkGC(sc2, ex); if (ex.op == TOKerror) err = true; } // Carefully detach the scope from the parent and throw it away as // we only need it to evaluate the expression // https://issues.dlang.org/show_bug.cgi?id=15428 sc2.freeFieldinit(); sc2.enclosing = null; sc2.pop(); if (global.endGagging(errors) || err) { return False(); } } return True(); } if (e.ident == Id.isSame) { /* Determine if two symbols are the same */ if (dim != 2) return dimError(2); if (!TemplateInstance.semanticTiargs(e.loc, sc, e.args, 0)) return new ErrorExp(); auto o1 = (*e.args)[0]; auto o2 = (*e.args)[1]; auto s1 = getDsymbol(o1); auto s2 = getDsymbol(o2); //printf("isSame: %s, %s\n", o1.toChars(), o2.toChars()); version (none) { printf("o1: %p\n", o1); printf("o2: %p\n", o2); if (!s1) { if (auto ea = isExpression(o1)) printf("%s\n", ea.toChars()); if (auto ta = isType(o1)) printf("%s\n", ta.toChars()); return False(); } else printf("%s %s\n", s1.kind(), s1.toChars()); } if (!s1 && !s2) { auto ea1 = isExpression(o1); auto ea2 = isExpression(o2); if (ea1 && ea2) { if (ea1.equals(ea2)) return True(); } } if (!s1 || !s2) return False(); s1 = s1.toAlias(); s2 = s2.toAlias(); if (auto fa1 = s1.isFuncAliasDeclaration()) s1 = fa1.toAliasFunc(); if (auto fa2 = s2.isFuncAliasDeclaration()) s2 = fa2.toAliasFunc(); // https://issues.dlang.org/show_bug.cgi?id=11259 // compare import symbol to a package symbol static bool cmp(Dsymbol s1, Dsymbol s2) { auto imp = s1.isImport(); return imp && imp.pkg && imp.pkg == s2.isPackage(); } if (cmp(s1,s2) || cmp(s2,s1)) return True(); return (s1 == s2) ? True() : False(); } if (e.ident == Id.getUnitTests) { if (dim != 1) return dimError(1); auto o = (*e.args)[0]; auto s = getDsymbol(o); if (!s) { e.error("argument `%s` to __traits(getUnitTests) must be a module or aggregate", o.toChars()); return new ErrorExp(); } if (auto imp = s.isImport()) // https://issues.dlang.org/show_bug.cgi?id=10990 s = imp.mod; auto sds = s.isScopeDsymbol(); if (!sds) { e.error("argument `%s` to __traits(getUnitTests) must be a module or aggregate, not a %s", s.toChars(), s.kind()); return new ErrorExp(); } auto exps = new Expressions(); if (global.params.useUnitTests) { bool[void*] uniqueUnitTests; void collectUnitTests(Dsymbols* a) { if (!a) return; foreach (s; *a) { if (auto atd = s.isAttribDeclaration()) { collectUnitTests(atd.include(null, null)); continue; } if (auto ud = s.isUnitTestDeclaration()) { if (cast(void*)ud in uniqueUnitTests) continue; auto ad = new FuncAliasDeclaration(ud.ident, ud, false); ad.protection = ud.protection; auto e = new DsymbolExp(Loc(), ad, false); exps.push(e); uniqueUnitTests[cast(void*)ud] = true; } } } collectUnitTests(sds.members); } auto te = new TupleExp(e.loc, exps); return te.semantic(sc); } if (e.ident == Id.getVirtualIndex) { if (dim != 1) return dimError(1); auto o = (*e.args)[0]; auto s = getDsymbol(o); auto fd = s ? s.isFuncDeclaration() : null; if (!fd) { e.error("first argument to __traits(getVirtualIndex) must be a function"); return new ErrorExp(); } fd = fd.toAliasFunc(); // Necessary to support multiple overloads. return new IntegerExp(e.loc, fd.vtblIndex, Type.tptrdiff_t); } if (e.ident == Id.getPointerBitmap) { return pointerBitmap(e); } extern (D) void* trait_search_fp(const(char)* seed, ref int cost) { //printf("trait_search_fp('%s')\n", seed); size_t len = strlen(seed); if (!len) return null; cost = 0; StringValue* sv = traitsStringTable.lookup(seed, len); return sv ? sv.ptrvalue : null; } if (auto sub = cast(const(char)*)speller(e.ident.toChars(), &trait_search_fp, idchars)) e.error("unrecognized trait `%s`, did you mean `%s`?", e.ident.toChars(), sub); else e.error("unrecognized trait `%s`", e.ident.toChars()); return new ErrorExp(); }
D
module ecs.systems.handleadded; import ecs.entities.component.registry; import ecs.systems.system; version(unittest) import fluent.asserts; template HandleAddedSystem(ComponentModules...) { @safe abstract class HandleAddedSystem(TComponent) : Updating { alias Components = ComponentRegistry!(ComponentModules); alias Entity = Components.Entity; Entity[] added; this(Components.Registry registry) { registry.OnAdded!TComponent.connect(&onAdded); } private void onAdded(Entity entity) { added ~= entity; } final void update(float elapsedTime) { if(added.length > 0) { foreach(entity;added) { handleAdded(entity); } added.length = 0; } } protected abstract void handleAdded(Entity entity); } } version(unittest) { import ecs.entities.registry : EntityRegistry; import ecs.entities.component.component; alias Entities = EntityRegistry!("ecs.systems.handleadded"); @Component @safe struct TestComponent { } alias HandleAdded = HandleAddedSystem!("ecs.systems.handleadded"); } @safe @("listener systems should handle entities that have components added") unittest { alias Entity = Entities.Entity; auto entities = new Entities.Registry(); auto entity1 = entities.create; @safe class ListenerSystem : HandleAdded!TestComponent { Entity expectedEntity; bool handled = false; this(Entities.Registry entityRegistry, Entity entity) { super(entityRegistry.ComponentRegistry); expectedEntity = entity; } override void handleAdded(Entity entity) { assert(entity == expectedEntity); handled = true; } } auto listener = new ListenerSystem(entities, entity1); entity1.add(TestComponent()); assert(listener.handled == false); //Don't process add until update listener.update(0f); assert(listener.handled == true); listener.handled = false; listener.update(0f); //Don't process the same add again assert(listener.handled == false); }
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.mgt.RememberMeManager; import hunt.shiro.Exceptions; import hunt.shiro.authc.AuthenticationInfo; import hunt.shiro.authc.AuthenticationToken; import hunt.shiro.subject.PrincipalCollection; import hunt.shiro.subject.Subject; import hunt.shiro.subject.SubjectContext; /** * A RememberMeManager is responsible for remembering a Subject's identity across that Subject's sessions with * the application. * */ interface RememberMeManager { /** * Based on the specified subject context map being used to build a Subject instance, returns any previously * remembered principals for the subject for automatic identity association (aka 'Remember Me'). * <p/> * The context map is usually populated by a {@link Subject.Builder} implementation. * See the {@link SubjectFactory} class constants for Shiro's known map keys. * * @param subjectContext the contextual data, usually provided by a {@link Subject.Builder} implementation, that * is being used to construct a {@link Subject} instance. * @return he remembered principals or {@code null} if none could be acquired. */ PrincipalCollection getRememberedPrincipals(SubjectContext subjectContext); /** * Forgets any remembered identity corresponding to the subject context map being used to build a subject instance. * <p/> * The context map is usually populated by a {@link Subject.Builder} implementation. * See the {@link SubjectFactory} class constants for Shiro's known map keys. * * @param subjectContext the contextual data, usually provided by a {@link Subject.Builder} implementation, that * is being used to construct a {@link Subject} instance. */ void forgetIdentity(SubjectContext subjectContext); /** * Reacts to a successful authentication attempt, typically saving the principals to be retrieved ('remembered') * for future system access. * * @param subject the subject that executed a successful authentication attempt * @param token the authentication token submitted resulting in a successful authentication attempt * @param info the authenticationInfo returned as a result of the successful authentication attempt */ void onSuccessfulLogin(Subject subject, AuthenticationToken token, AuthenticationInfo info); /** * Reacts to a failed authentication attempt, typically by forgetting any previously remembered principals for the * Subject. * * @param subject the subject that executed the failed authentication attempt * @param token the authentication token submitted resulting in the failed authentication attempt * @param ae the authentication exception thrown as a result of the failed authentication attempt */ void onFailedLogin(Subject subject, AuthenticationToken token, AuthenticationException ae); /** * Reacts to a Subject logging out of the application, typically by forgetting any previously remembered * principals for the Subject. * * @param subject the subject logging out. */ void onLogout(Subject subject); }
D
/Users/apple-1/Documents/xCode/CoreDataSampleApp/Build/Intermediates/Pods.build/Release-iphonesimulator/TwicketSegmentedControl.build/Objects-normal-tsan/x86_64/Palette.o : /Users/apple-1/Documents/xCode/CoreDataSampleApp/Pods/TwicketSegmentedControl/TwicketSegmentedControl/Palette.swift /Users/apple-1/Documents/xCode/CoreDataSampleApp/Pods/TwicketSegmentedControl/TwicketSegmentedControl/TwicketSegmentedControl.swift /Users/apple-1/Documents/xCode/CoreDataSampleApp/Pods/TwicketSegmentedControl/TwicketSegmentedControl/UIViewShadowExtension.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 /Users/apple-1/Documents/xCode/CoreDataSampleApp/Pods/Target\ Support\ Files/TwicketSegmentedControl/TwicketSegmentedControl-umbrella.h /Users/apple-1/Documents/xCode/CoreDataSampleApp/Build/Intermediates/Pods.build/Release-iphonesimulator/TwicketSegmentedControl.build/unextended-module.modulemap /Users/apple-1/Documents/xCode/CoreDataSampleApp/Build/Intermediates/Pods.build/Release-iphonesimulator/TwicketSegmentedControl.build/Objects-normal-tsan/x86_64/TwicketSegmentedControl.o : /Users/apple-1/Documents/xCode/CoreDataSampleApp/Pods/TwicketSegmentedControl/TwicketSegmentedControl/Palette.swift /Users/apple-1/Documents/xCode/CoreDataSampleApp/Pods/TwicketSegmentedControl/TwicketSegmentedControl/TwicketSegmentedControl.swift /Users/apple-1/Documents/xCode/CoreDataSampleApp/Pods/TwicketSegmentedControl/TwicketSegmentedControl/UIViewShadowExtension.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 /Users/apple-1/Documents/xCode/CoreDataSampleApp/Pods/Target\ Support\ Files/TwicketSegmentedControl/TwicketSegmentedControl-umbrella.h /Users/apple-1/Documents/xCode/CoreDataSampleApp/Build/Intermediates/Pods.build/Release-iphonesimulator/TwicketSegmentedControl.build/unextended-module.modulemap /Users/apple-1/Documents/xCode/CoreDataSampleApp/Build/Intermediates/Pods.build/Release-iphonesimulator/TwicketSegmentedControl.build/Objects-normal-tsan/x86_64/UIViewShadowExtension.o : /Users/apple-1/Documents/xCode/CoreDataSampleApp/Pods/TwicketSegmentedControl/TwicketSegmentedControl/Palette.swift /Users/apple-1/Documents/xCode/CoreDataSampleApp/Pods/TwicketSegmentedControl/TwicketSegmentedControl/TwicketSegmentedControl.swift /Users/apple-1/Documents/xCode/CoreDataSampleApp/Pods/TwicketSegmentedControl/TwicketSegmentedControl/UIViewShadowExtension.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 /Users/apple-1/Documents/xCode/CoreDataSampleApp/Pods/Target\ Support\ Files/TwicketSegmentedControl/TwicketSegmentedControl-umbrella.h /Users/apple-1/Documents/xCode/CoreDataSampleApp/Build/Intermediates/Pods.build/Release-iphonesimulator/TwicketSegmentedControl.build/unextended-module.modulemap /Users/apple-1/Documents/xCode/CoreDataSampleApp/Build/Intermediates/Pods.build/Release-iphonesimulator/TwicketSegmentedControl.build/Objects-normal-tsan/x86_64/TwicketSegmentedControl.swiftmodule : /Users/apple-1/Documents/xCode/CoreDataSampleApp/Pods/TwicketSegmentedControl/TwicketSegmentedControl/Palette.swift /Users/apple-1/Documents/xCode/CoreDataSampleApp/Pods/TwicketSegmentedControl/TwicketSegmentedControl/TwicketSegmentedControl.swift /Users/apple-1/Documents/xCode/CoreDataSampleApp/Pods/TwicketSegmentedControl/TwicketSegmentedControl/UIViewShadowExtension.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 /Users/apple-1/Documents/xCode/CoreDataSampleApp/Pods/Target\ Support\ Files/TwicketSegmentedControl/TwicketSegmentedControl-umbrella.h /Users/apple-1/Documents/xCode/CoreDataSampleApp/Build/Intermediates/Pods.build/Release-iphonesimulator/TwicketSegmentedControl.build/unextended-module.modulemap /Users/apple-1/Documents/xCode/CoreDataSampleApp/Build/Intermediates/Pods.build/Release-iphonesimulator/TwicketSegmentedControl.build/Objects-normal-tsan/x86_64/TwicketSegmentedControl.swiftdoc : /Users/apple-1/Documents/xCode/CoreDataSampleApp/Pods/TwicketSegmentedControl/TwicketSegmentedControl/Palette.swift /Users/apple-1/Documents/xCode/CoreDataSampleApp/Pods/TwicketSegmentedControl/TwicketSegmentedControl/TwicketSegmentedControl.swift /Users/apple-1/Documents/xCode/CoreDataSampleApp/Pods/TwicketSegmentedControl/TwicketSegmentedControl/UIViewShadowExtension.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 /Users/apple-1/Documents/xCode/CoreDataSampleApp/Pods/Target\ Support\ Files/TwicketSegmentedControl/TwicketSegmentedControl-umbrella.h /Users/apple-1/Documents/xCode/CoreDataSampleApp/Build/Intermediates/Pods.build/Release-iphonesimulator/TwicketSegmentedControl.build/unextended-module.modulemap /Users/apple-1/Documents/xCode/CoreDataSampleApp/Build/Intermediates/Pods.build/Release-iphonesimulator/TwicketSegmentedControl.build/Objects-normal-tsan/x86_64/TwicketSegmentedControl-Swift.h : /Users/apple-1/Documents/xCode/CoreDataSampleApp/Pods/TwicketSegmentedControl/TwicketSegmentedControl/Palette.swift /Users/apple-1/Documents/xCode/CoreDataSampleApp/Pods/TwicketSegmentedControl/TwicketSegmentedControl/TwicketSegmentedControl.swift /Users/apple-1/Documents/xCode/CoreDataSampleApp/Pods/TwicketSegmentedControl/TwicketSegmentedControl/UIViewShadowExtension.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 /Users/apple-1/Documents/xCode/CoreDataSampleApp/Pods/Target\ Support\ Files/TwicketSegmentedControl/TwicketSegmentedControl-umbrella.h /Users/apple-1/Documents/xCode/CoreDataSampleApp/Build/Intermediates/Pods.build/Release-iphonesimulator/TwicketSegmentedControl.build/unextended-module.modulemap
D
module jmisc.subtitle; /+ struct SubTitle { string _date; string _title; string _subTitle; string _sbody; this(in string date, in string title, in string sbody) { _date = date; _title = title; _subTitle = _subTitle; _sbody = sbody; } auto toString() { return _date ~ " \#/\n\n" ~ _title ~ "\n\n" ~ _sbody ~ "\n\n\n"; } } +/
D
Debug/main(1).cpp.o: main(1).cpp
D
/******************************************************************************* Full-duplex client connection with authentication. This class is not intended to be derived from (hence declared final). This is a conscious design decision to avoid big class hierarchies using inheritance for composition. If specialisation of this class is required, at some point, it should be implemented via opaque blobs or Object references (allowing a specific implementation to associate its own, arbitrary data with instances). Copyright: Copyright (c) 2016-2017 dunnhumby Germany GmbH. All rights reserved License: Boost Software License Version 1.0. See LICENSE.txt for details. *******************************************************************************/ module swarm.neo.client.Connection; import swarm.neo.connection.ConnectionBase; import ocean.core.Verify; /// ditto public final class Connection: ConnectionBase { import swarm.neo.client.IRequestSet; import swarm.neo.client.ClientSocket; import swarm.neo.protocol.connect.ClientConnect; import swarm.neo.authentication.ClientCredentials; import swarm.neo.AddrPort; import swarm.neo.util.TreeMap; import swarm.neo.client.RetryTimer; import ocean.core.Enforce; import ocean.io.select.EpollSelectDispatcher; import ocean.meta.types.Qualifiers; debug ( SwarmConn ) import ocean.io.Stdout; /*************************************************************************** Object pool index. ***************************************************************************/ public size_t object_pool_index; /*************************************************************************** Tree map element, needed for the connection set. ***************************************************************************/ struct TreeMapElement { import ocean.util.container.ebtree.c.eb64tree; eb64_node ebnode; Connection connection; alias connection user_element_with_treemap_backlink; } public TreeMapElement* treemap_backlink = null; /*************************************************************************** The connection status. ***************************************************************************/ public enum Status: uint { /*********************************************************************** The socket is not connected. Until `start()` is called requests are not processed but may be registered for sending or error notification. ***********************************************************************/ Disconnected, /*********************************************************************** Establishing the socket connection including authentication is in progress, i.e. `start()` has been called. Until it has finished requests are not processed but may be registered for sending or error notification. ***********************************************************************/ Connecting, /*********************************************************************** The connection is up, processing requests. ***********************************************************************/ Connected, /*********************************************************************** A connection shutdown was requested. The socket is not connected. Passing the shutdown notification to the registered requests is in progress. Until the shutdown process has completed it is not possible to start the connection or register requests. ***********************************************************************/ Shutdown } protected Status status_; /*************************************************************************** The node address. ***************************************************************************/ private AddrPort node_address; /*************************************************************************** The node connection socket. ***************************************************************************/ private ClientSocket client_socket; /*************************************************************************** The request set, shared across all connections. ***************************************************************************/ private IRequestSet request_set; /*************************************************************************** Connects the client to the node on connection startup. ***************************************************************************/ private ClientConnect conn_init; /*************************************************************************** True if `sendFiberMethod()` should reconnect after a shutdown or false if it should terminate. ***************************************************************************/ private bool restart_after_shutdown; /*************************************************************************** Callback for notification when the node connection has been establised (`e is null` in this case) or an error happened while establishing the connection (`e` then reflects the error). ***************************************************************************/ public alias void delegate ( Connection connection, Exception e = null ) StartupNotifier; private StartupNotifier startup_notifier = null; /*************************************************************************** The set of requests to notify the next time when the connection to the node has become available, i.e. `this.status` changed to `Connected`. ***************************************************************************/ private TreeMap!() connected_subscribers; /*************************************************************************** Used by `shutdownAndHalt()` to signal a connection shutdown. ***************************************************************************/ static class ConnectionClosedException : Exception { this ( string file = __FILE__, typeof(__LINE__) line = __LINE__ ) { super("Connection closed", file, line); } } /************************************************************************** (Copied from FiberSocketConnection) Delegate which is called (in EpollTiming debug mode) after a socket connection is established. FIXME: the logging of connection times was intended to be done directly in this module, not via a delegate, but dmd bugs with varargs made this impossible. The delegate solution is ok though. **************************************************************************/ debug ( EpollTiming ) { import ocean.time.StopWatch; private alias void delegate ( ulong microsec ) ConnectionTimeDg; public ConnectionTimeDg connection_time_dg; } /*************************************************************************** Constructor. Params: credentials = authentication credentials request_set = the request set epoll = epoll select dispatcher ***************************************************************************/ public this ( const(Credentials) credentials, IRequestSet request_set, EpollSelectDispatcher epoll ) { this.client_socket = new ClientSocket; super(this.client_socket.socket, epoll); this.conn_init = new ClientConnect(credentials); this.request_set = request_set; } /*************************************************************************** Starts the engine: - Connects to node, does the proticol handshake and authentication, - registers the socket for reading, - starts the send and receive fiber, - sends the messages in the queue. Params: node_address = the address of the node to connect to Throws: - `SocketError` if `socket()` failed. `connect()` is not called in this case. - `SocketError` if `connect()` failed with an error other than `EINPROGRESS` or `EINTR`, which are expected and handled. Other possible errors include - `EISCONN` -- the socket is already connected, - `EAGAIN` -- there are "no more free local ports or insufficient entries in the routing cache" (Linux specific). ***************************************************************************/ public Status start ( AddrPort node_address, scope StartupNotifier startup_notifier ) { debug ( SwarmConn ) { Stdout.formatln("{}:{}: Connection.start()", node_address.address_bytes, node_address.port); scope ( exit ) Stdout.formatln("{}:{}: Connection.start() exit", node_address.address_bytes, node_address.port); } this.node_address = node_address; this.startup_notifier = startup_notifier; this.restart_after_shutdown = true; super.start(); return this.status_; } /*************************************************************************** Returns: the current connection status. ***************************************************************************/ public Status status ( ) { return this.status_; } /*************************************************************************** Shuts the engine down: - Closes the socket connection. - Notifies all request handlers that are waiting to send and/or receive a message (except for `request_id`). Does not reconnect to the node. ***************************************************************************/ public void shutdownAndHalt ( string file = __FILE__, typeof(__LINE__) line = __LINE__ ) { this.restart_after_shutdown = false; if (this.send_loop.running) { switch (this.status_) { case this.status_.Connecting: this.socket.close(); this.status_ = this.status_.Disconnected; break; case this.status_.Connected: throw new Exception( "shutdownAndHalt() called from the send fiber while " ~ "connected", file, line); default: } } else { scope e = new ConnectionClosedException(file, line); this.shutdown(e); } } /*************************************************************************** Causes the connection to be dropped. It will be re-established as normal. This method is only intended for use in tests. ***************************************************************************/ public void reconnect ( ) { /* We call `shutdown`, rather than `close`, here because `close` causes the socket to cleanly exit and automatically unregisters it from epoll. The connection fibers will be suspended waiting for an event on the socket, which can now never happen, as it's no longer registered in epoll. `shutdown`, on the other hand, mimics a node-side disconnection by causing the socket to fire with a hangup event, which is then handled with the normal error handling logic. */ this.socket.shutdown(); this.status_ = this.status_.Disconnected; } /*************************************************************************** Updates the status on a connection shutdown. This method should not throw. Params: e = the exception reflecting the error In: This method must only be called in the send fiber and outside the sending loop (required by the super call in this method). ***************************************************************************/ override protected void shutdownImpl ( Exception e ) // nothrow { this.status_ = this.status_.Shutdown; super.shutdownImpl(e); this.status_ = this.status_.Disconnected; } /*************************************************************************** If this connection is currently not available, i.e. `this.status != this.status.Connected`, registers a request to be notified once when it has become available. The registration is removed automatically when the notification is done. Params: request_id = the request id Returns: - 0 if the connection is currently available so a registration for this request id was not added, - 1 if a registration for this request id was added, - 2 if a registration for this request id already existed. ***************************************************************************/ public uint registerForConnectedNotification ( RequestId request_id ) { if (this.status_ != this.status_.Connected) { bool added; this.connected_subscribers.put(request_id, added); return !added + 1; } else { return 0; } } /*************************************************************************** Unregisters a request from being notified when this connection becomes available. Params: request_id = the request id Returns: true if the request has been unregistered or false if it was not registered in the first place. ***************************************************************************/ public bool unregisterForConnectedNotification ( RequestId request_id ) { if (auto ebnode = request_id in this.connected_subscribers) { this.connected_subscribers.remove(*ebnode); return true; } else { return false; } } /*************************************************************************** Called from the send fiber before the send/receive loops are started. Connects to the node, including protocol version handshake and authentication, then starts the receiving and sending loop. If `shutdown()` is called -- in this or the super class or by a request, when an error happens -- the connection is automatically restarted and stays registered in the connection set. Calling `shutdownAndHalt()` will ultimately shut it down. Returns: if the connection is established: true, to start the send/receive loops if the connections attempt is aborted: false, to exit ***************************************************************************/ override protected bool connect ( ) { debug ( SwarmConn ) { Stdout.formatln("{}:{}: Connection.connect()", node_address.address_bytes, node_address.port); scope ( exit ) Stdout.formatln("{}:{}: Connection.connect() exit", node_address.address_bytes, node_address.port); } if (!this.restart_after_shutdown) return false; try { this.status_ = this.status_.Connecting; retry(this.tryConnect(), this.send_loop, this.epoll); } catch (Exception e) { // This may happen if the timer failed due to OS resource // exhaustion. log.error("connect: retry failed - {} @{}:{}", e.message(), e.file, e.line); this.status_ = this.status_.Disconnected; } final switch (this.status_) { case this.status_.Connecting: this.status_ = this.status_.Connected; if (this.startup_notifier !is null) this.startup_notifier(this); this.notifyConnectedSubscribers(); return true; case this.status_.Disconnected: /* * Shutdown was requested during startup, stopping further * connection attempts. */ return false; case this.status_.Connected, this.status_.Shutdown: verify(false); } assert(false); } /*************************************************************************** Calls `connect()`, catching exceptions except `ConnectionClosedException`, and calls the startup notifier. Returns: true if `connect()` returned or false if it threw. Throws: `ConnectionClosedException` if `connect()` threw it. In: This method must be called in the sending fiber. ***************************************************************************/ private bool tryConnect ( ) { verify(this.send_loop.running); debug ( SwarmConn ) { Stdout.formatln("{}:{}: Connection.tryConnect()", node_address.address_bytes, node_address.port); scope ( exit ) Stdout.formatln("{}:{}: Connection.tryConnect() exit", node_address.address_bytes, node_address.port); } try { this.conn_init.connect( this.client_socket, this.node_address, this.send_loop, this.epoll, this.receiver, this.sender, this.protocol_error ); enableKeepAlive(this.client_socket.socket); debug ( SwarmConn ) Stdout.formatln("{}:{}: Connection.tryConnect() succeeded", node_address.address_bytes, node_address.port); return true; } catch (Exception e) { if (this.startup_notifier !is null) this.startup_notifier(this, e); debug ( SwarmConn ) Stdout.formatln("{}:{}: Connection.tryConnect() failed with " ~ "exception '{}' @{}:{}", node_address.address_bytes, node_address.port, e.message(), e.file, e.line); return false; } assert(false); } /*************************************************************************** While `this.status` is `Connected`, calls each notifier registered via `registerConnectedNotification` and removes it from the list. Stops calling the notifiers if the status is not `Connected`. ***************************************************************************/ private void notifyConnectedSubscribers ( ) { verify(this.status_ == this.status_.Connected); foreach (ref ebnode; this.connected_subscribers) { auto id = ebnode.key; this.connected_subscribers.remove(ebnode); if (auto request_handler = this.getRequestOnConn(id)) request_handler.reconnected(); if (this.status_ != this.status_.Connected) break; } } /*************************************************************************** Obtains the request-on-conn for the request according to id for this node. Params: id = request id Returns: the request handler for the request according to id for this node or null if not found. ***************************************************************************/ private IRequestOnConn getRequestOnConn ( RequestId id ) { if (auto request = this.request_set.getRequest(id)) { return request.getRequestOnConnForNode(this.node_address, this.protocol_error_); } else { return null; } } /*************************************************************************** Called with a request id that was just popped from the message queue. Passes the payload of the message this request wants to `send`. If the request not exist any more, for whatever reason, then `send` is not called. Params: id = the request id send = the output delegate to call once with the message payload ***************************************************************************/ override protected void getPayloadForSending ( RequestId id, scope void delegate ( in void[][] payload ) send ) { if (auto request_handler = this.getRequestOnConn(id)) { request_handler.getPayloadForSending(send); } } /*************************************************************************** Called when a request message has arrived. Passes `payload` to the request, if there is one waiting for a message to arrive. Params: id = the request id send = the request message payload ***************************************************************************/ override protected void setReceivedPayload ( RequestId id, const(void)[] payload ) { if (auto request_handler = this.getRequestOnConn(id)) { request_handler.setReceivedPayload(payload); } } /*************************************************************************** Called for all request ids in the message queue and the registry of those waiting for a message to arrive when `shutdown` was called so that these requests are aborted. `shutdown` is called by the super class if an I/O or protocol error happens, or by `this.shutdown`. If a request id is in both the message queue and the registry of receivers then this method is called ony once with that request id. This method should not throw. Params: id = the request id e = the exception reflecting the reason for the shutdown ***************************************************************************/ override protected void notifyShutdown ( RequestId id, Exception e ) { if (auto request_handler = this.getRequestOnConn(id)) { request_handler.error(e); } } }
D
module editor.calc; import std.algorithm; import std.format; import std.range; import basics.topology; import basics.user; // hotkeys for movement import editor.editor; import editor.hover; import editor.io; import editor.select; import file.language; // select grid import gui; import hardware.keyboard; import hardware.mousecur; package: void implEditorWork(Editor editor) { editor.maybeCloseTerrainBrowser(); editor.maybeCloseOkCancelWindow(); editor.maybeCloseSaveBrowser(); editor.selectGrid(); if (! editor.mainUIisActive) { // This is probably a bad hack. // Otherwise, the hover description remains on the info bar even // with windows open. When the editor doesn't have focus: bar empty. editor._panel.forceClearInfo(); } // Massive hack! Otherwise, the info bar is blit over the save browser. // I should find out why. editor._panel.shown = editor._saveBrowser is null; } void implEditorCalc(Editor editor) { with (editor) { assert (_panel); _map.calcScrolling(); if (aboutToTrash) mouseCursor.yf = 2; // trashcan else if (_map.scrollingNow) mouseCursor.xf = 3; // scrolling arrows if (! _dragger.framing && ! _dragger.moving) _panel.calc(); else _panel.calcButDisableMouse(); editor.handleNonstandardPanelButtons(); editor.hoverTiles(); editor.selectTiles(); editor.moveTiles(); editor._panel.info = editor.describeHover(); }} package: void handleNonstandardPanelButtons(Editor editor) { with (editor) { with (_panel.buttonFraming) on = hotkey.keyHeld || _dragger.framing ? true : hotkey.keyReleased ? false : on; with (_panel.buttonSelectAdd) on = hotkey.keyHeld ? true : hotkey.keyReleased ? false : on; with (_panel.buttonZoom) { if (executeLeft) _map.zoomIn(); if (executeRight) _map.zoomOut(); } }} void selectGrid(Editor editor) { int g = editorGridSelected; scope (exit) editorGridSelected = g; g = (g == 1 || g == 2 || g == 16 || g == editorGridCustom.value) ? g : 1; assert (editor._panel.button(Lang.editorButtonGrid2)); if (keyEditorGrid.keyTapped) g = () { switch (g) { case 16: return 1; case 1: return 2; case 2: return editorGridCustom; default: return 16; }}(); else { void check(Button b, in int targetGrid) { if (b.execute) g = (b.on ? 1 : targetGrid); b.on = (g == targetGrid); } with (editor._panel) { check(button(Lang.editorButtonGrid2), 2); check(button(Lang.editorButtonGridCustom), editorGridCustom); check(button(Lang.editorButtonGrid16), 16); } } } void moveTiles(Editor editor) { with (editor) { immutable grid = editorGridSelected.value; immutable movedByKeyboard = Point(-grid, 0) * keyEditorLeft .keyTappedAllowingRepeats + Point(+grid, 0) * keyEditorRight.keyTappedAllowingRepeats + Point(0, -grid) * keyEditorUp .keyTappedAllowingRepeats + Point(0, +grid) * keyEditorDown .keyTappedAllowingRepeats; immutable total = movedByKeyboard + _dragger.snapperShouldMoveBy(_map, grid); if (total != Point(0, 0)) _selection.each!(tile => tile.moveBy(total)); }} string describeHover(Editor editor) { with (editor) { const(Hover[]) list = _hover.empty ? _selection : _hover; if (list.empty) return ""; string name = list.length == 1 ? list[0].tileDescription : "%d %s".format(list.length, list is _hover ? Lang.editorBarHover.transl : Lang.editorBarSelection.transl); int x = list.map!(hov => hov.occ.loc.x).reduce!min; int y = list.map!(hov => hov.occ.loc.y).reduce!min; return "%s %s (%d, %d) (\u2080\u2093%X, \u2080\u2093%X)" .format(name, Lang.editorBarAt.transl, x, y, x, y); }} // ############################################################################ void maybeCloseTerrainBrowser(Editor editor) { with (editor) { if (! _terrainBrowser || ! _terrainBrowser.done) return; if (auto pos = _level.addTileWithCenterAt(_terrainBrowser.chosenTile, _map.mouseOnLand) ) { // Must round the pos's location, not the mouse coordinates for center. // Therefore, round in a separate call from the creation above. assert (pos.tile); assert (pos.tile.cb); auto cbLen = pos.tile.cb.len; pos.loc = roundWithin(_level.topology, Rect(pos.loc, cbLen.x, cbLen.y), editorGridSelected); _selection = [ Hover.newViaEvilDynamicCast(_level, pos) ]; _terrainBrowser.saveDirOfChosenTileToUserCfg(); } rmFocus(_terrainBrowser); _terrainBrowser = null; _panel.allButtonsOff(); }} void maybeCloseOkCancelWindow(Editor editor) { with (editor) { if (! _okCancelWindow || ! _okCancelWindow.done) return; assert (_okCancelWindow.done); _okCancelWindow.writeChangesTo(_level); rmFocus(_okCancelWindow); _okCancelWindow = null; _panel.allButtonsOff(); }} void maybeCloseSaveBrowser(Editor editor) { with (editor) { if (! _saveBrowser || ! _saveBrowser.done) return; if (_saveBrowser.chosenFile) { _loadedFrom = _saveBrowser.chosenFile; _panel.currentFilename = _loadedFrom; editor.saveToExistingFile(); } rmFocus(_saveBrowser); _saveBrowser = null; _panel.allButtonsOff(); }} pure Point roundWithin(in Topology topol, in Rect tile, in int grid) in { assert (topol); } body { Point ret = tile.topLeft.roundTo(grid); // This is pedestrian code and I'd rather use a static smaller topology to // clamp the point in one line: if (topol.torusX) { while (ret.x + tile.xl/2 < 0) ret.x += grid; while (ret.x - tile.xl/2 >= topol.xl) ret.x -= grid; } if (topol.torusY) { while (ret.y + tile.yl/2 < 0) ret.y += grid; while (ret.y - tile.yl/2 >= topol.yl) ret.y -= grid; } return ret; }
D
/Users/seandorian/Code/Dictation\ manager/Build/Intermediates/CodeCoverage/Intermediates/Dictation\ manager.build/Debug/Dictation\ manager.build/Objects-normal/x86_64/DictionaryExtensions.o : /Users/seandorian/Code/Dictation\ manager/Dictation\ manager/AppDelegate.swift /Users/seandorian/Code/Dictation\ manager/Dictation\ manager/ViewController.swift /Users/seandorian/Code/Dictation\ manager/DictationCommands.swift /Users/seandorian/Code/Dictation\ manager/Dictation\ manager/DictionaryExtensions.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/XPC.apinotesc /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/CoreData.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/Metal.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/AppKit.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/XPC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/QuartzCore.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/AppKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/seandorian/Code/Dictation\ manager/Build/Intermediates/CodeCoverage/Intermediates/Dictation\ manager.build/Debug/Dictation\ manager.build/Objects-normal/x86_64/DictionaryExtensions~partial.swiftmodule : /Users/seandorian/Code/Dictation\ manager/Dictation\ manager/AppDelegate.swift /Users/seandorian/Code/Dictation\ manager/Dictation\ manager/ViewController.swift /Users/seandorian/Code/Dictation\ manager/DictationCommands.swift /Users/seandorian/Code/Dictation\ manager/Dictation\ manager/DictionaryExtensions.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/XPC.apinotesc /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/CoreData.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/Metal.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/AppKit.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/XPC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/QuartzCore.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/AppKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/seandorian/Code/Dictation\ manager/Build/Intermediates/CodeCoverage/Intermediates/Dictation\ manager.build/Debug/Dictation\ manager.build/Objects-normal/x86_64/DictionaryExtensions~partial.swiftdoc : /Users/seandorian/Code/Dictation\ manager/Dictation\ manager/AppDelegate.swift /Users/seandorian/Code/Dictation\ manager/Dictation\ manager/ViewController.swift /Users/seandorian/Code/Dictation\ manager/DictationCommands.swift /Users/seandorian/Code/Dictation\ manager/Dictation\ manager/DictionaryExtensions.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/XPC.apinotesc /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/CoreData.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/Metal.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/AppKit.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/XPC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/QuartzCore.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/AppKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule
D
/Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/.build/x86_64-apple-macosx10.10/debug/JDCloudSDKOss.build/API/DeleteBucketResponse.swift.o : /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/ListBucketsResponse.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/HeadBucketResponse.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/DeleteBucketResponse.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/PutBucketResponse.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/Model/User.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/Client/ListBucketsExecutor.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/Client/HeadBucketExecutor.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/Client/DeleteBucketExecutor.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/Client/PutBucketExecutor.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/Model/Bucket.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/ListBucketsResult.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/HeadBucketResult.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/DeleteBucketResult.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/PutBucketResult.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/Client/OssClient.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/ListBucketsRequest.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/HeadBucketRequest.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/DeleteBucketRequest.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/PutBucketRequest.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/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/.build/x86_64-apple-macosx10.10/debug/JDCloudSDKCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/.build/x86_64-apple-macosx10.10/debug/JDCloudSDKOss.build/DeleteBucketResponse~partial.swiftmodule : /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/ListBucketsResponse.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/HeadBucketResponse.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/DeleteBucketResponse.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/PutBucketResponse.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/Model/User.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/Client/ListBucketsExecutor.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/Client/HeadBucketExecutor.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/Client/DeleteBucketExecutor.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/Client/PutBucketExecutor.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/Model/Bucket.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/ListBucketsResult.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/HeadBucketResult.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/DeleteBucketResult.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/PutBucketResult.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/Client/OssClient.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/ListBucketsRequest.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/HeadBucketRequest.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/DeleteBucketRequest.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/PutBucketRequest.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/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/.build/x86_64-apple-macosx10.10/debug/JDCloudSDKCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/.build/x86_64-apple-macosx10.10/debug/JDCloudSDKOss.build/DeleteBucketResponse~partial.swiftdoc : /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/ListBucketsResponse.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/HeadBucketResponse.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/DeleteBucketResponse.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/PutBucketResponse.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/Model/User.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/Client/ListBucketsExecutor.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/Client/HeadBucketExecutor.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/Client/DeleteBucketExecutor.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/Client/PutBucketExecutor.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/Model/Bucket.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/ListBucketsResult.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/HeadBucketResult.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/DeleteBucketResult.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/PutBucketResult.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/Client/OssClient.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/ListBucketsRequest.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/HeadBucketRequest.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/DeleteBucketRequest.swift /Users/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/Sources/JDCloudSDKOss/API/PutBucketRequest.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/lishijun1/Documents/swiftworkspace/JDCloudSDKSwift/jdcloud-sdk-swift-github/JDCloudSDKSwift/.build/x86_64-apple-macosx10.10/debug/JDCloudSDKCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
<?xml version="1.0" encoding="ASCII" standalone="no"?> <di:SashWindowsMngr xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmi:version="2.0"> <pageList> <availablePage> <emfPageIdentifier href="VAR_7_agm-5472192722.notation#_copSALmGEeKQQp7P9cQvNQ"/> </availablePage> </pageList> <sashModel currentSelection="//@sashModel/@windows.0/@children.0"> <windows> <children xsi:type="di:TabFolder"> <children> <emfPageIdentifier href="VAR_7_agm-5472192722.notation#_copSALmGEeKQQp7P9cQvNQ"/> </children> </children> </windows> </sashModel> </di:SashWindowsMngr>
D
module entity.database; public import std.database.front; public import std.typecons; public import std.datetime; abstract class DataBase { void connect(string url); void connect(); Statement statement(string sql); Statement query(string sql); static DataBase create(string url) { import std.database.uri; auto ul = toURI(url); switch(ul.protocol) { version(USE_MYSQL) { case "mysql" : { import entity.driver.mysql; return new MyDataBase(url); } } version(USE_PGSQL) { case "postgres" : { import entity.driver.pgsql; return new PGDataBase(url); } } version(USE_SQLITE) { case "path" : { import entity.driver.sqlite; return new LiteDataBase(url); } } default: throw new Exception("protocol is not support!"); } } } abstract class Statement { @property string sql(); Statement query(); bool hasRows(); RowSet rows(); ColumnSet columns(); } abstract class RowSet { int width(); ColumnSet columns(); bool empty(); Row front(); void popFront(); } abstract class Row { int width(); CellValue opDispatch(string s)(); CellValue opIndex(size_t idx); } abstract class ColumnSet { int width(); bool empty(); Column front(); void popFront(); } abstract class Column { size_t idx(); string name(); } abstract class CellValue { size_t rowIdx(); size_t columnIdx(); string name(); bool isNull(); ubyte[] rawData(); int dbType(); ValueType type(); Variant value(); int asInt(); final Nullable!int getInt() { try{ return Nullable!int(asInt()); }catch{ return Nullable!int(); } } char asChar(); final Nullable!char getChar() { try{ return Nullable!char(asChar()); }catch{ return Nullable!char(); } } short asShort(); short getShort() { try{ return Nullable!short(asShort()); }catch{ return Nullable!short(); } } long asLong(); final Nullable!long getLong() { try{ return Nullable!long(asLong()); }catch{ return Nullable!long(); } } float asFloat(); final Nullable!float getFloat() { try{ return Nullable!float(asFloat()); }catch{ return Nullable!float(); } } double asDouble(); final Nullable!double getDouble() { try{ return Nullable!double(asDouble()); }catch{ return Nullable!double(); } } string asString(); final Nullable!string getString() { try{ return Nullable!string(asString()); }catch{ return Nullable!string(); } } Date asDate(); final Nullable!Date getDate() { try{ return Nullable!Date(asDate()); }catch{ return Nullable!Date(); } } DateTime asDateTime(); final Nullable!DateTime getDateTime() { try{ return Nullable!DateTime(asDateTime()); }catch{ return Nullable!DateTime(); } } Time asTime(); final Nullable!Time getTime() { try{ return Nullable!Time(asTime()); }catch{ return Nullable!Time(); } } ubyte[] asRaw(); final Nullable!(ubyte[]) getRaw() { try{ return Nullable!(ubyte[])(asRaw()); }catch{ return Nullable!(ubyte[])(); } } } version(unittest) { @table("tuple") struct AAA { @primarykey() int a; @primarykey() int b; @column() int c; } } unittest { DataBase dt = DataBase.create("mysql://127.0.0.1/test"); dt.connect(); dt.query("drop table if exists tuple"); dt.query("create table tuple (a int, b int, c int)"); string sql = "insert into tuple values("; writeln("\ninsert\n\n\n"); Query!AAA quer = new Query!AAA(dt); foreach(i; 0..100) { AAA a = AAA(); a.a = i; a.b = i + 1; a.c = i + 2; quer.Insert(a); // import std.conv; // string ts = sql ~ to!string(i) ~ "," ~ to!string(i+1) ~ "," ~ to!string(i+2) ~ ")"; // dt.query(ts); } writeln("select"); auto iter = quer.Select(); writeln("tuple data: \n a \t b \t c"); AAA a; if(!iter.empty) { a = iter.front(); iter.popFront(); writeln(a.a,"\t",a.b,"\t",a.c); } while(!iter.empty) { auto ta = iter.front(); iter.popFront(); writeln(ta.a,"\t",ta.b,"\t",ta.c); } a.c = 1002; dt.query("SET SQL_SAFE_UPDATES = 0"); quer.Update(a); a.a = 20; a.b = 21; quer.Delete(a); }
D
module scripts.S09DocumentOfTemplate; private import tango.stdc.string; private import Predicates; private import Category; private import trioplax.TripleStorage; private import RightTypeDef; private import Log; private import trioplax.triple; private import scripts.S11ACLRightsHierarhical; public bool calculate(char* user, char* elementId, uint rightType, TripleStorage ts, char*[] array_of_targets_of_hierarhical_departments, char[] pp) { bool result = false; if(elementId is null || *elementId == '*') { log.trace("Неподдерживаемый идентификатор : {}.", elementId); return false; } Triple* template_triple; triple_list_element* facts = ts.getTriples(elementId, DOCUMENT_TEMPLATE_ID.ptr, null); if(facts !is null) { template_triple = facts.triple; if(template_triple !is null) { char* template_id = cast(char*) template_triple.o; //log.trace("S09 #1 template_id = {}", template_id); result = scripts.S11ACLRightsHierarhical.checkRight(user, template_id, rightType, ts, array_of_targets_of_hierarhical_departments, pp, DOCUMENTS_OF_TEMPLATE.ptr); //authorizedElementCategory); } ts.list_no_longer_required (facts); } // else // log.trace("S09 template_id not found"); return result; }
D
module hunt.markdown.parser.block.AbstractBlockParser; import hunt.markdown.node.Block; import hunt.markdown.parser.InlineParser; import hunt.markdown.parser.block.BlockParser; abstract class AbstractBlockParser : BlockParser { public bool isContainer() { return false; } public bool canContain(Block childBlock) { return false; } override public void addLine(string line) { } void closeBlock() { } public void parseInlines(InlineParser inlineParser) { } }
D
# FIXED PM_Sensorless-DevInit_F2803x.obj: ../PM_Sensorless-DevInit_F2803x.c PM_Sensorless-DevInit_F2803x.obj: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/F2803x_headers/PeripheralHeaderIncludes.h PM_Sensorless-DevInit_F2803x.obj: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_Adc.h PM_Sensorless-DevInit_F2803x.obj: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_BootVars.h PM_Sensorless-DevInit_F2803x.obj: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_DevEmu.h PM_Sensorless-DevInit_F2803x.obj: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_Cla.h PM_Sensorless-DevInit_F2803x.obj: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_Comp.h PM_Sensorless-DevInit_F2803x.obj: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_CpuTimers.h PM_Sensorless-DevInit_F2803x.obj: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_ECan.h PM_Sensorless-DevInit_F2803x.obj: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_ECap.h PM_Sensorless-DevInit_F2803x.obj: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_EPwm.h PM_Sensorless-DevInit_F2803x.obj: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_EQep.h PM_Sensorless-DevInit_F2803x.obj: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_Gpio.h PM_Sensorless-DevInit_F2803x.obj: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_I2c.h PM_Sensorless-DevInit_F2803x.obj: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_Lin.h PM_Sensorless-DevInit_F2803x.obj: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_NmiIntrupt.h PM_Sensorless-DevInit_F2803x.obj: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_PieCtrl.h PM_Sensorless-DevInit_F2803x.obj: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_PieVect.h PM_Sensorless-DevInit_F2803x.obj: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_Spi.h PM_Sensorless-DevInit_F2803x.obj: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_Sci.h PM_Sensorless-DevInit_F2803x.obj: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_SysCtrl.h PM_Sensorless-DevInit_F2803x.obj: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_XIntrupt.h ../PM_Sensorless-DevInit_F2803x.c: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/F2803x_headers/PeripheralHeaderIncludes.h: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_Adc.h: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_BootVars.h: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_DevEmu.h: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_Cla.h: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_Comp.h: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_CpuTimers.h: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_ECan.h: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_ECap.h: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_EPwm.h: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_EQep.h: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_Gpio.h: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_I2c.h: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_Lin.h: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_NmiIntrupt.h: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_PieCtrl.h: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_PieVect.h: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_Spi.h: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_Sci.h: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_SysCtrl.h: C:/Users/win10/workspace_v7/PM_Sensorless/include/F2803x/v124/DSP2803x_headers/DSP2803x_XIntrupt.h:
D
module deadcode.gui.resources.material; import std.exception : enforce; import std.file; static import deadcode.graphics.material; static import deadcode.graphics.shaderprogram; static import deadcode.graphics.texture; import deadcode.core.uri; import deadcode.gui.locations; import deadcode.gui.resource; import deadcode.gui.resources.shaderprogram; import deadcode.gui.resources.texture; import deadcode.io.iomanager; import deadcode.util.jsonx; class Material : deadcode.graphics.material.Material, IResource!Material { private static @property Material builtIn() { return null; } // hide @property { string name() { return _name; } void name(string name) { _name = name; } Handle handle() const pure nothrow @safe { return _handle; } void handle(Handle h) { _handle = h; } Manager manager() pure nothrow @safe { return _manager; } const(Manager) manager() const pure nothrow @safe { return _manager; } void manager(Manager m) { _manager = m; } override deadcode.graphics.shaderprogram.ShaderProgram shader() { ShaderProgram p = cast(ShaderProgram) _shader; if (_shader !is null) p.ensureLoaded(); return _shader; } override void shader(deadcode.graphics.shaderprogram.ShaderProgram s) { _shader = s; } override deadcode.graphics.texture.Texture texture() { Texture t = cast(Texture) _texture; if (t !is null) t.ensureLoaded(); return _texture; } override void texture( deadcode.graphics.texture.Texture t) { _texture = t; } } Material interpolate(Material endValue, float delta) { return delta <= 0 ? this : endValue; } Manager _manager; Handle _handle; string _name; } class MaterialManager : ResourceManager!Material { private Handle builtinMaterialHandle; private static MaterialManager _fallbackMaterialManager; @property Material builtinMaterial() { return get(builtinMaterialHandle); } static @property MaterialManager fallbackMaterialManager() { enforce(_fallbackMaterialManager !is null); return _fallbackMaterialManager; } void setAsFallback() { _fallbackMaterialManager = this; } ShaderProgramManager shaderProgramManager; TextureManager textureManager; static MaterialManager create(FileManager fmgr, ShaderProgramManager spm, TextureManager tm) { auto fm = new MaterialManager; fm.shaderProgramManager = spm; fm.textureManager = tm; auto fp = new MaterialSerializer(spm, tm); fm.fileManager = fmgr; fm.addSerializer(fp); fm.createBuiltinMaterial(spm, tm); return fm; } private void createBuiltinMaterial(ShaderProgramManager spm, TextureManager tm) { auto mat = declare(new URI("builtin:default")); mat.shader = spm.builtinShaderProgram; mat.texture = tm.builtinTexture; builtinMaterialHandle = mat.handle; } /** Overriden load that will ensure sub resources of the material (e.g. texture and shaders) are also loaded override bool load(ResourceState state) { super.load(state); //// TODO: Remove since tex and shader are lazy loaded as well //gui.resources.Texture tex = cast(gui.resources.Texture) state.resource.texture; //if (tex !is null) // tex.ensureLoaded(); // //gui.resources.ShaderProgram sp = cast(gui.resources.ShaderProgram) state.resource.shader; //if (sp !is null) // sp.ensureLoaded(); // return true; } */ } class MaterialSerializer : ResourceSerializer!Material { this(ShaderProgramManager shaderProgramManager, TextureManager textureManager) { _shaderProgramManager = shaderProgramManager; _textureManager = textureManager; } override bool canRead() pure const nothrow { return true; } override bool canHandle(URI uri) { import deadcode.core.path; return uri.extension == ".material"; } override void deserialize(Material res, string str) { struct ShaderProgramSpec { string shaderProgram; string texture; } auto spec = jsonDecode!ShaderProgramSpec(str); auto spURI = new URI(spec.shaderProgram); auto texURI = new URI(spec.texture); auto baseURI = res.uri.dirName; if (!spURI.isAbsolute) spURI.makeAbsolute(baseURI); if (!texURI.isAbsolute) texURI.makeAbsolute(baseURI); res.shader = _shaderProgramManager.declare(spURI); res.texture = _textureManager.declare(texURI); res.manager.onResourceLoaded(res, this); } private ShaderProgramManager _shaderProgramManager; private TextureManager _textureManager; }
D
cmd_Release/obj.target/opencv.node := g++ -shared -pthread -rdynamic -m64 -Wl,-soname=opencv.node -o Release/obj.target/opencv.node -Wl,--start-group Release/obj.target/opencv/src/init.o Release/obj.target/opencv/src/Matrix.o Release/obj.target/opencv/src/OpenCV.o Release/obj.target/opencv/src/CascadeClassifierWrap.o Release/obj.target/opencv/src/Contours.o Release/obj.target/opencv/src/Point.o Release/obj.target/opencv/src/VideoCaptureWrap.o Release/obj.target/opencv/src/CamShift.o Release/obj.target/opencv/src/HighGUI.o Release/obj.target/opencv/src/FaceRecognizer.o Release/obj.target/opencv/src/Features2d.o Release/obj.target/opencv/src/BackgroundSubtractor.o Release/obj.target/opencv/src/Constants.o Release/obj.target/opencv/src/Calib3D.o Release/obj.target/opencv/src/ImgProc.o Release/obj.target/opencv/src/Stereo.o Release/obj.target/opencv/src/LDAWrap.o -Wl,--end-group /usr/lib/x86_64-linux-gnu/libopencv_calib3d.so /usr/lib/x86_64-linux-gnu/libopencv_contrib.so /usr/lib/x86_64-linux-gnu/libopencv_core.so /usr/lib/x86_64-linux-gnu/libopencv_features2d.so /usr/lib/x86_64-linux-gnu/libopencv_flann.so /usr/lib/x86_64-linux-gnu/libopencv_gpu.so /usr/lib/x86_64-linux-gnu/libopencv_highgui.so /usr/lib/x86_64-linux-gnu/libopencv_imgproc.so /usr/lib/x86_64-linux-gnu/libopencv_legacy.so /usr/lib/x86_64-linux-gnu/libopencv_ml.so /usr/lib/x86_64-linux-gnu/libopencv_objdetect.so /usr/lib/x86_64-linux-gnu/libopencv_ocl.so /usr/lib/x86_64-linux-gnu/libopencv_photo.so /usr/lib/x86_64-linux-gnu/libopencv_stitching.so /usr/lib/x86_64-linux-gnu/libopencv_superres.so /usr/lib/x86_64-linux-gnu/libopencv_ts.so /usr/lib/x86_64-linux-gnu/libopencv_video.so /usr/lib/x86_64-linux-gnu/libopencv_videostab.so -lopencv_calib3d -lopencv_contrib -lopencv_core -lopencv_features2d -lopencv_flann -lopencv_gpu -lopencv_highgui -lopencv_imgproc -lopencv_legacy -lopencv_ml -lopencv_objdetect -lopencv_ocl -lopencv_photo -lopencv_stitching -lopencv_superres -lopencv_ts -lopencv_video -lopencv_videostab
D
/Users/sridattbhamidipati/Desktop/money20202015/build/money20202015.build/Debug-iphoneos/money20202015.build/Objects-normal/arm64/DisplayQRViewController.o : /Users/sridattbhamidipati/Desktop/money20202015/money20202015/JSONObject.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/DisplayQRViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/NewItemViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/Place.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/ConsumerDataViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/Item.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/PlaceTableViewCell.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/ConsumerHomeViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/LoginViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/ItemTableViewCell.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/AppDelegate.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/SearchPlacesViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/Extension.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/CameraViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/CheckoutViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/BusinessHomeViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/ChooseUsageViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/Tool.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Users/sridattbhamidipati/Desktop/money20202015/money20202015/Bridging_Header.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKButton.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKUtility.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKTestUsersManager.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKSettings.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKProfile.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKConstants.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKMacros.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKCopying.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKLoginKit.framework/Modules/module.modulemap /Users/sridattbhamidipati/Desktop/money20202015/money20202015/Simplify.framework/Headers/SIMChargeCardViewController.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/PassKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Contacts.swiftmodule /Users/sridattbhamidipati/Desktop/money20202015/money20202015/Simplify.framework/Headers/SIMCreditCardToken.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/Simplify.framework/Headers/SIMAddress.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreLocation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreAudio.swiftmodule /Users/sridattbhamidipati/Desktop/money20202015/build/money20202015.build/Debug-iphoneos/money20202015.build/Objects-normal/arm64/DisplayQRViewController~partial.swiftmodule : /Users/sridattbhamidipati/Desktop/money20202015/money20202015/JSONObject.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/DisplayQRViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/NewItemViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/Place.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/ConsumerDataViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/Item.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/PlaceTableViewCell.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/ConsumerHomeViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/LoginViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/ItemTableViewCell.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/AppDelegate.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/SearchPlacesViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/Extension.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/CameraViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/CheckoutViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/BusinessHomeViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/ChooseUsageViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/Tool.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Users/sridattbhamidipati/Desktop/money20202015/money20202015/Bridging_Header.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKButton.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKUtility.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKTestUsersManager.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKSettings.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKProfile.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKConstants.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKMacros.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKCopying.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKLoginKit.framework/Modules/module.modulemap /Users/sridattbhamidipati/Desktop/money20202015/money20202015/Simplify.framework/Headers/SIMChargeCardViewController.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/PassKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Contacts.swiftmodule /Users/sridattbhamidipati/Desktop/money20202015/money20202015/Simplify.framework/Headers/SIMCreditCardToken.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/Simplify.framework/Headers/SIMAddress.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreLocation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreAudio.swiftmodule /Users/sridattbhamidipati/Desktop/money20202015/build/money20202015.build/Debug-iphoneos/money20202015.build/Objects-normal/arm64/DisplayQRViewController~partial.swiftdoc : /Users/sridattbhamidipati/Desktop/money20202015/money20202015/JSONObject.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/DisplayQRViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/NewItemViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/Place.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/ConsumerDataViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/Item.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/PlaceTableViewCell.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/ConsumerHomeViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/LoginViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/ItemTableViewCell.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/AppDelegate.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/SearchPlacesViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/Extension.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/CameraViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/CheckoutViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/BusinessHomeViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/ChooseUsageViewController.swift /Users/sridattbhamidipati/Desktop/money20202015/money20202015/Tool.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Users/sridattbhamidipati/Desktop/money20202015/money20202015/Bridging_Header.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKButton.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKUtility.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKTestUsersManager.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKSettings.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKProfile.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKConstants.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKMacros.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKCopying.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKCoreKit.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/FBSDKLoginKit.framework/Modules/module.modulemap /Users/sridattbhamidipati/Desktop/money20202015/money20202015/Simplify.framework/Headers/SIMChargeCardViewController.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/PassKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Contacts.swiftmodule /Users/sridattbhamidipati/Desktop/money20202015/money20202015/Simplify.framework/Headers/SIMCreditCardToken.h /Users/sridattbhamidipati/Desktop/money20202015/money20202015/Simplify.framework/Headers/SIMAddress.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreLocation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreAudio.swiftmodule
D
module living_space; // von Neumann == TLRB, Moore == 12346789, Serial=Left, Right, Wraparound +1/-1 typedef ubyte SpaceType; const SpaceType Neumann=0, Moore=1; void dumpESP() { void* res = void; asm { mov res, ESP; } writefln(res); } import tools.mersenne, tools.array2d, tools.threads, qd, std.stdio, tools.base; class Space(SpaceType H, string EVAL="") { int boxsize, border; bool wrap; Array2D!(ubyte) state, state2; Array2D!(bool) changed, changed2; const ubyte xsize=2, xshift=1, ysize=2, yshift=1; rgb[] cols; void stamp(int[][] what, int xpos=0, int ypos=0) { auto h=what.length; auto w=0; foreach (wh; what) if (wh.length>w) w=wh.length; if (h>state.height) throw new Exception("Pattern too high to stamp: "~.toString(h)~"!"); if (w>state.width) throw new Exception("Pattern too wide to stamp: "~.toString(w)~"!"); foreach (iy, row; what) { foreach (ix, cell; row) { auto x=ix+(state.width-w)/2+(w+4)*xpos, y=iy+(state.height-h)/2+(h+4)*ypos; switch (cell) { case -1: break; case -2: state[x, y]=[cast(ubyte) 1, 4, 7][rand()%3]; break; default: state[x, y]=cast(ubyte) cell; } } } } this(int b, int o, bool w, int[][] init) { boxsize=b; border=o; wrap=w; state = typeof(state) (screen.width/boxsize, screen.height/boxsize); changed = Array2D!(bool)(state.width>>xshift, state.height>>yshift); changed2 = changed.dup; assert((state.width%xsize)==0, "Width must be multiple of changesize!"); assert((state.height%ysize)==0, "Height must be multiple of changesize!"); changed = true; if (init) stamp(init); state2 = state.dup; // 0 1 2 3 4 5 6 7 8 9 10 cols=[Black, Blue, Red, Red~Blue, Green, Red~White, Green~Blue, White, Red~Black, Yellow, Blue~Black]; } void render() { auto active_cols = new rgb[cols.length], inactive_cols = active_cols.dup; foreach (i, col; cols) { active_cols[i] = col~Green~col~col; inactive_cols[i] = col~Red~col~col; } foreach (x, y, value; state) { typeof(cols[0]) c; if (changed[x>>xshift, y>>yshift]) c=active_cols[value]; else c=inactive_cols[value]; if (boxsize==1) { pset(x, y, c); } else { line(x*boxsize, y*boxsize, (x+1)*boxsize-border, (y+1)*boxsize-border, Fill=c); if (border) line(x*boxsize-1, y*boxsize-1, (x+1)*boxsize-1, (y+1)*boxsize-1, Box=White~Black~Black~Black~Black); } } } static if (EVAL.length) mixin(EVAL); else { static if (H==Neumann) abstract ubyte eval(ubyte me, ubyte up, ubyte right, ubyte down, ubyte left); static if (H==Moore) abstract ubyte eval(ubyte, ubyte, ubyte, ubyte, ubyte, ubyte, ubyte, ubyte, ubyte); } uint calcLine(int y) { uint res; auto width = state.width; const size_t ymask=ysize-1; auto yd=y>>yshift, ym=y&ymask; auto changed_cur=changed2.h_iter(yd), changed_above=changed2.h_iter(yd-1), changed_below=changed2.h_iter(yd+1), changed_is=changed.h_iter(yd); auto resline = state2.h_iter(y); auto myline = state.h_iter(y), above = state.h_iter(y-1), below = state.h_iter(y+1); static if (H==Moore) ubyte a=void, b=void, c=void, d=void, e=void, f=void, g=void, h=void, i=void; else ubyte prev=void, cur=void, next=void; size_t x=0; void reset() { resline.pos=x; myline.pos=x; above.pos=x; below.pos=x; static if (H==Moore) { a=above.prev; b=above(); c=above.next; d=myline.prev; e=myline(); f=myline.next; g=below.prev; h=below(); i=below.next; } else { prev=myline.prev(); cur=myline(); next=myline.next(); } } void changed() { auto xs = x >> xshift; changed_above.pos = changed_cur.pos = changed_below.pos = xs; auto xm = x & (xsize-1); void x_changed(typeof(changed_cur) ch) { if (!xm) ch.prev = true; ch = true; if (xm == xsize-1) ch.next = true; } if (!ym) x_changed(changed_above); x_changed(changed_cur); if (ym == ysize-1) x_changed(changed_below); } bool skipped=true; while (x<width) { changed_is.pos=x >> xshift; if (!changed_is() && !changed_is.done) { skipped = true; do changed_is ++; while (!changed_is() && !changed_is.done); } if (changed_is.done && !changed_is()) break; if (skipped) { x = changed_is.pos << xshift; reset(); skipped=false; } else { static if (H != Moore) { prev=cur; cur=next; next=myline.next(); } } static if (H==Moore) { if (x && x < width-3) { myline += 3; above += 3; below += 3; res += 3; // we know that x is nowhere near the border .. use nowrap versions if ((resline=eval(a, b, c, d, e, f, g, h, i))!=e) changed(); a = above.prev_nowrap; d = myline.prev_nowrap; g = below.prev_nowrap; resline ++; x ++; if ((resline=eval(b, c, a, e, f, d, h, i, g))!=f) changed(); b = above(); e = myline(); h = below(); resline ++; x ++; if ((resline=eval(c, a, b, f, d, e, i, g, h))!=d) changed(); c = above.next_nowrap; f = myline.next_nowrap; i = below.next_nowrap; resline ++; x ++; } else { if ((resline=eval(a, b, c, d, e, f, g, h, i))!=e) changed(); if (x<width-1) { resline++; myline++; above++; below++; a = b; b = c; c = above.next(); d = e; e = f; f = myline.next(); g = h; h = i; i = below.next(); } x++; res++; } } else { auto ncur=eval(cur, myline.aboveValue, next, myline.belowValue, prev); resline=ncur; if (ncur!=cur) changed(); resline++; myline++; res++; x++; } } return res; } void step() { auto height = state.height; changed2 = false; for (int y = 0; y < height; y++) { calcLine(y); } swap(changed, changed2); swap(state, state2); } }
D
/* Copyright (c) 2013 Andrey Penechko 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 anchovy.gui.behaviors.labelbehavior; import anchovy.gui; import anchovy.gui.interfaces.iwidgetbehavior; class LabelBehavior : IWidgetBehavior { public: override void attachTo(Widget widget) { widget.removeEventHandlers!DrawEvent(); widget.addEventHandler(&handleDraw); if (widget.peekPropertyAs!("text", string) is null) widget.setProperty!"text"(""); if (widget.peekPropertyAs!("fontName", string) is null) widget.setProperty!"fontName"("normal"); GuiContext context = widget.getPropertyAs!("context", GuiContext); TextLine line = context.guiRenderer.createTextLine(widget.getPropertyAs!("fontName", string)); widget.setProperty!"line"(line); widget.setProperty!"prefSize"(line.size); widget.property("text").valueChanged.connect(&onTextChanged); } void onTextChanged(FlexibleObject obj, Variant newText) { auto str = newText.coerce!dstring; TextLine line = obj.getPropertyAs!("line", TextLine); line.text = str; obj["prefSize"] = line.size; invalidateLayout(cast(Widget)obj); } bool handleDraw(Widget widget, DrawEvent event) { if (event.sinking) { event.guiRenderer.renderer.setColor(Color(0, 0, 0, 255)); event.guiRenderer.drawTextLine(widget.getPropertyAs!("line", TextLine), widget.getPropertyAs!("staticPosition", ivec2), AlignmentType.LEFT_TOP); } return true; } }
D
someone making a search or inquiry a missile equipped with a device that is attracted toward some kind of emission (heat or light or sound or radio waves)
D
// Written in the D programming language /++ This implements a range-based $(LINK2 https://en.wikipedia.org/wiki/StAX, StAX parser) for XML 1.0 (which will work with XML 1.1 documents assuming that they don't use any 1.1-specific features). For the sake of simplicity, sanity, and efficiency, the $(LINK2 https://en.wikipedia.org/wiki/Document_type_definition, DTD) section is not supported beyond what is required to parse past it. Start tags, end tags, comments, cdata sections, and processing instructions are all supported and reported to the application. Anything in the DTD is skipped (though it's parsed enough to parse past it correctly, and that $(I can) result in an $(LREF XMLParsingException) if that XML isn't valid enough to be correctly skipped), and the $(LINK2 http://www.w3.org/TR/REC-xml/#NT-XMLDecl, XML declaration) at the top is skipped if present (XML 1.1 requires that it be there, XML 1.0 does not). Regardless of what the XML declaration says (if present), any range of $(K_CHAR) will be treated as being encoded in UTF-8, any range of $(K_WCHAR) will be treated as being encoded in UTF-16, and any range of $(K_DCHAR) will be treated as having been encoded in UTF-32. Strings will be treated as ranges of their code units, not code points. Since the DTD section is skipped, entity references other than the five which are predefined by the XML spec cannot be properly processed (since wherever they were used in the document would be replaced by what they referred to, and that could affect the parsing). As such, if any entity references which are not predefined are encountered outside of the DTD section, an $(LREF XMLParsingException) will be thrown. The predefined entity references and any character references encountered will be checked to verify that they're valid, but they will not be replaced (since that does not work with returning slices of the original input). However, $(REF_ALTTEXT normalize, normalize, dxml, util) or $(REF_ALTTEXT parseStdEntityRef, parseStdEntityRef, dxml, util) from $(MREF dxml, util) can be used to convert the predefined entity references to what the refer to, and $(REF_ALTTEXT normalize, normalize, dxml, util) or $(REF_ALTTEXT parseCharRef, parseCharRef, dxml, util) from $(MREF dxml, util) can be used to convert character references to what they refer to. $(H3 Primary Symbols) $(TABLE $(TR $(TH Symbol) $(TH Description)) $(TR $(TD $(LREF parseXML)) $(TD The function used to initiate the parsing of an XML document.)) $(TR $(TD $(LREF EntityRange)) $(TD The range returned by $(LREF parseXML).)) $(TR $(TD $(LREF EntityRange.Entity)) $(TD The element type of $(LREF EntityRange).)) ) $(H3 Parser Configuration Helpers) $(TABLE $(TR $(TH Symbol) $(TH Description)) $(TR $(TD $(LREF Config)) $(TD Used to configure how $(LREF EntityRange) parses the XML.)) $(TR $(TD $(LREF simpleXML)) $(TD A user-friendly configuration for when the application just wants the element tags and the data in between them.)) $(TR $(TD $(LREF makeConfig)) $(TD A convenience function for constructing a custom $(LREF Config).)) $(TR $(TD $(LREF SkipComments)) $(TD A $(PHOBOS_REF Flag, std, typecons) used with $(LREF Config) to tell the parser to skip comments.)) $(TR $(TD $(LREF SkipPI)) $(TD A $(PHOBOS_REF Flag, std, typecons) used with $(LREF Config) to tell the parser to skip parsing instructions.)) $(TR $(TD $(LREF SplitEmpty)) $(TD A $(PHOBOS_REF Flag, std, typecons) used with $(LREF Config) to configure how the parser deals with empty element tags.)) ) $(H3 Helper Types Used When Parsing) $(TABLE $(TR $(TH Symbol) $(TH Description)) $(TR $(TD $(LREF EntityType)) $(TD The type of an entity in the XML (e.g. a $(LREF_ALTTEXT start tag, EntityType.elementStart) or a $(LREF_ALTTEXT comment, EntityType.comment)).)) $(TR $(TD $(LREF TextPos)) $(TD Gives the line and column number in the XML document.)) $(TR $(TD $(LREF XMLParsingException)) $(TD Thrown by $(LREF EntityRange) when it encounters invalid XML.)) ) $(H3 Helper Functions Used When Parsing) $(TABLE $(TR $(TH Symbol) $(TH Description)) $(TR $(TD $(LREF skipContents)) $(TD Iterates an $(LREF EntityRange) from a start tag to its matching end tag.)) $(TR $(TD $(LREF skipToPath)) $(TD Used to navigate from one start tag to another as if the start tag names formed a file path.)) $(TR $(TD $(LREF skipToEntityType)) $(TD Skips to the next entity of the given type in the range.)) $(TR $(TD $(LREF skipToParentEndTag)) $(TD Iterates an $(LREF EntityRange) until it reaches the end tag that matches the start tag which is the parent of of the current entity.)) ) Copyright: Copyright 2017 - 2018 License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0). Authors: $(HTTPS jmdavisprog.com, Jonathan M Davis) Source: $(LINK_TO_SRC dxml/_parser.d) See_Also: $(LINK2 http://www.w3.org/TR/REC-xml/, Official Specification for XML 1.0) +/ module dxml.parser; /// version(dxmlTests) unittest { auto xml = "<!-- comment -->\n" ~ "<root>\n" ~ " <foo>some text<whatever/></foo>\n" ~ " <bar/>\n" ~ " <baz></baz>\n" ~ "</root>"; { auto range = parseXML(xml); assert(range.front.type == EntityType.comment); assert(range.front.text == " comment "); range.popFront(); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "root"); range.popFront(); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "foo"); range.popFront(); assert(range.front.type == EntityType.text); assert(range.front.text == "some text"); range.popFront(); assert(range.front.type == EntityType.elementEmpty); assert(range.front.name == "whatever"); range.popFront(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "foo"); range.popFront(); assert(range.front.type == EntityType.elementEmpty); assert(range.front.name == "bar"); range.popFront(); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "baz"); range.popFront(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "baz"); range.popFront(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "root"); range.popFront(); assert(range.empty); } { auto range = parseXML!simpleXML(xml); // simpleXML skips comments assert(range.front.type == EntityType.elementStart); assert(range.front.name == "root"); range.popFront(); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "foo"); range.popFront(); assert(range.front.type == EntityType.text); assert(range.front.text == "some text"); range.popFront(); // simpleXML splits empty element tags into a start tag and end tag // so that the code doesn't have to care whether a start tag with no // content is an empty tag or a start tag and end tag with nothing but // whitespace in between. assert(range.front.type == EntityType.elementStart); assert(range.front.name == "whatever"); range.popFront(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "whatever"); range.popFront(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "foo"); range.popFront(); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "bar"); range.popFront(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "bar"); range.popFront(); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "baz"); range.popFront(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "baz"); range.popFront(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "root"); range.popFront(); assert(range.empty); } } import std.range.primitives; import std.traits; import std.typecons : Flag; /++ The exception type thrown when the XML parser encounters invalid XML. +/ class XMLParsingException : Exception { /++ The position in the XML input where the problem is. +/ TextPos pos; package: this(string msg, TextPos textPos, string file = __FILE__, size_t line = __LINE__) @safe pure { import std.format : format; pos = textPos; if(pos.line != -1) { if(pos.col != -1) msg = format!"[%s:%s]: %s"(pos.line, pos.col, msg); else msg = format!"[Line %s]: %s"(pos.line, msg); } super(msg, file, line); } } /++ Where in the XML document an entity is. The line and column numbers are 1-based. The primary use case for TextPos is $(LREF XMLParsingException), but an application may have other uses for it. The TextPos for an $(LREF2 Entity, EntityRange.Entity) can be obtained from $(LREF2 Entity.pos, EntityRange.Entity.pos). See_Also: $(LREF XMLParsingException.pos)$(BR) $(LREF EntityRange.Entity.pos) +/ struct TextPos { /// A line number in the XML file. int line = 1; /++ A column number in a line of the XML file. Each code unit is considered a column, so depending on what a program is looking to do with the column number, it may need to examine the actual text on that line and calculate the number that represents what the program wants to display (e.g. the number of graphemes). +/ int col = 1; } /++ Used to configure how the parser works. See_Also: $(LREF makeConfig)$(BR) $(LREF parseXML)$(BR) $(LREF simpleXML) +/ struct Config { /++ Whether the comments should be skipped while parsing. If $(D skipComments == SkipComments.yes), any entities of type $(LREF EntityType.comment) will be omitted from the parsing results, and they will not be validated beyond what is required to parse past them. Defaults to $(D SkipComments.no). +/ auto skipComments = SkipComments.no; /++ Whether processing instructions should be skipped. If $(D skipPI == SkipPI.yes), any entities of type $(LREF EntityType.pi) will be skipped, and they will not be validated beyond what is required to parse past them. Defaults to $(D SkipPI.no). +/ auto skipPI = SkipPI.no; /++ Whether the parser should report empty element tags as if they were a start tag followed by an end tag with nothing in between. If $(D splitEmpty == SplitEmpty.yes), then whenever an $(LREF EntityType.elementEmpty) is encountered, the parser will claim that that entity is an $(LREF EntityType.elementStart), and then it will provide an $(LREF EntityType.elementEnd) as the next entity before the entity that actually follows it. The purpose of this is to simplify the code using the parser, since most code does not care about the difference between an empty tag and a start and end tag with nothing in between. But since some code may care about the difference, the behavior is configurable. Defaults to $(D SplitEmpty.no). +/ auto splitEmpty = SplitEmpty.no; /// version(dxmlTests) unittest { enum configSplitYes = makeConfig(SplitEmpty.yes); { auto range = parseXML("<root></root>"); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "root"); range.popFront(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "root"); range.popFront(); assert(range.empty); } { // No difference if the tags are already split. auto range = parseXML!configSplitYes("<root></root>"); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "root"); range.popFront(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "root"); range.popFront(); assert(range.empty); } { // This treats <root></root> and <root/> as distinct. auto range = parseXML("<root/>"); assert(range.front.type == EntityType.elementEmpty); assert(range.front.name == "root"); range.popFront(); assert(range.empty); } { // This is parsed as if it were <root></root> insead of <root/>. auto range = parseXML!configSplitYes("<root/>"); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "root"); range.popFront(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "root"); range.popFront(); assert(range.empty); } } } /// See_Also: $(LREF2 skipComments, Config) alias SkipComments = Flag!"SkipComments"; /// See_Also: $(LREF2 skipPI, Config) alias SkipPI = Flag!"SkipPI"; /// See_Also: $(LREF2 splitEmpty, Config) alias SplitEmpty = Flag!"SplitEmpty"; /++ Helper function for creating a custom config. It makes it easy to set one or more of the member variables to something other than the default without having to worry about explicitly setting them individually or setting them all at once via a constructor. The order of the arguments does not matter. The types of each of the members of Config are unique, so that information alone is sufficient to determine which argument should be assigned to which member. +/ Config makeConfig(Args...)(Args args) { import std.format : format; import std.meta : AliasSeq, staticIndexOf, staticMap; template isValid(T, Types...) { static if(Types.length == 0) enum isValid = false; else static if(is(T == Types[0])) enum isValid = true; else enum isValid = isValid!(T, Types[1 .. $]); } Config config; alias TypeOfMember(string memberName) = typeof(__traits(getMember, config, memberName)); alias MemberTypes = staticMap!(TypeOfMember, AliasSeq!(__traits(allMembers, Config))); foreach(i, arg; args) { static assert(isValid!(typeof(arg), MemberTypes), format!"Argument %s does not match the type of any members of Config"(i)); static foreach(j, Other; Args) { static if(i != j) static assert(!is(typeof(arg) == Other), format!"Argument %s and %s have the same type"(i, j)); } foreach(memberName; __traits(allMembers, Config)) { static if(is(typeof(__traits(getMember, config, memberName)) == typeof(arg))) mixin("config." ~ memberName ~ " = arg;"); } } return config; } /// version(dxmlTests) @safe pure nothrow @nogc unittest { { auto config = makeConfig(SkipComments.yes); assert(config.skipComments == SkipComments.yes); assert(config.skipPI == Config.init.skipPI); assert(config.splitEmpty == Config.init.splitEmpty); } { auto config = makeConfig(SkipComments.yes, SkipPI.yes); assert(config.skipComments == SkipComments.yes); assert(config.skipPI == SkipPI.yes); assert(config.splitEmpty == Config.init.splitEmpty); } { auto config = makeConfig(SplitEmpty.yes, SkipComments.yes); assert(config.skipComments == SkipComments.yes); assert(config.skipPI == Config.init.skipPI); assert(config.splitEmpty == SplitEmpty.yes); } } version(dxmlTests) unittest { import std.typecons : Flag; static assert(!__traits(compiles, makeConfig(42))); static assert(!__traits(compiles, makeConfig("hello"))); static assert(!__traits(compiles, makeConfig(Flag!"SomeOtherFlag".yes))); static assert(!__traits(compiles, makeConfig(SplitEmpty.yes, SplitEmpty.no))); } /++ This $(LREF Config) is intended for making it easy to parse XML by skipping everything that isn't the actual data as well as making it simpler to deal with empty element tags by treating them the same as a start tag and end tag with nothing but whitespace between them. +/ enum simpleXML = makeConfig(SkipComments.yes, SkipPI.yes, SplitEmpty.yes); /// version(dxmlTests) @safe pure nothrow @nogc unittest { static assert(simpleXML.skipComments == SkipComments.yes); static assert(simpleXML.skipPI == SkipPI.yes); static assert(simpleXML.splitEmpty == SplitEmpty.yes); } /++ Represents the type of an XML entity. Used by $(LREF EntityRange.Entity). +/ enum EntityType { /++ A cdata section: `<![CDATA[ ... ]]>`. See_Also: $(LINK http://www.w3.org/TR/REC-xml/#sec-cdata-sect) +/ cdata, /++ An XML comment: `<!-- ... -->`. See_Also: $(LINK http://www.w3.org/TR/REC-xml/#sec-comments) +/ comment, /++ The start tag for an element. e.g. `<foo name="value">`. See_Also: $(LINK http://www.w3.org/TR/REC-xml/#sec-starttags) +/ elementStart, /++ The end tag for an element. e.g. `</foo>`. See_Also: $(LINK http://www.w3.org/TR/REC-xml/#sec-starttags) +/ elementEnd, /++ The tag for an element with no contents or matching end tag. e.g. `<foo name="value"/>`. See_Also: $(LINK http://www.w3.org/TR/REC-xml/#sec-starttags) +/ elementEmpty, /++ A processing instruction such as `<?foo?>`. Note that the `<?xml ... ?>` is skipped and not treated as an $(LREF EntityType._pi). See_Also: $(LINK http://www.w3.org/TR/REC-xml/#sec-pi) +/ pi, /++ The content of an element tag that is simple text. If there is an entity other than the end tag following the text, then the text includes up to that entity. Note however that character references (e.g. $(D_CODE_STRING "$(AMP)#42")) and the predefined entity references (e.g. $(D_CODE_STRING "$(AMP)apos;")) are left unprocessed in the text. In order for them to be processed, the text should be passed to either $(REF_ALTTEXT normalize, normalize, dxml, util) or $(REF_ALTTEXT asNormalized, asNormalized, dxml, util). Entity references which are not predefined are considered invalid XML, because the DTD section is skipped, and thus they cannot be processed properly. See_Also: $(LINK http://www.w3.org/TR/REC-xml/#sec-starttags)$(BR) $(REF normalize, dxml, util)$(BR) $(REF asNormalized, dxml, util)$(BR) $(REF parseStdEntityRef, dxml, util)$(BR) $(REF parseCharRef, dxml, util)$(BR) $(LREF EntityRange.Entity._text) +/ text, } /++ Lazily parses the given range of characters as an XML document. EntityRange is essentially a $(LINK2 https://en.wikipedia.org/wiki/StAX, StAX) parser, though it evolved into that rather than being based on what Java did, and it's range-based rather than iterator-based, so its API is likely to differ from other implementations. The basic concept should be the same though. One of the core design goals of this parser is to slice the original input rather than having to allocate strings for the output or wrap it in a lazy range that produces a mutated version of the data. So, all of the text that the parser provides is either a slice or $(PHOBOS_REF takeExactly, std, range) of the input. However, in some cases, for the parser to be fully compliant with the XML spec, $(REF normalize, dxml, util) must be called on the text to mutate certain constructs (e.g. removing any $(D_CODE_STRING '\r') in the text or converting $(D_CODE_STRING "$(AMP)lt;") to $(D_CODE_STRING '<')). But that's left up to the application. The parser is not $(K_NOGC), but it allocates memory very minimally. It allocates some of its state on the heap so it can validate attributes and end tags. However, that state is shared among all the ranges that came from the same call to parseXML (only the range farthest along in parsing validates attributes or end tags), so $(LREF2 save, _EntityRange) does not allocate memory unless $(D save) on the underlying range allocates memory. The shared state currently uses a couple of dynamic arrays to validate the tags and attributes, and if the document has a particularly deep tag-depth or has a lot of attributes on on a start tag, then some reallocations may occur until the maximum is reached, but enough is reserved that for most documents, no reallocations will occur. The only other times that the parser would allocate would be if an exception were thrown or if the range that is passed to parseXML allocates for any reason when calling any of the range primitives. If invalid XML is encountered at any point during the parsing process, an $(LREF XMLParsingException) will be thrown. If an exception has been thrown, then the parser is in an invalid state, and it is an error to call any functions on it. However, note that XML validation is reduced for any entities that are skipped (e.g. for anything in the DTD section, validation is reduced to what is required to correctly parse past it, and when $(D Config.skipPI == SkipPI.yes), processing instructions are only validated enough to correctly skip past them). As the module documentation says, this parser does not provide any DTD support. It's not possible to properly support the DTD section while returning slices of the original input, and the DTD portion of the spec makes parsing XML far, far more complicated. A quick note about carriage returns$(COLON) per the XML spec, they're all supposed to either be stripped out or replaced with newlines before the XML parser even processes the text. That doesn't work when the parser is slicing the original text and not mutating it at all. So, for the purposes of parsing, this parser treats all carriage returns as if they were newlines or spaces (though they won't count as newlines when counting the lines for $(LREF TextPos)). However, they $(I will) appear in any text fields or attribute values if they are in the document (since the text fields and attribute values are slices of the original text). $(REF normalize, dxml, util) can be used to strip them along with converting any character references in the text. Alternatively, the application can remove them all before calling parseXML, but it's not necessary. +/ struct EntityRange(Config cfg, R) if(isForwardRange!R && isSomeChar!(ElementType!R)) { public: import std.algorithm : canFind; import std.range : only, takeExactly; import std.typecons : Nullable; import std.utf : byCodeUnit; private enum compileInTests = is(R == EntityRangeCompileTests); /// The Config used for when parsing the XML. alias config = cfg; /// The type of the range that EntityRange is parsing. alias Input = R; /++ The type used when any slice of the original input is used. If $(D R) is a string or supports slicing, then SliceOfR is the same as $(D R); otherwise, it's the result of calling $(PHOBOS_REF takeExactly, std, range) on the input. --- import std.algorithm : filter; import std.range : takeExactly; static assert(is(EntityRange!(Config.init, string).SliceOfR == string)); auto range = filter!(a => true)("some xml"); static assert(is(EntityRange!(Config.init, typeof(range)).SliceOfR == typeof(takeExactly(range, 42)))); --- +/ static if(isDynamicArray!R || hasSlicing!R) alias SliceOfR = R; else alias SliceOfR = typeof(takeExactly(R.init, 42)); // https://issues.dlang.org/show_bug.cgi?id=11133 prevents this from being // a ddoc-ed unit test. static if(compileInTests) @safe unittest { import std.algorithm : filter; import std.range : takeExactly; static assert(is(EntityRange!(Config.init, string).SliceOfR == string)); auto range = filter!(a => true)("some xml"); static assert(is(EntityRange!(Config.init, typeof(range)).SliceOfR == typeof(takeExactly(range, 42)))); } /++ Represents an entity in the XML document. Note that the $(LREF2 type, EntityRange._Entity.type) determines which properties can be used, and it can determine whether functions which an Entity or $(LREF EntityRange) is passed to are allowed to be called. Each function lists which $(LREF EntityType)s are allowed, and it is an error to call them with any other $(LREF EntityType). +/ struct Entity { public: /++ The $(LREF EntityType) for this Entity. +/ @property EntityType type() @safe const pure nothrow @nogc { return _type; } /// static if(compileInTests) unittest { auto xml = "<root>\n" ~ " <!--no comment-->\n" ~ " <![CDATA[cdata run]]>\n" ~ " <text>I am text!</text>\n" ~ " <empty/>\n" ~ " <?pi?>\n" ~ "</root>"; auto range = parseXML(xml); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "root"); range.popFront(); assert(range.front.type == EntityType.comment); assert(range.front.text == "no comment"); range.popFront(); assert(range.front.type == EntityType.cdata); assert(range.front.text == "cdata run"); range.popFront(); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "text"); range.popFront(); assert(range.front.type == EntityType.text); assert(range.front.text == "I am text!"); range.popFront(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "text"); range.popFront(); assert(range.front.type == EntityType.elementEmpty); assert(range.front.name == "empty"); range.popFront(); assert(range.front.type == EntityType.pi); assert(range.front.name == "pi"); range.popFront(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "root"); range.popFront(); assert(range.empty); } /++ The position in the the original text where the entity starts. See_Also: $(LREF TextPos)$(BR) $(LREF XMLParsingException._pos) +/ @property TextPos pos() @safe const pure nothrow @nogc { return _pos; } /// static if(compileInTests) unittest { auto xml = "<root>\n" ~ " <foo>\n" ~ " Foo and bar. Always foo and bar...\n" ~ " </foo>\n" ~ "</root>"; auto range = parseXML(xml); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "root"); assert(range.front.pos == TextPos(1, 1)); range.popFront(); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "foo"); assert(range.front.pos == TextPos(2, 5)); range.popFront(); assert(range.front.type == EntityType.text); assert(range.front.text == "\n" ~ " Foo and bar. Always foo and bar...\n" ~ " "); assert(range.front.pos == TextPos(2, 10)); range.popFront(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "foo"); assert(range.front.pos == TextPos(4, 5)); range.popFront(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "root"); assert(range.front.pos == TextPos(5, 1)); range.popFront(); assert(range.empty); } static if(compileInTests) unittest { import core.exception : AssertError; import std.exception : enforce; static void test(ER)(ref ER range, EntityType type, int row, int col, size_t line = __LINE__) { enforce!AssertError(!range.empty, "unittest failure 1", __FILE__, line); enforce!AssertError(range.front.type == type, "unittest failure 2", __FILE__, line); enforce!AssertError(range.front.pos == TextPos(row, col), "unittest failure 3", __FILE__, line); range.popFront(); } auto xml = "<?xml?>\n" ~ " <!--comment-->\n" ~ " <?pi?>\n" ~ " <root>\n" ~ " <!--comment--><!--comment-->\n" ~ " <?pi?>\n" ~ " <![CDATA[]]>\n" ~ " <empty/> </root>\n" ~ " <!--comment-->\n" ~ " <?pi?>\n"; { auto range = parseXML(xml); test(range, EntityType.comment, 2, 4); test(range, EntityType.pi, 3, 4); test(range, EntityType.elementStart, 4, 2); test(range, EntityType.comment, 5, 11); test(range, EntityType.comment, 5, 25); test(range, EntityType.pi, 6, 8); test(range, EntityType.cdata, 7, 3); test(range, EntityType.elementEmpty, 8, 15); test(range, EntityType.elementEnd, 8, 28); test(range, EntityType.comment, 9, 2); test(range, EntityType.pi, 10, 2); } auto range = parseXML!simpleXML(xml); test(range, EntityType.elementStart, 4, 2); test(range, EntityType.cdata, 7, 3); test(range, EntityType.elementStart, 8, 15); test(range, EntityType.elementEnd, 8, 15); test(range, EntityType.elementEnd, 8, 28); } /++ Gives the name of this Entity. Note that this is the direct name in the XML for this entity and does not contain any of the names of any of the parent entities that this entity has. If an application wants the full "path" of the entity, then it will have to keep track of that itself. The parser does not do that as it would require allocating memory. $(TABLE $(TR $(TH Supported $(LREF EntityType)s:)) $(TR $(TD $(LREF2 elementStart, EntityType))) $(TR $(TD $(LREF2 elementEnd, EntityType))) $(TR $(TD $(LREF2 elementEmpty, EntityType))) $(TR $(TD $(LREF2 pi, EntityType))) ) +/ @property SliceOfR name() { import dxml.internal : checkedSave, stripBCU; with(EntityType) { import std.format : format; assert(only(elementStart, elementEnd, elementEmpty, pi).canFind(_type), format("name cannot be called with %s", _type)); } return stripBCU!R(checkedSave(_name)); } /// static if(compileInTests) unittest { auto xml = "<root>\n" ~ " <empty/>\n" ~ " <?pi?>\n" ~ "</root>"; auto range = parseXML(xml); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "root"); range.popFront(); assert(range.front.type == EntityType.elementEmpty); assert(range.front.name == "empty"); range.popFront(); assert(range.front.type == EntityType.pi); assert(range.front.name == "pi"); range.popFront(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "root"); range.popFront(); assert(range.empty); } /++ Returns a lazy range of attributes for a start tag where each attribute is represented as a$(BR) $(D $(PHOBOS_REF_ALTTEXT Tuple, Tuple, std, typecons)!( $(LREF2 SliceOfR, EntityRange), $(D_STRING "name"), $(LREF2 SliceOfR, EntityRange), $(D_STRING "value"), $(LREF TextPos), $(D_STRING "pos"))). $(TABLE $(TR $(TH Supported $(LREF EntityType)s:)) $(TR $(TD $(LREF2 elementStart, EntityType))) $(TR $(TD $(LREF2 elementEmpty, EntityType))) ) See_Also: $(REF normalize, dxml, util)$(BR) $(REF asNormalized, dxml, util) +/ @property auto attributes() { with(EntityType) { import std.format : format; assert(_type == elementStart || _type == elementEmpty, format("attributes cannot be called with %s", _type)); } // STag ::= '<' Name (S Attribute)* S? '>' // Attribute ::= Name Eq AttValue // EmptyElemTag ::= '<' Name (S Attribute)* S? '/>' import std.typecons : Tuple; alias Attribute = Tuple!(SliceOfR, "name", SliceOfR, "value", TextPos, "pos"); static struct AttributeRange { @property Attribute front() { return _front; } void popFront() { import dxml.internal : stripBCU; stripWS(_text); if(_text.input.empty) { empty = true; return; } immutable pos = _text.pos; auto name = stripBCU!R(_text.takeName!'='()); stripWS(_text); popFrontAndIncCol(_text); stripWS(_text); _front = Attribute(name, stripBCU!R(takeEnquotedText(_text)), pos); } @property auto save() { import dxml.internal : checkedSave; auto retval = this; retval._front = Attribute(_front[0].save, checkedSave(_front[1]), _front[2]); retval._text.input = checkedSave(retval._text.input); return retval; } this(typeof(_text) text) { _front = Attribute.init; // This is utterly stupid. https://issues.dlang.org/show_bug.cgi?id=13945 _text = text; if(_text.input.empty) empty = true; else popFront(); } bool empty; Attribute _front; typeof(_savedText) _text; } return AttributeRange(_savedText.save); } /// static if(compileInTests) unittest { import std.algorithm.comparison : equal; import std.algorithm.iteration : filter; { auto xml = "<root/>"; auto range = parseXML(xml); assert(range.front.type == EntityType.elementEmpty); assert(range.front.attributes.empty); } { auto xml = "<root a='42' q='29' w='hello'/>"; auto range = parseXML(xml); assert(range.front.type == EntityType.elementEmpty); auto attrs = range.front.attributes; assert(attrs.front.name == "a"); assert(attrs.front.value == "42"); assert(attrs.front.pos == TextPos(1, 7)); attrs.popFront(); assert(attrs.front.name == "q"); assert(attrs.front.value == "29"); assert(attrs.front.pos == TextPos(1, 14)); attrs.popFront(); assert(attrs.front.name == "w"); assert(attrs.front.value == "hello"); assert(attrs.front.pos == TextPos(1, 21)); attrs.popFront(); assert(attrs.empty); } // Because the type of name and value is SliceOfR, == with a string // only works if the range passed to parseXML was string. { auto xml = filter!(a => true)("<root a='42' q='29' w='hello'/>"); auto range = parseXML(xml); assert(range.front.type == EntityType.elementEmpty); auto attrs = range.front.attributes; assert(equal(attrs.front.name, "a")); assert(equal(attrs.front.value, "42")); assert(attrs.front.pos == TextPos(1, 7)); attrs.popFront(); assert(equal(attrs.front.name, "q")); assert(equal(attrs.front.value, "29")); assert(attrs.front.pos == TextPos(1, 14)); attrs.popFront(); assert(equal(attrs.front.name, "w")); assert(equal(attrs.front.value, "hello")); assert(attrs.front.pos == TextPos(1, 21)); attrs.popFront(); assert(attrs.empty); } } static if(compileInTests) unittest { import core.exception : AssertError; import std.algorithm.comparison : equal; import std.exception : assertNotThrown, collectException, enforce; import std.typecons : Tuple, tuple; import dxml.internal : codeLen, testRangeFuncs; static bool cmpAttr(T, U)(T lhs, U rhs) { return equal(lhs[0].save, rhs[0].save) && equal(lhs[1].save, rhs[1].save); } static void test(alias func)(string text, EntityType type, Tuple!(string, string)[] expected, int row, int col, size_t line = __LINE__) { auto range = assertNotThrown!XMLParsingException(parseXML(func(text)), "unittest 1", __FILE__, line); enforce!AssertError(range.front.type == type, "unittest failure 2", __FILE__, line); enforce!AssertError(equal!cmpAttr(range.front.attributes, expected), "unittest failure 3", __FILE__, line); enforce!AssertError(range._text.pos == TextPos(row, col), "unittest failure 4", __FILE__, line); } static void testFail(alias func)(string text, int row, int col, size_t line = __LINE__) { auto e = collectException!XMLParsingException(parseXML(func(text))); enforce!AssertError(e !is null, "unittest failure 1", __FILE__, line); enforce!AssertError(e.pos == TextPos(row, col), "unittest failure 2", __FILE__, line); } static foreach(func; testRangeFuncs) { test!func("<root a='b'/>", EntityType.elementEmpty, [tuple("a", "b")], 1, 14); test!func("<root a = 'b' />", EntityType.elementEmpty, [tuple("a", "b")], 1, 17); test!func("<root \n\n a \n\n = \n\n 'b' \n\n />", EntityType.elementEmpty, [tuple("a", "b")], 9, 4); test!func("<root a='b'></root>", EntityType.elementStart, [tuple("a", "b")], 1, 13); test!func("<root a = 'b' ></root>", EntityType.elementStart, [tuple("a", "b")], 1, 16); test!func("<root \n a \n = \n 'b' \n ></root>", EntityType.elementStart, [tuple("a", "b")], 5, 3); test!func("<root foo='\n\n\n'/>", EntityType.elementEmpty, [tuple("foo", "\n\n\n")], 4, 4); test!func(`<root foo='"""'/>`, EntityType.elementEmpty, [tuple("foo", `"""`)], 1, 18); test!func(`<root foo="'''"/>`, EntityType.elementEmpty, [tuple("foo", `'''`)], 1, 18); test!func(`<root foo.=""/>`, EntityType.elementEmpty, [tuple("foo.", "")], 1, 16); test!func(`<root foo="bar="/>`, EntityType.elementEmpty, [tuple("foo", "bar=")], 1, 19); test!func("<root foo='bar' a='b' hello='world'/>", EntityType.elementEmpty, [tuple("foo", "bar"), tuple("a", "b"), tuple("hello", "world")], 1, 38); test!func(`<root foo="bar" a='b' hello="world"/>`, EntityType.elementEmpty, [tuple("foo", "bar"), tuple("a", "b"), tuple("hello", "world")], 1, 38); test!func(`<root foo="&#42;" a='&#x42;' hello="%foo"/>`, EntityType.elementEmpty, [tuple("foo", "&#42;"), tuple("a", "&#x42;"), tuple("hello", "%foo")], 1, 44); test!func(`<root foo="&amp;" a='vector&lt;int&gt;'></root>`, EntityType.elementStart, [tuple("foo", "&amp;"), tuple("a", "vector&lt;int&gt;"),], 1, 41); test!func(`<foo 京都市="ディラン"/>`, EntityType.elementEmpty, [tuple("京都市", "ディラン")], 1, codeLen!(func, `<foo 京都市="ディラン"/>`) + 1); test!func(`<root foo=">"/>`, EntityType.elementEmpty, [tuple("foo", ">")], 1, 16); test!func(`<root foo=">>>>>>"/>`, EntityType.elementEmpty, [tuple("foo", ">>>>>>")], 1, 21); test!func(`<root foo=">"></root>`, EntityType.elementStart, [tuple("foo", ">")], 1, 15); test!func(`<root foo=">>>>>>"></root>`, EntityType.elementStart, [tuple("foo", ">>>>>>")], 1, 20); test!func(`<root foo="bar" foos="ball"/>`, EntityType.elementEmpty, [tuple("foo", "bar"), tuple("foos", "ball")], 1, 30); testFail!func(`<root a="""/>`, 1, 11); testFail!func(`<root a='''/>`, 1, 11); testFail!func("<root a=/>", 1, 9); testFail!func("<root a='/>", 1, 9); testFail!func("<root a='/>", 1, 9); testFail!func("<root =''/>", 1, 7); testFail!func(`<root a ""/>`, 1, 9); testFail!func(`<root a""/>`, 1, 8); testFail!func(`<root a/>`, 1, 8); testFail!func("<root foo='bar' a=/>", 1, 19); testFail!func("<root foo='bar' a='/>", 1, 19); testFail!func("<root foo='bar' a='/>", 1, 19); testFail!func("<root foo='bar' =''/>", 1, 17); testFail!func("<root foo='bar' a= hello='world'/>", 1, 20); // It's 33 rather than 28, because it throws when processing the start tag and not when processing // the attributes. So, the mismatched quotes are detected before the attributes are checked. testFail!func("<root foo='bar' a=' hello='world'/>", 1, 33); testFail!func("<root foo='bar' ='' hello='world'/>", 1, 17); testFail!func("<root foo='bar'a='b'/>", 1, 16); testFail!func(`<root .foo="bar"/>`, 1, 7); testFail!func(`<root foo="<"/>`, 1, 12); testFail!func(`<root foo="<world"/>`, 1, 12); testFail!func(`<root foo="hello<world"/>`, 1, 17); testFail!func(`<root foo="&"/>`, 1, 12); testFail!func(`<root foo="hello&"/>`, 1, 17); testFail!func(`<root foo="hello&world"/>`, 1, 17); testFail!func(`<root foo="&;"/>`, 1, 12); testFail!func(`<root foo="&foo;"/>`, 1, 12); testFail!func(`<root foo="&#;"/>`, 1, 12); testFail!func(`<root foo="&#x;"/>`, 1, 12); testFail!func(`<root foo="&#A;"/>`, 1, 12); testFail!func(`<root foo="&#xG;"/>`, 1, 12); testFail!func(`<root foo="&#42"/>`, 1, 12); testFail!func(`<root foo="&#x42"/>`, 1, 12); testFail!func(`<root foo="&#x12;"/>`, 1, 12); testFail!func("<root\n\nfoo='\nbar&#x42'></root>", 4, 4); testFail!func(`<root a="""></root>`, 1, 11); testFail!func(`<root a='''></root>`, 1, 11); testFail!func("<root a=></root>", 1, 9); testFail!func("<root a='></root>", 1, 9); testFail!func("<root a='></root>", 1, 9); testFail!func("<root =''></root>", 1, 7); testFail!func(`<root a ""></root>`, 1, 9); testFail!func(`<root a""></root>`, 1, 8); testFail!func(`<root a></root>`, 1, 8); testFail!func("<root foo='bar' a=></root>", 1, 19); testFail!func("<root foo='bar' a='></root>", 1, 19); testFail!func("<root foo='bar' a='></root>", 1, 19); testFail!func("<root foo='bar' =''></root>", 1, 17); testFail!func("<root foo='bar' a= hello='world'></root>", 1, 20); testFail!func("<root foo='bar' a=' hello='world'></root>", 1, 33); testFail!func("<root foo='bar' ='' hello='world'></root>", 1, 17); testFail!func("<root foo='bar'a='b'></root>", 1, 16); testFail!func(`<root .foo='bar'></root>`, 1, 7); testFail!func(`<root foo="<"></root>`, 1, 12); testFail!func(`<root foo="<world"></root>`, 1, 12); testFail!func(`<root foo="hello<world"></root>`, 1, 17); testFail!func(`<root foo="&"></root>`, 1, 12); testFail!func(`<root foo="hello&"></root>`, 1, 17); testFail!func(`<root foo="hello&world"></root>`, 1, 17); testFail!func(`<root foo="&;"></root>`, 1, 12); testFail!func(`<root foo="&foo;"></root>`, 1, 12); testFail!func(`<root foo="&#;"></root>`, 1, 12); testFail!func(`<root foo="&#x;"></root>`, 1, 12); testFail!func(`<root foo="&#A;"></root>`, 1, 12); testFail!func(`<root foo="&#xG;"></root>`, 1, 12); testFail!func(`<root foo="&#42"></root>`, 1, 12); testFail!func(`<root foo="&#x42"></root>`, 1, 12); testFail!func(`<root foo="&#x12;"></root>`, 1, 12); testFail!func(`<root a='42' a='19'/>`, 1, 14); testFail!func(`<root a='42' b='hello' a='19'/>`, 1, 24); testFail!func(`<root a='42' b='hello' a='19' c=''/>`, 1, 24); testFail!func(`<root a='' b='' c='' d='' e='' f='' g='' e='' h=''/>`, 1, 42); testFail!func(`<root foo='bar' foo='bar'/>`, 1, 17); } } /++ Returns the textual value of this Entity. In the case of $(LREF EntityType.pi), this is the text that follows the name, whereas in the other cases, the text is the entire contents of the entity (save for the delimeters on the ends if that entity has them). $(TABLE $(TR $(TH Supported $(LREF EntityType)s:)) $(TR $(TD $(LREF2 cdata, EntityType))) $(TR $(TD $(LREF2 comment, EntityType))) $(TR $(TD $(LREF2 pi, EntityType))) $(TR $(TD $(LREF2 _text, EntityType))) ) See_Also: $(REF normalize, dxml, util)$(BR) $(REF asNormalized, dxml, util)$(BR) $(REF stripIndent, dxml, util)$(BR) $(REF withoutIndent, dxml, util) +/ @property SliceOfR text() { import dxml.internal : checkedSave, stripBCU; with(EntityType) { import std.format : format; assert(only(cdata, comment, pi, text).canFind(_type), format("text cannot be called with %s", _type)); } return stripBCU!R(checkedSave(_savedText.input)); } /// static if(compileInTests) unittest { auto xml = "<?xml version='1.0'?>\n" ~ "<?instructionName?>\n" ~ "<?foo here is something to say?>\n" ~ "<root>\n" ~ " <![CDATA[ Yay! random text >> << ]]>\n" ~ " <!-- some random comment -->\n" ~ " <p>something here</p>\n" ~ " <p>\n" ~ " something else\n" ~ " here</p>\n" ~ "</root>"; auto range = parseXML(xml); // "<?instructionName?>\n" ~ assert(range.front.type == EntityType.pi); assert(range.front.name == "instructionName"); assert(range.front.text.empty); // "<?foo here is something to say?>\n" ~ range.popFront(); assert(range.front.type == EntityType.pi); assert(range.front.name == "foo"); assert(range.front.text == "here is something to say"); // "<root>\n" ~ range.popFront(); assert(range.front.type == EntityType.elementStart); // " <![CDATA[ Yay! random text >> << ]]>\n" ~ range.popFront(); assert(range.front.type == EntityType.cdata); assert(range.front.text == " Yay! random text >> << "); // " <!-- some random comment -->\n" ~ range.popFront(); assert(range.front.type == EntityType.comment); assert(range.front.text == " some random comment "); // " <p>something here</p>\n" ~ range.popFront(); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "p"); range.popFront(); assert(range.front.type == EntityType.text); assert(range.front.text == "something here"); range.popFront(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "p"); // " <p>\n" ~ // " something else\n" ~ // " here</p>\n" ~ range.popFront(); assert(range.front.type == EntityType.elementStart); range.popFront(); assert(range.front.type == EntityType.text); assert(range.front.text == "\n something else\n here"); range.popFront(); assert(range.front.type == EntityType.elementEnd); // "</root>" range.popFront(); assert(range.front.type == EntityType.elementEnd); range.popFront(); assert(range.empty); } // Reduce the chance of bugs if reference-type ranges are involved. static if(!isDynamicArray!R) this(this) { with(EntityType) final switch(_type) { case cdata: break; case comment: break; case elementStart: { _name = _name.save; break; } case elementEnd: goto case elementStart; case elementEmpty: goto case elementStart; case text: break; case pi: goto case elementStart; } if(_type != EntityType.elementEnd) _savedText = _savedText.save; } static if(compileInTests) unittest { import std.algorithm.comparison : equal; import dxml.internal : testRangeFuncs; static bool cmpAttr(T)(T lhs, T rhs) { return equal(lhs.name.save, rhs.name.save) && equal(lhs.value.save, rhs.value.save); } { auto xml = "<root>\n" ~ " <foo a='42'/>\n" ~ " <foo b='42'/>\n" ~ " <nocomment>nothing to say</nocomment>\n" ~ "</root>"; // The duplicate lines aren't typos. We want to ensure that the // values are independent and nothing was consumed. static foreach(func; testRangeFuncs) {{ auto range = parseXML(func(xml)); range.popFront(); { auto entity = range.front; auto entity2 = entity; assert(entity.pos == entity2.pos); assert(equal(entity.name, entity2.name)); assert(equal(entity.name, entity2.name)); assert(equal!cmpAttr(entity.attributes, entity2.attributes)); assert(equal!cmpAttr(entity.attributes, entity2.attributes)); range.popFront(); assert(entity.pos == entity2.pos); assert(entity.pos != range.front.pos); } range.popFront(); range.popFront(); { auto entity = range.front; auto entity2 = entity; assert(entity.pos == entity2.pos); assert(equal(entity.text, entity2.text)); assert(equal(entity.text, entity2.text)); range.popFront(); assert(entity.pos == entity2.pos); assert(entity.pos != range.front.pos); } }} } { auto xml = "<root>\n" ~ " <![CDATA[whatever]]>\n" ~ " <?pi?>\n" ~ " <!--comment-->\n" ~ " <empty/>\n" ~ " <noend a='foo' b='bar'/>\n" ~ " <foo baz='42'></foo>\n" ~ "</root>"; static foreach(func; testRangeFuncs) { for(auto range = parseXML(func(xml)); !range.empty; range.popFront()) { auto entity = range.front; auto entity2 = entity; assert(entity.pos == range.front.pos); assert(entity.pos == entity2.pos); assert(entity.type == range.front.type); assert(entity.type == entity2.type); with(EntityType) final switch(entity.type) { case cdata: goto case text; case comment: goto case text; case elementStart: { assert(equal!cmpAttr(entity.attributes, range.front.attributes)); assert(equal!cmpAttr(entity.attributes, entity2.attributes)); goto case elementEnd; } case elementEnd: { assert(equal(entity.name, range.front.name)); assert(equal(entity.name, entity2.name)); break; } case elementEmpty: goto case elementStart; case text: { assert(equal(entity.text, range.front.text)); assert(equal(entity.text, entity2.text)); break; } case pi: { assert(equal(entity.name, range.front.name)); assert(equal(entity.name, entity2.name)); goto case text; } } } } } } private: this(EntityType type) { _type = type; // None of these initializations should be required. https://issues.dlang.org/show_bug.cgi?id=13945 _name = typeof(_name).init; _savedText = typeof(_savedText).init; } EntityType _type; TextPos _pos; Taken _name; typeof(EntityRange._savedText) _savedText; } /++ Returns the $(LREF Entity) representing the entity in the XML document which was most recently parsed. +/ @property Entity front() { auto retval = Entity(_type); with(EntityType) final switch(_type) { case cdata: retval._savedText = _savedText.save; break; case comment: goto case cdata; case elementStart: retval._name = _name.save; retval._savedText = _savedText.save; break; case elementEnd: retval._name = _name.save; break; case elementEmpty: goto case elementStart; case text: goto case cdata; case pi: goto case elementStart; } retval._pos = _entityPos; return retval; } /++ Move to the next entity. The next entity is the next one that is linearly in the XML document. So, if the current entity has child entities, the next entity will be the first child entity, whereas if it has no child entities, it will be the next entity at the same level. Throws: $(LREF XMLParsingException) on invalid XML. +/ void popFront() { final switch(_grammarPos) with(GrammarPos) { case documentStart: _parseDocumentStart(); break; case prologMisc1: _parseAtPrologMisc!1(); break; case prologMisc2: _parseAtPrologMisc!2(); break; case splittingEmpty: { _type = EntityType.elementEnd; _tagStack.sawEntity(); _grammarPos = _tagStack.depth == 0 ? GrammarPos.endMisc : GrammarPos.contentCharData2; break; } case contentCharData1: { assert(_type == EntityType.elementStart); _tagStack.pushTag(_name.save); _parseAtContentCharData(); break; } case contentMid: _parseAtContentMid(); break; case contentCharData2: _parseAtContentCharData(); break; case endTag: _parseElementEnd(); break; case endMisc: _parseAtEndMisc(); break; case documentEnd: assert(0, "It's illegal to call popFront() on an empty EntityRange."); } } /++ Whether the end of the XML document has been reached. Note that because an $(LREF XMLParsingException) will be thrown an invalid XML, it's actually possible to call $(LREF2 front, EntityRange.front) and $(LREF2 popFront, EntityRange.popFront) without checking empty if the only way that empty would be true is if the XML were invalid (e.g. if at a start tag, it's a given that there's at least one end tag left in the document unless it's invalid XML). However, of course, caution should be used to ensure that incorrect assumptions are not made that allow the document to reach its end earlier than predicted without throwing an $(LREF XMLParsingException), since it's still an error to call $(LREF2 front, EntityRange.front) or $(LREF2 popFront, EntityRange.popFront) if empty would return false. +/ @property bool empty() @safe const pure nothrow @nogc { return _grammarPos == GrammarPos.documentEnd; } /++ Forward range function for obtaining a copy of the range which can then be iterated independently of the original. +/ @property auto save() { // The init check nonsense is because of ranges whose init values blow // up when save is called (e.g. a range that's a class). auto retval = this; if(retval._name !is typeof(retval._name).init) retval._name = _name.save; if(retval._text.input !is typeof(retval._text.input).init) retval._text.input = _text.input.save; if(retval._savedText.input !is typeof(retval._savedText.input).init) retval._savedText.input = _savedText.input.save; return retval; } static if(compileInTests) unittest { import std.algorithm.comparison : equal; import std.exception : assertNotThrown; import dxml.internal : testRangeFuncs; static bool cmpAttr(T)(T lhs, T rhs) { return equal(lhs.name.save, rhs.name.save) && equal(lhs.value.save, rhs.value.save); } static void testEqual(ER)(ER one, ER two) { while(!one.empty && !two.empty) { auto left = one.front; auto right = two.front; assert(left.pos == right.pos); assert(left.type == right.type); with(EntityType) final switch(left.type) { case cdata: goto case text; case comment: goto case text; case elementStart: { assert(equal!cmpAttr(left.attributes, right.attributes)); goto case elementEnd; } case elementEnd: assert(equal(left.name, right.name)); break; case elementEmpty: goto case elementStart; case text: assert(equal(left.text, right.text)); break; case pi: assert(equal(left.name, right.name)); goto case text; } one.popFront(); two.popFront(); } assert(one.empty); assert(two.empty); } auto xml = "<root>\n" ~ " <!-- comment -->\n" ~ " <something>\n" ~ " <else/>\n" ~ " somet text <i>goes</i> here\n" ~ " </something>\n" ~ "</root>"; static foreach(i, func; testRangeFuncs) {{ auto text = func(xml); testEqual(parseXML(text.save), parseXML(text.save)); auto range = parseXML(text.save); testEqual(range.save, range.save); }} } /++ Returns an empty range. This corresponds to $(PHOBOS_REF _takeNone, std, range) except that it doesn't create a wrapper type. +/ EntityRange takeNone() { auto retval = save; retval._grammarPos = GrammarPos.documentEnd; return retval; } private: void _parseDocumentStart() { auto orig = _text.save; immutable wasWS = _text.stripWS(); if(_text.stripStartsWith("<?xml")) { if(wasWS) throw new XMLParsingException("Cannot have whitespace before the <?xml...?> declaration", TextPos.init); checkNotEmpty(_text); if(_text.input.front == '?' || isSpace(_text.input.front)) _text.skipUntilAndDrop!"?>"(); else _text = orig; } _grammarPos = GrammarPos.prologMisc1; _parseAtPrologMisc!1(); } static if(compileInTests) unittest { import core.exception : AssertError; import std.exception : assertNotThrown, enforce; import dxml.internal : testRangeFuncs; static void test(alias func)(string xml, int row, int col, size_t line = __LINE__) { auto range = assertNotThrown!XMLParsingException(parseXML(func(xml))); enforce!AssertError(range._type == EntityType.elementEmpty, "unittest failure 1", __FILE__, line); enforce!AssertError(range._text.pos == TextPos(row, col), "unittest failure 2", __FILE__, line); } static foreach(func; testRangeFuncs) { test!func("<root/>", 1, 8); test!func("\n\t\n <root/> \n", 3, 9); test!func("<?xml\n\n\nversion='1.8'\n\n\n\nencoding='UTF-8'\n\n\nstandalone='yes'\n?><root/>", 12, 10); test!func("<?xml\n\n\n \r\r\r\n\nversion='1.8'?><root/>", 6, 23); test!func("<?xml\n\n\n \r\r\r\n\nversion='1.8'?>\n <root/>", 7, 13); test!func("<root/>", 1, 8); test!func("\n\t\n <root/> \n", 3, 9); } } // Parse at GrammarPos.prologMisc1 or GrammarPos.prologMisc2. void _parseAtPrologMisc(int miscNum)() { static assert(miscNum == 1 || miscNum == 2); // document ::= prolog element Misc* // prolog ::= XMLDecl? Misc* (doctypedecl Misc*)? // Misc ::= Comment | PI | S stripWS(_text); checkNotEmpty(_text); if(_text.input.front != '<') throw new XMLParsingException("Expected <", _text.pos); popFrontAndIncCol(_text); checkNotEmpty(_text); switch(_text.input.front) { // Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->' // doctypedecl ::= '<!DOCTYPE' S Name (S ExternalID)? S? ('[' intSubset ']' S?)? '>' case '!': { immutable bangPos = _text.pos; popFrontAndIncCol(_text); if(_text.stripStartsWith("--")) { _parseComment(); static if(config.skipComments == SkipComments.yes) _parseAtPrologMisc!miscNum(); break; } static if(miscNum == 1) { if(_text.stripStartsWith("DOCTYPE")) { if(!_text.stripWS()) throw new XMLParsingException("Whitespace must follow <!DOCTYPE", _text.pos); _parseDoctypeDecl(); break; } throw new XMLParsingException("Expected Comment or DOCTYPE section", bangPos); } else { if(_text.stripStartsWith("DOCTYPE")) { throw new XMLParsingException("Only one <!DOCTYPE ...> declaration allowed per XML document", bangPos); } throw new XMLParsingException("Expected Comment", bangPos); } } // PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>' case '?': { _parsePI(); static if(config.skipPI == SkipPI.yes) popFront(); break; } // element ::= EmptyElemTag | STag content ETag default: { _parseElementStart(); break; } } } // Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->' // Parses a comment. <!-- was already removed from the front of the input. void _parseComment() { static if(config.skipComments == SkipComments.yes) _text.skipUntilAndDrop!"--"(); else { _entityPos = TextPos(_text.pos.line, _text.pos.col - 4); _type = EntityType.comment; _tagStack.sawEntity(); _savedText.pos = _text.pos; _savedText.input = _text.takeUntilAndDrop!"--"(); } if(_text.input.empty || _text.input.front != '>') throw new XMLParsingException("Comments cannot contain -- and cannot be terminated by --->", _text.pos); // This is here rather than at the end of the previous static if block // so that the error message for improperly terminating a comment takes // precedence over the one involving invalid characters in the comment. static if(config.skipComments == SkipComments.no) checkText!true(_savedText); popFrontAndIncCol(_text); } static if(compileInTests) unittest { import core.exception : AssertError; import std.algorithm.comparison : equal; import std.exception : assertNotThrown, assertThrown, collectException, enforce; import dxml.internal : codeLen, testRangeFuncs; static void test(alias func)(string text, string expected, int row, int col, size_t line = __LINE__) { auto range = assertNotThrown!XMLParsingException(parseXML(func(text ~ "<root/>"))); enforce!AssertError(range.front.type == EntityType.comment, "unittest failure 1", __FILE__, line); enforce!AssertError(equal(range.front.text, expected), "unittest failure 2", __FILE__, line); enforce!AssertError(range._text.pos == TextPos(row, col), "unittest failure 3", __FILE__, line); } static void testFail(alias func)(string text, int row, int col, size_t line = __LINE__) { auto e = collectException!XMLParsingException(parseXML(func(text ~ "<root/>"))); enforce!AssertError(e !is null, "unittest failure 1", __FILE__, line); enforce!AssertError(e.pos == TextPos(row, col), "unittest failure 2", __FILE__, line); } static foreach(func; testRangeFuncs) { test!func("<!--foo-->", "foo", 1, 11); test!func("<!-- foo -->", " foo ", 1, 13); test!func("<!-- -->", " ", 1, 9); test!func("<!---->", "", 1, 8); test!func("<!--- comment -->", "- comment ", 1, 18); test!func("<!-- \n foo \n -->", " \n foo \n ", 3, 5); test!func("<!--京都市 ディラン-->", "京都市 ディラン", 1, codeLen!(func, "<!--京都市 ディラン-->") + 1); test!func("<!--&-->", "&", 1, 9); test!func("<!--<-->", "<", 1, 9); test!func("<!-->-->", ">", 1, 9); test!func("<!--->-->", "->", 1, 10); testFail!func("<!- comment -->", 1, 2); testFail!func("<!-- comment ->", 1, 5); testFail!func("<!-- comment --->", 1, 16); testFail!func("<!---- comment -->", 1, 7); testFail!func("<!-- comment -- comment -->", 1, 16); testFail!func("<!->", 1, 2); testFail!func("<!-->", 1, 5); testFail!func("<!--->", 1, 5); testFail!func("<!----->", 1, 7); testFail!func("<!blah>", 1, 2); testFail!func("<! blah>", 1, 2); testFail!func("<!-- \n\n \v \n -->", 3, 4); testFail!func("<!--京都市 ディラン\v-->", 1, codeLen!(func, "<!--京都市 ディラン\v")); { auto xml = func("<!DOCTYPE foo><!-- comment --><root/>"); auto range = assertNotThrown!XMLParsingException(parseXML(xml)); assert(range.front.type == EntityType.comment); assert(equal(range.front.text, " comment ")); } { auto xml = func("<root><!-- comment --></root>"); auto range = assertNotThrown!XMLParsingException(parseXML(xml)); assertNotThrown!XMLParsingException(range.popFront()); assert(range.front.type == EntityType.comment); assert(equal(range.front.text, " comment ")); } { auto xml = func("<root/><!-- comment -->"); auto range = assertNotThrown!XMLParsingException(parseXML(xml)); assertNotThrown!XMLParsingException(range.popFront()); assert(range.front.type == EntityType.comment); assert(equal(range.front.text, " comment ")); } static foreach(comment; ["<!foo>", "<! foo>", "<!->", "<!-->", "<!--->"]) { { auto xml = func("<!DOCTYPE foo>" ~ comment ~ "<root/>"); assertThrown!XMLParsingException(parseXML(xml)); } { auto xml = func("<root>" ~ comment ~ "<root>"); auto range = assertNotThrown!XMLParsingException(parseXML(xml)); assertThrown!XMLParsingException(range.popFront()); } { auto xml = func("<root/>" ~ comment); auto range = assertNotThrown!XMLParsingException(parseXML(xml)); assertThrown!XMLParsingException(range.popFront()); } } { auto xml = "<!--one-->\n" ~ "<!--two-->\n" ~ "<root>\n" ~ " <!--three-->\n" ~ " <!--four-->\n" ~ "</root>\n" ~ "<!--five-->\n" ~ "<!--six-->"; auto text = func(xml); { auto range = parseXML(text.save); assert(range.front.type == EntityType.comment); assert(equal(range.front.text, "one")); assertNotThrown!XMLParsingException(range.popFront()); assert(range.front.type == EntityType.comment); assert(equal(range.front.text, "two")); assertNotThrown!XMLParsingException(range.popFront()); assert(range.front.type == EntityType.elementStart); assert(equal(range.front.name, "root")); assertNotThrown!XMLParsingException(range.popFront()); assert(range.front.type == EntityType.comment); assert(equal(range.front.text, "three")); assertNotThrown!XMLParsingException(range.popFront()); assert(range.front.type == EntityType.comment); assert(equal(range.front.text, "four")); assertNotThrown!XMLParsingException(range.popFront()); assert(range.front.type == EntityType.elementEnd); assert(equal(range.front.name, "root")); assertNotThrown!XMLParsingException(range.popFront()); assert(range.front.type == EntityType.comment); assert(equal(range.front.text, "five")); assertNotThrown!XMLParsingException(range.popFront()); assert(range.front.type == EntityType.comment); assert(equal(range.front.text, "six")); assertNotThrown!XMLParsingException(range.popFront()); assert(range.empty); } { auto range = parseXML!simpleXML(text.save); assert(range.front.type == EntityType.elementStart); assert(equal(range.front.name, "root")); assertNotThrown!XMLParsingException(range.popFront()); assert(range.front.type == EntityType.elementEnd); assert(equal(range.front.name, "root")); assertNotThrown!XMLParsingException(range.popFront()); assert(range.empty); } } } } // PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>' // PITarget ::= Name - (('X' | 'x') ('M' | 'm') ('L' | 'l')) // Parses a processing instruction. < was already removed from the input. void _parsePI() { _entityPos = TextPos(_text.pos.line, _text.pos.col - 1); assert(_text.input.front == '?'); popFrontAndIncCol(_text); static if(config.skipPI == SkipPI.yes) _text.skipUntilAndDrop!"?>"(); else { immutable posAtName = _text.pos; _type = EntityType.pi; _tagStack.sawEntity(); _name = takeName!'?'(_text); immutable posAtWS = _text.pos; stripWS(_text); checkNotEmpty(_text); _savedText.pos = _text.pos; _savedText.input = _text.takeUntilAndDrop!"?>"(); checkText!true(_savedText); if(walkLength(_name.save) == 3) { // FIXME icmp doesn't compile right now due to an issue with // byUTF that needs to be looked into. /+ import std.uni : icmp; if(icmp(_name.save, "xml") == 0) throw new XMLParsingException("Processing instructions cannot be named xml", posAtName); +/ auto temp = _name.save; if(temp.front == 'x' || temp.front == 'X') { temp.popFront(); if(temp.front == 'm' || temp.front == 'M') { temp.popFront(); if(temp.front == 'l' || temp.front == 'L') throw new XMLParsingException("Processing instructions cannot be named xml", posAtName); } } } } } static if(compileInTests) unittest { import core.exception : AssertError; import std.algorithm.comparison : equal; import std.exception : assertNotThrown, assertThrown, collectException, enforce; import std.utf : byUTF; import dxml.internal : codeLen, testRangeFuncs; static void test(alias func)(string text, string name, string expected, int row, int col, size_t line = __LINE__) { auto range = assertNotThrown!XMLParsingException(parseXML(func(text ~ "<root/>")), "unittest failure 1", __FILE__, line); enforce!AssertError(range.front.type == EntityType.pi, "unittest failure 2", __FILE__, line); enforce!AssertError(equal(range.front.name, name), "unittest failure 3", __FILE__, line); enforce!AssertError(equal(range.front.text, expected), "unittest failure 4", __FILE__, line); enforce!AssertError(range._text.pos == TextPos(row, col), "unittest failure 5", __FILE__, line); } static void testFail(alias func)(string text, int row, int col, size_t line = __LINE__) { auto e = collectException!XMLParsingException(parseXML(func(text ~ "<root/>"))); enforce!AssertError(e !is null, "unittest failure 1", __FILE__, line); enforce!AssertError(e.pos == TextPos(row, col), "unittest failure 2", __FILE__, line); } static foreach(func; testRangeFuncs) { test!func("<?a?>", "a", "", 1, 6); test!func("<?foo?>", "foo", "", 1, 8); test!func("<?foo.?>", "foo.", "", 1, 9); test!func("<?foo bar?>", "foo", "bar", 1, 12); test!func("<?xmf bar?>", "xmf", "bar", 1, 12); test!func("<?xmlfoo bar?>", "xmlfoo", "bar", 1, 15); test!func("<?foo bar baz?>", "foo", "bar baz", 1, 16); test!func("<?foo\nbar baz?>", "foo", "bar baz", 2, 10); test!func("<?foo \n bar baz?>", "foo", "bar baz", 2, 11); test!func("<?foo bar\nbaz?>", "foo", "bar\nbaz", 2, 6); test!func("<?dlang is awesome?>", "dlang", "is awesome", 1, 21); test!func("<?dlang is awesome! ?>", "dlang", "is awesome! ", 1, 23); test!func("<?dlang\n\nis\n\nawesome\n\n?>", "dlang", "is\n\nawesome\n\n", 7, 3); test!func("<?京都市 ディラン?>", "京都市", "ディラン", 1, codeLen!(func, "<?京都市 ディラン?>") + 1); test!func("<?foo bar&baz?>", "foo", "bar&baz", 1, 16); test!func("<?foo bar<baz?>", "foo", "bar<baz", 1, 16); test!func("<?pi ?>", "pi", "", 1, 8); test!func("<?pi\n?>", "pi", "", 2, 3); test!func("<?foo ??>", "foo", "?", 1, 10); test!func("<?pi some data ? > <??>", "pi", "some data ? > <?", 1, 24); testFail!func("<??>", 1, 3); testFail!func("<? ?>", 1, 3); testFail!func("<?xml?><?xml?>", 1, 10); testFail!func("<?XML?>", 1, 3); testFail!func("<?xMl?>", 1, 3); testFail!func("<?foo>", 1, 6); testFail!func("<? foo?>", 1, 3); testFail!func("<?\nfoo?>", 1, 3); testFail!func("<??foo?>", 1, 3); testFail!func("<?.foo?>", 1, 3); testFail!func("<?foo bar\vbaz?>", 1, 10); { auto xml = func("<!DOCTYPE foo><?foo bar?><root/>"); auto range = assertNotThrown!XMLParsingException(parseXML(xml)); assert(range.front.type == EntityType.pi); assert(equal(range.front.name, "foo")); assert(equal(range.front.text, "bar")); } { auto xml = func("<root><?foo bar?></root>"); auto range = assertNotThrown!XMLParsingException(parseXML(xml)); assertNotThrown!XMLParsingException(range.popFront()); assert(equal(range.front.name, "foo")); assert(equal(range.front.text, "bar")); } { auto xml = func("<root/><?foo bar?>"); auto range = assertNotThrown!XMLParsingException(parseXML(xml)); assertNotThrown!XMLParsingException(range.popFront()); assert(equal(range.front.name, "foo")); assert(equal(range.front.text, "bar")); } static foreach(pi; ["<?foo>", "<foo?>", "<? foo>"]) { { auto xml = func("<!DOCTYPE foo>" ~ pi ~ "<root/>"); assertThrown!XMLParsingException(parseXML(xml)); } { auto xml = func("<root>" ~ pi ~ "<root>"); auto range = assertNotThrown!XMLParsingException(parseXML(xml)); assertThrown!XMLParsingException(range.popFront()); } { auto xml = func("<root/>" ~ pi); auto range = assertNotThrown!XMLParsingException(parseXML(xml)); assertThrown!XMLParsingException(range.popFront()); } } { auto xml = "<?one?>\n" ~ "<?two?>\n" ~ "<root>\n" ~ " <?three?>\n" ~ " <?four?>\n" ~ "</root>\n" ~ "<?five?>\n" ~ "<?six?>"; auto text = func(xml); { auto range = parseXML(text.save); assert(range.front.type == EntityType.pi); assert(equal(range.front.name, "one")); assertNotThrown!XMLParsingException(range.popFront()); assert(range.front.type == EntityType.pi); assert(equal(range.front.name, "two")); assertNotThrown!XMLParsingException(range.popFront()); assert(range.front.type == EntityType.elementStart); assert(equal(range.front.name, "root")); assertNotThrown!XMLParsingException(range.popFront()); assert(range.front.type == EntityType.pi); assert(equal(range.front.name, "three")); assertNotThrown!XMLParsingException(range.popFront()); assert(range.front.type == EntityType.pi); assert(equal(range.front.name, "four")); assertNotThrown!XMLParsingException(range.popFront()); assert(range.front.type == EntityType.elementEnd); assert(equal(range.front.name, "root")); assertNotThrown!XMLParsingException(range.popFront()); assert(range.front.type == EntityType.pi); assert(equal(range.front.name, "five")); assertNotThrown!XMLParsingException(range.popFront()); assert(range.front.type == EntityType.pi); assert(equal(range.front.name, "six")); assertNotThrown!XMLParsingException(range.popFront()); assert(range.empty); } { auto range = parseXML!simpleXML(text.save); assert(range.front.type == EntityType.elementStart); assert(equal(range.front.name, "root")); assertNotThrown!XMLParsingException(range.popFront()); assert(range.front.type == EntityType.elementEnd); assert(equal(range.front.name, "root")); assertNotThrown!XMLParsingException(range.popFront()); assert(range.empty); } } } } // CDSect ::= CDStart CData CDEnd // CDStart ::= '<![CDATA[' // CData ::= (Char* - (Char* ']]>' Char*)) // CDEnd ::= ']]>' // Parses a CDATA. <![CDATA[ was already removed from the front of the input. void _parseCDATA() { _entityPos = TextPos(_text.pos.line, _text.pos.col - cast(int)"<![CDATA[".length); _type = EntityType.cdata; _tagStack.sawEntity(); _savedText.pos = _text.pos; _savedText.input = _text.takeUntilAndDrop!"]]>"; checkText!true(_savedText); _grammarPos = GrammarPos.contentCharData2; } static if(compileInTests) unittest { import core.exception : AssertError; import std.algorithm.comparison : equal; import std.exception : assertNotThrown, collectException, enforce; import dxml.internal : codeLen, testRangeFuncs; static void test(alias func)(string text, string expected, int row, int col, size_t line = __LINE__) { auto pos = TextPos(row, col + (row == 1 ? cast(int)"<root>".length : 0)); auto range = parseXML(func("<root>" ~ text ~ "<root/>")); assertNotThrown!XMLParsingException(range.popFront()); enforce!AssertError(range.front.type == EntityType.cdata, "unittest failure 1", __FILE__, line); enforce!AssertError(equal(range.front.text, expected), "unittest failure 2", __FILE__, line); enforce!AssertError(range._text.pos == pos, "unittest failure 3", __FILE__, line); } static void testFail(alias func)(string text, int row, int col, size_t line = __LINE__) { auto pos = TextPos(row, col + (row == 1 ? cast(int)"<root>".length : 0)); auto range = parseXML(func("<root>" ~ text ~ "<root/>")); auto e = collectException!XMLParsingException(range.popFront()); enforce!AssertError(e !is null, "unittest failure 1", __FILE__, line); enforce!AssertError(e.pos == pos, "unittest failure 2", __FILE__, line); } static foreach(func; testRangeFuncs) { test!func("<![CDATA[]]>", "", 1, 13); test!func("<![CDATA[hello world]]>", "hello world", 1, 24); test!func("<![CDATA[\nhello\n\nworld\n]]>", "\nhello\n\nworld\n", 5, 4); test!func("<![CDATA[京都市]]>", "京都市", 1, codeLen!(func, "<![CDATA[京都市]>") + 2); test!func("<![CDATA[<><><><><<<<>>>>>> ] ] ]> <]> <<>> ][][] >> ]]>", "<><><><><<<<>>>>>> ] ] ]> <]> <<>> ][][] >> ", 1, 57); test!func("<![CDATA[&]]>", "&", 1, 14); testFail!func("<[CDATA[]>", 1, 2); testFail!func("<![CDAT[]>", 1, 2); testFail!func("<![CDATA]>", 1, 2); testFail!func("<![CDATA[>", 1, 10); testFail!func("<![CDATA[]", 1, 10); testFail!func("<![CDATA[]>", 1, 10); testFail!func("<![CDATA[ \v ]]>", 1, 11); testFail!func("<![CDATA[ \n\n \v \n ]]>", 3, 2); } } // doctypedecl ::= '<!DOCTYPE' S Name (S ExternalID)? S? ('[' intSubset ']' S?)? '>' // DeclSep ::= PEReference | S // intSubset ::= (markupdecl | DeclSep)* // markupdecl ::= elementdecl | AttlistDecl | EntityDecl | NotationDecl | PI | Comment // Parse doctypedecl after GrammarPos.prologMisc1. // <!DOCTYPE and any whitespace after it should have already been removed // from the input. void _parseDoctypeDecl() { outer: while(true) { _text.skipToOneOf!('"', '\'', '[', '>')(); switch(_text.input.front) { static foreach(quote; ['"', '\'']) { case quote: { popFrontAndIncCol(_text); _text.skipUntilAndDrop!([quote])(); continue outer; } } case '[': { popFrontAndIncCol(_text); while(true) { checkNotEmpty(_text); _text.skipToOneOf!('"', '\'', ']')(); switch(_text.input.front) { case '"': { popFrontAndIncCol(_text); _text.skipUntilAndDrop!`"`(); continue; } case '\'': { popFrontAndIncCol(_text); _text.skipUntilAndDrop!`'`(); continue; } case ']': { popFrontAndIncCol(_text); stripWS(_text); if(_text.input.empty || _text.input.front != '>') throw new XMLParsingException("Incorrectly terminated <!DOCTYPE> section.", _text.pos); popFrontAndIncCol(_text); _parseAtPrologMisc!2(); return; } default: assert(0); } } } case '>': { popFrontAndIncCol(_text); _parseAtPrologMisc!2(); break; } default: assert(0); } break; } } static if(compileInTests) unittest { import core.exception : AssertError; import std.exception : assertNotThrown, collectException, enforce; import dxml.internal : testRangeFuncs; static void test(alias func)(string text, int row, int col, size_t line = __LINE__) { auto pos = TextPos(row, col + cast(int)"<root/>".length); auto range = assertNotThrown!XMLParsingException(parseXML(func(text ~ "<root/>")), "unittest failure 1", __FILE__, line); enforce!AssertError(range.front.type == EntityType.elementEmpty, "unittest failure 2", __FILE__, line); enforce!AssertError(range._text.pos == pos, "unittest failure 3", __FILE__, line); } static void testFail(alias func)(string text, int row, int col, size_t line = __LINE__) { auto e = collectException!XMLParsingException(parseXML(func(text ~ "<root/>"))); enforce!AssertError(e !is null, "unittest failure 1", __FILE__, line); enforce!AssertError(e.pos == TextPos(row, col), "unittest failure 2", __FILE__, line); } static foreach(func; testRangeFuncs) { test!func("<!DOCTYPE name>", 1, 16); test!func("<!DOCTYPE \n\n\n name>", 4, 7); test!func("<!DOCTYPE name \n\n\n >", 4, 3); test!func("<!DOCTYPE name []>", 1, 19); test!func("<!DOCTYPE \n\n\n name []>", 4, 10); test!func("<!DOCTYPE name \n\n\n []>", 4, 5); test!func(`<!DOCTYPE name PUBLIC "'''" '"""'>`, 1, 35); test!func(`<!DOCTYPE name PUBLIC "'''" '"""' []>`, 1, 38); test!func(`<!DOCTYPE name PUBLIC 'foo' "'''">`, 1, 35); test!func(`<!DOCTYPE name PUBLIC 'foo' '"""' []>`, 1, 38); test!func("<!DOCTYPE name [ <!ELEMENT foo EMPTY > ]>", 1, 42); test!func("<!DOCTYPE name [ <!ELEMENT bar ANY > ]>", 1, 40); test!func("<!DOCTYPE name [ <!ELEMENT mixed (#PCDATA) > ]>", 1, 48); test!func("<!DOCTYPE name [ <!ELEMENT mixed (#PCDATA | foo)> ]>", 1, 53); test!func("<!DOCTYPE name [ <!ELEMENT kids (foo) > ]>", 1, 43); test!func("<!DOCTYPE name [ <!ELEMENT kids (foo | bar)> ]>", 1, 48); test!func("<!DOCTYPE name [ <!ATTLIST foo> ]>", 1, 35); test!func("<!DOCTYPE name [ <!ATTLIST foo def CDATA #REQUIRED> ]>", 1, 55); test!func(`<!DOCTYPE name [ <!ENTITY foo "bar"> ]>`, 1, 40); test!func(`<!DOCTYPE name [ <!ENTITY foo 'bar'> ]>`, 1, 40); test!func(`<!DOCTYPE name [ <!ENTITY foo SYSTEM 'sys'> ]>`, 1, 47); test!func(`<!DOCTYPE name [ <!ENTITY foo PUBLIC "'''" 'sys'> ]>`, 1, 53); test!func(`<!DOCTYPE name [ <!NOTATION note PUBLIC 'blah'> ]>`, 1, 51); test!func("<!DOCTYPE name [ <?pi> ]>", 1, 26); test!func("<!DOCTYPE name [ <!-- coment --> ]>", 1, 36); test!func("<!DOCTYPE name [ <?pi> <!----> <!ELEMENT blah EMPTY> ]>", 1, 56); test!func("<!DOCTYPE \nname\n[\n<?pi> \n <!---->\n<!ENTITY foo '\n\n'\n>\n]>", 10, 3); test!func("<!DOCTYPE doc [\n" ~ "<!ENTITY e '<![CDATA[Tim Michael]]>'>\n" ~ "]>\n", 4, 1); testFail!func("<!DOCTYP name>", 1, 2); testFail!func("<!DOCTYPEname>", 1, 10); testFail!func("<!DOCTYPE name1><!DOCTYPE name2>", 1, 18); testFail!func("<!DOCTYPE\n\nname1><!DOCTYPE name2>", 3, 8); testFail!func("<!DOCTYPE name [ ]<!--comment-->", 1, 19); // FIXME This really should have the exception point at the quote and // say that it couldn't find the matching quote rather than point at // the character after it and say that it couldn't find a quote, but // that requires reworking some helper functions with better error // messages in mind. testFail!func(`<!DOCTYPE student SYSTEM "student".dtd"[` ~ "\n<!ELEMENT student (#PCDATA)>\n" ~ "]>", 1, 40); } } // Parse a start tag or empty element tag. It could be the root element, or // it could be a sub-element. // < was already removed from the front of the input. void _parseElementStart() { _entityPos = TextPos(_text.pos.line, _text.pos.col - 1); _savedText.pos = _text.pos; _savedText.input = _text.takeUntilAndDrop!(">", true)(); if(_savedText.input.empty) throw new XMLParsingException("Tag missing name", _savedText.pos); if(_savedText.input.front == '/') throw new XMLParsingException("Invalid end tag", _savedText.pos); if(_savedText.input.length > 1) { auto temp = _savedText.input.save; temp.popFrontN(temp.length - 1); if(temp.front == '/') { _savedText.input = _savedText.input.takeExactly(_savedText.input.length - 1); static if(config.splitEmpty == SplitEmpty.no) { _type = EntityType.elementEmpty; _tagStack.sawEntity(); _grammarPos = _tagStack.depth == 0 ? GrammarPos.endMisc : GrammarPos.contentCharData2; } else { _type = EntityType.elementStart; _tagStack.sawEntity(); _grammarPos = GrammarPos.splittingEmpty; } } else { _type = EntityType.elementStart; _tagStack.sawEntity(); _grammarPos = GrammarPos.contentCharData1; } } else { _type = EntityType.elementStart; _tagStack.sawEntity(); _grammarPos = GrammarPos.contentCharData1; } _name = _savedText.takeName(); // The attributes should be all that's left in savedText. if(_tagStack.atMax) { auto temp = _savedText.save; auto attrChecker = _tagStack.attrChecker; while(true) { immutable wasWS = stripWS(temp); if(temp.input.empty) break; if(!wasWS) throw new XMLParsingException("Whitespace missing before attribute name", temp.pos); immutable attrPos = temp.pos; attrChecker.pushAttr(temp.takeName!'='(), attrPos); stripWS(temp); checkNotEmpty(temp); if(temp.input.front != '=') throw new XMLParsingException("= missing", temp.pos); popFrontAndIncCol(temp); stripWS(temp); temp.takeAttValue(); } attrChecker.checkAttrs(); } } static if(compileInTests) unittest { import core.exception : AssertError; import std.algorithm.comparison : equal; import std.exception : assertNotThrown, collectException, enforce; import dxml.internal : codeLen, testRangeFuncs; static void test(alias func)(string text, EntityType type, string name, int row, int col, size_t line = __LINE__) { auto range = assertNotThrown!XMLParsingException(parseXML(func(text))); enforce!AssertError(range.front.type == type, "unittest failure 1", __FILE__, line); enforce!AssertError(equal(range.front.name, name), "unittest failure 2", __FILE__, line); enforce!AssertError(range._text.pos == TextPos(row, col), "unittest failure 3", __FILE__, line); } static void testFail(alias func)(string text, int row, int col, size_t line = __LINE__) { auto xml = func(text); auto e = collectException!XMLParsingException(parseXML(func(text))); enforce!AssertError(e !is null, "unittest failure 1", __FILE__, line); enforce!AssertError(e.pos == TextPos(row, col), "unittest failure 2", __FILE__, line); } static foreach(func; testRangeFuncs) { test!func("<a/>", EntityType.elementEmpty, "a", 1, 5); test!func("<a></a>", EntityType.elementStart, "a", 1, 4); test!func("<root/>", EntityType.elementEmpty, "root", 1, 8); test!func("<root></root>", EntityType.elementStart, "root", 1, 7); test!func("<foo/>", EntityType.elementEmpty, "foo", 1, 7); test!func("<foo></foo>", EntityType.elementStart, "foo", 1, 6); test!func("<foo />", EntityType.elementEmpty, "foo", 1, 14); test!func("<foo ></foo>", EntityType.elementStart, "foo", 1, 13); test!func("<foo \n\n\n />", EntityType.elementEmpty, "foo", 4, 4); test!func("<foo \n\n\n ></foo>", EntityType.elementStart, "foo", 4, 3); test!func("<foo.></foo.>", EntityType.elementStart, "foo.", 1, 7); test!func(`<京都市></京都市>`, EntityType.elementStart, "京都市", 1, codeLen!(func, `<京都市>`) + 1); testFail!func(`<.foo/>`, 1, 2); testFail!func(`<>`, 1, 2); testFail!func(`</>`, 1, 2); testFail!func(`</foo>`, 1, 2); { auto range = assertNotThrown!XMLParsingException(parseXML!simpleXML(func("<root/>"))); assert(range.front.type == EntityType.elementStart); assert(equal(range.front.name, "root")); assert(range._text.pos == TextPos(1, 8)); assertNotThrown!XMLParsingException(range.popFront()); assert(range.front.type == EntityType.elementEnd); assert(equal(range.front.name, "root")); assert(range._text.pos == TextPos(1, 8)); } } } // Parse an end tag. It could be the root element, or it could be a // sub-element. // </ was already removed from the front of the input. void _parseElementEnd() { _entityPos = TextPos(_text.pos.line, _text.pos.col - 2); _type = EntityType.elementEnd; _tagStack.sawEntity(); immutable namePos = _text.pos; _name = _text.takeName!'>'(); stripWS(_text); if(_text.input.front != '>') { throw new XMLParsingException("There can only be whitespace between an end tag's name and the >", _text.pos); } popFrontAndIncCol(_text); _tagStack.popTag(_name.save, namePos); _grammarPos = _tagStack.depth == 0 ? GrammarPos.endMisc : GrammarPos.contentCharData2; } static if(compileInTests) unittest { import core.exception : AssertError; import std.algorithm.comparison : equal; import std.exception : assertNotThrown, collectException, enforce; import dxml.internal : codeLen, testRangeFuncs; static void test(alias func)(string text, string name, int row, int col, size_t line = __LINE__) { auto range = assertNotThrown!XMLParsingException(parseXML(func(text))); range.popFront(); enforce!AssertError(range.front.type == EntityType.elementEnd, "unittest failure 1", __FILE__, line); enforce!AssertError(equal(range.front.name, name), "unittest failure 2", __FILE__, line); enforce!AssertError(range._text.pos == TextPos(row, col), "unittest failure 3", __FILE__, line); } static void testFail(alias func)(string text, int row, int col, size_t line = __LINE__) { auto range = parseXML(func(text)); auto e = collectException!XMLParsingException(range.popFront()); enforce!AssertError(e !is null, "unittest failure 1", __FILE__, line); enforce!AssertError(e.pos == TextPos(row, col), "unittest failure 2", __FILE__, line); } static foreach(func; testRangeFuncs) { test!func("<a></a>", "a", 1, 8); test!func("<foo></foo>", "foo", 1, 12); test!func("<foo ></foo >", "foo", 1, 20); test!func("<foo \n ></foo \n >", "foo", 3, 3); test!func("<foo>\n\n\n</foo>", "foo", 4, 7); test!func("<foo.></foo.>", "foo.", 1, 14); test!func(`<京都市></京都市>`, "京都市", 1, codeLen!(func, `<京都市></京都市>`) + 1); testFail!func(`<foo></ foo>`, 1, 8); testFail!func(`<foo></bar>`, 1, 8); testFail!func(`<foo></fo>`, 1, 8); testFail!func(`<foo></food>`, 1, 8); testFail!func(`<a></>`, 1, 6); testFail!func(`<a></a b='42'>`, 1, 8); } } // GrammarPos.contentCharData1 // content ::= CharData? ((element | Reference | CDSect | PI | Comment) CharData?)* // Parses at either CharData?. Nothing from the CharData? (or what's after it // if it's not there) has been consumed. void _parseAtContentCharData() { checkNotEmpty(_text); auto orig = _text.save; stripWS(_text); checkNotEmpty(_text); if(_text.input.front != '<') { _text = orig; _entityPos = _text.pos; _type = EntityType.text; _tagStack.sawEntity(); _savedText.pos = _text.pos; _savedText.input = _text.takeUntilAndDrop!"<"(); checkText!false(_savedText); checkNotEmpty(_text); if(_text.input.front == '/') { popFrontAndIncCol(_text); _grammarPos = GrammarPos.endTag; } else _grammarPos = GrammarPos.contentMid; } else { popFrontAndIncCol(_text); checkNotEmpty(_text); if(_text.input.front == '/') { popFrontAndIncCol(_text); _parseElementEnd(); } else _parseAtContentMid(); } } static if(compileInTests) unittest { import core.exception : AssertError; import std.algorithm.comparison : equal; import std.exception : assertNotThrown, collectException, enforce; import dxml.internal : codeLen, testRangeFuncs; static void test(alias func)(string text, int row, int col, size_t line = __LINE__) { auto pos = TextPos(row, col + (cast(int)(row == 1 ? "<root></" : "</").length)); auto range = parseXML(func("<root>" ~ text ~ "</root>")); assertNotThrown!XMLParsingException(range.popFront()); enforce!AssertError(range.front.type == EntityType.text, "unittest failure 1", __FILE__, line); enforce!AssertError(equal(range.front.text, text), "unittest failure 2", __FILE__, line); enforce!AssertError(range._text.pos == pos, "unittest failure 3", __FILE__, line); } static void testFail(alias func)(string text, int row, int col, size_t line = __LINE__) { auto pos = TextPos(row, col + (row == 1 ? cast(int)"<root>".length : 0)); auto range = parseXML(func("<root>" ~ text ~ "</root>")); auto e = collectException!XMLParsingException(range.popFront()); enforce!AssertError(e !is null, "unittest failure 1", __FILE__, line); enforce!AssertError(e.pos == pos, "unittest failure 2", __FILE__, line); } static foreach(func; testRangeFuncs) { test!func("hello world", 1, 12); test!func("\nhello\n\nworld", 4, 6); test!func("京都市", 1, codeLen!(func, "京都市") + 1); test!func("&#x42;", 1, 7); test!func("]", 1, 2); test!func("]]", 1, 3); test!func("]>", 1, 3); testFail!func("&", 1, 1); testFail!func("\v", 1, 1); testFail!func("hello&world", 1, 6); testFail!func("hello\vworld", 1, 6); testFail!func("hello&;world", 1, 6); testFail!func("hello&#;world", 1, 6); testFail!func("hello&#x;world", 1, 6); testFail!func("hello&.;world", 1, 6); testFail!func("\n\nfoo\nbar&.;", 4, 4); testFail!func("]]>", 1, 1); testFail!func("foo]]>bar", 1, 4); } } // GrammarPos.contentMid // content ::= CharData? ((element | Reference | CDSect | PI | Comment) CharData?)* // The text right after the start tag was what was parsed previously. So, // that first CharData? was what was parsed last, and this parses starting // right after. The < should have already been removed from the input. void _parseAtContentMid() { // Note that References are treated as part of the CharData and not // parsed out by the EntityRange (see EntityRange.text). switch(_text.input.front) { // Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->' // CDSect ::= CDStart CData CDEnd // CDStart ::= '<![CDATA[' // CData ::= (Char* - (Char* ']]>' Char*)) // CDEnd ::= ']]>' case '!': { popFrontAndIncCol(_text); if(_text.stripStartsWith("--")) { _parseComment(); static if(config.skipComments == SkipComments.yes) _parseAtContentCharData(); else _grammarPos = GrammarPos.contentCharData2; } else if(_text.stripStartsWith("[CDATA[")) _parseCDATA(); else { immutable bangPos = TextPos(_text.pos.line, _text.pos.col - 1); throw new XMLParsingException("Expected Comment or CDATA section", bangPos); } break; } // PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>' case '?': { _parsePI(); _grammarPos = GrammarPos.contentCharData2; static if(config.skipPI == SkipPI.yes) popFront(); break; } // element ::= EmptyElemTag | STag content ETag default: { _parseElementStart(); break; } } } // This parses the Misc* that come after the root element. void _parseAtEndMisc() { // Misc ::= Comment | PI | S stripWS(_text); if(_text.input.empty) { _grammarPos = GrammarPos.documentEnd; return; } if(_text.input.front != '<') throw new XMLParsingException("Expected <", _text.pos); popFrontAndIncCol(_text); checkNotEmpty(_text); switch(_text.input.front) { // Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->' case '!': { popFrontAndIncCol(_text); if(_text.stripStartsWith("--")) { _parseComment(); static if(config.skipComments == SkipComments.yes) _parseAtEndMisc(); break; } immutable bangPos = TextPos(_text.pos.line, _text.pos.col - 1); throw new XMLParsingException("Expected Comment", bangPos); } // PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>' case '?': { _parsePI(); static if(config.skipPI == SkipPI.yes) popFront(); break; } default: throw new XMLParsingException("Must be a comment or PI", _text.pos); } } // Used for keeping track of the names of start tags so that end tags can be // verified as well as making it possible to avoid redoing other validation. // We keep track of the total number of entities which have been parsed thus // far so that only whichever EntityRange is farthest along in parsing // actually adds or removes tags from the TagStack, and the parser can skip // some of the validation for ranges that are farther behind. That way, the // end tags get verified, but we only have one stack. If the stack were // duplicated with every call to save, then there would be a lot more // allocations, which we don't want. But because we only need to verify the // end tags once, we can get away with having a shared tag stack. The cost // is that we have to keep track of how many tags we've parsed so that we // know if an EntityRange should actually be pushing or popping tags from // the stack, but that's a lot cheaper than duplicating the stack, and it's // a lot less annoying then making EntityRange an input range and not a // forward range or making it a cursor rather than a range. struct TagStack { void pushTag(Taken tagName) { if(entityCount++ == state.maxEntities) { ++state.maxEntities; state.tags ~= tagName; } ++depth; } void popTag(Taken tagName, TextPos pos) { import std.algorithm : equal; import std.format : format; if(entityCount++ == state.maxEntities) { assert(!state.tags.empty); if(!equal(state.tags.back.save, tagName.save)) { enum fmt = "Name of end tag </%s> does not match corresponding start tag <%s>"; throw new XMLParsingException(format!fmt(tagName, state.tags.back), pos); } ++state.maxEntities; --state.tags.length; () @trusted { state.tags.assumeSafeAppend(); }(); } --depth; } @property auto attrChecker() { assert(atMax); static struct AttrChecker { void pushAttr(Taken attrName, TextPos attrPos) { import std.typecons : tuple; state.attrs ~= tuple(attrName, attrPos); } void checkAttrs() { import std.algorithm.comparison : cmp, equal; import std.algorithm.sorting : sort; import std.conv : to; if(state.attrs.length < 2) return; sort!((a,b) => cmp(a[0].save, b[0].save) < 0)(state.attrs); auto prev = state.attrs.front; foreach(attr; state.attrs[1 .. $]) { if(equal(prev[0], attr[0])) throw new XMLParsingException("Duplicate attribute name", attr[1]); prev = attr; } } ~this() { state.attrs.length = 0; () @trusted { state.attrs.assumeSafeAppend(); }(); } SharedState* state; } return AttrChecker(state); } void sawEntity() { if(entityCount++ == state.maxEntities) ++state.maxEntities; } @property bool atMax() { return entityCount == state.maxEntities; } struct SharedState { import std.typecons : Tuple; Taken[] tags; Tuple!(Taken, TextPos)[] attrs; size_t maxEntities; } static create() { TagStack tagStack; tagStack.state = new SharedState; tagStack.state.tags.reserve(10); tagStack.state.attrs.reserve(10); return tagStack; } SharedState* state; size_t entityCount; int depth; } static if(compileInTests) unittest { import core.exception : AssertError; import std.algorithm.comparison : equal; import std.exception : assertNotThrown, collectException, enforce; import dxml.internal : testRangeFuncs; static void test(alias func)(string text, size_t line = __LINE__) { auto xml = func(text); static foreach(config; someTestConfigs) {{ auto range = assertNotThrown!XMLParsingException(parseXML!config(xml.save), "unittest failure 1", __FILE__, line); assertNotThrown!XMLParsingException(walkLength(range), "unittest failure 2", __FILE__, line); }} } static void testFail(alias func)(string text, int row, int col, size_t line = __LINE__) { auto xml = func(text); static foreach(config; someTestConfigs) {{ auto range = assertNotThrown!XMLParsingException(parseXML!config(xml.save), "unittest failure 1", __FILE__, line); auto e = collectException!XMLParsingException(walkLength(range)); enforce!AssertError(e !is null, "unittest failure 2", __FILE__, line); enforce!AssertError(e.pos == TextPos(row, col), "unittest failure 3", __FILE__, line); }} } static foreach(func; testRangeFuncs) { test!func("<root></root>"); test!func("<root><a></a></root>"); test!func("<root><a><b></b></a></root>"); test!func("<root><a><b></b></a></root>"); test!func("<root><a><b></b></a><foo><bar></bar></foo></root>"); test!func("<a>\n" ~ " <b>\n" ~ " <c>\n" ~ " <d>\n" ~ " <e>\n" ~ " <f>\n" ~ " <g>\n" ~ " <h>\n" ~ " <i><i><i><i>\n" ~ " </i></i></i></i>\n" ~ " <i>\n" ~ " <j>\n" ~ " <k>\n" ~ " <l>\n" ~ " <m>\n" ~ " <n>\n" ~ " <o>\n" ~ " <p>\n" ~ " <q>\n" ~ " <r>\n" ~ " <s>\n" ~ " <!-- comment --> <?pi?> <t><u><v></v></u></t>\n" ~ " </s>\n" ~ " </r>\n" ~ " </q>\n" ~ " </p></o></n></m>\n" ~ " </l>\n" ~ " </k>\n" ~ " </j>\n" ~ "</i></h>" ~ " </g>\n" ~ " </f>\n" ~ " </e>\n" ~ " </d>\n" ~ " </c>\n" ~ " </b>\n" ~ "</a>"); test!func(`<京都市></京都市>`); testFail!func(`<a>`, 1, 4); testFail!func(`<foo></foobar>`, 1, 8); testFail!func(`<foobar></foo>`, 1, 11); testFail!func(`<a><\a>`, 1, 5); testFail!func(`<a><a/>`, 1, 8); testFail!func(`<a><b>`, 1, 7); testFail!func(`<a><b><c>`, 1, 10); testFail!func(`<a></a><b>`, 1, 9); testFail!func(`<a></a><b></b>`, 1, 9); testFail!func(`<a><b></a></b>`, 1, 9); testFail!func(`<a><b><c></c><b></a>`, 1, 19); testFail!func(`<a><b></c><c></b></a>`, 1, 9); testFail!func(`<a><b></c></b></a>`, 1, 9); testFail!func("<a>\n" ~ " <b>\n" ~ " <c>\n" ~ " <d>\n" ~ " <e>\n" ~ " <f>\n" ~ " </f>\n" ~ " </e>\n" ~ " </d>\n" ~ " </c>\n" ~ " </b>\n" ~ "<a>", 12, 4); testFail!func("<a>\n" ~ " <b>\n" ~ " <c>\n" ~ " <d>\n" ~ " <e>\n" ~ " <f>\n" ~ " </f>\n" ~ " </e>\n" ~ " </d>\n" ~ " </c>\n" ~ " </b>\n" ~ "</q>", 12, 3); } } struct Text(R) { alias config = cfg; alias Input = R; Input input; TextPos pos; @property save() { return typeof(this)(input.save, pos); } } alias Taken = typeof(takeExactly(byCodeUnit(R.init), 42)); EntityType _type; TextPos _entityPos; auto _grammarPos = GrammarPos.documentStart; Taken _name; TagStack _tagStack; Text!(typeof(byCodeUnit(R.init))) _text; Text!Taken _savedText; this(R xmlText) { _tagStack = TagStack.create(); _text.input = byCodeUnit(xmlText); // None of these initializations should be required. https://issues.dlang.org/show_bug.cgi?id=13945 _savedText = typeof(_savedText).init; _name = typeof(_name).init; popFront(); } } /// Ditto EntityRange!(config, R) parseXML(Config config = Config.init, R)(R xmlText) if(isForwardRange!R && isSomeChar!(ElementType!R)) { return EntityRange!(config, R)(xmlText); } /// version(dxmlTests) unittest { auto xml = "<?xml version='1.0'?>\n" ~ "<?instruction start?>\n" ~ "<foo attr='42'>\n" ~ " <bar/>\n" ~ " <!-- no comment -->\n" ~ " <baz hello='world'>\n" ~ " nothing to say.\n" ~ " nothing at all...\n" ~ " </baz>\n" ~ "</foo>\n" ~ "<?some foo?>"; { auto range = parseXML(xml); assert(range.front.type == EntityType.pi); assert(range.front.name == "instruction"); assert(range.front.text == "start"); range.popFront(); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "foo"); { auto attrs = range.front.attributes; assert(walkLength(attrs.save) == 1); assert(attrs.front.name == "attr"); assert(attrs.front.value == "42"); } range.popFront(); assert(range.front.type == EntityType.elementEmpty); assert(range.front.name == "bar"); range.popFront(); assert(range.front.type == EntityType.comment); assert(range.front.text == " no comment "); range.popFront(); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "baz"); { auto attrs = range.front.attributes; assert(walkLength(attrs.save) == 1); assert(attrs.front.name == "hello"); assert(attrs.front.value == "world"); } range.popFront(); assert(range.front.type == EntityType.text); assert(range.front.text == "\n nothing to say.\n nothing at all...\n "); range.popFront(); assert(range.front.type == EntityType.elementEnd); // </baz> range.popFront(); assert(range.front.type == EntityType.elementEnd); // </foo> range.popFront(); assert(range.front.type == EntityType.pi); assert(range.front.name == "some"); assert(range.front.text == "foo"); range.popFront(); assert(range.empty); } { auto range = parseXML!simpleXML(xml); // simpleXML is set to skip processing instructions. assert(range.front.type == EntityType.elementStart); assert(range.front.name == "foo"); { auto attrs = range.front.attributes; assert(walkLength(attrs.save) == 1); assert(attrs.front.name == "attr"); assert(attrs.front.value == "42"); } // simpleXML is set to split empty tags so that <bar/> is treated // as the same as <bar></bar> so that code does not have to // explicitly handle empty tags. range.popFront(); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "bar"); range.popFront(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "bar"); // simpleXML is set to skip comments. range.popFront(); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "baz"); { auto attrs = range.front.attributes; assert(walkLength(attrs.save) == 1); assert(attrs.front.name == "hello"); assert(attrs.front.value == "world"); } range.popFront(); assert(range.front.type == EntityType.text); assert(range.front.text == "\n nothing to say.\n nothing at all...\n "); range.popFront(); assert(range.front.type == EntityType.elementEnd); // </baz> range.popFront(); assert(range.front.type == EntityType.elementEnd); // </foo> range.popFront(); assert(range.empty); } } // Test the state of the range immediately after parseXML returns. version(dxmlTests) unittest { import std.algorithm.comparison : equal; import dxml.internal : testRangeFuncs; static foreach(func; testRangeFuncs) { static foreach(config; someTestConfigs) {{ auto range = parseXML!config("<?xml?><root></root>"); assert(!range.empty); assert(range.front.type == EntityType.elementStart); assert(equal(range.front.name, "root")); }} static foreach(config; [Config.init, makeConfig(SkipPI.yes)]) {{ auto range = parseXML!config("<!--no comment--><root></root>"); assert(!range.empty); assert(range.front.type == EntityType.comment); assert(equal(range.front.text, "no comment")); }} static foreach(config; [simpleXML, makeConfig(SkipComments.yes)]) {{ auto range = parseXML!config("<!--no comment--><root></root>"); assert(!range.empty); assert(range.front.type == EntityType.elementStart); assert(equal(range.front.name, "root")); }} static foreach(config; [Config.init, makeConfig(SkipComments.yes)]) {{ auto range = parseXML!config("<?private eye?><root></root>"); assert(!range.empty); assert(range.front.type == EntityType.pi); assert(equal(range.front.name, "private")); assert(equal(range.front.text, "eye")); }} static foreach(config; [simpleXML, makeConfig(SkipPI.yes)]) {{ auto range = parseXML!config("<?private eye?><root></root>"); assert(!range.empty); assert(range.front.type == EntityType.elementStart); assert(equal(range.front.name, "root")); }} static foreach(config; someTestConfigs) {{ auto range = parseXML!config("<root></root>"); assert(!range.empty); assert(range.front.type == EntityType.elementStart); assert(equal(range.front.name, "root")); }} } } // Test various invalid states that didn't seem to fit well into tests elsewhere. version(dxmlTests) unittest { import core.exception : AssertError; import std.exception : collectException, enforce; import dxml.internal : testRangeFuncs; static void testFail(alias func)(string text, int row, int col, size_t line = __LINE__) { auto xml = func(text); static foreach(config; someTestConfigs) {{ auto e = collectException!XMLParsingException( { auto range = parseXML!config(xml.save); while(!range.empty) range.popFront(); }()); enforce!AssertError(e !is null, "unittest failure 1", __FILE__, line); enforce!AssertError(e.pos == TextPos(row, col), "unittest failure 2", __FILE__, line); }} } static foreach(func; testRangeFuncs) {{ testFail!func("<root></root><invalid></invalid>", 1, 15); testFail!func("<root></root><invalid/>", 1, 15); testFail!func("<root/><invalid></invalid>", 1, 9); testFail!func("<root/><invalid/>", 1, 9); testFail!func("<root></root>invalid", 1, 14); testFail!func("<root/>invalid", 1, 8); testFail!func("<root/><?pi?>invalid", 1, 14); testFail!func("<root/><?pi?><invalid/>", 1, 15); testFail!func("<root/><!DOCTYPE foo>", 1, 9); testFail!func("<root/></root>", 1, 9); testFail!func("invalid<root></root>", 1, 1); testFail!func("invalid<?xml?><root></root>", 1, 1); testFail!func("invalid<!DOCTYPE foo><root></root>", 1, 1); testFail!func("invalid<!--comment--><root></root>", 1, 1); testFail!func("invalid<?Poirot?><root></root>", 1, 1); testFail!func("<?xml?>invalid<root></root>", 1, 8); testFail!func("<!DOCTYPE foo>invalid<root></root>", 1, 15); testFail!func("<!--comment-->invalid<root></root>", 1, 15); testFail!func("<?Poirot?>invalid<root></root>", 1, 11); testFail!func("<?xml?>", 1, 8); testFail!func("<!DOCTYPE name>", 1, 16); testFail!func("<?Sherlock?>", 1, 13); testFail!func("<?Poirot?><?Sherlock?><?Holmes?>", 1, 33); testFail!func("<?Poirot?></Poirot>", 1, 12); testFail!func("</Poirot>", 1, 2); testFail!func("<doc>]]></doc>", 1, 6); testFail!func(" <?xml?><root/>", 1, 1); testFail!func("\n<?xml?><root/>", 1, 1); }} } // Test that parseXML and EntityRange's properties work with @safe. // pure would be nice too, but at minimum, the use of format for exception // messages, and the use of assumeSafeAppend prevent it. It may or may not be // worth trying to fix that. version(dxmlTests) @safe unittest { import std.algorithm.comparison : equal; import dxml.internal : testRangeFuncs; auto xml = "<root>\n" ~ " <![CDATA[nothing]]>\n" ~ " <foo a='42'/>\n" ~ "</root>"; static foreach(func; testRangeFuncs) {{ auto range = parseXML(xml); assert(range.front.type == EntityType.elementStart); assert(equal(range.front.name, "root")); range.popFront(); assert(!range.empty); assert(range.front.type == EntityType.cdata); assert(equal(range.front.text, "nothing")); range.popFront(); assert(!range.empty); assert(range.front.type == EntityType.elementEmpty); assert(equal(range.front.name, "foo")); { auto attrs = range.front.attributes; auto saved = attrs.save; auto attr = attrs.front; assert(attr.name == "a"); assert(attr.value == "42"); attrs.popFront(); assert(attrs.empty); } auto saved = range.save; }} } // This is purely to provide a way to trigger the unittest blocks in EntityRange // without compiling them in normally. private struct EntityRangeCompileTests { @property bool empty() @safe pure nothrow @nogc { assert(0); } @property char front() @safe pure nothrow @nogc { assert(0); } void popFront() @safe pure nothrow @nogc { assert(0); } @property typeof(this) save() @safe pure nothrow @nogc { assert(0); } } version(dxmlTests) EntityRange!(Config.init, EntityRangeCompileTests) _entityRangeTests; /++ Takes an $(LREF EntityRange) which is at a start tag and iterates it until it is at its corresponding end tag. It is an error to call skipContents when the current entity is not $(LREF EntityType.elementStart). $(TABLE $(TR $(TH Supported $(LREF EntityType)s:)) $(TR $(TD $(LREF2 elementStart, EntityType))) ) Returns: The range with its $(D front) now at the end tag corresponding to the start tag that was $(D front) when the function was called. Throws: $(LREF XMLParsingException) on invalid XML. +/ R skipContents(R)(R entityRange) if(isInstanceOf!(EntityRange, R)) { assert(entityRange._type == EntityType.elementStart); // We don't bother calling empty, because the only way for the entityRange // to be empty would be for it to reach the end of the document, and an // XMLParsingException would be thrown if the end of the document were // reached before we reached the corresponding end tag. for(int tagDepth = 1; tagDepth != 0;) { entityRange.popFront(); immutable type = entityRange._type; if(type == EntityType.elementStart) ++tagDepth; else if(type == EntityType.elementEnd) --tagDepth; } return entityRange; } /// version(dxmlTests) unittest { auto xml = "<root>\n" ~ " <foo>\n" ~ " <bar>\n" ~ " Some text\n" ~ " </bar>\n" ~ " </foo>\n" ~ " <!-- no comment -->\n" ~ "</root>"; auto range = parseXML(xml); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "root"); range.popFront(); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "foo"); range = range.skipContents(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "foo"); range.popFront(); assert(range.front.type == EntityType.comment); assert(range.front.text == " no comment "); range.popFront(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "root"); range.popFront(); assert(range.empty); } /++ Skips entities until the given $(LREF EntityType) is reached. If multiple $(LREF EntityType)s are given, then any one of them counts as a match. The current entity is skipped regardless of whether it is the given $(LREF EntityType). This is essentially a slightly optimized equivalent to --- if(!range.empty()) { range.popFront(); range = range.find!((a, b) => a.type == b.type)(entityTypes); } --- Returns: The given range with its $(D front) now at the first entity which matched one of the given $(LREF EntityType)s or an empty range if none were found. Throws: $(LREF XMLParsingException) on invalid XML. +/ R skipToEntityType(R)(R entityRange, EntityType[] entityTypes...) if(isInstanceOf!(EntityRange, R)) { if(entityRange.empty) return entityRange; entityRange.popFront(); for(; !entityRange.empty; entityRange.popFront()) { immutable type = entityRange._type; foreach(entityType; entityTypes) { if(type == entityType) return entityRange; } } return entityRange; } /// version(dxmlTests) unittest { auto xml = "<root>\n" ~ " <!-- blah blah blah -->\n" ~ " <foo>nothing to say</foo>\n" ~ "</root>"; auto range = parseXML(xml); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "root"); range = range.skipToEntityType(EntityType.elementStart, EntityType.elementEmpty); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "foo"); assert(range.skipToEntityType(EntityType.comment).empty); // skipToEntityType will work on an empty range but will always // return an empty range. assert(range.takeNone().skipToEntityType(EntityType.comment).empty); } /++ Skips entities until the end tag is reached that corresponds to the start tag that is the parent of the current entity. Returns: The given range with its $(D front) now at the end tag which corresponds to the parent start tag of the entity that was $(D front) when skipToParentEndTag was called. If the current entity does not have a parent start tag (which means that it's either the root element or a comment or PI outside of the root element), then an empty range is returned. Throws: $(LREF XMLParsingException) on invalid XML. +/ R skipToParentEndTag(R)(R entityRange) if(isInstanceOf!(EntityRange, R)) { with(EntityType) final switch(entityRange._type) { case cdata: case comment: { entityRange = entityRange.skipToEntityType(elementStart, elementEnd); if(entityRange.empty || entityRange._type == elementEnd) return entityRange; goto case elementStart; } case elementStart: { while(true) { entityRange = entityRange.skipContents(); entityRange.popFront(); if(entityRange.empty || entityRange._type == elementEnd) return entityRange; if(entityRange._type == elementStart) continue; goto case comment; } assert(0); // the compiler isn't smart enough to see that this is unreachable. } case elementEnd: case elementEmpty: case pi: case text: goto case comment; } } /// version(dxmlTests) unittest { auto xml = "<root>\n" ~ " <foo>\n" ~ " <!-- comment -->\n" ~ " <bar>exam</bar>\n" ~ " </foo>\n" ~ " <!-- another comment -->\n" ~ "</root>"; { auto range = parseXML(xml); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "root"); range.popFront(); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "foo"); range.popFront(); assert(range.front.type == EntityType.comment); assert(range.front.text == " comment "); range = range.skipToParentEndTag(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "foo"); range = range.skipToParentEndTag(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "root"); range = range.skipToParentEndTag(); assert(range.empty); } { auto range = parseXML(xml); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "root"); range.popFront(); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "foo"); range.popFront(); assert(range.front.type == EntityType.comment); assert(range.front.text == " comment "); range.popFront(); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "bar"); range.popFront(); assert(range.front.type == EntityType.text); assert(range.front.text == "exam"); range = range.skipToParentEndTag(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "bar"); range = range.skipToParentEndTag(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "foo"); range.popFront(); assert(range.front.type == EntityType.comment); assert(range.front.text == " another comment "); range = range.skipToParentEndTag(); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "root"); assert(range.skipToParentEndTag().empty); } { auto range = parseXML("<root><foo>bar</foo></root>"); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "root"); assert(range.skipToParentEndTag().empty); } } version(dxmlTests) unittest { import core.exception : AssertError; import std.algorithm.comparison : equal; import std.exception : enforce; import dxml.internal : testRangeFuncs; static void popAndCheck(R)(ref R range, EntityType type, size_t line = __LINE__) { range.popFront(); enforce!AssertError(!range.empty, "unittest 1", __FILE__, line); enforce!AssertError(range.front.type == type, "unittest 2", __FILE__, line); } static foreach(func; testRangeFuncs) {{ // cdata { auto xml = "<root>\n" ~ " <![CDATA[ cdata run ]]>\n" ~ " <nothing/>\n" ~ " <![CDATA[ cdata have its bits flipped ]]>\n" ~ " <foo></foo>\n" ~ " <![CDATA[ cdata play violin ]]>\n" ~ "</root>"; auto range = parseXML(func(xml)); assert(range.front.type == EntityType.elementStart); popAndCheck(range, EntityType.cdata); assert(equal(range.front.text, " cdata run ")); { auto temp = range.save.skipToParentEndTag(); assert(temp._type == EntityType.elementEnd); assert(equal(temp.front.name, "root")); } popAndCheck(range, EntityType.elementEmpty); popAndCheck(range, EntityType.cdata); assert(equal(range.front.text, " cdata have its bits flipped ")); { auto temp = range.save.skipToParentEndTag(); assert(temp._type == EntityType.elementEnd); assert(equal(temp.front.name, "root")); } popAndCheck(range, EntityType.elementStart); range = range.skipContents(); popAndCheck(range, EntityType.cdata); assert(equal(range.front.text, " cdata play violin ")); range = range.skipToParentEndTag(); assert(range._type == EntityType.elementEnd); assert(equal(range.front.name, "root")); } // comment { auto xml = "<!-- before -->\n" ~ "<root>\n" ~ " <!-- comment 1 -->\n" ~ " <nothing/>\n" ~ " <!-- comment 2 -->\n" ~ " <foo></foo>\n" ~ " <!-- comment 3 -->\n" ~ "</root>\n" ~ "<!-- after -->" ~ "<!-- end -->"; auto text = func(xml); assert(parseXML(text.save).skipToParentEndTag().empty); { auto range = parseXML(text.save); assert(range.front.type == EntityType.comment); popAndCheck(range, EntityType.elementStart); popAndCheck(range, EntityType.comment); assert(equal(range.front.text, " comment 1 ")); { auto temp = range.save.skipToParentEndTag(); assert(temp._type == EntityType.elementEnd); assert(equal(temp.front.name, "root")); } popAndCheck(range, EntityType.elementEmpty); popAndCheck(range, EntityType.comment); assert(equal(range.front.text, " comment 2 ")); { auto temp = range.save.skipToParentEndTag(); assert(temp._type == EntityType.elementEnd); assert(equal(temp.front.name, "root")); } popAndCheck(range, EntityType.elementStart); range = range.skipContents(); popAndCheck(range, EntityType.comment); assert(equal(range.front.text, " comment 3 ")); range = range.skipToParentEndTag(); assert(range._type == EntityType.elementEnd); assert(equal(range.front.name, "root")); } { auto range = parseXML(text.save); assert(range.front.type == EntityType.comment); popAndCheck(range, EntityType.elementStart); range = range.skipContents(); popAndCheck(range, EntityType.comment); assert(equal(range.front.text, " after ")); assert(range.save.skipToParentEndTag().empty); popAndCheck(range, EntityType.comment); assert(equal(range.front.text, " end ")); assert(range.skipToParentEndTag().empty); } } // elementStart { auto xml = "<root>\n" ~ " <a><b>foo</b></a>\n" ~ " <nothing/>\n" ~ " <c></c>\n" ~ " <d>\n" ~ " <e>\n" ~ " </e>\n" ~ " <f>\n" ~ " <g>\n" ~ " </g>\n" ~ " </f>\n" ~ " </d>\n" ~ "</root>"; auto range = parseXML(func(xml)); assert(range.front.type == EntityType.elementStart); assert(equal(range.front.name, "root")); assert(range.save.skipToParentEndTag().empty); popAndCheck(range, EntityType.elementStart); assert(equal(range.front.name, "a")); { auto temp = range.save.skipToParentEndTag(); assert(temp._type == EntityType.elementEnd); assert(equal(temp.front.name, "root")); } popAndCheck(range, EntityType.elementStart); assert(equal(range.front.name, "b")); { auto temp = range.save.skipToParentEndTag(); assert(temp._type == EntityType.elementEnd); assert(equal(temp.front.name, "a")); } popAndCheck(range, EntityType.text); popAndCheck(range, EntityType.elementEnd); popAndCheck(range, EntityType.elementEnd); popAndCheck(range, EntityType.elementEmpty); popAndCheck(range, EntityType.elementStart); assert(equal(range.front.name, "c")); { auto temp = range.save.skipToParentEndTag(); assert(temp._type == EntityType.elementEnd); assert(equal(temp.front.name, "root")); } popAndCheck(range, EntityType.elementEnd); popAndCheck(range, EntityType.elementStart); assert(equal(range.front.name, "d")); popAndCheck(range, EntityType.elementStart); assert(equal(range.front.name, "e")); range = range.skipToParentEndTag(); assert(range._type == EntityType.elementEnd); assert(equal(range.front.name, "d")); range = range.skipToParentEndTag(); assert(range._type == EntityType.elementEnd); assert(equal(range.front.name, "root")); } // elementEnd { auto xml = "<root>\n" ~ " <a><b>foo</b></a>\n" ~ " <nothing/>\n" ~ " <c></c>\n" ~ "</root>"; auto range = parseXML(func(xml)); assert(range.front.type == EntityType.elementStart); popAndCheck(range, EntityType.elementStart); popAndCheck(range, EntityType.elementStart); popAndCheck(range, EntityType.text); popAndCheck(range, EntityType.elementEnd); assert(equal(range.front.name, "b")); { auto temp = range.save.skipToParentEndTag(); assert(temp._type == EntityType.elementEnd); assert(equal(temp.front.name, "a")); } popAndCheck(range, EntityType.elementEnd); assert(equal(range.front.name, "a")); { auto temp = range.save.skipToParentEndTag(); assert(temp._type == EntityType.elementEnd); assert(equal(temp.front.name, "root")); } popAndCheck(range, EntityType.elementEmpty); popAndCheck(range, EntityType.elementStart); popAndCheck(range, EntityType.elementEnd); assert(equal(range.front.name, "c")); { auto temp = range.save.skipToParentEndTag(); assert(temp._type == EntityType.elementEnd); assert(equal(temp.front.name, "root")); } popAndCheck(range, EntityType.elementEnd); assert(range.skipToParentEndTag().empty); } // elementEmpty { auto range = parseXML(func("<root/>")); assert(range.front.type == EntityType.elementEmpty); assert(range.skipToParentEndTag().empty); } { auto xml = "<root>\n" ~ " <a><b>foo</b></a>\n" ~ " <nothing/>\n" ~ " <c></c>\n" ~ " <whatever/>\n" ~ "</root>"; auto range = parseXML(func(xml)); popAndCheck(range, EntityType.elementStart); assert(range.front.type == EntityType.elementStart); range = range.skipContents(); popAndCheck(range, EntityType.elementEmpty); assert(equal(range.front.name, "nothing")); { auto temp = range.save; popAndCheck(temp, EntityType.elementStart); popAndCheck(temp, EntityType.elementEnd); popAndCheck(temp, EntityType.elementEmpty); assert(equal(temp.front.name, "whatever")); } range = range.skipToParentEndTag(); assert(range._type == EntityType.elementEnd); assert(equal(range.front.name, "root")); } // pi { auto xml = "<?Sherlock?>\n" ~ "<root>\n" ~ " <?Foo?>\n" ~ " <nothing/>\n" ~ " <?Bar?>\n" ~ " <foo></foo>\n" ~ " <?Baz?>\n" ~ "</root>\n" ~ "<?Poirot?>\n" ~ "<?Conan?>"; auto range = parseXML(func(xml)); assert(range.front.type == EntityType.pi); assert(equal(range.front.name, "Sherlock")); assert(range.save.skipToParentEndTag().empty); popAndCheck(range, EntityType.elementStart); popAndCheck(range, EntityType.pi); assert(equal(range.front.name, "Foo")); { auto temp = range.save.skipToParentEndTag(); assert(temp._type == EntityType.elementEnd); assert(equal(temp.front.name, "root")); } popAndCheck(range, EntityType.elementEmpty); popAndCheck(range, EntityType.pi); assert(equal(range.front.name, "Bar")); { auto temp = range.save.skipToParentEndTag(); assert(temp._type == EntityType.elementEnd); assert(equal(temp.front.name, "root")); } popAndCheck(range, EntityType.elementStart); popAndCheck(range, EntityType.elementEnd); popAndCheck(range, EntityType.pi); assert(equal(range.front.name, "Baz")); range = range.skipToParentEndTag(); assert(range._type == EntityType.elementEnd); assert(equal(range.front.name, "root")); popAndCheck(range, EntityType.pi); assert(equal(range.front.name, "Poirot")); assert(range.save.skipToParentEndTag().empty); popAndCheck(range, EntityType.pi); assert(equal(range.front.name, "Conan")); assert(range.skipToParentEndTag().empty); } // text { auto xml = "<root>\n" ~ " nothing to say\n" ~ " <nothing/>\n" ~ " nothing whatsoever\n" ~ " <foo></foo>\n" ~ " but he keeps talking\n" ~ "</root>"; auto range = parseXML(func(xml)); assert(range.front.type == EntityType.elementStart); popAndCheck(range, EntityType.text); assert(equal(range.front.text, "\n nothing to say\n ")); { auto temp = range.save.skipToParentEndTag(); assert(temp._type == EntityType.elementEnd); assert(equal(temp.front.name, "root")); } popAndCheck(range, EntityType.elementEmpty); popAndCheck(range, EntityType.text); assert(equal(range.front.text, "\n nothing whatsoever\n ")); { auto temp = range.save.skipToParentEndTag(); assert(temp._type == EntityType.elementEnd); assert(equal(temp.front.name, "root")); } popAndCheck(range, EntityType.elementStart); range = range.skipContents(); popAndCheck(range, EntityType.text); assert(equal(range.front.text, "\n but he keeps talking\n")); range = range.skipToParentEndTag(); assert(range._type == EntityType.elementEnd); assert(equal(range.front.name, "root")); } }} } /++ Treats the given string like a file path except that each directory corresponds to the name of a start tag. Note that this does $(I not) try to implement XPath as that would be quite complicated, and it really doesn't fit with a StAX parser. A start tag should be thought of as a directory, with its child start tags as the directories it contains. All paths should be relative. $(LREF EntityRange) can only move forward through the document, so using an absolute path would only make sense at the beginning of the document. As such, absolute paths are treated as invalid paths. $(D_CODE_STRING "./") and $(D_CODE_STRING "../") are supported. Repeated slashes such as in $(D_CODE_STRING "foo//bar") are not supported and are treated as an invalid path. If $(D range.front.type == EntityType.elementStart), then $(D range._skiptoPath($(D_STRING "foo"))) will search for the first child start tag (be it $(LREF EntityType.elementStart) or $(LREF EntityType.elementEmpty)) with the $(LREF2 name, EntityRange.Entity) $(D_CODE_STRING "foo"). That start tag must be a direct child of the current start tag. If $(D range.front.type) is any other $(LREF EntityType), then $(D range._skipToPath($(D_STRING "foo"))) will return an empty range, because no other $(LREF EntityType)s have child start tags. For any $(LREF EntityType), $(D range._skipToPath($(D_STRING "../foo"))) will search for the first start tag with the $(LREF2 name, EntityRange.Entity) $(D_CODE_STRING "foo") at the same level as the current entity. If the current entity is a start tag with the name $(D_CODE_STRING "foo"), it will not be considered a match. $(D range._skipToPath($(D_STRING "./"))) is a no-op. However, $(D range._skipToPath($(D_STRING "../"))) will result in the empty range (since it doesn't target a specific start tag). $(D range._skipToPath($(D_STRING "foo/bar"))) is equivalent to $(D range._skipToPath($(D_STRING "foo"))._skipToPath($(D_STRING "bar"))), and $(D range._skipToPath($(D_STRING "../foo/bar"))) is equivalent to $(D range._skipToPath($(D_STRING "../foo"))._skipToPath($(D_STRING "bar"))). Returns: The given range with its $(D front) now at the requested entity if the path is valid; otherwise, an empty range is returned. Throws: $(LREF XMLParsingException) on invalid XML. +/ R skipToPath(R)(R entityRange, string path) if(isInstanceOf!(EntityRange, R)) { import std.algorithm.comparison : equal; import std.path : pathSplitter; if(entityRange.empty) return entityRange; if(path.empty || path[0] == '/') return entityRange.takeNone(); with(EntityType) { static if(R.config.splitEmpty == SplitEmpty.yes) EntityType[2] startOrEnd = [elementStart, elementEnd]; else EntityType[3] startOrEnd = [elementStart, elementEnd, elementEmpty]; R findOnCurrLevel(string name) { if(entityRange._type == elementStart) entityRange = entityRange.skipContents(); while(true) { entityRange = entityRange.skipToEntityType(startOrEnd[]); if(entityRange.empty) return entityRange; if(entityRange._type == elementEnd) return entityRange.takeNone(); if(equal(name, entityRange._name.save)) return entityRange; static if(R.config.splitEmpty == SplitEmpty.no) { if(entityRange._type == elementEmpty) continue; } entityRange = entityRange.skipContents(); } } for(auto pieces = path.pathSplitter(); !pieces.empty; pieces.popFront()) { if(pieces.front == ".") continue; else if(pieces.front == "..") { pieces.popFront(); if(pieces.empty) return entityRange.takeNone(); while(pieces.front == "..") { pieces.popFront(); if(pieces.empty) return entityRange.takeNone(); entityRange = entityRange.skipToParentEndTag(); if(entityRange.empty) return entityRange; } entityRange = findOnCurrLevel(pieces.front); if(entityRange.empty) return entityRange; } else { if(entityRange._type != elementStart) return entityRange.takeNone(); entityRange = entityRange.skipToEntityType(startOrEnd[]); assert(!entityRange.empty); if(entityRange._type == elementEnd) return entityRange.takeNone(); if(!equal(pieces.front, entityRange._name.save)) { entityRange = findOnCurrLevel(pieces.front); if(entityRange.empty) return entityRange; } } } return entityRange; } } /// version(dxmlTests) unittest { { auto xml = "<carrot>\n" ~ " <foo>\n" ~ " <bar>\n" ~ " <baz/>\n" ~ " <other/>\n" ~ " </bar>\n" ~ " </foo>\n" ~ "</carrot>"; auto range = parseXML(xml); // "<carrot>" assert(range.front.type == EntityType.elementStart); assert(range.front.name == "carrot"); range = range.skipToPath("foo/bar"); // " <bar> assert(!range.empty); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "bar"); range = range.skipToPath("baz"); // " <baz/> assert(!range.empty); assert(range.front.type == EntityType.elementEmpty); // other is not a child element of baz assert(range.skipToPath("other").empty); range = range.skipToPath("../other"); // " <other/>" assert(!range.empty); assert(range.front.type == EntityType.elementEmpty); } { auto xml = "<potato>\n" ~ " <foo>\n" ~ " <bar>\n "~ " </bar>\n" ~ " <crazy>\n" ~ " </crazy>\n" ~ " <fou/>\n" ~ " </foo>\n" ~ " <buzz/>\n" ~ "</potato>"; auto range = parseXML(xml); // "<potato>" assert(range.front.type == EntityType.elementStart); range = range.skipToPath("./"); // "<potato>" assert(!range.empty); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "potato"); range = range.skipToPath("./foo/bar"); // " <bar>" assert(!range.empty); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "bar"); range = range.skipToPath("../crazy"); // " <crazy>" assert(!range.empty); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "crazy"); // Whether popFront is called here before the call to // range.skipToPath("../fou") below, the result is the same, because // both <crazy> and </crazy> are at the same level. range.popFront(); // " </crazy>" assert(!range.empty); assert(range.front.type == EntityType.elementEnd); assert(range.front.name == "crazy"); range = range.skipToPath("../fou"); // " <fou/>" assert(!range.empty); assert(range.front.type == EntityType.elementEmpty); } // Searching stops at the first matching start tag. { auto xml = "<beet>\n" ~ " <foo a='42'>\n" ~ " </foo>\n" ~ " <foo b='451'>\n" ~ " </foo>\n" ~ "</beet>"; auto range = parseXML(xml); range = range.skipToPath("foo"); assert(!range.empty); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "foo"); { auto attrs = range.front.attributes; assert(attrs.front.name == "a"); assert(attrs.front.value == "42"); } range = range.skipToPath("../foo"); assert(!range.empty); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "foo"); { auto attrs = range.front.attributes; assert(attrs.front.name == "b"); assert(attrs.front.value == "451"); } } // skipToPath will work on an empty range but will always return an // empty range. { auto range = parseXML("<root/>"); assert(range.takeNone().skipToPath("nowhere").empty); } // Empty and absolute paths will also result in an empty range as will // "../" without any actual tag name on the end. { auto range = parseXML("<root/>"); assert(range.skipToPath("").empty); assert(range.skipToPath("/").empty); assert(range.skipToPath("../").empty); } // Only non-empty start tags have children; all other EntityTypes result // in an empty range unless "../" is used. { auto xml = "<!-- comment -->\n" ~ "<root>\n" ~ " <foo/>\n" ~ "</root>"; auto range = parseXML(xml); assert(range.skipToPath("root").empty); assert(range.skipToPath("foo").empty); range = range.skipToPath("../root"); assert(!range.empty); assert(range.front.type == EntityType.elementStart); assert(range.front.name == "root"); } } version(dxmlTests) unittest { import core.exception : AssertError; import std.algorithm.comparison : equal; import std.exception : assertNotThrown, enforce; import dxml.internal : testRangeFuncs; static void testPath(R)(R range, string path, EntityType type, string name, size_t line = __LINE__) { auto result = assertNotThrown!XMLParsingException(range.skipToPath(path), "unittest 1", __FILE__, line); enforce!AssertError(!result.empty, "unittest 2", __FILE__, line); enforce!AssertError(result.front.type == type, "unittest 3", __FILE__, line); enforce!AssertError(equal(result.front.name, name), "unittest 4", __FILE__, line); } static void popEmpty(R)(ref R range) { range.popFront(); static if(range.config.splitEmpty == SplitEmpty.yes) range.popFront(); } auto xml = "<superuser>\n" ~ " <!-- comment -->\n" ~ " <?pi?>\n" ~ " <![CDATA[cdata]]>\n" ~ " <foo/>\n" ~ " <bar/>\n" ~ " <!-- comment -->\n" ~ " <!-- comment -->\n" ~ " <baz/>\n" ~ " <frobozz>\n" ~ " <!-- comment -->\n" ~ " <!-- comment -->\n" ~ " <whatever/>\n" ~ " <!-- comment -->\n" ~ " <!-- comment -->\n" ~ " </frobozz>\n" ~ " <!-- comment -->\n" ~ " <!-- comment -->\n" ~ " <xyzzy/>\n" ~ "</superuser>"; static foreach(func; testRangeFuncs) {{ auto text = func(xml); static foreach(config; someTestConfigs) {{ static if(config.splitEmpty == SplitEmpty.yes) enum empty = EntityType.elementStart; else enum empty = EntityType.elementEmpty; auto range = parseXML!config(text.save); assert(range.save.skipToPath("whatever").empty); assert(range.save.skipToPath("frobozz/whateve").empty); testPath(range.save, "foo", empty, "foo"); testPath(range.save, "bar", empty, "bar"); testPath(range.save, "baz", empty, "baz"); testPath(range.save, "frobozz", EntityType.elementStart, "frobozz"); testPath(range.save, "frobozz/whatever", empty, "whatever"); testPath(range.save, "xyzzy", empty, "xyzzy"); range.popFront(); for(; range.front.type != empty; range.popFront()) { assert(range.save.skipToPath("foo").empty); testPath(range.save, "../foo", empty, "foo"); testPath(range.save, "../bar", empty, "bar"); testPath(range.save, "../baz", empty, "baz"); testPath(range.save, "../frobozz", EntityType.elementStart, "frobozz"); testPath(range.save, "../frobozz/whatever", empty, "whatever"); testPath(range.save, "../xyzzy", empty, "xyzzy"); } assert(equal(range.front.name, "foo")); assert(range.save.skipToPath("foo").empty); assert(range.save.skipToPath("./foo").empty); assert(range.save.skipToPath("../foo").empty); assert(range.save.skipToPath("bar").empty); assert(range.save.skipToPath("baz").empty); assert(range.save.skipToPath("frobozz").empty); assert(range.save.skipToPath("whatever").empty); assert(range.save.skipToPath("../").empty); assert(range.save.skipToPath("../../").empty); testPath(range.save, "../bar", empty, "bar"); testPath(range.save, "../baz", empty, "baz"); testPath(range.save, "../frobozz", EntityType.elementStart, "frobozz"); testPath(range.save, "../frobozz/whatever", empty, "whatever"); testPath(range.save, "../xyzzy", empty, "xyzzy"); popEmpty(range); assert(range.save.skipToPath("bar").empty); testPath(range.save, "../baz", empty, "baz"); testPath(range.save, "../frobozz", EntityType.elementStart, "frobozz"); testPath(range.save, "../frobozz/whatever", empty, "whatever"); testPath(range.save, "../xyzzy", empty, "xyzzy"); range.popFront(); for(; range.front.type != empty; range.popFront()) { assert(range.save.skipToPath("baz").empty); testPath(range.save, "../baz", empty, "baz"); testPath(range.save, "../frobozz", EntityType.elementStart, "frobozz"); testPath(range.save, "../frobozz/whatever", empty, "whatever"); testPath(range.save, "../xyzzy", empty, "xyzzy"); } assert(equal(range.front.name, "baz")); testPath(range.save, "../frobozz", EntityType.elementStart, "frobozz"); testPath(range.save, "../frobozz/whatever", empty, "whatever"); testPath(range.save, "../xyzzy", empty, "xyzzy"); popEmpty(range); assert(equal(range.front.name, "frobozz")); assert(range.save.skipToPath("wizard").empty); testPath(range.save, "whatever", empty, "whatever"); testPath(range.save, "../xyzzy", empty, "xyzzy"); range.popFront(); for(; range.front.type != empty; range.popFront()) { assert(range.save.skipToPath("whatever").empty); testPath(range.save, "../whatever", empty, "whatever"); testPath(range.save, "../../xyzzy", empty, "xyzzy"); } assert(equal(range.front.name, "whatever")); assert(range.save.skipToPath("frobozz").empty); assert(range.save.skipToPath("../frobozz").empty); assert(range.save.skipToPath("../xyzzy").empty); assert(range.save.skipToPath("../../frobozz").empty); testPath(range.save, "../../xyzzy", empty, "xyzzy"); popEmpty(range); for(; range.front.type != EntityType.elementEnd; range.popFront()) { assert(range.save.skipToPath("xyzzy").empty); assert(range.save.skipToPath("../xyzzy").empty); testPath(range.save, "../../xyzzy", empty, "xyzzy"); } assert(equal(range.front.name, "frobozz")); range.popFront(); for(; range.front.type != empty; range.popFront()) { assert(range.save.skipToPath("xyzzy").empty); testPath(range.save, "../xyzzy", empty, "xyzzy"); } assert(equal(range.front.name, "xyzzy")); popEmpty(range); assert(equal(range.front.name, "superuser")); assert(range.save.skipToPath("superuser").empty); assert(range.save.skipToPath("foo").empty); assert(range.save.skipToPath("../foo").empty); assert(range.save.skipToPath("../../foo").empty); }} }} } //------------------------------------------------------------------------------ // Private Section //------------------------------------------------------------------------------ private: version(dxmlTests) auto testParser(Config config = Config.init, R)(R xmlText) @trusted pure nothrow @nogc { import std.utf : byCodeUnit; typeof(EntityRange!(config, R)._text) text; text.input = byCodeUnit(xmlText); return text; } // Used to indicate where in the grammar we're currently parsing. enum GrammarPos { // Nothing has been parsed yet. documentStart, // document ::= prolog element Misc* // prolog ::= XMLDecl? Misc* (doctypedecl Misc*)? // This is that first Misc*. The next entity to parse is either a Misc, the // doctypedecl, or the root element which follows the prolog. prologMisc1, // document ::= prolog element Misc* // prolog ::= XMLDecl? Misc* (doctypedecl Misc*) // This is that second Misc*. The next entity to parse is either a Misc or // the root element which follows the prolog. prologMisc2, // Used with SplitEmpty.yes to tell the parser that we're currently at an // empty element tag that we're treating as a start tag, so the next entity // will be an end tag even though we didn't actually parse one. splittingEmpty, // element ::= EmptyElemTag | STag content ETag // content ::= CharData? ((element | Reference | CDSect | PI | Comment) CharData?)* // This is at the beginning of content at the first CharData?. The next // thing to parse will be a CharData, element, CDSect, PI, Comment, or ETag. // References are treated as part of the CharData and not parsed out by the // EntityRange (see EntityRange.Entity.text). contentCharData1, // element ::= EmptyElemTag | STag content ETag // content ::= CharData? ((element | Reference | CDSect | PI | Comment) CharData?)* // This is after the first CharData?. The next thing to parse will be a // element, CDSect, PI, Comment, or ETag. // References are treated as part of the CharData and not parsed out by the // EntityRange (see EntityRange.Entity.text). contentMid, // element ::= EmptyElemTag | STag content ETag // content ::= CharData? ((element | Reference | CDSect | PI | Comment) CharData?)* // This is at the second CharData?. The next thing to parse will be a // CharData, element, CDSect, PI, Comment, or ETag. // References are treated as part of the CharData and not parsed out by the // EntityRange (see EntityRange.Entity.text). contentCharData2, // element ::= EmptyElemTag | STag content ETag // content ::= CharData? ((element | Reference | CDSect | PI | Comment) CharData?)* // This is after the second CharData?. The next thing to parse is an ETag. endTag, // document ::= prolog element Misc* // This is the Misc* at the end of the document. The next thing to parse is // either another Misc, or we will hit the end of the document. endMisc, // The end of the document (and the grammar) has been reached. documentEnd } // Similar to startsWith except that it consumes the part of the range that // matches. It also deals with incrementing text.pos.col. // // It is assumed that there are no newlines. bool stripStartsWith(Text)(ref Text text, string needle) { static if(hasLength!(Text.Input)) { if(text.input.length < needle.length) return false; // This branch is separate so that we can take advantage of whatever // speed boost comes from comparing strings directly rather than // comparing individual characters. static if(isDynamicArray!(Text.Input) && is(Unqual!(ElementEncodingType!(Text.Input)) == char)) { if(text.input.source[0 .. needle.length] != needle) return false; text.input.popFrontN(needle.length); } else { auto orig = text.save; foreach(c; needle) { if(text.input.front != c) { text = orig; return false; } text.input.popFront(); } } } else { auto orig = text.save; foreach(c; needle) { if(text.input.empty || text.input.front != c) { text = orig; return false; } text.input.popFront(); } } text.pos.col += needle.length; return true; } version(dxmlTests) unittest { import core.exception : AssertError; import std.exception : enforce; import dxml.internal : equalCU, testRangeFuncs; static void test(alias func)(string origHaystack, string needle, string remainder, bool startsWith, int row, int col, size_t line = __LINE__) { auto haystack = func(origHaystack); { auto text = testParser(haystack.save); enforce!AssertError(text.stripStartsWith(needle) == startsWith, "unittest failure 1", __FILE__, line); enforce!AssertError(equalCU(text.input, remainder), "unittest failure 2", __FILE__, line); enforce!AssertError(text.pos == TextPos(row, col), "unittest failure 3", __FILE__, line); } { auto pos = TextPos(row + 3, row == 1 ? col + 7 : col); auto text = testParser(haystack); text.pos.line += 3; text.pos.col += 7; enforce!AssertError(text.stripStartsWith(needle) == startsWith, "unittest failure 4", __FILE__, line); enforce!AssertError(equalCU(text.input, remainder), "unittest failure 5", __FILE__, line); enforce!AssertError(text.pos == pos, "unittest failure 6", __FILE__, line); } } static foreach(func; testRangeFuncs) { test!func("hello world", "hello", " world", true, 1, "hello".length + 1); test!func("hello world", "hello world", "", true, 1, "hello world".length + 1); test!func("hello world", "foo", "hello world", false, 1, 1); test!func("hello world", "hello sally", "hello world", false, 1, 1); test!func("hello world", "hello world ", "hello world", false, 1, 1); } } version(dxmlTests) @safe pure unittest { import std.algorithm.comparison : equal; import dxml.internal : testRangeFuncs; static foreach(func; testRangeFuncs) {{ auto xml = func(`foo`); auto text = testParser!simpleXML(xml); assert(text.stripStartsWith("fo")); }} } // Strips whitespace while dealing with text.pos accordingly. Newlines are not // ignored. // Returns whether any whitespace was stripped. bool stripWS(Text)(ref Text text) { bool strippedSpace = false; static if(hasLength!(Text.Input)) size_t lineStart = text.input.length; loop: while(!text.input.empty) { switch(text.input.front) { case ' ': case '\t': case '\r': { strippedSpace = true; text.input.popFront(); static if(!hasLength!(Text.Input)) ++text.pos.col; break; } case '\n': { strippedSpace = true; text.input.popFront(); static if(hasLength!(Text.Input)) lineStart = text.input.length; nextLine!(Text.config)(text.pos); break; } default: break loop; } } static if(hasLength!(Text.Input)) text.pos.col += lineStart - text.input.length; return strippedSpace; } version(dxmlTests) unittest { import core.exception : AssertError; import std.exception : enforce; import dxml.internal : equalCU; import dxml.internal : testRangeFuncs; static void test(alias func)(string origHaystack, string remainder, bool stripped, int row, int col, size_t line = __LINE__) { auto haystack = func(origHaystack); { auto text = testParser(haystack.save); enforce!AssertError(text.stripWS() == stripped, "unittest failure 1", __FILE__, line); enforce!AssertError(equalCU(text.input, remainder), "unittest failure 2", __FILE__, line); enforce!AssertError(text.pos == TextPos(row, col), "unittest failure 3", __FILE__, line); } { auto pos = TextPos(row + 3, row == 1 ? col + 7 : col); auto text = testParser(haystack); text.pos.line += 3; text.pos.col += 7; enforce!AssertError(text.stripWS() == stripped, "unittest failure 4", __FILE__, line); enforce!AssertError(equalCU(text.input, remainder), "unittest failure 5", __FILE__, line); enforce!AssertError(text.pos == pos, "unittest failure 6", __FILE__, line); } } static foreach(func; testRangeFuncs) { test!func(" \t\rhello world", "hello world", true, 1, 5); test!func(" \n \n \n \nhello world", "hello world", true, 5, 1); test!func(" \n \n \n \n hello world", "hello world", true, 5, 3); test!func("hello world", "hello world", false, 1, 1); } } version(dxmlTests) @safe pure unittest { import dxml.internal : testRangeFuncs; static foreach(func; testRangeFuncs) {{ auto xml = func(`foo`); auto text = testParser!simpleXML(xml); assert(!text.stripWS()); }} } // Returns a slice (or takeExactly) of text.input up to but not including the // given needle, removing both that slice and the given needle from text.input // in the process. If the needle is not found, then an XMLParsingException is // thrown. auto takeUntilAndDrop(string needle, bool skipQuotedText = false, Text)(ref Text text) { return _takeUntil!(true, needle, skipQuotedText, Text)(text); } version(dxmlTests) unittest { import core.exception : AssertError; import std.algorithm.comparison : equal; import std.exception : collectException, enforce; import dxml.internal : codeLen, testRangeFuncs; static void test(alias func, string needle, bool sqt )(string origHaystack, string expected, string remainder, int row, int col, size_t line = __LINE__) { auto haystack = func(origHaystack); { auto text = testParser(haystack.save); auto temp = text.save; enforce!AssertError(equal(text.takeUntilAndDrop!(needle, sqt)(), expected), "unittest failure 1", __FILE__, line); enforce!AssertError(equal(text.input, remainder), "unittest failure 2", __FILE__, line); enforce!AssertError(text.pos == TextPos(row, col), "unittest failure 3", __FILE__, line); } { auto pos = TextPos(row + 3, row == 1 ? col + 7 : col); auto text = testParser(haystack); text.pos.line += 3; text.pos.col += 7; enforce!AssertError(equal(text.takeUntilAndDrop!(needle, sqt)(), expected), "unittest failure 4", __FILE__, line); enforce!AssertError(equal(text.input, remainder), "unittest failure 5", __FILE__, line); enforce!AssertError(text.pos == pos, "unittest failure 6", __FILE__, line); } } static void testFail(alias func, string needle, bool sqt) (string origHaystack, int row, int col, size_t line = __LINE__) { auto haystack = func(origHaystack); { auto text = testParser(haystack.save); auto e = collectException!XMLParsingException(text.takeUntilAndDrop!(needle, sqt)()); enforce!AssertError(e !is null, "unittest failure 1", __FILE__, line); enforce!AssertError(e.pos == TextPos(row, col), "unittest failure 2", __FILE__, line); } { auto pos = TextPos(row + 3, row == 1 ? col + 7 : col); auto text = testParser(haystack); text.pos.line += 3; text.pos.col += 7; auto e = collectException!XMLParsingException(text.takeUntilAndDrop!(needle, sqt)()); enforce!AssertError(e !is null, "unittest failure 3", __FILE__, line); enforce!AssertError(e.pos == pos, "unittest failure 4", __FILE__, line); } } static foreach(func; testRangeFuncs) { static foreach(sqt; [false, true]) { { auto haystack = "hello world"; enum needle = "world"; static foreach(i; 1 .. needle.length) test!(func, needle[0 .. i], sqt)(haystack, "hello ", needle[i .. $], 1, 7 + i); } test!(func, "l", sqt)("lello world", "", "ello world", 1, 2); test!(func, "ll", sqt)("lello world", "le", "o world", 1, 5); test!(func, "le", sqt)("llello world", "l", "llo world", 1, 4); { enum needle = "great"; enum expected = "プログラミング in D is "; static foreach(i; 1 .. needle.length) { test!(func, needle[0 .. i], sqt)("プログラミング in D is great indeed", expected, "great indeed"[i .. $], 1, codeLen!(func, expected) + i + 1); } } static foreach(haystack; ["", "a", "hello", "ディラン"]) testFail!(func, "x", sqt)(haystack, 1, 1); static foreach(haystack; ["", "l", "lte", "world", "nomatch"]) testFail!(func, "le", sqt)(haystack, 1, 1); static foreach(haystack; ["", "w", "we", "wew", "bwe", "we b", "hello we go", "nomatch"]) testFail!(func, "web", sqt)(haystack, 1, 1); } test!(func, "*", false)(`hello '*' "*" * world`, `hello '`, `' "*" * world`, 1, 9); test!(func, "*", false)(`hello '"*' * world`, `hello '"`, `' * world`, 1, 10); test!(func, "*", false)(`hello "'*" * world`, `hello "'`, `" * world`, 1, 10); test!(func, "*", false)(`hello ''' * world`, `hello ''' `, ` world`, 1, 12); test!(func, "*", false)(`hello """ * world`, `hello """ `, ` world`, 1, 12); testFail!(func, "*", false)("foo\n\n ' \n\nbar", 1, 1); testFail!(func, "*", false)(`ディラン " `, 1, 1); test!(func, "*", true)(`hello '*' "*" * world`, `hello '*' "*" `, ` world`, 1, 16); test!(func, "*", true)(`hello '"*' * world`, `hello '"*' `, ` world`, 1, 13); test!(func, "*", true)(`hello "'*" * world`, `hello "'*" `, ` world`, 1, 13); testFail!(func, "*", true)(`hello ''' * world`, 1, 9); testFail!(func, "*", true)(`hello """ * world`, 1, 9); testFail!(func, "*", true)("foo\n\n ' \n\nbar", 3, 4); testFail!(func, "*", true)(`ディラン " `, 1, codeLen!(func, `ディラン "`)); test!(func, "*", true)(`hello '' "" * world`, `hello '' "" `, ` world`, 1, 14); test!(func, "*", true)("foo '\n \n \n' bar*", "foo '\n \n \n' bar", "", 4, 7); } } version(dxmlTests) @safe pure unittest { import std.algorithm.comparison : equal; import dxml.internal : testRangeFuncs; static foreach(func; testRangeFuncs) {{ auto xml = func(`foo`); auto text = testParser!simpleXML(xml); assert(equal(text.takeUntilAndDrop!"o"(), "f")); }} } // Variant of takeUntilAndDrop which does not return a slice. It's intended for // when the config indicates that something should be skipped. void skipUntilAndDrop(string needle, bool skipQuotedText = false, Text)(ref Text text) { _takeUntil!(false, needle, skipQuotedText, Text)(text); } version(dxmlTests) unittest { import core.exception : AssertError; import std.algorithm.comparison : equal; import std.exception : assertNotThrown, collectException, enforce; import dxml.internal : codeLen, testRangeFuncs; static void test(alias func, string needle, bool sqt)(string origHaystack, string remainder, int row, int col, size_t line = __LINE__) { auto haystack = func(origHaystack); { auto text = testParser(haystack.save); assertNotThrown!XMLParsingException(text.skipUntilAndDrop!(needle, sqt)(), "unittest failure 1", __FILE__, line); enforce!AssertError(equal(text.input, remainder), "unittest failure 2", __FILE__, line); enforce!AssertError(text.pos == TextPos(row, col), "unittest failure 3", __FILE__, line); } { auto pos = TextPos(row + 3, row == 1 ? col + 7 : col); auto text = testParser(haystack); text.pos.line += 3; text.pos.col += 7; assertNotThrown!XMLParsingException(text.skipUntilAndDrop!(needle, sqt)(), "unittest failure 4", __FILE__, line); enforce!AssertError(equal(text.input, remainder), "unittest failure 5", __FILE__, line); enforce!AssertError(text.pos == pos, "unittest failure 6", __FILE__, line); } } static void testFail(alias func, string needle, bool sqt) (string origHaystack, int row, int col, size_t line = __LINE__) { auto haystack = func(origHaystack); { auto text = testParser(haystack.save); auto e = collectException!XMLParsingException(text.skipUntilAndDrop!(needle, sqt)()); enforce!AssertError(e !is null, "unittest failure 1", __FILE__, line); enforce!AssertError(e.pos == TextPos(row, col), "unittest failure 2", __FILE__, line); } { auto pos = TextPos(row + 3, row == 1 ? col + 7 : col); auto text = testParser(haystack); text.pos.line += 3; text.pos.col += 7; auto e = collectException!XMLParsingException(text.skipUntilAndDrop!(needle, sqt)()); enforce!AssertError(e !is null, "unittest failure 3", __FILE__, line); enforce!AssertError(e.pos == pos, "unittest failure 4", __FILE__, line); } } static foreach(func; testRangeFuncs) { static foreach(sqt; [false, true]) { { enum needle = "world"; static foreach(i; 1 .. needle.length) test!(func, needle[0 .. i], sqt)("hello world", needle[i .. $], 1, 7 + i); } test!(func, "l", sqt)("lello world", "ello world", 1, 2); test!(func, "ll", sqt)("lello world", "o world", 1, 5); test!(func, "le", sqt)("llello world", "llo world", 1, 4); { enum needle = "great"; static foreach(i; 1 .. needle.length) { test!(func, needle[0 .. i], sqt)("プログラミング in D is great indeed", "great indeed"[i .. $], 1, codeLen!(func, "プログラミング in D is ") + i + 1); } } static foreach(haystack; ["", "a", "hello", "ディラン"]) testFail!(func, "x", sqt)(haystack, 1, 1); static foreach(haystack; ["", "l", "lte", "world", "nomatch"]) testFail!(func, "le", sqt)(haystack, 1, 1); static foreach(haystack; ["", "w", "we", "wew", "bwe", "we b", "hello we go", "nomatch"]) testFail!(func, "web", sqt)(haystack, 1, 1); } test!(func, "*", false)(`hello '*' "*" * world`, `' "*" * world`, 1, 9); test!(func, "*", false)(`hello '"*' * world`, `' * world`, 1, 10); test!(func, "*", false)(`hello "'*" * world`, `" * world`, 1, 10); test!(func, "*", false)(`hello ''' * world`, ` world`, 1, 12); test!(func, "*", false)(`hello """ * world`, ` world`, 1, 12); testFail!(func, "*", false)("foo\n\n ' \n\nbar", 1, 1); testFail!(func, "*", false)(`ディラン " `, 1, 1); test!(func, "*", true)(`hello '*' "*" * world`, ` world`, 1, 16); test!(func, "*", true)(`hello '"*' * world`, ` world`, 1, 13); test!(func, "*", true)(`hello "'*" * world`, ` world`, 1, 13); testFail!(func, "*", true)(`hello ''' * world`, 1, 9); testFail!(func, "*", true)(`hello """ * world`, 1, 9); testFail!(func, "*", true)("foo\n\n ' \n\nbar", 3, 4); testFail!(func, "*", true)(`ディラン " `, 1, codeLen!(func, `ディラン "`)); test!(func, "*", true)(`hello '' "" * world`, ` world`, 1, 14); test!(func, "*", true)("foo '\n \n \n' bar*", "", 4, 7); } } version(dxmlTests) @safe pure unittest { import std.algorithm.comparison : equal; import dxml.internal : testRangeFuncs; static foreach(func; testRangeFuncs) {{ auto xml = func(`foo`); auto text = testParser!simpleXML(xml); text.skipUntilAndDrop!"o"(); assert(equal(text.input, "o")); }} } auto _takeUntil(bool retSlice, string needle, bool skipQuotedText, Text)(ref Text text) { import std.algorithm : find; import std.ascii : isWhite; import std.range : takeExactly; static assert(needle.find!isWhite().empty); auto orig = text.save; bool found = false; size_t takeLen = 0; size_t lineStart = 0; void processNewline() { ++takeLen; nextLine!(Text.config)(text.pos); lineStart = takeLen; } loop: while(!text.input.empty) { switch(text.input.front) { case cast(ElementType!(Text.Input))needle[0]: { static if(needle.length == 1) { found = true; text.input.popFront(); break loop; } else static if(needle.length == 2) { text.input.popFront(); if(!text.input.empty && text.input.front == needle[1]) { found = true; text.input.popFront(); break loop; } ++takeLen; continue; } else { text.input.popFront(); auto saved = text.input.save; foreach(i, c; needle[1 .. $]) { if(text.input.empty) { takeLen += i + 1; break loop; } if(text.input.front != c) { text.input = saved; ++takeLen; continue loop; } text.input.popFront(); } found = true; break loop; } } static if(skipQuotedText) { static foreach(quote; ['\'', '"']) { case quote: { auto quotePos = text.pos; quotePos.col += takeLen - lineStart; ++takeLen; while(true) { text.input.popFront(); if(text.input.empty) throw new XMLParsingException("Failed to find matching quote", quotePos); switch(text.input.front) { case quote: { ++takeLen; text.input.popFront(); continue loop; } case '\n': { processNewline(); break; } default: { ++takeLen; break; } } } assert(0); // the compiler isn't smart enough to see that this is unreachable. } } } case '\n': { processNewline(); break; } default: { ++takeLen; break; } } text.input.popFront(); } text.pos.col += takeLen - lineStart + needle.length; if(!found) throw new XMLParsingException("Failed to find: " ~ needle, orig.pos); static if(retSlice) return takeExactly(orig.input, takeLen); } // Okay, this name kind of sucks, because it's too close to skipUntilAndDrop, // but I'd rather do this than be passing template arguments to choose between // behaviors - especially when the logic is so different. It skips until it // reaches one of the delimiter characters. If it finds one of them, then the // first character in the input is the delimiter that was found, and if it // doesn't find either, then it throws. template skipToOneOf(delims...) { static foreach(delim; delims) { static assert(is(typeof(delim) == char)); static assert(!isSpace(delim)); } void skipToOneOf(Text)(ref Text text) { while(!text.input.empty) { switch(text.input.front) { static foreach(delim; delims) case delim: return; case '\n': { nextLine!(Text.config)(text.pos); text.input.popFront(); break; } default: { popFrontAndIncCol(text); break; } } } throw new XMLParsingException("Prematurely reached end of document", text.pos); } } version(dxmlTests) unittest { import core.exception : AssertError; import std.algorithm.comparison : equal; import std.exception : assertNotThrown, collectException, enforce; import dxml.internal : codeLen, testRangeFuncs; static void test(alias func, delims...)(string origHaystack, string remainder, int row, int col, size_t line = __LINE__) { auto haystack = func(origHaystack); { auto text = testParser(haystack.save); assertNotThrown!XMLParsingException(text.skipToOneOf!delims(), "unittest 1", __FILE__, line); enforce!AssertError(equal(text.input, remainder), "unittest failure 2", __FILE__, line); enforce!AssertError(text.pos == TextPos(row, col), "unittest failure 3", __FILE__, line); } { auto pos = TextPos(row + 3, row == 1 ? col + 7 : col); auto text = testParser(haystack); text.pos.line += 3; text.pos.col += 7; assertNotThrown!XMLParsingException(text.skipToOneOf!delims(), "unittest 4", __FILE__, line); enforce!AssertError(equal(text.input, remainder), "unittest failure 5", __FILE__, line); enforce!AssertError(text.pos == pos, "unittest failure 6", __FILE__, line); } } static void testFail(alias func, delims...)(string origHaystack, int row, int col, size_t line = __LINE__) { auto haystack = func(origHaystack); { auto text = testParser(haystack.save); auto e = collectException!XMLParsingException(text.skipToOneOf!delims()); enforce!AssertError(e !is null, "unittest failure 1", __FILE__, line); enforce!AssertError(e.pos == TextPos(row, col), "unittest failure 2", __FILE__, line); } { auto pos = TextPos(row + 3, row == 1 ? col + 7 : col); auto text = testParser(haystack); text.pos.line += 3; text.pos.col += 7; auto e = collectException!XMLParsingException(text.skipToOneOf!delims()); enforce!AssertError(e !is null, "unittest failure 3", __FILE__, line); enforce!AssertError(e.pos == pos, "unittest failure 4", __FILE__, line); } } static foreach(func; testRangeFuncs) { test!(func, 'o', 'w')("hello world", "o world", 1, 5); test!(func, 'r', 'w', '1', '+', '*')("hello world", "world", 1, 7); test!(func, 'z', 'y')("abc\n\n\n \n\n wxyzzy \nf\ng", "yzzy \nf\ng", 6, 6); test!(func, 'o', 'g')("abc\n\n\n \n\n wxyzzy \nf\ng", "g", 8, 1); test!(func, 'g', 'x')("プログラミング in D is great indeed", "great indeed", 1, codeLen!(func, "プログラミング in D is ") + 1); testFail!(func, 'a', 'b')("hello world", 1, 12); testFail!(func, 'a', 'b')("hello\n\nworld", 3, 6); testFail!(func, 'a', 'b')("プログラミング", 1, codeLen!(func, "プログラミング") + 1); } } version(dxmlTests) @safe pure unittest { import std.algorithm.comparison : equal; import dxml.internal : testRangeFuncs; static foreach(func; testRangeFuncs) {{ auto xml = func(`foo`); auto text = testParser!simpleXML(xml); text.skipToOneOf!('o')(); assert(equal(text.input, "oo")); }} } // The front of the input should be text surrounded by single or double quotes. // This returns a slice of the input containing that text, and the input is // advanced to one code unit beyond the quote. auto takeEnquotedText(Text)(ref Text text) { checkNotEmpty(text); immutable quote = text.input.front; static foreach(quoteChar; [`"`, `'`]) { // This would be a bit simpler if takeUntilAndDrop took a runtime // argument, but in all other cases, a compile-time argument makes more // sense, so this seemed like a reasonable way to handle this one case. if(quote == quoteChar[0]) { popFrontAndIncCol(text); return takeUntilAndDrop!quoteChar(text); } } throw new XMLParsingException("Expected quoted text", text.pos); } version(dxmlTests) unittest { import core.exception : AssertError; import std.algorithm.comparison : equal; import std.exception : assertThrown, enforce; import std.range : only; import dxml.internal : testRangeFuncs; static void test(alias func)(string origHaystack, string expected, string remainder, int row, int col, size_t line = __LINE__) { auto haystack = func(origHaystack); { auto text = testParser(haystack.save); enforce!AssertError(equal(takeEnquotedText(text), expected), "unittest failure 1", __FILE__, line); enforce!AssertError(equal(text.input, remainder), "unittest failure 2", __FILE__, line); enforce!AssertError(text.pos == TextPos(row, col), "unittest failure 3", __FILE__, line); } { auto pos = TextPos(row + 3, row == 1 ? col + 7 : col); auto text = testParser(haystack); text.pos.line += 3; text.pos.col += 7; enforce!AssertError(equal(takeEnquotedText(text), expected), "unittest failure 3", __FILE__, line); enforce!AssertError(equal(text.input, remainder), "unittest failure 4", __FILE__, line); enforce!AssertError(text.pos == pos, "unittest failure 3", __FILE__, line); } } static void testFail(alias func)(string origHaystack, size_t line = __LINE__) { auto haystack = func(origHaystack); auto text = testParser(haystack); assertThrown!XMLParsingException(text.takeEnquotedText(), "unittest failure", __FILE__, line); } static foreach(func; testRangeFuncs) { foreach(quote; only("\"", "'")) { test!func(quote ~ quote, "", "", 1, 3); test!func(quote ~ "hello world" ~ quote, "hello world", "", 1, 14); test!func(quote ~ "hello world" ~ quote ~ " foo", "hello world", " foo", 1, 14); { import std.utf : codeLength; auto haystack = quote ~ "プログラミング " ~ quote ~ "in D"; enum len = cast(int)codeLength!(ElementEncodingType!(typeof(func(haystack))))("プログラミング "); test!func(haystack, "プログラミング ", "in D", 1, len + 3); } } foreach(str; only(`hello`, `"hello'`, `"hello`, `'hello"`, `'hello`, ``, `"'`, `"`, `'"`, `'`)) testFail!func(str); } } // This removes a name per the Name grammar rule from the front of the input and // returns it. // The parsing continues until either one of the given delimiters or an XML // whitespace character is encountered. The delimiter/whitespace is not returned // as part of the name and is left at the front of the input. template takeName(delims...) { static foreach(delim; delims) { static assert(is(typeof(delim) == char), delim); static assert(!isSpace(delim)); } auto takeName(Text)(ref Text text) { import std.format : format; import std.range : takeExactly; import std.utf : decodeFront, UseReplacementDchar; import dxml.internal : isNameStartChar, isNameChar; assert(!text.input.empty); auto orig = text.input.save; size_t takeLen; { immutable decodedC = text.input.decodeFront!(UseReplacementDchar.yes)(takeLen); if(!isNameStartChar(decodedC)) throw new XMLParsingException(format!"Name contains invalid character: 0x%0x"(decodedC), text.pos); } if(text.input.empty) { text.pos.col += takeLen; return takeExactly(orig, takeLen); } loop: while(true) { immutable c = text.input.front; if(isSpace(c)) break; static foreach(delim; delims) { if(c == delim) break loop; } size_t numCodeUnits; immutable decodedC = text.input.decodeFront!(UseReplacementDchar.yes)(numCodeUnits); if(!isNameChar(decodedC)) { text.pos.col += takeLen; throw new XMLParsingException(format!"Name contains invalid character: 0x%0x"(decodedC), text.pos); } takeLen += numCodeUnits; if(text.input.empty) break; } text.pos.col += takeLen; return takeExactly(orig, takeLen); } } version(dxmlTests) unittest { import core.exception : AssertError; import std.algorithm.comparison : equal; import std.exception : collectException, enforce; import std.typecons : tuple; import dxml.internal : codeLen, testRangeFuncs; static void test(alias func, delim...)(string origHaystack, string expected, string remainder, int row, int col, size_t line = __LINE__) { auto haystack = func(origHaystack); { auto text = testParser(haystack.save); enforce!AssertError(equal(text.takeName!delim(), expected), "unittest failure 1", __FILE__, line); enforce!AssertError(equal(text.input, remainder), "unittest failure 2", __FILE__, line); enforce!AssertError(text.pos == TextPos(row, col), "unittest failure 3", __FILE__, line); } { auto pos = TextPos(row + 3, row == 1 ? col + 7 : col); auto text = testParser(haystack); text.pos.line += 3; text.pos.col += 7; enforce!AssertError(equal(text.takeName!delim(), expected), "unittest failure 4", __FILE__, line); enforce!AssertError(equal(text.input, remainder), "unittest failure 5", __FILE__, line); enforce!AssertError(text.pos == pos, "unittest failure 6", __FILE__, line); } } static void testFail(alias func, delim...)(string origHaystack, int row, int col, size_t line = __LINE__) { auto haystack = func(origHaystack); { auto text = testParser(haystack.save); auto e = collectException!XMLParsingException(text.takeName!delim()); enforce!AssertError(e !is null, "unittest failure 1", __FILE__, line); enforce!AssertError(e.pos == TextPos(row, col), "unittest failure 2", __FILE__, line); } { auto pos = TextPos(row + 3, row == 1 ? col + 7 : col); auto text = testParser(haystack); text.pos.line += 3; text.pos.col += 7; auto e = collectException!XMLParsingException(text.takeName!delim()); enforce!AssertError(e !is null, "unittest failure 3", __FILE__, line); enforce!AssertError(e.pos == pos, "unittest failure 4", __FILE__, line); } } static foreach(func; testRangeFuncs) { static foreach(str; ["hello", "プログラミング", "h_:llo-.42", "_.", "_-", "_42"]) {{ enum len = codeLen!(func, str); static foreach(remainder; ["", " ", "\t", "\r", "\n", " foo", "\tfoo", "\rfoo", "\nfoo", " foo \n \r "]) {{ enum strRem = str ~ remainder; enum delimRem = '>' ~ remainder; enum hay = str ~ delimRem; test!func(strRem, str, remainder, 1, len + 1); test!(func, '=')(strRem, str, remainder, 1, len + 1); test!(func, '>', '|')(hay, str, delimRem, 1, len + 1); test!(func, '|', '>')(hay, str, delimRem, 1, len + 1); }} }} static foreach(t; [tuple(" ", 1, 1), tuple("<", 1, 1), tuple("foo!", 1, 4), tuple("foo!<", 1, 4)]) {{ testFail!func(t[0], t[1], t[2]); testFail!func(t[0] ~ '>', t[1], t[2]); testFail!(func, '?')(t[0], t[1], t[2]); testFail!(func, '=')(t[0] ~ '=', t[1], t[2]); }} testFail!(func, '>')(">", 1, 1); testFail!(func, '?')("?", 1, 1); testFail!(func, '?')("プログ&ラミング", 1, codeLen!(func, "プログ&")); static foreach(t; [tuple("42", 1, 1), tuple(".", 1, 1), tuple(".a", 1, 1)]) { testFail!func(t[0], t[1], t[2]); testFail!(func, '>')(t[0], t[1], t[2]); } } } version(dxmlTests) @safe pure unittest { import std.algorithm.comparison : equal; import dxml.internal : testRangeFuncs; static foreach(func; testRangeFuncs) {{ auto xml = func(`foo`); auto text = testParser!simpleXML(xml); assert(equal(text.takeName(), "foo")); }} } // This removes an attribute value from the front of the input, partially // validates it, and returns it. The validation that is not done is whether // the value in a character reference is valid. It's checked for whether the // characters used in it are valid but not whether the number they form is a // valid Unicode character. Checking the number doesn't seem worth the extra // complication, and it's not required for the XML to be "well-formed." // dxml.util.parseCharRef will check that it is fully correct if it is used. auto takeAttValue(Text)(ref Text text) { // AttValue ::= '"' ([^<&"] | Reference)* '"' | "'" ([^<&'] | Reference)* "'" // Reference ::= EntityRef | CharRef // EntityRef ::= '&' Name ';' // PEReference ::= '%' Name ';' import std.range : only; checkNotEmpty(text); immutable quote = text.input.front; immutable quotePos = text.pos; foreach(quoteChar; only('"', '\'')) { // This would be a bit simpler if takeUntilAndDrop took a runtime // argument, but in all other cases, a compile-time argument makes more // sense, so this seemed like a reasonable way to handle this one case. if(quote == quoteChar) { popFrontAndIncCol(text); size_t lineStart = 0; auto orig = text.input.save; size_t takeLen; loop: while(true) { if(text.input.empty) throw new XMLParsingException("Unterminated attribute value", quotePos); switch(text.input.front) { case '"': { if(quote == '"') { text.input.popFront(); goto done; } goto default; } case '\'': { if(quote == '\'') { text.input.popFront(); goto done; } goto default; } case '&': { { import dxml.util : parseCharRef; auto temp = text.input.save; auto charRef = parseCharRef(temp); if(!charRef.isNull) { static if(hasLength!(Text.Input)) { takeLen += text.input.length - temp.length; text.input = temp; } else { while(text.input.front != ';') { ++takeLen; text.input.popFront(); } ++takeLen; text.input.popFront(); } continue; } } immutable ampLen = takeLen - lineStart; ++takeLen; text.input.popFront(); import std.algorithm.searching : startsWith; static foreach(entRef; ["amp;", "apos;", "quot;", "lt;", "gt;"]) { if(text.input.save.startsWith(entRef)) { takeLen += entRef.length; text.input.popFrontN(entRef.length); continue loop; } } text.pos.col += ampLen; throw new XMLParsingException("& is only legal in an attribute value as part of a reference, " ~ "and this parser only supports entity references if they're " ~ "predefined by the spec. This is not a valid character " ~ "reference or one of the predefined entity references.", text.pos); } case '<': { text.pos.col += takeLen - lineStart; throw new XMLParsingException("< is not legal in an attribute name", text.pos); } case '\n': { ++takeLen; nextLine!(Text.config)(text.pos); lineStart = takeLen; break; } default: { import std.ascii : isASCII; import std.format : format; import dxml.internal : isXMLChar; immutable c = text.input.front; if(isASCII(c)) { if(!isXMLChar(c)) { throw new XMLParsingException(format!"Character is not legal in an XML File: 0x%0x"(c), text.pos); } ++takeLen; break; } import std.utf : decodeFront, UseReplacementDchar, UTFException; // Annoyngly, letting decodeFront throw is the easier way to handle this, since the // replacement character is considered valid XML, and if we decoded using it, then // all of the invalid Unicode characters would come out as the replacement character // and then be treated as valid instead of being caught, which isn't all bad, but // the spec requires that they be treated as invalid instead of playing nice and // using the replacement character. try { size_t numCodeUnits; immutable decodedC = text.input.decodeFront!(UseReplacementDchar.no)(numCodeUnits); if(!isXMLChar(decodedC)) { enum fmt = "Character is not legal in an XML File: 0x%0x"; throw new XMLParsingException(format!fmt(decodedC), text.pos); } takeLen += numCodeUnits; } catch(UTFException e) throw new XMLParsingException("Invalid Unicode character", text.pos); continue; } } text.input.popFront(); } done: { import std.range : takeExactly; text.pos.col += takeLen - lineStart + 1; return takeExactly(orig, takeLen); } } } throw new XMLParsingException("Expected quoted text", text.pos); } version(dxmlTests) unittest { import core.exception : AssertError; import std.algorithm.comparison : equal; import std.exception : collectException, enforce; import std.range : only; import dxml.internal : codeLen, testRangeFuncs; static void test(alias func)(string origHaystack, string expected, string remainder, int row, int col, size_t line = __LINE__) { auto haystack = func(origHaystack); { auto text = testParser(haystack.save); enforce!AssertError(equal(text.takeAttValue(), expected), "unittest failure 1", __FILE__, line); enforce!AssertError(equal(text.input, remainder), "unittest failure 2", __FILE__, line); enforce!AssertError(text.pos == TextPos(row, col), "unittest failure 3", __FILE__, line); } { auto pos = TextPos(row + 3, row == 1 ? col + 7 : col); auto text = testParser(haystack); text.pos.line += 3; text.pos.col += 7; enforce!AssertError(equal(text.takeAttValue(), expected), "unittest failure 4", __FILE__, line); enforce!AssertError(equal(text.input, remainder), "unittest failure 5", __FILE__, line); enforce!AssertError(text.pos == pos, "unittest failure 6", __FILE__, line); } } static void testFail(alias func)(string origHaystack, int row, int col, size_t line = __LINE__) { auto haystack = func(origHaystack); { auto text = testParser(haystack.save); auto e = collectException!XMLParsingException(text.takeAttValue()); enforce!AssertError(e !is null, "unittest failure 1", __FILE__, line); enforce!AssertError(e.pos == TextPos(row, col), "unittest failure 2", __FILE__, line); } { auto pos = TextPos(row + 3, row == 1 ? col + 7 : col); auto text = testParser(haystack); text.pos.line += 3; text.pos.col += 7; auto e = collectException!XMLParsingException(text.takeAttValue()); enforce!AssertError(e !is null, "unittest failure 1", __FILE__, line); enforce!AssertError(e.pos == pos, "unittest failure 2", __FILE__, line); } } static foreach(i, func; testRangeFuncs) { test!func(`""`, "", "", 1, 3); test!func(`"J"`, "J", "", 1, 4); test!func(`"foo"`, "foo", "", 1, 6); test!func(`"プログラミング"`, "プログラミング", "", 1, codeLen!(func, "プログラミング") + 3); test!func(`"foo"bar`, "foo", "bar", 1, 6); test!func(`"プログラミング" after`, "プログラミング", " after", 1, codeLen!(func, "プログラミング") + 3); test!func(`''`, "", "", 1, 3); test!func(`'J'`, "J", "", 1, 4); test!func(`'foo'`, "foo", "", 1, 6); test!func(`'プログラミング'`, "プログラミング", "", 1, codeLen!(func, "プログラミング") + 3); test!func(`'foo'bar`, "foo", "bar", 1, 6); test!func(`'プログラミング' after`, "プログラミング", " after", 1, codeLen!(func, "プログラミング") + 3); test!func(`"&amp;&gt;&lt;"`, "&amp;&gt;&lt;", "", 1, 16); test!func(`"&apos;&quot;"`, "&apos;&quot;", "", 1, 15); test!func(`"hello&amp;&gt;&lt;world"`, "hello&amp;&gt;&lt;world", "", 1, 26); test!func(`".....&amp;&gt;&lt;....."`, ".....&amp;&gt;&lt;.....", "", 1, 26); test!func(`"&#12487;&#12451;&#12521;&#12531;"`, "&#12487;&#12451;&#12521;&#12531;", "", 1, 35); test!func(`"hello&#xAF;&#77;&amp;world"`, "hello&#xAF;&#77;&amp;world", "", 1, 29); test!func(`'&amp;&gt;&lt;'`, "&amp;&gt;&lt;", "", 1, 16); test!func(`'hello&amp;&gt;&lt;world'`, "hello&amp;&gt;&lt;world", "", 1, 26); test!func(`'&apos;&quot;'`, "&apos;&quot;", "", 1, 15); test!func(`'.....&amp;&gt;&lt;.....'`, ".....&amp;&gt;&lt;.....", "", 1, 26); test!func(`'&#12487;&#12451;&#12521;&#12531;'`, "&#12487;&#12451;&#12521;&#12531;", "", 1, 35); test!func(`'hello&#xAF;&#77;&amp;world'`, "hello&#xAF;&#77;&amp;world", "", 1, 29); test!func("'hello\nworld'", "hello\nworld", "", 2, 7); test!func("'hello\nworld\n'", "hello\nworld\n", "", 3, 2); test!func(`"'''"whatever`, "'''", "whatever", 1, 6); test!func(`'"""'whatever`, `"""`, "whatever", 1, 6); test!func(`"&#42;"`, "&#42;", "", 1, 8); test!func(`"&#x42;"`, "&#x42;", "", 1, 9); test!func(`"%foo"`, "%foo", "", 1, 7); testFail!func(`"`, 1, 1); testFail!func(`"foo`, 1, 1); testFail!func(`"foo'`, 1, 1); testFail!func(`"<"`, 1, 2); testFail!func(`"&`, 1, 2); testFail!func(`"&"`, 1, 2); testFail!func(`"&x"`, 1, 2); testFail!func(`"&&;"`, 1, 2); testFail!func(`"&foo;"`, 1, 2); testFail!func(`"hello&;"`, 1, 7); testFail!func(`"hello&;world"`,1, 7); testFail!func(`"hello&<;world"`,1, 7); testFail!func(`"hello&world"`,1, 7); testFail!func(`"hello<world"`,1, 7); testFail!func(`"hello world&"`, 1, 13); testFail!func(`"hello world&;"`, 1, 13); testFail!func(`"hello world&foo"`, 1, 13); testFail!func(`"hello world&foo;"`, 1, 13); testFail!func(`"foo<"`, 1, 5); testFail!func(`"&#`, 1, 2); testFail!func(`"&#"`, 1, 2); testFail!func(`"&#;"`, 1, 2); testFail!func(`"&#x;"`, 1, 2); testFail!func(`"&#AF;"`, 1, 2); testFail!func(`"&#x`, 1, 2); testFail!func(`"&#77`, 1, 2); testFail!func(`"&#77;`, 1, 1); testFail!func(`"&#x0`, 1, 2); testFail!func(`"&#x0;`, 1, 2); testFail!func(`"&#x0;"`, 1, 2); testFail!func(`"&am;"`, 1, 2); testFail!func(`"&ampe;"`, 1, 2); testFail!func(`"&l;"`, 1, 2); testFail!func(`"&lte;"`, 1, 2); testFail!func(`"&g;"`, 1, 2); testFail!func(`"&gte;"`, 1, 2); testFail!func(`"&apo;"`, 1, 2); testFail!func(`"&aposs;"`, 1, 2); testFail!func(`"&quo;"`, 1, 2); testFail!func(`"&quote;"`, 1, 2); testFail!func(`'`, 1, 1); testFail!func(`'foo`, 1, 1); testFail!func(`'foo"`, 1, 1); testFail!func(`'<'`, 1, 2); testFail!func("'\v'", 1, 2); testFail!func("'\uFFFE'", 1, 2); testFail!func(`'&`, 1, 2); testFail!func(`'&'`, 1, 2); testFail!func(`'&x'`, 1, 2); testFail!func(`'&&;'`, 1, 2); testFail!func(`'&foo;'`, 1, 2); testFail!func(`'hello&;'`, 1, 7); testFail!func(`'hello&;world'`, 1, 7); testFail!func(`'hello&<;world'`, 1, 7); testFail!func(`'hello&world'`, 1, 7); testFail!func(`'hello<world'`, 1, 7); testFail!func(`'hello world&'`, 1, 13); testFail!func(`'hello world&;'`, 1, 13); testFail!func(`'hello world&foo'`, 1, 13); testFail!func(`'hello world&foo;'`, 1, 13); testFail!func(`'foo<'`, 1, 5); testFail!func(`'&#`, 1, 2); testFail!func(`'&#'`, 1, 2); testFail!func(`'&#;'`, 1, 2); testFail!func(`'&#x;'`, 1, 2); testFail!func(`'&#AF;'`, 1, 2); testFail!func(`'&#x`, 1, 2); testFail!func(`'&#77`, 1, 2); testFail!func(`'&#77;`, 1, 1); testFail!func(`'&#x0`, 1, 2); testFail!func(`'&#x0;`, 1, 2); testFail!func(`'&#x0;'`, 1, 2); testFail!func(`'&am;'`, 1, 2); testFail!func(`'&ampe;'`, 1, 2); testFail!func(`'&l;'`, 1, 2); testFail!func(`'&lte;'`, 1, 2); testFail!func(`'&g;'`, 1, 2); testFail!func(`'&gte;'`, 1, 2); testFail!func(`'&apo;'`, 1, 2); testFail!func(`'&aposs;'`, 1, 2); testFail!func(`'&quo;'`, 1, 2); testFail!func(`'&quote;'`, 1, 2); testFail!func("'&#xA\nF;'", 1, 2); testFail!func("'&amp\n;'", 1, 2); testFail!func("'&\namp;'", 1, 2); testFail!func("'\n&amp;&;'", 2, 6); } // These can't be tested with testFail, because attempting to convert // invalid Unicode results in UnicodeExceptions before parseXML even // gets called. import std.meta : AliasSeq; static foreach(str; AliasSeq!("'" ~ cast(string)[255] ~ "'", "'"w ~ cast(wstring)[0xD800] ~ "'", "'"d ~ cast(dstring)[0xD800] ~ "'")) {{ auto text = testParser(str); auto e = collectException!XMLParsingException(text.takeAttValue()); assert(e ! is null); assert(e.pos == TextPos(1, 2)); }} } version(dxmlTests) @safe pure unittest { import std.algorithm.comparison : equal; import dxml.internal : testRangeFuncs; static foreach(func; testRangeFuncs) {{ auto xml = func(`'foo'`); auto text = testParser!simpleXML(xml); assert(equal(text.takeAttValue(), "foo")); }} } // Validates an EntityType.text field to verify that it does not contain invalid // characters. void checkText(bool allowRestrictedChars, Text)(ref Text orig) { import std.format : format; import std.utf : decodeFront, UseReplacementDchar; auto text = orig.save; loop: while(!text.input.empty) { switch(text.input.front) { static if(!allowRestrictedChars) { case '&': { import dxml.util : parseCharRef; { auto temp = text.input.save; auto charRef = parseCharRef(temp); if(!charRef.isNull) { static if(hasLength!(Text.Input)) { text.pos.col += text.input.length - temp.length; text.input = temp; } else { while(text.input.front != ';') popFrontAndIncCol(text); popFrontAndIncCol(text); } continue; } } immutable ampPos = text.pos; popFrontAndIncCol(text); static foreach(entRef; ["amp;", "apos;", "quot;", "lt;", "gt;"]) { if(text.stripStartsWith(entRef)) continue loop; } throw new XMLParsingException("& is only legal in an EntitType.text entity as part of a " ~ "reference, and this parser only supports entity references if " ~ "they're predefined by the spec. This is not a valid character " ~ "reference or one of the predefined entity references.", ampPos); } case '<': throw new XMLParsingException("< is not legal in EntityType.text", text.pos); case ']': { popFrontAndIncCol(text); if(text.stripStartsWith("]>")) { text.pos.col -= 3; throw new XMLParsingException("]]> is not legal in EntityType.text", text.pos); } break; } } case '\n': { nextLine!(text.config)(text.pos); text.input.popFront(); break; } default: { import std.ascii : isASCII; import dxml.internal : isXMLChar; immutable c = text.input.front; if(isASCII(c)) { if(!isXMLChar(c)) { throw new XMLParsingException(format!"Character is not legal in an XML File: 0x%0x"(c), text.pos); } popFrontAndIncCol(text); } else { import std.utf : UTFException; // Annoyngly, letting decodeFront throw is the easier way to handle this, since the // replacement character is considered valid XML, and if we decoded using it, then // all of the invalid Unicode characters would come out as the replacement character // and then be treated as valid instead of being caught, which isn't all bad, but // the spec requires that they be treated as invalid instead of playing nice and // using the replacement character. try { size_t numCodeUnits; immutable decodedC = text.input.decodeFront!(UseReplacementDchar.no)(numCodeUnits); if(!isXMLChar(decodedC)) { enum fmt = "Character is not legal in an XML File: 0x%0x"; throw new XMLParsingException(format!fmt(decodedC), text.pos); } text.pos.col += numCodeUnits; } catch(UTFException) throw new XMLParsingException("Invalid Unicode character", text.pos); } break; } } } } version(dxmlTests) unittest { import core.exception : AssertError; import std.exception : assertNotThrown, collectException, enforce; import dxml.internal : codeLen, testRangeFuncs; static void test(alias func, bool arc)(string text, size_t line = __LINE__) { auto xml = func(text); auto range = testParser(xml); assertNotThrown(checkText!arc(range), "unittest failure", __FILE__, line); } static void testFail(alias func, bool arc)(string text, int row, int col, size_t line = __LINE__) { auto xml = func(text); { auto range = testParser(xml.save); auto e = collectException!XMLParsingException(checkText!arc(range)); enforce!AssertError(e !is null, "unittest failure 1", __FILE__, line); enforce!AssertError(e.pos == TextPos(row, col), "unittest failure 2", __FILE__, line); } { auto pos = TextPos(row + 3, row == 1 ? col + 7 : col); auto range = testParser(xml); range.pos.line += 3; range.pos.col += 7; auto e = collectException!XMLParsingException(checkText!arc(range)); enforce!AssertError(e !is null, "unittest failure 3", __FILE__, line); enforce!AssertError(e.pos == pos, "unittest failure 4", __FILE__, line); } } static foreach(func; testRangeFuncs) { static foreach(arc; [false, true]) { test!(func, arc)(""); test!(func, arc)("J",); test!(func, arc)("foo"); test!(func, arc)("プログラミング"); test!(func, arc)("&amp;&gt;&lt;"); test!(func, arc)("hello&amp;&gt;&lt;world"); test!(func, arc)(".....&apos;&quot;&amp;....."); test!(func, arc)("&#12487;&#12451;&#12521;&#12531;"); test!(func, arc)("hello&#xAF;&#42;&quot;world"); test!(func, arc)("]]"); test!(func, arc)("]>"); test!(func, arc)("foo]]bar"); test!(func, arc)("foo]>bar"); test!(func, arc)("]] >"); testFail!(func, arc)("\v", 1, 1); testFail!(func, arc)("\uFFFE", 1, 1); testFail!(func, arc)("hello\vworld", 1, 6); testFail!(func, arc)("he\nllo\vwo\nrld", 2, 4); } testFail!(func, false)("<", 1, 1); testFail!(func, false)("&", 1, 1); testFail!(func, false)("&", 1, 1); testFail!(func, false)("&x", 1, 1); testFail!(func, false)("&&;", 1, 1); testFail!(func, false)("&a", 1, 1); testFail!(func, false)("&a;", 1, 1); testFail!(func, false)(`&am;`, 1, 1); testFail!(func, false)(`&ampe;`, 1, 1); testFail!(func, false)(`&l;`, 1, 1); testFail!(func, false)(`&lte;`, 1, 1); testFail!(func, false)(`&g;`, 1, 1); testFail!(func, false)(`&gte;`, 1, 1); testFail!(func, false)(`&apo;`, 1, 1); testFail!(func, false)(`&aposs;`, 1, 1); testFail!(func, false)(`&quo;`, 1, 1); testFail!(func, false)(`&quote;`, 1, 1); testFail!(func, false)("hello&;", 1, 6); testFail!(func, false)("hello&;world", 1, 6); testFail!(func, false)("hello&<;world", 1, 6); testFail!(func, false)("hello&world", 1, 6); testFail!(func, false)("hello world&", 1, 12); testFail!(func, false)("hello world&;", 1, 12); testFail!(func, false)("hello world&foo", 1, 12); testFail!(func, false)("&#;", 1, 1); testFail!(func, false)("&#x;", 1, 1); testFail!(func, false)("&#AF;", 1, 1); testFail!(func, false)("&#x", 1, 1); testFail!(func, false)("&#42", 1, 1); testFail!(func, false)("&#x42", 1, 1); testFail!(func, false)("&#12;", 1, 1); testFail!(func, false)("&#x12;", 1, 1); testFail!(func, false)("&#42;foo\nbar&#;", 2, 4); testFail!(func, false)("&#42;foo\nbar&#x;", 2, 4); testFail!(func, false)("&#42;foo\nbar&#AF;", 2, 4); testFail!(func, false)("&#42;foo\nbar&#x", 2, 4); testFail!(func, false)("&#42;foo\nbar&#42", 2, 4); testFail!(func, false)("&#42;foo\nbar&#x42", 2, 4); testFail!(func, false)("プログラミング&", 1, codeLen!(func, "プログラミング&")); testFail!(func, false)("]]>", 1, 1); testFail!(func, false)("foo]]>bar", 1, 4); test!(func, true)("]]>"); test!(func, true)("foo]]>bar"); test!(func, true)("<"); test!(func, true)("&"); test!(func, true)("&x"); test!(func, true)("&&;"); test!(func, true)("&a"); test!(func, true)("&a;"); test!(func, true)(`&am;`); test!(func, true)(`&ampe;`); test!(func, true)(`&l;`); test!(func, true)(`&lte;`); test!(func, true)(`&g;`); test!(func, true)(`&gte;`); test!(func, true)(`&apo;`); test!(func, true)(`&aposs;`); test!(func, true)(`&quo;`); test!(func, true)(`&quote;`); test!(func, true)("hello&;"); test!(func, true)("hello&;world"); test!(func, true)("hello&<;world"); test!(func, true)("hello&world"); test!(func, true)("hello world&"); test!(func, true)("hello world&;"); test!(func, true)("hello world&foo"); test!(func, true)("&#;"); test!(func, true)("&#x;"); test!(func, true)("&#AF;"); test!(func, true)("&#x"); test!(func, true)("&#42"); test!(func, true)("&#x42"); test!(func, true)("&#12;"); test!(func, true)("&#x12;"); test!(func, true)("&#42;foo\nbar&#;"); test!(func, true)("&#42;foo\nbar&#x;"); test!(func, true)("&#42;foo\nbar&#AF;"); test!(func, true)("&#42;foo\nbar&#x"); test!(func, true)("&#42;foo\nbar&#42"); test!(func, true)("&#42;foo\nbar&#x42"); test!(func, true)("プログラミング&"); } // These can't be tested with testFail, because attempting to convert // invalid Unicode results in UnicodeExceptions before parseXML even // gets called. import std.meta : AliasSeq; static foreach(str; AliasSeq!(cast(string)[255], cast(wstring)[0xD800], cast(dstring)[0xD800])) { static foreach(arc; [false, true]) {{ auto text = testParser(str); auto e = collectException!XMLParsingException(text.checkText!arc()); assert(e ! is null); assert(e.pos == TextPos(1, 1)); }} } } version(dxmlTests) @safe unittest { import dxml.internal : testRangeFuncs; static foreach(func; testRangeFuncs) { static foreach(arc; [false, true]) {{ auto xml = func("foo"); auto text = testParser!simpleXML(xml); checkText!arc(text); }} } } // S := (#x20 | #x9 | #xD | #XA)+ bool isSpace(C)(C c) @safe pure nothrow @nogc if(isSomeChar!C) { switch(c) { case ' ': case '\t': case '\r': case '\n': return true; default : return false; } } version(dxmlTests) pure nothrow @safe @nogc unittest { foreach(char c; char.min .. char.max) { if(c == ' ' || c == '\t' || c == '\r' || c == '\n') assert(isSpace(c)); else assert(!isSpace(c)); } foreach(wchar c; wchar.min .. wchar.max / 100) { if(c == ' ' || c == '\t' || c == '\r' || c == '\n') assert(isSpace(c)); else assert(!isSpace(c)); } foreach(dchar c; dchar.min .. dchar.max / 1000) { if(c == ' ' || c == '\t' || c == '\r' || c == '\n') assert(isSpace(c)); else assert(!isSpace(c)); } } pragma(inline, true) void popFrontAndIncCol(Text)(ref Text text) { text.input.popFront(); ++text.pos.col; } pragma(inline, true) void nextLine(Config config)(ref TextPos pos) { ++pos.line; pos.col = 1; } pragma(inline, true) void checkNotEmpty(Text)(ref Text text, size_t line = __LINE__) { if(text.input.empty) throw new XMLParsingException("Prematurely reached end of document", text.pos, __FILE__, line); } version(dxmlTests) enum someTestConfigs = [Config.init, simpleXML, makeConfig(SkipComments.yes), makeConfig(SkipPI.yes)];
D
module vibe.http.internal.http2.settings; import vibe.http.internal.http2.multiplexing; import vibe.http.internal.http2.frame; import vibe.http.internal.http2.hpack.tables; import vibe.http.internal.http2.error; import vibe.http.server; import vibe.core.log; import vibe.core.net; import vibe.core.task; import vibe.internal.freelistref; import std.range; import std.base64; import std.traits; import std.bitmanip; // read from ubyte (decoding) import std.typecons; import std.conv : to; import std.exception : enforce; import std.algorithm : canFind; // alpn callback import std.variant : Algebraic; /* * 6.5.1. SETTINGS Format * * The payload of a SETTINGS frame consists of zero or more parameters, * each consisting of an unsigned 16-bit setting identifier and an * unsigned 32-bit value. * * +-------------------------------+ * | IDentifier (16) | * +-------------------------------+-------------------------------+ * | Value (32) | * +---------------------------------------------------------------+ * Figure 10: Setting Format * * 6.5.2. Defined SETTINGS Parameters * * The following parameters are defined: * * SETTINGS_HEADER_TABLE_SIZE (0x1): Allows the sender to inform the * remote endpoint of the maximum size of the header compression * table used to decode header blocks, in octets. The encoder can * select any size equal to or less than this value by using * signaling specific to the header compression format inside a * header block (see [COMPRESSION]). The initial value is 4,096 * octets. * * SETTINGS_ENABLE_PUSH (0x2): This setting can be used to disable * server push (Section 8.2). An endpoint MUST NOT send a * PUSH_PROMISE frame if it receives this parameter set to a value of * 0. An endpoint that has both set this parameter to 0 and had it * acknowledged MUST treat the receipt of a PUSH_PROMISE frame as a * connection error (Section 5.4.1) of type PROTOCOL_ERROR. * * The initial value is 1, which indicates that server push is * permitted. Any value other than 0 or 1 MUST be treated as a * connection error (Section 5.4.1) of type PROTOCOL_ERROR. * * SETTINGS_MAX_CONCURRENT_STREAMS (0x3): Indicates the maximum number * of concurrent streams that the sender will allow. This limit is * directional: it applies to the number of streams that the sender * permits the receiver to create. Initially, there is no limit to * this value. It is recommended that this value be no smaller than * 100, so as to not unnecessarily limit parallelism. * * A value of 0 for SETTINGS_MAX_CONCURRENT_STREAMS SHOULD NOT be * treated as special by endpoints. A zero value does prevent the * creation of new streams; however, this can also happen for any * limit that is exhausted with active streams. Servers SHOULD only * set a zero value for short durations; if a server does not wish to * accept requests, closing the connection is more appropriate. * * SETTINGS_INITIAL_WINDOW_SIZE (0x4): Indicates the sender's initial * window size (in octets) for stream-level flow control. The * initial value is 2^16-1 (65,535) octets. * * This setting affects the window size of all streams (see * Section 6.9.2). * * Values above the maximum flow-control window size of 2^31-1 MUST * be treated as a connection error (Section 5.4.1) of type * FLOW_CONTROL_ERROR. * * SETTINGS_MAX_FRAME_SIZE (0x5): Indicates the size of the largest * frame payload that the sender is willing to receive, in octets. * * The initial value is 2^14 (16,384) octets. The value advertised * by an endpoint MUST be between this initial value and the maximum * allowed frame size (2^24-1 or 16,777,215 octets), inclusive. * Values outside this range MUST be treated as a connection error * (Section 5.4.1) of type PROTOCOL_ERROR. * * SETTINGS_MAX_HEADER_LIST_SIZE (0x6): This advisory setting informs a * peer of the maximum size of header list that the sender is * prepared to accept, in octets. The value is based on the * uncompressed size of header fields, including the length of the * name and value in octets plus an overhead of 32 octets for each * header field. * * For any given request, a lower limit than what is advertised MAY * be enforced. The initial value of this setting is unlimited. * * An endpoint that receives a SETTINGS frame with any unknown or * unsupported identifier MUST ignore that setting. */ //version = VibeForceALPN; alias HTTP2SettingID = ushort; alias HTTP2SettingValue = uint; // useful for bound checking const HTTP2SettingID minID = 0x1; const HTTP2SettingID maxID = 0x6; enum HTTP2SettingsParameter { headerTableSize = 0x1, enablePush = 0x2, maxConcurrentStreams = 0x3, initialWindowSize = 0x4, maxFrameSize = 0x5, maxHeaderListSize = 0x6 } // UDAs struct HTTP2Setting { HTTP2SettingID id; string name; } // UDAs HTTP2Setting http2Setting(HTTP2SettingID id, string name) { if (!__ctfe) assert(false, "May only be used as a UDA"); return HTTP2Setting(id, name); } struct HTTP2Settings { // no limit specified in the RFC @http2Setting(0x1, "SETTINGS_HEADER_TABLE_SIZE") HTTP2SettingValue headerTableSize = 4096; // TODO {0,1} otherwise CONNECTION_ERROR @http2Setting(0x2, "SETTINGS_ENABLE_PUSH") HTTP2SettingValue enablePush = 1; /* set to the max value (UNLIMITED) * TODO manage connection with value == 0 * might be closed as soon as possible */ @http2Setting(0x3, "SETTINGS_MAX_CONCURRENT_STREAMS") //HTTP2SettingValue maxConcurrentStreams = HTTP2SettingValue.max; // lowered //to 2^16 HTTP2SettingValue maxConcurrentStreams = 65536; // TODO FLOW_CONTROL_ERRROR on values > 2^31-1 @http2Setting(0x4, "SETTINGS_INITIAL_WINDOW_SIZE") HTTP2SettingValue initialWindowSize = 65535; // TODO PROTOCOL_ERROR on values > 2^24-1 @http2Setting(0x5, "SETTINGS_MAX_FRAME_SIZE") HTTP2SettingValue maxFrameSize = 16384; // set to the max value (UNLIMITED) @http2Setting(0x6, "SETTINGS_MAX_HEADER_LIST_SIZE") HTTP2SettingValue maxHeaderListSize = HTTP2SettingValue.max; /** * Use Decoder to decode a string and set the corresponding settings * The decoder must follow the base64url encoding * `bool` since the handler must ignore the Upgrade request * if the settings cannot be decoded */ bool decode(alias Decoder)(string encodedSettings) @safe if (isInstanceOf!(Base64Impl, Decoder)) { ubyte[] uset; try { // the Base64URL decoder throws a Base64exception if it fails uset = Decoder.decode(encodedSettings); enforce!Base64Exception(uset.length % 6 == 0, "Invalid SETTINGS payload length"); } catch (Base64Exception e) { logDiagnostic("Failed to decode SETTINGS payload: " ~ e.msg); return false; } // set values while(!uset.empty) m_set(uset.read!HTTP2SettingID, uset.read!HTTP2SettingValue); return true; } /* * Set parameter 'id' to 'value' * private overload for decoded parameters assignment */ void set(HTTP2SettingID id)(HTTP2SettingValue value) @safe if(id <= maxID && id >= minID) { m_set(id,value); } private void m_set(HTTP2SettingID id, HTTP2SettingValue value) @safe { // must use labeled break w. static foreach assign: switch(id) { default: logWarn("Unsupported SETTINGS code:" ~ to!string(id)); return; static foreach(c; __traits(allMembers, HTTP2SettingsParameter)) { case __traits(getMember, HTTP2SettingsParameter, c): __traits(getMember, this, c) = value; break assign; } } } } void serializeSettings(R)(ref R dst, HTTP2Settings settings) @safe @nogc { static foreach(s; __traits(allMembers, HTTP2Settings)) { static if(is(typeof(__traits(getMember, HTTP2Settings, s)) == HTTP2SettingValue)) { mixin("dst.putBytes!2((getUDAs!(settings."~s~",HTTP2Setting)[0]).id);"); mixin("dst.putBytes!4(settings."~s~");"); } } } void unpackSettings(R)(ref HTTP2Settings settings, R src) @safe { while(!src.empty) { auto id = src.takeExactly(2).fromBytes(2); src.popFrontN(2); // invalid IDs: ignore setting if(!(id >= minID && id <= maxID)) { src.popFrontN(4); continue; } static foreach(s; __traits(allMembers, HTTP2Settings)) { static if(is(typeof(__traits(getMember, HTTP2Settings, s)) == HTTP2SettingValue)) { mixin("if(id == ((getUDAs!(settings."~s~",HTTP2Setting)[0]).id)) { settings."~s~" = src.takeExactly(4).fromBytes(4); src.popFrontN(4); }"); } } } enforceHTTP2(settings.enablePush == 0 || settings.enablePush == 1, "Invalid value for ENABLE_PUSH setting.", HTTP2Error.PROTOCOL_ERROR); enforceHTTP2(settings.initialWindowSize < (1 << 31), "Invalid value for INITIAL_WINDOW_SIZE setting.", HTTP2Error.FLOW_CONTROL_ERROR); enforceHTTP2(settings.maxFrameSize >= (1 << 14) && settings.maxFrameSize < (1 << 24), "Invalid value for MAX_FRAME_SIZE setting.", HTTP2Error.FLOW_CONTROL_ERROR); } unittest { HTTP2Settings settings; // retrieve a value assert(settings.headerTableSize == 4096); //set a SETTINGS value using the enum table settings.set!(HTTP2SettingsParameter.headerTableSize)(2048); assert(settings.headerTableSize == 2048); //set a SETTINGS value using the code directly settings.set!0x4(1024); assert(settings.initialWindowSize == 1024); // SHOULD NOT COMPILE //settings.set!0x7(1); // get a HTTP2Setting struct containing the code and the parameter name import std.traits : getUDAs; assert(getUDAs!(settings.headerTableSize, HTTP2Setting)[0] == HTTP2Setting(0x1, "SETTINGS_HEADER_TABLE_SIZE")); // test decoding from base64url // h2settings contains: // 0x2 -> 0 // 0x3 -> 100 // 0x4 -> 1073741824 string h2settings = "AAMAAABkAARAAAAAAAIAAAAA"; assert(settings.decode!Base64URL(h2settings)); assert(settings.enablePush == 0); assert(settings.maxConcurrentStreams == 100); assert(settings.initialWindowSize == 1073741824); // should throw a Base64Exception error (caught) and a logWarn assert(!settings.decode!Base64URL("a|b+*-c")); } /** Context is initialized on each new connection * it MUST remain consistent between streams of the same connection * Contains HTTP2Settings negotiated during handshake * TODO set of USED streams for proper HTTP2ConnectionStream initialization */ struct HTTP2ServerContext { private { HTTPServerContext m_context; Nullable!HTTP2Settings m_settings; uint m_sid = 0; FreeListRef!IndexingTable m_table; FreeListRef!HTTP2Multiplexer m_multiplexer; bool m_initializedT = false; bool m_initializedM = false; } alias m_context this; // used to mantain the first request in case of `h2c` protocol switching // TODO find alternative approach ubyte[] resFrame = void; this(HTTPServerContext ctx, HTTP2Settings settings) @safe { m_context = ctx; m_settings = settings; } this(HTTPServerContext ctx) @safe { m_context = ctx; } @property auto ref table() @safe { return m_table.get; } @property bool hasTable() @safe { return m_initializedT; } @property void table(T)(T table) @safe if(is(T == typeof(m_table))) { assert(!m_initializedT); m_table = table; m_initializedT = true; } @property auto ref multiplexer() @safe { return m_multiplexer.get; } @property bool hasMultiplexer() @safe { return m_initializedM; } @property void multiplexer(T)(T multiplexer) @safe if(is(T == typeof(m_multiplexer))) { assert(!m_initializedM); m_multiplexer = multiplexer; m_initializedM = true; } @property HTTPServerContext h1context() @safe @nogc { return m_context; } @property uint next_sid() @safe @nogc { return m_sid; } @property void next_sid(uint sid) @safe @nogc { m_sid = sid; } @property ref HTTP2Settings settings() @safe @nogc { assert(!m_settings.isNull); return m_settings; } @property void settings(ref HTTP2Settings settings) @safe { assert(m_settings.isNull); m_settings = settings; () @trusted { if (settings.headerTableSize != 4096) { table.updateSize(settings.headerTableSize); } } (); } }
D
/Users/ataiakishev/Desktop/ToDoList/DerivedData/ToDoList/Build/Intermediates.noindex/ToDoList.build/Debug-iphonesimulator/ToDoList.build/Objects-normal/x86_64/GroupItem.o : /Users/ataiakishev/Desktop/ToDoList/ToDoList/SceneDelegate.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/AppDelegate.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/DataModel.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/GroupItem.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/ChecklistItem.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/GroupTableViewController.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/AddItemViewController.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/AddGroupViewController.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/IconPickerViewController.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/ChecklistViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.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.3.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/ataiakishev/Desktop/ToDoList/DerivedData/ToDoList/Build/Intermediates.noindex/ToDoList.build/Debug-iphonesimulator/ToDoList.build/Objects-normal/x86_64/GroupItem~partial.swiftmodule : /Users/ataiakishev/Desktop/ToDoList/ToDoList/SceneDelegate.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/AppDelegate.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/DataModel.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/GroupItem.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/ChecklistItem.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/GroupTableViewController.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/AddItemViewController.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/AddGroupViewController.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/IconPickerViewController.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/ChecklistViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.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.3.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/ataiakishev/Desktop/ToDoList/DerivedData/ToDoList/Build/Intermediates.noindex/ToDoList.build/Debug-iphonesimulator/ToDoList.build/Objects-normal/x86_64/GroupItem~partial.swiftdoc : /Users/ataiakishev/Desktop/ToDoList/ToDoList/SceneDelegate.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/AppDelegate.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/DataModel.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/GroupItem.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/ChecklistItem.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/GroupTableViewController.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/AddItemViewController.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/AddGroupViewController.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/IconPickerViewController.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/ChecklistViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.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.3.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes /Users/ataiakishev/Desktop/ToDoList/DerivedData/ToDoList/Build/Intermediates.noindex/ToDoList.build/Debug-iphonesimulator/ToDoList.build/Objects-normal/x86_64/GroupItem~partial.swiftsourceinfo : /Users/ataiakishev/Desktop/ToDoList/ToDoList/SceneDelegate.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/AppDelegate.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/DataModel.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/GroupItem.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/ChecklistItem.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/GroupTableViewController.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/AddItemViewController.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/AddGroupViewController.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/IconPickerViewController.swift /Users/ataiakishev/Desktop/ToDoList/ToDoList/ChecklistViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/mach-o/dyld.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.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.3.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
D
import std.variant; void main() { Variant a = true; }
D
/** * Hash Set * Copyright: © 2015 Economic Modeling Specialists, Intl. * Authors: Brian Schott * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0) */ module containers.hashset; private import containers.internal.hash : generateHash, hashToIndex; private import containers.internal.node : shouldAddGCRange; private import stdx.allocator.mallocator : Mallocator; private import std.traits : isBasicType; /** * Hash Set. * Params: * T = the element type * Allocator = the allocator to use. Defaults to `Mallocator`. * hashFunction = the hash function to use on the elements * supportGC = true if the container should support holding references to * GC-allocated memory. */ struct HashSet(T, Allocator = Mallocator, alias hashFunction = generateHash!T, bool supportGC = shouldAddGCRange!T, bool storeHash = !isBasicType!T) { this(this) @disable; private import stdx.allocator.common : stateSize; static if (stateSize!Allocator != 0) { this() @disable; /** * Use the given `allocator` for allocations. */ this(Allocator allocator) in { assert(allocator !is null, "Allocator must not be null"); } do { this.allocator = allocator; } /** * Constructs a HashSet with an initial bucket count of bucketCount. * bucketCount must be a power of two. */ this(size_t bucketCount, Allocator allocator) in { assert(allocator !is null, "Allocator must not be null"); assert ((bucketCount & (bucketCount - 1)) == 0, "bucketCount must be a power of two"); } do { this.allocator = allocator; initialize(bucketCount); } } else { /** * Constructs a HashSet with an initial bucket count of bucketCount. * bucketCount must be a power of two. */ this(size_t bucketCount) in { assert ((bucketCount & (bucketCount - 1)) == 0, "bucketCount must be a power of two"); } do { initialize(bucketCount); } } ~this() { import stdx.allocator : dispose; import core.memory : GC; static if (useGC) GC.removeRange(buckets.ptr); allocator.dispose(buckets); } /** * Removes all items from the set */ void clear() { foreach (ref bucket; buckets) { destroy(bucket); bucket = Bucket.init; } _length = 0; } /** * Removes the given item from the set. * Returns: false if the value was not present */ bool remove(T value) { if (buckets.length == 0) return false; immutable Hash hash = hashFunction(value); immutable size_t index = hashToIndex(hash, buckets.length); static if (storeHash) immutable bool removed = buckets[index].remove(ItemNode(hash, value)); else immutable bool removed = buckets[index].remove(ItemNode(value)); if (removed) --_length; return removed; } /** * Returns: true if value is contained in the set. */ bool contains(T value) inout { return (value in this) !is null; } /** * Supports $(B a in b) syntax */ inout(T)* opBinaryRight(string op)(T value) inout if (op == "in") { if (buckets.length == 0 || _length == 0) return null; immutable Hash hash = hashFunction(value); immutable index = hashToIndex(hash, buckets.length); return buckets[index].get(value, hash); } /** * Inserts the given item into the set. * Params: value = the value to insert * Returns: true if the value was actually inserted, or false if it was * already present. */ bool insert(T value) { if (buckets.length == 0) initialize(4); Hash hash = hashFunction(value); immutable size_t index = hashToIndex(hash, buckets.length); static if (storeHash) auto r = buckets[index].insert(ItemNode(hash, value)); else auto r = buckets[index].insert(ItemNode(value)); if (r) ++_length; if (shouldRehash) rehash(); return r; } /// ditto bool opOpAssign(string op)(T item) if (op == "~") { return insert(item); } /// ditto alias put = insert; /// ditto alias insertAnywhere = insert; /** * Returns: true if the set has no items */ bool empty() const nothrow pure @nogc @safe @property { return _length == 0; } /** * Returns: the number of items in the set */ size_t length() const nothrow pure @nogc @safe @property { return _length; } /** * Forward range interface */ auto opSlice(this This)() nothrow @nogc @trusted { return Range!(This)(&this); } private: import containers.internal.element_type : ContainerElementType; import containers.internal.mixins : AllocatorState; import containers.internal.node : shouldAddGCRange, FatNodeInfo; import containers.internal.storage_type : ContainerStorageType; import std.traits : isPointer; alias LengthType = ubyte; alias N = FatNodeInfo!(ItemNode.sizeof, 1, 64, LengthType.sizeof); enum ITEMS_PER_NODE = N[0]; static assert(LengthType.max > ITEMS_PER_NODE); enum bool useGC = supportGC && shouldAddGCRange!T; alias Hash = typeof({ T v = void; return hashFunction(v); }()); void initialize(size_t bucketCount) { import core.memory : GC; import stdx.allocator : makeArray; makeBuckets(bucketCount); static if (useGC) GC.addRange(buckets.ptr, buckets.length * Bucket.sizeof); } static struct Range(ThisT) { this(ThisT* t) { foreach (i, ref bucket; t.buckets) { bucketIndex = i; if (bucket.root !is null) { currentNode = cast(Bucket.BucketNode*) bucket.root; break; } } this.t = t; } bool empty() const nothrow @safe @nogc @property { return currentNode is null; } ET front() nothrow @safe @nogc @property { return cast(ET) currentNode.items[nodeIndex].value; } void popFront() nothrow @trusted @nogc { if (nodeIndex + 1 < currentNode.l) { ++nodeIndex; return; } else { nodeIndex = 0; if (currentNode.next is null) { ++bucketIndex; while (bucketIndex < t.buckets.length && t.buckets[bucketIndex].root is null) ++bucketIndex; if (bucketIndex < t.buckets.length) currentNode = cast(Bucket.BucketNode*) t.buckets[bucketIndex].root; else currentNode = null; } else { currentNode = currentNode.next; assert(currentNode.l > 0); } } } private: alias ET = ContainerElementType!(ThisT, T); ThisT* t; Bucket.BucketNode* currentNode; size_t bucketIndex; size_t nodeIndex; } void makeBuckets(size_t bucketCount) { import stdx.allocator : makeArray; static if (stateSize!Allocator == 0) buckets = allocator.makeArray!Bucket(bucketCount); else { import std.conv:emplace; buckets = cast(Bucket[]) allocator.allocate(Bucket.sizeof * bucketCount); foreach (ref bucket; buckets) emplace!Bucket(&bucket, allocator); } } bool shouldRehash() const pure nothrow @safe @nogc { immutable float numberOfNodes = cast(float) _length / cast(float) ITEMS_PER_NODE; return (numberOfNodes / cast(float) buckets.length) > 0.75f; } void rehash() @trusted { import stdx.allocator : makeArray, dispose; import core.memory : GC; immutable size_t newLength = buckets.length << 1; Bucket[] oldBuckets = buckets; makeBuckets(newLength); assert (buckets); assert (buckets.length == newLength); static if (useGC) GC.addRange(buckets.ptr, buckets.length * Bucket.sizeof); foreach (ref const bucket; oldBuckets) { for (Bucket.BucketNode* node = cast(Bucket.BucketNode*) bucket.root; node !is null; node = node.next) { for (size_t i = 0; i < node.l; ++i) { static if (storeHash) { immutable Hash hash = node.items[i].hash; size_t index = hashToIndex(hash, buckets.length); buckets[index].insert(ItemNode(hash, node.items[i].value)); } else { immutable Hash hash = hashFunction(node.items[i].value); size_t index = hashToIndex(hash, buckets.length); buckets[index].insert(ItemNode(node.items[i].value)); } } } } static if (useGC) GC.removeRange(oldBuckets.ptr); allocator.dispose(oldBuckets); } static struct Bucket { this(this) @disable; static if (stateSize!Allocator != 0) { this(Allocator allocator) { this.allocator = allocator; } this() @disable; } ~this() { import core.memory : GC; import stdx.allocator : dispose; BucketNode* current = root; BucketNode* previous; while (true) { if (previous !is null) { static if (useGC) GC.removeRange(previous); allocator.dispose(previous); } previous = current; if (current is null) break; current = current.next; } } static struct BucketNode { ContainerStorageType!(T)* get(ItemNode n) { foreach (ref item; items[0 .. l]) { static if (storeHash) { static if (isPointer!T) { if (item.hash == n.hash && *item.value == *n.value) return &item.value; } else { if (item.hash == n.hash && item.value == n.value) return &item.value; } } else { static if (isPointer!T) { if (*item.value == *n.value) return &item.value; } else { if (item.value == n.value) return &item.value; } } } return null; } void insert(ItemNode n) { items[l] = n; ++l; } bool remove(ItemNode n) { import std.algorithm : SwapStrategy, remove; foreach (size_t i, ref node; items[0 .. l]) { static if (storeHash) { static if (isPointer!T) immutable bool matches = node.hash == n.hash && *node.value == *n.value; else immutable bool matches = node.hash == n.hash && node.value == n.value; } else { static if (isPointer!T) immutable bool matches = *node.value == *n.value; else immutable bool matches = node.value == n.value; } if (matches) { items[0 .. l].remove!(SwapStrategy.unstable)(i); l--; return true; } } return false; } BucketNode* next; LengthType l; ItemNode[ITEMS_PER_NODE] items; } bool insert(ItemNode n) { import core.memory : GC; import stdx.allocator : make; BucketNode* hasSpace = null; for (BucketNode* current = root; current !is null; current = current.next) { if (current.get(n) !is null) return false; if (current.l < current.items.length) hasSpace = current; } if (hasSpace !is null) hasSpace.insert(n); else { BucketNode* newNode = make!BucketNode(allocator); static if (useGC) GC.addRange(newNode, BucketNode.sizeof); newNode.insert(n); newNode.next = root; root = newNode; } return true; } bool remove(ItemNode n) { import core.memory : GC; import stdx.allocator : dispose; BucketNode* current = root; BucketNode* previous; while (current !is null) { immutable removed = current.remove(n); if (removed) { if (current.l == 0) { if (previous !is null) previous.next = current.next; else root = current.next; static if (useGC) GC.removeRange(current); allocator.dispose(current); } return true; } previous = current; current = current.next; } return false; } inout(T)* get(T value, Hash hash) inout { for (BucketNode* current = cast(BucketNode*) root; current !is null; current = current.next) { static if (storeHash) { auto v = current.get(ItemNode(hash, value)); } else { auto v = current.get(ItemNode(value)); } if (v !is null) return cast(typeof(return)) v; } return null; } BucketNode* root; mixin AllocatorState!Allocator; } static struct ItemNode { bool opEquals(ref const T v) const { static if (isPointer!T) return *v == *value; else return v == value; } bool opEquals(ref const ItemNode other) const { static if (storeHash) if (other.hash != hash) return false; static if (isPointer!T) return *other.value == *value; else return other.value == value; } static if (storeHash) Hash hash; ContainerStorageType!T value; static if (storeHash) { this(Z)(Hash nh, Z nv) { this.hash = nh; this.value = nv; } } else { this(Z)(Z nv) { this.value = nv; } } } mixin AllocatorState!Allocator; Bucket[] buckets; size_t _length; } /// version(emsi_containers_unittest) unittest { import std.algorithm : canFind; import std.array : array; import std.range : walkLength; import std.uuid : randomUUID; auto s = HashSet!string(16); assert(s.remove("DoesNotExist") == false); assert(!s.contains("nonsense")); assert(s.put("test")); assert(s.contains("test")); assert(!s.put("test")); assert(s.contains("test")); assert(s.length == 1); assert(!s.contains("nothere")); s.put("a"); s.put("b"); s.put("c"); s.put("d"); string[] strings = s[].array; assert(strings.canFind("a")); assert(strings.canFind("b")); assert(strings.canFind("c")); assert(strings.canFind("d")); assert(strings.canFind("test")); assert(*("a" in s) == "a"); assert(*("b" in s) == "b"); assert(*("c" in s) == "c"); assert(*("d" in s) == "d"); assert(*("test" in s) == "test"); assert(strings.length == 5); assert(s.remove("test")); assert(s.length == 4); s.clear(); assert(s.length == 0); assert(s.empty); s.put("abcde"); assert(s.length == 1); foreach (i; 0 .. 10_000) { s.put(randomUUID().toString); } assert(s.length == 10_001); // Make sure that there's no range violation slicing an empty set HashSet!int e; foreach (i; e[]) assert(i > 0); enum MAGICAL_NUMBER = 600_000; HashSet!int f; foreach (i; 0 .. MAGICAL_NUMBER) assert(f.insert(i)); assert(f.length == f[].walkLength); foreach (i; 0 .. MAGICAL_NUMBER) assert(i in f); foreach (i; 0 .. MAGICAL_NUMBER) assert(f.remove(i)); foreach (i; 0 .. MAGICAL_NUMBER) assert(!f.remove(i)); HashSet!int g; foreach (i; 0 .. MAGICAL_NUMBER) assert(g.insert(i)); static struct AStruct { int a; int b; } HashSet!(AStruct*, Mallocator, a => a.a) fred; fred.insert(new AStruct(10, 10)); auto h = new AStruct(10, 10); assert(h in fred); } version(emsi_containers_unittest) unittest { static class Foo { string name; } hash_t stringToHash(string str) @safe pure nothrow @nogc { hash_t hash = 5381; return hash; } hash_t FooToHash(Foo e) pure @safe nothrow @nogc { return stringToHash(e.name); } HashSet!(Foo, Mallocator, FooToHash) hs; auto f = new Foo; hs.insert(f); assert(f in hs); auto r = hs[]; } version(emsi_containers_unittest) unittest { static class Foo { string name; this(string n) { this.name = n; } bool opEquals(const Foo of) const { if(of !is null) { return this.name == of.name; } else { return false; } } } hash_t stringToHash(string str) @safe pure nothrow @nogc { hash_t hash = 5381; return hash; } hash_t FooToHash(in Foo e) pure @safe nothrow @nogc { return stringToHash(e.name); } string foo = "foo"; HashSet!(const(Foo), Mallocator, FooToHash) hs; const(Foo) f = new const Foo(foo); hs.insert(f); assert(f in hs); auto r = hs[]; assert(!r.empty); auto fro = r.front; assert(fro.name == foo); } version(emsi_containers_unittest) unittest { hash_t maxCollision(ulong x) { return 0; } HashSet!(ulong, Mallocator, maxCollision) set; auto ipn = set.ITEMS_PER_NODE; // Need this info to trigger this bug, so I made it public assert(ipn > 1); // Won't be able to trigger this bug if there's only 1 item per node foreach (i; 0 .. 2 * ipn - 1) set.insert(i); assert(0 in set); // OK bool ret = set.insert(0); // 0 should be already in the set assert(!ret); // Fails assert(set.length == 2 * ipn - 1); // Fails } version(emsi_containers_unittest) unittest { import stdx.allocator.showcase; auto allocator = mmapRegionList(1024); auto set = HashSet!(ulong, typeof(&allocator))(0x1000, &allocator); set.insert(124); }
D
report or open letter giving informal or confidential news of interest to a special group
D
/Users/Salgara/Desktop/IOS/CurrencyApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Platform.Linux.o : /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Deprecated.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Cancelable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ObservableType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ObserverType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Reactive.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/RecursiveLock.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Errors.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Event.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/First.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Rx.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/Platform.Linux.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/Salgara/Desktop/IOS/CurrencyApp/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/Salgara/Desktop/IOS/CurrencyApp/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/Salgara/Desktop/IOS/CurrencyApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-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/Salgara/Desktop/IOS/CurrencyApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Platform.Linux~partial.swiftmodule : /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Deprecated.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Cancelable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ObservableType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ObserverType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Reactive.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/RecursiveLock.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Errors.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Event.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/First.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Rx.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/Platform.Linux.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/Salgara/Desktop/IOS/CurrencyApp/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/Salgara/Desktop/IOS/CurrencyApp/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/Salgara/Desktop/IOS/CurrencyApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-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/Salgara/Desktop/IOS/CurrencyApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Platform.Linux~partial.swiftdoc : /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Deprecated.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Cancelable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ObservableType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ObserverType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Reactive.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/RecursiveLock.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Errors.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Event.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/First.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Rx.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/Platform/Platform.Linux.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/Salgara/Desktop/IOS/CurrencyApp/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/Salgara/Desktop/IOS/CurrencyApp/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/Salgara/Desktop/IOS/CurrencyApp/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/Salgara/Desktop/IOS/CurrencyApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-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
import std.stdio, std.datetime; int identity(int x) { return x; } int sum(int num) { foreach (i; 0 .. 100_000_000) num += i; return num; } double timeIt(int function(int) func, int arg) { StopWatch sw; sw.start(); func(arg); sw.stop(); return sw.peek().usecs / 1_000_000.0; } void main() { writefln("identity(4) takes %f6 seconds.", timeIt(&identity, 4)); writefln("sum(4) takes %f seconds.", timeIt(&sum, 4)); }
D
module xf.hybrid.Math; public { version (OldMath) { import xf.maths.Vec; import xf.maths.Misc; } else { import xf.omg.core.LinearAlgebra : vec2, vec2i, vec3, vec4, Vector, cross, dot, mat4; import xf.omg.core.Misc; } }
D
module and.cost.model.icostfunction; /** Interface for computing the 'cost' or 'error' of the network */ interface ICostFunction { /** Parameters: expected ( outputs ), actual ( outputs ) */ real f(real [] expected , real [] actual ); } /** Base CostFunction class with default errorThreshold and constructor */ class CostFunction : ICostFunction { abstract real f(real [] expected , real [] actual ); /// Compute the cost for the network }
D
<?xml version="1.0" encoding="ASCII" standalone="no"?> <di:SashWindowsMngr xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmi:version="2.0"> <pageList> <availablePage> <emfPageIdentifier href="VAR_24_banking-2538841199.notation#_copSALmGEeKQQp7P9cQvNQ"/> </availablePage> </pageList> <sashModel currentSelection="//@sashModel/@windows.0/@children.0"> <windows> <children xsi:type="di:TabFolder"> <children> <emfPageIdentifier href="VAR_24_banking-2538841199.notation#_copSALmGEeKQQp7P9cQvNQ"/> </children> </children> </windows> </sashModel> </di:SashWindowsMngr>
D
// PERMUTE_ARGS: // EXTRA_SOURCES: imports/mangle10077.d /***************************************************/ // 10077 - pragma(mangle) pragma(mangle, "_test10077a_") int test10077a; static assert(test10077a.mangleof == "_test10077a_"); __gshared pragma(mangle, "_test10077b_") ubyte test10077b; static assert(test10077b.mangleof == "_test10077b_"); pragma(mangle, "_test10077c_") void test10077c() {} static assert(test10077c.mangleof == "_test10077c_"); pragma(mangle, "_test10077f_") __gshared char test10077f; static assert(test10077f.mangleof == "_test10077f_"); pragma(mangle, "_test10077g_") @system { void test10077g() {} } static assert(test10077g.mangleof == "_test10077g_"); template getModuleInfo(alias mod) { pragma(mangle, "_D"~mod.mangleof~"12__ModuleInfoZ") static __gshared extern ModuleInfo mi; enum getModuleInfo = &mi; } void test10077h() { assert(getModuleInfo!(object).name == "object"); } //UTF-8 chars __gshared extern pragma(mangle, "test_эльфийские_письмена_9") ubyte test10077i_evar; void test10077i() { import imports.mangle10077; setTest10077i(); assert(test10077i_evar == 42); } /***************************************************/ // 13050 void func13050(int); template decl13050(Arg) { void decl13050(Arg); } template problem13050(Arg) { pragma(mangle, "foobar") void problem13050(Arg); } template workaround13050(Arg) { pragma(mangle, "foobar") void func(Arg); alias workaround13050 = func; } static assert(is(typeof(&func13050) == void function(int))); static assert(is(typeof(&decl13050!int) == void function(int))); static assert(is(typeof(&problem13050!int) == void function(int))); static assert(is(typeof(&workaround13050!int) == void function(int))); /***************************************************/ // 2774 int foo2774(int n) { return 0; } static assert(foo2774.mangleof == "_D6mangle7foo2774FiZi"); class C2774 { int foo2774() { return 0; } } static assert(C2774.foo2774.mangleof == "_D6mangle5C27747foo2774MFZi"); template TFoo2774(T) {} static assert(TFoo2774!int.mangleof == "6mangle15__T8TFoo2774TiZ"); void test2774() { int foo2774(int n) { return 0; } static assert(foo2774.mangleof == "_D6mangle8test2774FZ7foo2774MFNaNbNiNfiZi"); } /*******************************************/ // 8847 auto S8847() { static struct Result { inout(Result) get() inout { return this; } } return Result(); } void test8847a() { auto a = S8847(); auto b = a.get(); alias typeof(a) A; alias typeof(b) B; assert(is(A == B), A.stringof~ " is different from "~B.stringof); } // -------- enum result8847a = "S6mangle9iota8847aFZ6Result"; enum result8847b = "S6mangle9iota8847bFZ4iotaMFZ6Result"; enum result8847c = "C6mangle9iota8847cFZ6Result"; enum result8847d = "C6mangle9iota8847dFZ4iotaMFZ6Result"; auto iota8847a() { static struct Result { this(int) {} inout(Result) test() inout { return cast(inout)Result(0); } } static assert(Result.mangleof == result8847a); return Result.init; } auto iota8847b() { auto iota() { static struct Result { this(int) {} inout(Result) test() inout { return cast(inout)Result(0); } } static assert(Result.mangleof == result8847b); return Result.init; } return iota(); } auto iota8847c() { static class Result { this(int) {} inout(Result) test() inout { return cast(inout)new Result(0); } } static assert(Result.mangleof == result8847c); return Result.init; } auto iota8847d() { auto iota() { static class Result { this(int) {} inout(Result) test() inout { return cast(inout)new Result(0); } } static assert(Result.mangleof == result8847d); return Result.init; } return iota(); } void test8847b() { static assert(typeof(iota8847a().test()).mangleof == result8847a); static assert(typeof(iota8847b().test()).mangleof == result8847b); static assert(typeof(iota8847c().test()).mangleof == result8847c); static assert(typeof(iota8847d().test()).mangleof == result8847d); } // -------- struct Test8847 { enum result1 = "S6mangle8Test88478__T3fooZ3fooMFZ6Result"; enum result2 = "S6mangle8Test88478__T3fooZ3fooMxFiZ6Result"; auto foo()() { static struct Result { inout(Result) get() inout { return this; } } static assert(Result.mangleof == Test8847.result1); return Result(); } auto foo()(int n) const { static struct Result { inout(Result) get() inout { return this; } } static assert(Result.mangleof == Test8847.result2); return Result(); } } void test8847c() { static assert(typeof(Test8847().foo( ).get()).mangleof == Test8847.result1); static assert(typeof(Test8847().foo(1).get()).mangleof == Test8847.result2); } // -------- void test8847d() { enum resultS = "S6mangle9test8847dFZ3fooMFZ3barMFZ3bazMFZ1S"; enum resultX = "S6mangle9test8847dFZ3fooMFZ1X"; // Return types for test8847d and bar are mangled correctly, // and return types for foo and baz are not mangled correctly. auto foo() { struct X { inout(X) get() inout { return inout(X)(); } } string bar() { auto baz() { struct S { inout(S) get() inout { return inout(S)(); } } return S(); } static assert(typeof(baz() ).mangleof == resultS); static assert(typeof(baz().get()).mangleof == resultS); return ""; } return X(); } static assert(typeof(foo() ).mangleof == resultX); static assert(typeof(foo().get()).mangleof == resultX); } // -------- void test8847e() { enum resultHere = "6mangle"~"9test8847eFZ"~"8__T3fooZ"~"3foo"; enum resultBar = "S"~resultHere~"MFNaNfNgiZ3Bar"; enum resultFoo = "_D"~resultHere~"MFNaNbNiNfNgiZNg"~resultBar; // added 'Nb' // Make template function to infer 'nothrow' attributes auto foo()(inout int) pure @safe { struct Bar {} static assert(Bar.mangleof == resultBar); return inout(Bar)(); } auto bar = foo(0); static assert(typeof(bar).stringof == "Bar"); static assert(typeof(bar).mangleof == resultBar); static assert(foo!().mangleof == resultFoo); } // -------- pure f8847a() { struct S {} return S(); } pure { auto f8847b() { struct S {} return S(); } } static assert(typeof(f8847a()).mangleof == "S6mangle6f8847aFNaZ1S"); static assert(typeof(f8847b()).mangleof == "S6mangle6f8847bFNaZ1S"); /*******************************************/ // 12352 auto bar12352() { struct S { int var; void func() {} } static assert(!__traits(compiles, bar12352.mangleof)); // forward reference to bar static assert(S .mangleof == "S6mangle8bar12352FZ1S"); static assert(S.func.mangleof == "_D6mangle8bar12352FZ1S4funcMFZv"); return S(); } static assert( bar12352 .mangleof == "_D6mangle8bar12352FNaNbNiNfZS6mangle8bar12352FZ1S"); static assert(typeof(bar12352()) .mangleof == "S6mangle8bar12352FZ1S"); static assert(typeof(bar12352()).func.mangleof == "_D6mangle8bar12352FZ1S4funcMFZv"); auto baz12352() { class C { int var; void func() {} } static assert(!__traits(compiles, baz12352.mangleof)); // forward reference to baz static assert(C .mangleof == "C6mangle8baz12352FZ1C"); static assert(C.func.mangleof == "_D6mangle8baz12352FZ1C4funcMFZv"); return new C(); } static assert( baz12352 .mangleof == "_D6mangle8baz12352FNaNbNfZC6mangle8baz12352FZ1C"); static assert(typeof(baz12352()) .mangleof == "C6mangle8baz12352FZ1C"); static assert(typeof(baz12352()).func.mangleof == "_D6mangle8baz12352FZ1C4funcMFZv"); /*******************************************/ // 9525 void f9525(T)(in T*) { } void test9525() { enum result1 = "S6mangle8test9525FZ26__T5test1S136mangle5f9525Z5test1MFZ1S"; enum result2 = "S6mangle8test9525FZ26__T5test2S136mangle5f9525Z5test2MFNaNbZ1S"; void test1(alias a)() { static struct S {} static assert(S.mangleof == result1); S s; a(&s); // Error: Cannot convert &S to const(S*) at compile time } static assert((test1!f9525(), true)); void test2(alias a)() pure nothrow { static struct S {} static assert(S.mangleof == result2); S s; a(&s); // Error: Cannot convert &S to const(S*) at compile time } static assert((test2!f9525(), true)); } /******************************************/ // 10249 template Seq10249(T...) { alias Seq10249 = T; } mixin template Func10249(T) { void func10249(T) {} } mixin Func10249!long; mixin Func10249!string; void f10249(long) {} class C10249 { mixin Func10249!long; mixin Func10249!string; static assert(Seq10249!(.func10249)[0].mangleof == "6mangle9func10249"); // <- 9func10249 static assert(Seq10249!( func10249)[0].mangleof == "6mangle6C102499func10249"); // <- 9func10249 static: // necessary to make overloaded symbols accessible via __traits(getOverloads, C10249) void foo(long) {} void foo(string) {} static assert(Seq10249!(foo)[0].mangleof == "6mangle6C102493foo"); // <- _D6mangle6C102493fooFlZv static assert(Seq10249!(__traits(getOverloads, C10249, "foo"))[0].mangleof == "_D6mangle6C102493fooFlZv"); // <- static assert(Seq10249!(__traits(getOverloads, C10249, "foo"))[1].mangleof == "_D6mangle6C102493fooFAyaZv"); // <- void g(string) {} alias bar = .f10249; alias bar = g; static assert(Seq10249!(bar)[0].mangleof == "6mangle6C102493bar"); // <- _D6mangle1fFlZv static assert(Seq10249!(__traits(getOverloads, C10249, "bar"))[0].mangleof == "_D6mangle6f10249FlZv"); // <- static assert(Seq10249!(__traits(getOverloads, C10249, "bar"))[1].mangleof == "_D6mangle6C102491gFAyaZv"); // <- } /*******************************************/ // 11718 struct Ty11718(alias sym) {} auto fn11718(T)(T a) { return Ty11718!(a).mangleof; } auto fn11718(T)() { T a; return Ty11718!(a).mangleof; } void test11718() { string TyName(string tail)() { enum s = "__T7Ty11718" ~ tail; enum int len = s.length; return "S6mangle" ~ len.stringof ~ s; } string fnName(string paramPart)() { enum s = "_D6mangle35__T7fn11718T"~ "S6mangle9test11718FZ1AZ7fn11718"~paramPart~"1a"~ "S6mangle9test11718FZ1A"; enum int len = s.length; return len.stringof ~ s; } enum result1 = TyName!("S" ~ fnName!("F"~"S6mangle9test11718FZ1A"~"Z") ~ "Z") ~ "7Ty11718"; enum result2 = TyName!("S" ~ fnName!("F"~"" ~"Z") ~ "Z") ~ "7Ty11718"; struct A {} static assert(fn11718(A.init) == result1); static assert(fn11718!A() == result2); } /*******************************************/ // 11776 struct S11776(alias fun) { } void test11776() { auto g = () { if (1) return; // fill tf->next if (1) { auto s = S11776!(a => 1)(); static assert(typeof(s).mangleof == "S"~"6mangle"~"56"~( "__T"~"6S11776"~"S42"~("6mangle"~"9test11776"~"FZ"~"9__lambda1MFZ"~"9__lambda1")~"Z" )~"6S11776"); } }; } /***************************************************/ // 12044 struct S12044(T) { void f()() { new T[1]; } bool opEquals(O)(O) { f(); } } void test12044() { () { enum E { e } auto arr = [E.e]; S12044!E s; } (); } /*******************************************/ // 12217 void test12217(int) { static struct S {} void bar() {} int var; template X(T) {} static assert( S.mangleof == "S6mangle9test12217FiZ1S"); static assert( bar.mangleof == "_D6mangle9test12217FiZ3barMFNaNbNiNfZv"); static assert( var.mangleof == "_D6mangle9test12217FiZ3vari"); static assert(X!int.mangleof == "6mangle9test12217FiZ8__T1XTiZ"); } void test12217() {} /***************************************************/ // 12231 void func12231a()() if (is(typeof({ class C {} static assert(C.mangleof == "C6mangle16__U10func12231aZ10func12231aFZ9__lambda1MFZ1C"); // ### L # }))) {} void func12231b()() if (is(typeof({ class C {} static assert(C.mangleof == "C6mangle16__U10func12231bZ10func12231bFZ9__lambda1MFZ1C"); // L__L L LL })) && is(typeof({ class C {} static assert(C.mangleof == "C6mangle16__U10func12231bZ10func12231bFZ9__lambda2MFZ1C"); // L__L L LL }))) {} void func12231c()() if (is(typeof({ class C {} static assert(C.mangleof == "C6mangle16__U10func12231cZ10func12231cFZ9__lambda1MFZ1C"); // L__L L LL }))) { (){ class C {} static assert(C.mangleof == "C6mangle16__T10func12231cZ10func12231cFZ9__lambda1MFZ1C"); // L__L L LL }(); } void func12231c(X)() if (is(typeof({ class C {} static assert(C.mangleof == "C6mangle20__U10func12231cTAyaZ10func12231cFZ9__lambda1MFZ1C"); // L__L L___L LL }))) { (){ class C {} static assert(C.mangleof == "C6mangle20__T10func12231cTAyaZ10func12231cFZ9__lambda1MFZ1C"); // L__L L___L LL }(); } void test12231() { func12231a(); func12231b(); func12231c(); func12231c!string(); } /***************************************************/ int test2a(scope int a) { return a; } static assert(test2a.mangleof == "_D6mangle6test2aFiZi"); /***************************************************/ class CC { int* p; int* member() scope { return p; } } static assert(CC.member.mangleof == "_D6mangle2CC6memberMFMZPi"); /***************************************************/ void main() { test10077h(); test10077i(); test12044(); }
D
/home/seanc/Documents/mywasmi/executor-test/target/debug/build/libc-13b622e2280b58df/build_script_build-13b622e2280b58df: /home/seanc/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.66/build.rs /home/seanc/Documents/mywasmi/executor-test/target/debug/build/libc-13b622e2280b58df/build_script_build-13b622e2280b58df.d: /home/seanc/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.66/build.rs /home/seanc/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.66/build.rs:
D
/Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Fluent.build/Schema/ForeignKey.swift.o : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/UUID.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Database+Schema.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Blob.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Field.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/ComputedField.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Method+Node.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Filter+Node.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Query+Page.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Page.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Storage.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Timestampable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Paginatable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Transactable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/SoftDeletable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QueryRepresentable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/RowConvertible.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Filter+Scope.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/IdentifierType.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Database.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Aggregate.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Scope+String.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Relation+String.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Comparison+String.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Log.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Chunk.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/PivotProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/ThreadConnectionPool.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Children.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Join.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Database+Preparation.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Preparation.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Migration.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Action.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Connection.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/KeyNamingConvention.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Comparison.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Query+Group.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Builder.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Modifier.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Query+Filter.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Filter.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Driver.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQLite/SQLiteDriver.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQL/SQLSerializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQL/GeneralSQLSerializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQLite/SQLiteSerializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/RelationError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/PaginationError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/PreparationError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/PivotError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QueryError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/EntityError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Creator.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Executor.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Siblings.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/Exports.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Distinct.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Limit.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Parent.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/Pivot.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/DoublePivot.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Sort.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/RowContext.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Raw.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/Row.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Index.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/ForeignKey.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Query.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Entity.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Dirty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/SQLite.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sqlite.git--8232814251736334455/Sources/CSQLite/include/sqlite3.h /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Fluent.build/ForeignKey~partial.swiftmodule : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/UUID.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Database+Schema.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Blob.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Field.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/ComputedField.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Method+Node.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Filter+Node.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Query+Page.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Page.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Storage.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Timestampable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Paginatable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Transactable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/SoftDeletable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QueryRepresentable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/RowConvertible.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Filter+Scope.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/IdentifierType.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Database.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Aggregate.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Scope+String.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Relation+String.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Comparison+String.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Log.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Chunk.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/PivotProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/ThreadConnectionPool.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Children.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Join.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Database+Preparation.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Preparation.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Migration.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Action.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Connection.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/KeyNamingConvention.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Comparison.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Query+Group.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Builder.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Modifier.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Query+Filter.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Filter.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Driver.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQLite/SQLiteDriver.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQL/SQLSerializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQL/GeneralSQLSerializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQLite/SQLiteSerializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/RelationError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/PaginationError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/PreparationError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/PivotError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QueryError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/EntityError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Creator.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Executor.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Siblings.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/Exports.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Distinct.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Limit.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Parent.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/Pivot.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/DoublePivot.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Sort.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/RowContext.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Raw.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/Row.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Index.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/ForeignKey.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Query.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Entity.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Dirty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/SQLite.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sqlite.git--8232814251736334455/Sources/CSQLite/include/sqlite3.h /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Fluent.build/ForeignKey~partial.swiftdoc : /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/UUID.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Database+Schema.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Blob.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Field.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/ComputedField.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Method+Node.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Filter+Node.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Query+Page.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Page.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Storage.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Timestampable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Paginatable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Transactable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/SoftDeletable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QueryRepresentable.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/RowConvertible.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Filter+Scope.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/IdentifierType.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Database.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Aggregate.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Scope+String.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Relation+String.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Comparison+String.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Log.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Chunk.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/PivotProtocol.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/ThreadConnectionPool.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Children.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Join.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Database+Preparation.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Preparation.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Migration.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Action.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Connection.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/KeyNamingConvention.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Comparison.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Query+Group.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Builder.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Modifier.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Query+Filter.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Filter.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Driver.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQLite/SQLiteDriver.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQL/SQLSerializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQL/GeneralSQLSerializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQLite/SQLiteSerializer.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/RelationError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/PaginationError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/PreparationError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/PivotError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QueryError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/EntityError.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Creator.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Executor.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Siblings.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/Exports.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Distinct.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Limit.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Parent.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/Pivot.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/DoublePivot.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Sort.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/RowContext.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Raw.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/Row.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Index.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/ForeignKey.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Query.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Entity.swift /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Dirty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/SQLite.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/checkouts/sqlite.git--8232814251736334455/Sources/CSQLite/include/sqlite3.h /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/AleixDiaz/Desktop/VaporProject/LaSalleChat/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes
D
instance VLK_400_LARIUS(NPC_DEFAULT) { name[0] = "Ëàðèóñ"; guild = GIL_VLK; id = 400; voice = 1; flags = NPC_FLAG_IMMORTAL; npctype = NPCTYPE_MAIN; b_setattributestochapter(self,1); fight_tactic = FAI_HUMAN_COWARD; b_createambientinv(self); b_setnpcvisual(self,MALE,"Hum_Head_FatBald",FACE_N_WEAK_CIPHER_ALT,BODYTEX_N,itar_governor); Mdl_SetModelFatness(self,2); Mdl_ApplyOverlayMds(self,"Humans_Relaxed.mds"); b_givenpctalents(self); b_setfightskills(self,30); daily_routine = rtn_start_400; }; func void rtn_start_400() { ta_sit_throne(8,0,12,0,"NW_CITY_LARIUS"); ta_read_bookstand(12,0,15,0,"NW_CITY_LARIUS"); ta_sit_throne(15,0,19,0,"NW_CITY_LARIUS"); ta_sit_throne(19,0,22,0,"NW_CITYHALL_PRIVATE_THRONE"); ta_sleep(22,0,8,0,"NW_CITY_LARIUS_BED"); };
D
E: c402, c50, c128, c96, c332, c205, c287, c437, c275, c268, c289, c194, c277, c351, c88, c94, c65, c340, c407, c288, c26, c115, c54, c314, c446, c162, c61, c16, c73, c184, c252, c263, c241, c159, c380, c396, c450, c228, c297, c100, c388, c69, c397, c112, c400, c199, c77, c345, c213, c399, c132, c331, c431, c258, c438, c129, c223, c376, c120, c315, c323, c39, c171, c79, c411, c337, c234, c78, c22, c352, c45, c342, c163, c390, c453, c195, c68, c265, c387, c448, c8, c409, c374, c4, c293, c40, c36, c367, c251, c48, c35, c202, c167, c27, c384, c356, c329, c341, c43, c59, c318, c330, c190, c168, c93, c76, c236, c244, c404, c158, c296, c180, c12, c152, c221, c440, c300, c24, c119, c122, c41, c261, c56, c174, c33, c218, c145, c260, c430, c107, c259, c420, c324, c429, c169, c372, c75, c64, c154, c116, c181, c432, c19, c148, c131, c212, c166, c98, c156, c17, c334, c348, c25, c137, c308, c447, c292, c426, c150, c233, c336, c15, c238, c149, c373, c264, c82, c394, c126, c123, c378, c86, c133, c353, c106, c305, c206, c95, c369, c346, c157, c418, c20, c63, c441, c375, c222, c231, c227, c422, c178, c385, c282, c395, c434, c138, c358, c176, c310, c316, c298, c155, c423, c253, c144, c140, c192, c111, c160, c344, c9, c135, c179, c51, c294, c147, c291, c363, c398, c240, c317, c406, c306, c246, c92, c312, c311, c109, c105, c208, c97, c226, c328, c143, c433, c219, c70, c326, c230, c444, c235, c108, c62, c2, c286, c187, c186, c164, c280, c368, c237, c382, c333, c290, c201, c130, c262. p6(E,E) c402,c50 c128,c96 c79,c213 c340,c65 c94,c265 c374,c4 c78,c341 c300,c337 c352,c26 c259,c93 c19,c148 c100,c388 c213,c17 c404,c244 c446,c287 c411,c448 c149,c373 c65,c340 c396,c277 c56,c261 c446,c407 c122,c59 c418,c20 c340,c437 c221,c152 c376,c120 c59,c122 c159,c168 c159,c33 c167,c145 c289,c397 c398,c411 c332,c205 c260,c162 c411,c337 c59,c316 c155,c70 c8,c409 c275,c268 c187,c186 c122,c238 c356,c329 c171,c158 c199,c367 . p4(E,E) c332,c205 c275,c268 c65,c340 c407,c288 c446,c287 c100,c388 c345,c213 c399,c132 c376,c120 c315,c252 c411,c337 c234,c78 c223,c228 c251,c48 c407,c446 c318,c330 c168,c159 c152,c221 c59,c122 c174,c213 c159,c33 c329,c356 c167,c145 c50,c420 c159,c168 c340,c437 c448,c137 c24,c390 c404,c244 c8,c409 c411,c448 c380,c82 c122,c238 c314,c86 c162,c260 c300,c337 c120,c376 c287,c446 c26,c352 c367,c199 c238,c122 c374,c4 c261,c56 c330,c318 c48,c251 c397,c289 c265,c94 c79,c213 c22,c50 c351,c324 c388,c100 c59,c316 c406,c93 c390,c24 c50,c402 c132,c399 c450,c137 c341,c78 c268,c275 c332,c208 c289,c397 c86,c314 c337,c411 c277,c396 c145,c167 c340,c65 c316,c59 c169,c372 c137,c448 c288,c407 c107,c205 c78,c341 c434,c395 c446,c407 c240,c333 c372,c169 c356,c329 c199,c367 c402,c50 c259,c93 . p8(E,E) c287,c437 c88,c94 c26,c115 c54,c314 c16,c73 c241,c159 c380,c396 c450,c314 c69,c397 c400,c199 c323,c446 c39,c171 c45,c342 c453,c195 c68,c340 c387,c411 c202,c167 c43,c59 c236,c356 c41,c352 c40,c293 c218,c59 c75,c65 c154,c50 c128,c159 c388,c167 c25,c132 c315,c426 c15,c24 c88,c8 c353,c411 c331,c221 c106,c374 c24,c332 c95,c289 c54,c61 c63,c65 c251,c93 c77,c100 c150,c396 c422,c332 c241,c178 c385,c159 c50,c282 c176,c411 c310,c395 c430,c378 c298,c155 c160,c228 c344,c122 c179,c396 c137,c73 c51,c446 c314,c259 c222,c374 c64,c446 c352,c147 c363,c275 c240,c78 c218,c340 c306,c289 c312,c402 c311,c107 c61,c293 c431,c79 c54,c105 c109,c275 c226,c61 c143,c433 c437,c378 c219,c404 c291,c93 c108,c107 c252,c24 c62,c122 c253,c50 c368,c446 c450,c260 c382,c300 c296,c404 c287,c352 c282,c122 c375,c395 c137,c94 c291,c56 . p1(E,E) c289,c194 c252,c263 c100,c77 c293,c40 c159,c65 c159,c241 c159,c128 c446,c64 c78,c116 c212,c166 c318,c218 c396,c150 c167,c202 c340,c68 c378,c437 c441,c375 c374,c222 c231,c227 c50,c241 c76,c107 c73,c137 c411,c353 c356,c236 c352,c287 c396,c380 c122,c282 c397,c399 c93,c291 c376,c119 c289,c306 c402,c312 c275,c109 c65,c63 c228,c230 c221,c331 c79,c54 c332,c237 c122,c344 c156,c340 c300,c288 c388,c300 c411,c290 c199,c400 c130,c262 . p2(E,E) c277,c351 c50,c184 c228,c297 c340,c35 c252,c190 c158,c296 c180,c12 c24,c119 c376,c430 c159,c181 c300,c432 c396,c331 c334,c348 c308,c447 c50,c292 c122,c223 c76,c387 c314,c336 c374,c264 c65,c315 c396,c133 c61,c16 c199,c423 c411,c41 c346,c431 c331,c9 c56,c317 c94,c212 c78,c94 c409,c328 c260,c206 c159,c310 c332,c326 c59,c447 c289,c164 c446,c280 c201,c223 . p0(E,E) c162,c61 c331,c100 c223,c228 c252,c315 c446,c287 c50,c22 c26,c352 c411,c448 c289,c397 c8,c409 c27,c384 c356,c329 c244,c404 c159,c168 c261,c56 c287,c446 c199,c367 c260,c162 c107,c132 c33,c159 c48,c251 c324,c429 c169,c372 c396,c277 c213,c174 c22,c50 c137,c448 c238,c122 c137,c450 c388,c100 c330,c318 c402,c50 c409,c8 c367,c199 c305,c206 c369,c346 c79,c213 c174,c213 c213,c79 c221,c152 c404,c244 c59,c122 c132,c107 c261,c63 c100,c388 c300,c337 c395,c434 c133,c264 c340,c437 c337,c411 c59,c316 c329,c356 c159,c33 c168,c159 c234,c78 c144,c140 c192,c111 c135,c111 c450,c137 c145,c167 c332,c205 c78,c234 c316,c59 c251,c48 c152,c221 c420,c50 c434,c395 c246,c92 c446,c407 c122,c59 c444,c388 c374,c4 c437,c340 c94,c265 c50,c420 c407,c288 c24,c390 c340,c65 c265,c94 c288,c407 . p5(E,E) c112,c397 c431,c258 c440,c367 c156,c372 c394,c126 c324,c15 . p10(E,E) c438,c129 c36,c367 c336,c411 c138,c358 c294,c374 . p7(E,E) c163,c390 c131,c154 c233,c132 c43,c341 c429,c199 c123,c241 c157,c277 c275,c97 c43,c432 . p9(E,E) c93,c76 c129,c396 . p3(E,E) c268,c98 c332,c150 c158,c253 c342,c235 c2,c286 .
D
/** * C preprocessor * Copyright: 2013 by Digital Mars * License: $(LINK2 http://boost.org/LICENSE_1_0.txt, Boost License 1.0). * Authors: Walter Bright */ module stringlit; import std.array; import std.range; import std.stdio; import std.traits; import std.utf; import lexer; import main; import macros; import ranges; // Kind of string literal enum STR { s, // default f, // #include string, i.e. no special meaning for \ character L, // wchar_t u8, // UTF-8 u, // wchar U // dchar } /***************************************** * Read in a string literal. * Input: * tc string terminating character, which is one of ', " or > * Output: * bytes written to s */ R lexStringLiteral(R, S)(R r, ref S s, char tc, STR str) { alias Unqual!(ElementEncodingType!R) E; /* Read \0, \x, \u and \U digit sequences */ dchar readRadix(int radix, int ndigits) { int n = 0; dchar d = 0; do { if (r.empty) break; E c = cast(E)r.front; uint i = 32; if (c >= '0' && c <= '9') i = c - '0'; else if (c >= 'A' && c <= 'F') i = c + 10 - 'A'; else if (c >= 'a' && c <= 'f') i = c + 10 - 'a'; if (i >= radix) { if (n == 0 || ndigits >= 4) err_fatal("radix %s digit expected, saw '%c'", radix, c); break; } d = d * radix + i; r.popFront(); } while (++n < ndigits); /* Don't worry about disallowed Universal characters, as they * vary from Standard to Standard, and we want this to work with * all of them. */ return d; } bool slash; while (!r.empty) { E c = cast(E)r.front; dchar d = c; switch (c) { case '"': case '\'': case '>': if (c == tc && !slash) { r.popFront(); return r; } goto default; case ESC.space: case ESC.brk: // token separator r.popFront(); break; case '\\': if (str == STR.f) // ignore escapes in #include strings goto default; Lslash: /* Escape sequences */ r.popFront(); if (r.empty) goto Lerror; c = cast(E)r.front; switch (c) { case '\r': goto Lslash; case '\n': r.popFront(); continue; case '"': case '\'': case '\\': case '?': d = c; break; case 'a': d = '\a'; break; case 'b': d = '\b'; break; case 'f': d = '\f'; break; case 'n': d = '\n'; break; case 'r': d = '\r'; break; case 't': d = '\t'; break; case 'v': d = '\v'; break; case '0': .. case '7': // \nnn octal d = readRadix(8, 3); if (d >= 0x100) err_fatal("octal escape exceeds 0xFF"); goto Lput; case 'x': // \xnn hex r.popFront(); d = readRadix(16, 2); goto Lput; case 'u': // \unnnn hex r.popFront(); d = readRadix(16, 4); goto Lput; case 'U': // \Unnnnnnnn hex r.popFront(); d = readRadix(16, 8); goto Lput; default: err_fatal("invalid escape sequence"); break; } goto default; default: r.popFront(); Lput: /* Stuff d into the output buffer, how it is done * depends on the kind of string literal being built. */ final switch (str) { case STR.s: case STR.f: s.put(cast(E)d); break; case STR.u8: { char[4] buf = void; size_t len = std.utf.encode(buf, d); foreach (chr; buf[0 .. len]) s.put(chr); break; } case STR.L: s.put(cast(E)d); s.put(cast(E)(d >> 8)); version (Windows) { } else { s.put(cast(E)(d >> 16)); s.put(cast(E)(d >> 24)); } break; case STR.u: { wchar[2] buf = void; size_t len = std.utf.encode(buf, d); foreach (chr; (cast(E*)buf.ptr)[0 .. len * wchar.sizeof]) s.put(chr); break; } case STR.U: s.put(cast(E)d); s.put(cast(E)(d >> 8)); s.put(cast(E)(d >> 16)); s.put(cast(E)(d >> 24)); break; } slash = false; break; } } Lerror: err_fatal("string literal is not closed with %s", tc); return r; } unittest { StaticArrayBuffer!(char, 100) buf = void; buf.initialize(); auto r = `abc"`.lexStringLiteral(buf, '"', STR.s); assert(r.empty && buf[] == "abc"); buf.initialize(); r = `\\\"\'\?\a\b\f\n\r\t\v"`.lexStringLiteral(buf, '"', STR.s); assert(r.empty && buf[] == "\\\"\'\?\a\b\f\n\r\t\v"); buf.initialize(); r = `\0x\1773"`.lexStringLiteral(buf, '"', STR.s); assert(r.empty && buf[] == "\0x\1773"); buf.initialize(); r = `\xa\xAFc"`.lexStringLiteral(buf, '"', STR.s); //writefln("|%s|", buf[]); assert(r.empty && buf[] == "\x0a\xafc"); buf.initialize(); r = `\uabcdc"`.lexStringLiteral(buf, '"', STR.u); assert(r.empty && buf.length == 4 && buf[][0] == 0xCD && buf[][1] == 0xAB && buf[][2] == 'c' && buf[][3] == 0x00); buf.initialize(); r = `\U000DEF01c"`.lexStringLiteral(buf, '"', STR.U); //writef("%d:", buf.length); //foreach (c; 0..buf.length) writef(" %02x", buf[][c]); //writeln(); assert(r.empty && buf.length == 8 && buf[][0] == 0x01 && buf[][1] == 0xEF && buf[][2] == 0x0D && buf[][3] == 0x00 && buf[][4] == 'c' && buf[][5] == 0x00 && buf[][6] == 0x00 && buf[][7] == 0x00); } /******************************************* * Lex a character literal, and convert it to an integer i. */ R lexCharacterLiteral(R)(R r, ref ppint_t i, STR str) { alias Unqual!(ElementEncodingType!R) E; StaticArrayBuffer!(E, 100) buf; buf.initialize(); r = r.lexStringLiteral(buf, '\'', str); E[] a = buf[]; size_t n; final switch (str) { case STR.s: case STR.u8: n = a.length; if (n == 1) // most common case { i = a[0]; return r; } if (n > ppint_t.sizeof) err_fatal("too many characters in literal"); else { E* p = cast(E*)(&i) + n; foreach (c; a[0 .. n]) *--p = c; } break; case STR.L: version (Windows) { i = *cast(ushort*)a.ptr; } else { i = *cast(uint*)a.ptr; } break; case STR.u: i = *cast(ushort*)a.ptr; break; case STR.U: i = *cast(uint*)a.ptr; break; case STR.f: assert(0); } return r; } unittest { ppint_t n; { auto r = `a'`.lexCharacterLiteral(n, STR.s); assert(r.empty && n == 'a'); } { auto r = `ab'`.lexCharacterLiteral(n, STR.s); assert(r.empty && n == 0x6162); } }
D
// Copyright: Coverify Systems Technology 2013 - 2014 // License: Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // Authors: Puneet Goel <puneet@coverify.com> import std.stdio; import esdl.rand; import esdl.data.bvec; int FFFF = 20; class Foo { mixin Randomization; @rand!(4,4,4) byte[][][] foo; void display() { import std.stdio; writeln(foo); } Constraint!q{ foo.length > 1; foreach(ff; foo) { ff.length > 1; foreach(j, f; ff) { f.length > 2; foreach(i, a; f) { a == j + i; // a < 10; } } } } aconst; } void main() { Foo foo = new Foo; for (size_t i=0; i!=40; ++i) { foo.randomize(); foo.display(); } import std.stdio; writeln("End of program"); }
D
/Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Fluent.build/Model/SoftDeletable.swift.o : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Model/ID.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/SchemaSupporting+CRUD.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Model/Model+CRUD.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+CRUD.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/Deprecated.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Service/MigrateCommand.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Service/RevertCommand.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+Decode.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+Range.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Model/SoftDeletable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+Aggregate.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/MigrationConfig.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/SchemaSupporting.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Join/JoinSupporting.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/MigrationSupporting.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Transaction/TransactionSupporting.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QuerySupporting.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/MigrationLog.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+Model.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Model/Model.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Model/AnyModel.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Children.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Join/QueryBuilder+Join.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/SchemaSupporting+Migration.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/Migration.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/AnyMigration.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+Run.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Service/FluentProvider.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/SchemaBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/SchemaUpdater.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+Filter.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/FluentError.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/SchemaCreator.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/DatabasesConfig+References.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Siblings.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/Migrations.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/AnyMigrations.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+Operators.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/Exports.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Parent.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Service/CommandConfig+Fluent.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Cache/KeyedCacheSupporting+Fluent.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/DatabaseConnection+Fluent.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Model/ModelEvent.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Model/Pivot.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+Sort.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Cache/CacheEntry.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/FluentProperty.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/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Command.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Logging.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/ifaddrs-android.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/CNIODarwin.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/CNIOLinux.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Fluent.build/SoftDeletable~partial.swiftmodule : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Model/ID.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/SchemaSupporting+CRUD.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Model/Model+CRUD.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+CRUD.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/Deprecated.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Service/MigrateCommand.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Service/RevertCommand.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+Decode.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+Range.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Model/SoftDeletable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+Aggregate.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/MigrationConfig.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/SchemaSupporting.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Join/JoinSupporting.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/MigrationSupporting.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Transaction/TransactionSupporting.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QuerySupporting.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/MigrationLog.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+Model.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Model/Model.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Model/AnyModel.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Children.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Join/QueryBuilder+Join.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/SchemaSupporting+Migration.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/Migration.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/AnyMigration.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+Run.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Service/FluentProvider.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/SchemaBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/SchemaUpdater.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+Filter.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/FluentError.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/SchemaCreator.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/DatabasesConfig+References.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Siblings.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/Migrations.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/AnyMigrations.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+Operators.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/Exports.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Parent.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Service/CommandConfig+Fluent.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Cache/KeyedCacheSupporting+Fluent.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/DatabaseConnection+Fluent.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Model/ModelEvent.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Model/Pivot.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+Sort.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Cache/CacheEntry.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/FluentProperty.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/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Command.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Logging.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/ifaddrs-android.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/CNIODarwin.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/CNIOLinux.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Fluent.build/SoftDeletable~partial.swiftdoc : /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Model/ID.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/SchemaSupporting+CRUD.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Model/Model+CRUD.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+CRUD.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/Deprecated.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Service/MigrateCommand.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Service/RevertCommand.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+Decode.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+Range.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Model/SoftDeletable.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+Aggregate.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/MigrationConfig.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/SchemaSupporting.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Join/JoinSupporting.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/MigrationSupporting.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Transaction/TransactionSupporting.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QuerySupporting.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/MigrationLog.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+Model.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Model/Model.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Model/AnyModel.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Children.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Join/QueryBuilder+Join.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/SchemaSupporting+Migration.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/Migration.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/AnyMigration.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+Run.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Service/FluentProvider.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/SchemaBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/SchemaUpdater.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+Filter.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/FluentError.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/SchemaCreator.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/DatabasesConfig+References.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Siblings.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/Migrations.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Migration/AnyMigrations.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+Operators.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/Exports.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Parent.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Service/CommandConfig+Fluent.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Cache/KeyedCacheSupporting+Fluent.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/DatabaseConnection+Fluent.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Model/ModelEvent.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Model/Pivot.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/QueryBuilder/QueryBuilder+Sort.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Cache/CacheEntry.swift /Users/godemodegame/Desktop/ATMApp/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/FluentProperty.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/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Command.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Console.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Logging.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/DatabaseKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/ifaddrs-android.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/CNIODarwin.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/CNIOLinux.h /Users/godemodegame/Desktop/ATMApp/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/godemodegame/Desktop/ATMApp/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
D