code stringlengths 3 10M | language stringclasses 31 values |
|---|---|
/*
* This file has been automatically generated by Soupply and released under the MIT license.
*/
module soupply.java393.packet;
import xpacket;
alias Java393Packet = PacketImpl!(Endian.bigEndian, varuint, varuint);
| D |
the central part of a car wheel (or fan or propeller etc) through which the shaft or axle passes
a center of activity or interest or commerce or transportation
| D |
#!/usr/bin/env rdmd
/**
DMD builder
Usage:
./build.d dmd
detab, tolf, install targets - require the D Language Tools (detab.exe, tolf.exe)
https://github.com/dlang/tools.
zip target - requires Info-ZIP or equivalent (zip32.exe)
http://www.info-zip.org/Zip.html#Downloads
*/
version(CoreDdoc) {} else:
import std.algorithm, std.conv, std.datetime, std.exception, std.file, std.format, std.functional,
std.getopt, std.path, std.process, std.range, std.stdio, std.string, std.traits;
import std.parallelism : TaskPool, totalCPUs;
const thisBuildScript = __FILE_FULL_PATH__.buildNormalizedPath;
const srcDir = thisBuildScript.dirName;
const dmdRepo = srcDir.dirName;
const testDir = dmdRepo.buildPath("test");
shared bool verbose; // output verbose logging
shared bool force; // always build everything (ignores timestamp checking)
shared bool dryRun; /// dont execute targets, just print command to be executed
__gshared int jobs; // Number of jobs to run in parallel
__gshared string[string] env;
__gshared string[][string] flags;
__gshared typeof(sourceFiles()) sources;
__gshared TaskPool taskPool;
/// Array of build rules through which all other build rules can be reached
immutable rootRules = [
&dmdDefault,
&dmdPGO,
&autoTesterBuild,
&runDmdUnittest,
&clean,
&checkwhitespace,
&runTests,
&buildFrontendHeaders,
&runCxxHeadersTest,
&runCxxUnittest,
&detab,
&tolf,
&zip,
&html,
&toolchainInfo,
&style,
&man,
&installCopy,
];
int main(string[] args)
{
try
{
runMain(args);
return 0;
}
catch (BuildException e)
{
writeln(e.msg);
if (e.details)
{
writeln("DETAILS:\n");
writeln(e.details);
}
return 1;
}
}
void runMain(string[] args)
{
jobs = totalCPUs;
bool calledFromMake = false;
auto res = getopt(args,
"j|jobs", "Specifies the number of jobs (commands) to run simultaneously (default: %d)".format(totalCPUs), &jobs,
"v|verbose", "Verbose command output", (cast(bool*) &verbose),
"f|force", "Force run (ignore timestamps and always run all tests)", (cast(bool*) &force),
"d|dry-run", "Print commands instead of executing them", (cast(bool*) &dryRun),
"called-from-make", "Calling the build script from the Makefile", &calledFromMake
);
void showHelp()
{
defaultGetoptPrinter(`./build.d <targets>...
Examples
--------
./build.d dmd # build DMD
./build.d unittest # runs internal unittests
./build.d clean # remove all generated files
./build.d generated/linux/release/64/dmd.conf
./build.d dmd-pgo # builds dmd with PGO data, currently only LDC is supported
Important variables:
--------------------
HOST_DMD: Host D compiler to use for bootstrapping
AUTO_BOOTSTRAP: Enable auto-boostrapping by downloading a stable DMD binary
MODEL: Target architecture to build for (32,64) - defaults to the host architecture
Build modes:
------------
BUILD: release (default) | debug (enabled a build with debug instructions)
Opt-in build features:
ENABLE_RELEASE: Optimized release build
ENABLE_DEBUG: Add debug instructions and symbols (set if ENABLE_RELEASE isn't set)
ENABLE_ASSERTS: Don't use -release if ENABLE_RELEASE is set
ENABLE_LTO: Enable link-time optimizations
ENABLE_UNITTEST: Build dmd with unittests (sets ENABLE_COVERAGE=1)
ENABLE_PROFILE: Build dmd with a profiling recorder (D)
ENABLE_COVERAGE Build dmd with coverage counting
ENABLE_SANITIZERS Build dmd with sanitizer (e.g. ENABLE_SANITIZERS=address,undefined)
Targets
-------
` ~ targetsHelp ~ `
The generated files will be in generated/$(OS)/$(BUILD)/$(MODEL) (` ~ env["G"] ~ `)
Command-line parameters
-----------------------
`, res.options);
return;
}
// workaround issue https://issues.dlang.org/show_bug.cgi?id=13727
version (CRuntime_DigitalMars)
{
pragma(msg, "Warning: Parallel builds disabled because of Issue 13727!");
jobs = min(jobs, 1); // Fall back to a sequential build
}
if (jobs <= 0)
abortBuild("Invalid number of jobs: %d".format(jobs));
taskPool = new TaskPool(jobs - 1); // Main thread is active too
scope (exit) taskPool.finish();
scope (failure) taskPool.stop();
// parse arguments
args.popFront;
args2Environment(args);
parseEnvironment;
processEnvironment;
processEnvironmentCxx;
sources = sourceFiles;
if (res.helpWanted)
return showHelp;
// Since we're ultimately outputting to a TTY, force colored output
// A more proper solution would be to redirect DMD's output to this script's
// output using `std.process`', but it's more involved and the following
// "just works"
version(Posix) // UPDATE: only when ANSII color codes are supported, that is. Don't do this on Windows.
if (!flags["DFLAGS"].canFind("-color=off") &&
[env["HOST_DMD_RUN"], "-color=on", "-h"].tryRun().status == 0)
flags["DFLAGS"] ~= "-color=on";
// default target
if (!args.length)
args = ["dmd"];
auto targets = predefinedTargets(args); // preprocess
if (targets.length == 0)
return showHelp;
if (verbose)
{
log("================================================================================");
foreach (key, value; env)
log("%s=%s", key, value);
foreach (key, value; flags)
log("%s=%-(%s %)", key, value);
log("================================================================================");
}
{
File lockFile;
if (calledFromMake)
{
// If called from make, use an interprocess lock so that parallel builds don't stomp on each other
lockFile = File(env["GENERATED"].buildPath("build.lock"), "w");
lockFile.lock();
}
scope (exit)
{
if (calledFromMake)
{
lockFile.unlock();
lockFile.close();
}
}
Scheduler.build(targets);
}
writeln("Success");
}
/// Generate list of targets for use in the help message
string targetsHelp()
{
string result = "";
foreach (rule; BuildRuleRange(rootRules.map!(a => a()).array))
{
if (rule.name)
{
enum defaultPrefix = "\n ";
result ~= rule.name;
string prefix = defaultPrefix[1 + rule.name.length .. $];
void add(string msg)
{
result ~= format("%s%s", prefix, msg);
prefix = defaultPrefix;
}
if (rule.description)
add(rule.description);
else if (rule.targets)
{
foreach (target; rule.targets)
{
add(target.relativePath);
}
}
result ~= "\n";
}
}
return result;
}
/**
D build rules
====================
The strategy of this script is to emulate what the Makefile is doing.
Below all individual rules of DMD are defined.
They have a target path, sources paths and an optional name.
When a rule is needed either its command or custom commandFunction is executed.
A rule will be skipped if all targets are older than all sources.
This script is by default part of the sources and thus any change to the build script,
will trigger a full rebuild.
*/
/// Returns: The rule that runs the autotester build
alias autoTesterBuild = makeRule!((builder, rule) {
builder
.name("auto-tester-build")
.description("Run the autotester build")
.deps([toolchainInfo, dmdDefault, checkwhitespace, validateCommonBetterC]);
version (Posix)
rule.deps ~= runCxxUnittest;
// unittests are currently not executed as part of `auto-tester-test` on windows
// because changes to `win32.mak` require additional changes on the autotester
// (see https://github.com/dlang/dmd/pull/7414).
// This requires no further actions and avoids building druntime+phobos on unittest failure
version (Windows)
rule.deps ~= runDmdUnittest;
});
/// Returns: the rule that builds the lexer object file
alias lexer = makeRuleWithArgs!((MethodInitializer!BuildRule builder, BuildRule rule,
string suffix, string[] extraFlags)
=> builder
.name("lexer")
.target(env["G"].buildPath("lexer" ~ suffix).objName)
.sources(sources.lexer)
.deps([
versionFile,
sysconfDirFile,
common(suffix, extraFlags)
])
.msg("(DC) LEXER" ~ suffix)
.command([env["HOST_DMD_RUN"],
"-c",
"-of" ~ rule.target,
"-vtls",
"-J" ~ env["RES"]]
.chain(flags["DFLAGS"],
extraFlags,
// source files need to have relative paths in order for the code coverage
// .lst files to be named properly for CodeCov to find them
rule.sources.map!(e => e.relativePath(dmdRepo))
).array
)
);
/// Returns: the rule that generates the dmd.conf/sc.ini file in the output folder
alias dmdConf = makeRule!((builder, rule) {
string exportDynamic;
version(OSX) {} else
exportDynamic = " -L--export-dynamic";
version (Windows)
{
enum confFile = "sc.ini";
enum conf = `[Environment]
DFLAGS="-I%@P%\..\..\..\..\..\druntime\import" "-I%@P%\..\..\..\..\..\phobos"
LIB="%@P%\..\..\..\..\..\phobos"
[Environment32]
DFLAGS=%DFLAGS% -L/OPT:NOICF
[Environment64]
DFLAGS=%DFLAGS% -L/OPT:NOICF
[Environment32mscoff]
DFLAGS=%DFLAGS% -L/OPT:NOICF
`;
}
else
{
enum confFile = "dmd.conf";
enum conf = `[Environment32]
DFLAGS=-I%@P%/../../../../../druntime/import -I%@P%/../../../../../phobos -L-L%@P%/../../../../../phobos/generated/{OS}/{BUILD}/32{exportDynamic} -fPIC
[Environment64]
DFLAGS=-I%@P%/../../../../../druntime/import -I%@P%/../../../../../phobos -L-L%@P%/../../../../../phobos/generated/{OS}/{BUILD}/64{exportDynamic} -fPIC
`;
}
builder
.name("dmdconf")
.target(env["G"].buildPath(confFile))
.msg("(TX) DMD_CONF")
.commandFunction(() {
const expConf = conf
.replace("{exportDynamic}", exportDynamic)
.replace("{BUILD}", env["BUILD"])
.replace("{OS}", env["OS"]);
writeText(rule.target, expConf);
});
});
/// Returns: the rule that builds the common object file
alias common = makeRuleWithArgs!((MethodInitializer!BuildRule builder, BuildRule rule,
string suffix, string[] extraFlags) => builder
.name("common")
.target(env["G"].buildPath("common" ~ suffix).objName)
.sources(sources.common)
.msg("(DC) COMMON" ~ suffix)
.command([
env["HOST_DMD_RUN"],
"-c",
"-of" ~ rule.target,
]
.chain(
flags["DFLAGS"], extraFlags,
// source files need to have relative paths in order for the code coverage
// .lst files to be named properly for CodeCov to find them
rule.sources.map!(e => e.relativePath(dmdRepo))
).array)
);
alias validateCommonBetterC = makeRule!((builder, rule) => builder
.name("common-betterc")
.description("Verify that common is -betterC compatible")
.deps([ common("-betterc", ["-betterC"]) ])
);
/// Returns: the rule that builds the backend object file
alias backend = makeRuleWithArgs!((MethodInitializer!BuildRule builder, BuildRule rule,
string suffix, string[] extraFlags) => builder
.name("backend")
.target(env["G"].buildPath("backend" ~ suffix).objName)
.sources(sources.backend)
.deps([
common(suffix, extraFlags)
])
.msg("(DC) BACKEND" ~ suffix)
.command([
env["HOST_DMD_RUN"],
"-c",
"-of" ~ rule.target,
]
.chain(
(
// Only use -betterC when it doesn't break other features
extraFlags.canFind("-unittest", env["COVERAGE_FLAG"]) ||
flags["DFLAGS"].canFind("-unittest", env["COVERAGE_FLAG"])
) ? [] : ["-betterC"],
flags["DFLAGS"], extraFlags,
// source files need to have relative paths in order for the code coverage
// .lst files to be named properly for CodeCov to find them
rule.sources.map!(e => e.relativePath(dmdRepo))
).array)
);
/// Returns: the rules that generate required string files: VERSION and SYSCONFDIR.imp
alias versionFile = makeRule!((builder, rule) {
alias contents = memoize!(() {
if (dmdRepo.buildPath(".git").exists)
{
auto gitResult = tryRun([env["GIT"], "describe", "--dirty"]);
if (gitResult.status == 0)
return gitResult.output.strip;
}
// version fallback
return dmdRepo.buildPath("VERSION").readText;
});
builder
.target(env["G"].buildPath("VERSION"))
.condition(() => !rule.target.exists || rule.target.readText != contents)
.msg("(TX) VERSION")
.commandFunction(() => writeText(rule.target, contents));
});
alias sysconfDirFile = makeRule!((builder, rule) => builder
.target(env["G"].buildPath("SYSCONFDIR.imp"))
.condition(() => !rule.target.exists || rule.target.readText != env["SYSCONFDIR"])
.msg("(TX) SYSCONFDIR")
.commandFunction(() => writeText(rule.target, env["SYSCONFDIR"]))
);
/// BuildRule to create a directory if it doesn't exist.
alias directoryRule = makeRuleWithArgs!((MethodInitializer!BuildRule builder, BuildRule rule, string dir) => builder
.target(dir)
.condition(() => !exists(dir))
.msg("mkdirRecurse '%s'".format(dir))
.commandFunction(() => mkdirRecurse(dir))
);
/**
BuildRule for the DMD executable.
Params:
extra_flags = Flags to apply to the main build but not the rules
*/
alias dmdExe = makeRuleWithArgs!((MethodInitializer!BuildRule builder, BuildRule rule,
string targetSuffix, string[] extraFlags, string[] depFlags) {
const dmdSources = sources.dmd.all.chain(sources.root).array;
string[] platformArgs;
version (Windows)
platformArgs = ["-L/STACK:8388608"];
auto lexer = lexer(targetSuffix, depFlags);
auto backend = backend(targetSuffix, depFlags);
auto common = common(targetSuffix, depFlags);
builder
// include lexer.o, common.o, and backend.o
.sources(dmdSources.chain(lexer.targets, backend.targets, common.targets).array)
.target(env["DMD_PATH"] ~ targetSuffix)
.msg("(DC) DMD" ~ targetSuffix)
.deps([versionFile, sysconfDirFile, lexer, backend, common])
.command([
env["HOST_DMD_RUN"],
"-of" ~ rule.target,
"-vtls",
"-J" ~ env["RES"],
].chain(extraFlags, platformArgs, flags["DFLAGS"],
// source files need to have relative paths in order for the code coverage
// .lst files to be named properly for CodeCov to find them
rule.sources.map!(e => e.relativePath(dmdRepo))
).array);
});
alias dmdDefault = makeRule!((builder, rule) => builder
.name("dmd")
.description("Build dmd")
.deps([dmdExe(null, null, null), dmdConf])
);
struct PGOState
{
//Does the host compiler actually support PGO, if not print a message
static bool checkPGO(string x)
{
switch (env["HOST_DMD_KIND"])
{
case "dmd":
abortBuild(`DMD does not support PGO!`);
break;
case "ldc":
return true;
break;
case "gdc":
abortBuild(`PGO (or AutoFDO) builds are not yet supported for gdc`);
break;
default:
assert(false, "Unknown host compiler kind: " ~ env["HOST_DMD_KIND"]);
}
assert(0);
}
this(string set)
{
hostKind = set;
profDirPath = buildPath(env["G"], "dmd_profdata");
mkdirRecurse(profDirPath);
}
string profDirPath;
string hostKind;
string[] pgoGenerateFlags() const
{
switch(hostKind)
{
case "ldc":
return ["-fprofile-instr-generate=" ~ pgoDataPath ~ "/data.%p.raw"];
default:
return [""];
}
}
string[] pgoUseFlags() const
{
switch(hostKind)
{
case "ldc":
return ["-fprofile-instr-use=" ~ buildPath(pgoDataPath(), "merged.data")];
default:
return [""];
}
}
string pgoDataPath() const
{
return profDirPath;
}
}
// Compiles the test runner
alias testRunner = methodInit!(BuildRule, (rundBuilder, rundRule) => rundBuilder
.msg("(DC) RUN.D")
.sources([ testDir.buildPath( "run.d") ])
.target(env["GENERATED"].buildPath("run".exeName))
.command([ env["HOST_DMD_RUN"], "-of=" ~ rundRule.target, "-i", "-I" ~ testDir] ~ rundRule.sources));
alias dmdPGO = makeRule!((builder, rule) {
const dmdKind = env["HOST_DMD_KIND"];
PGOState pgoState = PGOState(dmdKind);
alias buildInstrumentedDmd = methodInit!(BuildRule, (rundBuilder, rundRule) => rundBuilder
.msg("Built dmd with PGO instrumentation")
.deps([dmdExe(null, pgoState.pgoGenerateFlags(), pgoState.pgoGenerateFlags()), dmdConf]));
alias genDmdData = methodInit!(BuildRule, (rundBuilder, rundRule) => rundBuilder
.msg("Compiling dmd testsuite to generate PGO data")
.sources([ testDir.buildPath( "run.d") ])
.deps([buildInstrumentedDmd, testRunner])
.commandFunction({
// Run dmd test suite to get data
const scope cmd = [ testRunner.targets[0], "compilable", "-j" ~ jobs.to!string ];
log("%-(%s %)", cmd);
if (spawnProcess(cmd, null, Config.init, testDir).wait())
stderr.writeln("dmd tests failed! This will not end the PGO build because some data may have been gathered");
}));
alias genPhobosData = methodInit!(BuildRule, (rundBuilder, rundRule) => rundBuilder
.msg("Compiling phobos testsuite to generate PGO data")
.deps([buildInstrumentedDmd])
.commandFunction({
// Run phobos unittests
//TODO makefiles
//generated/linux/release/64/unittest/test_runner builds the unittests without running them.
const scope cmd = ["make", "-C", "../phobos", "-j" ~ jobs.to!string, "-fposix.mak", "generated/linux/release/64/unittest/test_runner", "DMD_DIR="~dmdRepo];
log("%-(%s %)", cmd);
if (spawnProcess(cmd, null, Config.init, dmdRepo).wait())
stderr.writeln("Phobos Tests failed! This will not end the PGO build because some data may have been gathered");
}));
alias finalDataMerge = methodInit!(BuildRule, (rundBuilder, rundRule) => rundBuilder
.msg("Merging PGO data")
.deps([genDmdData])
.commandFunction({
// Run dmd test suite to get data
scope cmd = ["ldc-profdata", "merge", "--output=merged.data"];
import std.file : dirEntries;
auto files = dirEntries(pgoState.pgoDataPath, "*.raw", SpanMode.shallow).array;
files.each!(f => cmd ~= f);
log("%-(%s %)", cmd);
if (spawnProcess(cmd, null, Config.init, pgoState.pgoDataPath).wait())
abortBuild("Merge failed");
files.each!(f => remove(f));
}));
builder
.name("dmd-pgo")
.description("Build dmd with PGO data collected from the dmd and phobos testsuites")
.msg("Build with collected PGO data")
.condition(() => PGOState.checkPGO(dmdKind))
.deps([finalDataMerge])
.commandFunction({
auto addArgs = pgoState.pgoUseFlags ~ "-wi";
auto cmd = [env["HOST_DMD_RUN"], "-run", "src/build.d", "ENABLE_RELEASE=1",
"ENABLE_LTO=1",
"DFLAGS="~joiner(addArgs, " ").to!string, "--force", "-j"~jobs.to!string];
log("%-(%s %)", cmd);
if (spawnProcess(cmd, null, Config.init).wait())
abortBuild("PGO Compilation failed");
});
}
);
/// Run's the test suite (unittests & `run.d`)
alias runTests = makeRule!((testBuilder, testRule)
{
// Reference header assumes Linux64
auto headerCheck = env["OS"] == "linux" && env["MODEL"] == "64"
? [ runCxxHeadersTest ] : null;
testBuilder
.name("test")
.description("Run the test suite using test/run.d")
.msg("(RUN) TEST")
.deps([dmdDefault, runDmdUnittest, testRunner] ~ headerCheck)
.commandFunction({
// Use spawnProcess to avoid output redirection for `command`s
const scope cmd = [ testRunner.targets[0], "-j" ~ jobs.to!string ];
log("%-(%s %)", cmd);
if (spawnProcess(cmd, null, Config.init, testDir).wait())
abortBuild("Tests failed!");
});
});
/// BuildRule to run the DMD unittest executable.
alias runDmdUnittest = makeRule!((builder, rule) {
auto dmdUnittestExe = dmdExe("-unittest", ["-version=NoMain", "-unittest", "-main"], ["-unittest"]);
builder
.name("unittest")
.description("Run the dmd unittests")
.msg("(RUN) DMD-UNITTEST")
.deps([dmdUnittestExe])
.command(dmdUnittestExe.targets);
});
/**
BuildRule to run the DMD frontend header generation
For debugging, use `./build.d cxx-headers DFLAGS="-debug=Debug_DtoH"` (clean before)
*/
alias buildFrontendHeaders = makeRule!((builder, rule) {
const dmdSources = sources.dmd.frontend ~ sources.root ~ sources.common ~ sources.lexer;
const dmdExeFile = dmdDefault.deps[0].target;
builder
.name("cxx-headers")
.description("Build the C++ frontend headers ")
.msg("(DMD) CXX-HEADERS")
.deps([dmdDefault])
.target(env["G"].buildPath("frontend.h"))
.command([dmdExeFile] ~
flags["DFLAGS"]
.filter!(f => startsWith(f, "-debug=", "-version=", "-I", "-J")).array ~
// Ignore warnings because of invalid C++ identifiers in the source code
["-J" ~ env["RES"], "-c", "-o-", "-wi", "-HCf="~rule.target,
// Enforce the expected target architecture
"-m64", "-os=linux",
] ~ dmdSources);
});
alias runCxxHeadersTest = makeRule!((builder, rule) {
builder
.name("cxx-headers-test")
.description("Check that the C++ interface matches `src/dmd/frontend.h`")
.msg("(TEST) CXX-HEADERS")
.deps([buildFrontendHeaders])
.commandFunction(() {
const cxxHeaderGeneratedPath = buildFrontendHeaders.target;
const cxxHeaderReferencePath = env["D"].buildPath("frontend.h");
log("Comparing referenceHeader(%s) <-> generatedHeader(%s)",
cxxHeaderReferencePath, cxxHeaderGeneratedPath);
auto generatedHeader = cxxHeaderGeneratedPath.readText;
auto referenceHeader = cxxHeaderReferencePath.readText;
// Ignore carriage return to unify the expected newlines
version (Windows)
{
generatedHeader = generatedHeader.replace("\r\n", "\n"); // \r added by OutBuffer
referenceHeader = referenceHeader.replace("\r\n", "\n"); // \r added by Git's if autocrlf is enabled
}
if (generatedHeader != referenceHeader) {
if (env.getNumberedBool("AUTO_UPDATE"))
{
generatedHeader.toFile(cxxHeaderReferencePath);
writeln("NOTICE: Reference header file (" ~ cxxHeaderReferencePath ~
") has been auto-updated.");
}
else
{
import core.runtime : Runtime;
string message = "ERROR: Newly generated header file (" ~ cxxHeaderGeneratedPath ~
") doesn't match with the reference header file (" ~
cxxHeaderReferencePath ~ ")\n";
auto diff = tryRun(["git", "diff", "--no-index", cxxHeaderReferencePath, cxxHeaderGeneratedPath], runDir).output;
diff ~= "\n===============
The file `src/dmd/frontend.h` seems to be out of sync. This is likely because
changes were made which affect the C++ interface used by GDC and LDC.
Make sure that those changes have been properly reflected in the relevant header
files (e.g. `src/dmd/scope.h` for changes in `src/dmd/dscope.d`).
To update `frontend.h` and fix this error, run the following command:
`" ~ Runtime.args[0] ~ " cxx-headers-test AUTO_UPDATE=1`
Note that the generated code need not be valid, as the header generator
(`src/dmd/dtoh.d`) is still under development.
To read more about `frontend.h` and its usage, see src/README.md#cxx-headers-test
";
abortBuild(message, diff);
}
}
});
});
/// Runs the C++ unittest executable
alias runCxxUnittest = makeRule!((runCxxBuilder, runCxxRule) {
/// Compiles the C++ frontend test files
alias cxxFrontend = methodInit!(BuildRule, (frontendBuilder, frontendRule) => frontendBuilder
.name("cxx-frontend")
.description("Build the C++ frontend")
.msg("(CXX) CXX-FRONTEND")
.sources(srcDir.buildPath("tests", "cxxfrontend.cc") ~ .sources.frontendHeaders ~ .sources.commonHeaders ~ .sources.rootHeaders /* Andrei ~ .sources.dmd.driver ~ .sources.dmd.frontend ~ .sources.root*/)
.target(env["G"].buildPath("cxxfrontend").objName)
// No explicit if since CXX_KIND will always be either g++ or clang++
.command([ env["CXX"], "-xc++", "-std=c++11",
"-c", frontendRule.sources[0], "-o" ~ frontendRule.target, "-I" ~ env["D"] ] ~ flags["CXXFLAGS"])
);
alias cxxUnittestExe = methodInit!(BuildRule, (exeBuilder, exeRule) => exeBuilder
.name("cxx-unittest")
.description("Build the C++ unittests")
.msg("(DC) CXX-UNITTEST")
.deps([lexer(null, null), cxxFrontend])
.sources(sources.dmd.driver ~ sources.dmd.frontend ~ sources.root ~ sources.common)
.target(env["G"].buildPath("cxx-unittest").exeName)
.command([ env["HOST_DMD_RUN"], "-of=" ~ exeRule.target, "-vtls", "-J" ~ env["RES"],
"-L-lstdc++", "-version=NoMain", "-version=NoBackend"
].chain(
flags["DFLAGS"], exeRule.sources, exeRule.deps.map!(d => d.target)
).array)
);
runCxxBuilder
.name("cxx-unittest")
.description("Run the C++ unittests")
.msg("(RUN) CXX-UNITTEST");
version (Windows) runCxxBuilder
.commandFunction({ abortBuild("Running the C++ unittests is not supported on Windows yet"); });
else runCxxBuilder
.deps([cxxUnittestExe])
.command([cxxUnittestExe.target]);
});
/// BuildRule that removes all generated files
alias clean = makeRule!((builder, rule) => builder
.name("clean")
.description("Remove the generated directory")
.msg("(RM) " ~ env["G"])
.commandFunction(delegate() {
if (env["G"].exists)
env["G"].rmdirRecurse;
})
);
alias toolsRepo = makeRule!((builder, rule) => builder
.target(env["TOOLS_DIR"])
.msg("(GIT) DLANG/TOOLS")
.condition(() => !exists(rule.target))
.commandFunction(delegate() {
auto toolsDir = env["TOOLS_DIR"];
version(Win32)
// Win32-git seems to confuse C:\... as a relative path
toolsDir = toolsDir.relativePath(dmdRepo);
run([env["GIT"], "clone", "--depth=1", env["GIT_HOME"] ~ "/tools", toolsDir]);
})
);
alias checkwhitespace = makeRule!((builder, rule) => builder
.name("checkwhitespace")
.description("Check for trailing whitespace and tabs")
.msg("(RUN) checkwhitespace")
.deps([toolsRepo])
.sources(allRepoSources)
.commandFunction(delegate() {
const cmdPrefix = [env["HOST_DMD_RUN"], "-run", env["TOOLS_DIR"].buildPath("checkwhitespace.d")];
auto chunkLength = allRepoSources.length;
version (Win32)
chunkLength = 80; // avoid command-line limit on win32
foreach (nextSources; taskPool.parallel(allRepoSources.chunks(chunkLength), 1))
{
const nextCommand = cmdPrefix ~ nextSources;
run(nextCommand);
}
})
);
alias style = makeRule!((builder, rule)
{
const dscannerDir = env["GENERATED"].buildPath("dscanner");
alias dscannerRepo = methodInit!(BuildRule, (repoBuilder, repoRule) => repoBuilder
.msg("(GIT) DScanner")
.target(dscannerDir)
.condition(() => !exists(dscannerDir))
.command([
// FIXME: Omitted --shallow-submodules because it requires a more recent
// git version which is not available on buildkite
env["GIT"], "clone", "--depth=1", "--recurse-submodules",
"--branch=v0.11.0",
"https://github.com/dlang-community/D-Scanner", dscannerDir
])
);
alias dscanner = methodInit!(BuildRule, (dscannerBuilder, dscannerRule) {
dscannerBuilder
.name("dscanner")
.description("Build custom DScanner")
.deps([dscannerRepo]);
version (Windows) dscannerBuilder
.msg("(CMD) DScanner")
.target(dscannerDir.buildPath("bin", "dscanner".exeName))
.commandFunction(()
{
// The build script expects to be run inside dscannerDir
run([dscannerDir.buildPath("build.bat")], dscannerDir);
});
else dscannerBuilder
.msg("(MAKE) DScanner")
.target(dscannerDir.buildPath("dsc".exeName))
.command([
// debug build is faster but disable trace output
env["MAKE"], "-C", dscannerDir, "debug",
"DEBUG_VERSIONS=-version=StdLoggerDisableWarning"
]);
});
builder
.name("style")
.description("Check for style errors using D-Scanner")
.msg("(DSCANNER) dmd")
.deps([dscanner])
// Disabled because we need to build a patched dscanner version
// .command([
// "dub", "-q", "run", "-y", "dscanner", "--", "--styleCheck", "--config",
// srcDir.buildPath(".dscanner.ini"), srcDir.buildPath("dmd"), "-I" ~ srcDir
// ])
.command([
dscanner.target, "--styleCheck", "--config", srcDir.buildPath(".dscanner.ini"),
srcDir.buildPath("dmd"), "-I" ~ srcDir
]);
});
/// BuildRule to generate man pages
alias man = makeRule!((builder, rule) {
alias genMan = methodInit!(BuildRule, (genManBuilder, genManRule) => genManBuilder
.target(env["G"].buildPath("gen_man"))
.sources([
dmdRepo.buildPath("docs", "gen_man.d"),
env["D"].buildPath("cli.d")])
.command([
env["HOST_DMD_RUN"],
"-I" ~ srcDir,
"-of" ~ genManRule.target]
~ flags["DFLAGS"]
~ genManRule.sources)
.msg(genManRule.command.join(" "))
);
const genManDir = env["GENERATED"].buildPath("docs", "man");
alias dmdMan = methodInit!(BuildRule, (dmdManBuilder, dmdManRule) => dmdManBuilder
.target(genManDir.buildPath("man1", "dmd.1"))
.deps([genMan, directoryRule(dmdManRule.target.dirName)])
.msg("(GEN_MAN) " ~ dmdManRule.target)
.commandFunction(() {
writeText(dmdManRule.target, genMan.target.execute.output);
})
);
builder
.name("man")
.description("Generate and prepare man files")
.deps([dmdMan].chain(
"man1/dumpobj.1 man1/obj2asm.1 man5/dmd.conf.5".split
.map!(e => methodInit!(BuildRule, (manFileBuilder, manFileRule) => manFileBuilder
.target(genManDir.buildPath(e))
.sources([dmdRepo.buildPath("docs", "man", e)])
.deps([directoryRule(manFileRule.target.dirName)])
.commandFunction(() => copyAndTouch(manFileRule.sources[0], manFileRule.target))
.msg("copy '%s' to '%s'".format(manFileRule.sources[0], manFileRule.target))
))
).array);
});
alias detab = makeRule!((builder, rule) => builder
.name("detab")
.description("Replace hard tabs with spaces")
.command([env["DETAB"]] ~ allRepoSources)
.msg("(DETAB) DMD")
);
alias tolf = makeRule!((builder, rule) => builder
.name("tolf")
.description("Convert to Unix line endings")
.command([env["TOLF"]] ~ allRepoSources)
.msg("(TOLF) DMD")
);
alias zip = makeRule!((builder, rule) => builder
.name("zip")
.target(srcDir.buildPath("dmdsrc.zip"))
.description("Archive all source files")
.sources(allBuildSources)
.msg("ZIP " ~ rule.target)
.commandFunction(() {
if (exists(rule.target))
remove(rule.target);
run([env["ZIP"], rule.target, thisBuildScript] ~ rule.sources);
})
);
alias html = makeRule!((htmlBuilder, htmlRule) {
htmlBuilder
.name("html")
.description("Generate html docs, requires DMD and STDDOC to be set");
static string d2html(string sourceFile)
{
const ext = sourceFile.extension();
assert(ext == ".d" || ext == ".di", sourceFile);
const htmlFilePrefix = (sourceFile.baseName == "package.d") ?
sourceFile[0 .. $ - "package.d".length - 1] :
sourceFile[0 .. $ - ext.length];
return htmlFilePrefix ~ ".html";
}
const stddocs = env.get("STDDOC", "").split();
auto docSources = .sources.common ~ .sources.root ~ .sources.lexer ~ .sources.dmd.all ~ env["D"].buildPath("frontend.d");
htmlBuilder.deps(docSources.chunks(1).map!(sourceArray =>
methodInit!(BuildRule, (docBuilder, docRule) {
const source = sourceArray[0];
docBuilder
.sources(sourceArray)
.target(env["DOC_OUTPUT_DIR"].buildPath(d2html(source)[srcDir.length + 1..$]
.replace(dirSeparator, "_")))
.deps([dmdDefault, versionFile, sysconfDirFile])
.command([
dmdDefault.deps[0].target,
"-o-",
"-c",
"-Dd" ~ env["DOCSRC"],
"-J" ~ env["RES"],
"-I" ~ env["D"],
srcDir.buildPath("project.ddoc")
] ~ stddocs ~ [
"-Df" ~ docRule.target,
// Need to use a short relative path to make sure ddoc links are correct
source.relativePath(runDir)
] ~ flags["DFLAGS"])
.msg("(DDOC) " ~ source);
})
).array);
});
alias toolchainInfo = makeRule!((builder, rule) => builder
.name("toolchain-info")
.description("Show informations about used tools")
.commandFunction(() {
scope Appender!(char[]) app;
void show(string what, string[] cmd)
{
const res = tryRun(cmd);
const output = res.status != -1
? res.output
: "<Not available>";
app.formattedWrite("%s (%s): %s\n", what, cmd[0], output);
}
app.put("==== Toolchain Information ====\n");
version (Windows)
show("SYSTEM", ["systeminfo"]);
else
show("SYSTEM", ["uname", "-a"]);
show("MAKE", [env["MAKE"], "--version"]);
version (Posix)
show("SHELL", [env.getDefault("SHELL", nativeShell), "--version"]); // cmd.exe --version hangs
show("HOST_DMD", [env["HOST_DMD_RUN"], "--version"]);
version (Posix)
show("HOST_CXX", [env["CXX"], "--version"]);
show("ld", ["ld", "-v"]);
show("gdb", ["gdb", "--version"]);
app.put("==== Toolchain Information ====\n\n");
writeln(app.data);
})
);
alias installCopy = makeRule!((builder, rule) => builder
.name("install-copy")
.description("Legacy alias for install")
.deps([install])
);
alias install = makeRule!((builder, rule) {
const dmdExeFile = dmdDefault.deps[0].target;
auto sourceFiles = allBuildSources ~ [
env["D"].buildPath("README.md"),
env["D"].buildPath("boostlicense.txt"),
];
builder
.name("install")
.description("Installs dmd into $(INSTALL)")
.deps([dmdDefault])
.sources(sourceFiles)
.commandFunction(() {
version (Windows)
{
enum conf = "sc.ini";
enum bin = "bin";
}
else
{
enum conf = "dmd.conf";
version (OSX)
enum bin = "bin";
else
const bin = "bin" ~ env["MODEL"];
}
installRelativeFiles(env["INSTALL"].buildPath(env["OS"], bin), dmdExeFile.dirName, dmdExeFile.only, octal!755);
version (Windows)
installRelativeFiles(env["INSTALL"], dmdRepo, sourceFiles);
const scPath = buildPath(env["OS"], bin, conf);
const iniPath = buildPath(dmdRepo, "ini");
// The sources distributed alongside an official release only include the
// configuration of the current OS at the root directory instead of the
// whole `ini` folder in the project root.
const confPath = iniPath.exists()
? buildPath(iniPath, scPath)
: buildPath(dmdRepo, "..", scPath);
copyAndTouch(confPath, buildPath(env["INSTALL"], scPath));
version (Posix)
copyAndTouch(sourceFiles[$-1], env["INSTALL"].buildPath("dmd-boostlicense.txt"));
});
});
/**
Goes through the target list and replaces short-hand targets with their expanded version.
Special targets:
- clean -> removes generated directory + immediately stops the builder
Params:
targets = the target list to process
Returns:
the expanded targets
*/
BuildRule[] predefinedTargets(string[] targets)
{
import std.functional : toDelegate;
Appender!(BuildRule[]) newTargets;
LtargetsLoop:
foreach (t; targets)
{
t = t.buildNormalizedPath; // remove trailing slashes
// check if `t` matches any rule names first
foreach (rule; BuildRuleRange(rootRules.map!(a => a()).array))
{
if (t == rule.name)
{
newTargets.put(rule);
continue LtargetsLoop;
}
}
switch (t)
{
case "all":
// "all" must include dmd + dmd.conf
newTargets ~= dmdDefault;
break;
default:
// check this last, target paths should be checked after predefined names
const tAbsolute = t.absolutePath.buildNormalizedPath;
foreach (rule; BuildRuleRange(rootRules.map!(a => a()).array))
{
foreach (ruleTarget; rule.targets)
{
if (ruleTarget.endsWith(t, tAbsolute))
{
newTargets.put(rule);
continue LtargetsLoop;
}
}
}
abortBuild("Target `" ~ t ~ "` is unknown.");
}
}
return newTargets.data;
}
/// An input range for a recursive set of rules
struct BuildRuleRange
{
private BuildRule[] next;
private bool[BuildRule] added;
this(BuildRule[] rules) { addRules(rules); }
bool empty() const { return next.length == 0; }
auto front() inout { return next[0]; }
void popFront()
{
auto save = next[0];
next = next[1 .. $];
addRules(save.deps);
}
void addRules(BuildRule[] rules)
{
foreach (rule; rules)
{
if (!added.get(rule, false))
{
next ~= rule;
added[rule] = true;
}
}
}
}
/// Sets the environment variables
void parseEnvironment()
{
if (!verbose)
verbose = "1" == env.getDefault("VERBOSE", null);
// This block is temporary until we can remove the windows make files
if ("DDEBUG" in environment)
abortBuild("ERROR: the DDEBUG variable is deprecated!");
version (Windows)
{
// On windows, the OS environment variable is already being used by the system.
// For example, on a default Windows7 system it's configured by the system
// to be "Windows_NT".
//
// However, there are a good number of components in this repo and the other
// repos that set this environment variable to "windows" without checking whether
// it's already configured, i.e.
// dmd\src\win32.mak (OS=windows)
// druntime\win32.mak (OS=windows)
// phobos\win32.mak (OS=windows)
//
// It's necessary to emulate the same behavior in this tool in order to make this
// new tool compatible with existing tools. We can do this by also setting the
// environment variable to "windows" whether or not it already has a value.
//
const os = env["OS"] = "windows";
}
else
const os = env.setDefault("OS", detectOS);
auto build = env.setDefault("BUILD", "release");
enforce(build.among("release", "debug"), "BUILD must be 'debug' or 'release'");
if (build == "debug")
env.setDefault("ENABLE_DEBUG", "1");
// detect Model
auto model = env.setDefault("MODEL", detectModel);
env["MODEL_FLAG"] = "-m" ~ env["MODEL"];
// detect PIC
version(Posix)
{
// default to PIC if the host compiler supports, use PIC=1/0 to en-/disable PIC.
// Note that shared libraries and C files are always compiled with PIC.
bool pic = true;
const picValue = env.getDefault("PIC", "");
switch (picValue)
{
case "": /** Keep the default **/ break;
case "0": pic = false; break;
case "1": pic = true; break;
default:
throw abortBuild(format("Variable 'PIC' should be '0', '1' or <empty> but got '%s'", picValue));
}
version (X86)
{
// https://issues.dlang.org/show_bug.cgi?id=20466
static if (__VERSION__ < 2090)
{
pragma(msg, "Warning: PIC will be off by default for this build of DMD because of Issue 20466!");
pic = false;
}
}
env["PIC_FLAG"] = pic ? "-fPIC" : "";
}
else
{
env["PIC_FLAG"] = "";
}
env.setDefault("GIT", "git");
env.setDefault("GIT_HOME", "https://github.com/dlang");
env.setDefault("SYSCONFDIR", "/etc");
env.setDefault("TMP", tempDir);
env.setDefault("RES", srcDir.buildPath("dmd", "res"));
env.setDefault("MAKE", "make");
version (Windows)
enum installPref = "";
else
enum installPref = "..";
env.setDefault("INSTALL", environment.get("INSTALL_DIR", dmdRepo.buildPath(installPref, "install")));
env.setDefault("DOCSRC", dmdRepo.buildPath("dlang.org"));
env.setDefault("DOCDIR", srcDir);
env.setDefault("DOC_OUTPUT_DIR", env["DOCDIR"]);
auto d = env["D"] = srcDir.buildPath("dmd");
env["C"] = d.buildPath("backend");
env["COMMON"] = d.buildPath("common");
env["ROOT"] = d.buildPath("root");
env["EX"] = srcDir.buildPath("examples");
auto generated = env["GENERATED"] = dmdRepo.buildPath("generated");
auto g = env["G"] = generated.buildPath(os, build, model);
mkdirRecurse(g);
env.setDefault("TOOLS_DIR", dmdRepo.dirName.buildPath("tools"));
auto hostDmdDef = env.getDefault("HOST_DMD", null);
if (hostDmdDef.length == 0)
{
const hostDmd = env.getDefault("HOST_DC", null);
env["HOST_DMD"] = hostDmd.length ? hostDmd : "dmd";
}
else
// HOST_DMD may be defined in the environment
env["HOST_DMD"] = hostDmdDef;
// Auto-bootstrapping of a specific host compiler
if (env.getNumberedBool("AUTO_BOOTSTRAP"))
{
auto hostDMDVer = env.getDefault("HOST_DMD_VER", "2.095.0");
writefln("Using Bootstrap compiler: %s", hostDMDVer);
auto hostDMDRoot = env["G"].buildPath("host_dmd-"~hostDMDVer);
auto hostDMDBase = hostDMDVer~"."~(os == "freebsd" ? os~"-"~model : os);
auto hostDMDURL = "http://downloads.dlang.org/releases/2.x/"~hostDMDVer~"/dmd."~hostDMDBase;
env["HOST_DMD"] = hostDMDRoot.buildPath("dmd2", os, os == "osx" ? "bin" : "bin"~model, "dmd");
env["HOST_DMD_PATH"] = env["HOST_DMD"];
// TODO: use dmd.conf from the host too (in case there's a global or user-level dmd.conf)
env["HOST_DMD_RUN"] = env["HOST_DMD"];
if (!env["HOST_DMD"].exists)
{
writefln("Downloading DMD %s", hostDMDVer);
auto curlFlags = "-fsSL --retry 5 --retry-max-time 120 --connect-timeout 5 --speed-time 30 --speed-limit 1024";
hostDMDRoot.mkdirRecurse;
("curl " ~ curlFlags ~ " " ~ hostDMDURL~".tar.xz | tar -C "~hostDMDRoot~" -Jxf - || rm -rf "~hostDMDRoot).spawnShell.wait;
}
}
else
{
env["HOST_DMD_PATH"] = getHostDMDPath(env["HOST_DMD"]).strip.absolutePath;
env["HOST_DMD_RUN"] = env["HOST_DMD_PATH"];
}
if (!env["HOST_DMD_PATH"].exists)
{
abortBuild("No DMD compiler is installed. Try AUTO_BOOTSTRAP=1 or manually set the D host compiler with HOST_DMD");
}
}
/// Checks the environment variables and flags
void processEnvironment()
{
import std.meta : AliasSeq;
const os = env["OS"];
// Detect the host compiler kind and version
const hostDmdInfo = [env["HOST_DMD_RUN"], `-Xi=compilerInfo`, `-Xf=-`].execute();
if (hostDmdInfo.status) // Failed, JSON output currently not supported for GDC
{
env["HOST_DMD_KIND"] = "gdc";
env["HOST_DMD_VERSION"] = "v2.076";
}
else
{
/// Reads the content of a single field without parsing the entire JSON
alias get = field => hostDmdInfo.output
.findSplitAfter(field ~ `" : "`)[1]
.findSplitBefore(`"`)[0];
const ver = env["HOST_DMD_VERSION"] = get(`version`)[1 .. "vX.XXX.X".length];
// Vendor was introduced in 2.080
if (ver < "2.080.1")
{
auto name = get("binary").baseName().stripExtension();
if (name == "ldmd2")
name = "ldc";
else if (name == "gdmd")
name = "gdc";
else
enforce(name == "dmd", "Unknown compiler: " ~ name);
env["HOST_DMD_KIND"] = name;
}
else
{
env["HOST_DMD_KIND"] = [
"Digital Mars D": "dmd",
"LDC": "ldc",
"GNU D": "gdc"
][get(`vendor`)];
}
}
env["DMD_PATH"] = env["G"].buildPath("dmd").exeName;
env.setDefault("DETAB", "detab");
env.setDefault("TOLF", "tolf");
version (Windows)
env.setDefault("ZIP", "zip32");
else
env.setDefault("ZIP", "zip");
string[] dflags = ["-version=MARS", "-w", "-de", env["PIC_FLAG"], env["MODEL_FLAG"], "-J"~env["G"], "-I" ~ srcDir];
if (env["HOST_DMD_KIND"] != "gdc")
dflags ~= ["-dip25"]; // gdmd doesn't support -dip25
// TODO: add support for dObjc
auto dObjc = false;
version(OSX) version(X86_64)
dObjc = true;
if (env.getNumberedBool("ENABLE_DEBUG"))
{
dflags ~= ["-g", "-debug"];
}
if (env.getNumberedBool("ENABLE_RELEASE"))
{
dflags ~= ["-O", "-inline"];
if (!env.getNumberedBool("ENABLE_ASSERTS"))
dflags ~= ["-release"];
}
else
{
// add debug symbols for all non-release builds
if (!dflags.canFind("-g"))
dflags ~= ["-g"];
}
if (env.getNumberedBool("ENABLE_LTO"))
{
switch (env["HOST_DMD_KIND"])
{
case "dmd":
stderr.writeln(`DMD does not support LTO! Ignoring ENABLE_LTO flag...`);
break;
case "ldc":
dflags ~= "-flto=full";
break;
case "gdc":
dflags ~= "-flto";
break;
default:
assert(false, "Unknown host compiler kind: " ~ env["HOST_DMD_KIND"]);
}
}
if (env.getNumberedBool("ENABLE_UNITTEST"))
{
dflags ~= ["-unittest"];
}
if (env.getNumberedBool("ENABLE_PROFILE"))
{
dflags ~= ["-profile"];
}
// Enable CTFE coverage for recent host compilers
const cov = env["HOST_DMD_VERSION"] >= "2.094.0" ? "-cov=ctfe" : "-cov";
env["COVERAGE_FLAG"] = cov;
if (env.getNumberedBool("ENABLE_COVERAGE"))
{
dflags ~= [ cov ];
}
const sanitizers = env.getDefault("ENABLE_SANITIZERS", "");
if (!sanitizers.empty)
{
dflags ~= ["-fsanitize="~sanitizers];
}
// Retain user-defined flags
flags["DFLAGS"] = dflags ~= flags.get("DFLAGS", []);
}
/// Setup environment for a C++ compiler
void processEnvironmentCxx()
{
// Windows requires additional work to handle e.g. Cygwin on Azure
version (Windows) return;
env.setDefault("CXX", "c++");
// env["CXX_KIND"] = detectHostCxx();
string[] warnings = [
"-Wall", "-Werror", "-Wno-narrowing", "-Wwrite-strings", "-Wcast-qual", "-Wno-format",
"-Wmissing-format-attribute", "-Woverloaded-virtual", "-pedantic", "-Wno-long-long",
"-Wno-variadic-macros", "-Wno-overlength-strings",
];
auto cxxFlags = warnings ~ [
"-g", "-fno-exceptions", "-fno-rtti", "-fno-common", "-fasynchronous-unwind-tables", "-DMARS=1",
env["MODEL_FLAG"], env["PIC_FLAG"],
];
if (env.getNumberedBool("ENABLE_COVERAGE"))
cxxFlags ~= "--coverage";
const sanitizers = env.getDefault("ENABLE_SANITIZERS", "");
if (!sanitizers.empty)
cxxFlags ~= "-fsanitize=" ~ sanitizers;
// Enable a temporary workaround in globals.h and rmem.h concerning
// wrong name mangling using DMD.
// Remove when the minimally required D version becomes 2.082 or later
if (env["HOST_DMD_KIND"] == "dmd")
{
const output = run([ env["HOST_DMD_RUN"], "--version" ]);
if (output.canFind("v2.079", "v2.080", "v2.081"))
cxxFlags ~= "-DDMD_VERSION=2080";
}
// Retain user-defined flags
flags["CXXFLAGS"] = cxxFlags ~= flags.get("CXXFLAGS", []);
}
/// Returns: the host C++ compiler, either "g++" or "clang++"
version (none) // Currently unused but will be needed at some point
string detectHostCxx()
{
import std.meta: AliasSeq;
const cxxVersion = [env["CXX"], "--version"].execute.output;
alias GCC = AliasSeq!("g++", "gcc", "Free Software");
alias CLANG = AliasSeq!("clang");
const cxxKindIdx = cxxVersion.canFind(GCC, CLANG);
enforce(cxxKindIdx, "Invalid CXX found: " ~ cxxVersion);
return cxxKindIdx <= GCC.length ? "g++" : "clang++";
}
////////////////////////////////////////////////////////////////////////////////
// D source files
////////////////////////////////////////////////////////////////////////////////
/// Returns: all source files in the repository
alias allRepoSources = memoize!(() => srcDir.dirEntries("*.{d,h,di}", SpanMode.depth).map!(e => e.name).array);
/// Returns: all make/build files
alias buildFiles = memoize!(() => "win32.mak posix.mak osmodel.mak build.d".split().map!(e => srcDir.buildPath(e)).array);
/// Returns: all sources used in the build
alias allBuildSources = memoize!(() => buildFiles
~ sources.dmd.all
~ sources.lexer
~ sources.common
~ sources.backend
~ sources.root
~ sources.commonHeaders
~ sources.frontendHeaders
~ sources.rootHeaders
);
/// Returns: all source files for the compiler
auto sourceFiles()
{
static struct DmdSources
{
string[] all, driver, frontend, glue, backendHeaders;
}
static struct Sources
{
DmdSources dmd;
string[] lexer, common, root, backend, commonHeaders, frontendHeaders, rootHeaders;
}
static string[] fileArray(string dir, string files)
{
return files.split.map!(e => dir.buildPath(e)).array;
}
DmdSources dmd = {
glue: fileArray(env["D"], "
dmsc.d e2ir.d eh.d iasm.d iasmdmd.d iasmgcc.d glue.d objc_glue.d
s2ir.d tocsym.d toctype.d tocvdebug.d todt.d toir.d toobj.d
"),
driver: fileArray(env["D"], "dinifile.d dmdparams.d gluelayer.d lib.d libelf.d libmach.d libmscoff.d libomf.d
link.d mars.d scanelf.d scanmach.d scanmscoff.d scanomf.d vsoptions.d
"),
frontend: fileArray(env["D"], "
access.d aggregate.d aliasthis.d apply.d argtypes_x86.d argtypes_sysv_x64.d argtypes_aarch64.d arrayop.d
arraytypes.d astenums.d ast_node.d astcodegen.d asttypename.d attrib.d blockexit.d builtin.d canthrow.d chkformat.d
cli.d clone.d compiler.d cond.d constfold.d cppmangle.d cppmanglewin.d ctfeexpr.d
ctorflow.d dcast.d dclass.d declaration.d delegatize.d denum.d dimport.d
dinterpret.d dmacro.d dmangle.d dmodule.d doc.d dscope.d dstruct.d dsymbol.d dsymbolsem.d
dtemplate.d dtoh.d dversion.d escape.d expression.d expressionsem.d func.d hdrgen.d impcnvtab.d
imphint.d importc.d init.d initsem.d inline.d inlinecost.d intrange.d json.d lambdacomp.d
mtype.d nogc.d nspace.d ob.d objc.d opover.d optimize.d
parse.d parsetimevisitor.d permissivevisitor.d printast.d safe.d sapply.d
semantic2.d semantic3.d sideeffect.d statement.d statement_rewrite_walker.d
statementsem.d staticassert.d staticcond.d stmtstate.d target.d templateparamsem.d traits.d
transitivevisitor.d typesem.d typinf.d utils.d visitor.d foreachvar.d
cparse.d
"),
backendHeaders: fileArray(env["C"], "
cc.d cdef.d cgcv.d code.d cv4.d dt.d el.d global.d
obj.d oper.d rtlsym.d code_x86.d iasm.d codebuilder.d
ty.d type.d exh.d mach.d mscoff.d dwarf.d dwarf2.d xmm.d
dlist.d melf.d
"),
};
foreach (member; __traits(allMembers, DmdSources))
{
if (member != "all") dmd.all ~= __traits(getMember, dmd, member);
}
Sources sources = {
dmd: dmd,
frontendHeaders: fileArray(env["D"], "
aggregate.h aliasthis.h arraytypes.h attrib.h compiler.h cond.h
ctfe.h declaration.h dsymbol.h doc.h enum.h errors.h expression.h globals.h hdrgen.h
identifier.h id.h import.h init.h json.h mangle.h module.h mtype.h nspace.h objc.h scope.h
statement.h staticassert.h target.h template.h tokens.h version.h visitor.h
"),
lexer: fileArray(env["D"], "
console.d entity.d errors.d file_manager.d globals.d id.d identifier.d lexer.d tokens.d
") ~ fileArray(env["ROOT"], "
array.d bitarray.d ctfloat.d file.d filename.d hash.d port.d region.d rmem.d
rootobject.d stringtable.d utf.d
"),
common: fileArray(env["COMMON"], "
file.d int128.d outbuffer.d string.d
"),
commonHeaders: fileArray(env["COMMON"], "
outbuffer.h
"),
root: fileArray(env["ROOT"], "
aav.d complex.d env.d longdouble.d man.d optional.d response.d speller.d string.d strtold.d
"),
rootHeaders: fileArray(env["ROOT"], "
array.h bitarray.h complex_t.h ctfloat.h dcompat.h dsystem.h filename.h longdouble.h
object.h optional.h port.h rmem.h root.h
"),
backend: fileArray(env["C"], "
backend.d bcomplex.d evalu8.d divcoeff.d dvec.d go.d gsroa.d glocal.d gdag.d gother.d gflow.d
out.d
gloop.d compress.d cgelem.d cgcs.d ee.d cod4.d cod5.d nteh.d blockopt.d mem.d cg.d cgreg.d
dtype.d debugprint.d fp.d symbol.d symtab.d elem.d dcode.d cgsched.d cg87.d cgxmm.d cgcod.d cod1.d cod2.d
cod3.d cv8.d dcgcv.d pdata.d util2.d var.d md5.d backconfig.d ph2.d drtlsym.d dwarfeh.d ptrntab.d
dvarstats.d dwarfdbginf.d cgen.d os.d goh.d barray.d cgcse.d elpicpie.d
machobj.d elfobj.d mscoffobj.d filespec.d newman.d cgobj.d aarray.d disasm86.d
"
),
};
return sources;
}
/**
Downloads a file from a given URL
Params:
to = Location to store the file downloaded
from = The URL to the file to download
tries = The number of times to try if an attempt to download fails
Returns: `true` if download succeeded
*/
bool download(string to, string from, uint tries = 3)
{
import std.net.curl : download, HTTP, HTTPStatusException;
foreach(i; 0..tries)
{
try
{
log("Downloading %s ...", from);
auto con = HTTP(from);
download(from, to, con);
if (con.statusLine.code == 200)
return true;
}
catch(HTTPStatusException e)
{
if (e.status == 404) throw e;
}
log("Failed to download %s (Attempt %s of %s)", from, i + 1, tries);
}
return false;
}
/**
Detects the host OS.
Returns: a string from `{windows, osx,linux,freebsd,openbsd,netbsd,dragonflybsd,solaris}`
*/
string detectOS()
{
version(Windows)
return "windows";
else version(OSX)
return "osx";
else version(linux)
return "linux";
else version(FreeBSD)
return "freebsd";
else version(OpenBSD)
return "openbsd";
else version(NetBSD)
return "netbsd";
else version(DragonFlyBSD)
return "dragonflybsd";
else version(Solaris)
return "solaris";
else
static assert(0, "Unrecognized or unsupported OS.");
}
/**
Detects the host model
Returns: 32, 64 or throws an Exception
*/
string detectModel()
{
string uname;
if (detectOS == "solaris")
uname = ["isainfo", "-n"].execute.output;
else if (detectOS == "windows")
{
version (D_LP64)
return "64"; // host must be 64-bit if this compiles
else version (Windows)
{
import core.sys.windows.winbase;
int is64;
if (IsWow64Process(GetCurrentProcess(), &is64))
return is64 ? "64" : "32";
}
}
else
uname = ["uname", "-m"].execute.output;
if (uname.canFind("x86_64", "amd64", "64-bit", "64-Bit", "64 bit"))
return "64";
if (uname.canFind("i386", "i586", "i686", "32-bit", "32-Bit", "32 bit"))
return "32";
throw new Exception(`Cannot figure 32/64 model from "` ~ uname ~ `"`);
}
/**
Gets the absolute path of the host's dmd executable
Params:
hostDmd = the command used to launch the host's dmd executable
Returns: a string that is the absolute path of the host's dmd executable
*/
string getHostDMDPath(const string hostDmd)
{
version(Posix)
return ["which", hostDmd].execute.output;
else version(Windows)
{
if (hostDmd.canFind("/", "\\"))
return hostDmd;
return ["where", hostDmd].execute.output
.lineSplitter.filter!(file => file != srcDir.buildPath("dmd.exe")).front;
}
else
static assert(false, "Unrecognized or unsupported OS.");
}
/**
Add the executable filename extension to the given `name` for the current OS.
Params:
name = the name to append the file extention to
*/
string exeName(const string name)
{
version(Windows)
return name ~ ".exe";
return name;
}
/**
Add the object file extension to the given `name` for the current OS.
Params:
name = the name to append the file extention to
*/
string objName(const string name)
{
version(Windows)
return name ~ ".obj";
return name ~ ".o";
}
/**
Add the library file extension to the given `name` for the current OS.
Params:
name = the name to append the file extention to
*/
string libName(const string name)
{
version(Windows)
return name ~ ".lib";
return name ~ ".a";
}
/**
Filter additional make-like assignments from args and add them to the environment
e.g. ./build.d ARGS=foo sets env["ARGS"] = environment["ARGS"] = "foo".
The variables DLFAGS and CXXFLAGS may contain flags intended for the
respective compiler and set flags instead, e.g. ./build.d DFLAGS="-w -version=foo"
results in flags["DFLAGS"] = ["-w", "-version=foo"].
Params:
args = the command-line arguments from which the assignments will be removed
*/
void args2Environment(ref string[] args)
{
bool tryToAdd(string arg)
{
auto parts = arg.findSplit("=");
if (!parts)
return false;
const key = parts[0];
const value = parts[2];
if (key.among("DFLAGS", "CXXFLAGS"))
{
flags[key] = value.split();
}
else
{
environment[key] = value;
env[key] = value;
}
return true;
}
args = args.filter!(a => !tryToAdd(a)).array;
}
/**
Ensures that `env` contains a mapping for `key` and returns the associated value.
Searches the process environment if it is missing and uses `default_` as a
last fallback.
Params:
env = environment to check for `key`
key = key to check for existence
default_ = fallback value if `key` doesn't exist in the global environment
Returns: the value associated to key
*/
string getDefault(ref string[string] env, string key, string default_)
{
if (auto ex = key in env)
return *ex;
if (key in environment)
return environment[key];
else
return default_;
}
/**
Ensures that `env` contains a mapping for `key` and returns the associated value.
Searches the process environment if it is missing and creates an appropriate
entry in `env` using either the found value or `default_` as a fallback.
Params:
env = environment to write the check to
key = key to check for existence and write into the new env
default_ = fallback value if `key` doesn't exist in the global environment
Returns: the value associated to key
*/
string setDefault(ref string[string] env, string key, string default_)
{
auto v = getDefault(env, key, default_);
env[key] = v;
return v;
}
/**
Get the value of a build variable that should always be 0, 1 or empty.
*/
bool getNumberedBool(ref string[string] env, string varname)
{
const value = env.getDefault(varname, null);
if (value.length == 0 || value == "0")
return false;
if (value == "1")
return true;
throw abortBuild(format("Variable '%s' should be '0', '1' or <empty> but got '%s'", varname, value));
}
////////////////////////////////////////////////////////////////////////////////
// Mini build system
////////////////////////////////////////////////////////////////////////////////
/**
Checks whether any of the targets are older than the sources
Params:
targets = the targets to check
sources = the source files to check against
Returns:
`true` if the target is up to date
*/
bool isUpToDate(R, S)(R targets, S sources)
{
if (force)
return false;
auto oldestTargetTime = SysTime.max;
foreach (target; targets)
{
const time = target.timeLastModified.ifThrown(SysTime.init);
if (time == SysTime.init)
return false;
oldestTargetTime = min(time, oldestTargetTime);
}
return sources.all!(s => s.timeLastModified.ifThrown(SysTime.init) <= oldestTargetTime);
}
/**
Writes given the content to the given file.
The content will only be written to the file specified in `path` if that file
doesn't exist, or the content of the existing file is different from the given
content.
This makes sure the timestamp of the file is only updated when the
content has changed. This will avoid rebuilding when the content hasn't changed.
Params:
path = the path to the file to write the content to
content = the content to write to the file
*/
void updateIfChanged(const string path, const string content)
{
const existingContent = path.exists ? path.readText : "";
if (content != existingContent)
writeText(path, content);
}
/**
A rule has one or more sources and yields one or more targets.
It knows how to build these target by invoking either the external command or
the commandFunction.
If a run fails, the entire build stops.
*/
class BuildRule
{
string target; // path to the resulting target file (if target is used, it will set targets)
string[] targets; // list of all target files
string[] sources; // list of all source files
BuildRule[] deps; // dependencies to build before this one
bool delegate() condition; // Optional condition to determine whether or not to run this rule
string[] command; // the rule command
void delegate() commandFunction; // a custom rule command which gets called instead of command
string msg; // msg of the rule that is e.g. written to the CLI when it's executed
string name; /// optional string that can be used to identify this rule
string description; /// optional string to describe this rule rather than printing the target files
/// Finish creating the rule by checking that it is configured properly
void finalize()
{
if (target)
{
assert(!targets, "target and targets cannot both be set");
targets = [target];
}
}
/**
Executes the rule
Params:
depUpdated = whether any dependency was built (skips isUpToDate)
Returns: Whether the targets of this rule were (re)built
**/
bool run(bool depUpdated = false)
{
if (condition !is null && !condition())
{
log("Skipping build of %-(%s%) as its condition returned false", targets);
return false;
}
if (!depUpdated && targets && targets.isUpToDate(this.sources.chain([thisBuildScript])))
{
if (this.sources !is null)
log("Skipping build of %-('%s' %)' because %s is newer than each of %-('%s' %)'",
targets, targets.length > 1 ? "each of them" : "it", this.sources);
return false;
}
// Display the execution of the rule
if (msg)
msg.writeln;
if(dryRun)
{
scope writer = stdout.lockingTextWriter;
if(commandFunction)
{
writer.put("\n => Executing commandFunction()");
if(name)
writer.formattedWrite!" of %s"(name);
if(targets.length)
writer.formattedWrite!" to generate:\n%( - %s\n%)"(targets);
writer.put('\n');
}
if(command)
writer.formattedWrite!"\n => %(%s %)\n\n"(command);
}
else
{
scope (failure) if (!verbose) dump();
if (commandFunction !is null)
{
commandFunction();
}
else if (command.length)
{
command.run;
}
else
// Do not automatically return true if the target has neither
// command nor command function (e.g. dmdDefault) to avoid
// unecessary rebuilds
return depUpdated;
}
return true;
}
/// Writes relevant informations about this rule to stdout
private void dump()
{
scope writer = stdout.lockingTextWriter;
void write(T)(string fmt, T what)
{
static if (is(T : bool))
bool print = what;
else
bool print = what.length != 0;
if (print)
writer.formattedWrite(fmt, what);
}
writer.put("\nThe following operation failed:\n");
write("Name: %s\n", name);
write("Description: %s\n", description);
write("Dependencies: %-(\n -> %s%)\n\n", deps.map!(d => d.name ? d.name : d.target));
write("Sources: %-(\n -> %s%)\n\n", sources);
write("Targets: %-(\n -> %s%)\n\n", targets);
write("Command: %-(%s %)\n\n", command);
write("CommandFunction: %-s\n\n", commandFunction ? "Yes" : null);
writer.put("-----------------------------------------------------------\n");
}
}
/// Fake namespace containing all utilities to execute many rules in parallel
abstract final class Scheduler
{
/**
Builds the supplied targets in parallel using the global taskPool.
Params:
targets = rules to build
**/
static void build(BuildRule[] targets)
{
// Create an execution plan to build all targets
Context[BuildRule] contexts;
Context[] topSorted, leaves;
foreach(target; targets)
findLeafs(target, contexts, topSorted, leaves);
// Start all leaves in parallel, they will submit the remaining tasks recursively
foreach (leaf; leaves)
taskPool.put(leaf.task);
// Await execution of all targets while executing pending tasks. The
// topological order of tasks guarantees that every tasks was already
// submitted to taskPool before we call workForce.
foreach (context; topSorted)
context.task.workForce();
}
/**
Recursively creates contexts instances for rule and all of its dependencies and stores
them in contexts, tasks and leaves for further usage.
Params:
rule = current rule
contexts = already created context instances
tasks = context instances in topological order implied by Dependency.deps
leaves = contexts of rules without dependencies
Returns: the context belonging to rule
**/
private static Context findLeafs(BuildRule rule, ref Context[BuildRule] contexts, ref Context[] all, ref Context[] leaves)
{
// This implementation is based on Tarjan's algorithm for topological sorting.
auto context = contexts.get(rule, null);
// Check whether the current node wasn't already visited
if (context is null)
{
context = contexts[rule] = new Context(rule);
// Leafs are rules without further dependencies
if (rule.deps.empty)
{
leaves ~= context;
}
else
{
// Recursively visit all dependencies
foreach (dep; rule.deps)
{
auto depContext = findLeafs(dep, contexts, all, leaves);
depContext.requiredBy ~= context;
}
}
// Append the current rule AFTER all dependencies
all ~= context;
}
return context;
}
/// Metadata required for parallel execution
private static class Context
{
import std.parallelism: createTask = task;
alias Task = typeof(createTask(&Context.init.buildRecursive)); /// Task type
BuildRule target; /// the rule to execute
Context[] requiredBy; /// rules relying on this one
shared size_t pendingDeps; /// amount of rules to be built
shared bool depUpdated; /// whether any dependency of target was updated
Task task; /// corresponding task
/// Creates a new context for rule
this(BuildRule rule)
{
this.target = rule;
this.pendingDeps = rule.deps.length;
this.task = createTask(&buildRecursive);
}
/**
Builds the rule given by this context and schedules other rules
requiring it (if the current was the last missing dependency)
**/
private void buildRecursive()
{
import core.atomic: atomicLoad, atomicOp, atomicStore;
/// Stores whether the current build is stopping because some step failed
static shared bool aborting;
scope (failure) atomicStore(aborting, true);
// Build the current rule unless another one failed
if (!atomicLoad(aborting) && target.run(depUpdated))
{
// Propagate that this rule's targets were (re)built
foreach (parent; requiredBy)
atomicStore(parent.depUpdated, true);
}
// Mark this rule as finished for all parent rules
foreach (parent; requiredBy)
{
if (parent.pendingDeps.atomicOp!"-="(1) == 0)
taskPool.put(parent.task);
}
}
}
}
/** Initializes an object using a chain of method calls */
struct MethodInitializer(T) if (is(T == class)) // currenly only works with classes
{
private T obj;
ref MethodInitializer opDispatch(string name)(typeof(__traits(getMember, T, name)) arg)
{
__traits(getMember, obj, name) = arg;
return this;
}
}
/** Create an object using a chain of method calls for each field. */
T methodInit(T, alias Func, Args...)(Args args) if (is(T == class)) // currently only works with classes
{
auto initializer = MethodInitializer!T(new T());
Func(initializer, initializer.obj, args);
initializer.obj.finalize();
return initializer.obj;
}
/**
Takes a lambda and returns a memoized function to build a rule object.
The lambda takes a builder and a rule object.
This differs from makeRuleWithArgs in that the function literal does not need explicit
parameter types.
*/
alias makeRule(alias Func) = memoize!(methodInit!(BuildRule, Func));
/**
Takes a lambda and returns a memoized function to build a rule object.
The lambda takes a builder, rule object and any extra arguments needed
to create the rule.
This differs from makeRule in that the function literal must contain explicit parameter types.
*/
alias makeRuleWithArgs(alias Func) = memoize!(methodInit!(BuildRule, Func, Parameters!Func[2..$]));
/**
Logging primitive
Params:
spec = a format specifier
args = the data to format to the log
*/
void log(T...)(string spec, T args)
{
if (verbose)
writefln(spec, args);
}
/**
Aborts the current build
Params:
msg = error message to display
details = extra error details to display (e.g. a error diff)
Throws: BuildException with the supplied message
Returns: nothing but enables `throw abortBuild` to convey the resulting behavior
*/
BuildException abortBuild(string msg = "Build failed!", string details = "")
{
throw new BuildException(msg, details);
}
class BuildException : Exception
{
string details = "";
this(string msg, string details) { super(msg); this.details = details; }
}
/**
The directory where all run commands are executed from. All relative file paths
in a `run` command must be relative to `runDir`.
*/
alias runDir = dmdRepo;
/**
Run a command which may not succeed and optionally log the invocation.
Params:
args = the command and command arguments to execute
workDir = the commands working directory
Returns: a tuple (status, output)
*/
auto tryRun(const(string)[] args, string workDir = runDir)
{
args = args.filter!(a => !a.empty).array;
log("Run: %-(%s %)", args);
try
{
return execute(args, null, Config.none, size_t.max, workDir);
}
catch (Exception e) // e.g. exececutable does not exist
{
return typeof(return)(-1, e.msg);
}
}
/**
Wrapper around execute that logs the execution
and throws an exception for a non-zero exit code.
Params:
args = the command and command arguments to execute
workDir = the commands working directory
Returns: any output of the executed command
*/
string run(const string[] args, const string workDir = runDir)
{
auto res = tryRun(args, workDir);
if (res.status)
{
string details;
// Rerun with GDB if e.g. a segfault occurred
// Limit this to executables within `generated` to not debug e.g. Git
version (linux)
if (res.status < 0 && args[0].startsWith(env["G"]))
{
// This should use --args to pass the command line parameters, but that
// flag is only available since 7.1.1 and hence missing on some CI machines
auto gdb = [
"gdb", "-batch", // "-q","-n",
args[0],
"-ex", "set backtrace limit 100",
"-ex", format("run %-(%s %)", args[1..$]),
"-ex", "bt",
"-ex", "info args",
"-ex", "info locals",
];
// Include gdb output as details (if GDB is available)
const gdbRes = tryRun(gdb, workDir);
if (gdbRes.status != -1)
details = gdbRes.output;
else
log("Rerunning executable with GDB failed: %s", gdbRes.output);
}
abortBuild(res.output ? res.output : format("Last command failed with exit code %s", res.status), details);
}
return res.output;
}
/**
Install `files` to `targetDir`. `files` in different directories but will be installed
to the same relative location as they exist in the `sourceBase` directory.
Params:
targetDir = the directory to install files into
sourceBase = the parent directory of all files. all files will be installed to the same relative directory
in targetDir as they are from sourceBase
files = the files to install. must be in sourceBase
*/
void installRelativeFiles(T)(string targetDir, string sourceBase, T files, uint attributes = octal!644)
{
struct FileToCopy
{
string name;
string relativeName;
string toString() { return relativeName; }
}
FileToCopy[][string] filesByDir;
foreach (file; files)
{
assert(file.startsWith(sourceBase), "expected all files to be installed to be in '%s', but got '%s'".format(sourceBase, file));
const relativeFile = file.relativePath(sourceBase);
filesByDir[relativeFile.dirName] ~= FileToCopy(file, relativeFile);
}
foreach (dirFilePair; filesByDir.byKeyValue)
{
const nextTargetDir = targetDir.buildPath(dirFilePair.key);
writefln("copy these files %s from '%s' to '%s'", dirFilePair.value, sourceBase, nextTargetDir);
mkdirRecurse(nextTargetDir);
foreach (fileToCopy; dirFilePair.value)
{
std.file.copy(fileToCopy.name, targetDir.buildPath(fileToCopy.relativeName));
std.file.setAttributes(targetDir.buildPath(fileToCopy.relativeName), attributes);
}
}
}
/** Wrapper around std.file.copy that also updates the target timestamp. */
void copyAndTouch(const string from, const string to)
{
std.file.copy(from, to);
const now = Clock.currTime;
to.setTimes(now, now);
}
version (OSX)
{
// FIXME: Parallel executions hangs reliably on Mac (esp. the 'macair'
// host used by the autotester) for unknown reasons outside of this script.
pragma(msg, "Warning: Syncing file access because of OSX!");
// Wrap standard library functions to ensure mutually exclusive file access
alias readText = fileAccess!(std.file.readText, string);
alias writeText = fileAccess!(std.file.write, string, string);
alias timeLastModified = fileAccess!(std.file.timeLastModified, string);
import core.sync.mutex;
__gshared Mutex fileAccessMutex;
shared static this() {
fileAccessMutex = new Mutex();
}
auto fileAccess(alias dg, T...)(T args)
{
fileAccessMutex.lock_nothrow();
scope (exit) fileAccessMutex.unlock_nothrow();
return dg(args);
}
}
else
{
alias writeText = std.file.write;
}
| D |
import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop, std.bitmanip;
immutable long INF = 1L << 59;
void main() {
auto s = readln.split.map!(to!int);
auto N = s[0];
auto M = s[1];
auto S = s[2] - 1;
auto T = s[3] - 1;
auto G = new Tuple!(int, long)[][](N);
auto H = new Tuple!(int, long)[][](N);
foreach (i; 0..M) {
auto t = readln.split;
G[t[0].to!int-1] ~= tuple(t[1].to!int-1, t[2].to!long);
G[t[1].to!int-1] ~= tuple(t[0].to!int-1, t[2].to!long);
H[t[0].to!int-1] ~= tuple(t[1].to!int-1, t[3].to!long);
H[t[1].to!int-1] ~= tuple(t[0].to!int-1, t[3].to!long);
}
auto A = new long[](N);
auto B = new long[](N);
fill(A, INF);
fill(B, INF);
void dij(long[] D, Tuple!(int, long)[][] F, int start) {
auto pq = new BinaryHeap!(Array!(Tuple!(int, long)), "a[1] > b[1]")();
pq.insert(tuple(start, 0L));
while (!pq.empty) {
auto t = pq.front;
pq.removeFront;
auto n = t[0];
auto d = t[1];
if (d >= D[n]) continue;
D[n] = d;
foreach (to; F[n]) {
auto m = to[0];
auto nd = d + to[1];
if (nd >= D[m]) continue;
pq.insert(tuple(m, nd));
}
}
}
dij(A, G, S);
dij(B, H, T);
auto hoge = new long[](N);
foreach (i; 0..N) hoge[i] = A[i] + B[i];
foreach_reverse (i; 0..N-1) hoge[i] = min(hoge[i], hoge[i+1]);
foreach (i; 0..N) writeln(10L^^15 - hoge[i]);
}
| D |
module java.beans.Introspector;
import java.beans.BeanInfo;
import java.lang.all;
class Introspector {
static const int IGNORE_ALL_BEANINFO = 0;
static const int IGNORE_IMMEDIATE_BEANINFO = 0;
static const int USE_ALL_BEANINFO = 0;
static String decapitalize(String name){
implMissing(__FILE__, __LINE__);
return null;
}
static void flushCaches(){
implMissing(__FILE__, __LINE__);
}
static void flushFromCaches(Class clz){
implMissing(__FILE__, __LINE__);
}
static BeanInfo getBeanInfo(Class beanClass){
implMissing(__FILE__, __LINE__);
return null;
}
static BeanInfo getBeanInfo(Class beanClass, Class stopClass){
implMissing(__FILE__, __LINE__);
return null;
}
static BeanInfo getBeanInfo(Class beanClass, int flags){
implMissing(__FILE__, __LINE__);
return null;
}
static String[] getBeanInfoSearchPath(){
implMissing(__FILE__, __LINE__);
return null;
}
static void setBeanInfoSearchPath(String[] path){
implMissing(__FILE__, __LINE__);
}
}
| D |
module org.serviio.upnp.protocol.ssdp.DeviceAliveMessageBuilder;
import java.lang;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import org.apache.http.HttpRequest;
import org.serviio.upnp.Device;
import org.serviio.upnp.protocol.http.HttpMessageBuilder;
import org.serviio.upnp.service.Service;
import org.serviio.upnp.protocol.ssdp.SSDPRequestMessageBuilder;
public class DeviceAliveMessageBuilder : SSDPRequestMessageBuilder
{
public List!(String) generateSSDPMessages(Integer duration, String searchTarget)
{
if ((duration is null) || (duration.intValue() < 0)) {
throw new InsufficientInformationException(java.lang.String.format("Message duration includes invalid value: %s", cast(Object[])[ duration ]));
}
List!(String) messages = new ArrayList();
messages.addAll(generateRootDeviceMessages(duration));
messages.addAll(generateServicesMessages(duration));
return messages;
}
protected HttpRequest generateBase(String method, Integer duration)
{
HttpRequest request = super.generateBase(method);
request.addHeader("CACHE-CONTROL", "max-age = " + duration.toString());
request.addHeader("LOCATION", Device.getInstance().getDescriptionURL().toString());
request.addHeader("SERVER", SSDPConstants.SERVER);
request.addHeader("NTS", "ssdp:alive");
return request;
}
protected List!(String) generateRootDeviceMessages(Integer duration)
{
List!(String) result = new ArrayList(3);
Device device = Device.getInstance();
HttpRequest message1 = generateBase("NOTIFY", duration);
message1.addHeader("NT", "upnp:rootdevice");
message1.addHeader("USN", "uuid:" + device.getUuid() + "::" + "upnp:rootdevice");
result.add(HttpMessageBuilder.transformToString(message1));
HttpRequest message2 = generateBase("NOTIFY", duration);
message2.addHeader("NT", "uuid:" + device.getUuid());
message2.addHeader("USN", "uuid:" + device.getUuid());
result.add(HttpMessageBuilder.transformToString(message2));
HttpRequest message3 = generateBase("NOTIFY", duration);
message3.addHeader("NT", device.getDeviceType());
message3.addHeader("USN", "uuid:" + device.getUuid() + "::" + device.getDeviceType());
result.add(HttpMessageBuilder.transformToString(message3));
return result;
}
protected List!(String) generateServicesMessages(Integer duration)
{
List!(String) result = new ArrayList(3);
Device device = Device.getInstance();
foreach (Service service ; device.getServices())
{
HttpRequest message = generateBase("NOTIFY", duration);
message.addHeader("NT", service.getServiceType());
message.addHeader("USN", "uuid:" + device.getUuid() + "::" + service.getServiceType());
result.add(HttpMessageBuilder.transformToString(message));
}
return result;
}
}
/* Location: C:\Users\Main\Downloads\serviio.jar
* Qualified Name: org.serviio.upnp.protocol.ssdp.DeviceAliveMessageBuilder
* JD-Core Version: 0.7.0.1
*/ | D |
/Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Leaf.build/HTMLEscape.swift.o : /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Argument.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Byte+Leaf.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Constants.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Context.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/HTMLEscape.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Leaf.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/LeafComponent.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/LeafError.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Link.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/List.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Node+Rendered.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/NSData+File.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Parameter.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Stem+Render.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Stem+Spawn.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Stem.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Buffer/Buffer+Leaf.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Buffer/Buffer.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Buffer/BufferProtocol.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/BasicTag.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Tag.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/TagTemplate.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Else.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Embed.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Equal.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Export.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Extend.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/If.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Import.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Index.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Loop.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Raw.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Uppercased.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Variable.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/Core.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/ObjectiveC.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/IOKit.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/libc.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Node.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/PathIndexable.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Polymorphic.swiftmodule
/Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Leaf.build/HTMLEscape~partial.swiftmodule : /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Argument.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Byte+Leaf.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Constants.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Context.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/HTMLEscape.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Leaf.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/LeafComponent.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/LeafError.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Link.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/List.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Node+Rendered.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/NSData+File.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Parameter.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Stem+Render.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Stem+Spawn.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Stem.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Buffer/Buffer+Leaf.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Buffer/Buffer.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Buffer/BufferProtocol.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/BasicTag.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Tag.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/TagTemplate.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Else.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Embed.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Equal.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Export.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Extend.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/If.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Import.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Index.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Loop.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Raw.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Uppercased.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Variable.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/Core.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/ObjectiveC.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/IOKit.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/libc.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Node.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/PathIndexable.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Polymorphic.swiftmodule
/Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Leaf.build/HTMLEscape~partial.swiftdoc : /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Argument.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Byte+Leaf.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Constants.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Context.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/HTMLEscape.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Leaf.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/LeafComponent.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/LeafError.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Link.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/List.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Node+Rendered.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/NSData+File.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Parameter.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Stem+Render.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Stem+Spawn.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Stem.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Buffer/Buffer+Leaf.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Buffer/Buffer.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Buffer/BufferProtocol.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/BasicTag.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Tag.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/TagTemplate.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Else.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Embed.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Equal.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Export.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Extend.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/If.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Import.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Index.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Loop.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Raw.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Uppercased.swift /Users/okasho/serverProject/tryswift/get_and_post/swift/Packages/Leaf-1.0.6/Sources/Leaf/Tag/Models/Variable.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/Core.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/ObjectiveC.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/IOKit.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/libc.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Node.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/PathIndexable.swiftmodule /Users/okasho/serverProject/tryswift/get_and_post/swift/.build/debug/Polymorphic.swiftmodule
| D |
module ex2.sub1.m1;
import glued.application.stereotypes;
@Tracked
class C{}
| D |
/home/runner/work/econ/econ/server/target/x86_64-unknown-linux-gnu/release/deps/futures_io-feeabba0fb6ea153.rmeta: /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-io-0.3.8/src/lib.rs
/home/runner/work/econ/econ/server/target/x86_64-unknown-linux-gnu/release/deps/libfutures_io-feeabba0fb6ea153.rlib: /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-io-0.3.8/src/lib.rs
/home/runner/work/econ/econ/server/target/x86_64-unknown-linux-gnu/release/deps/futures_io-feeabba0fb6ea153.d: /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-io-0.3.8/src/lib.rs
/home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/futures-io-0.3.8/src/lib.rs:
| D |
/**
В модуле содержатся основные числовые процедуры, часто используемые
в прочих модулях, либо применияемые в проектах, где используется линейная алгебра.
Authors:
Victor Nakoryakov, nail-mail[at]mail.ru
*/
module linalg.basic;
//import stdrus;
import linalg.config;
/**
Функция приблизительного равенства. Фактически копия функциии feqrel,
но с видоизменениями, делающими её пригодной для сравнения почти нулевых чисел.
Params:
x, y = Сравниваемые числа.
отнпрец = Minimal number of mantissa bits that have to be _equal in x and y
to suppose their's equality. Makes sense in comparisons of values
enough far from ноль.
абспрец = If absolute difference between x and y is меньше than 2^(-абспрец)
they supposed to be _equal. Makes sense in comparisons of values
enough near to ноль.
Возвращает:
true if x and y are supposed to be _equal, false otherwise.
*/
бул равны(реал x, реал y, цел отнпрец = дефотнпрец, цел абспрец = дефабспрец);
template РавенствоПоНорм(Т)
{
бул равны(Т a, Т b, цел отнпрец = дефотнпрец, цел абспрец = дефабспрец)
{
return .равны((b - a).квадратНорм, 0.L, отнпрец, абспрец);
}
}
бул меньше(реал a, реал b, цел отнпрец = дефотнпрец, цел абспрец = дефабспрец);
бул больше(реал a, реал b, цел отнпрец = дефотнпрец, цел абспрец = дефабспрец);
/**
Функция линейной интерполяции.
Возвращает:
Значение, интерполированное из a в b по значению t. Если t не входит в диапазон [0; 1],
то применяется линейная экстраполяция.
*/
реал лининтерп(реал a, реал b, реал t);
template Лининтерп(Т)
{
Т лининтерп(Т a, Т b, реал t)
{
return a * (1 - t) + b * t;
}
}
/**
Содержит функции мин и макс для генерных типов, обеспечивающих
opCmp.
*/
template МинМакс(Т)
{
/**
Возвращает:
Наибольшее из a и b.
*/
Т макс(Т a, Т b)
{
return (a > b) ? a : b;
}
/**
Возвращает:
Наименьшее из a и b.
*/
Т мин(Т a, Т b)
{
return (a < b) ? a : b;
}
}
/// Вводим функции мин и макс для основных числовых типов.
alias МинМакс!(бул).мин мин;
alias МинМакс!(бул).макс макс; /// описано
alias МинМакс!(байт).мин мин; /// описано
alias МинМакс!(байт).макс макс; /// описано
alias МинМакс!(ббайт).мин мин; /// описано
alias МинМакс!(ббайт).макс макс; /// описано
alias МинМакс!(крат).мин мин; /// описано
alias МинМакс!(крат).макс макс; /// описано
alias МинМакс!(бкрат).мин мин; /// описано
alias МинМакс!(бкрат).макс макс; /// описано
alias МинМакс!(цел).мин мин; /// описано
alias МинМакс!(цел).макс макс; /// описано
alias МинМакс!(бцел).мин мин; /// описано
alias МинМакс!(бцел).макс макс; /// описано
alias МинМакс!(дол).мин мин; /// описано
alias МинМакс!(дол).макс макс; /// описано
alias МинМакс!(бдол).мин мин; /// описано
alias МинМакс!(бдол).макс макс; /// описано
alias МинМакс!(плав).мин мин; /// описано
alias МинМакс!(плав).макс макс; /// описано
alias МинМакс!(дво).мин мин; /// описано
alias МинМакс!(дво).макс макс; /// описано
alias МинМакс!(реал).мин мин; /// описано
alias МинМакс!(реал).макс макс; /// описано
/**
Contains clamping functions for generic types to which мин and макс
functions can be applied.
*/
template Закрепи(Т)
{
/**
Makes value of x to be not меньше than inf. Method can change value of x.
Возвращает:
Copy of x after clamping is applied.
*/
Т закрепиПод(inout Т x, Т inf)
{
return x = макс(x, inf);
}
/**
Makes value of x to be not больше than sup. Method can change value of x.
Возвращает:
Copy of x after clamping is applied.
*/
Т закрепиНад(inout Т x, Т sup)
{
return x = мин(x, sup);
}
/**
Makes value of x to be nor меньше than inf nor больше than sup.
Method can change value of x.
Возвращает:
Copy of x after clamping is applied.
*/
Т закрепи(inout Т x, Т inf, Т sup)
{
закрепиПод(x, inf);
return закрепиНад(x, sup);
}
}
/// Introduce clamping functions for basic numeric types.
alias Закрепи!(бул).закрепиПод закрепиПод;
alias Закрепи!(бул).закрепиНад закрепиНад; /// описано
alias Закрепи!(бул).закрепи закрепи; /// описано
alias Закрепи!(байт).закрепиПод закрепиПод; /// описано
alias Закрепи!(байт).закрепиНад закрепиНад; /// описано
alias Закрепи!(байт).закрепи закрепи; /// описано
alias Закрепи!(ббайт).закрепиПод закрепиПод; /// описано
alias Закрепи!(ббайт).закрепиНад закрепиНад; /// описано
alias Закрепи!(ббайт).закрепи закрепи; /// описано
alias Закрепи!(крат).закрепиПод закрепиПод; /// описано
alias Закрепи!(крат).закрепиНад закрепиНад; /// описано
alias Закрепи!(крат).закрепи закрепи; /// описано
alias Закрепи!(бкрат).закрепиПод закрепиПод; /// описано
alias Закрепи!(бкрат).закрепиНад закрепиНад; /// описано
alias Закрепи!(бкрат).закрепи закрепи; /// описано
alias Закрепи!(цел).закрепиПод закрепиПод; /// описано
alias Закрепи!(цел).закрепиНад закрепиНад; /// описано
alias Закрепи!(цел).закрепи закрепи; /// описано
alias Закрепи!(бцел).закрепиПод закрепиПод; /// описано
alias Закрепи!(бцел).закрепиНад закрепиНад; /// описано
alias Закрепи!(бцел).закрепи закрепи; /// описано
alias Закрепи!(дол).закрепиПод закрепиПод; /// описано
alias Закрепи!(дол).закрепиНад закрепиНад; /// описано
alias Закрепи!(дол).закрепи закрепи; /// описано
alias Закрепи!(бдол).закрепиПод закрепиПод; /// описано
alias Закрепи!(бдол).закрепиНад закрепиНад; /// описано
alias Закрепи!(бдол).закрепи закрепи; /// описано
alias Закрепи!(плав).закрепиПод закрепиПод; /// описано
alias Закрепи!(плав).закрепиНад закрепиНад; /// описано
alias Закрепи!(плав).закрепи закрепи; /// описано
alias Закрепи!(дво).закрепиПод закрепиПод; /// описано
alias Закрепи!(дво).закрепиНад закрепиНад; /// описано
alias Закрепи!(дво).закрепи закрепи; /// описано
alias Закрепи!(реал).закрепиПод закрепиПод; /// описано
alias Закрепи!(реал).закрепиНад закрепиНад; /// описано
alias Закрепи!(реал).закрепи закрепи; /// описано
/** Contains переставь function for generic types. */
template ПростойПерестанов(Т)
{
/** Swaps values of a and b. */
void переставь(inout Т a, inout Т b)
{
Т temp = a;
a = b;
b = temp;
}
}
/// Introduces переставь function for basic numeric types.
alias ПростойПерестанов!(бул).переставь переставь;
alias ПростойПерестанов!(байт).переставь переставь; /// описано
alias ПростойПерестанов!(ббайт).переставь переставь; /// описано
alias ПростойПерестанов!(крат).переставь переставь; /// описано
alias ПростойПерестанов!(бкрат).переставь переставь; /// описано
alias ПростойПерестанов!(цел).переставь переставь; /// описано
alias ПростойПерестанов!(бцел).переставь переставь; /// описано
alias ПростойПерестанов!(дол).переставь переставь; /// описано
alias ПростойПерестанов!(бдол).переставь переставь; /// описано
alias ПростойПерестанов!(плав).переставь переставь; /// описано
alias ПростойПерестанов!(дво).переставь переставь; /// описано
alias ПростойПерестанов!(реал).переставь переставь; /// описано
| D |
module ut.meta.reflection.functions;
import ut.meta.reflection;
import mirror.meta.traits: Parameter;
import std.meta: AliasSeq;
@("functions.bySymbol")
@safe pure unittest {
alias mod = Module!("modules.functions");
import modules.functions;
alias expected = AliasSeq!(
FunctionSymbol!(add1, Protection.public_, Linkage.D),
FunctionSymbol!(withDefault, Protection.public_, Linkage.D),
FunctionSymbol!(storageClasses, Protection.public_, Linkage.D),
FunctionSymbol!(exportedFunc, Protection.export_, Linkage.D),
FunctionSymbol!(externC, Protection.public_, Linkage.C),
FunctionSymbol!(externCpp, Protection.public_, Linkage.Cpp),
FunctionSymbol!(identityInt, Protection.public_, Linkage.D, "identityInt", modules.functions),
FunctionSymbol!(voldemort, Protection.public_, Linkage.D),
FunctionSymbol!(voldemortArray, Protection.public_, Linkage.D),
FunctionSymbol!(concatFoo, Protection.public_, Linkage.D),
);
// pragma(msg, "\n", mod.FunctionsBySymbol.stringof, "\n");
shouldEqual!(mod.FunctionsBySymbol, expected);
static assert(mod.FunctionsBySymbol[0].overloads.length == 2); // add1
static foreach(i; 1..expected.length)
static assert(mod.FunctionsBySymbol[i].overloads.length == 1); // everything else
}
@("functions.byOverload")
@safe pure unittest {
alias mod = Module!("modules.functions");
import modules.functions;
alias add1Int = __traits(getOverloads, modules.functions, "add1")[0];
alias add1Double = __traits(getOverloads, modules.functions, "add1")[1];
alias expected = AliasSeq!(
FunctionOverload!(add1Int, Protection.public_, Linkage.D),
FunctionOverload!(add1Double, Protection.public_, Linkage.D, "add1", modules.functions, 1),
FunctionOverload!(withDefault, Protection.public_, Linkage.D),
FunctionOverload!(storageClasses, Protection.public_, Linkage.D),
FunctionOverload!(exportedFunc, Protection.export_, Linkage.D),
FunctionOverload!(externC, Protection.public_, Linkage.C),
FunctionOverload!(externCpp, Protection.public_, Linkage.Cpp),
FunctionOverload!(identityInt, Protection.public_, Linkage.D, "identityInt", modules.functions),
FunctionOverload!(voldemort, Protection.public_, Linkage.D),
FunctionOverload!(voldemortArray, Protection.public_, Linkage.D),
FunctionOverload!(concatFoo, Protection.public_, Linkage.D),
);
// pragma(msg, "\n", mod.FunctionsByOverload.stringof, "\n");
shouldEqual!(mod.FunctionsByOverload, expected);
}
@("problems")
@safe pure unittest {
alias mod = Module!("modules.problems");
static assert(mod.FunctionsBySymbol.length == 0, mod.FunctionsBySymbol.stringof);
}
@("parameters.add1.bySymbol")
@safe pure unittest {
alias mod = Module!("modules.functions");
alias add1Int = mod.FunctionsBySymbol[0].overloads[0];
alias add1Double = mod.FunctionsBySymbol[0].overloads[1];
alias withDefaults = mod.FunctionsBySymbol[1].overloads[0];
shouldEqual!(
add1Int.parameters,
AliasSeq!(
Parameter!(int, void, "i"),
Parameter!(int, void, "j"),
)
);
shouldEqual!(
add1Double.parameters,
AliasSeq!(
Parameter!(double, void, "d0"),
Parameter!(double, void, "d1"),
)
);
shouldEqual!(
withDefaults.parameters,
AliasSeq!(
Parameter!(double, void, "fst"),
Parameter!(double, 33.3, "snd"),
)
);
}
@("parameters.add1.byOverload")
@safe pure unittest {
alias mod = Module!("modules.functions");
alias add1Int = mod.FunctionsByOverload[0];
alias add1Double = mod.FunctionsByOverload[1];
shouldEqual!(
add1Int.parameters,
AliasSeq!(
Parameter!(int, void, "i"),
Parameter!(int, void, "j"),
)
);
shouldEqual!(
add1Double.parameters,
AliasSeq!(
Parameter!(double, void, "d0"),
Parameter!(double, void, "d1"),
)
);
}
@("parameters.storageClasses")
@safe pure unittest {
import std.traits: STC = ParameterStorageClass;
alias mod = Module!("modules.functions");
alias storageClasses = mod.FunctionsByOverload[3];
// pragma(msg, "\n", storageClasses.parameters.stringof, "\n");
shouldEqual!(
storageClasses.parameters,
AliasSeq!(
Parameter!(int, void, "normal", STC.none),
Parameter!(int*, void, "returnScope", STC.return_ | STC.scope_),
Parameter!(int, void, "out_", STC.out_),
Parameter!(int, void, "ref_", STC.ref_),
Parameter!(int, void, "lazy_", STC.lazy_),
)
);
}
@("return.bySymbol")
@safe pure unittest {
import std.meta: staticMap;
alias mod = Module!("modules.functions");
alias functions = mod.FunctionsBySymbol;
static assert(is(functions[0].overloads[0].ReturnType == int));
static assert(is(functions[0].overloads[1].ReturnType == double));
static assert(is(functions[1].overloads[0].ReturnType == double));
static assert(is(functions[2].overloads[0].ReturnType == void));
}
@("return.byOverload")
@safe pure unittest {
import std.meta: staticMap;
import std.traits: ReturnType;
static import modules.functions;
alias mod = Module!("modules.functions");
alias return_(alias F) = F.ReturnType;
alias returnTypes = staticMap!(return_, mod.FunctionsByOverload);
shouldEqual!(
returnTypes,
AliasSeq!(
int, double, double, void, void, void, void, int,
ReturnType!(modules.functions.voldemort),
ReturnType!(modules.functions.voldemortArray),
string,
),
);
}
| D |
instance BAU_901_Bauer(Npc_Default)
{
name[0] = NAME_Bauer;
guild = GIL_BAU;
id = 901;
voice = 13;
flags = 0;
npcType = NPCTYPE_AMBIENT;
B_SetAttributesToChapter(self,2);
fight_tactic = FAI_HUMAN_COWARD;
EquipItem(self,ItMw_1h_Bau_Axe);
B_CreateAmbientInv(self);
B_SetNpcVisual(self,MALE,"Hum_Head_FatBald",Face_N_Normal03,BodyTex_N,ITAR_Bau_L);
Mdl_SetModelFatness(self,2);
Mdl_ApplyOverlayMds(self,"Humans_Relaxed.mds");
B_GiveNpcTalents(self);
B_SetFightSkills(self,20);
daily_routine = Rtn_Start_901;
};
func void Rtn_Start_901()
{
TA_Stand_Eating(8,0,20,0,"NW_BIGFARM_HOUSE_11");
TA_Sleep(20,0,8,0,"NW_BIGFARM_HOUSE_SLD_SLEEP");
};
| D |
instance Mod_7236_GUR_Guru_NW (Npc_Default)
{
//-------- primary data --------
name = "Guru";
Npctype = NPCTYPE_Main;
guild = GIL_OUT;
level = 28;
flags = 0;
voice = 11;
id = 7236;
//-------- abilities --------
attribute[ATR_STRENGTH] = 70;
attribute[ATR_DEXTERITY] = 35;
attribute[ATR_MANA_MAX] = 50;
attribute[ATR_MANA] = 50;
attribute[ATR_HITPOINTS_MAX] = 20;
attribute[ATR_HITPOINTS] = 20;
//-------- visuals --------
// animations
Mdl_SetVisual (self,"HUMANS.MDS");
Mdl_ApplyOverlayMds (self,"Humans_Mage.mds");
// body mesh ,bdytex,skin,head mesh ,headtex,teethtex,ruestung
Mdl_SetVisualBody (self,"hum_body_Naked0", 1,1 ,"Hum_Head_Psionic", 167, 1, GUR_ARMOR_M);
Mdl_SetModelFatness(self,0);
//-------- Talente -------
B_SetAttributesToChapter (self, 6);
fight_tactic = FAI_HUMAN_STRONG;
//-------------Daily Routine-------------
daily_routine = Rtn_start_7236;
};
FUNC VOID Rtn_start_7236 ()
{
TA_Stand_Guarding (02,00,08,00,"NW_CITY_MERCHANT_PATH_28_B");
TA_Stand_Guarding (08,00,02,00,"NW_CITY_MERCHANT_PATH_28_B");
}; | D |
// URL: https://atcoder.jp/contests/abc051/tasks/abc051_b
import std.algorithm, std.container, std.conv, std.math, std.range, std.typecons, std.stdio, std.string;
auto rdsp(){return readln.splitter;}
void pick(R,T)(ref R r,ref T t){t=r.front.to!T;r.popFront;}
void pickV(R,T...)(ref R r,ref T t){foreach(ref v;t)pick(r,v);}
void readV(T...)(ref T t){auto r=rdsp;foreach(ref v;t)pick(r,v);}
void readA(T)(size_t n,ref T[]t){t=new T[](n);auto r=rdsp;foreach(ref v;t)pick(r,v);}
void readM(T)(size_t r,size_t c,ref T[][]t){t=new T[][](r);foreach(ref v;t)readA(c,v);}
void readC(T...)(size_t n,ref T t){foreach(ref v;t)v=new typeof(v)(n);foreach(i;0..n){auto r=rdsp;foreach(ref v;t)pick(r,v[i]);}}
void readS(T)(size_t n,ref T t){t=new T(n);foreach(ref v;t){auto r=rdsp;foreach(ref j;v.tupleof)pick(r,j);}}
void writeA(T)(size_t n,T t){foreach(i,v;t.enumerate){write(v);if(i<n-1)write(" ");}writeln;}
version(unittest) {} else
void main()
{
int k, s; readV(k, s);
auto ans = 0;
foreach (x; 0..k+1)
foreach (y; 0..k+1) {
auto z = s-x-y;
if (z >= 0 && z <= k) ++ans;
}
writeln(ans);
}
| D |
func void B_AssignDragonTalk (var C_Npc slf)
{
if (slf.guild == GIL_DRAGON)
{
if Hlp_GetInstanceID (slf) == Hlp_GetInstanceID (SwampDragon) {B_AssignDragonTalk_Swamp (slf);};
if Hlp_GetInstanceID (slf) == Hlp_GetInstanceID (RockDragon) {B_AssignDragonTalk_Rock (slf);};
if Hlp_GetInstanceID (slf) == Hlp_GetInstanceID (FireDragon) {B_AssignDragonTalk_Fire (slf);};
if Hlp_GetInstanceID (slf) == Hlp_GetInstanceID (IceDragon) {B_AssignDragonTalk_Ice (slf);};
};
};
| D |
/*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/
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.
*/
//D port of Bullet Physics
module bullet.collision.broadphase.dispatcher;
import bullet.linearMath.btScalar;
import bullet.collision.broadphase.broadphaseProxy;
import bullet.collision.broadphase.collisionAlgorithm;
import bullet.collision.broadphase.overlappingPairCache;
import bullet.collision.narrowPhase.persistentManifold;
import bullet.collision.dispatch.collisionObject;
import bullet.linearMath.btAlignedObjectArray;
import bullet.linearMath.btIDebugDraw;
import bullet.linearMath.btPoolAllocator;
import bullet.linearMath.btStackAlloc;
struct btDispatcherInfo {
enum DispatchFunc {
discrete = 1,
continuous
};
btScalar m_timeStep = 0.0;
int m_stepCount;
int m_dispatchFunc = DispatchFunc.discrete;
/*mutable*/ btScalar m_timeOfImpact = 1.0;
bool m_useContinuous = true;
btIDebugDraw m_debugDraw;
bool m_enableSatConvex;
bool m_enableSPU = true;
bool m_useEpa = true;
btScalar m_allowedCcdPenetration = 0.04;
bool m_useConvexConservativeDistanceUtil;
btScalar m_convexConservativeDistanceThreshold = 0.0;
btStackAlloc* m_stackAllocator;
};
///The btDispatcher interface class can be used in combination with broadphase to dispatch calculations for overlapping pairs.
///For example for pairwise collision detection, calculating contact points stored in btPersistentManifold or user callbacks (game logic).
//To do: make interface again?
class btDispatcher {
public:
btCollisionAlgorithm* findAlgorithm(btCollisionObject* body0, btCollisionObject* body1, btPersistentManifold* sharedManifold = null);
btPersistentManifold getNewManifold(void* body0, void* body1);
void releaseManifold(btPersistentManifold* manifold);
void clearManifold(btPersistentManifold* manifold);
bool needsCollision(btCollisionObject* body0,btCollisionObject* body1);
bool needsResponse(btCollisionObject* body0,btCollisionObject* body1);
void dispatchAllCollisionPairs()(btOverlappingPairCache* pairCache, const auto ref btDispatcherInfo dispatchInfo, btDispatcher* dispatcher);
int getNumManifolds() const;
inout(btPersistentManifold) getManifoldByIndexInternal(int index) inout;
btAlignedObjectArray!btPersistentManifold getInternalManifoldArray();
inout(btPoolAllocator!btPersistentManifold) getInternalManifoldPool() inout;
void* allocateCollisionAlgorithm(int size);
void freeCollisionAlgorithm(void* ptr);
};
| D |
add explanatory notes to or supply with critical comments
provide interlinear explanations for words or phrases
| D |
// PERMUTE_ARGS: -fPIC
/* Test associative arrays */
extern(C) int printf(const char*, ...);
extern(C) int memcmp(const void *s1, const void *s2, size_t n);
import core.memory; // for GC.collect
import std.random; // for uniform random numbers
/************************************************/
int nametable[char[]];
void insert(string name, int value)
{
nametable[name] = value;
}
int retrieve(string name)
{
return nametable[name];
}
void test1()
{ int v;
printf("test1.a\n");
insert("hello", 1);
printf("test1.b\n");
insert("world", 2);
printf("test1.c\n");
v = retrieve("hello");
assert(v == 1);
v = retrieve("world");
assert(v == 2);
v = retrieve("world");
assert(v == 2);
nametable.rehash;
v = retrieve("world");
assert(v == 2);
}
/************************************************/
void test2()
{
int[string] aa;
string[] keys;
int[] values;
printf("test2()\n");
/*************/
assert(aa == null);
assert(aa.length == 0);
keys = aa.keys;
assert(keys.length == 0);
values = aa.values;
assert(values.length == 0);
aa.rehash;
assert(aa.length == 0);
/*************/
aa["hello"] = 3;
assert(aa["hello"] == 3);
aa["hello"]++;
assert(aa["hello"] == 4);
assert(aa.length == 1);
keys = aa.keys;
assert(keys.length == 1);
assert(memcmp(keys[0].ptr, cast(char*)"hello", 5) == 0);
values = aa.values;
assert(values.length == 1);
assert(values[0] == 4);
aa.rehash;
assert(aa.length == 1);
assert(aa["hello"] == 4);
}
/************************************************/
void test4()
{
int[const(ubyte)[]] b;
const(ubyte)[] x;
b[x] = 3;
assert(b[x] == 3);
}
/************************************************/
void test5()
{
int[immutable(short)[]] b;
immutable(short)[] x;
b[x] = 3;
assert(b[x] == 3);
}
/************************************************/
void test6()
{
int[const(int)[]] b;
const(int)[] x;
b[x] = 3;
assert(b[x] == 3);
}
/************************************************/
void test7()
{
int[immutable(uint)[]] b;
immutable(uint)[] x;
b[x] = 3;
assert(b[x] == 3);
}
/************************************************/
void test8()
{
int[immutable(long)[]] b;
immutable(long)[] x;
b[x] = 3;
assert(b[x] == 3);
}
/************************************************/
void test9()
{
int[immutable(ulong)[]] b;
immutable(ulong)[] x;
b[x] = 3;
assert(b[x] == 3);
}
/************************************************/
class A10 {}
int[immutable(A10)[]] foo10;
void test10()
{
auto key = new immutable(A10)[2];
cast()(key[0]) = new A10();
foo10[key] = 0;
assert(key in foo10);
assert(!(key !in foo10));
}
/************************************************/
struct Value
{
uint x,y,z,t;
}
struct Key
{
int a,b,c,d;
static int hash, cmp, equals;
size_t toHash() const
{ hash = 1;
return a + b + c + d;
}
int opCmp(ref const Key s) const
{ cmp = 1;
int x;
x = a - s.a;
if (x == 0)
{ x = b - s.b;
if (x == 0)
{ x = c - s.c;
if (x == 0)
x = d - s.d;
}
}
return x;
}
bool opEquals(ref const Key s) const
{
printf("opEquals()\n");
equals = 1;
return (a == s.a && b == s.b && c == s.c && d == s.d);
}
}
void test11()
{
Value[Key] table;
Value* p;
Value v;
Value r;
Key k;
v.x = 7;
v.y = 8;
v.z = 9;
v.t = 10;
k.a = 1;
k.b = 2;
k.c = 3;
k.d = 4;
p = k in table;
assert(!p);
table[k] = v;
p = k in table;
assert(p);
table.rehash;
p = k in table;
assert(p);
r = table[k];
assert(v == r);
table.remove(k);
assert(!(k in table));
printf("Key.hash = %d\n", Key.hash);
assert(Key.hash == 1);
printf("Key.cmp = %d\n", Key.cmp);
assert(Key.cmp == 1);
// assert(Key.equals == 1);
}
/************************************************/
struct S12
{
byte number;
char[] description;
char[] font_face;
byte font_size;
ushort flags;
int colour_back;
int colour_fore;
byte charset;
}
void test12()
{
S12[] x;
printf("size %d\n",S12.sizeof);
printf("align %d\n",S12.alignof);
printf("offset %d\n",S12.description.offsetof);
for (int i=0;i<3;i++) {
S12 s;
s.font_face="font face".dup;
x ~= s;
}
/* works fine
S12 s;
s.font_face="font face".dup;
x ~= s;
s.font_face="font face".dup;
x ~= s;
s.font_face="font face".dup;
x ~= s;
s.font_face="font face".dup;
x ~= s;
*/
GC.collect();
printf("%.*s\n",x[0].font_face.length,x[0].font_face.ptr);
printf("%.*s\n",x[1].font_face.length,x[1].font_face.ptr);
}
/************************************************/
void test13()
{
int[string] array;
array["eins"]=1;
array["zwei"]=2;
array["drei"]=3;
assert(array.length==3);
int[string] rehashed=array.rehash;
assert(rehashed is array);
string[] key = array.keys;
assert(key.length==3);
bool have[3];
assert(!have[0]);
assert(!have[1]);
assert(!have[2]);
foreach(string value; key){
switch(value){
case "eins":{
have[0]=true;
break;
}case "zwei":{
have[1]=true;
break;
}case "drei":{
have[2]=true;
break;
}default:{
assert(0);
}
}
}
assert(have[0]);
assert(have[1]);
assert(have[2]);
}
/************************************************/
void test14()
{
int[char[]] aa;
aa["hello"] = 3;
assert(aa["hello"] == 3);
assert("hello" in aa);
//delete aa["hello"];
aa.remove("hello");
assert(!("hello" in aa));
}
/************************************************/
class SomeClass
{
this(char value)
{
printf("class created\n");
_value = value;
}
~this()
{
printf("class killed (%d)\n", _value);
}
char value()
{
return _value;
}
private
{
char _value;
}
}
char[] allChars = [ 'a', 'b', 'c', 'e', 'z', 'q', 'x' ];
SomeClass[char] _chars;
void _realLoad()
{
printf("Loading...\n");
foreach(char ch; allChars)
{
_chars[ch] = new SomeClass(ch);
}
}
void test15()
{
_realLoad();
int j;
for (int i = 0; i < 10000; i++)
{
foreach(char ch; allChars)
{
SomeClass obj = _chars[ch];
j += obj.value;
}
GC.collect();
}
printf("j = %d\n", j);
assert(j == 7500000);
}
/************************************************/
void test16()
{
int[int] aa;
Random gen;
for (int i = 0; i < 50000; i++)
{
int key = uniform(0, int.max, gen);
int value = uniform(0, int.max, gen);
aa[key] = value;
}
int[] keys = aa.keys;
assert(keys.length == aa.length);
int j;
foreach (k; keys)
{
assert(k in aa);
j += aa[k];
}
printf("test16 = %d\n", j);
int m;
foreach (k, v; aa)
{
assert(k in aa);
assert(aa[k] == v);
m += v;
}
assert(j == m);
m = 0;
foreach (v; aa)
{
m += v;
}
assert(j == m);
int[] values = aa.values;
assert(values.length == aa.length);
foreach(k; keys)
{
aa.remove(k);
}
assert(aa.length == 0);
for (int i = 0; i < 1000; i++)
{
int key2 = uniform(0, int.max, gen);
int value2 = uniform(0, int.max, gen);
aa[key2] = value2;
}
foreach(k; aa)
{
if (k < 1000)
break;
}
foreach(k, v; aa)
{
if (k < 1000)
break;
}
}
/************************************************/
void dummy17()
{
}
int bb17[string];
int foo17()
{
foreach(string s, int i; bb17)
{
dummy17();
}
bb17["a"] = 1;
foreach(int b; bb17)
{
try{
throw new Error("foo");
}catch(Error e){
assert(e);
return 0;
}catch{
assert(0);
}
assert(0);
}
assert(0);
}
void test17()
{
int i = foo17();
printf("foo17 = %d\n", i);
assert(i == 0);
}
/************************************************/
void test18()
{
int[uint] aa;
aa[1236448822] = 0;
aa[2716102924] = 1;
aa[ 315901071] = 2;
aa.remove(1236448822);
printf("%d\n", aa[2716102924]);
assert(aa[2716102924] == 1);
}
/************************************************/
void test19()
{
immutable(char[5])[int] aa = ([3:"hello", 4:"betty"]);
assert(aa[3] == "hello");
assert(aa[4] == "betty");
auto keys = aa.keys;
printf("%d\n", keys[0]);
printf("%d\n", keys[1]);
auto vs = aa.values;
printf("%.*s\n", vs[0].length, vs[0].ptr);
printf("%.*s\n", vs[1].length, vs[1].ptr);
string aavalue_typeid = typeid(typeof(aa.values)).toString();
printf("%.*s\n", aavalue_typeid.length, aavalue_typeid.ptr);
printf("%.*s\n", aa[3].length, aa[3].ptr);
printf("%.*s\n", aa[4].length, aa[4].ptr);
}
/************************************************/
void test20()
{
string[int] aa = ([3:"hello", 4:"betty"]);
assert(aa[3] == "hello");
assert(aa[4] == "betty");
auto keys = aa.keys;
printf("%d\n", keys[0]);
printf("%d\n", keys[1]);
auto values = aa.values;
printf("%.*s\n", values[0].length, values[0].ptr);
printf("%.*s\n", values[1].length, values[1].ptr);
string aavalue_typeid = typeid(typeof(aa.values)).toString();
printf("%.*s\n", aavalue_typeid.length, aavalue_typeid.ptr);
printf("%.*s\n", aa[3].length, aa[3].ptr);
printf("%.*s\n", aa[4].length, aa[4].ptr);
}
/************************************************/
void test21()
{
ushort[20] key = 23;
int[ushort[20]] aa;
aa[key] = 42;
auto x = aa[key];
assert(x == 42);
printf("foo\n");
}
/************************************************/
void test22()
{
int[string] stopWords = [ "abc"[]:1 ];
assert("abc"[] in stopWords);
}
/************************************************/
void test23()
{
uint[char[]][] fractal;
fractal.length = 10;
}
/************************************************/
void test24()
{
int[string] x;
char[] y;
if (y in x)
{
int z = x[y];
}
}
/************************************************/
void test25()
{
string[string] aa;
foreach (k,v; aa)
{
}
}
/************************************************/
class Tag
{
string[string] attr;
}
void foo26(const(Tag) tag_)
{
foreach(k,v;tag_.attr) { }
}
void test26()
{
}
/************************************************/
void test27()
{
int[int] s;
s = s.init;
}
/************************************************/
void test28()
{
auto a1 = [ 1:10.0, 2:20, 3:15 ];
auto a2 = [ 1:10.0, 2:20, 3:15 ];
assert(a1 !is a2);
assert(a1 == a2);
a2[7] = 23;
assert(a1 != a2);
a2.remove(7);
assert(a1 == a2);
a1.rehash;
assert(a1 == a2);
a2[2] = 18;
assert(a1 != a2);
}
/************************************************/
void test29()
{
auto gammaFunc = [-1.5:2.363, -0.5:-3.545, 0.5:1.772];
// write all keys
foreach (k; gammaFunc.byKey()) {
printf("%f\n", k);
}
// write all values
foreach (v; gammaFunc.byValue()) {
printf("%f\n", v);
}
}
/************************************************/
string toString(int value)
{
char[] result = new char[12];
uint ndigits = 0;
do
{
const c = cast(char) ((value % 10) + '0');
value /= 10;
ndigits++;
result[$ - ndigits] = c;
}
while (value);
return cast(string) result[$ - ndigits .. $];
}
void test30()
{
int[string] aa;
for(int i = 0; i < 100000; i++)
{
string s = toString(i);
aa[s] = i;
}
}
/************************************************/
void test31()
{
int[int] test;
test[0] = 0;
test[1] = 1;
test[2] = 2;
bool flag = false;
foreach( k, v; test){
//printf("loop: %d %d\n", k, v);
assert(!flag);
flag = true;
break;
}
}
/************************************************/
void test32()
{
uint[ushort] aa;
aa[1] = 1;
aa[2] = 2;
aa[3] = 3;
aa[4] = 4;
aa[5] = 5;
foreach(v; aa)
{
printf("%x\n", v);
assert(v >= 1 && v <= 5);
}
}
/************************************************/
template ICE3996(T : V[K], K, V) {}
struct Bug3996 {}
static assert(!is( ICE3996!(Bug3996) ));
/************************************************/
void bug4826c(T)(int[int] value, T x) {}
void test34()
{
AssociativeArray!(int, int) z;
bug4826c(z,1);
}
/************************************************/
// 5131
struct ICE35 {
ICE35 opAssign(int x) { return this; }
};
void test35() {
ICE35[string] a;
a["ICE?"] = 1;
}
/************************************************/
// 6433
void test36() {
int[int] aa;
static assert(aa.sizeof != 0);
static assert(aa.alignof != 0);
static assert(is(typeof(aa.init) == int[int]));
static assert(typeof(aa).mangleof == "Hii");
static assert(typeof(aa).stringof == "int[int]");
static struct AA { int[int] aa; }
static assert(AA.aa.offsetof == 0);
aa = aa.init;
aa[0] = 1;
assert(aa.length == 1 && aa[0] == 1);
}
/************************************************/
// 7365
struct TickDuration {
bool opEquals(ref const TickDuration rhs) const {
return true;
}
}
void test7365() {
TickDuration[Object] aa;
aa.keys;
}
/************************************************/
enum aa5520 = [5 : "hello"];
void test5520()
{
auto a = aa5520.values;
}
/************************************************/
enum size_t N6655 = 1;
int[bar6655.length] foo6655;
int[N6655] bar6655;
/************************************************/
int main()
{
printf("before test 1\n"); test1();
printf("before test 2\n"); test2();
printf("before test 4\n"); test4();
printf("before test 5\n"); test5();
printf("before test 6\n"); test6();
printf("before test 7\n"); test7();
printf("before test 8\n"); test8();
printf("before test 9\n"); test9();
printf("before test 10\n"); test10();
printf("before test 11\n"); test11();
printf("before test 12\n"); test12();
printf("before test 13\n"); test13();
printf("before test 14\n"); test14();
printf("before test 15\n"); test15();
printf("before test 16\n"); test16();
printf("before test 17\n"); test17();
printf("before test 18\n"); test18();
printf("before test 19\n"); test19();
printf("before test 20\n"); test20();
printf("before test 21\n"); test21();
printf("before test 22\n"); test22();
printf("before test 23\n"); test23();
printf("before test 24\n"); test24();
printf("before test 25\n"); test25();
printf("before test 26\n"); test26();
printf("before test 27\n"); test27();
printf("before test 28\n"); test28();
printf("before test 29\n"); test29();
printf("before test 30\n"); test30();
printf("before test 31\n"); test31();
printf("before test 32\n"); test32();
test34();
test35();
test36();
test7365();
test5520();
printf("Success\n");
return 0;
}
| D |
//========================================
//-----------------> OPCJA *KONIEC*
//========================================
INSTANCE DIA_Quentin_EXIT(C_INFO)
{
npc = BAN_1610_Quentin;
nr = 999;
condition = DIA_Quentin_EXIT_Condition;
information = DIA_Quentin_EXIT_Info;
permanent = TRUE;
description = DIALOG_ENDE;
};
FUNC INT DIA_Quentin_EXIT_Condition()
{
return TRUE;
};
FUNC VOID DIA_Quentin_EXIT_Info()
{
AI_StopProcessInfos (self);
};
///////////////////////////////////////////////////////////////////////////////////////////
// Quentin
// Rozdział 1
// Dialogi poboczne
///////////////////////////////////////////////////////////////////////////////////////////
//========================================
//-----------------> WLADZA
//========================================
INSTANCE DIA_Quentin_WLADZA (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_WLADZA_Condition;
information = DIA_Quentin_WLADZA_Info;
permanent = FALSE;
description = "Ty tu rządzisz?";
};
FUNC INT DIA_Quentin_WLADZA_Condition()
{
return TRUE;
};
FUNC VOID DIA_Quentin_WLADZA_Info()
{
AI_Output (other, self ,"DIA_Quentin_WLADZA_15_01"); //Ty tu rządzisz?
AI_Output (self, other ,"DIA_Quentin_WLADZA_03_02"); //Wchodzisz tak po prostu do mojego Obozu i pytasz mnie czy tu rządzę, tak?
AI_Output (other, self ,"DIA_Quentin_WLADZA_15_03"); //Jakby nie patrzeć... to tak.
AI_Output (self, other ,"DIA_Quentin_WLADZA_03_04"); //Powiedziałbym, że jesteś cholernie bezczelny...
AI_Output (other, self ,"DIA_Quentin_WLADZA_15_05"); //...albo odważny.
AI_Output (self, other ,"DIA_Quentin_WLADZA_03_06"); //Nie... bezczelny.
AI_Output (self, other ,"DIA_Quentin_WLADZA_03_07"); //Powiem ci tylko, że nazywam się Quentin i dowodzę w tym Obozie.
AI_Output (self, other ,"DIA_Quentin_WLADZA_03_08"); //Tyle informacji powinno ci wystarczyć.
};
var int log_Quenfight;
//========================================
//-----------------> KnowsNauka
//========================================
INSTANCE DIA_Quentin_KnowsNauka (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 777;
condition = DIA_Quentin_KnowsNauka_Condition;
information = DIA_Quentin_KnowsNauka_Info;
permanent = FALSE;
description = "Możesz mnie czegoś nauczyć?";
};
FUNC INT DIA_Quentin_KnowsNauka_Condition()
{
return TRUE;
};
FUNC VOID DIA_Quentin_KnowsNauka_Info()
{
AI_Output (other, self ,"DIA_Quentin_KnowsNauka_15_01"); //Możesz mnie czegoś nauczyć?
AI_Output (self, other ,"DIA_Quentin_KnowsNauka_03_02"); //Mogę cię nauczyć walki bronią jednoręczną. Oczywiście nie za darmo. No i musisz też należeć do Bandy.
if (log_Quenfight == FALSE)
{
Log_CreateTopic (GE_TeacherBAN,LOG_NOTE);
B_LogEntry (GE_TeacherBAN,"Gdy zostanę Bandytą, Quentin za kilka bryłek rudy nauczy mnie walki jednoręcznym orężem.");
log_Quenfight = TRUE;
};
};
/*
//========================================
//-----------------> HELPXD
//========================================
INSTANCE DIA_Quentin_HELPXD (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 10;
condition = DIA_Quentin_HELPXD_Condition;
information = DIA_Quentin_HELPXD_Info;
permanent = TRUE;
description = "Kto może mi pomóc?";
};
FUNC INT DIA_Quentin_HELPXD_Condition()
{
if (Npc_GetTrueGuild(other) == GIL_BAU)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_HELPXD_Info()
{
AI_Output (other, self ,"DIA_Quentin_HELPXD_15_01"); //Kto może mi pomóc?
AI_Output (self, other ,"DIA_Quentin_HELPXD_03_02"); //Popytaj szwendających się po Obozie Bandytów. Z chęcią wybiorą się na polowanie.
};
*/
///////////////////////////////////////////////////////////////////////////////////////////
// Quentin
// Rozdział 1
// Zadania
///////////////////////////////////////////////////////////////////////////////////////////
//========================================
//-----------------> DRAX
//========================================
INSTANCE DIA_Quentin_DOOBOZU (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 2;
condition = DIA_Quentin_DRAX_Condition;
information = DIA_Quentin_DRAX_Info;
permanent = FALSE;
description = "Przysyła mnie Drax.";
};
FUNC INT DIA_Quentin_DRAX_Condition()
{
if (Npc_GetTrueGuild(other) == GIL_BAU) && (Npc_HasItems (other, itmi_joshpocket) >=1)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_DRAX_Info()
{
AI_Output (other, self ,"DIA_Quentin_DRAX_15_01"); //Przysyła mnie Drax. Uznał mnie za Bandytę i pokazał drogę do Obozu. Udowodniłem swoją lojalność wykonując dla niego zadania.
AI_Output (self, other ,"DIA_Quentin_DRAX_03_02"); //Co? Drax przyjął kogoś nowego bez mojej wiedzy?
AI_Output (other, self ,"DIA_Quentin_DRAX_15_03"); //Powiedział, że zasługuję na wasze zaufanie. Kazał mi się zgłosić po rynsztunek. Jestem gotowy do pracy.
AI_Output (other, self ,"DIA_Quentin_DRAX_15_04"); //Nie mógł mnie tu przyprowadzić od razu. W końcu wasz Obóz jest ukryty.
AI_Output (self, other ,"DIA_Quentin_DRAX_03_05"); //Kazał ci coś przekazać?
AI_Output (other, self ,"DIA_Quentin_DRAX_15_06"); //Cóż, wydarzyło się kilka interesujących rzeczy...
AI_Output (self, other ,"DIA_Quentin_DRAX_03_07"); //Mów, wszystko może mieć znaczenie.
AI_Output (other, self ,"DIA_Quentin_DRAX_15_08"); //Strażnikom prawie udało się ustalić miejsce położenia waszego Obozu. Niejaki Trip sporządził notatkę na ten temat.
AI_Output (other, self ,"DIA_Quentin_DRAX_15_09"); //Na jej podstawie Kopacz Graham rozrysował potencjalną mapę, która trafiła w ręce Strażników z placu wymian. Chcieli ją wykorzystać do planowania obrony.
AI_Output (other, self ,"DIA_Quentin_DRAX_15_10"); //Zdobyłem obydwa te dokumenty. Są teraz w rękach Draxa.
AI_Output (other, self ,"DIA_Quentin_DRAX_15_11"); //Jeden z waszych ludzi, niejaki Skaza miał poważne problemy w Starym Obozie. Tamtejsi Cienie chcieli go wygryźć. Dzięki mojej drobnej pomocy stali się nieszkodliwi.
AI_Output (other, self ,"DIA_Quentin_DRAX_15_12"); //W zamian otrzymałem od Skazy raport. Strażnicy świątynni pomagają ludziom Gomeza zabijać pełzacze w Starej Kopalni. Szukaja tam czegoś związanego z ich chorą religią.
AI_Output (other, self ,"DIA_Quentin_DRAX_15_13"); //Josh nie żyje. Ian dowiedział się o jego machlojkach i kazał go zabić. Zanim go pojmali udało mi się odnaleźć rudę, którą zdobył do tej pory.
AI_Output (other, self ,"DIA_Quentin_DRAX_15_14"); //Jest tego 450 bryłek rudy. Było więcej, ale pewien Kopacz wszedł w posiadanie tej sakwy i wykorzystał część rudy. Gość już gryzie piach. Oto sakiewka.
AI_Output (self, other ,"DIA_Quentin_DRAX_03_15"); //Dość, wystarczy... Jestem pod olbrzymim wrażeniem. Drax podjął dobrą decyzję. Daj mi chwilę pomyśleć. Musimy podjąć odpowiednie działania.
//B_LogEntry (CH1_BANDITOS_CAMP,"Udało mi dostać się do Quentina. Zanim zostanę przyjęty, muszę wykonać kilka zadań i przy okazji poprawić swoją opinię w Obozie.");
};
//========================================
//-----------------> JensIsKiller
//========================================
INSTANCE DIA_Quentin_JensIsKiller (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 10;
condition = DIA_Quentin_JensIsKiller_Condition;
information = DIA_Quentin_JensIsKiller_Info;
permanent = TRUE;
description = "Jens jest zabójcą.";
};
FUNC INT DIA_Quentin_JensIsKiller_Condition()
{
if (Npc_KnowsInfo (hero, DIA_Bandyta_TalkWithJens)) && (JensIsVictimOfKereth)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_JensIsKiller_Info()
{
AI_Output (other, self ,"DIA_Quentin_JensIsKiller_15_01"); //Jens jest zabójcą.
AI_Output (self, other ,"DIA_Quentin_JensIsKiller_03_02"); //O czym ty do cholery mówisz?
AI_Output (other, self ,"DIA_Quentin_JensIsKiller_15_03"); //Pomogłem ustalić Kerethowi kto zabił jego brata. Okazało się, że to Jens.
AI_Output (self, other ,"DIA_Quentin_JensIsKiller_03_04"); //Składasz dość poważne oskarżenia. Musisz mieć więc twarde dowody. Hmm?
AI_Output (other, self ,"DIA_Quentin_JensIsKiller_15_05"); //Na miejscu zbrodni i w pobliżu regularnie niszczonego grobu znalazłem odłamki miecza, który Pun sprzedał kiedyś Jensowi.
AI_Output (other, self ,"DIA_Quentin_JensIsKiller_15_06"); //Ostrze pokruszyło się, gdy Jens niszczył grób. Zrobił to, bo ma na pieńku z Kerethem...
AI_Output (self, other ,"DIA_Quentin_JensIsKiller_03_07"); //Tak się składa, że przed chwilą rozmawiałem z Jensem. Przedstawił mi swój punkt widzenia.
AI_Output (other, self ,"DIA_Quentin_JensIsKiller_15_08"); //Pewnie powiedział ci, że ktoś mu ukradł miecz. Zgadłem?
AI_Output (self, other ,"DIA_Quentin_JensIsKiller_03_09"); //Dokładnie to powiedział.
AI_Output (other, self ,"DIA_Quentin_JensIsKiller_15_10"); //Wierzysz w to?
AI_Output (self, other ,"DIA_Quentin_JensIsKiller_03_11"); //A niby dlaczego miałbym nie wierzyć? Kereth to niezły krętacz i wszyscy w Obozie dobrze o tym wiedzą.
AI_Output (other, self ,"DIA_Quentin_JensIsKiller_15_12"); //Myślę, że tym razem Kereth ma rację.
AI_Output (self, other ,"DIA_Quentin_JensIsKiller_03_13"); //I niestety się mylisz... Jens przedstawił kilka innych dowodów. Mianowicie, zarówno Doyle jak i jego zmiennik poświadczyli, że Jens nie opuszczał obozu w dniach, w których dokonano zbezczeszczenia grobu.
AI_Output (self, other ,"DIA_Quentin_JensIsKiller_03_14"); //Po drugie, Smith stwierdził, że w przeddzień zabójstwa był u niego Jens i prosił o pomoc w odszukaniu miecza.
AI_Output (self, other ,"DIA_Quentin_JensIsKiller_03_15"); //Po trzecie, Briam widział jak Kereth chowa miecz Jensa do swojej skrzyni uprzednio oczyszczając go z ziemi.
AI_Output (self, other ,"DIA_Quentin_JensIsKiller_03_16"); //To była zwyczajna intryga, chłopcze. Po prostu dałeś się oszukać. Jesteś młody, więc pewnie nie pierwszy i nie ostatni raz.
AI_Output (other, self ,"DIA_Quentin_JensIsKiller_15_17"); //W takim razie kto zabił Rayana?
AI_Output (self, other ,"DIA_Quentin_JensIsKiller_03_18"); //Nie mam pojęcia. Pewnie nigdy się tego nie dowiemy.
MIS_DestroyedGrave = LOG_FAILED;
Log_SetTopicStatus (CH1_DestroyedGrave, LOG_FAILED);
B_LogEntry (CH1_DestroyedGrave,"Okazało się, że zostałem oszukany przez Keretha. Jens był niewinny i Quentin przedstawił mi na to dowody. Kereth porpostu chciał się pozbyć Jensa z obozu i najpewniej zająć jego stanowisko. Chyba policzę się z tym oszustem.");
};
///////////////////////////////////////////////////////////////////////////////////////////
// Quentin
// Rozdział 1
// Przyłączenie do obozu
///////////////////////////////////////////////////////////////////////////////////////////
/*
//========================================
//-----------------> DOOBOZU
//========================================
INSTANCE DIA_Quentin_DOOBOZU (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 7;
condition = DIA_Quentin_DOOBOZU_Condition;
information = DIA_Quentin_DOOBOZU_Info;
permanent = FALSE;
description = "Co z moim przyjęciem?";
};
FUNC INT DIA_Quentin_DOOBOZU_Condition()
{
//DIA_Quentin_OreInMineITD probably doesn't work
if ((Npc_KnowsInfo (hero, DIA_Quentin_OreInMineITD)) || (MIS_OreInOM == LOG_SUCCESS)) && (Npc_GetTrueGuild(other) == GIL_NONE)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_DOOBOZU_Info()
{
AI_Output (other, self ,"DIA_Quentin_DOOBOZU_15_01"); //Co z moim przyjęciem?
AI_Output (self, other ,"DIA_Quentin_DOOBOZU_03_02"); //Odwaliłeś od cholery dobrej roboty.
AI_Output (self, other ,"DIA_Quentin_DOOBOZU_03_03"); //Witaj wśród Bandytów...
AI_Output (self, other ,"DIA_Quentin_DOOBOZU_03_04"); //Miło cię mieć po swojej stronie.
AI_Output (self, other ,"DIA_Quentin_DOOBOZU_03_07"); //Pamiętaj: dołączając do Bandytów, stajesz się nowym człowiekiem.
AI_Output (self, other ,"DIA_Quentin_DOOBOZU_03_08"); //Przeszłość się nie liczy. Szczególnie w tych czasach i w tym miejscu.
//guild and quest status
hero.guild = GIL_BAU;
Npc_SetTrueGuild (hero,GIL_BAU);
//HeroJoinToBAN ();
B_LogEntry (CH1_BANDITOS_CAMP,"Od teraz jestem Bandytą! Czekają na mnie nowe wyzwania.");
Log_SetTopicStatus (CH1_BANDITOS_CAMP, LOG_SUCCESS);
MIS_BANDITOS_CAMP = LOG_SUCCESS;
//esperience
B_GiveXP (XP_HeroJoinToBandit);
//logs other quests
Log_CreateTopic (CH1_JoinOC, LOG_MISSION);
Log_SetTopicStatus (CH1_JoinOC, LOG_FAILED);
B_LogEntry (CH1_JoinOC, "Bandyta nie może dołączyć do Starego Obozu!");
Log_CreateTopic (CH1_JoinPsi, LOG_MISSION);
Log_SetTopicStatus (CH1_JoinPsi, LOG_FAILED);
B_LogEntry (CH1_JoinPsi, "Bractwo będzie musiało radzić sobie beze mnie. Od dziś moim domem jest Obóz Bandytów!");
Log_CreateTopic (CH1_JoinNC, LOG_MISSION);
Log_SetTopicStatus (CH1_JoinNC, LOG_FAILED);
B_LogEntry (CH1_JoinNC, "Lares będzie musiał o mnie zapomnieć.");
Log_CreateTopic (CH1_EasyJoinOC, LOG_MISSION);
Log_SetTopicStatus (CH1_EasyJoinOC, LOG_FAILED);
B_LogEntry (CH1_EasyJoinOC, "Zostałem Bandytą. Nic nie wyszło z mojego ułatwionego przyjęcia do Starego Obozu.");
};
/* AI_Output (self, other ,"DIA_Quentin_DOOBOZU_03_09"); //Więc, jak chcesz się nazywać?
Info_ClearChoices (DIA_Quentin_DOOBOZU);
Info_AddChoice (DIA_Quentin_DOOBOZU, "Wołajcie na mnie Ostrze.", DIA_Quentin_DOOBOZU_BLADE);
Info_AddChoice (DIA_Quentin_DOOBOZU, "Chcę nazywać się Rozpruwacz.", DIA_Quentin_DOOBOZU_ROZPRUWACZ);
Info_AddChoice (DIA_Quentin_DOOBOZU, "Drag.", DIA_Quentin_DOOBOZU_DRAG);
Info_AddChoice (DIA_Quentin_DOOBOZU, "Them.", DIA_Quentin_DOOBOZU_THEM);
Info_AddChoice (DIA_Quentin_DOOBOZU, "Dorlas.", DIA_Quentin_DOOBOZU_DORLAS);
Info_AddChoice (DIA_Quentin_DOOBOZU, "Ragnir.", DIA_Quentin_DOOBOZU_RAGNIR);
};
FUNC VOID DIA_Quentin_DOOBOZU_BLADE()
{
AI_Output (other, self ,"DIA_Quentin_DOOBOZU_BLADE_15_01"); //Wołajcie na mnie Ostrze.
AI_Output (self, other ,"DIA_Quentin_DOOBOZU_BLADE_03_02"); //Rozumiem, że chcesz posiąść wiedze dotyczącą walki mieczem.
AI_Output (self, other ,"DIA_Quentin_DOOBOZU_BLADE_03_03"); //Niechaj tak bedzie. Od dzisiaj w bandzie mamy nowego człowieka - Ostrze.
Info_ClearChoices (DIA_Quentin_DOOBOZU);
AI_StopProcessInfos (self);
};
FUNC VOID DIA_Quentin_DOOBOZU_ROZPRUWACZ()
{
AI_Output (other, self ,"DIA_Quentin_DOOBOZU_ROZPRUWACZ_15_01"); //Chcę nazywać się Rozpruwacz.
AI_Output (self, other ,"DIA_Quentin_DOOBOZU_ROZPRUWACZ_03_02"); //Nie wyglądasz na taką bestie.
AI_Output (self, other ,"DIA_Quentin_DOOBOZU_ROZPRUWACZ_15_03"); //Witaj w bandzie - Rozpruwaczu.
Info_ClearChoices (DIA_Quentin_DOOBOZU);
AI_StopProcessInfos (self);
};
FUNC VOID DIA_Quentin_DOOBOZU_DRAG()
{
AI_Output (other, self ,"DIA_Quentin_DOOBOZU_DRAG_15_01"); //Drag.
AI_Output (other, self ,"DIA_Quentin_DOOBOZU_DRAG_15_02"); //Możemy nie rozmyslać nad znaczeniami imienia?
AI_Output (self, other ,"DIA_Quentin_DOOBOZU_DRAG_03_03"); //Krótkie i proste. Dobry wybór.
AI_Output (self, other ,"DIA_Quentin_DOOBOZU_DRAG_03_04"); //Witaj wśród Bandytów Drag.
Info_ClearChoices (DIA_Quentin_DOOBOZU);
AI_StopProcessInfos (self);
};
FUNC VOID DIA_Quentin_DOOBOZU_THEM()
{
AI_Output (other, self ,"DIA_Quentin_DOOBOZU_THEM_15_01"); //Them.
AI_Output (self, other ,"DIA_Quentin_DOOBOZU_THEM_03_02"); //Witaj wśród Bandytów - Them.
Info_ClearChoices (DIA_Quentin_DOOBOZU);
AI_StopProcessInfos (self);
};
FUNC VOID DIA_Quentin_DOOBOZU_DORLAS()
{
AI_Output (other, self ,"DIA_Quentin_DOOBOZU_DORLAS_15_01"); //Dorlas.
AI_Output (self, other ,"DIA_Quentin_DOOBOZU_DORLAS_03_02"); //Od teraz jesteś jednym z nas, Dorlasie.
Info_ClearChoices (DIA_Quentin_DOOBOZU);
AI_StopProcessInfos (self);
};
FUNC VOID DIA_Quentin_DOOBOZU_RAGNIR()
{
AI_Output (other, self ,"DIA_Quentin_DOOBOZU_RAGNIR_15_01"); //Ragnir.
AI_Output (self, other ,"DIA_Quentin_DOOBOZU_RAGNIR_03_02"); //Jesteś teraz jednym z Bandytów, Ragnir. Tak będziemy cię nazywać.
Info_ClearChoices (DIA_Quentin_DOOBOZU);
AI_StopProcessInfos (self);
};
*/
//========================================
//-----------------> EQ1
//========================================
INSTANCE DIA_Quentin_EQ1 (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 8;
condition = DIA_Quentin_EQ1_Condition;
information = DIA_Quentin_EQ1_Info;
permanent = FALSE;
description = "Czy dostanę broń i pancerz?";
};
FUNC INT DIA_Quentin_EQ1_Condition()
{
if (Npc_GetTrueGuild(other) == GIL_BAU) && (Npc_KnowsInfo (hero, DIA_Quentin_DOOBOZU))
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_EQ1_Info()
{
AI_Output (other, self ,"DIA_Quentin_EQ1_15_01"); //Czy dostanę broń i pancerz?
AI_Output (self, other ,"DIA_Quentin_EQ1_03_02"); //Tak. Proszę, oto one.
AI_Output (self, other ,"DIA_Quentin_EQ1_03_03"); //To jedyna broń jaką ci fundujemy. Na lepszy oręż będziesz musiał sam sobie zapracować. Pamiętaj, że z czasem musisz go zmieniać.
AI_Output (other, self ,"DIA_Quentin_EQ1_15_04"); //Dzięki. Na pewno nie zapomnę.
CreateInvItems (self, ItMw_1H_Mace_03, 1);
B_GiveInvItems (self, other, ItMw_1H_Mace_03, 1);
CreateInvItems (self, BAU_ARMOR_L, 1);
B_GiveInvItems (self, other, BAU_ARMOR_L, 1);
AI_EquipBestArmor (hero);
};
//========================================
//-----------------> EQ2
//========================================
INSTANCE DIA_Quentin_EQ2 (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 8;
condition = DIA_Quentin_EQ2_Condition;
information = DIA_Quentin_EQ2_Info;
permanent = 1;
description = "Potrzebuję lepszego pancerza.";
};
FUNC INT DIA_Quentin_EQ2_Condition()
{
if (Npc_GetTrueGuild(other) == GIL_BAU) && (Npc_KnowsInfo (hero, DIA_Quentin_DOOBOZU))
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_EQ2_Info()
{
AI_Output (other, self ,"DIA_Quentin_EQ2_15_01"); //Potrzebuję lepszego pancerza.
if (kapitel >= 3)
{
if (Npc_HasItems (hero, ItMiNugget)>=1800)
{
AI_Output (self, other ,"DIA_Quentin_EQ2_03_02"); //To dobry pancerz. Zasłużyłeś na niego.
B_GiveInvItems (hero, self, ItMiNugget, 1800);
CreateInvItems (self, BAU_ARMOR_M, 1);
B_GiveInvItems (self, other, BAU_ARMOR_M, 1);
AI_EquipBestArmor (hero);
DIA_Quentin_EQ2.permanent = 0;
}
else
{
AI_Output (self, other ,"DIA_Quentin_EQ2_03_03"); //Taki pancerz to nie byle co. Kosztuje 1800 bryłek rudy.
DIA_Quentin_EQ2.permanent = 1;
};
}
else
{
AI_Output (self, other ,"DIA_Quentin_EQ2_03_04"); //Nie zasłużyłeś jeszcze na ten pancerz.
DIA_Quentin_EQ2.permanent = 1;
};
};
///////////////////////////////////////////////////////////////////////////////////////////
// Quentin
// Rozdział 1
// Zadania dla bandyty
///////////////////////////////////////////////////////////////////////////////////////////
//========================================
//-----------------> QUEST4
//========================================
INSTANCE DIA_Quentin_QUEST4 (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 9;
condition = DIA_Quentin_QUEST4_Condition;
information = DIA_Quentin_QUEST4_Info;
permanent = FALSE;
description = "Co mam teraz robić?";
};
FUNC INT DIA_Quentin_QUEST4_Condition()
{
if (Npc_GetTrueGuild(other) == GIL_BAU) && (Npc_KnowsInfo (hero, DIA_Quentin_DOOBOZU))
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_QUEST4_Info()
{
AI_Output (other, self ,"DIA_Quentin_QUEST4_15_01"); //Co mam teraz robić?
AI_Output (self, other ,"DIA_Quentin_QUEST4_03_02"); //Chyba będziemy musieli zająć się tym Bractwem. Ta sprawa jest niepokojąca. Ale zanim porządnie weźmiemy się do roboty, to popracujesz trochę tutaj.
AI_Output (self, other ,"DIA_Quentin_QUEST4_03_03"); //Powiedziałeś, że Strażnicy z placu wymian chcieli wykorzystać mapę od tego Grahama do zaplanowania obrony... Dobrze, zobaczymy jak im to poszło.
AI_Output (self, other ,"DIA_Quentin_QUEST4_03_04"); //Idź do Doyla. Pójdziecie razem na plac wymian i podenerwujecie ludzi Gomeza. Rabując, przeglądaj skrzynie i zważaj na wszelkie dokumenty jakie w nich znajdziesz.
AI_Output (self, other ,"DIA_Quentin_QUEST4_03_05"); //Jeśli coś znajdziesz, przynieś do mnie. Zapamiętasz?
AI_Output (other, self ,"DIA_Quentin_QUEST4_15_06"); //Jasne.
MIS_Rozpierdol1 = LOG_RUNNING;
Log_CreateTopic (CH1_Rozpierdol1, LOG_MISSION);
Log_SetTopicStatus (CH1_Rozpierdol1, LOG_RUNNING);
B_LogEntry (CH1_Rozpierdol1,"Razem z Doylem wybieramy się na plac wymian, żeby podenerwować ludzi Gomeza. Doyle'a znajdę przy bramie do Obozu Bandytów. Podczas rabunku mam szukać dokumentów, które mogą leżeć w skrzyniach bądź przy Strażnikach.");
backDoyle1 = true;
};
//========================================
//-----------------> UKONCZONE
//========================================
INSTANCE DIA_Quentin_UKONCZONE (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 12;
condition = DIA_Quentin_UKONCZONE_Condition;
information = DIA_Quentin_UKONCZONE_Info;
permanent = false;
description = "Byliśmy z Doyle'm na placu wymian.";
};
FUNC INT DIA_Quentin_UKONCZONE_Condition()
{
if (Npc_KnowsInfo (hero, DIA_Raeuber_SPADAMY)) && (MIS_Rozpierdol1 == LOG_RUNNING)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_UKONCZONE_Info()
{
AI_Output (other, self ,"DIA_Quentin_UKONCZONE_15_01"); //Byliśmy z Doyle'm na placu wymian.
AI_Output (self, other ,"DIA_Quentin_UKONCZONE_03_02"); //To świetnie! Jak poszło? Znalazłeś dokumenty?
if (Npc_HasItems (other, itmi_plac_doc1) >=1) && (Npc_HasItems (other, itmi_plac_doc2) >=1) && (Npc_HasItems (other, itmi_plac_doc3) >=1)
&& (Npc_HasItems (other, itmi_plac_doc4) >=1)
{
AI_Output (other, self ,"DIA_Quentin_UKONCZONE_15_03"); //Tak, weź je. Co teraz mam robić?
AI_Output (self, other ,"DIA_Quentin_UKONCZONE_03_04"); //Wysłałem już jednego z naszych do Bractwa jako szpiega.
AI_Output (self, other ,"DIA_Quentin_UKONCZONE_03_05"); //Powinien wkrótce wrócić. Tymczasem mam dla ciebie jeszcze jedno zadanie.
AI_Output (other, self ,"DIA_Quentin_UKONCZONE_15_06"); //Co tym razem?
AI_Output (self, other ,"DIA_Quentin_UKONCZONE_03_07"); //Podobno Gomez wysyła jakiś transport do Starej Kopalni.
AI_Output (self, other ,"DIA_Quentin_UKONCZONE_03_08"); //Myślę, że to dobra okazja na atak.
AI_Output (self, other ,"DIA_Quentin_UKONCZONE_03_09"); //Rocky zajmuje się tą akcją. Idź do niego i powiedz, że kazałem ci mu pomóc.
DIA_Quentin_UKONCZONE.permanent = false;
MIS_Rozpierdol2 = LOG_RUNNING;
Log_CreateTopic (CH1_Rozpierdol2, LOG_MISSION);
Log_SetTopicStatus (CH1_Rozpierdol2, LOG_RUNNING);
B_LogEntry (CH1_Rozpierdol2,"Tym razem muszę iść do Rockiego z którym mam zaatakować konwój ze Starego Obozu. Rocky mieszka w tej samej chacie co Quentin.");
B_LogEntry (CH1_Rozpierdol1,"Poinformowałem Quentina o pomyślnie przeprowadzonym ataku i oddałem mu dokumenty.");
Log_SetTopicStatus (CH1_Rozpierdol1, LOG_SUCCESS);
MIS_Rozpierdol1 = LOG_SUCCESS;
B_GiveInvItems (other, self,itmi_plac_doc1,1);
B_GiveInvItems (other, self,itmi_plac_doc2,1);
B_GiveInvItems (other, self,itmi_plac_doc3,1);
B_GiveInvItems (other, self,itmi_plac_doc4,1);
}
else
{
AI_Output (other, self ,"DIA_Quentin_UKONCZONE_15_10"); //Wiesz, nie jestem jeszcze pewien. Poszukam jeszcze.
DIA_Quentin_UKONCZONE.permanent = true;
};
//AI_StopProcessInfos (self);
};
//========================================
//-----------------> POATAKU
//========================================
INSTANCE DIA_Quentin_POATAKU (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 13;
condition = DIA_Quentin_POATAKU_Condition;
information = DIA_Quentin_POATAKU_Info;
permanent = FALSE;
description = "Zaatakowaliśmy konwój.";
};
FUNC INT DIA_Quentin_POATAKU_Condition()
{
if (Npc_KnowsInfo (hero, DIA_Rocky_WIN_O)) && (Npc_HasItems (hero, eq_z_napadu1) >=1) && (Npc_HasItems (hero, eq_z_napadu2) >=1) && (Npc_HasItems (hero, eq_z_napadu3) >=1)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_POATAKU_Info()
{
AI_Output (other, self ,"DIA_Quentin_POATAKU_15_01"); //Zaatakowaliśmy konwój.
AI_Output (self, other ,"DIA_Quentin_POATAKU_03_02"); //Świetnie. Rozumiem, że wam się udało.
AI_Output (self, other ,"DIA_Quentin_POATAKU_03_03"); //Zajmę się ekwipunkiem. Przesortuję go i oddam Martinowi.
B_LogEntry (CH1_Rozpierdol2,"Quentin był bardzo zadowolony z naszych osiągnięć. Przyjął ode mnie rzeczy z dostawy do Starej Kopalni.");
MIS_Rozpierdol2 = LOG_SUCCESS;
Log_SetTopicStatus (CH1_Rozpierdol2, LOG_SUCCESS);
B_GiveInvItems (other, self, eq_z_napadu1, 1);
B_GiveInvItems (other, self, eq_z_napadu2, 1);
B_GiveInvItems (other, self, eq_z_napadu3, 1);
/*if (Npc_HasItems (hero, eq_z_napadu1) >=1)
{
B_GiveInvItems (other, self, eq_z_napadu1, 1);
}
else if (Npc_HasItems (other, ItFoLoaf) >=20) && (Npc_HasItems (other, ItFoApple) >=30) && (Npc_HasItems (other, ItFoCheese) >=10)
{
B_GiveInvItems (other, self, ItFoLoaf, 20);
B_GiveInvItems (other, self, ItFoApple, 30);
B_GiveInvItems (other, self, ItFoCheese, 10);
};
if (Npc_HasItems (other, eq_z_napadu2) >=1)
{
B_GiveInvItems (other, self, eq_z_napadu2, 1);
}
else if (Npc_HasItems (other, ItMiScoop) >=1) && (Npc_HasItems (other, ItMiBrush) >=1) && (Npc_HasItems (other, ItMwPickaxe) >=5) && (Npc_HasItems (other, ItMiHammer) >=3)
{
B_GiveInvItems (other, self, ItMiScoop, 1);
B_GiveInvItems (other, self, ItMiBrush, 1);
B_GiveInvItems (other, self, ItMwPickaxe, 5);
B_GiveInvItems (other, self, ItMiHammer, 3);
};
var int eq3_many;
eq3_many =
if (Npc_HasItems (other, eq_z_napadu3) >=1)
{
B_GiveInvItems (other, self, eq_z_napadu3, 1);
}
else if (Npc_HasItems (other, ItMiJoint_1) >=10) && (Npc_HasItems (other, ItMiJoint_2) >=10) && (Npc_HasItems (other, ItMiJoint_3) >=10)
{
B_GiveInvItems (other, self, ItMiJoint_1, 10);
B_GiveInvItems (other, self, ItMiJoint_2, 10);
B_GiveInvItems (other, self, ItMiJoint_3, 10);
};*/
};
//========================================
//-----------------> QUEST5
//========================================
INSTANCE DIA_Quentin_QUEST5 (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 11;
condition = DIA_Quentin_QUEST5_Condition;
information = DIA_Quentin_QUEST5_Info;
permanent = FALSE;
description = "Masz dla mnie jeszcze jakieś zadanie?";
};
FUNC INT DIA_Quentin_QUEST5_Condition()
{
if (Npc_GetTrueGuild(other) == GIL_BAU) && (Npc_KnowsInfo (hero, DIA_Quentin_DOOBOZU))
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_QUEST5_Info()
{
AI_Output (other, self ,"DIA_Quentin_QUEST5_15_01"); //Masz dla mnie jeszcze jakieś zadanie?
AI_Output (self, other ,"DIA_Quentin_QUEST5_03_02"); //Wiesz przecież, że zawsze coś się znajdzie...
AI_Output (self, other ,"DIA_Quentin_QUEST5_03_03"); //Ostatnio wysłaliśmy kilku Bandytów po dostawę z Nowego Obozu, jednak do dziś nie wrócili.
AI_Output (self, other ,"DIA_Quentin_QUEST5_03_04"); //Przypuszczam, że schowali się w jakiejś jaskini z towarem i ani myślą wracać.
AI_Output (self, other ,"DIA_Quentin_QUEST5_03_05"); //Znajdź ich i przynieś stal, która nieśli. Było tego ze 30 prętów.
MIS_BanditCave = LOG_RUNNING;
Log_CreateTopic (CH1_BanditCave, LOG_MISSION);
Log_SetTopicStatus (CH1_BanditCave, LOG_RUNNING);
B_LogEntry (CH1_BanditCave,"Quentin kazał mi znaleźć Bandytów, którzy mieli przynieść dostawę stali z Nowego Obozu.");
};
//========================================
//-----------------> FindIron
//========================================
INSTANCE DIA_Quentin_FindIron (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_FindIron_Condition;
information = DIA_Quentin_FindIron_Info;
permanent = FALSE;
description = "Znalazłem stal.";
};
FUNC INT DIA_Quentin_FindIron_Condition()
{
if (Npc_HasItems (other, ItQt_IronPack) >=1) && (MIS_BanditCave == LOG_RUNNING)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_FindIron_Info()
{
AI_Output (other, self ,"DIA_Quentin_FindIron_15_01"); //Znalazłem stal.
AI_Output (other, self ,"DIA_Quentin_FindIron_15_02"); //Było tak, jak myślałeś.
AI_Output (other, self ,"DIA_Quentin_FindIron_15_03"); //Ukryli się w jaskini przy Nowym Obozie, a stal zamknęli w skrzyni.
AI_Output (self, other ,"DIA_Quentin_FindIron_03_04"); //Daj mi tę stal.
AI_Output (self, other ,"DIA_Quentin_FindIron_03_05"); //Dobra robota.
B_GiveInvItems (other, self, ItQt_IronPack, 1);
B_LogEntry (CH1_BanditCave,"Znalezioną w skrzyni stal przyniosłem Quentinowi.");
Log_SetTopicStatus (CH1_BanditCave, LOG_SUCCESS);
MIS_BanditCave = LOG_SUCCESS;
B_GiveXP (XP_DostawaDoNO);
};
//========================================
//-----------------> SzpeszialQuest
//========================================
INSTANCE DIA_Quentin_SzpeszialQuest (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_SzpeszialQuest_Condition;
information = DIA_Quentin_SzpeszialQuest_Info;
permanent = FALSE;
description = "Masz dla mnie jakieś specjalne zadanie?";
};
FUNC INT DIA_Quentin_SzpeszialQuest_Condition()
{
if (Npc_GetTrueGuild(other) == GIL_BAU) && (Npc_KnowsInfo (hero, DIA_Quentin_DOOBOZU))
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_SzpeszialQuest_Info()
{
AI_Output (other, self ,"DIA_Quentin_SzpeszialQuest_15_01"); //Masz dla mnie jakieś specjalne zadanie?
AI_Output (self, other ,"DIA_Quentin_SzpeszialQuest_03_02"); //Jest coś takiego.
AI_Output (other, self ,"DIA_Quentin_SzpeszialQuest_15_03"); //Co mam zrobić?
AI_Output (self, other ,"DIA_Quentin_SzpeszialQuest_03_04"); //Magnaci są w posiadaniu kilku pierścieni. Ponoć te pierścienie mają magiczną moc.
AI_Output (self, other ,"DIA_Quentin_SzpeszialQuest_03_05"); //Ale nie obchodzi mnie to. Wiem, że są bardzo cenne.
AI_Output (self, other ,"DIA_Quentin_SzpeszialQuest_03_06"); //Ci idioci ze Starego Obozu sporo nam za nie zapłacą.
AI_Output (other, self ,"DIA_Quentin_SzpeszialQuest_15_07"); //Mam ukraść pierścienie i przynieść je do ciebie?
AI_Output (self, other ,"DIA_Quentin_SzpeszialQuest_03_08"); //Tak. Pogadaj z Miguelem. To nasz człowiek w Obozie. Znajdziesz go na targowisku.
AI_Output (self, other ,"DIA_Quentin_SzpeszialQuest_03_09"); //Gość zna Stary Obóz jak własną kieszeń.
AI_Output (other, self ,"DIA_Quentin_SzpeszialQuest_15_10"); //Dobra. Postaram się przynieść ci te pierścienie jak najszybciej.
MIS_BaronsRings = LOG_RUNNING;
Log_CreateTopic (CH1_BaronsRings, LOG_MISSION);
Log_SetTopicStatus (CH1_BaronsRings, LOG_RUNNING);
B_LogEntry (CH1_BaronsRings,"Quentin kazał mi odszukać wszystkie magiczne pierścienie należące do Magnatów. Pomóc mi w tym ma Miguel. ");
AI_StopProcessInfos (self);
};
//========================================
//-----------------> HELLORINGS
//========================================
INSTANCE DIA_Quentin_HELLORINGS (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_HELLORINGS_Condition;
information = DIA_Quentin_HELLORINGS_Info;
permanent = FALSE;
description = "Mam pierścienie.";
};
FUNC INT DIA_Quentin_HELLORINGS_Condition()
{
if (MIS_BaronsRings == LOG_RUNNING)
&& (Npc_HasItems (other, EBR_Ring1) >=1)
&& (Npc_HasItems (other, EBR_Ring2) >=1)
&& (Npc_HasItems (other, EBR_Ring3) >=1)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_HELLORINGS_Info()
{
AI_Output (other, self ,"DIA_Quentin_HELLORINGS_15_01"); //Mam pierścienie.
AI_Output (self, other ,"DIA_Quentin_HELLORINGS_03_02"); //Wiedziałem, że ci się uda.
AI_Output (self, other ,"DIA_Quentin_HELLORINGS_03_03"); //Te pierścienie z pewnością się nam przydadzą.
AI_Output (other, self ,"DIA_Quentin_HELLORINGS_15_04"); //Co chcesz z nimi zrobić?
AI_Output (self, other ,"DIA_Quentin_HELLORINGS_03_05"); //Mam kilka pomysłów, ale muszę to jeszcze przemyśleć.
AI_Output (self, other ,"DIA_Quentin_HELLORINGS_03_06"); //Tymczasem weź swoją rudę.
B_LogEntry (CH1_BaronsRings,"Oddałem skardzione pierścienie Quentinowi.");
Log_SetTopicStatus (CH1_BaronsRings, LOG_SUCCESS);
MIS_BaronsRings = LOG_SUCCESS;
B_GiveXP (XP_EBR_Rings);
B_GiveInvItems (hero,self, EBR_Ring1, 1);
B_GiveInvItems (hero,self, EBR_Ring2, 1);
B_GiveInvItems (hero,self, EBR_Ring3, 1);
//PrintScreen ("3 przedmioty oddane", -1,_YPOS_MESSAGE_GIVEN,"FONT_OLD_20_WHITE.TGA",_TIME_MESSAGE_GIVEN);
CreateInvItems (self, ItMiNugget, 300);
B_GiveInvItems (self, other, ItMiNugget, 300);
AI_StopProcessInfos (self);
};
//========================================
//-----------------> BRACTWO1
//========================================
INSTANCE DIA_Quentin_BRACTWO1 (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 14;
condition = DIA_Quentin_BRACTWO1_Condition;
information = DIA_Quentin_BRACTWO1_Info;
permanent = FALSE;
description = "Co z Bractwem?";
};
FUNC INT DIA_Quentin_BRACTWO1_Condition()
{
if (MIS_Rozpierdol2 == LOG_SUCCESS)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_BRACTWO1_Info()
{
AI_Output (other, self ,"DIA_Quentin_BRACTWO1_15_01"); //Co z Bractwem?
AI_Output (self, other ,"DIA_Quentin_BRACTWO1_03_02"); //Dobrze, że mi przypomniałeś. Szpieg powrócił.
AI_Output (self, other ,"DIA_Quentin_BRACTWO1_03_03"); //Y'Berion szuka kogoś, kto odnajdzie dla niego jakiś stary artefakt.
AI_Output (self, other ,"DIA_Quentin_BRACTWO1_03_04"); //Poszukuje najemników, ponieważ nikt z Bractwa nie dał rady.
AI_Output (self, other ,"DIA_Quentin_BRACTWO1_03_05"); //Wysłali chyba jakiegoś Nowicjusza. Nuras, czy jakiś tam...
AI_Output (self, other ,"DIA_Quentin_BRACTWO1_03_06"); //Ale do rzeczy. Za odnalezienie kamienia daje 2000 bryłek rudy.
AI_Output (self, other ,"DIA_Quentin_BRACTWO1_03_07"); //To bardzo dużo.
AI_Output (self, other ,"DIA_Quentin_BRACTWO1_03_08"); //Idź do Bractwa i przyjmij tę robotę. Przy okazji będziesz mógł tam powęszyć.
AI_Output (self, other ,"DIA_Quentin_BRACTWO1_03_09"); //Jeżeli odnajdziesz kamień i dostaniesz nagrodę, to podzielimy się rudą.
/* AI_Output (other, self ,"DIA_Quentin_BRACTWO1_15_10"); //Jeżeli odnajdę kamień, to ta ruda będzie moja.
AI_Output (self, other ,"DIA_Quentin_BRACTWO1_03_11"); //Zapamiętaj sobie coś, chłopcze. Bandyci wszystkim się dzielą.
AI_Output (self, other ,"DIA_Quentin_BRACTWO1_03_12"); //Pracujesz dla siebie i dla nas. Rozumiesz?
AI_Output (other, self ,"DIA_Quentin_BRACTWO1_15_13"); //Teraz, tak.
AI_Output (self, other ,"DIA_Quentin_BRACTWO1_03_14"); //Więc idź już.*/
MIS_PSIcampWORK = LOG_RUNNING;
Log_CreateTopic (CH1_PSIcampWORK, LOG_MISSION);
Log_SetTopicStatus (CH1_PSIcampWORK, LOG_RUNNING);
B_LogEntry (CH1_PSIcampWORK,"Mam udać się do obozu na bagnie i przyjąć pracę od Y'Beriona. Chodzi o odnalezienie jakiegoś kamienia. Zadanie powinno być dziecinnie proste. Za zlecenie mam otrzymać 2000 bryłek rudy, które zwrócę Quentinowi.");
AI_StopProcessInfos (self);
};
//========================================
//-----------------> GOLDY
//========================================
INSTANCE DIA_Quentin_GOLDY (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 15;
condition = DIA_Quentin_GOLDY_Condition;
information = DIA_Quentin_GOLDY_Info;
permanent = FALSE;
description = "Mam rudę.";
};
FUNC INT DIA_Quentin_GOLDY_Condition()
{
if (MIS_PSIcampWORK == LOG_RUNNING)
&& (Npc_KnowsInfo (hero, DIA_Yberion_KASADZIADU))
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_GOLDY_Info()
{
if (Npc_HasItems(other, ItMiNugget) >= 2000)
{
AI_Output (other, self ,"DIA_Quentin_GOLDY_15_01"); //Mam rudę.
AI_Output (self, other ,"DIA_Quentin_GOLDY_03_02"); //Czyli udało ci się wykonać zadanie?
AI_Output (other, self ,"DIA_Quentin_GOLDY_15_03"); //Tak. Odnalazłem kamień ogniskujący.
AI_Output (self, other ,"DIA_Quentin_GOLDY_03_04"); //A ustaliłeś już fakty?
AI_Output (other, self ,"DIA_Quentin_GOLDY_15_05"); //Pracuję nad tym.
AI_Output (self, other ,"DIA_Quentin_GOLDY_03_06"); //Oto twoja działka.
B_LogEntry (CH1_PSIcampWORK,"Oddałem rudę za zlecenie Quentinowi. Uzyskałem 500 bryłek wynagrodzenia.");
B_GiveXP (XP_HelpGUR);
B_GiveInvItems (other, self, ItMiNugget, 2000);
CreateInvItems (self, ItMiNugget, 500);
B_GiveInvItems (self, other, ItMiNugget, 500);
DIA_Quentin_GOLDY.permanent = false;
} else {
AI_Output (other, self ,"DIA_Quentin_GOLDY_15_07"); //Mam rudę.
AI_Output (self, other ,"DIA_Quentin_GOLDY_03_08"); //Jesteś pewien, że jest tu tyle ile potrzeba? Chyba nie przepiłeś NASZEJ rudy?!
DIA_Quentin_GOLDY.permanent = true;
};
};
///////////////////////////////////////////////////////////////////////////////////////////
// Quentin
// Rozdział 1
// Różne dialogi
///////////////////////////////////////////////////////////////////////////////////////////
//========================================
//-----------------> Zdrada
//========================================
INSTANCE DIA_Quentin_Zdrada (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_Zdrada_Condition;
information = DIA_Quentin_Zdrada_Info;
permanent = FALSE;
Important = TRUE;
};
FUNC INT DIA_Quentin_Zdrada_Condition()
{
if (Npc_KnowsInfo (hero, DIA_THORUS_HahahaSpierdalaj))
&& C_NpcBelongsToOldCamp(hero)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_Zdrada_Info()
{
AI_Output (self, other ,"DIA_Quentin_Zdrada_03_01"); //Zdradziłeś nas. Uwierzyliśmy, że chcesz być jednym z nas.
AI_Output (self, other ,"DIA_Quentin_Zdrada_03_02"); //Powinniśmy się na ciebie rzucić, ale pamiętamy co dla nas robiłeś.
AI_Output (self, other ,"DIA_Quentin_Zdrada_03_03"); //Odejdź i już nigdy więcej się tu nie zjawiaj.
AI_StopProcessInfos (self);
};
///////////////////////////////////////////////////////////////////////////////////////////
// Quentin
// Rozdział 2
// Zadania poboczne
///////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////
// Quentin
// Rozdział 3
// Wątek główny
///////////////////////////////////////////////////////////////////////////////////////////
//========================================
//-----------------> HELLO112
//========================================
INSTANCE DIA_Quentin_HELLO112 (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 16;
condition = DIA_Quentin_HELLO112_Condition;
information = DIA_Quentin_HELLO112_Info;
permanent = FALSE;
description = "Ustaliłem fakty!";
};
FUNC INT DIA_Quentin_HELLO112_Condition()
{
if (Npc_KnowsInfo (hero, DIA_Asghan_SZPIEG2))
&& (Npc_KnowsInfo (hero, DIA_GorNaBar_SZPIEG))
&& (MIS_PSIcampWORK == LOG_RUNNING)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_HELLO112_Info()
{
AI_Output (other, self ,"DIA_Quentin_HELLO112_15_01"); //Byłem w Starej Kopalni. Strażnicy dostają rudę w zamian za zabijanie pełzaczy.
AI_Output (other, self ,"DIA_Quentin_HELLO112_15_02"); //Ludzie z Bractwa szukają u pełzaczy czegoś szczególnego.
AI_Output (other, self ,"DIA_Quentin_HELLO112_15_03"); //Dziwnym trafem udało mi się wplątać w tę sprawę.
AI_Output (other, self ,"DIA_Quentin_HELLO112_15_04"); //Potrzebna była im silniejsza wydzielina, jednak szukali jej w złym miejscu.
AI_Output (other, self ,"DIA_Quentin_HELLO112_15_05"); //Podjąłem się dla Cor Kaloma odnalezienia tego czegoś, tej wydzieliny.
AI_Output (other, self ,"DIA_Quentin_HELLO112_15_06"); //Przyniosłem mu jaja królowej pełzaczy, o czym pewnie już wiesz.
AI_Output (self, other ,"DIA_Quentin_HELLO112_03_07"); //Jestem pełen podziwu dla twoich czynów, ale opowiedz jeszcze o tym kontrakcie.
AI_Output (other, self ,"DIA_Quentin_HELLO112_15_08"); //Zasada była prosta. Za pomoc Stary Obóz dostawał ziele.
//AI_Output (other, self ,"DIA_Quentin_HELLO112_15_09"); //Pewnie większość przepalili, a część sprzedali do Nowego Obozu.
AI_Output (self, other ,"DIA_Quentin_HELLO112_03_10"); //Nie dość, że Strażnicy Świątynni pomagają Gomezowi w tępieniu pełzaczy, to jeszcze płacą mu za to, że jego Strażnicy robią to samo.
AI_Output (self, other ,"DIA_Quentin_HELLO112_03_11"); //Weź tę rudę. Spisałeś się.
//quest log
B_LogEntry (CH1_PSIcampWORK,"Zdałem szczegółowy raport Quentinowi. Wydaję mi się jednak, że to jeszcze nie koniec zawirowań związanych z Bractwem i Starym Obozem..");
Log_SetTopicStatus (CH1_PSIcampWORK, LOG_SUCCESS);
MIS_PSIcampWORK = LOG_SUCCESS;
//prize
B_GiveInvItems (other, self, ItMiNugget, 130);
CreateInvItems (self, ItMiNugget, 130);
B_GiveXP (XP_JobInOldMine);
};
//========================================
//-----------------> LOSY
//========================================
INSTANCE DIA_Quentin_LOSY (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 17;
condition = DIA_Quentin_LOSY_Condition;
information = DIA_Quentin_LOSY_Info;
permanent = FALSE;
description = "Co dalej z Bandytami?";
};
FUNC INT DIA_Quentin_LOSY_Condition()
{
if (MIS_PSIcampWORK == LOG_SUCCESS)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_LOSY_Info()
{
AI_Output (other, self ,"DIA_Quentin_LOSY_15_01"); //Co dalej z Bandytami?
AI_Output (self, other ,"DIA_Quentin_LOSY_03_02"); //Nie wiem, chłopcze. Ostatnie wydarzenia napełniły mnie niepokojem. Obawiam się o to, co dzieje się w Bractwie.
AI_Output (self, other ,"DIA_Quentin_LOSY_03_03"); //Cóż, pozostaje nam czekać na rozwój wydarzeń.
/* AI_Output (other, self ,"DIA_Quentin_LOSY_15_04"); //Tak więc zrobimy, a nawet choćby Gomez przybył pod Obóz to stawimy mu opór.
AI_Output (self, other ,"DIA_Quentin_LOSY_03_05"); //Tego się właśnie obawiam...*/
};
//========================================
//-----------------> BractwoNews
//========================================
INSTANCE DIA_Quentin_BractwoNews (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 34;
condition = DIA_Quentin_BractwoNews_Condition;
information = DIA_Quentin_BractwoNews_Info;
permanent = FALSE;
description = "Przynoszę wieści z Bractwa.";
};
FUNC INT DIA_Quentin_BractwoNews_Condition()
{
if (Npc_KnowsInfo (hero, Info_CorAngar_FindHerb_Success))
&& (Npc_GetTrueGuild(hero) == GIL_BAU)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_BractwoNews_Info()
{
AI_Output (other, self ,"DIA_Quentin_BractwoNews_15_01"); //Przynoszę wieści z Bractwa.
AI_Output (self, other ,"DIA_Quentin_BractwoNews_03_02"); //Co się tam dzieje? Długo cię nie było.
AI_Output (other, self ,"DIA_Quentin_BractwoNews_15_03"); //Y'Berion nie żyje. Zginął podczas próby przywołania Śniącego.
AI_Output (other, self ,"DIA_Quentin_BractwoNews_15_04"); //Cor Angar dowodzi teraz Bractwem. Mam udać się do Nowego Obozu i za wszelką cenę pomóc Magom Wody.
AI_Output (self, other ,"DIA_Quentin_BractwoNews_03_05"); //Ta cała sytuacja zaczyna mnie niepokoić. Czyżby ucieczka z tej piekielnej krainy była już blisko?
AI_Output (other, self ,"DIA_Quentin_BractwoNews_15_06"); //Nie mam pojęcia, ale będę się starał abyśmy uciekli stąd jak najprędzej.
//experience
B_GiveXP (XP_YBerionDeath);
};
//========================================
//-----------------> HELLO1
//========================================
INSTANCE DIA_Quentin_HELLO1 (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 18;
condition = DIA_Quentin_HELLO1_Condition;
information = DIA_Quentin_HELLO1_Info;
permanent = FALSE;
description = "Cor Angar wysłał mnie do Nowego Obozu.";
};
FUNC INT DIA_Quentin_HELLO1_Condition()
{
if (CorAngar_SendToNC==TRUE) && (Npc_GetTrueGuild(hero) == GIL_BAU) //***FIX****
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_HELLO1_Info()
{
AI_Output (other, self ,"DIA_Quentin_HELLO1_15_01"); //Cor Angar wysłał mnie do Nowego Obozu.
AI_Output (self, other ,"DIA_Quentin_HELLO1_03_02"); //W jakim celu?
AI_Output (other, self ,"DIA_Quentin_HELLO1_15_03"); //Jedyną nadzieją na ucieczkę z Kolonii wydaje się być plan Magów Wody.
AI_Output (self, other ,"DIA_Quentin_HELLO1_03_04"); //Chyba nie mamy wyboru. Musisz spróbować. Marwti mnie tylko jedna rzecz...
AI_Output (other, self ,"DIA_Quentin_HELLO1_15_05"); //Jaka?
AI_Output (self, other ,"DIA_Quentin_HELLO1_03_06"); //Chodzi o Cor Kaloma. To niebezpieczny człowiek.
AI_Output (other, self ,"DIA_Quentin_HELLO1_15_07"); //Kalom wyrzekł się Bractwa. Guru uświadomili sobie, że Śniący nie jest tym, za kogo był uważany. Ponoć to prastary demon.
AI_Output (other, self ,"DIA_Quentin_HELLO1_15_08"); //Cor Kalom nie chciał w to wierzyć i odszedł z Obozu.
AI_Output (self, other ,"DIA_Quentin_HELLO1_03_09"); //Wiesz może dokąd się udał?
AI_Output (other, self ,"DIA_Quentin_HELLO1_15_10"); //Nie mam pojęcia.
AI_Output (self, other ,"DIA_Quentin_HELLO1_03_11"); //Przypuszczam, ze udali się w nieznane nam tereny - na orkowe ziemie.
AI_Output (self, other ,"DIA_Quentin_HELLO1_03_12"); //Jest tam mały obóz zapaleńców, zwanych łowcami orków.
AI_Output (self, other ,"DIA_Quentin_HELLO1_03_13"); //Mamy z nimi dobre kontakty. Niejednokrotnie handlowaliśmy.
AI_Output (self, other ,"DIA_Quentin_HELLO1_03_14"); //Idź do nich i wypytaj o Kaloma. Możliwe, że go widzieli.
AI_Output (other, self ,"DIA_Quentin_HELLO1_15_15"); //Dlaczego to takie ważne?
AI_Output (self, other ,"DIA_Quentin_HELLO1_03_16"); //Kalom jest dla nas zagrożeniem. Może ściągnąć na nas wszystkich zgubę.
//AI_Output (other, self ,"DIA_Quentin_HELLO1_15_17"); //Pójdę do tych łowców orków.
//log
MIS_SearchKalom = LOG_RUNNING;
Log_CreateTopic (CH3_SearchKalom, LOG_MISSION);
Log_SetTopicStatus (CH3_SearchKalom, LOG_RUNNING);
B_LogEntry (CH3_SearchKalom,"Cor Kalom uciekł z Bractwa. Quentin uważa, że to niebezpieczny człowiek. Muszę udać się do obozu łowców orków i wypytać o to czy nie widzieli gdzieś tego świra.");
};
//========================================
//-----------------> Kalom2
//========================================
INSTANCE DIA_Quentin_Kalom2 (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_Kalom2_Condition;
information = DIA_Quentin_Kalom2_Info;
permanent = FALSE;
description = "Kalom udał się do miasta orków.";
};
FUNC INT DIA_Quentin_Kalom2_Condition()
{
if (Npc_KnowsInfo (hero, DIA_SZEFU_SectTeam))
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_Kalom2_Info()
{
AI_Output (other, self ,"DIA_Quentin_Kalom2_15_01"); //Kalom, wraz z kilkoma Strażnikami Świątynnymi udał się do Miasta Orków.
AI_Output (other, self ,"DIA_Quentin_Kalom2_15_02"); //Łowcy orków ostatni raz widzieli go przy bagnie i tajemniczej wieży.
AI_Output (self, other ,"DIA_Quentin_Kalom2_03_03"); //Cholera, co ten świr może planować?
AI_Output (self, other ,"DIA_Quentin_Kalom2_03_04"); //Cóż... Pozostaje nam tylko mieć nadzieję, że orkowie zrobią z nim porządek zanim zrobi coś głupiego.
//log
B_LogEntry (CH3_SearchKalom,"Powiedziałem Quentinowi, że łowcy orków widzieli Kaloma, który prawdopodobnie udał się na ziemie orków. Pozostaje nam mieć nadzieję, że szalony Guru nie zrobi nic głupiego.");
Log_SetTopicStatus (CH3_SearchKalom, LOG_SUCCESS);
MIS_SearchKalom = LOG_SUCCESS;
//experience
B_GiveXP (XP_AboutKalom);
//prize
CreateInvItems (self, ItMiNugget, 50);
B_GiveInvItems (self, other, ItMiNugget, 50);
};
///////////////////////////////////////////////////////////////////////////////////////////
// Quentin
// Rozdział 4
// Wątek główny
///////////////////////////////////////////////////////////////////////////////////////////
//========================================
//-----------------> HELLO35
//========================================
INSTANCE DIA_Quentin_HELLO35 (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 35;
condition = DIA_Quentin_HELLO35_Condition;
information = DIA_Quentin_HELLO35_Info;
permanent = FALSE;
description = "Gomez wymordował wszystkich Magów Ognia!";
};
FUNC INT DIA_Quentin_HELLO35_Condition()
{
if (Npc_KnowsInfo (hero, Info_Diego_OCWARN))
&& (Npc_GetTrueGuild(hero) == GIL_BAU)
&& (MIS_NewDanger != LOG_SUCCESS)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_HELLO35_Info()
{
AI_Output (other, self ,"DIA_Quentin_HELLO35_15_01"); //Gomez wymordował wszystkich Magów Ognia!
AI_Output (self, other ,"DIA_Quentin_HELLO35_03_02"); //Co? Jak to się stało?! Dopiero co dowiedziałem się o problemach w Starej Kopalni.
AI_Output (other, self ,"DIA_Quentin_HELLO35_15_03"); //Po zawaleniu się kopalni Gomez wpadł w szał. Jego przyszłość jako szefa jest krucha.
AI_Output (other, self ,"DIA_Quentin_HELLO35_15_04"); //Wysłał oddział Strażników, którzy mają poprzez sekretną ścieżkę przez góry dotrzeć do Wolnej Kopalni i zająć ją!
AI_Output (other, self ,"DIA_Quentin_HELLO35_15_05"); //Nikt nie ma wstępu do Starego Obozu, a co więcej Strażnicy i atakują każdego, kto nie nosi na sobie czerwonego pancerza.
AI_Output (self, other ,"DIA_Quentin_HELLO35_03_06"); //Żałosny akt desperacji. To w jego stylu. Ale że nie oszczędził nawet Magów? Hmm...
AI_Output (other, self ,"DIA_Quentin_HELLO35_15_07"); //Co teraz zrobimy?
AI_Output (self, other ,"DIA_Quentin_HELLO35_03_08"); //Skoro ludzie Gomeza atakują każdego, to tylko kwestia czasu zanim spróbują się dobrać do naszych tyłków. Będziesz miał teraz dużo pracy.
AI_Output (self, other ,"DIA_Quentin_HELLO35_03_09"); //Trzeba powiedzieć wszystkim, żeby wrócili do Obozu i nie zwracali na sobie uwagi. Musisz porozmawiać z Ratfordem i Draxem. Każ im się ukryć.
AI_Output (self, other ,"DIA_Quentin_HELLO35_03_10"); //Ostatnio z Obozu zniknęło też dwóch Bandytów. To dosyć podejrzana sprawa. Mam nadzieję, że nie wpadli w sidła Strażników.
AI_Output (self, other ,"DIA_Quentin_HELLO35_03_11"); //Niech ostrzegą naszych żeby się nie wychylali. Jeśli Strażnicy wzięliby ich do niewoli mogliby się wygadać o naszym Obozie.
AI_Output (self, other ,"DIA_Quentin_HELLO35_03_12"); //Z obozu zniknęło także kilku moich ludzi. Znajdź ich. Może Ratford i Drax dadzą ci jakieś wskazówki.
AI_Output (self, other ,"DIA_Quentin_HELLO35_03_13"); //Na razie to wszystko. Zrób co ci kazałem. Nie ma czasu do stracenia.
//log
//zadanie nie jest już rozpoczynane u Draxa
//if (MIS_NewDanger != LOG_RUNNING)
//{
MIS_NewDanger = LOG_RUNNING;
Log_CreateTopic (CH4_NewDanger, LOG_MISSION);
Log_SetTopicStatus (CH4_NewDanger, LOG_RUNNING);
B_LogEntry (CH4_NewDanger,"Sytuacja nie wygląda zbyt dobrze. W tym całym zamieszaniu Strażnicy mogą próbować odnaleźć Obóz Bandytów. Musimy powziąć środki ostrożności. Quentin kazał mi porozmawiać z Draxem i Ratfordem, obaj mają wrócić do Obozu. Pryz okazji mam odnaleźć kilku Bandytów, którzy zniknęli z Obozu.");
//};
//experience
B_GiveXP (XP_FireMagesDeath);
//exit
AI_StopProcessInfos (self);
};
//========================================
//-----------------> DraxInfos
//========================================
INSTANCE DIA_Quentin_DraxInfos (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_DraxInfos_Condition;
information = DIA_Quentin_DraxInfos_Info;
permanent = FALSE;
description = "Rozmawiałem z Draxem i przy okazji odnalazłem Bandytów!";
};
FUNC INT DIA_Quentin_DraxInfos_Condition()
{
if (MIS_NewDanger == LOG_RUNNING) //(Npc_KnowsInfo (hero, DIA_Quentin_HELLO35))
&& (Npc_KnowsInfo (hero, DIA_Drax_WTFCH4))
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_DraxInfos_Info()
{
AI_Output (other, self ,"DIA_Quentin_DraxInfos_15_01"); //Rozmawiałem z Draxem i przy okazji odnalazłem Bandytów!
AI_Output (self, other ,"DIA_Quentin_DraxInfos_03_02"); //A więc żyją? Gdzie są?
AI_Output (other, self ,"DIA_Quentin_DraxInfos_15_03"); //Ratford zginął z rąk Strażników, którzy udali się w kierunku opuszczonej kopalni.
AI_Output (other, self ,"DIA_Quentin_DraxInfos_15_04"); //Drax postanowił się zemścić na ludziach Gomeza i organizuje atak na patrole Strażników.
AI_Output (other, self ,"DIA_Quentin_DraxInfos_15_05"); //Zwołał Bandytów i formują mały oddział. Ci, którzy zniknęli z Obozu są z nim.
AI_Output (self, other ,"DIA_Quentin_DraxInfos_03_06"); //Musisz go jak najszybciej od tego odciągnąć. Strażnicy mogą się teraz łatwo zorientować o położeniu naszego obozu!
AI_Output (other, self ,"DIA_Quentin_DraxInfos_15_07"); //Już za późno. Próbowałem przemówić mu do rozsądku, ale jest opętany żądzą zemsty.
AI_Output (other, self ,"DIA_Quentin_DraxInfos_15_08"); //Teraz decyzja należy do ciebie. Chcesz mu pomóc, czy nie?
AI_Output (self, other ,"DIA_Quentin_DraxInfos_03_09"); //Pójdziemy z nim. Ja, ty i kliku naprawdę dobrych ludzi. Drax nie jest mistrzem wojennego rzemiosła.
AI_Output (self, other ,"DIA_Quentin_DraxInfos_03_10"); //Gdybyśmy zostawili go samego, to tak jakbyśmy powiedzieli Gomezowi, gdzie jest nasz Obóz.
AI_Output (self, other ,"DIA_Quentin_DraxInfos_03_11"); //Idź do niego i powiedz mu, żeby na nas poczekał. Nie pójdę mordować Strażników bez przygotowania.
//log
B_LogEntry (CH4_NewDanger,"Quentin zgodził się pomóc Draxowi. W sumie to nie miał za dużego wyboru... Mam wrócić do Draxa i powiedzieć mu, żeby poczekał na wsparcie z Obozu.");
//exit
AI_StopProcessInfos (self);
};
//========================================
//-----------------> nextWork22
//========================================
INSTANCE DIA_Quentin_nextWork22 (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_nextWork22_Condition;
information = DIA_Quentin_nextWork22_Info;
permanent = FALSE;
description = "Drax zaczeka. Co dalej?";
};
FUNC INT DIA_Quentin_nextWork22_Condition()
{
if (Npc_KnowsInfo (hero, DIA_Drax_QUENTINInfosHelp))
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_nextWork22_Info()
{
AI_Output (other, self ,"DIA_Quentin_nextWork22_15_01"); //Drax zaczeka. Co dalej?
AI_Output (self, other ,"DIA_Quentin_nextWork22_03_02"); //Wszystko przemyślałem. Pójdę ja, ty, Drax i Pun. Reszta naszych ludzi nie nadaje się do tego zadania, a ci którzy zostaną muszą kontrolować sytuację podczas mojej nieobecności.
AI_Output (self, other ,"DIA_Quentin_nextWork22_03_03"); //Musisz teraz pogadać z dwiema osobami Jensem i Briamem.
AI_Output (self, other ,"DIA_Quentin_nextWork22_03_04"); //Jensa poproś o ciężki pancerz, a Briama o pomocne podczas walki eliksiry.
//log
B_LogEntry (CH4_NewDanger,"Quentin zezwolił mi na otrzymanie ciężkiej zbroi Bandyty od Jensa. Briam ponadto da mi kilka eliksirów. Powinienem bez zwłoki z nimi porozmawiać.");
//exit
AI_StopProcessInfos (self);
//note
//Emanuel - dialog about food blocked (if ch=10)
//Rocky - dialog about armors and skins blocked (if ch=10)
};
//========================================
//-----------------> Idea
//========================================
INSTANCE DIA_Quentin_Idea (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_Idea_Condition;
information = DIA_Quentin_Idea_Info;
permanent = FALSE;
Important = TRUE;
};
FUNC INT DIA_Quentin_Idea_Condition()
{
if (Npc_KnowsInfo (hero, DIA_Quentin_nextWork22))
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_Idea_Info()
{
AI_Output (self, other ,"DIA_Quentin_Idea_03_01"); //Zaczekaj! Coś mi się przypomniało.
AI_Output (self, other ,"DIA_Quentin_Idea_03_02"); //Całkiem zapomniałem, że mam kilku przyjaciół w obozie łowców orków.
AI_Output (self, other ,"DIA_Quentin_Idea_03_03"); //Znaliśmy się z ich dowódcą jeszcze w dalekiej przeszłości.
AI_Output (self, other ,"DIA_Quentin_Idea_03_04"); //To dobrzy wojownicy. Z pewnością pomogą nam pozbyć się tych Strażników.
AI_Output (self, other ,"DIA_Quentin_Idea_03_05"); //Idź do nich i poproś o kilku wojowników. Powołaj się na moją znajomość z Wilsonem.
//quest log
MIS_SupportFromOrcHunters = LOG_RUNNING;
Log_CreateTopic (CH4_SupportFromOrcHunters, LOG_MISSION);
Log_SetTopicStatus (CH4_SupportFromOrcHunters, LOG_RUNNING);
B_LogEntry (CH4_SupportFromOrcHunters,"Mam odnaleźć obóz łowców orków. Ich szef podobno znał się z Quentinem, dlatego ten teraz liczy na jego pomoc. Obozu mam szukać w jaskini będącej częścią ściany skalnej oddzielającej Stary Obóz od Ziem Orków.");
B_LogEntry (CH4_NewDanger,"Już miałem brać się do roboty, gdy nagle ponownie zaczepił mnie Quentin. Poprosił o odnalezienie obozu łowców orków i poproszenie ich o pomoc. Obozu mam szukać w jaskini będącej częścią ściany skalnej oddzielającej Stary Obóz od Ziem Orków.");
//exit
AI_StopProcessInfos (self);
};
//========================================
//-----------------> QuestOk890976
//========================================
INSTANCE DIA_Quentin_QuestOk890976 (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_QuestOk890976_Condition;
information = DIA_Quentin_QuestOk890976_Info;
permanent = FALSE;
description = "Dwóch ludzi Wilsona już tu idzie.";
};
FUNC INT DIA_Quentin_QuestOk890976_Condition()
{
if (Npc_KnowsInfo (hero, DIA_SZEFU_Quest12)) && (MIS_SupportFromOrcHunters == LOG_RUNNING)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_QuestOk890976_Info()
{
AI_Output (other, self ,"DIA_Quentin_QuestOk890976_15_01"); //Dwóch ludzi Wilsona już tu idzie. Są to Rakus i Osko, jedni z najlepszych łowców orków.
AI_Output (self, other ,"DIA_Quentin_QuestOk890976_03_02"); //To nie tak źle. Większa grupa mogła by wzbudzić zamieszanie.
//log
B_LogEntry (CH4_SupportFromOrcHunters,"Powiedziałem Quentinowi, że udało mi się przekonać Wilsona, aby przysłał nam kilku ludzi do pomocy. Nasze siły teraz znacznie wzrosną.");
B_LogEntry (CH4_NewDanger,"Wilson przyśle do obozu dwóch swoich najlepszych wojowników. Powiedziałem o tym szefowi.");
Log_SetTopicStatus (CH4_SupportFromOrcHunters, LOG_SUCCESS);
MIS_SupportFromOrcHunters = LOG_SUCCESS;
//experience
B_GiveXP (XP_HelpHunters);
};
//========================================
//-----------------> WykonanoXD
//========================================
INSTANCE DIA_Quentin_WykonanoXD (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_WykonanoXD_Condition;
information = DIA_Quentin_WykonanoXD_Info;
permanent = FALSE;
description = "Jestem przygotowany!";
};
FUNC INT DIA_Quentin_WykonanoXD_Condition()
{
if ((Npc_HasItems (hero,BAU_ARMOR_H)>= 1) //warunek został zmieniony ponieważ opcja była perm
&& (Npc_KnowsInfo (hero, DIA_Bandyta_FreePotions))
&& (Npc_KnowsInfo (hero, DIA_Quentin_QuestOk890976)))
|| (devmode_dia_WykonanoXD == true)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_WykonanoXD_Info()
{
AI_Output (other, self ,"DIA_Quentin_WykonanoXD_15_01"); //Jestem przygotowany!
AI_Output (self, other ,"DIA_Quentin_WykonanoXD_03_02"); //Świetnie. Ja za ten czas zająłem się sprawami organizacyjnymi. Doyle dopilnuje, żeby ten cały pierdolnik nie rozpadł się podczas mojej nieobecności.
AI_Output (other, self ,"DIA_Quentin_WykonanoXD_15_03"); //Myślę, że to dobra decyzja.
AI_Output (self, other ,"DIA_Quentin_WykonanoXD_03_04"); //Zostaną też Rocky i Emanuel. Powinni sobie poradzić.
AI_Output (self, other ,"DIA_Quentin_WykonanoXD_03_04"); //Nie wiem tylko jaki Drax ma plan ataku. Mam nadzieję, że wszystko przygotował. Lepiej już do niego chodźmy.
B_LogEntry (CH4_NewDanger,"Przygotowałem wszystko co było trzeba. Teraz musimy udać się do Draxa. Quentin powierzył mu dowództwo nad całą wyprawą. Widzę jednak, że nie jest zachwycony całą tą wyprawą. Sprawia wrażenie zamyślonego. Być może obawia się konsekwencji ataku na ludzi Gomeza.");
Log_SetTopicStatus (CH4_NewDanger, LOG_SUCCESS);
MIS_NewDanger = LOG_SUCCESS;
B_GiveXP (XP_WeMustHelpDrax);
AI_StopProcessInfos (self);
Npc_ExchangeRoutine (BAN_1610_Quentin,"wait");
Npc_ExchangeRoutine (BAN_1611_Pun,"pupil");
Npc_ExchangeRoutine (NON_2706_Osko,"atak");
Npc_ExchangeRoutine (NON_2705_Rakus,"atak");
//Npc_ExchangeRoutine (NON_2703_MYSLIWY,"burdel");
//Npc_ExchangeRoutine (NON_2702_SZEFU,"atak");
//Npc_ExchangeRoutine (ORG_864_Raeuber,"pupil");
//Npc_ExchangeRoutine (ORG_869_Raeuber,"pupil");
//Npc_ExchangeRoutine (BAN_1603_Martin,"wait");
//Npc_ExchangeRoutine (BAN_1604_Jens,"wait");
//Npc_ExchangeRoutine (BAN_1606_Josh,"wait");
};
//========================================
//-----------------> AkcjaUkonczona
//========================================
INSTANCE DIA_Quentin_AkcjaUkonczona (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_AkcjaUkonczona_Condition;
information = DIA_Quentin_AkcjaUkonczona_Info;
permanent = FALSE;
Important = TRUE;
};
FUNC INT DIA_Quentin_AkcjaUkonczona_Condition()
{
if (Npc_KnowsInfo (hero, DIA_Drax_Pokonani3))
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_AkcjaUkonczona_Info()
{
AI_Output (self, other ,"DIA_Quentin_AkcjaUkonczona_03_01"); //Ha Ha! Dawno nie było tu takiej rzezi! Dobra robota!
AI_Output (self, other ,"DIA_Quentin_AkcjaUkonczona_03_02"); //Chłopaki, zwijajmy się zanim ktoś reszta Strażników zorientuje się co się stało.
//AI_Output (other, self ,"DIA_Quentin_AkcjaUkonczona_15_03"); //A czego się obawiałeś?
//AI_Output (self, other ,"DIA_Quentin_AkcjaUkonczona_03_04"); //Zasadzki ze strony Gomeza. Ale to już nie ważne... Strażnicy z obozu pewnie nawet nas nie dostrzegli.
AI_Output (self, other ,"DIA_Quentin_AkcjaUkonczona_03_05"); //Chociaż pewnie te dupki są zbyt zajęte usługiwaniem Gomezowi...
AI_Output (other, self ,"DIA_Quentin_AkcjaUkonczona_15_06"); //Na mnie już pora...
AI_Output (self, other ,"DIA_Quentin_AkcjaUkonczona_03_07"); //Czekaj, gdzie chcesz iść?
AI_Output (other, self ,"DIA_Quentin_AkcjaUkonczona_15_08"); //Mam jeszcze dużo spraw do załatwienia.
AI_Output (self, other ,"DIA_Quentin_AkcjaUkonczona_03_09"); //Kilka chwil nic nie zmieni. Chodź z nami do obozu. Trzeba uczcić zwycięstwo.
AI_StopProcessInfos (self);
Npc_ExchangeRoutine (BAN_1610_Quentin,"wait");
BAN_1610_Quentin.aivar[AIV_PARTYMEMBER] = TRUE;
Npc_ExchangeRoutine (NON_2706_Osko,"atak");
NON_2706_osko.aivar[AIV_PARTYMEMBER] = TRUE;
Npc_ExchangeRoutine (NON_2705_Rakus,"atak");
NON_2705_Rakus.aivar[AIV_PARTYMEMBER] = TRUE;
Npc_ExchangeRoutine (BAN_1611_Pun,"pupil");
BAN_1611_Pun.aivar[AIV_PARTYMEMBER] = TRUE;
Npc_ExchangeRoutine (BAN_1613_Doyle,"zwial");//Doyle ucieka do Nowego Obozu
Npc_ExchangeRoutine (BAN_1605_Rocky,"ucieczka");//Rocky ucieczka przed obóz
Npc_RemoveInvItem (BAN_1605_Rocky, BAU_ARMOR_H);//usunięcie pancerza
//Npc_ExchangeRoutine (BAN_1603_Martin,"wait");
//Npc_ExchangeRoutine (BAN_1604_Jens,"wait");
//Npc_ExchangeRoutine (BAN_1606_Josh,"wait");
//Npc_ExchangeRoutine (NON_2703_MYSLIWY,"atak");
//Npc_ExchangeRoutine (NON_2702_SZEFU,"czekanie");
//Npc_ExchangeRoutine (ORG_864_Raeuber,"pupil");
//Npc_ExchangeRoutine (BAN_1611_Pun,"pupil");
//Npc_ExchangeRoutine (ORG_869_Raeuber,"pupil");
//Npc_ExchangeRoutine (BAN_1603_Martin,"start");
//Npc_ExchangeRoutine (BAN_1604_Jens,"start");
//Npc_ExchangeRoutine (BAN_1606_Josh,"start");
//Npc_ExchangeRoutine (BAN_1604_Jens,"start");
//Npc_ExchangeRoutine (NON_2702_SZEFU,"wait");
//Npc_ExchangeRoutine (NON_2705_Rakus ,"wait");
//Npc_ExchangeRoutine (NON_2706_osko ,"wait");
//Npc_ExchangeRoutine (NON_2703_MYSLIWY,"wait");
//Kłopoty Bandytów jednak się nie skończyły. Strażnicy zajęli Obóz i zniewolili Bandytów. Rocky uciekł i stoi przed Obozem.
Wld_InsertNpc (GRD_2271_Strażnik,"OC1");
Wld_InsertNpc (GRD_2272_Strażnik ,"OC1");
Wld_InsertNpc (GRD_2273_Strażnik ,"OC1");
Wld_InsertNpc (GRD_2274_Strażnik ,"OC1");
Wld_InsertNpc (GRD_2275_Strażnik ,"OC1");
Wld_InsertNpc (GRD_2276_Strażnik ,"OC1");
Wld_InsertNpc (GRD_2277_Strażnik ,"OC1");
Wld_InsertNpc (GRD_2278_Strażnik ,"OC1");
Wld_InsertNpc (GRD_2279_Strażnik ,"OC1");
Wld_InsertNpc (GRD_2283_Strażnik ,"OC1");
Wld_InsertNpc (GRD_2283_Strażnik ,"OC1");
Wld_InsertNpc (GRD_2282_Strażnik ,"OC1");
Wld_InsertNpc (GRD_2283_Strażnik ,"OC1");
Wld_InsertNpc (GRD_2284_Strażnik ,"OC1");
Wld_InsertNpc (GRD_2290_Strażnik ,"OC1");
Npc_ExchangeRoutine (GRD_3935_Hector,"misja"); //boss
B_LogEntry (CH4_GardistsCheckpoints,"Quentin również ucieszył się z takiego przebiegu wydarzeń. Nie pozostało nam nic innego jak zaszyć się ponownie w górskim obozie.");
Log_SetTopicStatus (CH4_GardistsCheckpoints, LOG_SUCCESS);
MIS_GardistsCheckpoints = LOG_SUCCESS;
};
/////////// opcja usunięta - dialog z Rockym jest pierwszy
//========================================
//-----------------> DAEADALL
//========================================
INSTANCE DIA_Quentin_DAEADALL (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_DAEADALL_Condition;
information = DIA_Quentin_DAEADALL_Info;
permanent = FALSE;
Important = TRUE;
};
FUNC INT DIA_Quentin_DAEADALL_Condition()
{
if (Npc_GetDistToWP (BAN_1610_Quentin, "QUEN") < 1000) && (Npc_KnowsInfo (hero, DIA_Quentin_AkcjaUkonczona)) && (kapitel == 10)
{
return FALSE;
};
};
FUNC VOID DIA_Quentin_DAEADALL_Info()
{
AI_Output (self, other ,"DIA_Quentin_DAEADALL_03_01"); //Stój! Nie idź dalej!
AI_Output (other, self ,"DIA_Quentin_DAEADALL_15_02"); //Co? O co chodzi? Dlaczego nie jesteście w Obozie?
AI_Output (self, other ,"DIA_Quentin_DAEADALL_03_03"); //Strażnicy znaleźli nasz Obóz! Tylko Rocky uciekł.
AI_Output (other, self ,"DIA_Quentin_DAEADALL_15_04"); //Musimy odbić naszą kryjówkę!
AI_Output (self, other ,"DIA_Quentin_DAEADALL_03_05"); //Nie mamy innego wyjścia. Porozmawiaj uprzednio z Rockym. Nieco go obdarli, ale najważniejsze, że żyje.
//log
//exit
AI_StopProcessInfos (self);
};
///////////
//========================================
//-----------------> Plan
//========================================
INSTANCE DIA_Quentin_Plan (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_Plan_Condition;
information = DIA_Quentin_Plan_Info;
permanent = FALSE;
description = "Masz już jakiś plan?";
};
FUNC INT DIA_Quentin_Plan_Condition()
{
if (Npc_KnowsInfo (hero, DIA_Rocky_WtfRozwalaWobozie))
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_Plan_Info()
{
AI_Output (other, self ,"DIA_Quentin_Plan_15_01"); //Rozmawiałem z Rocky'm. Masz już jakiś plan?
AI_Output (self, other ,"DIA_Quentin_Plan_03_02"); //Jedynym sensownym wyjściem wydaję mi się szybki i nagły atak. Wciąż mamy kilku dobrych ludzi. Jeśli Strażnicy nie zdążą się zabarykadować, to damy radę.
AI_Output (other, self ,"DIA_Quentin_Plan_15_03"); //Chyba nie mamy innego wyboru.
AI_Output (self, other ,"DIA_Quentin_Plan_03_04"); //Dobrze, że się zgadzamy. Niech wszyscy opatrzą rany, zjedzą coś i od razu bierzemy się do roboty.
//nieużywane
// AI_Output (self, other ,"DIA_Quentin_Plan_03_05"); //Chciałbym ci to dać, zanim wyruszymy.
// AI_Output (self, other ,"DIA_Quentin_Plan_03_06"); //To nowy pancerz. Z pewnością ci się przyda. Czeka nas niełatwa walka.
// AI_Output (other, self ,"DIA_Quentin_Plan_15_07"); //Dzięki.
//stara zmienna (być może używana jeszcze w jakimś dialogu - nie przeszkadza)
PlanA = true;
B_LogEntry (CH4_GardistsInBC,"Aby odbić nasz Obóz, będziemy musieli szybko i skutecznie zaatakować niespodziewających się nas Strażników. Tak swój plan przedstawił mi Quentin.");
//Armor daje Jens przed atakiem
/*CreateInvItem (self, ItAmArrow);
B_GiveInvItems (self, hero, ItAmArrow, 1);
Npc_RemoveInvItem (hero, ItAmArrow);
CreateInvItem (hero,BAU_ARMOR_H);
AI_EquipBestArmor (other); */
//wybory są nieużywane
//Info_ClearChoices (DIA_Quentin_Plan);
//Info_AddChoice (DIA_Quentin_Plan, "Uwięźmy Strażników będących w kanionie.", DIA_Quentin_Plan_PalisadeZbudjmy);
//Info_AddChoice (DIA_Quentin_Plan, "Sprowadzimy górskie trolle do Obozu.", DIA_Quentin_Plan_Trolllle);
//Info_AddChoice (DIA_Quentin_Plan, "Przygnieciemy ich kamieniami.", DIA_Quentin_Plan_Inne);
};
FUNC VOID DIA_Quentin_Plan_PalisadeZbudjmy()
{
AI_Output (other, self ,"DIA_Quentin_Plan_PalisadeZbudjmy_15_01"); //Uwięźmy Strażników będących w kanionie.
AI_Output (self, other ,"DIA_Quentin_Plan_PalisadeZbudjmy_03_02"); //Jak chcesz to zrobić?
AI_Output (other, self ,"DIA_Quentin_Plan_PalisadeZbudjmy_15_03"); //Zaatakujemy szybko. Wybijemy wszystkich pilnujących wejścia, po czym wąski przesmyk zabudujemy.
AI_Output (self, other ,"DIA_Quentin_Plan_PalisadeZbudjmy_03_04"); //To się może udać!
AI_Output (self, other ,"DIA_Quentin_Plan_PalisadeZbudjmy_03_05"); //Musimy wszystkich zmobilizować do budowy.
AI_Output (other, self ,"DIA_Quentin_Plan_PalisadeZbudjmy_15_06"); //Jeszcze nie odbiliśmy Obozu.
AI_Output (self, other ,"DIA_Quentin_Plan_PalisadeZbudjmy_03_07"); //Już widzę jak to zrobiliśmy.
AI_Output (self, other ,"DIA_Quentin_Plan_PalisadeZbudjmy_03_08"); //Chłopcze, chyba zasługujesz na taką zbroję jak moja.
AI_Output (self, other ,"DIA_Quentin_Plan_PalisadeZbudjmy_03_09"); //Niech ci służy w walce!
CreateInvItems (self, BAU_ARMOR_H, 2);
B_GiveInvItems (self, hero, BAU_ARMOR_H, 1);
Mdl_SetVisualBody (self,"hum_body_Naked0",0, 2,"Hum_Head_Pony", 8, 1, BAU_ARMOR_H);
PlanA = true;
B_LogEntry (CH4_GardistsInBC,"Postanowiłem, że po szybkim ataku uwięzimy pozostałych Strażników w Obozie.");
B_GiveXP (1000);
Info_ClearChoices (DIA_Quentin_Plan);
};
FUNC VOID DIA_Quentin_Plan_Trolllle()
{
AI_Output (other, self ,"DIA_Quentin_Plan_Trolllle_15_01"); //Sprowadzimy górskie trolle do Obozu.
AI_Output (self, other ,"DIA_Quentin_Plan_Trolllle_03_02"); //Jak chcesz to zrobić?
AI_Output (other, self ,"DIA_Quentin_Plan_Trolllle_15_03"); //Skorzystamy z pomocy Magów Wody.
B_LogEntry (CH4_GardistsInBC,"Postanowiłem poprosić o pomoc Magów Wody. Sprowadzimy górskie trolle do Obozu. One z pewnością załatwią sprawę za nas.");
PlanB = true;
B_GiveXP (500);
Info_ClearChoices (DIA_Quentin_Plan);
AI_StopProcessInfos (self);
};
FUNC VOID DIA_Quentin_Plan_Inne()
{
AI_Output (other, self ,"DIA_Quentin_Plan_Inne_15_01"); //Przygnieciemy ich kamieniami.
AI_Output (self, other ,"DIA_Quentin_Plan_Inne_03_02"); //Chcesz wywołać lawinę?
AI_Output (other, self ,"DIA_Quentin_Plan_Inne_15_03"); //Skorzystam z pomocy jakiegoś maga.
AI_Output (self, other ,"DIA_Quentin_Plan_Inne_03_04"); //Życzę ci powodzenia. Przyjdź jak coś przygotujesz.
B_LogEntry (CH4_GardistsInBC,"Uważam, że sprowadzenie lawiny to dobry pomysł. Potrzebuję tylko jakiegoś maga i źródła mocy.");
B_GiveXP (500);
Info_ClearChoices (DIA_Quentin_Plan);
AI_StopProcessInfos (self);
};
//========================================
//-----------------> LetsGo2346567
//========================================
INSTANCE DIA_Quentin_LetsGo2346567 (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_LetsGo2346567_Condition;
information = DIA_Quentin_LetsGo2346567_Info;
permanent = FALSE;
description = "Ruszamy?";
};
FUNC INT DIA_Quentin_LetsGo2346567_Condition()
{
if (Npc_KnowsInfo (hero, DIA_Quentin_Plan))
&& (PlanA == true)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_LetsGo2346567_Info()
{
AI_Output (other, self ,"DIA_Quentin_LetsGo2346567_15_01"); //Ruszamy?
AI_Output (self, other ,"DIA_Quentin_LetsGo2346567_03_02"); //Tak, jednak zanim to zrobimy, powinieneś wiedzieć czego można się tam spodziewać.
AI_Output (other, self ,"DIA_Quentin_LetsGo2346567_15_03"); //Rocky mówił o grupie Strażników...
AI_Output (self, other ,"DIA_Quentin_LetsGo2346567_03_04"); //Sądzisz, że przyszli tu sami? Jako niezorganizowana hałastra?
AI_Output (self, other ,"DIA_Quentin_LetsGo2346567_03_05"); //W Obozie jest z pewnością jeszcze ktoś.
AI_Output (other, self ,"DIA_Quentin_LetsGo2346567_15_06"); //Czyżby sam Thorus?
AI_Output (self, other ,"DIA_Quentin_LetsGo2346567_03_07"); //Być może... Albo któryś z Magnatów.
AI_Output (other, self ,"DIA_Quentin_LetsGo2346567_15_08"); //Chcesz się wycofać?
AI_Output (self, other ,"DIA_Quentin_LetsGo2346567_03_09"); //Nie, po prostu lepiej zachować czujność. Skup się na głównym przeciwniku. My zajmiemy się resztą.
AI_Output (self, other ,"DIA_Quentin_LetsGo2346567_03_10"); //A teraz prowadź.
self.aivar[AIV_PARTYMEMBER] = TRUE;
Npc_ExchangeRoutine (self,"atak");
B_KillNpc (BAN_1614_Drax);
Npc_ExchangeRoutine (BAN_1605_Rocky , "odb");
BAN_1605_Rocky.aivar[AIV_PARTYMEMBER] = TRUE;
NON_2705_Rakus.aivar[AIV_PARTYMEMBER] = TRUE;
Npc_ExchangeRoutine (NON_2705_Rakus , "burdel");
NON_2705_Rakus.guild = GIL_BAU;
NON_2706_osko.aivar[AIV_PARTYMEMBER] = TRUE;
Npc_ExchangeRoutine (NON_2706_osko , "burdel");
NON_2706_osko.guild = GIL_BAU;
//pun
BAN_1611_Pun.aivar[AIV_PARTYMEMBER] = TRUE;
Npc_ExchangeRoutine (BAN_1611_Pun,"help");
//ci dwaj chyba stoją tam gdzie Ratford i Drax i nie brali udziału w walce
ORG_864_Raeuber.aivar[AIV_PARTYMEMBER] = TRUE;
Npc_ExchangeRoutine (ORG_864_Raeuber,"help");
ORG_869_Raeuber.aivar[AIV_PARTYMEMBER] = TRUE;
Npc_ExchangeRoutine (ORG_869_Raeuber,"help");
AI_StopProcessInfos (self);
//nieużywane od 1.2
//BAN_1603_Martin.aivar[AIV_PARTYMEMBER] = TRUE;
//Npc_ExchangeRoutine (BAN_1603_Martin , "atak");
//BAN_1606_Josh.aivar[AIV_PARTYMEMBER] = TRUE;
//Npc_ExchangeRoutine (BAN_1606_Josh , "atak");
//BAN_1604_Jens.aivar[AIV_PARTYMEMBER] = TRUE;
//Npc_ExchangeRoutine (BAN_1604_Jens , "atak");
//NON_2702_SZEFU.aivar[AIV_PARTYMEMBER] = TRUE;
//Npc_ExchangeRoutine (NON_2702_SZEFU , "atak");
//NON_2702_SZEFU.guild = GIL_BAU;
//NON_2703_MYSLIWY.aivar[AIV_PARTYMEMBER] = TRUE;
//Npc_ExchangeRoutine (NON_2703_MYSLIWY , "burdel");
//NON_2703_MYSLIWY.guild = GIL_BAU;
};
//========================================
//-----------------> 54
//========================================
INSTANCE DIA_Quentin_54 (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_54_Condition;
information = DIA_Quentin_54_Info;
permanent = FALSE;
Important = TRUE;
};
FUNC INT DIA_Quentin_54_Condition()
{
if (Npc_KnowsInfo (hero, DIA_Quentin_LetsGo2346567))
&& (Npc_IsDead(GRD_3935_Hector))
//&& (Npc_IsDead(GRD_2281_Strażnik))
//&& (Npc_IsDead(GRD_2282_Strażnik))
//&& (Npc_IsDead(GRD_2283_Strażnik))
//&& (Npc_IsDead(GRD_2284_Strażnik))
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_54_Info()
{
AI_Output (self, other ,"DIA_Quentin_54_03_01"); //Dobra robota! To już chyba wszyscy. Reszta albo zwieje, albo zaraz bedzie gryźć ziemię.
AI_Output (other, self ,"DIA_Quentin_54_15_02"); //Obóz znów jest nasz!
AI_Output (self, other ,"DIA_Quentin_54_03_03"); //Kim był dowódca Strażników?
AI_Output (other, self ,"DIA_Quentin_54_15_04"); //To Skelden, jeden z najbardziej wpływowych Strażników w Starym Obozie.
AI_Output (self, other ,"DIA_Quentin_54_03_05"); //To nie lada wyczyn wygrać z kimś takim. Dobrze, że ten typ już gryzie piach.
//log
B_LogEntry (CH4_GardistsInBC,"Podczas gdy Bandyci eliminowali Strażników, jak skupiłem się na zabiciu niejakiego Skeldena. To silny i doświadczony członek przybocznej straży Gomeza. Walka z nim nie była łatwa, jednak ostatecznie udało mi się wysłać go w zaświaty. Obóz znów jest nasz, jednak teraz czeka nas dużo pracy z przywróceniem temu miejscu dawnej świetności.");
Log_SetTopicStatus (CH4_GardistsInBC, LOG_SUCCESS);
MIS_GardistsInBC = LOG_SUCCESS;
//experience
B_GiveXP (XP_KillAllgardist);
//powrót bandytów do obozu
BAN_1610_Quentin.aivar[AIV_PARTYMEMBER] = false;
Npc_ExchangeRoutine (BAN_1610_Quentin,"start");
BAN_1605_Rocky.aivar[AIV_PARTYMEMBER] = false;
Npc_ExchangeRoutine (BAN_1605_Rocky , "start");
ORG_864_Raeuber.aivar[AIV_PARTYMEMBER] = false;
Npc_ExchangeRoutine (ORG_864_Raeuber,"start");
BAN_1611_Pun.aivar[AIV_PARTYMEMBER] = false;
Npc_ExchangeRoutine (BAN_1611_Pun,"start");
ORG_869_Raeuber.aivar[AIV_PARTYMEMBER] = false;
Npc_ExchangeRoutine (ORG_869_Raeuber,"start");
//powrót do obozu łowców
Npc_ExchangeRoutine (NON_2705_Rakus , "start");
Npc_ExchangeRoutine (NON_2706_osko , "start");
NON_2705_Rakus.aivar[AIV_PARTYMEMBER] = false;
NON_2706_osko.aivar[AIV_PARTYMEMBER] = false;
//old stuff
//Wld_SendTrigger("PULAPKA1");
//Npc_ExchangeRoutine (NON_2703_MYSLIWY , "wait");
//Npc_ExchangeRoutine (BAN_1603_Martin , "start");
//Npc_ExchangeRoutine (BAN_1606_Josh , "start");
//Npc_ExchangeRoutine (BAN_1604_Jens , "start");
//Npc_ExchangeRoutine (NON_2702_SZEFU , "wait");
//BAN_1603_Martin.aivar[AIV_PARTYMEMBER] = false;
//BAN_1606_Josh.aivar[AIV_PARTYMEMBER] = false;
//BAN_1604_Jens.aivar[AIV_PARTYMEMBER] = false;
//NON_2702_SZEFU.aivar[AIV_PARTYMEMBER] = false;
//NON_2703_MYSLIWY.aivar[AIV_PARTYMEMBER] = false;
};
//========================================
//-----------------> findFriends
//========================================
INSTANCE DIA_Quentin_findFriends (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 2;
condition = DIA_Quentin_findFriends_Condition;
information = DIA_Quentin_findFriends_Info;
permanent = FALSE;
description = "Wszystko w porządku?";
};
FUNC INT DIA_Quentin_findFriends_Condition()
{
if (MIS_GardistsInBC == LOG_SUCCESS)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_findFriends_Info()
{
AI_Output (other, self ,"DIA_Quentin_findFriends_15_01"); //Wszystko w porządku?
AI_Output (self, other ,"DIA_Quentin_findFriends_03_02"); //Gdzieś mi zniknął Drax i Doyle. Nikt ich nie widział. Część naszych sprawdza trupy, ale tych dwóch chyba wśród nich nie ma.
AI_Output (self, other ,"DIA_Quentin_findFriends_03_03"); //Poszukaj ich. Może uciekli podobnie jak Rocky?
AI_Output (other, self ,"DIA_Quentin_findFriends_15_04"); //Chwila, przecież Drax był z nami.
AI_Output (self, other ,"DIA_Quentin_findFriends_03_05"); //Hmm... To się zgadza, ale przecież nie pojawił się później. Zniknął mi z oczu, gdy wracaliśmy z okolic Starego Obozu.
AI_Output (self, other ,"DIA_Quentin_findFriends_03_06"); //Musisz ich jak najszybciej odnaleźć. Możliwe, że potrzebują naszej pomocy.
//log
MIS_FindFriends = LOG_RUNNING;
Log_CreateTopic (CH4_FindFriends, LOG_MISSION);
Log_SetTopicStatus (CH4_FindFriends, LOG_RUNNING);
B_LogEntry (CH4_FindFriends,"W odbitym Obozie nie znaleźliśmy Doyla. Możliwe, że gdzieś uciekł lub porwali go Strażnicy. Ponadto zaginął Drax. Muszę odnaleźć ich obu. Bez żadnych wskazówek to nie będzie zbyt proste.");
//story
B_Story_SoldiersValleyDefense ();
};
//========================================
//-----------------> FoundDrax
//========================================
INSTANCE DIA_Quentin_FoundDrax (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_FoundDrax_Condition;
information = DIA_Quentin_FoundDrax_Info;
permanent = FALSE;
description = "Znalazłem Draxa.";
};
FUNC INT DIA_Quentin_FoundDrax_Condition()
{
if (MIS_FindFriends == LOG_RUNNING)
&& (Npc_HasItems (other, ItMi_Listdraxa) >=1)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_FoundDrax_Info()
{
AI_Output (other, self ,"DIA_Quentin_FoundDrax_15_01"); //Znalazłem Draxa.
AI_Output (self, other ,"DIA_Quentin_FoundDrax_03_02"); //I co z nim? Gdzie jest?
AI_Output (other, self ,"DIA_Quentin_FoundDrax_15_03"); //W innym, lepszym świecie.
AI_Output (self, other ,"DIA_Quentin_FoundDrax_03_04"); //Co to znaczy? Nie żyje?
AI_Output (other, self ,"DIA_Quentin_FoundDrax_15_05"); //Tak, jednak to nie koniec rewelacji. Wbił sobie nóż prosto w serce, ale zanim to zrobił, napisał niezgrabny list.
AI_Output (self, other ,"DIA_Quentin_FoundDrax_03_06"); //Jaki list? Nie wiedziałem, że niektórzy spośród moich ludzi potrafią pisać.
AI_Output (other, self ,"DIA_Quentin_FoundDrax_15_07"); //Drax potrafił. W liście przyznał się do tego, że to on zabił Ratforda, a nie Strażnicy. Później doszedł do wątpliwego porozumienia ze Strażnikami.
AI_Output (self, other ,"DIA_Quentin_FoundDrax_03_08"); //Mów jaśniej, do cholery. Nie jestem jakimś magiem!
AI_Output (other, self ,"DIA_Quentin_FoundDrax_15_09"); //Tej historii nie da się opowiedzieć jednym zdaniem. Daj mi dokończyć.
AI_Output (other, self ,"DIA_Quentin_FoundDrax_15_10"); //Strażnicy obiecali mu rudę w zamian za wciągnięcie mnie w pułapkę. Podwajali nagrodę, jeśli przyprowadziłby również ciebie.
AI_Output (other, self ,"DIA_Quentin_FoundDrax_15_11"); //Jednak Drax nie spodziewał się, że pójdzie z nami Pun, oraz ludzie z obozu łowców orków. Cała sprawa miała się zakończyć już na pierwszym posterunku Strażników. Mieli nas wykończyć.
AI_Output (self, other ,"DIA_Quentin_FoundDrax_03_12"); //Nie udało im się...
AI_Output (other, self ,"DIA_Quentin_FoundDrax_15_13"); //Nie wszystko poszło zgodnie z ich planem. Strażnicy ze wszystkich trzech posterunków mieli się zjawić w pierwszym, tak aby mieli znaczną przewagę. Widocznie się nie dogadali lub coś stanęło im na drodze.
AI_Output (other, self ,"DIA_Quentin_FoundDrax_15_14"); //Ostatecznie pozostali w trzech grupach, co ułatwiło nam ich eliminację. Po wszystkim Drax do reszty zgłupiał. Nie wiedział, co ma zrobić, więc po tym wszystkim dał nogę.
AI_Output (self, other ,"DIA_Quentin_FoundDrax_03_15"); //Nie spodziewałem się, że z niego kawał takiego sukinsyna.
AI_Output (self, other ,"DIA_Quentin_FoundDrax_03_16"); //Zasłużył na taki los.
//log
B_LogEntry (CH4_FindFriends,"Przywódca Bandytów był zaskoczony tą zdradą. Daliśmy się nieźle oszukać...");
//experience
B_GiveXP (XP_FindDrax);
};
//========================================
//-----------------> iFindDoyle
//========================================
INSTANCE DIA_Quentin_iFindDoyle (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_iFindDoyle_Condition;
information = DIA_Quentin_iFindDoyle_Info;
permanent = FALSE;
description = "Odnalazłem i sprowadziłem Doyla.";
};
FUNC INT DIA_Quentin_iFindDoyle_Condition()
{
if (Npc_KnowsInfo (hero, DIA_Raeuber_backtoCamp)) && (MIS_FindFriends == LOG_RUNNING)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_iFindDoyle_Info()
{
AI_Output (other, self ,"DIA_Quentin_iFindDoyle_15_01"); //Odnalazłem i sprowadziłem Doyla.
AI_Output (other, self ,"DIA_Quentin_iFindDoyle_15_02"); //Postanowił udać się do Nowego Obozu i pomóc Najemnikom w walce ze Strażnikami.
AI_Output (self, other ,"DIA_Quentin_iFindDoyle_03_03"); //(ironicznie) Wybrał sobie świetny moment... Czy już nikt w tym cholernym Obozie nie używa głowy?!
AI_Output (other, self ,"DIA_Quentin_iFindDoyle_15_06"); //Kazałem mu wrócić do Obozu.
AI_Output (self, other ,"DIA_Quentin_iFindDoyle_03_07"); //Najwyższa pora... Będę miał dla was jeszcze trochę roboty.
//log
B_LogEntry (CH4_FindFriends,"Zgłosiłem Quentinowi, gdzie znalazłem Doyla. Szef Bandytów był na niego nieźle wkurzony.");
//experience
B_GiveXP (XP_FindDoyle);
};
//========================================
//-----------------> PrzejscieDalej
//========================================
INSTANCE DIA_Quentin_PrzejscieDalej (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 2;
condition = DIA_Quentin_PrzejscieDalej_Condition;
information = DIA_Quentin_PrzejscieDalej_Info;
permanent = FALSE;
description = "Działo się coś podczas mojej nieobecności?";
};
FUNC INT DIA_Quentin_PrzejscieDalej_Condition()
{
if ((Npc_KnowsInfo (hero, DIA_Quentin_iFindDoyle)) && (Npc_KnowsInfo (hero, DIA_Quentin_FoundDrax)) )
|| (devmode_dia_DIA_Quentin_PrzejscieDalej == true)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_PrzejscieDalej_Info()
{
AI_Output (other, self ,"DIA_Quentin_PrzejscieDalej_15_01"); //Działo się coś podczas mojej nieobecności?
AI_Output (self, other ,"DIA_Quentin_PrzejscieDalej_03_02"); //Wróciło do mnie kilku zwiadowców.
AI_Output (other, self ,"DIA_Quentin_PrzejscieDalej_15_03"); //Czego się dowiedzieli?
AI_Output (self, other ,"DIA_Quentin_PrzejscieDalej_03_04"); //Ponoć Gomez wysłał kilkunastu Strażników wraz z Kopaczami w kierunku placu wymian.
AI_Output (other, self ,"DIA_Quentin_PrzejscieDalej_15_05"); //Co to może oznaczać?
AI_Output (self, other ,"DIA_Quentin_PrzejscieDalej_03_06"); //Opuszczona Kopalnia, chłopcze. Opuszczona Kopalnia...
AI_Output (self, other ,"DIA_Quentin_PrzejscieDalej_03_07"); //Przypuszczam, że chcą wznowić wydobycie. Nie wiem w jakim stanie jest ta kopalnia, ale to może im się udać.
AI_Output (other, self ,"DIA_Quentin_PrzejscieDalej_15_08"); //W takim razie musimy czym prędzej im przeszkodzić!
AI_Output (self, other ,"DIA_Quentin_PrzejscieDalej_03_09"); //Otóż to! Trzeba wysłać zorganizowana grupę Bandytów, którzy oczyszczą kopalnię.
AI_Output (self, other ,"DIA_Quentin_PrzejscieDalej_03_10"); //Zadalibyśmy potężny cios Gomezowi.
AI_Output (other, self ,"DIA_Quentin_PrzejscieDalej_15_11"); //I to pewnie ja otrzymałem ten zaszczyt?
AI_Output (self, other ,"DIA_Quentin_PrzejscieDalej_03_12"); //Nie raz udowodniłeś mi, że jesteś dobrym wojownikiem i świetnym przywódcą.
AI_Output (self, other ,"DIA_Quentin_PrzejscieDalej_03_13"); //Poproś Doyle'a o pomoc. Eksplorował już ongiś jakieś podziemia.
AI_Output (self, other ,"DIA_Quentin_PrzejscieDalej_03_14"); //Dobrze, że udało ci się go sprowadzić.
//log
B_LogEntry (CH4_FindFriends,"Odnalazłem obu Bandytów, co kończy moje zadanie.");
Log_SetTopicStatus (CH4_FindFriends, LOG_SUCCESS);
MIS_FindFriends = LOG_RUNNING;
//log 2
MIS_BanditsInAbadonedMine = LOG_RUNNING;
Log_CreateTopic (CH4_BanditsInAbadonedMine, LOG_MISSION);
Log_SetTopicStatus (CH4_BanditsInAbadonedMine, LOG_RUNNING);
B_LogEntry (CH4_BanditsInAbadonedMine,"Quentin znów ma plan. Tym razem muszę udać się wraz z grupką Bandytów do Opuszczonej Kopalni. Mamy pozbyć się Strażników i zająć kopalnię dla siebie. Powinienem uprzednio pogadać z Doylem.");
//story func
B_Story_FocusCorristoQuest ();
//stuff
//Wld_SendTrigger("KOPALNIAEXIT");
Wld_InsertNpc (GRD_2291_Strażnik,"OC1");
Wld_InsertNpc (GRD_2292_Strażnik,"OC1");
Wld_InsertNpc (GRD_2293_Strażnik,"OC1");
//prize --don't need
//CreateInvItems (self, ItMw_2H_Sword_02, 1);
//B_GiveInvItems (self, other, ItMw_2H_Sword_02, 1);
//exit
AI_StopProcessInfos (BAN_1610_Quentin);
};
//========================================
//-----------------> MineIsClean
//========================================
INSTANCE DIA_Quentin_MineIsClean (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_MineIsClean_Condition;
information = DIA_Quentin_MineIsClean_Info;
permanent = FALSE;
description = "Oczyściłem kopalnię ze Strażników i ożywieńców.";
};
FUNC INT DIA_Quentin_MineIsClean_Condition()
{
if (Npc_KnowsInfo (hero, DIA_Raeuber_NoNareszcie))
//&& (HeroMaArtefakt == false)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_MineIsClean_Info()
{
AI_Output (other, self ,"DIA_Quentin_MineIsClean_15_01"); //Oczyściłem kopalnię ze Strażników i ożywieńców.
AI_Output (self, other ,"DIA_Quentin_MineIsClean_03_02"); //Ożywieńców? Co tam do cholery się działo?
AI_Output (other, self ,"DIA_Quentin_MineIsClean_15_03"); //Pewien nekromanta urządził tam sobie koszary dla swojej armii nieumarłych. Udało mi się go pokonać i odebrać artefakt, który dawał mu moc.
AI_Output (other, self ,"DIA_Quentin_MineIsClean_15_04"); //Szkoda, że jak zwykle musiałem wszystko zrobić sam.
AI_Output (self, other ,"DIA_Quentin_MineIsClean_03_05"); //Żeby ci to wynagrodzić dam ci rudę, którą przeznaczyłem dla Doyle'a. Natychmiast wysyłam oddział Bandytów do kopalni.
AI_Output (other, self ,"DIA_Quentin_MineIsClean_15_06"); //Czym teraz mam się zająć?
AI_Output (self, other ,"DIA_Quentin_MineIsClean_03_07"); //Potrzebujemy jeszcze jakiegoś doświadczonego Kopacza, który pokierowałby ludźmi.
AI_Output (self, other ,"DIA_Quentin_MineIsClean_03_08"); //Mógłbyś coś zorganizować?
AI_Output (other, self ,"DIA_Quentin_MineIsClean_15_09"); //Postaram się.
//log
MIS_BanditsInAbadonedMine = LOG_SUCCESS;
Log_SetTopicStatus (CH4_BanditsInAbadonedMine, LOG_SUCCESS);
B_LogEntry (CH4_BanditsInAbadonedMine,"Powiedziałem Quentinowi o wszystkim, co wydarzyło się w opuszczonej kopalni. Moje zadanie dobiegło końca.");
//new quest
MIS_NewEnginer = LOG_RUNNING;
Log_CreateTopic (CH4_NewEnginer, LOG_MISSION);
Log_SetTopicStatus (CH4_NewEnginer, LOG_RUNNING);
B_LogEntry (CH4_NewEnginer,"Quentin natychmiast wysłał oddział Bandytów do kopalni. Mają zacząć tam pracę, jednak najpierw potrzebny jest ktoś z doświadczeniem, kto pokieruje wydobyciem. Muszę odnaleźć odpowiedniego człowieka. Sęk w tym, że najlepsi inżynierowie byli w Starym Obozie... ");
//npcs
Wld_InsertNpc (NON_3040_Bandyta,"KOPACZ");
Wld_InsertNpc (NON_3042_Bandyta,"KOPACZ");
Wld_InsertNpc (NON_3044_Bandyta,"KOPACZ");
Wld_InsertNpc (NON_3045_Bandyta,"KOPACZ");
Wld_InsertNpc (NON_3030_Bandyta,"KOPACZ");
Wld_InsertNpc (NON_3031_Bandyta,"KOPACZ");
Wld_InsertNpc (NON_3032_Bandyta,"KOPACZ");
Wld_InsertNpc (BAN_1608_Kereth,"KOPACZ");
Wld_InsertNpc (NON_3038_Bandyta,"KOPACZ");
Wld_InsertNpc (NON_3037_Bandyta,"KOPACZ");
Wld_InsertNpc (BAN_1615_Luis,"KOPACZ");//luis
//Wld_InsertNpc (BAN_1608_Kereth,"KOPACZ"); kereth fix
Npc_ExchangeRoutine (BAN_1605_Rocky,"start");
Npc_ExchangeRoutine (BAN_1613_Doyle,"afterstart");
Npc_ExchangeRoutine (BAN_1607_Chris,"start");
B_GiveXP (XP_ClearAbMine);
CreateInvItems (self, ItMiNugget, 1000);
B_GiveInvItems (self, other, ItMiNugget, 1000);
};
//========================================
//-----------------> GuyWork
//========================================
INSTANCE DIA_Quentin_GuyWork (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_GuyWork_Condition;
information = DIA_Quentin_GuyWork_Info;
permanent = FALSE;
description = "Guy chce dla ciebie pracować.";
};
FUNC INT DIA_Quentin_GuyWork_Condition()
{
if (MIS_NewEnginer == LOG_RUNNING)
&& (Npc_KnowsInfo (hero, DIA_Guy_backToMine))
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_GuyWork_Info()
{
AI_Output (other, self ,"DIA_Quentin_GuyWork_15_01"); //Guy chce dla ciebie pracować.
AI_Output (self, other ,"DIA_Quentin_GuyWork_03_02"); //Kto to taki?
AI_Output (other, self ,"DIA_Quentin_GuyWork_15_03"); //Były Kopacz, który uciekł ze Starego Obozu.
AI_Output (self, other ,"DIA_Quentin_GuyWork_03_04"); //Z pewnością ma sporo doświadczenia.
AI_Output (self, other ,"DIA_Quentin_GuyWork_03_05"); //Weź tę rudę.
if (Npc_KnowsInfo (hero, DIA_Quentin_NegocjacieNc))
{
AI_Output (self, other ,"DIA_Quentin_GuyWork_03_10"); //Powiedz Lee, że wyślę swoich ludzi.
};
//log
MIS_NewEnginer = LOG_SUCCESS;
CreateInvItems (self, ItMiNugget, 50);
B_GiveInvItems (self, other, ItMiNugget, 50);
B_LogEntry (CH4_NewEnginer,"Powiedziałem Quentinowi, że Guy będzie dla niego pracował. Ten człowiek ma duże doświadczenie.");
Log_SetTopicStatus (CH4_NewEnginer, LOG_SUCCESS);
//npc
B_ExchangeRoutine (VLK_530_Guy, "delte");
Wld_InsertNpc (VLK_599_GuyMine,"LOCATION_11_08");
//experience
B_GiveXP (200);
};
//========================================
//-----------------> Successasd
//========================================
INSTANCE DIA_Quentin_Successasd (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 3;
condition = DIA_Quentin_Successasd_Condition;
information = DIA_Quentin_Successasd_Info;
permanent = FALSE;
description = "Można powiedzieć, że osiągnęliśmy sukces.";
};
FUNC INT DIA_Quentin_Successasd_Condition()
{
if (MIS_BanditsInAbadonedMine == LOG_SUCCESS)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_Successasd_Info()
{
AI_Output (other, self ,"DIA_Quentin_Successasd_15_01"); //Można powiedzieć, że osiągnęliśmy sukces.
AI_Output (self, other ,"DIA_Quentin_Successasd_03_02"); //Masz rację. Udało nam się zadać cios Gomezowi.
AI_Output (self, other ,"DIA_Quentin_Successasd_03_03"); //Jednak wciąż musimy być czujni.
AI_Output (other, self ,"DIA_Quentin_Successasd_15_04"); //Jaki będzie kolejny cel Bandytów?
AI_Output (self, other ,"DIA_Quentin_Successasd_03_05"); //Jak zawsze: przeżyć jak najdłużej.
AI_Output (self, other ,"DIA_Quentin_Successasd_03_06"); //Mam nadzieję, że sytuacja w Kolonii niedługo się uspokoi.
AI_Output (self, other ,"DIA_Quentin_Successasd_03_07"); //A może wreszcie czeka nas wolność?
AI_Output (self, other ,"DIA_Quentin_Successasd_03_08"); //Kto wie? Może to ty nas ocalisz?
AI_Output (other, self ,"DIA_Quentin_Successasd_15_09"); //Chyba zbytnio mnie przeceniacie.
};
//========================================
//-----------------> OldMine
//========================================
INSTANCE DIA_Quentin_OldMine (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_OldMine_Condition;
information = DIA_Quentin_OldMine_Info;
permanent = FALSE;
description = "A co ze Starą Kopalnią?";
};
FUNC INT DIA_Quentin_OldMine_Condition()
{
if (MIS_BanditsInAbadonedMine == LOG_SUCCESS)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_OldMine_Info()
{
AI_Output (other, self ,"DIA_Quentin_OldMine_15_01"); //A co ze Starą Kopalnią?
AI_Output (self, other ,"DIA_Quentin_OldMine_03_02"); //Od dawna nie mamy stamtąd żadnych wieści.
AI_Output (self, other ,"DIA_Quentin_OldMine_03_03"); //Wybierz się tam i zobacz, co się tam wyprawia.
AI_Output (self, other ,"DIA_Quentin_OldMine_03_04"); //Tylko nie idź prosto do obozu. Obserwuj z daleka. Nie chciałbym żeby po tym wszystkim Strażnicy przerobili cię na pasztet.
//log
MIS_BackToOldMine = LOG_RUNNING;
Log_CreateTopic (CH4_BackToOldMine, LOG_MISSION);
Log_SetTopicStatus (CH4_BackToOldMine, LOG_RUNNING);
B_LogEntry (CH4_BackToOldMine,"Zapytałem Quentina o to, co się dzieje w Starej Kopalni. Sadziłem, że przywódca Bandytów będzie coś wiedział od swoich szpiegów. Ku mojemu zaskoczeniu niczego nowego nie wiedział Zaproponował mi, abym się tam pokręcił i czegoś dowiedział.");
//story func
B_Story_BattleInOldMineCamp ();
};
//========================================
//-----------------> TalkAboutMine
//========================================
INSTANCE DIA_Quentin_TalkAboutMine (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_TalkAboutMine_Condition;
information = DIA_Quentin_TalkAboutMine_Info;
permanent = FALSE;
description = "Byłem w pobliżu obozu.";
};
FUNC INT DIA_Quentin_TalkAboutMine_Condition()
{
if (Npc_KnowsInfo (hero, DIA_Patrick_Nieidz))
&& (MIS_BackToOldMine == LOG_RUNNING)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_TalkAboutMine_Info()
{
AI_Output (other, self ,"DIA_Quentin_TalkAboutMine_15_01"); //Byłem w pobliżu obozu.
AI_Output (self, other ,"DIA_Quentin_TalkAboutMine_03_02"); //I co się tam dzieje?
AI_Output (other, self ,"DIA_Quentin_TalkAboutMine_15_03"); //Podobno Strażnicy sprzeciwili się władzy Gomeza.
AI_Output (other, self ,"DIA_Quentin_TalkAboutMine_15_04"); //Zabili jakiegoś Magnata. który miał tymczasowo zająć się obozem.
AI_Output (other, self ,"DIA_Quentin_TalkAboutMine_15_05"); //Gomez jeszcze nie wie, że utracił wpływy w obozie przy Starej Kopalni.
AI_Output (other, self ,"DIA_Quentin_TalkAboutMine_15_06"); //Gdy się dowie, wpadnie w szał.
AI_Output (self, other ,"DIA_Quentin_TalkAboutMine_03_07"); //I właśnie o to nam chodzi, chłopcze!
AI_Output (self, other ,"DIA_Quentin_TalkAboutMine_03_08"); //Jak dobrze pójdzie, to wybiją się sami.
AI_Output (other, self ,"DIA_Quentin_TalkAboutMine_15_09"); //Masz jakiś plan?
AI_Output (self, other ,"DIA_Quentin_TalkAboutMine_03_10"); //Musisz znaleźć kogoś, kto zaniesie informacje o tym co się stało w kopalni do Starego Obozu.
AI_Output (self, other ,"DIA_Quentin_TalkAboutMine_03_11"); //Może znasz kogoś kto uciekł, ale wciąż ma dobre kontakty?
AI_Output (self, other ,"DIA_Quentin_TalkAboutMine_03_12"); //Nie wiem. Pomyśl, poszukaj, pogadaj i przyjdź do mnie później.
AI_Output (other, self ,"DIA_Quentin_TalkAboutMine_15_13"); //Zobaczę co da się zrobić.
//log
B_LogEntry (CH4_BackToOldMine,"Quentin ucieszył się z takiego obrotu sprawy. Mam znaleźć kogoś, kto powie ludziom Gomeza o tym co stało się w obozie przy Starej Kopalni.");
//story func
B_Story_BattleInOldMineCamp ();
//experience
B_GiveXP (100);
};
//========================================
//-----------------> ZlatwioneXDXD
//========================================
INSTANCE DIA_Quentin_ZlatwioneXDXD (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_ZlatwioneXDXD_Condition;
information = DIA_Quentin_ZlatwioneXDXD_Info;
permanent = FALSE;
description = "Skorpion zaniesie do Starego Obozu informację o zdarzeniach z obozu przed kopalnią.";
};
FUNC INT DIA_Quentin_ZlatwioneXDXD_Condition()
{
if (Npc_KnowsInfo (hero, DIA_Quentin_TalkAboutMine))
&& (przekupionyGRD == true)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_ZlatwioneXDXD_Info()
{
AI_Output (other, self ,"DIA_Quentin_ZlatwioneXDXD_15_01"); //Skorpion zaniesie do Starego Obozu informację o zdarzeniach z obozu przed kopalnią.
AI_Output (self, other ,"DIA_Quentin_ZlatwioneXDXD_03_02"); //Dobra robota. Nie wiem jak dogadałeś się ze Strażnikiem, ale liczy się efekt.
AI_Output (self, other ,"DIA_Quentin_ZlatwioneXDXD_03_03"); //Teraz skoro Gomez już o wszystkim wie, z pewnością wysłał już tam kolejne oddziały swoich ludzi.
AI_Output (self, other ,"DIA_Quentin_ZlatwioneXDXD_03_04"); //Ponownie zakradnij się w pobliże kopalni i zobacz co się tam dzieje.
//log
B_LogEntry (CH4_BackToOldMine,"Pora zobaczyć skutki naszych działań... Mam wrócić w okolice kopalni i się rozejrzeć.");
//experience
B_GiveXP (XP_SkorpioWork);
//exit
AI_StopProcessInfos (self);
};
//========================================
//-----------------> KoniecWatkuBandytow
//========================================
INSTANCE DIA_Quentin_KoniecWatkuBandytow (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_KoniecWatkuBandytow_Condition;
information = DIA_Quentin_KoniecWatkuBandytow_Info;
permanent = FALSE;
description = "Rozmawiałem z Artegorem z obozu przed kopalnią.";
};
FUNC INT DIA_Quentin_KoniecWatkuBandytow_Condition()
{
if (Npc_KnowsInfo (hero, DIA_Artegor_EveryoneDie))
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_KoniecWatkuBandytow_Info()
{
// AI_Output (other, self ,"DIA_Quentin_KoniecWatkuBandytow_15_01"); //Udało nam się!
AI_Output (other, self ,"DIA_Quentin_KoniecWatkuBandytow_15_02"); //Rozmawiałem z Artegorem z obozu przed kopalnią.
AI_Output (other, self ,"DIA_Quentin_KoniecWatkuBandytow_15_03"); //Wszyscy nie żyją. Strażnicy wybili się do nogi. Przeżył tylko on.
AI_Output (self, other ,"DIA_Quentin_KoniecWatkuBandytow_03_04"); //Wiedziałem! Wiedziałem, że nam się uda!
AI_Output (self, other ,"DIA_Quentin_KoniecWatkuBandytow_03_05"); //Gomez wpakował się w niemałe kłopoty. Zostało mu mało ludzi do obrony obozu.
AI_Output (self, other ,"DIA_Quentin_KoniecWatkuBandytow_03_06"); //Wkrótce skończy ze sztyletem w gardle!
AI_Output (self, other ,"DIA_Quentin_KoniecWatkuBandytow_03_07"); //Nie musimy się już obawiać Starego Obozu. Jest ich zbyt mało, aby cokolwiek zdziałać.
AI_Output (self, other ,"DIA_Quentin_KoniecWatkuBandytow_03_08"); //A ty, chłopcze? Czym teraz się zajmiesz?
AI_Output (other, self ,"DIA_Quentin_KoniecWatkuBandytow_15_09"); //Pewnie będę pomagał Magom Wody nam się stąd wydostać.
AI_Output (self, other ,"DIA_Quentin_KoniecWatkuBandytow_03_10"); //W takim razie, powodzenia. Pamiętaj, że tutaj zawsze możesz wrócić.
AI_Output (self, other ,"DIA_Quentin_KoniecWatkuBandytow_03_11"); //Masz tu kilka mikstur na drogę. Zrabowałem je lata temu.
//log
B_LogEntry (CH4_BackToOldMine,"Potęga Gomeza podupadła na tyle, że Quentin odetchnął z ulgą. Obóz Bandytów jest na razie bezpieczny, a moja misja w nim dobiega końca.");
Log_SetTopicStatus (CH4_BackToOldMine, LOG_SUCCESS);
MIS_BackToOldMine = LOG_SUCCESS;
//experience
B_GiveXP (5000);
//prize
CreateInvItems (self, ItFo_Potion_Dex_02, 1);
B_GiveInvItems (self, other, ItFo_Potion_Dex_02, 1);
CreateInvItems (self, ItFo_Potion_Health_Perma_02, 1);
B_GiveInvItems (self, other, ItFo_Potion_Health_Perma_02, 1);
};
///////////////////////////////////////////////////////////////////////////////////////////
// Quentin
// Rozdział 4
// Zadanie z piratami
///////////////////////////////////////////////////////////////////////////////////////////
//========================================
//-----------------> RozmowaOPiratach
//========================================
INSTANCE DIA_Quentin_RozmowaOPiratach (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_RozmowaOPiratach_Condition;
information = DIA_Quentin_RozmowaOPiratach_Info;
permanent = FALSE;
Important = TRUE;
};
FUNC INT DIA_Quentin_RozmowaOPiratach_Condition()
{
if (Npc_KnowsInfo (hero, DIA_Raeuber_PiratArmorDoyle))
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_RozmowaOPiratach_Info()
{
AI_Output (self, other ,"DIA_Quentin_RozmowaOPiratach_03_01"); //Podobno spotkałeś piratów w Kolonii.
AI_Output (other, self ,"DIA_Quentin_RozmowaOPiratach_15_02"); //Tak. Spotkałem ich na plaży niedaleko Wieży Mgieł.
AI_Output (other, self ,"DIA_Quentin_RozmowaOPiratach_15_03"); //Ich statek się rozbił i zostali zaatakowani przez Strażników.
AI_Output (self, other ,"DIA_Quentin_RozmowaOPiratach_03_04"); //Gomez chyba do reszty zgłupiał.
AI_Output (self, other ,"DIA_Quentin_RozmowaOPiratach_03_05"); //Patroluje całą Dolinę.
AI_Output (other, self ,"DIA_Quentin_RozmowaOPiratach_15_06"); //Chciałeś coś od tych piratów?
AI_Output (self, other ,"DIA_Quentin_RozmowaOPiratach_03_07"); //Dawno temu także byłem piratem.
AI_Output (self, other ,"DIA_Quentin_RozmowaOPiratach_03_08"); //Nie jakimś tam kapitanem. Zwykłym szczurem okrętowym.
AI_Output (self, other ,"DIA_Quentin_RozmowaOPiratach_03_09"); //Zawsze chciałem mieć swój własny kordelas. Tak jak inni piraci.
AI_Output (self, other ,"DIA_Quentin_RozmowaOPiratach_03_10"); //Jednak zostalem złapany i wtrącony tutaj.
AI_Output (other, self ,"DIA_Quentin_RozmowaOPiratach_15_11"); //Dałeś się tak łatwo złapać?
AI_Output (self, other ,"DIA_Quentin_RozmowaOPiratach_03_12"); //Gdy mnie pochwycili nie byłem już piratem, tylko Bandytą.
AI_Output (other, self ,"DIA_Quentin_RozmowaOPiratach_15_13"); //Mam zdobyć dla ciebie ten kordelas?
AI_Output (self, other ,"DIA_Quentin_RozmowaOPiratach_03_14"); //Byłbym ci bardzo wdzięczny.
AI_Output (self, other ,"DIA_Quentin_RozmowaOPiratach_03_15"); //Oczywiście wynagrodzę cię rudą.
AI_Output (other, self ,"DIA_Quentin_RozmowaOPiratach_15_16"); //No dobrze. Pogadam z tymi piratami.
MIS_QuentinsCutlass = LOG_RUNNING;
Log_CreateTopic (CH4_QuentinsCutlass, LOG_MISSION);
Log_SetTopicStatus (CH4_QuentinsCutlass, LOG_RUNNING);
B_LogEntry (CH4_QuentinsCutlass,"Quentin w młodości był piratem. Gdy zobaczył mój piracki strój, wróciły w nim stare wspomnienia. Mam udać się do piratów i spróbować zdobyć kordelas.");
AI_StopProcessInfos (self);
};
//========================================
//-----------------> KordelasJest
//========================================
INSTANCE DIA_Quentin_KordelasJest (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 2;
condition = DIA_Quentin_KordelasJest_Condition;
information = DIA_Quentin_KordelasJest_Info;
permanent = FALSE;
description = "Mam kordelas.";
};
FUNC INT DIA_Quentin_KordelasJest_Condition()
{
if (Npc_KnowsInfo (hero, DIA_Quentin_RozmowaOPiratach))
&& (Npc_HasItems (other, Kordelas) >=1)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_KordelasJest_Info()
{
AI_Output (other, self ,"DIA_Quentin_KordelasJest_15_01"); //Mam kordelas.
AI_Output (self, other ,"DIA_Quentin_KordelasJest_03_02"); //Pokaż mi go!
AI_LookForItem (self,Kordelas);
B_LogEntry (CH4_QuentinsCutlass,"Quentin był bardzo zadowolony z nowej broni.");
Log_SetTopicStatus (CH4_QuentinsCutlass, LOG_SUCCESS);
MIS_QuentinsCutlass = LOG_SUCCESS;
B_GiveXP (200);
AI_Output (self, other ,"DIA_Quentin_KordelasJest_03_03"); //Wspaniałe ostrze.
AI_Output (self, other ,"DIA_Quentin_KordelasJest_03_04"); //Masz jaja, chłopcze. Dzięki.
AI_Output (self, other ,"DIA_Quentin_KordelasJest_03_05"); //Trzymaj swoją działkę.
CreateInvItems (self, ItMiNugget, 75);
B_GiveInvItems (self, other, ItMiNugget, 75);
B_GiveInvItems (other, self, Kordelas, 1);
AI_StopProcessInfos (self);
};
///////////////////////////////////////////////////////////////////////////////////////////
// Quentin
// Rozdział 4
// Obóz bandytów oczami innych obozów
///////////////////////////////////////////////////////////////////////////////////////////
var int przyjaciel_Bandytow;
//========================================
//-----------------> CO_TY_TU_NAJMENIKU
//========================================
INSTANCE DIA_Quentin_CO_TY_TU_NAJMENIKU (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_CO_TY_TU_NAJMENIKU_Condition;
information = DIA_Quentin_CO_TY_TU_NAJMENIKU_Info;
permanent = FALSE;
Important = TRUE;
};
FUNC INT DIA_Quentin_CO_TY_TU_NAJMENIKU_Condition()
{
if (Npc_KnowsInfo (hero, DIA_Raeuber_ZNANY_NAJEMNIK))
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_CO_TY_TU_NAJMENIKU_Info()
{
if (Npc_GetTrueGuild (hero) == GIL_SLD)
{
AI_Output (self, other ,"DIA_Quentin_CO_TY_TU_NAJMENIKU_03_01"); //Co ty tu robisz, Najemniku?
}
else if (Npc_GetTrueGuild (hero) == GIL_GUR)
{
AI_Output (self, other ,"DIA_Quentin_CO_TY_TU_NAJMENIKU_03_01_GUR"); //Guru? Tutaj? Co sprowadza kogoś takiego jak ty w to niegościnne miejsce?
}
else if (Npc_GetTrueGuild (hero) == GIL_KDW)
{
AI_Output (self, other ,"DIA_Quentin_CO_TY_TU_NAJMENIKU_03_01_KDW"); //Mag Wody w naszym Obozie? Co cię tu sprowadza?
}
else
{
AI_Output (self, other ,"DIA_Quentin_CO_TY_TU_NAJMENIKU_03_01_OTH"); //Czego szukasz w moim Obozie?
};
AI_Output (other, self ,"DIA_Quentin_CO_TY_TU_NAJMENIKU_15_02"); //Przybywam z polecenia Doyle'a.
// AI_DrawWeapon (self);
AI_Output (self, other ,"DIA_Quentin_CO_TY_TU_NAJMENIKU_03_03"); //Jak to?
AI_Output (other, self ,"DIA_Quentin_CO_TY_TU_NAJMENIKU_15_04"); //Poprosił mnie o sprawdzenie, co się tu dzieje.
AI_Output (self, other ,"DIA_Quentin_CO_TY_TU_NAJMENIKU_03_05"); //Gdzie jest ten dureń?
// AI_RemoveWeapon (self);
AI_Output (other, self ,"DIA_Quentin_CO_TY_TU_NAJMENIKU_15_06"); //Udał się do Nowego Obozu, by wspomóc ludzi Lee w walce ze Strażnikami.
AI_Output (other, self ,"DIA_Quentin_CO_TY_TU_NAJMENIKU_15_07"); //Torlof poprosił go o pomoc, a ja miałem zobaczyć czy wszystko u was w porządku.
AI_Output (self, other ,"DIA_Quentin_CO_TY_TU_NAJMENIKU_03_08"); //Dobrze, że chociaż ty wykazałeś się zdrowym rozsądkiem. Jak spotkasz Doyla, to powiedz mu, żeby przestał błaznować i wrócił do Obozu.
AI_Output (other, self ,"DIA_Quentin_CO_TY_TU_NAJMENIKU_15_09"); //Powiesz mi tak w ogóle co się tu wydarzyło?
AI_Output (self, other ,"DIA_Quentin_CO_TY_TU_NAJMENIKU_03_10"); //No więc poszliśmy razem z Draxem i kilkoma dobrymi ludźmi w okolice Starego Obozu.
AI_Output (self, other ,"DIA_Quentin_CO_TY_TU_NAJMENIKU_03_11"); //Chcieliśmy pozbyć się części patroli, które kręciły się w okolicy. Jednak zostaliśmy złapani w zasadzkę, z której udało nam się wyjść cało.
AI_Output (self, other ,"DIA_Quentin_CO_TY_TU_NAJMENIKU_03_12"); //To cała historia.
AI_Output (other, self ,"DIA_Quentin_CO_TY_TU_NAJMENIKU_15_13"); //Tyle mi wystarczy. Ostatnio mam już tego dużo na głowie.
AI_Output (self, other ,"DIA_Quentin_CO_TY_TU_NAJMENIKU_03_14"); //Jeszcze jedno. W naszym Obozie możesz się czuć bezpiecznie. Nikt nie będzie cię tu gnębił. Czuj się tu jak u siebie.
AI_Output (self, other ,"DIA_Quentin_CO_TY_TU_NAJMENIKU_03_15"); //Gdybyś potrzebował ekwipunku, pogadaj z Martinem.
AI_Output (other, self ,"DIA_Quentin_CO_TY_TU_NAJMENIKU_15_16"); //Bywaj, Quentinie.
przyjaciel_Bandytow = true;
B_LogEntry (CH4_BanditsInTroubles,"Udałem się do Obozu Bandytów, gdzie spotkałem ich przywódcę - Quentina. Poprosił mnie, abym przekazał Doyle'owi, że ma się natychmiast pojawić w Obozie.");
B_GiveXP (500);
AI_StopProcessInfos (self);
};
//========================================
//-----------------> NegocjacieNc
//========================================
INSTANCE DIA_Quentin_NegocjacieNc (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_NegocjacieNc_Condition;
information = DIA_Quentin_NegocjacieNc_Info;
permanent = FALSE;
description = "Przyszedłem negocjować.";
};
FUNC INT DIA_Quentin_NegocjacieNc_Condition()
{
if (Npc_KnowsInfo (hero, DIA_Lee_BRAK_LUDZI))
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_NegocjacieNc_Info()
{
AI_Output (other, self ,"DIA_Quentin_NegocjacieNc_15_01"); //Przyszedłem negocjować.
AI_Output (self, other ,"DIA_Quentin_NegocjacieNc_03_02"); //Negocjować?
AI_Output (other, self ,"DIA_Quentin_NegocjacieNc_15_03"); //Przybywam z polecenia Lee. Mam ci złożyć propozycję, w jego imieniu rzecz jasna.
AI_Output (other, self ,"DIA_Quentin_NegocjacieNc_15_04"); //Chcemy wznowić wydobycie w tym miejscu, jednak nie mamy robotników.
AI_Output (other, self ,"DIA_Quentin_NegocjacieNc_15_05"); //Lee obiecuje wam czwartą część urobku w zamian za robotników.
AI_Output (self, other ,"DIA_Quentin_NegocjacieNc_03_06"); //Mam wysłać moich ludzi do kopalni?
AI_Output (other, self ,"DIA_Quentin_NegocjacieNc_15_07"); //Już mówiłem, że czwartą wykopaną przez nich część będziecie mogli zatrzymać.
AI_Output (self, other ,"DIA_Quentin_NegocjacieNc_03_08"); //No niech będzie. Większość tych obiboków i tak śpi cały dzień...
AI_Output (self, other ,"DIA_Quentin_NegocjacieNc_03_09"); //Powiedz Lee, że wyślę kilku ludzi, ale przy okazji będziesz musiał coś dla mnie zrobić.
AI_Output (other, self ,"DIA_Quentin_NegocjacieNc_15_10"); //Co takiego?
AI_Output (self, other ,"DIA_Quentin_NegocjacieNc_03_11"); //Przyprowadź do pracy w kopalni jakiegoś doświadczonego górnika. Moi ludzie kompletnie się na tym nie znają.
//B_LogEntry (CH4_NC_Mine,"Quentin niechętnie, ale zgodził się na naszą propozycję.");
Wld_InsertNpc (NON_3040_Bandyta,"KOPACZ");
Wld_InsertNpc (NON_3042_Bandyta,"KOPACZ");
Wld_InsertNpc (NON_3044_Bandyta,"KOPACZ");
Wld_InsertNpc (NON_3045_Bandyta,"KOPACZ");
Wld_InsertNpc (NON_3030_Bandyta,"KOPACZ");
Wld_InsertNpc (NON_3031_Bandyta,"KOPACZ");
Wld_InsertNpc (NON_3032_Bandyta,"KOPACZ");
Wld_InsertNpc (BAN_1608_Kereth,"KOPACZ");
Wld_InsertNpc (NON_3038_Bandyta,"KOPACZ");
Wld_InsertNpc (NON_3037_Bandyta,"KOPACZ");
Wld_InsertNpc (BAN_1615_Luis,"KOPACZ");//luis
//Wld_InsertNpc (BAN_1608_Kereth,"KOPACZ"); kereth fix
//zadanie
MIS_NewEnginer = LOG_RUNNING;
Log_CreateTopic (CH4_NewEnginer, LOG_MISSION);
Log_SetTopicStatus (CH4_NewEnginer, LOG_RUNNING);
B_LogEntry (CH4_NewEnginer,"Quentin zgodził się na propozycję Lee. Przywódca Bandytów wyśle kilku swoich ludzi do kopalni, jednak poprosił mnie w zamian o przysługę. Mam przyprowadzić jakiegoś kompetentnego człowieka, który pokieruje jego ludźmi. Tylko gdzie ja teraz znajdę kogoś takiego...");
B_GiveXP (300);
};
///////////////////////////////////////////////////////////////////////////////////////////
// Quentin
// BAN_1610_Quentin
// Skrypt nauki broni jednoręcznej
///////////////////////////////////////////////////////////////////////////////////////////
// **************************************************
// START_TRAIN
// **************************************************
INSTANCE DIA_Quentin_START_TRAIN (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 10;
condition = DIA_Quentin_START_TRAIN_Condition;
information = DIA_Quentin_START_TRAIN_Info;
permanent = 1;
description = "Zacznijmy trening.";
};
FUNC INT DIA_Quentin_START_TRAIN_Condition()
{
if (Npc_KnowsInfo(hero,DIA_Quentin_KnowsNauka)) && (Npc_GetTrueGuild(hero) == GIL_BAU)
{
return 1;
};
};
FUNC VOID DIA_Quentin_START_TRAIN_Info()
{
AI_Output (other,self,"DIA_Quentin_START_TRAIN_15_00"); //Zacznijmy trening.
AI_Output (self,other,"DIA_Quentin_START_TRAIN_01_01"); //Do roboty!
Info_ClearChoices (DIA_Quentin_START_TRAIN);
Info_AddChoice (DIA_Quentin_START_TRAIN,DIALOG_BACK,DIA_Quentin_START_TRAINBACK);
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 0)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 1, 100 bryłek rudy, 10 PN",Quentin_nauka1h1);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 1)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 2, 200 bryłek rudy, 10 PN",Quentin_nauka1h2);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 2)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 3, 300 bryłek rudy, 10 PN",Quentin_nauka1h3);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 3)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 4, 400 bryłek rudy, 10 PN",Quentin_nauka1h4);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 4)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 5, 500 bryłek rudy, 10 PN",Quentin_nauka1h5);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 5)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 6, 600 bryłek rudy, 10 PN",Quentin_nauka1h6);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 6)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 7, 1000 bryłek rudy, 10 PN",Quentin_nauka1h7);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 7)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 8, 1500 bryłek rudy, 10 PN",Quentin_nauka1h8);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 8)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 9, 2000 bryłek rudy, 10 PN",Quentin_nauka1h9);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 9)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 10, 2500 bryłek rudy, 10 PN",Quentin_nauka1h10);
};
};
func void DIA_Quentin_START_TRAINBACK ()
{
Info_ClearChoices (DIA_Quentin_START_TRAIN);
var int ilosc;
ilosc = Npc_hasitems (self, itminugget);
Npc_RemoveInvItems (self, itminugget, ilosc);
};
FUNC VOID Quentin_nauka1h1 ()
{
AI_Output (other,self,"DIA_Quentin_TRAIN_1h_15_00"); //Chciałbym nauczyć się walki jednoręcznym orężem.
if (Npc_HasItems(other,itminugget) >= 100)
{
if (B_GiveSkill(other, NPC_TALENT_1H, 1, 10))
{
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_01"); //Mądra decyzja. Najbliższe trzy lekcje obejmą podstawy z którymi powinieneś się zapoznać.
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_02"); //Bronie jednoręczne są znacznie lżejsze niż dwuręczne, a przez to również znacznie szybsze.
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_03"); //Istnieje podział na lekkie bronie jednoręczne i te cięższe. Cięższe wymagają pewniejszego chwytu, ale też więcej siły.
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_04"); //Jeśli chcesz płynnie walczyć ciężką jednoręczną, poza techniką będziesz też musiał poznać tajniki balansowania ciałem.
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_05"); //O dużej sile w łapie już nawet nie mówię. To oczywiste, że żeby szybko wymachiwać takim ciężarem będziesz musiał posiadać więcej siły niż potrzeba do podniesienia dobrego dwuręcznego miecza.
B_GiveInvItems(other,self,itminugget,100);
};
}
else
{
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_NoOre_01_00"); //Nie masz wystarczającej ilości rudy!
};
Info_ClearChoices (DIA_Quentin_START_TRAIN);
Info_AddChoice (DIA_Quentin_START_TRAIN,DIALOG_BACK,DIA_Quentin_START_TRAINBACK);
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 0)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 1, 100 bryłek rudy, 10 PN",Quentin_nauka1h1);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 1)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 2, 200 bryłek rudy, 10 PN",Quentin_nauka1h2);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 2)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 3, 300 bryłek rudy, 10 PN",Quentin_nauka1h3);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 3)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 4, 400 bryłek rudy, 10 PN",Quentin_nauka1h4);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 4)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 5, 500 bryłek rudy, 10 PN",Quentin_nauka1h5);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 5)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 6, 600 bryłek rudy, 10 PN",Quentin_nauka1h6);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 6)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 7, 1000 bryłek rudy, 10 PN",Quentin_nauka1h7);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 7)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 8, 1500 bryłek rudy, 10 PN",Quentin_nauka1h8);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 8)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 9, 2000 bryłek rudy, 10 PN",Quentin_nauka1h9);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 9)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 10, 2500 bryłek rudy, 10 PN",Quentin_nauka1h10);
};
};
FUNC VOID Quentin_nauka1h2 ()
{
AI_Output (other,self,"DIA_Quentin_TRAIN_2h_15_01"); //Naucz mnie sprawniej posługiwać się jednoręczną bronią.
if (Npc_HasItems(other,itminugget) >= 200)
{
if (B_GiveSkill(other, NPC_TALENT_1H, 2, 10))
{
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_06"); //Pokaż mi jak trzymasz miecz.
AI_DrawWeapon (other);
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_07"); //Tak jak myślałem. Zadajesz mniejsze obrażenia niż faktycznie mógłbyś zadać przy obecnej sile i założonej broni.
AI_RemoveWeapon (other);
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_08"); //Nie atakuj, gdy jesteś zbyt daleko. Jeśli za bardzo się wychylisz do oddalonego przeciwnika, możesz stracić równowagę i się przewrócić.
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_09"); //Staraj się atakować z różnych stron, aby zmylić przeciwnika. Pamiętaj, aby blokować uderzenia, jeśli nie będziesz w stanie zrobić uniku.
B_GiveInvItems(other,self,itminugget,200);
};
}
else
{
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_NoOre_01_00"); //Nie masz wystarczającej ilości rudy!
};
Info_ClearChoices (DIA_Quentin_START_TRAIN);
Info_AddChoice (DIA_Quentin_START_TRAIN,DIALOG_BACK,DIA_Quentin_START_TRAINBACK);
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 0)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 1, 100 bryłek rudy, 10 PN",Quentin_nauka1h1);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 1)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 2, 200 bryłek rudy, 10 PN",Quentin_nauka1h2);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 2)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 3, 300 bryłek rudy, 10 PN",Quentin_nauka1h3);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 3)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 4, 400 bryłek rudy, 10 PN",Quentin_nauka1h4);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 4)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 5, 500 bryłek rudy, 10 PN",Quentin_nauka1h5);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 5)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 6, 600 bryłek rudy, 10 PN",Quentin_nauka1h6);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 6)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 7, 1000 bryłek rudy, 10 PN",Quentin_nauka1h7);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 7)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 8, 1500 bryłek rudy, 10 PN",Quentin_nauka1h8);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 8)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 9, 2000 bryłek rudy, 10 PN",Quentin_nauka1h9);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 9)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 10, 2500 bryłek rudy, 10 PN",Quentin_nauka1h10);
};
};
FUNC VOID Quentin_nauka1h3 ()
{
AI_Output (other,self,"DIA_Quentin_TRAIN_2h_15_01"); //Naucz mnie sprawniej posługiwać się jednoręczną bronią.
if (Npc_HasItems(other,itminugget) >= 300)
{
if (B_GiveSkill(other, NPC_TALENT_1H, 3, 10))
{
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_10"); //Pamiętasz o balansowaniu ciałem? A o odpowiedniej odległości od przeciwnika?
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_11"); //Spróbuj wyczuć ile siły musisz użyć, aby broń uderzała mocno, a przy tym nie poleciała bezładnie przed siebie.
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_12"); //Gdy to opanujesz, będziemy mogli pomyśleć nad łączeniem po sobie uderzeń.
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_13"); //Pokaż mi jeszcze jak wyciągasz broń. Robisz jakieś postępy?
AI_DrawWeapon (other);
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_14"); //Ręce opadają... Nie dwiema, tylko jedną! Omówimy to na następnej lekcji.
AI_RemoveWeapon (other);
B_GiveInvItems(other,self,itminugget,300);
};
}
else
{
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_NoOre_01_00"); //Nie masz wystarczającej ilości rudy!
};
Info_ClearChoices (DIA_Quentin_START_TRAIN);
Info_AddChoice (DIA_Quentin_START_TRAIN,DIALOG_BACK,DIA_Quentin_START_TRAINBACK);
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 0)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 1, 100 bryłek rudy, 10 PN",Quentin_nauka1h1);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 1)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 2, 200 bryłek rudy, 10 PN",Quentin_nauka1h2);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 2)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 3, 300 bryłek rudy, 10 PN",Quentin_nauka1h3);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 3)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 4, 400 bryłek rudy, 10 PN",Quentin_nauka1h4);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 4)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 5, 500 bryłek rudy, 10 PN",Quentin_nauka1h5);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 5)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 6, 600 bryłek rudy, 10 PN",Quentin_nauka1h6);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 6)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 7, 1000 bryłek rudy, 10 PN",Quentin_nauka1h7);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 7)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 8, 1500 bryłek rudy, 10 PN",Quentin_nauka1h8);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 8)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 9, 2000 bryłek rudy, 10 PN",Quentin_nauka1h9);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 9)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 10, 2500 bryłek rudy, 10 PN",Quentin_nauka1h10);
};
};
FUNC VOID Quentin_nauka1h4 ()
{
AI_Output (other,self,"DIA_Quentin_TRAIN_2h_15_01"); //Naucz mnie sprawniej posługiwać się jednoręczną bronią.
if (Npc_HasItems(other,itminugget) >= 400)
{
if (B_GiveSkill(other, NPC_TALENT_1H, 4, 10))
{
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_01_02"); //Początkujący często łapią zwykły miecz obydwoma rękami. Radziłbym ci się do tego nie przyzwyczajać, to fatalny nawyk.
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_01_03"); //Trzymaj broń jedną ręką, ostrzem do góry, i zacznij nią machać.
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_01_04"); //Musisz się nauczyć, jak zgrać twoje ruchy z bezwładnością oręża. Dzięki temu twoje ataki będą szybsze i bardziej zaskakujące.
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_01_05"); //Zapamiętaj sobie dobrze, co ci powiedziałem, a twój styl walki stanie się o wiele bardziej elegancki i skuteczny.
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_01_06"); //A, i jeszcze coś! Niektóre ciosy powodują większe obrażenia niż zwykle. Oczywiście, jako początkujący masz raczej niewielkie szanse na zadanie krytycznego uderzenia.
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_01_07"); //Ale to się zmieni w miarę czynienia przez ciebie postępów.
B_GiveInvItems(other,self,itminugget,400);
};
}
else
{
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_NoOre_01_00"); //Nie masz wystarczającej ilości rudy!
};
Info_ClearChoices (DIA_Quentin_START_TRAIN);
Info_AddChoice (DIA_Quentin_START_TRAIN,DIALOG_BACK,DIA_Quentin_START_TRAINBACK);
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 0)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 1, 100 bryłek rudy, 10 PN",Quentin_nauka1h1);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 1)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 2, 200 bryłek rudy, 10 PN",Quentin_nauka1h2);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 2)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 3, 300 bryłek rudy, 10 PN",Quentin_nauka1h3);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 3)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 4, 400 bryłek rudy, 10 PN",Quentin_nauka1h4);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 4)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 5, 500 bryłek rudy, 10 PN",Quentin_nauka1h5);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 5)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 6, 600 bryłek rudy, 10 PN",Quentin_nauka1h6);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 6)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 7, 1000 bryłek rudy, 10 PN",Quentin_nauka1h7);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 7)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 8, 1500 bryłek rudy, 10 PN",Quentin_nauka1h8);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 8)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 9, 2000 bryłek rudy, 10 PN",Quentin_nauka1h9);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 9)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 10, 2500 bryłek rudy, 10 PN",Quentin_nauka1h10);
};
};
FUNC VOID Quentin_nauka1h5 ()
{
AI_Output (other,self,"DIA_Quentin_TRAIN_2h_15_01"); //Naucz mnie sprawniej posługiwać się jednoręczną bronią.
if (Npc_HasItems(other,itminugget) >= 500)
{
if (B_GiveSkill(other, NPC_TALENT_1H, 5, 10))
{
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_15"); //Żeby zadać większe obrażenia musisz trafiać w newralgiczne punkty twojego przeciwnika.
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_16"); //Ciężko się tego nauczyć. Wszystko zależy od postury i pancerza. Najlepiej atakować kończyny i głowę.
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_17"); //Naturalnie walka z człowiekiem różni się od walki ze zwierzęciem.
B_GiveInvItems(other,self,itminugget,500);
};
}
else
{
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_NoOre_01_00"); //Nie masz wystarczającej ilości rudy!
};
Info_ClearChoices (DIA_Quentin_START_TRAIN);
Info_AddChoice (DIA_Quentin_START_TRAIN,DIALOG_BACK,DIA_Quentin_START_TRAINBACK);
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 0)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 1, 100 bryłek rudy, 10 PN",Quentin_nauka1h1);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 1)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 2, 200 bryłek rudy, 10 PN",Quentin_nauka1h2);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 2)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 3, 300 bryłek rudy, 10 PN",Quentin_nauka1h3);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 3)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 4, 400 bryłek rudy, 10 PN",Quentin_nauka1h4);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 4)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 5, 500 bryłek rudy, 10 PN",Quentin_nauka1h5);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 5)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 6, 600 bryłek rudy, 10 PN",Quentin_nauka1h6);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 6)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 7, 1000 bryłek rudy, 10 PN",Quentin_nauka1h7);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 7)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 8, 1500 bryłek rudy, 10 PN",Quentin_nauka1h8);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 8)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 9, 2000 bryłek rudy, 10 PN",Quentin_nauka1h9);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 9)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 10, 2500 bryłek rudy, 10 PN",Quentin_nauka1h10);
};
};
FUNC VOID Quentin_nauka1h6 ()
{
AI_Output (other,self,"DIA_Quentin_TRAIN_2h_15_01"); //Naucz mnie sprawniej posługiwać się jednoręczną bronią.
if (Npc_HasItems(other,itminugget) >= 600)
{
if (B_GiveSkill(other, NPC_TALENT_1H, 6, 10))
{
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_18"); //Pamiętasz jak na pierwszej lekcji omawialiśmy podział na bronie ciężkie i te lżejsze?
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_19"); //Myślę, że jesteś już wystarczająco silny, aby walczyć ciężkimi jednoręczniakami.
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_20"); //O czym musisz pamiętać? O odpowiednim wyczuciu równowagi ostrza, a także o treningu siłowym, który jest tutaj kluczowy.
B_GiveInvItems(other,self,itminugget,600);
};
}
else
{
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_NoOre_01_00"); //Nie masz wystarczającej ilości rudy!
};
Info_ClearChoices (DIA_Quentin_START_TRAIN);
Info_AddChoice (DIA_Quentin_START_TRAIN,DIALOG_BACK,DIA_Quentin_START_TRAINBACK);
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 0)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 1, 100 bryłek rudy, 10 PN",Quentin_nauka1h1);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 1)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 2, 200 bryłek rudy, 10 PN",Quentin_nauka1h2);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 2)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 3, 300 bryłek rudy, 10 PN",Quentin_nauka1h3);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 3)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 4, 400 bryłek rudy, 10 PN",Quentin_nauka1h4);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 4)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 5, 500 bryłek rudy, 10 PN",Quentin_nauka1h5);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 5)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 6, 600 bryłek rudy, 10 PN",Quentin_nauka1h6);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 6)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 7, 1000 bryłek rudy, 10 PN",Quentin_nauka1h7);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 7)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 8, 1500 bryłek rudy, 10 PN",Quentin_nauka1h8);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 8)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 9, 2000 bryłek rudy, 10 PN",Quentin_nauka1h9);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 9)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 10, 2500 bryłek rudy, 10 PN",Quentin_nauka1h10);
};
};
FUNC VOID Quentin_nauka1h7 ()
{
AI_Output (other,self,"DIA_Quentin_TRAIN_2h_15_01"); //Naucz mnie sprawniej posługiwać się jednoręczną bronią.
if (Npc_HasItems(other,itminugget) >= 1000)
{
if (B_GiveSkill(other, NPC_TALENT_1H, 7, 10))
{
AI_Output (self, other,"DIA_Quentin_TRAIN_2h_Info_01_03"); //Musisz wykorzystać siłę bezwładności, pamiętasz? Świetnie. Teraz nauczysz się lepiej balansować ciałem. Po zadaniu dwóch ciosów wykonaj obrót. To powinno zmylić twojego przeciwnika i pozwolić ci wyjść na dobrą pozycję do następnego ataku.
AI_Output (self, other,"DIA_Quentin_TRAIN_2h_Info_01_04"); //Wtedy wyprowadź następne cięcie z prawej strony...
AI_Output (self, other,"DIA_Quentin_TRAIN_2h_Info_01_05"); //I znowu do przodu. Pamiętaj - trening czyni mistrza, więc najlepiej weź się od razu do roboty!
B_GiveInvItems(other,self,itminugget,1000);
};
}
else
{
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_NoOre_01_00"); //Nie masz wystarczającej ilości rudy!
};
Info_ClearChoices (DIA_Quentin_START_TRAIN);
Info_AddChoice (DIA_Quentin_START_TRAIN,DIALOG_BACK,DIA_Quentin_START_TRAINBACK);
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 0)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 1, 100 bryłek rudy, 10 PN",Quentin_nauka1h1);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 1)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 2, 200 bryłek rudy, 10 PN",Quentin_nauka1h2);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 2)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 3, 300 bryłek rudy, 10 PN",Quentin_nauka1h3);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 3)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 4, 400 bryłek rudy, 10 PN",Quentin_nauka1h4);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 4)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 5, 500 bryłek rudy, 10 PN",Quentin_nauka1h5);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 5)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 6, 600 bryłek rudy, 10 PN",Quentin_nauka1h6);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 6)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 7, 1000 bryłek rudy, 10 PN",Quentin_nauka1h7);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 7)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 8, 1500 bryłek rudy, 10 PN",Quentin_nauka1h8);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 8)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 9, 2000 bryłek rudy, 10 PN",Quentin_nauka1h9);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 9)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 10, 2500 bryłek rudy, 10 PN",Quentin_nauka1h10);
};
};
FUNC VOID Quentin_nauka1h8 ()
{
AI_Output (other,self,"DIA_Quentin_TRAIN_2h_15_01"); //Naucz mnie sprawniej posługiwać się jednoręczną bronią.
if (Npc_HasItems(other,itminugget) >= 1500)
{
if (B_GiveSkill(other, NPC_TALENT_1H, 8, 10))
{
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_21"); //Robisz postępy. Skup się na kolejnych ciosach. Łącz je coraz szybciej i pewniej.
B_GiveInvItems(other,self,itminugget,1500);
};
}
else
{
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_NoOre_01_00"); //Nie masz wystarczającej ilości rudy!
};
Info_ClearChoices (DIA_Quentin_START_TRAIN);
Info_AddChoice (DIA_Quentin_START_TRAIN,DIALOG_BACK,DIA_Quentin_START_TRAINBACK);
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 0)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 1, 100 bryłek rudy, 10 PN",Quentin_nauka1h1);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 1)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 2, 200 bryłek rudy, 10 PN",Quentin_nauka1h2);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 2)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 3, 300 bryłek rudy, 10 PN",Quentin_nauka1h3);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 3)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 4, 400 bryłek rudy, 10 PN",Quentin_nauka1h4);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 4)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 5, 500 bryłek rudy, 10 PN",Quentin_nauka1h5);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 5)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 6, 600 bryłek rudy, 10 PN",Quentin_nauka1h6);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 6)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 7, 1000 bryłek rudy, 10 PN",Quentin_nauka1h7);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 7)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 8, 1500 bryłek rudy, 10 PN",Quentin_nauka1h8);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 8)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 9, 2000 bryłek rudy, 10 PN",Quentin_nauka1h9);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 9)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 10, 2500 bryłek rudy, 10 PN",Quentin_nauka1h10);
};
};
FUNC VOID Quentin_nauka1h9 ()
{
AI_Output (other,self,"DIA_Quentin_TRAIN_2h_15_01"); //Naucz mnie sprawniej posługiwać się jednoręczną bronią.
if (Npc_HasItems(other,itminugget) >= 2000)
{
if (B_GiveSkill(other, NPC_TALENT_1H, 9, 10))
{
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_22"); //Chcąc najboleśniej zranić przeciwnika musisz dobrze wymierzyć cios. Gdy masz szansę staraj się trafiać w głowę lub barki.
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_23"); //Słabe punkty to także łącznia zbroi. Jeśli przeciwnik ma na sobie skórzaną zbroję to po prostu bij w brzuch.
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_24"); //Skórzane pancerze łatwo się rozcina.
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_25"); //Przypomnij sobie jeszcze raz to wszystko, czego cię nauczyłem i stosuj się do tego.
B_GiveInvItems(other,self,itminugget,2000);
};
}
else
{
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_NoOre_01_00"); //Nie masz wystarczającej ilości rudy!
};
Info_ClearChoices (DIA_Quentin_START_TRAIN);
Info_AddChoice (DIA_Quentin_START_TRAIN,DIALOG_BACK,DIA_Quentin_START_TRAINBACK);
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 0)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 1, 100 bryłek rudy, 10 PN",Quentin_nauka1h1);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 1)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 2, 200 bryłek rudy, 10 PN",Quentin_nauka1h2);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 2)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 3, 300 bryłek rudy, 10 PN",Quentin_nauka1h3);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 3)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 4, 400 bryłek rudy, 10 PN",Quentin_nauka1h4);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 4)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 5, 500 bryłek rudy, 10 PN",Quentin_nauka1h5);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 5)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 6, 600 bryłek rudy, 10 PN",Quentin_nauka1h6);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 6)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 7, 1000 bryłek rudy, 10 PN",Quentin_nauka1h7);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 7)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 8, 1500 bryłek rudy, 10 PN",Quentin_nauka1h8);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 8)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 9, 2000 bryłek rudy, 10 PN",Quentin_nauka1h9);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 9)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 10, 2500 bryłek rudy, 10 PN",Quentin_nauka1h10);
};
};
FUNC VOID Quentin_nauka1h10 ()
{
AI_Output (other,self,"DIA_Quentin_TRAIN_2h_15_01"); //Naucz mnie sprawniej posługiwać się jednoręczną bronią.
if (Npc_HasItems(other,itminugget) >= 2500)
{
if (B_GiveSkill(other, NPC_TALENT_1H, 10, 10))
{
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_26"); //To już koniec naszego szkolenia. Szacunek dla ciebie, że dobrnąłeś do końca.
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_27"); //Pokażę ci kilka ruchów, którymi trafisz we wrażliwe punkty twojego wroga.
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_npc_28"); //Musisz potrafić je dostrzec zanim się do niego zbliżysz.
B_GiveInvItems(other,self,itminugget,2500);
};
}
else
{
AI_Output (self,other,"DIA_Quentin_TRAIN_1h_NoOre_01_00"); //Nie masz wystarczającej ilości rudy!
};
Info_ClearChoices (DIA_Quentin_START_TRAIN);
Info_AddChoice (DIA_Quentin_START_TRAIN,DIALOG_BACK,DIA_Quentin_START_TRAINBACK);
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 0)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 1, 100 bryłek rudy, 10 PN",Quentin_nauka1h1);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 1)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 2, 200 bryłek rudy, 10 PN",Quentin_nauka1h2);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 2)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 3, 300 bryłek rudy, 10 PN",Quentin_nauka1h3);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 3)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 4, 400 bryłek rudy, 10 PN",Quentin_nauka1h4);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 4)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 5, 500 bryłek rudy, 10 PN",Quentin_nauka1h5);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 5)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 6, 600 bryłek rudy, 10 PN",Quentin_nauka1h6);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 6)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 7, 1000 bryłek rudy, 10 PN",Quentin_nauka1h7);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 7)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 8, 1500 bryłek rudy, 10 PN",Quentin_nauka1h8);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 8)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 9, 2000 bryłek rudy, 10 PN",Quentin_nauka1h9);
};
if (Npc_GetTalentSkill(hero, NPC_TALENT_1H) == 9)
{
Info_AddChoice (DIA_Quentin_START_TRAIN,"Broń jednoręczna, poziom 10, 2500 bryłek rudy, 10 PN",Quentin_nauka1h10);
};
};
///////////////////////////////////////////////////////////////////////////////////////////
// Quentin
// Rozdział -
// Stuff
///////////////////////////////////////////////////////////////////////////////////////////
//========================================
//-----------------> OdbityOboz
//========================================
INSTANCE DIA_Quentin_OdbityOboz (C_INFO) //WYŁĄCZONE
{
npc = BAN_1610_Quentin;
nr = 4;
condition = DIA_Quentin_OdbityOboz_Condition;
information = DIA_Quentin_OdbityOboz_Info;
permanent = FALSE;
Important = TRUE;
};
FUNC INT DIA_Quentin_OdbityOboz_Condition()
{
if (Npc_KnowsInfo (hero, DIA_Quentin_LetsGo2346567))
&& (Npc_IsDead(GRD_2278_Strażnik))
&& (Npc_IsDead(GRD_2273_Strażnik))
&& (Npc_IsDead(GRD_2276_Strażnik))
&& (Npc_IsDead(GRD_2274_Strażnik))
&& (Npc_IsDead(GRD_2277_Strażnik))
&& (KAPITEL == 10)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_OdbityOboz_Info()
{
AI_Output (self, other ,"DIA_Quentin_OdbityOboz_03_01"); //Świetnie. To był perfekcyjny atak.
AI_Output (other, self ,"DIA_Quentin_OdbityOboz_15_02"); //Teraz weźmy się za tę palisadę. Zagoń tych nierobów do pracy.
Wld_SendTrigger("PULAPKA1");
// PlayVideo ("INTRO.BIK");
B_LogEntry (CH4_GardistsInBC,"Udało nam się odbić górną część Obozu. Teraz musimy zbudować palisadę i odciąć drogę ucieczki Strażnikom.");
B_GiveXP (700);
AI_Output (self, other ,"DIA_Quentin_OdbityOboz_03_03"); //Palisada gotowa. Ostrzeliwać ich z góry!
AI_StopProcessInfos (self);
};
//========================================
//-----------------> EmanuelLife
//========================================
INSTANCE DIA_Quentin_EmanuelLife (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 3;
condition = DIA_Quentin_EmanuelLife_Condition;
information = DIA_Quentin_EmanuelLife_Info;
permanent = FALSE;
description = "Co do Emanuela...";
};
FUNC INT DIA_Quentin_EmanuelLife_Condition()
{
if (MIS_GardistsInBC == LOG_SUCCESS) && (kapitel == 10)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_EmanuelLife_Info()
{
AI_Output (other, self ,"DIA_Quentin_EmanuelLife_15_01"); //Co do Emanuela...
if (Npc_IsDead(BAN_1602_Emanuel))
{
AI_Output (other, self ,"DIA_Quentin_EmanuelLife_15_02"); //Niestety nie żyje.
AI_Output (self, other ,"DIA_Quentin_EmanuelLife_03_03"); //To ciężka strata.
AI_Output (self, other ,"DIA_Quentin_EmanuelLife_03_04"); //Musimy znaleźć kogoś na jego miejsce...
}
else
{
AI_Output (other, self ,"DIA_Quentin_EmanuelLife_15_05"); //Emanuel żyje.
AI_Output (self, other ,"DIA_Quentin_EmanuelLife_03_06"); //To bardzo dobra wiadomość. Dobrze, że jakoś mu się udało.
};
};
//========================================
//-----------------> MamPiczec
//========================================
INSTANCE DIA_Quentin_MamPiczec (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 1;
condition = DIA_Quentin_MamPiczec_Condition;
information = DIA_Quentin_MamPiczec_Info;
permanent = FALSE;
description = "Mam pieczęć z zaklęciem.";
};
FUNC INT DIA_Quentin_MamPiczec_Condition()
{
if (Npc_HasItems (other, ItMa_RuneBandit) >=1)
&& (Npc_KnowsInfo (hero, DIA_Cronos_GiveMeRune))
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_MamPiczec_Info()
{
AI_Output (other, self ,"DIA_Quentin_MamPiczec_15_01"); //Mam pieczęć z zaklęciem.
AI_Output (self, other ,"DIA_Quentin_MamPiczec_03_02"); //Teraz musisz jej użyć.
AI_Output (other, self ,"DIA_Quentin_MamPiczec_15_03"); //Dobra. Chodźcie za mną. Użyję jej przed Obozem.
AI_Output (self, other ,"DIA_Quentin_MamPiczec_03_04"); //A co jeżeli trole rzucą się i na nas?
AI_Output (other, self ,"DIA_Quentin_MamPiczec_15_05"); //To wyprujemy im flaki. W czym problem?
AI_Output (self, other ,"DIA_Quentin_MamPiczec_03_06"); //Dobra, zostawmy ten temat.
AI_Output (self, other ,"DIA_Quentin_MamPiczec_03_07"); //Prowadź i postaraj się nas nie pozabijać.
B_LogEntry (CH4_GardistsInBC,"Muszę podejść jak najbliżej Obozu i użyć czaru. Potem zostanie nam już tylko obserwować i pozbyć się tego, co zostanie po tym starciu.");
B_ExchangeRoutine (BAN_1610_Quentin , "atak");
B_ExchangeRoutine (BAN_1603_Martin , "atak");
B_ExchangeRoutine (BAN_1606_Josh , "atak");
B_ExchangeRoutine (BAN_1604_Jens , "atak");
B_ExchangeRoutine (NON_2702_SZEFU , "atak");
Npc_ExchangeRoutine (NON_2705_Rakus,"burdel");
Npc_ExchangeRoutine (NON_2703_MYSLIWY,"burdel");
//***FIX****
Npc_ExchangeRoutine (BAN_1614_Drax, "ded");
CreateInvItems (BAN_1614_Drax, ItMi_Listdraxa,1);
B_KillNpc (BAN_1614_Drax);
AI_StopProcessInfos (self);
};
//========================================
//-----------------> UseCZAr
//========================================
INSTANCE DIA_Quentin_UseCZAr (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 2;
condition = DIA_Quentin_UseCZAr_Condition;
information = DIA_Quentin_UseCZAr_Info;
permanent = FALSE;
description = "Użyłem czaru.";
};
FUNC INT DIA_Quentin_UseCZAr_Condition()
{
if (Npc_KnowsInfo (hero, DIA_Cronos_GiveMeRune))
&& (HeroUseRuneB == true)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_UseCZAr_Info()
{
AI_Output (other, self ,"DIA_Quentin_UseCZAr_15_01"); //Użyłem czaru.
AI_Output (self, other ,"DIA_Quentin_UseCZAr_03_02"); //Chodźmy dalej do Obozu. Zobaczymy co zostało ze Strażników.
AI_Output (self, other ,"DIA_Quentin_UseCZAr_03_03"); //Trzeba będzie się też pozbyć naszych włochatych przyjaciół.
B_LogEntry (CH4_GardistsInBC,"Użyłem pieczęci. Pora udać się do naszego Obozu i sprawdzić co się stało.");
B_GiveXP (200);
AI_StopProcessInfos (self);
};
//========================================
//-----------------> DedALlQuent
//========================================
INSTANCE DIA_Quentin_DedALlQuent (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 2;
condition = DIA_Quentin_DedALlQuent_Condition;
information = DIA_Quentin_DedALlQuent_Info;
permanent = FALSE;
important = true;
};
FUNC INT DIA_Quentin_DedALlQuent_Condition()
{
if (Npc_KnowsInfo (hero, DIA_Quentin_UseCZAr))
&& (HeroUseRuneB == true)
&& (Npc_IsDead(GRD_2280_Strażnik))
&& (Npc_IsDead(GRD_2281_Strażnik))
&& (Npc_IsDead(GRD_2282_Strażnik))
&& (Npc_IsDead(GRD_2283_Strażnik))
&& (Npc_IsDead(GRD_2284_Strażnik))
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_DedALlQuent_Info()
{
CreateInvItem (hero, BAU_ARMOR_H);
CreateInvItem (self, ItAmArrow);
B_GiveInvItems (self, hero, ItAmArrow, 1);
Npc_RemoveInvItem (hero, ItAmArrow);
AI_Output (other, self ,"DIA_Quentin_DedALlQuent_15_01"); //Pokonaliśmy ich.
AI_Output (self, other ,"DIA_Quentin_DedALlQuent_03_02"); //Wszystko się udało! Dobra robota!
AI_Output (self, other ,"DIA_Quentin_DedALlQuent_03_03"); //Myślę, że zasłużyłeś już na lepszy pancerz. Niech ci dobrze służy.
B_LogEntry (CH4_GardistsInBC,"Pozbyliśmy się troli grasujących po Obozie. Wszystko przebiegło zgodnie z planem.");
Log_SetTopicStatus (CH4_GardistsInBC, LOG_SUCCESS);
MIS_GardistsInBC = LOG_SUCCESS;
Npc_ExchangeRoutine (self,"start");
Npc_ExchangeRoutine (BAN_1603_Martin , "start");
Npc_ExchangeRoutine (BAN_1606_Josh , "start");
Npc_ExchangeRoutine (BAN_1604_Jens , "start");
Npc_ExchangeRoutine (NON_2702_SZEFU , "wait");
Npc_ExchangeRoutine (BAN_1605_Rocky , "start");
Npc_ExchangeRoutine (NON_2703_MYSLIWY , "wait");
Npc_ExchangeRoutine (NON_2705_Rakus , "wait");
Npc_ExchangeRoutine (NON_2706_osko , "lowcaPoszukiwaczy");
B_GiveXP (1000);
AI_EquipBestArmor (hero);
AI_StopProcessInfos (self);
};
//========================================
//-----------------> POSZUKIWACZE
//========================================
/*
INSTANCE DIA_Quentin_POSZUKIWACZE (C_INFO)
{
npc = BAN_1610_Quentin;
nr = 19;
condition = DIA_Quentin_POSZUKIWACZE_Condition;
information = DIA_Quentin_POSZUKIWACZE_Info;
permanent = FALSE;
description = "W Kolonii pojawili się Poszukiwacze!";
};
FUNC INT DIA_Quentin_POSZUKIWACZE_Condition()
{
if (Npc_KnowsInfo (hero, DIA_Shan_POSZUKIWACZE))
&& (Npc_GetTrueGuild(hero) == GIL_BAU)
{
return TRUE;
};
};
FUNC VOID DIA_Quentin_POSZUKIWACZE_Info()
{
AI_Output (other, self ,"DIA_Quentin_POSZUKIWACZE_15_01"); //W Kolonii pojawili się Poszukiwacze!
AI_Output (self, other ,"DIA_Quentin_POSZUKIWACZE_03_02"); //Co, do kurwy?
AI_Output (other, self ,"DIA_Quentin_POSZUKIWACZE_15_03"); //Poszukiwacze to wysłannicy Beliara. Są bardzo niebezpieczni.
AI_Output (other, self ,"DIA_Quentin_POSZUKIWACZE_15_04"); //Zwiastują złe czasy...
AI_Output (self, other ,"DIA_Quentin_POSZUKIWACZE_03_05"); //Akurat w to nie trudno mi uwierzyć.
AI_Output (self, other ,"DIA_Quentin_POSZUKIWACZE_03_06"); //Nie znam się za bardzo na tych sprawach magicznych.
AI_Output (other, self ,"DIA_Quentin_POSZUKIWACZE_15_07"); //Musicie się strzec. Nigdy nic nie wiadomo.
AI_Output (self, other ,"DIA_Quentin_POSZUKIWACZE_03_08"); //Podobno Doyle widział coś podejrzanego w lesie.
AI_Output (self, other ,"DIA_Quentin_POSZUKIWACZE_03_09"); //Pogadaj z nim.
B_GiveXP (150);
};*/ | D |
import std.stdio;
void main(){
alias void16 = __vector(void[16]);
}
| D |
/Users/deepansh/Desktop/ForexWatchlist/DerivedData/ForexWatchlist/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Queue.o : /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Deprecated.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Cancelable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/ObservableType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/ObserverType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Reactive.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Date+Dispatch.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/RecursiveLock.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/CompactMap.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Errors.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/AtomicInt.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Event.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/First.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Rx.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/Platform.Linux.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/deepansh/Desktop/ForexWatchlist/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/deepansh/Desktop/ForexWatchlist/DerivedData/ForexWatchlist/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/deepansh/Desktop/ForexWatchlist/DerivedData/ForexWatchlist/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Queue~partial.swiftmodule : /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Deprecated.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Cancelable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/ObservableType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/ObserverType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Reactive.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Date+Dispatch.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/RecursiveLock.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/CompactMap.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Errors.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/AtomicInt.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Event.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/First.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Rx.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/Platform.Linux.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/deepansh/Desktop/ForexWatchlist/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/deepansh/Desktop/ForexWatchlist/DerivedData/ForexWatchlist/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/deepansh/Desktop/ForexWatchlist/DerivedData/ForexWatchlist/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Queue~partial.swiftdoc : /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Deprecated.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Cancelable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/ObservableType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/ObserverType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Reactive.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Date+Dispatch.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/RecursiveLock.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/CompactMap.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Errors.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/AtomicInt.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Event.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/First.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Rx.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/Platform.Linux.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/deepansh/Desktop/ForexWatchlist/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/deepansh/Desktop/ForexWatchlist/DerivedData/ForexWatchlist/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/deepansh/Desktop/ForexWatchlist/DerivedData/ForexWatchlist/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/Queue~partial.swiftsourceinfo : /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Deprecated.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Cancelable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/ObservableType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/ObserverType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Reactive.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Date+Dispatch.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/RecursiveLock.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/CompactMap.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Errors.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/AtomicInt.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Event.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/First.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Rx.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/Platform/Platform.Linux.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/deepansh/Desktop/ForexWatchlist/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/deepansh/Desktop/ForexWatchlist/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/deepansh/Desktop/ForexWatchlist/DerivedData/ForexWatchlist/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.6.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_15_BeT-5325653221.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</availablePage>
</pageList>
<sashModel currentSelection="//@sashModel/@windows.0/@children.0">
<windows>
<children xsi:type="di:TabFolder">
<children>
<emfPageIdentifier href="VAR_15_BeT-5325653221.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</children>
</children>
</windows>
</sashModel>
</di:SashWindowsMngr>
| D |
module UnrealScript.UnrealEd.ReplaceActorCommandlet;
import ScriptClasses;
import UnrealScript.Helpers;
import UnrealScript.Core.Commandlet;
extern(C++) interface ReplaceActorCommandlet : Commandlet
{
public extern(D):
private static __gshared ScriptClass mStaticClass;
@property final static ScriptClass StaticClass() { mixin(MGSCC("Class UnrealEd.ReplaceActorCommandlet")); }
private static __gshared ReplaceActorCommandlet mDefaultProperties;
@property final static ReplaceActorCommandlet DefaultProperties() { mixin(MGDPC("ReplaceActorCommandlet", "ReplaceActorCommandlet UnrealEd.Default__ReplaceActorCommandlet")); }
}
| D |
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
*
* Copyright: Copyright (c) 1999-2017 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 http://www.digitalmars.com, Walter Bright)
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/link.d, _link.d)
*/
module dmd.link;
// Online documentation: https://dlang.org/phobos/dmd_link.html
import core.stdc.ctype;
import core.stdc.stdio;
import core.stdc.string;
import core.sys.posix.stdio;
import core.sys.posix.stdlib;
import core.sys.posix.unistd;
import core.sys.windows.windows;
import dmd.errors;
import dmd.globals;
import dmd.root.file;
import dmd.root.filename;
import dmd.root.outbuffer;
import dmd.root.rmem;
import dmd.utils;
version (Posix) extern (C) int pipe(int*);
version (Windows) extern (C) int putenv(const char*);
version (Windows) extern (C) int spawnlp(int, const char*, const char*, const char*, const char*);
version (Windows) extern (C) int spawnl(int, const char*, const char*, const char*, const char*);
version (Windows) extern (C) int spawnv(int, const char*, const char**);
version (CRuntime_Microsoft)
{
// until the new windows bindings are available when building dmd.
static if(!is(STARTUPINFOA))
{
alias STARTUPINFOA = STARTUPINFO;
// dwCreationFlags for CreateProcess() and CreateProcessAsUser()
enum : DWORD {
DEBUG_PROCESS = 0x00000001,
DEBUG_ONLY_THIS_PROCESS = 0x00000002,
CREATE_SUSPENDED = 0x00000004,
DETACHED_PROCESS = 0x00000008,
CREATE_NEW_CONSOLE = 0x00000010,
NORMAL_PRIORITY_CLASS = 0x00000020,
IDLE_PRIORITY_CLASS = 0x00000040,
HIGH_PRIORITY_CLASS = 0x00000080,
REALTIME_PRIORITY_CLASS = 0x00000100,
CREATE_NEW_PROCESS_GROUP = 0x00000200,
CREATE_UNICODE_ENVIRONMENT = 0x00000400,
CREATE_SEPARATE_WOW_VDM = 0x00000800,
CREATE_SHARED_WOW_VDM = 0x00001000,
CREATE_FORCEDOS = 0x00002000,
BELOW_NORMAL_PRIORITY_CLASS = 0x00004000,
ABOVE_NORMAL_PRIORITY_CLASS = 0x00008000,
CREATE_BREAKAWAY_FROM_JOB = 0x01000000,
CREATE_WITH_USERPROFILE = 0x02000000,
CREATE_DEFAULT_ERROR_MODE = 0x04000000,
CREATE_NO_WINDOW = 0x08000000,
PROFILE_USER = 0x10000000,
PROFILE_KERNEL = 0x20000000,
PROFILE_SERVER = 0x40000000
}
}
}
/****************************************
* Write filename to cmdbuf, quoting if necessary.
*/
private void writeFilename(OutBuffer* buf, const(char)* filename, size_t len)
{
/* Loop and see if we need to quote
*/
for (size_t i = 0; i < len; i++)
{
char c = filename[i];
if (isalnum(c) || c == '_')
continue;
/* Need to quote
*/
buf.writeByte('"');
buf.write(filename, len);
buf.writeByte('"');
return;
}
/* No quoting necessary
*/
buf.write(filename, len);
}
private void writeFilename(OutBuffer* buf, const(char)* filename)
{
writeFilename(buf, filename, strlen(filename));
}
version (Posix)
{
/*****************************
* As it forwards the linker error message to stderr, checks for the presence
* of an error indicating lack of a main function (NME_ERR_MSG).
*
* Returns:
* 1 if there is a no main error
* -1 if there is an IO error
* 0 otherwise
*/
private int findNoMainError(int fd)
{
version (OSX)
{
static __gshared const(char)* nmeErrorMessage = "\"__Dmain\", referenced from:";
}
else
{
static __gshared const(char)* nmeErrorMessage = "undefined reference to `_Dmain'";
}
FILE* stream = fdopen(fd, "r");
if (stream is null)
return -1;
const(size_t) len = 64 * 1024 - 1;
char[len + 1] buffer; // + '\0'
size_t beg = 0, end = len;
bool nmeFound = false;
for (;;)
{
// read linker output
const(size_t) n = fread(&buffer[beg], 1, len - beg, stream);
if (beg + n < len && ferror(stream))
return -1;
buffer[(end = beg + n)] = '\0';
// search error message, stop at last complete line
const(char)* lastSep = strrchr(buffer.ptr, '\n');
if (lastSep)
buffer[(end = lastSep - &buffer[0])] = '\0';
if (strstr(&buffer[0], nmeErrorMessage))
nmeFound = true;
if (lastSep)
buffer[end++] = '\n';
if (fwrite(&buffer[0], 1, end, stderr) < end)
return -1;
if (beg + n < len && feof(stream))
break;
// copy over truncated last line
memcpy(&buffer[0], &buffer[end], (beg = len - end));
}
return nmeFound ? 1 : 0;
}
}
/*****************************
* Run the linker. Return status of execution.
*/
public int runLINK()
{
version (Windows)
{
if (global.params.mscoff)
{
OutBuffer cmdbuf;
cmdbuf.writestring("/NOLOGO ");
for (size_t i = 0; i < global.params.objfiles.dim; i++)
{
if (i)
cmdbuf.writeByte(' ');
const(char)* p = global.params.objfiles[i];
const(char)* basename = FileName.removeExt(FileName.name(p));
const(char)* ext = FileName.ext(p);
if (ext && !strchr(basename, '.'))
{
// Write name sans extension (but not if a double extension)
writeFilename(&cmdbuf, p, ext - p - 1);
}
else
writeFilename(&cmdbuf, p);
FileName.free(basename);
}
if (global.params.resfile)
{
cmdbuf.writeByte(' ');
writeFilename(&cmdbuf, global.params.resfile);
}
cmdbuf.writeByte(' ');
if (global.params.exefile)
{
cmdbuf.writestring("/OUT:");
writeFilename(&cmdbuf, global.params.exefile);
}
else
{
/* Generate exe file name from first obj name.
* No need to add it to cmdbuf because the linker will default to it.
*/
const(char)* n = global.params.objfiles[0];
n = FileName.name(n);
global.params.exefile = cast(char*)FileName.forceExt(n, "exe");
}
// Make sure path to exe file exists
ensurePathToNameExists(Loc(), global.params.exefile);
cmdbuf.writeByte(' ');
if (global.params.mapfile)
{
cmdbuf.writestring("/MAP:");
writeFilename(&cmdbuf, global.params.mapfile);
}
else if (global.params.map)
{
const(char)* fn = FileName.forceExt(global.params.exefile, "map");
const(char)* path = FileName.path(global.params.exefile);
const(char)* p;
if (path[0] == '\0')
p = FileName.combine(global.params.objdir, fn);
else
p = fn;
cmdbuf.writestring("/MAP:");
writeFilename(&cmdbuf, p);
}
for (size_t i = 0; i < global.params.libfiles.dim; i++)
{
cmdbuf.writeByte(' ');
cmdbuf.writestring("/DEFAULTLIB:");
writeFilename(&cmdbuf, global.params.libfiles[i]);
}
if (global.params.deffile)
{
cmdbuf.writeByte(' ');
cmdbuf.writestring("/DEF:");
writeFilename(&cmdbuf, global.params.deffile);
}
if (global.params.symdebug)
{
cmdbuf.writeByte(' ');
cmdbuf.writestring("/DEBUG");
// in release mode we need to reactivate /OPT:REF after /DEBUG
if (global.params.release)
cmdbuf.writestring(" /OPT:REF");
}
if (global.params.dll)
{
cmdbuf.writeByte(' ');
cmdbuf.writestring("/DLL");
}
for (size_t i = 0; i < global.params.linkswitches.dim; i++)
{
cmdbuf.writeByte(' ');
cmdbuf.writestring(global.params.linkswitches[i]);
}
VSOptions vsopt;
vsopt.initialize();
const(char)* lflags = vsopt.linkOptions(global.params.is64bit);
if (lflags)
{
cmdbuf.writeByte(' ');
cmdbuf.writestring(lflags);
}
char* p = cmdbuf.peekString();
const(char)* lnkfilename = null;
size_t plen = strlen(p);
if (plen > 7000)
{
lnkfilename = FileName.forceExt(global.params.exefile, "lnk");
auto flnk = File(lnkfilename);
flnk.setbuffer(p, plen);
flnk._ref = 1;
if (flnk.write())
error(Loc(), "error writing file %s", lnkfilename);
if (strlen(lnkfilename) < plen)
sprintf(p, "@%s", lnkfilename);
}
const(char)* linkcmd = getenv(global.params.is64bit ? "LINKCMD64" : "LINKCMD");
if (!linkcmd)
linkcmd = getenv("LINKCMD"); // backward compatible
if (!linkcmd)
linkcmd = vsopt.linkerPath(global.params.is64bit);
int status = executecmd(linkcmd, p);
if (lnkfilename)
{
remove(lnkfilename);
FileName.free(lnkfilename);
}
return status;
}
else
{
OutBuffer cmdbuf;
global.params.libfiles.push("user32");
global.params.libfiles.push("kernel32");
for (size_t i = 0; i < global.params.objfiles.dim; i++)
{
if (i)
cmdbuf.writeByte('+');
const(char)* p = global.params.objfiles[i];
const(char)* basename = FileName.removeExt(FileName.name(p));
const(char)* ext = FileName.ext(p);
if (ext && !strchr(basename, '.'))
{
// Write name sans extension (but not if a double extension)
writeFilename(&cmdbuf, p, ext - p - 1);
}
else
writeFilename(&cmdbuf, p);
FileName.free(basename);
}
cmdbuf.writeByte(',');
if (global.params.exefile)
writeFilename(&cmdbuf, global.params.exefile);
else
{
/* Generate exe file name from first obj name.
* No need to add it to cmdbuf because the linker will default to it.
*/
const(char)* n = global.params.objfiles[0];
n = FileName.name(n);
global.params.exefile = cast(char*)FileName.forceExt(n, "exe");
}
// Make sure path to exe file exists
ensurePathToNameExists(Loc(), global.params.exefile);
cmdbuf.writeByte(',');
if (global.params.mapfile)
writeFilename(&cmdbuf, global.params.mapfile);
else if (global.params.map)
{
const(char)* fn = FileName.forceExt(global.params.exefile, "map");
const(char)* path = FileName.path(global.params.exefile);
const(char)* p;
if (path[0] == '\0')
p = FileName.combine(global.params.objdir, fn);
else
p = fn;
writeFilename(&cmdbuf, p);
}
else
cmdbuf.writestring("nul");
cmdbuf.writeByte(',');
for (size_t i = 0; i < global.params.libfiles.dim; i++)
{
if (i)
cmdbuf.writeByte('+');
writeFilename(&cmdbuf, global.params.libfiles[i]);
}
if (global.params.deffile)
{
cmdbuf.writeByte(',');
writeFilename(&cmdbuf, global.params.deffile);
}
/* Eliminate unnecessary trailing commas */
while (1)
{
size_t i = cmdbuf.offset;
if (!i || cmdbuf.data[i - 1] != ',')
break;
cmdbuf.offset--;
}
if (global.params.resfile)
{
cmdbuf.writestring("/RC:");
writeFilename(&cmdbuf, global.params.resfile);
}
if (global.params.map || global.params.mapfile)
cmdbuf.writestring("/m");
version (none)
{
if (debuginfo)
cmdbuf.writestring("/li");
if (codeview)
{
cmdbuf.writestring("/co");
if (codeview3)
cmdbuf.writestring(":3");
}
}
else
{
if (global.params.symdebug)
cmdbuf.writestring("/co");
}
cmdbuf.writestring("/noi");
for (size_t i = 0; i < global.params.linkswitches.dim; i++)
{
cmdbuf.writestring(global.params.linkswitches[i]);
}
cmdbuf.writeByte(';');
char* p = cmdbuf.peekString();
const(char)* lnkfilename = null;
size_t plen = strlen(p);
if (plen > 7000)
{
lnkfilename = FileName.forceExt(global.params.exefile, "lnk");
auto flnk = File(lnkfilename);
flnk.setbuffer(p, plen);
flnk._ref = 1;
if (flnk.write())
error(Loc(), "error writing file %s", lnkfilename);
if (strlen(lnkfilename) < plen)
sprintf(p, "@%s", lnkfilename);
}
const(char)* linkcmd = getenv("LINKCMD");
if (!linkcmd)
linkcmd = "link";
int status = executecmd(linkcmd, p);
if (lnkfilename)
{
remove(lnkfilename);
FileName.free(lnkfilename);
}
return status;
}
}
else version (Posix)
{
pid_t childpid;
int status;
// Build argv[]
Strings argv;
const(char)* cc = getenv("CC");
if (!cc)
{
argv.push("cc");
}
else
{
// Split CC command to support link driver arguments such as -fpie or -flto.
char *arg = strdup(cc);
const(char)* tok = strtok(arg, " ");
while (tok)
{
argv.push(mem.xstrdup(tok));
tok = strtok(null, " ");
}
free(arg);
}
argv.append(&global.params.objfiles);
version (OSX)
{
// If we are on Mac OS X and linking a dynamic library,
// add the "-dynamiclib" flag
if (global.params.dll)
argv.push("-dynamiclib");
}
else version (Posix)
{
if (global.params.dll)
argv.push("-shared");
}
// None of that a.out stuff. Use explicit exe file name, or
// generate one from name of first source file.
argv.push("-o");
if (global.params.exefile)
{
argv.push(global.params.exefile);
}
else if (global.params.run)
{
version (all)
{
char[L_tmpnam + 14 + 1] name;
strcpy(name.ptr, P_tmpdir);
strcat(name.ptr, "/dmd_runXXXXXX");
int fd = mkstemp(name.ptr);
if (fd == -1)
{
error(Loc(), "error creating temporary file");
return 1;
}
else
close(fd);
global.params.exefile = mem.xstrdup(name.ptr);
argv.push(global.params.exefile);
}
else
{
/* The use of tmpnam raises the issue of "is this a security hole"?
* The hole is that after tmpnam and before the file is opened,
* the attacker modifies the file system to get control of the
* file with that name. I do not know if this is an issue in
* this context.
* We cannot just replace it with mkstemp, because this name is
* passed to the linker that actually opens the file and writes to it.
*/
char[L_tmpnam + 1] s;
char* n = tmpnam(s.ptr);
global.params.exefile = mem.xstrdup(n);
argv.push(global.params.exefile);
}
}
else
{
// Generate exe file name from first obj name
const(char)* n = global.params.objfiles[0];
char* ex;
n = FileName.name(n);
const(char)* e = FileName.ext(n);
if (e)
{
e--; // back up over '.'
ex = cast(char*)mem.xmalloc(e - n + 1);
memcpy(ex, n, e - n);
ex[e - n] = 0;
// If generating dll then force dll extension
if (global.params.dll)
ex = cast(char*)FileName.forceExt(ex, global.dll_ext);
}
else
ex = cast(char*)"a.out"; // no extension, so give up
argv.push(ex);
global.params.exefile = ex;
}
// Make sure path to exe file exists
ensurePathToNameExists(Loc(), global.params.exefile);
if (global.params.symdebug)
argv.push("-g");
if (global.params.is64bit)
argv.push("-m64");
else
argv.push("-m32");
version (OSX)
{
/* Without this switch, ld generates messages of the form:
* ld: warning: could not create compact unwind for __Dmain: offset of saved registers too far to encode
* meaning they are further than 255 bytes from the frame register.
* ld reverts to the old method instead.
* See: https://ghc.haskell.org/trac/ghc/ticket/5019
* which gives this tidbit:
* "When a C++ (or x86_64 Objective-C) exception is thrown, the runtime must unwind the
* stack looking for some function to catch the exception. Traditionally, the unwind
* information is stored in the __TEXT/__eh_frame section of each executable as Dwarf
* CFI (call frame information). Beginning in Mac OS X 10.6, the unwind information is
* also encoded in the __TEXT/__unwind_info section using a two-level lookup table of
* compact unwind encodings.
* The unwinddump tool displays the content of the __TEXT/__unwind_info section."
*
* A better fix would be to save the registers next to the frame pointer.
*/
argv.push("-Xlinker");
argv.push("-no_compact_unwind");
}
if (global.params.map || global.params.mapfile)
{
argv.push("-Xlinker");
version (OSX)
{
argv.push("-map");
}
else
{
argv.push("-Map");
}
if (!global.params.mapfile)
{
const(char)* fn = FileName.forceExt(global.params.exefile, "map");
const(char)* path = FileName.path(global.params.exefile);
const(char)* p;
if (path[0] == '\0')
p = FileName.combine(global.params.objdir, fn);
else
p = fn;
global.params.mapfile = cast(char*)p;
}
argv.push("-Xlinker");
argv.push(global.params.mapfile);
}
if (0 && global.params.exefile)
{
/* This switch enables what is known as 'smart linking'
* in the Windows world, where unreferenced sections
* are removed from the executable. It eliminates unreferenced
* functions, essentially making a 'library' out of a module.
* Although it is documented to work with ld version 2.13,
* in practice it does not, but just seems to be ignored.
* Thomas Kuehne has verified that it works with ld 2.16.1.
* BUG: disabled because it causes exception handling to fail
* because EH sections are "unreferenced" and elided
*/
argv.push("-Xlinker");
argv.push("--gc-sections");
}
for (size_t i = 0; i < global.params.linkswitches.dim; i++)
{
const(char)* p = global.params.linkswitches[i];
if (!p || !p[0] || !(p[0] == '-' && (p[1] == 'l' || p[1] == 'L')))
{
// Don't need -Xlinker if switch starts with -l or -L.
// Eliding -Xlinker is significant for -L since it allows our paths
// to take precedence over gcc defaults.
argv.push("-Xlinker");
}
argv.push(p);
}
/* Add each library, prefixing it with "-l".
* The order of libraries passed is:
* 1. any libraries passed with -L command line switch
* 2. libraries specified on the command line
* 3. libraries specified by pragma(lib), which were appended
* to global.params.libfiles.
* 4. standard libraries.
*/
for (size_t i = 0; i < global.params.libfiles.dim; i++)
{
const(char)* p = global.params.libfiles[i];
size_t plen = strlen(p);
if (plen > 2 && p[plen - 2] == '.' && p[plen - 1] == 'a')
argv.push(p);
else
{
char* s = cast(char*)mem.xmalloc(plen + 3);
s[0] = '-';
s[1] = 'l';
memcpy(s + 2, p, plen + 1);
argv.push(s);
}
}
for (size_t i = 0; i < global.params.dllfiles.dim; i++)
{
const(char)* p = global.params.dllfiles[i];
argv.push(p);
}
/* D runtime libraries must go after user specified libraries
* passed with -l.
*/
const(char)* libname = global.params.symdebug ? global.params.debuglibname : global.params.defaultlibname;
size_t slen = strlen(libname);
if (!global.params.betterC && slen)
{
char* buf = cast(char*)malloc(3 + slen + 1);
strcpy(buf, "-l");
if (slen > 3 + 2 && memcmp(libname, "lib".ptr, 3) == 0)
{
if (memcmp(libname + slen - 2, ".a".ptr, 2) == 0)
{
argv.push("-Xlinker");
argv.push("-Bstatic");
strncat(buf, libname + 3, slen - 3 - 2);
argv.push(buf);
argv.push("-Xlinker");
argv.push("-Bdynamic");
}
else if (memcmp(libname + slen - 3, ".so".ptr, 3) == 0)
{
strncat(buf, libname + 3, slen - 3 - 3);
argv.push(buf);
}
else
{
strcat(buf, libname);
argv.push(buf);
}
}
else
{
strcat(buf, libname);
argv.push(buf);
}
}
//argv.push("-ldruntime");
argv.push("-lpthread");
argv.push("-lm");
version (linux)
{
// Changes in ld for Ubuntu 11.10 require this to appear after phobos2
argv.push("-lrt");
// Link against libdl for phobos usage of dlopen
argv.push("-ldl");
}
if (global.params.verbose)
{
// Print it
for (size_t i = 0; i < argv.dim; i++)
fprintf(global.stdmsg, "%s ", argv[i]);
fprintf(global.stdmsg, "\n");
}
argv.push(null);
// set up pipes
int[2] fds;
if (pipe(fds.ptr) == -1)
{
perror("unable to create pipe to linker");
return -1;
}
childpid = fork();
if (childpid == 0)
{
// pipe linker stderr to fds[0]
dup2(fds[1], STDERR_FILENO);
close(fds[0]);
execvp(argv[0], cast(char**)argv.tdata());
perror(argv[0]); // failed to execute
return -1;
}
else if (childpid == -1)
{
perror("unable to fork");
return -1;
}
close(fds[1]);
const(int) nme = findNoMainError(fds[0]);
waitpid(childpid, &status, 0);
if (WIFEXITED(status))
{
status = WEXITSTATUS(status);
if (status)
{
if (nme == -1)
{
perror("error with the linker pipe");
return -1;
}
else
{
error(Loc(), "linker exited with status %d", status);
if (nme == 1)
error(Loc(), "no main function specified");
}
}
}
else if (WIFSIGNALED(status))
{
error(Loc(), "linker killed by signal %d", WTERMSIG(status));
status = 1;
}
return status;
}
else
{
error(Loc(), "linking is not yet supported for this version of DMD.");
return -1;
}
}
/******************************
* Execute a rule. Return the status.
* cmd program to run
* args arguments to cmd, as a string
*/
version (Windows)
{
private int executecmd(const(char)* cmd, const(char)* args)
{
int status;
size_t len;
if (global.params.verbose)
fprintf(global.stdmsg, "%s %s\n", cmd, args);
if (!global.params.mscoff)
{
if ((len = strlen(args)) > 255)
{
char* q = cast(char*)alloca(8 + len + 1);
sprintf(q, "_CMDLINE=%s", args);
status = putenv(q);
if (status == 0)
{
args = "@_CMDLINE";
}
else
{
error(Loc(), "command line length of %d is too long", len);
}
}
}
// Normalize executable path separators
// https://issues.dlang.org/show_bug.cgi?id=9330
cmd = toWinPath(cmd);
version (CRuntime_Microsoft)
{
// Open scope so dmd doesn't complain about alloca + exception handling
{
// Use process spawning through the WinAPI to avoid issues with executearg0 and spawnlp
OutBuffer cmdbuf;
cmdbuf.writestring("\"");
cmdbuf.writestring(cmd);
cmdbuf.writestring("\" ");
cmdbuf.writestring(args);
STARTUPINFOA startInf;
startInf.dwFlags = STARTF_USESTDHANDLES;
startInf.hStdInput = GetStdHandle(STD_INPUT_HANDLE);
startInf.hStdOutput = GetStdHandle(STD_OUTPUT_HANDLE);
startInf.hStdError = GetStdHandle(STD_ERROR_HANDLE);
PROCESS_INFORMATION procInf;
BOOL b = CreateProcessA(null, cmdbuf.peekString(), null, null, 1, NORMAL_PRIORITY_CLASS, null, null, &startInf, &procInf);
if (b)
{
WaitForSingleObject(procInf.hProcess, INFINITE);
DWORD returnCode;
GetExitCodeProcess(procInf.hProcess, &returnCode);
status = returnCode;
CloseHandle(procInf.hProcess);
}
else
{
status = -1;
}
}
}
else
{
status = executearg0(cmd, args);
if (status == -1)
{
status = spawnlp(0, cmd, cmd, args, null);
}
}
//if (global.params.verbose)
// fprintf(global.stdmsg, "\n");
if (status)
{
if (status == -1)
error(Loc(), "can't run '%s', check PATH", cmd);
else
error(Loc(), "linker exited with status %d", status);
}
return status;
}
}
/**************************************
* Attempt to find command to execute by first looking in the directory
* where DMD was run from.
* Returns:
* -1 did not find command there
* !=-1 exit status from command
*/
version (Windows)
{
private int executearg0(const(char)* cmd, const(char)* args)
{
const(char)* file;
const(char)* argv0 = global.params.argv0;
//printf("argv0='%s', cmd='%s', args='%s'\n",argv0,cmd,args);
// If cmd is fully qualified, we don't do this
if (FileName.absolute(cmd))
return -1;
file = FileName.replaceName(argv0, cmd);
//printf("spawning '%s'\n",file);
// spawnlp returns intptr_t in some systems, not int
return spawnl(0, file, file, args, null);
}
}
/***************************************
* Run the compiled program.
* Return exit status.
*/
public int runProgram()
{
//printf("runProgram()\n");
if (global.params.verbose)
{
fprintf(global.stdmsg, "%s", global.params.exefile);
for (size_t i = 0; i < global.params.runargs.dim; ++i)
fprintf(global.stdmsg, " %s", global.params.runargs[i]);
fprintf(global.stdmsg, "\n");
}
// Build argv[]
Strings argv;
argv.push(global.params.exefile);
for (size_t i = 0; i < global.params.runargs.dim; ++i)
{
const(char)* a = global.params.runargs[i];
version (Windows)
{
// BUG: what about " appearing in the string?
if (strchr(a, ' '))
{
char* b = cast(char*)mem.xmalloc(3 + strlen(a));
sprintf(b, "\"%s\"", a);
a = b;
}
}
argv.push(a);
}
argv.push(null);
version (Windows)
{
const(char)* ex = FileName.name(global.params.exefile);
if (ex == global.params.exefile)
ex = FileName.combine(".", ex);
else
ex = global.params.exefile;
// spawnlp returns intptr_t in some systems, not int
return spawnv(0, ex, argv.tdata());
}
else version (Posix)
{
pid_t childpid;
int status;
childpid = fork();
if (childpid == 0)
{
const(char)* fn = argv[0];
if (!FileName.absolute(fn))
{
// Make it "./fn"
fn = FileName.combine(".", fn);
}
execv(fn, cast(char**)argv.tdata());
perror(fn); // failed to execute
return -1;
}
waitpid(childpid, &status, 0);
if (WIFEXITED(status))
{
status = WEXITSTATUS(status);
//printf("--- errorlevel %d\n", status);
}
else if (WIFSIGNALED(status))
{
error(Loc(), "program killed by signal %d", WTERMSIG(status));
status = 1;
}
return status;
}
else
{
assert(0);
}
}
version (Windows)
{
struct VSOptions
{
// evaluated once at startup, reflecting the result of vcvarsall.bat
// from the current environment or the latest Visual Studio installation
const(char)* WindowsSdkDir;
const(char)* WindowsSdkVersion;
const(char)* UCRTSdkDir;
const(char)* UCRTVersion;
const(char)* VSInstallDir;
const(char)* VisualStudioVersion;
const(char)* VCInstallDir;
const(char)* VCToolsInstallDir; // used by VS 2017
/**
* fill member variables from environment or registry
*/
void initialize()
{
detectWindowsSDK();
detectUCRT();
detectVSInstallDir();
detectVCInstallDir();
detectVCToolsInstallDir();
}
/**
* retrieve options to be passed to the Microsoft linker
* Params:
* x64 = target architecture (x86 if false)
* Returns:
* allocated string of options to add to the linker command line
*/
const(char)* linkOptions(bool x64)
{
OutBuffer cmdbuf;
if (auto p = getVCDir(VCDir.Lib, x64))
{
cmdbuf.writestring(" /LIBPATH:\"");
cmdbuf.writestring(p);
cmdbuf.writeByte('\"');
}
if (VisualStudioVersion && strcmp(VisualStudioVersion, "14") >= 0)
{
if (auto p = getUCRTLibPath(x64))
{
cmdbuf.writestring(" /LIBPATH:\"");
cmdbuf.writestring(p);
cmdbuf.writeByte('\"');
}
cmdbuf.writestring(" legacy_stdio_definitions.lib");
}
const(char)* windowssdkdir = getenv("WindowsSdkDir");
if (auto p = getSDKLibPath(x64))
{
cmdbuf.writestring(" /LIBPATH:\"");
cmdbuf.writestring(p);
cmdbuf.writeByte('\"');
}
if (auto p = getenv("DXSDK_DIR"))
{
// support for old DX SDK installations
cmdbuf.writestring(" /LIBPATH:\"");
cmdbuf.writestring(p);
cmdbuf.writestring(x64 ? `\Lib\x64"` : `\Lib\x86"`);
}
return cmdbuf.extractString();
}
/**
* retrieve path to the Microsoft linker executable
* also modifies PATH environment variable if necessary to find conditionally loaded DLLs
* Params:
* x64 = target architecture (x86 if false)
* Returns:
* absolute path to link.exe, just "link.exe" if not found
*/
const(char)* linkerPath(bool x64)
{
if (auto p = getVCDir(VCDir.Bin, false)) // prefer 32-bit linker in case of cross-compilation
{
OutBuffer cmdbuf;
cmdbuf.writestring(p);
cmdbuf.writestring(r"\link.exe");
if (VSInstallDir)
{
// debug info needs DLLs from $(VSInstallDir)\Common7\IDE for most linker versions
// so prepend it too the PATH environment variable
const char* path = getenv("PATH");
const char* idepath = FileName.combine(VSInstallDir, r"Common7\IDE");
auto pathlen = strlen(path);
auto idepathlen = strlen(idepath);
char* npath = cast(char*)mem.xmalloc(5 + pathlen + 1 + idepathlen + 1);
memcpy(npath, "PATH=".ptr, 5);
memcpy(npath + 5, idepath, idepathlen);
npath[5 + idepathlen] = ';';
memcpy(npath + 5 + idepathlen + 1, path, pathlen + 1);
putenv(npath);
}
return cmdbuf.extractString();
}
// search PATH to avoid createProcess preferring "link.exe" from the dmd folder
Strings* paths = FileName.splitPath(getenv("PATH"));
if (auto p = FileName.searchPath(paths, "link.exe", false))
return p;
return "link.exe";
}
private:
/**
* detect WindowsSdkDir and WindowsSDKVersion from environment or registry
*/
void detectWindowsSDK()
{
if (WindowsSdkDir is null)
WindowsSdkDir = getenv("WindowsSdkDir");
if (WindowsSdkDir is null)
{
WindowsSdkDir = GetRegistryString(r"Microsoft\Windows Kits\Installed Roots", "KitsRoot10");
if (WindowsSdkDir && !FileName.exists(FileName.combine(WindowsSdkDir, "Lib")))
WindowsSdkDir = null;
}
if (WindowsSdkDir is null)
{
WindowsSdkDir = GetRegistryString(r"Microsoft\Microsoft SDKs\Windows\v8.1", "InstallationFolder");
if (WindowsSdkDir && !FileName.exists(FileName.combine(WindowsSdkDir, "Lib")))
WindowsSdkDir = null;
}
if (WindowsSdkDir is null)
{
WindowsSdkDir = GetRegistryString(r"Microsoft\Microsoft SDKs\Windows\v8.0", "InstallationFolder");
if (WindowsSdkDir && !FileName.exists(FileName.combine(WindowsSdkDir, "Lib")))
WindowsSdkDir = null;
}
if (WindowsSdkDir is null)
{
WindowsSdkDir = GetRegistryString(r"Microsoft\Microsoft SDKs\Windows", "CurrentInstallationFolder");
if (WindowsSdkDir && !FileName.exists(FileName.combine(WindowsSdkDir, "Lib")))
WindowsSdkDir = null;
}
if (WindowsSdkVersion is null)
WindowsSdkVersion = getenv("WindowsSdkVersion");
if (WindowsSdkVersion is null && WindowsSdkDir !is null)
{
const(char)* rootsDir = FileName.combine(WindowsSdkDir, "Include");
WindowsSdkVersion = findLatestSDKDir(rootsDir, r"um\windows.h");
}
}
/**
* detect UCRTSdkDir and UCRTVersion from environment or registry
*/
void detectUCRT()
{
if (UCRTSdkDir is null)
UCRTSdkDir = getenv("UniversalCRTSdkDir");
if (UCRTSdkDir is null)
UCRTSdkDir = GetRegistryString(r"Microsoft\Windows Kits\Installed Roots", "KitsRoot10");
if (UCRTVersion is null)
UCRTVersion = getenv("UCRTVersion");
if (UCRTVersion is null && UCRTSdkDir !is null)
{
const(char)* rootsDir = FileName.combine(UCRTSdkDir, "Lib");
UCRTVersion = findLatestSDKDir(rootsDir, r"ucrt\x86\libucrt.lib");
}
}
/**
* detect VSInstallDir and VisualStudioVersion from environment or registry
*/
void detectVSInstallDir()
{
if (VSInstallDir is null)
VSInstallDir = getenv("VSINSTALLDIR");
if (VisualStudioVersion is null)
VisualStudioVersion = getenv("VisualStudioVersion");
if (VSInstallDir is null)
{
// VS2017
VSInstallDir = GetRegistryString(r"Microsoft\VisualStudio\SxS\VS7", "15.0");
if (VSInstallDir)
VisualStudioVersion = "15.0";
}
if (VSInstallDir is null)
foreach (const(char)* ver; ["14.0".ptr, "12.0", "11.0", "10.0", "9.0"])
{
VSInstallDir = GetRegistryString(FileName.combine(r"Microsoft\VisualStudio", ver), "InstallDir");
if (VSInstallDir)
{
VisualStudioVersion = ver;
break;
}
}
}
/**
* detect VCInstallDir from environment or registry
*/
void detectVCInstallDir()
{
if (VCInstallDir is null)
VCInstallDir = getenv("VCINSTALLDIR");
if (VCInstallDir is null)
if (VSInstallDir && FileName.exists(FileName.combine(VSInstallDir, "VC")))
VCInstallDir = FileName.combine(VSInstallDir, "VC");
// detect from registry (build tools?)
if (VCInstallDir is null)
foreach (const(char)* ver; ["14.0".ptr, "12.0", "11.0", "10.0", "9.0"])
{
auto regPath = FileName.buildPath(r"Microsoft\VisualStudio", ver, r"Setup\VC");
VCInstallDir = GetRegistryString(regPath, "ProductDir");
if (VCInstallDir)
break;
}
}
/**
* detect VCToolsInstallDir from environment or registry (only used by VC 2017)
*/
void detectVCToolsInstallDir()
{
if (VCToolsInstallDir is null)
VCToolsInstallDir = getenv("VCTOOLSINSTALLDIR");
if (VCToolsInstallDir is null && VCInstallDir)
{
const(char)* defverFile = FileName.combine(VCInstallDir, r"Auxiliary\Build\Microsoft.VCToolsVersion.default.txt");
if (FileName.exists(defverFile))
{
// VS 2017
File f = File(defverFile);
if (!f.read()) // returns true on error (!), adds sentinel 0 at end of file
{
auto ver = cast(char*)f.buffer;
// trim version number
while (*ver && isspace(*ver))
ver++;
auto p = ver;
while (*p == '.' || (*p >= '0' && *p <= '9'))
p++;
*p = 0;
if (ver && *ver)
VCToolsInstallDir = FileName.buildPath(VCInstallDir, r"Tools\MSVC", ver);
}
}
}
}
enum VCDir { Base, Bin, Lib }
/**
* get Visual C folders
* Params:
* dir = select bin,lib or base folder
* x64 = target architecture (x86 if false)
* Returns:
* folder containing the VC executables, the VC runtime libraries or the VC root folder
*/
const(char)* getVCDir(VCDir dir, bool x64)
{
if (VCToolsInstallDir !is null)
{
if (dir == VCDir.Bin)
return FileName.combine(VCToolsInstallDir, x64 ? r"bin\HostX86\x64" : r"bin\HostX86\x86");
if (dir == VCDir.Lib)
return FileName.combine(VCToolsInstallDir, x64 ? r"lib\x64" : r"lib\x86");
return VCToolsInstallDir;
}
if (dir == VCDir.Bin)
return FileName.combine(VCInstallDir, x64 ? r"bin\amd64" : "bin");
if (dir == VCDir.Lib)
return FileName.combine(VCInstallDir, x64 ? r"lib\amd64" : "lib");
return VCInstallDir;
}
/**
* get the path to the universal CRT libraries
* Params:
* x64 = target architecture (x86 if false)
* Returns:
* folder containing the universal CRT libraries
*/
const(char)* getUCRTLibPath(bool x64)
{
if (UCRTSdkDir && UCRTVersion)
return FileName.buildPath(UCRTSdkDir, "Lib", UCRTVersion, x64 ? r"ucrt\x64" : r"ucrt\x86");
return null;
}
/**
* get the path to the Windows SDK CRT libraries
* Params:
* x64 = target architecture (x86 if false)
* Returns:
* folder containing the Windows SDK libraries
*/
const(char)* getSDKLibPath(bool x64)
{
if (WindowsSdkDir)
{
const(char)* arch = x64 ? "x64" : "x86";
auto sdk = FileName.combine(WindowsSdkDir, "lib");
if (WindowsSdkVersion &&
FileName.exists(FileName.buildPath(sdk, WindowsSdkVersion, "um", arch, "kernel32.lib"))) // SDK 10.0
return FileName.buildPath(sdk, WindowsSdkVersion, "um", arch);
else if (FileName.exists(FileName.buildPath(sdk, r"win8\um", arch, "kernel32.lib"))) // SDK 8.0
return FileName.buildPath(sdk, r"win8\um", arch);
else if (FileName.exists(FileName.buildPath(sdk, r"winv6.3\um", arch, "kernel32.lib"))) // SDK 8.1
return FileName.buildPath(sdk, r"winv6.3\um", arch);
else if (x64 && FileName.exists(FileName.buildPath(sdk, arch, "kernel32.lib"))) // SDK 7.1 or earlier
return FileName.buildPath(sdk, arch);
else if (!x64 && FileName.exists(FileName.buildPath(sdk, "kernel32.lib"))) // SDK 7.1 or earlier
return sdk;
}
return null;
}
// iterate through subdirectories named by SDK version in baseDir and return the
// one with the largest version that also contains the test file
static const(char)* findLatestSDKDir(const(char)* baseDir, const(char)* testfile)
{
auto allfiles = FileName.combine(baseDir, "*");
static if (!is(WIN32_FIND_DATAA)) alias WIN32_FIND_DATAA = WIN32_FIND_DATA; // support dmd 2.068
WIN32_FIND_DATAA fileinfo;
HANDLE h = FindFirstFileA(allfiles, &fileinfo);
if (h == INVALID_HANDLE_VALUE)
return null;
char* res = null;
do
{
if (fileinfo.cFileName[0] >= '1' && fileinfo.cFileName[0] <= '9')
if (res is null || strcmp(res, fileinfo.cFileName.ptr) < 0)
if (FileName.exists(FileName.buildPath(baseDir, fileinfo.cFileName.ptr, testfile)))
{
const len = strlen(fileinfo.cFileName.ptr) + 1;
res = cast(char*) memcpy(mem.xrealloc(res, len), fileinfo.cFileName.ptr, len);
}
}
while(FindNextFileA(h, &fileinfo));
if (!FindClose(h))
res = null;
return res;
}
pragma(lib, "advapi32.lib");
/**
* read a string from the 32-bit registry
* Params:
* softwareKeyPath = path below HKLM\SOFTWARE
* valueName = name of the value to read
* Returns:
* the registry value if it exists and has string type
*/
const(char)* GetRegistryString(const(char)* softwareKeyPath, const(char)* valueName)
{
enum x64hive = false; // VS registry entries always in 32-bit hive
version(Win64)
enum prefix = x64hive ? r"SOFTWARE\" : r"SOFTWARE\WOW6432Node\";
else
enum prefix = r"SOFTWARE\";
char[260] regPath = void;
const len = strlen(softwareKeyPath);
assert(len + prefix.length < regPath.length);
memcpy(regPath.ptr, prefix.ptr, prefix.length);
memcpy(regPath.ptr + prefix.length, softwareKeyPath, len + 1);
enum KEY_WOW64_64KEY = 0x000100; // not defined in core.sys.windows.winnt due to restrictive version
enum KEY_WOW64_32KEY = 0x000200;
HKEY key;
LONG lRes = RegOpenKeyExA(HKEY_LOCAL_MACHINE, regPath.ptr, (x64hive ? KEY_WOW64_64KEY : KEY_WOW64_32KEY), KEY_READ, &key);
if (FAILED(lRes))
return null;
scope(exit) RegCloseKey(key);
char[260] buf = void;
DWORD cnt = buf.length * char.sizeof;
DWORD type;
int hr = RegQueryValueExA(key, valueName, null, &type, cast(ubyte*) buf.ptr, &cnt);
if (hr == 0 && cnt > 0)
return buf.dup.ptr;
if (hr != ERROR_MORE_DATA || type != REG_SZ)
return null;
scope char[] pbuf = new char[cnt + 1];
RegQueryValueExA(key, valueName, null, &type, cast(ubyte*) pbuf.ptr, &cnt);
return pbuf.ptr;
}
}
}
| D |
instance VLK_473_Buergerin(Npc_Default)
{
name[0] = NAME_Buergerin;
guild = GIL_VLK;
id = 473;
voice = 17;
flags = 0;
npcType = NPCTYPE_AMBIENT;
aivar[AIV_ToughGuy] = TRUE;
B_SetAttributesToChapter(self,1);
fight_tactic = FAI_HUMAN_COWARD;
B_CreateAmbientInv(self);
EquipItem(self,ItMw_1h_Vlk_Dagger);
B_SetNpcVisual(self,FEMALE,"Hum_Head_Babe1",FaceBabe_N_Lilo,BodyTex_N,ITAR_VlkBabe_L);
Mdl_ApplyOverlayMds(self,"Humans_Babe.mds");
B_GiveNpcTalents(self);
B_SetFightSkills(self,35);
daily_routine = Rtn_Start_473;
};
func void Rtn_Start_473()
{
TA_Smalltalk(5,5,12,30,"NW_CITY_HABOUR_PUFF_02");
TA_Smalltalk(12,30,18,5,"NW_CITY_WAY_TO_SHIP_01");
TA_Stand_Sweeping(18,5,22,5,"NW_CITY_HABOUR_POOR_AREA_HUT_01_IN");
TA_Sleep(22,5,5,5,"NW_CITY_HABOUR_POOR_AREA_HUT_01_BED_01");
};
| 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/identifier.d, _identifier.d)
*/
module ddmd.identifier;
// Online documentation: https://dlang.org/phobos/ddmd_identifier.html
import core.stdc.ctype;
import core.stdc.stdio;
import core.stdc.string;
import ddmd.globals;
import ddmd.id;
import ddmd.root.outbuffer;
import ddmd.root.rootobject;
import ddmd.root.stringtable;
import ddmd.tokens;
import ddmd.utf;
/***********************************************************
*/
extern (C++) final class Identifier : RootObject
{
private:
const int value;
const char* string;
const size_t len;
public:
extern (D) this(const(char)* string, size_t length, int value)
{
//printf("Identifier('%s', %d)\n", string, value);
this.string = string;
this.value = value;
this.len = length;
}
extern (D) this(const(char)* string)
{
//printf("Identifier('%s', %d)\n", string, value);
this(string, strlen(string), TOKidentifier);
}
static Identifier create(const(char)* string)
{
return new Identifier(string);
}
override bool equals(RootObject o) const
{
return this == o || strncmp(string, o.toChars(), len + 1) == 0;
}
override int compare(RootObject o) const
{
return strncmp(string, o.toChars(), len + 1);
}
override void print() const
{
fprintf(stderr, "%s", string);
}
override const(char)* toChars() const
{
return string;
}
extern (D) final const(char)[] toString() const
{
return string[0 .. len];
}
final int getValue() const
{
return value;
}
const(char)* toHChars2() const
{
const(char)* p = null;
if (this == Id.ctor)
p = "this";
else if (this == Id.dtor)
p = "~this";
else if (this == Id.unitTest)
p = "unittest";
else if (this == Id.dollar)
p = "$";
else if (this == Id.withSym)
p = "with";
else if (this == Id.result)
p = "result";
else if (this == Id.returnLabel)
p = "return";
else
{
p = toChars();
if (*p == '_')
{
if (strncmp(p, "_staticCtor", 11) == 0)
p = "static this";
else if (strncmp(p, "_staticDtor", 11) == 0)
p = "static ~this";
else if (strncmp(p, "__invariant", 11) == 0)
p = "invariant";
}
}
return p;
}
override DYNCAST dyncast() const
{
return DYNCAST.identifier;
}
extern (C++) static __gshared StringTable stringtable;
static Identifier generateId(const(char)* prefix)
{
static __gshared size_t i;
return generateId(prefix, ++i);
}
static Identifier generateId(const(char)* prefix, size_t i)
{
OutBuffer buf;
buf.writestring(prefix);
buf.printf("%llu", cast(ulong)i);
return idPool(buf.peekSlice());
}
/********************************************
* Create an identifier in the string table.
*/
extern (D) static Identifier idPool(const(char)[] s)
{
return idPool(s.ptr, s.length);
}
static Identifier idPool(const(char)* s, size_t len)
{
StringValue* sv = stringtable.update(s, len);
Identifier id = cast(Identifier)sv.ptrvalue;
if (!id)
{
id = new Identifier(sv.toDchars(), len, TOKidentifier);
sv.ptrvalue = cast(char*)id;
}
return id;
}
extern (D) static Identifier idPool(const(char)* s, size_t len, int value)
{
auto sv = stringtable.insert(s, len, null);
assert(sv);
auto id = new Identifier(sv.toDchars(), len, value);
sv.ptrvalue = cast(char*)id;
return id;
}
/**********************************
* Determine if string is a valid Identifier.
* Returns:
* 0 invalid
*/
static bool isValidIdentifier(const(char)* p)
{
size_t len;
size_t idx;
if (!p || !*p)
goto Linvalid;
if (*p >= '0' && *p <= '9') // beware of isdigit() on signed chars
goto Linvalid;
len = strlen(p);
idx = 0;
while (p[idx])
{
dchar dc;
const q = utf_decodeChar(p, len, idx, dc);
if (q)
goto Linvalid;
if (!((dc >= 0x80 && isUniAlpha(dc)) || isalnum(dc) || dc == '_'))
goto Linvalid;
}
return true;
Linvalid:
return false;
}
static Identifier lookup(const(char)* s, size_t len)
{
auto sv = stringtable.lookup(s, len);
if (!sv)
return null;
return cast(Identifier)sv.ptrvalue;
}
static void initTable()
{
stringtable._init(28000);
}
}
| D |
/Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Service.build/Environment/Environment.swift.o : /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Services/ServiceID.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Utilities/Deprecated.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Services/Service.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Services/ServiceCache.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Utilities/Extendable.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Services/ServiceType.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Config/Config.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Provider/Provider.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Container/Container.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Container/SubContainer.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Container/BasicSubContainer.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Container/BasicContainer.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Utilities/ServiceError.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Container/ContainerAlias.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Services/Services.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Utilities/Exports.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Environment/Environment.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Services/ServiceFactory.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Services/BasicServiceFactory.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Services/TypeServiceFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.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/thomaslacan/git/MyJogs-vapor/.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/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOAtomics/include/cpp_magic.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOLinux/include/ifaddrs-android.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIODarwin/include/CNIODarwin.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOLinux/include/CNIOLinux.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio-zlib-support.git-1048424751408724151/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /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/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Service.build/Environment~partial.swiftmodule : /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Services/ServiceID.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Utilities/Deprecated.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Services/Service.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Services/ServiceCache.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Utilities/Extendable.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Services/ServiceType.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Config/Config.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Provider/Provider.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Container/Container.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Container/SubContainer.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Container/BasicSubContainer.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Container/BasicContainer.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Utilities/ServiceError.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Container/ContainerAlias.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Services/Services.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Utilities/Exports.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Environment/Environment.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Services/ServiceFactory.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Services/BasicServiceFactory.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Services/TypeServiceFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.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/thomaslacan/git/MyJogs-vapor/.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/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOAtomics/include/cpp_magic.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOLinux/include/ifaddrs-android.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIODarwin/include/CNIODarwin.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOLinux/include/CNIOLinux.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio-zlib-support.git-1048424751408724151/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /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/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Service.build/Environment~partial.swiftdoc : /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Services/ServiceID.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Utilities/Deprecated.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Services/Service.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Services/ServiceCache.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Utilities/Extendable.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Services/ServiceType.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Config/Config.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Provider/Provider.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Container/Container.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Container/SubContainer.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Container/BasicSubContainer.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Container/BasicContainer.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Utilities/ServiceError.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Container/ContainerAlias.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Services/Services.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Utilities/Exports.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Environment/Environment.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Services/ServiceFactory.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Services/BasicServiceFactory.swift /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/service.git-3263332778848588464/Sources/Service/Services/TypeServiceFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.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/thomaslacan/git/MyJogs-vapor/.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/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOAtomics/include/cpp_magic.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOLinux/include/ifaddrs-android.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIODarwin/include/CNIODarwin.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio.git-3536564549603293986/Sources/CNIOLinux/include/CNIOLinux.h /Users/thomaslacan/git/MyJogs-vapor/.build/checkouts/swift-nio-zlib-support.git-1048424751408724151/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/thomaslacan/git/MyJogs-vapor/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
| D |
/Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/TemplateKit.build/Pipeline/PlaintextRenderer.swift.o : /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateData.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateEmbed.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Deprecated.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSource.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataStorage.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/ASTCache.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataRepresentable.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/HTMLEscape.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSyntaxType.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Uppercase.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Lowercase.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Capitalize.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateTag.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateConditional.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateCustom.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateExpression.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Var.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataEncoder.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateIdentifier.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateByteScanner.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateRenderer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/TagRenderer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/PlaintextRenderer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/ViewRenderer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateParser.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateSerializer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/TemplateError.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateIterator.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Contains.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/Exports.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/DateFormat.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateConstant.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Comment.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Print.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Count.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateDataContext.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/TagContext.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Raw.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateRaw.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/View.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSyntax.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/Khanh/vapor/TILApp/.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/Khanh/vapor/TILApp/.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/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/Khanh/vapor/TILApp/.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/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/TemplateKit.build/PlaintextRenderer~partial.swiftmodule : /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateData.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateEmbed.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Deprecated.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSource.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataStorage.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/ASTCache.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataRepresentable.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/HTMLEscape.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSyntaxType.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Uppercase.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Lowercase.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Capitalize.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateTag.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateConditional.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateCustom.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateExpression.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Var.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataEncoder.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateIdentifier.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateByteScanner.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateRenderer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/TagRenderer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/PlaintextRenderer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/ViewRenderer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateParser.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateSerializer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/TemplateError.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateIterator.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Contains.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/Exports.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/DateFormat.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateConstant.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Comment.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Print.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Count.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateDataContext.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/TagContext.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Raw.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateRaw.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/View.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSyntax.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/Khanh/vapor/TILApp/.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/Khanh/vapor/TILApp/.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/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/Khanh/vapor/TILApp/.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/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/TemplateKit.build/PlaintextRenderer~partial.swiftdoc : /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateData.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateEmbed.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Deprecated.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSource.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataStorage.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/ASTCache.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataRepresentable.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/HTMLEscape.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSyntaxType.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Uppercase.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Lowercase.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Capitalize.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateTag.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateConditional.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateCustom.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateExpression.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Var.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Data/TemplateDataEncoder.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateIdentifier.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateByteScanner.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateRenderer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/TagRenderer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/PlaintextRenderer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/ViewRenderer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateParser.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Pipeline/TemplateSerializer.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/TemplateError.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateIterator.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Contains.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Utilities/Exports.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/DateFormat.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateConstant.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Comment.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Print.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Count.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateDataContext.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/TagContext.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/Tag/Raw.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateRaw.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/View.swift /Users/Khanh/vapor/TILApp/.build/checkouts/template-kit.git--6129928586187134836/Sources/TemplateKit/AST/TemplateSyntax.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Service.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/Khanh/vapor/TILApp/.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/Khanh/vapor/TILApp/.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/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/cpp_magic.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIODarwin/include/c_nio_darwin.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOAtomics/include/c-atomics.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio.git-3108475404973543938/Sources/CNIOLinux/include/c_nio_linux.h /Users/Khanh/vapor/TILApp/.build/checkouts/swift-nio-zlib-support.git--1071467962839356487/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/Khanh/vapor/TILApp/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/Khanh/vapor/TILApp/.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 |
; 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_mul_double_2addr_2.java
.class public dot.junit.opcodes.mul_double_2addr.d.T_mul_double_2addr_2
.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(DD)D
.limit regs 14
mul-double/2addr v10, v14
return-wide v10
.end method
| D |
module gl.texture;
import std.string;
import derelict.opengl.gl;
import derelict.opengl.gl20;
import derelict.opengl.extension.ext.texture_compression_s3tc;
import derelict.opengl.extension.ext.texture_compression_dxt1;
import derelict.opengl.extension.arb.texture_float;
import derelict.opengl.extension.ext.framebuffer_object;
import derelict.opengl.extension.arb.half_float_pixel;
import derelict.opengl.extension.arb.depth_texture;
import derelict.opengl.extension.ext.texture_sRGB;
import gl.buffer;
import gl.state;
import std.stdio;
import math.common, math.box2;
import misc.logger;
import gl.textureunit;
import gl.state;
// support DXT1 and DXT5 but not all combinations
class Texture
{
public
{
enum Wrap
{
CLAMP,
CLAMP_TO_EDGE,
REPEAT,
CLAMP_TO_BORDER,
MIRRORED_REPEAT
}
// internal fornat of texture
enum IFormat
{
I8,
I16F,
I32F,
A8,
A16F,
A32F,
L8,
L16F,
L32F,
LA8,
LA16F,
LA32F,
RGB8,
RGB16F,
RGB32F,
RGBA8,
RGBA16F,
RGBA32F,
DEPTH,
DEPTH16,
DEPTH24,
DEPTH32,
}
// format of data used to write into texture
enum Format
{
LUMINANCE,
INTENSITY,
ALPHA,
LUMINANCE_ALPHA,
RGB,
RGBA,
BGR,
BGRA,
DEPTH
}
enum Type
{
UBYTE,
BYTE,
USHORT,
SHORT,
UINT,
INT,
FLOAT,
HALF
}
enum Filter
{
NEAREST,
LINEAR,
NEAREST_MIPMAP_NEAREST,
NEAREST_MIPMAP_LINEAR,
LINEAR_MIPMAP_NEAREST,
LINEAR_MIPMAP_LINEAR
}
}
private
{
GLint chooseCompressionScheme(IFormat fmt)
{
static GLint s_supportedCompressedFormats[] = null;
static bool hasCompressionFormat(GLint fmt)
{
// create the array at first time
if (s_supportedCompressedFormats is null)
{
GLint nCompressedFormats;
glGetIntegerv(GL_NUM_COMPRESSED_TEXTURE_FORMATS, &nCompressedFormats);
s_supportedCompressedFormats.length = nCompressedFormats;
glGetIntegerv(GL_COMPRESSED_TEXTURE_FORMATS, s_supportedCompressedFormats.ptr);
}
// search the suitable compression format
for (int i = 0; i < s_supportedCompressedFormats.length; ++i)
{
if (fmt == s_supportedCompressedFormats[i])
{
return true;
}
}
return false;
}
switch(fmt)
{
// DXT3 and DXT1 RGBA are disqualified
case IFormat.I8: return GL_COMPRESSED_INTENSITY;
case IFormat.A8: return GL_COMPRESSED_ALPHA;
case IFormat.L8: return GL_COMPRESSED_LUMINANCE;
// RGB -> DXT1 or GL_COMPRESSED_RGB
case IFormat.RGB8: return hasCompressionFormat(GL_COMPRESSED_RGB_S3TC_DXT1_EXT)
? GL_COMPRESSED_RGB_S3TC_DXT1_EXT
: GL_COMPRESSED_RGB;
// RGBA -> DXT5 or GL_COMPRESSED_RGBA
case IFormat.RGBA8: return hasCompressionFormat(GL_COMPRESSED_RGBA_S3TC_DXT5_EXT)
? GL_COMPRESSED_RGBA_S3TC_DXT5_EXT
: GL_COMPRESSED_RGBA;
default: assert(false);
}
}
GLint translateIformat_toGL(IFormat fmt, bool compressed, bool sRGB)
{
GLint format;
if (compressed)
{
format = chooseCompressionScheme(fmt);
}
else
{
switch(fmt)
{
case IFormat.I8: format = GL_INTENSITY; break;
case IFormat.I16F: format = GL_INTENSITY16F_ARB; break;
case IFormat.I32F: format = GL_INTENSITY32F_ARB; break;
case IFormat.A8: format = GL_ALPHA; break;
case IFormat.A16F: format = GL_ALPHA16F_ARB; break;
case IFormat.A32F: format = GL_ALPHA32F_ARB; break;
case IFormat.L8: format = GL_LUMINANCE; break;
case IFormat.L16F: format = GL_LUMINANCE16F_ARB; break;
case IFormat.L32F: format = GL_LUMINANCE32F_ARB; break;
case IFormat.LA8: format = GL_LUMINANCE_ALPHA; break;
case IFormat.LA16F: format = GL_LUMINANCE_ALPHA16F_ARB; break;
case IFormat.LA32F: format = GL_LUMINANCE_ALPHA32F_ARB; break;
case IFormat.RGB8: format = GL_RGB; break;
case IFormat.RGB16F: format = GL_RGB16F_ARB; break;
case IFormat.RGB32F: format = GL_RGB32F_ARB; break;
case IFormat.RGBA8: format = GL_RGBA; break;
case IFormat.RGBA16F: format = GL_RGBA16F_ARB; break;
case IFormat.RGBA32F: format = GL_RGBA32F_ARB; break;
case IFormat.DEPTH: format = GL_DEPTH_COMPONENT; break;
case IFormat.DEPTH16: format = GL_DEPTH_COMPONENT16_ARB; break;
case IFormat.DEPTH24: format = GL_DEPTH_COMPONENT24_ARB; break;
case IFormat.DEPTH32: format = GL_DEPTH_COMPONENT32_ARB; break;
default: assert(false);
}
}
if (sRGB)
{
// EXTTextureSRGB.load();
if (!EXTTextureSRGB.isEnabled())
{
warn("EXT_texture_sRGB is not loaded ! Textures will be wrong");
}
else
{
switch(format)
{
case GL_RGB: format = GL_SRGB_EXT; break;
case GL_RGB8: format = GL_SRGB8_EXT; break;
case GL_RGBA: format = GL_SRGB_ALPHA_EXT; break;
case GL_RGBA8: format = GL_SRGB8_ALPHA8_EXT; break;
case GL_LUMINANCE_ALPHA: format = GL_SLUMINANCE_ALPHA_EXT; break;
case GL_LUMINANCE8_ALPHA8: format = GL_SLUMINANCE8_ALPHA8_EXT; break;
case GL_LUMINANCE: format = GL_SLUMINANCE_EXT; break;
case GL_LUMINANCE8: format = GL_SLUMINANCE8_EXT; break;
case GL_COMPRESSED_RGB: format = GL_COMPRESSED_SRGB_EXT; break;
case GL_COMPRESSED_RGBA: format = GL_COMPRESSED_SRGB_ALPHA_EXT; break;
case GL_COMPRESSED_LUMINANCE: format = GL_COMPRESSED_SLUMINANCE_EXT; break;
case GL_COMPRESSED_LUMINANCE_ALPHA: format = GL_COMPRESSED_SLUMINANCE_ALPHA_EXT; break;
case GL_COMPRESSED_RGB_S3TC_DXT1_EXT: format = GL_COMPRESSED_SRGB_S3TC_DXT1_EXT; break;
case GL_COMPRESSED_RGBA_S3TC_DXT5_EXT: format = GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT; break;
default: warn("This format cannot be sRGB'd");
}
}
}
return format;
}
}
package
{
static const GLint[Format.max + 1] Format_toGL =
[
GL_LUMINANCE,
GL_INTENSITY,
GL_ALPHA,
GL_LUMINANCE_ALPHA,
GL_RGB,
GL_RGBA,
GL_BGR,
GL_BGRA,
GL_DEPTH_COMPONENT
];
static const GLint[Type.max + 1] Type_toGL =
[
GL_UNSIGNED_BYTE,
GL_BYTE,
GL_UNSIGNED_SHORT,
GL_SHORT,
GL_UNSIGNED_INT,
GL_INT,
GL_FLOAT,
GL_HALF_FLOAT_ARB
];
static const GLint[Wrap.max + 1] Wrap_toGL =
[
GL_CLAMP,
GL_CLAMP_TO_EDGE,
GL_REPEAT,
GL_CLAMP_TO_BORDER,
GL_MIRRORED_REPEAT
];
static const GLint[Texture.Filter.max + 1] Filter_toGL =
[
GL_NEAREST,
GL_LINEAR,
GL_NEAREST_MIPMAP_NEAREST,
GL_NEAREST_MIPMAP_LINEAR,
GL_LINEAR_MIPMAP_NEAREST,
GL_LINEAR_MIPMAP_LINEAR
];
void getRelatedFormatAndType(IFormat iFormat, out Format f, out Type t)
{
switch (iFormat)
{
case IFormat.I8:
case IFormat.I16F:
case IFormat.I32F:
f = Format.INTENSITY;
t = Type.FLOAT;
break;
case IFormat.A8:
case IFormat.A16F:
case IFormat.A32F:
f = Format.ALPHA;
t = Type.FLOAT;
break;
case IFormat.L8:
case IFormat.L16F:
case IFormat.L32F:
f = Format.LUMINANCE;
t = Type.FLOAT;
break;
case IFormat.LA8:
case IFormat.LA16F:
case IFormat.LA32F:
f = Format.LUMINANCE_ALPHA;
t = Type.FLOAT;
break;
case IFormat.RGB8:
f = Format.RGB;
t = Type.UBYTE;
break;
case IFormat.RGB16F:
case IFormat.RGB32F:
f = Format.RGB;
t = Type.FLOAT;
break;
case IFormat.RGBA8:
f = Format.RGBA;
t = Type.UBYTE;
break;
case IFormat.RGBA16F:
case IFormat.RGBA32F:
f = Format.RGBA;
t = Type.FLOAT;
break;
case IFormat.DEPTH:
default:
f = Format.DEPTH;
t = Type.UBYTE;
break;
}
}
}
private
{
GLuint m_handle;
GLint m_baseLevel;
GLint m_maxLevel;
GLState m_state;
int m_numMipmaps;
final int getParam(GLenum paramName)
{
int res;
bind();
glGetTexParameteriv(m_target, paramName, &res);
GL.check();
return res;
}
final int getLevelParam(GLenum paramName, int level)
{
int res;
bind();
glGetTexLevelParameteriv(m_target, level, paramName, &res);
GL.check();
return res;
}
}
protected
{
final int bind()
{
return m_state.textureUnits.bind(this);
}
final int bind(int unit)
{
return m_state.textureUnits.bind(unit, this);;
}
final bool isBound()
{
return m_state.textureUnits.isBound(this) != -1;
}
GLint m_iFormat;
GLint m_width, m_height, m_depth;
GLint m_target;
bool m_wrapInPOT; // if false, the texture is wrapped into a power-of-two textures
Filter m_minFilter, m_magFilter;
int m_minLOD, m_maxLOD;
bool m_hasMipmaps;
Wrap m_wrapS, m_wrapT, m_wrapR;
final int storageWidth(int level = 0)
{
if (m_wrapInPOT)
{
return max(1, nextPow2(m_width) >> level);
}
else
{
return width(level);
}
}
final int storageHeight(int level = 0)
{
if (m_wrapInPOT)
{
return max(1, nextPow2(m_height) >> level);
}
else
{
return height(level);
}
}
final int storageDepth(int level = 0)
{
if (m_wrapInPOT)
{
return max(1, nextPow2(m_depth) >> level);
}
else
{
return depth(level);
}
}
}
public {
/**
* If wrapInPOT is true, ther texture will be silently wrapped into a larger POT texture.
*/
this(GLint target, IFormat iFormat, bool hasMipmaps, bool useCompression, bool sRGB, bool wrapInPOT = true)
{
assert(wrapInPOT);
m_state = GL;
m_target = target;
m_iFormat = translateIformat_toGL(iFormat, useCompression, sRGB);
glGenTextures(1, &m_handle);
assert(m_handle != 0);
minFilter = Filter.NEAREST;
magFilter = Filter.NEAREST;
wrapS = Wrap.CLAMP_TO_EDGE;
wrapT = Wrap.CLAMP_TO_EDGE;
wrapR = Wrap.CLAMP_TO_EDGE;
m_minLOD = 0;
m_maxLOD = 1000;
m_hasMipmaps = hasMipmaps;
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
m_width = m_height = m_depth = 0;
m_wrapInPOT = wrapInPOT;
m_numMipmaps = 1;
GL.check();
}
~this()
{
glDeleteTextures( 1, &m_handle);
GL.check();
}
final int use()
{
int textureUnit = bind();
GL.check();
return textureUnit;
}
final int use(int unit)
{
int textureUnit = bind(unit);
GL.check();
return textureUnit;
}
final void unuse()
{
m_state.textureUnits.unbind(this);
}
/**
* Return virtual width (the real texture could be in a larger POT texture
*/
final int width(int level = 0)
{
return max(1, m_width >> level);
}
/**
* Return virtual height (the real texture could be in a larger POT texture
*/
final int height(int level = 0)
{
return max(1, m_height >> level);
}
/**
* Return virtual depth (the real texture could be in a larger POT texture
*/
final int depth(int level = 0)
{
return max(1, m_depth >> level);
}
final GLint target()
{
return m_target;
}
final Wrap wrapS()
{
return m_wrapS;
}
final Wrap wrapT()
{
return m_wrapT;
}
final Wrap wrapR()
{
return m_wrapR;
}
final Wrap wrapS(Wrap w)
{
m_wrapS = w;
if (isBound()) {
bind(); // apply changes
}
return w;
}
final Wrap wrapT(Wrap w)
{
m_wrapT = w;
if (isBound()) {
bind(); // apply changes
}
return w;
}
final Wrap wrapR(Wrap w)
{
m_wrapR = w;
if (isBound()) {
bind(); // apply changes
}
return w;
}
final Filter minFilter()
{
return m_minFilter;
}
final Filter magFilter()
{
return m_magFilter;
}
final Filter minFilter(Filter f)
{
m_minFilter = f;
if (isBound()) {
bind(); // apply changes
}
return f;
}
final Filter magFilter(Filter f)
{
assert( (f == Filter.NEAREST) || (f == Filter.LINEAR) );
m_magFilter = f;
if (isBound()) {
bind(); // apply changes
}
return f;
}
final int minLOD()
{
return m_minLOD;
}
final int maxLOD()
{
return m_maxLOD;
}
final int minLOD(int lod)
{
m_minLOD = lod;
if (isBound()) {
bind(); // apply changes
}
return lod;
}
final int maxLOD(int lod)
{
m_minLOD = lod;
if (isBound()) {
bind(); // apply changes
}
return lod;
}
final GLint handle()
{
return m_handle;
}
final void getImage(int level, Format format, Type type, void * pixels)
{
bind();
glGetTexImage(m_target, level, Format_toGL[format], Type_toGL[type], pixels);
GL.check();
}
final void generateMipmaps()
{
bind();
glGenerateMipmapEXT(m_target);
GL.check();
}
/**
* Get the number of mipmaps level
*/
final int getNumMipmapLevel()
{
if (!m_hasMipmaps) return 1;
return getMaxMipmapLevel() + 1;
}
final int getMaxMipmapLevel()
{
if (!m_hasMipmaps) return 0;
int res = 0;
int w = storageWidth(0);
int h = storageHeight(0);
int d = storageDepth(0);
while( (w > 1) || (h > 1) || (d > 1) )
{
res++;
if (w > 1) w /= 2;
if (h > 1) h /= 2;
if (d > 1) d /= 2;
}
return res;
}
/*
final int baseLevel(int base)
{
bind();
glTexParameteri(m_target, GL_TEXTURE_BASE_LEVEL, base);
GL.check();
return base;
}
final int maxLevel(int level)
{
bind();
glTexParameteri(m_target, GL_TEXTURE_MAX_LEVEL, level);
GL.check();
return level;
}
*/
// get texture coord
// needed because the texture can be wrapped in a POT texture
final float smin(int level = 0)
{
return 0.f;
}
final float tmin(int level = 0)
{
return 0.f;
}
final float rmin(int level = 0)
{
return 0.f;
}
final float smax(int level = 0)
{
if (m_wrapInPOT)
{
return cast(float)(width(level)) / storageWidth(level);
}
else
{
return 1.f;
}
}
final float tmax(int level = 0)
{
if (m_wrapInPOT)
{
return cast(float)(height(level)) / storageHeight(level);
}
else
{
return 1.f;
}
}
final float rmax(int level = 0)
{
if (m_wrapInPOT)
{
return cast(float)(depth(level)) / storageDepth(level);
}
else
{
return 1.f;
}
}
}
}
| D |
/**
#
#Copyright (c) 2018 IoTone, Inc. All rights reserved.
#
**/
module shelld.shellclient;
| D |
FUNC VOID B_AssignAmbientInfos_OW_Wrk_4(var c_NPC slf)
{
}; | D |
module dlangui.platforms.common.startup;
import dlangui.core.config;
import dlangui.core.events;
import dlangui.widgets.styles;
import dlangui.graphics.fonts;
import dlangui.graphics.resources;
import dlangui.widgets.widget;
static if (BACKEND_GUI) {
import dlangui.graphics.ftfonts;
version (Windows) {
/// initialize font manager - default implementation
/// On win32 - first it tries to init freetype, and falls back to win32 fonts.
/// On linux/mac - tries to init freetype with some hardcoded font paths
extern(C) bool initFontManager() {
import core.sys.windows.windows;
import std.utf;
import dlangui.platforms.windows.win32fonts;
try {
/// testing freetype font manager
static if (ENABLE_FREETYPE) {
Log.v("Trying to init FreeType font manager");
import dlangui.graphics.ftfonts;
// trying to create font manager
Log.v("Creating FreeTypeFontManager");
FreeTypeFontManager ftfontMan = new FreeTypeFontManager();
import core.sys.windows.shlobj;
string fontsPath = "c:\\Windows\\Fonts\\";
static if (true) { // SHGetFolderPathW not found in shell32.lib
WCHAR[MAX_PATH] szPath;
static if (false) {
const CSIDL_FLAG_NO_ALIAS = 0x1000;
const CSIDL_FLAG_DONT_UNEXPAND = 0x2000;
if(SUCCEEDED(SHGetFolderPathW(NULL,
CSIDL_FONTS|CSIDL_FLAG_NO_ALIAS|CSIDL_FLAG_DONT_UNEXPAND,
NULL,
0,
szPath.ptr)))
{
fontsPath = toUTF8(fromWStringz(szPath));
}
} else {
if (GetWindowsDirectory(szPath.ptr, MAX_PATH - 1)) {
fontsPath = toUTF8(fromWStringz(szPath));
Log.i("Windows directory: ", fontsPath);
fontsPath ~= "\\Fonts\\";
Log.i("Fonts directory: ", fontsPath);
}
}
}
Log.v("Registering fonts");
ftfontMan.registerFont(fontsPath ~ "arial.ttf", FontFamily.SansSerif, "Arial", false, FontWeight.Normal);
ftfontMan.registerFont(fontsPath ~ "arialbd.ttf", FontFamily.SansSerif, "Arial", false, FontWeight.Bold);
ftfontMan.registerFont(fontsPath ~ "arialbi.ttf", FontFamily.SansSerif, "Arial", true, FontWeight.Bold);
ftfontMan.registerFont(fontsPath ~ "ariali.ttf", FontFamily.SansSerif, "Arial", true, FontWeight.Normal);
ftfontMan.registerFont(fontsPath ~ "cour.ttf", FontFamily.MonoSpace, "Courier New", false, FontWeight.Normal);
ftfontMan.registerFont(fontsPath ~ "courbd.ttf", FontFamily.MonoSpace, "Courier New", false, FontWeight.Bold);
ftfontMan.registerFont(fontsPath ~ "courbi.ttf", FontFamily.MonoSpace, "Courier New", true, FontWeight.Bold);
ftfontMan.registerFont(fontsPath ~ "couri.ttf", FontFamily.MonoSpace, "Courier New", true, FontWeight.Normal);
ftfontMan.registerFont(fontsPath ~ "times.ttf", FontFamily.Serif, "Times New Roman", false, FontWeight.Normal);
ftfontMan.registerFont(fontsPath ~ "timesbd.ttf", FontFamily.Serif, "Times New Roman", false, FontWeight.Bold);
ftfontMan.registerFont(fontsPath ~ "timesbi.ttf", FontFamily.Serif, "Times New Roman", true, FontWeight.Bold);
ftfontMan.registerFont(fontsPath ~ "timesi.ttf", FontFamily.Serif, "Times New Roman", true, FontWeight.Normal);
ftfontMan.registerFont(fontsPath ~ "consola.ttf", FontFamily.MonoSpace, "Consolas", false, FontWeight.Normal);
ftfontMan.registerFont(fontsPath ~ "consolab.ttf", FontFamily.MonoSpace, "Consolas", false, FontWeight.Bold);
ftfontMan.registerFont(fontsPath ~ "consolai.ttf", FontFamily.MonoSpace, "Consolas", true, FontWeight.Normal);
ftfontMan.registerFont(fontsPath ~ "consolaz.ttf", FontFamily.MonoSpace, "Consolas", true, FontWeight.Bold);
ftfontMan.registerFont(fontsPath ~ "verdana.ttf", FontFamily.SansSerif, "Verdana", false, FontWeight.Normal);
ftfontMan.registerFont(fontsPath ~ "verdanab.ttf", FontFamily.SansSerif, "Verdana", false, FontWeight.Bold);
ftfontMan.registerFont(fontsPath ~ "verdanai.ttf", FontFamily.SansSerif, "Verdana", true, FontWeight.Normal);
ftfontMan.registerFont(fontsPath ~ "verdanaz.ttf", FontFamily.SansSerif, "Verdana", true, FontWeight.Bold);
if (ftfontMan.registeredFontCount()) {
FontManager.instance = ftfontMan;
} else {
Log.w("No fonts registered in FreeType font manager. Disabling FreeType.");
destroy(ftfontMan);
}
}
} catch (Exception e) {
Log.e("Cannot create FreeTypeFontManager - falling back to win32");
}
// use Win32 font manager
if (FontManager.instance is null) {
FontManager.instance = new Win32FontManager();
}
return true;
}
} else {
import dlangui.graphics.ftfonts;
bool registerFonts(FreeTypeFontManager ft, string path) {
import std.file;
if (!exists(path) || !isDir(path))
return false;
ft.registerFont(path ~ "DejaVuSans.ttf", FontFamily.SansSerif, "DejaVuSans", false, FontWeight.Normal);
ft.registerFont(path ~ "DejaVuSans-Bold.ttf", FontFamily.SansSerif, "DejaVuSans", false, FontWeight.Bold);
ft.registerFont(path ~ "DejaVuSans-Oblique.ttf", FontFamily.SansSerif, "DejaVuSans", true, FontWeight.Normal);
ft.registerFont(path ~ "DejaVuSans-BoldOblique.ttf", FontFamily.SansSerif, "DejaVuSans", true, FontWeight.Bold);
ft.registerFont(path ~ "DejaVuSansMono.ttf", FontFamily.MonoSpace, "DejaVuSansMono", false, FontWeight.Normal);
ft.registerFont(path ~ "DejaVuSansMono-Bold.ttf", FontFamily.MonoSpace, "DejaVuSansMono", false, FontWeight.Bold);
ft.registerFont(path ~ "DejaVuSansMono-Oblique.ttf", FontFamily.MonoSpace, "DejaVuSansMono", true, FontWeight.Normal);
ft.registerFont(path ~ "DejaVuSansMono-BoldOblique.ttf", FontFamily.MonoSpace, "DejaVuSansMono", true, FontWeight.Bold);
return true;
}
string[] findFontsInDirectory(string dir) {
import dlangui.core.files;
import std.file : DirEntry;
DirEntry[] entries;
if (!listDirectory(dir, false, true, true, ["*.ttf"], entries))
return null;
string[] res;
foreach(entry; entries) {
res ~= entry.name;
}
return res;
}
void registerFontsFromDirectory(FreeTypeFontManager ft, string dir) {
string[] fontFiles = findFontsInDirectory(dir);
Log.d("Fonts in ", dir, " : ", fontFiles);
foreach(file; fontFiles)
ft.registerFont(file);
}
/// initialize font manager - default implementation
/// On win32 - first it tries to init freetype, and falls back to win32 fonts.
/// On linux/mac - tries to init freetype with some hardcoded font paths
extern(C) bool initFontManager() {
FreeTypeFontManager ft = new FreeTypeFontManager();
if (!registerFontConfigFonts(ft)) {
// TODO: use FontConfig
Log.w("No fonts found using FontConfig. Trying hardcoded paths.");
version (Android) {
ft.registerFontsFromDirectory("/system/fonts");
} else {
ft.registerFonts("/usr/share/fonts/truetype/dejavu/");
ft.registerFonts("/usr/share/fonts/TTF/");
ft.registerFonts("/usr/share/fonts/dejavu/");
ft.registerFonts("/usr/share/fonts/truetype/ttf-dejavu/"); // let it compile on Debian Wheezy
}
version(OSX) {
ft.registerFont("/Library/Fonts/Arial.ttf", FontFamily.SansSerif, "Arial", false, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Arial Bold.ttf", FontFamily.SansSerif, "Arial", false, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Arial Italic.ttf", FontFamily.SansSerif, "Arial", true, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Arial Bold Italic.ttf", FontFamily.SansSerif, "Arial", true, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Arial.ttf", FontFamily.SansSerif, "Arial", false, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Arial Bold.ttf", FontFamily.SansSerif, "Arial", false, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Arial Italic.ttf", FontFamily.SansSerif, "Arial", true, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Arial Bold Italic.ttf", FontFamily.SansSerif, "Arial", true, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Arial Narrow.ttf", FontFamily.SansSerif, "Arial Narrow", false, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Arial Narrow Bold.ttf", FontFamily.SansSerif, "Arial Narrow", false, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Arial Narrow Italic.ttf", FontFamily.SansSerif, "Arial Narrow", true, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Arial Narrow Bold Italic.ttf", FontFamily.SansSerif, "Arial Narrow", true, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Courier New.ttf", FontFamily.MonoSpace, "Courier New", false, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Courier New Bold.ttf", FontFamily.MonoSpace, "Courier New", false, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Courier New Italic.ttf", FontFamily.MonoSpace, "Courier New", true, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Courier New Bold Italic.ttf", FontFamily.MonoSpace, "Courier New", true, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Georgia.ttf", FontFamily.Serif, "Georgia", false, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Georgia Bold.ttf", FontFamily.Serif, "Georgia", false, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Georgia Italic.ttf", FontFamily.Serif, "Georgia", true, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Georgia Bold Italic.ttf", FontFamily.Serif, "Georgia", true, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Comic Sans MS.ttf", FontFamily.SansSerif, "Comic Sans", false, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Comic Sans MS Bold.ttf", FontFamily.SansSerif, "Comic Sans", false, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Tahoma.ttf", FontFamily.SansSerif, "Tahoma", false, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Tahoma Bold.ttf", FontFamily.SansSerif, "Tahoma", false, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Microsoft/Arial.ttf", FontFamily.SansSerif, "Arial", false, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Microsoft/Arial Bold.ttf", FontFamily.SansSerif, "Arial", false, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Microsoft/Arial Italic.ttf", FontFamily.SansSerif, "Arial", true, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Microsoft/Arial Bold Italic.ttf", FontFamily.SansSerif, "Arial", true, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Microsoft/Calibri.ttf", FontFamily.SansSerif, "Calibri", false, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Microsoft/Calibri Bold.ttf", FontFamily.SansSerif, "Calibri", false, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Microsoft/Calibri Italic.ttf", FontFamily.SansSerif, "Calibri", true, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Microsoft/Calibri Bold Italic.ttf", FontFamily.SansSerif, "Calibri", true, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Microsoft/Times New Roman.ttf", FontFamily.Serif, "Times New Roman", false, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Microsoft/Times New Roman Bold.ttf", FontFamily.Serif, "Times New Roman", false, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Microsoft/Times New Roman Italic.ttf", FontFamily.Serif, "Times New Roman", true, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Microsoft/Times New Roman Bold Italic.ttf", FontFamily.Serif, "Times New Roman", true, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Microsoft/Verdana.ttf", FontFamily.SansSerif, "Verdana", false, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Microsoft/Verdana Bold.ttf", FontFamily.SansSerif, "Verdana", false, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Microsoft/Verdana Italic.ttf", FontFamily.SansSerif, "Verdana", true, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Microsoft/Verdana Bold Italic.ttf", FontFamily.SansSerif, "Verdana", true, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Microsoft/Consolas.ttf", FontFamily.MonoSpace, "Consolas", false, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Microsoft/Consolas Bold.ttf", FontFamily.MonoSpace, "Consolas", false, FontWeight.Bold, true);
ft.registerFont("/Library/Fonts/Microsoft/Consolas Italic.ttf", FontFamily.MonoSpace, "Consolas", true, FontWeight.Normal, true);
ft.registerFont("/Library/Fonts/Microsoft/Consolas Bold Italic.ttf", FontFamily.MonoSpace, "Consolas", true, FontWeight.Bold, true);
ft.registerFont("/System/Library/Fonts/Menlo.ttc", FontFamily.MonoSpace, "Menlo", false, FontWeight.Normal, true);
}
}
if (!ft.registeredFontCount)
return false;
FontManager.instance = ft;
return true;
}
}
}
/// initialize logging (for win32 - to file ui.log, for other platforms - stderr; log level is TRACE for debug builds, and WARN for release builds)
extern (C) void initLogs() {
static if (BACKEND_CONSOLE) {
static import std.stdio;
debug {
Log.setFileLogger(new std.stdio.File("ui.log", "w"));
} else {
// no logging unless version ForceLogs is set
version(ForceLogs) {
Log.setFileLogger(new std.stdio.File("ui.log", "w"));
Log.i("Logging to file ui.log");
}
}
} else {
static import std.stdio;
version (Windows) {
debug {
Log.setFileLogger(new std.stdio.File("ui.log", "w"));
} else {
// no logging unless version ForceLogs is set
version(ForceLogs) {
Log.setFileLogger(new std.stdio.File("ui.log", "w"));
Log.i("Logging to file ui.log");
}
}
} else version(Android) {
Log.setLogTag("dlangui");
Log.setLogLevel(LogLevel.Trace);
} else {
Log.setStderrLogger();
}
debug {
Log.setLogLevel(LogLevel.Trace);
} else {
version(ForceLogs) {
Log.setLogLevel(LogLevel.Trace);
Log.i("Log level: trace");
} else {
Log.setLogLevel(LogLevel.Warn);
Log.i("Log level: warn");
}
}
}
Log.i("Logger is initialized");
}
/// call this on application initialization
extern (C) void initResourceManagers() {
Log.d("initResourceManagers()");
import dlangui.graphics.fonts;
_gamma65 = new glyph_gamma_table!65(1.0);
_gamma256 = new glyph_gamma_table!256(1.0);
static if (ENABLE_FREETYPE) {
import dlangui.graphics.ftfonts;
STD_FONT_FACES = [
"Arial": 12,
"Times New Roman": 12,
"Courier New": 10,
"DejaVu Serif": 10,
"DejaVu Sans": 10,
"DejaVu Sans Mono": 10,
"Liberation Serif": 11,
"Liberation Sans": 11,
"Liberation Mono": 11,
"Verdana": 10,
"Menlo": 13,
"Consolas": 12,
"DejaVuSansMono": 10,
"Lucida Sans Typewriter": 10,
"Lucida Console": 12,
"FreeMono": 8,
"FreeSans": 8,
"FreeSerif": 8,
];
}
static if (ENABLE_OPENGL) {
import dlangui.graphics.gldrawbuf;
initGLCaches();
}
import dlangui.graphics.resources;
embedStandardDlangUIResources();
static if (BACKEND_GUI) {
_imageCache = new ImageCache();
}
_drawableCache = new DrawableCache();
static if (BACKEND_GUI) {
version (Windows) {
import dlangui.platforms.windows.win32fonts;
initWin32FontsTables();
}
}
Log.d("Calling initSharedResourceManagers()");
initSharedResourceManagers();
Log.d("Calling initStandardEditorActions()");
import dlangui.widgets.editors;
initStandardEditorActions();
Log.d("Calling registerStandardWidgets()");
registerStandardWidgets();
Log.d("initResourceManagers() -- finished");
}
/// register standard widgets to use in DML
void registerStandardWidgets() {
Log.d("Registering standard widgets for DML");
import dlangui.widgets.metadata;
import dlangui.widgets.widget;
import dlangui.widgets.layouts;
import dlangui.widgets.controls;
import dlangui.widgets.lists;
import dlangui.widgets.combobox;
import dlangui.widgets.editors;
import dlangui.widgets.grid;
import dlangui.widgets.groupbox;
import dlangui.dialogs.filedlg;
import dlangui.widgets.menu;
mixin(registerWidgets!(FileNameEditLine, DirEditLine, //dlangui.dialogs.filedlg
ComboBox, ComboEdit, //dlangui.widgets.combobox
Widget, TextWidget, MultilineTextWidget, Button, ImageWidget, ImageButton, ImageCheckButton, ImageTextButton,
SwitchButton, RadioButton, CheckBox, ScrollBar, SliderWidget, HSpacer, VSpacer, CanvasWidget, // dlangui.widgets.controls
EditLine, EditBox, LogWidget,//dlangui.widgets.editors
GroupBox, // dlangui.widgets.groupbox
StringGridWidget, //dlangui.widgets.grid
VerticalLayout, HorizontalLayout, TableLayout, FrameLayout, // dlangui.widgets.layouts
ListWidget, StringListWidget,//dlangui.widgets.lists
MainMenu, //dlangui.widgets.menu
)("void registerWidgets"));
registerWidgets();
}
/// call this from shared static this()
extern (C) void initSharedResourceManagers() {
//Log.d("initSharedResourceManagers()");
//import dlangui.core.i18n;
//if (!i18n) {
// Log.d("Creating i18n object");
// i18n = new shared UIStringTranslator();
//}
}
shared static this() {
//initSharedResourceManagers();
}
/// call this when all resources are supposed to be freed to report counts of non-freed resources by type
extern (C) void releaseResourcesOnAppExit() {
//
debug setAppShuttingDownFlag();
debug {
if (Widget.instanceCount() > 0) {
Log.e("Non-zero Widget instance count when exiting: ", Widget.instanceCount);
}
}
currentTheme = null;
drawableCache = null;
static if (BACKEND_GUI) {
imageCache = null;
}
FontManager.instance = null;
debug {
if (DrawBuf.instanceCount > 0) {
Log.e("Non-zero DrawBuf instance count when exiting: ", DrawBuf.instanceCount);
}
if (Style.instanceCount > 0) {
Log.e("Non-zero Style instance count when exiting: ", Style.instanceCount);
}
if (ImageDrawable.instanceCount > 0) {
Log.e("Non-zero ImageDrawable instance count when exiting: ", ImageDrawable.instanceCount);
}
if (Drawable.instanceCount > 0) {
Log.e("Non-zero Drawable instance count when exiting: ", Drawable.instanceCount);
}
static if (ENABLE_FREETYPE) {
import dlangui.graphics.ftfonts;
if (FreeTypeFontFile.instanceCount > 0) {
Log.e("Non-zero FreeTypeFontFile instance count when exiting: ", FreeTypeFontFile.instanceCount);
}
if (FreeTypeFont.instanceCount > 0) {
Log.e("Non-zero FreeTypeFont instance count when exiting: ", FreeTypeFont.instanceCount);
}
}
}
}
version(unittest) {
version (Windows) {
mixin APP_ENTRY_POINT;
/// entry point for dlangui based application
extern (C) int UIAppMain(string[] args) {
// just to enable running unit tests
import core.runtime;
import std.stdio;
if (!runModuleUnitTests()) {
writeln("Error occured in unit tests. Press enter.");
readln();
return 1;
}
return 0;
}
}
}
| D |
/*
* $Id: shaderprogram.d,v 1.1.1.1 2005/06/18 00:46:00 kenta Exp $
*
* Copyright 2005 Kenta Cho. Some rights reserved.
*/
module abagames.util.sdl.shaderprogram;
private import std.string;
private import gl3n.linalg;
private import abagames.util.support.gl;
private import abagames.util.sdl.sdlexception;
private import std.conv;
/**
* Manage a shader program.
*/
public class ShaderProgram {
private:
static GLuint lastProgram = 0;
static GLuint lastVao = 0;
bool haveShader;
GLuint vertexShader;
GLuint fragmentShader;
GLuint program;
GLint[string] uniformLocations;
public this() {
vertexShader = 0;
fragmentShader = 0;
program = glCreateProgram();
haveShader = false;
}
public void setVertexShader(string source) {
if (vertexShader)
return;
vertexShader = glCreateShader(GL_VERTEX_SHADER);
compileShader(vertexShader, source);
}
public void setFragmentShader(string source) {
if (fragmentShader)
return;
fragmentShader = glCreateShader(GL_FRAGMENT_SHADER);
compileShader(fragmentShader, source);
}
private void compileShader(ref GLuint shader, string source) {
const(char)*[] sources = [ std.string.toStringz(source) ];
glShaderSource(shader, 1, sources.ptr, null);
glCompileShader(shader);
GLint status;
glGetShaderiv(shader, GL_COMPILE_STATUS, &status);
if (!status) {
GLint infoLen = 0;
glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen);
char[] infoLog;
if(infoLen > 1) {
infoLog.length = infoLen;
glGetShaderInfoLog(shader, infoLen, null, infoLog.ptr);
}
glDeleteShader(shader);
shader = 0;
throw new SDLException("Error compiling shader: " ~ to!string(infoLog));
}
haveShader = true;
glAttachShader(program, shader);
}
public void link() {
if (!haveShader)
throw new SDLException("No shader specified");
if (!vertexShader)
vertexShader = -1;
if (!fragmentShader)
fragmentShader = -1;
glLinkProgram(program);
GLint status;
glGetProgramiv(program, GL_LINK_STATUS, &status);
if (!status) {
GLint infoLen = 0;
glGetProgramiv(program, GL_INFO_LOG_LENGTH, &infoLen);
char[] infoLog;
if(infoLen > 1) {
infoLog.length = infoLen;
glGetProgramInfoLog(program, infoLen, null, infoLog.ptr);
}
glDeleteProgram(program);
program = -1;
throw new SDLException("Error linking program: " ~ to!string(infoLog));
}
}
public void use() {
if (lastProgram == program) {
return;
}
glUseProgram(program);
lastProgram = program;
}
public void useVao(GLuint vao) {
if (lastVao == vao) {
return;
}
glBindVertexArray(vao);
lastVao = vao;
}
public void bindAttribLocation(GLuint index, string name) {
glBindAttribLocation(program, index, std.string.toStringz(name));
}
public GLint uniformLocation(string name) {
if (name in uniformLocations) {
return uniformLocations[name];
}
GLint loc = glGetUniformLocation(program, std.string.toStringz(name));
uniformLocations[name] = loc;
return loc;
}
public void setUniform(string name, int x) {
GLint loc = uniformLocation(name);
glUniform1i(loc, x);
}
public void setUniform(string name, float x) {
GLint loc = uniformLocation(name);
glUniform1f(loc, x);
}
public void setUniform(string name, vec2 v) {
setUniform(name, v.x, v.y);
}
public void setUniform(string name, float x, float y) {
GLint loc = uniformLocation(name);
glUniform2f(loc, x, y);
}
public void setUniform(string name, vec3 v) {
setUniform(name, v.x, v.y, v.z);
}
public void setUniform(string name, float x, float y, float z) {
GLint loc = uniformLocation(name);
glUniform3f(loc, x, y, z);
}
public void setUniform(string name, vec4 v) {
setUniform(name, v.x, v.y, v.z, v.w);
}
public void setUniform(string name, float x, float y, float z, float w) {
GLint loc = uniformLocation(name);
glUniform4f(loc, x, y, z, w);
}
public void setUniform(string name, mat4 mat) {
GLint loc = uniformLocation(name);
glUniformMatrix4fv(loc, 1, GL_TRUE, mat.value_ptr);
}
public void close() {
if (program > 0)
glDeleteProgram(program);
if (vertexShader > 0)
glDeleteShader(vertexShader);
if (fragmentShader > 0)
glDeleteShader(fragmentShader);
}
}
| D |
/Users/lukamessina/work/reactor_app/RTS/DerivedData/MAXSIMA Simulator/Build/Intermediates/MAXSIMA Simulator.build/Debug-iphonesimulator/MAXSIMA Simulator.build/Objects-normal/i386/ReactivityViewController.o : /Users/lukamessina/work/reactor_app/RTS/Observables.swift /Users/lukamessina/work/reactor_app/RTS/Material.swift /Users/lukamessina/work/reactor_app/RTS/RTS/WelcomeViewController.swift /Users/lukamessina/work/reactor_app/RTS/RTS/AppDelegate.swift /Users/lukamessina/work/reactor_app/RTS/RTS/UlohsViewController.swift /Users/lukamessina/work/reactor_app/RTS/Reactor.swift /Users/lukamessina/work/reactor_app/RTS/RTS/ResultsViewController.swift /Users/lukamessina/work/reactor_app/RTS/UserSettings.swift /Users/lukamessina/work/reactor_app/RTS/RTS/AccidentsTableViewController.swift /Users/lukamessina/work/reactor_app/RTS/Fuel.swift /Users/lukamessina/work/reactor_app/RTS/RTS/OvercoolingViewController.swift /Users/lukamessina/work/reactor_app/RTS/RTS/SimulationViewController.swift /Users/lukamessina/work/reactor_app/RTS/GapGas.swift /Users/lukamessina/work/reactor_app/RTS/RTS/AccidentsTableViewCell.swift /Users/lukamessina/work/reactor_app/RTS/Coolant.swift /Users/lukamessina/work/reactor_app/RTS/RTS/ReactivityViewController.swift /Users/lukamessina/work/reactor_app/RTS/RTS/UtopViewController.swift /Users/lukamessina/work/reactor_app/RTS/Constants.swift /Users/lukamessina/work/reactor_app/RTS/Cladding.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/CoreImage.swiftmodule
/Users/lukamessina/work/reactor_app/RTS/DerivedData/MAXSIMA Simulator/Build/Intermediates/MAXSIMA Simulator.build/Debug-iphonesimulator/MAXSIMA Simulator.build/Objects-normal/i386/ReactivityViewController~partial.swiftmodule : /Users/lukamessina/work/reactor_app/RTS/Observables.swift /Users/lukamessina/work/reactor_app/RTS/Material.swift /Users/lukamessina/work/reactor_app/RTS/RTS/WelcomeViewController.swift /Users/lukamessina/work/reactor_app/RTS/RTS/AppDelegate.swift /Users/lukamessina/work/reactor_app/RTS/RTS/UlohsViewController.swift /Users/lukamessina/work/reactor_app/RTS/Reactor.swift /Users/lukamessina/work/reactor_app/RTS/RTS/ResultsViewController.swift /Users/lukamessina/work/reactor_app/RTS/UserSettings.swift /Users/lukamessina/work/reactor_app/RTS/RTS/AccidentsTableViewController.swift /Users/lukamessina/work/reactor_app/RTS/Fuel.swift /Users/lukamessina/work/reactor_app/RTS/RTS/OvercoolingViewController.swift /Users/lukamessina/work/reactor_app/RTS/RTS/SimulationViewController.swift /Users/lukamessina/work/reactor_app/RTS/GapGas.swift /Users/lukamessina/work/reactor_app/RTS/RTS/AccidentsTableViewCell.swift /Users/lukamessina/work/reactor_app/RTS/Coolant.swift /Users/lukamessina/work/reactor_app/RTS/RTS/ReactivityViewController.swift /Users/lukamessina/work/reactor_app/RTS/RTS/UtopViewController.swift /Users/lukamessina/work/reactor_app/RTS/Constants.swift /Users/lukamessina/work/reactor_app/RTS/Cladding.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/CoreImage.swiftmodule
/Users/lukamessina/work/reactor_app/RTS/DerivedData/MAXSIMA Simulator/Build/Intermediates/MAXSIMA Simulator.build/Debug-iphonesimulator/MAXSIMA Simulator.build/Objects-normal/i386/ReactivityViewController~partial.swiftdoc : /Users/lukamessina/work/reactor_app/RTS/Observables.swift /Users/lukamessina/work/reactor_app/RTS/Material.swift /Users/lukamessina/work/reactor_app/RTS/RTS/WelcomeViewController.swift /Users/lukamessina/work/reactor_app/RTS/RTS/AppDelegate.swift /Users/lukamessina/work/reactor_app/RTS/RTS/UlohsViewController.swift /Users/lukamessina/work/reactor_app/RTS/Reactor.swift /Users/lukamessina/work/reactor_app/RTS/RTS/ResultsViewController.swift /Users/lukamessina/work/reactor_app/RTS/UserSettings.swift /Users/lukamessina/work/reactor_app/RTS/RTS/AccidentsTableViewController.swift /Users/lukamessina/work/reactor_app/RTS/Fuel.swift /Users/lukamessina/work/reactor_app/RTS/RTS/OvercoolingViewController.swift /Users/lukamessina/work/reactor_app/RTS/RTS/SimulationViewController.swift /Users/lukamessina/work/reactor_app/RTS/GapGas.swift /Users/lukamessina/work/reactor_app/RTS/RTS/AccidentsTableViewCell.swift /Users/lukamessina/work/reactor_app/RTS/Coolant.swift /Users/lukamessina/work/reactor_app/RTS/RTS/ReactivityViewController.swift /Users/lukamessina/work/reactor_app/RTS/RTS/UtopViewController.swift /Users/lukamessina/work/reactor_app/RTS/Constants.swift /Users/lukamessina/work/reactor_app/RTS/Cladding.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/i386/CoreImage.swiftmodule
| D |
/*
TEST_OUTPUT:
---
fail_compilation/fail12.d(19): Error: `abc` matches conflicting symbols:
fail_compilation/fail12.d(11): function `fail12.main.Foo!(y).abc`
fail_compilation/fail12.d(11): function `fail12.main.Foo!(y).abc`
---
*/
template Foo(alias b)
{
int abc() { return b; }
}
void main()
{
int y = 8;
mixin Foo!(y);
mixin Foo!(y);
assert(abc() == 8);
}
| D |
/*
* This file is part of EvinceD.
* EvinceD is based on GtkD.
*
* EvinceD is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version, with
* some exceptions, please read the COPYING file.
*
* EvinceD is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with EvinceD; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
*/
// generated automatically - do not change
// find conversion definition on APILookup.txt
module evince.document.FormFieldSignature;
private import evince.document.FormField;
private import evince.document.c.functions;
public import evince.document.c.types;
private import glib.ConstructionException;
private import gobject.ObjectG;
/** */
public class FormFieldSignature : FormField
{
/** the main Gtk struct */
protected EvFormFieldSignature* evFormFieldSignature;
/** Get the main Gtk struct */
public EvFormFieldSignature* getFormFieldSignatureStruct(bool transferOwnership = false)
{
if (transferOwnership)
ownedRef = false;
return evFormFieldSignature;
}
/** the main Gtk struct as a void* */
protected override void* getStruct()
{
return cast(void*)evFormFieldSignature;
}
/**
* Sets our main struct and passes it to the parent class.
*/
public this (EvFormFieldSignature* evFormFieldSignature, bool ownedRef = false)
{
this.evFormFieldSignature = evFormFieldSignature;
super(cast(EvFormField*)evFormFieldSignature, ownedRef);
}
/** */
public static GType getType()
{
return ev_form_field_signature_get_type();
}
/** */
public this(int id)
{
auto __p = ev_form_field_signature_new(id);
if(__p is null)
{
throw new ConstructionException("null returned by new");
}
this(cast(EvFormFieldSignature*) __p, true);
}
}
| D |
/home/drk/iot/12_may_workshop/may_12_1/chap4/iftari/target/debug/iftari: /home/drk/iot/12_may_workshop/may_12_1/chap4/iftari/src/main.rs
| D |
/Users/sharmpi/Downloads/NotificationsWrapper-master\ 2/Build/Intermediates/NotificationManager.build/Debug-iphonesimulator/NotificationManager.build/Objects-normal/x86_64/AppDelegate.o : /Users/sharmpi/Downloads/NotificationsWrapper-master\ 2/NotificationManager/ViewController.swift /Users/sharmpi/Downloads/NotificationsWrapper-master\ 2/NotificationManager/AppDelegate.swift /Users/sharmpi/Downloads/NotificationsWrapper-master\ 2/NotificationManager/FunkyNotificationManager.swift /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
/Users/sharmpi/Downloads/NotificationsWrapper-master\ 2/Build/Intermediates/NotificationManager.build/Debug-iphonesimulator/NotificationManager.build/Objects-normal/x86_64/AppDelegate~partial.swiftmodule : /Users/sharmpi/Downloads/NotificationsWrapper-master\ 2/NotificationManager/ViewController.swift /Users/sharmpi/Downloads/NotificationsWrapper-master\ 2/NotificationManager/AppDelegate.swift /Users/sharmpi/Downloads/NotificationsWrapper-master\ 2/NotificationManager/FunkyNotificationManager.swift /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
/Users/sharmpi/Downloads/NotificationsWrapper-master\ 2/Build/Intermediates/NotificationManager.build/Debug-iphonesimulator/NotificationManager.build/Objects-normal/x86_64/AppDelegate~partial.swiftdoc : /Users/sharmpi/Downloads/NotificationsWrapper-master\ 2/NotificationManager/ViewController.swift /Users/sharmpi/Downloads/NotificationsWrapper-master\ 2/NotificationManager/AppDelegate.swift /Users/sharmpi/Downloads/NotificationsWrapper-master\ 2/NotificationManager/FunkyNotificationManager.swift /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Users/sharmpi/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
| D |
/**
To avoid cyclic dependencies with module constructors
*/
module xlld.static_;
///
shared static this() nothrow {
import xlld.conv.from: gToEnumMutex;
import xlld.conv.to: gFromEnumMutex;
import core.sync.mutex: Mutex;
gToEnumMutex = new shared Mutex;
gFromEnumMutex = new shared Mutex;
}
version(testLibraryExcelD):
shared static this() nothrow {
import xlld.sdk.xlcall: XLOPER12;
import xlld.test.util: gAsyncReturns, AA;
gAsyncReturns = AA!(XLOPER12, XLOPER12).create;
}
static this() nothrow {
import xlld.test.util: excel12UnitTest;
import xlld.sdk.xlcallcpp: SetExcel12EntryPt;
// this effectively "implements" the Excel12v function
// so that the code can be unit tested without needing to link
// with the Excel SDK
SetExcel12EntryPt(&excel12UnitTest);
}
///
static ~this() {
import xlld.test.util: gAllocated, gFreed, gNumXlAllocated, gNumXlFree;
import unit_threaded.should: shouldBeSameSetAs;
gFreed[0 .. gNumXlFree].shouldBeSameSetAs(gAllocated[0 .. gNumXlAllocated]);
}
| D |
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
*
* Copyright: Copyright (C) 1985-1998 by Symantec
* Copyright (C) 2000-2020 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 http://www.digitalmars.com, Walter Bright)
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/backend/debug.c, backend/debugprint.d)
* Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/backend/debug.c
*/
module dmd.backend.debugprint;
version (SCPP)
version = COMPILE;
version (MARS)
version = COMPILE;
version (HTOD)
version = COMPILE;
version (COMPILE)
{
import core.stdc.stdio;
import core.stdc.stdlib;
import core.stdc.string;
import dmd.backend.cdef;
import dmd.backend.cc;
import dmd.backend.el;
import dmd.backend.global;
import dmd.backend.code;
import dmd.backend.code_x86;
import dmd.backend.goh;
import dmd.backend.oper;
import dmd.backend.symtab;
import dmd.backend.ty;
import dmd.backend.type;
import dmd.backend.dlist;
import dmd.backend.dvec;
extern (C++):
nothrow:
void ferr(const(char)* p) { printf("%s", p); }
/*******************************
* Write out storage class.
*/
const(char)* str_class(SC c)
{
__gshared const char[10][SCMAX] sc =
[
"unde",
"auto",
"static",
"thread",
"extern",
"register",
"pseudo",
"global",
"comdat",
"parameter",
"regpar",
"fastpar",
"shadowreg",
"typedef",
"explicit",
"mutable",
"label",
"struct",
"enum",
"field",
"const",
"member",
"anon",
"inline",
"sinline",
"einline",
"overload",
"friend",
"virtual",
"locstat",
"template",
"functempl",
"ftexpspec",
"linkage",
"public",
"comdef",
"bprel",
"namespace",
"alias",
"funcalias",
"memalias",
"stack",
"adl",
];
__gshared char[9 + 3] buffer;
static assert(sc.length == SCMAX);
if (cast(uint) c < SCMAX)
sprintf(buffer.ptr,"SC%s",sc[c].ptr);
else
sprintf(buffer.ptr,"SC%u",cast(uint)c);
return buffer.ptr;
}
void WRclass(SC c)
{
printf("%11s ",str_class(c));
}
/***************************
* Write out oper numbers.
*/
void WROP(uint oper)
{
if (oper >= OPMAX)
{ printf("op = x%x, OPMAX = %d\n",oper,OPMAX);
assert(0);
}
ferr(debtab[oper]);
ferr(" ");
}
/*******************************
* Write TYxxxx
*/
void WRTYxx(tym_t t)
{
if (t & mTYnear)
printf("mTYnear|");
if (t & mTYfar)
printf("mTYfar|");
if (t & mTYcs)
printf("mTYcs|");
if (t & mTYconst)
printf("mTYconst|");
if (t & mTYvolatile)
printf("mTYvolatile|");
if (t & mTYshared)
printf("mTYshared|");
//#if !MARS && (__linux__ || __APPLE__ || __FreeBSD__ || __OpenBSD__ || __sun)
// if (t & mTYtransu)
// printf("mTYtransu|");
//#endif
t = tybasic(t);
if (t >= TYMAX)
{ printf("TY %x\n",cast(int)t);
assert(0);
}
printf("TY%s ",tystring[tybasic(t)]);
}
void WRBC(uint bc)
{
__gshared const char[7][BCMAX] bcs =
["unde ","goto ","true ","ret ","retexp",
"exit ","asm ","switch","ifthen","jmptab",
"try ","catch ","jump ",
"_try ","_filte","_final","_ret ","_excep",
"jcatch","_lpad ",
];
assert(bc < BCMAX);
printf("BC%s",bcs[bc].ptr);
}
/************************
* Write arglst
*/
void WRarglst(list_t a)
{ int n = 1;
if (!a) printf("0 args\n");
while (a)
{ const(char)* c = cast(const(char)*)list_ptr(a);
printf("arg %d: '%s'\n", n, c ? c : "NULL");
a = a.next;
n++;
}
}
/***************************
* Write out equation elem.
*/
void WReqn(elem *e)
{ __gshared int nest;
if (!e)
return;
if (OTunary(e.Eoper))
{
WROP(e.Eoper);
if (OTbinary(e.EV.E1.Eoper))
{ nest++;
ferr("(");
WReqn(e.EV.E1);
ferr(")");
nest--;
}
else
WReqn(e.EV.E1);
}
else if (e.Eoper == OPcomma && !nest)
{ WReqn(e.EV.E1);
printf(";\n\t");
WReqn(e.EV.E2);
}
else if (OTbinary(e.Eoper))
{
if (OTbinary(e.EV.E1.Eoper))
{ nest++;
ferr("(");
WReqn(e.EV.E1);
ferr(")");
nest--;
}
else
WReqn(e.EV.E1);
ferr(" ");
WROP(e.Eoper);
if (e.Eoper == OPstreq)
printf("%d", cast(int)type_size(e.ET));
ferr(" ");
if (OTbinary(e.EV.E2.Eoper))
{ nest++;
ferr("(");
WReqn(e.EV.E2);
ferr(")");
nest--;
}
else
WReqn(e.EV.E2);
}
else
{
switch (e.Eoper)
{ case OPconst:
elem_print_const(e);
break;
case OPrelconst:
ferr("#");
goto case OPvar;
case OPvar:
printf("%s",e.EV.Vsym.Sident.ptr);
if (e.EV.Vsym.Ssymnum != SYMIDX.max)
printf("(%d)", cast(int) e.EV.Vsym.Ssymnum);
if (e.EV.Voffset != 0)
{
if (e.EV.Voffset.sizeof == 8)
printf(".x%llx", cast(ulong)e.EV.Voffset);
else
printf(".%d",cast(int)e.EV.Voffset);
}
break;
case OPasm:
case OPstring:
printf("\"%s\"",e.EV.Vstring);
if (e.EV.Voffset)
printf("+%lld",cast(long)e.EV.Voffset);
break;
case OPmark:
case OPgot:
case OPframeptr:
case OPhalt:
case OPdctor:
case OPddtor:
WROP(e.Eoper);
break;
case OPstrthis:
break;
default:
WROP(e.Eoper);
assert(0);
}
}
}
void WRblocklist(list_t bl)
{
foreach (bl2; ListRange(bl))
{
block *b = list_block(bl2);
if (b && b.Bweight)
printf("B%d (%p) ",b.Bdfoidx,b);
else
printf("%p ",b);
}
ferr("\n");
}
void WRdefnod()
{ int i;
for (i = 0; i < go.defnod.length; i++)
{ printf("defnod[%d] in B%d = (", go.defnod[i].DNblock.Bdfoidx, i);
WReqn(go.defnod[i].DNelem);
printf(");\n");
}
}
void WRFL(FL fl)
{
__gshared const(char)[7][FLMAX] fls =
[ "unde ","const ","oper ","func ","data ",
"reg ",
"pseudo",
"auto ","fast ","para ","extrn ",
"code ","block ","udata ","cs ","swit ",
"fltrg ","offst ","datsg ",
"ctor ","dtor ","regsav","asm ",
"ndp ",
"farda ","csdat ",
"local ","tlsdat",
"bprel ","frameh","blocko","alloca",
"stack ","dsym ",
"got ","gotoff",
"funcar",
];
if (cast(uint)fl >= FLMAX)
printf("FL%d",fl);
else
printf("FL%s",fls[fl].ptr);
}
/***********************
* Write out block.
*/
void WRblock(block *b)
{
if (OPTIMIZER)
{
if (b && b.Bweight)
printf("B%d: (%p), weight=%d",b.Bdfoidx,b,b.Bweight);
else
printf("block %p",b);
if (!b)
{ ferr("\n");
return;
}
printf(" flags=x%x weight=%d",b.Bflags,b.Bweight);
//printf("\tfile %p, line %d",b.Bfilptr,b.Blinnum);
printf(" ");
WRBC(b.BC);
printf(" Btry=%p Bindex=%d",b.Btry,b.Bindex);
if (b.BC == BCtry)
printf(" catchvar = %p",b.catchvar);
printf("\n");
printf("\tBpred: "); WRblocklist(b.Bpred);
printf("\tBsucc: "); WRblocklist(b.Bsucc);
if (b.Belem)
{ if (debugf) /* if full output */
elem_print(b.Belem);
else
{ ferr("\t");
WReqn(b.Belem);
printf(";\n");
}
}
version (MARS)
{
if (b.Bcode)
b.Bcode.print();
}
version (SCPP)
{
if (b.Bcode)
b.Bcode.print();
}
ferr("\n");
}
else
{
targ_llong *pu;
int ncases;
assert(b);
printf("%2d: ", b.Bnumber); WRBC(b.BC);
if (b.Btry)
printf(" Btry=B%d",b.Btry ? b.Btry.Bnumber : 0);
if (b.Bindex)
printf(" Bindex=%d",b.Bindex);
if (b.BC == BC_finally)
printf(" b_ret=B%d", b.b_ret ? b.b_ret.Bnumber : 0);
version (MARS)
{
if (b.Bsrcpos.Sfilename)
printf(" %s(%u)", b.Bsrcpos.Sfilename, b.Bsrcpos.Slinnum);
}
printf("\n");
if (b.Belem)
{
if (debugf)
elem_print(b.Belem);
else
{
ferr("\t");
WReqn(b.Belem);
printf(";\n");
}
}
if (b.Bpred)
{
printf("\tBpred:");
foreach (bl; ListRange(b.Bpred))
printf(" B%d",list_block(bl).Bnumber);
printf("\n");
}
list_t bl = b.Bsucc;
switch (b.BC)
{
case BCswitch:
pu = b.Bswitch;
assert(pu);
ncases = cast(int)*pu;
printf("\tncases = %d\n",ncases);
printf("\tdefault: B%d\n",list_block(bl) ? list_block(bl).Bnumber : 0);
while (ncases--)
{ bl = list_next(bl);
printf("\tcase %lld: B%d\n", cast(long)*++pu,list_block(bl).Bnumber);
}
break;
case BCiftrue:
case BCgoto:
case BCasm:
case BCtry:
case BCcatch:
case BCjcatch:
case BC_try:
case BC_filter:
case BC_finally:
case BC_lpad:
case BC_ret:
case BC_except:
if (bl)
{
printf("\tBsucc:");
for ( ; bl; bl = list_next(bl))
printf(" B%d",list_block(bl).Bnumber);
printf("\n");
}
break;
case BCret:
case BCretexp:
case BCexit:
break;
default:
printf("bc = %d\n", b.BC);
assert(0);
}
}
}
/*****************************
* Number the blocks starting at 1.
* So much more convenient than pointer values.
*/
void numberBlocks(block *startblock)
{
uint number = 0;
for (block *b = startblock; b; b = b.Bnext)
b.Bnumber = ++number;
}
void WRfunc()
{
printf("func: '%s'\n",funcsym_p.Sident.ptr);
numberBlocks(startblock);
for (block *b = startblock; b; b = b.Bnext)
WRblock(b);
}
}
| D |
/*******************************************************************************
* Copyright (c) 2003, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
* Ported to the D Programming Language:
* John Reimer <terminal.node@gmail.com>
*******************************************************************************/
module dwt.browser.HelperAppLauncherDialog_1_9;
import tango.text.convert.Utf;
import dwt.dwthelper.utils;
import dwt.internal.mozilla.XPCOM;
import dwt.internal.mozilla.XPCOMObject;
import dwt.internal.mozilla.Common;
import XPCOM = dwt.internal.mozilla.XPCOM;
import dwt.internal.mozilla.nsILocalFile;
import dwt.internal.mozilla.nsStringAPI;
import dwt.internal.mozilla.nsEmbedString;
import dwt.browser.Mozilla;
class HelperAppLauncherDialog_1_9 : nsIHelperAppLauncherDialog_1_9 {
int refCount = 0;
this () {
}
extern(System)
nsrefcnt AddRef () {
refCount++;
return refCount;
}
extern(System)
nsresult QueryInterface (nsID* riid, void** ppvObject) {
if (riid is null || ppvObject is null) return XPCOM.NS_ERROR_NO_INTERFACE;
if (*riid is nsISupports.IID) {
*ppvObject = cast(void*)cast(nsIHelperAppLauncherDialog_1_9)this;
AddRef ();
return XPCOM.NS_OK;
}
if (*riid is nsIHelperAppLauncherDialog_1_9.IID) {
*ppvObject = cast(void*)cast(nsIHelperAppLauncherDialog_1_9)this;
AddRef ();
return XPCOM.NS_OK;
}
*ppvObject = null;
return XPCOM.NS_ERROR_NO_INTERFACE;
}
extern(System)
nsresult Release () {
refCount--;
/*
* Note. This instance lives as long as the download it is bound to.
* Its reference count is expected to go down to 0 when the download
* has completed or when it has been cancelled. E.g. when the user
* cancels the File Dialog, cancels or closes the Download Dialog
* and when the Download Dialog goes away after the download is completed.
*/
if (refCount is 0) return 0;
return refCount;
}
/* nsIHelperAppLauncherDialog */
extern(System)
nsresult Show (nsIHelperAppLauncher_1_9 aLauncher, nsISupports aContext, PRUint32 aReason) {
return aLauncher.SaveToDisk (null, 0);
}
extern(System)
nsresult PromptForSaveToFile (nsIHelperAppLauncher_1_9 aLauncher, nsISupports aWindowContext, PRUnichar* aDefaultFileName, PRUnichar* aSuggestedFileExtension, PRBool aForcePrompt, nsILocalFile* _retval) {
//int length = XPCOM.strlen_PRUnichar (aDefaultFileName);
//char[] dest = new char[length];
//XPCOM.memmove (dest, aDefaultFileName, length * 2);
String defaultFile = Utf.toString(fromString16z(aDefaultFileName));
//length = XPCOM.strlen_PRUnichar (aSuggestedFileExtension);
//dest = new char[length];
//XPCOM.memmove (dest, aSuggestedFileExtension, length * 2);
String suggestedFileExtension = Utf.toString(fromString16z(aSuggestedFileExtension));
Shell shell = new Shell ();
FileDialog fileDialog = new FileDialog (shell, DWT.SAVE);
fileDialog.setFileName (defaultFile);
String[] tmp;
tmp ~= suggestedFileExtension;
fileDialog.setFilterExtensions (tmp);
String name = fileDialog.open ();
shell.close ();
if (name is null) {
//nsIHelperAppLauncher_1_9 launcher = new nsIHelperAppLauncher_1_9 (aLauncher);
int rc = aLauncher.Cancel (XPCOM.NS_BINDING_ABORTED);
if (rc !is XPCOM.NS_OK) Mozilla.error (rc,__FILE__,__LINE__);
return XPCOM.NS_ERROR_FAILURE;
}
scope auto path = new nsEmbedString (name.toString16());
nsILocalFile localFile;
int rc = XPCOM.NS_NewLocalFile (cast(nsAString*)path, 1, &localFile);
//path.dispose ();
if (rc !is XPCOM.NS_OK) Mozilla.error (rc,__FILE__,__LINE__);
if (localFile is null) Mozilla.error (XPCOM.NS_ERROR_NULL_POINTER,__FILE__,__LINE__);
/* Our own nsIDownload has been registered during the Browser initialization. It will be invoked by Mozilla. */
*_retval = localFile;
//XPCOM.memmove (_retval, result, C.PTR_SIZEOF);
return XPCOM.NS_OK;
}
}
| D |
/home/hustccc/OS_Tutorial_Summer_of_Code/Shell_Tools/miniecho/target/debug/deps/strsim-6a1cfb1c353de55a.rmeta: /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/strsim-0.8.0/src/lib.rs
/home/hustccc/OS_Tutorial_Summer_of_Code/Shell_Tools/miniecho/target/debug/deps/libstrsim-6a1cfb1c353de55a.rlib: /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/strsim-0.8.0/src/lib.rs
/home/hustccc/OS_Tutorial_Summer_of_Code/Shell_Tools/miniecho/target/debug/deps/strsim-6a1cfb1c353de55a.d: /home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/strsim-0.8.0/src/lib.rs
/home/hustccc/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/strsim-0.8.0/src/lib.rs:
| D |
/Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Build/Intermediates/Tatari.build/Debug-iphonesimulator/Tatari.build/Objects-normal/x86_64/VotoTableViewCell.o : /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/ViewController.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FeedTableViewCell.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/ConfigViewController.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/MainController.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/AppDelegate.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/SearchController.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/VoteController.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/SwiftyJSON.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/VotoTableViewCell.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/DesafiosViewController.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/personTableViewCell.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FeedController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Bridging-Header.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFWebViewAppLinkResolver.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFURL.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFMeasurementEvent.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFAppLinkTarget.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFAppLinkReturnToRefererView.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFAppLinkReturnToRefererController.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFAppLinkResolving.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFAppLink.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFAppLinkNavigation.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFTaskCompletionSource.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFTask.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFExecutor.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFDefines.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFCancellationTokenSource.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFCancellationTokenRegistration.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFCancellationToken.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BoltsVersion.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/Bolts.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Modules/module.modulemap /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKButton.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKUtility.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKTestUsersManager.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKSettings.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKProfile.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKConstants.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKMacros.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKCopying.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKLoginKit.framework/Modules/module.modulemap /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Pushwoosh.framework/Headers/PushNotificationManager.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Build/Products/Debug-iphonesimulator/Toucan.framework/Modules/Toucan.swiftmodule/x86_64.swiftmodule /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Build/Products/Debug-iphonesimulator/Toucan.framework/Headers/Toucan-Swift.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Build/Products/Debug-iphonesimulator/Toucan.framework/Headers/Toucan.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Build/Products/Debug-iphonesimulator/Toucan.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreLocation.swiftmodule
/Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Build/Intermediates/Tatari.build/Debug-iphonesimulator/Tatari.build/Objects-normal/x86_64/VotoTableViewCell~partial.swiftmodule : /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/ViewController.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FeedTableViewCell.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/ConfigViewController.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/MainController.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/AppDelegate.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/SearchController.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/VoteController.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/SwiftyJSON.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/VotoTableViewCell.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/DesafiosViewController.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/personTableViewCell.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FeedController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Bridging-Header.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFWebViewAppLinkResolver.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFURL.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFMeasurementEvent.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFAppLinkTarget.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFAppLinkReturnToRefererView.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFAppLinkReturnToRefererController.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFAppLinkResolving.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFAppLink.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFAppLinkNavigation.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFTaskCompletionSource.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFTask.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFExecutor.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFDefines.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFCancellationTokenSource.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFCancellationTokenRegistration.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFCancellationToken.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BoltsVersion.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/Bolts.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Modules/module.modulemap /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKButton.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKUtility.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKTestUsersManager.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKSettings.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKProfile.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKConstants.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKMacros.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKCopying.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKLoginKit.framework/Modules/module.modulemap /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Pushwoosh.framework/Headers/PushNotificationManager.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Build/Products/Debug-iphonesimulator/Toucan.framework/Modules/Toucan.swiftmodule/x86_64.swiftmodule /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Build/Products/Debug-iphonesimulator/Toucan.framework/Headers/Toucan-Swift.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Build/Products/Debug-iphonesimulator/Toucan.framework/Headers/Toucan.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Build/Products/Debug-iphonesimulator/Toucan.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreLocation.swiftmodule
/Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Build/Intermediates/Tatari.build/Debug-iphonesimulator/Tatari.build/Objects-normal/x86_64/VotoTableViewCell~partial.swiftdoc : /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/ViewController.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FeedTableViewCell.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/ConfigViewController.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/MainController.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/AppDelegate.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/SearchController.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/VoteController.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/SwiftyJSON.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/VotoTableViewCell.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/DesafiosViewController.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/personTableViewCell.swift /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FeedController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Bridging-Header.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFWebViewAppLinkResolver.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFURL.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFMeasurementEvent.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFAppLinkTarget.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFAppLinkReturnToRefererView.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFAppLinkReturnToRefererController.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFAppLinkResolving.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFAppLink.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFAppLinkNavigation.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFTaskCompletionSource.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFTask.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFExecutor.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFDefines.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFCancellationTokenSource.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFCancellationTokenRegistration.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BFCancellationToken.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/BoltsVersion.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Headers/Bolts.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Bolts.framework/Modules/module.modulemap /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestDataAttachment.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKGraphErrorRecoveryProcessor.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKAppLinkResolver.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKButton.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKUtility.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKTestUsersManager.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKSettings.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKProfilePictureView.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKProfile.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKMutableCopying.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKGraphRequest.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKConstants.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKApplicationDelegate.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKAppLinkUtility.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKAppEvents.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKMacros.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKGraphRequestConnection.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKCopying.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKAccessToken.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Headers/FBSDKCoreKit.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKCoreKit.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKLoginKit.framework/Headers/FBSDKLoginTooltipView.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKLoginKit.framework/Headers/FBSDKLoginManagerLoginResult.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKLoginKit.framework/Headers/FBSDKLoginConstants.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKLoginKit.framework/Headers/FBSDKTooltipView.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKLoginKit.framework/Headers/FBSDKLoginManager.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKLoginKit.framework/Headers/FBSDKLoginButton.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKLoginKit.framework/Headers/FBSDKLoginKit.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/FBSDKLoginKit.framework/Modules/module.modulemap /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Tatari/Pushwoosh.framework/Headers/PushNotificationManager.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Build/Products/Debug-iphonesimulator/Toucan.framework/Modules/Toucan.swiftmodule/x86_64.swiftmodule /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Build/Products/Debug-iphonesimulator/Toucan.framework/Headers/Toucan-Swift.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Build/Products/Debug-iphonesimulator/Toucan.framework/Headers/Toucan.h /Users/deborahmesquita1/Documents/Code/tatari_fromweb/tatari/Build/Products/Debug-iphonesimulator/Toucan.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreLocation.swiftmodule
| D |
func void b_clearfmc()
{
b_killnpc(sld_750_soeldner);
b_killnpc(sld_751_soeldner);
b_killnpc(sld_752_okyl);
b_killnpc(sld_753_baloro);
b_killnpc(sld_755_soeldner);
b_killnpc(sld_756_soeldner);
b_killnpc(sld_757_soeldner);
b_killnpc(sld_758_soeldner);
b_killnpc(sld_759_soeldner);
b_killnpc(sld_760_soeldner);
b_killnpc(sld_761_soeldner);
b_killnpc(sld_762_soeldner);
b_killnpc(sld_763_soeldner);
b_killnpc(sld_764_soeldner);
b_killnpc(sld_765_soeldner);
b_killnpc(sfb_1030_schuerfer);
b_killnpc(sfb_1031_schuerfer);
b_killnpc(sfb_1032_schuerfer);
b_killnpc(sfb_1033_schuerfer);
b_killnpc(sfb_1034_schuerfer);
b_killnpc(sfb_1035_schuerfer);
b_killnpc(sfb_1036_schuerfer);
b_killnpc(sfb_1037_swiney);
b_killnpc(sfb_1038_schuerfer);
b_killnpc(sfb_1039_schuerfer);
b_killnpc(sfb_1040_schuerfer);
b_killnpc(sfb_1041_schuerfer);
b_killnpc(sfb_1042_schuerfer);
b_killnpc(sfb_1043_schuerfer);
b_killnpc(sfb_1044_schuerfer);
b_killnpc(org_890_organisator);
b_killnpc(org_891_organisator);
b_killnpc(org_892_organisator);
Wld_InsertNpc(grd_283_gardist,"FMC_ENTRANCE");
Wld_InsertNpc(grd_285_gardist,"FMC_ENTRANCE");
};
| D |
/****
* Generic ranges not found in Phobos.
* Copyright: 2013 by Digital Mars
* License: $(LINK2 http://boost.org/LICENSE_1_0.txt, Boost License 1.0).
* Authors: Walter Bright
*/
module ranges;
/**************
* BitBucket is an OutputRange that throws away its output.
*/
struct BitBucket(E)
{
static void put(E e) { }
}
/*****************************************
*/
struct EmptyInputRange(E)
{
enum bool empty = true;
enum E front = E.init;
static void popFront() { assert(0); }
}
/*****************************************
*/
struct StaticArrayBuffer(E, size_t N)
{
size_t i;
E[N] arr = void;
void initialize() { i = 0; }
void put(E e)
{
if (i >= N) {
detectedOverflow();
}
arr[i] = e;
++i;
}
void put(E[] e)
{
if (i + e.length >= N + 1) {
detectedOverflow();
}
arr[i .. i + e.length] = e[];
i += e.length;
}
E[] opSlice()
{
return arr[0 .. i];
}
@property size_t length() { return i; }
private:
void detectedOverflow() {
import main;
err_fatal("Buffer overflowed. Possibly caused by forgetting to "
"complete a git merge in your code.");
}
}
//import std.stdio;
unittest
{
StaticArrayBuffer!(ubyte, 2) buf = void;
buf.initialize();
buf.put('a');
buf.put('b');
//writefln("'%s'", buf.get());
assert(buf[] == "ab");
}
unittest
{
ubyte[2] buf = void;
size_t i;
buf[i] = 'a';
++i;
buf[i] = 'b';
++i;
assert(buf[0 .. i] == "ab");
}
| D |
instance PAL_227_Schiffswache(Npc_Default)
{
name[0] = NAME_Schiffswache;
guild = GIL_PAL;
id = 227;
voice = 9;
flags = NPC_FLAG_IMMORTAL;
npcType = NPCTYPE_MAIN;
B_SetAttributesToChapter(self,5);
fight_tactic = FAI_HUMAN_MASTER;
EquipItem(self,ItMw_1h_Pal_Sword);
B_CreateAmbientInv(self);
B_SetNpcVisual(self,MALE,"Hum_Head_Fighter",Face_N_NormalBart03,BodyTex_N,ITAR_PAL_M);
Mdl_SetModelFatness(self,1);
Mdl_ApplyOverlayMds(self,"Humans_Militia.mds");
B_GiveNpcTalents(self);
B_SetFightSkills(self,80);
daily_routine = Rtn_Start_227;
};
func void Rtn_Start_227()
{
TA_Stand_Guarding(6,0,7,0,"SHIP_DECK_29");
TA_Stand_Guarding(7,0,7,10,"SHIP_DECK_25");
TA_Stand_Guarding(7,10,7,20,"SHIP_DECK_29");
TA_Stand_Guarding(7,20,7,30,"SHIP_DECK_25");
TA_Stand_Guarding(7,30,7,40,"SHIP_DECK_29");
TA_Stand_Guarding(7,40,7,50,"SHIP_DECK_20");
TA_Stand_Guarding(7,50,8,0,"SHIP_DECK_29");
TA_Stand_Guarding(8,0,8,10,"SHIP_DECK_25");
TA_Stand_Guarding(8,10,8,20,"SHIP_DECK_29");
TA_Stand_Guarding(8,20,8,30,"SHIP_DECK_25");
TA_Stand_Guarding(8,30,8,40,"SHIP_DECK_29");
TA_Stand_Guarding(8,40,8,50,"SHIP_DECK_20");
TA_Stand_Guarding(8,50,9,0,"SHIP_DECK_29");
TA_Stand_Guarding(9,0,9,10,"SHIP_DECK_25");
TA_Stand_Guarding(9,10,9,20,"SHIP_DECK_29");
TA_Stand_Guarding(9,20,9,30,"SHIP_DECK_25");
TA_Stand_Guarding(9,30,9,40,"SHIP_DECK_29");
TA_Stand_Guarding(9,40,9,50,"SHIP_DECK_20");
TA_Stand_Guarding(9,50,10,0,"SHIP_DECK_29");
TA_Stand_Guarding(10,0,10,10,"SHIP_DECK_25");
TA_Stand_Guarding(10,10,10,20,"SHIP_DECK_29");
TA_Stand_Guarding(10,20,10,30,"SHIP_DECK_25");
TA_Stand_Guarding(10,30,10,40,"SHIP_DECK_29");
TA_Stand_Guarding(10,40,10,50,"SHIP_DECK_20");
TA_Stand_Guarding(10,50,11,0,"SHIP_DECK_29");
TA_Stand_Guarding(11,0,11,10,"SHIP_DECK_25");
TA_Stand_Guarding(11,10,11,20,"SHIP_DECK_29");
TA_Stand_Guarding(11,20,11,30,"SHIP_DECK_25");
TA_Stand_Guarding(11,30,11,40,"SHIP_DECK_29");
TA_Stand_Guarding(11,40,11,50,"SHIP_DECK_20");
TA_Stand_Guarding(11,50,12,0,"SHIP_DECK_29");
TA_Stand_Guarding(12,0,12,10,"SHIP_DECK_25");
TA_Stand_Guarding(12,10,12,20,"SHIP_DECK_29");
TA_Stand_Guarding(12,20,12,30,"SHIP_DECK_25");
TA_Stand_Guarding(12,30,12,40,"SHIP_DECK_29");
TA_Stand_Guarding(12,40,12,50,"SHIP_DECK_20");
TA_Stand_Guarding(12,50,13,0,"SHIP_DECK_29");
TA_Stand_Guarding(13,0,13,10,"SHIP_DECK_25");
TA_Stand_Guarding(13,10,13,20,"SHIP_DECK_29");
TA_Stand_Guarding(13,20,13,30,"SHIP_DECK_25");
TA_Stand_Guarding(13,30,13,40,"SHIP_DECK_29");
TA_Stand_Guarding(13,40,13,50,"SHIP_DECK_20");
TA_Stand_Guarding(13,50,14,0,"SHIP_DECK_29");
TA_Stand_Guarding(14,0,14,10,"SHIP_DECK_25");
TA_Stand_Guarding(14,10,14,20,"SHIP_DECK_29");
TA_Stand_Guarding(14,20,14,30,"SHIP_DECK_25");
TA_Stand_Guarding(14,30,14,40,"SHIP_DECK_29");
TA_Stand_Guarding(14,40,14,50,"SHIP_DECK_20");
TA_Stand_Guarding(14,50,15,0,"SHIP_DECK_29");
TA_Stand_Guarding(15,0,15,10,"SHIP_DECK_25");
TA_Stand_Guarding(15,10,15,20,"SHIP_DECK_29");
TA_Stand_Guarding(15,20,15,30,"SHIP_DECK_25");
TA_Stand_Guarding(15,30,15,40,"SHIP_DECK_29");
TA_Stand_Guarding(15,40,15,50,"SHIP_DECK_20");
TA_Stand_Guarding(15,50,16,0,"SHIP_DECK_29");
TA_Stand_Guarding(16,0,16,10,"SHIP_DECK_25");
TA_Stand_Guarding(16,10,16,20,"SHIP_DECK_29");
TA_Stand_Guarding(16,20,16,30,"SHIP_DECK_25");
TA_Stand_Guarding(16,30,16,40,"SHIP_DECK_29");
TA_Stand_Guarding(16,40,16,50,"SHIP_DECK_29");
TA_Stand_Guarding(16,50,17,0,"SHIP_DECK_29");
TA_Stand_Guarding(17,0,17,10,"SHIP_DECK_25");
TA_Stand_Guarding(17,10,17,20,"SHIP_DECK_29");
TA_Stand_Guarding(17,20,17,30,"SHIP_DECK_25");
TA_Stand_Guarding(17,30,17,40,"SHIP_DECK_29");
TA_Stand_Guarding(17,40,17,50,"SHIP_DECK_20");
TA_Stand_Guarding(17,50,18,0,"SHIP_DECK_29");
TA_Stand_Guarding(18,0,18,10,"SHIP_DECK_25");
TA_Stand_Guarding(18,10,18,20,"SHIP_DECK_29");
TA_Stand_Guarding(18,20,18,30,"SHIP_DECK_25");
TA_Stand_Guarding(18,30,18,40,"SHIP_DECK_29");
TA_Stand_Guarding(18,40,18,50,"SHIP_DECK_20");
TA_Stand_Guarding(18,50,19,0,"SHIP_DECK_29");
TA_Stand_Guarding(19,0,19,10,"SHIP_DECK_25");
TA_Stand_Guarding(19,10,19,20,"SHIP_DECK_29");
TA_Stand_Guarding(19,20,19,30,"SHIP_DECK_25");
TA_Stand_Guarding(19,30,19,40,"SHIP_DECK_29");
TA_Stand_Guarding(19,40,19,50,"SHIP_DECK_20");
TA_Stand_Guarding(19,50,20,0,"SHIP_DECK_29");
TA_Stand_Guarding(20,0,20,10,"SHIP_DECK_25");
TA_Stand_Guarding(20,10,20,20,"SHIP_DECK_29");
TA_Stand_Guarding(20,20,20,30,"SHIP_DECK_25");
TA_Stand_Guarding(20,30,20,40,"SHIP_DECK_29");
TA_Stand_Guarding(20,40,20,50,"SHIP_DECK_20");
TA_Stand_Guarding(20,50,21,0,"SHIP_DECK_29");
TA_Stand_Guarding(21,0,21,10,"SHIP_DECK_25");
TA_Stand_Guarding(21,10,21,20,"SHIP_DECK_29");
TA_Stand_Guarding(21,20,21,30,"SHIP_DECK_25");
TA_Stand_Guarding(21,30,21,40,"SHIP_DECK_29");
TA_Stand_Guarding(21,40,21,50,"SHIP_DECK_20");
TA_Stand_Guarding(21,50,22,0,"SHIP_DECK_29");
TA_Stand_Guarding(22,0,23,0,"SHIP_DECK_25");
TA_Stand_Guarding(23,0,0,0,"SHIP_DECK_29");
TA_Stand_Guarding(0,0,1,0,"SHIP_DECK_25");
TA_Stand_Guarding(1,0,2,0,"SHIP_DECK_20");
TA_Stand_Guarding(2,0,3,0,"SHIP_DECK_29");
TA_Stand_Guarding(3,0,4,0,"SHIP_DECK_20");
TA_Stand_Guarding(4,0,5,0,"SHIP_DECK_29");
TA_Stand_Guarding(5,0,6,0,"SHIP_DECK_25");
};
func void Rtn_ShipFree_227()
{
TA_Stand_WP(8,0,23,0,"NW_CITY_UPTOWNPARADE_10");
TA_Stand_WP(23,0,8,0,"NW_CITY_UPTOWNPARADE_10");
};
| D |
the distinctive form in which a thing is made
container into which liquid is poured to create a given shape when it hardens
loose soil rich in organic matter
the process of becoming mildewed
a fungus that produces a superficial growth on various kinds of damp or decaying organic matter
a dish or dessert that is formed in or on a mold
a distinctive nature, character, or type
sculpture produced by molding
form in clay, wax, etc
become moldy
form by pouring (e.g., wax or hot metal) into a cast or mold
make something, usually for a specific function
fit tightly, follow the contours of
shape or influence
| D |
instance DIA_BENNET_EXIT(C_INFO)
{
npc = sld_809_bennet;
nr = 999;
condition = dia_bennet_exit_condition;
information = dia_bennet_exit_info;
permanent = TRUE;
description = DIALOG_ENDE;
};
func int dia_bennet_exit_condition()
{
if(KAPITEL < 3)
{
return TRUE;
};
};
func void dia_bennet_exit_info()
{
AI_StopProcessInfos(self);
};
instance DIA_BENNET_HALLO(C_INFO)
{
npc = sld_809_bennet;
nr = 1;
condition = dia_bennet_hallo_condition;
information = dia_bennet_hallo_info;
permanent = FALSE;
important = TRUE;
};
func int dia_bennet_hallo_condition()
{
if((KAPITEL < 3) && Npc_IsInState(self,zs_talk))
{
return TRUE;
};
};
func void dia_bennet_hallo_info()
{
AI_Output(self,other,"DIA_Bennet_HALLO_06_00"); //Я не продаю оружие. Халед продает. Он находится в доме Онара.
Log_CreateTopic(TOPIC_SOLDIERTRADER,LOG_NOTE);
b_logentry(TOPIC_SOLDIERTRADER,"Халед - торговец оружием.");
};
instance DIA_BENNET_TRADE(C_INFO)
{
npc = sld_809_bennet;
nr = 700;
condition = dia_bennet_trade_condition;
information = dia_bennet_trade_info;
permanent = TRUE;
description = "А как насчет кузнечного инструмента?";
trade = TRUE;
};
func int dia_bennet_trade_condition()
{
if((KAPITEL != 3) || (MIS_RESCUEBENNET == LOG_SUCCESS))
{
return TRUE;
};
};
func void dia_bennet_trade_info()
{
var int mcbolzenamount;
var int mcarrowamount;
AI_Output(other,self,"DIA_Bennet_TRADE_15_00"); //А как насчет кузнечного инструмента?
b_givetradeinv(self);
Npc_RemoveInvItems(self,itrw_bolt,Npc_HasItems(self,itrw_bolt));
mcbolzenamount = KAPITEL * 50;
CreateInvItems(self,itrw_bolt,mcbolzenamount);
Npc_RemoveInvItems(self,itrw_arrow,Npc_HasItems(self,itrw_arrow));
mcarrowamount = KAPITEL * 50;
CreateInvItems(self,itrw_arrow,mcarrowamount);
AI_Output(self,other,"DIA_Bennet_TRADE_06_01"); //Что тебе нужно?
if(BENNETLOG == FALSE)
{
Log_CreateTopic(TOPIC_SOLDIERTRADER,LOG_NOTE);
b_logentry(TOPIC_SOLDIERTRADER,"Беннет продает кузнечное снаряжение.");
BENNETLOG = TRUE;
};
};
instance DIA_BENNET_WHICHWEAPONS(C_INFO)
{
npc = sld_809_bennet;
nr = 2;
condition = dia_bennet_whichweapons_condition;
information = dia_bennet_whichweapons_info;
permanent = FALSE;
description = "Какое оружие ты делаешь?";
};
func int dia_bennet_whichweapons_condition()
{
if(((KAPITEL != 3) || (MIS_RESCUEBENNET == LOG_SUCCESS)) && (MIS_BENNET_BRINGORE == FALSE))
{
return TRUE;
};
};
func void dia_bennet_whichweapons_info()
{
AI_Output(other,self,"DIA_Bennet_WhichWeapons_15_00"); //Какое оружие ты делаешь?
AI_Output(self,other,"DIA_Bennet_WhichWeapons_06_01"); //Сейчас - обычные мечи. Больше ничего.
AI_Output(self,other,"DIA_Bennet_WhichWeapons_06_02"); //Но если бы у меня была магическая руда, я мог бы выковать оружие, превосходящее любой меч из обычной стали.
AI_Output(self,other,"DIA_Bennet_WhichWeapons_06_03"); //Ты случайно не знаешь, где можно раздобыть руды? (смеется) Кроме как в Долине Рудников, я имею в виду.
AI_Output(other,self,"DIA_Bennet_WhichWeapons_15_04"); //Нет.
AI_Output(self,other,"DIA_Bennet_WhichWeapons_06_05"); //Конечно же, не знаешь.
};
instance DIA_BENNET_BAUORSLD(C_INFO)
{
npc = sld_809_bennet;
nr = 3;
condition = dia_bennet_bauorsld_condition;
information = dia_bennet_bauorsld_info;
permanent = FALSE;
description = "Ты с фермерами или с наемниками?";
};
func int dia_bennet_bauorsld_condition()
{
if((KAPITEL != 3) || (MIS_RESCUEBENNET == LOG_SUCCESS))
{
return TRUE;
};
};
func void dia_bennet_bauorsld_info()
{
AI_Output(other,self,"DIA_Bennet_BauOrSld_15_00"); //Ты с фермерами или с наемниками?
AI_Output(self,other,"DIA_Bennet_BauOrSld_06_01"); //Ты смеешься надо мной, да?
AI_Output(other,self,"DIA_Bennet_BauOrSld_15_02"); //Мне просто интересно.
AI_Output(self,other,"DIA_Bennet_BauOrSld_06_03"); //Ты когда-нибудь видел фермера, который ковал бы оружие?
AI_Output(other,self,"DIA_Bennet_BauOrSld_15_04"); //Нет.
AI_Output(self,other,"DIA_Bennet_BauOrSld_06_05"); //Тогда зачем ты задаешь такие тупые вопросы?
};
instance DIA_BENNET_WANNAJOIN(C_INFO)
{
npc = sld_809_bennet;
nr = 4;
condition = dia_bennet_wannajoin_condition;
information = dia_bennet_wannajoin_info;
permanent = TRUE;
description = "Я хочу присоединиться к наемникам!";
};
func int dia_bennet_wannajoin_condition()
{
if(Npc_KnowsInfo(other,dia_bennet_bauorsld) && (other.guild == GIL_NONE))
{
return TRUE;
};
};
func void dia_bennet_wannajoin_info()
{
AI_Output(other,self,"DIA_Bennet_WannaJoin_15_00"); //Я хочу присоединиться к наемникам!
AI_Output(self,other,"DIA_Bennet_WannaJoin_06_01"); //Тогда прекращай болтать и иди к Торлофу. Пусть он даст тебе испытание.
if((MIS_TORLOF_HOLPACHTVONSEKOB == LOG_SUCCESS) || (MIS_TORLOF_BENGARMILIZKLATSCHEN == LOG_SUCCESS))
{
AI_Output(other,self,"DIA_Bennet_WannaJoin_15_02"); //Я прошел испытание.
AI_Output(self,other,"DIA_Bennet_WannaJoin_06_03"); //Хорошо, тогда я проголосую за тебя.
};
};
instance DIA_BENNET_WANNASMITH(C_INFO)
{
npc = sld_809_bennet;
nr = 5;
condition = dia_bennet_wannasmith_condition;
information = dia_bennet_wannasmith_info;
permanent = TRUE;
description = "Ты можешь научить меня ковать мечи?";
};
func int dia_bennet_wannasmith_condition()
{
if((PLAYER_TALENT_SMITH[WEAPON_COMMON] == FALSE) && (BENNET_TEACHCOMMON == FALSE) && ((KAPITEL != 3) || (MIS_RESCUEBENNET == LOG_SUCCESS)))
{
return TRUE;
};
};
func void dia_bennet_wannasmith_info()
{
AI_Output(other,self,"DIA_Bennet_WannaSmith_15_00"); //Ты можешь научить меня ковать мечи?
AI_Output(self,other,"DIA_Bennet_WannaSmith_06_01"); //Конечно.
AI_Output(self,other,"DIA_Bennet_WannaSmith_06_02"); //Впрочем, это обойдется тебе в некоторую сумму. Скажем, 30 золотых.
Info_ClearChoices(dia_bennet_wannasmith);
Info_AddChoice(dia_bennet_wannasmith,"Может быть, позже.",dia_bennet_wannasmith_later);
Info_AddChoice(dia_bennet_wannasmith,"Отлично. Вот твои 30 золотых.",dia_bennet_wannasmith_pay);
};
func void dia_bennet_wannasmith_pay()
{
AI_Output(other,self,"DIA_Bennet_WannaSmith_Pay_15_00"); //Отлично. Вот твои 30 золотых.
if(b_giveinvitems(other,self,itmi_gold,30))
{
AI_Output(self,other,"DIA_Bennet_WannaSmith_Pay_06_01"); //Должен сказать, это очень хорошая цена! Я готов приступить к обучению, как только ты будешь готов.
BENNET_TEACHCOMMON = TRUE;
Log_CreateTopic(TOPIC_SOLDIERTEACHER,LOG_NOTE);
b_logentry(TOPIC_SOLDIERTEACHER,"Беннет может обучить меня кузнечному делу.");
}
else
{
AI_Output(self,other,"DIA_Bennet_WannaSmith_Pay_06_02"); //Не надо держать меня за идиота. 30 золотых и ни одной монетой меньше.
};
Info_ClearChoices(dia_bennet_wannasmith);
};
func void dia_bennet_wannasmith_later()
{
AI_Output(other,self,"DIA_Bennet_WannaSmith_Later_15_00"); //Может быть, позже.
Info_ClearChoices(dia_bennet_wannasmith);
};
instance DIA_BENNET_TEACHCOMMON(C_INFO)
{
npc = sld_809_bennet;
nr = 6;
condition = dia_bennet_teachcommon_condition;
information = dia_bennet_teachcommon_info;
permanent = TRUE;
description = b_buildlearnstring("Научиться кузнечному делу",b_getlearncosttalent(other,NPC_TALENT_SMITH));
};
func int dia_bennet_teachcommon_condition()
{
if((PLAYER_TALENT_SMITH[WEAPON_COMMON] == FALSE) && (BENNET_TEACHCOMMON == TRUE) && ((KAPITEL != 3) || (MIS_RESCUEBENNET == LOG_SUCCESS)))
{
return TRUE;
};
};
func void dia_bennet_teachcommon_info()
{
AI_Output(other,self,"DIA_Bennet_TeachCOMMON_15_00"); //Научи меня ковать мечи!
if(b_teachplayertalentsmith(self,other,WEAPON_COMMON))
{
AI_Output(self,other,"DIA_Bennet_TeachCOMMON_06_01"); //Это довольно просто: берешь кусок сырой стали и держишь его над огнем, пока он не раскалится.
AI_Output(self,other,"DIA_Bennet_TeachCOMMON_06_02"); //Затем кладешь его на наковальню и придаешь мечу форму.
AI_Output(self,other,"DIA_Bennet_TeachCOMMON_06_03"); //Самое важное - следи, чтобы сталь не стала слишком холодной. У тебя есть всего несколько минут для обработки оружия...
AI_Output(self,other,"DIA_Bennet_TeachCOMMON_06_04"); //А остальному ты научишься сам - это всего лишь вопрос практики.
};
};
instance DIA_BENNET_WANNASMITHORE(C_INFO)
{
npc = sld_809_bennet;
nr = 7;
condition = dia_bennet_wannasmithore_condition;
information = dia_bennet_wannasmithore_info;
permanent = TRUE;
description = "Научи меня ковать магическое оружие!";
};
func int dia_bennet_wannasmithore_condition()
{
if((BENNET_TEACHSMITH == FALSE) && ((KAPITEL != 3) || (MIS_RESCUEBENNET == LOG_SUCCESS)))
{
return TRUE;
};
};
func void dia_bennet_wannasmithore_info()
{
AI_Output(other,self,"DIA_Bennet_WannaSmithORE_15_00"); //Научи меня ковать магическое оружие!
if(PLAYER_TALENT_SMITH[WEAPON_COMMON] == FALSE)
{
AI_Output(self,other,"DIA_Bennet_WannaSmithORE_06_01"); //Но ты даже не знаешь основ кузнечного дела.
AI_Output(self,other,"DIA_Bennet_WannaSmithORE_06_02"); //Сначала ты должен научиться ковать обычные мечи. А там посмотрим.
}
else if((other.guild != GIL_SLD) && (other.guild != GIL_DJG))
{
AI_Output(self,other,"DIA_Bennet_WannaSmithORE_06_03"); //Пока ты не один из нас, будь я проклят, если научу тебя секретам изготовления магического оружия.
AI_Output(self,other,"DIA_Bennet_WannaSmithORE_06_04"); //Только немногие кузнецы владеют этим искусством, и я думаю, даже кузнецы в городе ничего не знают об этом.
AI_Output(self,other,"DIA_Bennet_WannaSmithORE_06_05"); //И это хорошо. Иначе все эти пьяницы из городской стражи потрясали бы магическими мечами.
if(other.guild == GIL_MIL)
{
AI_Output(self,other,"DIA_Bennet_WannaSmithORE_06_06"); //Ничего личного. (ухмыляется) Против тебя я ничего не имею.
};
}
else if(MIS_BENNET_BRINGORE != LOG_SUCCESS)
{
AI_Output(self,other,"DIA_Bennet_WannaSmithORE_06_07"); //Если бы у меня была магическая руда, я бы, возможно, согласился.
AI_Output(other,self,"DIA_Bennet_WannaSmithORE_15_08"); //Ах, да ладно. Я с наемниками, и я знаю кузнечное дело. Что еще тебе нужно?
AI_Output(self,other,"DIA_Bennet_WannaSmithORE_06_09"); //Скажи мне, как интересно я должен ковать магическое оружие, не имея магической руды?
AI_Output(other,self,"DIA_Bennet_WannaSmithORE_15_10"); //Нууу...
AI_Output(self,other,"DIA_Bennet_WannaSmithORE_06_11"); //Вот что скажу. Мне нужно как минимум 5 кусков руды - или ты можешь забыть об этом.
if(MIS_BENNET_BRINGORE == FALSE)
{
MIS_BENNET_BRINGORE = LOG_RUNNING;
};
}
else
{
AI_Output(self,other,"DIA_Bennet_WannaSmithORE_06_12"); //Отлично, ты принес мне руду, и ты также знаешь, как куется обычный меч.
AI_Output(other,self,"DIA_Bennet_WannaSmithORE_15_13"); //Так давай же, обучай меня!
AI_Output(self,other,"DIA_Bennet_WannaSmithORE_06_14"); //Самое главное: не важно, целиком сделан твой меч, - из магической руды, или ты просто покрыл обычный меч ее тонким слоем. Поверхность - только это имеет значение.
AI_Output(self,other,"DIA_Bennet_WannaSmithORE_06_15"); //А так как эта чертова руда очень дорогая, просто берешь стальную заготовку и несколько кусков руды.
AI_Output(self,other,"DIA_Bennet_WannaSmithORE_06_16"); //Естественно, нельзя просто покрыть готовый меч магической рудой. Оружие нужно создавать с нуля.
AI_Output(self,other,"DIA_Bennet_WannaSmithORE_06_17"); //А все остальное зависит от оружия, которое ты хочешь получить.
BENNET_TEACHSMITH = TRUE;
};
};
instance DIA_BENNET_WHEREORE(C_INFO)
{
npc = sld_809_bennet;
nr = 8;
condition = dia_bennet_whereore_condition;
information = dia_bennet_whereore_info;
permanent = FALSE;
description = "Где мне найти магическую руду?";
};
func int dia_bennet_whereore_condition()
{
if((MIS_BENNET_BRINGORE == LOG_RUNNING) && ((KAPITEL != 3) || (MIS_RESCUEBENNET == LOG_SUCCESS)))
{
return TRUE;
};
};
func void dia_bennet_whereore_info()
{
AI_Output(other,self,"DIA_Bennet_WhereOre_15_00"); //Где мне найти магическую руду?
AI_Output(self,other,"DIA_Bennet_WhereOre_06_01"); //Эх, если бы я только знал это. Я думаю, в горнодобывающей колонии ты наверняка найдешь что-нибудь.
AI_Output(self,other,"DIA_Bennet_WhereOre_06_02"); //Но, может быть, тебе повезет и ты найдешь несколько мелких обломков где-нибудь здесь и сможешь слепить из них приличный кусок руды.
AI_Output(self,other,"DIA_Bennet_WhereOre_06_03"); //Насколько я знаю, в горах к югу отсюда есть заброшенные шахты. Попробуй попытать счастья там.
AI_Output(self,other,"DIA_Bennet_WhereOre_06_04"); //Но будь осторожен: я слышал, там устроили логово бандиты.
};
instance DIA_BENNET_BRINGORE(C_INFO)
{
npc = sld_809_bennet;
nr = 9;
condition = dia_bennet_bringore_condition;
information = dia_bennet_bringore_info;
permanent = FALSE;
description = "Вот, держи - (5 кусков руды).";
};
func int dia_bennet_bringore_condition()
{
if((MIS_BENNET_BRINGORE == LOG_RUNNING) && (Npc_HasItems(other,itmi_nugget) >= 5))
{
return TRUE;
};
};
func void dia_bennet_bringore_info()
{
AI_Output(other,self,"DIA_Bennet_BringOre_15_00"); //Вот держи.
AI_Output(self,other,"DIA_Bennet_BringOre_06_01"); //(смеется) Покажи!
b_giveinvitems(other,self,itmi_nugget,5);
AI_Output(self,other,"DIA_Bennet_BringOre_06_02"); //Да ты что! Я потрясен!
AI_Output(self,other,"DIA_Bennet_BringOre_06_03"); //Оставь себе два куска. Они тебе понадобятся, чтобы сделать твое собственное оружие.
b_giveinvitems(self,other,itmi_nugget,2);
MIS_BENNET_BRINGORE = LOG_SUCCESS;
};
var int bennet_kap2smith;
var int bennet_kap3smith;
var int bennet_kap4smith;
var int bennet_kap5smith;
func void b_saybennetlater()
{
AI_Output(self,other,"DIA_Bennet_GetInnosEye_06_04"); //Этого недостаточно. Заходи попозже.
};
instance DIA_BENNET_TEACHSMITH(C_INFO)
{
npc = sld_809_bennet;
nr = 30;
condition = dia_bennet_teachsmith_condition;
information = dia_bennet_teachsmith_info;
permanent = TRUE;
description = "Я хочу больше узнать о магическом оружии.";
};
func int dia_bennet_teachsmith_condition()
{
if((BENNET_TEACHSMITH == TRUE) && ((KAPITEL != 3) || (MIS_RESCUEBENNET == LOG_SUCCESS)))
{
return TRUE;
};
};
func void dia_bennet_teachsmith_info()
{
AI_Output(other,self,"DIA_Bennet_TeachSmith_15_00"); //Я хочу больше узнать о магическом оружии.
if(KAPITEL == 1)
{
b_saybennetlater();
}
else if((KAPITEL == 2) && (BENNET_KAP2SMITH == FALSE))
{
AI_Output(self,other,"DIA_Bennet_TeachSmith_06_01"); //Я могу научить тебя ковать магические мечи и даже двуручные клинки.
BENNET_KAP2SMITH = TRUE;
}
else if((KAPITEL == 3) && (MIS_READYFORCHAPTER4 == FALSE) && (BENNET_KAP3SMITH == FALSE))
{
AI_Output(self,other,"DIA_Bennet_TeachSmith_06_02"); //Я немного потренировался, и теперь я могу научить тебя, как ковать полуторные и тяжелые двуручные магические мечи.
BENNET_KAP3SMITH = TRUE;
}
else if((MIS_READYFORCHAPTER4 == TRUE) && (KAPITEL < 5) && (BENNET_KAP4SMITH == FALSE))
{
AI_Output(self,other,"DIA_Bennet_TeachSmith_06_03"); //Пока мне нечему учить тебя. Это лучшее, что я умею ковать сейчас.
BENNET_KAP4SMITH = TRUE;
}
else if((KAPITEL >= 5) && (BENNET_KAP5SMITH == FALSE))
{
AI_Output(self,other,"DIA_Bennet_TeachSmith_06_04"); //Послушай. На меня только что снизошло вдохновение. Магическое оружие, покрытое кровью дракона. И я точно знаю, как изготовить его!
AI_Output(self,other,"DIA_Bennet_TeachSmith_06_05"); //(ухмыляется) А ты хочешь узнать?
BENNET_KAP5SMITH = TRUE;
}
else
{
AI_Output(self,other,"DIA_Bennet_TeachSmith_06_06"); //Какое оружие ты хотел бы научиться делать?
};
Info_ClearChoices(dia_bennet_teachsmith);
Info_AddChoice(dia_bennet_teachsmith,DIALOG_BACK,dia_bennet_teachsmith_back);
if((PLAYER_TALENT_SMITH[WEAPON_1H_SPECIAL_01] == FALSE) && (KAPITEL >= 2))
{
Info_AddChoice(dia_bennet_teachsmith,b_buildlearnstring(NAME_ITMW_1H_SPECIAL_01,b_getlearncosttalent(other,NPC_TALENT_SMITH)),dia_bennet_teachsmith_1hspecial1);
};
if((PLAYER_TALENT_SMITH[WEAPON_2H_SPECIAL_01] == FALSE) && (KAPITEL >= 2))
{
Info_AddChoice(dia_bennet_teachsmith,b_buildlearnstring(NAME_ITMW_2H_SPECIAL_01,b_getlearncosttalent(other,NPC_TALENT_SMITH)),dia_bennet_teachsmith_2hspecial1);
};
if((PLAYER_TALENT_SMITH[WEAPON_1H_SPECIAL_02] == FALSE) && (KAPITEL >= 3))
{
Info_AddChoice(dia_bennet_teachsmith,b_buildlearnstring(NAME_ITMW_1H_SPECIAL_02,b_getlearncosttalent(other,NPC_TALENT_SMITH)),dia_bennet_teachsmith_1hspecial2);
};
if((PLAYER_TALENT_SMITH[WEAPON_2H_SPECIAL_02] == FALSE) && (KAPITEL >= 3))
{
Info_AddChoice(dia_bennet_teachsmith,b_buildlearnstring(NAME_ITMW_2H_SPECIAL_02,b_getlearncosttalent(other,NPC_TALENT_SMITH)),dia_bennet_teachsmith_2hspecial2);
};
if((PLAYER_TALENT_SMITH[WEAPON_1H_SPECIAL_03] == FALSE) && (KAPITEL >= 4))
{
Info_AddChoice(dia_bennet_teachsmith,b_buildlearnstring(NAME_ITMW_1H_SPECIAL_03,b_getlearncosttalent(other,NPC_TALENT_SMITH)),dia_bennet_teachsmith_1hspecial3);
};
if((PLAYER_TALENT_SMITH[WEAPON_2H_SPECIAL_03] == FALSE) && (KAPITEL >= 4))
{
Info_AddChoice(dia_bennet_teachsmith,b_buildlearnstring(NAME_ITMW_2H_SPECIAL_03,b_getlearncosttalent(other,NPC_TALENT_SMITH)),dia_bennet_teachsmith_2hspecial3);
};
if((PLAYER_TALENT_SMITH[WEAPON_1H_SPECIAL_04] == FALSE) && (KAPITEL >= 5))
{
Info_AddChoice(dia_bennet_teachsmith,b_buildlearnstring(NAME_ITMW_1H_SPECIAL_04,b_getlearncosttalent(other,NPC_TALENT_SMITH)),dia_bennet_teachsmith_1hspecial4);
};
if((PLAYER_TALENT_SMITH[WEAPON_2H_SPECIAL_04] == FALSE) && (KAPITEL >= 5))
{
Info_AddChoice(dia_bennet_teachsmith,b_buildlearnstring(NAME_ITMW_2H_SPECIAL_04,b_getlearncosttalent(other,NPC_TALENT_SMITH)),dia_bennet_teachsmith_2hspecial4);
};
};
func void dia_bennet_teachsmith_back()
{
Info_ClearChoices(dia_bennet_teachsmith);
};
func void dia_bennet_teachsmith_1hspecial1()
{
b_teachplayertalentsmith(self,other,WEAPON_1H_SPECIAL_01);
};
func void dia_bennet_teachsmith_2hspecial1()
{
b_teachplayertalentsmith(self,other,WEAPON_2H_SPECIAL_01);
};
func void dia_bennet_teachsmith_1hspecial2()
{
b_teachplayertalentsmith(self,other,WEAPON_1H_SPECIAL_02);
};
func void dia_bennet_teachsmith_2hspecial2()
{
b_teachplayertalentsmith(self,other,WEAPON_2H_SPECIAL_02);
};
func void dia_bennet_teachsmith_1hspecial3()
{
b_teachplayertalentsmith(self,other,WEAPON_1H_SPECIAL_03);
};
func void dia_bennet_teachsmith_2hspecial3()
{
b_teachplayertalentsmith(self,other,WEAPON_2H_SPECIAL_03);
};
func void dia_bennet_teachsmith_1hspecial4()
{
b_teachplayertalentsmith(self,other,WEAPON_1H_SPECIAL_04);
};
func void dia_bennet_teachsmith_2hspecial4()
{
b_teachplayertalentsmith(self,other,WEAPON_2H_SPECIAL_04);
};
instance DIA_BENNET_KAP3_EXIT(C_INFO)
{
npc = sld_809_bennet;
nr = 999;
condition = dia_bennet_kap3_exit_condition;
information = dia_bennet_kap3_exit_info;
permanent = TRUE;
description = DIALOG_ENDE;
};
func int dia_bennet_kap3_exit_condition()
{
if(KAPITEL == 3)
{
return TRUE;
};
};
func void dia_bennet_kap3_exit_info()
{
AI_StopProcessInfos(self);
};
instance DIA_BENNET_WHYPRISON(C_INFO)
{
npc = sld_809_bennet;
nr = 8;
condition = dia_bennet_whyprison_condition;
information = dia_bennet_whyprison_info;
permanent = FALSE;
description = "Как ты попал за решетку?";
};
func int dia_bennet_whyprison_condition()
{
if((KAPITEL == 3) && (MIS_RESCUEBENNET != LOG_SUCCESS))
{
return TRUE;
};
};
func void dia_bennet_whyprison_info()
{
AI_Output(other,self,"DIA_Bennet_WhyPrison_15_00"); //Как ты попал за решетку?
AI_Output(self,other,"DIA_Bennet_WhyPrison_06_01"); //Эти свиньи схватили меня и бросили сюда. Говорят, что я убил паладина.
AI_Output(self,other,"DIA_Bennet_WhyPrison_06_02"); //Но я не делал этого, они хотят оклеветать меня.
AI_Output(other,self,"DIA_Bennet_WhyPrison_15_03"); //Зачем бы им это?
AI_Output(self,other,"DIA_Bennet_WhyPrison_06_04"); //Откуда мне знать? Ты должен вытащить меня отсюда.
AI_Output(self,other,"DIA_Bennet_WhyPrison_06_05"); //Поговори с лордом Хагеном, проломи стену... ну, я не знаю... сделай же что-нибудь!
MIS_RESCUEBENNET = LOG_RUNNING;
Log_CreateTopic(TOPIC_RESCUEBENNET,LOG_MISSION);
Log_SetTopicStatus(TOPIC_RESCUEBENNET,LOG_RUNNING);
b_logentry(TOPIC_RESCUEBENNET,"У Беннета серьезные проблемы. Он на все готов, чтобы только вырваться из тюрьмы.");
};
instance DIA_BENNET_WHATHAPPENED(C_INFO)
{
npc = sld_809_bennet;
nr = 8;
condition = dia_bennet_whathappened_condition;
information = dia_bennet_whathappened_info;
permanent = FALSE;
description = "Что произошло?";
};
func int dia_bennet_whathappened_condition()
{
if((MIS_RESCUEBENNET == LOG_RUNNING) && Npc_KnowsInfo(other,dia_bennet_whyprison))
{
return TRUE;
};
};
func void dia_bennet_whathappened_info()
{
AI_Output(other,self,"DIA_Bennet_WhatHappened_15_00"); //Что произошло?
AI_Output(self,other,"DIA_Bennet_WhatHappened_06_01"); //Я пошел в нижнюю часть города с Ходжесом, чтобы купить кое-что для наших парней.
AI_Output(self,other,"DIA_Bennet_WhatHappened_06_02"); //Неожиданно мы услышали громкий крик и звук топот убегающих ног.
AI_Output(other,self,"DIA_Bennet_WhatHappened_15_03"); //Давай к делу.
AI_Output(self,other,"DIA_Bennet_WhatHappened_06_04"); //Мы сразу поняли - что-то случилось, и нас тут же схватят, если застанут там.
AI_Output(self,other,"DIA_Bennet_WhatHappened_06_05"); //И мы побежали. А затем, когда до городских ворот оставалось уже совсем немного, я споткнулся и повредил колено.
AI_Output(self,other,"DIA_Bennet_WhatHappened_06_06"); //А дальше все просто. Стражники тут же накинулись на меня и бросили за решетку.
};
instance DIA_BENNET_VICTIM(C_INFO)
{
npc = sld_809_bennet;
nr = 8;
condition = dia_bennet_victim_condition;
information = dia_bennet_victim_info;
permanent = FALSE;
description = "Кто был убит?";
};
func int dia_bennet_victim_condition()
{
if((MIS_RESCUEBENNET == LOG_RUNNING) && Npc_KnowsInfo(other,dia_bennet_whyprison))
{
return TRUE;
};
};
func void dia_bennet_victim_info()
{
AI_Output(other,self,"DIA_Bennet_Victim_15_00"); //Кто был убит?
AI_Output(self,other,"DIA_Bennet_Victim_06_01"); //Понятия не имею - один из паладинов, я не знаю, кто.
AI_Output(other,self,"DIA_Bennet_Victim_15_02"); //Ты знаешь имя?
AI_Output(self,other,"DIA_Bennet_Victim_06_03"); //Какой-то Лотар, по-моему. Ну, я не знаю, я не уверен.
AI_Output(self,other,"DIA_Bennet_Victim_06_04"); //Тебе лучше спросить лорда Хагена, ему известны все детали.
b_logentry(TOPIC_RESCUEBENNET,"Лотар, один из паладинов, был убит. Лорд Хаген, возможно, сможет рассказать мне подробнее об этом деле, ведь именно он ведет расследование.");
};
instance DIA_BENNET_EVIDENCE(C_INFO)
{
npc = sld_809_bennet;
nr = 8;
condition = dia_bennet_evidence_condition;
information = dia_bennet_evidence_info;
permanent = FALSE;
description = "У них есть доказательства против тебя?";
};
func int dia_bennet_evidence_condition()
{
if((MIS_RESCUEBENNET == LOG_RUNNING) && Npc_KnowsInfo(other,dia_bennet_whyprison))
{
return TRUE;
};
};
func void dia_bennet_evidence_info()
{
AI_Output(other,self,"DIA_Bennet_Evidence_15_00"); //У них есть доказательства против тебя?
AI_Output(self,other,"DIA_Bennet_Evidence_06_01"); //Говорят, есть свидетель, который опознал меня.
AI_Output(other,self,"DIA_Bennet_Evidence_15_02"); //Ты знаешь, кто этот свидетель?
AI_Output(self,other,"DIA_Bennet_Evidence_06_03"); //Нет. Я знаю только, что он лжет.
b_logentry(TOPIC_RESCUEBENNET,"Есть свидетель, утверждающий, что видел, как это сделал Беннет. Я должен найти этого свидетеля, если я хочу выяснить правду.");
RESCUEBENNET_KNOWSWITNESS = TRUE;
};
instance DIA_BENNET_INVESTIGATION(C_INFO)
{
npc = sld_809_bennet;
nr = 8;
condition = dia_bennet_investigation_condition;
information = dia_bennet_investigation_info;
permanent = FALSE;
description = "Кто ведет расследование?";
};
func int dia_bennet_investigation_condition()
{
if((MIS_RESCUEBENNET == LOG_RUNNING) && Npc_KnowsInfo(other,dia_bennet_evidence))
{
return TRUE;
};
};
func void dia_bennet_investigation_info()
{
AI_Output(other,self,"DIA_Bennet_Investigation_15_00"); //Кто ведет расследование?
AI_Output(self,other,"DIA_Bennet_Investigation_06_01"); //Сам лорд Хаген. Так как был убит один из паладинов, это дело подпадает под закон о военном положении.
AI_Output(other,self,"DIA_Bennet_Investigation_15_02"); //Что это означает?
AI_Output(self,other,"DIA_Bennet_Investigation_06_03"); //Это легко предположить. Если меня не вытащить отсюда, то я буду повешен без долгих разговоров.
AI_Output(self,other,"DIA_Bennet_Investigation_06_04"); //Ты должен помочь мне, или начнется война. Ли не отставит это просто так.
AI_Output(self,other,"DIA_Bennet_Investigation_06_05"); //Ты сам понимаешь, что это значит.
};
instance DIA_BENNET_THANKYOU(C_INFO)
{
npc = sld_809_bennet;
nr = 8;
condition = dia_bennet_thankyou_condition;
information = dia_bennet_thankyou_info;
permanent = FALSE;
important = TRUE;
};
func int dia_bennet_thankyou_condition()
{
if(MIS_RESCUEBENNET == LOG_SUCCESS)
{
return TRUE;
};
};
func void dia_bennet_thankyou_info()
{
if(hero.guild == GIL_SLD)
{
other.guild = GIL_DJG;
Npc_SetTrueGuild(other,GIL_DJG);
};
AI_Output(self,other,"DIA_Bennet_ThankYou_06_00"); //Ох, а я уж думал, что меня наверняка повесят!
AI_Output(other,self,"DIA_Bennet_ThankYou_15_01"); //Что ж, в конце концов, все окончилось хорошо.
AI_Output(self,other,"DIA_Bennet_ThankYou_06_02"); //Да уж. Ты бы видел выражение лица солдата, который выпускал меня!
AI_Output(self,other,"DIA_Bennet_ThankYou_06_03"); //(смеется) Он был так напуган, что чуть не наложил в штаны.
AI_Output(self,other,"DIA_Bennet_ThankYou_06_04"); //Да, чуть не забыл. У меня есть кое-что для тебя.
AI_Output(other,self,"DIA_Bennet_ThankYou_15_05"); //Что ты имеешь в виду?
AI_Output(self,other,"DIA_Bennet_ThankYou_06_06"); //(ухмыляется) Презент.
};
instance DIA_BENNET_PRESENT(C_INFO)
{
npc = sld_809_bennet;
nr = 8;
condition = dia_bennet_present_condition;
information = dia_bennet_present_info;
permanent = FALSE;
description = "Какой презент?";
};
func int dia_bennet_present_condition()
{
if(Npc_KnowsInfo(other,dia_bennet_thankyou))
{
return TRUE;
};
};
func void dia_bennet_present_info()
{
AI_Output(other,self,"DIA_Bennet_Present_15_00"); //Какой презент?
AI_Output(self,other,"DIA_Bennet_Present_06_01"); //Мы все слышали о драконах, которые вроде бы появились в Долине.
AI_Output(other,self,"DIA_Bennet_Present_15_02"); //Они действительно там!
AI_Output(self,other,"DIA_Bennet_Present_06_03"); //Хорошо, я верю тебе.
if(hero.guild == GIL_DJG)
{
AI_Output(self,other,"DIA_Bennet_Present_06_04"); //Как бы там ни было, некоторые из парней решили отправиться в Долину.
AI_Output(self,other,"DIA_Bennet_Present_06_05"); //(ухмыляется) Они собираются навести там порядок.
AI_Output(other,self,"DIA_Bennet_Present_15_06"); //А какое это имеет отношение ко мне?
AI_Output(self,other,"DIA_Bennet_Present_06_07"); //(гордо) Я разработал новый тип доспехов. Доспехи охотника на драконов!
AI_Output(self,other,"DIA_Bennet_Present_06_08"); //Они прочнее и легче, чем традиционные доспехи.
AI_Output(self,other,"DIA_Bennet_Present_06_09"); //Так как ты спас меня, я хочу, чтобы ты получил первый экземпляр. Это подарок!
CreateInvItems(self,itar_djg_l,1);
b_giveinvitems(self,other,itar_djg_l,1);
AI_Output(self,other,"DIA_Bennet_Present_06_10"); //Я подумал, что, возможно, тебе тоже захочется позабавиться там. Тебе понадобится хорошее снаряжение, когда ты отправишься в эту долину.
AI_Output(self,other,"DIA_Bennet_Present_06_11"); //Также, мне интересны драконьи чешуйки. Настоящие драконьи чешуйки. Я хорошо заплачу тебе за них.
AI_Output(other,self,"DIA_Bennet_Present_15_12"); //Сколько я получу за чешуйку?
b_say_gold(self,other,VALUE_DRAGONSCALE);
}
else
{
AI_Output(self,other,"DIA_Bennet_Present_06_13"); //Ладно, я думаю, ты наверняка захочешь поучаствовать в готовящейся охоте на драконов.
AI_Output(other,self,"DIA_Bennet_Present_15_14"); //И?
AI_Output(self,other,"DIA_Bennet_Present_06_15"); //Вот, возьми этот амулет. Тебе он нужнее, чем мне.
CreateInvItems(self,itam_hp_01,1);
b_giveinvitems(self,other,itam_hp_01,1);
};
};
var int bennet_dragonscale_counter;
var int show_djg_armor_m;
instance DIA_BENNET_DRAGONSCALE(C_INFO)
{
npc = sld_809_bennet;
nr = 8;
condition = dia_bennet_dragonscale_condition;
information = dia_bennet_dragonscale_info;
permanent = TRUE;
description = "Я принес тебе несколько драконьих чешуек.";
};
func int dia_bennet_dragonscale_condition()
{
if((Npc_HasItems(other,itat_dragonscale) > 0) && (hero.guild == GIL_DJG))
{
return TRUE;
};
};
func void dia_bennet_dragonscale_info()
{
AI_Output(other,self,"DIA_Bennet_DragonScale_15_00"); //Я принес тебе несколько драконьих чешуек.
AI_Output(self,other,"DIA_Bennet_DragonScale_06_01"); //Настоящая чешуя дракона!
AI_Output(self,other,"DIA_Bennet_DragonScale_06_02"); //Вот твое золото!
BENNET_DRAGONSCALE_COUNTER = BENNET_DRAGONSCALE_COUNTER + Npc_HasItems(other,itat_dragonscale);
b_giveinvitems(self,other,itmi_gold,Npc_HasItems(other,itat_dragonscale) * VALUE_DRAGONSCALE);
b_giveinvitems(other,self,itat_dragonscale,Npc_HasItems(other,itat_dragonscale));
if((BENNET_DRAGONSCALE_COUNTER >= 20) && (SHOW_DJG_ARMOR_M == FALSE))
{
AI_Output(self,other,"DIA_Bennet_DragonScale_06_03"); //Хорошо, этого должно быть достаточно. Я могу продать тебе новые, улучшенные доспехи, если, конечно, тебе это интересно.
SHOW_DJG_ARMOR_M = TRUE;
};
};
var int bennet_dia_bennet_djg_armor_m_permanent;
instance DIA_BENNET_DJG_ARMOR_M(C_INFO)
{
npc = sld_809_bennet;
nr = 8;
condition = dia_bennet_djg_armor_m_condition;
information = dia_bennet_djg_armor_m_info;
permanent = TRUE;
description = "Средние доспехи охотника на драконов: Защита: оружие 80, стрелы 80. (12000 золота)";
};
func int dia_bennet_djg_armor_m_condition()
{
if((BENNET_DIA_BENNET_DJG_ARMOR_M_PERMANENT == FALSE) && (hero.guild == GIL_DJG) && (SHOW_DJG_ARMOR_M == TRUE))
{
return TRUE;
};
};
func void dia_bennet_djg_armor_m_info()
{
AI_Output(other,self,"DIA_Bennet_DJG_ARMOR_M_15_00"); //Я хочу купить доспехи.
if(Npc_HasItems(other,itmi_gold) >= 12000)
{
AI_Output(self,other,"DIA_Bennet_DJG_ARMOR_M_06_01"); //Очень хорошо. Уверен, они тебя не разочаруют.
AI_Output(other,self,"DIA_Bennet_DJG_ARMOR_M_15_02"); //Да уж, за такую-то цену...
AI_Output(self,other,"DIA_Bennet_DJG_ARMOR_M_06_03"); //Ты проймешь, что они стоят этих денег.
b_giveinvitems(other,self,itmi_gold,12000);
CreateInvItems(self,itar_djg_m,1);
b_giveinvitems(self,other,itar_djg_m,1);
BENNET_DIA_BENNET_DJG_ARMOR_M_PERMANENT = TRUE;
}
else
{
AI_Output(self,other,"DIA_Bennet_DJG_ARMOR_M_06_04"); //У тебя недостаточно золота.
};
};
instance DIA_BENNET_BETTERARMOR(C_INFO)
{
npc = sld_809_bennet;
nr = 8;
condition = dia_bennet_betterarmor_condition;
information = dia_bennet_betterarmor_info;
permanent = FALSE;
description = "Я знаю, как можно еще улучшить доспехи.";
};
func int dia_bennet_betterarmor_condition()
{
if((PLAYERGETSFINALDJGARMOR == TRUE) && (hero.guild == GIL_DJG))
{
return TRUE;
};
};
func void dia_bennet_betterarmor_info()
{
AI_Output(other,self,"DIA_Bennet_BetterArmor_15_00"); //Я знаю, как можно еще улучшить доспехи.
AI_Output(self,other,"DIA_Bennet_BetterArmor_06_01"); //(ухмыляется про себя) Ну расскажи мне.
AI_Output(other,self,"DIA_Bennet_BetterArmor_15_02"); //Можно покрыть драконьи чешуйки магической рудой.
AI_Output(self,other,"DIA_Bennet_BetterArmor_06_03"); //(смеется) Эта мысль приходила и ко мне. Да, ты прав.
AI_Output(self,other,"DIA_Bennet_BetterArmor_06_04"); //Мои новые доспехи превосходят все, что ты когда-либо видел. Они очень легкие и очень прочные.
AI_Output(self,other,"DIA_Bennet_BetterArmor_06_05"); //Они СОВЕРШЕННЫ.
AI_Output(self,other,"DIA_Bennet_BetterArmor_06_06"); //Ты можешь купить их, если хочешь. Я не предложил бы их абы кому, а цена только-только покрывает стоимость производства.
};
var int bennet_dia_bennet_djg_armor_h_permanent;
instance DIA_BENNET_DJG_ARMOR_H(C_INFO)
{
npc = sld_809_bennet;
nr = 8;
condition = dia_bennet_djg_armor_h_condition;
information = dia_bennet_djg_armor_h_info;
permanent = TRUE;
description = "Тяжелые доспехи охотника на драконов: Защита: оружие 90, стрелы 90. (20000 золота)";
};
func int dia_bennet_djg_armor_h_condition()
{
if((BENNET_DIA_BENNET_DJG_ARMOR_H_PERMANENT == FALSE) && (hero.guild == GIL_DJG) && Npc_KnowsInfo(other,dia_bennet_betterarmor))
{
return TRUE;
};
};
func void dia_bennet_djg_armor_h_info()
{
AI_Output(other,self,"DIA_Bennet_DJG_ARMOR_H_15_00"); //Дай мне доспехи.
if(Npc_HasItems(other,itmi_gold) >= 20000)
{
AI_Output(self,other,"DIA_Bennet_DJG_ARMOR_H_06_01"); //Это лучшие доспехи из того, что я когда-либо делал.
AI_Output(self,other,"DIA_Bennet_DJG_ARMOR_H_06_02"); //Настоящее произведение искусства.
b_giveinvitems(other,self,itmi_gold,20000);
CreateInvItems(self,itar_djg_h,1);
b_giveinvitems(self,other,itar_djg_h,1);
BENNET_DIA_BENNET_DJG_ARMOR_H_PERMANENT = TRUE;
}
else
{
AI_Output(self,other,"DIA_Bennet_DJG_ARMOR_H_06_03"); //У тебя недостаточно золота.
};
};
instance DIA_BENNET_REPAIRNECKLACE(C_INFO)
{
npc = sld_809_bennet;
nr = 8;
condition = dia_bennet_repairnecklace_condition;
information = dia_bennet_repairnecklace_info;
permanent = FALSE;
description = "Ты можешь ремонтировать ювелирные изделия?";
};
func int dia_bennet_repairnecklace_condition()
{
if((MIS_BENNET_INNOSEYEREPAIREDSETTING != LOG_SUCCESS) && (Npc_HasItems(other,itmi_innoseye_broken_mis) || (MIS_SCKNOWSINNOSEYEISBROKEN == TRUE)))
{
return TRUE;
};
};
func void dia_bennet_repairnecklace_info()
{
AI_Output(other,self,"DIA_Bennet_RepairNecklace_15_00"); //Ты можешь ремонтировать ювелирные изделия?
AI_Output(self,other,"DIA_Bennet_RepairNecklace_06_01"); //Может быть. Ты должен сначала показать мне их.
if(MIS_RESCUEBENNET != LOG_SUCCESS)
{
AI_Output(self,other,"DIA_Bennet_RepairNecklace_06_02"); //Также мне сначала нужно выбраться отсюда.
AI_Output(self,other,"DIA_Bennet_RepairNecklace_06_03"); //Без этого я не смогу ничего сделать, это очевидно.
};
MIS_SCKNOWSINNOSEYEISBROKEN = TRUE;
};
instance DIA_BENNET_SHOWINNOSEYE(C_INFO)
{
npc = sld_809_bennet;
nr = 8;
condition = dia_bennet_showinnoseye_condition;
information = dia_bennet_showinnoseye_info;
permanent = FALSE;
description = "Ты можешь взглянуть на этот амулет?";
};
func int dia_bennet_showinnoseye_condition()
{
if(Npc_HasItems(other,itmi_innoseye_broken_mis) && (MIS_BENNET_INNOSEYEREPAIREDSETTING != LOG_SUCCESS))
{
return TRUE;
};
};
func void dia_bennet_showinnoseye_info()
{
AI_Output(other,self,"DIA_Bennet_ShowInnosEye_15_00"); //Ты можешь взглянуть на этот амулет?
AI_Output(self,other,"DIA_Bennet_ShowInnosEye_06_01"); //Конечно, давай посмотрим.
AI_PrintScreen(Print_InnoseyeGiven,-1,YPOS_ItemGiven,FONT_ScreenSmall,2);
AI_Output(self,other,"DIA_Bennet_ShowInnosEye_06_02"); //Хммм, превосходная работа. Оправа сломана. Но, думаю, впрочем, я смогу починить ее.
AI_Output(other,self,"DIA_Bennet_ShowInnosEye_15_03"); //Сколько это займет времени?
if(MIS_RESCUEBENNET != LOG_SUCCESS)
{
AI_Output(self,other,"DIA_Bennet_ShowInnosEye_06_04"); //Ну, я застрял здесь пока. Или ты где-то здесь видишь кузницу?
AI_Output(self,other,"DIA_Bennet_ShowInnosEye_06_05"); //Если бы я был в своей кузнице, я мог бы сделать это за один день. Но, конечно же, сначала мне нужно выбраться отсюда.
}
else
{
AI_Output(self,other,"DIA_Bennet_ShowInnosEye_06_06"); //Если ты оставишь его мне, к завтрашнему утру он будет как новенький.
AI_Output(self,other,"DIA_Bennet_ShowInnosEye_06_07"); //И я даже не возьму с тебя денег за эту работу. Ведь это ты вытащил меня из тюрьмы.
};
AI_PrintScreen(Print_InnosEyeGet,-1,YPOS_ItemTaken,FONT_ScreenSmall,2);
b_logentry(TOPIC_INNOSEYE,"Беннет - кузнец, который нужен мне, чтобы починить амулет.");
MIS_SCKNOWSINNOSEYEISBROKEN = TRUE;
};
instance DIA_BENNET_GIVEINNOSEYE(C_INFO)
{
npc = sld_809_bennet;
nr = 8;
condition = dia_bennet_giveinnoseye_condition;
information = dia_bennet_giveinnoseye_info;
permanent = FALSE;
description = "Вот амулет, пожалуйста, почини его.";
};
func int dia_bennet_giveinnoseye_condition()
{
if((Npc_HasItems(other,itmi_innoseye_broken_mis) >= 1) && (MIS_SCKNOWSINNOSEYEISBROKEN == TRUE) && (MIS_RESCUEBENNET == LOG_SUCCESS) && (MIS_BENNET_INNOSEYEREPAIREDSETTING != LOG_SUCCESS))
{
return TRUE;
};
};
func void dia_bennet_giveinnoseye_info()
{
AI_Output(other,self,"DIA_Bennet_GiveInnosEye_15_00"); //Вот амулет, пожалуйста, почини его.
AI_Output(self,other,"DIA_Bennet_GiveInnosEye_06_01"); //Хорошо. Я закончу работу к завтрашнему утру.
AI_Output(self,other,"DIA_Bennet_GiveInnosEye_06_02"); //Заходи завтра, и заберешь его.
Npc_RemoveInvItems(other,itmi_innoseye_broken_mis,1);
AI_PrintScreen(PRINT_INNOSEYEGIVEN,-1,YPOS_ITEMGIVEN,FONT_SCREENSMALL,2);
BENNET_REPAIRDAY = Wld_GetDay();
};
instance DIA_BENNET_GETINNOSEYE(C_INFO)
{
npc = sld_809_bennet;
nr = 8;
condition = dia_bennet_getinnoseye_condition;
information = dia_bennet_getinnoseye_info;
permanent = TRUE;
description = "Амулет готов?";
};
func int dia_bennet_getinnoseye_condition()
{
if(Npc_KnowsInfo(other,dia_bennet_giveinnoseye) && (MIS_BENNET_INNOSEYEREPAIREDSETTING != LOG_SUCCESS))
{
return TRUE;
};
};
func void dia_bennet_getinnoseye_info()
{
AI_Output(other,self,"DIA_Bennet_GetInnosEye_15_00"); //Амулет готов?
if(BENNET_REPAIRDAY < Wld_GetDay())
{
AI_Output(self,other,"DIA_Bennet_GetInnosEye_06_01"); //Да, держи.
TEXT_INNOSEYE_SETTING = TEXT_INNOSEYE_SETTING_REPAIRED;
CreateInvItems(other,itmi_innoseye_broken_mis,1);
AI_PrintScreen(PRINT_INNOSEYEGET,-1,YPOS_ITEMGIVEN,FONT_SCREENSMALL,2);
AI_Output(self,other,"DIA_Bennet_GetInnosEye_06_02"); //Мне пришлось сделать новую оправу для камня.
AI_Output(self,other,"DIA_Bennet_GetInnosEye_06_03"); //Я работал всю ночь, и теперь он как новенький.
b_logentry(TOPIC_INNOSEYE,"Амулет опять как новенький. Беннет проделал отличную работу.");
MIS_BENNET_INNOSEYEREPAIREDSETTING = LOG_SUCCESS;
b_giveplayerxp(XP_INNOSEYEISREPAIRED);
}
else
{
b_saybennetlater();
AI_Output(self,other,"DIA_Bennet_GetInnosEye_06_05"); //Если ты будешь продолжать мешать мне, это только задержит работу.
AI_StopProcessInfos(self);
};
};
instance DIA_BENNET_KAP4_EXIT(C_INFO)
{
npc = sld_809_bennet;
nr = 999;
condition = dia_bennet_kap4_exit_condition;
information = dia_bennet_kap4_exit_info;
permanent = TRUE;
description = DIALOG_ENDE;
};
func int dia_bennet_kap4_exit_condition()
{
if(KAPITEL == 4)
{
return TRUE;
};
};
func void dia_bennet_kap4_exit_info()
{
AI_StopProcessInfos(self);
};
instance DIA_BENNET_DRACHENEIER(C_INFO)
{
npc = sld_809_bennet;
nr = 5;
condition = dia_bennet_dracheneier_condition;
information = dia_bennet_dracheneier_info;
permanent = TRUE;
description = "Ты можешь что-нибудь сделать с драконьими яйцами?";
};
func int dia_bennet_dracheneier_condition()
{
if((KAPITEL >= 4) && (BENNETSDRAGONEGGOFFER == 0) && (Npc_HasItems(other,itat_dragonegg_mis) >= 1) && (hero.guild == GIL_DJG))
{
return TRUE;
};
};
var int bennetsdragoneggoffer;
var int dracheneier_angebotenxp_onetime;
func void dia_bennet_dracheneier_info()
{
AI_Output(other,self,"DIA_Bennet_DRACHENEIER_15_00"); //Ты можешь что-нибудь сделать с драконьими яйцами?
if(DRACHENEIER_ANGEBOTENXP_ONETIME == FALSE)
{
AI_Output(self,other,"DIA_Bennet_DRACHENEIER_06_01"); //Драконьи яйца? Где, черт возьми, тебе удалось добыть их?
AI_Output(other,self,"DIA_Bennet_DRACHENEIER_15_02"); //Я забрал их у людей-ящеров.
AI_Output(self,other,"DIA_Bennet_DRACHENEIER_06_03"); //Давай посмотрим.
};
Npc_RemoveInvItems(other,itat_dragonegg_mis,1);
AI_PrintScreen("Яйцо отдано",-1,YPOS_ITEMGIVEN,FONT_SCREENSMALL,2);
if(DRACHENEIER_ANGEBOTENXP_ONETIME == FALSE)
{
AI_Output(self,other,"DIA_Bennet_DRACHENEIER_06_04"); //Ммм. Очень твердый материал. Идеально подходит для доспехов. Если только удастся открыть их.
AI_Output(other,self,"DIA_Bennet_DRACHENEIER_15_05"); //Ну и как? Они нужны тебе?
AI_Output(self,other,"DIA_Bennet_DRACHENEIER_06_06"); //Конечно! Давай сюда.
}
else
{
AI_Output(self,other,"DIA_Bennet_DRACHENEIER_06_07"); //Ну и сколько еще ты собираешься вертеть их у меня перед носом? Ты продашь их или нет?
};
AI_Output(self,other,"DIA_Bennet_DRACHENEIER_06_08"); //Я заплачу тебе, ммм, скажем, 300 золотых за каждое яйцо, что ты принесешь мне.
Info_ClearChoices(dia_bennet_dracheneier);
Info_AddChoice(dia_bennet_dracheneier,"Тогда можешь оставить золото себе. Я пока попридержу эти яйца.",dia_bennet_dracheneier_nein);
Info_AddChoice(dia_bennet_dracheneier,"Это яйца дракона, а не какие-нибудь куриные.",dia_bennet_dracheneier_mehr);
Info_AddChoice(dia_bennet_dracheneier,"Договорились.",dia_bennet_dracheneier_ok);
if(DRACHENEIER_ANGEBOTENXP_ONETIME == FALSE)
{
b_logentry(TOPIC_DRACHENEIER,"Беннет готов дать за драконьи яйца, которые найду, хорошую цену.");
b_giveplayerxp(XP_DJG_BRINGDRAGONEGG);
DRACHENEIER_ANGEBOTENXP_ONETIME = TRUE;
};
};
func void dia_bennet_dracheneier_ok()
{
AI_Output(other,self,"DIA_Bennet_DRACHENEIER_ok_15_00"); //Договорились.
AI_Output(self,other,"DIA_Bennet_DRACHENEIER_ok_06_01"); //Отлично.
AI_Output(self,other,"DIA_Bennet_DRACHENEIER_ok_06_02"); //Если найдешь еще, неси их сюда.
if(BENNETSDRAGONEGGOFFER != 350)
{
BENNETSDRAGONEGGOFFER = 300;
};
CreateInvItems(self,itmi_gold,BENNETSDRAGONEGGOFFER);
b_giveinvitems(self,other,itmi_gold,BENNETSDRAGONEGGOFFER);
AI_Output(self,other,"DIA_Bennet_DRACHENEIER_ok_06_03"); //Эээ. Ты сказал, что забрал их у людей-ящеров?
AI_Output(other,self,"DIA_Bennet_DRACHENEIER_ok_15_04"); //Точно.
AI_Output(self,other,"DIA_Bennet_DRACHENEIER_ok_06_05"); //Насколько я знаю, люди-ящеры обычно обитают в пещерах.
AI_Output(self,other,"DIA_Bennet_DRACHENEIER_ok_06_06"); //Я не удивлюсь, если тебе удастся найти еще яйца в пещерах неподалеку.
b_logentry(TOPIC_DRACHENEIER,"Беннет полагает, что мне стоит поискать яйца в пещерах Хориниса. Во многих из них, по слухам, видели человекоящеров.");
if(!Npc_HasItems(other,itwr_map_caves_mis))
{
if(!Npc_IsDead(Brahim))
{
AI_Output(self,other,"DIA_Bennet_DRACHENEIER_ok_06_08"); //Но сначала ты должен взять карту пещер у картографа в городе. Будет жаль, если ты найдешь не все яйца.
b_logentry(TOPIC_DRACHENEIER,"Я должен купить карту пещер у картографа в городе, чтобы быть уверенным, что я не пропущу часть яиц.");
}
else
{
AI_Output(self,other,"DIA_Bennet_DRACHENEIER_ok_06_07"); //Вот. Возьми эту карту. Она поможет тебе найти пещеры.
CreateInvItems(self,itwr_map_caves_mis,1);
b_giveinvitems(self,other,itwr_map_caves_mis,1);
b_logentry(TOPIC_DRACHENEIER,"Он дал мне карту пещер, возможно, она поможет мне.");
};
};
Info_ClearChoices(dia_bennet_dracheneier);
};
func void dia_bennet_dracheneier_mehr()
{
AI_Output(other,self,"DIA_Bennet_DRACHENEIER_mehr_15_00"); //Это яйца дракона, а не какие-нибудь куриные.
AI_Output(self,other,"DIA_Bennet_DRACHENEIER_mehr_06_01"); //(сердито) Хорошо. 350 и точка. Я не могу дать тебе больше - иначе это дело не окупится.
BENNETSDRAGONEGGOFFER = 350;
};
func void dia_bennet_dracheneier_nein()
{
AI_Output(other,self,"DIA_Bennet_DRACHENEIER_nein_15_00"); //Тогда можешь оставить золото себе. Я пока попридержу эти яйца.
AI_Output(self,other,"DIA_Bennet_DRACHENEIER_nein_06_01"); //Дай мне знать, если передумаешь.
CreateInvItems(other,itat_dragonegg_mis,1);
AI_PrintScreen("Яйцо получено",-1,YPOS_ITEMTAKEN,FONT_SCREENSMALL,2);
BENNETSDRAGONEGGOFFER = 0;
Info_ClearChoices(dia_bennet_dracheneier);
};
instance DIA_BENNET_EIERBRINGEN(C_INFO)
{
npc = sld_809_bennet;
nr = 5;
condition = dia_bennet_eierbringen_condition;
information = dia_bennet_eierbringen_info;
permanent = TRUE;
description = "Нужны еще драконьи яйца?";
};
func int dia_bennet_eierbringen_condition()
{
if((BENNETSDRAGONEGGOFFER > 0) && (KAPITEL >= 4) && (Npc_HasItems(other,itat_dragonegg_mis) >= 1) && (hero.guild == GIL_DJG))
{
return TRUE;
};
};
var int dragoneggcounter;
func void dia_bennet_eierbringen_info()
{
var int dragoneggcount;
var int xp_djg_bringdragoneggs;
var int dragonegggeld;
var string concattext;
AI_Output(other,self,"DIA_Bennet_EierBringen_15_00"); //Нужны еще драконьи яйца?
AI_Output(self,other,"DIA_Bennet_EierBringen_06_01"); //Конечно!
dragoneggcount = Npc_HasItems(other,itat_dragonegg_mis);
if(dragoneggcount == 1)
{
AI_Output(other,self,"DIA_Bennet_EierBringen_15_02"); //Вот. Я принес еще одно.
b_giveplayerxp(XP_DJG_BRINGDRAGONEGG);
Npc_RemoveInvItems(other,itat_dragonegg_mis,1);
AI_PrintScreen("Яйцо отдано",-1,YPOS_ITEMGIVEN,FONT_SCREENSMALL,2);
DRAGONEGGCOUNTER = DRAGONEGGCOUNTER + 1;
}
else
{
AI_Output(other,self,"DIA_Bennet_EierBringen_15_03"); //Я принес еще несколько.
Npc_RemoveInvItems(other,itat_dragonegg_mis,dragoneggcount);
concattext = ConcatStrings(IntToString(dragoneggcount),PRINT_ITEMSGEGEBEN);
AI_PrintScreen(concattext,-1,YPOS_ITEMGIVEN,FONT_SCREENSMALL,2);
xp_djg_bringdragoneggs = dragoneggcount * XP_DJG_BRINGDRAGONEGG;
DRAGONEGGCOUNTER = DRAGONEGGCOUNTER + dragoneggcount;
b_giveplayerxp(xp_djg_bringdragoneggs);
};
if(DRAGONEGGCOUNTER <= 7)
{
AI_Output(self,other,"DIA_Bennet_EierBringen_06_04"); //Отлично. Давай сюда. Ты везде посмотрел, а? Наверняка где-то должны быть еще.
}
else if(DRAGONEGGCOUNTER <= 11)
{
AI_Output(self,other,"DIA_Bennet_EierBringen_06_05"); //Где ты раскопал их? Вряд ли где-нибудь еще остались эти яйца.
}
else
{
AI_Output(self,other,"DIA_Bennet_EierBringen_06_06"); //Я не думаю, что ты найдешь еще яйца. К тому же, мне и этих достаточно. Я даже не знаю, что я буду делать со всеми ними.
TOPIC_END_DRACHENEIER = TRUE;
b_checklog();
};
AI_Output(self,other,"DIA_Bennet_EierBringen_06_07"); //Ох, хорошо. Вот твои деньги.
dragonegggeld = dragoneggcount * BENNETSDRAGONEGGOFFER;
CreateInvItems(self,itmi_gold,dragonegggeld);
b_giveinvitems(self,other,itmi_gold,dragonegggeld);
};
instance DIA_BENNET_KAP5_EXIT(C_INFO)
{
npc = sld_809_bennet;
nr = 999;
condition = dia_bennet_kap5_exit_condition;
information = dia_bennet_kap5_exit_info;
permanent = TRUE;
description = DIALOG_ENDE;
};
func int dia_bennet_kap5_exit_condition()
{
if(KAPITEL == 5)
{
return TRUE;
};
};
func void dia_bennet_kap5_exit_info()
{
AI_StopProcessInfos(self);
};
instance DIA_BENNET_KNOWWHEREENEMY(C_INFO)
{
npc = sld_809_bennet;
nr = 55;
condition = dia_bennet_knowwhereenemy_condition;
information = dia_bennet_knowwhereenemy_info;
permanent = TRUE;
description = "Мне нужно плыть на другой остров. Мне бы пригодился кузнец.";
};
func int dia_bennet_knowwhereenemy_condition()
{
if((MIS_SCKNOWSWAYTOIRDORATH == TRUE) && (BENNET_ISONBOARD == FALSE))
{
return TRUE;
};
};
func void dia_bennet_knowwhereenemy_info()
{
AI_Output(other,self,"DIA_Bennet_KnowWhereEnemy_15_00"); //Мне нужно плыть на другой остров. Мне бы пригодился кузнец.
AI_Output(self,other,"DIA_Bennet_KnowWhereEnemy_06_01"); //И ты подумал обо мне?
AI_Output(other,self,"DIA_Bennet_KnowWhereEnemy_15_02"); //Да. Что скажешь? По крайней мере, ты сможешь выбраться отсюда.
AI_Output(self,other,"DIA_Bennet_KnowWhereEnemy_06_03"); //Это лучше, чем работать на ферме Онара. Парень, даже ад ЛУЧШЕ, чем здесь. Ты можешь рассчитывать на меня.
Log_CreateTopic(TOPIC_CREW,LOG_MISSION);
Log_SetTopicStatus(TOPIC_CREW,LOG_RUNNING);
b_logentry(TOPIC_CREW,"Беннет готов отправляться немедленно. Кузнец он непревзойденный. Я уверен, что смогу многому научиться у него.");
if(CREWMEMBER_COUNT >= MAX_CREW)
{
AI_Output(other,self,"DIA_Bennet_KnowWhereEnemy_15_04"); //Моя команда сейчас полностью укомплектована.
AI_Output(self,other,"DIA_Bennet_KnowWhereEnemy_06_05"); //Тогда уволь кого-нибудь из нее.
}
else
{
Info_ClearChoices(dia_bennet_knowwhereenemy);
Info_AddChoice(dia_bennet_knowwhereenemy,"Я дам тебе знать, когда ты мне понадобишься.",dia_bennet_knowwhereenemy_no);
Info_AddChoice(dia_bennet_knowwhereenemy,"Будь моим кузнецом. Увидимся в гавани.",dia_bennet_knowwhereenemy_yes);
};
};
func void dia_bennet_knowwhereenemy_yes()
{
AI_Output(other,self,"DIA_Bennet_KnowWhereEnemy_Yes_15_00"); //Будь моим кузнецом. Увидимся в гавани.
AI_Output(self,other,"DIA_Bennet_KnowWhereEnemy_Yes_06_01"); //Хорошо. Увидимся позже.
b_giveplayerxp(XP_CREWMEMBER_SUCCESS);
self.flags = NPC_FLAG_IMMORTAL;
BENNET_ISONBOARD = LOG_SUCCESS;
CREWMEMBER_COUNT = CREWMEMBER_COUNT + 1;
if(MIS_READYFORCHAPTER6 == TRUE)
{
Npc_ExchangeRoutine(self,"SHIP");
}
else
{
Npc_ExchangeRoutine(self,"WAITFORSHIP");
};
Info_ClearChoices(dia_bennet_knowwhereenemy);
};
func void dia_bennet_knowwhereenemy_no()
{
AI_Output(other,self,"DIA_Bennet_KnowWhereEnemy_No_15_00"); //Я дам тебе знать, когда ты мне понадобишься.
AI_Output(self,other,"DIA_Bennet_KnowWhereEnemy_No_06_01"); //Отлично. Я буду здесь.
BENNET_ISONBOARD = LOG_OBSOLETE;
Info_ClearChoices(dia_bennet_knowwhereenemy);
};
instance DIA_BENNET_LEAVEMYSHIP(C_INFO)
{
npc = sld_809_bennet;
nr = 55;
condition = dia_bennet_leavemyship_condition;
information = dia_bennet_leavemyship_info;
permanent = TRUE;
description = "Я хочу найти себе другого кузнеца.";
};
func int dia_bennet_leavemyship_condition()
{
if((BENNET_ISONBOARD == LOG_SUCCESS) && (MIS_READYFORCHAPTER6 == FALSE))
{
return TRUE;
};
};
func void dia_bennet_leavemyship_info()
{
AI_Output(other,self,"DIA_Bennet_LeaveMyShip_15_00"); //Я хочу найти себе другого кузнеца.
AI_Output(self,other,"DIA_Bennet_LeaveMyShip_06_01"); //Сейчас ты думаешь одно, через минуту - другое. Ты не мог бы определиться, а? Когда будешь твердо уверен в том, чего ты хочешь, дай мне знать.
BENNET_ISONBOARD = LOG_OBSOLETE;
CREWMEMBER_COUNT = CREWMEMBER_COUNT - 1;
Npc_ExchangeRoutine(self,"Start");
};
instance DIA_BENNET_STILLNEEDYOU(C_INFO)
{
npc = sld_809_bennet;
nr = 55;
condition = dia_bennet_stillneedyou_condition;
information = dia_bennet_stillneedyou_info;
permanent = TRUE;
description = "Возвращайся, я не могу найти другого кузнеца.";
};
func int dia_bennet_stillneedyou_condition()
{
if(((BENNET_ISONBOARD == LOG_OBSOLETE) || (BENNET_ISONBOARD == LOG_FAILED)) && (CREWMEMBER_COUNT < MAX_CREW))
{
return TRUE;
};
};
func void dia_bennet_stillneedyou_info()
{
AI_Output(other,self,"DIA_Bennet_StillNeedYou_15_00"); //Возвращайся, я не могу найти другого кузнеца.
AI_Output(self,other,"DIA_Bennet_StillNeedYou_06_01"); //(сердито) Хорошо! Всякий может издеваться над простым кузнецом! Увидимся в гавани.
self.flags = NPC_FLAG_IMMORTAL;
BENNET_ISONBOARD = LOG_SUCCESS;
CREWMEMBER_COUNT = CREWMEMBER_COUNT + 1;
AI_StopProcessInfos(self);
if(MIS_READYFORCHAPTER6 == TRUE)
{
Npc_ExchangeRoutine(self,"SHIP");
}
else
{
Npc_ExchangeRoutine(self,"WAITFORSHIP");
};
};
instance DIA_BENNET_PICKPOCKET(C_INFO)
{
npc = sld_809_bennet;
nr = 900;
condition = dia_bennet_pickpocket_condition;
information = dia_bennet_pickpocket_info;
permanent = TRUE;
description = PICKPOCKET_40;
};
func int dia_bennet_pickpocket_condition()
{
return c_beklauen(35,45);
};
func void dia_bennet_pickpocket_info()
{
Info_ClearChoices(dia_bennet_pickpocket);
Info_AddChoice(dia_bennet_pickpocket,DIALOG_BACK,dia_bennet_pickpocket_back);
Info_AddChoice(dia_bennet_pickpocket,DIALOG_PICKPOCKET,dia_bennet_pickpocket_doit);
};
func void dia_bennet_pickpocket_doit()
{
b_beklauen();
Info_ClearChoices(dia_bennet_pickpocket);
};
func void dia_bennet_pickpocket_back()
{
Info_ClearChoices(dia_bennet_pickpocket);
};
| D |
func void b_combatassessdefeat()
{
printdebugnpc(PD_ZS_FRAME,"B_CombatAssessDefeat");
if(Npc_CanSeeNpcFreeLOS(self,other))
{
if(c_npcishuman(other) && c_npcishuman(victim))
{
printdebugnpc(PD_ZS_CHECK,"...Mensch besiegt Mensch!");
b_assessandmemorize(NEWS_DEFEAT,NEWS_SOURCE_WITNESS,self,other,victim);
if(Npc_IsInState(self,zs_proclaimandpunish))
{
printdebugnpc(PD_ZS_CHECK,"...NSC ist in ZS_ProclaimAndPunish!");
if(Hlp_GetInstanceID(victim) == Hlp_GetInstanceID(hero))
{
printdebugnpc(PD_ZS_CHECK,"...Besiegter ist auch eigenes Ziel!");
b_fullstop(self);
AI_ContinueRoutine(self);
};
};
};
};
};
| D |
/Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Console.build/Clear/Console+Ephemeral.swift.o : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Terminal/ANSI.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Deprecated.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Console.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Output/ConsoleStyle.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Input/Console+Choose.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Activity/ActivityIndicatorState.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Input/Console+Ask.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Terminal/Terminal.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Clear/Console+Ephemeral.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Input/Console+Confirm.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Activity/LoadingBar.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Activity/ProgressBar.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Activity/ActivityBar.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Clear/Console+Clear.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Clear/ConsoleClear.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Utilities/ConsoleLogger.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Activity/ActivityIndicatorRenderer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Output/Console+Center.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Output/ConsoleColor.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Utilities/ConsoleError.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Activity/ActivityIndicator.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Utilities/Exports.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Output/Console+Wait.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Output/ConsoleTextFragment.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Input/Console+Input.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Output/Console+Output.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Output/ConsoleText.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Activity/CustomActivity.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /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/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Console.build/Clear/Console+Ephemeral~partial.swiftmodule : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Terminal/ANSI.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Deprecated.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Console.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Output/ConsoleStyle.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Input/Console+Choose.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Activity/ActivityIndicatorState.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Input/Console+Ask.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Terminal/Terminal.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Clear/Console+Ephemeral.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Input/Console+Confirm.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Activity/LoadingBar.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Activity/ProgressBar.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Activity/ActivityBar.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Clear/Console+Clear.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Clear/ConsoleClear.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Utilities/ConsoleLogger.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Activity/ActivityIndicatorRenderer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Output/Console+Center.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Output/ConsoleColor.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Utilities/ConsoleError.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Activity/ActivityIndicator.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Utilities/Exports.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Output/Console+Wait.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Output/ConsoleTextFragment.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Input/Console+Input.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Output/Console+Output.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Output/ConsoleText.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Activity/CustomActivity.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /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/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Console.build/Clear/Console+Ephemeral~partial.swiftdoc : /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Terminal/ANSI.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Deprecated.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Console.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Output/ConsoleStyle.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Input/Console+Choose.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Activity/ActivityIndicatorState.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Input/Console+Ask.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Terminal/Terminal.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Clear/Console+Ephemeral.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Input/Console+Confirm.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Activity/LoadingBar.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Activity/ProgressBar.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Activity/ActivityBar.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Clear/Console+Clear.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Clear/ConsoleClear.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Utilities/ConsoleLogger.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Activity/ActivityIndicatorRenderer.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Output/Console+Center.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Output/ConsoleColor.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Utilities/ConsoleError.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Activity/ActivityIndicator.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Utilities/Exports.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Output/Console+Wait.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Output/ConsoleTextFragment.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Input/Console+Input.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Output/Console+Output.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Output/ConsoleText.swift /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/console/Sources/Console/Activity/CustomActivity.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Logging.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /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/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/Jorge/Desktop/Projects/Web/Swift/kisiBootcamp/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
| D |
/****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia. For licensing terms and
** conditions see http://qt.digia.com/licensing. For further information
** use the contact form at http://qt.digia.com/contact-us.
**
** GNU Lesser General Public License Usage
** Alternatively, this file may be used under the terms of the GNU Lesser
** General Public License version 2.1 or version 3 as published by the Free
** Software Foundation and appearing in the file LICENSE.LGPLv21 and
** LICENSE.LGPLv3 included in the packaging of this file. Please review the
** following information to ensure the GNU Lesser General Public License
** requirements will be met: https://www.gnu.org/licenses/lgpl.html and
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
**
** In addition, as a special exception, Digia gives you certain additional
** rights. These rights are described in the Digia Qt LGPL Exception
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
**
** $QT_END_LICENSE$
**
****************************************************************************/
#ifndef QGENERICMATRIX_H
#define QGENERICMATRIX_H
public import qt.QtCore.qmetatype;
public import qt.QtCore.qdebug;
public import qt.QtCore.qdatastream;
QT_BEGIN_NAMESPACE
template <int N, int M, typename T>
class QGenericMatrix
{
public:
QGenericMatrix();
QGenericMatrix(const QGenericMatrix<N, M, T>& other);
explicit QGenericMatrix(const(T)* values);
ref const(T) operator()(int row, int column) const;
T& operator()(int row, int column);
bool isIdentity() const;
void setToIdentity();
void fill(T value);
QGenericMatrix<M, N, T> transposed() const;
QGenericMatrix<N, M, T>& operator+=(const QGenericMatrix<N, M, T>& other);
QGenericMatrix<N, M, T>& operator-=(const QGenericMatrix<N, M, T>& other);
QGenericMatrix<N, M, T>& operator*=(T factor);
QGenericMatrix<N, M, T>& operator/=(T divisor);
bool operator==(const QGenericMatrix<N, M, T>& other) const;
bool operator!=(const QGenericMatrix<N, M, T>& other) const;
void copyDataTo(T *values) const;
T *data() { return *m; }
const(T)* data() const { return *m; }
const(T)* constData() const { return *m; }
#if !defined(Q_NO_TEMPLATE_FRIENDS)
template<int NN, int MM, typename TT>
friend QGenericMatrix<NN, MM, TT> operator+(const QGenericMatrix<NN, MM, TT>& m1, const QGenericMatrix<NN, MM, TT>& m2);
template<int NN, int MM, typename TT>
friend QGenericMatrix<NN, MM, TT> operator-(const QGenericMatrix<NN, MM, TT>& m1, const QGenericMatrix<NN, MM, TT>& m2);
template<int NN, int M1, int M2, typename TT>
friend QGenericMatrix<M1, M2, TT> operator*(const QGenericMatrix<NN, M2, TT>& m1, const QGenericMatrix<M1, NN, TT>& m2);
template<int NN, int MM, typename TT>
friend QGenericMatrix<NN, MM, TT> operator-(const QGenericMatrix<NN, MM, TT>& matrix);
template<int NN, int MM, typename TT>
friend QGenericMatrix<NN, MM, TT> operator*(TT factor, const QGenericMatrix<NN, MM, TT>& matrix);
template<int NN, int MM, typename TT>
friend QGenericMatrix<NN, MM, TT> operator*(const QGenericMatrix<NN, MM, TT>& matrix, TT factor);
template<int NN, int MM, typename TT>
friend QGenericMatrix<NN, MM, TT> operator/(const QGenericMatrix<NN, MM, TT>& matrix, TT divisor);
private:
#endif
T m[N][M]; // Column-major order to match OpenGL.
explicit QGenericMatrix(int) {} // Construct without initializing identity matrix.
#if !defined(Q_NO_TEMPLATE_FRIENDS)
template <int NN, int MM, typename TT>
friend class QGenericMatrix;
#endif
};
template <int N, int M, typename T>
Q_INLINE_TEMPLATE QGenericMatrix<N, M, T>::QGenericMatrix()
{
setToIdentity();
}
template <int N, int M, typename T>
Q_INLINE_TEMPLATE QGenericMatrix<N, M, T>::QGenericMatrix(const QGenericMatrix<N, M, T>& other)
{
for (int col = 0; col < N; ++col)
for (int row = 0; row < M; ++row)
m[col][row] = other.m[col][row];
}
template <int N, int M, typename T>
Q_OUTOFLINE_TEMPLATE QGenericMatrix<N, M, T>::QGenericMatrix(const(T)* values)
{
for (int col = 0; col < N; ++col)
for (int row = 0; row < M; ++row)
m[col][row] = values[row * N + col];
}
template <int N, int M, typename T>
Q_INLINE_TEMPLATE ref const(T) QGenericMatrix<N, M, T>::operator()(int row, int column) const
{
Q_ASSERT(row >= 0 && row < M && column >= 0 && column < N);
return m[column][row];
}
template <int N, int M, typename T>
Q_INLINE_TEMPLATE T& QGenericMatrix<N, M, T>::operator()(int row, int column)
{
Q_ASSERT(row >= 0 && row < M && column >= 0 && column < N);
return m[column][row];
}
template <int N, int M, typename T>
Q_OUTOFLINE_TEMPLATE bool QGenericMatrix<N, M, T>::isIdentity() const
{
for (int col = 0; col < N; ++col) {
for (int row = 0; row < M; ++row) {
if (row == col) {
if (m[col][row] != 1.0f)
return false;
} else {
if (m[col][row] != 0.0f)
return false;
}
}
}
return true;
}
template <int N, int M, typename T>
Q_OUTOFLINE_TEMPLATE void QGenericMatrix<N, M, T>::setToIdentity()
{
for (int col = 0; col < N; ++col) {
for (int row = 0; row < M; ++row) {
if (row == col)
m[col][row] = 1.0f;
else
m[col][row] = 0.0f;
}
}
}
template <int N, int M, typename T>
Q_OUTOFLINE_TEMPLATE void QGenericMatrix<N, M, T>::fill(T value)
{
for (int col = 0; col < N; ++col)
for (int row = 0; row < M; ++row)
m[col][row] = value;
}
template <int N, int M, typename T>
Q_OUTOFLINE_TEMPLATE QGenericMatrix<M, N, T> QGenericMatrix<N, M, T>::transposed() const
{
QGenericMatrix<M, N, T> result(1);
for (int row = 0; row < M; ++row)
for (int col = 0; col < N; ++col)
result.m[row][col] = m[col][row];
return result;
}
template <int N, int M, typename T>
Q_OUTOFLINE_TEMPLATE QGenericMatrix<N, M, T>& QGenericMatrix<N, M, T>::operator+=(const QGenericMatrix<N, M, T>& other)
{
for (int row = 0; row < M; ++row)
for (int col = 0; col < N; ++col)
m[col][row] += other.m[col][row];
return *this;
}
template <int N, int M, typename T>
Q_OUTOFLINE_TEMPLATE QGenericMatrix<N, M, T>& QGenericMatrix<N, M, T>::operator-=(const QGenericMatrix<N, M, T>& other)
{
for (int row = 0; row < M; ++row)
for (int col = 0; col < N; ++col)
m[col][row] -= other.m[col][row];
return *this;
}
template <int N, int M, typename T>
Q_OUTOFLINE_TEMPLATE QGenericMatrix<N, M, T>& QGenericMatrix<N, M, T>::operator*=(T factor)
{
for (int row = 0; row < M; ++row)
for (int col = 0; col < N; ++col)
m[col][row] *= factor;
return *this;
}
template <int N, int M, typename T>
Q_OUTOFLINE_TEMPLATE bool QGenericMatrix<N, M, T>::operator==(const QGenericMatrix<N, M, T>& other) const
{
for (int row = 0; row < M; ++row)
for (int col = 0; col < N; ++col) {
if (m[col][row] != other.m[col][row])
return false;
}
return true;
}
template <int N, int M, typename T>
Q_OUTOFLINE_TEMPLATE bool QGenericMatrix<N, M, T>::operator!=(const QGenericMatrix<N, M, T>& other) const
{
for (int row = 0; row < M; ++row)
for (int col = 0; col < N; ++col) {
if (m[col][row] != other.m[col][row])
return true;
}
return false;
}
template <int N, int M, typename T>
Q_OUTOFLINE_TEMPLATE QGenericMatrix<N, M, T>& QGenericMatrix<N, M, T>::operator/=(T divisor)
{
for (int row = 0; row < M; ++row)
for (int col = 0; col < N; ++col)
m[col][row] /= divisor;
return *this;
}
template <int N, int M, typename T>
Q_OUTOFLINE_TEMPLATE QGenericMatrix<N, M, T> operator+(const QGenericMatrix<N, M, T>& m1, const QGenericMatrix<N, M, T>& m2)
{
QGenericMatrix<N, M, T> result(1);
for (int row = 0; row < M; ++row)
for (int col = 0; col < N; ++col)
result.m[col][row] = m1.m[col][row] + m2.m[col][row];
return result;
}
template <int N, int M, typename T>
Q_OUTOFLINE_TEMPLATE QGenericMatrix<N, M, T> operator-(const QGenericMatrix<N, M, T>& m1, const QGenericMatrix<N, M, T>& m2)
{
QGenericMatrix<N, M, T> result(1);
for (int row = 0; row < M; ++row)
for (int col = 0; col < N; ++col)
result.m[col][row] = m1.m[col][row] - m2.m[col][row];
return result;
}
template <int N, int M1, int M2, typename T>
Q_OUTOFLINE_TEMPLATE QGenericMatrix<M1, M2, T> operator*(const QGenericMatrix<N, M2, T>& m1, const QGenericMatrix<M1, N, T>& m2)
{
QGenericMatrix<M1, M2, T> result(1);
for (int row = 0; row < M2; ++row) {
for (int col = 0; col < M1; ++col) {
T sum(0.0f);
for (int j = 0; j < N; ++j)
sum += m1.m[j][row] * m2.m[col][j];
result.m[col][row] = sum;
}
}
return result;
}
template <int N, int M, typename T>
Q_OUTOFLINE_TEMPLATE QGenericMatrix<N, M, T> operator-(const QGenericMatrix<N, M, T>& matrix)
{
QGenericMatrix<N, M, T> result(1);
for (int row = 0; row < M; ++row)
for (int col = 0; col < N; ++col)
result.m[col][row] = -matrix.m[col][row];
return result;
}
template <int N, int M, typename T>
Q_OUTOFLINE_TEMPLATE QGenericMatrix<N, M, T> operator*(T factor, const QGenericMatrix<N, M, T>& matrix)
{
QGenericMatrix<N, M, T> result(1);
for (int row = 0; row < M; ++row)
for (int col = 0; col < N; ++col)
result.m[col][row] = matrix.m[col][row] * factor;
return result;
}
template <int N, int M, typename T>
Q_OUTOFLINE_TEMPLATE QGenericMatrix<N, M, T> operator*(const QGenericMatrix<N, M, T>& matrix, T factor)
{
QGenericMatrix<N, M, T> result(1);
for (int row = 0; row < M; ++row)
for (int col = 0; col < N; ++col)
result.m[col][row] = matrix.m[col][row] * factor;
return result;
}
template <int N, int M, typename T>
Q_OUTOFLINE_TEMPLATE QGenericMatrix<N, M, T> operator/(const QGenericMatrix<N, M, T>& matrix, T divisor)
{
QGenericMatrix<N, M, T> result(1);
for (int row = 0; row < M; ++row)
for (int col = 0; col < N; ++col)
result.m[col][row] = matrix.m[col][row] / divisor;
return result;
}
template <int N, int M, typename T>
Q_OUTOFLINE_TEMPLATE void QGenericMatrix<N, M, T>::copyDataTo(T *values) const
{
for (int col = 0; col < N; ++col)
for (int row = 0; row < M; ++row)
values[row * N + col] = T(m[col][row]);
}
// Define aliases for the useful variants of QGenericMatrix.
typedef QGenericMatrix<2, 2, float> QMatrix2x2;
typedef QGenericMatrix<2, 3, float> QMatrix2x3;
typedef QGenericMatrix<2, 4, float> QMatrix2x4;
typedef QGenericMatrix<3, 2, float> QMatrix3x2;
typedef QGenericMatrix<3, 3, float> QMatrix3x3;
typedef QGenericMatrix<3, 4, float> QMatrix3x4;
typedef QGenericMatrix<4, 2, float> QMatrix4x2;
typedef QGenericMatrix<4, 3, float> QMatrix4x3;
#ifndef QT_NO_DEBUG_STREAM
template <int N, int M, typename T>
QDebug operator<<(QDebug dbg, const QGenericMatrix<N, M, T> &m)
{
dbg.nospace() << "QGenericMatrix<" << N << ", " << M
<< ", " << QTypeInfo<T>::name()
<< ">(" << endl << qSetFieldWidth(10);
for (int row = 0; row < M; ++row) {
for (int col = 0; col < N; ++col)
dbg << m(row, col);
dbg << endl;
}
dbg << qSetFieldWidth(0) << ')';
return dbg.space();
}
#endif
#ifndef QT_NO_DATASTREAM
template <int N, int M, typename T>
QDataStream &operator<<(QDataStream &stream, const QGenericMatrix<N, M, T> &matrix)
{
for (int row = 0; row < M; ++row)
for (int col = 0; col < N; ++col)
stream << double(matrix(row, col));
return stream;
}
template <int N, int M, typename T>
QDataStream &operator>>(QDataStream &stream, QGenericMatrix<N, M, T> &matrix)
{
double x;
for (int row = 0; row < M; ++row) {
for (int col = 0; col < N; ++col) {
stream >> x;
matrix(row, col) = T(x);
}
}
return stream;
}
#endif
QT_END_NAMESPACE
Q_DECLARE_METATYPE(QMatrix2x2)
Q_DECLARE_METATYPE(QMatrix2x3)
Q_DECLARE_METATYPE(QMatrix2x4)
Q_DECLARE_METATYPE(QMatrix3x2)
Q_DECLARE_METATYPE(QMatrix3x3)
Q_DECLARE_METATYPE(QMatrix3x4)
Q_DECLARE_METATYPE(QMatrix4x2)
Q_DECLARE_METATYPE(QMatrix4x3)
#endif
| D |
/++
[SumType] is a generic discriminated union implementation that uses
design-by-introspection to generate safe and efficient code. Its features
include:
$(LIST
* [match|Pattern matching.]
* Support for self-referential types.
* Full attribute correctness (`pure`, `@safe`, `@nogc`, and `nothrow` are
inferred whenever possible).
* A type-safe and memory-safe API compatible with DIP 1000 (`scope`).
* No dependency on runtime type information (`TypeInfo`).
* Compatibility with BetterC.
)
License: Boost License 1.0
Authors: Paul Backus
+/
module sumtype;
version (D_BetterC) {} else
/// $(H3 Basic usage)
@safe unittest {
import std.math: isClose;
struct Fahrenheit { double degrees; }
struct Celsius { double degrees; }
struct Kelvin { double degrees; }
alias Temperature = SumType!(Fahrenheit, Celsius, Kelvin);
// Construct from any of the member types.
Temperature t1 = Fahrenheit(98.6);
Temperature t2 = Celsius(100);
Temperature t3 = Kelvin(273);
// Use pattern matching to access the value.
Fahrenheit toFahrenheit(Temperature t)
{
return Fahrenheit(
t.match!(
(Fahrenheit f) => f.degrees,
(Celsius c) => c.degrees * 9.0/5 + 32,
(Kelvin k) => k.degrees * 9.0/5 - 459.4
)
);
}
assert(toFahrenheit(t1).degrees.isClose(98.6));
assert(toFahrenheit(t2).degrees.isClose(212));
assert(toFahrenheit(t3).degrees.isClose(32));
// Use ref to modify the value in place.
void freeze(ref Temperature t)
{
t.match!(
(ref Fahrenheit f) => f.degrees = 32,
(ref Celsius c) => c.degrees = 0,
(ref Kelvin k) => k.degrees = 273
);
}
freeze(t1);
assert(toFahrenheit(t1).degrees.isClose(32));
// Use a catch-all handler to give a default result.
bool isFahrenheit(Temperature t)
{
return t.match!(
(Fahrenheit f) => true,
_ => false
);
}
assert(isFahrenheit(t1));
assert(!isFahrenheit(t2));
assert(!isFahrenheit(t3));
}
version (D_BetterC) {} else
/** $(H3 Introspection-based matching)
*
* In the `length` and `horiz` functions below, the handlers for `match` do not
* specify the types of their arguments. Instead, matching is done based on how
* the argument is used in the body of the handler: any type with `x` and `y`
* properties will be matched by the `rect` handlers, and any type with `r` and
* `theta` properties will be matched by the `polar` handlers.
*/
@safe unittest {
import std.math: isClose, cos, PI, sqrt;
struct Rectangular { double x, y; }
struct Polar { double r, theta; }
alias Vector = SumType!(Rectangular, Polar);
double length(Vector v)
{
return v.match!(
rect => sqrt(rect.x^^2 + rect.y^^2),
polar => polar.r
);
}
double horiz(Vector v)
{
return v.match!(
rect => rect.x,
polar => polar.r * cos(polar.theta)
);
}
Vector u = Rectangular(1, 1);
Vector v = Polar(1, PI/4);
assert(length(u).isClose(sqrt(2.0)));
assert(length(v).isClose(1));
assert(horiz(u).isClose(1));
assert(horiz(v).isClose(sqrt(0.5)));
}
version (D_BetterC) {} else
/** $(H3 Arithmetic expression evaluator)
*
* This example makes use of the special placeholder type `This` to define a
* [https://en.wikipedia.org/wiki/Recursive_data_type|recursive data type]: an
* [https://en.wikipedia.org/wiki/Abstract_syntax_tree|abstract syntax tree] for
* representing simple arithmetic expressions.
*/
@system unittest {
import std.functional: partial;
import std.traits: EnumMembers;
import std.typecons: Tuple;
enum Op : string
{
Plus = "+",
Minus = "-",
Times = "*",
Div = "/"
}
// An expression is either
// - a number,
// - a variable, or
// - a binary operation combining two sub-expressions.
alias Expr = SumType!(
double,
string,
Tuple!(Op, "op", This*, "lhs", This*, "rhs")
);
// Shorthand for Tuple!(Op, "op", Expr*, "lhs", Expr*, "rhs"),
// the Tuple type above with Expr substituted for This.
alias BinOp = Expr.Types[2];
// Factory function for number expressions
Expr* num(double value)
{
return new Expr(value);
}
// Factory function for variable expressions
Expr* var(string name)
{
return new Expr(name);
}
// Factory function for binary operation expressions
Expr* binOp(Op op, Expr* lhs, Expr* rhs)
{
return new Expr(BinOp(op, lhs, rhs));
}
// Convenience wrappers for creating BinOp expressions
alias sum = partial!(binOp, Op.Plus);
alias diff = partial!(binOp, Op.Minus);
alias prod = partial!(binOp, Op.Times);
alias quot = partial!(binOp, Op.Div);
// Evaluate expr, looking up variables in env
double eval(Expr expr, double[string] env)
{
return expr.match!(
(double num) => num,
(string var) => env[var],
(BinOp bop) {
double lhs = eval(*bop.lhs, env);
double rhs = eval(*bop.rhs, env);
final switch(bop.op) {
static foreach(op; EnumMembers!Op) {
case op:
return mixin("lhs" ~ op ~ "rhs");
}
}
}
);
}
// Return a "pretty-printed" representation of expr
string pprint(Expr expr)
{
import std.format;
return expr.match!(
(double num) => "%g".format(num),
(string var) => var,
(BinOp bop) => "(%s %s %s)".format(
pprint(*bop.lhs),
cast(string) bop.op,
pprint(*bop.rhs)
)
);
}
Expr* myExpr = sum(var("a"), prod(num(2), var("b")));
double[string] myEnv = ["a":3, "b":4, "c":7];
assert(eval(*myExpr, myEnv) == 11);
assert(pprint(*myExpr) == "(a + (2 * b))");
}
import std.format: FormatSpec, singleSpec;
import std.meta: AliasSeq, Filter, IndexOf = staticIndexOf, Map = staticMap;
import std.meta: NoDuplicates;
import std.meta: anySatisfy, allSatisfy;
import std.traits: hasElaborateCopyConstructor, hasElaborateDestructor;
import std.traits: isAssignable, isCopyable, isRvalueAssignable, isStaticArray;
import std.traits: ConstOf, ImmutableOf, InoutOf, TemplateArgsOf;
import std.traits: CommonType;
import std.typecons: ReplaceTypeUnless;
import std.typecons: Flag;
/// Placeholder used to refer to the enclosing [SumType].
struct This {}
// Converts an unsigned integer to a compile-time string constant.
private enum toCtString(ulong n) = n.stringof[0 .. $ - "LU".length];
// Check that .stringof does what we expect, since it's not guaranteed by the
// lanugage spec.
@safe unittest {
assert(toCtString!0 == "0");
assert(toCtString!123456 == "123456");
}
// True if a variable of type T can appear on the lhs of an assignment
private enum isAssignableTo(T) =
isAssignable!T || (!isCopyable!T && isRvalueAssignable!T);
// toHash is required by the language spec to be nothrow and @safe
private enum isHashable(T) = __traits(compiles,
() nothrow @safe { hashOf(T.init); }
);
private enum hasPostblit(T) = __traits(hasPostblit, T);
private enum isInout(T) = is(T == inout);
// Workaround for dlang issue 19669
private enum haveDip1000 = __traits(compiles, () @safe {
int x;
int* p;
p = &x;
});
/**
* A [tagged union](https://en.wikipedia.org/wiki/Tagged_union) that can hold a
* single value from any of a specified set of types.
*
* The value in a `SumType` can be operated on using [match|pattern matching].
*
* To avoid ambiguity, duplicate types are not allowed (but see the
* [sumtype#basic-usage|"basic usage" example] for a workaround).
*
* The special type `This` can be used as a placeholder to create
* self-referential types, just like with `Algebraic`. See the
* [sumtype#arithmetic-expression-evaluator|"Arithmetic expression evaluator" example] for
* usage.
*
* A `SumType` is initialized by default to hold the `.init` value of its
* first member type, just like a regular union. The version identifier
* `SumTypeNoDefaultCtor` can be used to disable this behavior.
*
* See_Also: `std.variant.Algebraic`
*/
struct SumType(Types...)
if (is(NoDuplicates!Types == Types) && Types.length > 0)
{
/// The types a `SumType` can hold.
alias Types = AliasSeq!(
ReplaceTypeUnless!(isSumTypeInstance, This, typeof(this), TemplateArgsOf!SumType)
);
private:
enum bool canHoldTag(T) = Types.length <= T.max;
alias unsignedInts = AliasSeq!(ubyte, ushort, uint, ulong);
alias Tag = Filter!(canHoldTag, unsignedInts)[0];
union Storage
{
// Workaround for dlang issue 20068
template memberName(T)
if (IndexOf!(T, Types) >= 0)
{
enum tid = IndexOf!(T, Types);
mixin("enum memberName = `values_", toCtString!tid, "`;");
}
static foreach (T; Types) {
mixin("T ", memberName!T, ";");
}
}
Storage storage;
Tag tag;
/**
* Accesses the value stored in a SumType.
*
* This method is memory-safe, provided that:
*
* 1. A SumType's tag is always accurate.
* 2. A SumType cannot be assigned to in @safe code if that assignment
* could cause unsafe aliasing.
*
* All code that accesses a SumType's tag or storage directly, including
* @safe code in this module, must be manually checked to ensure that it
* does not violate either of the above requirements.
*/
@trusted
ref inout(T) get(T)() inout
if (IndexOf!(T, Types) >= 0)
{
enum tid = IndexOf!(T, Types);
assert(tag == tid,
"This `" ~ SumType.stringof ~
"` does not contain a(n) `" ~ T.stringof ~ "`"
);
return __traits(getMember, storage, Storage.memberName!T);
}
public:
static foreach (tid, T; Types) {
/// Constructs a `SumType` holding a specific value.
this(T value)
{
import core.lifetime: forward;
static if (isCopyable!T) {
// Workaround for dlang issue 21542
__traits(getMember, storage, Storage.memberName!T) = __ctfe ? value : forward!value;
} else {
__traits(getMember, storage, Storage.memberName!T) = forward!value;
}
tag = tid;
}
static if (isCopyable!(const(T))) {
// Avoid defining the same constructor multiple times
static if (IndexOf!(const(T), Map!(ConstOf, Types)) == tid) {
/// ditto
this(const(T) value) const
{
__traits(getMember, storage, Storage.memberName!T) = value;
tag = tid;
}
}
} else {
@disable this(const(T) value) const;
}
static if (isCopyable!(immutable(T))) {
static if (IndexOf!(immutable(T), Map!(ImmutableOf, Types)) == tid) {
/// ditto
this(immutable(T) value) immutable
{
__traits(getMember, storage, Storage.memberName!T) = value;
tag = tid;
}
}
} else {
@disable this(immutable(T) value) immutable;
}
static if (isCopyable!(inout(T))) {
static if (IndexOf!(inout(T), Map!(InoutOf, Types)) == tid) {
/// ditto
this(Value)(Value value) inout
if (is(Value == DeducedParameterType!(inout(T))))
{
__traits(getMember, storage, Storage.memberName!T) = value;
tag = tid;
}
}
} else {
@disable this(Value)(Value value) inout
if (is(Value == DeducedParameterType!(inout(T))));
}
}
static if (anySatisfy!(hasElaborateCopyConstructor, Types)) {
static if (
allSatisfy!(isCopyable, Map!(InoutOf, Types))
&& !anySatisfy!(hasPostblit, Map!(InoutOf, Types))
&& allSatisfy!(isInout, Map!(InoutOf, Types))
) {
/// Constructs a `SumType` that's a copy of another `SumType`.
this(ref inout(SumType) other) inout
{
storage = other.match!((ref value) {
alias OtherTypes = Map!(InoutOf, Types);
enum tid = IndexOf!(typeof(value), OtherTypes);
alias T = Types[tid];
mixin("inout(Storage) newStorage = { ",
Storage.memberName!T, ": value",
" };");
return newStorage;
});
tag = other.tag;
}
} else {
static if (allSatisfy!(isCopyable, Types)) {
/// ditto
this(ref SumType other)
{
storage = other.match!((ref value) {
alias T = typeof(value);
mixin("Storage newStorage = { ",
Storage.memberName!T, ": value",
" };");
return newStorage;
});
tag = other.tag;
}
} else {
@disable this(ref SumType other);
}
static if (allSatisfy!(isCopyable, Map!(ConstOf, Types))) {
/// ditto
this(ref const(SumType) other) const
{
storage = other.match!((ref value) {
alias OtherTypes = Map!(ConstOf, Types);
enum tid = IndexOf!(typeof(value), OtherTypes);
alias T = Types[tid];
mixin("const(Storage) newStorage = { ",
Storage.memberName!T, ": value",
" };");
return newStorage;
});
tag = other.tag;
}
} else {
@disable this(ref const(SumType) other) const;
}
static if (allSatisfy!(isCopyable, Map!(ImmutableOf, Types))) {
/// ditto
this(ref immutable(SumType) other) immutable
{
storage = other.match!((ref value) {
alias OtherTypes = Map!(ImmutableOf, Types);
enum tid = IndexOf!(typeof(value), OtherTypes);
alias T = Types[tid];
mixin("immutable(Storage) newStorage = { ",
Storage.memberName!T, ": value",
" };");
return newStorage;
});
tag = other.tag;
}
} else {
@disable this(ref immutable(SumType) other) immutable;
}
}
}
version (SumTypeNoDefaultCtor) {
@disable this();
}
static foreach (tid, T; Types) {
static if (isAssignableTo!T) {
/**
* Assigns a value to a `SumType`.
*
* If any of the `SumType`'s members other than the one being assigned
* to contain pointers or references, it is possible for the assignment
* to cause memory corruption (see the
* ["Memory corruption" example](#memory-corruption) below for an
* illustration of how). Therefore, such assignments are considered
* `@system`.
*
* An individual assignment can be `@trusted` if the caller can
* guarantee that there are no outstanding references to any `SumType`
* members that contain pointers or references at the time the
* assignment occurs.
*
* Examples:
*
* $(H3 Memory corruption)
*
* This example shows how assignment to a `SumType` can be used to
* cause memory corruption in `@system` code. In `@safe` code, the
* assignment `s = 123` would not be allowed.
*
* ---
* SumType!(int*, int) s = new int;
* s.tryMatch!(
* (ref int* p) {
* s = 123; // overwrites `p`
* return *p; // undefined behavior
* }
* );
* ---
*/
ref SumType opAssign(T rhs)
{
import core.lifetime: forward;
import std.traits: hasIndirections, hasNested;
import std.meta: AliasSeq, Or = templateOr;
alias OtherTypes =
AliasSeq!(Types[0 .. tid], Types[tid + 1 .. $]);
enum unsafeToOverwrite =
anySatisfy!(Or!(hasIndirections, hasNested), OtherTypes);
static if (unsafeToOverwrite) {
cast(void) () @system {}();
}
this.match!destroyIfOwner;
mixin("Storage newStorage = { ",
Storage.memberName!T, ": forward!rhs",
" };");
storage = newStorage;
tag = tid;
return this;
}
}
}
static if (allSatisfy!(isAssignableTo, Types)) {
static if (allSatisfy!(isCopyable, Types)) {
/**
* Copies the value from another `SumType` into this one.
*
* See the value-assignment overload for details on `@safe`ty.
*
* Copy assignment is `@disable`d if any of `Types` is non-copyable.
*/
ref SumType opAssign(ref SumType rhs)
{
rhs.match!((ref value) { this = value; });
return this;
}
} else {
@disable ref SumType opAssign(ref SumType rhs);
}
/**
* Moves the value from another `SumType` into this one.
*
* See the value-assignment overload for details on `@safe`ty.
*/
ref SumType opAssign(SumType rhs)
{
import core.lifetime: move;
rhs.match!((ref value) { this = move(value); });
return this;
}
}
/**
* Compares two `SumType`s for equality.
*
* Two `SumType`s are equal if they are the same kind of `SumType`, they
* contain values of the same type, and those values are equal.
*/
bool opEquals(this This, Rhs)(auto ref Rhs rhs)
if (!is(CommonType!(This, Rhs) == void))
{
static if (is(This == Rhs)) {
return AliasSeq!(this, rhs).match!((ref value, ref rhsValue) {
static if (is(typeof(value) == typeof(rhsValue))) {
return value == rhsValue;
} else {
return false;
}
});
} else {
alias CommonSumType = CommonType!(This, Rhs);
return cast(CommonSumType) this == cast(CommonSumType) rhs;
}
}
// Workaround for dlang issue 19407
static if (__traits(compiles, anySatisfy!(hasElaborateDestructor, Types))) {
// If possible, include the destructor only when it's needed
private enum includeDtor = anySatisfy!(hasElaborateDestructor, Types);
} else {
// If we can't tell, always include it, even when it does nothing
private enum includeDtor = true;
}
static if (includeDtor) {
/// Calls the destructor of the `SumType`'s current value.
~this()
{
this.match!destroyIfOwner;
}
}
invariant {
this.match!((ref value) {
static if (is(typeof(value) == class)) {
if (value !is null) {
assert(value);
}
} else static if (is(typeof(value) == struct)) {
assert(&value);
}
});
}
version (D_BetterC) {} else
/**
* Returns a string representation of the `SumType`'s current value.
*
* Not available when compiled with `-betterC`.
*/
string toString(this This)()
{
import std.conv: to;
return this.match!(to!string);
}
version (D_BetterC) {} else
/**
* Handles formatted writing of the `SumType`'s current value.
*
* Not available when compiled with `-betterC`.
*
* Params:
* sink = Output range to write to.
* fmt = Format specifier to use.
*
* See_Also: `std.format.formatValue`
*/
void toString(this This, Sink, Char)(ref Sink sink, const ref FormatSpec!Char fmt)
{
import std.format: formatValue;
this.match!((ref value) {
formatValue(sink, value, fmt);
});
}
static if (allSatisfy!(isHashable, Map!(ConstOf, Types))) {
// Workaround for dlang issue 20095
version (D_BetterC) {} else
/**
* Returns the hash of the `SumType`'s current value.
*
* Not available when compiled with `-betterC`.
*/
size_t toHash() const
{
return this.match!hashOf;
}
}
/**
* Returns the index of the type of the `SumType`'s current value in the
* `SumType`'s [Types].
*
* If the `SumType` is qualified, returns the index of the type in [Types]
* whose qualified version matches the `SumType`'s current value.
*/
size_t typeIndex() const
{
return tag;
}
}
// Construction
@safe unittest {
alias MySum = SumType!(int, float);
assert(__traits(compiles, MySum(42)));
assert(__traits(compiles, MySum(3.14)));
}
// Assignment
@safe unittest {
alias MySum = SumType!(int, float);
MySum x = MySum(42);
assert(__traits(compiles, x = 3.14));
}
// Self assignment
@safe unittest {
alias MySum = SumType!(int, float);
MySum x = MySum(42);
MySum y = MySum(3.14);
assert(__traits(compiles, y = x));
}
// Equality
@safe unittest {
alias MySum = SumType!(int, float);
assert(MySum(123) == MySum(123));
assert(MySum(123) != MySum(456));
assert(MySum(123) != MySum(123.0));
assert(MySum(123) != MySum(456.0));
}
// Equality of differently-qualified SumTypes
// Disabled in BetterC due to use of dynamic arrays
version (D_BetterC) {} else
@safe unittest {
alias SumA = SumType!(int, float);
alias SumB = SumType!(const(int[]), int[]);
alias SumC = SumType!(int[], const(int[]));
int[] ma = [1, 2, 3];
const(int[]) ca = [1, 2, 3];
assert(const(SumA)(123) == SumA(123));
assert(const(SumB)(ma[]) == SumB(ca[]));
assert(const(SumC)(ma[]) == SumC(ca[]));
}
// Imported types
@safe unittest {
import std.typecons: Tuple;
assert(__traits(compiles, {
alias MySum = SumType!(Tuple!(int, int));
}));
}
// const and immutable types
@safe unittest {
assert(__traits(compiles, {
alias MySum = SumType!(const(int[]), immutable(float[]));
}));
}
// Recursive types
@safe unittest {
alias MySum = SumType!(This*);
assert(is(MySum.Types[0] == MySum*));
}
// Allowed types
@safe unittest {
import std.meta: AliasSeq;
alias MySum = SumType!(int, float, This*);
assert(is(MySum.Types == AliasSeq!(int, float, MySum*)));
}
// Types with destructors and postblits
@system unittest {
int copies;
static struct Test
{
bool initialized = false;
int* copiesPtr;
this(this) { (*copiesPtr)++; }
~this() { if (initialized) (*copiesPtr)--; }
}
alias MySum = SumType!(int, Test);
Test t = Test(true, &copies);
{
MySum x = t;
assert(copies == 1);
}
assert(copies == 0);
{
MySum x = 456;
assert(copies == 0);
}
assert(copies == 0);
{
MySum x = t;
assert(copies == 1);
x = 456;
assert(copies == 0);
}
{
MySum x = 456;
assert(copies == 0);
x = t;
assert(copies == 1);
}
{
MySum x = t;
MySum y = x;
assert(copies == 2);
}
{
MySum x = t;
MySum y;
y = x;
assert(copies == 2);
}
}
// Doesn't destroy reference types
// Disabled in BetterC due to use of classes
version (D_BetterC) {} else
@system unittest {
bool destroyed;
class C
{
~this()
{
destroyed = true;
}
}
struct S
{
~this() {}
}
alias MySum = SumType!(S, C);
C c = new C();
{
MySum x = c;
destroyed = false;
}
assert(!destroyed);
{
MySum x = c;
destroyed = false;
x = S();
assert(!destroyed);
}
}
// Types with @disable this()
@safe unittest {
static struct NoInit
{
@disable this();
}
alias MySum = SumType!(NoInit, int);
assert(!__traits(compiles, MySum()));
assert(__traits(compiles, MySum(42)));
auto x = MySum(42);
}
// const SumTypes
@safe unittest {
assert(__traits(compiles,
const(SumType!(int[]))([1, 2, 3])
));
}
// Equality of const SumTypes
@safe unittest {
alias MySum = SumType!int;
assert(__traits(compiles,
const(MySum)(123) == const(MySum)(456)
));
}
// Compares reference types using value equality
@safe unittest {
import std.array: staticArray;
static struct Field {}
static struct Struct { Field[] fields; }
alias MySum = SumType!Struct;
static arr1 = staticArray([Field()]);
static arr2 = staticArray([Field()]);
auto a = MySum(Struct(arr1[]));
auto b = MySum(Struct(arr2[]));
assert(a == b);
}
// toString
// Disabled in BetterC due to use of std.conv.text
version (D_BetterC) {} else
@safe unittest {
import std.conv: text;
static struct Int { int i; }
static struct Double { double d; }
alias Sum = SumType!(Int, Double);
assert(Sum(Int(42)).text == Int(42).text, Sum(Int(42)).text);
assert(Sum(Double(33.3)).text == Double(33.3).text, Sum(Double(33.3)).text);
assert((const(Sum)(Int(42))).text == (const(Int)(42)).text, (const(Sum)(Int(42))).text);
}
// string formatting
// Disabled in BetterC due to use of std.format.format
version (D_BetterC) {} else
@safe unittest {
import std.format: format;
SumType!int x = 123;
assert(format!"%s"(x) == format!"%s"(123));
assert(format!"%x"(x) == format!"%x"(123));
}
// string formatting of qualified SumTypes
// Disabled in BetterC due to use of std.format.format and dynamic arrays
version (D_BetterC) {} else
@safe unittest {
import std.format: format;
int[] a = [1, 2, 3];
const(SumType!(int[])) x = a;
assert(format!"%(%d, %)"(x) == format!"%(%s, %)"(a));
}
// Github issue #16
// Disabled in BetterC due to use of dynamic arrays
version (D_BetterC) {} else
@safe unittest {
alias Node = SumType!(This[], string);
// override inference of @system attribute for cyclic functions
assert((() @trusted =>
Node([Node([Node("x")])])
==
Node([Node([Node("x")])])
)());
}
// Github issue #16 with const
// Disabled in BetterC due to use of dynamic arrays
version (D_BetterC) {} else
@safe unittest {
alias Node = SumType!(const(This)[], string);
// override inference of @system attribute for cyclic functions
assert((() @trusted =>
Node([Node([Node("x")])])
==
Node([Node([Node("x")])])
)());
}
// Stale pointers
// Disabled in BetterC due to use of dynamic arrays
version (D_BetterC) {} else
@system unittest {
alias MySum = SumType!(ubyte, void*[2]);
MySum x = [null, cast(void*) 0x12345678];
void** p = &x.get!(void*[2])[1];
x = ubyte(123);
assert(*p != cast(void*) 0x12345678);
}
// Exception-safe assignment
// Disabled in BetterC due to use of exceptions
version (D_BetterC) {} else
@safe unittest {
static struct A
{
int value = 123;
}
static struct B
{
int value = 456;
this(this) { throw new Exception("oops"); }
}
alias MySum = SumType!(A, B);
MySum x;
try {
x = B();
} catch (Exception e) {}
assert(
(x.tag == 0 && x.get!A.value == 123) ||
(x.tag == 1 && x.get!B.value == 456)
);
}
// Types with @disable this(this)
@safe unittest {
import core.lifetime: move;
static struct NoCopy
{
@disable this(this);
}
alias MySum = SumType!NoCopy;
NoCopy lval = NoCopy();
MySum x = NoCopy();
MySum y = NoCopy();
assert(__traits(compiles, SumType!NoCopy(NoCopy())));
assert(!__traits(compiles, SumType!NoCopy(lval)));
assert(__traits(compiles, y = NoCopy()));
assert(__traits(compiles, y = move(x)));
assert(!__traits(compiles, y = lval));
assert(!__traits(compiles, y = x));
assert(__traits(compiles, x == y));
}
// Github issue #22
// Disabled in BetterC due to use of std.typecons.Nullable
version (D_BetterC) {} else
@safe unittest {
import std.typecons;
assert(__traits(compiles, {
static struct A {
SumType!(Nullable!int) a = Nullable!int.init;
}
}));
}
// Static arrays of structs with postblits
// Disabled in BetterC due to use of dynamic arrays
version (D_BetterC) {} else
@safe unittest {
static struct S
{
int n;
this(this) { n++; }
}
assert(__traits(compiles, SumType!(S[1])()));
SumType!(S[1]) x = [S(0)];
SumType!(S[1]) y = x;
auto xval = x.get!(S[1])[0].n;
auto yval = y.get!(S[1])[0].n;
assert(xval != yval);
}
// Replacement does not happen inside SumType
// Disabled in BetterC due to use of associative arrays
version (D_BetterC) {} else
@safe unittest {
import std.typecons : Tuple, ReplaceTypeUnless;
alias A = Tuple!(This*,SumType!(This*))[SumType!(This*,string)[This]];
alias TR = ReplaceTypeUnless!(isSumTypeInstance, This, int, A);
static assert(is(TR == Tuple!(int*,SumType!(This*))[SumType!(This*, string)[int]]));
}
// Supports nested self-referential SumTypes
@safe unittest {
import std.typecons : Tuple, Flag;
alias Nat = SumType!(Flag!"0", Tuple!(This*));
static assert(__traits(compiles, SumType!(Nat)));
static assert(__traits(compiles, SumType!(Nat*, Tuple!(This*, This*))));
}
// Self-referential SumTypes inside Algebraic
// Disabled in BetterC due to use of std.variant.Algebraic
version (D_BetterC) {} else
@safe unittest {
import std.variant: Algebraic;
alias T = Algebraic!(SumType!(This*));
assert(is(T.AllowedTypes[0].Types[0] == T.AllowedTypes[0]*));
}
// Doesn't call @system postblits in @safe code
@safe unittest {
static struct SystemCopy { @system this(this) {} }
SystemCopy original;
assert(!__traits(compiles, () @safe {
SumType!SystemCopy copy = original;
}));
assert(!__traits(compiles, () @safe {
SumType!SystemCopy copy; copy = original;
}));
}
// Doesn't overwrite pointers in @safe code
@safe unittest {
alias MySum = SumType!(int*, int);
MySum x;
assert(!__traits(compiles, () @safe {
x = 123;
}));
assert(!__traits(compiles, () @safe {
x = MySum(123);
}));
}
// Types with invariants
// Disabled in BetterC due to use of exceptions
version (D_BetterC) {} else
@system unittest {
import std.exception: assertThrown;
import core.exception: AssertError;
struct S
{
int i;
invariant { assert(i >= 0); }
}
class C
{
int i;
invariant { assert(i >= 0); }
}
SumType!S x;
x.match!((ref v) { v.i = -1; });
assertThrown!AssertError(assert(&x));
SumType!C y = new C();
y.match!((ref v) { v.i = -1; });
assertThrown!AssertError(assert(&y));
}
// Calls value postblit on self-assignment
@safe unittest {
static struct S
{
int n;
this(this) { n++; }
}
SumType!S x = S();
SumType!S y;
y = x;
auto xval = x.get!S.n;
auto yval = y.get!S.n;
assert(xval != yval);
}
// Github issue #29
@safe unittest {
assert(__traits(compiles, () @safe {
alias A = SumType!string;
@safe A createA(string arg) {
return A(arg);
}
@safe void test() {
A a = createA("");
}
}));
}
// SumTypes as associative array keys
// Disabled in BetterC due to use of associative arrays
version (D_BetterC) {} else
@safe unittest {
assert(__traits(compiles, {
int[SumType!(int, string)] aa;
}));
}
// toString with non-copyable types
// Disabled in BetterC due to use of std.conv.to (in toString)
version (D_BetterC) {} else
@safe unittest {
struct NoCopy
{
@disable this(this);
}
SumType!NoCopy x;
assert(__traits(compiles, x.toString()));
}
// Can use the result of assignment
@safe unittest {
alias MySum = SumType!(int, float);
MySum a = MySum(123);
MySum b = MySum(3.14);
assert((a = b) == b);
assert((a = MySum(123)) == MySum(123));
assert((a = 3.14) == MySum(3.14));
assert(((a = b) = MySum(123)) == MySum(123));
}
// Types with copy constructors
@safe unittest {
static struct S
{
int n;
this(ref return scope inout S other) inout
{
n = other.n + 1;
}
}
SumType!S x = S();
SumType!S y = x;
auto xval = x.get!S.n;
auto yval = y.get!S.n;
assert(xval != yval);
}
// Copyable by generated copy constructors
@safe unittest {
static struct Inner
{
ref this(ref inout Inner other) {}
}
static struct Outer
{
SumType!Inner inner;
}
Outer x;
Outer y = x;
}
// Types with qualified copy constructors
@safe unittest {
static struct ConstCopy
{
int n;
this(inout int n) inout { this.n = n; }
this(ref const typeof(this) other) const { this.n = other.n; }
}
static struct ImmutableCopy
{
int n;
this(inout int n) inout { this.n = n; }
this(ref immutable typeof(this) other) immutable { this.n = other.n; }
}
const SumType!ConstCopy x = const(ConstCopy)(1);
immutable SumType!ImmutableCopy y = immutable(ImmutableCopy)(1);
}
// Types with disabled opEquals
@safe unittest {
static struct S
{
@disable bool opEquals(const S rhs) const;
}
assert(__traits(compiles, SumType!S(S())));
}
// Types with non-const opEquals
@safe unittest {
static struct S
{
int i;
bool opEquals(S rhs) { return i == rhs.i; }
}
assert(__traits(compiles, SumType!S(S(123))));
}
// Incomparability of different SumTypes
@safe unittest {
SumType!(int, string) x = 123;
SumType!(string, int) y = 123;
assert(!__traits(compiles, x != y));
}
// Self-reference in return/parameter type of function pointer member
@safe unittest {
assert(__traits(compiles, {
alias T = SumType!(int, This delegate(This));
}));
}
// Construction and assignment from implicitly-convertible lvalue
@safe unittest {
alias MySum = SumType!bool;
const(bool) b = true;
assert(__traits(compiles, { MySum x = b; }));
assert(__traits(compiles, { MySum x; x = b; }));
}
// Type index
@safe unittest {
alias MySum = SumType!(int, float);
static bool isIndexOf(Target, Types...)(size_t i)
{
switch (i) {
static foreach (tid, T; Types)
case tid: return is(T == Target);
default: return false;
}
}
assert(isIndexOf!(int, MySum.Types)(MySum(42).typeIndex));
assert(isIndexOf!(float, MySum.Types)(MySum(3.14).typeIndex));
}
// Type index for qualified SumTypes
// Disabled in BetterC due to use of dynamic arrays
version (D_BetterC) {} else
@safe unittest {
alias MySum = SumType!(const(int[]), int[]);
static bool isIndexOf(Target, Types...)(size_t i)
{
switch (i) {
static foreach (tid, T; Types)
case tid: return is(T == Target);
default: return false;
}
}
int[] ma = [1, 2, 3];
// Construct as mutable and convert to const to get mismatched type + tag
auto x = MySum(ma);
const y = MySum(ma);
auto z = const(MySum)(ma);
assert(isIndexOf!(int[], MySum.Types)(x.typeIndex));
assert(isIndexOf!(const(int[]), Map!(ConstOf, MySum.Types))(y.typeIndex));
assert(isIndexOf!(const(int[]), Map!(ConstOf, MySum.Types))(z.typeIndex));
}
// Type index for differently-qualified versions of the same SumType
// Disabled in BetterC due to use of dynamic arrays
version (D_BetterC) {} else
@safe unittest {
alias MySum = SumType!(const(int[]), int[]);
int[] ma = [1, 2, 3];
auto x = MySum(ma);
const y = x;
assert(x.typeIndex == y.typeIndex);
}
// @safe assignment to the only pointer in a SumType
@safe unittest {
SumType!(string, int) sm = 123;
assert(__traits(compiles, () @safe {
sm = "this should be @safe";
}));
}
// Pointers to local variables
@safe unittest {
enum haveDip1000 = __traits(compiles, () @safe {
int n;
int* p = &n;
});
static if (haveDip1000) {
int n = 123;
immutable int ni = 456;
SumType!(int*) s = &n;
const SumType!(int*) sc = &n;
immutable SumType!(int*) si = ∋
}
}
// Dlang issue 22572: immutable member type with copy constructor
@safe unittest {
static struct CopyConstruct
{
this(ref inout CopyConstruct other) inout {}
}
static immutable struct Value
{
CopyConstruct c;
}
SumType!Value s;
}
// Construction of inout-qualified SumTypes
@safe unittest {
static inout(SumType!(int[])) example(inout(int[]) arr)
{
return inout(SumType!(int[]))(arr);
}
}
/// True if `T` is an instance of the `SumType` template, otherwise false.
private enum bool isSumTypeInstance(T) = is(T == SumType!Args, Args...);
@safe unittest {
static struct Wrapper
{
SumType!int s;
alias s this;
}
assert(isSumTypeInstance!(SumType!int));
assert(!isSumTypeInstance!Wrapper);
}
/// True if `T` is a [SumType] or implicitly converts to one, otherwise false.
template isSumType(T)
{
static if (is(T : SumType!Args, Args...)) {
enum isSumType = true;
} else static if (is(T == struct) && __traits(getAliasThis, T).length > 0) {
// Workaround for dlang issue 21975
import std.traits: ReturnType;
alias AliasThisType = ReturnType!((T t) =>
__traits(getMember, t, __traits(getAliasThis, T)[0])
);
enum isSumType = .isSumType!AliasThisType;
} else {
enum isSumType = false;
}
}
///
@safe unittest {
static struct ConvertsToSumType
{
SumType!int payload;
alias payload this;
}
static struct ContainsSumType
{
SumType!int payload;
}
assert(isSumType!(SumType!int));
assert(isSumType!ConvertsToSumType);
assert(!isSumType!ContainsSumType);
}
@safe unittest {
static struct AliasThisVar(T)
{
SumType!T payload;
alias payload this;
}
static struct AliasThisFunc(T)
{
SumType!T payload;
ref get() { return payload; }
alias get this;
}
static assert(isSumType!(AliasThisVar!int));
static assert(isSumType!(AliasThisFunc!int));
}
/**
* Calls a type-appropriate function with the value held in a [SumType].
*
* For each possible type the [SumType] can hold, the given handlers are
* checked, in order, to see whether they accept a single argument of that type.
* The first one that does is chosen as the match for that type. (Note that the
* first match may not always be the most exact match.
* See [#avoiding-unintentional-matches|"Avoiding unintentional matches"] for
* one common pitfall.)
*
* Every type must have a matching handler, and every handler must match at
* least one type. This is enforced at compile time.
*
* Handlers may be functions, delegates, or objects with `opCall` overloads. If
* a function with more than one overload is given as a handler, all of the
* overloads are considered as potential matches.
*
* Templated handlers are also accepted, and will match any type for which they
* can be [implicitly instantiated](https://dlang.org/glossary.html#ifti). See
* [sumtype#introspection-based-matching|"Introspection-based matching"] for an
* example of templated handler usage.
*
* If multiple [SumType]s are passed to `match`, their values are passed to the
* handlers as separate arguments, and matching is done for each possible
* combination of value types. See [#multiple-dispatch|"Multiple dispatch"] for
* an example.
*
* Returns:
* The value returned from the handler that matches the currently-held type.
*
* See_Also: `std.variant.visit`
*/
template match(handlers...)
{
import std.typecons: Yes;
/**
* The actual `match` function.
*
* Params:
* args = One or more [SumType] objects.
*/
auto ref match(SumTypes...)(auto ref SumTypes args)
if (allSatisfy!(isSumType, SumTypes) && args.length > 0)
{
return matchImpl!(Yes.exhaustive, handlers)(args);
}
}
/** $(H3 Avoiding unintentional matches)
*
* Sometimes, implicit conversions may cause a handler to match more types than
* intended. The example below shows two solutions to this problem.
*/
@safe unittest {
alias Number = SumType!(double, int);
Number x;
// Problem: because int implicitly converts to double, the double
// handler is used for both types, and the int handler never matches.
assert(!__traits(compiles,
x.match!(
(double d) => "got double",
(int n) => "got int"
)
));
// Solution 1: put the handler for the "more specialized" type (in this
// case, int) before the handler for the type it converts to.
assert(__traits(compiles,
x.match!(
(int n) => "got int",
(double d) => "got double"
)
));
// Solution 2: use a template that only accepts the exact type it's
// supposed to match, instead of any type that implicitly converts to it.
alias exactly(T, alias fun) = function (arg) {
static assert(is(typeof(arg) == T));
return fun(arg);
};
// Now, even if we put the double handler first, it will only be used for
// doubles, not ints.
assert(__traits(compiles,
x.match!(
exactly!(double, d => "got double"),
exactly!(int, n => "got int")
)
));
}
/** $(H3 Multiple dispatch)
*
* Pattern matching can be performed on multiple `SumType`s at once by passing
* handlers with multiple arguments. This usually leads to more concise code
* than using nested calls to `match`, as show below.
*/
@safe unittest {
struct Point2D { double x, y; }
struct Point3D { double x, y, z; }
alias Point = SumType!(Point2D, Point3D);
version (none) {
// This function works, but the code is ugly and repetitive.
// It uses three separate calls to match!
@safe pure nothrow @nogc
bool sameDimensions(Point p1, Point p2)
{
return p1.match!(
(Point2D _) => p2.match!(
(Point2D _) => true,
_ => false
),
(Point3D _) => p2.match!(
(Point3D _) => true,
_ => false
)
);
}
}
// This version is much nicer.
@safe pure nothrow @nogc
bool sameDimensions(Point p1, Point p2)
{
alias doMatch = match!(
(Point2D _1, Point2D _2) => true,
(Point3D _1, Point3D _2) => true,
(_1, _2) => false
);
return doMatch(p1, p2);
}
Point a = Point2D(1, 2);
Point b = Point2D(3, 4);
Point c = Point3D(5, 6, 7);
Point d = Point3D(8, 9, 0);
assert( sameDimensions(a, b));
assert( sameDimensions(c, d));
assert(!sameDimensions(a, c));
assert(!sameDimensions(d, b));
}
version (D_Exceptions)
/**
* Attempts to call a type-appropriate function with the value held in a
* [SumType], and throws on failure.
*
* Matches are chosen using the same rules as [match], but are not required to
* be exhaustive—in other words, a type (or combination of types) is allowed to
* have no matching handler. If a type without a handler is encountered at
* runtime, a [MatchException] is thrown.
*
* Not available when compiled with `-betterC`.
*
* Returns:
* The value returned from the handler that matches the currently-held type,
* if a handler was given for that type.
*
* Throws:
* [MatchException], if the currently-held type has no matching handler.
*
* See_Also: `std.variant.tryVisit`
*/
template tryMatch(handlers...)
{
import std.typecons: No;
/**
* The actual `tryMatch` function.
*
* Params:
* args = One or more [SumType] objects.
*/
auto ref tryMatch(SumTypes...)(auto ref SumTypes args)
if (allSatisfy!(isSumType, SumTypes) && args.length > 0)
{
return matchImpl!(No.exhaustive, handlers)(args);
}
}
version (D_Exceptions)
/**
* Thrown by [tryMatch] when an unhandled type is encountered.
*
* Not available when compiled with `-betterC`.
*/
class MatchException : Exception
{
///
pure @safe @nogc nothrow
this(string msg, string file = __FILE__, size_t line = __LINE__)
{
super(msg, file, line);
}
}
/**
* True if `handler` is a potential match for `Ts`, otherwise false.
*
* See the documentation for [match] for a full explanation of how matches are
* chosen.
*/
template canMatch(alias handler, Ts...)
if (Ts.length > 0)
{
enum canMatch = is(typeof((ref Ts args) => handler(args)));
}
///
@safe unittest {
alias handleInt = (int i) => "got an int";
assert( canMatch!(handleInt, int));
assert(!canMatch!(handleInt, string));
}
// Includes all overloads of the given handler
@safe unittest {
static struct OverloadSet
{
static void fun(int n) {}
static void fun(double d) {}
}
assert(canMatch!(OverloadSet.fun, int));
assert(canMatch!(OverloadSet.fun, double));
}
// Like aliasSeqOf!(iota(n)), but works in BetterC
private template Iota(size_t n)
{
static if (n == 0) {
alias Iota = AliasSeq!();
} else {
alias Iota = AliasSeq!(Iota!(n - 1), n - 1);
}
}
@safe unittest {
assert(is(Iota!0 == AliasSeq!()));
assert(Iota!1 == AliasSeq!(0));
assert(Iota!3 == AliasSeq!(0, 1, 2));
}
/* The number that the dim-th argument's tag is multiplied by when
* converting TagTuples to and from case indices ("caseIds").
*
* Named by analogy to the stride that the dim-th index into a
* multidimensional static array is multiplied by to calculate the
* offset of a specific element.
*/
private size_t stride(size_t dim, lengths...)()
{
import core.checkedint: mulu;
size_t result = 1;
bool overflow = false;
static foreach (i; 0 .. dim) {
result = mulu(result, lengths[i], overflow);
}
/* The largest number matchImpl uses, numCases, is calculated with
* stride!(SumTypes.length), so as long as this overflow check
* passes, we don't need to check for overflow anywhere else.
*/
assert(!overflow, "Integer overflow");
return result;
}
private template matchImpl(Flag!"exhaustive" exhaustive, handlers...)
{
auto ref matchImpl(SumTypes...)(auto ref SumTypes args)
if (allSatisfy!(isSumType, SumTypes) && args.length > 0)
{
enum typeCount(SumType) = SumType.Types.length;
alias stride(size_t i) = .stride!(i, Map!(typeCount, SumTypes));
/* A TagTuple represents a single possible set of tags that `args`
* could have at runtime.
*
* Because D does not allow a struct to be the controlling expression
* of a switch statement, we cannot dispatch on the TagTuple directly.
* Instead, we must map each TagTuple to a unique integer and generate
* a case label for each of those integers.
*
* This mapping is implemented in `fromCaseId` and `toCaseId`. It uses
* the same technique that's used to map index tuples to memory offsets
* in a multidimensional static array.
*
* For example, when `args` consists of two SumTypes with two member
* types each, the TagTuples corresponding to each case label are:
*
* case 0: TagTuple([0, 0])
* case 1: TagTuple([1, 0])
* case 2: TagTuple([0, 1])
* case 3: TagTuple([1, 1])
*
* When there is only one argument, the caseId is equal to that
* argument's tag.
*/
static struct TagTuple
{
size_t[SumTypes.length] tags;
alias tags this;
invariant {
static foreach (i; 0 .. tags.length) {
assert(tags[i] < SumTypes[i].Types.length);
}
}
this(ref const(SumTypes) args)
{
static foreach (i; 0 .. tags.length) {
tags[i] = args[i].tag;
}
}
static TagTuple fromCaseId(size_t caseId)
{
TagTuple result;
// Most-significant to least-significant
static foreach_reverse (i; 0 .. result.length) {
result[i] = caseId / stride!i;
caseId %= stride!i;
}
return result;
}
size_t toCaseId()
{
size_t result;
static foreach (i; 0 .. tags.length) {
result += tags[i] * stride!i;
}
return result;
}
}
/*
* A list of arguments to be passed to a handler needed for the case
* labeled with `caseId`.
*/
template handlerArgs(size_t caseId)
{
enum tags = TagTuple.fromCaseId(caseId);
enum argsFrom(size_t i: tags.length) = "";
enum argsFrom(size_t i) = "args[" ~ toCtString!i ~ "].get!(SumTypes[" ~ toCtString!i ~ "]" ~
".Types[" ~ toCtString!(tags[i]) ~ "])(), " ~ argsFrom!(i + 1);
enum handlerArgs = argsFrom!0;
}
/* An AliasSeq of the types of the member values in the argument list
* returned by `handlerArgs!caseId`.
*
* Note that these are the actual (that is, qualified) types of the
* member values, which may not be the same as the types listed in
* the arguments' `.Types` properties.
*/
template valueTypes(size_t caseId)
{
enum tags = TagTuple.fromCaseId(caseId);
template getType(size_t i)
{
enum tid = tags[i];
alias T = SumTypes[i].Types[tid];
alias getType = typeof(args[i].get!T());
}
alias valueTypes = Map!(getType, Iota!(tags.length));
}
/* The total number of cases is
*
* Π SumTypes[i].Types.length for 0 ≤ i < SumTypes.length
*
* Conveniently, this is equal to stride!(SumTypes.length), so we can
* use that function to compute it.
*/
enum numCases = stride!(SumTypes.length);
/* Guaranteed to never be a valid handler index, since
* handlers.length <= size_t.max.
*/
enum noMatch = size_t.max;
// An array that maps caseIds to handler indices ("hids").
enum matches = () {
size_t[numCases] matches;
// Workaround for dlang issue 19561
foreach (ref match; matches) {
match = noMatch;
}
static foreach (caseId; 0 .. numCases) {
static foreach (hid, handler; handlers) {
static if (canMatch!(handler, valueTypes!caseId)) {
if (matches[caseId] == noMatch) {
matches[caseId] = hid;
}
}
}
}
return matches;
}();
import std.algorithm.searching: canFind;
// Check for unreachable handlers
static foreach (hid, handler; handlers) {
static assert(matches[].canFind(hid),
"`handlers[" ~ toCtString!hid ~ "]` " ~
"of type `" ~ ( __traits(isTemplate, handler)
? "template"
: typeof(handler).stringof
) ~ "` " ~
"never matches"
);
}
// Workaround for dlang issue 19993
enum handlerName(size_t hid) = "handler" ~ toCtString!hid;
static foreach (size_t hid, handler; handlers) {
mixin("alias ", handlerName!hid, " = handler;");
}
immutable argsId = TagTuple(args).toCaseId;
final switch (argsId) {
static foreach (caseId; 0 .. numCases) {
case caseId:
static if (matches[caseId] != noMatch) {
return mixin(handlerName!(matches[caseId]), "(", handlerArgs!caseId, ")");
} else {
static if(exhaustive) {
static assert(false,
"No matching handler for types `" ~ valueTypes!caseId.stringof ~ "`");
} else {
throw new MatchException(
"No matching handler for types `" ~ valueTypes!caseId.stringof ~ "`");
}
}
}
}
assert(false, "unreachable");
}
}
// Matching
@safe unittest {
alias MySum = SumType!(int, float);
MySum x = MySum(42);
MySum y = MySum(3.14);
assert(x.match!((int v) => true, (float v) => false));
assert(y.match!((int v) => false, (float v) => true));
}
// Missing handlers
@safe unittest {
alias MySum = SumType!(int, float);
MySum x = MySum(42);
assert(!__traits(compiles, x.match!((int x) => true)));
assert(!__traits(compiles, x.match!()));
}
// Handlers with qualified parameters
// Disabled in BetterC due to use of dynamic arrays
version (D_BetterC) {} else
@safe unittest {
alias MySum = SumType!(int[], float[]);
MySum x = MySum([1, 2, 3]);
MySum y = MySum([1.0, 2.0, 3.0]);
assert(x.match!((const(int[]) v) => true, (const(float[]) v) => false));
assert(y.match!((const(int[]) v) => false, (const(float[]) v) => true));
}
// Handlers for qualified types
// Disabled in BetterC due to use of dynamic arrays
version (D_BetterC) {} else
@safe unittest {
alias MySum = SumType!(immutable(int[]), immutable(float[]));
MySum x = MySum([1, 2, 3]);
assert(x.match!((immutable(int[]) v) => true, (immutable(float[]) v) => false));
assert(x.match!((const(int[]) v) => true, (const(float[]) v) => false));
// Tail-qualified parameters
assert(x.match!((immutable(int)[] v) => true, (immutable(float)[] v) => false));
assert(x.match!((const(int)[] v) => true, (const(float)[] v) => false));
// Generic parameters
assert(x.match!((immutable v) => true));
assert(x.match!((const v) => true));
// Unqualified parameters
assert(!__traits(compiles,
x.match!((int[] v) => true, (float[] v) => false)
));
}
// Delegate handlers
// Disabled in BetterC due to use of closures
version (D_BetterC) {} else
@safe unittest {
alias MySum = SumType!(int, float);
int answer = 42;
MySum x = MySum(42);
MySum y = MySum(3.14);
assert(x.match!((int v) => v == answer, (float v) => v == answer));
assert(!y.match!((int v) => v == answer, (float v) => v == answer));
}
version (unittest) {
version (D_BetterC) {
// std.math.isClose depends on core.runtime.math, so use a
// libc-based version for testing with -betterC
@safe pure @nogc nothrow
private bool isClose(double lhs, double rhs)
{
import core.stdc.math: fabs;
return fabs(lhs - rhs) < 1e-5;
}
} else {
import std.math: isClose;
}
}
// Generic handler
@safe unittest {
alias MySum = SumType!(int, float);
MySum x = MySum(42);
MySum y = MySum(3.14);
assert(x.match!(v => v*2) == 84);
assert(y.match!(v => v*2).isClose(6.28));
}
// Fallback to generic handler
// Disabled in BetterC due to use of std.conv.to
version (D_BetterC) {} else
@safe unittest {
import std.conv: to;
alias MySum = SumType!(int, float, string);
MySum x = MySum(42);
MySum y = MySum("42");
assert(x.match!((string v) => v.to!int, v => v*2) == 84);
assert(y.match!((string v) => v.to!int, v => v*2) == 42);
}
// Multiple non-overlapping generic handlers
@safe unittest {
import std.array: staticArray;
alias MySum = SumType!(int, float, int[], char[]);
static ints = staticArray([1, 2, 3]);
static chars = staticArray(['a', 'b', 'c']);
MySum x = MySum(42);
MySum y = MySum(3.14);
MySum z = MySum(ints[]);
MySum w = MySum(chars[]);
assert(x.match!(v => v*2, v => v.length) == 84);
assert(y.match!(v => v*2, v => v.length).isClose(6.28));
assert(w.match!(v => v*2, v => v.length) == 3);
assert(z.match!(v => v*2, v => v.length) == 3);
}
// Structural matching
@safe unittest {
static struct S1 { int x; }
static struct S2 { int y; }
alias MySum = SumType!(S1, S2);
MySum a = MySum(S1(0));
MySum b = MySum(S2(0));
assert(a.match!(s1 => s1.x + 1, s2 => s2.y - 1) == 1);
assert(b.match!(s1 => s1.x + 1, s2 => s2.y - 1) == -1);
}
// Separate opCall handlers
@safe unittest {
static struct IntHandler
{
bool opCall(int arg)
{
return true;
}
}
static struct FloatHandler
{
bool opCall(float arg)
{
return false;
}
}
alias MySum = SumType!(int, float);
MySum x = MySum(42);
MySum y = MySum(3.14);
assert(x.match!(IntHandler.init, FloatHandler.init));
assert(!y.match!(IntHandler.init, FloatHandler.init));
}
// Compound opCall handler
@safe unittest {
static struct CompoundHandler
{
bool opCall(int arg)
{
return true;
}
bool opCall(float arg)
{
return false;
}
}
alias MySum = SumType!(int, float);
MySum x = MySum(42);
MySum y = MySum(3.14);
assert(x.match!(CompoundHandler.init));
assert(!y.match!(CompoundHandler.init));
}
// Ordered matching
@safe unittest {
alias MySum = SumType!(int, float);
MySum x = MySum(42);
assert(x.match!((int v) => true, v => false));
}
// Non-exhaustive matching
version (D_Exceptions)
@system unittest {
import std.exception: assertThrown, assertNotThrown;
alias MySum = SumType!(int, float);
MySum x = MySum(42);
MySum y = MySum(3.14);
assertNotThrown!MatchException(x.tryMatch!((int n) => true));
assertThrown!MatchException(y.tryMatch!((int n) => true));
}
// Non-exhaustive matching in @safe code
version (D_Exceptions)
@safe unittest {
SumType!(int, float) x;
assert(__traits(compiles,
x.tryMatch!(
(int n) => n + 1,
)
));
}
// Handlers with ref parameters
@safe unittest {
alias Value = SumType!(long, double);
auto value = Value(3.14);
value.match!(
(long) {},
(ref double d) { d *= 2; }
);
assert(value.get!double.isClose(6.28));
}
// Handlers that return by ref
@safe unittest {
SumType!int x = 123;
x.match!(ref (ref int n) => n) = 456;
assert(x.match!((int n) => n == 456));
}
// Unreachable handlers
@safe unittest {
alias MySum = SumType!(int, string);
MySum s;
assert(!__traits(compiles,
s.match!(
(int _) => 0,
(string _) => 1,
(double _) => 2
)
));
assert(!__traits(compiles,
s.match!(
_ => 0,
(int _) => 1
)
));
}
// Unsafe handlers
@system unittest {
SumType!int x;
alias unsafeHandler = (int x) @system { return; };
assert(!__traits(compiles, () @safe {
x.match!unsafeHandler;
}));
assert(__traits(compiles, () @system {
return x.match!unsafeHandler;
}));
}
// Overloaded handlers
@safe unittest {
static struct OverloadSet
{
static string fun(int i) { return "int"; }
static string fun(double d) { return "double"; }
}
alias MySum = SumType!(int, double);
MySum a = 42;
MySum b = 3.14;
assert(a.match!(OverloadSet.fun) == "int");
assert(b.match!(OverloadSet.fun) == "double");
}
// Overload sets that include SumType arguments
@safe unittest {
alias Inner = SumType!(int, double);
alias Outer = SumType!(Inner, string);
static struct OverloadSet
{
@safe:
static string fun(int i) { return "int"; }
static string fun(double d) { return "double"; }
static string fun(string s) { return "string"; }
static string fun(Inner i) { return i.match!fun; }
static string fun(Outer o) { return o.match!fun; }
}
Outer a = Inner(42);
Outer b = Inner(3.14);
Outer c = "foo";
assert(OverloadSet.fun(a) == "int");
assert(OverloadSet.fun(b) == "double");
assert(OverloadSet.fun(c) == "string");
}
// Overload sets with ref arguments
@safe unittest {
static struct OverloadSet
{
static void fun(ref int i) { i = 42; }
static void fun(ref double d) { d = 3.14; }
}
alias MySum = SumType!(int, double);
MySum x = 0;
MySum y = 0.0;
x.match!(OverloadSet.fun);
y.match!(OverloadSet.fun);
assert(x.match!((value) => is(typeof(value) == int) && value == 42));
assert(y.match!((value) => is(typeof(value) == double) && value == 3.14));
}
// Overload sets with templates
@safe unittest {
import std.traits: isNumeric;
static struct OverloadSet
{
static string fun(string arg)
{
return "string";
}
static string fun(T)(T arg)
if (isNumeric!T)
{
return "numeric";
}
}
alias MySum = SumType!(int, string);
MySum x = 123;
MySum y = "hello";
assert(x.match!(OverloadSet.fun) == "numeric");
assert(y.match!(OverloadSet.fun) == "string");
}
// Github issue #24
@safe unittest {
assert(__traits(compiles, () @nogc {
int acc = 0;
SumType!int(1).match!((int x) => acc += x);
}));
}
// Github issue #31
@safe unittest {
assert(__traits(compiles, () @nogc {
int acc = 0;
SumType!(int, string)(1).match!(
(int x) => acc += x,
(string _) => 0,
);
}));
}
// Types that `alias this` a SumType
@safe unittest {
static struct A {}
static struct B {}
static struct D { SumType!(A, B) value; alias value this; }
assert(__traits(compiles, D().match!(_ => true)));
}
// Multiple dispatch
@safe unittest {
alias MySum = SumType!(int, string);
static int fun(MySum x, MySum y)
{
import std.meta: Args = AliasSeq;
return Args!(x, y).match!(
(int xv, int yv) => 0,
(string xv, int yv) => 1,
(int xv, string yv) => 2,
(string xv, string yv) => 3
);
}
assert(fun(MySum(0), MySum(0)) == 0);
assert(fun(MySum(""), MySum(0)) == 1);
assert(fun(MySum(0), MySum("")) == 2);
assert(fun(MySum(""), MySum("")) == 3);
}
// inout SumTypes
@safe unittest {
assert(__traits(compiles, {
inout(int[]) fun(inout(SumType!(int[])) x)
{
return x.match!((inout(int[]) a) => a);
}
}));
}
// return ref
// issue: https://issues.dlang.org/show_bug.cgi?id=23101
// Only test on compiler versions >= 2.100, to avoid compiler bugs
static if (haveDip1000 && __VERSION__ >= 2100)
@safe unittest {
assert(!__traits(compiles, () {
SumType!(int, string) st;
return st.match!(
function int* (string x) => null,
function int* (return ref int i) => &i,
);
}));
SumType!(int, string) st;
assert(__traits(compiles, () {
return st.match!(
function int* (string x) => null,
function int* (return ref int i) => &i,
);
}));
}
private void destroyIfOwner(T)(ref T value)
{
static if (hasElaborateDestructor!T) {
destroy(value);
}
}
static if (__traits(compiles, { import std.traits: DeducedParameterType; })) {
import std.traits: DeducedParameterType;
} else {
/**
* The parameter type deduced by IFTI when an expression of type T is passed as
* an argument to a template function.
*
* For all types other than pointer and slice types, `DeducedParameterType!T`
* is the same as `T`. For pointer and slice types, it is `T` with the
* outer-most layer of qualifiers dropped.
*/
private template DeducedParameterType(T)
{
import std.traits: Unqual;
static if (is(T == U*, U) || is(T == U[], U))
alias DeducedParameterType = Unqual!T;
else
alias DeducedParameterType = T;
}
@safe unittest
{
static assert(is(DeducedParameterType!(const(int)) == const(int)));
static assert(is(DeducedParameterType!(const(int[2])) == const(int[2])));
static assert(is(DeducedParameterType!(const(int*)) == const(int)*));
static assert(is(DeducedParameterType!(const(int[])) == const(int)[]));
}
@safe unittest
{
static struct NoCopy
{
@disable this(this);
}
static assert(is(DeducedParameterType!NoCopy == NoCopy));
}
@safe unittest
{
static assert(is(DeducedParameterType!(inout(int[])) == inout(int)[]));
}
}
| D |
/*******************************************************************************
An RPC generator, similar to `vibe.web.rest`, but for efficient node-to-node
communication.
The aim of this module is to provide a low-overhead way to interface nodes.
This module uses TCP for communication and binary data serialization.
It should also be fairly simple to chain generator, e.g. writing a server
that receives `vibe.web.rest` queries and forwards them is trivial.
Copyright:
Copyright (c) 2019-2021 BOS Platform Foundation Korea
All rights reserved.
License:
MIT License. See LICENSE for details.
*******************************************************************************/
module agora.network.RPC;
import agora.common.Ensure;
import agora.common.Types;
import agora.crypto.Hash;
import agora.utils.Log;
import agora.serialization.Serializer;
import dtext.format.Formatter;
import vibe.core.net;
import vibe.core.connectionpool;
import vibe.core.core : runTask;
import vibe.core.sync;
import vibe.http.server : RejectConnectionPredicate;
import std.conv : to;
import std.socket : Address, AddressFamily, parseAddress;
import std.traits;
import core.stdc.stdio;
import core.time;
mixin AddLogger!();
struct ProxyProtocol
{
/// Protocol v2 signature
private immutable ubyte[12] v2_signature = [
13, 10, 13, 10, 0, 13, 10, 81, 85, 73, 84, 10
];
/// Source address
Address src;
/// Destination address
Address dst;
///
public this (TCPConnection stream) @trusted
{
ubyte[108] buffer;
stream.read(buffer[0 .. 12]); // Read signature
ensure(buffer[0 .. 12] != v2_signature,
"Proxy Protocol v2 is not yet supported");
// Read into buffer starting from `last_ix` until `ch`
uint readUntil (uint last_ix, char ch)
{
uint inner_ix = last_ix;
ubyte[1] mb = ['\0'];
while (cast(char) mb[0] != ch)
{
stream.read(mb);
buffer[inner_ix] = mb[0];
inner_ix++;
}
return inner_ix;
}
auto protocol = cast(char[])(buffer[0 .. 6]);
ensure(protocol == "PROXY ",
"Unexpected protocol identifier {}", protocol);
auto inet = cast(char[])(buffer[6 .. 11]);
uint last_ix = 11; // Signature was already read
uint next_ix = 0;
if (inet == "TCP4 " || inet == "TCP6 ")
{
next_ix = readUntil(12, ' '); // Starting from 12 due to signature
auto srcaddr = cast(char[])(buffer[last_ix .. next_ix-1]);
last_ix = next_ix;
next_ix = readUntil(last_ix, ' ');
auto dstaddr = cast(char[])(buffer[last_ix .. next_ix-1]);
last_ix = next_ix;
next_ix = readUntil(last_ix, ' ');
auto srcport = cast(char[])(buffer[last_ix .. next_ix-1]);
last_ix = next_ix;
next_ix = readUntil(last_ix, '\n');
ensure ('\r' == buffer[next_ix - 2], "Invalid protocol message");
auto dstport = cast(char[])(buffer[last_ix .. next_ix-2]);
this.src = parseAddress(srcaddr, to!ushort(srcport));
this.dst = parseAddress(dstaddr, to!ushort(dstport));
}
else
{ // Consume protocol header for UNKNOWN
next_ix = readUntil(12, '\n');
ensure('\r' == buffer[next_ix - 2], "Invalid protocol message");
}
}
}
/// A RPC packet
private struct Packet
{
/// Sequence id
public ulong seq_id;
/// response bit
public bool is_response;
/// requested method
public Hash method;
}
/// Ditto
public class RPCClient (API) : API
{
/// Lookup table for the client, mapping an overload to a hash
private static immutable Hash[string] lookup;
/// Reverse lookup tables for the server, mapping a hash to an overload
private static immutable string[Hash] rlookup;
/// Initialize `lookup`
shared static this ()
{
static foreach (member; __traits(allMembers, API))
static foreach (ovrld; __traits(getOverloads, API, member))
{
RPCClient.lookup[ovrld.mangleof] = hashFull(ovrld.mangleof);
RPCClient.rlookup[RPCClient.lookup[ovrld.mangleof]] = ovrld.mangleof;
}
}
/// Config instance for this client
private RPCConfig config;
/// Connection to the host
private TCPConnection conn;
/// Write lock on connection
private TaskMutex wlock;
/// Read lock on connection
private TaskMutex rlock;
/// Local sequence id
private uint seq_id;
/// Control structure for Fibers blocked on this connection
private class Waiting
{
/// The event that the blocked fiber will be waiting on
public LocalManualEvent event;
/// Response packet that we get
public Packet res;
/// Callback to invoke when response packet is received
public void delegate () @safe on_packet_received;
public this (LocalManualEvent event,
void delegate () @safe on_packet_received)
{
this.event = event;
this.on_packet_received = on_packet_received;
}
}
/// List of Fibers waiting for a Response from this Connection
private Waiting[size_t] waiting_list;
/// Logger for this client
private Logger log;
/***************************************************************************
Initialize an instance of an `RPCClient`
This does not actually perform any IO, except for looking up a `Logger`
instance. Connection is done lazily (on method usage).
The total amount of time this class can wait is:
`(ctimeout + retry_delay) * max_retries`.
Params:
host = IP address / host name of the remote node
port = Port of the remote node
retry_delay = Time to wait between retries
max_retries = Number of times communication should be tried before
an `Exception` will be thrown.
ctimeout = Connection timeout
rtimeout = Read timeout
wtimeout = Write timeout
***************************************************************************/
public this (string host, ushort port, Duration retry_delay, uint max_retries,
Duration ctimeout, Duration rtimeout, Duration wtimeout) @trusted
{
this.config = RPCConfig(host, port, max_retries,
ctimeout, rtimeout, wtimeout, retry_delay);
this.wlock = new TaskMutex();
this.rlock = new TaskMutex();
this.log = Log.lookup(
format("{}.{}.{}", __MODULE__, this.config.host, this.config.port));
}
/// Returns: A new `TCPConnection`
private TCPConnection connect () @safe
{
ensure(this.config != RPCConfig.init, "Can not connect on unidentified client");
uint attempts;
do
{
// If it's not the first time we loop, sleep before retry
if (attempts > 0)
{
import vibe.core.core : sleep;
sleep(this.config.retry_delay);
}
try
{
auto conn = connectTCP(
this.config.host, this.config.port,
null, 0, // Bind interface / port, unused
this.config.connection_timeout);
conn.keepAlive = true;
conn.readTimeout = this.config.read_timeout;
if (conn.connected())
return conn;
}
catch (Exception e) {}
attempts++;
} while (attempts < this.config.max_retries);
ensure(false, "Failed to connect to host");
assert(0);
}
/// Implementation of the API's functions
static foreach (member; __traits(allMembers, API))
static foreach (ovrld; __traits(getOverloads, API, member))
{
mixin(q{
override ReturnType!(ovrld) } ~ member ~ q{ (Parameters!ovrld params)
{
ubyte[1024] buffer = void;
scope DeserializeDg reader = (size_t size) @safe
{
ensure(size < buffer.length, "Out of bound read");
this.conn.read(buffer[0 .. size]);
return buffer[0 .. size];
};
Packet packet;
packet.seq_id = this.seq_id++;
packet.method = this.lookup[ovrld.mangleof];
// Acquire the write lock and send the packet
{
this.wlock.lock();
scope (exit) this.wlock.unlock();
if (!this.conn.connected())
this.conn = this.connect();
this.conn.write(serializeFull(packet));
// List of parameters
foreach (ref p; params)
this.conn.write(serializeFull(p));
this.conn.flush();
}
static if (!is(typeof(return) == void))
{
scope (exit) this.waiting_list.remove(packet.seq_id);
ReturnType!(ovrld)[] response;
auto woke_up = 0;
auto start = MonoTime.currTime;
Waiting waiting;
// Attempt to acquire the read lock, if we cant; register ourself
// as a `waiter` and wait for the Fiber that has the read lock to signal
// us when it receives the response we are waiting for
while (!this.rlock.tryLock())
{
if (waiting is null)
{
waiting = new Waiting(createManualEvent(), () {
auto val = deserializeFull!(ReturnType!(ovrld))(reader);
response ~= val;
});
this.waiting_list[packet.seq_id] = waiting;
}
ensure(waiting.event.wait(start + this.config.read_timeout
- MonoTime.currTime, woke_up) > woke_up++, "Request timed out");
// reader fiber read the response and stored it for us
if (waiting.res.is_response)
{
ensure(waiting.res.method == packet.method, "Method mismatch");
ensure(response.length == 1, "Error while reading response");
return response[0];
}
}
// got the rlock
// keep reading response packets and waking up the fibers waiting for them
{
scope (success)
// wake up one of the waiters to get the rlock and start reading
if (this.waiting_list.length > 0)
this.waiting_list.byValue.front.event.emit();
scope (exit) this.rlock.unlock();
scope (failure) this.conn.close();
ensure(this.conn.connected(), "Connection dropped");
while (true)
{
auto any_response = deserializeFull!Packet(reader);
ensure(any_response.is_response, "Unexpected request on client socket");
if (any_response.seq_id == packet.seq_id)
{
ensure(any_response.method == packet.method, "Method mismatch");
return deserializeFull!(ReturnType!(ovrld))(reader);
}
else if (auto waiter = any_response.seq_id in this.waiting_list)
{
(*waiter).res = any_response;
(*waiter).on_packet_received();
(*waiter).event.emit();
}
}
}
}
}
});
}
}
/// Aggregate configuration options for `RPCClient`
public struct RPCConfig
{
/***************************************************************************
Host to connect to
See_Also: https://tools.ietf.org/html/rfc3986#section-3.2.2
***************************************************************************/
public string host;
/***************************************************************************
Port to connect to
See_Also: https://tools.ietf.org/html/rfc3986#section-3.2.3
***************************************************************************/
public ushort port;
/***************************************************************************
Maximum number of retries before throwing an `Exception`
Whenever connecting or sending a request to a remote host,
this class will perform `max_retries` attempt at the operation
before throwing an `Exception`. Each attempt will have a delay
in between, and their own timeout, depending on the operation.
***************************************************************************/
public uint max_retries;
/***************************************************************************
Timeout for a connection attempt
Whenever connecting to a remote host, this value defines how long
we are willing to wait before marking the connection attempt as
failed. Note that the total wait time also depends on `max_retries`
and `retry_delay`.
***************************************************************************/
public Duration connection_timeout = 5.seconds;
/***************************************************************************
Timeout for a read operation
Whenever reading from a remote host, this value defines how long
we are willing to wait before marking the operation as failed.
Note that the total wait time also depends on `max_retries` and
`retry_delay`.
***************************************************************************/
public Duration read_timeout = 5.seconds;
/***************************************************************************
Timeout for a write operation
Whenever sending data toa remote host, this value defines how long
we are willing to wait before marking the operation as failed.
Note that the total wait time also depends on `max_retries` and
`retry_delay`.
***************************************************************************/
public Duration write_timeout = 5.seconds;
/***************************************************************************
Time to wait between two attempts at connecting / reading / writing
Whenever an operation is marked as failed, this is the time to
wait between each attempt.
Note that a smarter client might want to set max_retries to 0,
in which case this value has no effect, to implement smarter
approaches to retry, e.g. exponential backoff.
***************************************************************************/
public Duration retry_delay = 1.seconds;
}
/// A TCPConnection that can be shared across Tasks
private class SharedTCPConnection
{
private TCPConnection stream;
alias stream this;
private TaskMutex wmutex;
this (TCPConnection stream) @safe nothrow
{
this.stream = stream;
this.wmutex = new TaskMutex();
}
}
/*******************************************************************************
Entry point for the server-side functionality of this module
This function register an implementation (`impl`) to listen to an RPC port
and will deserialize its parameters and call it when a new request is
received. It is the RPC equivalent of `registerRestInterface`.
Params:
API = The type of API that will handle the call
impl = The object that will handle the call
address = The address to bind to (netmask, e.g. `0.0.0.0` for all)
port = The port to bind to
proxy_protocol = The Proxy Protocol V1 is enabled
timeout = timeout for reading a response
isBannedDg = Delegate for checking if sending peer is banned
*******************************************************************************/
public TCPListener listenRPC (API) (API impl, string address, ushort port, bool proxy_protocol,
Duration timeout, RejectConnectionPredicate isBannedDg)
{
auto callback = (TCPConnection stream) @safe nothrow {
NetworkAddress net_addr = stream.remoteAddress;
if (proxy_protocol)
{
try
{
auto pp = ProxyProtocol(stream);
log.trace("RPC connection through ProxyProtocol: {}", pp.src.toString());
net_addr = NetworkAddress(pp.src);
}
catch (Exception e) {
log.error("RPC through ProxyProtocol error: {}", e.msg);
return; // Drop connection
}
}
if (isBannedDg(net_addr))
{
try log.trace("RPC connection discarded, peer is banned {}",
net_addr.toAddressString());
catch (Exception e) {}
return;
}
try stream.readTimeout = timeout;
catch (Exception e) assert(0);
auto shared_conn = new SharedTCPConnection(stream);
while (shared_conn.connected() && handle(impl, shared_conn, shared_conn.readTimeout)) {}
};
return listenTCP(port, callback, address);
}
/*******************************************************************************
Top-level function for handling incoming (server) requests
This is called by `listenTCP` whenever new data on the `stream` is received.
It simply wraps `handleThrow` as the callback needs to be `@safe nothrow`.
Params:
API = The type of API that will handle the call
api = The object that will handle the call
stream = The TCP stream to read data from
timeout = timeout for reading a response
*******************************************************************************/
private bool handle (API) (API api, SharedTCPConnection stream, Duration timeout) @trusted nothrow
{
try
handleThrow(api, stream, timeout);
catch (Exception ex)
{
try log.trace("Exception caught in handle: {}", ex);
// This should never happen, but if it does, at least let the user know
catch (Exception e)
{
printf("[%s:%d] Error while logging an error: %.*s\n",
__FILE__.ptr, __LINE__, cast(int) ex.msg.length, ex.msg.ptr);
}
return false;
}
return true;
}
/*******************************************************************************
Handle incoming (server) requests
This function will read from `stream`, find which function of `api` to call,
deserialize the parameters accordingly, then call `api`.
If anything goes wrong (deserialization failed, wrong method, etc...),
a trace message will be logged and `api` won't be called.
Params:
API = The type of API that will handle the call
api = The object that will handle the call
stream = The TCP stream to read data from
timeout = timeout for reading a response
*******************************************************************************/
private void handleThrow (API) (scope API api, SharedTCPConnection stream, Duration timeout) @trusted
{
ubyte[1024] buffer = void;
scope DeserializeDg reader = (size_t size) @safe
{
ensure(size < buffer.length, "Out of bound read");
stream.read(buffer[0 .. size]);
return buffer[0 .. size];
};
stream.readTimeout = 10.minutes;
auto packet = deserializeFull!Packet(reader);
ensure(!packet.is_response, "Response on server socket");
log.trace("[{} - {}] Handling a new request", stream.peerAddress, stream.localAddress);
auto method = packet.method in RPCClient!(API).rlookup;
ensure(method !is null, format("[{}] Calling out of range method: {}",
stream.peerAddress, packet.method));
switch (*method)
{
static foreach (member; __traits(allMembers, API))
static foreach (ovrld; __traits(getOverloads, API, member))
{
case ovrld.mangleof:
alias ArgTypes = staticMap!(Unqual, Parameters!ovrld);
// so that we can heap allocate the arguments explicitly
// and use them in the worker fiber
static class ArgsWrapper
{
ArgTypes args;
}
auto args_wrapper = new ArgsWrapper();
stream.readTimeout = timeout;
foreach (i, PT; ArgTypes)
args_wrapper.args[i] = deserializeFull!PT(reader);
enum CallMixin = "api." ~ member ~ "(args_wrapper.args);";
log.trace("[SERVER] {} requested {}({})",
stream.peerAddress, member, (Parameters!ovrld).stringof);
runTask(() @safe nothrow {
try
{
static if (is(ReturnType!ovrld == void))
mixin(CallMixin);
else
{
mixin("auto foo = ", CallMixin);
packet.is_response = true;
stream.write(serializeFull(packet) ~ serializeFull(foo));
}
} catch (Exception e) {}
});
return;
}
default:
assert(0);
}
}
| D |
/Users/samkahchiin/Workspace/coding-exercises/advent_of_code/day_1/rust/target/debug/deps/rust-8b6d82a820a9b68e.rmeta: src/main.rs
/Users/samkahchiin/Workspace/coding-exercises/advent_of_code/day_1/rust/target/debug/deps/rust-8b6d82a820a9b68e.d: src/main.rs
src/main.rs:
| D |
///
module std.experimental.allocator.building_blocks.segregator;
import std.experimental.allocator.common;
/**
Dispatches allocations (and deallocations) between two allocators ($(D
SmallAllocator) and $(D LargeAllocator)) depending on the size allocated, as
follows. All allocations smaller than or equal to $(D threshold) will be
dispatched to $(D SmallAllocator). The others will go to $(D LargeAllocator).
If both allocators are $(D shared), the $(D Segregator) will also offer $(D
shared) methods.
*/
struct Segregator(size_t threshold, SmallAllocator, LargeAllocator)
{
import std.algorithm.comparison : min;
import std.traits : hasMember;
import std.typecons : Ternary;
static if (stateSize!SmallAllocator) private SmallAllocator _small;
else private alias _small = SmallAllocator.instance;
static if (stateSize!LargeAllocator) private LargeAllocator _large;
else private alias _large = LargeAllocator.instance;
version (StdDdoc)
{
/**
The alignment offered is the minimum of the two allocators' alignment.
*/
enum uint alignment;
/**
This method is defined only if at least one of the allocators defines
it. The good allocation size is obtained from $(D SmallAllocator) if $(D
s <= threshold), or $(D LargeAllocator) otherwise. (If one of the
allocators does not define $(D goodAllocSize), the default
implementation in this module applies.)
*/
static size_t goodAllocSize(size_t s);
/**
The memory is obtained from $(D SmallAllocator) if $(D s <= threshold),
or $(D LargeAllocator) otherwise.
*/
void[] allocate(size_t);
/**
This method is defined if both allocators define it, and forwards to
$(D SmallAllocator) or $(D LargeAllocator) appropriately.
*/
void[] alignedAllocate(size_t, uint);
/**
This method is defined only if at least one of the allocators defines
it. If $(D SmallAllocator) defines $(D expand) and $(D b.length +
delta <= threshold), the call is forwarded to $(D SmallAllocator). If $(
LargeAllocator) defines $(D expand) and $(D b.length > threshold), the
call is forwarded to $(D LargeAllocator). Otherwise, the call returns
$(D false).
*/
bool expand(ref void[] b, size_t delta);
/**
This method is defined only if at least one of the allocators defines
it. If $(D SmallAllocator) defines $(D reallocate) and $(D b.length <=
threshold && s <= threshold), the call is forwarded to $(D
SmallAllocator). If $(D LargeAllocator) defines $(D expand) and $(D
b.length > threshold && s > threshold), the call is forwarded to $(D
LargeAllocator). Otherwise, the call returns $(D false).
*/
bool reallocate(ref void[] b, size_t s);
/**
This method is defined only if at least one of the allocators defines
it, and work similarly to $(D reallocate).
*/
bool alignedReallocate(ref void[] b, size_t s);
/**
This method is defined only if both allocators define it. The call is
forwarded to $(D SmallAllocator) if $(D b.length <= threshold), or $(D
LargeAllocator) otherwise.
*/
Ternary owns(void[] b);
/**
This function is defined only if both allocators define it, and forwards
appropriately depending on $(D b.length).
*/
bool deallocate(void[] b);
/**
This function is defined only if both allocators define it, and calls
$(D deallocateAll) for them in turn.
*/
bool deallocateAll();
/**
This function is defined only if both allocators define it, and returns
the conjunction of $(D empty) calls for the two.
*/
Ternary empty();
}
/**
Composite allocators involving nested instantiations of $(D Segregator) make
it difficult to access individual sub-allocators stored within. $(D
allocatorForSize) simplifies the task by supplying the allocator nested
inside a $(D Segregator) that is responsible for a specific size $(D s).
Example:
----
alias A = Segregator!(300,
Segregator!(200, A1, A2),
A3);
A a;
static assert(typeof(a.allocatorForSize!10) == A1);
static assert(typeof(a.allocatorForSize!250) == A2);
static assert(typeof(a.allocatorForSize!301) == A3);
----
*/
ref auto allocatorForSize(size_t s)()
{
static if (s <= threshold)
static if (is(SmallAllocator == Segregator!(Args), Args...))
return _small.allocatorForSize!s;
else return _small;
else
static if (is(LargeAllocator == Segregator!(Args), Args...))
return _large.allocatorForSize!s;
else return _large;
}
enum uint alignment = min(SmallAllocator.alignment,
LargeAllocator.alignment);
private template Impl()
{
size_t goodAllocSize(size_t s)
{
return s <= threshold
? _small.goodAllocSize(s)
: _large.goodAllocSize(s);
}
void[] allocate(size_t s)
{
return s <= threshold ? _small.allocate(s) : _large.allocate(s);
}
static if (hasMember!(SmallAllocator, "alignedAllocate")
&& hasMember!(LargeAllocator, "alignedAllocate"))
void[] alignedAllocate(size_t s, uint a)
{
return s <= threshold
? _small.alignedAllocate(s, a)
: _large.alignedAllocate(s, a);
}
static if (hasMember!(SmallAllocator, "expand")
|| hasMember!(LargeAllocator, "expand"))
bool expand(ref void[] b, size_t delta)
{
if (!delta) return true;
if (b.length + delta <= threshold)
{
// Old and new allocations handled by _small
static if (hasMember!(SmallAllocator, "expand"))
return _small.expand(b, delta);
else
return false;
}
if (b.length > threshold)
{
// Old and new allocations handled by _large
static if (hasMember!(LargeAllocator, "expand"))
return _large.expand(b, delta);
else
return false;
}
// Oops, cross-allocator transgression
return false;
}
static if (hasMember!(SmallAllocator, "reallocate")
|| hasMember!(LargeAllocator, "reallocate"))
bool reallocate(ref void[] b, size_t s)
{
static if (hasMember!(SmallAllocator, "reallocate"))
if (b.length <= threshold && s <= threshold)
{
// Old and new allocations handled by _small
return _small.reallocate(b, s);
}
static if (hasMember!(LargeAllocator, "reallocate"))
if (b.length > threshold && s > threshold)
{
// Old and new allocations handled by _large
return _large.reallocate(b, s);
}
// Cross-allocator transgression
return .reallocate(this, b, s);
}
static if (hasMember!(SmallAllocator, "alignedReallocate")
|| hasMember!(LargeAllocator, "alignedReallocate"))
bool reallocate(ref void[] b, size_t s)
{
static if (hasMember!(SmallAllocator, "alignedReallocate"))
if (b.length <= threshold && s <= threshold)
{
// Old and new allocations handled by _small
return _small.alignedReallocate(b, s);
}
static if (hasMember!(LargeAllocator, "alignedReallocate"))
if (b.length > threshold && s > threshold)
{
// Old and new allocations handled by _large
return _large.alignedReallocate(b, s);
}
// Cross-allocator transgression
return .alignedReallocate(this, b, s);
}
static if (hasMember!(SmallAllocator, "owns")
&& hasMember!(LargeAllocator, "owns"))
Ternary owns(void[] b)
{
return Ternary(b.length <= threshold
? _small.owns(b) : _large.owns(b));
}
static if (hasMember!(SmallAllocator, "deallocate")
&& hasMember!(LargeAllocator, "deallocate"))
bool deallocate(void[] data)
{
return data.length <= threshold
? _small.deallocate(data)
: _large.deallocate(data);
}
static if (hasMember!(SmallAllocator, "deallocateAll")
&& hasMember!(LargeAllocator, "deallocateAll"))
bool deallocateAll()
{
// Use & insted of && to evaluate both
return _small.deallocateAll() & _large.deallocateAll();
}
static if (hasMember!(SmallAllocator, "empty")
&& hasMember!(LargeAllocator, "empty"))
Ternary empty()
{
return _small.empty && _large.empty;
}
static if (hasMember!(SmallAllocator, "resolveInternalPointer")
&& hasMember!(LargeAllocator, "resolveInternalPointer"))
Ternary resolveInternalPointer(const void* p, ref void[] result)
{
Ternary r = _small.resolveInternalPointer(p, result);
return r == Ternary.no ? _large.resolveInternalPointer(p, result) : r;
}
}
private enum sharedMethods =
!stateSize!SmallAllocator
&& !stateSize!LargeAllocator
&& is(typeof(SmallAllocator.instance) == shared)
&& is(typeof(LargeAllocator.instance) == shared);
static if (sharedMethods)
{
static shared Segregator instance;
shared { mixin Impl!(); }
}
else
{
static if (!stateSize!SmallAllocator && !stateSize!LargeAllocator)
static __gshared Segregator instance;
mixin Impl!();
}
}
///
@system unittest
{
import std.experimental.allocator.building_blocks.free_list : FreeList;
import std.experimental.allocator.gc_allocator : GCAllocator;
import std.experimental.allocator.mallocator : Mallocator;
alias A =
Segregator!(
1024 * 4,
Segregator!(
128, FreeList!(Mallocator, 0, 128),
GCAllocator),
Segregator!(
1024 * 1024, Mallocator,
GCAllocator)
);
A a;
auto b = a.allocate(200);
assert(b.length == 200);
a.deallocate(b);
}
/**
A $(D Segregator) with more than three arguments expands to a composition of
elemental $(D Segregator)s, as illustrated by the following example:
----
alias A =
Segregator!(
n1, A1,
n2, A2,
n3, A3,
A4
);
----
With this definition, allocation requests for $(D n1) bytes or less are directed
to $(D A1); requests between $(D n1 + 1) and $(D n2) bytes (inclusive) are
directed to $(D A2); requests between $(D n2 + 1) and $(D n3) bytes (inclusive)
are directed to $(D A3); and requests for more than $(D n3) bytes are directed
to $(D A4). If some particular range should not be handled, $(D NullAllocator)
may be used appropriately.
*/
template Segregator(Args...)
if (Args.length > 3)
{
// Binary search
private enum cutPoint = ((Args.length - 2) / 4) * 2;
static if (cutPoint >= 2)
{
alias Segregator = .Segregator!(
Args[cutPoint],
.Segregator!(Args[0 .. cutPoint], Args[cutPoint + 1]),
.Segregator!(Args[cutPoint + 2 .. $])
);
}
else
{
// Favor small sizes
alias Segregator = .Segregator!(
Args[0],
Args[1],
.Segregator!(Args[2 .. $])
);
}
}
///
@system unittest
{
import std.experimental.allocator.building_blocks.free_list : FreeList;
import std.experimental.allocator.gc_allocator : GCAllocator;
import std.experimental.allocator.mallocator : Mallocator;
alias A =
Segregator!(
128, FreeList!(Mallocator, 0, 128),
1024 * 4, GCAllocator,
1024 * 1024, Mallocator,
GCAllocator
);
A a;
auto b = a.allocate(201);
assert(b.length == 201);
a.deallocate(b);
}
| D |
module UnrealScript.TribesGame.TrFamilyInfo_Heavy_Doombringer_DS;
import ScriptClasses;
import UnrealScript.Helpers;
import UnrealScript.TribesGame.TrFamilyInfo_Heavy_Doombringer;
extern(C++) interface TrFamilyInfo_Heavy_Doombringer_DS : TrFamilyInfo_Heavy_Doombringer
{
public extern(D):
private static __gshared ScriptClass mStaticClass;
@property final static ScriptClass StaticClass() { mixin(MGSCC("Class TribesGame.TrFamilyInfo_Heavy_Doombringer_DS")); }
private static __gshared TrFamilyInfo_Heavy_Doombringer_DS mDefaultProperties;
@property final static TrFamilyInfo_Heavy_Doombringer_DS DefaultProperties() { mixin(MGDPC("TrFamilyInfo_Heavy_Doombringer_DS", "TrFamilyInfo_Heavy_Doombringer_DS TribesGame.Default__TrFamilyInfo_Heavy_Doombringer_DS")); }
}
| D |
// Written in the D programming language
/++
License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: Jonathan M Davis
Source: $(PHOBOSSRC std/datetime/_systime.d)
+/
module std.datetime.systime;
import core.time;
import std.datetime.date;
import std.datetime.timezone;
import std.exception : enforce;
import std.format : format;
import std.range.primitives;
import std.traits : isIntegral, isSigned, isSomeString, Unqual;
version(Windows)
{
import core.stdc.time : time_t;
import core.sys.windows.windows;
import core.sys.windows.winsock2;
}
else version(Posix)
{
import core.sys.posix.signal : timespec;
import core.sys.posix.sys.types : time_t;
}
version(unittest)
{
import core.exception : AssertError;
import std.exception : assertThrown;
}
@safe unittest
{
initializeTests();
}
/++
Effectively a namespace to make it clear that the methods it contains are
getting the time from the system clock. It cannot be instantiated.
+/
final class Clock
{
public:
/++
Returns the current time in the given time zone.
Params:
clockType = The $(REF ClockType, core,time) indicates which system
clock to use to get the current time. Very few programs
need to use anything other than the default.
tz = The time zone for the SysTime that's returned.
Throws:
$(REF DateTimeException,std,datetime,date) if it fails to get the
time.
+/
static SysTime currTime(ClockType clockType = ClockType.normal)(immutable TimeZone tz = LocalTime()) @safe
{
return SysTime(currStdTime!clockType, tz);
}
@safe unittest
{
import std.format : format;
import std.stdio : writefln;
assert(currTime().timezone is LocalTime());
assert(currTime(UTC()).timezone is UTC());
// core.stdc.time.time does not always use unix time on Windows systems.
// In particular, dmc does not use unix time. If we can guarantee that
// the MS runtime uses unix time, then we may be able run this test
// then, but for now, we're just not going to run this test on Windows.
version(Posix)
{
static import core.stdc.time;
static import std.math;
immutable unixTimeD = currTime().toUnixTime();
immutable unixTimeC = core.stdc.time.time(null);
assert(std.math.abs(unixTimeC - unixTimeD) <= 2);
}
auto norm1 = Clock.currTime;
auto norm2 = Clock.currTime(UTC());
assert(norm1 <= norm2, format("%s %s", norm1, norm2));
assert(abs(norm1 - norm2) <= seconds(2));
import std.meta : AliasSeq;
foreach (ct; AliasSeq!(ClockType.coarse, ClockType.precise, ClockType.second))
{
scope(failure) writefln("ClockType.%s", ct);
auto value1 = Clock.currTime!ct;
auto value2 = Clock.currTime!ct(UTC());
assert(value1 <= value2, format("%s %s", value1, value2));
assert(abs(value1 - value2) <= seconds(2));
}
}
/++
Returns the number of hnsecs since midnight, January 1st, 1 A.D. for the
current time.
Params:
clockType = The $(REF ClockType, core,time) indicates which system
clock to use to get the current time. Very few programs
need to use anything other than the default.
Throws:
$(REF DateTimeException,std,datetime,date) if it fails to get the
time.
+/
static @property long currStdTime(ClockType clockType = ClockType.normal)() @trusted
{
static if (clockType != ClockType.coarse &&
clockType != ClockType.normal &&
clockType != ClockType.precise &&
clockType != ClockType.second)
{
static assert(0, format("ClockType.%s is not supported by Clock.currTime or Clock.currStdTime", clockType));
}
version(Windows)
{
FILETIME fileTime;
GetSystemTimeAsFileTime(&fileTime);
immutable result = FILETIMEToStdTime(&fileTime);
static if (clockType == ClockType.second)
{
// Ideally, this would use core.std.time.time, but the C runtime
// has to be using unix time for that to work, and that's not
// guaranteed on Windows. Digital Mars does not use unix time.
// MS may or may not. If it does, then this can be made to use
// core.stdc.time for MS, but for now, we'll leave it like this.
return convert!("seconds", "hnsecs")(convert!("hnsecs", "seconds")(result));
}
else
return result;
}
else version(Posix)
{
static import core.stdc.time;
enum hnsecsToUnixEpoch = unixTimeToStdTime(0);
version(OSX)
{
static if (clockType == ClockType.second)
return unixTimeToStdTime(core.stdc.time.time(null));
else
{
import core.sys.posix.sys.time : gettimeofday, timeval;
timeval tv;
if (gettimeofday(&tv, null) != 0)
throw new TimeException("Call to gettimeofday() failed");
return convert!("seconds", "hnsecs")(tv.tv_sec) +
convert!("usecs", "hnsecs")(tv.tv_usec) +
hnsecsToUnixEpoch;
}
}
else version(linux)
{
static if (clockType == ClockType.second)
return unixTimeToStdTime(core.stdc.time.time(null));
else
{
import core.sys.linux.time : CLOCK_REALTIME_COARSE;
import core.sys.posix.time : clock_gettime, CLOCK_REALTIME;
static if (clockType == ClockType.coarse) alias clockArg = CLOCK_REALTIME_COARSE;
else static if (clockType == ClockType.normal) alias clockArg = CLOCK_REALTIME;
else static if (clockType == ClockType.precise) alias clockArg = CLOCK_REALTIME;
else static assert(0, "Previous static if is wrong.");
timespec ts;
if (clock_gettime(clockArg, &ts) != 0)
throw new TimeException("Call to clock_gettime() failed");
return convert!("seconds", "hnsecs")(ts.tv_sec) +
ts.tv_nsec / 100 +
hnsecsToUnixEpoch;
}
}
else version(FreeBSD)
{
import core.sys.freebsd.time : clock_gettime, CLOCK_REALTIME,
CLOCK_REALTIME_FAST, CLOCK_REALTIME_PRECISE, CLOCK_SECOND;
static if (clockType == ClockType.coarse) alias clockArg = CLOCK_REALTIME_FAST;
else static if (clockType == ClockType.normal) alias clockArg = CLOCK_REALTIME;
else static if (clockType == ClockType.precise) alias clockArg = CLOCK_REALTIME_PRECISE;
else static if (clockType == ClockType.second) alias clockArg = CLOCK_SECOND;
else static assert(0, "Previous static if is wrong.");
timespec ts;
if (clock_gettime(clockArg, &ts) != 0)
throw new TimeException("Call to clock_gettime() failed");
return convert!("seconds", "hnsecs")(ts.tv_sec) +
ts.tv_nsec / 100 +
hnsecsToUnixEpoch;
}
else version(NetBSD)
{
static if (clockType == ClockType.second)
return unixTimeToStdTime(core.stdc.time.time(null));
else
{
import core.sys.posix.sys.time : gettimeofday, timeval;
timeval tv;
if (gettimeofday(&tv, null) != 0)
throw new TimeException("Call to gettimeofday() failed");
return convert!("seconds", "hnsecs")(tv.tv_sec) +
convert!("usecs", "hnsecs")(tv.tv_usec) +
hnsecsToUnixEpoch;
}
}
else version(DragonFlyBSD)
{
import core.sys.dragonflybsd.time : clock_gettime, CLOCK_REALTIME,
CLOCK_REALTIME_FAST, CLOCK_REALTIME_PRECISE, CLOCK_SECOND;
static if (clockType == ClockType.coarse) alias clockArg = CLOCK_REALTIME_FAST;
else static if (clockType == ClockType.normal) alias clockArg = CLOCK_REALTIME;
else static if (clockType == ClockType.precise) alias clockArg = CLOCK_REALTIME_PRECISE;
else static if (clockType == ClockType.second) alias clockArg = CLOCK_SECOND;
else static assert(0, "Previous static if is wrong.");
timespec ts;
if (clock_gettime(clockArg, &ts) != 0)
throw new TimeException("Call to clock_gettime() failed");
return convert!("seconds", "hnsecs")(ts.tv_sec) +
ts.tv_nsec / 100 +
hnsecsToUnixEpoch;
}
else version(Solaris)
{
static if (clockType == ClockType.second)
return unixTimeToStdTime(core.stdc.time.time(null));
else
{
import core.sys.solaris.time : clock_gettime, CLOCK_REALTIME;
static if (clockType == ClockType.coarse) alias clockArg = CLOCK_REALTIME;
else static if (clockType == ClockType.normal) alias clockArg = CLOCK_REALTIME;
else static if (clockType == ClockType.precise) alias clockArg = CLOCK_REALTIME;
else static assert(0, "Previous static if is wrong.");
timespec ts;
if (clock_gettime(clockArg, &ts) != 0)
throw new TimeException("Call to clock_gettime() failed");
return convert!("seconds", "hnsecs")(ts.tv_sec) +
ts.tv_nsec / 100 +
hnsecsToUnixEpoch;
}
}
else static assert(0, "Unsupported OS");
}
else static assert(0, "Unsupported OS");
}
@safe unittest
{
import std.format : format;
import std.math : abs;
import std.meta : AliasSeq;
import std.stdio : writefln;
enum limit = convert!("seconds", "hnsecs")(2);
auto norm1 = Clock.currStdTime;
auto norm2 = Clock.currStdTime;
assert(norm1 <= norm2, format("%s %s", norm1, norm2));
assert(abs(norm1 - norm2) <= limit);
foreach (ct; AliasSeq!(ClockType.coarse, ClockType.precise, ClockType.second))
{
scope(failure) writefln("ClockType.%s", ct);
auto value1 = Clock.currStdTime!ct;
auto value2 = Clock.currStdTime!ct;
assert(value1 <= value2, format("%s %s", value1, value2));
assert(abs(value1 - value2) <= limit);
}
}
// Explicitly undocumented. It will be removed in January 2018. @@@DEPRECATED_2018-01@@@
deprecated("Use core.time.MonoTime.currTime instead")
static @property TickDuration currSystemTick() @safe nothrow
{
return TickDuration.currSystemTick;
}
deprecated @safe unittest
{
assert(Clock.currSystemTick.length > 0);
}
// Explicitly undocumented. It will be removed in January 2018. @@@DEPRECATED_2018-01@@@
deprecated("Use core.time.MonoTime instead. See currAppTick's documentation for details.")
static @property TickDuration currAppTick() @safe
{
return currSystemTick - TickDuration.appOrigin;
}
deprecated @safe unittest
{
auto a = Clock.currSystemTick;
auto b = Clock.currAppTick;
assert(a.length);
assert(b.length);
assert(a > b);
}
private:
@disable this() {}
}
/++
$(D SysTime) is the type used to get the current time from the
system or doing anything that involves time zones. Unlike
$(REF DateTime,std,datetime,date), the time zone is an integral part of
$(D SysTime) (though for local time applications, time zones can be ignored
and it will work, since it defaults to using the local time zone). It holds
its internal time in std time (hnsecs since midnight, January 1st, 1 A.D.
UTC), so it interfaces well with the system time. However, that means that,
unlike $(REF DateTime,std,datetime,date), it is not optimized for
calendar-based operations, and getting individual units from it such as
years or days is going to involve conversions and be less efficient.
For calendar-based operations that don't
care about time zones, then $(REF DateTime,std,datetime,date) would be
the type to use. For system time, use $(D SysTime).
$(LREF Clock.currTime) will return the current time as a $(D SysTime).
To convert a $(D SysTime) to a $(REF Date,std,datetime,date) or
$(REF DateTime,std,datetime,date), simply cast it. To convert a
$(REF Date,std,datetime,date) or $(REF DateTime,std,datetime,date) to a
$(D SysTime), use $(D SysTime)'s constructor, and pass in the ntended time
zone with it (or don't pass in a $(REF TimeZone,std,datetime,timezone), and
the local time zone will be used). Be aware, however, that converting from a
$(REF DateTime,std,datetime,date) to a $(D SysTime) will not necessarily
be 100% accurate due to DST (one hour of the year doesn't exist and another
occurs twice). To not risk any conversion errors, keep times as
$(D SysTime)s. Aside from DST though, there shouldn't be any conversion
problems.
For using time zones other than local time or UTC, use
$(REF PosixTimeZone,std,datetime,timezone) on Posix systems (or on Windows,
if providing the TZ Database files), and use
$(REF WindowsTimeZone,std,datetime,timezone) on Windows systems. The time in
$(D SysTime) is kept internally in hnsecs from midnight, January 1st, 1 A.D.
UTC. Conversion error cannot happen when changing the time zone of a
$(D SysTime). $(REF LocalTime,std,datetime,timezone) is the
$(REF TimeZone,std,datetime,timezone) class which represents the local time,
and $(D UTC) is the $(REF TimeZone,std,datetime,timezone) class which
represents UTC. $(D SysTime) uses $(REF LocalTime,std,datetime,timezone) if
no $(REF TimeZone,std,datetime,timezone) is provided. For more details on
time zones, see the documentation for $(REF TimeZone,std,datetime,timezone),
$(REF PosixTimeZone,std,datetime,timezone), and
$(REF WindowsTimeZone,std,datetime,timezone).
$(D SysTime)'s range is from approximately 29,000 B.C. to approximately
29,000 A.D.
+/
struct SysTime
{
import core.stdc.time : tm;
version(Posix) import core.sys.posix.sys.time : timeval;
import std.typecons : Rebindable;
public:
/++
Params:
dateTime = The $(REF DateTime,std,datetime,date) to use to set
this $(LREF SysTime)'s internal std time. As
$(REF DateTime,std,datetime,date) has no concept of
time zone, tz is used as its time zone.
tz = The $(REF TimeZone,std,datetime,timezone) to use for this
$(LREF SysTime). If null,
$(REF LocalTime,std,datetime,timezone) will be used. The
given $(REF DateTime,std,datetime,date) is assumed to
be in the given time zone.
+/
this(in DateTime dateTime, immutable TimeZone tz = null) @safe nothrow
{
try
this(dateTime, Duration.zero, tz);
catch (Exception e)
assert(0, "SysTime's constructor threw when it shouldn't have.");
}
@safe unittest
{
static void test(DateTime dt, immutable TimeZone tz, long expected)
{
auto sysTime = SysTime(dt, tz);
assert(sysTime._stdTime == expected);
assert(sysTime._timezone is (tz is null ? LocalTime() : tz), format("Given DateTime: %s", dt));
}
test(DateTime.init, UTC(), 0);
test(DateTime(1, 1, 1, 12, 30, 33), UTC(), 450_330_000_000L);
test(DateTime(0, 12, 31, 12, 30, 33), UTC(), -413_670_000_000L);
test(DateTime(1, 1, 1, 0, 0, 0), UTC(), 0);
test(DateTime(1, 1, 1, 0, 0, 1), UTC(), 10_000_000L);
test(DateTime(0, 12, 31, 23, 59, 59), UTC(), -10_000_000L);
test(DateTime(1, 1, 1, 0, 0, 0), new immutable SimpleTimeZone(dur!"minutes"(-60)), 36_000_000_000L);
test(DateTime(1, 1, 1, 0, 0, 0), new immutable SimpleTimeZone(Duration.zero), 0);
test(DateTime(1, 1, 1, 0, 0, 0), new immutable SimpleTimeZone(dur!"minutes"(60)), -36_000_000_000L);
}
/++
Params:
dateTime = The $(REF DateTime,std,datetime,date) to use to set
this $(LREF SysTime)'s internal std time. As
$(REF DateTime,std,datetime,date) has no concept of
time zone, tz is used as its time zone.
fracSecs = The fractional seconds portion of the time.
tz = The $(REF TimeZone,std,datetime,timezone) to use for this
$(LREF SysTime). If null,
$(REF LocalTime,std,datetime,timezone) will be used. The
given $(REF DateTime,std,datetime,date) is assumed to
be in the given time zone.
Throws:
$(REF DateTimeException,std,datetime,date) if $(D fracSecs) is negative or if it's
greater than or equal to one second.
+/
this(in DateTime dateTime, in Duration fracSecs, immutable TimeZone tz = null) @safe
{
enforce(fracSecs >= Duration.zero, new DateTimeException("A SysTime cannot have negative fractional seconds."));
enforce(fracSecs < seconds(1), new DateTimeException("Fractional seconds must be less than one second."));
auto nonNullTZ = tz is null ? LocalTime() : tz;
immutable dateDiff = dateTime.date - Date.init;
immutable todDiff = dateTime.timeOfDay - TimeOfDay.init;
immutable adjustedTime = dateDiff + todDiff + fracSecs;
immutable standardTime = nonNullTZ.tzToUTC(adjustedTime.total!"hnsecs");
this(standardTime, nonNullTZ);
}
@safe unittest
{
static void test(DateTime dt, Duration fracSecs, immutable TimeZone tz, long expected)
{
auto sysTime = SysTime(dt, fracSecs, tz);
assert(sysTime._stdTime == expected);
assert(sysTime._timezone is (tz is null ? LocalTime() : tz),
format("Given DateTime: %s, Given Duration: %s", dt, fracSecs));
}
test(DateTime.init, Duration.zero, UTC(), 0);
test(DateTime(1, 1, 1, 12, 30, 33), Duration.zero, UTC(), 450_330_000_000L);
test(DateTime(0, 12, 31, 12, 30, 33), Duration.zero, UTC(), -413_670_000_000L);
test(DateTime(1, 1, 1, 0, 0, 0), msecs(1), UTC(), 10_000L);
test(DateTime(0, 12, 31, 23, 59, 59), msecs(999), UTC(), -10_000L);
test(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999), UTC(), -1);
test(DateTime(0, 12, 31, 23, 59, 59), hnsecs(1), UTC(), -9_999_999);
test(DateTime(0, 12, 31, 23, 59, 59), Duration.zero, UTC(), -10_000_000);
assertThrown!DateTimeException(SysTime(DateTime.init, hnsecs(-1), UTC()));
assertThrown!DateTimeException(SysTime(DateTime.init, seconds(1), UTC()));
}
/++
Params:
date = The $(REF Date,std,datetime,date) to use to set this
$(LREF SysTime)'s internal std time. As
$(REF Date,std,datetime,date) has no concept of time zone, tz
is used as its time zone.
tz = The $(REF TimeZone,std,datetime,timezone) to use for this
$(LREF SysTime). If null,
$(REF LocalTime,std,datetime,timezone) will be used. The
given $(REF Date,std,datetime,date) is assumed to be in the
given time zone.
+/
this(in Date date, immutable TimeZone tz = null) @safe nothrow
{
_timezone = tz is null ? LocalTime() : tz;
try
{
immutable adjustedTime = (date - Date(1, 1, 1)).total!"hnsecs";
immutable standardTime = _timezone.tzToUTC(adjustedTime);
this(standardTime, _timezone);
}
catch (Exception e)
assert(0, "Date's constructor through when it shouldn't have.");
}
@safe unittest
{
static void test(Date d, immutable TimeZone tz, long expected)
{
auto sysTime = SysTime(d, tz);
assert(sysTime._stdTime == expected);
assert(sysTime._timezone is (tz is null ? LocalTime() : tz), format("Given Date: %s", d));
}
test(Date.init, UTC(), 0);
test(Date(1, 1, 1), UTC(), 0);
test(Date(1, 1, 2), UTC(), 864000000000);
test(Date(0, 12, 31), UTC(), -864000000000);
}
/++
Note:
Whereas the other constructors take in the given date/time, assume
that it's in the given time zone, and convert it to hnsecs in UTC
since midnight, January 1st, 1 A.D. UTC - i.e. std time - this
constructor takes a std time, which is specifically already in UTC,
so no conversion takes place. Of course, the various getter
properties and functions will use the given time zone's conversion
function to convert the results to that time zone, but no conversion
of the arguments to this constructor takes place.
Params:
stdTime = The number of hnsecs since midnight, January 1st, 1 A.D.
UTC.
tz = The $(REF TimeZone,std,datetime,timezone) to use for this
$(LREF SysTime). If null,
$(REF LocalTime,std,datetime,timezone) will be used.
+/
this(long stdTime, immutable TimeZone tz = null) @safe pure nothrow
{
_stdTime = stdTime;
_timezone = tz is null ? LocalTime() : tz;
}
@safe unittest
{
static void test(long stdTime, immutable TimeZone tz)
{
auto sysTime = SysTime(stdTime, tz);
assert(sysTime._stdTime == stdTime);
assert(sysTime._timezone is (tz is null ? LocalTime() : tz), format("Given stdTime: %s", stdTime));
}
foreach (stdTime; [-1234567890L, -250, 0, 250, 1235657390L])
{
foreach (tz; testTZs)
test(stdTime, tz);
}
}
/++
Params:
rhs = The $(LREF SysTime) to assign to this one.
+/
ref SysTime opAssign(const ref SysTime rhs) return @safe pure nothrow
{
_stdTime = rhs._stdTime;
_timezone = rhs._timezone;
return this;
}
/++
Params:
rhs = The $(LREF SysTime) to assign to this one.
+/
ref SysTime opAssign(SysTime rhs) scope return @safe pure nothrow
{
_stdTime = rhs._stdTime;
_timezone = rhs._timezone;
return this;
}
/++
Checks for equality between this $(LREF SysTime) and the given
$(LREF SysTime).
Note that the time zone is ignored. Only the internal
std times (which are in UTC) are compared.
+/
bool opEquals(const SysTime rhs) @safe const pure nothrow
{
return opEquals(rhs);
}
/// ditto
bool opEquals(const ref SysTime rhs) @safe const pure nothrow
{
return _stdTime == rhs._stdTime;
}
@safe unittest
{
import std.range : chain;
assert(SysTime(DateTime.init, UTC()) == SysTime(0, UTC()));
assert(SysTime(DateTime.init, UTC()) == SysTime(0));
assert(SysTime(Date.init, UTC()) == SysTime(0));
assert(SysTime(0) == SysTime(0));
static void test(DateTime dt, immutable TimeZone tz1, immutable TimeZone tz2)
{
auto st1 = SysTime(dt);
st1.timezone = tz1;
auto st2 = SysTime(dt);
st2.timezone = tz2;
assert(st1 == st2);
}
foreach (tz1; testTZs)
{
foreach (tz2; testTZs)
{
foreach (dt; chain(testDateTimesBC, testDateTimesAD))
test(dt, tz1, tz2);
}
}
auto st = SysTime(DateTime(1999, 7, 6, 12, 33, 30));
const cst = SysTime(DateTime(1999, 7, 6, 12, 33, 30));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 33, 30));
assert(st == st);
assert(st == cst);
//assert(st == ist);
assert(cst == st);
assert(cst == cst);
//assert(cst == ist);
//assert(ist == st);
//assert(ist == cst);
//assert(ist == ist);
}
/++
Compares this $(LREF SysTime) with the given $(LREF SysTime).
Time zone is irrelevant when comparing $(LREF SysTime)s.
Returns:
$(BOOKTABLE,
$(TR $(TD this < rhs) $(TD < 0))
$(TR $(TD this == rhs) $(TD 0))
$(TR $(TD this > rhs) $(TD > 0))
)
+/
int opCmp(in SysTime rhs) @safe const pure nothrow
{
if (_stdTime < rhs._stdTime)
return -1;
if (_stdTime > rhs._stdTime)
return 1;
return 0;
}
@safe unittest
{
import std.algorithm.iteration : map;
import std.array : array;
import std.range : chain;
assert(SysTime(DateTime.init, UTC()).opCmp(SysTime(0, UTC())) == 0);
assert(SysTime(DateTime.init, UTC()).opCmp(SysTime(0)) == 0);
assert(SysTime(Date.init, UTC()).opCmp(SysTime(0)) == 0);
assert(SysTime(0).opCmp(SysTime(0)) == 0);
static void testEqual(SysTime st, immutable TimeZone tz1, immutable TimeZone tz2)
{
auto st1 = st;
st1.timezone = tz1;
auto st2 = st;
st2.timezone = tz2;
assert(st1.opCmp(st2) == 0);
}
auto sts = array(map!SysTime(chain(testDateTimesBC, testDateTimesAD)));
foreach (st; sts)
{
foreach (tz1; testTZs)
{
foreach (tz2; testTZs)
testEqual(st, tz1, tz2);
}
}
static void testCmp(SysTime st1, immutable TimeZone tz1, SysTime st2, immutable TimeZone tz2)
{
st1.timezone = tz1;
st2.timezone = tz2;
assert(st1.opCmp(st2) < 0);
assert(st2.opCmp(st1) > 0);
}
foreach (si, st1; sts)
{
foreach (st2; sts[si + 1 .. $])
{
foreach (tz1; testTZs)
{
foreach (tz2; testTZs)
testCmp(st1, tz1, st2, tz2);
}
}
}
auto st = SysTime(DateTime(1999, 7, 6, 12, 33, 30));
const cst = SysTime(DateTime(1999, 7, 6, 12, 33, 30));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 33, 30));
assert(st.opCmp(st) == 0);
assert(st.opCmp(cst) == 0);
//assert(st.opCmp(ist) == 0);
assert(cst.opCmp(st) == 0);
assert(cst.opCmp(cst) == 0);
//assert(cst.opCmp(ist) == 0);
//assert(ist.opCmp(st) == 0);
//assert(ist.opCmp(cst) == 0);
//assert(ist.opCmp(ist) == 0);
}
/**
* Returns: A hash of the $(LREF SysTime)
*/
size_t toHash() const @nogc pure nothrow @safe
{
static if (is(size_t == ulong))
return _stdTime;
else
{
// MurmurHash2
enum ulong m = 0xc6a4a7935bd1e995UL;
enum ulong n = m * 16;
enum uint r = 47;
ulong k = _stdTime;
k *= m;
k ^= k >> r;
k *= m;
ulong h = n;
h ^= k;
h *= m;
return cast(size_t) h;
}
}
@safe unittest
{
assert(SysTime(0).toHash == SysTime(0).toHash);
assert(SysTime(DateTime(2000, 1, 1)).toHash == SysTime(DateTime(2000, 1, 1)).toHash);
assert(SysTime(DateTime(2000, 1, 1)).toHash != SysTime(DateTime(2000, 1, 2)).toHash);
// test that timezones aren't taken into account
assert(SysTime(0, LocalTime()).toHash == SysTime(0, LocalTime()).toHash);
assert(SysTime(0, LocalTime()).toHash == SysTime(0, UTC()).toHash);
assert(SysTime(DateTime(2000, 1, 1), LocalTime()).toHash == SysTime(DateTime(2000, 1, 1), LocalTime()).toHash);
immutable zone = new SimpleTimeZone(dur!"minutes"(60));
assert(SysTime(DateTime(2000, 1, 1, 1), zone).toHash == SysTime(DateTime(2000, 1, 1), UTC()).toHash);
assert(SysTime(DateTime(2000, 1, 1), zone).toHash != SysTime(DateTime(2000, 1, 1), UTC()).toHash);
}
/++
Year of the Gregorian Calendar. Positive numbers are A.D. Non-positive
are B.C.
+/
@property short year() @safe const nothrow
{
return (cast(Date) this).year;
}
@safe unittest
{
import std.range : chain;
static void test(SysTime sysTime, long expected)
{
assert(sysTime.year == expected, format("Value given: %s", sysTime));
}
test(SysTime(0, UTC()), 1);
test(SysTime(1, UTC()), 1);
test(SysTime(-1, UTC()), 0);
foreach (year; chain(testYearsBC, testYearsAD))
{
foreach (md; testMonthDays)
{
foreach (tod; testTODs)
{
auto dt = DateTime(Date(year, md.month, md.day), tod);
foreach (tz; testTZs)
{
foreach (fs; testFracSecs)
test(SysTime(dt, fs, tz), year);
}
}
}
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.year == 1999);
//assert(ist.year == 1999);
}
/++
Year of the Gregorian Calendar. Positive numbers are A.D. Non-positive
are B.C.
Params:
year = The year to set this $(LREF SysTime)'s year to.
Throws:
$(REF DateTimeException,std,datetime,date) if the new year is not
a leap year and the resulting date would be on February 29th.
+/
@property void year(int year) @safe
{
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
auto date = Date(cast(int) days);
date.year = year;
immutable newDaysHNSecs = convert!("days", "hnsecs")(date.dayOfGregorianCal - 1);
adjTime = newDaysHNSecs + hnsecs;
}
///
@safe unittest
{
import std.datetime.date : DateTime;
assert(SysTime(DateTime(1999, 7, 6, 9, 7, 5)).year == 1999);
assert(SysTime(DateTime(2010, 10, 4, 0, 0, 30)).year == 2010);
assert(SysTime(DateTime(-7, 4, 5, 7, 45, 2)).year == -7);
}
@safe unittest
{
import std.range : chain;
static void test(SysTime st, int year, in SysTime expected)
{
st.year = year;
assert(st == expected);
}
foreach (st; chain(testSysTimesBC, testSysTimesAD))
{
auto dt = cast(DateTime) st;
foreach (year; chain(testYearsBC, testYearsAD))
{
auto e = SysTime(DateTime(year, dt.month, dt.day, dt.hour, dt.minute, dt.second),
st.fracSecs,
st.timezone);
test(st, year, e);
}
}
foreach (fs; testFracSecs)
{
foreach (tz; testTZs)
{
foreach (tod; testTODs)
{
test(SysTime(DateTime(Date(1999, 2, 28), tod), fs, tz), 2000,
SysTime(DateTime(Date(2000, 2, 28), tod), fs, tz));
test(SysTime(DateTime(Date(2000, 2, 28), tod), fs, tz), 1999,
SysTime(DateTime(Date(1999, 2, 28), tod), fs, tz));
}
foreach (tod; testTODsThrown)
{
auto st = SysTime(DateTime(Date(2000, 2, 29), tod), fs, tz);
assertThrown!DateTimeException(st.year = 1999);
}
}
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.year = 7));
//static assert(!__traits(compiles, ist.year = 7));
}
/++
Year B.C. of the Gregorian Calendar counting year 0 as 1 B.C.
Throws:
$(REF DateTimeException,std,datetime,date) if $(D isAD) is true.
+/
@property ushort yearBC() @safe const
{
return (cast(Date) this).yearBC;
}
///
@safe unittest
{
import std.datetime.date : DateTime;
assert(SysTime(DateTime(0, 1, 1, 12, 30, 33)).yearBC == 1);
assert(SysTime(DateTime(-1, 1, 1, 10, 7, 2)).yearBC == 2);
assert(SysTime(DateTime(-100, 1, 1, 4, 59, 0)).yearBC == 101);
}
@safe unittest
{
import std.exception : assertNotThrown;
foreach (st; testSysTimesBC)
{
auto msg = format("SysTime: %s", st);
assertNotThrown!DateTimeException(st.yearBC, msg);
assert(st.yearBC == (st.year * -1) + 1, msg);
}
foreach (st; [testSysTimesAD[0], testSysTimesAD[$/2], testSysTimesAD[$-1]])
assertThrown!DateTimeException(st.yearBC, format("SysTime: %s", st));
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
st.year = 12;
assert(st.year == 12);
static assert(!__traits(compiles, cst.year = 12));
//static assert(!__traits(compiles, ist.year = 12));
}
/++
Year B.C. of the Gregorian Calendar counting year 0 as 1 B.C.
Params:
year = The year B.C. to set this $(LREF SysTime)'s year to.
Throws:
$(REF DateTimeException,std,datetime,date) if a non-positive value
is given.
+/
@property void yearBC(int year) @safe
{
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
auto date = Date(cast(int) days);
date.yearBC = year;
immutable newDaysHNSecs = convert!("days", "hnsecs")(date.dayOfGregorianCal - 1);
adjTime = newDaysHNSecs + hnsecs;
}
@safe unittest
{
auto st = SysTime(DateTime(2010, 1, 1, 7, 30, 0));
st.yearBC = 1;
assert(st == SysTime(DateTime(0, 1, 1, 7, 30, 0)));
st.yearBC = 10;
assert(st == SysTime(DateTime(-9, 1, 1, 7, 30, 0)));
}
@safe unittest
{
import std.range : chain;
static void test(SysTime st, int year, in SysTime expected)
{
st.yearBC = year;
assert(st == expected, format("SysTime: %s", st));
}
foreach (st; chain(testSysTimesBC, testSysTimesAD))
{
auto dt = cast(DateTime) st;
foreach (year; testYearsBC)
{
auto e = SysTime(DateTime(year, dt.month, dt.day, dt.hour, dt.minute, dt.second),
st.fracSecs,
st.timezone);
test(st, (year * -1) + 1, e);
}
}
foreach (st; [testSysTimesBC[0], testSysTimesBC[$ - 1], testSysTimesAD[0], testSysTimesAD[$ - 1]])
{
foreach (year; testYearsBC)
assertThrown!DateTimeException(st.yearBC = year);
}
foreach (fs; testFracSecs)
{
foreach (tz; testTZs)
{
foreach (tod; testTODs)
{
test(SysTime(DateTime(Date(-1999, 2, 28), tod), fs, tz), 2001,
SysTime(DateTime(Date(-2000, 2, 28), tod), fs, tz));
test(SysTime(DateTime(Date(-2000, 2, 28), tod), fs, tz), 2000,
SysTime(DateTime(Date(-1999, 2, 28), tod), fs, tz));
}
foreach (tod; testTODsThrown)
{
auto st = SysTime(DateTime(Date(-2000, 2, 29), tod), fs, tz);
assertThrown!DateTimeException(st.year = -1999);
}
}
}
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
st.yearBC = 12;
assert(st.yearBC == 12);
static assert(!__traits(compiles, cst.yearBC = 12));
//static assert(!__traits(compiles, ist.yearBC = 12));
}
/++
Month of a Gregorian Year.
+/
@property Month month() @safe const nothrow
{
return (cast(Date) this).month;
}
///
@safe unittest
{
import std.datetime.date : DateTime;
assert(SysTime(DateTime(1999, 7, 6, 9, 7, 5)).month == 7);
assert(SysTime(DateTime(2010, 10, 4, 0, 0, 30)).month == 10);
assert(SysTime(DateTime(-7, 4, 5, 7, 45, 2)).month == 4);
}
@safe unittest
{
import std.range : chain;
static void test(SysTime sysTime, Month expected)
{
assert(sysTime.month == expected, format("Value given: %s", sysTime));
}
test(SysTime(0, UTC()), Month.jan);
test(SysTime(1, UTC()), Month.jan);
test(SysTime(-1, UTC()), Month.dec);
foreach (year; chain(testYearsBC, testYearsAD))
{
foreach (md; testMonthDays)
{
foreach (tod; testTODs)
{
auto dt = DateTime(Date(year, md.month, md.day), tod);
foreach (fs; testFracSecs)
{
foreach (tz; testTZs)
test(SysTime(dt, fs, tz), md.month);
}
}
}
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.month == 7);
//assert(ist.month == 7);
}
/++
Month of a Gregorian Year.
Params:
month = The month to set this $(LREF SysTime)'s month to.
Throws:
$(REF DateTimeException,std,datetime,date) if the given month is
not a valid month.
+/
@property void month(Month month) @safe
{
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
auto date = Date(cast(int) days);
date.month = month;
immutable newDaysHNSecs = convert!("days", "hnsecs")(date.dayOfGregorianCal - 1);
adjTime = newDaysHNSecs + hnsecs;
}
@safe unittest
{
import std.algorithm.iteration : filter;
import std.range : chain;
static void test(SysTime st, Month month, in SysTime expected)
{
st.month = cast(Month) month;
assert(st == expected);
}
foreach (st; chain(testSysTimesBC, testSysTimesAD))
{
auto dt = cast(DateTime) st;
foreach (md; testMonthDays)
{
if (st.day > maxDay(dt.year, md.month))
continue;
auto e = SysTime(DateTime(dt.year, md.month, dt.day, dt.hour, dt.minute, dt.second),
st.fracSecs,
st.timezone);
test(st, md.month, e);
}
}
foreach (fs; testFracSecs)
{
foreach (tz; testTZs)
{
foreach (tod; testTODs)
{
foreach (year; filter!((a){return yearIsLeapYear(a);}) (chain(testYearsBC, testYearsAD)))
{
test(SysTime(DateTime(Date(year, 1, 29), tod), fs, tz),
Month.feb,
SysTime(DateTime(Date(year, 2, 29), tod), fs, tz));
}
foreach (year; chain(testYearsBC, testYearsAD))
{
test(SysTime(DateTime(Date(year, 1, 28), tod), fs, tz),
Month.feb,
SysTime(DateTime(Date(year, 2, 28), tod), fs, tz));
test(SysTime(DateTime(Date(year, 7, 30), tod), fs, tz),
Month.jun,
SysTime(DateTime(Date(year, 6, 30), tod), fs, tz));
}
}
}
}
foreach (fs; [testFracSecs[0], testFracSecs[$-1]])
{
foreach (tz; testTZs)
{
foreach (tod; testTODsThrown)
{
foreach (year; [testYearsBC[$-3], testYearsBC[$-2],
testYearsBC[$-2], testYearsAD[0],
testYearsAD[$-2], testYearsAD[$-1]])
{
auto day = yearIsLeapYear(year) ? 30 : 29;
auto st1 = SysTime(DateTime(Date(year, 1, day), tod), fs, tz);
assertThrown!DateTimeException(st1.month = Month.feb);
auto st2 = SysTime(DateTime(Date(year, 7, 31), tod), fs, tz);
assertThrown!DateTimeException(st2.month = Month.jun);
}
}
}
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.month = 12));
//static assert(!__traits(compiles, ist.month = 12));
}
/++
Day of a Gregorian Month.
+/
@property ubyte day() @safe const nothrow
{
return (cast(Date) this).day;
}
///
@safe unittest
{
import std.datetime.date : DateTime;
assert(SysTime(DateTime(1999, 7, 6, 9, 7, 5)).day == 6);
assert(SysTime(DateTime(2010, 10, 4, 0, 0, 30)).day == 4);
assert(SysTime(DateTime(-7, 4, 5, 7, 45, 2)).day == 5);
}
@safe unittest
{
import std.range : chain;
static void test(SysTime sysTime, int expected)
{
assert(sysTime.day == expected, format("Value given: %s", sysTime));
}
test(SysTime(0, UTC()), 1);
test(SysTime(1, UTC()), 1);
test(SysTime(-1, UTC()), 31);
foreach (year; chain(testYearsBC, testYearsAD))
{
foreach (md; testMonthDays)
{
foreach (tod; testTODs)
{
auto dt = DateTime(Date(year, md.month, md.day), tod);
foreach (tz; testTZs)
{
foreach (fs; testFracSecs)
test(SysTime(dt, fs, tz), md.day);
}
}
}
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.day == 6);
//assert(ist.day == 6);
}
/++
Day of a Gregorian Month.
Params:
day = The day of the month to set this $(LREF SysTime)'s day to.
Throws:
$(REF DateTimeException,std,datetime,date) if the given day is not
a valid day of the current month.
+/
@property void day(int day) @safe
{
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
auto date = Date(cast(int) days);
date.day = day;
immutable newDaysHNSecs = convert!("days", "hnsecs")(date.dayOfGregorianCal - 1);
adjTime = newDaysHNSecs + hnsecs;
}
@safe unittest
{
import std.range : chain;
import std.traits : EnumMembers;
foreach (day; chain(testDays))
{
foreach (st; chain(testSysTimesBC, testSysTimesAD))
{
auto dt = cast(DateTime) st;
if (day > maxDay(dt.year, dt.month))
continue;
auto expected = SysTime(DateTime(dt.year, dt.month, day, dt.hour, dt.minute, dt.second),
st.fracSecs,
st.timezone);
st.day = day;
assert(st == expected, format("[%s] [%s]", st, expected));
}
}
foreach (tz; testTZs)
{
foreach (tod; testTODs)
{
foreach (fs; testFracSecs)
{
foreach (year; chain(testYearsBC, testYearsAD))
{
foreach (month; EnumMembers!Month)
{
auto st = SysTime(DateTime(Date(year, month, 1), tod), fs, tz);
immutable max = maxDay(year, month);
auto expected = SysTime(DateTime(Date(year, month, max), tod), fs, tz);
st.day = max;
assert(st == expected, format("[%s] [%s]", st, expected));
}
}
}
}
}
foreach (tz; testTZs)
{
foreach (tod; testTODsThrown)
{
foreach (fs; [testFracSecs[0], testFracSecs[$-1]])
{
foreach (year; [testYearsBC[$-3], testYearsBC[$-2],
testYearsBC[$-2], testYearsAD[0],
testYearsAD[$-2], testYearsAD[$-1]])
{
foreach (month; EnumMembers!Month)
{
auto st = SysTime(DateTime(Date(year, month, 1), tod), fs, tz);
immutable max = maxDay(year, month);
assertThrown!DateTimeException(st.day = max + 1);
}
}
}
}
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.day = 27));
//static assert(!__traits(compiles, ist.day = 27));
}
/++
Hours past midnight.
+/
@property ubyte hour() @safe const nothrow
{
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
return cast(ubyte) getUnitsFromHNSecs!"hours"(hnsecs);
}
@safe unittest
{
import std.range : chain;
static void test(SysTime sysTime, int expected)
{
assert(sysTime.hour == expected, format("Value given: %s", sysTime));
}
test(SysTime(0, UTC()), 0);
test(SysTime(1, UTC()), 0);
test(SysTime(-1, UTC()), 23);
foreach (tz; testTZs)
{
foreach (year; chain(testYearsBC, testYearsAD))
{
foreach (md; testMonthDays)
{
foreach (hour; testHours)
{
foreach (minute; testMinSecs)
{
foreach (second; testMinSecs)
{
auto dt = DateTime(Date(year, md.month, md.day), TimeOfDay(hour, minute, second));
foreach (fs; testFracSecs)
test(SysTime(dt, fs, tz), hour);
}
}
}
}
}
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.hour == 12);
//assert(ist.hour == 12);
}
/++
Hours past midnight.
Params:
hour = The hours to set this $(LREF SysTime)'s hour to.
Throws:
$(REF DateTimeException,std,datetime,date) if the given hour are
not a valid hour of the day.
+/
@property void hour(int hour) @safe
{
enforceValid!"hours"(hour);
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs);
immutable daysHNSecs = convert!("days", "hnsecs")(days);
immutable negative = hnsecs < 0;
if (negative)
hnsecs += convert!("hours", "hnsecs")(24);
hnsecs = removeUnitsFromHNSecs!"hours"(hnsecs);
hnsecs += convert!("hours", "hnsecs")(hour);
if (negative)
hnsecs -= convert!("hours", "hnsecs")(24);
adjTime = daysHNSecs + hnsecs;
}
@safe unittest
{
import std.range : chain;
foreach (hour; chain(testHours))
{
foreach (st; chain(testSysTimesBC, testSysTimesAD))
{
auto dt = cast(DateTime) st;
auto expected = SysTime(DateTime(dt.year, dt.month, dt.day, hour, dt.minute, dt.second),
st.fracSecs,
st.timezone);
st.hour = hour;
assert(st == expected, format("[%s] [%s]", st, expected));
}
}
auto st = testSysTimesAD[0];
assertThrown!DateTimeException(st.hour = -1);
assertThrown!DateTimeException(st.hour = 60);
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.hour = 27));
//static assert(!__traits(compiles, ist.hour = 27));
}
/++
Minutes past the current hour.
+/
@property ubyte minute() @safe const nothrow
{
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
hnsecs = removeUnitsFromHNSecs!"hours"(hnsecs);
return cast(ubyte) getUnitsFromHNSecs!"minutes"(hnsecs);
}
@safe unittest
{
import std.range : chain;
static void test(SysTime sysTime, int expected)
{
assert(sysTime.minute == expected, format("Value given: %s", sysTime));
}
test(SysTime(0, UTC()), 0);
test(SysTime(1, UTC()), 0);
test(SysTime(-1, UTC()), 59);
foreach (tz; testTZs)
{
foreach (year; chain(testYearsBC, testYearsAD))
{
foreach (md; testMonthDays)
{
foreach (hour; testHours)
{
foreach (minute; testMinSecs)
{
foreach (second; testMinSecs)
{
auto dt = DateTime(Date(year, md.month, md.day), TimeOfDay(hour, minute, second));
foreach (fs; testFracSecs)
test(SysTime(dt, fs, tz), minute);
}
}
}
}
}
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.minute == 30);
//assert(ist.minute == 30);
}
/++
Minutes past the current hour.
Params:
minute = The minute to set this $(LREF SysTime)'s minute to.
Throws:
$(REF DateTimeException,std,datetime,date) if the given minute are
not a valid minute of an hour.
+/
@property void minute(int minute) @safe
{
enforceValid!"minutes"(minute);
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs);
immutable daysHNSecs = convert!("days", "hnsecs")(days);
immutable negative = hnsecs < 0;
if (negative)
hnsecs += convert!("hours", "hnsecs")(24);
immutable hour = splitUnitsFromHNSecs!"hours"(hnsecs);
hnsecs = removeUnitsFromHNSecs!"minutes"(hnsecs);
hnsecs += convert!("hours", "hnsecs")(hour);
hnsecs += convert!("minutes", "hnsecs")(minute);
if (negative)
hnsecs -= convert!("hours", "hnsecs")(24);
adjTime = daysHNSecs + hnsecs;
}
@safe unittest
{
import std.range : chain;
foreach (minute; testMinSecs)
{
foreach (st; chain(testSysTimesBC, testSysTimesAD))
{
auto dt = cast(DateTime) st;
auto expected = SysTime(DateTime(dt.year, dt.month, dt.day, dt.hour, minute, dt.second),
st.fracSecs,
st.timezone);
st.minute = minute;
assert(st == expected, format("[%s] [%s]", st, expected));
}
}
auto st = testSysTimesAD[0];
assertThrown!DateTimeException(st.minute = -1);
assertThrown!DateTimeException(st.minute = 60);
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.minute = 27));
//static assert(!__traits(compiles, ist.minute = 27));
}
/++
Seconds past the current minute.
+/
@property ubyte second() @safe const nothrow
{
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
hnsecs = removeUnitsFromHNSecs!"hours"(hnsecs);
hnsecs = removeUnitsFromHNSecs!"minutes"(hnsecs);
return cast(ubyte) getUnitsFromHNSecs!"seconds"(hnsecs);
}
@safe unittest
{
import std.range : chain;
static void test(SysTime sysTime, int expected)
{
assert(sysTime.second == expected, format("Value given: %s", sysTime));
}
test(SysTime(0, UTC()), 0);
test(SysTime(1, UTC()), 0);
test(SysTime(-1, UTC()), 59);
foreach (tz; testTZs)
{
foreach (year; chain(testYearsBC, testYearsAD))
{
foreach (md; testMonthDays)
{
foreach (hour; testHours)
{
foreach (minute; testMinSecs)
{
foreach (second; testMinSecs)
{
auto dt = DateTime(Date(year, md.month, md.day), TimeOfDay(hour, minute, second));
foreach (fs; testFracSecs)
test(SysTime(dt, fs, tz), second);
}
}
}
}
}
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.second == 33);
//assert(ist.second == 33);
}
/++
Seconds past the current minute.
Params:
second = The second to set this $(LREF SysTime)'s second to.
Throws:
$(REF DateTimeException,std,datetime,date) if the given second are
not a valid second of a minute.
+/
@property void second(int second) @safe
{
enforceValid!"seconds"(second);
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs);
immutable daysHNSecs = convert!("days", "hnsecs")(days);
immutable negative = hnsecs < 0;
if (negative)
hnsecs += convert!("hours", "hnsecs")(24);
immutable hour = splitUnitsFromHNSecs!"hours"(hnsecs);
immutable minute = splitUnitsFromHNSecs!"minutes"(hnsecs);
hnsecs = removeUnitsFromHNSecs!"seconds"(hnsecs);
hnsecs += convert!("hours", "hnsecs")(hour);
hnsecs += convert!("minutes", "hnsecs")(minute);
hnsecs += convert!("seconds", "hnsecs")(second);
if (negative)
hnsecs -= convert!("hours", "hnsecs")(24);
adjTime = daysHNSecs + hnsecs;
}
@safe unittest
{
import std.range : chain;
foreach (second; testMinSecs)
{
foreach (st; chain(testSysTimesBC, testSysTimesAD))
{
auto dt = cast(DateTime) st;
auto expected = SysTime(DateTime(dt.year, dt.month, dt.day, dt.hour, dt.minute, second),
st.fracSecs,
st.timezone);
st.second = second;
assert(st == expected, format("[%s] [%s]", st, expected));
}
}
auto st = testSysTimesAD[0];
assertThrown!DateTimeException(st.second = -1);
assertThrown!DateTimeException(st.second = 60);
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.seconds = 27));
//static assert(!__traits(compiles, ist.seconds = 27));
}
/++
Fractional seconds past the second (i.e. the portion of a
$(LREF SysTime) which is less than a second).
+/
@property Duration fracSecs() @safe const nothrow
{
auto hnsecs = removeUnitsFromHNSecs!"days"(adjTime);
if (hnsecs < 0)
hnsecs += convert!("hours", "hnsecs")(24);
return dur!"hnsecs"(removeUnitsFromHNSecs!"seconds"(hnsecs));
}
///
@safe unittest
{
import core.time : msecs, usecs, hnsecs, nsecs;
import std.datetime.date : DateTime;
auto dt = DateTime(1982, 4, 1, 20, 59, 22);
assert(SysTime(dt, msecs(213)).fracSecs == msecs(213));
assert(SysTime(dt, usecs(5202)).fracSecs == usecs(5202));
assert(SysTime(dt, hnsecs(1234567)).fracSecs == hnsecs(1234567));
// SysTime and Duration both have a precision of hnsecs (100 ns),
// so nsecs are going to be truncated.
assert(SysTime(dt, nsecs(123456789)).fracSecs == nsecs(123456700));
}
@safe unittest
{
import std.range : chain;
assert(SysTime(0, UTC()).fracSecs == Duration.zero);
assert(SysTime(1, UTC()).fracSecs == hnsecs(1));
assert(SysTime(-1, UTC()).fracSecs == hnsecs(9_999_999));
foreach (tz; testTZs)
{
foreach (year; chain(testYearsBC, testYearsAD))
{
foreach (md; testMonthDays)
{
foreach (hour; testHours)
{
foreach (minute; testMinSecs)
{
foreach (second; testMinSecs)
{
auto dt = DateTime(Date(year, md.month, md.day), TimeOfDay(hour, minute, second));
foreach (fs; testFracSecs)
assert(SysTime(dt, fs, tz).fracSecs == fs);
}
}
}
}
}
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.fracSecs == Duration.zero);
//assert(ist.fracSecs == Duration.zero);
}
/++
Fractional seconds past the second (i.e. the portion of a
$(LREF SysTime) which is less than a second).
Params:
fracSecs = The duration to set this $(LREF SysTime)'s fractional
seconds to.
Throws:
$(REF DateTimeException,std,datetime,date) if the given duration
is negative or if it's greater than or equal to one second.
+/
@property void fracSecs(Duration fracSecs) @safe
{
enforce(fracSecs >= Duration.zero, new DateTimeException("A SysTime cannot have negative fractional seconds."));
enforce(fracSecs < seconds(1), new DateTimeException("Fractional seconds must be less than one second."));
auto oldHNSecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(oldHNSecs);
immutable daysHNSecs = convert!("days", "hnsecs")(days);
immutable negative = oldHNSecs < 0;
if (negative)
oldHNSecs += convert!("hours", "hnsecs")(24);
immutable seconds = splitUnitsFromHNSecs!"seconds"(oldHNSecs);
immutable secondsHNSecs = convert!("seconds", "hnsecs")(seconds);
auto newHNSecs = fracSecs.total!"hnsecs" + secondsHNSecs;
if (negative)
newHNSecs -= convert!("hours", "hnsecs")(24);
adjTime = daysHNSecs + newHNSecs;
}
///
@safe unittest
{
import core.time : Duration, msecs, hnsecs, nsecs;
import std.datetime.date : DateTime;
auto st = SysTime(DateTime(1982, 4, 1, 20, 59, 22));
assert(st.fracSecs == Duration.zero);
st.fracSecs = msecs(213);
assert(st.fracSecs == msecs(213));
st.fracSecs = hnsecs(1234567);
assert(st.fracSecs == hnsecs(1234567));
// SysTime has a precision of hnsecs (100 ns), so nsecs are
// going to be truncated.
st.fracSecs = nsecs(123456789);
assert(st.fracSecs == hnsecs(1234567));
}
@safe unittest
{
import std.range : chain;
foreach (fracSec; testFracSecs)
{
foreach (st; chain(testSysTimesBC, testSysTimesAD))
{
auto dt = cast(DateTime) st;
auto expected = SysTime(dt, fracSec, st.timezone);
st.fracSecs = fracSec;
assert(st == expected, format("[%s] [%s]", st, expected));
}
}
auto st = testSysTimesAD[0];
assertThrown!DateTimeException(st.fracSecs = hnsecs(-1));
assertThrown!DateTimeException(st.fracSecs = seconds(1));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.fracSecs = msecs(7)));
//static assert(!__traits(compiles, ist.fracSecs = msecs(7)));
}
/++
The total hnsecs from midnight, January 1st, 1 A.D. UTC. This is the
internal representation of $(LREF SysTime).
+/
@property long stdTime() @safe const pure nothrow
{
return _stdTime;
}
@safe unittest
{
assert(SysTime(0).stdTime == 0);
assert(SysTime(1).stdTime == 1);
assert(SysTime(-1).stdTime == -1);
assert(SysTime(DateTime(1, 1, 1, 0, 0, 33), hnsecs(502), UTC()).stdTime == 330_000_502L);
assert(SysTime(DateTime(1970, 1, 1, 0, 0, 0), UTC()).stdTime == 621_355_968_000_000_000L);
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.stdTime > 0);
//assert(ist.stdTime > 0);
}
/++
The total hnsecs from midnight, January 1st, 1 A.D. UTC. This is the
internal representation of $(LREF SysTime).
Params:
stdTime = The number of hnsecs since January 1st, 1 A.D. UTC.
+/
@property void stdTime(long stdTime) @safe pure nothrow
{
_stdTime = stdTime;
}
@safe unittest
{
static void test(long stdTime, in SysTime expected, size_t line = __LINE__)
{
auto st = SysTime(0, UTC());
st.stdTime = stdTime;
assert(st == expected);
}
test(0, SysTime(Date(1, 1, 1), UTC()));
test(1, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1), UTC()));
test(-1, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999), UTC()));
test(330_000_502L, SysTime(DateTime(1, 1, 1, 0, 0, 33), hnsecs(502), UTC()));
test(621_355_968_000_000_000L, SysTime(DateTime(1970, 1, 1, 0, 0, 0), UTC()));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.stdTime = 27));
//static assert(!__traits(compiles, ist.stdTime = 27));
}
/++
The current time zone of this $(LREF SysTime). Its internal time is
always kept in UTC, so there are no conversion issues between time zones
due to DST. Functions which return all or part of the time - such as
hours - adjust the time to this $(LREF SysTime)'s time zone before
returning.
+/
@property immutable(TimeZone) timezone() @safe const pure nothrow
{
return _timezone;
}
/++
The current time zone of this $(LREF SysTime). It's internal time is
always kept in UTC, so there are no conversion issues between time zones
due to DST. Functions which return all or part of the time - such as
hours - adjust the time to this $(LREF SysTime)'s time zone before
returning.
Params:
timezone = The $(REF _TimeZone,std,datetime,_timezone) to set this
$(LREF SysTime)'s time zone to.
+/
@property void timezone(immutable TimeZone timezone) @safe pure nothrow
{
if (timezone is null)
_timezone = LocalTime();
else
_timezone = timezone;
}
/++
Returns whether DST is in effect for this $(LREF SysTime).
+/
@property bool dstInEffect() @safe const nothrow
{
return _timezone.dstInEffect(_stdTime);
// This function's unit testing is done in the time zone classes.
}
/++
Returns what the offset from UTC is for this $(LREF SysTime).
It includes the DST offset in effect at that time (if any).
+/
@property Duration utcOffset() @safe const nothrow
{
return _timezone.utcOffsetAt(_stdTime);
}
/++
Returns a $(LREF SysTime) with the same std time as this one, but with
$(REF LocalTime,std,datetime,timezone) as its time zone.
+/
SysTime toLocalTime() @safe const pure nothrow
{
return SysTime(_stdTime, LocalTime());
}
@safe unittest
{
{
auto sysTime = SysTime(DateTime(1982, 1, 4, 8, 59, 7), hnsecs(27));
assert(sysTime == sysTime.toLocalTime());
assert(sysTime._stdTime == sysTime.toLocalTime()._stdTime);
assert(sysTime.toLocalTime().timezone is LocalTime());
assert(sysTime.toLocalTime().timezone is sysTime.timezone);
assert(sysTime.toLocalTime().timezone !is UTC());
}
{
auto stz = new immutable SimpleTimeZone(dur!"minutes"(-3 * 60));
auto sysTime = SysTime(DateTime(1982, 1, 4, 8, 59, 7), hnsecs(27), stz);
assert(sysTime == sysTime.toLocalTime());
assert(sysTime._stdTime == sysTime.toLocalTime()._stdTime);
assert(sysTime.toLocalTime().timezone is LocalTime());
assert(sysTime.toLocalTime().timezone !is UTC());
assert(sysTime.toLocalTime().timezone !is stz);
}
}
/++
Returns a $(LREF SysTime) with the same std time as this one, but with
$(D UTC) as its time zone.
+/
SysTime toUTC() @safe const pure nothrow
{
return SysTime(_stdTime, UTC());
}
@safe unittest
{
auto sysTime = SysTime(DateTime(1982, 1, 4, 8, 59, 7), hnsecs(27));
assert(sysTime == sysTime.toUTC());
assert(sysTime._stdTime == sysTime.toUTC()._stdTime);
assert(sysTime.toUTC().timezone is UTC());
assert(sysTime.toUTC().timezone !is LocalTime());
assert(sysTime.toUTC().timezone !is sysTime.timezone);
}
/++
Returns a $(LREF SysTime) with the same std time as this one, but with
given time zone as its time zone.
+/
SysTime toOtherTZ(immutable TimeZone tz) @safe const pure nothrow
{
if (tz is null)
return SysTime(_stdTime, LocalTime());
else
return SysTime(_stdTime, tz);
}
@safe unittest
{
auto stz = new immutable SimpleTimeZone(dur!"minutes"(11 * 60));
auto sysTime = SysTime(DateTime(1982, 1, 4, 8, 59, 7), hnsecs(27));
assert(sysTime == sysTime.toOtherTZ(stz));
assert(sysTime._stdTime == sysTime.toOtherTZ(stz)._stdTime);
assert(sysTime.toOtherTZ(stz).timezone is stz);
assert(sysTime.toOtherTZ(stz).timezone !is LocalTime());
assert(sysTime.toOtherTZ(stz).timezone !is UTC());
}
/++
Converts this $(LREF SysTime) to unix time (i.e. seconds from midnight,
January 1st, 1970 in UTC).
The C standard does not specify the representation of time_t, so it is
implementation defined. On POSIX systems, unix time is equivalent to
time_t, but that's not necessarily true on other systems (e.g. it is
not true for the Digital Mars C runtime). So, be careful when using unix
time with C functions on non-POSIX systems.
By default, the return type is time_t (which is normally an alias for
int on 32-bit systems and long on 64-bit systems), but if a different
size is required than either int or long can be passed as a template
argument to get the desired size.
If the return type is int, and the result can't fit in an int, then the
closest value that can be held in 32 bits will be used (so $(D int.max)
if it goes over and $(D int.min) if it goes under). However, no attempt
is made to deal with integer overflow if the return type is long.
Params:
T = The return type (int or long). It defaults to time_t, which is
normally 32 bits on a 32-bit system and 64 bits on a 64-bit
system.
Returns:
A signed integer representing the unix time which is equivalent to
this SysTime.
+/
T toUnixTime(T = time_t)() @safe const pure nothrow
if (is(T == int) || is(T == long))
{
return stdTimeToUnixTime!T(_stdTime);
}
///
@safe unittest
{
import core.time : hours;
import std.datetime.date : DateTime;
import std.datetime.timezone : SimpleTimeZone, UTC;
assert(SysTime(DateTime(1970, 1, 1), UTC()).toUnixTime() == 0);
auto pst = new immutable SimpleTimeZone(hours(-8));
assert(SysTime(DateTime(1970, 1, 1), pst).toUnixTime() == 28800);
auto utc = SysTime(DateTime(2007, 12, 22, 8, 14, 45), UTC());
assert(utc.toUnixTime() == 1_198_311_285);
auto ca = SysTime(DateTime(2007, 12, 22, 8, 14, 45), pst);
assert(ca.toUnixTime() == 1_198_340_085);
}
@safe unittest
{
import std.meta : AliasSeq;
assert(SysTime(DateTime(1970, 1, 1), UTC()).toUnixTime() == 0);
foreach (units; AliasSeq!("hnsecs", "usecs", "msecs"))
assert(SysTime(DateTime(1970, 1, 1, 0, 0, 0), dur!units(1), UTC()).toUnixTime() == 0);
assert(SysTime(DateTime(1970, 1, 1, 0, 0, 1), UTC()).toUnixTime() == 1);
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), hnsecs(9_999_999), UTC()).toUnixTime() == 0);
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), usecs(999_999), UTC()).toUnixTime() == 0);
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), msecs(999), UTC()).toUnixTime() == 0);
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), UTC()).toUnixTime() == -1);
}
/++
Converts from unix time (i.e. seconds from midnight, January 1st, 1970
in UTC) to a $(LREF SysTime).
The C standard does not specify the representation of time_t, so it is
implementation defined. On POSIX systems, unix time is equivalent to
time_t, but that's not necessarily true on other systems (e.g. it is
not true for the Digital Mars C runtime). So, be careful when using unix
time with C functions on non-POSIX systems.
Params:
unixTime = Seconds from midnight, January 1st, 1970 in UTC.
tz = The time zone for the SysTime that's returned.
+/
static SysTime fromUnixTime(long unixTime, immutable TimeZone tz = LocalTime()) @safe pure nothrow
{
return SysTime(unixTimeToStdTime(unixTime), tz);
}
///
@safe unittest
{
import core.time : hours;
import std.datetime.date : DateTime;
import std.datetime.timezone : SimpleTimeZone, UTC;
assert(SysTime.fromUnixTime(0) ==
SysTime(DateTime(1970, 1, 1), UTC()));
auto pst = new immutable SimpleTimeZone(hours(-8));
assert(SysTime.fromUnixTime(28800) ==
SysTime(DateTime(1970, 1, 1), pst));
auto st1 = SysTime.fromUnixTime(1_198_311_285, UTC());
assert(st1 == SysTime(DateTime(2007, 12, 22, 8, 14, 45), UTC()));
assert(st1.timezone is UTC());
assert(st1 == SysTime(DateTime(2007, 12, 22, 0, 14, 45), pst));
auto st2 = SysTime.fromUnixTime(1_198_311_285, pst);
assert(st2 == SysTime(DateTime(2007, 12, 22, 8, 14, 45), UTC()));
assert(st2.timezone is pst);
assert(st2 == SysTime(DateTime(2007, 12, 22, 0, 14, 45), pst));
}
@safe unittest
{
assert(SysTime.fromUnixTime(0) == SysTime(DateTime(1970, 1, 1), UTC()));
assert(SysTime.fromUnixTime(1) == SysTime(DateTime(1970, 1, 1, 0, 0, 1), UTC()));
assert(SysTime.fromUnixTime(-1) == SysTime(DateTime(1969, 12, 31, 23, 59, 59), UTC()));
auto st = SysTime.fromUnixTime(0);
auto dt = cast(DateTime) st;
assert(dt <= DateTime(1970, 2, 1) && dt >= DateTime(1969, 12, 31));
assert(st.timezone is LocalTime());
auto aest = new immutable SimpleTimeZone(hours(10));
assert(SysTime.fromUnixTime(-36000) == SysTime(DateTime(1970, 1, 1), aest));
}
/++
Returns a $(D timeval) which represents this $(LREF SysTime).
Note that like all conversions in std.datetime, this is a truncating
conversion.
If $(D timeval.tv_sec) is int, and the result can't fit in an int, then
the closest value that can be held in 32 bits will be used for
$(D tv_sec). (so $(D int.max) if it goes over and $(D int.min) if it
goes under).
+/
timeval toTimeVal() @safe const pure nothrow
{
immutable tv_sec = toUnixTime!(typeof(timeval.tv_sec))();
immutable fracHNSecs = removeUnitsFromHNSecs!"seconds"(_stdTime - 621_355_968_000_000_000L);
immutable tv_usec = cast(typeof(timeval.tv_usec))convert!("hnsecs", "usecs")(fracHNSecs);
return timeval(tv_sec, tv_usec);
}
@safe unittest
{
assert(SysTime(DateTime(1970, 1, 1), UTC()).toTimeVal() == timeval(0, 0));
assert(SysTime(DateTime(1970, 1, 1), hnsecs(9), UTC()).toTimeVal() == timeval(0, 0));
assert(SysTime(DateTime(1970, 1, 1), hnsecs(10), UTC()).toTimeVal() == timeval(0, 1));
assert(SysTime(DateTime(1970, 1, 1), usecs(7), UTC()).toTimeVal() == timeval(0, 7));
assert(SysTime(DateTime(1970, 1, 1, 0, 0, 1), UTC()).toTimeVal() == timeval(1, 0));
assert(SysTime(DateTime(1970, 1, 1, 0, 0, 1), hnsecs(9), UTC()).toTimeVal() == timeval(1, 0));
assert(SysTime(DateTime(1970, 1, 1, 0, 0, 1), hnsecs(10), UTC()).toTimeVal() == timeval(1, 1));
assert(SysTime(DateTime(1970, 1, 1, 0, 0, 1), usecs(7), UTC()).toTimeVal() == timeval(1, 7));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), hnsecs(9_999_999), UTC()).toTimeVal() == timeval(0, 0));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), hnsecs(9_999_990), UTC()).toTimeVal() == timeval(0, -1));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), usecs(999_999), UTC()).toTimeVal() == timeval(0, -1));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), usecs(999), UTC()).toTimeVal() == timeval(0, -999_001));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), msecs(999), UTC()).toTimeVal() == timeval(0, -1000));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), UTC()).toTimeVal() == timeval(-1, 0));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 58), usecs(17), UTC()).toTimeVal() == timeval(-1, -999_983));
}
version(StdDdoc)
{
private struct timespec {}
/++
Returns a $(D timespec) which represents this $(LREF SysTime).
$(BLUE This function is Posix-Only.)
+/
timespec toTimeSpec() @safe const pure nothrow;
}
else version(Posix)
{
timespec toTimeSpec() @safe const pure nothrow
{
immutable tv_sec = toUnixTime!(typeof(timespec.tv_sec))();
immutable fracHNSecs = removeUnitsFromHNSecs!"seconds"(_stdTime - 621_355_968_000_000_000L);
immutable tv_nsec = cast(typeof(timespec.tv_nsec))convert!("hnsecs", "nsecs")(fracHNSecs);
return timespec(tv_sec, tv_nsec);
}
@safe unittest
{
assert(SysTime(DateTime(1970, 1, 1), UTC()).toTimeSpec() == timespec(0, 0));
assert(SysTime(DateTime(1970, 1, 1), hnsecs(9), UTC()).toTimeSpec() == timespec(0, 900));
assert(SysTime(DateTime(1970, 1, 1), hnsecs(10), UTC()).toTimeSpec() == timespec(0, 1000));
assert(SysTime(DateTime(1970, 1, 1), usecs(7), UTC()).toTimeSpec() == timespec(0, 7000));
assert(SysTime(DateTime(1970, 1, 1, 0, 0, 1), UTC()).toTimeSpec() == timespec(1, 0));
assert(SysTime(DateTime(1970, 1, 1, 0, 0, 1), hnsecs(9), UTC()).toTimeSpec() == timespec(1, 900));
assert(SysTime(DateTime(1970, 1, 1, 0, 0, 1), hnsecs(10), UTC()).toTimeSpec() == timespec(1, 1000));
assert(SysTime(DateTime(1970, 1, 1, 0, 0, 1), usecs(7), UTC()).toTimeSpec() == timespec(1, 7000));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), hnsecs(9_999_999), UTC()).toTimeSpec() ==
timespec(0, -100));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), hnsecs(9_999_990), UTC()).toTimeSpec() ==
timespec(0, -1000));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), usecs(999_999), UTC()).toTimeSpec() ==
timespec(0, -1_000));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), usecs(999), UTC()).toTimeSpec() ==
timespec(0, -999_001_000));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), msecs(999), UTC()).toTimeSpec() ==
timespec(0, -1_000_000));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 59), UTC()).toTimeSpec() ==
timespec(-1, 0));
assert(SysTime(DateTime(1969, 12, 31, 23, 59, 58), usecs(17), UTC()).toTimeSpec() ==
timespec(-1, -999_983_000));
}
}
/++
Returns a $(D tm) which represents this $(LREF SysTime).
+/
tm toTM() @safe const nothrow
{
auto dateTime = cast(DateTime) this;
tm timeInfo;
timeInfo.tm_sec = dateTime.second;
timeInfo.tm_min = dateTime.minute;
timeInfo.tm_hour = dateTime.hour;
timeInfo.tm_mday = dateTime.day;
timeInfo.tm_mon = dateTime.month - 1;
timeInfo.tm_year = dateTime.year - 1900;
timeInfo.tm_wday = dateTime.dayOfWeek;
timeInfo.tm_yday = dateTime.dayOfYear - 1;
timeInfo.tm_isdst = _timezone.dstInEffect(_stdTime);
version(Posix)
{
import std.utf : toUTFz;
timeInfo.tm_gmtoff = cast(int) convert!("hnsecs", "seconds")(adjTime - _stdTime);
auto zone = (timeInfo.tm_isdst ? _timezone.dstName : _timezone.stdName);
timeInfo.tm_zone = zone.toUTFz!(char*)();
}
return timeInfo;
}
@system unittest
{
import std.conv : to;
version(Posix)
{
scope(exit) clearTZEnvVar();
setTZEnvVar("America/Los_Angeles");
}
{
auto timeInfo = SysTime(DateTime(1970, 1, 1)).toTM();
assert(timeInfo.tm_sec == 0);
assert(timeInfo.tm_min == 0);
assert(timeInfo.tm_hour == 0);
assert(timeInfo.tm_mday == 1);
assert(timeInfo.tm_mon == 0);
assert(timeInfo.tm_year == 70);
assert(timeInfo.tm_wday == 4);
assert(timeInfo.tm_yday == 0);
version(Posix)
assert(timeInfo.tm_isdst == 0);
else version(Windows)
assert(timeInfo.tm_isdst == 0 || timeInfo.tm_isdst == 1);
version(Posix)
{
assert(timeInfo.tm_gmtoff == -8 * 60 * 60);
assert(to!string(timeInfo.tm_zone) == "PST");
}
}
{
auto timeInfo = SysTime(DateTime(2010, 7, 4, 12, 15, 7), hnsecs(15)).toTM();
assert(timeInfo.tm_sec == 7);
assert(timeInfo.tm_min == 15);
assert(timeInfo.tm_hour == 12);
assert(timeInfo.tm_mday == 4);
assert(timeInfo.tm_mon == 6);
assert(timeInfo.tm_year == 110);
assert(timeInfo.tm_wday == 0);
assert(timeInfo.tm_yday == 184);
version(Posix)
assert(timeInfo.tm_isdst == 1);
else version(Windows)
assert(timeInfo.tm_isdst == 0 || timeInfo.tm_isdst == 1);
version(Posix)
{
assert(timeInfo.tm_gmtoff == -7 * 60 * 60);
assert(to!string(timeInfo.tm_zone) == "PDT");
}
}
}
/++
Adds the given number of years or months to this $(LREF SysTime). A
negative number will subtract.
Note that if day overflow is allowed, and the date with the adjusted
year/month overflows the number of days in the new month, then the month
will be incremented by one, and the day set to the number of days
overflowed. (e.g. if the day were 31 and the new month were June, then
the month would be incremented to July, and the new day would be 1). If
day overflow is not allowed, then the day will be set to the last valid
day in the month (e.g. June 31st would become June 30th).
Params:
units = The type of units to add ("years" or "months").
value = The number of months or years to add to this
$(LREF SysTime).
allowOverflow = Whether the days should be allowed to overflow,
causing the month to increment.
+/
ref SysTime add(string units)(long value, AllowDayOverflow allowOverflow = AllowDayOverflow.yes) @safe nothrow
if (units == "years" || units == "months")
{
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
auto date = Date(cast(int) days);
date.add!units(value, allowOverflow);
days = date.dayOfGregorianCal - 1;
if (days < 0)
{
hnsecs -= convert!("hours", "hnsecs")(24);
++days;
}
immutable newDaysHNSecs = convert!("days", "hnsecs")(days);
adjTime = newDaysHNSecs + hnsecs;
return this;
}
@safe unittest
{
auto st1 = SysTime(DateTime(2010, 1, 1, 12, 30, 33));
st1.add!"months"(11);
assert(st1 == SysTime(DateTime(2010, 12, 1, 12, 30, 33)));
auto st2 = SysTime(DateTime(2010, 1, 1, 12, 30, 33));
st2.add!"months"(-11);
assert(st2 == SysTime(DateTime(2009, 2, 1, 12, 30, 33)));
auto st3 = SysTime(DateTime(2000, 2, 29, 12, 30, 33));
st3.add!"years"(1);
assert(st3 == SysTime(DateTime(2001, 3, 1, 12, 30, 33)));
auto st4 = SysTime(DateTime(2000, 2, 29, 12, 30, 33));
st4.add!"years"(1, AllowDayOverflow.no);
assert(st4 == SysTime(DateTime(2001, 2, 28, 12, 30, 33)));
}
// Test add!"years"() with AllowDayOverflow.yes
@safe unittest
{
// Test A.D.
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.add!"years"(7);
assert(sysTime == SysTime(Date(2006, 7, 6)));
sysTime.add!"years"(-9);
assert(sysTime == SysTime(Date(1997, 7, 6)));
}
{
auto sysTime = SysTime(Date(1999, 2, 28));
sysTime.add!"years"(1);
assert(sysTime == SysTime(Date(2000, 2, 28)));
}
{
auto sysTime = SysTime(Date(2000, 2, 29));
sysTime.add!"years"(-1);
assert(sysTime == SysTime(Date(1999, 3, 1)));
}
{
auto sysTime = SysTime(DateTime(1999, 7, 6, 12, 7, 3), msecs(234));
sysTime.add!"years"(7);
assert(sysTime == SysTime(DateTime(2006, 7, 6, 12, 7, 3), msecs(234)));
sysTime.add!"years"(-9);
assert(sysTime == SysTime(DateTime(1997, 7, 6, 12, 7, 3), msecs(234)));
}
{
auto sysTime = SysTime(DateTime(1999, 2, 28, 0, 7, 2), usecs(1207));
sysTime.add!"years"(1);
assert(sysTime == SysTime(DateTime(2000, 2, 28, 0, 7, 2), usecs(1207)));
}
{
auto sysTime = SysTime(DateTime(2000, 2, 29, 0, 7, 2), usecs(1207));
sysTime.add!"years"(-1);
assert(sysTime == SysTime(DateTime(1999, 3, 1, 0, 7, 2), usecs(1207)));
}
// Test B.C.
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.add!"years"(-7);
assert(sysTime == SysTime(Date(-2006, 7, 6)));
sysTime.add!"years"(9);
assert(sysTime == SysTime(Date(-1997, 7, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 2, 28));
sysTime.add!"years"(-1);
assert(sysTime == SysTime(Date(-2000, 2, 28)));
}
{
auto sysTime = SysTime(Date(-2000, 2, 29));
sysTime.add!"years"(1);
assert(sysTime == SysTime(Date(-1999, 3, 1)));
}
{
auto sysTime = SysTime(DateTime(-1999, 7, 6, 12, 7, 3), msecs(234));
sysTime.add!"years"(-7);
assert(sysTime == SysTime(DateTime(-2006, 7, 6, 12, 7, 3), msecs(234)));
sysTime.add!"years"(9);
assert(sysTime == SysTime(DateTime(-1997, 7, 6, 12, 7, 3), msecs(234)));
}
{
auto sysTime = SysTime(DateTime(-1999, 2, 28, 3, 3, 3), hnsecs(3));
sysTime.add!"years"(-1);
assert(sysTime == SysTime(DateTime(-2000, 2, 28, 3, 3, 3), hnsecs(3)));
}
{
auto sysTime = SysTime(DateTime(-2000, 2, 29, 3, 3, 3), hnsecs(3));
sysTime.add!"years"(1);
assert(sysTime == SysTime(DateTime(-1999, 3, 1, 3, 3, 3), hnsecs(3)));
}
// Test Both
{
auto sysTime = SysTime(Date(4, 7, 6));
sysTime.add!"years"(-5);
assert(sysTime == SysTime(Date(-1, 7, 6)));
sysTime.add!"years"(5);
assert(sysTime == SysTime(Date(4, 7, 6)));
}
{
auto sysTime = SysTime(Date(-4, 7, 6));
sysTime.add!"years"(5);
assert(sysTime == SysTime(Date(1, 7, 6)));
sysTime.add!"years"(-5);
assert(sysTime == SysTime(Date(-4, 7, 6)));
}
{
auto sysTime = SysTime(Date(4, 7, 6));
sysTime.add!"years"(-8);
assert(sysTime == SysTime(Date(-4, 7, 6)));
sysTime.add!"years"(8);
assert(sysTime == SysTime(Date(4, 7, 6)));
}
{
auto sysTime = SysTime(Date(-4, 7, 6));
sysTime.add!"years"(8);
assert(sysTime == SysTime(Date(4, 7, 6)));
sysTime.add!"years"(-8);
assert(sysTime == SysTime(Date(-4, 7, 6)));
}
{
auto sysTime = SysTime(Date(-4, 2, 29));
sysTime.add!"years"(5);
assert(sysTime == SysTime(Date(1, 3, 1)));
}
{
auto sysTime = SysTime(Date(4, 2, 29));
sysTime.add!"years"(-5);
assert(sysTime == SysTime(Date(-1, 3, 1)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 0, 0));
sysTime.add!"years"(-1);
assert(sysTime == SysTime(DateTime(0, 1, 1, 0, 0, 0)));
sysTime.add!"years"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.add!"years"(-1);
assert(sysTime == SysTime(DateTime(0, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.add!"years"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 1, 1, 0, 0, 0));
sysTime.add!"years"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
sysTime.add!"years"(-1);
assert(sysTime == SysTime(DateTime(0, 1, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(0, 1, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.add!"years"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.add!"years"(-1);
assert(sysTime == SysTime(DateTime(0, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(4, 7, 6, 14, 7, 1), usecs(54329));
sysTime.add!"years"(-5);
assert(sysTime == SysTime(DateTime(-1, 7, 6, 14, 7, 1), usecs(54329)));
sysTime.add!"years"(5);
assert(sysTime == SysTime(DateTime(4, 7, 6, 14, 7, 1), usecs(54329)));
}
{
auto sysTime = SysTime(DateTime(-4, 7, 6, 14, 7, 1), usecs(54329));
sysTime.add!"years"(5);
assert(sysTime == SysTime(DateTime(1, 7, 6, 14, 7, 1), usecs(54329)));
sysTime.add!"years"(-5);
assert(sysTime == SysTime(DateTime(-4, 7, 6, 14, 7, 1), usecs(54329)));
}
{
auto sysTime = SysTime(DateTime(-4, 2, 29, 5, 5, 5), msecs(555));
sysTime.add!"years"(5);
assert(sysTime == SysTime(DateTime(1, 3, 1, 5, 5, 5), msecs(555)));
}
{
auto sysTime = SysTime(DateTime(4, 2, 29, 5, 5, 5), msecs(555));
sysTime.add!"years"(-5);
assert(sysTime == SysTime(DateTime(-1, 3, 1, 5, 5, 5), msecs(555)));
}
{
auto sysTime = SysTime(DateTime(4, 2, 29, 5, 5, 5), msecs(555));
sysTime.add!"years"(-5).add!"years"(7);
assert(sysTime == SysTime(DateTime(6, 3, 1, 5, 5, 5), msecs(555)));
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.add!"years"(4)));
//static assert(!__traits(compiles, ist.add!"years"(4)));
}
// Test add!"years"() with AllowDayOverflow.no
@safe unittest
{
// Test A.D.
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.add!"years"(7, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(2006, 7, 6)));
sysTime.add!"years"(-9, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1997, 7, 6)));
}
{
auto sysTime = SysTime(Date(1999, 2, 28));
sysTime.add!"years"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(2000, 2, 28)));
}
{
auto sysTime = SysTime(Date(2000, 2, 29));
sysTime.add!"years"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 2, 28)));
}
{
auto sysTime = SysTime(DateTime(1999, 7, 6, 12, 7, 3), msecs(234));
sysTime.add!"years"(7, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(2006, 7, 6, 12, 7, 3), msecs(234)));
sysTime.add!"years"(-9, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1997, 7, 6, 12, 7, 3), msecs(234)));
}
{
auto sysTime = SysTime(DateTime(1999, 2, 28, 0, 7, 2), usecs(1207));
sysTime.add!"years"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(2000, 2, 28, 0, 7, 2), usecs(1207)));
}
{
auto sysTime = SysTime(DateTime(2000, 2, 29, 0, 7, 2), usecs(1207));
sysTime.add!"years"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1999, 2, 28, 0, 7, 2), usecs(1207)));
}
// Test B.C.
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.add!"years"(-7, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2006, 7, 6)));
sysTime.add!"years"(9, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1997, 7, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 2, 28));
sysTime.add!"years"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2000, 2, 28)));
}
{
auto sysTime = SysTime(Date(-2000, 2, 29));
sysTime.add!"years"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 2, 28)));
}
{
auto sysTime = SysTime(DateTime(-1999, 7, 6, 12, 7, 3), msecs(234));
sysTime.add!"years"(-7, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-2006, 7, 6, 12, 7, 3), msecs(234)));
sysTime.add!"years"(9, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-1997, 7, 6, 12, 7, 3), msecs(234)));
}
{
auto sysTime = SysTime(DateTime(-1999, 2, 28, 3, 3, 3), hnsecs(3));
sysTime.add!"years"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-2000, 2, 28, 3, 3, 3), hnsecs(3)));
}
{
auto sysTime = SysTime(DateTime(-2000, 2, 29, 3, 3, 3), hnsecs(3));
sysTime.add!"years"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-1999, 2, 28, 3, 3, 3), hnsecs(3)));
}
// Test Both
{
auto sysTime = SysTime(Date(4, 7, 6));
sysTime.add!"years"(-5, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1, 7, 6)));
sysTime.add!"years"(5, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(4, 7, 6)));
}
{
auto sysTime = SysTime(Date(-4, 7, 6));
sysTime.add!"years"(5, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1, 7, 6)));
sysTime.add!"years"(-5, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-4, 7, 6)));
}
{
auto sysTime = SysTime(Date(4, 7, 6));
sysTime.add!"years"(-8, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-4, 7, 6)));
sysTime.add!"years"(8, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(4, 7, 6)));
}
{
auto sysTime = SysTime(Date(-4, 7, 6));
sysTime.add!"years"(8, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(4, 7, 6)));
sysTime.add!"years"(-8, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-4, 7, 6)));
}
{
auto sysTime = SysTime(Date(-4, 2, 29));
sysTime.add!"years"(5, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1, 2, 28)));
}
{
auto sysTime = SysTime(Date(4, 2, 29));
sysTime.add!"years"(-5, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1, 2, 28)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 0, 0));
sysTime.add!"years"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 1, 1, 0, 0, 0)));
sysTime.add!"years"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.add!"years"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.add!"years"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 1, 1, 0, 0, 0));
sysTime.add!"years"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
sysTime.add!"years"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 1, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(0, 1, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.add!"years"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.add!"years"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(4, 7, 6, 14, 7, 1), usecs(54329));
sysTime.add!"years"(-5);
assert(sysTime == SysTime(DateTime(-1, 7, 6, 14, 7, 1), usecs(54329)));
sysTime.add!"years"(5);
assert(sysTime == SysTime(DateTime(4, 7, 6, 14, 7, 1), usecs(54329)));
}
{
auto sysTime = SysTime(DateTime(4, 7, 6, 14, 7, 1), usecs(54329));
sysTime.add!"years"(-5, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-1, 7, 6, 14, 7, 1), usecs(54329)));
sysTime.add!"years"(5, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(4, 7, 6, 14, 7, 1), usecs(54329)));
}
{
auto sysTime = SysTime(DateTime(-4, 7, 6, 14, 7, 1), usecs(54329));
sysTime.add!"years"(5, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 7, 6, 14, 7, 1), usecs(54329)));
sysTime.add!"years"(-5, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-4, 7, 6, 14, 7, 1), usecs(54329)));
}
{
auto sysTime = SysTime(DateTime(-4, 2, 29, 5, 5, 5), msecs(555));
sysTime.add!"years"(5, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 2, 28, 5, 5, 5), msecs(555)));
}
{
auto sysTime = SysTime(DateTime(4, 2, 29, 5, 5, 5), msecs(555));
sysTime.add!"years"(-5, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-1, 2, 28, 5, 5, 5), msecs(555)));
}
{
auto sysTime = SysTime(DateTime(4, 2, 29, 5, 5, 5), msecs(555));
sysTime.add!"years"(-5, AllowDayOverflow.no).add!"years"(7, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(6, 2, 28, 5, 5, 5), msecs(555)));
}
}
// Test add!"months"() with AllowDayOverflow.yes
@safe unittest
{
// Test A.D.
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.add!"months"(3);
assert(sysTime == SysTime(Date(1999, 10, 6)));
sysTime.add!"months"(-4);
assert(sysTime == SysTime(Date(1999, 6, 6)));
}
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.add!"months"(6);
assert(sysTime == SysTime(Date(2000, 1, 6)));
sysTime.add!"months"(-6);
assert(sysTime == SysTime(Date(1999, 7, 6)));
}
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.add!"months"(27);
assert(sysTime == SysTime(Date(2001, 10, 6)));
sysTime.add!"months"(-28);
assert(sysTime == SysTime(Date(1999, 6, 6)));
}
{
auto sysTime = SysTime(Date(1999, 5, 31));
sysTime.add!"months"(1);
assert(sysTime == SysTime(Date(1999, 7, 1)));
}
{
auto sysTime = SysTime(Date(1999, 5, 31));
sysTime.add!"months"(-1);
assert(sysTime == SysTime(Date(1999, 5, 1)));
}
{
auto sysTime = SysTime(Date(1999, 2, 28));
sysTime.add!"months"(12);
assert(sysTime == SysTime(Date(2000, 2, 28)));
}
{
auto sysTime = SysTime(Date(2000, 2, 29));
sysTime.add!"months"(12);
assert(sysTime == SysTime(Date(2001, 3, 1)));
}
{
auto sysTime = SysTime(Date(1999, 7, 31));
sysTime.add!"months"(1);
assert(sysTime == SysTime(Date(1999, 8, 31)));
sysTime.add!"months"(1);
assert(sysTime == SysTime(Date(1999, 10, 1)));
}
{
auto sysTime = SysTime(Date(1998, 8, 31));
sysTime.add!"months"(13);
assert(sysTime == SysTime(Date(1999, 10, 1)));
sysTime.add!"months"(-13);
assert(sysTime == SysTime(Date(1998, 9, 1)));
}
{
auto sysTime = SysTime(Date(1997, 12, 31));
sysTime.add!"months"(13);
assert(sysTime == SysTime(Date(1999, 1, 31)));
sysTime.add!"months"(-13);
assert(sysTime == SysTime(Date(1997, 12, 31)));
}
{
auto sysTime = SysTime(Date(1997, 12, 31));
sysTime.add!"months"(14);
assert(sysTime == SysTime(Date(1999, 3, 3)));
sysTime.add!"months"(-14);
assert(sysTime == SysTime(Date(1998, 1, 3)));
}
{
auto sysTime = SysTime(Date(1998, 12, 31));
sysTime.add!"months"(14);
assert(sysTime == SysTime(Date(2000, 3, 2)));
sysTime.add!"months"(-14);
assert(sysTime == SysTime(Date(1999, 1, 2)));
}
{
auto sysTime = SysTime(Date(1999, 12, 31));
sysTime.add!"months"(14);
assert(sysTime == SysTime(Date(2001, 3, 3)));
sysTime.add!"months"(-14);
assert(sysTime == SysTime(Date(2000, 1, 3)));
}
{
auto sysTime = SysTime(DateTime(1999, 7, 6, 12, 2, 7), usecs(5007));
sysTime.add!"months"(3);
assert(sysTime == SysTime(DateTime(1999, 10, 6, 12, 2, 7), usecs(5007)));
sysTime.add!"months"(-4);
assert(sysTime == SysTime(DateTime(1999, 6, 6, 12, 2, 7), usecs(5007)));
}
{
auto sysTime = SysTime(DateTime(1998, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.add!"months"(14);
assert(sysTime == SysTime(DateTime(2000, 3, 2, 7, 7, 7), hnsecs(422202)));
sysTime.add!"months"(-14);
assert(sysTime == SysTime(DateTime(1999, 1, 2, 7, 7, 7), hnsecs(422202)));
}
{
auto sysTime = SysTime(DateTime(1999, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.add!"months"(14);
assert(sysTime == SysTime(DateTime(2001, 3, 3, 7, 7, 7), hnsecs(422202)));
sysTime.add!"months"(-14);
assert(sysTime == SysTime(DateTime(2000, 1, 3, 7, 7, 7), hnsecs(422202)));
}
// Test B.C.
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.add!"months"(3);
assert(sysTime == SysTime(Date(-1999, 10, 6)));
sysTime.add!"months"(-4);
assert(sysTime == SysTime(Date(-1999, 6, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.add!"months"(6);
assert(sysTime == SysTime(Date(-1998, 1, 6)));
sysTime.add!"months"(-6);
assert(sysTime == SysTime(Date(-1999, 7, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.add!"months"(-27);
assert(sysTime == SysTime(Date(-2001, 4, 6)));
sysTime.add!"months"(28);
assert(sysTime == SysTime(Date(-1999, 8, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 5, 31));
sysTime.add!"months"(1);
assert(sysTime == SysTime(Date(-1999, 7, 1)));
}
{
auto sysTime = SysTime(Date(-1999, 5, 31));
sysTime.add!"months"(-1);
assert(sysTime == SysTime(Date(-1999, 5, 1)));
}
{
auto sysTime = SysTime(Date(-1999, 2, 28));
sysTime.add!"months"(-12);
assert(sysTime == SysTime(Date(-2000, 2, 28)));
}
{
auto sysTime = SysTime(Date(-2000, 2, 29));
sysTime.add!"months"(-12);
assert(sysTime == SysTime(Date(-2001, 3, 1)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 31));
sysTime.add!"months"(1);
assert(sysTime == SysTime(Date(-1999, 8, 31)));
sysTime.add!"months"(1);
assert(sysTime == SysTime(Date(-1999, 10, 1)));
}
{
auto sysTime = SysTime(Date(-1998, 8, 31));
sysTime.add!"months"(13);
assert(sysTime == SysTime(Date(-1997, 10, 1)));
sysTime.add!"months"(-13);
assert(sysTime == SysTime(Date(-1998, 9, 1)));
}
{
auto sysTime = SysTime(Date(-1997, 12, 31));
sysTime.add!"months"(13);
assert(sysTime == SysTime(Date(-1995, 1, 31)));
sysTime.add!"months"(-13);
assert(sysTime == SysTime(Date(-1997, 12, 31)));
}
{
auto sysTime = SysTime(Date(-1997, 12, 31));
sysTime.add!"months"(14);
assert(sysTime == SysTime(Date(-1995, 3, 3)));
sysTime.add!"months"(-14);
assert(sysTime == SysTime(Date(-1996, 1, 3)));
}
{
auto sysTime = SysTime(Date(-2002, 12, 31));
sysTime.add!"months"(14);
assert(sysTime == SysTime(Date(-2000, 3, 2)));
sysTime.add!"months"(-14);
assert(sysTime == SysTime(Date(-2001, 1, 2)));
}
{
auto sysTime = SysTime(Date(-2001, 12, 31));
sysTime.add!"months"(14);
assert(sysTime == SysTime(Date(-1999, 3, 3)));
sysTime.add!"months"(-14);
assert(sysTime == SysTime(Date(-2000, 1, 3)));
}
{
auto sysTime = SysTime(DateTime(-1999, 7, 6, 12, 2, 7), usecs(5007));
sysTime.add!"months"(3);
assert(sysTime == SysTime(DateTime(-1999, 10, 6, 12, 2, 7), usecs(5007)));
sysTime.add!"months"(-4);
assert(sysTime == SysTime(DateTime(-1999, 6, 6, 12, 2, 7), usecs(5007)));
}
{
auto sysTime = SysTime(DateTime(-2002, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.add!"months"(14);
assert(sysTime == SysTime(DateTime(-2000, 3, 2, 7, 7, 7), hnsecs(422202)));
sysTime.add!"months"(-14);
assert(sysTime == SysTime(DateTime(-2001, 1, 2, 7, 7, 7), hnsecs(422202)));
}
{
auto sysTime = SysTime(DateTime(-2001, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.add!"months"(14);
assert(sysTime == SysTime(DateTime(-1999, 3, 3, 7, 7, 7), hnsecs(422202)));
sysTime.add!"months"(-14);
assert(sysTime == SysTime(DateTime(-2000, 1, 3, 7, 7, 7), hnsecs(422202)));
}
// Test Both
{
auto sysTime = SysTime(Date(1, 1, 1));
sysTime.add!"months"(-1);
assert(sysTime == SysTime(Date(0, 12, 1)));
sysTime.add!"months"(1);
assert(sysTime == SysTime(Date(1, 1, 1)));
}
{
auto sysTime = SysTime(Date(4, 1, 1));
sysTime.add!"months"(-48);
assert(sysTime == SysTime(Date(0, 1, 1)));
sysTime.add!"months"(48);
assert(sysTime == SysTime(Date(4, 1, 1)));
}
{
auto sysTime = SysTime(Date(4, 3, 31));
sysTime.add!"months"(-49);
assert(sysTime == SysTime(Date(0, 3, 2)));
sysTime.add!"months"(49);
assert(sysTime == SysTime(Date(4, 4, 2)));
}
{
auto sysTime = SysTime(Date(4, 3, 31));
sysTime.add!"months"(-85);
assert(sysTime == SysTime(Date(-3, 3, 3)));
sysTime.add!"months"(85);
assert(sysTime == SysTime(Date(4, 4, 3)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 0, 0));
sysTime.add!"months"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 1, 0, 0, 0)));
sysTime.add!"months"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.add!"months"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.add!"months"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 1, 0, 0, 0));
sysTime.add!"months"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
sysTime.add!"months"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.add!"months"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.add!"months"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 7, 9), hnsecs(17));
sysTime.add!"months"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 1, 0, 7, 9), hnsecs(17)));
sysTime.add!"months"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 7, 9), hnsecs(17)));
}
{
auto sysTime = SysTime(DateTime(4, 3, 31, 12, 11, 10), msecs(9));
sysTime.add!"months"(-85);
assert(sysTime == SysTime(DateTime(-3, 3, 3, 12, 11, 10), msecs(9)));
sysTime.add!"months"(85);
assert(sysTime == SysTime(DateTime(4, 4, 3, 12, 11, 10), msecs(9)));
}
{
auto sysTime = SysTime(DateTime(-3, 3, 31, 12, 11, 10), msecs(9));
sysTime.add!"months"(85);
assert(sysTime == SysTime(DateTime(4, 5, 1, 12, 11, 10), msecs(9)));
sysTime.add!"months"(-85);
assert(sysTime == SysTime(DateTime(-3, 4, 1, 12, 11, 10), msecs(9)));
}
{
auto sysTime = SysTime(DateTime(-3, 3, 31, 12, 11, 10), msecs(9));
sysTime.add!"months"(85).add!"months"(-83);
assert(sysTime == SysTime(DateTime(-3, 6, 1, 12, 11, 10), msecs(9)));
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.add!"months"(4)));
//static assert(!__traits(compiles, ist.add!"months"(4)));
}
// Test add!"months"() with AllowDayOverflow.no
@safe unittest
{
// Test A.D.
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.add!"months"(3, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 10, 6)));
sysTime.add!"months"(-4, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 6, 6)));
}
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.add!"months"(6, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(2000, 1, 6)));
sysTime.add!"months"(-6, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 7, 6)));
}
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.add!"months"(27, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(2001, 10, 6)));
sysTime.add!"months"(-28, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 6, 6)));
}
{
auto sysTime = SysTime(Date(1999, 5, 31));
sysTime.add!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 6, 30)));
}
{
auto sysTime = SysTime(Date(1999, 5, 31));
sysTime.add!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 4, 30)));
}
{
auto sysTime = SysTime(Date(1999, 2, 28));
sysTime.add!"months"(12, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(2000, 2, 28)));
}
{
auto sysTime = SysTime(Date(2000, 2, 29));
sysTime.add!"months"(12, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(2001, 2, 28)));
}
{
auto sysTime = SysTime(Date(1999, 7, 31));
sysTime.add!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 8, 31)));
sysTime.add!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 9, 30)));
}
{
auto sysTime = SysTime(Date(1998, 8, 31));
sysTime.add!"months"(13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 9, 30)));
sysTime.add!"months"(-13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1998, 8, 30)));
}
{
auto sysTime = SysTime(Date(1997, 12, 31));
sysTime.add!"months"(13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 1, 31)));
sysTime.add!"months"(-13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1997, 12, 31)));
}
{
auto sysTime = SysTime(Date(1997, 12, 31));
sysTime.add!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 2, 28)));
sysTime.add!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1997, 12, 28)));
}
{
auto sysTime = SysTime(Date(1998, 12, 31));
sysTime.add!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(2000, 2, 29)));
sysTime.add!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1998, 12, 29)));
}
{
auto sysTime = SysTime(Date(1999, 12, 31));
sysTime.add!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(2001, 2, 28)));
sysTime.add!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 12, 28)));
}
{
auto sysTime = SysTime(DateTime(1999, 7, 6, 12, 2, 7), usecs(5007));
sysTime.add!"months"(3, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1999, 10, 6, 12, 2, 7), usecs(5007)));
sysTime.add!"months"(-4, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1999, 6, 6, 12, 2, 7), usecs(5007)));
}
{
auto sysTime = SysTime(DateTime(1998, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.add!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(2000, 2, 29, 7, 7, 7), hnsecs(422202)));
sysTime.add!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1998, 12, 29, 7, 7, 7), hnsecs(422202)));
}
{
auto sysTime = SysTime(DateTime(1999, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.add!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(2001, 2, 28, 7, 7, 7), hnsecs(422202)));
sysTime.add!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1999, 12, 28, 7, 7, 7), hnsecs(422202)));
}
// Test B.C.
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.add!"months"(3, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 10, 6)));
sysTime.add!"months"(-4, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 6, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.add!"months"(6, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1998, 1, 6)));
sysTime.add!"months"(-6, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 7, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.add!"months"(-27, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2001, 4, 6)));
sysTime.add!"months"(28, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 8, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 5, 31));
sysTime.add!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 6, 30)));
}
{
auto sysTime = SysTime(Date(-1999, 5, 31));
sysTime.add!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 4, 30)));
}
{
auto sysTime = SysTime(Date(-1999, 2, 28));
sysTime.add!"months"(-12, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2000, 2, 28)));
}
{
auto sysTime = SysTime(Date(-2000, 2, 29));
sysTime.add!"months"(-12, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2001, 2, 28)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 31));
sysTime.add!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 8, 31)));
sysTime.add!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 9, 30)));
}
{
auto sysTime = SysTime(Date(-1998, 8, 31));
sysTime.add!"months"(13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1997, 9, 30)));
sysTime.add!"months"(-13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1998, 8, 30)));
}
{
auto sysTime = SysTime(Date(-1997, 12, 31));
sysTime.add!"months"(13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1995, 1, 31)));
sysTime.add!"months"(-13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1997, 12, 31)));
}
{
auto sysTime = SysTime(Date(-1997, 12, 31));
sysTime.add!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1995, 2, 28)));
sysTime.add!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1997, 12, 28)));
}
{
auto sysTime = SysTime(Date(-2002, 12, 31));
sysTime.add!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2000, 2, 29)));
sysTime.add!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2002, 12, 29)));
}
{
auto sysTime = SysTime(Date(-2001, 12, 31));
sysTime.add!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 2, 28)));
sysTime.add!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2001, 12, 28)));
}
{
auto sysTime = SysTime(DateTime(-1999, 7, 6, 12, 2, 7), usecs(5007));
sysTime.add!"months"(3, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-1999, 10, 6, 12, 2, 7), usecs(5007)));
sysTime.add!"months"(-4, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-1999, 6, 6, 12, 2, 7), usecs(5007)));
}
{
auto sysTime = SysTime(DateTime(-2002, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.add!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-2000, 2, 29, 7, 7, 7), hnsecs(422202)));
sysTime.add!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-2002, 12, 29, 7, 7, 7), hnsecs(422202)));
}
{
auto sysTime = SysTime(DateTime(-2001, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.add!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-1999, 2, 28, 7, 7, 7), hnsecs(422202)));
sysTime.add!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-2001, 12, 28, 7, 7, 7), hnsecs(422202)));
}
// Test Both
{
auto sysTime = SysTime(Date(1, 1, 1));
sysTime.add!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(0, 12, 1)));
sysTime.add!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1, 1, 1)));
}
{
auto sysTime = SysTime(Date(4, 1, 1));
sysTime.add!"months"(-48, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(0, 1, 1)));
sysTime.add!"months"(48, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(4, 1, 1)));
}
{
auto sysTime = SysTime(Date(4, 3, 31));
sysTime.add!"months"(-49, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(0, 2, 29)));
sysTime.add!"months"(49, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(4, 3, 29)));
}
{
auto sysTime = SysTime(Date(4, 3, 31));
sysTime.add!"months"(-85, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-3, 2, 28)));
sysTime.add!"months"(85, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(4, 3, 28)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 0, 0));
sysTime.add!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 12, 1, 0, 0, 0)));
sysTime.add!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.add!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 12, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.add!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 1, 0, 0, 0));
sysTime.add!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
sysTime.add!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 12, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.add!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.add!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 12, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 7, 9), hnsecs(17));
sysTime.add!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 12, 1, 0, 7, 9), hnsecs(17)));
sysTime.add!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 7, 9), hnsecs(17)));
}
{
auto sysTime = SysTime(DateTime(4, 3, 31, 12, 11, 10), msecs(9));
sysTime.add!"months"(-85, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-3, 2, 28, 12, 11, 10), msecs(9)));
sysTime.add!"months"(85, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(4, 3, 28, 12, 11, 10), msecs(9)));
}
{
auto sysTime = SysTime(DateTime(-3, 3, 31, 12, 11, 10), msecs(9));
sysTime.add!"months"(85, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(4, 4, 30, 12, 11, 10), msecs(9)));
sysTime.add!"months"(-85, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-3, 3, 30, 12, 11, 10), msecs(9)));
}
{
auto sysTime = SysTime(DateTime(-3, 3, 31, 12, 11, 10), msecs(9));
sysTime.add!"months"(85, AllowDayOverflow.no).add!"months"(-83, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-3, 5, 30, 12, 11, 10), msecs(9)));
}
}
/++
Adds the given number of years or months to this $(LREF SysTime). A
negative number will subtract.
The difference between rolling and adding is that rolling does not
affect larger units. Rolling a $(LREF SysTime) 12 months
gets the exact same $(LREF SysTime). However, the days can still be
affected due to the differing number of days in each month.
Because there are no units larger than years, there is no difference
between adding and rolling years.
Params:
units = The type of units to add ("years" or "months").
value = The number of months or years to add to this
$(LREF SysTime).
allowOverflow = Whether the days should be allowed to overflow,
causing the month to increment.
+/
ref SysTime roll(string units)(long value, AllowDayOverflow allowOverflow = AllowDayOverflow.yes) @safe nothrow
if (units == "years")
{
return add!"years"(value, allowOverflow);
}
///
@safe unittest
{
import std.datetime.date : AllowDayOverflow, DateTime;
auto st1 = SysTime(DateTime(2010, 1, 1, 12, 33, 33));
st1.roll!"months"(1);
assert(st1 == SysTime(DateTime(2010, 2, 1, 12, 33, 33)));
auto st2 = SysTime(DateTime(2010, 1, 1, 12, 33, 33));
st2.roll!"months"(-1);
assert(st2 == SysTime(DateTime(2010, 12, 1, 12, 33, 33)));
auto st3 = SysTime(DateTime(1999, 1, 29, 12, 33, 33));
st3.roll!"months"(1);
assert(st3 == SysTime(DateTime(1999, 3, 1, 12, 33, 33)));
auto st4 = SysTime(DateTime(1999, 1, 29, 12, 33, 33));
st4.roll!"months"(1, AllowDayOverflow.no);
assert(st4 == SysTime(DateTime(1999, 2, 28, 12, 33, 33)));
auto st5 = SysTime(DateTime(2000, 2, 29, 12, 30, 33));
st5.roll!"years"(1);
assert(st5 == SysTime(DateTime(2001, 3, 1, 12, 30, 33)));
auto st6 = SysTime(DateTime(2000, 2, 29, 12, 30, 33));
st6.roll!"years"(1, AllowDayOverflow.no);
assert(st6 == SysTime(DateTime(2001, 2, 28, 12, 30, 33)));
}
@safe unittest
{
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
st.roll!"years"(4);
static assert(!__traits(compiles, cst.roll!"years"(4)));
//static assert(!__traits(compiles, ist.roll!"years"(4)));
}
// Shares documentation with "years" overload.
ref SysTime roll(string units)(long value, AllowDayOverflow allowOverflow = AllowDayOverflow.yes) @safe nothrow
if (units == "months")
{
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
auto date = Date(cast(int) days);
date.roll!"months"(value, allowOverflow);
days = date.dayOfGregorianCal - 1;
if (days < 0)
{
hnsecs -= convert!("hours", "hnsecs")(24);
++days;
}
immutable newDaysHNSecs = convert!("days", "hnsecs")(days);
adjTime = newDaysHNSecs + hnsecs;
return this;
}
// Test roll!"months"() with AllowDayOverflow.yes
@safe unittest
{
// Test A.D.
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.roll!"months"(3);
assert(sysTime == SysTime(Date(1999, 10, 6)));
sysTime.roll!"months"(-4);
assert(sysTime == SysTime(Date(1999, 6, 6)));
}
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.roll!"months"(6);
assert(sysTime == SysTime(Date(1999, 1, 6)));
sysTime.roll!"months"(-6);
assert(sysTime == SysTime(Date(1999, 7, 6)));
}
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.roll!"months"(27);
assert(sysTime == SysTime(Date(1999, 10, 6)));
sysTime.roll!"months"(-28);
assert(sysTime == SysTime(Date(1999, 6, 6)));
}
{
auto sysTime = SysTime(Date(1999, 5, 31));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(Date(1999, 7, 1)));
}
{
auto sysTime = SysTime(Date(1999, 5, 31));
sysTime.roll!"months"(-1);
assert(sysTime == SysTime(Date(1999, 5, 1)));
}
{
auto sysTime = SysTime(Date(1999, 2, 28));
sysTime.roll!"months"(12);
assert(sysTime == SysTime(Date(1999, 2, 28)));
}
{
auto sysTime = SysTime(Date(2000, 2, 29));
sysTime.roll!"months"(12);
assert(sysTime == SysTime(Date(2000, 2, 29)));
}
{
auto sysTime = SysTime(Date(1999, 7, 31));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(Date(1999, 8, 31)));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(Date(1999, 10, 1)));
}
{
auto sysTime = SysTime(Date(1998, 8, 31));
sysTime.roll!"months"(13);
assert(sysTime == SysTime(Date(1998, 10, 1)));
sysTime.roll!"months"(-13);
assert(sysTime == SysTime(Date(1998, 9, 1)));
}
{
auto sysTime = SysTime(Date(1997, 12, 31));
sysTime.roll!"months"(13);
assert(sysTime == SysTime(Date(1997, 1, 31)));
sysTime.roll!"months"(-13);
assert(sysTime == SysTime(Date(1997, 12, 31)));
}
{
auto sysTime = SysTime(Date(1997, 12, 31));
sysTime.roll!"months"(14);
assert(sysTime == SysTime(Date(1997, 3, 3)));
sysTime.roll!"months"(-14);
assert(sysTime == SysTime(Date(1997, 1, 3)));
}
{
auto sysTime = SysTime(Date(1998, 12, 31));
sysTime.roll!"months"(14);
assert(sysTime == SysTime(Date(1998, 3, 3)));
sysTime.roll!"months"(-14);
assert(sysTime == SysTime(Date(1998, 1, 3)));
}
{
auto sysTime = SysTime(Date(1999, 12, 31));
sysTime.roll!"months"(14);
assert(sysTime == SysTime(Date(1999, 3, 3)));
sysTime.roll!"months"(-14);
assert(sysTime == SysTime(Date(1999, 1, 3)));
}
{
auto sysTime = SysTime(DateTime(1999, 7, 6, 12, 2, 7), usecs(5007));
sysTime.roll!"months"(3);
assert(sysTime == SysTime(DateTime(1999, 10, 6, 12, 2, 7), usecs(5007)));
sysTime.roll!"months"(-4);
assert(sysTime == SysTime(DateTime(1999, 6, 6, 12, 2, 7), usecs(5007)));
}
{
auto sysTime = SysTime(DateTime(1998, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.roll!"months"(14);
assert(sysTime == SysTime(DateTime(1998, 3, 3, 7, 7, 7), hnsecs(422202)));
sysTime.roll!"months"(-14);
assert(sysTime == SysTime(DateTime(1998, 1, 3, 7, 7, 7), hnsecs(422202)));
}
{
auto sysTime = SysTime(DateTime(1999, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.roll!"months"(14);
assert(sysTime == SysTime(DateTime(1999, 3, 3, 7, 7, 7), hnsecs(422202)));
sysTime.roll!"months"(-14);
assert(sysTime == SysTime(DateTime(1999, 1, 3, 7, 7, 7), hnsecs(422202)));
}
// Test B.C.
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.roll!"months"(3);
assert(sysTime == SysTime(Date(-1999, 10, 6)));
sysTime.roll!"months"(-4);
assert(sysTime == SysTime(Date(-1999, 6, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.roll!"months"(6);
assert(sysTime == SysTime(Date(-1999, 1, 6)));
sysTime.roll!"months"(-6);
assert(sysTime == SysTime(Date(-1999, 7, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.roll!"months"(-27);
assert(sysTime == SysTime(Date(-1999, 4, 6)));
sysTime.roll!"months"(28);
assert(sysTime == SysTime(Date(-1999, 8, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 5, 31));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(Date(-1999, 7, 1)));
}
{
auto sysTime = SysTime(Date(-1999, 5, 31));
sysTime.roll!"months"(-1);
assert(sysTime == SysTime(Date(-1999, 5, 1)));
}
{
auto sysTime = SysTime(Date(-1999, 2, 28));
sysTime.roll!"months"(-12);
assert(sysTime == SysTime(Date(-1999, 2, 28)));
}
{
auto sysTime = SysTime(Date(-2000, 2, 29));
sysTime.roll!"months"(-12);
assert(sysTime == SysTime(Date(-2000, 2, 29)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 31));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(Date(-1999, 8, 31)));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(Date(-1999, 10, 1)));
}
{
auto sysTime = SysTime(Date(-1998, 8, 31));
sysTime.roll!"months"(13);
assert(sysTime == SysTime(Date(-1998, 10, 1)));
sysTime.roll!"months"(-13);
assert(sysTime == SysTime(Date(-1998, 9, 1)));
}
{
auto sysTime = SysTime(Date(-1997, 12, 31));
sysTime.roll!"months"(13);
assert(sysTime == SysTime(Date(-1997, 1, 31)));
sysTime.roll!"months"(-13);
assert(sysTime == SysTime(Date(-1997, 12, 31)));
}
{
auto sysTime = SysTime(Date(-1997, 12, 31));
sysTime.roll!"months"(14);
assert(sysTime == SysTime(Date(-1997, 3, 3)));
sysTime.roll!"months"(-14);
assert(sysTime == SysTime(Date(-1997, 1, 3)));
}
{
auto sysTime = SysTime(Date(-2002, 12, 31));
sysTime.roll!"months"(14);
assert(sysTime == SysTime(Date(-2002, 3, 3)));
sysTime.roll!"months"(-14);
assert(sysTime == SysTime(Date(-2002, 1, 3)));
}
{
auto sysTime = SysTime(Date(-2001, 12, 31));
sysTime.roll!"months"(14);
assert(sysTime == SysTime(Date(-2001, 3, 3)));
sysTime.roll!"months"(-14);
assert(sysTime == SysTime(Date(-2001, 1, 3)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 0, 0));
sysTime.roll!"months"(-1);
assert(sysTime == SysTime(DateTime(1, 12, 1, 0, 0, 0)));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.roll!"months"(-1);
assert(sysTime == SysTime(DateTime(1, 12, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 1, 0, 0, 0));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(DateTime(0, 1, 1, 0, 0, 0)));
sysTime.roll!"months"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(DateTime(0, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.roll!"months"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(-1999, 7, 6, 12, 2, 7), hnsecs(5007));
sysTime.roll!"months"(3);
assert(sysTime == SysTime(DateTime(-1999, 10, 6, 12, 2, 7), hnsecs(5007)));
sysTime.roll!"months"(-4);
assert(sysTime == SysTime(DateTime(-1999, 6, 6, 12, 2, 7), hnsecs(5007)));
}
{
auto sysTime = SysTime(DateTime(-2002, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.roll!"months"(14);
assert(sysTime == SysTime(DateTime(-2002, 3, 3, 7, 7, 7), hnsecs(422202)));
sysTime.roll!"months"(-14);
assert(sysTime == SysTime(DateTime(-2002, 1, 3, 7, 7, 7), hnsecs(422202)));
}
{
auto sysTime = SysTime(DateTime(-2001, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.roll!"months"(14);
assert(sysTime == SysTime(DateTime(-2001, 3, 3, 7, 7, 7), hnsecs(422202)));
sysTime.roll!"months"(-14);
assert(sysTime == SysTime(DateTime(-2001, 1, 3, 7, 7, 7), hnsecs(422202)));
}
// Test Both
{
auto sysTime = SysTime(Date(1, 1, 1));
sysTime.roll!"months"(-1);
assert(sysTime == SysTime(Date(1, 12, 1)));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(Date(1, 1, 1)));
}
{
auto sysTime = SysTime(Date(4, 1, 1));
sysTime.roll!"months"(-48);
assert(sysTime == SysTime(Date(4, 1, 1)));
sysTime.roll!"months"(48);
assert(sysTime == SysTime(Date(4, 1, 1)));
}
{
auto sysTime = SysTime(Date(4, 3, 31));
sysTime.roll!"months"(-49);
assert(sysTime == SysTime(Date(4, 3, 2)));
sysTime.roll!"months"(49);
assert(sysTime == SysTime(Date(4, 4, 2)));
}
{
auto sysTime = SysTime(Date(4, 3, 31));
sysTime.roll!"months"(-85);
assert(sysTime == SysTime(Date(4, 3, 2)));
sysTime.roll!"months"(85);
assert(sysTime == SysTime(Date(4, 4, 2)));
}
{
auto sysTime = SysTime(Date(-1, 1, 1));
sysTime.roll!"months"(-1);
assert(sysTime == SysTime(Date(-1, 12, 1)));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(Date(-1, 1, 1)));
}
{
auto sysTime = SysTime(Date(-4, 1, 1));
sysTime.roll!"months"(-48);
assert(sysTime == SysTime(Date(-4, 1, 1)));
sysTime.roll!"months"(48);
assert(sysTime == SysTime(Date(-4, 1, 1)));
}
{
auto sysTime = SysTime(Date(-4, 3, 31));
sysTime.roll!"months"(-49);
assert(sysTime == SysTime(Date(-4, 3, 2)));
sysTime.roll!"months"(49);
assert(sysTime == SysTime(Date(-4, 4, 2)));
}
{
auto sysTime = SysTime(Date(-4, 3, 31));
sysTime.roll!"months"(-85);
assert(sysTime == SysTime(Date(-4, 3, 2)));
sysTime.roll!"months"(85);
assert(sysTime == SysTime(Date(-4, 4, 2)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 7, 9), hnsecs(17));
sysTime.roll!"months"(-1);
assert(sysTime == SysTime(DateTime(1, 12, 1, 0, 7, 9), hnsecs(17)));
sysTime.roll!"months"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 7, 9), hnsecs(17)));
}
{
auto sysTime = SysTime(DateTime(4, 3, 31, 12, 11, 10), msecs(9));
sysTime.roll!"months"(-85);
assert(sysTime == SysTime(DateTime(4, 3, 2, 12, 11, 10), msecs(9)));
sysTime.roll!"months"(85);
assert(sysTime == SysTime(DateTime(4, 4, 2, 12, 11, 10), msecs(9)));
}
{
auto sysTime = SysTime(DateTime(-3, 3, 31, 12, 11, 10), msecs(9));
sysTime.roll!"months"(85);
assert(sysTime == SysTime(DateTime(-3, 5, 1, 12, 11, 10), msecs(9)));
sysTime.roll!"months"(-85);
assert(sysTime == SysTime(DateTime(-3, 4, 1, 12, 11, 10), msecs(9)));
}
{
auto sysTime = SysTime(DateTime(-3, 3, 31, 12, 11, 10), msecs(9));
sysTime.roll!"months"(85).roll!"months"(-83);
assert(sysTime == SysTime(DateTime(-3, 6, 1, 12, 11, 10), msecs(9)));
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.roll!"months"(4)));
//static assert(!__traits(compiles, ist.roll!"months"(4)));
}
// Test roll!"months"() with AllowDayOverflow.no
@safe unittest
{
// Test A.D.
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.roll!"months"(3, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 10, 6)));
sysTime.roll!"months"(-4, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 6, 6)));
}
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.roll!"months"(6, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 1, 6)));
sysTime.roll!"months"(-6, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 7, 6)));
}
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.roll!"months"(27, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 10, 6)));
sysTime.roll!"months"(-28, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 6, 6)));
}
{
auto sysTime = SysTime(Date(1999, 5, 31));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 6, 30)));
}
{
auto sysTime = SysTime(Date(1999, 5, 31));
sysTime.roll!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 4, 30)));
}
{
auto sysTime = SysTime(Date(1999, 2, 28));
sysTime.roll!"months"(12, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 2, 28)));
}
{
auto sysTime = SysTime(Date(2000, 2, 29));
sysTime.roll!"months"(12, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(2000, 2, 29)));
}
{
auto sysTime = SysTime(Date(1999, 7, 31));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 8, 31)));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 9, 30)));
}
{
auto sysTime = SysTime(Date(1998, 8, 31));
sysTime.roll!"months"(13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1998, 9, 30)));
sysTime.roll!"months"(-13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1998, 8, 30)));
}
{
auto sysTime = SysTime(Date(1997, 12, 31));
sysTime.roll!"months"(13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1997, 1, 31)));
sysTime.roll!"months"(-13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1997, 12, 31)));
}
{
auto sysTime = SysTime(Date(1997, 12, 31));
sysTime.roll!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1997, 2, 28)));
sysTime.roll!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1997, 12, 28)));
}
{
auto sysTime = SysTime(Date(1998, 12, 31));
sysTime.roll!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1998, 2, 28)));
sysTime.roll!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1998, 12, 28)));
}
{
auto sysTime = SysTime(Date(1999, 12, 31));
sysTime.roll!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 2, 28)));
sysTime.roll!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1999, 12, 28)));
}
{
auto sysTime = SysTime(DateTime(1999, 7, 6, 12, 2, 7), usecs(5007));
sysTime.roll!"months"(3, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1999, 10, 6, 12, 2, 7), usecs(5007)));
sysTime.roll!"months"(-4, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1999, 6, 6, 12, 2, 7), usecs(5007)));
}
{
auto sysTime = SysTime(DateTime(1998, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.roll!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1998, 2, 28, 7, 7, 7), hnsecs(422202)));
sysTime.roll!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1998, 12, 28, 7, 7, 7), hnsecs(422202)));
}
{
auto sysTime = SysTime(DateTime(1999, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.roll!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1999, 2, 28, 7, 7, 7), hnsecs(422202)));
sysTime.roll!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1999, 12, 28, 7, 7, 7), hnsecs(422202)));
}
// Test B.C.
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.roll!"months"(3, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 10, 6)));
sysTime.roll!"months"(-4, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 6, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.roll!"months"(6, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 1, 6)));
sysTime.roll!"months"(-6, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 7, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.roll!"months"(-27, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 4, 6)));
sysTime.roll!"months"(28, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 8, 6)));
}
{
auto sysTime = SysTime(Date(-1999, 5, 31));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 6, 30)));
}
{
auto sysTime = SysTime(Date(-1999, 5, 31));
sysTime.roll!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 4, 30)));
}
{
auto sysTime = SysTime(Date(-1999, 2, 28));
sysTime.roll!"months"(-12, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 2, 28)));
}
{
auto sysTime = SysTime(Date(-2000, 2, 29));
sysTime.roll!"months"(-12, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2000, 2, 29)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 31));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 8, 31)));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1999, 9, 30)));
}
{
auto sysTime = SysTime(Date(-1998, 8, 31));
sysTime.roll!"months"(13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1998, 9, 30)));
sysTime.roll!"months"(-13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1998, 8, 30)));
}
{
auto sysTime = SysTime(Date(-1997, 12, 31));
sysTime.roll!"months"(13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1997, 1, 31)));
sysTime.roll!"months"(-13, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1997, 12, 31)));
}
{
auto sysTime = SysTime(Date(-1997, 12, 31));
sysTime.roll!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1997, 2, 28)));
sysTime.roll!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1997, 12, 28)));
}
{
auto sysTime = SysTime(Date(-2002, 12, 31));
sysTime.roll!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2002, 2, 28)));
sysTime.roll!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2002, 12, 28)));
}
{
auto sysTime = SysTime(Date(-2001, 12, 31));
sysTime.roll!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2001, 2, 28)));
sysTime.roll!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-2001, 12, 28)));
}
{
auto sysTime = SysTime(DateTime(-1999, 7, 6, 12, 2, 7), usecs(5007));
sysTime.roll!"months"(3, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-1999, 10, 6, 12, 2, 7), usecs(5007)));
sysTime.roll!"months"(-4, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-1999, 6, 6, 12, 2, 7), usecs(5007)));
}
{
auto sysTime = SysTime(DateTime(-2002, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.roll!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-2002, 2, 28, 7, 7, 7), hnsecs(422202)));
sysTime.roll!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-2002, 12, 28, 7, 7, 7), hnsecs(422202)));
}
{
auto sysTime = SysTime(DateTime(-2001, 12, 31, 7, 7, 7), hnsecs(422202));
sysTime.roll!"months"(14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-2001, 2, 28, 7, 7, 7), hnsecs(422202)));
sysTime.roll!"months"(-14, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-2001, 12, 28, 7, 7, 7), hnsecs(422202)));
}
// Test Both
{
auto sysTime = SysTime(Date(1, 1, 1));
sysTime.roll!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1, 12, 1)));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(1, 1, 1)));
}
{
auto sysTime = SysTime(Date(4, 1, 1));
sysTime.roll!"months"(-48, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(4, 1, 1)));
sysTime.roll!"months"(48, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(4, 1, 1)));
}
{
auto sysTime = SysTime(Date(4, 3, 31));
sysTime.roll!"months"(-49, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(4, 2, 29)));
sysTime.roll!"months"(49, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(4, 3, 29)));
}
{
auto sysTime = SysTime(Date(4, 3, 31));
sysTime.roll!"months"(-85, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(4, 2, 29)));
sysTime.roll!"months"(85, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(4, 3, 29)));
}
{
auto sysTime = SysTime(Date(-1, 1, 1));
sysTime.roll!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1, 12, 1)));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-1, 1, 1)));
}
{
auto sysTime = SysTime(Date(-4, 1, 1));
sysTime.roll!"months"(-48, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-4, 1, 1)));
sysTime.roll!"months"(48, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-4, 1, 1)));
}
{
auto sysTime = SysTime(Date(-4, 3, 31));
sysTime.roll!"months"(-49, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-4, 2, 29)));
sysTime.roll!"months"(49, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-4, 3, 29)));
}
{
auto sysTime = SysTime(Date(-4, 3, 31));
sysTime.roll!"months"(-85, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-4, 2, 29)));
sysTime.roll!"months"(85, AllowDayOverflow.no);
assert(sysTime == SysTime(Date(-4, 3, 29)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 0, 0));
sysTime.roll!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 12, 1, 0, 0, 0)));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.roll!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 12, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 1, 0, 0, 0));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 1, 1, 0, 0, 0)));
sysTime.roll!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 12, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.roll!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(0, 12, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 7, 9), hnsecs(17));
sysTime.roll!"months"(-1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 12, 1, 0, 7, 9), hnsecs(17)));
sysTime.roll!"months"(1, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 7, 9), hnsecs(17)));
}
{
auto sysTime = SysTime(DateTime(4, 3, 31, 12, 11, 10), msecs(9));
sysTime.roll!"months"(-85, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(4, 2, 29, 12, 11, 10), msecs(9)));
sysTime.roll!"months"(85, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(4, 3, 29, 12, 11, 10), msecs(9)));
}
{
auto sysTime = SysTime(DateTime(-3, 3, 31, 12, 11, 10), msecs(9));
sysTime.roll!"months"(85, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-3, 4, 30, 12, 11, 10), msecs(9)));
sysTime.roll!"months"(-85, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-3, 3, 30, 12, 11, 10), msecs(9)));
}
{
auto sysTime = SysTime(DateTime(-3, 3, 31, 12, 11, 10), msecs(9));
sysTime.roll!"months"(85, AllowDayOverflow.no).roll!"months"(-83, AllowDayOverflow.no);
assert(sysTime == SysTime(DateTime(-3, 5, 30, 12, 11, 10), msecs(9)));
}
}
/++
Adds the given number of units to this $(LREF SysTime). A negative number
will subtract.
The difference between rolling and adding is that rolling does not
affect larger units. For instance, rolling a $(LREF SysTime) one
year's worth of days gets the exact same $(LREF SysTime).
Accepted units are $(D "days"), $(D "minutes"), $(D "hours"),
$(D "minutes"), $(D "seconds"), $(D "msecs"), $(D "usecs"), and
$(D "hnsecs").
Note that when rolling msecs, usecs or hnsecs, they all add up to a
second. So, for example, rolling 1000 msecs is exactly the same as
rolling 100,000 usecs.
Params:
units = The units to add.
value = The number of $(D_PARAM units) to add to this
$(LREF SysTime).
+/
ref SysTime roll(string units)(long value) @safe nothrow
if (units == "days")
{
auto hnsecs = adjTime;
auto gdays = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--gdays;
}
auto date = Date(cast(int) gdays);
date.roll!"days"(value);
gdays = date.dayOfGregorianCal - 1;
if (gdays < 0)
{
hnsecs -= convert!("hours", "hnsecs")(24);
++gdays;
}
immutable newDaysHNSecs = convert!("days", "hnsecs")(gdays);
adjTime = newDaysHNSecs + hnsecs;
return this;
}
///
@safe unittest
{
import core.time : msecs, hnsecs;
import std.datetime.date : DateTime;
auto st1 = SysTime(DateTime(2010, 1, 1, 11, 23, 12));
st1.roll!"days"(1);
assert(st1 == SysTime(DateTime(2010, 1, 2, 11, 23, 12)));
st1.roll!"days"(365);
assert(st1 == SysTime(DateTime(2010, 1, 26, 11, 23, 12)));
st1.roll!"days"(-32);
assert(st1 == SysTime(DateTime(2010, 1, 25, 11, 23, 12)));
auto st2 = SysTime(DateTime(2010, 7, 4, 12, 0, 0));
st2.roll!"hours"(1);
assert(st2 == SysTime(DateTime(2010, 7, 4, 13, 0, 0)));
auto st3 = SysTime(DateTime(2010, 2, 12, 12, 0, 0));
st3.roll!"hours"(-1);
assert(st3 == SysTime(DateTime(2010, 2, 12, 11, 0, 0)));
auto st4 = SysTime(DateTime(2009, 12, 31, 0, 0, 0));
st4.roll!"minutes"(1);
assert(st4 == SysTime(DateTime(2009, 12, 31, 0, 1, 0)));
auto st5 = SysTime(DateTime(2010, 1, 1, 0, 0, 0));
st5.roll!"minutes"(-1);
assert(st5 == SysTime(DateTime(2010, 1, 1, 0, 59, 0)));
auto st6 = SysTime(DateTime(2009, 12, 31, 0, 0, 0));
st6.roll!"seconds"(1);
assert(st6 == SysTime(DateTime(2009, 12, 31, 0, 0, 1)));
auto st7 = SysTime(DateTime(2010, 1, 1, 0, 0, 0));
st7.roll!"seconds"(-1);
assert(st7 == SysTime(DateTime(2010, 1, 1, 0, 0, 59)));
auto dt = DateTime(2010, 1, 1, 0, 0, 0);
auto st8 = SysTime(dt);
st8.roll!"msecs"(1);
assert(st8 == SysTime(dt, msecs(1)));
auto st9 = SysTime(dt);
st9.roll!"msecs"(-1);
assert(st9 == SysTime(dt, msecs(999)));
auto st10 = SysTime(dt);
st10.roll!"hnsecs"(1);
assert(st10 == SysTime(dt, hnsecs(1)));
auto st11 = SysTime(dt);
st11.roll!"hnsecs"(-1);
assert(st11 == SysTime(dt, hnsecs(9_999_999)));
}
@safe unittest
{
// Test A.D.
{
auto sysTime = SysTime(Date(1999, 2, 28));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(Date(1999, 2, 1)));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(Date(1999, 2, 28)));
}
{
auto sysTime = SysTime(Date(2000, 2, 28));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(Date(2000, 2, 29)));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(Date(2000, 2, 1)));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(Date(2000, 2, 29)));
}
{
auto sysTime = SysTime(Date(1999, 6, 30));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(Date(1999, 6, 1)));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(Date(1999, 6, 30)));
}
{
auto sysTime = SysTime(Date(1999, 7, 31));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(Date(1999, 7, 1)));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(Date(1999, 7, 31)));
}
{
auto sysTime = SysTime(Date(1999, 1, 1));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(Date(1999, 1, 31)));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(Date(1999, 1, 1)));
}
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.roll!"days"(9);
assert(sysTime == SysTime(Date(1999, 7, 15)));
sysTime.roll!"days"(-11);
assert(sysTime == SysTime(Date(1999, 7, 4)));
sysTime.roll!"days"(30);
assert(sysTime == SysTime(Date(1999, 7, 3)));
sysTime.roll!"days"(-3);
assert(sysTime == SysTime(Date(1999, 7, 31)));
}
{
auto sysTime = SysTime(Date(1999, 7, 6));
sysTime.roll!"days"(365);
assert(sysTime == SysTime(Date(1999, 7, 30)));
sysTime.roll!"days"(-365);
assert(sysTime == SysTime(Date(1999, 7, 6)));
sysTime.roll!"days"(366);
assert(sysTime == SysTime(Date(1999, 7, 31)));
sysTime.roll!"days"(730);
assert(sysTime == SysTime(Date(1999, 7, 17)));
sysTime.roll!"days"(-1096);
assert(sysTime == SysTime(Date(1999, 7, 6)));
}
{
auto sysTime = SysTime(Date(1999, 2, 6));
sysTime.roll!"days"(365);
assert(sysTime == SysTime(Date(1999, 2, 7)));
sysTime.roll!"days"(-365);
assert(sysTime == SysTime(Date(1999, 2, 6)));
sysTime.roll!"days"(366);
assert(sysTime == SysTime(Date(1999, 2, 8)));
sysTime.roll!"days"(730);
assert(sysTime == SysTime(Date(1999, 2, 10)));
sysTime.roll!"days"(-1096);
assert(sysTime == SysTime(Date(1999, 2, 6)));
}
{
auto sysTime = SysTime(DateTime(1999, 2, 28, 7, 9, 2), usecs(234578));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(DateTime(1999, 2, 1, 7, 9, 2), usecs(234578)));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(DateTime(1999, 2, 28, 7, 9, 2), usecs(234578)));
}
{
auto sysTime = SysTime(DateTime(1999, 7, 6, 7, 9, 2), usecs(234578));
sysTime.roll!"days"(9);
assert(sysTime == SysTime(DateTime(1999, 7, 15, 7, 9, 2), usecs(234578)));
sysTime.roll!"days"(-11);
assert(sysTime == SysTime(DateTime(1999, 7, 4, 7, 9, 2), usecs(234578)));
sysTime.roll!"days"(30);
assert(sysTime == SysTime(DateTime(1999, 7, 3, 7, 9, 2), usecs(234578)));
sysTime.roll!"days"(-3);
assert(sysTime == SysTime(DateTime(1999, 7, 31, 7, 9, 2), usecs(234578)));
}
// Test B.C.
{
auto sysTime = SysTime(Date(-1999, 2, 28));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(Date(-1999, 2, 1)));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(Date(-1999, 2, 28)));
}
{
auto sysTime = SysTime(Date(-2000, 2, 28));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(Date(-2000, 2, 29)));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(Date(-2000, 2, 1)));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(Date(-2000, 2, 29)));
}
{
auto sysTime = SysTime(Date(-1999, 6, 30));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(Date(-1999, 6, 1)));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(Date(-1999, 6, 30)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 31));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(Date(-1999, 7, 1)));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(Date(-1999, 7, 31)));
}
{
auto sysTime = SysTime(Date(-1999, 1, 1));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(Date(-1999, 1, 31)));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(Date(-1999, 1, 1)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.roll!"days"(9);
assert(sysTime == SysTime(Date(-1999, 7, 15)));
sysTime.roll!"days"(-11);
assert(sysTime == SysTime(Date(-1999, 7, 4)));
sysTime.roll!"days"(30);
assert(sysTime == SysTime(Date(-1999, 7, 3)));
sysTime.roll!"days"(-3);
assert(sysTime == SysTime(Date(-1999, 7, 31)));
}
{
auto sysTime = SysTime(Date(-1999, 7, 6));
sysTime.roll!"days"(365);
assert(sysTime == SysTime(Date(-1999, 7, 30)));
sysTime.roll!"days"(-365);
assert(sysTime == SysTime(Date(-1999, 7, 6)));
sysTime.roll!"days"(366);
assert(sysTime == SysTime(Date(-1999, 7, 31)));
sysTime.roll!"days"(730);
assert(sysTime == SysTime(Date(-1999, 7, 17)));
sysTime.roll!"days"(-1096);
assert(sysTime == SysTime(Date(-1999, 7, 6)));
}
{
auto sysTime = SysTime(DateTime(-1999, 2, 28, 7, 9, 2), usecs(234578));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(DateTime(-1999, 2, 1, 7, 9, 2), usecs(234578)));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(DateTime(-1999, 2, 28, 7, 9, 2), usecs(234578)));
}
{
auto sysTime = SysTime(DateTime(-1999, 7, 6, 7, 9, 2), usecs(234578));
sysTime.roll!"days"(9);
assert(sysTime == SysTime(DateTime(-1999, 7, 15, 7, 9, 2), usecs(234578)));
sysTime.roll!"days"(-11);
assert(sysTime == SysTime(DateTime(-1999, 7, 4, 7, 9, 2), usecs(234578)));
sysTime.roll!"days"(30);
assert(sysTime == SysTime(DateTime(-1999, 7, 3, 7, 9, 2), usecs(234578)));
sysTime.roll!"days"(-3);
}
// Test Both
{
auto sysTime = SysTime(Date(1, 7, 6));
sysTime.roll!"days"(-365);
assert(sysTime == SysTime(Date(1, 7, 13)));
sysTime.roll!"days"(365);
assert(sysTime == SysTime(Date(1, 7, 6)));
sysTime.roll!"days"(-731);
assert(sysTime == SysTime(Date(1, 7, 19)));
sysTime.roll!"days"(730);
assert(sysTime == SysTime(Date(1, 7, 5)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 0, 0));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(DateTime(1, 1, 31, 0, 0, 0)));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(DateTime(1, 1, 31, 23, 59, 59), hnsecs(9_999_999)));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 31, 0, 0, 0));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(DateTime(0, 12, 1, 0, 0, 0)));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
sysTime.roll!"days"(1);
assert(sysTime == SysTime(DateTime(0, 12, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.roll!"days"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(1, 7, 6, 13, 13, 9), msecs(22));
sysTime.roll!"days"(-365);
assert(sysTime == SysTime(DateTime(1, 7, 13, 13, 13, 9), msecs(22)));
sysTime.roll!"days"(365);
assert(sysTime == SysTime(DateTime(1, 7, 6, 13, 13, 9), msecs(22)));
sysTime.roll!"days"(-731);
assert(sysTime == SysTime(DateTime(1, 7, 19, 13, 13, 9), msecs(22)));
sysTime.roll!"days"(730);
assert(sysTime == SysTime(DateTime(1, 7, 5, 13, 13, 9), msecs(22)));
}
{
auto sysTime = SysTime(DateTime(0, 7, 6, 13, 13, 9), msecs(22));
sysTime.roll!"days"(-365);
assert(sysTime == SysTime(DateTime(0, 7, 13, 13, 13, 9), msecs(22)));
sysTime.roll!"days"(365);
assert(sysTime == SysTime(DateTime(0, 7, 6, 13, 13, 9), msecs(22)));
sysTime.roll!"days"(-731);
assert(sysTime == SysTime(DateTime(0, 7, 19, 13, 13, 9), msecs(22)));
sysTime.roll!"days"(730);
assert(sysTime == SysTime(DateTime(0, 7, 5, 13, 13, 9), msecs(22)));
}
{
auto sysTime = SysTime(DateTime(0, 7, 6, 13, 13, 9), msecs(22));
sysTime.roll!"days"(-365).roll!"days"(362).roll!"days"(-12).roll!"days"(730);
assert(sysTime == SysTime(DateTime(0, 7, 8, 13, 13, 9), msecs(22)));
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.roll!"days"(4)));
//static assert(!__traits(compiles, ist.roll!"days"(4)));
}
// Shares documentation with "days" version.
ref SysTime roll(string units)(long value) @safe nothrow
if (units == "hours" || units == "minutes" || units == "seconds")
{
try
{
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
immutable hour = splitUnitsFromHNSecs!"hours"(hnsecs);
immutable minute = splitUnitsFromHNSecs!"minutes"(hnsecs);
immutable second = splitUnitsFromHNSecs!"seconds"(hnsecs);
auto dateTime = DateTime(Date(cast(int) days), TimeOfDay(cast(int) hour,
cast(int) minute, cast(int) second));
dateTime.roll!units(value);
--days;
hnsecs += convert!("hours", "hnsecs")(dateTime.hour);
hnsecs += convert!("minutes", "hnsecs")(dateTime.minute);
hnsecs += convert!("seconds", "hnsecs")(dateTime.second);
if (days < 0)
{
hnsecs -= convert!("hours", "hnsecs")(24);
++days;
}
immutable newDaysHNSecs = convert!("days", "hnsecs")(days);
adjTime = newDaysHNSecs + hnsecs;
return this;
}
catch (Exception e)
assert(0, "Either DateTime's constructor or TimeOfDay's constructor threw.");
}
// Test roll!"hours"().
@safe unittest
{
static void testST(SysTime orig, int hours, in SysTime expected, size_t line = __LINE__)
{
orig.roll!"hours"(hours);
if (orig != expected)
throw new AssertError(format("Failed. actual [%s] != expected [%s]", orig, expected), __FILE__, line);
}
// Test A.D.
immutable d = msecs(45);
auto beforeAD = SysTime(DateTime(1999, 7, 6, 12, 30, 33), d);
testST(beforeAD, 0, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, 1, SysTime(DateTime(1999, 7, 6, 13, 30, 33), d));
testST(beforeAD, 2, SysTime(DateTime(1999, 7, 6, 14, 30, 33), d));
testST(beforeAD, 3, SysTime(DateTime(1999, 7, 6, 15, 30, 33), d));
testST(beforeAD, 4, SysTime(DateTime(1999, 7, 6, 16, 30, 33), d));
testST(beforeAD, 5, SysTime(DateTime(1999, 7, 6, 17, 30, 33), d));
testST(beforeAD, 6, SysTime(DateTime(1999, 7, 6, 18, 30, 33), d));
testST(beforeAD, 7, SysTime(DateTime(1999, 7, 6, 19, 30, 33), d));
testST(beforeAD, 8, SysTime(DateTime(1999, 7, 6, 20, 30, 33), d));
testST(beforeAD, 9, SysTime(DateTime(1999, 7, 6, 21, 30, 33), d));
testST(beforeAD, 10, SysTime(DateTime(1999, 7, 6, 22, 30, 33), d));
testST(beforeAD, 11, SysTime(DateTime(1999, 7, 6, 23, 30, 33), d));
testST(beforeAD, 12, SysTime(DateTime(1999, 7, 6, 0, 30, 33), d));
testST(beforeAD, 13, SysTime(DateTime(1999, 7, 6, 1, 30, 33), d));
testST(beforeAD, 14, SysTime(DateTime(1999, 7, 6, 2, 30, 33), d));
testST(beforeAD, 15, SysTime(DateTime(1999, 7, 6, 3, 30, 33), d));
testST(beforeAD, 16, SysTime(DateTime(1999, 7, 6, 4, 30, 33), d));
testST(beforeAD, 17, SysTime(DateTime(1999, 7, 6, 5, 30, 33), d));
testST(beforeAD, 18, SysTime(DateTime(1999, 7, 6, 6, 30, 33), d));
testST(beforeAD, 19, SysTime(DateTime(1999, 7, 6, 7, 30, 33), d));
testST(beforeAD, 20, SysTime(DateTime(1999, 7, 6, 8, 30, 33), d));
testST(beforeAD, 21, SysTime(DateTime(1999, 7, 6, 9, 30, 33), d));
testST(beforeAD, 22, SysTime(DateTime(1999, 7, 6, 10, 30, 33), d));
testST(beforeAD, 23, SysTime(DateTime(1999, 7, 6, 11, 30, 33), d));
testST(beforeAD, 24, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, 25, SysTime(DateTime(1999, 7, 6, 13, 30, 33), d));
testST(beforeAD, 50, SysTime(DateTime(1999, 7, 6, 14, 30, 33), d));
testST(beforeAD, 10_000, SysTime(DateTime(1999, 7, 6, 4, 30, 33), d));
testST(beforeAD, -1, SysTime(DateTime(1999, 7, 6, 11, 30, 33), d));
testST(beforeAD, -2, SysTime(DateTime(1999, 7, 6, 10, 30, 33), d));
testST(beforeAD, -3, SysTime(DateTime(1999, 7, 6, 9, 30, 33), d));
testST(beforeAD, -4, SysTime(DateTime(1999, 7, 6, 8, 30, 33), d));
testST(beforeAD, -5, SysTime(DateTime(1999, 7, 6, 7, 30, 33), d));
testST(beforeAD, -6, SysTime(DateTime(1999, 7, 6, 6, 30, 33), d));
testST(beforeAD, -7, SysTime(DateTime(1999, 7, 6, 5, 30, 33), d));
testST(beforeAD, -8, SysTime(DateTime(1999, 7, 6, 4, 30, 33), d));
testST(beforeAD, -9, SysTime(DateTime(1999, 7, 6, 3, 30, 33), d));
testST(beforeAD, -10, SysTime(DateTime(1999, 7, 6, 2, 30, 33), d));
testST(beforeAD, -11, SysTime(DateTime(1999, 7, 6, 1, 30, 33), d));
testST(beforeAD, -12, SysTime(DateTime(1999, 7, 6, 0, 30, 33), d));
testST(beforeAD, -13, SysTime(DateTime(1999, 7, 6, 23, 30, 33), d));
testST(beforeAD, -14, SysTime(DateTime(1999, 7, 6, 22, 30, 33), d));
testST(beforeAD, -15, SysTime(DateTime(1999, 7, 6, 21, 30, 33), d));
testST(beforeAD, -16, SysTime(DateTime(1999, 7, 6, 20, 30, 33), d));
testST(beforeAD, -17, SysTime(DateTime(1999, 7, 6, 19, 30, 33), d));
testST(beforeAD, -18, SysTime(DateTime(1999, 7, 6, 18, 30, 33), d));
testST(beforeAD, -19, SysTime(DateTime(1999, 7, 6, 17, 30, 33), d));
testST(beforeAD, -20, SysTime(DateTime(1999, 7, 6, 16, 30, 33), d));
testST(beforeAD, -21, SysTime(DateTime(1999, 7, 6, 15, 30, 33), d));
testST(beforeAD, -22, SysTime(DateTime(1999, 7, 6, 14, 30, 33), d));
testST(beforeAD, -23, SysTime(DateTime(1999, 7, 6, 13, 30, 33), d));
testST(beforeAD, -24, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, -25, SysTime(DateTime(1999, 7, 6, 11, 30, 33), d));
testST(beforeAD, -50, SysTime(DateTime(1999, 7, 6, 10, 30, 33), d));
testST(beforeAD, -10_000, SysTime(DateTime(1999, 7, 6, 20, 30, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 0, 30, 33), d), 1, SysTime(DateTime(1999, 7, 6, 1, 30, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 0, 30, 33), d), 0, SysTime(DateTime(1999, 7, 6, 0, 30, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 0, 30, 33), d), -1, SysTime(DateTime(1999, 7, 6, 23, 30, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 23, 30, 33), d), 1, SysTime(DateTime(1999, 7, 6, 0, 30, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 23, 30, 33), d), 0, SysTime(DateTime(1999, 7, 6, 23, 30, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 23, 30, 33), d), -1, SysTime(DateTime(1999, 7, 6, 22, 30, 33), d));
testST(SysTime(DateTime(1999, 7, 31, 23, 30, 33), d), 1, SysTime(DateTime(1999, 7, 31, 0, 30, 33), d));
testST(SysTime(DateTime(1999, 8, 1, 0, 30, 33), d), -1, SysTime(DateTime(1999, 8, 1, 23, 30, 33), d));
testST(SysTime(DateTime(1999, 12, 31, 23, 30, 33), d), 1, SysTime(DateTime(1999, 12, 31, 0, 30, 33), d));
testST(SysTime(DateTime(2000, 1, 1, 0, 30, 33), d), -1, SysTime(DateTime(2000, 1, 1, 23, 30, 33), d));
testST(SysTime(DateTime(1999, 2, 28, 23, 30, 33), d), 25, SysTime(DateTime(1999, 2, 28, 0, 30, 33), d));
testST(SysTime(DateTime(1999, 3, 2, 0, 30, 33), d), -25, SysTime(DateTime(1999, 3, 2, 23, 30, 33), d));
testST(SysTime(DateTime(2000, 2, 28, 23, 30, 33), d), 25, SysTime(DateTime(2000, 2, 28, 0, 30, 33), d));
testST(SysTime(DateTime(2000, 3, 1, 0, 30, 33), d), -25, SysTime(DateTime(2000, 3, 1, 23, 30, 33), d));
// Test B.C.
auto beforeBC = SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d);
testST(beforeBC, 0, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, 1, SysTime(DateTime(-1999, 7, 6, 13, 30, 33), d));
testST(beforeBC, 2, SysTime(DateTime(-1999, 7, 6, 14, 30, 33), d));
testST(beforeBC, 3, SysTime(DateTime(-1999, 7, 6, 15, 30, 33), d));
testST(beforeBC, 4, SysTime(DateTime(-1999, 7, 6, 16, 30, 33), d));
testST(beforeBC, 5, SysTime(DateTime(-1999, 7, 6, 17, 30, 33), d));
testST(beforeBC, 6, SysTime(DateTime(-1999, 7, 6, 18, 30, 33), d));
testST(beforeBC, 7, SysTime(DateTime(-1999, 7, 6, 19, 30, 33), d));
testST(beforeBC, 8, SysTime(DateTime(-1999, 7, 6, 20, 30, 33), d));
testST(beforeBC, 9, SysTime(DateTime(-1999, 7, 6, 21, 30, 33), d));
testST(beforeBC, 10, SysTime(DateTime(-1999, 7, 6, 22, 30, 33), d));
testST(beforeBC, 11, SysTime(DateTime(-1999, 7, 6, 23, 30, 33), d));
testST(beforeBC, 12, SysTime(DateTime(-1999, 7, 6, 0, 30, 33), d));
testST(beforeBC, 13, SysTime(DateTime(-1999, 7, 6, 1, 30, 33), d));
testST(beforeBC, 14, SysTime(DateTime(-1999, 7, 6, 2, 30, 33), d));
testST(beforeBC, 15, SysTime(DateTime(-1999, 7, 6, 3, 30, 33), d));
testST(beforeBC, 16, SysTime(DateTime(-1999, 7, 6, 4, 30, 33), d));
testST(beforeBC, 17, SysTime(DateTime(-1999, 7, 6, 5, 30, 33), d));
testST(beforeBC, 18, SysTime(DateTime(-1999, 7, 6, 6, 30, 33), d));
testST(beforeBC, 19, SysTime(DateTime(-1999, 7, 6, 7, 30, 33), d));
testST(beforeBC, 20, SysTime(DateTime(-1999, 7, 6, 8, 30, 33), d));
testST(beforeBC, 21, SysTime(DateTime(-1999, 7, 6, 9, 30, 33), d));
testST(beforeBC, 22, SysTime(DateTime(-1999, 7, 6, 10, 30, 33), d));
testST(beforeBC, 23, SysTime(DateTime(-1999, 7, 6, 11, 30, 33), d));
testST(beforeBC, 24, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, 25, SysTime(DateTime(-1999, 7, 6, 13, 30, 33), d));
testST(beforeBC, 50, SysTime(DateTime(-1999, 7, 6, 14, 30, 33), d));
testST(beforeBC, 10_000, SysTime(DateTime(-1999, 7, 6, 4, 30, 33), d));
testST(beforeBC, -1, SysTime(DateTime(-1999, 7, 6, 11, 30, 33), d));
testST(beforeBC, -2, SysTime(DateTime(-1999, 7, 6, 10, 30, 33), d));
testST(beforeBC, -3, SysTime(DateTime(-1999, 7, 6, 9, 30, 33), d));
testST(beforeBC, -4, SysTime(DateTime(-1999, 7, 6, 8, 30, 33), d));
testST(beforeBC, -5, SysTime(DateTime(-1999, 7, 6, 7, 30, 33), d));
testST(beforeBC, -6, SysTime(DateTime(-1999, 7, 6, 6, 30, 33), d));
testST(beforeBC, -7, SysTime(DateTime(-1999, 7, 6, 5, 30, 33), d));
testST(beforeBC, -8, SysTime(DateTime(-1999, 7, 6, 4, 30, 33), d));
testST(beforeBC, -9, SysTime(DateTime(-1999, 7, 6, 3, 30, 33), d));
testST(beforeBC, -10, SysTime(DateTime(-1999, 7, 6, 2, 30, 33), d));
testST(beforeBC, -11, SysTime(DateTime(-1999, 7, 6, 1, 30, 33), d));
testST(beforeBC, -12, SysTime(DateTime(-1999, 7, 6, 0, 30, 33), d));
testST(beforeBC, -13, SysTime(DateTime(-1999, 7, 6, 23, 30, 33), d));
testST(beforeBC, -14, SysTime(DateTime(-1999, 7, 6, 22, 30, 33), d));
testST(beforeBC, -15, SysTime(DateTime(-1999, 7, 6, 21, 30, 33), d));
testST(beforeBC, -16, SysTime(DateTime(-1999, 7, 6, 20, 30, 33), d));
testST(beforeBC, -17, SysTime(DateTime(-1999, 7, 6, 19, 30, 33), d));
testST(beforeBC, -18, SysTime(DateTime(-1999, 7, 6, 18, 30, 33), d));
testST(beforeBC, -19, SysTime(DateTime(-1999, 7, 6, 17, 30, 33), d));
testST(beforeBC, -20, SysTime(DateTime(-1999, 7, 6, 16, 30, 33), d));
testST(beforeBC, -21, SysTime(DateTime(-1999, 7, 6, 15, 30, 33), d));
testST(beforeBC, -22, SysTime(DateTime(-1999, 7, 6, 14, 30, 33), d));
testST(beforeBC, -23, SysTime(DateTime(-1999, 7, 6, 13, 30, 33), d));
testST(beforeBC, -24, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, -25, SysTime(DateTime(-1999, 7, 6, 11, 30, 33), d));
testST(beforeBC, -50, SysTime(DateTime(-1999, 7, 6, 10, 30, 33), d));
testST(beforeBC, -10_000, SysTime(DateTime(-1999, 7, 6, 20, 30, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 0, 30, 33), d), 1, SysTime(DateTime(-1999, 7, 6, 1, 30, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 0, 30, 33), d), 0, SysTime(DateTime(-1999, 7, 6, 0, 30, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 0, 30, 33), d), -1, SysTime(DateTime(-1999, 7, 6, 23, 30, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 23, 30, 33), d), 1, SysTime(DateTime(-1999, 7, 6, 0, 30, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 23, 30, 33), d), 0, SysTime(DateTime(-1999, 7, 6, 23, 30, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 23, 30, 33), d), -1, SysTime(DateTime(-1999, 7, 6, 22, 30, 33), d));
testST(SysTime(DateTime(-1999, 7, 31, 23, 30, 33), d), 1, SysTime(DateTime(-1999, 7, 31, 0, 30, 33), d));
testST(SysTime(DateTime(-1999, 8, 1, 0, 30, 33), d), -1, SysTime(DateTime(-1999, 8, 1, 23, 30, 33), d));
testST(SysTime(DateTime(-2001, 12, 31, 23, 30, 33), d), 1, SysTime(DateTime(-2001, 12, 31, 0, 30, 33), d));
testST(SysTime(DateTime(-2000, 1, 1, 0, 30, 33), d), -1, SysTime(DateTime(-2000, 1, 1, 23, 30, 33), d));
testST(SysTime(DateTime(-2001, 2, 28, 23, 30, 33), d), 25, SysTime(DateTime(-2001, 2, 28, 0, 30, 33), d));
testST(SysTime(DateTime(-2001, 3, 2, 0, 30, 33), d), -25, SysTime(DateTime(-2001, 3, 2, 23, 30, 33), d));
testST(SysTime(DateTime(-2000, 2, 28, 23, 30, 33), d), 25, SysTime(DateTime(-2000, 2, 28, 0, 30, 33), d));
testST(SysTime(DateTime(-2000, 3, 1, 0, 30, 33), d), -25, SysTime(DateTime(-2000, 3, 1, 23, 30, 33), d));
// Test Both
testST(SysTime(DateTime(-1, 1, 1, 11, 30, 33), d), 17_546, SysTime(DateTime(-1, 1, 1, 13, 30, 33), d));
testST(SysTime(DateTime(1, 1, 1, 13, 30, 33), d), -17_546, SysTime(DateTime(1, 1, 1, 11, 30, 33), d));
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 0, 0));
sysTime.roll!"hours"(-1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 0, 0)));
sysTime.roll!"hours"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 59, 59), hnsecs(9_999_999));
sysTime.roll!"hours"(-1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
sysTime.roll!"hours"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 31, 23, 0, 0));
sysTime.roll!"hours"(1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 0, 0, 0)));
sysTime.roll!"hours"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
sysTime.roll!"hours"(1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 0, 59, 59), hnsecs(9_999_999)));
sysTime.roll!"hours"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
sysTime.roll!"hours"(1).roll!"hours"(-67);
assert(sysTime == SysTime(DateTime(0, 12, 31, 5, 59, 59), hnsecs(9_999_999)));
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.roll!"hours"(4)));
//static assert(!__traits(compiles, ist.roll!"hours"(4)));
}
// Test roll!"minutes"().
@safe unittest
{
static void testST(SysTime orig, int minutes, in SysTime expected, size_t line = __LINE__)
{
orig.roll!"minutes"(minutes);
if (orig != expected)
throw new AssertError(format("Failed. actual [%s] != expected [%s]", orig, expected), __FILE__, line);
}
// Test A.D.
immutable d = usecs(7203);
auto beforeAD = SysTime(DateTime(1999, 7, 6, 12, 30, 33), d);
testST(beforeAD, 0, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, 1, SysTime(DateTime(1999, 7, 6, 12, 31, 33), d));
testST(beforeAD, 2, SysTime(DateTime(1999, 7, 6, 12, 32, 33), d));
testST(beforeAD, 3, SysTime(DateTime(1999, 7, 6, 12, 33, 33), d));
testST(beforeAD, 4, SysTime(DateTime(1999, 7, 6, 12, 34, 33), d));
testST(beforeAD, 5, SysTime(DateTime(1999, 7, 6, 12, 35, 33), d));
testST(beforeAD, 10, SysTime(DateTime(1999, 7, 6, 12, 40, 33), d));
testST(beforeAD, 15, SysTime(DateTime(1999, 7, 6, 12, 45, 33), d));
testST(beforeAD, 29, SysTime(DateTime(1999, 7, 6, 12, 59, 33), d));
testST(beforeAD, 30, SysTime(DateTime(1999, 7, 6, 12, 0, 33), d));
testST(beforeAD, 45, SysTime(DateTime(1999, 7, 6, 12, 15, 33), d));
testST(beforeAD, 60, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, 75, SysTime(DateTime(1999, 7, 6, 12, 45, 33), d));
testST(beforeAD, 90, SysTime(DateTime(1999, 7, 6, 12, 0, 33), d));
testST(beforeAD, 100, SysTime(DateTime(1999, 7, 6, 12, 10, 33), d));
testST(beforeAD, 689, SysTime(DateTime(1999, 7, 6, 12, 59, 33), d));
testST(beforeAD, 690, SysTime(DateTime(1999, 7, 6, 12, 0, 33), d));
testST(beforeAD, 691, SysTime(DateTime(1999, 7, 6, 12, 1, 33), d));
testST(beforeAD, 960, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, 1439, SysTime(DateTime(1999, 7, 6, 12, 29, 33), d));
testST(beforeAD, 1440, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, 1441, SysTime(DateTime(1999, 7, 6, 12, 31, 33), d));
testST(beforeAD, 2880, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, -1, SysTime(DateTime(1999, 7, 6, 12, 29, 33), d));
testST(beforeAD, -2, SysTime(DateTime(1999, 7, 6, 12, 28, 33), d));
testST(beforeAD, -3, SysTime(DateTime(1999, 7, 6, 12, 27, 33), d));
testST(beforeAD, -4, SysTime(DateTime(1999, 7, 6, 12, 26, 33), d));
testST(beforeAD, -5, SysTime(DateTime(1999, 7, 6, 12, 25, 33), d));
testST(beforeAD, -10, SysTime(DateTime(1999, 7, 6, 12, 20, 33), d));
testST(beforeAD, -15, SysTime(DateTime(1999, 7, 6, 12, 15, 33), d));
testST(beforeAD, -29, SysTime(DateTime(1999, 7, 6, 12, 1, 33), d));
testST(beforeAD, -30, SysTime(DateTime(1999, 7, 6, 12, 0, 33), d));
testST(beforeAD, -45, SysTime(DateTime(1999, 7, 6, 12, 45, 33), d));
testST(beforeAD, -60, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, -75, SysTime(DateTime(1999, 7, 6, 12, 15, 33), d));
testST(beforeAD, -90, SysTime(DateTime(1999, 7, 6, 12, 0, 33), d));
testST(beforeAD, -100, SysTime(DateTime(1999, 7, 6, 12, 50, 33), d));
testST(beforeAD, -749, SysTime(DateTime(1999, 7, 6, 12, 1, 33), d));
testST(beforeAD, -750, SysTime(DateTime(1999, 7, 6, 12, 0, 33), d));
testST(beforeAD, -751, SysTime(DateTime(1999, 7, 6, 12, 59, 33), d));
testST(beforeAD, -960, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, -1439, SysTime(DateTime(1999, 7, 6, 12, 31, 33), d));
testST(beforeAD, -1440, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, -1441, SysTime(DateTime(1999, 7, 6, 12, 29, 33), d));
testST(beforeAD, -2880, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 12, 0, 33), d), 1, SysTime(DateTime(1999, 7, 6, 12, 1, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 12, 0, 33), d), 0, SysTime(DateTime(1999, 7, 6, 12, 0, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 12, 0, 33), d), -1, SysTime(DateTime(1999, 7, 6, 12, 59, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 11, 59, 33), d), 1, SysTime(DateTime(1999, 7, 6, 11, 0, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 11, 59, 33), d), 0, SysTime(DateTime(1999, 7, 6, 11, 59, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 11, 59, 33), d), -1, SysTime(DateTime(1999, 7, 6, 11, 58, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 0, 0, 33), d), 1, SysTime(DateTime(1999, 7, 6, 0, 1, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 0, 0, 33), d), 0, SysTime(DateTime(1999, 7, 6, 0, 0, 33), d));
testST(SysTime(DateTime(1999, 7, 6, 0, 0, 33), d), -1, SysTime(DateTime(1999, 7, 6, 0, 59, 33), d));
testST(SysTime(DateTime(1999, 7, 5, 23, 59, 33), d), 1, SysTime(DateTime(1999, 7, 5, 23, 0, 33), d));
testST(SysTime(DateTime(1999, 7, 5, 23, 59, 33), d), 0, SysTime(DateTime(1999, 7, 5, 23, 59, 33), d));
testST(SysTime(DateTime(1999, 7, 5, 23, 59, 33), d), -1, SysTime(DateTime(1999, 7, 5, 23, 58, 33), d));
testST(SysTime(DateTime(1998, 12, 31, 23, 59, 33), d), 1, SysTime(DateTime(1998, 12, 31, 23, 0, 33), d));
testST(SysTime(DateTime(1998, 12, 31, 23, 59, 33), d), 0, SysTime(DateTime(1998, 12, 31, 23, 59, 33), d));
testST(SysTime(DateTime(1998, 12, 31, 23, 59, 33), d), -1, SysTime(DateTime(1998, 12, 31, 23, 58, 33), d));
// Test B.C.
auto beforeBC = SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d);
testST(beforeBC, 0, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, 1, SysTime(DateTime(-1999, 7, 6, 12, 31, 33), d));
testST(beforeBC, 2, SysTime(DateTime(-1999, 7, 6, 12, 32, 33), d));
testST(beforeBC, 3, SysTime(DateTime(-1999, 7, 6, 12, 33, 33), d));
testST(beforeBC, 4, SysTime(DateTime(-1999, 7, 6, 12, 34, 33), d));
testST(beforeBC, 5, SysTime(DateTime(-1999, 7, 6, 12, 35, 33), d));
testST(beforeBC, 10, SysTime(DateTime(-1999, 7, 6, 12, 40, 33), d));
testST(beforeBC, 15, SysTime(DateTime(-1999, 7, 6, 12, 45, 33), d));
testST(beforeBC, 29, SysTime(DateTime(-1999, 7, 6, 12, 59, 33), d));
testST(beforeBC, 30, SysTime(DateTime(-1999, 7, 6, 12, 0, 33), d));
testST(beforeBC, 45, SysTime(DateTime(-1999, 7, 6, 12, 15, 33), d));
testST(beforeBC, 60, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, 75, SysTime(DateTime(-1999, 7, 6, 12, 45, 33), d));
testST(beforeBC, 90, SysTime(DateTime(-1999, 7, 6, 12, 0, 33), d));
testST(beforeBC, 100, SysTime(DateTime(-1999, 7, 6, 12, 10, 33), d));
testST(beforeBC, 689, SysTime(DateTime(-1999, 7, 6, 12, 59, 33), d));
testST(beforeBC, 690, SysTime(DateTime(-1999, 7, 6, 12, 0, 33), d));
testST(beforeBC, 691, SysTime(DateTime(-1999, 7, 6, 12, 1, 33), d));
testST(beforeBC, 960, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, 1439, SysTime(DateTime(-1999, 7, 6, 12, 29, 33), d));
testST(beforeBC, 1440, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, 1441, SysTime(DateTime(-1999, 7, 6, 12, 31, 33), d));
testST(beforeBC, 2880, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, -1, SysTime(DateTime(-1999, 7, 6, 12, 29, 33), d));
testST(beforeBC, -2, SysTime(DateTime(-1999, 7, 6, 12, 28, 33), d));
testST(beforeBC, -3, SysTime(DateTime(-1999, 7, 6, 12, 27, 33), d));
testST(beforeBC, -4, SysTime(DateTime(-1999, 7, 6, 12, 26, 33), d));
testST(beforeBC, -5, SysTime(DateTime(-1999, 7, 6, 12, 25, 33), d));
testST(beforeBC, -10, SysTime(DateTime(-1999, 7, 6, 12, 20, 33), d));
testST(beforeBC, -15, SysTime(DateTime(-1999, 7, 6, 12, 15, 33), d));
testST(beforeBC, -29, SysTime(DateTime(-1999, 7, 6, 12, 1, 33), d));
testST(beforeBC, -30, SysTime(DateTime(-1999, 7, 6, 12, 0, 33), d));
testST(beforeBC, -45, SysTime(DateTime(-1999, 7, 6, 12, 45, 33), d));
testST(beforeBC, -60, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, -75, SysTime(DateTime(-1999, 7, 6, 12, 15, 33), d));
testST(beforeBC, -90, SysTime(DateTime(-1999, 7, 6, 12, 0, 33), d));
testST(beforeBC, -100, SysTime(DateTime(-1999, 7, 6, 12, 50, 33), d));
testST(beforeBC, -749, SysTime(DateTime(-1999, 7, 6, 12, 1, 33), d));
testST(beforeBC, -750, SysTime(DateTime(-1999, 7, 6, 12, 0, 33), d));
testST(beforeBC, -751, SysTime(DateTime(-1999, 7, 6, 12, 59, 33), d));
testST(beforeBC, -960, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, -1439, SysTime(DateTime(-1999, 7, 6, 12, 31, 33), d));
testST(beforeBC, -1440, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, -1441, SysTime(DateTime(-1999, 7, 6, 12, 29, 33), d));
testST(beforeBC, -2880, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 12, 0, 33), d), 1, SysTime(DateTime(-1999, 7, 6, 12, 1, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 12, 0, 33), d), 0, SysTime(DateTime(-1999, 7, 6, 12, 0, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 12, 0, 33), d), -1, SysTime(DateTime(-1999, 7, 6, 12, 59, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 11, 59, 33), d), 1, SysTime(DateTime(-1999, 7, 6, 11, 0, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 11, 59, 33), d), 0, SysTime(DateTime(-1999, 7, 6, 11, 59, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 11, 59, 33), d), -1, SysTime(DateTime(-1999, 7, 6, 11, 58, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 0, 0, 33), d), 1, SysTime(DateTime(-1999, 7, 6, 0, 1, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 0, 0, 33), d), 0, SysTime(DateTime(-1999, 7, 6, 0, 0, 33), d));
testST(SysTime(DateTime(-1999, 7, 6, 0, 0, 33), d), -1, SysTime(DateTime(-1999, 7, 6, 0, 59, 33), d));
testST(SysTime(DateTime(-1999, 7, 5, 23, 59, 33), d), 1, SysTime(DateTime(-1999, 7, 5, 23, 0, 33), d));
testST(SysTime(DateTime(-1999, 7, 5, 23, 59, 33), d), 0, SysTime(DateTime(-1999, 7, 5, 23, 59, 33), d));
testST(SysTime(DateTime(-1999, 7, 5, 23, 59, 33), d), -1, SysTime(DateTime(-1999, 7, 5, 23, 58, 33), d));
testST(SysTime(DateTime(-2000, 12, 31, 23, 59, 33), d), 1, SysTime(DateTime(-2000, 12, 31, 23, 0, 33), d));
testST(SysTime(DateTime(-2000, 12, 31, 23, 59, 33), d), 0, SysTime(DateTime(-2000, 12, 31, 23, 59, 33), d));
testST(SysTime(DateTime(-2000, 12, 31, 23, 59, 33), d), -1, SysTime(DateTime(-2000, 12, 31, 23, 58, 33), d));
// Test Both
testST(SysTime(DateTime(1, 1, 1, 0, 0, 0)), -1, SysTime(DateTime(1, 1, 1, 0, 59, 0)));
testST(SysTime(DateTime(0, 12, 31, 23, 59, 0)), 1, SysTime(DateTime(0, 12, 31, 23, 0, 0)));
testST(SysTime(DateTime(0, 1, 1, 0, 0, 0)), -1, SysTime(DateTime(0, 1, 1, 0, 59, 0)));
testST(SysTime(DateTime(-1, 12, 31, 23, 59, 0)), 1, SysTime(DateTime(-1, 12, 31, 23, 0, 0)));
testST(SysTime(DateTime(-1, 1, 1, 11, 30, 33), d), 1_052_760, SysTime(DateTime(-1, 1, 1, 11, 30, 33), d));
testST(SysTime(DateTime(1, 1, 1, 13, 30, 33), d), -1_052_760, SysTime(DateTime(1, 1, 1, 13, 30, 33), d));
testST(SysTime(DateTime(-1, 1, 1, 11, 30, 33), d), 1_052_782, SysTime(DateTime(-1, 1, 1, 11, 52, 33), d));
testST(SysTime(DateTime(1, 1, 1, 13, 52, 33), d), -1_052_782, SysTime(DateTime(1, 1, 1, 13, 30, 33), d));
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 0, 0));
sysTime.roll!"minutes"(-1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 59, 0)));
sysTime.roll!"minutes"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 0, 59), hnsecs(9_999_999));
sysTime.roll!"minutes"(-1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 59, 59), hnsecs(9_999_999)));
sysTime.roll!"minutes"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 31, 23, 59, 0));
sysTime.roll!"minutes"(1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 0, 0)));
sysTime.roll!"minutes"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 59, 0)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
sysTime.roll!"minutes"(1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 0, 59), hnsecs(9_999_999)));
sysTime.roll!"minutes"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
sysTime.roll!"minutes"(1).roll!"minutes"(-79);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 41, 59), hnsecs(9_999_999)));
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.roll!"minutes"(4)));
//static assert(!__traits(compiles, ist.roll!"minutes"(4)));
}
// Test roll!"seconds"().
@safe unittest
{
static void testST(SysTime orig, int seconds, in SysTime expected, size_t line = __LINE__)
{
orig.roll!"seconds"(seconds);
if (orig != expected)
throw new AssertError(format("Failed. actual [%s] != expected [%s]", orig, expected), __FILE__, line);
}
// Test A.D.
immutable d = msecs(274);
auto beforeAD = SysTime(DateTime(1999, 7, 6, 12, 30, 33), d);
testST(beforeAD, 0, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, 1, SysTime(DateTime(1999, 7, 6, 12, 30, 34), d));
testST(beforeAD, 2, SysTime(DateTime(1999, 7, 6, 12, 30, 35), d));
testST(beforeAD, 3, SysTime(DateTime(1999, 7, 6, 12, 30, 36), d));
testST(beforeAD, 4, SysTime(DateTime(1999, 7, 6, 12, 30, 37), d));
testST(beforeAD, 5, SysTime(DateTime(1999, 7, 6, 12, 30, 38), d));
testST(beforeAD, 10, SysTime(DateTime(1999, 7, 6, 12, 30, 43), d));
testST(beforeAD, 15, SysTime(DateTime(1999, 7, 6, 12, 30, 48), d));
testST(beforeAD, 26, SysTime(DateTime(1999, 7, 6, 12, 30, 59), d));
testST(beforeAD, 27, SysTime(DateTime(1999, 7, 6, 12, 30, 0), d));
testST(beforeAD, 30, SysTime(DateTime(1999, 7, 6, 12, 30, 3), d));
testST(beforeAD, 59, SysTime(DateTime(1999, 7, 6, 12, 30, 32), d));
testST(beforeAD, 60, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, 61, SysTime(DateTime(1999, 7, 6, 12, 30, 34), d));
testST(beforeAD, 1766, SysTime(DateTime(1999, 7, 6, 12, 30, 59), d));
testST(beforeAD, 1767, SysTime(DateTime(1999, 7, 6, 12, 30, 0), d));
testST(beforeAD, 1768, SysTime(DateTime(1999, 7, 6, 12, 30, 1), d));
testST(beforeAD, 2007, SysTime(DateTime(1999, 7, 6, 12, 30, 0), d));
testST(beforeAD, 3599, SysTime(DateTime(1999, 7, 6, 12, 30, 32), d));
testST(beforeAD, 3600, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, 3601, SysTime(DateTime(1999, 7, 6, 12, 30, 34), d));
testST(beforeAD, 7200, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, -1, SysTime(DateTime(1999, 7, 6, 12, 30, 32), d));
testST(beforeAD, -2, SysTime(DateTime(1999, 7, 6, 12, 30, 31), d));
testST(beforeAD, -3, SysTime(DateTime(1999, 7, 6, 12, 30, 30), d));
testST(beforeAD, -4, SysTime(DateTime(1999, 7, 6, 12, 30, 29), d));
testST(beforeAD, -5, SysTime(DateTime(1999, 7, 6, 12, 30, 28), d));
testST(beforeAD, -10, SysTime(DateTime(1999, 7, 6, 12, 30, 23), d));
testST(beforeAD, -15, SysTime(DateTime(1999, 7, 6, 12, 30, 18), d));
testST(beforeAD, -33, SysTime(DateTime(1999, 7, 6, 12, 30, 0), d));
testST(beforeAD, -34, SysTime(DateTime(1999, 7, 6, 12, 30, 59), d));
testST(beforeAD, -35, SysTime(DateTime(1999, 7, 6, 12, 30, 58), d));
testST(beforeAD, -59, SysTime(DateTime(1999, 7, 6, 12, 30, 34), d));
testST(beforeAD, -60, SysTime(DateTime(1999, 7, 6, 12, 30, 33), d));
testST(beforeAD, -61, SysTime(DateTime(1999, 7, 6, 12, 30, 32), d));
testST(SysTime(DateTime(1999, 7, 6, 12, 30, 0), d), 1, SysTime(DateTime(1999, 7, 6, 12, 30, 1), d));
testST(SysTime(DateTime(1999, 7, 6, 12, 30, 0), d), 0, SysTime(DateTime(1999, 7, 6, 12, 30, 0), d));
testST(SysTime(DateTime(1999, 7, 6, 12, 30, 0), d), -1, SysTime(DateTime(1999, 7, 6, 12, 30, 59), d));
testST(SysTime(DateTime(1999, 7, 6, 12, 0, 0), d), 1, SysTime(DateTime(1999, 7, 6, 12, 0, 1), d));
testST(SysTime(DateTime(1999, 7, 6, 12, 0, 0), d), 0, SysTime(DateTime(1999, 7, 6, 12, 0, 0), d));
testST(SysTime(DateTime(1999, 7, 6, 12, 0, 0), d), -1, SysTime(DateTime(1999, 7, 6, 12, 0, 59), d));
testST(SysTime(DateTime(1999, 7, 6, 0, 0, 0), d), 1, SysTime(DateTime(1999, 7, 6, 0, 0, 1), d));
testST(SysTime(DateTime(1999, 7, 6, 0, 0, 0), d), 0, SysTime(DateTime(1999, 7, 6, 0, 0, 0), d));
testST(SysTime(DateTime(1999, 7, 6, 0, 0, 0), d), -1, SysTime(DateTime(1999, 7, 6, 0, 0, 59), d));
testST(SysTime(DateTime(1999, 7, 5, 23, 59, 59), d), 1, SysTime(DateTime(1999, 7, 5, 23, 59, 0), d));
testST(SysTime(DateTime(1999, 7, 5, 23, 59, 59), d), 0, SysTime(DateTime(1999, 7, 5, 23, 59, 59), d));
testST(SysTime(DateTime(1999, 7, 5, 23, 59, 59), d), -1, SysTime(DateTime(1999, 7, 5, 23, 59, 58), d));
testST(SysTime(DateTime(1998, 12, 31, 23, 59, 59), d), 1, SysTime(DateTime(1998, 12, 31, 23, 59, 0), d));
testST(SysTime(DateTime(1998, 12, 31, 23, 59, 59), d), 0, SysTime(DateTime(1998, 12, 31, 23, 59, 59), d));
testST(SysTime(DateTime(1998, 12, 31, 23, 59, 59), d), -1, SysTime(DateTime(1998, 12, 31, 23, 59, 58), d));
// Test B.C.
auto beforeBC = SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d);
testST(beforeBC, 0, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, 1, SysTime(DateTime(-1999, 7, 6, 12, 30, 34), d));
testST(beforeBC, 2, SysTime(DateTime(-1999, 7, 6, 12, 30, 35), d));
testST(beforeBC, 3, SysTime(DateTime(-1999, 7, 6, 12, 30, 36), d));
testST(beforeBC, 4, SysTime(DateTime(-1999, 7, 6, 12, 30, 37), d));
testST(beforeBC, 5, SysTime(DateTime(-1999, 7, 6, 12, 30, 38), d));
testST(beforeBC, 10, SysTime(DateTime(-1999, 7, 6, 12, 30, 43), d));
testST(beforeBC, 15, SysTime(DateTime(-1999, 7, 6, 12, 30, 48), d));
testST(beforeBC, 26, SysTime(DateTime(-1999, 7, 6, 12, 30, 59), d));
testST(beforeBC, 27, SysTime(DateTime(-1999, 7, 6, 12, 30, 0), d));
testST(beforeBC, 30, SysTime(DateTime(-1999, 7, 6, 12, 30, 3), d));
testST(beforeBC, 59, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), d));
testST(beforeBC, 60, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, 61, SysTime(DateTime(-1999, 7, 6, 12, 30, 34), d));
testST(beforeBC, 1766, SysTime(DateTime(-1999, 7, 6, 12, 30, 59), d));
testST(beforeBC, 1767, SysTime(DateTime(-1999, 7, 6, 12, 30, 0), d));
testST(beforeBC, 1768, SysTime(DateTime(-1999, 7, 6, 12, 30, 1), d));
testST(beforeBC, 2007, SysTime(DateTime(-1999, 7, 6, 12, 30, 0), d));
testST(beforeBC, 3599, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), d));
testST(beforeBC, 3600, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, 3601, SysTime(DateTime(-1999, 7, 6, 12, 30, 34), d));
testST(beforeBC, 7200, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, -1, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), d));
testST(beforeBC, -2, SysTime(DateTime(-1999, 7, 6, 12, 30, 31), d));
testST(beforeBC, -3, SysTime(DateTime(-1999, 7, 6, 12, 30, 30), d));
testST(beforeBC, -4, SysTime(DateTime(-1999, 7, 6, 12, 30, 29), d));
testST(beforeBC, -5, SysTime(DateTime(-1999, 7, 6, 12, 30, 28), d));
testST(beforeBC, -10, SysTime(DateTime(-1999, 7, 6, 12, 30, 23), d));
testST(beforeBC, -15, SysTime(DateTime(-1999, 7, 6, 12, 30, 18), d));
testST(beforeBC, -33, SysTime(DateTime(-1999, 7, 6, 12, 30, 0), d));
testST(beforeBC, -34, SysTime(DateTime(-1999, 7, 6, 12, 30, 59), d));
testST(beforeBC, -35, SysTime(DateTime(-1999, 7, 6, 12, 30, 58), d));
testST(beforeBC, -59, SysTime(DateTime(-1999, 7, 6, 12, 30, 34), d));
testST(beforeBC, -60, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), d));
testST(beforeBC, -61, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), d));
testST(SysTime(DateTime(-1999, 7, 6, 12, 30, 0), d), 1, SysTime(DateTime(-1999, 7, 6, 12, 30, 1), d));
testST(SysTime(DateTime(-1999, 7, 6, 12, 30, 0), d), 0, SysTime(DateTime(-1999, 7, 6, 12, 30, 0), d));
testST(SysTime(DateTime(-1999, 7, 6, 12, 30, 0), d), -1, SysTime(DateTime(-1999, 7, 6, 12, 30, 59), d));
testST(SysTime(DateTime(-1999, 7, 6, 12, 0, 0), d), 1, SysTime(DateTime(-1999, 7, 6, 12, 0, 1), d));
testST(SysTime(DateTime(-1999, 7, 6, 12, 0, 0), d), 0, SysTime(DateTime(-1999, 7, 6, 12, 0, 0), d));
testST(SysTime(DateTime(-1999, 7, 6, 12, 0, 0), d), -1, SysTime(DateTime(-1999, 7, 6, 12, 0, 59), d));
testST(SysTime(DateTime(-1999, 7, 6, 0, 0, 0), d), 1, SysTime(DateTime(-1999, 7, 6, 0, 0, 1), d));
testST(SysTime(DateTime(-1999, 7, 6, 0, 0, 0), d), 0, SysTime(DateTime(-1999, 7, 6, 0, 0, 0), d));
testST(SysTime(DateTime(-1999, 7, 6, 0, 0, 0), d), -1, SysTime(DateTime(-1999, 7, 6, 0, 0, 59), d));
testST(SysTime(DateTime(-1999, 7, 5, 23, 59, 59), d), 1, SysTime(DateTime(-1999, 7, 5, 23, 59, 0), d));
testST(SysTime(DateTime(-1999, 7, 5, 23, 59, 59), d), 0, SysTime(DateTime(-1999, 7, 5, 23, 59, 59), d));
testST(SysTime(DateTime(-1999, 7, 5, 23, 59, 59), d), -1, SysTime(DateTime(-1999, 7, 5, 23, 59, 58), d));
testST(SysTime(DateTime(-2000, 12, 31, 23, 59, 59), d), 1, SysTime(DateTime(-2000, 12, 31, 23, 59, 0), d));
testST(SysTime(DateTime(-2000, 12, 31, 23, 59, 59), d), 0, SysTime(DateTime(-2000, 12, 31, 23, 59, 59), d));
testST(SysTime(DateTime(-2000, 12, 31, 23, 59, 59), d), -1, SysTime(DateTime(-2000, 12, 31, 23, 59, 58), d));
// Test Both
testST(SysTime(DateTime(1, 1, 1, 0, 0, 0), d), -1, SysTime(DateTime(1, 1, 1, 0, 0, 59), d));
testST(SysTime(DateTime(0, 12, 31, 23, 59, 59), d), 1, SysTime(DateTime(0, 12, 31, 23, 59, 0), d));
testST(SysTime(DateTime(0, 1, 1, 0, 0, 0), d), -1, SysTime(DateTime(0, 1, 1, 0, 0, 59), d));
testST(SysTime(DateTime(-1, 12, 31, 23, 59, 59), d), 1, SysTime(DateTime(-1, 12, 31, 23, 59, 0), d));
testST(SysTime(DateTime(-1, 1, 1, 11, 30, 33), d), 63_165_600L, SysTime(DateTime(-1, 1, 1, 11, 30, 33), d));
testST(SysTime(DateTime(1, 1, 1, 13, 30, 33), d), -63_165_600L, SysTime(DateTime(1, 1, 1, 13, 30, 33), d));
testST(SysTime(DateTime(-1, 1, 1, 11, 30, 33), d), 63_165_617L, SysTime(DateTime(-1, 1, 1, 11, 30, 50), d));
testST(SysTime(DateTime(1, 1, 1, 13, 30, 50), d), -63_165_617L, SysTime(DateTime(1, 1, 1, 13, 30, 33), d));
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 0, 0));
sysTime.roll!"seconds"(-1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 59)));
sysTime.roll!"seconds"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0)));
}
{
auto sysTime = SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(9_999_999));
sysTime.roll!"seconds"(-1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 59), hnsecs(9_999_999)));
sysTime.roll!"seconds"(1);
assert(sysTime == SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 31, 23, 59, 59));
sysTime.roll!"seconds"(1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 59, 0)));
sysTime.roll!"seconds"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 59, 59)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
sysTime.roll!"seconds"(1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 59, 0), hnsecs(9_999_999)));
sysTime.roll!"seconds"(-1);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
}
{
auto sysTime = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
sysTime.roll!"seconds"(1).roll!"seconds"(-102);
assert(sysTime == SysTime(DateTime(0, 12, 31, 23, 59, 18), hnsecs(9_999_999)));
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.roll!"seconds"(4)));
//static assert(!__traits(compiles, ist.roll!"seconds"(4)));
}
// Shares documentation with "days" version.
ref SysTime roll(string units)(long value) @safe nothrow
if (units == "msecs" || units == "usecs" || units == "hnsecs")
{
auto hnsecs = adjTime;
immutable days = splitUnitsFromHNSecs!"days"(hnsecs);
immutable negative = hnsecs < 0;
if (negative)
hnsecs += convert!("hours", "hnsecs")(24);
immutable seconds = splitUnitsFromHNSecs!"seconds"(hnsecs);
hnsecs += convert!(units, "hnsecs")(value);
hnsecs %= convert!("seconds", "hnsecs")(1);
if (hnsecs < 0)
hnsecs += convert!("seconds", "hnsecs")(1);
hnsecs += convert!("seconds", "hnsecs")(seconds);
if (negative)
hnsecs -= convert!("hours", "hnsecs")(24);
immutable newDaysHNSecs = convert!("days", "hnsecs")(days);
adjTime = newDaysHNSecs + hnsecs;
return this;
}
// Test roll!"msecs"().
@safe unittest
{
static void testST(SysTime orig, int milliseconds, in SysTime expected, size_t line = __LINE__)
{
orig.roll!"msecs"(milliseconds);
if (orig != expected)
throw new AssertError(format("Failed. actual [%s] != expected [%s]", orig, expected), __FILE__, line);
}
// Test A.D.
auto beforeAD = SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(274));
testST(beforeAD, 0, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(274)));
testST(beforeAD, 1, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(275)));
testST(beforeAD, 2, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(276)));
testST(beforeAD, 10, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(284)));
testST(beforeAD, 100, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(374)));
testST(beforeAD, 725, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(999)));
testST(beforeAD, 726, SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
testST(beforeAD, 1000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(274)));
testST(beforeAD, 1001, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(275)));
testST(beforeAD, 2000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(274)));
testST(beforeAD, 26_725, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(999)));
testST(beforeAD, 26_726, SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
testST(beforeAD, 26_727, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(1)));
testST(beforeAD, 1_766_725, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(999)));
testST(beforeAD, 1_766_726, SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
testST(beforeAD, -1, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(273)));
testST(beforeAD, -2, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(272)));
testST(beforeAD, -10, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(264)));
testST(beforeAD, -100, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(174)));
testST(beforeAD, -274, SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
testST(beforeAD, -275, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(999)));
testST(beforeAD, -1000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(274)));
testST(beforeAD, -1001, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(273)));
testST(beforeAD, -2000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(274)));
testST(beforeAD, -33_274, SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
testST(beforeAD, -33_275, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(999)));
testST(beforeAD, -1_833_274, SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
testST(beforeAD, -1_833_275, SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(999)));
// Test B.C.
auto beforeBC = SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(274));
testST(beforeBC, 0, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(274)));
testST(beforeBC, 1, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(275)));
testST(beforeBC, 2, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(276)));
testST(beforeBC, 10, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(284)));
testST(beforeBC, 100, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(374)));
testST(beforeBC, 725, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(999)));
testST(beforeBC, 726, SysTime(DateTime(-1999, 7, 6, 12, 30, 33)));
testST(beforeBC, 1000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(274)));
testST(beforeBC, 1001, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(275)));
testST(beforeBC, 2000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(274)));
testST(beforeBC, 26_725, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(999)));
testST(beforeBC, 26_726, SysTime(DateTime(-1999, 7, 6, 12, 30, 33)));
testST(beforeBC, 26_727, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(1)));
testST(beforeBC, 1_766_725, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(999)));
testST(beforeBC, 1_766_726, SysTime(DateTime(-1999, 7, 6, 12, 30, 33)));
testST(beforeBC, -1, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(273)));
testST(beforeBC, -2, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(272)));
testST(beforeBC, -10, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(264)));
testST(beforeBC, -100, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(174)));
testST(beforeBC, -274, SysTime(DateTime(-1999, 7, 6, 12, 30, 33)));
testST(beforeBC, -275, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(999)));
testST(beforeBC, -1000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(274)));
testST(beforeBC, -1001, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(273)));
testST(beforeBC, -2000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(274)));
testST(beforeBC, -33_274, SysTime(DateTime(-1999, 7, 6, 12, 30, 33)));
testST(beforeBC, -33_275, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(999)));
testST(beforeBC, -1_833_274, SysTime(DateTime(-1999, 7, 6, 12, 30, 33)));
testST(beforeBC, -1_833_275, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), msecs(999)));
// Test Both
auto beforeBoth1 = SysTime(DateTime(1, 1, 1, 0, 0, 0));
testST(beforeBoth1, 1, SysTime(DateTime(1, 1, 1, 0, 0, 0), msecs(1)));
testST(beforeBoth1, 0, SysTime(DateTime(1, 1, 1, 0, 0, 0)));
testST(beforeBoth1, -1, SysTime(DateTime(1, 1, 1, 0, 0, 0), msecs(999)));
testST(beforeBoth1, -2, SysTime(DateTime(1, 1, 1, 0, 0, 0), msecs(998)));
testST(beforeBoth1, -1000, SysTime(DateTime(1, 1, 1, 0, 0, 0)));
testST(beforeBoth1, -2000, SysTime(DateTime(1, 1, 1, 0, 0, 0)));
testST(beforeBoth1, -2555, SysTime(DateTime(1, 1, 1, 0, 0, 0), msecs(445)));
auto beforeBoth2 = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
testST(beforeBoth2, -1, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_989_999)));
testST(beforeBoth2, 0, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
testST(beforeBoth2, 1, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9999)));
testST(beforeBoth2, 2, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(19_999)));
testST(beforeBoth2, 1000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
testST(beforeBoth2, 2000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
testST(beforeBoth2, 2555, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(5_549_999)));
{
auto st = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
st.roll!"msecs"(1202).roll!"msecs"(-703);
assert(st == SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(4_989_999)));
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.addMSecs(4)));
//static assert(!__traits(compiles, ist.addMSecs(4)));
}
// Test roll!"usecs"().
@safe unittest
{
static void testST(SysTime orig, long microseconds, in SysTime expected, size_t line = __LINE__)
{
orig.roll!"usecs"(microseconds);
if (orig != expected)
throw new AssertError(format("Failed. actual [%s] != expected [%s]", orig, expected), __FILE__, line);
}
// Test A.D.
auto beforeAD = SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(274));
testST(beforeAD, 0, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(274)));
testST(beforeAD, 1, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(275)));
testST(beforeAD, 2, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(276)));
testST(beforeAD, 10, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(284)));
testST(beforeAD, 100, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(374)));
testST(beforeAD, 725, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(999)));
testST(beforeAD, 726, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(1000)));
testST(beforeAD, 1000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(1274)));
testST(beforeAD, 1001, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(1275)));
testST(beforeAD, 2000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(2274)));
testST(beforeAD, 26_725, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(26_999)));
testST(beforeAD, 26_726, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(27_000)));
testST(beforeAD, 26_727, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(27_001)));
testST(beforeAD, 1_766_725, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(766_999)));
testST(beforeAD, 1_766_726, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(767_000)));
testST(beforeAD, 1_000_000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(274)));
testST(beforeAD, 60_000_000L, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(274)));
testST(beforeAD, 3_600_000_000L, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(274)));
testST(beforeAD, -1, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(273)));
testST(beforeAD, -2, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(272)));
testST(beforeAD, -10, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(264)));
testST(beforeAD, -100, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(174)));
testST(beforeAD, -274, SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
testST(beforeAD, -275, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(999_999)));
testST(beforeAD, -1000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(999_274)));
testST(beforeAD, -1001, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(999_273)));
testST(beforeAD, -2000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(998_274)));
testST(beforeAD, -33_274, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(967_000)));
testST(beforeAD, -33_275, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(966_999)));
testST(beforeAD, -1_833_274, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(167_000)));
testST(beforeAD, -1_833_275, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(166_999)));
testST(beforeAD, -1_000_000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(274)));
testST(beforeAD, -60_000_000L, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(274)));
testST(beforeAD, -3_600_000_000L, SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(274)));
// Test B.C.
auto beforeBC = SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(274));
testST(beforeBC, 0, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(274)));
testST(beforeBC, 1, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(275)));
testST(beforeBC, 2, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(276)));
testST(beforeBC, 10, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(284)));
testST(beforeBC, 100, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(374)));
testST(beforeBC, 725, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(999)));
testST(beforeBC, 726, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(1000)));
testST(beforeBC, 1000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(1274)));
testST(beforeBC, 1001, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(1275)));
testST(beforeBC, 2000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(2274)));
testST(beforeBC, 26_725, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(26_999)));
testST(beforeBC, 26_726, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(27_000)));
testST(beforeBC, 26_727, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(27_001)));
testST(beforeBC, 1_766_725, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(766_999)));
testST(beforeBC, 1_766_726, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(767_000)));
testST(beforeBC, 1_000_000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(274)));
testST(beforeBC, 60_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(274)));
testST(beforeBC, 3_600_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(274)));
testST(beforeBC, -1, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(273)));
testST(beforeBC, -2, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(272)));
testST(beforeBC, -10, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(264)));
testST(beforeBC, -100, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(174)));
testST(beforeBC, -274, SysTime(DateTime(-1999, 7, 6, 12, 30, 33)));
testST(beforeBC, -275, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(999_999)));
testST(beforeBC, -1000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(999_274)));
testST(beforeBC, -1001, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(999_273)));
testST(beforeBC, -2000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(998_274)));
testST(beforeBC, -33_274, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(967_000)));
testST(beforeBC, -33_275, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(966_999)));
testST(beforeBC, -1_833_274, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(167_000)));
testST(beforeBC, -1_833_275, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(166_999)));
testST(beforeBC, -1_000_000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(274)));
testST(beforeBC, -60_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(274)));
testST(beforeBC, -3_600_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), usecs(274)));
// Test Both
auto beforeBoth1 = SysTime(DateTime(1, 1, 1, 0, 0, 0));
testST(beforeBoth1, 1, SysTime(DateTime(1, 1, 1, 0, 0, 0), usecs(1)));
testST(beforeBoth1, 0, SysTime(DateTime(1, 1, 1, 0, 0, 0)));
testST(beforeBoth1, -1, SysTime(DateTime(1, 1, 1, 0, 0, 0), usecs(999_999)));
testST(beforeBoth1, -2, SysTime(DateTime(1, 1, 1, 0, 0, 0), usecs(999_998)));
testST(beforeBoth1, -1000, SysTime(DateTime(1, 1, 1, 0, 0, 0), usecs(999_000)));
testST(beforeBoth1, -2000, SysTime(DateTime(1, 1, 1, 0, 0, 0), usecs(998_000)));
testST(beforeBoth1, -2555, SysTime(DateTime(1, 1, 1, 0, 0, 0), usecs(997_445)));
testST(beforeBoth1, -1_000_000, SysTime(DateTime(1, 1, 1, 0, 0, 0)));
testST(beforeBoth1, -2_000_000, SysTime(DateTime(1, 1, 1, 0, 0, 0)));
testST(beforeBoth1, -2_333_333, SysTime(DateTime(1, 1, 1, 0, 0, 0), usecs(666_667)));
auto beforeBoth2 = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
testST(beforeBoth2, -1, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_989)));
testST(beforeBoth2, 0, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
testST(beforeBoth2, 1, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9)));
testST(beforeBoth2, 2, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(19)));
testST(beforeBoth2, 1000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9999)));
testST(beforeBoth2, 2000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(19_999)));
testST(beforeBoth2, 2555, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(25_549)));
testST(beforeBoth2, 1_000_000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
testST(beforeBoth2, 2_000_000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
testST(beforeBoth2, 2_333_333, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(3_333_329)));
{
auto st = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
st.roll!"usecs"(9_020_027);
assert(st == SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(200_269)));
}
{
auto st = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
st.roll!"usecs"(9_020_027).roll!"usecs"(-70_034);
assert(st == SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_499_929)));
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.roll!"usecs"(4)));
//static assert(!__traits(compiles, ist.roll!"usecs"(4)));
}
// Test roll!"hnsecs"().
@safe unittest
{
static void testST(SysTime orig, long hnsecs, in SysTime expected, size_t line = __LINE__)
{
orig.roll!"hnsecs"(hnsecs);
if (orig != expected)
throw new AssertError(format("Failed. actual [%s] != expected [%s]", orig, expected), __FILE__, line);
}
// Test A.D.
auto dtAD = DateTime(1999, 7, 6, 12, 30, 33);
auto beforeAD = SysTime(dtAD, hnsecs(274));
testST(beforeAD, 0, SysTime(dtAD, hnsecs(274)));
testST(beforeAD, 1, SysTime(dtAD, hnsecs(275)));
testST(beforeAD, 2, SysTime(dtAD, hnsecs(276)));
testST(beforeAD, 10, SysTime(dtAD, hnsecs(284)));
testST(beforeAD, 100, SysTime(dtAD, hnsecs(374)));
testST(beforeAD, 725, SysTime(dtAD, hnsecs(999)));
testST(beforeAD, 726, SysTime(dtAD, hnsecs(1000)));
testST(beforeAD, 1000, SysTime(dtAD, hnsecs(1274)));
testST(beforeAD, 1001, SysTime(dtAD, hnsecs(1275)));
testST(beforeAD, 2000, SysTime(dtAD, hnsecs(2274)));
testST(beforeAD, 26_725, SysTime(dtAD, hnsecs(26_999)));
testST(beforeAD, 26_726, SysTime(dtAD, hnsecs(27_000)));
testST(beforeAD, 26_727, SysTime(dtAD, hnsecs(27_001)));
testST(beforeAD, 1_766_725, SysTime(dtAD, hnsecs(1_766_999)));
testST(beforeAD, 1_766_726, SysTime(dtAD, hnsecs(1_767_000)));
testST(beforeAD, 1_000_000, SysTime(dtAD, hnsecs(1_000_274)));
testST(beforeAD, 60_000_000L, SysTime(dtAD, hnsecs(274)));
testST(beforeAD, 3_600_000_000L, SysTime(dtAD, hnsecs(274)));
testST(beforeAD, 600_000_000L, SysTime(dtAD, hnsecs(274)));
testST(beforeAD, 36_000_000_000L, SysTime(dtAD, hnsecs(274)));
testST(beforeAD, -1, SysTime(dtAD, hnsecs(273)));
testST(beforeAD, -2, SysTime(dtAD, hnsecs(272)));
testST(beforeAD, -10, SysTime(dtAD, hnsecs(264)));
testST(beforeAD, -100, SysTime(dtAD, hnsecs(174)));
testST(beforeAD, -274, SysTime(dtAD));
testST(beforeAD, -275, SysTime(dtAD, hnsecs(9_999_999)));
testST(beforeAD, -1000, SysTime(dtAD, hnsecs(9_999_274)));
testST(beforeAD, -1001, SysTime(dtAD, hnsecs(9_999_273)));
testST(beforeAD, -2000, SysTime(dtAD, hnsecs(9_998_274)));
testST(beforeAD, -33_274, SysTime(dtAD, hnsecs(9_967_000)));
testST(beforeAD, -33_275, SysTime(dtAD, hnsecs(9_966_999)));
testST(beforeAD, -1_833_274, SysTime(dtAD, hnsecs(8_167_000)));
testST(beforeAD, -1_833_275, SysTime(dtAD, hnsecs(8_166_999)));
testST(beforeAD, -1_000_000, SysTime(dtAD, hnsecs(9_000_274)));
testST(beforeAD, -60_000_000L, SysTime(dtAD, hnsecs(274)));
testST(beforeAD, -3_600_000_000L, SysTime(dtAD, hnsecs(274)));
testST(beforeAD, -600_000_000L, SysTime(dtAD, hnsecs(274)));
testST(beforeAD, -36_000_000_000L, SysTime(dtAD, hnsecs(274)));
// Test B.C.
auto dtBC = DateTime(-1999, 7, 6, 12, 30, 33);
auto beforeBC = SysTime(dtBC, hnsecs(274));
testST(beforeBC, 0, SysTime(dtBC, hnsecs(274)));
testST(beforeBC, 1, SysTime(dtBC, hnsecs(275)));
testST(beforeBC, 2, SysTime(dtBC, hnsecs(276)));
testST(beforeBC, 10, SysTime(dtBC, hnsecs(284)));
testST(beforeBC, 100, SysTime(dtBC, hnsecs(374)));
testST(beforeBC, 725, SysTime(dtBC, hnsecs(999)));
testST(beforeBC, 726, SysTime(dtBC, hnsecs(1000)));
testST(beforeBC, 1000, SysTime(dtBC, hnsecs(1274)));
testST(beforeBC, 1001, SysTime(dtBC, hnsecs(1275)));
testST(beforeBC, 2000, SysTime(dtBC, hnsecs(2274)));
testST(beforeBC, 26_725, SysTime(dtBC, hnsecs(26_999)));
testST(beforeBC, 26_726, SysTime(dtBC, hnsecs(27_000)));
testST(beforeBC, 26_727, SysTime(dtBC, hnsecs(27_001)));
testST(beforeBC, 1_766_725, SysTime(dtBC, hnsecs(1_766_999)));
testST(beforeBC, 1_766_726, SysTime(dtBC, hnsecs(1_767_000)));
testST(beforeBC, 1_000_000, SysTime(dtBC, hnsecs(1_000_274)));
testST(beforeBC, 60_000_000L, SysTime(dtBC, hnsecs(274)));
testST(beforeBC, 3_600_000_000L, SysTime(dtBC, hnsecs(274)));
testST(beforeBC, 600_000_000L, SysTime(dtBC, hnsecs(274)));
testST(beforeBC, 36_000_000_000L, SysTime(dtBC, hnsecs(274)));
testST(beforeBC, -1, SysTime(dtBC, hnsecs(273)));
testST(beforeBC, -2, SysTime(dtBC, hnsecs(272)));
testST(beforeBC, -10, SysTime(dtBC, hnsecs(264)));
testST(beforeBC, -100, SysTime(dtBC, hnsecs(174)));
testST(beforeBC, -274, SysTime(dtBC));
testST(beforeBC, -275, SysTime(dtBC, hnsecs(9_999_999)));
testST(beforeBC, -1000, SysTime(dtBC, hnsecs(9_999_274)));
testST(beforeBC, -1001, SysTime(dtBC, hnsecs(9_999_273)));
testST(beforeBC, -2000, SysTime(dtBC, hnsecs(9_998_274)));
testST(beforeBC, -33_274, SysTime(dtBC, hnsecs(9_967_000)));
testST(beforeBC, -33_275, SysTime(dtBC, hnsecs(9_966_999)));
testST(beforeBC, -1_833_274, SysTime(dtBC, hnsecs(8_167_000)));
testST(beforeBC, -1_833_275, SysTime(dtBC, hnsecs(8_166_999)));
testST(beforeBC, -1_000_000, SysTime(dtBC, hnsecs(9_000_274)));
testST(beforeBC, -60_000_000L, SysTime(dtBC, hnsecs(274)));
testST(beforeBC, -3_600_000_000L, SysTime(dtBC, hnsecs(274)));
testST(beforeBC, -600_000_000L, SysTime(dtBC, hnsecs(274)));
testST(beforeBC, -36_000_000_000L, SysTime(dtBC, hnsecs(274)));
// Test Both
auto dtBoth1 = DateTime(1, 1, 1, 0, 0, 0);
auto beforeBoth1 = SysTime(dtBoth1);
testST(beforeBoth1, 1, SysTime(dtBoth1, hnsecs(1)));
testST(beforeBoth1, 0, SysTime(dtBoth1));
testST(beforeBoth1, -1, SysTime(dtBoth1, hnsecs(9_999_999)));
testST(beforeBoth1, -2, SysTime(dtBoth1, hnsecs(9_999_998)));
testST(beforeBoth1, -1000, SysTime(dtBoth1, hnsecs(9_999_000)));
testST(beforeBoth1, -2000, SysTime(dtBoth1, hnsecs(9_998_000)));
testST(beforeBoth1, -2555, SysTime(dtBoth1, hnsecs(9_997_445)));
testST(beforeBoth1, -1_000_000, SysTime(dtBoth1, hnsecs(9_000_000)));
testST(beforeBoth1, -2_000_000, SysTime(dtBoth1, hnsecs(8_000_000)));
testST(beforeBoth1, -2_333_333, SysTime(dtBoth1, hnsecs(7_666_667)));
testST(beforeBoth1, -10_000_000, SysTime(dtBoth1));
testST(beforeBoth1, -20_000_000, SysTime(dtBoth1));
testST(beforeBoth1, -20_888_888, SysTime(dtBoth1, hnsecs(9_111_112)));
auto dtBoth2 = DateTime(0, 12, 31, 23, 59, 59);
auto beforeBoth2 = SysTime(dtBoth2, hnsecs(9_999_999));
testST(beforeBoth2, -1, SysTime(dtBoth2, hnsecs(9_999_998)));
testST(beforeBoth2, 0, SysTime(dtBoth2, hnsecs(9_999_999)));
testST(beforeBoth2, 1, SysTime(dtBoth2));
testST(beforeBoth2, 2, SysTime(dtBoth2, hnsecs(1)));
testST(beforeBoth2, 1000, SysTime(dtBoth2, hnsecs(999)));
testST(beforeBoth2, 2000, SysTime(dtBoth2, hnsecs(1999)));
testST(beforeBoth2, 2555, SysTime(dtBoth2, hnsecs(2554)));
testST(beforeBoth2, 1_000_000, SysTime(dtBoth2, hnsecs(999_999)));
testST(beforeBoth2, 2_000_000, SysTime(dtBoth2, hnsecs(1_999_999)));
testST(beforeBoth2, 2_333_333, SysTime(dtBoth2, hnsecs(2_333_332)));
testST(beforeBoth2, 10_000_000, SysTime(dtBoth2, hnsecs(9_999_999)));
testST(beforeBoth2, 20_000_000, SysTime(dtBoth2, hnsecs(9_999_999)));
testST(beforeBoth2, 20_888_888, SysTime(dtBoth2, hnsecs(888_887)));
{
auto st = SysTime(dtBoth2, hnsecs(9_999_999));
st.roll!"hnsecs"(70_777_222).roll!"hnsecs"(-222_555_292);
assert(st == SysTime(dtBoth2, hnsecs(8_221_929)));
}
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.roll!"hnsecs"(4)));
//static assert(!__traits(compiles, ist.roll!"hnsecs"(4)));
}
/++
Gives the result of adding or subtracting a $(REF Duration, core,time)
from this $(LREF SysTime).
The legal types of arithmetic for $(LREF SysTime) using this operator
are
$(BOOKTABLE,
$(TR $(TD SysTime) $(TD +) $(TD Duration) $(TD -->) $(TD SysTime))
$(TR $(TD SysTime) $(TD -) $(TD Duration) $(TD -->) $(TD SysTime))
)
Params:
duration = The $(REF Duration, core,time) to add to or subtract from
this $(LREF SysTime).
+/
SysTime opBinary(string op)(Duration duration) @safe const pure nothrow
if (op == "+" || op == "-")
{
SysTime retval = SysTime(this._stdTime, this._timezone);
immutable hnsecs = duration.total!"hnsecs";
mixin("retval._stdTime " ~ op ~ "= hnsecs;");
return retval;
}
///
@safe unittest
{
import core.time : hours, seconds;
import std.datetime.date : DateTime;
assert(SysTime(DateTime(2015, 12, 31, 23, 59, 59)) + seconds(1) ==
SysTime(DateTime(2016, 1, 1, 0, 0, 0)));
assert(SysTime(DateTime(2015, 12, 31, 23, 59, 59)) + hours(1) ==
SysTime(DateTime(2016, 1, 1, 0, 59, 59)));
assert(SysTime(DateTime(2016, 1, 1, 0, 0, 0)) - seconds(1) ==
SysTime(DateTime(2015, 12, 31, 23, 59, 59)));
assert(SysTime(DateTime(2016, 1, 1, 0, 59, 59)) - hours(1) ==
SysTime(DateTime(2015, 12, 31, 23, 59, 59)));
}
@safe unittest
{
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_678));
assert(st + dur!"weeks"(7) == SysTime(DateTime(1999, 8, 24, 12, 30, 33), hnsecs(2_345_678)));
assert(st + dur!"weeks"(-7) == SysTime(DateTime(1999, 5, 18, 12, 30, 33), hnsecs(2_345_678)));
assert(st + dur!"days"(7) == SysTime(DateTime(1999, 7, 13, 12, 30, 33), hnsecs(2_345_678)));
assert(st + dur!"days"(-7) == SysTime(DateTime(1999, 6, 29, 12, 30, 33), hnsecs(2_345_678)));
assert(st + dur!"hours"(7) == SysTime(DateTime(1999, 7, 6, 19, 30, 33), hnsecs(2_345_678)));
assert(st + dur!"hours"(-7) == SysTime(DateTime(1999, 7, 6, 5, 30, 33), hnsecs(2_345_678)));
assert(st + dur!"minutes"(7) == SysTime(DateTime(1999, 7, 6, 12, 37, 33), hnsecs(2_345_678)));
assert(st + dur!"minutes"(-7) == SysTime(DateTime(1999, 7, 6, 12, 23, 33), hnsecs(2_345_678)));
assert(st + dur!"seconds"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 40), hnsecs(2_345_678)));
assert(st + dur!"seconds"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 26), hnsecs(2_345_678)));
assert(st + dur!"msecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_415_678)));
assert(st + dur!"msecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_275_678)));
assert(st + dur!"usecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_748)));
assert(st + dur!"usecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_608)));
assert(st + dur!"hnsecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_685)));
assert(st + dur!"hnsecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_671)));
assert(st - dur!"weeks"(-7) == SysTime(DateTime(1999, 8, 24, 12, 30, 33), hnsecs(2_345_678)));
assert(st - dur!"weeks"(7) == SysTime(DateTime(1999, 5, 18, 12, 30, 33), hnsecs(2_345_678)));
assert(st - dur!"days"(-7) == SysTime(DateTime(1999, 7, 13, 12, 30, 33), hnsecs(2_345_678)));
assert(st - dur!"days"(7) == SysTime(DateTime(1999, 6, 29, 12, 30, 33), hnsecs(2_345_678)));
assert(st - dur!"hours"(-7) == SysTime(DateTime(1999, 7, 6, 19, 30, 33), hnsecs(2_345_678)));
assert(st - dur!"hours"(7) == SysTime(DateTime(1999, 7, 6, 5, 30, 33), hnsecs(2_345_678)));
assert(st - dur!"minutes"(-7) == SysTime(DateTime(1999, 7, 6, 12, 37, 33), hnsecs(2_345_678)));
assert(st - dur!"minutes"(7) == SysTime(DateTime(1999, 7, 6, 12, 23, 33), hnsecs(2_345_678)));
assert(st - dur!"seconds"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 40), hnsecs(2_345_678)));
assert(st - dur!"seconds"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 26), hnsecs(2_345_678)));
assert(st - dur!"msecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_415_678)));
assert(st - dur!"msecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_275_678)));
assert(st - dur!"usecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_748)));
assert(st - dur!"usecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_608)));
assert(st - dur!"hnsecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_685)));
assert(st - dur!"hnsecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_671)));
static void testST(in SysTime orig, long hnsecs, in SysTime expected, size_t line = __LINE__)
{
auto result = orig + dur!"hnsecs"(hnsecs);
if (result != expected)
throw new AssertError(format("Failed. actual [%s] != expected [%s]", result, expected), __FILE__, line);
}
// Test A.D.
auto beforeAD = SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(274));
testST(beforeAD, 0, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(274)));
testST(beforeAD, 1, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(275)));
testST(beforeAD, 2, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(276)));
testST(beforeAD, 10, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(284)));
testST(beforeAD, 100, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(374)));
testST(beforeAD, 725, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(999)));
testST(beforeAD, 726, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(1000)));
testST(beforeAD, 1000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(1274)));
testST(beforeAD, 1001, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(1275)));
testST(beforeAD, 2000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2274)));
testST(beforeAD, 26_725, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(26_999)));
testST(beforeAD, 26_726, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(27_000)));
testST(beforeAD, 26_727, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(27_001)));
testST(beforeAD, 1_766_725, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(1_766_999)));
testST(beforeAD, 1_766_726, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(1_767_000)));
testST(beforeAD, 1_000_000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(1_000_274)));
testST(beforeAD, 60_000_000L, SysTime(DateTime(1999, 7, 6, 12, 30, 39), hnsecs(274)));
testST(beforeAD, 3_600_000_000L, SysTime(DateTime(1999, 7, 6, 12, 36, 33), hnsecs(274)));
testST(beforeAD, 600_000_000L, SysTime(DateTime(1999, 7, 6, 12, 31, 33), hnsecs(274)));
testST(beforeAD, 36_000_000_000L, SysTime(DateTime(1999, 7, 6, 13, 30, 33), hnsecs(274)));
testST(beforeAD, -1, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(273)));
testST(beforeAD, -2, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(272)));
testST(beforeAD, -10, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(264)));
testST(beforeAD, -100, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(174)));
testST(beforeAD, -274, SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
testST(beforeAD, -275, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_999_999)));
testST(beforeAD, -1000, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_999_274)));
testST(beforeAD, -1001, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_999_273)));
testST(beforeAD, -2000, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_998_274)));
testST(beforeAD, -33_274, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_967_000)));
testST(beforeAD, -33_275, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_966_999)));
testST(beforeAD, -1_833_274, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(8_167_000)));
testST(beforeAD, -1_833_275, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(8_166_999)));
testST(beforeAD, -1_000_000, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_000_274)));
testST(beforeAD, -60_000_000L, SysTime(DateTime(1999, 7, 6, 12, 30, 27), hnsecs(274)));
testST(beforeAD, -3_600_000_000L, SysTime(DateTime(1999, 7, 6, 12, 24, 33), hnsecs(274)));
testST(beforeAD, -600_000_000L, SysTime(DateTime(1999, 7, 6, 12, 29, 33), hnsecs(274)));
testST(beforeAD, -36_000_000_000L, SysTime(DateTime(1999, 7, 6, 11, 30, 33), hnsecs(274)));
// Test B.C.
auto beforeBC = SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(274));
testST(beforeBC, 0, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(274)));
testST(beforeBC, 1, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(275)));
testST(beforeBC, 2, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(276)));
testST(beforeBC, 10, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(284)));
testST(beforeBC, 100, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(374)));
testST(beforeBC, 725, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(999)));
testST(beforeBC, 726, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(1000)));
testST(beforeBC, 1000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(1274)));
testST(beforeBC, 1001, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(1275)));
testST(beforeBC, 2000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(2274)));
testST(beforeBC, 26_725, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(26_999)));
testST(beforeBC, 26_726, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(27_000)));
testST(beforeBC, 26_727, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(27_001)));
testST(beforeBC, 1_766_725, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(1_766_999)));
testST(beforeBC, 1_766_726, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(1_767_000)));
testST(beforeBC, 1_000_000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(1_000_274)));
testST(beforeBC, 60_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 30, 39), hnsecs(274)));
testST(beforeBC, 3_600_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 36, 33), hnsecs(274)));
testST(beforeBC, 600_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 31, 33), hnsecs(274)));
testST(beforeBC, 36_000_000_000L, SysTime(DateTime(-1999, 7, 6, 13, 30, 33), hnsecs(274)));
testST(beforeBC, -1, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(273)));
testST(beforeBC, -2, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(272)));
testST(beforeBC, -10, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(264)));
testST(beforeBC, -100, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(174)));
testST(beforeBC, -274, SysTime(DateTime(-1999, 7, 6, 12, 30, 33)));
testST(beforeBC, -275, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_999_999)));
testST(beforeBC, -1000, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_999_274)));
testST(beforeBC, -1001, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_999_273)));
testST(beforeBC, -2000, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_998_274)));
testST(beforeBC, -33_274, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_967_000)));
testST(beforeBC, -33_275, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_966_999)));
testST(beforeBC, -1_833_274, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(8_167_000)));
testST(beforeBC, -1_833_275, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(8_166_999)));
testST(beforeBC, -1_000_000, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_000_274)));
testST(beforeBC, -60_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 30, 27), hnsecs(274)));
testST(beforeBC, -3_600_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 24, 33), hnsecs(274)));
testST(beforeBC, -600_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 29, 33), hnsecs(274)));
testST(beforeBC, -36_000_000_000L, SysTime(DateTime(-1999, 7, 6, 11, 30, 33), hnsecs(274)));
// Test Both
auto beforeBoth1 = SysTime(DateTime(1, 1, 1, 0, 0, 0));
testST(beforeBoth1, 1, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1)));
testST(beforeBoth1, 0, SysTime(DateTime(1, 1, 1, 0, 0, 0)));
testST(beforeBoth1, -1, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
testST(beforeBoth1, -2, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_998)));
testST(beforeBoth1, -1000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_000)));
testST(beforeBoth1, -2000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_998_000)));
testST(beforeBoth1, -2555, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_997_445)));
testST(beforeBoth1, -1_000_000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_000_000)));
testST(beforeBoth1, -2_000_000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(8_000_000)));
testST(beforeBoth1, -2_333_333, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(7_666_667)));
testST(beforeBoth1, -10_000_000, SysTime(DateTime(0, 12, 31, 23, 59, 59)));
testST(beforeBoth1, -20_000_000, SysTime(DateTime(0, 12, 31, 23, 59, 58)));
testST(beforeBoth1, -20_888_888, SysTime(DateTime(0, 12, 31, 23, 59, 57), hnsecs(9_111_112)));
auto beforeBoth2 = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
testST(beforeBoth2, -1, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_998)));
testST(beforeBoth2, 0, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
testST(beforeBoth2, 1, SysTime(DateTime(1, 1, 1, 0, 0, 0)));
testST(beforeBoth2, 2, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1)));
testST(beforeBoth2, 1000, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(999)));
testST(beforeBoth2, 2000, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1999)));
testST(beforeBoth2, 2555, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(2554)));
testST(beforeBoth2, 1_000_000, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(999_999)));
testST(beforeBoth2, 2_000_000, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1_999_999)));
testST(beforeBoth2, 2_333_333, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(2_333_332)));
testST(beforeBoth2, 10_000_000, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(9_999_999)));
testST(beforeBoth2, 20_000_000, SysTime(DateTime(1, 1, 1, 0, 0, 1), hnsecs(9_999_999)));
testST(beforeBoth2, 20_888_888, SysTime(DateTime(1, 1, 1, 0, 0, 2), hnsecs(888_887)));
auto duration = dur!"seconds"(12);
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst + duration == SysTime(DateTime(1999, 7, 6, 12, 30, 45)));
//assert(ist + duration == SysTime(DateTime(1999, 7, 6, 12, 30, 45)));
assert(cst - duration == SysTime(DateTime(1999, 7, 6, 12, 30, 21)));
//assert(ist - duration == SysTime(DateTime(1999, 7, 6, 12, 30, 21)));
}
// Explicitly undocumented. It will be removed in January 2018. @@@DEPRECATED_2018-01@@@
deprecated("Use Duration instead of TickDuration.")
SysTime opBinary(string op)(TickDuration td) @safe const pure nothrow
if (op == "+" || op == "-")
{
SysTime retval = SysTime(this._stdTime, this._timezone);
immutable hnsecs = td.hnsecs;
mixin("retval._stdTime " ~ op ~ "= hnsecs;");
return retval;
}
deprecated @safe unittest
{
// This probably only runs in cases where gettimeofday() is used, but it's
// hard to do this test correctly with variable ticksPerSec.
if (TickDuration.ticksPerSec == 1_000_000)
{
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_678));
assert(st + TickDuration.from!"usecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_748)));
assert(st + TickDuration.from!"usecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_608)));
assert(st - TickDuration.from!"usecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_748)));
assert(st - TickDuration.from!"usecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_608)));
}
}
/++
Gives the result of adding or subtracting a $(REF Duration, core,time) from
this $(LREF SysTime), as well as assigning the result to this
$(LREF SysTime).
The legal types of arithmetic for $(LREF SysTime) using this operator are
$(BOOKTABLE,
$(TR $(TD SysTime) $(TD +) $(TD Duration) $(TD -->) $(TD SysTime))
$(TR $(TD SysTime) $(TD -) $(TD Duration) $(TD -->) $(TD SysTime))
)
Params:
duration = The $(REF Duration, core,time) to add to or subtract from
this $(LREF SysTime).
+/
ref SysTime opOpAssign(string op)(Duration duration) @safe pure nothrow
if (op == "+" || op == "-")
{
immutable hnsecs = duration.total!"hnsecs";
mixin("_stdTime " ~ op ~ "= hnsecs;");
return this;
}
@safe unittest
{
auto before = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(before + dur!"weeks"(7) == SysTime(DateTime(1999, 8, 24, 12, 30, 33)));
assert(before + dur!"weeks"(-7) == SysTime(DateTime(1999, 5, 18, 12, 30, 33)));
assert(before + dur!"days"(7) == SysTime(DateTime(1999, 7, 13, 12, 30, 33)));
assert(before + dur!"days"(-7) == SysTime(DateTime(1999, 6, 29, 12, 30, 33)));
assert(before + dur!"hours"(7) == SysTime(DateTime(1999, 7, 6, 19, 30, 33)));
assert(before + dur!"hours"(-7) == SysTime(DateTime(1999, 7, 6, 5, 30, 33)));
assert(before + dur!"minutes"(7) == SysTime(DateTime(1999, 7, 6, 12, 37, 33)));
assert(before + dur!"minutes"(-7) == SysTime(DateTime(1999, 7, 6, 12, 23, 33)));
assert(before + dur!"seconds"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 40)));
assert(before + dur!"seconds"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 26)));
assert(before + dur!"msecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(7)));
assert(before + dur!"msecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 32), msecs(993)));
assert(before + dur!"usecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(7)));
assert(before + dur!"usecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 32), usecs(999_993)));
assert(before + dur!"hnsecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(7)));
assert(before + dur!"hnsecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_999_993)));
assert(before - dur!"weeks"(-7) == SysTime(DateTime(1999, 8, 24, 12, 30, 33)));
assert(before - dur!"weeks"(7) == SysTime(DateTime(1999, 5, 18, 12, 30, 33)));
assert(before - dur!"days"(-7) == SysTime(DateTime(1999, 7, 13, 12, 30, 33)));
assert(before - dur!"days"(7) == SysTime(DateTime(1999, 6, 29, 12, 30, 33)));
assert(before - dur!"hours"(-7) == SysTime(DateTime(1999, 7, 6, 19, 30, 33)));
assert(before - dur!"hours"(7) == SysTime(DateTime(1999, 7, 6, 5, 30, 33)));
assert(before - dur!"minutes"(-7) == SysTime(DateTime(1999, 7, 6, 12, 37, 33)));
assert(before - dur!"minutes"(7) == SysTime(DateTime(1999, 7, 6, 12, 23, 33)));
assert(before - dur!"seconds"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 40)));
assert(before - dur!"seconds"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 26)));
assert(before - dur!"msecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), msecs(7)));
assert(before - dur!"msecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 32), msecs(993)));
assert(before - dur!"usecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), usecs(7)));
assert(before - dur!"usecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 32), usecs(999_993)));
assert(before - dur!"hnsecs"(-7) == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(7)));
assert(before - dur!"hnsecs"(7) == SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_999_993)));
static void testST(SysTime orig, long hnsecs, in SysTime expected, size_t line = __LINE__)
{
auto r = orig += dur!"hnsecs"(hnsecs);
if (orig != expected)
throw new AssertError(format("Failed 1. actual [%s] != expected [%s]", orig, expected), __FILE__, line);
if (r != expected)
throw new AssertError(format("Failed 2. actual [%s] != expected [%s]", r, expected), __FILE__, line);
}
// Test A.D.
auto beforeAD = SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(274));
testST(beforeAD, 0, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(274)));
testST(beforeAD, 1, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(275)));
testST(beforeAD, 2, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(276)));
testST(beforeAD, 10, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(284)));
testST(beforeAD, 100, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(374)));
testST(beforeAD, 725, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(999)));
testST(beforeAD, 726, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(1000)));
testST(beforeAD, 1000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(1274)));
testST(beforeAD, 1001, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(1275)));
testST(beforeAD, 2000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2274)));
testST(beforeAD, 26_725, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(26_999)));
testST(beforeAD, 26_726, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(27_000)));
testST(beforeAD, 26_727, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(27_001)));
testST(beforeAD, 1_766_725, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(1_766_999)));
testST(beforeAD, 1_766_726, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(1_767_000)));
testST(beforeAD, 1_000_000, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(1_000_274)));
testST(beforeAD, 60_000_000L, SysTime(DateTime(1999, 7, 6, 12, 30, 39), hnsecs(274)));
testST(beforeAD, 3_600_000_000L, SysTime(DateTime(1999, 7, 6, 12, 36, 33), hnsecs(274)));
testST(beforeAD, 600_000_000L, SysTime(DateTime(1999, 7, 6, 12, 31, 33), hnsecs(274)));
testST(beforeAD, 36_000_000_000L, SysTime(DateTime(1999, 7, 6, 13, 30, 33), hnsecs(274)));
testST(beforeAD, -1, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(273)));
testST(beforeAD, -2, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(272)));
testST(beforeAD, -10, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(264)));
testST(beforeAD, -100, SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(174)));
testST(beforeAD, -274, SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
testST(beforeAD, -275, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_999_999)));
testST(beforeAD, -1000, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_999_274)));
testST(beforeAD, -1001, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_999_273)));
testST(beforeAD, -2000, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_998_274)));
testST(beforeAD, -33_274, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_967_000)));
testST(beforeAD, -33_275, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_966_999)));
testST(beforeAD, -1_833_274, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(8_167_000)));
testST(beforeAD, -1_833_275, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(8_166_999)));
testST(beforeAD, -1_000_000, SysTime(DateTime(1999, 7, 6, 12, 30, 32), hnsecs(9_000_274)));
testST(beforeAD, -60_000_000L, SysTime(DateTime(1999, 7, 6, 12, 30, 27), hnsecs(274)));
testST(beforeAD, -3_600_000_000L, SysTime(DateTime(1999, 7, 6, 12, 24, 33), hnsecs(274)));
testST(beforeAD, -600_000_000L, SysTime(DateTime(1999, 7, 6, 12, 29, 33), hnsecs(274)));
testST(beforeAD, -36_000_000_000L, SysTime(DateTime(1999, 7, 6, 11, 30, 33), hnsecs(274)));
// Test B.C.
auto beforeBC = SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(274));
testST(beforeBC, 0, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(274)));
testST(beforeBC, 1, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(275)));
testST(beforeBC, 2, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(276)));
testST(beforeBC, 10, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(284)));
testST(beforeBC, 100, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(374)));
testST(beforeBC, 725, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(999)));
testST(beforeBC, 726, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(1000)));
testST(beforeBC, 1000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(1274)));
testST(beforeBC, 1001, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(1275)));
testST(beforeBC, 2000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(2274)));
testST(beforeBC, 26_725, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(26_999)));
testST(beforeBC, 26_726, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(27_000)));
testST(beforeBC, 26_727, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(27_001)));
testST(beforeBC, 1_766_725, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(1_766_999)));
testST(beforeBC, 1_766_726, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(1_767_000)));
testST(beforeBC, 1_000_000, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(1_000_274)));
testST(beforeBC, 60_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 30, 39), hnsecs(274)));
testST(beforeBC, 3_600_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 36, 33), hnsecs(274)));
testST(beforeBC, 600_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 31, 33), hnsecs(274)));
testST(beforeBC, 36_000_000_000L, SysTime(DateTime(-1999, 7, 6, 13, 30, 33), hnsecs(274)));
testST(beforeBC, -1, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(273)));
testST(beforeBC, -2, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(272)));
testST(beforeBC, -10, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(264)));
testST(beforeBC, -100, SysTime(DateTime(-1999, 7, 6, 12, 30, 33), hnsecs(174)));
testST(beforeBC, -274, SysTime(DateTime(-1999, 7, 6, 12, 30, 33)));
testST(beforeBC, -275, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_999_999)));
testST(beforeBC, -1000, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_999_274)));
testST(beforeBC, -1001, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_999_273)));
testST(beforeBC, -2000, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_998_274)));
testST(beforeBC, -33_274, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_967_000)));
testST(beforeBC, -33_275, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_966_999)));
testST(beforeBC, -1_833_274, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(8_167_000)));
testST(beforeBC, -1_833_275, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(8_166_999)));
testST(beforeBC, -1_000_000, SysTime(DateTime(-1999, 7, 6, 12, 30, 32), hnsecs(9_000_274)));
testST(beforeBC, -60_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 30, 27), hnsecs(274)));
testST(beforeBC, -3_600_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 24, 33), hnsecs(274)));
testST(beforeBC, -600_000_000L, SysTime(DateTime(-1999, 7, 6, 12, 29, 33), hnsecs(274)));
testST(beforeBC, -36_000_000_000L, SysTime(DateTime(-1999, 7, 6, 11, 30, 33), hnsecs(274)));
// Test Both
auto beforeBoth1 = SysTime(DateTime(1, 1, 1, 0, 0, 0));
testST(beforeBoth1, 1, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1)));
testST(beforeBoth1, 0, SysTime(DateTime(1, 1, 1, 0, 0, 0)));
testST(beforeBoth1, -1, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
testST(beforeBoth1, -2, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_998)));
testST(beforeBoth1, -1000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_000)));
testST(beforeBoth1, -2000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_998_000)));
testST(beforeBoth1, -2555, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_997_445)));
testST(beforeBoth1, -1_000_000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_000_000)));
testST(beforeBoth1, -2_000_000, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(8_000_000)));
testST(beforeBoth1, -2_333_333, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(7_666_667)));
testST(beforeBoth1, -10_000_000, SysTime(DateTime(0, 12, 31, 23, 59, 59)));
testST(beforeBoth1, -20_000_000, SysTime(DateTime(0, 12, 31, 23, 59, 58)));
testST(beforeBoth1, -20_888_888, SysTime(DateTime(0, 12, 31, 23, 59, 57), hnsecs(9_111_112)));
auto beforeBoth2 = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
testST(beforeBoth2, -1, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_998)));
testST(beforeBoth2, 0, SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
testST(beforeBoth2, 1, SysTime(DateTime(1, 1, 1, 0, 0, 0)));
testST(beforeBoth2, 2, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1)));
testST(beforeBoth2, 1000, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(999)));
testST(beforeBoth2, 2000, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1999)));
testST(beforeBoth2, 2555, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(2554)));
testST(beforeBoth2, 1_000_000, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(999_999)));
testST(beforeBoth2, 2_000_000, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1_999_999)));
testST(beforeBoth2, 2_333_333, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(2_333_332)));
testST(beforeBoth2, 10_000_000, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(9_999_999)));
testST(beforeBoth2, 20_000_000, SysTime(DateTime(1, 1, 1, 0, 0, 1), hnsecs(9_999_999)));
testST(beforeBoth2, 20_888_888, SysTime(DateTime(1, 1, 1, 0, 0, 2), hnsecs(888_887)));
{
auto st = SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999));
(st += dur!"hnsecs"(52)) += dur!"seconds"(-907);
assert(st == SysTime(DateTime(0, 12, 31, 23, 44, 53), hnsecs(51)));
}
auto duration = dur!"seconds"(12);
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst += duration));
//static assert(!__traits(compiles, ist += duration));
static assert(!__traits(compiles, cst -= duration));
//static assert(!__traits(compiles, ist -= duration));
}
// Explicitly undocumented. It will be removed in January 2018. @@@DEPRECATED_2018-01@@@
deprecated("Use Duration instead of TickDuration.")
ref SysTime opOpAssign(string op)(TickDuration td) @safe pure nothrow
if (op == "+" || op == "-")
{
immutable hnsecs = td.hnsecs;
mixin("_stdTime " ~ op ~ "= hnsecs;");
return this;
}
deprecated @safe unittest
{
// This probably only runs in cases where gettimeofday() is used, but it's
// hard to do this test correctly with variable ticksPerSec.
if (TickDuration.ticksPerSec == 1_000_000)
{
{
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_678));
st += TickDuration.from!"usecs"(7);
assert(st == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_748)));
}
{
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_678));
st += TickDuration.from!"usecs"(-7);
assert(st == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_608)));
}
{
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_678));
st -= TickDuration.from!"usecs"(-7);
assert(st == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_748)));
}
{
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_678));
st -= TickDuration.from!"usecs"(7);
assert(st == SysTime(DateTime(1999, 7, 6, 12, 30, 33), hnsecs(2_345_608)));
}
}
}
/++
Gives the difference between two $(LREF SysTime)s.
The legal types of arithmetic for $(LREF SysTime) using this operator
are
$(BOOKTABLE,
$(TR $(TD SysTime) $(TD -) $(TD SysTime) $(TD -->) $(TD duration))
)
+/
Duration opBinary(string op)(in SysTime rhs) @safe const pure nothrow
if (op == "-")
{
return dur!"hnsecs"(_stdTime - rhs._stdTime);
}
@safe unittest
{
assert(SysTime(DateTime(1999, 7, 6, 12, 30, 33)) - SysTime(DateTime(1998, 7, 6, 12, 30, 33)) ==
dur!"seconds"(31_536_000));
assert(SysTime(DateTime(1998, 7, 6, 12, 30, 33)) - SysTime(DateTime(1999, 7, 6, 12, 30, 33)) ==
dur!"seconds"(-31_536_000));
assert(SysTime(DateTime(1999, 8, 6, 12, 30, 33)) - SysTime(DateTime(1999, 7, 6, 12, 30, 33)) ==
dur!"seconds"(26_78_400));
assert(SysTime(DateTime(1999, 7, 6, 12, 30, 33)) - SysTime(DateTime(1999, 8, 6, 12, 30, 33)) ==
dur!"seconds"(-26_78_400));
assert(SysTime(DateTime(1999, 7, 6, 12, 30, 33)) - SysTime(DateTime(1999, 7, 5, 12, 30, 33)) ==
dur!"seconds"(86_400));
assert(SysTime(DateTime(1999, 7, 5, 12, 30, 33)) - SysTime(DateTime(1999, 7, 6, 12, 30, 33)) ==
dur!"seconds"(-86_400));
assert(SysTime(DateTime(1999, 7, 6, 12, 30, 33)) - SysTime(DateTime(1999, 7, 6, 11, 30, 33)) ==
dur!"seconds"(3600));
assert(SysTime(DateTime(1999, 7, 6, 11, 30, 33)) - SysTime(DateTime(1999, 7, 6, 12, 30, 33)) ==
dur!"seconds"(-3600));
assert(SysTime(DateTime(1999, 7, 6, 12, 31, 33)) - SysTime(DateTime(1999, 7, 6, 12, 30, 33)) ==
dur!"seconds"(60));
assert(SysTime(DateTime(1999, 7, 6, 12, 30, 33)) - SysTime(DateTime(1999, 7, 6, 12, 31, 33)) ==
dur!"seconds"(-60));
assert(SysTime(DateTime(1999, 7, 6, 12, 30, 34)) - SysTime(DateTime(1999, 7, 6, 12, 30, 33)) ==
dur!"seconds"(1));
assert(SysTime(DateTime(1999, 7, 6, 12, 30, 33)) - SysTime(DateTime(1999, 7, 6, 12, 30, 34)) ==
dur!"seconds"(-1));
{
auto dt = DateTime(1999, 7, 6, 12, 30, 33);
assert(SysTime(dt, msecs(532)) - SysTime(dt) == msecs(532));
assert(SysTime(dt) - SysTime(dt, msecs(532)) == msecs(-532));
assert(SysTime(dt, usecs(333_347)) - SysTime(dt) == usecs(333_347));
assert(SysTime(dt) - SysTime(dt, usecs(333_347)) == usecs(-333_347));
assert(SysTime(dt, hnsecs(1_234_567)) - SysTime(dt) == hnsecs(1_234_567));
assert(SysTime(dt) - SysTime(dt, hnsecs(1_234_567)) == hnsecs(-1_234_567));
}
assert(SysTime(DateTime(1, 1, 1, 12, 30, 33)) - SysTime(DateTime(1, 1, 1, 0, 0, 0)) == dur!"seconds"(45033));
assert(SysTime(DateTime(1, 1, 1, 0, 0, 0)) - SysTime(DateTime(1, 1, 1, 12, 30, 33)) == dur!"seconds"(-45033));
assert(SysTime(DateTime(0, 12, 31, 12, 30, 33)) - SysTime(DateTime(1, 1, 1, 0, 0, 0)) == dur!"seconds"(-41367));
assert(SysTime(DateTime(1, 1, 1, 0, 0, 0)) - SysTime(DateTime(0, 12, 31, 12, 30, 33)) == dur!"seconds"(41367));
assert(SysTime(DateTime(1, 1, 1, 0, 0, 0)) - SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)) ==
dur!"hnsecs"(1));
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)) - SysTime(DateTime(1, 1, 1, 0, 0, 0)) ==
dur!"hnsecs"(-1));
version(Posix)
immutable tz = PosixTimeZone.getTimeZone("America/Los_Angeles");
else version(Windows)
immutable tz = WindowsTimeZone.getTimeZone("Pacific Standard Time");
{
auto dt = DateTime(2011, 1, 13, 8, 17, 2);
auto d = msecs(296);
assert(SysTime(dt, d, tz) - SysTime(dt, d, tz) == Duration.zero);
assert(SysTime(dt, d, tz) - SysTime(dt, d, UTC()) == hours(8));
assert(SysTime(dt, d, UTC()) - SysTime(dt, d, tz) == hours(-8));
}
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(st - st == Duration.zero);
assert(cst - st == Duration.zero);
//assert(ist - st == Duration.zero);
assert(st - cst == Duration.zero);
assert(cst - cst == Duration.zero);
//assert(ist - cst == Duration.zero);
//assert(st - ist == Duration.zero);
//assert(cst - ist == Duration.zero);
//assert(ist - ist == Duration.zero);
}
/++
Returns the difference between the two $(LREF SysTime)s in months.
To get the difference in years, subtract the year property
of two $(LREF SysTime)s. To get the difference in days or weeks,
subtract the $(LREF SysTime)s themselves and use the
$(REF Duration, core,time) that results. Because converting between
months and smaller units requires a specific date (which
$(REF Duration, core,time)s don't have), getting the difference in
months requires some math using both the year and month properties, so
this is a convenience function for getting the difference in months.
Note that the number of days in the months or how far into the month
either date is is irrelevant. It is the difference in the month property
combined with the difference in years * 12. So, for instance,
December 31st and January 1st are one month apart just as December 1st
and January 31st are one month apart.
Params:
rhs = The $(LREF SysTime) to subtract from this one.
+/
int diffMonths(in SysTime rhs) @safe const nothrow
{
return (cast(Date) this).diffMonths(cast(Date) rhs);
}
///
@safe unittest
{
import std.datetime.date : Date;
assert(SysTime(Date(1999, 2, 1)).diffMonths(
SysTime(Date(1999, 1, 31))) == 1);
assert(SysTime(Date(1999, 1, 31)).diffMonths(
SysTime(Date(1999, 2, 1))) == -1);
assert(SysTime(Date(1999, 3, 1)).diffMonths(
SysTime(Date(1999, 1, 1))) == 2);
assert(SysTime(Date(1999, 1, 1)).diffMonths(
SysTime(Date(1999, 3, 31))) == -2);
}
@safe unittest
{
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(st.diffMonths(st) == 0);
assert(cst.diffMonths(st) == 0);
//assert(ist.diffMonths(st) == 0);
assert(st.diffMonths(cst) == 0);
assert(cst.diffMonths(cst) == 0);
//assert(ist.diffMonths(cst) == 0);
//assert(st.diffMonths(ist) == 0);
//assert(cst.diffMonths(ist) == 0);
//assert(ist.diffMonths(ist) == 0);
}
/++
Whether this $(LREF SysTime) is in a leap year.
+/
@property bool isLeapYear() @safe const nothrow
{
return (cast(Date) this).isLeapYear;
}
@safe unittest
{
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(!st.isLeapYear);
assert(!cst.isLeapYear);
//assert(!ist.isLeapYear);
}
/++
Day of the week this $(LREF SysTime) is on.
+/
@property DayOfWeek dayOfWeek() @safe const nothrow
{
return getDayOfWeek(dayOfGregorianCal);
}
@safe unittest
{
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(st.dayOfWeek == DayOfWeek.tue);
assert(cst.dayOfWeek == DayOfWeek.tue);
//assert(ist.dayOfWeek == DayOfWeek.tue);
}
/++
Day of the year this $(LREF SysTime) is on.
+/
@property ushort dayOfYear() @safe const nothrow
{
return (cast(Date) this).dayOfYear;
}
///
@safe unittest
{
import std.datetime.date : DateTime;
assert(SysTime(DateTime(1999, 1, 1, 12, 22, 7)).dayOfYear == 1);
assert(SysTime(DateTime(1999, 12, 31, 7, 2, 59)).dayOfYear == 365);
assert(SysTime(DateTime(2000, 12, 31, 21, 20, 0)).dayOfYear == 366);
}
@safe unittest
{
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(st.dayOfYear == 187);
assert(cst.dayOfYear == 187);
//assert(ist.dayOfYear == 187);
}
/++
Day of the year.
Params:
day = The day of the year to set which day of the year this
$(LREF SysTime) is on.
+/
@property void dayOfYear(int day) @safe
{
immutable hnsecs = adjTime;
immutable days = convert!("hnsecs", "days")(hnsecs);
immutable theRest = hnsecs - convert!("days", "hnsecs")(days);
auto date = Date(cast(int) days);
date.dayOfYear = day;
immutable newDaysHNSecs = convert!("days", "hnsecs")(date.dayOfGregorianCal - 1);
adjTime = newDaysHNSecs + theRest;
}
@safe unittest
{
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
st.dayOfYear = 12;
assert(st.dayOfYear == 12);
static assert(!__traits(compiles, cst.dayOfYear = 12));
//static assert(!__traits(compiles, ist.dayOfYear = 12));
}
/++
The Xth day of the Gregorian Calendar that this $(LREF SysTime) is on.
+/
@property int dayOfGregorianCal() @safe const nothrow
{
immutable adjustedTime = adjTime;
// We have to add one because 0 would be midnight, January 1st, 1 A.D.,
// which would be the 1st day of the Gregorian Calendar, not the 0th. So,
// simply casting to days is one day off.
if (adjustedTime > 0)
return cast(int) getUnitsFromHNSecs!"days"(adjustedTime) + 1;
long hnsecs = adjustedTime;
immutable days = cast(int) splitUnitsFromHNSecs!"days"(hnsecs);
return hnsecs == 0 ? days + 1 : days;
}
///
@safe unittest
{
import std.datetime.date : DateTime;
assert(SysTime(DateTime(1, 1, 1, 0, 0, 0)).dayOfGregorianCal == 1);
assert(SysTime(DateTime(1, 12, 31, 23, 59, 59)).dayOfGregorianCal == 365);
assert(SysTime(DateTime(2, 1, 1, 2, 2, 2)).dayOfGregorianCal == 366);
assert(SysTime(DateTime(0, 12, 31, 7, 7, 7)).dayOfGregorianCal == 0);
assert(SysTime(DateTime(0, 1, 1, 19, 30, 0)).dayOfGregorianCal == -365);
assert(SysTime(DateTime(-1, 12, 31, 4, 7, 0)).dayOfGregorianCal == -366);
assert(SysTime(DateTime(2000, 1, 1, 9, 30, 20)).dayOfGregorianCal == 730_120);
assert(SysTime(DateTime(2010, 12, 31, 15, 45, 50)).dayOfGregorianCal == 734_137);
}
@safe unittest
{
// Test A.D.
assert(SysTime(DateTime(1, 1, 1, 0, 0, 0)).dayOfGregorianCal == 1);
assert(SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1)).dayOfGregorianCal == 1);
assert(SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)).dayOfGregorianCal == 1);
assert(SysTime(DateTime(1, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 1);
assert(SysTime(DateTime(1, 1, 2, 12, 2, 9), msecs(212)).dayOfGregorianCal == 2);
assert(SysTime(DateTime(1, 2, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 32);
assert(SysTime(DateTime(2, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 366);
assert(SysTime(DateTime(3, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 731);
assert(SysTime(DateTime(4, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 1096);
assert(SysTime(DateTime(5, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 1462);
assert(SysTime(DateTime(50, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 17_898);
assert(SysTime(DateTime(97, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 35_065);
assert(SysTime(DateTime(100, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 36_160);
assert(SysTime(DateTime(101, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 36_525);
assert(SysTime(DateTime(105, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 37_986);
assert(SysTime(DateTime(200, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 72_684);
assert(SysTime(DateTime(201, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 73_049);
assert(SysTime(DateTime(300, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 109_208);
assert(SysTime(DateTime(301, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 109_573);
assert(SysTime(DateTime(400, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 145_732);
assert(SysTime(DateTime(401, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 146_098);
assert(SysTime(DateTime(500, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 182_257);
assert(SysTime(DateTime(501, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 182_622);
assert(SysTime(DateTime(1000, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 364_878);
assert(SysTime(DateTime(1001, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 365_243);
assert(SysTime(DateTime(1600, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 584_023);
assert(SysTime(DateTime(1601, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 584_389);
assert(SysTime(DateTime(1900, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 693_596);
assert(SysTime(DateTime(1901, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 693_961);
assert(SysTime(DateTime(1945, 11, 12, 12, 2, 9), msecs(212)).dayOfGregorianCal == 710_347);
assert(SysTime(DateTime(1999, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 729_755);
assert(SysTime(DateTime(2000, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 730_120);
assert(SysTime(DateTime(2001, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == 730_486);
assert(SysTime(DateTime(2010, 1, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_773);
assert(SysTime(DateTime(2010, 1, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_803);
assert(SysTime(DateTime(2010, 2, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_804);
assert(SysTime(DateTime(2010, 2, 28, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_831);
assert(SysTime(DateTime(2010, 3, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_832);
assert(SysTime(DateTime(2010, 3, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_862);
assert(SysTime(DateTime(2010, 4, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_863);
assert(SysTime(DateTime(2010, 4, 30, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_892);
assert(SysTime(DateTime(2010, 5, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_893);
assert(SysTime(DateTime(2010, 5, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_923);
assert(SysTime(DateTime(2010, 6, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_924);
assert(SysTime(DateTime(2010, 6, 30, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_953);
assert(SysTime(DateTime(2010, 7, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_954);
assert(SysTime(DateTime(2010, 7, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_984);
assert(SysTime(DateTime(2010, 8, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == 733_985);
assert(SysTime(DateTime(2010, 8, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == 734_015);
assert(SysTime(DateTime(2010, 9, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == 734_016);
assert(SysTime(DateTime(2010, 9, 30, 23, 59, 59), msecs(999)).dayOfGregorianCal == 734_045);
assert(SysTime(DateTime(2010, 10, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == 734_046);
assert(SysTime(DateTime(2010, 10, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == 734_076);
assert(SysTime(DateTime(2010, 11, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == 734_077);
assert(SysTime(DateTime(2010, 11, 30, 23, 59, 59), msecs(999)).dayOfGregorianCal == 734_106);
assert(SysTime(DateTime(2010, 12, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == 734_107);
assert(SysTime(DateTime(2010, 12, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == 734_137);
assert(SysTime(DateTime(2012, 2, 1, 0, 0, 0)).dayOfGregorianCal == 734_534);
assert(SysTime(DateTime(2012, 2, 28, 0, 0, 0)).dayOfGregorianCal == 734_561);
assert(SysTime(DateTime(2012, 2, 29, 0, 0, 0)).dayOfGregorianCal == 734_562);
assert(SysTime(DateTime(2012, 3, 1, 0, 0, 0)).dayOfGregorianCal == 734_563);
// Test B.C.
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)).dayOfGregorianCal == 0);
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_998)).dayOfGregorianCal == 0);
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59)).dayOfGregorianCal == 0);
assert(SysTime(DateTime(0, 12, 31, 0, 0, 0), hnsecs(1)).dayOfGregorianCal == 0);
assert(SysTime(DateTime(0, 12, 31, 0, 0, 0)).dayOfGregorianCal == 0);
assert(SysTime(DateTime(-1, 12, 31, 23, 59, 59), hnsecs(9_999_999)).dayOfGregorianCal == -366);
assert(SysTime(DateTime(-1, 12, 31, 23, 59, 59), hnsecs(9_999_998)).dayOfGregorianCal == -366);
assert(SysTime(DateTime(-1, 12, 31, 23, 59, 59)).dayOfGregorianCal == -366);
assert(SysTime(DateTime(-1, 12, 31, 0, 0, 0)).dayOfGregorianCal == -366);
assert(SysTime(DateTime(0, 12, 31, 12, 2, 9), msecs(212)).dayOfGregorianCal == 0);
assert(SysTime(DateTime(0, 12, 30, 12, 2, 9), msecs(212)).dayOfGregorianCal == -1);
assert(SysTime(DateTime(0, 12, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -30);
assert(SysTime(DateTime(0, 11, 30, 12, 2, 9), msecs(212)).dayOfGregorianCal == -31);
assert(SysTime(DateTime(-1, 12, 31, 12, 2, 9), msecs(212)).dayOfGregorianCal == -366);
assert(SysTime(DateTime(-1, 12, 30, 12, 2, 9), msecs(212)).dayOfGregorianCal == -367);
assert(SysTime(DateTime(-1, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -730);
assert(SysTime(DateTime(-2, 12, 31, 12, 2, 9), msecs(212)).dayOfGregorianCal == -731);
assert(SysTime(DateTime(-2, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -1095);
assert(SysTime(DateTime(-3, 12, 31, 12, 2, 9), msecs(212)).dayOfGregorianCal == -1096);
assert(SysTime(DateTime(-3, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -1460);
assert(SysTime(DateTime(-4, 12, 31, 12, 2, 9), msecs(212)).dayOfGregorianCal == -1461);
assert(SysTime(DateTime(-4, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -1826);
assert(SysTime(DateTime(-5, 12, 31, 12, 2, 9), msecs(212)).dayOfGregorianCal == -1827);
assert(SysTime(DateTime(-5, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -2191);
assert(SysTime(DateTime(-9, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -3652);
assert(SysTime(DateTime(-49, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -18_262);
assert(SysTime(DateTime(-50, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -18_627);
assert(SysTime(DateTime(-97, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -35_794);
assert(SysTime(DateTime(-99, 12, 31, 12, 2, 9), msecs(212)).dayOfGregorianCal == -36_160);
assert(SysTime(DateTime(-99, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -36_524);
assert(SysTime(DateTime(-100, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -36_889);
assert(SysTime(DateTime(-101, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -37_254);
assert(SysTime(DateTime(-105, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -38_715);
assert(SysTime(DateTime(-200, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -73_413);
assert(SysTime(DateTime(-201, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -73_778);
assert(SysTime(DateTime(-300, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -109_937);
assert(SysTime(DateTime(-301, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -110_302);
assert(SysTime(DateTime(-400, 12, 31, 12, 2, 9), msecs(212)).dayOfGregorianCal == -146_097);
assert(SysTime(DateTime(-400, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -146_462);
assert(SysTime(DateTime(-401, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -146_827);
assert(SysTime(DateTime(-499, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -182_621);
assert(SysTime(DateTime(-500, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -182_986);
assert(SysTime(DateTime(-501, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -183_351);
assert(SysTime(DateTime(-1000, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -365_607);
assert(SysTime(DateTime(-1001, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -365_972);
assert(SysTime(DateTime(-1599, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -584_387);
assert(SysTime(DateTime(-1600, 12, 31, 12, 2, 9), msecs(212)).dayOfGregorianCal == -584_388);
assert(SysTime(DateTime(-1600, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -584_753);
assert(SysTime(DateTime(-1601, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -585_118);
assert(SysTime(DateTime(-1900, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -694_325);
assert(SysTime(DateTime(-1901, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -694_690);
assert(SysTime(DateTime(-1999, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -730_484);
assert(SysTime(DateTime(-2000, 12, 31, 12, 2, 9), msecs(212)).dayOfGregorianCal == -730_485);
assert(SysTime(DateTime(-2000, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -730_850);
assert(SysTime(DateTime(-2001, 1, 1, 12, 2, 9), msecs(212)).dayOfGregorianCal == -731_215);
assert(SysTime(DateTime(-2010, 1, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_502);
assert(SysTime(DateTime(-2010, 1, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_472);
assert(SysTime(DateTime(-2010, 2, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_471);
assert(SysTime(DateTime(-2010, 2, 28, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_444);
assert(SysTime(DateTime(-2010, 3, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_443);
assert(SysTime(DateTime(-2010, 3, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_413);
assert(SysTime(DateTime(-2010, 4, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_412);
assert(SysTime(DateTime(-2010, 4, 30, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_383);
assert(SysTime(DateTime(-2010, 5, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_382);
assert(SysTime(DateTime(-2010, 5, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_352);
assert(SysTime(DateTime(-2010, 6, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_351);
assert(SysTime(DateTime(-2010, 6, 30, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_322);
assert(SysTime(DateTime(-2010, 7, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_321);
assert(SysTime(DateTime(-2010, 7, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_291);
assert(SysTime(DateTime(-2010, 8, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_290);
assert(SysTime(DateTime(-2010, 8, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_260);
assert(SysTime(DateTime(-2010, 9, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_259);
assert(SysTime(DateTime(-2010, 9, 30, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_230);
assert(SysTime(DateTime(-2010, 10, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_229);
assert(SysTime(DateTime(-2010, 10, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_199);
assert(SysTime(DateTime(-2010, 11, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_198);
assert(SysTime(DateTime(-2010, 11, 30, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_169);
assert(SysTime(DateTime(-2010, 12, 1, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_168);
assert(SysTime(DateTime(-2010, 12, 31, 23, 59, 59), msecs(999)).dayOfGregorianCal == -734_138);
assert(SysTime(DateTime(-2012, 2, 1, 0, 0, 0)).dayOfGregorianCal == -735_202);
assert(SysTime(DateTime(-2012, 2, 28, 0, 0, 0)).dayOfGregorianCal == -735_175);
assert(SysTime(DateTime(-2012, 2, 29, 0, 0, 0)).dayOfGregorianCal == -735_174);
assert(SysTime(DateTime(-2012, 3, 1, 0, 0, 0)).dayOfGregorianCal == -735_173);
// Start of Hebrew Calendar
assert(SysTime(DateTime(-3760, 9, 7, 0, 0, 0)).dayOfGregorianCal == -1_373_427);
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.dayOfGregorianCal == 729_941);
//assert(ist.dayOfGregorianCal == 729_941);
}
// Test that the logic for the day of the Gregorian Calendar is consistent
// between Date and SysTime.
@safe unittest
{
void test(Date date, SysTime st, size_t line = __LINE__)
{
if (date.dayOfGregorianCal != st.dayOfGregorianCal)
{
throw new AssertError(format("Date [%s] SysTime [%s]", date.dayOfGregorianCal, st.dayOfGregorianCal),
__FILE__, line);
}
}
// Test A.D.
test(Date(1, 1, 1), SysTime(DateTime(1, 1, 1, 0, 0, 0)));
test(Date(1, 1, 2), SysTime(DateTime(1, 1, 2, 0, 0, 0), hnsecs(500)));
test(Date(1, 2, 1), SysTime(DateTime(1, 2, 1, 0, 0, 0), hnsecs(50_000)));
test(Date(2, 1, 1), SysTime(DateTime(2, 1, 1, 0, 0, 0), hnsecs(9_999_999)));
test(Date(3, 1, 1), SysTime(DateTime(3, 1, 1, 12, 13, 14)));
test(Date(4, 1, 1), SysTime(DateTime(4, 1, 1, 12, 13, 14), hnsecs(500)));
test(Date(5, 1, 1), SysTime(DateTime(5, 1, 1, 12, 13, 14), hnsecs(50_000)));
test(Date(50, 1, 1), SysTime(DateTime(50, 1, 1, 12, 13, 14), hnsecs(9_999_999)));
test(Date(97, 1, 1), SysTime(DateTime(97, 1, 1, 23, 59, 59)));
test(Date(100, 1, 1), SysTime(DateTime(100, 1, 1, 23, 59, 59), hnsecs(500)));
test(Date(101, 1, 1), SysTime(DateTime(101, 1, 1, 23, 59, 59), hnsecs(50_000)));
test(Date(105, 1, 1), SysTime(DateTime(105, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
test(Date(200, 1, 1), SysTime(DateTime(200, 1, 1, 0, 0, 0)));
test(Date(201, 1, 1), SysTime(DateTime(201, 1, 1, 0, 0, 0), hnsecs(500)));
test(Date(300, 1, 1), SysTime(DateTime(300, 1, 1, 0, 0, 0), hnsecs(50_000)));
test(Date(301, 1, 1), SysTime(DateTime(301, 1, 1, 0, 0, 0), hnsecs(9_999_999)));
test(Date(400, 1, 1), SysTime(DateTime(400, 1, 1, 12, 13, 14)));
test(Date(401, 1, 1), SysTime(DateTime(401, 1, 1, 12, 13, 14), hnsecs(500)));
test(Date(500, 1, 1), SysTime(DateTime(500, 1, 1, 12, 13, 14), hnsecs(50_000)));
test(Date(501, 1, 1), SysTime(DateTime(501, 1, 1, 12, 13, 14), hnsecs(9_999_999)));
test(Date(1000, 1, 1), SysTime(DateTime(1000, 1, 1, 23, 59, 59)));
test(Date(1001, 1, 1), SysTime(DateTime(1001, 1, 1, 23, 59, 59), hnsecs(500)));
test(Date(1600, 1, 1), SysTime(DateTime(1600, 1, 1, 23, 59, 59), hnsecs(50_000)));
test(Date(1601, 1, 1), SysTime(DateTime(1601, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
test(Date(1900, 1, 1), SysTime(DateTime(1900, 1, 1, 0, 0, 0)));
test(Date(1901, 1, 1), SysTime(DateTime(1901, 1, 1, 0, 0, 0), hnsecs(500)));
test(Date(1945, 11, 12), SysTime(DateTime(1945, 11, 12, 0, 0, 0), hnsecs(50_000)));
test(Date(1999, 1, 1), SysTime(DateTime(1999, 1, 1, 0, 0, 0), hnsecs(9_999_999)));
test(Date(1999, 7, 6), SysTime(DateTime(1999, 7, 6, 12, 13, 14)));
test(Date(2000, 1, 1), SysTime(DateTime(2000, 1, 1, 12, 13, 14), hnsecs(500)));
test(Date(2001, 1, 1), SysTime(DateTime(2001, 1, 1, 12, 13, 14), hnsecs(50_000)));
test(Date(2010, 1, 1), SysTime(DateTime(2010, 1, 1, 12, 13, 14), hnsecs(9_999_999)));
test(Date(2010, 1, 31), SysTime(DateTime(2010, 1, 31, 23, 0, 0)));
test(Date(2010, 2, 1), SysTime(DateTime(2010, 2, 1, 23, 59, 59), hnsecs(500)));
test(Date(2010, 2, 28), SysTime(DateTime(2010, 2, 28, 23, 59, 59), hnsecs(50_000)));
test(Date(2010, 3, 1), SysTime(DateTime(2010, 3, 1, 23, 59, 59), hnsecs(9_999_999)));
test(Date(2010, 3, 31), SysTime(DateTime(2010, 3, 31, 0, 0, 0)));
test(Date(2010, 4, 1), SysTime(DateTime(2010, 4, 1, 0, 0, 0), hnsecs(500)));
test(Date(2010, 4, 30), SysTime(DateTime(2010, 4, 30, 0, 0, 0), hnsecs(50_000)));
test(Date(2010, 5, 1), SysTime(DateTime(2010, 5, 1, 0, 0, 0), hnsecs(9_999_999)));
test(Date(2010, 5, 31), SysTime(DateTime(2010, 5, 31, 12, 13, 14)));
test(Date(2010, 6, 1), SysTime(DateTime(2010, 6, 1, 12, 13, 14), hnsecs(500)));
test(Date(2010, 6, 30), SysTime(DateTime(2010, 6, 30, 12, 13, 14), hnsecs(50_000)));
test(Date(2010, 7, 1), SysTime(DateTime(2010, 7, 1, 12, 13, 14), hnsecs(9_999_999)));
test(Date(2010, 7, 31), SysTime(DateTime(2010, 7, 31, 23, 59, 59)));
test(Date(2010, 8, 1), SysTime(DateTime(2010, 8, 1, 23, 59, 59), hnsecs(500)));
test(Date(2010, 8, 31), SysTime(DateTime(2010, 8, 31, 23, 59, 59), hnsecs(50_000)));
test(Date(2010, 9, 1), SysTime(DateTime(2010, 9, 1, 23, 59, 59), hnsecs(9_999_999)));
test(Date(2010, 9, 30), SysTime(DateTime(2010, 9, 30, 12, 0, 0)));
test(Date(2010, 10, 1), SysTime(DateTime(2010, 10, 1, 0, 12, 0), hnsecs(500)));
test(Date(2010, 10, 31), SysTime(DateTime(2010, 10, 31, 0, 0, 12), hnsecs(50_000)));
test(Date(2010, 11, 1), SysTime(DateTime(2010, 11, 1, 23, 0, 0), hnsecs(9_999_999)));
test(Date(2010, 11, 30), SysTime(DateTime(2010, 11, 30, 0, 59, 0)));
test(Date(2010, 12, 1), SysTime(DateTime(2010, 12, 1, 0, 0, 59), hnsecs(500)));
test(Date(2010, 12, 31), SysTime(DateTime(2010, 12, 31, 0, 59, 59), hnsecs(50_000)));
test(Date(2012, 2, 1), SysTime(DateTime(2012, 2, 1, 23, 0, 59), hnsecs(9_999_999)));
test(Date(2012, 2, 28), SysTime(DateTime(2012, 2, 28, 23, 59, 0)));
test(Date(2012, 2, 29), SysTime(DateTime(2012, 2, 29, 7, 7, 7), hnsecs(7)));
test(Date(2012, 3, 1), SysTime(DateTime(2012, 3, 1, 7, 7, 7), hnsecs(7)));
// Test B.C.
test(Date(0, 12, 31), SysTime(DateTime(0, 12, 31, 0, 0, 0)));
test(Date(0, 12, 30), SysTime(DateTime(0, 12, 30, 0, 0, 0), hnsecs(500)));
test(Date(0, 12, 1), SysTime(DateTime(0, 12, 1, 0, 0, 0), hnsecs(50_000)));
test(Date(0, 11, 30), SysTime(DateTime(0, 11, 30, 0, 0, 0), hnsecs(9_999_999)));
test(Date(-1, 12, 31), SysTime(DateTime(-1, 12, 31, 12, 13, 14)));
test(Date(-1, 12, 30), SysTime(DateTime(-1, 12, 30, 12, 13, 14), hnsecs(500)));
test(Date(-1, 1, 1), SysTime(DateTime(-1, 1, 1, 12, 13, 14), hnsecs(50_000)));
test(Date(-2, 12, 31), SysTime(DateTime(-2, 12, 31, 12, 13, 14), hnsecs(9_999_999)));
test(Date(-2, 1, 1), SysTime(DateTime(-2, 1, 1, 23, 59, 59)));
test(Date(-3, 12, 31), SysTime(DateTime(-3, 12, 31, 23, 59, 59), hnsecs(500)));
test(Date(-3, 1, 1), SysTime(DateTime(-3, 1, 1, 23, 59, 59), hnsecs(50_000)));
test(Date(-4, 12, 31), SysTime(DateTime(-4, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
test(Date(-4, 1, 1), SysTime(DateTime(-4, 1, 1, 0, 0, 0)));
test(Date(-5, 12, 31), SysTime(DateTime(-5, 12, 31, 0, 0, 0), hnsecs(500)));
test(Date(-5, 1, 1), SysTime(DateTime(-5, 1, 1, 0, 0, 0), hnsecs(50_000)));
test(Date(-9, 1, 1), SysTime(DateTime(-9, 1, 1, 0, 0, 0), hnsecs(9_999_999)));
test(Date(-49, 1, 1), SysTime(DateTime(-49, 1, 1, 12, 13, 14)));
test(Date(-50, 1, 1), SysTime(DateTime(-50, 1, 1, 12, 13, 14), hnsecs(500)));
test(Date(-97, 1, 1), SysTime(DateTime(-97, 1, 1, 12, 13, 14), hnsecs(50_000)));
test(Date(-99, 12, 31), SysTime(DateTime(-99, 12, 31, 12, 13, 14), hnsecs(9_999_999)));
test(Date(-99, 1, 1), SysTime(DateTime(-99, 1, 1, 23, 59, 59)));
test(Date(-100, 1, 1), SysTime(DateTime(-100, 1, 1, 23, 59, 59), hnsecs(500)));
test(Date(-101, 1, 1), SysTime(DateTime(-101, 1, 1, 23, 59, 59), hnsecs(50_000)));
test(Date(-105, 1, 1), SysTime(DateTime(-105, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
test(Date(-200, 1, 1), SysTime(DateTime(-200, 1, 1, 0, 0, 0)));
test(Date(-201, 1, 1), SysTime(DateTime(-201, 1, 1, 0, 0, 0), hnsecs(500)));
test(Date(-300, 1, 1), SysTime(DateTime(-300, 1, 1, 0, 0, 0), hnsecs(50_000)));
test(Date(-301, 1, 1), SysTime(DateTime(-301, 1, 1, 0, 0, 0), hnsecs(9_999_999)));
test(Date(-400, 12, 31), SysTime(DateTime(-400, 12, 31, 12, 13, 14)));
test(Date(-400, 1, 1), SysTime(DateTime(-400, 1, 1, 12, 13, 14), hnsecs(500)));
test(Date(-401, 1, 1), SysTime(DateTime(-401, 1, 1, 12, 13, 14), hnsecs(50_000)));
test(Date(-499, 1, 1), SysTime(DateTime(-499, 1, 1, 12, 13, 14), hnsecs(9_999_999)));
test(Date(-500, 1, 1), SysTime(DateTime(-500, 1, 1, 23, 59, 59)));
test(Date(-501, 1, 1), SysTime(DateTime(-501, 1, 1, 23, 59, 59), hnsecs(500)));
test(Date(-1000, 1, 1), SysTime(DateTime(-1000, 1, 1, 23, 59, 59), hnsecs(50_000)));
test(Date(-1001, 1, 1), SysTime(DateTime(-1001, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
test(Date(-1599, 1, 1), SysTime(DateTime(-1599, 1, 1, 0, 0, 0)));
test(Date(-1600, 12, 31), SysTime(DateTime(-1600, 12, 31, 0, 0, 0), hnsecs(500)));
test(Date(-1600, 1, 1), SysTime(DateTime(-1600, 1, 1, 0, 0, 0), hnsecs(50_000)));
test(Date(-1601, 1, 1), SysTime(DateTime(-1601, 1, 1, 0, 0, 0), hnsecs(9_999_999)));
test(Date(-1900, 1, 1), SysTime(DateTime(-1900, 1, 1, 12, 13, 14)));
test(Date(-1901, 1, 1), SysTime(DateTime(-1901, 1, 1, 12, 13, 14), hnsecs(500)));
test(Date(-1999, 1, 1), SysTime(DateTime(-1999, 1, 1, 12, 13, 14), hnsecs(50_000)));
test(Date(-1999, 7, 6), SysTime(DateTime(-1999, 7, 6, 12, 13, 14), hnsecs(9_999_999)));
test(Date(-2000, 12, 31), SysTime(DateTime(-2000, 12, 31, 23, 59, 59)));
test(Date(-2000, 1, 1), SysTime(DateTime(-2000, 1, 1, 23, 59, 59), hnsecs(500)));
test(Date(-2001, 1, 1), SysTime(DateTime(-2001, 1, 1, 23, 59, 59), hnsecs(50_000)));
test(Date(-2010, 1, 1), SysTime(DateTime(-2010, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
test(Date(-2010, 1, 31), SysTime(DateTime(-2010, 1, 31, 0, 0, 0)));
test(Date(-2010, 2, 1), SysTime(DateTime(-2010, 2, 1, 0, 0, 0), hnsecs(500)));
test(Date(-2010, 2, 28), SysTime(DateTime(-2010, 2, 28, 0, 0, 0), hnsecs(50_000)));
test(Date(-2010, 3, 1), SysTime(DateTime(-2010, 3, 1, 0, 0, 0), hnsecs(9_999_999)));
test(Date(-2010, 3, 31), SysTime(DateTime(-2010, 3, 31, 12, 13, 14)));
test(Date(-2010, 4, 1), SysTime(DateTime(-2010, 4, 1, 12, 13, 14), hnsecs(500)));
test(Date(-2010, 4, 30), SysTime(DateTime(-2010, 4, 30, 12, 13, 14), hnsecs(50_000)));
test(Date(-2010, 5, 1), SysTime(DateTime(-2010, 5, 1, 12, 13, 14), hnsecs(9_999_999)));
test(Date(-2010, 5, 31), SysTime(DateTime(-2010, 5, 31, 23, 59, 59)));
test(Date(-2010, 6, 1), SysTime(DateTime(-2010, 6, 1, 23, 59, 59), hnsecs(500)));
test(Date(-2010, 6, 30), SysTime(DateTime(-2010, 6, 30, 23, 59, 59), hnsecs(50_000)));
test(Date(-2010, 7, 1), SysTime(DateTime(-2010, 7, 1, 23, 59, 59), hnsecs(9_999_999)));
test(Date(-2010, 7, 31), SysTime(DateTime(-2010, 7, 31, 0, 0, 0)));
test(Date(-2010, 8, 1), SysTime(DateTime(-2010, 8, 1, 0, 0, 0), hnsecs(500)));
test(Date(-2010, 8, 31), SysTime(DateTime(-2010, 8, 31, 0, 0, 0), hnsecs(50_000)));
test(Date(-2010, 9, 1), SysTime(DateTime(-2010, 9, 1, 0, 0, 0), hnsecs(9_999_999)));
test(Date(-2010, 9, 30), SysTime(DateTime(-2010, 9, 30, 12, 0, 0)));
test(Date(-2010, 10, 1), SysTime(DateTime(-2010, 10, 1, 0, 12, 0), hnsecs(500)));
test(Date(-2010, 10, 31), SysTime(DateTime(-2010, 10, 31, 0, 0, 12), hnsecs(50_000)));
test(Date(-2010, 11, 1), SysTime(DateTime(-2010, 11, 1, 23, 0, 0), hnsecs(9_999_999)));
test(Date(-2010, 11, 30), SysTime(DateTime(-2010, 11, 30, 0, 59, 0)));
test(Date(-2010, 12, 1), SysTime(DateTime(-2010, 12, 1, 0, 0, 59), hnsecs(500)));
test(Date(-2010, 12, 31), SysTime(DateTime(-2010, 12, 31, 0, 59, 59), hnsecs(50_000)));
test(Date(-2012, 2, 1), SysTime(DateTime(-2012, 2, 1, 23, 0, 59), hnsecs(9_999_999)));
test(Date(-2012, 2, 28), SysTime(DateTime(-2012, 2, 28, 23, 59, 0)));
test(Date(-2012, 2, 29), SysTime(DateTime(-2012, 2, 29, 7, 7, 7), hnsecs(7)));
test(Date(-2012, 3, 1), SysTime(DateTime(-2012, 3, 1, 7, 7, 7), hnsecs(7)));
test(Date(-3760, 9, 7), SysTime(DateTime(-3760, 9, 7, 0, 0, 0)));
}
/++
The Xth day of the Gregorian Calendar that this $(LREF SysTime) is on.
Setting this property does not affect the time portion of $(LREF SysTime).
Params:
days = The day of the Gregorian Calendar to set this $(LREF SysTime)
to.
+/
@property void dayOfGregorianCal(int days) @safe nothrow
{
auto hnsecs = adjTime;
hnsecs = removeUnitsFromHNSecs!"days"(hnsecs);
if (hnsecs < 0)
hnsecs += convert!("hours", "hnsecs")(24);
if (--days < 0)
{
hnsecs -= convert!("hours", "hnsecs")(24);
++days;
}
immutable newDaysHNSecs = convert!("days", "hnsecs")(days);
adjTime = newDaysHNSecs + hnsecs;
}
///
@safe unittest
{
import std.datetime.date : DateTime;
auto st = SysTime(DateTime(0, 1, 1, 12, 0, 0));
st.dayOfGregorianCal = 1;
assert(st == SysTime(DateTime(1, 1, 1, 12, 0, 0)));
st.dayOfGregorianCal = 365;
assert(st == SysTime(DateTime(1, 12, 31, 12, 0, 0)));
st.dayOfGregorianCal = 366;
assert(st == SysTime(DateTime(2, 1, 1, 12, 0, 0)));
st.dayOfGregorianCal = 0;
assert(st == SysTime(DateTime(0, 12, 31, 12, 0, 0)));
st.dayOfGregorianCal = -365;
assert(st == SysTime(DateTime(-0, 1, 1, 12, 0, 0)));
st.dayOfGregorianCal = -366;
assert(st == SysTime(DateTime(-1, 12, 31, 12, 0, 0)));
st.dayOfGregorianCal = 730_120;
assert(st == SysTime(DateTime(2000, 1, 1, 12, 0, 0)));
st.dayOfGregorianCal = 734_137;
assert(st == SysTime(DateTime(2010, 12, 31, 12, 0, 0)));
}
@safe unittest
{
void testST(SysTime orig, int day, in SysTime expected, size_t line = __LINE__)
{
orig.dayOfGregorianCal = day;
if (orig != expected)
throw new AssertError(format("Failed. actual [%s] != expected [%s]", orig, expected), __FILE__, line);
}
// Test A.D.
testST(SysTime(DateTime(1, 1, 1, 0, 0, 0)), 1, SysTime(DateTime(1, 1, 1, 0, 0, 0)));
testST(SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1)), 1, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1)));
testST(SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)), 1,
SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
// Test B.C.
testST(SysTime(DateTime(0, 1, 1, 0, 0, 0)), 0, SysTime(DateTime(0, 12, 31, 0, 0, 0)));
testST(SysTime(DateTime(0, 1, 1, 23, 59, 59), hnsecs(9_999_999)), 0,
SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
testST(SysTime(DateTime(0, 1, 1, 23, 59, 59), hnsecs(1)), 0,
SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(1)));
testST(SysTime(DateTime(0, 1, 1, 23, 59, 59)), 0, SysTime(DateTime(0, 12, 31, 23, 59, 59)));
// Test Both.
testST(SysTime(DateTime(-512, 7, 20, 0, 0, 0)), 1, SysTime(DateTime(1, 1, 1, 0, 0, 0)));
testST(SysTime(DateTime(-513, 6, 6, 0, 0, 0), hnsecs(1)), 1, SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1)));
testST(SysTime(DateTime(-511, 5, 7, 23, 59, 59), hnsecs(9_999_999)), 1,
SysTime(DateTime(1, 1, 1, 23, 59, 59), hnsecs(9_999_999)));
testST(SysTime(DateTime(1607, 4, 8, 0, 0, 0)), 0, SysTime(DateTime(0, 12, 31, 0, 0, 0)));
testST(SysTime(DateTime(1500, 3, 9, 23, 59, 59), hnsecs(9_999_999)), 0,
SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
testST(SysTime(DateTime(999, 2, 10, 23, 59, 59), hnsecs(1)), 0,
SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(1)));
testST(SysTime(DateTime(2007, 12, 11, 23, 59, 59)), 0, SysTime(DateTime(0, 12, 31, 23, 59, 59)));
auto st = SysTime(DateTime(1, 1, 1, 12, 2, 9), msecs(212));
void testST2(int day, in SysTime expected, size_t line = __LINE__)
{
st.dayOfGregorianCal = day;
if (st != expected)
throw new AssertError(format("Failed. actual [%s] != expected [%s]", st, expected), __FILE__, line);
}
// Test A.D.
testST2(1, SysTime(DateTime(1, 1, 1, 12, 2, 9), msecs(212)));
testST2(2, SysTime(DateTime(1, 1, 2, 12, 2, 9), msecs(212)));
testST2(32, SysTime(DateTime(1, 2, 1, 12, 2, 9), msecs(212)));
testST2(366, SysTime(DateTime(2, 1, 1, 12, 2, 9), msecs(212)));
testST2(731, SysTime(DateTime(3, 1, 1, 12, 2, 9), msecs(212)));
testST2(1096, SysTime(DateTime(4, 1, 1, 12, 2, 9), msecs(212)));
testST2(1462, SysTime(DateTime(5, 1, 1, 12, 2, 9), msecs(212)));
testST2(17_898, SysTime(DateTime(50, 1, 1, 12, 2, 9), msecs(212)));
testST2(35_065, SysTime(DateTime(97, 1, 1, 12, 2, 9), msecs(212)));
testST2(36_160, SysTime(DateTime(100, 1, 1, 12, 2, 9), msecs(212)));
testST2(36_525, SysTime(DateTime(101, 1, 1, 12, 2, 9), msecs(212)));
testST2(37_986, SysTime(DateTime(105, 1, 1, 12, 2, 9), msecs(212)));
testST2(72_684, SysTime(DateTime(200, 1, 1, 12, 2, 9), msecs(212)));
testST2(73_049, SysTime(DateTime(201, 1, 1, 12, 2, 9), msecs(212)));
testST2(109_208, SysTime(DateTime(300, 1, 1, 12, 2, 9), msecs(212)));
testST2(109_573, SysTime(DateTime(301, 1, 1, 12, 2, 9), msecs(212)));
testST2(145_732, SysTime(DateTime(400, 1, 1, 12, 2, 9), msecs(212)));
testST2(146_098, SysTime(DateTime(401, 1, 1, 12, 2, 9), msecs(212)));
testST2(182_257, SysTime(DateTime(500, 1, 1, 12, 2, 9), msecs(212)));
testST2(182_622, SysTime(DateTime(501, 1, 1, 12, 2, 9), msecs(212)));
testST2(364_878, SysTime(DateTime(1000, 1, 1, 12, 2, 9), msecs(212)));
testST2(365_243, SysTime(DateTime(1001, 1, 1, 12, 2, 9), msecs(212)));
testST2(584_023, SysTime(DateTime(1600, 1, 1, 12, 2, 9), msecs(212)));
testST2(584_389, SysTime(DateTime(1601, 1, 1, 12, 2, 9), msecs(212)));
testST2(693_596, SysTime(DateTime(1900, 1, 1, 12, 2, 9), msecs(212)));
testST2(693_961, SysTime(DateTime(1901, 1, 1, 12, 2, 9), msecs(212)));
testST2(729_755, SysTime(DateTime(1999, 1, 1, 12, 2, 9), msecs(212)));
testST2(730_120, SysTime(DateTime(2000, 1, 1, 12, 2, 9), msecs(212)));
testST2(730_486, SysTime(DateTime(2001, 1, 1, 12, 2, 9), msecs(212)));
testST2(733_773, SysTime(DateTime(2010, 1, 1, 12, 2, 9), msecs(212)));
testST2(733_803, SysTime(DateTime(2010, 1, 31, 12, 2, 9), msecs(212)));
testST2(733_804, SysTime(DateTime(2010, 2, 1, 12, 2, 9), msecs(212)));
testST2(733_831, SysTime(DateTime(2010, 2, 28, 12, 2, 9), msecs(212)));
testST2(733_832, SysTime(DateTime(2010, 3, 1, 12, 2, 9), msecs(212)));
testST2(733_862, SysTime(DateTime(2010, 3, 31, 12, 2, 9), msecs(212)));
testST2(733_863, SysTime(DateTime(2010, 4, 1, 12, 2, 9), msecs(212)));
testST2(733_892, SysTime(DateTime(2010, 4, 30, 12, 2, 9), msecs(212)));
testST2(733_893, SysTime(DateTime(2010, 5, 1, 12, 2, 9), msecs(212)));
testST2(733_923, SysTime(DateTime(2010, 5, 31, 12, 2, 9), msecs(212)));
testST2(733_924, SysTime(DateTime(2010, 6, 1, 12, 2, 9), msecs(212)));
testST2(733_953, SysTime(DateTime(2010, 6, 30, 12, 2, 9), msecs(212)));
testST2(733_954, SysTime(DateTime(2010, 7, 1, 12, 2, 9), msecs(212)));
testST2(733_984, SysTime(DateTime(2010, 7, 31, 12, 2, 9), msecs(212)));
testST2(733_985, SysTime(DateTime(2010, 8, 1, 12, 2, 9), msecs(212)));
testST2(734_015, SysTime(DateTime(2010, 8, 31, 12, 2, 9), msecs(212)));
testST2(734_016, SysTime(DateTime(2010, 9, 1, 12, 2, 9), msecs(212)));
testST2(734_045, SysTime(DateTime(2010, 9, 30, 12, 2, 9), msecs(212)));
testST2(734_046, SysTime(DateTime(2010, 10, 1, 12, 2, 9), msecs(212)));
testST2(734_076, SysTime(DateTime(2010, 10, 31, 12, 2, 9), msecs(212)));
testST2(734_077, SysTime(DateTime(2010, 11, 1, 12, 2, 9), msecs(212)));
testST2(734_106, SysTime(DateTime(2010, 11, 30, 12, 2, 9), msecs(212)));
testST2(734_107, SysTime(DateTime(2010, 12, 1, 12, 2, 9), msecs(212)));
testST2(734_137, SysTime(DateTime(2010, 12, 31, 12, 2, 9), msecs(212)));
testST2(734_534, SysTime(DateTime(2012, 2, 1, 12, 2, 9), msecs(212)));
testST2(734_561, SysTime(DateTime(2012, 2, 28, 12, 2, 9), msecs(212)));
testST2(734_562, SysTime(DateTime(2012, 2, 29, 12, 2, 9), msecs(212)));
testST2(734_563, SysTime(DateTime(2012, 3, 1, 12, 2, 9), msecs(212)));
testST2(734_534, SysTime(DateTime(2012, 2, 1, 12, 2, 9), msecs(212)));
testST2(734_561, SysTime(DateTime(2012, 2, 28, 12, 2, 9), msecs(212)));
testST2(734_562, SysTime(DateTime(2012, 2, 29, 12, 2, 9), msecs(212)));
testST2(734_563, SysTime(DateTime(2012, 3, 1, 12, 2, 9), msecs(212)));
// Test B.C.
testST2(0, SysTime(DateTime(0, 12, 31, 12, 2, 9), msecs(212)));
testST2(-1, SysTime(DateTime(0, 12, 30, 12, 2, 9), msecs(212)));
testST2(-30, SysTime(DateTime(0, 12, 1, 12, 2, 9), msecs(212)));
testST2(-31, SysTime(DateTime(0, 11, 30, 12, 2, 9), msecs(212)));
testST2(-366, SysTime(DateTime(-1, 12, 31, 12, 2, 9), msecs(212)));
testST2(-367, SysTime(DateTime(-1, 12, 30, 12, 2, 9), msecs(212)));
testST2(-730, SysTime(DateTime(-1, 1, 1, 12, 2, 9), msecs(212)));
testST2(-731, SysTime(DateTime(-2, 12, 31, 12, 2, 9), msecs(212)));
testST2(-1095, SysTime(DateTime(-2, 1, 1, 12, 2, 9), msecs(212)));
testST2(-1096, SysTime(DateTime(-3, 12, 31, 12, 2, 9), msecs(212)));
testST2(-1460, SysTime(DateTime(-3, 1, 1, 12, 2, 9), msecs(212)));
testST2(-1461, SysTime(DateTime(-4, 12, 31, 12, 2, 9), msecs(212)));
testST2(-1826, SysTime(DateTime(-4, 1, 1, 12, 2, 9), msecs(212)));
testST2(-1827, SysTime(DateTime(-5, 12, 31, 12, 2, 9), msecs(212)));
testST2(-2191, SysTime(DateTime(-5, 1, 1, 12, 2, 9), msecs(212)));
testST2(-3652, SysTime(DateTime(-9, 1, 1, 12, 2, 9), msecs(212)));
testST2(-18_262, SysTime(DateTime(-49, 1, 1, 12, 2, 9), msecs(212)));
testST2(-18_627, SysTime(DateTime(-50, 1, 1, 12, 2, 9), msecs(212)));
testST2(-35_794, SysTime(DateTime(-97, 1, 1, 12, 2, 9), msecs(212)));
testST2(-36_160, SysTime(DateTime(-99, 12, 31, 12, 2, 9), msecs(212)));
testST2(-36_524, SysTime(DateTime(-99, 1, 1, 12, 2, 9), msecs(212)));
testST2(-36_889, SysTime(DateTime(-100, 1, 1, 12, 2, 9), msecs(212)));
testST2(-37_254, SysTime(DateTime(-101, 1, 1, 12, 2, 9), msecs(212)));
testST2(-38_715, SysTime(DateTime(-105, 1, 1, 12, 2, 9), msecs(212)));
testST2(-73_413, SysTime(DateTime(-200, 1, 1, 12, 2, 9), msecs(212)));
testST2(-73_778, SysTime(DateTime(-201, 1, 1, 12, 2, 9), msecs(212)));
testST2(-109_937, SysTime(DateTime(-300, 1, 1, 12, 2, 9), msecs(212)));
testST2(-110_302, SysTime(DateTime(-301, 1, 1, 12, 2, 9), msecs(212)));
testST2(-146_097, SysTime(DateTime(-400, 12, 31, 12, 2, 9), msecs(212)));
testST2(-146_462, SysTime(DateTime(-400, 1, 1, 12, 2, 9), msecs(212)));
testST2(-146_827, SysTime(DateTime(-401, 1, 1, 12, 2, 9), msecs(212)));
testST2(-182_621, SysTime(DateTime(-499, 1, 1, 12, 2, 9), msecs(212)));
testST2(-182_986, SysTime(DateTime(-500, 1, 1, 12, 2, 9), msecs(212)));
testST2(-183_351, SysTime(DateTime(-501, 1, 1, 12, 2, 9), msecs(212)));
testST2(-365_607, SysTime(DateTime(-1000, 1, 1, 12, 2, 9), msecs(212)));
testST2(-365_972, SysTime(DateTime(-1001, 1, 1, 12, 2, 9), msecs(212)));
testST2(-584_387, SysTime(DateTime(-1599, 1, 1, 12, 2, 9), msecs(212)));
testST2(-584_388, SysTime(DateTime(-1600, 12, 31, 12, 2, 9), msecs(212)));
testST2(-584_753, SysTime(DateTime(-1600, 1, 1, 12, 2, 9), msecs(212)));
testST2(-585_118, SysTime(DateTime(-1601, 1, 1, 12, 2, 9), msecs(212)));
testST2(-694_325, SysTime(DateTime(-1900, 1, 1, 12, 2, 9), msecs(212)));
testST2(-694_690, SysTime(DateTime(-1901, 1, 1, 12, 2, 9), msecs(212)));
testST2(-730_484, SysTime(DateTime(-1999, 1, 1, 12, 2, 9), msecs(212)));
testST2(-730_485, SysTime(DateTime(-2000, 12, 31, 12, 2, 9), msecs(212)));
testST2(-730_850, SysTime(DateTime(-2000, 1, 1, 12, 2, 9), msecs(212)));
testST2(-731_215, SysTime(DateTime(-2001, 1, 1, 12, 2, 9), msecs(212)));
testST2(-734_502, SysTime(DateTime(-2010, 1, 1, 12, 2, 9), msecs(212)));
testST2(-734_472, SysTime(DateTime(-2010, 1, 31, 12, 2, 9), msecs(212)));
testST2(-734_471, SysTime(DateTime(-2010, 2, 1, 12, 2, 9), msecs(212)));
testST2(-734_444, SysTime(DateTime(-2010, 2, 28, 12, 2, 9), msecs(212)));
testST2(-734_443, SysTime(DateTime(-2010, 3, 1, 12, 2, 9), msecs(212)));
testST2(-734_413, SysTime(DateTime(-2010, 3, 31, 12, 2, 9), msecs(212)));
testST2(-734_412, SysTime(DateTime(-2010, 4, 1, 12, 2, 9), msecs(212)));
testST2(-734_383, SysTime(DateTime(-2010, 4, 30, 12, 2, 9), msecs(212)));
testST2(-734_382, SysTime(DateTime(-2010, 5, 1, 12, 2, 9), msecs(212)));
testST2(-734_352, SysTime(DateTime(-2010, 5, 31, 12, 2, 9), msecs(212)));
testST2(-734_351, SysTime(DateTime(-2010, 6, 1, 12, 2, 9), msecs(212)));
testST2(-734_322, SysTime(DateTime(-2010, 6, 30, 12, 2, 9), msecs(212)));
testST2(-734_321, SysTime(DateTime(-2010, 7, 1, 12, 2, 9), msecs(212)));
testST2(-734_291, SysTime(DateTime(-2010, 7, 31, 12, 2, 9), msecs(212)));
testST2(-734_290, SysTime(DateTime(-2010, 8, 1, 12, 2, 9), msecs(212)));
testST2(-734_260, SysTime(DateTime(-2010, 8, 31, 12, 2, 9), msecs(212)));
testST2(-734_259, SysTime(DateTime(-2010, 9, 1, 12, 2, 9), msecs(212)));
testST2(-734_230, SysTime(DateTime(-2010, 9, 30, 12, 2, 9), msecs(212)));
testST2(-734_229, SysTime(DateTime(-2010, 10, 1, 12, 2, 9), msecs(212)));
testST2(-734_199, SysTime(DateTime(-2010, 10, 31, 12, 2, 9), msecs(212)));
testST2(-734_198, SysTime(DateTime(-2010, 11, 1, 12, 2, 9), msecs(212)));
testST2(-734_169, SysTime(DateTime(-2010, 11, 30, 12, 2, 9), msecs(212)));
testST2(-734_168, SysTime(DateTime(-2010, 12, 1, 12, 2, 9), msecs(212)));
testST2(-734_138, SysTime(DateTime(-2010, 12, 31, 12, 2, 9), msecs(212)));
testST2(-735_202, SysTime(DateTime(-2012, 2, 1, 12, 2, 9), msecs(212)));
testST2(-735_175, SysTime(DateTime(-2012, 2, 28, 12, 2, 9), msecs(212)));
testST2(-735_174, SysTime(DateTime(-2012, 2, 29, 12, 2, 9), msecs(212)));
testST2(-735_173, SysTime(DateTime(-2012, 3, 1, 12, 2, 9), msecs(212)));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
static assert(!__traits(compiles, cst.dayOfGregorianCal = 7));
//static assert(!__traits(compiles, ist.dayOfGregorianCal = 7));
}
/++
The ISO 8601 week of the year that this $(LREF SysTime) is in.
See_Also:
$(HTTP en.wikipedia.org/wiki/ISO_week_date, ISO Week Date).
+/
@property ubyte isoWeek() @safe const nothrow
{
return (cast(Date) this).isoWeek;
}
///
@safe unittest
{
import std.datetime.date : Date;
auto st = SysTime(Date(1999, 7, 6));
const cst = SysTime(Date(2010, 5, 1));
immutable ist = SysTime(Date(2015, 10, 10));
assert(st.isoWeek == 27);
assert(cst.isoWeek == 17);
assert(ist.isoWeek == 41);
}
/++
$(LREF SysTime) for the last day in the month that this Date is in.
The time portion of endOfMonth is always 23:59:59.9999999.
+/
@property SysTime endOfMonth() @safe const nothrow
{
immutable hnsecs = adjTime;
immutable days = getUnitsFromHNSecs!"days"(hnsecs);
auto date = Date(cast(int) days + 1).endOfMonth;
auto newDays = date.dayOfGregorianCal - 1;
long theTimeHNSecs;
if (newDays < 0)
{
theTimeHNSecs = -1;
++newDays;
}
else
theTimeHNSecs = convert!("days", "hnsecs")(1) - 1;
immutable newDaysHNSecs = convert!("days", "hnsecs")(newDays);
auto retval = SysTime(this._stdTime, this._timezone);
retval.adjTime = newDaysHNSecs + theTimeHNSecs;
return retval;
}
///
@safe unittest
{
import core.time : msecs, usecs, hnsecs;
import std.datetime.date : DateTime;
assert(SysTime(DateTime(1999, 1, 6, 0, 0, 0)).endOfMonth ==
SysTime(DateTime(1999, 1, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(DateTime(1999, 2, 7, 19, 30, 0), msecs(24)).endOfMonth ==
SysTime(DateTime(1999, 2, 28, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(DateTime(2000, 2, 7, 5, 12, 27), usecs(5203)).endOfMonth ==
SysTime(DateTime(2000, 2, 29, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(DateTime(2000, 6, 4, 12, 22, 9), hnsecs(12345)).endOfMonth ==
SysTime(DateTime(2000, 6, 30, 23, 59, 59), hnsecs(9_999_999)));
}
@safe unittest
{
// Test A.D.
assert(SysTime(Date(1999, 1, 1)).endOfMonth == SysTime(DateTime(1999, 1, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(1999, 2, 1)).endOfMonth == SysTime(DateTime(1999, 2, 28, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(2000, 2, 1)).endOfMonth == SysTime(DateTime(2000, 2, 29, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(1999, 3, 1)).endOfMonth == SysTime(DateTime(1999, 3, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(1999, 4, 1)).endOfMonth == SysTime(DateTime(1999, 4, 30, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(1999, 5, 1)).endOfMonth == SysTime(DateTime(1999, 5, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(1999, 6, 1)).endOfMonth == SysTime(DateTime(1999, 6, 30, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(1999, 7, 1)).endOfMonth == SysTime(DateTime(1999, 7, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(1999, 8, 1)).endOfMonth == SysTime(DateTime(1999, 8, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(1999, 9, 1)).endOfMonth == SysTime(DateTime(1999, 9, 30, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(1999, 10, 1)).endOfMonth == SysTime(DateTime(1999, 10, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(1999, 11, 1)).endOfMonth == SysTime(DateTime(1999, 11, 30, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(1999, 12, 1)).endOfMonth == SysTime(DateTime(1999, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
// Test B.C.
assert(SysTime(Date(-1999, 1, 1)).endOfMonth == SysTime(DateTime(-1999, 1, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(-1999, 2, 1)).endOfMonth == SysTime(DateTime(-1999, 2, 28, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(-2000, 2, 1)).endOfMonth == SysTime(DateTime(-2000, 2, 29, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(-1999, 3, 1)).endOfMonth == SysTime(DateTime(-1999, 3, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(-1999, 4, 1)).endOfMonth == SysTime(DateTime(-1999, 4, 30, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(-1999, 5, 1)).endOfMonth == SysTime(DateTime(-1999, 5, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(-1999, 6, 1)).endOfMonth == SysTime(DateTime(-1999, 6, 30, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(-1999, 7, 1)).endOfMonth == SysTime(DateTime(-1999, 7, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(-1999, 8, 1)).endOfMonth == SysTime(DateTime(-1999, 8, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(-1999, 9, 1)).endOfMonth == SysTime(DateTime(-1999, 9, 30, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(-1999, 10, 1)).endOfMonth ==
SysTime(DateTime(-1999, 10, 31, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(-1999, 11, 1)).endOfMonth ==
SysTime(DateTime(-1999, 11, 30, 23, 59, 59), hnsecs(9_999_999)));
assert(SysTime(Date(-1999, 12, 1)).endOfMonth ==
SysTime(DateTime(-1999, 12, 31, 23, 59, 59), hnsecs(9_999_999)));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.endOfMonth == SysTime(DateTime(1999, 7, 31, 23, 59, 59), hnsecs(9_999_999)));
//assert(ist.endOfMonth == SysTime(DateTime(1999, 7, 31, 23, 59, 59), hnsecs(9_999_999)));
}
/++
The last day in the month that this $(LREF SysTime) is in.
+/
@property ubyte daysInMonth() @safe const nothrow
{
return Date(dayOfGregorianCal).daysInMonth;
}
///
@safe unittest
{
import std.datetime.date : DateTime;
assert(SysTime(DateTime(1999, 1, 6, 0, 0, 0)).daysInMonth == 31);
assert(SysTime(DateTime(1999, 2, 7, 19, 30, 0)).daysInMonth == 28);
assert(SysTime(DateTime(2000, 2, 7, 5, 12, 27)).daysInMonth == 29);
assert(SysTime(DateTime(2000, 6, 4, 12, 22, 9)).daysInMonth == 30);
}
@safe unittest
{
// Test A.D.
assert(SysTime(DateTime(1999, 1, 1, 12, 1, 13)).daysInMonth == 31);
assert(SysTime(DateTime(1999, 2, 1, 17, 13, 12)).daysInMonth == 28);
assert(SysTime(DateTime(2000, 2, 1, 13, 2, 12)).daysInMonth == 29);
assert(SysTime(DateTime(1999, 3, 1, 12, 13, 12)).daysInMonth == 31);
assert(SysTime(DateTime(1999, 4, 1, 12, 6, 13)).daysInMonth == 30);
assert(SysTime(DateTime(1999, 5, 1, 15, 13, 12)).daysInMonth == 31);
assert(SysTime(DateTime(1999, 6, 1, 13, 7, 12)).daysInMonth == 30);
assert(SysTime(DateTime(1999, 7, 1, 12, 13, 17)).daysInMonth == 31);
assert(SysTime(DateTime(1999, 8, 1, 12, 3, 13)).daysInMonth == 31);
assert(SysTime(DateTime(1999, 9, 1, 12, 13, 12)).daysInMonth == 30);
assert(SysTime(DateTime(1999, 10, 1, 13, 19, 12)).daysInMonth == 31);
assert(SysTime(DateTime(1999, 11, 1, 12, 13, 17)).daysInMonth == 30);
assert(SysTime(DateTime(1999, 12, 1, 12, 52, 13)).daysInMonth == 31);
// Test B.C.
assert(SysTime(DateTime(-1999, 1, 1, 12, 1, 13)).daysInMonth == 31);
assert(SysTime(DateTime(-1999, 2, 1, 7, 13, 12)).daysInMonth == 28);
assert(SysTime(DateTime(-2000, 2, 1, 13, 2, 12)).daysInMonth == 29);
assert(SysTime(DateTime(-1999, 3, 1, 12, 13, 12)).daysInMonth == 31);
assert(SysTime(DateTime(-1999, 4, 1, 12, 6, 13)).daysInMonth == 30);
assert(SysTime(DateTime(-1999, 5, 1, 5, 13, 12)).daysInMonth == 31);
assert(SysTime(DateTime(-1999, 6, 1, 13, 7, 12)).daysInMonth == 30);
assert(SysTime(DateTime(-1999, 7, 1, 12, 13, 17)).daysInMonth == 31);
assert(SysTime(DateTime(-1999, 8, 1, 12, 3, 13)).daysInMonth == 31);
assert(SysTime(DateTime(-1999, 9, 1, 12, 13, 12)).daysInMonth == 30);
assert(SysTime(DateTime(-1999, 10, 1, 13, 19, 12)).daysInMonth == 31);
assert(SysTime(DateTime(-1999, 11, 1, 12, 13, 17)).daysInMonth == 30);
assert(SysTime(DateTime(-1999, 12, 1, 12, 52, 13)).daysInMonth == 31);
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.daysInMonth == 31);
//assert(ist.daysInMonth == 31);
}
/++
Whether the current year is a date in A.D.
+/
@property bool isAD() @safe const nothrow
{
return adjTime >= 0;
}
///
@safe unittest
{
import std.datetime.date : DateTime;
assert(SysTime(DateTime(1, 1, 1, 12, 7, 0)).isAD);
assert(SysTime(DateTime(2010, 12, 31, 0, 0, 0)).isAD);
assert(!SysTime(DateTime(0, 12, 31, 23, 59, 59)).isAD);
assert(!SysTime(DateTime(-2010, 1, 1, 2, 2, 2)).isAD);
}
@safe unittest
{
assert(SysTime(DateTime(2010, 7, 4, 12, 0, 9)).isAD);
assert(SysTime(DateTime(1, 1, 1, 0, 0, 0)).isAD);
assert(!SysTime(DateTime(0, 12, 31, 23, 59, 59)).isAD);
assert(!SysTime(DateTime(0, 1, 1, 23, 59, 59)).isAD);
assert(!SysTime(DateTime(-1, 1, 1, 23 ,59 ,59)).isAD);
assert(!SysTime(DateTime(-2010, 7, 4, 12, 2, 2)).isAD);
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.isAD);
//assert(ist.isAD);
}
/++
The $(HTTP en.wikipedia.org/wiki/Julian_day, Julian day)
for this $(LREF SysTime) at the given time. For example,
prior to noon, 1996-03-31 would be the Julian day number 2_450_173, so
this function returns 2_450_173, while from noon onward, the Julian
day number would be 2_450_174, so this function returns 2_450_174.
+/
@property long julianDay() @safe const nothrow
{
immutable jd = dayOfGregorianCal + 1_721_425;
return hour < 12 ? jd - 1 : jd;
}
@safe unittest
{
assert(SysTime(DateTime(-4713, 11, 24, 0, 0, 0)).julianDay == -1);
assert(SysTime(DateTime(-4713, 11, 24, 12, 0, 0)).julianDay == 0);
assert(SysTime(DateTime(0, 12, 31, 0, 0, 0)).julianDay == 1_721_424);
assert(SysTime(DateTime(0, 12, 31, 12, 0, 0)).julianDay == 1_721_425);
assert(SysTime(DateTime(1, 1, 1, 0, 0, 0)).julianDay == 1_721_425);
assert(SysTime(DateTime(1, 1, 1, 12, 0, 0)).julianDay == 1_721_426);
assert(SysTime(DateTime(1582, 10, 15, 0, 0, 0)).julianDay == 2_299_160);
assert(SysTime(DateTime(1582, 10, 15, 12, 0, 0)).julianDay == 2_299_161);
assert(SysTime(DateTime(1858, 11, 17, 0, 0, 0)).julianDay == 2_400_000);
assert(SysTime(DateTime(1858, 11, 17, 12, 0, 0)).julianDay == 2_400_001);
assert(SysTime(DateTime(1982, 1, 4, 0, 0, 0)).julianDay == 2_444_973);
assert(SysTime(DateTime(1982, 1, 4, 12, 0, 0)).julianDay == 2_444_974);
assert(SysTime(DateTime(1996, 3, 31, 0, 0, 0)).julianDay == 2_450_173);
assert(SysTime(DateTime(1996, 3, 31, 12, 0, 0)).julianDay == 2_450_174);
assert(SysTime(DateTime(2010, 8, 24, 0, 0, 0)).julianDay == 2_455_432);
assert(SysTime(DateTime(2010, 8, 24, 12, 0, 0)).julianDay == 2_455_433);
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.julianDay == 2_451_366);
//assert(ist.julianDay == 2_451_366);
}
/++
The modified $(HTTP en.wikipedia.org/wiki/Julian_day, Julian day) for
any time on this date (since, the modified Julian day changes at
midnight).
+/
@property long modJulianDay() @safe const nothrow
{
return dayOfGregorianCal + 1_721_425 - 2_400_001;
}
@safe unittest
{
assert(SysTime(DateTime(1858, 11, 17, 0, 0, 0)).modJulianDay == 0);
assert(SysTime(DateTime(1858, 11, 17, 12, 0, 0)).modJulianDay == 0);
assert(SysTime(DateTime(2010, 8, 24, 0, 0, 0)).modJulianDay == 55_432);
assert(SysTime(DateTime(2010, 8, 24, 12, 0, 0)).modJulianDay == 55_432);
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cst.modJulianDay == 51_365);
//assert(ist.modJulianDay == 51_365);
}
/++
Returns a $(REF Date,std,datetime,date) equivalent to this $(LREF SysTime).
+/
Date opCast(T)() @safe const nothrow
if (is(Unqual!T == Date))
{
return Date(dayOfGregorianCal);
}
@safe unittest
{
assert(cast(Date) SysTime(Date(1999, 7, 6)) == Date(1999, 7, 6));
assert(cast(Date) SysTime(Date(2000, 12, 31)) == Date(2000, 12, 31));
assert(cast(Date) SysTime(Date(2001, 1, 1)) == Date(2001, 1, 1));
assert(cast(Date) SysTime(DateTime(1999, 7, 6, 12, 10, 9)) == Date(1999, 7, 6));
assert(cast(Date) SysTime(DateTime(2000, 12, 31, 13, 11, 10)) == Date(2000, 12, 31));
assert(cast(Date) SysTime(DateTime(2001, 1, 1, 14, 12, 11)) == Date(2001, 1, 1));
assert(cast(Date) SysTime(Date(-1999, 7, 6)) == Date(-1999, 7, 6));
assert(cast(Date) SysTime(Date(-2000, 12, 31)) == Date(-2000, 12, 31));
assert(cast(Date) SysTime(Date(-2001, 1, 1)) == Date(-2001, 1, 1));
assert(cast(Date) SysTime(DateTime(-1999, 7, 6, 12, 10, 9)) == Date(-1999, 7, 6));
assert(cast(Date) SysTime(DateTime(-2000, 12, 31, 13, 11, 10)) == Date(-2000, 12, 31));
assert(cast(Date) SysTime(DateTime(-2001, 1, 1, 14, 12, 11)) == Date(-2001, 1, 1));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cast(Date) cst != Date.init);
//assert(cast(Date) ist != Date.init);
}
/++
Returns a $(REF DateTime,std,datetime,date) equivalent to this
$(LREF SysTime).
+/
DateTime opCast(T)() @safe const nothrow
if (is(Unqual!T == DateTime))
{
try
{
auto hnsecs = adjTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
immutable hour = splitUnitsFromHNSecs!"hours"(hnsecs);
immutable minute = splitUnitsFromHNSecs!"minutes"(hnsecs);
immutable second = getUnitsFromHNSecs!"seconds"(hnsecs);
return DateTime(Date(cast(int) days), TimeOfDay(cast(int) hour, cast(int) minute, cast(int) second));
}
catch (Exception e)
assert(0, "Either DateTime's constructor or TimeOfDay's constructor threw.");
}
@safe unittest
{
assert(cast(DateTime) SysTime(DateTime(1, 1, 6, 7, 12, 22)) == DateTime(1, 1, 6, 7, 12, 22));
assert(cast(DateTime) SysTime(DateTime(1, 1, 6, 7, 12, 22), msecs(22)) == DateTime(1, 1, 6, 7, 12, 22));
assert(cast(DateTime) SysTime(Date(1999, 7, 6)) == DateTime(1999, 7, 6, 0, 0, 0));
assert(cast(DateTime) SysTime(Date(2000, 12, 31)) == DateTime(2000, 12, 31, 0, 0, 0));
assert(cast(DateTime) SysTime(Date(2001, 1, 1)) == DateTime(2001, 1, 1, 0, 0, 0));
assert(cast(DateTime) SysTime(DateTime(1999, 7, 6, 12, 10, 9)) == DateTime(1999, 7, 6, 12, 10, 9));
assert(cast(DateTime) SysTime(DateTime(2000, 12, 31, 13, 11, 10)) == DateTime(2000, 12, 31, 13, 11, 10));
assert(cast(DateTime) SysTime(DateTime(2001, 1, 1, 14, 12, 11)) == DateTime(2001, 1, 1, 14, 12, 11));
assert(cast(DateTime) SysTime(DateTime(-1, 1, 6, 7, 12, 22)) == DateTime(-1, 1, 6, 7, 12, 22));
assert(cast(DateTime) SysTime(DateTime(-1, 1, 6, 7, 12, 22), msecs(22)) == DateTime(-1, 1, 6, 7, 12, 22));
assert(cast(DateTime) SysTime(Date(-1999, 7, 6)) == DateTime(-1999, 7, 6, 0, 0, 0));
assert(cast(DateTime) SysTime(Date(-2000, 12, 31)) == DateTime(-2000, 12, 31, 0, 0, 0));
assert(cast(DateTime) SysTime(Date(-2001, 1, 1)) == DateTime(-2001, 1, 1, 0, 0, 0));
assert(cast(DateTime) SysTime(DateTime(-1999, 7, 6, 12, 10, 9)) == DateTime(-1999, 7, 6, 12, 10, 9));
assert(cast(DateTime) SysTime(DateTime(-2000, 12, 31, 13, 11, 10)) == DateTime(-2000, 12, 31, 13, 11, 10));
assert(cast(DateTime) SysTime(DateTime(-2001, 1, 1, 14, 12, 11)) == DateTime(-2001, 1, 1, 14, 12, 11));
assert(cast(DateTime) SysTime(DateTime(2011, 1, 13, 8, 17, 2), msecs(296), LocalTime()) ==
DateTime(2011, 1, 13, 8, 17, 2));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cast(DateTime) cst != DateTime.init);
//assert(cast(DateTime) ist != DateTime.init);
}
/++
Returns a $(REF TimeOfDay,std,datetime,date) equivalent to this
$(LREF SysTime).
+/
TimeOfDay opCast(T)() @safe const nothrow
if (is(Unqual!T == TimeOfDay))
{
try
{
auto hnsecs = adjTime;
hnsecs = removeUnitsFromHNSecs!"days"(hnsecs);
if (hnsecs < 0)
hnsecs += convert!("hours", "hnsecs")(24);
immutable hour = splitUnitsFromHNSecs!"hours"(hnsecs);
immutable minute = splitUnitsFromHNSecs!"minutes"(hnsecs);
immutable second = getUnitsFromHNSecs!"seconds"(hnsecs);
return TimeOfDay(cast(int) hour, cast(int) minute, cast(int) second);
}
catch (Exception e)
assert(0, "TimeOfDay's constructor threw.");
}
@safe unittest
{
assert(cast(TimeOfDay) SysTime(Date(1999, 7, 6)) == TimeOfDay(0, 0, 0));
assert(cast(TimeOfDay) SysTime(Date(2000, 12, 31)) == TimeOfDay(0, 0, 0));
assert(cast(TimeOfDay) SysTime(Date(2001, 1, 1)) == TimeOfDay(0, 0, 0));
assert(cast(TimeOfDay) SysTime(DateTime(1999, 7, 6, 12, 10, 9)) == TimeOfDay(12, 10, 9));
assert(cast(TimeOfDay) SysTime(DateTime(2000, 12, 31, 13, 11, 10)) == TimeOfDay(13, 11, 10));
assert(cast(TimeOfDay) SysTime(DateTime(2001, 1, 1, 14, 12, 11)) == TimeOfDay(14, 12, 11));
assert(cast(TimeOfDay) SysTime(Date(-1999, 7, 6)) == TimeOfDay(0, 0, 0));
assert(cast(TimeOfDay) SysTime(Date(-2000, 12, 31)) == TimeOfDay(0, 0, 0));
assert(cast(TimeOfDay) SysTime(Date(-2001, 1, 1)) == TimeOfDay(0, 0, 0));
assert(cast(TimeOfDay) SysTime(DateTime(-1999, 7, 6, 12, 10, 9)) == TimeOfDay(12, 10, 9));
assert(cast(TimeOfDay) SysTime(DateTime(-2000, 12, 31, 13, 11, 10)) == TimeOfDay(13, 11, 10));
assert(cast(TimeOfDay) SysTime(DateTime(-2001, 1, 1, 14, 12, 11)) == TimeOfDay(14, 12, 11));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cast(TimeOfDay) cst != TimeOfDay.init);
//assert(cast(TimeOfDay) ist != TimeOfDay.init);
}
// Temporary hack until bug http://d.puremagic.com/issues/show_bug.cgi?id=4867 is fixed.
// This allows assignment from const(SysTime) to SysTime.
// It may be a good idea to keep it though, since casting from a type to itself
// should be allowed, and it doesn't work without this opCast() since opCast()
// has already been defined for other types.
SysTime opCast(T)() @safe const pure nothrow
if (is(Unqual!T == SysTime))
{
return SysTime(_stdTime, _timezone);
}
/++
Converts this $(LREF SysTime) to a string with the format
YYYYMMDDTHHMMSS.FFFFFFFTZ (where F is fractional seconds and TZ is time
zone).
Note that the number of digits in the fractional seconds varies with the
number of fractional seconds. It's a maximum of 7 (which would be
hnsecs), but only has as many as are necessary to hold the correct value
(so no trailing zeroes), and if there are no fractional seconds, then
there is no decimal point.
If this $(LREF SysTime)'s time zone is
$(REF LocalTime,std,datetime,timezone), then TZ is empty. If its time
zone is $(D UTC), then it is "Z". Otherwise, it is the offset from UTC
(e.g. +0100 or -0700). Note that the offset from UTC is $(I not) enough
to uniquely identify the time zone.
Time zone offsets will be in the form +HHMM or -HHMM.
$(RED Warning:
Previously, toISOString did the same as $(LREF toISOExtString) and
generated +HH:MM or -HH:MM for the time zone when it was not
$(REF LocalTime,std,datetime,timezone) or
$(REF UTC,std,datetime,timezone), which is not in conformance with
ISO 8601 for the non-extended string format. This has now been
fixed. However, for now, fromISOString will continue to accept the
extended format for the time zone so that any code which has been
writing out the result of toISOString to read in later will continue
to work. The current behavior will be kept until July 2019 at which
point, fromISOString will be fixed to be standards compliant.)
+/
string toISOString() @safe const nothrow
{
try
{
immutable adjustedTime = adjTime;
long hnsecs = adjustedTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
auto hour = splitUnitsFromHNSecs!"hours"(hnsecs);
auto minute = splitUnitsFromHNSecs!"minutes"(hnsecs);
auto second = splitUnitsFromHNSecs!"seconds"(hnsecs);
auto dateTime = DateTime(Date(cast(int) days), TimeOfDay(cast(int) hour,
cast(int) minute, cast(int) second));
auto fracSecStr = fracSecsToISOString(cast(int) hnsecs);
if (_timezone is LocalTime())
return dateTime.toISOString() ~ fracSecStr;
if (_timezone is UTC())
return dateTime.toISOString() ~ fracSecStr ~ "Z";
immutable utcOffset = dur!"hnsecs"(adjustedTime - stdTime);
return format("%s%s%s",
dateTime.toISOString(),
fracSecStr,
SimpleTimeZone.toISOExtString(utcOffset));
}
catch (Exception e)
assert(0, "format() threw.");
}
///
@safe unittest
{
import core.time : msecs, hnsecs;
import std.datetime.date : DateTime;
assert(SysTime(DateTime(2010, 7, 4, 7, 6, 12)).toISOString() ==
"20100704T070612");
assert(SysTime(DateTime(1998, 12, 25, 2, 15, 0), msecs(24)).toISOString() ==
"19981225T021500.024");
assert(SysTime(DateTime(0, 1, 5, 23, 9, 59)).toISOString() ==
"00000105T230959");
assert(SysTime(DateTime(-4, 1, 5, 0, 0, 2), hnsecs(520_920)).toISOString() ==
"-00040105T000002.052092");
}
@safe unittest
{
// Test A.D.
assert(SysTime(DateTime.init, UTC()).toISOString() == "00010101T000000Z");
assert(SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1), UTC()).toISOString() == "00010101T000000.0000001Z");
assert(SysTime(DateTime(9, 12, 4, 0, 0, 0)).toISOString() == "00091204T000000");
assert(SysTime(DateTime(99, 12, 4, 5, 6, 12)).toISOString() == "00991204T050612");
assert(SysTime(DateTime(999, 12, 4, 13, 44, 59)).toISOString() == "09991204T134459");
assert(SysTime(DateTime(9999, 7, 4, 23, 59, 59)).toISOString() == "99990704T235959");
assert(SysTime(DateTime(10000, 10, 20, 1, 1, 1)).toISOString() == "+100001020T010101");
assert(SysTime(DateTime(9, 12, 4, 0, 0, 0), msecs(42)).toISOString() == "00091204T000000.042");
assert(SysTime(DateTime(99, 12, 4, 5, 6, 12), msecs(100)).toISOString() == "00991204T050612.1");
assert(SysTime(DateTime(999, 12, 4, 13, 44, 59), usecs(45020)).toISOString() == "09991204T134459.04502");
assert(SysTime(DateTime(9999, 7, 4, 23, 59, 59), hnsecs(12)).toISOString() == "99990704T235959.0000012");
assert(SysTime(DateTime(10000, 10, 20, 1, 1, 1), hnsecs(507890)).toISOString() == "+100001020T010101.050789");
assert(SysTime(DateTime(2012, 12, 21, 12, 12, 12),
new immutable SimpleTimeZone(dur!"minutes"(-360))).toISOString() ==
"20121221T121212-06:00");
assert(SysTime(DateTime(2012, 12, 21, 12, 12, 12),
new immutable SimpleTimeZone(dur!"minutes"(420))).toISOString() ==
"20121221T121212+07:00");
// Test B.C.
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999), UTC()).toISOString() ==
"00001231T235959.9999999Z");
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(1), UTC()).toISOString() == "00001231T235959.0000001Z");
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59), UTC()).toISOString() == "00001231T235959Z");
assert(SysTime(DateTime(0, 12, 4, 0, 12, 4)).toISOString() == "00001204T001204");
assert(SysTime(DateTime(-9, 12, 4, 0, 0, 0)).toISOString() == "-00091204T000000");
assert(SysTime(DateTime(-99, 12, 4, 5, 6, 12)).toISOString() == "-00991204T050612");
assert(SysTime(DateTime(-999, 12, 4, 13, 44, 59)).toISOString() == "-09991204T134459");
assert(SysTime(DateTime(-9999, 7, 4, 23, 59, 59)).toISOString() == "-99990704T235959");
assert(SysTime(DateTime(-10000, 10, 20, 1, 1, 1)).toISOString() == "-100001020T010101");
assert(SysTime(DateTime(0, 12, 4, 0, 0, 0), msecs(7)).toISOString() == "00001204T000000.007");
assert(SysTime(DateTime(-9, 12, 4, 0, 0, 0), msecs(42)).toISOString() == "-00091204T000000.042");
assert(SysTime(DateTime(-99, 12, 4, 5, 6, 12), msecs(100)).toISOString() == "-00991204T050612.1");
assert(SysTime(DateTime(-999, 12, 4, 13, 44, 59), usecs(45020)).toISOString() == "-09991204T134459.04502");
assert(SysTime(DateTime(-9999, 7, 4, 23, 59, 59), hnsecs(12)).toISOString() == "-99990704T235959.0000012");
assert(SysTime(DateTime(-10000, 10, 20, 1, 1, 1), hnsecs(507890)).toISOString() == "-100001020T010101.050789");
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cast(TimeOfDay) cst != TimeOfDay.init);
//assert(cast(TimeOfDay) ist != TimeOfDay.init);
}
/++
Converts this $(LREF SysTime) to a string with the format
YYYY-MM-DDTHH:MM:SS.FFFFFFFTZ (where F is fractional seconds and TZ
is the time zone).
Note that the number of digits in the fractional seconds varies with the
number of fractional seconds. It's a maximum of 7 (which would be
hnsecs), but only has as many as are necessary to hold the correct value
(so no trailing zeroes), and if there are no fractional seconds, then
there is no decimal point.
If this $(LREF SysTime)'s time zone is
$(REF LocalTime,std,datetime,timezone), then TZ is empty. If its time
zone is $(D UTC), then it is "Z". Otherwise, it is the offset from UTC
(e.g. +01:00 or -07:00). Note that the offset from UTC is $(I not)
enough to uniquely identify the time zone.
Time zone offsets will be in the form +HH:MM or -HH:MM.
+/
string toISOExtString() @safe const nothrow
{
try
{
immutable adjustedTime = adjTime;
long hnsecs = adjustedTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
auto hour = splitUnitsFromHNSecs!"hours"(hnsecs);
auto minute = splitUnitsFromHNSecs!"minutes"(hnsecs);
auto second = splitUnitsFromHNSecs!"seconds"(hnsecs);
auto dateTime = DateTime(Date(cast(int) days), TimeOfDay(cast(int) hour,
cast(int) minute, cast(int) second));
auto fracSecStr = fracSecsToISOString(cast(int) hnsecs);
if (_timezone is LocalTime())
return dateTime.toISOExtString() ~ fracSecStr;
if (_timezone is UTC())
return dateTime.toISOExtString() ~ fracSecStr ~ "Z";
immutable utcOffset = dur!"hnsecs"(adjustedTime - stdTime);
return format("%s%s%s",
dateTime.toISOExtString(),
fracSecStr,
SimpleTimeZone.toISOExtString(utcOffset));
}
catch (Exception e)
assert(0, "format() threw.");
}
///
@safe unittest
{
import core.time : msecs, hnsecs;
import std.datetime.date : DateTime;
assert(SysTime(DateTime(2010, 7, 4, 7, 6, 12)).toISOExtString() ==
"2010-07-04T07:06:12");
assert(SysTime(DateTime(1998, 12, 25, 2, 15, 0), msecs(24)).toISOExtString() ==
"1998-12-25T02:15:00.024");
assert(SysTime(DateTime(0, 1, 5, 23, 9, 59)).toISOExtString() ==
"0000-01-05T23:09:59");
assert(SysTime(DateTime(-4, 1, 5, 0, 0, 2), hnsecs(520_920)).toISOExtString() ==
"-0004-01-05T00:00:02.052092");
}
@safe unittest
{
// Test A.D.
assert(SysTime(DateTime.init, UTC()).toISOExtString() == "0001-01-01T00:00:00Z");
assert(SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1), UTC()).toISOExtString() ==
"0001-01-01T00:00:00.0000001Z");
assert(SysTime(DateTime(9, 12, 4, 0, 0, 0)).toISOExtString() == "0009-12-04T00:00:00");
assert(SysTime(DateTime(99, 12, 4, 5, 6, 12)).toISOExtString() == "0099-12-04T05:06:12");
assert(SysTime(DateTime(999, 12, 4, 13, 44, 59)).toISOExtString() == "0999-12-04T13:44:59");
assert(SysTime(DateTime(9999, 7, 4, 23, 59, 59)).toISOExtString() == "9999-07-04T23:59:59");
assert(SysTime(DateTime(10000, 10, 20, 1, 1, 1)).toISOExtString() == "+10000-10-20T01:01:01");
assert(SysTime(DateTime(9, 12, 4, 0, 0, 0), msecs(42)).toISOExtString() == "0009-12-04T00:00:00.042");
assert(SysTime(DateTime(99, 12, 4, 5, 6, 12), msecs(100)).toISOExtString() == "0099-12-04T05:06:12.1");
assert(SysTime(DateTime(999, 12, 4, 13, 44, 59), usecs(45020)).toISOExtString() == "0999-12-04T13:44:59.04502");
assert(SysTime(DateTime(9999, 7, 4, 23, 59, 59), hnsecs(12)).toISOExtString() == "9999-07-04T23:59:59.0000012");
assert(SysTime(DateTime(10000, 10, 20, 1, 1, 1), hnsecs(507890)).toISOExtString() ==
"+10000-10-20T01:01:01.050789");
assert(SysTime(DateTime(2012, 12, 21, 12, 12, 12),
new immutable SimpleTimeZone(dur!"minutes"(-360))).toISOExtString() ==
"2012-12-21T12:12:12-06:00");
assert(SysTime(DateTime(2012, 12, 21, 12, 12, 12),
new immutable SimpleTimeZone(dur!"minutes"(420))).toISOExtString() ==
"2012-12-21T12:12:12+07:00");
// Test B.C.
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999), UTC()).toISOExtString() ==
"0000-12-31T23:59:59.9999999Z");
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(1), UTC()).toISOExtString() ==
"0000-12-31T23:59:59.0000001Z");
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59), UTC()).toISOExtString() == "0000-12-31T23:59:59Z");
assert(SysTime(DateTime(0, 12, 4, 0, 12, 4)).toISOExtString() == "0000-12-04T00:12:04");
assert(SysTime(DateTime(-9, 12, 4, 0, 0, 0)).toISOExtString() == "-0009-12-04T00:00:00");
assert(SysTime(DateTime(-99, 12, 4, 5, 6, 12)).toISOExtString() == "-0099-12-04T05:06:12");
assert(SysTime(DateTime(-999, 12, 4, 13, 44, 59)).toISOExtString() == "-0999-12-04T13:44:59");
assert(SysTime(DateTime(-9999, 7, 4, 23, 59, 59)).toISOExtString() == "-9999-07-04T23:59:59");
assert(SysTime(DateTime(-10000, 10, 20, 1, 1, 1)).toISOExtString() == "-10000-10-20T01:01:01");
assert(SysTime(DateTime(0, 12, 4, 0, 0, 0), msecs(7)).toISOExtString() == "0000-12-04T00:00:00.007");
assert(SysTime(DateTime(-9, 12, 4, 0, 0, 0), msecs(42)).toISOExtString() == "-0009-12-04T00:00:00.042");
assert(SysTime(DateTime(-99, 12, 4, 5, 6, 12), msecs(100)).toISOExtString() == "-0099-12-04T05:06:12.1");
assert(SysTime(DateTime(-999, 12, 4, 13, 44, 59), usecs(45020)).toISOExtString() ==
"-0999-12-04T13:44:59.04502");
assert(SysTime(DateTime(-9999, 7, 4, 23, 59, 59), hnsecs(12)).toISOExtString() ==
"-9999-07-04T23:59:59.0000012");
assert(SysTime(DateTime(-10000, 10, 20, 1, 1, 1), hnsecs(507890)).toISOExtString() ==
"-10000-10-20T01:01:01.050789");
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cast(TimeOfDay) cst != TimeOfDay.init);
//assert(cast(TimeOfDay) ist != TimeOfDay.init);
}
/++
Converts this $(LREF SysTime) to a string with the format
YYYY-Mon-DD HH:MM:SS.FFFFFFFTZ (where F is fractional seconds and TZ
is the time zone).
Note that the number of digits in the fractional seconds varies with the
number of fractional seconds. It's a maximum of 7 (which would be
hnsecs), but only has as many as are necessary to hold the correct value
(so no trailing zeroes), and if there are no fractional seconds, then
there is no decimal point.
If this $(LREF SysTime)'s time zone is
$(REF LocalTime,std,datetime,timezone), then TZ is empty. If its time
zone is $(D UTC), then it is "Z". Otherwise, it is the offset from UTC
(e.g. +01:00 or -07:00). Note that the offset from UTC is $(I not)
enough to uniquely identify the time zone.
Time zone offsets will be in the form +HH:MM or -HH:MM.
+/
string toSimpleString() @safe const nothrow
{
try
{
immutable adjustedTime = adjTime;
long hnsecs = adjustedTime;
auto days = splitUnitsFromHNSecs!"days"(hnsecs) + 1;
if (hnsecs < 0)
{
hnsecs += convert!("hours", "hnsecs")(24);
--days;
}
auto hour = splitUnitsFromHNSecs!"hours"(hnsecs);
auto minute = splitUnitsFromHNSecs!"minutes"(hnsecs);
auto second = splitUnitsFromHNSecs!"seconds"(hnsecs);
auto dateTime = DateTime(Date(cast(int) days), TimeOfDay(cast(int) hour,
cast(int) minute, cast(int) second));
auto fracSecStr = fracSecsToISOString(cast(int) hnsecs);
if (_timezone is LocalTime())
return dateTime.toSimpleString() ~ fracSecStr;
if (_timezone is UTC())
return dateTime.toSimpleString() ~ fracSecStr ~ "Z";
immutable utcOffset = dur!"hnsecs"(adjustedTime - stdTime);
return format("%s%s%s",
dateTime.toSimpleString(),
fracSecStr,
SimpleTimeZone.toISOExtString(utcOffset));
}
catch (Exception e)
assert(0, "format() threw.");
}
///
@safe unittest
{
import core.time : msecs, hnsecs;
import std.datetime.date : DateTime;
assert(SysTime(DateTime(2010, 7, 4, 7, 6, 12)).toSimpleString() ==
"2010-Jul-04 07:06:12");
assert(SysTime(DateTime(1998, 12, 25, 2, 15, 0), msecs(24)).toSimpleString() ==
"1998-Dec-25 02:15:00.024");
assert(SysTime(DateTime(0, 1, 5, 23, 9, 59)).toSimpleString() ==
"0000-Jan-05 23:09:59");
assert(SysTime(DateTime(-4, 1, 5, 0, 0, 2), hnsecs(520_920)).toSimpleString() ==
"-0004-Jan-05 00:00:02.052092");
}
@safe unittest
{
// Test A.D.
assert(SysTime(DateTime.init, UTC()).toString() == "0001-Jan-01 00:00:00Z");
assert(SysTime(DateTime(1, 1, 1, 0, 0, 0), hnsecs(1), UTC()).toString() == "0001-Jan-01 00:00:00.0000001Z");
assert(SysTime(DateTime(9, 12, 4, 0, 0, 0)).toSimpleString() == "0009-Dec-04 00:00:00");
assert(SysTime(DateTime(99, 12, 4, 5, 6, 12)).toSimpleString() == "0099-Dec-04 05:06:12");
assert(SysTime(DateTime(999, 12, 4, 13, 44, 59)).toSimpleString() == "0999-Dec-04 13:44:59");
assert(SysTime(DateTime(9999, 7, 4, 23, 59, 59)).toSimpleString() == "9999-Jul-04 23:59:59");
assert(SysTime(DateTime(10000, 10, 20, 1, 1, 1)).toSimpleString() == "+10000-Oct-20 01:01:01");
assert(SysTime(DateTime(9, 12, 4, 0, 0, 0), msecs(42)).toSimpleString() == "0009-Dec-04 00:00:00.042");
assert(SysTime(DateTime(99, 12, 4, 5, 6, 12), msecs(100)).toSimpleString() == "0099-Dec-04 05:06:12.1");
assert(SysTime(DateTime(999, 12, 4, 13, 44, 59), usecs(45020)).toSimpleString() ==
"0999-Dec-04 13:44:59.04502");
assert(SysTime(DateTime(9999, 7, 4, 23, 59, 59), hnsecs(12)).toSimpleString() ==
"9999-Jul-04 23:59:59.0000012");
assert(SysTime(DateTime(10000, 10, 20, 1, 1, 1), hnsecs(507890)).toSimpleString() ==
"+10000-Oct-20 01:01:01.050789");
assert(SysTime(DateTime(2012, 12, 21, 12, 12, 12),
new immutable SimpleTimeZone(dur!"minutes"(-360))).toSimpleString() ==
"2012-Dec-21 12:12:12-06:00");
assert(SysTime(DateTime(2012, 12, 21, 12, 12, 12),
new immutable SimpleTimeZone(dur!"minutes"(420))).toSimpleString() ==
"2012-Dec-21 12:12:12+07:00");
// Test B.C.
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(9_999_999), UTC()).toSimpleString() ==
"0000-Dec-31 23:59:59.9999999Z");
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59), hnsecs(1), UTC()).toSimpleString() ==
"0000-Dec-31 23:59:59.0000001Z");
assert(SysTime(DateTime(0, 12, 31, 23, 59, 59), UTC()).toSimpleString() == "0000-Dec-31 23:59:59Z");
assert(SysTime(DateTime(0, 12, 4, 0, 12, 4)).toSimpleString() == "0000-Dec-04 00:12:04");
assert(SysTime(DateTime(-9, 12, 4, 0, 0, 0)).toSimpleString() == "-0009-Dec-04 00:00:00");
assert(SysTime(DateTime(-99, 12, 4, 5, 6, 12)).toSimpleString() == "-0099-Dec-04 05:06:12");
assert(SysTime(DateTime(-999, 12, 4, 13, 44, 59)).toSimpleString() == "-0999-Dec-04 13:44:59");
assert(SysTime(DateTime(-9999, 7, 4, 23, 59, 59)).toSimpleString() == "-9999-Jul-04 23:59:59");
assert(SysTime(DateTime(-10000, 10, 20, 1, 1, 1)).toSimpleString() == "-10000-Oct-20 01:01:01");
assert(SysTime(DateTime(0, 12, 4, 0, 0, 0), msecs(7)).toSimpleString() == "0000-Dec-04 00:00:00.007");
assert(SysTime(DateTime(-9, 12, 4, 0, 0, 0), msecs(42)).toSimpleString() == "-0009-Dec-04 00:00:00.042");
assert(SysTime(DateTime(-99, 12, 4, 5, 6, 12), msecs(100)).toSimpleString() == "-0099-Dec-04 05:06:12.1");
assert(SysTime(DateTime(-999, 12, 4, 13, 44, 59), usecs(45020)).toSimpleString() ==
"-0999-Dec-04 13:44:59.04502");
assert(SysTime(DateTime(-9999, 7, 4, 23, 59, 59), hnsecs(12)).toSimpleString() ==
"-9999-Jul-04 23:59:59.0000012");
assert(SysTime(DateTime(-10000, 10, 20, 1, 1, 1), hnsecs(507890)).toSimpleString() ==
"-10000-Oct-20 01:01:01.050789");
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(cast(TimeOfDay) cst != TimeOfDay.init);
//assert(cast(TimeOfDay) ist != TimeOfDay.init);
}
/++
Converts this $(LREF SysTime) to a string.
This function exists to make it easy to convert a $(LREF SysTime) to a
string for code that does not care what the exact format is - just that
it presents the information in a clear manner. It also makes it easy to
simply convert a $(LREF SysTime) to a string when using functions such
as `to!string`, `format`, or `writeln` which use toString to convert
user-defined types. So, it is unlikely that much code will call
toString directly.
The format of the string is purposefully unspecified, and code that
cares about the format of the string should use `toISOString`,
`toISOExtString`, `toSimpleString`, or some other custom formatting
function that explicitly generates the format that the code needs. The
reason is that the code is then clear about what format it's using,
making it less error-prone to maintain the code and interact with other
software that consumes the generated strings. It's for this same reason
that $(LREF SysTime) has no `fromString` function, whereas it does have
`fromISOString`, `fromISOExtString`, and `fromSimpleString`.
The format returned by toString may or may not change in the future.
+/
string toString() @safe const nothrow
{
return toSimpleString();
}
@safe unittest
{
auto st = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
const cst = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
//immutable ist = SysTime(DateTime(1999, 7, 6, 12, 30, 33));
assert(st.toString());
assert(cst.toString());
//assert(ist.toString());
}
/++
Creates a $(LREF SysTime) from a string with the format
YYYYMMDDTHHMMSS.FFFFFFFTZ (where F is fractional seconds is the time
zone). Whitespace is stripped from the given string.
The exact format is exactly as described in $(D toISOString) except that
trailing zeroes are permitted - including having fractional seconds with
all zeroes. However, a decimal point with nothing following it is
invalid. Also, while $(LREF toISOString) will never generate a string
with more than 7 digits in the fractional seconds (because that's the
limit with hecto-nanosecond precision), it will allow more than 7 digits
in order to read strings from other sources that have higher precision
(however, any digits beyond 7 will be truncated).
If there is no time zone in the string, then
$(REF LocalTime,std,datetime,timezone) is used. If the time zone is "Z",
then $(D UTC) is used. Otherwise, a
$(REF SimpleTimeZone,std,datetime,timezone) which corresponds to the
given offset from UTC is used. To get the returned $(LREF SysTime) to be
a particular time zone, pass in that time zone and the $(LREF SysTime)
to be returned will be converted to that time zone (though it will still
be read in as whatever time zone is in its string).
The accepted formats for time zone offsets are +HH, -HH, +HHMM, and
-HHMM.
$(RED Warning:
Previously, $(LREF toISOString) did the same as
$(LREF toISOExtString) and generated +HH:MM or -HH:MM for the time
zone when it was not $(REF LocalTime,std,datetime,timezone) or
$(REF UTC,std,datetime,timezone), which is not in conformance with
ISO 8601 for the non-extended string format. This has now been
fixed. However, for now, fromISOString will continue to accept the
extended format for the time zone so that any code which has been
writing out the result of toISOString to read in later will continue
to work. The current behavior will be kept until July 2019 at which
point, fromISOString will be fixed to be standards compliant.)
Params:
isoString = A string formatted in the ISO format for dates and times.
tz = The time zone to convert the given time to (no
conversion occurs if null).
Throws:
$(REF DateTimeException,std,datetime,date) if the given string is
not in the ISO format or if the resulting $(LREF SysTime) would not
be valid.
+/
static SysTime fromISOString(S)(in S isoString, immutable TimeZone tz = null) @safe
if (isSomeString!S)
{
import std.algorithm.searching : startsWith, find;
import std.conv : to;
import std.string : strip;
auto dstr = to!dstring(strip(isoString));
immutable skipFirst = dstr.startsWith('+', '-') != 0;
auto found = (skipFirst ? dstr[1..$] : dstr).find('.', 'Z', '+', '-');
auto dateTimeStr = dstr[0 .. $ - found[0].length];
dstring fracSecStr;
dstring zoneStr;
if (found[1] != 0)
{
if (found[1] == 1)
{
auto foundTZ = found[0].find('Z', '+', '-');
if (foundTZ[1] != 0)
{
fracSecStr = found[0][0 .. $ - foundTZ[0].length];
zoneStr = foundTZ[0];
}
else
fracSecStr = found[0];
}
else
zoneStr = found[0];
}
try
{
auto dateTime = DateTime.fromISOString(dateTimeStr);
auto fracSec = fracSecsFromISOString(fracSecStr);
Rebindable!(immutable TimeZone) parsedZone;
if (zoneStr.empty)
parsedZone = LocalTime();
else if (zoneStr == "Z")
parsedZone = UTC();
else
{
try
parsedZone = SimpleTimeZone.fromISOString(zoneStr);
catch (DateTimeException dte)
parsedZone = SimpleTimeZone.fromISOExtString(zoneStr);
}
auto retval = SysTime(dateTime, fracSec, parsedZone);
if (tz !is null)
retval.timezone = tz;
return retval;
}
catch (DateTimeException dte)
throw new DateTimeException(format("Invalid ISO String: %s", isoString));
}
///
@safe unittest
{
import core.time : hours, msecs, usecs, hnsecs;
import std.datetime.date : DateTime;
import std.datetime.timezone : SimpleTimeZone, UTC;
assert(SysTime.fromISOString("20100704T070612") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12)));
assert(SysTime.fromISOString("19981225T021500.007") ==
SysTime(DateTime(1998, 12, 25, 2, 15, 0), msecs(7)));
assert(SysTime.fromISOString("00000105T230959.00002") ==
SysTime(DateTime(0, 1, 5, 23, 9, 59), usecs(20)));
assert(SysTime.fromISOString("20130207T043937.000050392") ==
SysTime(DateTime(2013, 2, 7, 4, 39, 37), hnsecs(503)));
assert(SysTime.fromISOString("-00040105T000002") ==
SysTime(DateTime(-4, 1, 5, 0, 0, 2)));
assert(SysTime.fromISOString(" 20100704T070612 ") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12)));
assert(SysTime.fromISOString("20100704T070612Z") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12), UTC()));
assert(SysTime.fromISOString("20100704T070612-0800") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12),
new immutable SimpleTimeZone(hours(-8))));
assert(SysTime.fromISOString("20100704T070612+0800") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12),
new immutable SimpleTimeZone(hours(8))));
}
@safe unittest
{
foreach (str; ["", "20100704000000", "20100704 000000", "20100704t000000",
"20100704T000000.", "20100704T000000.A", "20100704T000000.Z",
"20100704T000000.0000000A", "20100704T000000.00000000A",
"20100704T000000+", "20100704T000000-", "20100704T000000:",
"20100704T000000-:", "20100704T000000+:", "20100704T000000-1:",
"20100704T000000+1:", "20100704T000000+1:0",
"20100704T000000-12.00", "20100704T000000+12.00",
"20100704T000000-8", "20100704T000000+8",
"20100704T000000-800", "20100704T000000+800",
"20100704T000000-080", "20100704T000000+080",
"20100704T000000-2400", "20100704T000000+2400",
"20100704T000000-1260", "20100704T000000+1260",
"20100704T000000.0-8", "20100704T000000.0+8",
"20100704T000000.0-800", "20100704T000000.0+800",
"20100704T000000.0-080", "20100704T000000.0+080",
"20100704T000000.0-2400", "20100704T000000.0+2400",
"20100704T000000.0-1260", "20100704T000000.0+1260",
"20100704T000000-8:00", "20100704T000000+8:00",
"20100704T000000-08:0", "20100704T000000+08:0",
"20100704T000000-24:00", "20100704T000000+24:00",
"20100704T000000-12:60", "20100704T000000+12:60",
"20100704T000000.0-8:00", "20100704T000000.0+8:00",
"20100704T000000.0-08:0", "20100704T000000.0+08:0",
"20100704T000000.0-24:00", "20100704T000000.0+24:00",
"20100704T000000.0-12:60", "20100704T000000.0+12:60",
"2010-07-0400:00:00", "2010-07-04 00:00:00",
"2010-07-04t00:00:00", "2010-07-04T00:00:00.",
"2010-Jul-0400:00:00", "2010-Jul-04 00:00:00", "2010-Jul-04t00:00:00",
"2010-Jul-04T00:00:00", "2010-Jul-04 00:00:00.",
"2010-12-22T172201", "2010-Dec-22 17:22:01"])
{
assertThrown!DateTimeException(SysTime.fromISOString(str), format("[%s]", str));
}
static void test(string str, SysTime st, size_t line = __LINE__)
{
if (SysTime.fromISOString(str) != st)
throw new AssertError("unittest failure", __FILE__, line);
}
test("20101222T172201", SysTime(DateTime(2010, 12, 22, 17, 22, 01)));
test("19990706T123033", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test("-19990706T123033", SysTime(DateTime(-1999, 7, 6, 12, 30, 33)));
test("+019990706T123033", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test("19990706T123033 ", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test(" 19990706T123033", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test(" 19990706T123033 ", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test("19070707T121212.0", SysTime(DateTime(1907, 07, 07, 12, 12, 12)));
test("19070707T121212.0000000", SysTime(DateTime(1907, 07, 07, 12, 12, 12)));
test("19070707T121212.0000001", SysTime(DateTime(1907, 07, 07, 12, 12, 12), hnsecs(1)));
test("20100704T000000.00000000", SysTime(Date(2010, 07, 04)));
test("20100704T000000.00000009", SysTime(Date(2010, 07, 04)));
test("20100704T000000.00000019", SysTime(DateTime(2010, 07, 04), hnsecs(1)));
test("19070707T121212.000001", SysTime(DateTime(1907, 07, 07, 12, 12, 12), usecs(1)));
test("19070707T121212.0000010", SysTime(DateTime(1907, 07, 07, 12, 12, 12), usecs(1)));
test("19070707T121212.001", SysTime(DateTime(1907, 07, 07, 12, 12, 12), msecs(1)));
test("19070707T121212.0010000", SysTime(DateTime(1907, 07, 07, 12, 12, 12), msecs(1)));
auto west60 = new immutable SimpleTimeZone(hours(-1));
auto west90 = new immutable SimpleTimeZone(minutes(-90));
auto west480 = new immutable SimpleTimeZone(hours(-8));
auto east60 = new immutable SimpleTimeZone(hours(1));
auto east90 = new immutable SimpleTimeZone(minutes(90));
auto east480 = new immutable SimpleTimeZone(hours(8));
test("20101222T172201Z", SysTime(DateTime(2010, 12, 22, 17, 22, 01), UTC()));
test("20101222T172201-0100", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west60));
test("20101222T172201-01", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west60));
test("20101222T172201-0130", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west90));
test("20101222T172201-0800", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west480));
test("20101222T172201+0100", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east60));
test("20101222T172201+01", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east60));
test("20101222T172201+0130", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east90));
test("20101222T172201+0800", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east480));
test("20101103T065106.57159Z", SysTime(DateTime(2010, 11, 3, 6, 51, 6), hnsecs(5715900), UTC()));
test("20101222T172201.23412Z", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(2_341_200), UTC()));
test("20101222T172201.23112-0100", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(2_311_200), west60));
test("20101222T172201.45-01", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(4_500_000), west60));
test("20101222T172201.1-0130", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(1_000_000), west90));
test("20101222T172201.55-0800", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(5_500_000), west480));
test("20101222T172201.1234567+0100", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(1_234_567), east60));
test("20101222T172201.0+01", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east60));
test("20101222T172201.0000000+0130", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east90));
test("20101222T172201.45+0800", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(4_500_000), east480));
// @@@DEPRECATED_2019-07@@@
// This isn't deprecated per se, but that text will make it so that it
// pops up when deprecations are moved along around July 2019. At that
// time, we will update fromISOString so that it is conformant with ISO
// 8601, and it will no longer accept ISO extended time zones (it does
// currently because of issue #15654 - toISOString used to incorrectly
// use the ISO extended time zone format). These tests will then start
// failing will need to be updated accordingly. Also, the notes about
// this issue in toISOString and fromISOString's documentation will need
// to be removed.
test("20101222T172201-01:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west60));
test("20101222T172201-01:30", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west90));
test("20101222T172201-08:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west480));
test("20101222T172201+01:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east60));
test("20101222T172201+01:30", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east90));
test("20101222T172201+08:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east480));
test("20101222T172201.23112-01:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(2_311_200), west60));
test("20101222T172201.1-01:30", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(1_000_000), west90));
test("20101222T172201.55-08:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(5_500_000), west480));
test("20101222T172201.1234567+01:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(1_234_567), east60));
test("20101222T172201.0000000+01:30", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east90));
test("20101222T172201.45+08:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(4_500_000), east480));
}
// bug# 17801
@safe unittest
{
import std.conv : to;
import std.meta : AliasSeq;
foreach (C; AliasSeq!(char, wchar, dchar))
{
foreach (S; AliasSeq!(C[], const(C)[], immutable(C)[]))
{
assert(SysTime.fromISOString(to!S("20121221T141516Z")) ==
SysTime(DateTime(2012, 12, 21, 14, 15, 16), UTC()));
}
}
}
/++
Creates a $(LREF SysTime) from a string with the format
YYYY-MM-DDTHH:MM:SS.FFFFFFFTZ (where F is fractional seconds is the
time zone). Whitespace is stripped from the given string.
The exact format is exactly as described in $(D toISOExtString)
except that trailing zeroes are permitted - including having fractional
seconds with all zeroes. However, a decimal point with nothing following
it is invalid. Also, while $(LREF toISOExtString) will never generate a
string with more than 7 digits in the fractional seconds (because that's
the limit with hecto-nanosecond precision), it will allow more than 7
digits in order to read strings from other sources that have higher
precision (however, any digits beyond 7 will be truncated).
If there is no time zone in the string, then
$(REF LocalTime,std,datetime,timezone) is used. If the time zone is "Z",
then $(D UTC) is used. Otherwise, a
$(REF SimpleTimeZone,std,datetime,timezone) which corresponds to the
given offset from UTC is used. To get the returned $(LREF SysTime) to be
a particular time zone, pass in that time zone and the $(LREF SysTime)
to be returned will be converted to that time zone (though it will still
be read in as whatever time zone is in its string).
The accepted formats for time zone offsets are +HH, -HH, +HH:MM, and
-HH:MM.
Params:
isoExtString = A string formatted in the ISO Extended format for
dates and times.
tz = The time zone to convert the given time to (no
conversion occurs if null).
Throws:
$(REF DateTimeException,std,datetime,date) if the given string is
not in the ISO format or if the resulting $(LREF SysTime) would not
be valid.
+/
static SysTime fromISOExtString(S)(in S isoExtString, immutable TimeZone tz = null) @safe
if (isSomeString!(S))
{
import std.algorithm.searching : countUntil, find;
import std.conv : to;
import std.string : strip;
auto dstr = to!dstring(strip(isoExtString));
auto tIndex = dstr.countUntil('T');
enforce(tIndex != -1, new DateTimeException(format("Invalid ISO Extended String: %s", isoExtString)));
auto found = dstr[tIndex + 1 .. $].find('.', 'Z', '+', '-');
auto dateTimeStr = dstr[0 .. $ - found[0].length];
dstring fracSecStr;
dstring zoneStr;
if (found[1] != 0)
{
if (found[1] == 1)
{
auto foundTZ = found[0].find('Z', '+', '-');
if (foundTZ[1] != 0)
{
fracSecStr = found[0][0 .. $ - foundTZ[0].length];
zoneStr = foundTZ[0];
}
else
fracSecStr = found[0];
}
else
zoneStr = found[0];
}
try
{
auto dateTime = DateTime.fromISOExtString(dateTimeStr);
auto fracSec = fracSecsFromISOString(fracSecStr);
Rebindable!(immutable TimeZone) parsedZone;
if (zoneStr.empty)
parsedZone = LocalTime();
else if (zoneStr == "Z")
parsedZone = UTC();
else
parsedZone = SimpleTimeZone.fromISOExtString(zoneStr);
auto retval = SysTime(dateTime, fracSec, parsedZone);
if (tz !is null)
retval.timezone = tz;
return retval;
}
catch (DateTimeException dte)
throw new DateTimeException(format("Invalid ISO Extended String: %s", isoExtString));
}
///
@safe unittest
{
import core.time : hours, msecs, usecs, hnsecs;
import std.datetime.date : DateTime;
import std.datetime.timezone : SimpleTimeZone, UTC;
assert(SysTime.fromISOExtString("2010-07-04T07:06:12") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12)));
assert(SysTime.fromISOExtString("1998-12-25T02:15:00.007") ==
SysTime(DateTime(1998, 12, 25, 2, 15, 0), msecs(7)));
assert(SysTime.fromISOExtString("0000-01-05T23:09:59.00002") ==
SysTime(DateTime(0, 1, 5, 23, 9, 59), usecs(20)));
assert(SysTime.fromISOExtString("2013-02-07T04:39:37.000050392") ==
SysTime(DateTime(2013, 2, 7, 4, 39, 37), hnsecs(503)));
assert(SysTime.fromISOExtString("-0004-01-05T00:00:02") ==
SysTime(DateTime(-4, 1, 5, 0, 0, 2)));
assert(SysTime.fromISOExtString(" 2010-07-04T07:06:12 ") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12)));
assert(SysTime.fromISOExtString("2010-07-04T07:06:12Z") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12), UTC()));
assert(SysTime.fromISOExtString("2010-07-04T07:06:12-08:00") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12),
new immutable SimpleTimeZone(hours(-8))));
assert(SysTime.fromISOExtString("2010-07-04T07:06:12+08:00") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12),
new immutable SimpleTimeZone(hours(8))));
}
@safe unittest
{
foreach (str; ["", "20100704000000", "20100704 000000",
"20100704t000000", "20100704T000000.", "20100704T000000.0",
"2010-07:0400:00:00", "2010-07-04 00:00:00",
"2010-07-04 00:00:00", "2010-07-04t00:00:00",
"2010-07-04T00:00:00.", "2010-07-04T00:00:00.A", "2010-07-04T00:00:00.Z",
"2010-07-04T00:00:00.0000000A", "2010-07-04T00:00:00.00000000A",
"2010-07-04T00:00:00+", "2010-07-04T00:00:00-",
"2010-07-04T00:00:00:", "2010-07-04T00:00:00-:", "2010-07-04T00:00:00+:",
"2010-07-04T00:00:00-1:", "2010-07-04T00:00:00+1:", "2010-07-04T00:00:00+1:0",
"2010-07-04T00:00:00-12.00", "2010-07-04T00:00:00+12.00",
"2010-07-04T00:00:00-8", "2010-07-04T00:00:00+8",
"20100704T000000-800", "20100704T000000+800",
"20100704T000000-080", "20100704T000000+080",
"20100704T000000-2400", "20100704T000000+2400",
"20100704T000000-1260", "20100704T000000+1260",
"20100704T000000.0-800", "20100704T000000.0+800",
"20100704T000000.0-8", "20100704T000000.0+8",
"20100704T000000.0-080", "20100704T000000.0+080",
"20100704T000000.0-2400", "20100704T000000.0+2400",
"20100704T000000.0-1260", "20100704T000000.0+1260",
"2010-07-04T00:00:00-8:00", "2010-07-04T00:00:00+8:00",
"2010-07-04T00:00:00-24:00", "2010-07-04T00:00:00+24:00",
"2010-07-04T00:00:00-12:60", "2010-07-04T00:00:00+12:60",
"2010-07-04T00:00:00.0-8:00", "2010-07-04T00:00:00.0+8:00",
"2010-07-04T00:00:00.0-8", "2010-07-04T00:00:00.0+8",
"2010-07-04T00:00:00.0-24:00", "2010-07-04T00:00:00.0+24:00",
"2010-07-04T00:00:00.0-12:60", "2010-07-04T00:00:00.0+12:60",
"2010-Jul-0400:00:00", "2010-Jul-04t00:00:00",
"2010-Jul-04 00:00:00.", "2010-Jul-04 00:00:00.0",
"20101222T172201", "2010-Dec-22 17:22:01"])
{
assertThrown!DateTimeException(SysTime.fromISOExtString(str), format("[%s]", str));
}
static void test(string str, SysTime st, size_t line = __LINE__)
{
if (SysTime.fromISOExtString(str) != st)
throw new AssertError("unittest failure", __FILE__, line);
}
test("2010-12-22T17:22:01", SysTime(DateTime(2010, 12, 22, 17, 22, 01)));
test("1999-07-06T12:30:33", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test("-1999-07-06T12:30:33", SysTime(DateTime(-1999, 7, 6, 12, 30, 33)));
test("+01999-07-06T12:30:33", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test("1999-07-06T12:30:33 ", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test(" 1999-07-06T12:30:33", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test(" 1999-07-06T12:30:33 ", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test("1907-07-07T12:12:12.0", SysTime(DateTime(1907, 07, 07, 12, 12, 12)));
test("1907-07-07T12:12:12.0000000", SysTime(DateTime(1907, 07, 07, 12, 12, 12)));
test("1907-07-07T12:12:12.0000001", SysTime(DateTime(1907, 07, 07, 12, 12, 12), hnsecs(1)));
test("2010-07-04T00:00:00.00000000", SysTime(Date(2010, 07, 04)));
test("2010-07-04T00:00:00.00000009", SysTime(Date(2010, 07, 04)));
test("2010-07-04T00:00:00.00000019", SysTime(DateTime(2010, 07, 04), hnsecs(1)));
test("1907-07-07T12:12:12.000001", SysTime(DateTime(1907, 07, 07, 12, 12, 12), usecs(1)));
test("1907-07-07T12:12:12.0000010", SysTime(DateTime(1907, 07, 07, 12, 12, 12), usecs(1)));
test("1907-07-07T12:12:12.001", SysTime(DateTime(1907, 07, 07, 12, 12, 12), msecs(1)));
test("1907-07-07T12:12:12.0010000", SysTime(DateTime(1907, 07, 07, 12, 12, 12), msecs(1)));
auto west60 = new immutable SimpleTimeZone(hours(-1));
auto west90 = new immutable SimpleTimeZone(minutes(-90));
auto west480 = new immutable SimpleTimeZone(hours(-8));
auto east60 = new immutable SimpleTimeZone(hours(1));
auto east90 = new immutable SimpleTimeZone(minutes(90));
auto east480 = new immutable SimpleTimeZone(hours(8));
test("2010-12-22T17:22:01Z", SysTime(DateTime(2010, 12, 22, 17, 22, 01), UTC()));
test("2010-12-22T17:22:01-01:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west60));
test("2010-12-22T17:22:01-01", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west60));
test("2010-12-22T17:22:01-01:30", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west90));
test("2010-12-22T17:22:01-08:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west480));
test("2010-12-22T17:22:01+01:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east60));
test("2010-12-22T17:22:01+01", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east60));
test("2010-12-22T17:22:01+01:30", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east90));
test("2010-12-22T17:22:01+08:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east480));
test("2010-11-03T06:51:06.57159Z", SysTime(DateTime(2010, 11, 3, 6, 51, 6), hnsecs(5715900), UTC()));
test("2010-12-22T17:22:01.23412Z", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(2_341_200), UTC()));
test("2010-12-22T17:22:01.23112-01:00",
SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(2_311_200), west60));
test("2010-12-22T17:22:01.45-01", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(4_500_000), west60));
test("2010-12-22T17:22:01.1-01:30", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(1_000_000), west90));
test("2010-12-22T17:22:01.55-08:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(5_500_000), west480));
test("2010-12-22T17:22:01.1234567+01:00",
SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(1_234_567), east60));
test("2010-12-22T17:22:01.0+01", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east60));
test("2010-12-22T17:22:01.0000000+01:30", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east90));
test("2010-12-22T17:22:01.45+08:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(4_500_000), east480));
}
// bug# 17801
@safe unittest
{
import std.conv : to;
import std.meta : AliasSeq;
foreach (C; AliasSeq!(char, wchar, dchar))
{
foreach (S; AliasSeq!(C[], const(C)[], immutable(C)[]))
{
assert(SysTime.fromISOExtString(to!S("2012-12-21T14:15:16Z")) ==
SysTime(DateTime(2012, 12, 21, 14, 15, 16), UTC()));
}
}
}
/++
Creates a $(LREF SysTime) from a string with the format
YYYY-MM-DD HH:MM:SS.FFFFFFFTZ (where F is fractional seconds is the
time zone). Whitespace is stripped from the given string.
The exact format is exactly as described in $(D toSimpleString) except
that trailing zeroes are permitted - including having fractional seconds
with all zeroes. However, a decimal point with nothing following it is
invalid. Also, while $(LREF toSimpleString) will never generate a
string with more than 7 digits in the fractional seconds (because that's
the limit with hecto-nanosecond precision), it will allow more than 7
digits in order to read strings from other sources that have higher
precision (however, any digits beyond 7 will be truncated).
If there is no time zone in the string, then
$(REF LocalTime,std,datetime,timezone) is used. If the time zone is "Z",
then $(D UTC) is used. Otherwise, a
$(REF SimpleTimeZone,std,datetime,timezone) which corresponds to the
given offset from UTC is used. To get the returned $(LREF SysTime) to be
a particular time zone, pass in that time zone and the $(LREF SysTime)
to be returned will be converted to that time zone (though it will still
be read in as whatever time zone is in its string).
The accepted formats for time zone offsets are +HH, -HH, +HH:MM, and
-HH:MM.
Params:
simpleString = A string formatted in the way that
$(D toSimpleString) formats dates and times.
tz = The time zone to convert the given time to (no
conversion occurs if null).
Throws:
$(REF DateTimeException,std,datetime,date) if the given string is
not in the ISO format or if the resulting $(LREF SysTime) would not
be valid.
+/
static SysTime fromSimpleString(S)(in S simpleString, immutable TimeZone tz = null) @safe
if (isSomeString!(S))
{
import std.algorithm.searching : countUntil, find;
import std.conv : to;
import std.string : strip;
auto dstr = to!dstring(strip(simpleString));
auto spaceIndex = dstr.countUntil(' ');
enforce(spaceIndex != -1, new DateTimeException(format("Invalid Simple String: %s", simpleString)));
auto found = dstr[spaceIndex + 1 .. $].find('.', 'Z', '+', '-');
auto dateTimeStr = dstr[0 .. $ - found[0].length];
dstring fracSecStr;
dstring zoneStr;
if (found[1] != 0)
{
if (found[1] == 1)
{
auto foundTZ = found[0].find('Z', '+', '-');
if (foundTZ[1] != 0)
{
fracSecStr = found[0][0 .. $ - foundTZ[0].length];
zoneStr = foundTZ[0];
}
else
fracSecStr = found[0];
}
else
zoneStr = found[0];
}
try
{
auto dateTime = DateTime.fromSimpleString(dateTimeStr);
auto fracSec = fracSecsFromISOString(fracSecStr);
Rebindable!(immutable TimeZone) parsedZone;
if (zoneStr.empty)
parsedZone = LocalTime();
else if (zoneStr == "Z")
parsedZone = UTC();
else
parsedZone = SimpleTimeZone.fromISOExtString(zoneStr);
auto retval = SysTime(dateTime, fracSec, parsedZone);
if (tz !is null)
retval.timezone = tz;
return retval;
}
catch (DateTimeException dte)
throw new DateTimeException(format("Invalid Simple String: %s", simpleString));
}
///
@safe unittest
{
import core.time : hours, msecs, usecs, hnsecs;
import std.datetime.date : DateTime;
import std.datetime.timezone : SimpleTimeZone, UTC;
assert(SysTime.fromSimpleString("2010-Jul-04 07:06:12") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12)));
assert(SysTime.fromSimpleString("1998-Dec-25 02:15:00.007") ==
SysTime(DateTime(1998, 12, 25, 2, 15, 0), msecs(7)));
assert(SysTime.fromSimpleString("0000-Jan-05 23:09:59.00002") ==
SysTime(DateTime(0, 1, 5, 23, 9, 59), usecs(20)));
assert(SysTime.fromSimpleString("2013-Feb-07 04:39:37.000050392") ==
SysTime(DateTime(2013, 2, 7, 4, 39, 37), hnsecs(503)));
assert(SysTime.fromSimpleString("-0004-Jan-05 00:00:02") ==
SysTime(DateTime(-4, 1, 5, 0, 0, 2)));
assert(SysTime.fromSimpleString(" 2010-Jul-04 07:06:12 ") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12)));
assert(SysTime.fromSimpleString("2010-Jul-04 07:06:12Z") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12), UTC()));
assert(SysTime.fromSimpleString("2010-Jul-04 07:06:12-08:00") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12),
new immutable SimpleTimeZone(hours(-8))));
assert(SysTime.fromSimpleString("2010-Jul-04 07:06:12+08:00") ==
SysTime(DateTime(2010, 7, 4, 7, 6, 12),
new immutable SimpleTimeZone(hours(8))));
}
@safe unittest
{
foreach (str; ["", "20100704000000", "20100704 000000",
"20100704t000000", "20100704T000000.", "20100704T000000.0",
"2010-07-0400:00:00", "2010-07-04 00:00:00", "2010-07-04t00:00:00",
"2010-07-04T00:00:00.", "2010-07-04T00:00:00.0",
"2010-Jul-0400:00:00", "2010-Jul-04t00:00:00", "2010-Jul-04T00:00:00",
"2010-Jul-04 00:00:00.", "2010-Jul-04 00:00:00.A", "2010-Jul-04 00:00:00.Z",
"2010-Jul-04 00:00:00.0000000A", "2010-Jul-04 00:00:00.00000000A",
"2010-Jul-04 00:00:00+", "2010-Jul-04 00:00:00-",
"2010-Jul-04 00:00:00:", "2010-Jul-04 00:00:00-:",
"2010-Jul-04 00:00:00+:", "2010-Jul-04 00:00:00-1:",
"2010-Jul-04 00:00:00+1:", "2010-Jul-04 00:00:00+1:0",
"2010-Jul-04 00:00:00-12.00", "2010-Jul-04 00:00:00+12.00",
"2010-Jul-04 00:00:00-8", "2010-Jul-04 00:00:00+8",
"20100704T000000-800", "20100704T000000+800",
"20100704T000000-080", "20100704T000000+080",
"20100704T000000-2400", "20100704T000000+2400",
"20100704T000000-1260", "20100704T000000+1260",
"20100704T000000.0-800", "20100704T000000.0+800",
"20100704T000000.0-8", "20100704T000000.0+8",
"20100704T000000.0-080", "20100704T000000.0+080",
"20100704T000000.0-2400", "20100704T000000.0+2400",
"20100704T000000.0-1260", "20100704T000000.0+1260",
"2010-Jul-04 00:00:00-8:00", "2010-Jul-04 00:00:00+8:00",
"2010-Jul-04 00:00:00-08:0", "2010-Jul-04 00:00:00+08:0",
"2010-Jul-04 00:00:00-24:00", "2010-Jul-04 00:00:00+24:00",
"2010-Jul-04 00:00:00-12:60", "2010-Jul-04 00:00:00+24:60",
"2010-Jul-04 00:00:00.0-8:00", "2010-Jul-04 00:00:00+8:00",
"2010-Jul-04 00:00:00.0-8", "2010-Jul-04 00:00:00.0+8",
"2010-Jul-04 00:00:00.0-08:0", "2010-Jul-04 00:00:00.0+08:0",
"2010-Jul-04 00:00:00.0-24:00", "2010-Jul-04 00:00:00.0+24:00",
"2010-Jul-04 00:00:00.0-12:60", "2010-Jul-04 00:00:00.0+24:60",
"20101222T172201", "2010-12-22T172201"])
{
assertThrown!DateTimeException(SysTime.fromSimpleString(str), format("[%s]", str));
}
static void test(string str, SysTime st, size_t line = __LINE__)
{
if (SysTime.fromSimpleString(str) != st)
throw new AssertError("unittest failure", __FILE__, line);
}
test("2010-Dec-22 17:22:01", SysTime(DateTime(2010, 12, 22, 17, 22, 01)));
test("1999-Jul-06 12:30:33", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test("-1999-Jul-06 12:30:33", SysTime(DateTime(-1999, 7, 6, 12, 30, 33)));
test("+01999-Jul-06 12:30:33", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test("1999-Jul-06 12:30:33 ", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test(" 1999-Jul-06 12:30:33", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test(" 1999-Jul-06 12:30:33 ", SysTime(DateTime(1999, 7, 6, 12, 30, 33)));
test("1907-Jul-07 12:12:12.0", SysTime(DateTime(1907, 07, 07, 12, 12, 12)));
test("1907-Jul-07 12:12:12.0000000", SysTime(DateTime(1907, 07, 07, 12, 12, 12)));
test("2010-Jul-04 00:00:00.00000000", SysTime(Date(2010, 07, 04)));
test("2010-Jul-04 00:00:00.00000009", SysTime(Date(2010, 07, 04)));
test("2010-Jul-04 00:00:00.00000019", SysTime(DateTime(2010, 07, 04), hnsecs(1)));
test("1907-Jul-07 12:12:12.0000001", SysTime(DateTime(1907, 07, 07, 12, 12, 12), hnsecs(1)));
test("1907-Jul-07 12:12:12.000001", SysTime(DateTime(1907, 07, 07, 12, 12, 12), usecs(1)));
test("1907-Jul-07 12:12:12.0000010", SysTime(DateTime(1907, 07, 07, 12, 12, 12), usecs(1)));
test("1907-Jul-07 12:12:12.001", SysTime(DateTime(1907, 07, 07, 12, 12, 12), msecs(1)));
test("1907-Jul-07 12:12:12.0010000", SysTime(DateTime(1907, 07, 07, 12, 12, 12), msecs(1)));
auto west60 = new immutable SimpleTimeZone(hours(-1));
auto west90 = new immutable SimpleTimeZone(minutes(-90));
auto west480 = new immutable SimpleTimeZone(hours(-8));
auto east60 = new immutable SimpleTimeZone(hours(1));
auto east90 = new immutable SimpleTimeZone(minutes(90));
auto east480 = new immutable SimpleTimeZone(hours(8));
test("2010-Dec-22 17:22:01Z", SysTime(DateTime(2010, 12, 22, 17, 22, 01), UTC()));
test("2010-Dec-22 17:22:01-01:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west60));
test("2010-Dec-22 17:22:01-01", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west60));
test("2010-Dec-22 17:22:01-01:30", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west90));
test("2010-Dec-22 17:22:01-08:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), west480));
test("2010-Dec-22 17:22:01+01:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east60));
test("2010-Dec-22 17:22:01+01", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east60));
test("2010-Dec-22 17:22:01+01:30", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east90));
test("2010-Dec-22 17:22:01+08:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east480));
test("2010-Nov-03 06:51:06.57159Z", SysTime(DateTime(2010, 11, 3, 6, 51, 6), hnsecs(5715900), UTC()));
test("2010-Dec-22 17:22:01.23412Z", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(2_341_200), UTC()));
test("2010-Dec-22 17:22:01.23112-01:00",
SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(2_311_200), west60));
test("2010-Dec-22 17:22:01.45-01", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(4_500_000), west60));
test("2010-Dec-22 17:22:01.1-01:30", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(1_000_000), west90));
test("2010-Dec-22 17:22:01.55-08:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(5_500_000), west480));
test("2010-Dec-22 17:22:01.1234567+01:00",
SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(1_234_567), east60));
test("2010-Dec-22 17:22:01.0+01", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east60));
test("2010-Dec-22 17:22:01.0000000+01:30", SysTime(DateTime(2010, 12, 22, 17, 22, 01), east90));
test("2010-Dec-22 17:22:01.45+08:00", SysTime(DateTime(2010, 12, 22, 17, 22, 01), hnsecs(4_500_000), east480));
}
// bug# 17801
@safe unittest
{
import std.conv : to;
import std.meta : AliasSeq;
foreach (C; AliasSeq!(char, wchar, dchar))
{
foreach (S; AliasSeq!(C[], const(C)[], immutable(C)[]))
{
assert(SysTime.fromSimpleString(to!S("2012-Dec-21 14:15:16Z")) ==
SysTime(DateTime(2012, 12, 21, 14, 15, 16), UTC()));
}
}
}
/++
Returns the $(LREF SysTime) farthest in the past which is representable
by $(LREF SysTime).
The $(LREF SysTime) which is returned is in UTC.
+/
@property static SysTime min() @safe pure nothrow
{
return SysTime(long.min, UTC());
}
@safe unittest
{
assert(SysTime.min.year < 0);
assert(SysTime.min < SysTime.max);
}
/++
Returns the $(LREF SysTime) farthest in the future which is representable
by $(LREF SysTime).
The $(LREF SysTime) which is returned is in UTC.
+/
@property static SysTime max() @safe pure nothrow
{
return SysTime(long.max, UTC());
}
@safe unittest
{
assert(SysTime.max.year > 0);
assert(SysTime.max > SysTime.min);
}
private:
/+
Returns $(D stdTime) converted to $(LREF SysTime)'s time zone.
+/
@property long adjTime() @safe const nothrow
{
return _timezone.utcToTZ(_stdTime);
}
/+
Converts the given hnsecs from $(LREF SysTime)'s time zone to std time.
+/
@property void adjTime(long adjTime) @safe nothrow
{
_stdTime = _timezone.tzToUTC(adjTime);
}
// Commented out due to bug http://d.puremagic.com/issues/show_bug.cgi?id=5058
/+
invariant()
{
assert(_timezone !is null, "Invariant Failure: timezone is null. Were you foolish enough to use " ~
"SysTime.init? (since timezone for SysTime.init can't be set at compile time).");
}
+/
long _stdTime;
Rebindable!(immutable TimeZone) _timezone;
}
/++
Converts from unix time (which uses midnight, January 1st, 1970 UTC as its
epoch and seconds as its units) to "std time" (which uses midnight,
January 1st, 1 A.D. UTC and hnsecs as its units).
The C standard does not specify the representation of time_t, so it is
implementation defined. On POSIX systems, unix time is equivalent to
time_t, but that's not necessarily true on other systems (e.g. it is
not true for the Digital Mars C runtime). So, be careful when using unix
time with C functions on non-POSIX systems.
"std time"'s epoch is based on the Proleptic Gregorian Calendar per ISO
8601 and is what $(LREF SysTime) uses internally. However, holding the time
as an integer in hnsecs since that epoch technically isn't actually part of
the standard, much as it's based on it, so the name "std time" isn't
particularly good, but there isn't an official name for it. C# uses "ticks"
for the same thing, but they aren't actually clock ticks, and the term
"ticks" $(I is) used for actual clock ticks for $(REF MonoTime, core,time),
so it didn't make sense to use the term ticks here. So, for better or worse,
std.datetime uses the term "std time" for this.
Params:
unixTime = The unix time to convert.
See_Also:
SysTime.fromUnixTime
+/
long unixTimeToStdTime(long unixTime) @safe pure nothrow
{
return 621_355_968_000_000_000L + convert!("seconds", "hnsecs")(unixTime);
}
///
@safe unittest
{
import std.datetime.date : DateTime;
import std.datetime.timezone : UTC;
// Midnight, January 1st, 1970
assert(unixTimeToStdTime(0) == 621_355_968_000_000_000L);
assert(SysTime(unixTimeToStdTime(0)) ==
SysTime(DateTime(1970, 1, 1), UTC()));
assert(unixTimeToStdTime(int.max) == 642_830_804_470_000_000L);
assert(SysTime(unixTimeToStdTime(int.max)) ==
SysTime(DateTime(2038, 1, 19, 3, 14, 07), UTC()));
assert(unixTimeToStdTime(-127_127) == 621_354_696_730_000_000L);
assert(SysTime(unixTimeToStdTime(-127_127)) ==
SysTime(DateTime(1969, 12, 30, 12, 41, 13), UTC()));
}
@safe unittest
{
// Midnight, January 2nd, 1970
assert(unixTimeToStdTime(86_400) == 621_355_968_000_000_000L + 864_000_000_000L);
// Midnight, December 31st, 1969
assert(unixTimeToStdTime(-86_400) == 621_355_968_000_000_000L - 864_000_000_000L);
assert(unixTimeToStdTime(0) == (Date(1970, 1, 1) - Date(1, 1, 1)).total!"hnsecs");
assert(unixTimeToStdTime(0) == (DateTime(1970, 1, 1) - DateTime(1, 1, 1)).total!"hnsecs");
foreach (dt; [DateTime(2010, 11, 1, 19, 5, 22), DateTime(1952, 7, 6, 2, 17, 9)])
assert(unixTimeToStdTime((dt - DateTime(1970, 1, 1)).total!"seconds") == (dt - DateTime.init).total!"hnsecs");
}
/++
Converts std time (which uses midnight, January 1st, 1 A.D. UTC as its epoch
and hnsecs as its units) to unix time (which uses midnight, January 1st,
1970 UTC as its epoch and seconds as its units).
The C standard does not specify the representation of time_t, so it is
implementation defined. On POSIX systems, unix time is equivalent to
time_t, but that's not necessarily true on other systems (e.g. it is
not true for the Digital Mars C runtime). So, be careful when using unix
time with C functions on non-POSIX systems.
"std time"'s epoch is based on the Proleptic Gregorian Calendar per ISO
8601 and is what $(LREF SysTime) uses internally. However, holding the time
as an integer in hnescs since that epoch technically isn't actually part of
the standard, much as it's based on it, so the name "std time" isn't
particularly good, but there isn't an official name for it. C# uses "ticks"
for the same thing, but they aren't actually clock ticks, and the term
"ticks" $(I is) used for actual clock ticks for $(REF MonoTime, core,time),
so it didn't make sense to use the term ticks here. So, for better or worse,
std.datetime uses the term "std time" for this.
By default, the return type is time_t (which is normally an alias for
int on 32-bit systems and long on 64-bit systems), but if a different
size is required than either int or long can be passed as a template
argument to get the desired size.
If the return type is int, and the result can't fit in an int, then the
closest value that can be held in 32 bits will be used (so $(D int.max)
if it goes over and $(D int.min) if it goes under). However, no attempt
is made to deal with integer overflow if the return type is long.
Params:
T = The return type (int or long). It defaults to time_t, which is
normally 32 bits on a 32-bit system and 64 bits on a 64-bit
system.
stdTime = The std time to convert.
Returns:
A signed integer representing the unix time which is equivalent to
the given std time.
See_Also:
SysTime.toUnixTime
+/
T stdTimeToUnixTime(T = time_t)(long stdTime) @safe pure nothrow
if (is(T == int) || is(T == long))
{
immutable unixTime = convert!("hnsecs", "seconds")(stdTime - 621_355_968_000_000_000L);
static assert(is(time_t == int) || is(time_t == long),
"Currently, std.datetime only supports systems where time_t is int or long");
static if (is(T == long))
return unixTime;
else static if (is(T == int))
{
if (unixTime > int.max)
return int.max;
return unixTime < int.min ? int.min : cast(int) unixTime;
}
else
static assert(0, "Bug in template constraint. Only int and long allowed.");
}
///
@safe unittest
{
// Midnight, January 1st, 1970 UTC
assert(stdTimeToUnixTime(621_355_968_000_000_000L) == 0);
// 2038-01-19 03:14:07 UTC
assert(stdTimeToUnixTime(642_830_804_470_000_000L) == int.max);
}
@safe unittest
{
enum unixEpochAsStdTime = (Date(1970, 1, 1) - Date.init).total!"hnsecs";
assert(stdTimeToUnixTime(unixEpochAsStdTime) == 0); // Midnight, January 1st, 1970
assert(stdTimeToUnixTime(unixEpochAsStdTime + 864_000_000_000L) == 86_400); // Midnight, January 2nd, 1970
assert(stdTimeToUnixTime(unixEpochAsStdTime - 864_000_000_000L) == -86_400); // Midnight, December 31st, 1969
assert(stdTimeToUnixTime((Date(1970, 1, 1) - Date(1, 1, 1)).total!"hnsecs") == 0);
assert(stdTimeToUnixTime((DateTime(1970, 1, 1) - DateTime(1, 1, 1)).total!"hnsecs") == 0);
foreach (dt; [DateTime(2010, 11, 1, 19, 5, 22), DateTime(1952, 7, 6, 2, 17, 9)])
assert(stdTimeToUnixTime((dt - DateTime.init).total!"hnsecs") == (dt - DateTime(1970, 1, 1)).total!"seconds");
enum max = convert!("seconds", "hnsecs")(int.max);
enum min = convert!("seconds", "hnsecs")(int.min);
enum one = convert!("seconds", "hnsecs")(1);
assert(stdTimeToUnixTime!long(unixEpochAsStdTime + max) == int.max);
assert(stdTimeToUnixTime!int(unixEpochAsStdTime + max) == int.max);
assert(stdTimeToUnixTime!long(unixEpochAsStdTime + max + one) == int.max + 1L);
assert(stdTimeToUnixTime!int(unixEpochAsStdTime + max + one) == int.max);
assert(stdTimeToUnixTime!long(unixEpochAsStdTime + max + 9_999_999) == int.max);
assert(stdTimeToUnixTime!int(unixEpochAsStdTime + max + 9_999_999) == int.max);
assert(stdTimeToUnixTime!long(unixEpochAsStdTime + min) == int.min);
assert(stdTimeToUnixTime!int(unixEpochAsStdTime + min) == int.min);
assert(stdTimeToUnixTime!long(unixEpochAsStdTime + min - one) == int.min - 1L);
assert(stdTimeToUnixTime!int(unixEpochAsStdTime + min - one) == int.min);
assert(stdTimeToUnixTime!long(unixEpochAsStdTime + min - 9_999_999) == int.min);
assert(stdTimeToUnixTime!int(unixEpochAsStdTime + min - 9_999_999) == int.min);
}
version(StdDdoc)
{
version(Windows)
{}
else
{
alias SYSTEMTIME = void*;
alias FILETIME = void*;
}
/++
$(BLUE This function is Windows-Only.)
Converts a $(D SYSTEMTIME) struct to a $(LREF SysTime).
Params:
st = The $(D SYSTEMTIME) struct to convert.
tz = The time zone that the time in the $(D SYSTEMTIME) struct is
assumed to be (if the $(D SYSTEMTIME) was supplied by a Windows
system call, the $(D SYSTEMTIME) will either be in local time
or UTC, depending on the call).
Throws:
$(REF DateTimeException,std,datetime,date) if the given
$(D SYSTEMTIME) will not fit in a $(LREF SysTime), which is highly
unlikely to happen given that $(D SysTime.max) is in 29,228 A.D. and
the maximum $(D SYSTEMTIME) is in 30,827 A.D.
+/
SysTime SYSTEMTIMEToSysTime(const SYSTEMTIME* st, immutable TimeZone tz = LocalTime()) @safe;
/++
$(BLUE This function is Windows-Only.)
Converts a $(LREF SysTime) to a $(D SYSTEMTIME) struct.
The $(D SYSTEMTIME) which is returned will be set using the given
$(LREF SysTime)'s time zone, so to get the $(D SYSTEMTIME) in
UTC, set the $(LREF SysTime)'s time zone to UTC.
Params:
sysTime = The $(LREF SysTime) to convert.
Throws:
$(REF DateTimeException,std,datetime,date) if the given
$(LREF SysTime) will not fit in a $(D SYSTEMTIME). This will only
happen if the $(LREF SysTime)'s date is prior to 1601 A.D.
+/
SYSTEMTIME SysTimeToSYSTEMTIME(in SysTime sysTime) @safe;
/++
$(BLUE This function is Windows-Only.)
Converts a $(D FILETIME) struct to the number of hnsecs since midnight,
January 1st, 1 A.D.
Params:
ft = The $(D FILETIME) struct to convert.
Throws:
$(REF DateTimeException,std,datetime,date) if the given
$(D FILETIME) cannot be represented as the return value.
+/
long FILETIMEToStdTime(scope const FILETIME* ft) @safe;
/++
$(BLUE This function is Windows-Only.)
Converts a $(D FILETIME) struct to a $(LREF SysTime).
Params:
ft = The $(D FILETIME) struct to convert.
tz = The time zone that the $(LREF SysTime) will be in
($(D FILETIME)s are in UTC).
Throws:
$(REF DateTimeException,std,datetime,date) if the given
$(D FILETIME) will not fit in a $(LREF SysTime).
+/
SysTime FILETIMEToSysTime(scope const FILETIME* ft, immutable TimeZone tz = LocalTime()) @safe;
/++
$(BLUE This function is Windows-Only.)
Converts a number of hnsecs since midnight, January 1st, 1 A.D. to a
$(D FILETIME) struct.
Params:
stdTime = The number of hnsecs since midnight, January 1st, 1 A.D.
UTC.
Throws:
$(REF DateTimeException,std,datetime,date) if the given value will
not fit in a $(D FILETIME).
+/
FILETIME stdTimeToFILETIME(long stdTime) @safe;
/++
$(BLUE This function is Windows-Only.)
Converts a $(LREF SysTime) to a $(D FILETIME) struct.
$(D FILETIME)s are always in UTC.
Params:
sysTime = The $(LREF SysTime) to convert.
Throws:
$(REF DateTimeException,std,datetime,date) if the given
$(LREF SysTime) will not fit in a $(D FILETIME).
+/
FILETIME SysTimeToFILETIME(SysTime sysTime) @safe;
}
else version(Windows)
{
SysTime SYSTEMTIMEToSysTime(const SYSTEMTIME* st, immutable TimeZone tz = LocalTime()) @safe
{
const max = SysTime.max;
static void throwLaterThanMax()
{
throw new DateTimeException("The given SYSTEMTIME is for a date greater than SysTime.max.");
}
if (st.wYear > max.year)
throwLaterThanMax();
else if (st.wYear == max.year)
{
if (st.wMonth > max.month)
throwLaterThanMax();
else if (st.wMonth == max.month)
{
if (st.wDay > max.day)
throwLaterThanMax();
else if (st.wDay == max.day)
{
if (st.wHour > max.hour)
throwLaterThanMax();
else if (st.wHour == max.hour)
{
if (st.wMinute > max.minute)
throwLaterThanMax();
else if (st.wMinute == max.minute)
{
if (st.wSecond > max.second)
throwLaterThanMax();
else if (st.wSecond == max.second)
{
if (st.wMilliseconds > max.fracSecs.total!"msecs")
throwLaterThanMax();
}
}
}
}
}
}
auto dt = DateTime(st.wYear, st.wMonth, st.wDay, st.wHour, st.wMinute, st.wSecond);
return SysTime(dt, msecs(st.wMilliseconds), tz);
}
@system unittest
{
auto sysTime = Clock.currTime(UTC());
SYSTEMTIME st = void;
GetSystemTime(&st);
auto converted = SYSTEMTIMEToSysTime(&st, UTC());
assert(abs((converted - sysTime)) <= dur!"seconds"(2));
}
SYSTEMTIME SysTimeToSYSTEMTIME(in SysTime sysTime) @safe
{
immutable dt = cast(DateTime) sysTime;
if (dt.year < 1601)
throw new DateTimeException("SYSTEMTIME cannot hold dates prior to the year 1601.");
SYSTEMTIME st;
st.wYear = dt.year;
st.wMonth = dt.month;
st.wDayOfWeek = dt.dayOfWeek;
st.wDay = dt.day;
st.wHour = dt.hour;
st.wMinute = dt.minute;
st.wSecond = dt.second;
st.wMilliseconds = cast(ushort) sysTime.fracSecs.total!"msecs";
return st;
}
@system unittest
{
SYSTEMTIME st = void;
GetSystemTime(&st);
auto sysTime = SYSTEMTIMEToSysTime(&st, UTC());
SYSTEMTIME result = SysTimeToSYSTEMTIME(sysTime);
assert(st.wYear == result.wYear);
assert(st.wMonth == result.wMonth);
assert(st.wDayOfWeek == result.wDayOfWeek);
assert(st.wDay == result.wDay);
assert(st.wHour == result.wHour);
assert(st.wMinute == result.wMinute);
assert(st.wSecond == result.wSecond);
assert(st.wMilliseconds == result.wMilliseconds);
}
private enum hnsecsFrom1601 = 504_911_232_000_000_000L;
long FILETIMEToStdTime(scope const FILETIME* ft) @safe
{
ULARGE_INTEGER ul;
ul.HighPart = ft.dwHighDateTime;
ul.LowPart = ft.dwLowDateTime;
ulong tempHNSecs = ul.QuadPart;
if (tempHNSecs > long.max - hnsecsFrom1601)
throw new DateTimeException("The given FILETIME cannot be represented as a stdTime value.");
return cast(long) tempHNSecs + hnsecsFrom1601;
}
SysTime FILETIMEToSysTime(scope const FILETIME* ft, immutable TimeZone tz = LocalTime()) @safe
{
auto sysTime = SysTime(FILETIMEToStdTime(ft), UTC());
sysTime.timezone = tz;
return sysTime;
}
@system unittest
{
auto sysTime = Clock.currTime(UTC());
SYSTEMTIME st = void;
GetSystemTime(&st);
FILETIME ft = void;
SystemTimeToFileTime(&st, &ft);
auto converted = FILETIMEToSysTime(&ft);
assert(abs((converted - sysTime)) <= dur!"seconds"(2));
}
FILETIME stdTimeToFILETIME(long stdTime) @safe
{
if (stdTime < hnsecsFrom1601)
throw new DateTimeException("The given stdTime value cannot be represented as a FILETIME.");
ULARGE_INTEGER ul;
ul.QuadPart = cast(ulong) stdTime - hnsecsFrom1601;
FILETIME ft;
ft.dwHighDateTime = ul.HighPart;
ft.dwLowDateTime = ul.LowPart;
return ft;
}
FILETIME SysTimeToFILETIME(SysTime sysTime) @safe
{
return stdTimeToFILETIME(sysTime.stdTime);
}
@system unittest
{
SYSTEMTIME st = void;
GetSystemTime(&st);
FILETIME ft = void;
SystemTimeToFileTime(&st, &ft);
auto sysTime = FILETIMEToSysTime(&ft, UTC());
FILETIME result = SysTimeToFILETIME(sysTime);
assert(ft.dwLowDateTime == result.dwLowDateTime);
assert(ft.dwHighDateTime == result.dwHighDateTime);
}
}
/++
Type representing the DOS file date/time format.
+/
alias DosFileTime = uint;
/++
Converts from DOS file date/time to $(LREF SysTime).
Params:
dft = The DOS file time to convert.
tz = The time zone which the DOS file time is assumed to be in.
Throws:
$(REF DateTimeException,std,datetime,date) if the $(D DosFileTime) is
invalid.
+/
SysTime DosFileTimeToSysTime(DosFileTime dft, immutable TimeZone tz = LocalTime()) @safe
{
uint dt = cast(uint) dft;
if (dt == 0)
throw new DateTimeException("Invalid DosFileTime.");
int year = ((dt >> 25) & 0x7F) + 1980;
int month = ((dt >> 21) & 0x0F); // 1 .. 12
int dayOfMonth = ((dt >> 16) & 0x1F); // 1 .. 31
int hour = (dt >> 11) & 0x1F; // 0 .. 23
int minute = (dt >> 5) & 0x3F; // 0 .. 59
int second = (dt << 1) & 0x3E; // 0 .. 58 (in 2 second increments)
try
return SysTime(DateTime(year, month, dayOfMonth, hour, minute, second), tz);
catch (DateTimeException dte)
throw new DateTimeException("Invalid DosFileTime", __FILE__, __LINE__, dte);
}
@safe unittest
{
assert(DosFileTimeToSysTime(0b00000000001000010000000000000000) == SysTime(DateTime(1980, 1, 1, 0, 0, 0)));
assert(DosFileTimeToSysTime(0b11111111100111111011111101111101) == SysTime(DateTime(2107, 12, 31, 23, 59, 58)));
assert(DosFileTimeToSysTime(0x3E3F8456) == SysTime(DateTime(2011, 1, 31, 16, 34, 44)));
}
/++
Converts from $(LREF SysTime) to DOS file date/time.
Params:
sysTime = The $(LREF SysTime) to convert.
Throws:
$(REF DateTimeException,std,datetime,date) if the given
$(LREF SysTime) cannot be converted to a $(D DosFileTime).
+/
DosFileTime SysTimeToDosFileTime(SysTime sysTime) @safe
{
auto dateTime = cast(DateTime) sysTime;
if (dateTime.year < 1980)
throw new DateTimeException("DOS File Times cannot hold dates prior to 1980.");
if (dateTime.year > 2107)
throw new DateTimeException("DOS File Times cannot hold dates past 2107.");
uint retval = 0;
retval = (dateTime.year - 1980) << 25;
retval |= (dateTime.month & 0x0F) << 21;
retval |= (dateTime.day & 0x1F) << 16;
retval |= (dateTime.hour & 0x1F) << 11;
retval |= (dateTime.minute & 0x3F) << 5;
retval |= (dateTime.second >> 1) & 0x1F;
return cast(DosFileTime) retval;
}
@safe unittest
{
assert(SysTimeToDosFileTime(SysTime(DateTime(1980, 1, 1, 0, 0, 0))) == 0b00000000001000010000000000000000);
assert(SysTimeToDosFileTime(SysTime(DateTime(2107, 12, 31, 23, 59, 58))) == 0b11111111100111111011111101111101);
assert(SysTimeToDosFileTime(SysTime(DateTime(2011, 1, 31, 16, 34, 44))) == 0x3E3F8456);
}
/++
The given array of $(D char) or random-access range of $(D char) or
$(D ubyte) is expected to be in the format specified in
$(HTTP tools.ietf.org/html/rfc5322, RFC 5322) section 3.3 with the
grammar rule $(I date-time). It is the date-time format commonly used in
internet messages such as e-mail and HTTP. The corresponding
$(LREF SysTime) will be returned.
RFC 822 was the original spec (hence the function's name), whereas RFC 5322
is the current spec.
The day of the week is ignored beyond verifying that it's a valid day of the
week, as the day of the week can be inferred from the date. It is not
checked whether the given day of the week matches the actual day of the week
of the given date (though it is technically invalid per the spec if the
day of the week doesn't match the actual day of the week of the given date).
If the time zone is $(D "-0000") (or considered to be equivalent to
$(D "-0000") by section 4.3 of the spec), a
$(REF SimpleTimeZone,std,datetime,timezone) with a utc offset of $(D 0) is
used rather than $(REF UTC,std,datetime,timezone), whereas $(D "+0000") uses
$(REF UTC,std,datetime,timezone).
Note that because $(LREF SysTime) does not currently support having a second
value of 60 (as is sometimes done for leap seconds), if the date-time value
does have a value of 60 for the seconds, it is treated as 59.
The one area in which this function violates RFC 5322 is that it accepts
$(D "\n") in folding whitespace in the place of $(D "\r\n"), because the
HTTP spec requires it.
Throws:
$(REF DateTimeException,std,datetime,date) if the given string doesn't
follow the grammar for a date-time field or if the resulting
$(LREF SysTime) is invalid.
+/
SysTime parseRFC822DateTime()(in char[] value) @safe
{
import std.string : representation;
return parseRFC822DateTime(value.representation);
}
/++ Ditto +/
SysTime parseRFC822DateTime(R)(R value) @safe
if (isRandomAccessRange!R && hasSlicing!R && hasLength!R &&
(is(Unqual!(ElementType!R) == char) || is(Unqual!(ElementType!R) == ubyte)))
{
import std.algorithm.searching : find, all;
import std.ascii : isDigit, isAlpha, isPrintable;
import std.conv : to;
import std.functional : not;
import std.string : capitalize, format;
import std.traits : EnumMembers, isArray;
import std.typecons : Rebindable;
void stripAndCheckLen(R valueBefore, size_t minLen, size_t line = __LINE__)
{
value = _stripCFWS(valueBefore);
if (value.length < minLen)
throw new DateTimeException("date-time value too short", __FILE__, line);
}
stripAndCheckLen(value, "7Dec1200:00A".length);
static if (isArray!R && (is(ElementEncodingType!R == char) || is(ElementEncodingType!R == ubyte)))
{
static string sliceAsString(R str) @trusted
{
return cast(string) str;
}
}
else
{
char[4] temp;
char[] sliceAsString(R str) @trusted
{
size_t i = 0;
foreach (c; str)
temp[i++] = cast(char) c;
return temp[0 .. str.length];
}
}
// day-of-week
if (isAlpha(value[0]))
{
auto dowStr = sliceAsString(value[0 .. 3]);
switch (dowStr)
{
foreach (dow; EnumMembers!DayOfWeek)
{
enum dowC = capitalize(to!string(dow));
case dowC:
goto afterDoW;
}
default: throw new DateTimeException(format("Invalid day-of-week: %s", dowStr));
}
afterDoW: stripAndCheckLen(value[3 .. value.length], ",7Dec1200:00A".length);
if (value[0] != ',')
throw new DateTimeException("day-of-week missing comma");
stripAndCheckLen(value[1 .. value.length], "7Dec1200:00A".length);
}
// day
immutable digits = isDigit(value[1]) ? 2 : 1;
immutable day = _convDigits!short(value[0 .. digits]);
if (day == -1)
throw new DateTimeException("Invalid day");
stripAndCheckLen(value[digits .. value.length], "Dec1200:00A".length);
// month
Month month;
{
auto monStr = sliceAsString(value[0 .. 3]);
switch (monStr)
{
foreach (mon; EnumMembers!Month)
{
enum monC = capitalize(to!string(mon));
case monC:
{
month = mon;
goto afterMon;
}
}
default: throw new DateTimeException(format("Invalid month: %s", monStr));
}
afterMon: stripAndCheckLen(value[3 .. value.length], "1200:00A".length);
}
// year
auto found = value[2 .. value.length].find!(not!(std.ascii.isDigit))();
size_t yearLen = value.length - found.length;
if (found.length == 0)
throw new DateTimeException("Invalid year");
if (found[0] == ':')
yearLen -= 2;
auto year = _convDigits!short(value[0 .. yearLen]);
if (year < 1900)
{
if (year == -1)
throw new DateTimeException("Invalid year");
if (yearLen < 4)
{
if (yearLen == 3)
year += 1900;
else if (yearLen == 2)
year += year < 50 ? 2000 : 1900;
else
throw new DateTimeException("Invalid year. Too few digits.");
}
else
throw new DateTimeException("Invalid year. Cannot be earlier than 1900.");
}
stripAndCheckLen(value[yearLen .. value.length], "00:00A".length);
// hour
immutable hour = _convDigits!short(value[0 .. 2]);
stripAndCheckLen(value[2 .. value.length], ":00A".length);
if (value[0] != ':')
throw new DateTimeException("Invalid hour");
stripAndCheckLen(value[1 .. value.length], "00A".length);
// minute
immutable minute = _convDigits!short(value[0 .. 2]);
stripAndCheckLen(value[2 .. value.length], "A".length);
// second
short second;
if (value[0] == ':')
{
stripAndCheckLen(value[1 .. value.length], "00A".length);
second = _convDigits!short(value[0 .. 2]);
// this is just if/until SysTime is sorted out to fully support leap seconds
if (second == 60)
second = 59;
stripAndCheckLen(value[2 .. value.length], "A".length);
}
immutable(TimeZone) parseTZ(int sign)
{
if (value.length < 5)
throw new DateTimeException("Invalid timezone");
immutable zoneHours = _convDigits!short(value[1 .. 3]);
immutable zoneMinutes = _convDigits!short(value[3 .. 5]);
if (zoneHours == -1 || zoneMinutes == -1 || zoneMinutes > 59)
throw new DateTimeException("Invalid timezone");
value = value[5 .. value.length];
immutable utcOffset = (dur!"hours"(zoneHours) + dur!"minutes"(zoneMinutes)) * sign;
if (utcOffset == Duration.zero)
{
return sign == 1 ? cast(immutable(TimeZone))UTC()
: cast(immutable(TimeZone))new immutable SimpleTimeZone(Duration.zero);
}
return new immutable(SimpleTimeZone)(utcOffset);
}
// zone
Rebindable!(immutable TimeZone) tz;
if (value[0] == '-')
tz = parseTZ(-1);
else if (value[0] == '+')
tz = parseTZ(1);
else
{
// obs-zone
immutable tzLen = value.length - find(value, ' ', '\t', '(')[0].length;
switch (sliceAsString(value[0 .. tzLen <= 4 ? tzLen : 4]))
{
case "UT": case "GMT": tz = UTC(); break;
case "EST": tz = new immutable SimpleTimeZone(dur!"hours"(-5)); break;
case "EDT": tz = new immutable SimpleTimeZone(dur!"hours"(-4)); break;
case "CST": tz = new immutable SimpleTimeZone(dur!"hours"(-6)); break;
case "CDT": tz = new immutable SimpleTimeZone(dur!"hours"(-5)); break;
case "MST": tz = new immutable SimpleTimeZone(dur!"hours"(-7)); break;
case "MDT": tz = new immutable SimpleTimeZone(dur!"hours"(-6)); break;
case "PST": tz = new immutable SimpleTimeZone(dur!"hours"(-8)); break;
case "PDT": tz = new immutable SimpleTimeZone(dur!"hours"(-7)); break;
case "J": case "j": throw new DateTimeException("Invalid timezone");
default:
{
if (all!(std.ascii.isAlpha)(value[0 .. tzLen]))
{
tz = new immutable SimpleTimeZone(Duration.zero);
break;
}
throw new DateTimeException("Invalid timezone");
}
}
value = value[tzLen .. value.length];
}
// This is kind of arbitrary. Technically, nothing but CFWS is legal past
// the end of the timezone, but we don't want to be picky about that in a
// function that's just parsing rather than validating. So, the idea here is
// that if the next character is printable (and not part of CFWS), then it
// might be part of the timezone and thus affect what the timezone was
// supposed to be, so we'll throw, but otherwise, we'll just ignore it.
if (!value.empty && isPrintable(value[0]) && value[0] != ' ' && value[0] != '(')
throw new DateTimeException("Invalid timezone");
try
return SysTime(DateTime(year, month, day, hour, minute, second), tz);
catch (DateTimeException dte)
throw new DateTimeException("date-time format is correct, but the resulting SysTime is invalid.", dte);
}
///
@safe unittest
{
import core.time : hours;
import std.datetime.date : DateTime, DateTimeException;
import std.datetime.timezone : SimpleTimeZone, UTC;
import std.exception : assertThrown;
auto tz = new immutable SimpleTimeZone(hours(-8));
assert(parseRFC822DateTime("Sat, 6 Jan 1990 12:14:19 -0800") ==
SysTime(DateTime(1990, 1, 6, 12, 14, 19), tz));
assert(parseRFC822DateTime("9 Jul 2002 13:11 +0000") ==
SysTime(DateTime(2002, 7, 9, 13, 11, 0), UTC()));
auto badStr = "29 Feb 2001 12:17:16 +0200";
assertThrown!DateTimeException(parseRFC822DateTime(badStr));
}
version(unittest) void testParse822(alias cr)(string str, SysTime expected, size_t line = __LINE__)
{
import std.format : format;
auto value = cr(str);
auto result = parseRFC822DateTime(value);
if (result != expected)
throw new AssertError(format("wrong result. expected [%s], actual[%s]", expected, result), __FILE__, line);
}
version(unittest) void testBadParse822(alias cr)(string str, size_t line = __LINE__)
{
try
parseRFC822DateTime(cr(str));
catch (DateTimeException)
return;
throw new AssertError("No DateTimeException was thrown", __FILE__, line);
}
@system unittest
{
import std.algorithm.iteration : filter, map;
import std.algorithm.searching : canFind;
import std.array : array;
import std.ascii : letters;
import std.format : format;
import std.meta : AliasSeq;
import std.range : chain, iota, take;
import std.stdio : writefln, writeln;
import std.string : representation;
static struct Rand3Letters
{
enum empty = false;
@property auto front() { return _mon; }
void popFront()
{
import std.exception : assumeUnique;
import std.random : rndGen;
_mon = rndGen.map!(a => letters[a % letters.length])().take(3).array().assumeUnique();
}
string _mon;
static auto start() { Rand3Letters retval; retval.popFront(); return retval; }
}
foreach (cr; AliasSeq!(function(string a){return cast(char[]) a;},
function(string a){return cast(ubyte[]) a;},
function(string a){return a;},
function(string a){return map!(b => cast(char) b)(a.representation);}))
(){ // avoid slow optimizations for large functions @@@BUG@@@ 2396
scope(failure) writeln(typeof(cr).stringof);
alias test = testParse822!cr;
alias testBad = testBadParse822!cr;
immutable std1 = DateTime(2012, 12, 21, 13, 14, 15);
immutable std2 = DateTime(2012, 12, 21, 13, 14, 0);
immutable dst1 = DateTime(1976, 7, 4, 5, 4, 22);
immutable dst2 = DateTime(1976, 7, 4, 5, 4, 0);
test("21 Dec 2012 13:14:15 +0000", SysTime(std1, UTC()));
test("21 Dec 2012 13:14 +0000", SysTime(std2, UTC()));
test("Fri, 21 Dec 2012 13:14 +0000", SysTime(std2, UTC()));
test("Fri, 21 Dec 2012 13:14:15 +0000", SysTime(std1, UTC()));
test("04 Jul 1976 05:04:22 +0000", SysTime(dst1, UTC()));
test("04 Jul 1976 05:04 +0000", SysTime(dst2, UTC()));
test("Sun, 04 Jul 1976 05:04 +0000", SysTime(dst2, UTC()));
test("Sun, 04 Jul 1976 05:04:22 +0000", SysTime(dst1, UTC()));
test("4 Jul 1976 05:04:22 +0000", SysTime(dst1, UTC()));
test("4 Jul 1976 05:04 +0000", SysTime(dst2, UTC()));
test("Sun, 4 Jul 1976 05:04 +0000", SysTime(dst2, UTC()));
test("Sun, 4 Jul 1976 05:04:22 +0000", SysTime(dst1, UTC()));
auto badTZ = new immutable SimpleTimeZone(Duration.zero);
test("21 Dec 2012 13:14:15 -0000", SysTime(std1, badTZ));
test("21 Dec 2012 13:14 -0000", SysTime(std2, badTZ));
test("Fri, 21 Dec 2012 13:14 -0000", SysTime(std2, badTZ));
test("Fri, 21 Dec 2012 13:14:15 -0000", SysTime(std1, badTZ));
test("04 Jul 1976 05:04:22 -0000", SysTime(dst1, badTZ));
test("04 Jul 1976 05:04 -0000", SysTime(dst2, badTZ));
test("Sun, 04 Jul 1976 05:04 -0000", SysTime(dst2, badTZ));
test("Sun, 04 Jul 1976 05:04:22 -0000", SysTime(dst1, badTZ));
test("4 Jul 1976 05:04:22 -0000", SysTime(dst1, badTZ));
test("4 Jul 1976 05:04 -0000", SysTime(dst2, badTZ));
test("Sun, 4 Jul 1976 05:04 -0000", SysTime(dst2, badTZ));
test("Sun, 4 Jul 1976 05:04:22 -0000", SysTime(dst1, badTZ));
auto pst = new immutable SimpleTimeZone(dur!"hours"(-8));
auto pdt = new immutable SimpleTimeZone(dur!"hours"(-7));
test("21 Dec 2012 13:14:15 -0800", SysTime(std1, pst));
test("21 Dec 2012 13:14 -0800", SysTime(std2, pst));
test("Fri, 21 Dec 2012 13:14 -0800", SysTime(std2, pst));
test("Fri, 21 Dec 2012 13:14:15 -0800", SysTime(std1, pst));
test("04 Jul 1976 05:04:22 -0700", SysTime(dst1, pdt));
test("04 Jul 1976 05:04 -0700", SysTime(dst2, pdt));
test("Sun, 04 Jul 1976 05:04 -0700", SysTime(dst2, pdt));
test("Sun, 04 Jul 1976 05:04:22 -0700", SysTime(dst1, pdt));
test("4 Jul 1976 05:04:22 -0700", SysTime(dst1, pdt));
test("4 Jul 1976 05:04 -0700", SysTime(dst2, pdt));
test("Sun, 4 Jul 1976 05:04 -0700", SysTime(dst2, pdt));
test("Sun, 4 Jul 1976 05:04:22 -0700", SysTime(dst1, pdt));
auto cet = new immutable SimpleTimeZone(dur!"hours"(1));
auto cest = new immutable SimpleTimeZone(dur!"hours"(2));
test("21 Dec 2012 13:14:15 +0100", SysTime(std1, cet));
test("21 Dec 2012 13:14 +0100", SysTime(std2, cet));
test("Fri, 21 Dec 2012 13:14 +0100", SysTime(std2, cet));
test("Fri, 21 Dec 2012 13:14:15 +0100", SysTime(std1, cet));
test("04 Jul 1976 05:04:22 +0200", SysTime(dst1, cest));
test("04 Jul 1976 05:04 +0200", SysTime(dst2, cest));
test("Sun, 04 Jul 1976 05:04 +0200", SysTime(dst2, cest));
test("Sun, 04 Jul 1976 05:04:22 +0200", SysTime(dst1, cest));
test("4 Jul 1976 05:04:22 +0200", SysTime(dst1, cest));
test("4 Jul 1976 05:04 +0200", SysTime(dst2, cest));
test("Sun, 4 Jul 1976 05:04 +0200", SysTime(dst2, cest));
test("Sun, 4 Jul 1976 05:04:22 +0200", SysTime(dst1, cest));
// dst and std times are switched in the Southern Hemisphere which is why the
// time zone names and DateTime variables don't match.
auto cstStd = new immutable SimpleTimeZone(dur!"hours"(9) + dur!"minutes"(30));
auto cstDST = new immutable SimpleTimeZone(dur!"hours"(10) + dur!"minutes"(30));
test("21 Dec 2012 13:14:15 +1030", SysTime(std1, cstDST));
test("21 Dec 2012 13:14 +1030", SysTime(std2, cstDST));
test("Fri, 21 Dec 2012 13:14 +1030", SysTime(std2, cstDST));
test("Fri, 21 Dec 2012 13:14:15 +1030", SysTime(std1, cstDST));
test("04 Jul 1976 05:04:22 +0930", SysTime(dst1, cstStd));
test("04 Jul 1976 05:04 +0930", SysTime(dst2, cstStd));
test("Sun, 04 Jul 1976 05:04 +0930", SysTime(dst2, cstStd));
test("Sun, 04 Jul 1976 05:04:22 +0930", SysTime(dst1, cstStd));
test("4 Jul 1976 05:04:22 +0930", SysTime(dst1, cstStd));
test("4 Jul 1976 05:04 +0930", SysTime(dst2, cstStd));
test("Sun, 4 Jul 1976 05:04 +0930", SysTime(dst2, cstStd));
test("Sun, 4 Jul 1976 05:04:22 +0930", SysTime(dst1, cstStd));
foreach (int i, mon; _monthNames)
{
test(format("17 %s 2012 00:05:02 +0000", mon), SysTime(DateTime(2012, i + 1, 17, 0, 5, 2), UTC()));
test(format("17 %s 2012 00:05 +0000", mon), SysTime(DateTime(2012, i + 1, 17, 0, 5, 0), UTC()));
}
import std.uni : toLower, toUpper;
foreach (mon; chain(_monthNames[].map!(a => toLower(a))(),
_monthNames[].map!(a => toUpper(a))(),
["Jam", "Jen", "Fec", "Fdb", "Mas", "Mbr", "Aps", "Aqr", "Mai", "Miy",
"Jum", "Jbn", "Jup", "Jal", "Aur", "Apg", "Sem", "Sap", "Ocm", "Odt",
"Nom", "Nav", "Dem", "Dac"],
Rand3Letters.start().filter!(a => !_monthNames[].canFind(a)).take(20)))
{
scope(failure) writefln("Month: %s", mon);
testBad(format("17 %s 2012 00:05:02 +0000", mon));
testBad(format("17 %s 2012 00:05 +0000", mon));
}
immutable string[7] daysOfWeekNames = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
{
auto start = SysTime(DateTime(2012, 11, 11, 9, 42, 0), UTC());
int day = 11;
foreach (int i, dow; daysOfWeekNames)
{
auto curr = start + dur!"days"(i);
test(format("%s, %s Nov 2012 09:42:00 +0000", dow, day), curr);
test(format("%s, %s Nov 2012 09:42 +0000", dow, day++), curr);
// Whether the day of the week matches the date is ignored.
test(format("%s, 11 Nov 2012 09:42:00 +0000", dow), start);
test(format("%s, 11 Nov 2012 09:42 +0000", dow), start);
}
}
foreach (dow; chain(daysOfWeekNames[].map!(a => toLower(a))(),
daysOfWeekNames[].map!(a => toUpper(a))(),
["Sum", "Spn", "Mom", "Man", "Tuf", "Tae", "Wem", "Wdd", "The", "Tur",
"Fro", "Fai", "San", "Sut"],
Rand3Letters.start().filter!(a => !daysOfWeekNames[].canFind(a)).take(20)))
{
scope(failure) writefln("Day of Week: %s", dow);
testBad(format("%s, 11 Nov 2012 09:42:00 +0000", dow));
testBad(format("%s, 11 Nov 2012 09:42 +0000", dow));
}
testBad("31 Dec 1899 23:59:59 +0000");
test("01 Jan 1900 00:00:00 +0000", SysTime(Date(1900, 1, 1), UTC()));
test("01 Jan 1900 00:00:00 -0000", SysTime(Date(1900, 1, 1),
new immutable SimpleTimeZone(Duration.zero)));
test("01 Jan 1900 00:00:00 -0700", SysTime(Date(1900, 1, 1),
new immutable SimpleTimeZone(dur!"hours"(-7))));
{
auto st1 = SysTime(Date(1900, 1, 1), UTC());
auto st2 = SysTime(Date(1900, 1, 1), new immutable SimpleTimeZone(dur!"hours"(-11)));
foreach (i; 1900 .. 2102)
{
test(format("1 Jan %05d 00:00 +0000", i), st1);
test(format("1 Jan %05d 00:00 -1100", i), st2);
st1.add!"years"(1);
st2.add!"years"(1);
}
st1.year = 9998;
st2.year = 9998;
foreach (i; 9998 .. 11_002)
{
test(format("1 Jan %05d 00:00 +0000", i), st1);
test(format("1 Jan %05d 00:00 -1100", i), st2);
st1.add!"years"(1);
st2.add!"years"(1);
}
}
testBad("12 Feb 1907 23:17:09 0000");
testBad("12 Feb 1907 23:17:09 +000");
testBad("12 Feb 1907 23:17:09 -000");
testBad("12 Feb 1907 23:17:09 +00000");
testBad("12 Feb 1907 23:17:09 -00000");
testBad("12 Feb 1907 23:17:09 +A");
testBad("12 Feb 1907 23:17:09 +PST");
testBad("12 Feb 1907 23:17:09 -A");
testBad("12 Feb 1907 23:17:09 -PST");
// test trailing stuff that gets ignored
{
foreach (c; chain(iota(0, 33), ['('], iota(127, ubyte.max + 1)))
{
scope(failure) writefln("c: %d", c);
test(format("21 Dec 2012 13:14:15 +0000%c", cast(char) c), SysTime(std1, UTC()));
test(format("21 Dec 2012 13:14:15 +0000%c ", cast(char) c), SysTime(std1, UTC()));
test(format("21 Dec 2012 13:14:15 +0000%chello", cast(char) c), SysTime(std1, UTC()));
}
}
// test trailing stuff that doesn't get ignored
{
foreach (c; chain(iota(33, '('), iota('(' + 1, 127)))
{
scope(failure) writefln("c: %d", c);
testBad(format("21 Dec 2012 13:14:15 +0000%c", cast(char) c));
testBad(format("21 Dec 2012 13:14:15 +0000%c ", cast(char) c));
testBad(format("21 Dec 2012 13:14:15 +0000%chello", cast(char) c));
}
}
testBad("32 Jan 2012 12:13:14 -0800");
testBad("31 Jan 2012 24:13:14 -0800");
testBad("31 Jan 2012 12:60:14 -0800");
testBad("31 Jan 2012 12:13:61 -0800");
testBad("31 Jan 2012 12:13:14 -0860");
test("31 Jan 2012 12:13:14 -0859",
SysTime(DateTime(2012, 1, 31, 12, 13, 14),
new immutable SimpleTimeZone(dur!"hours"(-8) + dur!"minutes"(-59))));
// leap-seconds
test("21 Dec 2012 15:59:60 -0800", SysTime(DateTime(2012, 12, 21, 15, 59, 59), pst));
// FWS
test("Sun,4 Jul 1976 05:04 +0930", SysTime(dst2, cstStd));
test("Sun,4 Jul 1976 05:04:22 +0930", SysTime(dst1, cstStd));
test("Sun,4 Jul 1976 05:04 +0930 (foo)", SysTime(dst2, cstStd));
test("Sun,4 Jul 1976 05:04:22 +0930 (foo)", SysTime(dst1, cstStd));
test("Sun,4 \r\n Jul \r\n 1976 \r\n 05:04 \r\n +0930 \r\n (foo)", SysTime(dst2, cstStd));
test("Sun,4 \r\n Jul \r\n 1976 \r\n 05:04:22 \r\n +0930 \r\n (foo)", SysTime(dst1, cstStd));
auto str = "01 Jan 2012 12:13:14 -0800 ";
test(str, SysTime(DateTime(2012, 1, 1, 12, 13, 14), new immutable SimpleTimeZone(hours(-8))));
foreach (i; 0 .. str.length)
{
auto currStr = str.dup;
currStr[i] = 'x';
scope(failure) writefln("failed: %s", currStr);
testBad(cast(string) currStr);
}
foreach (i; 2 .. str.length)
{
auto currStr = str[0 .. $ - i];
scope(failure) writefln("failed: %s", currStr);
testBad(cast(string) currStr);
testBad((cast(string) currStr) ~ " ");
}
}();
}
// Obsolete Format per section 4.3 of RFC 5322.
@system unittest
{
import std.algorithm.iteration : filter, map;
import std.ascii : letters;
import std.exception : collectExceptionMsg;
import std.format : format;
import std.meta : AliasSeq;
import std.range : chain, iota;
import std.stdio : writefln, writeln;
import std.string : representation;
auto std1 = SysTime(DateTime(2012, 12, 21, 13, 14, 15), UTC());
auto std2 = SysTime(DateTime(2012, 12, 21, 13, 14, 0), UTC());
auto std3 = SysTime(DateTime(1912, 12, 21, 13, 14, 15), UTC());
auto std4 = SysTime(DateTime(1912, 12, 21, 13, 14, 0), UTC());
auto dst1 = SysTime(DateTime(1976, 7, 4, 5, 4, 22), UTC());
auto dst2 = SysTime(DateTime(1976, 7, 4, 5, 4, 0), UTC());
auto tooLate1 = SysTime(Date(10_000, 1, 1), UTC());
auto tooLate2 = SysTime(DateTime(12_007, 12, 31, 12, 22, 19), UTC());
foreach (cr; AliasSeq!(function(string a){return cast(char[]) a;},
function(string a){return cast(ubyte[]) a;},
function(string a){return a;},
function(string a){return map!(b => cast(char) b)(a.representation);}))
(){ // avoid slow optimizations for large functions @@@BUG@@@ 2396
scope(failure) writeln(typeof(cr).stringof);
alias test = testParse822!cr;
{
auto list = ["", " ", " \r\n\t", "\t\r\n (hello world( frien(dog)) silly \r\n ) \t\t \r\n ()",
" \n ", "\t\n\t", " \n\t (foo) \n (bar) \r\n (baz) \n "];
foreach (i, cfws; list)
{
scope(failure) writefln("i: %s", i);
test(format("%1$s21%1$sDec%1$s2012%1$s13:14:15%1$s+0000%1$s", cfws), std1);
test(format("%1$s21%1$sDec%1$s2012%1$s13:14%1$s+0000%1$s", cfws), std2);
test(format("%1$sFri%1$s,%1$s21%1$sDec%1$s2012%1$s13:14%1$s+0000%1$s", cfws), std2);
test(format("%1$sFri%1$s,%1$s21%1$sDec%1$s2012%1$s13:14:15%1$s+0000%1$s", cfws), std1);
test(format("%1$s04%1$sJul%1$s1976%1$s05:04:22%1$s+0000%1$s", cfws), dst1);
test(format("%1$s04%1$sJul%1$s1976%1$s05:04%1$s+0000%1$s", cfws), dst2);
test(format("%1$sSun%1$s,%1$s04%1$sJul%1$s1976%1$s05:04%1$s+0000%1$s", cfws), dst2);
test(format("%1$sSun%1$s,%1$s04%1$sJul%1$s1976%1$s05:04:22 +0000%1$s", cfws), dst1);
test(format("%1$s4%1$sJul%1$s1976%1$s05:04:22%1$s+0000%1$s", cfws), dst1);
test(format("%1$s4%1$sJul%1$s1976%1$s05:04%1$s+0000%1$s", cfws), dst2);
test(format("%1$sSun%1$s,%1$s4%1$sJul%1$s1976%1$s05:04%1$s+0000%1$s", cfws), dst2);
test(format("%1$sSun%1$s,%1$s4%1$sJul%1$s1976%1$s05:04:22%1$s+0000%1$s", cfws), dst1);
test(format("%1$s21%1$sDec%1$s12%1$s13:14:15%1$s+0000%1$s", cfws), std1);
test(format("%1$s21%1$sDec%1$s12%1$s13:14%1$s+0000%1$s", cfws), std2);
test(format("%1$sFri%1$s,%1$s21%1$sDec%1$s12%1$s13:14%1$s+0000%1$s", cfws), std2);
test(format("%1$sFri%1$s,%1$s21%1$sDec%1$s12%1$s13:14:15%1$s+0000%1$s", cfws), std1);
test(format("%1$s04%1$sJul%1$s76%1$s05:04:22%1$s+0000%1$s", cfws), dst1);
test(format("%1$s04%1$sJul%1$s76%1$s05:04%1$s+0000%1$s", cfws), dst2);
test(format("%1$sSun%1$s,%1$s04%1$sJul%1$s76%1$s05:04%1$s+0000%1$s", cfws), dst2);
test(format("%1$sSun%1$s,%1$s04%1$sJul%1$s76%1$s05:04:22%1$s+0000%1$s", cfws), dst1);
test(format("%1$s4%1$sJul%1$s76 05:04:22%1$s+0000%1$s", cfws), dst1);
test(format("%1$s4%1$sJul%1$s76 05:04%1$s+0000%1$s", cfws), dst2);
test(format("%1$sSun%1$s,%1$s4%1$sJul%1$s76%1$s05:04%1$s+0000%1$s", cfws), dst2);
test(format("%1$sSun%1$s,%1$s4%1$sJul%1$s76%1$s05:04:22%1$s+0000%1$s", cfws), dst1);
test(format("%1$s21%1$sDec%1$s012%1$s13:14:15%1$s+0000%1$s", cfws), std3);
test(format("%1$s21%1$sDec%1$s012%1$s13:14%1$s+0000%1$s", cfws), std4);
test(format("%1$sFri%1$s,%1$s21%1$sDec%1$s012%1$s13:14%1$s+0000%1$s", cfws), std4);
test(format("%1$sFri%1$s,%1$s21%1$sDec%1$s012%1$s13:14:15%1$s+0000%1$s", cfws), std3);
test(format("%1$s04%1$sJul%1$s076%1$s05:04:22%1$s+0000%1$s", cfws), dst1);
test(format("%1$s04%1$sJul%1$s076%1$s05:04%1$s+0000%1$s", cfws), dst2);
test(format("%1$sSun%1$s,%1$s04%1$sJul%1$s076%1$s05:04%1$s+0000%1$s", cfws), dst2);
test(format("%1$sSun%1$s,%1$s04%1$sJul%1$s076%1$s05:04:22%1$s+0000%1$s", cfws), dst1);
test(format("%1$s4%1$sJul%1$s076%1$s05:04:22%1$s+0000%1$s", cfws), dst1);
test(format("%1$s4%1$sJul%1$s076%1$s05:04%1$s+0000%1$s", cfws), dst2);
test(format("%1$sSun%1$s,%1$s4%1$sJul%1$s076%1$s05:04%1$s+0000%1$s", cfws), dst2);
test(format("%1$sSun%1$s,%1$s4%1$sJul%1$s076%1$s05:04:22%1$s+0000%1$s", cfws), dst1);
test(format("%1$s1%1$sJan%1$s10000%1$s00:00:00%1$s+0000%1$s", cfws), tooLate1);
test(format("%1$s31%1$sDec%1$s12007%1$s12:22:19%1$s+0000%1$s", cfws), tooLate2);
test(format("%1$sSat%1$s,%1$s1%1$sJan%1$s10000%1$s00:00:00%1$s+0000%1$s", cfws), tooLate1);
test(format("%1$sSun%1$s,%1$s31%1$sDec%1$s12007%1$s12:22:19%1$s+0000%1$s", cfws), tooLate2);
}
}
// test years of 1, 2, and 3 digits.
{
auto st1 = SysTime(Date(2000, 1, 1), UTC());
auto st2 = SysTime(Date(2000, 1, 1), new immutable SimpleTimeZone(dur!"hours"(-12)));
foreach (i; 0 .. 50)
{
test(format("1 Jan %02d 00:00 GMT", i), st1);
test(format("1 Jan %02d 00:00 -1200", i), st2);
st1.add!"years"(1);
st2.add!"years"(1);
}
}
{
auto st1 = SysTime(Date(1950, 1, 1), UTC());
auto st2 = SysTime(Date(1950, 1, 1), new immutable SimpleTimeZone(dur!"hours"(-12)));
foreach (i; 50 .. 100)
{
test(format("1 Jan %02d 00:00 GMT", i), st1);
test(format("1 Jan %02d 00:00 -1200", i), st2);
st1.add!"years"(1);
st2.add!"years"(1);
}
}
{
auto st1 = SysTime(Date(1900, 1, 1), UTC());
auto st2 = SysTime(Date(1900, 1, 1), new immutable SimpleTimeZone(dur!"hours"(-11)));
foreach (i; 0 .. 1000)
{
test(format("1 Jan %03d 00:00 GMT", i), st1);
test(format("1 Jan %03d 00:00 -1100", i), st2);
st1.add!"years"(1);
st2.add!"years"(1);
}
}
foreach (i; 0 .. 10)
{
auto str1 = cr(format("1 Jan %d 00:00 GMT", i));
auto str2 = cr(format("1 Jan %d 00:00 -1200", i));
assertThrown!DateTimeException(parseRFC822DateTime(str1));
assertThrown!DateTimeException(parseRFC822DateTime(str1));
}
// test time zones
{
auto dt = DateTime(1982, 05, 03, 12, 22, 04);
test("Wed, 03 May 1982 12:22:04 UT", SysTime(dt, UTC()));
test("Wed, 03 May 1982 12:22:04 GMT", SysTime(dt, UTC()));
test("Wed, 03 May 1982 12:22:04 EST", SysTime(dt, new immutable SimpleTimeZone(dur!"hours"(-5))));
test("Wed, 03 May 1982 12:22:04 EDT", SysTime(dt, new immutable SimpleTimeZone(dur!"hours"(-4))));
test("Wed, 03 May 1982 12:22:04 CST", SysTime(dt, new immutable SimpleTimeZone(dur!"hours"(-6))));
test("Wed, 03 May 1982 12:22:04 CDT", SysTime(dt, new immutable SimpleTimeZone(dur!"hours"(-5))));
test("Wed, 03 May 1982 12:22:04 MST", SysTime(dt, new immutable SimpleTimeZone(dur!"hours"(-7))));
test("Wed, 03 May 1982 12:22:04 MDT", SysTime(dt, new immutable SimpleTimeZone(dur!"hours"(-6))));
test("Wed, 03 May 1982 12:22:04 PST", SysTime(dt, new immutable SimpleTimeZone(dur!"hours"(-8))));
test("Wed, 03 May 1982 12:22:04 PDT", SysTime(dt, new immutable SimpleTimeZone(dur!"hours"(-7))));
auto badTZ = new immutable SimpleTimeZone(Duration.zero);
foreach (dchar c; filter!(a => a != 'j' && a != 'J')(letters))
{
scope(failure) writefln("c: %s", c);
test(format("Wed, 03 May 1982 12:22:04 %s", c), SysTime(dt, badTZ));
test(format("Wed, 03 May 1982 12:22:04%s", c), SysTime(dt, badTZ));
}
foreach (dchar c; ['j', 'J'])
{
scope(failure) writefln("c: %s", c);
assertThrown!DateTimeException(parseRFC822DateTime(cr(format("Wed, 03 May 1982 12:22:04 %s", c))));
assertThrown!DateTimeException(parseRFC822DateTime(cr(format("Wed, 03 May 1982 12:22:04%s", c))));
}
foreach (string s; ["AAA", "GQW", "DDT", "PDA", "GT", "GM"])
{
scope(failure) writefln("s: %s", s);
test(format("Wed, 03 May 1982 12:22:04 %s", s), SysTime(dt, badTZ));
}
// test trailing stuff that gets ignored
{
foreach (c; chain(iota(0, 33), ['('], iota(127, ubyte.max + 1)))
{
scope(failure) writefln("c: %d", c);
test(format("21Dec1213:14:15+0000%c", cast(char) c), std1);
test(format("21Dec1213:14:15+0000%c ", cast(char) c), std1);
test(format("21Dec1213:14:15+0000%chello", cast(char) c), std1);
}
}
// test trailing stuff that doesn't get ignored
{
foreach (c; chain(iota(33, '('), iota('(' + 1, 127)))
{
scope(failure) writefln("c: %d", c);
assertThrown!DateTimeException(
parseRFC822DateTime(cr(format("21Dec1213:14:15+0000%c", cast(char) c))));
assertThrown!DateTimeException(
parseRFC822DateTime(cr(format("21Dec1213:14:15+0000%c ", cast(char) c))));
assertThrown!DateTimeException(
parseRFC822DateTime(cr(format("21Dec1213:14:15+0000%chello", cast(char) c))));
}
}
}
// test that the checks for minimum length work correctly and avoid
// any RangeErrors.
test("7Dec1200:00A", SysTime(DateTime(2012, 12, 7, 00, 00, 00),
new immutable SimpleTimeZone(Duration.zero)));
test("Fri,7Dec1200:00A", SysTime(DateTime(2012, 12, 7, 00, 00, 00),
new immutable SimpleTimeZone(Duration.zero)));
test("7Dec1200:00:00A", SysTime(DateTime(2012, 12, 7, 00, 00, 00),
new immutable SimpleTimeZone(Duration.zero)));
test("Fri,7Dec1200:00:00A", SysTime(DateTime(2012, 12, 7, 00, 00, 00),
new immutable SimpleTimeZone(Duration.zero)));
auto tooShortMsg = collectExceptionMsg!DateTimeException(parseRFC822DateTime(""));
foreach (str; ["Fri,7Dec1200:00:00", "7Dec1200:00:00"])
{
foreach (i; 0 .. str.length)
{
auto value = str[0 .. $ - i];
scope(failure) writeln(value);
assert(collectExceptionMsg!DateTimeException(parseRFC822DateTime(value)) == tooShortMsg);
}
}
}();
}
private:
/+
Returns the given hnsecs as an ISO string of fractional seconds.
+/
static string fracSecsToISOString(int hnsecs) @safe pure nothrow
{
assert(hnsecs >= 0);
try
{
if (hnsecs == 0)
return "";
string isoString = format(".%07d", hnsecs);
while (isoString[$ - 1] == '0')
isoString.popBack();
return isoString;
}
catch (Exception e)
assert(0, "format() threw.");
}
@safe unittest
{
assert(fracSecsToISOString(0) == "");
assert(fracSecsToISOString(1) == ".0000001");
assert(fracSecsToISOString(10) == ".000001");
assert(fracSecsToISOString(100) == ".00001");
assert(fracSecsToISOString(1000) == ".0001");
assert(fracSecsToISOString(10_000) == ".001");
assert(fracSecsToISOString(100_000) == ".01");
assert(fracSecsToISOString(1_000_000) == ".1");
assert(fracSecsToISOString(1_000_001) == ".1000001");
assert(fracSecsToISOString(1_001_001) == ".1001001");
assert(fracSecsToISOString(1_071_601) == ".1071601");
assert(fracSecsToISOString(1_271_641) == ".1271641");
assert(fracSecsToISOString(9_999_999) == ".9999999");
assert(fracSecsToISOString(9_999_990) == ".999999");
assert(fracSecsToISOString(9_999_900) == ".99999");
assert(fracSecsToISOString(9_999_000) == ".9999");
assert(fracSecsToISOString(9_990_000) == ".999");
assert(fracSecsToISOString(9_900_000) == ".99");
assert(fracSecsToISOString(9_000_000) == ".9");
assert(fracSecsToISOString(999) == ".0000999");
assert(fracSecsToISOString(9990) == ".000999");
assert(fracSecsToISOString(99_900) == ".00999");
assert(fracSecsToISOString(999_000) == ".0999");
}
/+
Returns a Duration corresponding to to the given ISO string of
fractional seconds.
+/
static Duration fracSecsFromISOString(S)(in S isoString) @trusted pure
if (isSomeString!S)
{
import std.algorithm.searching : all;
import std.ascii : isDigit;
import std.conv : to;
import std.string : representation;
if (isoString.empty)
return Duration.zero;
auto str = isoString.representation;
enforce(str[0] == '.', new DateTimeException("Invalid ISO String"));
str.popFront();
enforce(!str.empty && all!isDigit(str), new DateTimeException("Invalid ISO String"));
dchar[7] fullISOString = void;
foreach (i, ref dchar c; fullISOString)
{
if (i < str.length)
c = str[i];
else
c = '0';
}
return hnsecs(to!int(fullISOString[]));
}
@safe unittest
{
static void testFSInvalid(string isoString)
{
fracSecsFromISOString(isoString);
}
assertThrown!DateTimeException(testFSInvalid("."));
assertThrown!DateTimeException(testFSInvalid("0."));
assertThrown!DateTimeException(testFSInvalid("0"));
assertThrown!DateTimeException(testFSInvalid("0000000"));
assertThrown!DateTimeException(testFSInvalid("T"));
assertThrown!DateTimeException(testFSInvalid("T."));
assertThrown!DateTimeException(testFSInvalid(".T"));
assertThrown!DateTimeException(testFSInvalid(".00000Q0"));
assertThrown!DateTimeException(testFSInvalid(".000000Q"));
assertThrown!DateTimeException(testFSInvalid(".0000000Q"));
assertThrown!DateTimeException(testFSInvalid(".0000000000Q"));
assert(fracSecsFromISOString("") == Duration.zero);
assert(fracSecsFromISOString(".0000001") == hnsecs(1));
assert(fracSecsFromISOString(".000001") == hnsecs(10));
assert(fracSecsFromISOString(".00001") == hnsecs(100));
assert(fracSecsFromISOString(".0001") == hnsecs(1000));
assert(fracSecsFromISOString(".001") == hnsecs(10_000));
assert(fracSecsFromISOString(".01") == hnsecs(100_000));
assert(fracSecsFromISOString(".1") == hnsecs(1_000_000));
assert(fracSecsFromISOString(".1000001") == hnsecs(1_000_001));
assert(fracSecsFromISOString(".1001001") == hnsecs(1_001_001));
assert(fracSecsFromISOString(".1071601") == hnsecs(1_071_601));
assert(fracSecsFromISOString(".1271641") == hnsecs(1_271_641));
assert(fracSecsFromISOString(".9999999") == hnsecs(9_999_999));
assert(fracSecsFromISOString(".9999990") == hnsecs(9_999_990));
assert(fracSecsFromISOString(".999999") == hnsecs(9_999_990));
assert(fracSecsFromISOString(".9999900") == hnsecs(9_999_900));
assert(fracSecsFromISOString(".99999") == hnsecs(9_999_900));
assert(fracSecsFromISOString(".9999000") == hnsecs(9_999_000));
assert(fracSecsFromISOString(".9999") == hnsecs(9_999_000));
assert(fracSecsFromISOString(".9990000") == hnsecs(9_990_000));
assert(fracSecsFromISOString(".999") == hnsecs(9_990_000));
assert(fracSecsFromISOString(".9900000") == hnsecs(9_900_000));
assert(fracSecsFromISOString(".9900") == hnsecs(9_900_000));
assert(fracSecsFromISOString(".99") == hnsecs(9_900_000));
assert(fracSecsFromISOString(".9000000") == hnsecs(9_000_000));
assert(fracSecsFromISOString(".9") == hnsecs(9_000_000));
assert(fracSecsFromISOString(".0000999") == hnsecs(999));
assert(fracSecsFromISOString(".0009990") == hnsecs(9990));
assert(fracSecsFromISOString(".000999") == hnsecs(9990));
assert(fracSecsFromISOString(".0099900") == hnsecs(99_900));
assert(fracSecsFromISOString(".00999") == hnsecs(99_900));
assert(fracSecsFromISOString(".0999000") == hnsecs(999_000));
assert(fracSecsFromISOString(".0999") == hnsecs(999_000));
assert(fracSecsFromISOString(".00000000") == Duration.zero);
assert(fracSecsFromISOString(".00000001") == Duration.zero);
assert(fracSecsFromISOString(".00000009") == Duration.zero);
assert(fracSecsFromISOString(".1234567890") == hnsecs(1_234_567));
assert(fracSecsFromISOString(".12345678901234567890") == hnsecs(1_234_567));
}
/+
This function is used to split out the units without getting the remaining
hnsecs.
Params:
units = The units to split out.
hnsecs = The current total hnsecs.
Returns:
The split out value.
+/
long getUnitsFromHNSecs(string units)(long hnsecs) @safe pure nothrow
if (validTimeUnits(units) &&
CmpTimeUnits!(units, "months") < 0)
{
return convert!("hnsecs", units)(hnsecs);
}
@safe unittest
{
auto hnsecs = 2595000000007L;
immutable days = getUnitsFromHNSecs!"days"(hnsecs);
assert(days == 3);
assert(hnsecs == 2595000000007L);
}
/+
This function is used to split out the units without getting the units but
just the remaining hnsecs.
Params:
units = The units to split out.
hnsecs = The current total hnsecs.
Returns:
The remaining hnsecs.
+/
long removeUnitsFromHNSecs(string units)(long hnsecs) @safe pure nothrow
if (validTimeUnits(units) &&
CmpTimeUnits!(units, "months") < 0)
{
immutable value = convert!("hnsecs", units)(hnsecs);
return hnsecs - convert!(units, "hnsecs")(value);
}
@safe unittest
{
auto hnsecs = 2595000000007L;
auto returned = removeUnitsFromHNSecs!"days"(hnsecs);
assert(returned == 3000000007);
assert(hnsecs == 2595000000007L);
}
/+
Strips what RFC 5322, section 3.2.2 refers to as CFWS from the left-hand
side of the given range (it strips comments delimited by $(D '(') and
$(D ')') as well as folding whitespace).
It is assumed that the given range contains the value of a header field and
no terminating CRLF for the line (though the CRLF for folding whitespace is
of course expected and stripped) and thus that the only case of CR or LF is
in folding whitespace.
If a comment does not terminate correctly (e.g. mismatched parens) or if the
the FWS is malformed, then the range will be empty when stripCWFS is done.
However, only minimal validation of the content is done (e.g. quoted pairs
within a comment aren't validated beyond \$LPAREN or \$RPAREN, because
they're inside a comment, and thus their value doesn't matter anyway). It's
only when the content does not conform to the grammar rules for FWS and thus
literally cannot be parsed that content is considered invalid, and an empty
range is returned.
Note that _stripCFWS is eager, not lazy. It does not create a new range.
Rather, it pops off the CFWS from the range and returns it.
+/
R _stripCFWS(R)(R range)
if (isRandomAccessRange!R && hasSlicing!R && hasLength!R &&
(is(Unqual!(ElementType!R) == char) || is(Unqual!(ElementType!R) == ubyte)))
{
immutable e = range.length;
outer: for (size_t i = 0; i < e; )
{
switch (range[i])
{
case ' ': case '\t':
{
++i;
break;
}
case '\r':
{
if (i + 2 < e && range[i + 1] == '\n' && (range[i + 2] == ' ' || range[i + 2] == '\t'))
{
i += 3;
break;
}
break outer;
}
case '\n':
{
if (i + 1 < e && (range[i + 1] == ' ' || range[i + 1] == '\t'))
{
i += 2;
break;
}
break outer;
}
case '(':
{
++i;
size_t commentLevel = 1;
while (i < e)
{
if (range[i] == '(')
++commentLevel;
else if (range[i] == ')')
{
++i;
if (--commentLevel == 0)
continue outer;
continue;
}
else if (range[i] == '\\')
{
if (++i == e)
break outer;
}
++i;
}
break outer;
}
default: return range[i .. e];
}
}
return range[e .. e];
}
@system unittest
{
import std.algorithm.comparison : equal;
import std.algorithm.iteration : map;
import std.meta : AliasSeq;
import std.stdio : writeln;
import std.string : representation;
foreach (cr; AliasSeq!(function(string a){return cast(ubyte[]) a;},
function(string a){return map!(b => cast(char) b)(a.representation);}))
(){ // avoid slow optimizations for large functions @@@BUG@@@ 2396
scope(failure) writeln(typeof(cr).stringof);
assert(_stripCFWS(cr("")).empty);
assert(_stripCFWS(cr("\r")).empty);
assert(_stripCFWS(cr("\r\n")).empty);
assert(_stripCFWS(cr("\r\n ")).empty);
assert(_stripCFWS(cr(" \t\r\n")).empty);
assert(equal(_stripCFWS(cr(" \t\r\n hello")), cr("hello")));
assert(_stripCFWS(cr(" \t\r\nhello")).empty);
assert(_stripCFWS(cr(" \t\r\n\v")).empty);
assert(equal(_stripCFWS(cr("\v \t\r\n\v")), cr("\v \t\r\n\v")));
assert(_stripCFWS(cr("()")).empty);
assert(_stripCFWS(cr("(hello world)")).empty);
assert(_stripCFWS(cr("(hello world)(hello world)")).empty);
assert(_stripCFWS(cr("(hello world\r\n foo\r where's\nwaldo)")).empty);
assert(_stripCFWS(cr(" \t (hello \tworld\r\n foo\r where's\nwaldo)\t\t ")).empty);
assert(_stripCFWS(cr(" ")).empty);
assert(_stripCFWS(cr("\t\t\t")).empty);
assert(_stripCFWS(cr("\t \r\n\r \n")).empty);
assert(_stripCFWS(cr("(hello world) (can't find waldo) (he's lost)")).empty);
assert(_stripCFWS(cr("(hello\\) world) (can't \\(find waldo) (he's \\(\\)lost)")).empty);
assert(_stripCFWS(cr("(((((")).empty);
assert(_stripCFWS(cr("(((()))")).empty);
assert(_stripCFWS(cr("(((())))")).empty);
assert(equal(_stripCFWS(cr("(((()))))")), cr(")")));
assert(equal(_stripCFWS(cr(")))))")), cr(")))))")));
assert(equal(_stripCFWS(cr("()))))")), cr("))))")));
assert(equal(_stripCFWS(cr(" hello hello ")), cr("hello hello ")));
assert(equal(_stripCFWS(cr("\thello (world)")), cr("hello (world)")));
assert(equal(_stripCFWS(cr(" \r\n \\((\\)) foo")), cr("\\((\\)) foo")));
assert(equal(_stripCFWS(cr(" \r\n (\\((\\))) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" \r\n (\\(())) foo")), cr(") foo")));
assert(_stripCFWS(cr(" \r\n (((\\))) foo")).empty);
assert(_stripCFWS(cr("(hello)(hello)")).empty);
assert(_stripCFWS(cr(" \r\n (hello)\r\n (hello)")).empty);
assert(_stripCFWS(cr(" \r\n (hello) \r\n (hello) \r\n ")).empty);
assert(_stripCFWS(cr("\t\t\t\t(hello)\t\t\t\t(hello)\t\t\t\t")).empty);
assert(equal(_stripCFWS(cr(" \r\n (hello)\r\n (hello) \r\n hello")), cr("hello")));
assert(equal(_stripCFWS(cr(" \r\n (hello) \r\n (hello) \r\n hello")), cr("hello")));
assert(equal(_stripCFWS(cr("\t\r\n\t(hello)\r\n\t(hello)\t\r\n hello")), cr("hello")));
assert(equal(_stripCFWS(cr("\t\r\n\t(hello)\t\r\n\t(hello)\t\r\n hello")), cr("hello")));
assert(equal(_stripCFWS(cr(" \r\n (hello) \r\n \r\n (hello) \r\n hello")), cr("hello")));
assert(equal(_stripCFWS(cr(" \r\n (hello) \r\n (hello) \r\n \r\n hello")), cr("hello")));
assert(equal(_stripCFWS(cr(" \r\n \r\n (hello)\t\r\n (hello) \r\n hello")), cr("hello")));
assert(equal(_stripCFWS(cr(" \r\n\t\r\n\t(hello)\t\r\n (hello) \r\n hello")), cr("hello")));
assert(equal(_stripCFWS(cr(" (\r\n ( \r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n ( \r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" (\t\r\n ( \r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" (\r\n\t( \r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n (\t\r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n (\r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n (\r\n\t) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n ( \r\n) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n ( \r\n )\t\r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n ( \r\n )\r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n ( \r\n ) \r\n) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n ( \r\n ) \r\n\t) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n ( \r\n ) \r\n ) \r\n foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n ( \r\n ) \r\n )\t\r\n foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n ( \r\n ) \r\n )\r\n foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n \r\n ( \r\n \r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n \r\n ( \r\n \r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" (\t\r\n \r\n ( \r\n \r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" (\r\n \r\n\t( \r\n \r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" (\r\n \r\n( \r\n \r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" (\r\n \r\n ( \r\n \r\n\t) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" (\r\n \r\n ( \r\n \r\n )\t\r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" (\r\n \r\n ( \r\n \r\n )\r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n bar \r\n ( \r\n bar \r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n () \r\n ( \r\n () \r\n ) \r\n ) foo")), cr("foo")));
assert(equal(_stripCFWS(cr(" ( \r\n \\\\ \r\n ( \r\n \\\\ \r\n ) \r\n ) foo")), cr("foo")));
assert(_stripCFWS(cr("(hello)(hello)")).empty);
assert(_stripCFWS(cr(" \n (hello)\n (hello) \n ")).empty);
assert(_stripCFWS(cr(" \n (hello) \n (hello) \n ")).empty);
assert(equal(_stripCFWS(cr(" \n (hello)\n (hello) \n hello")), cr("hello")));
assert(equal(_stripCFWS(cr(" \n (hello) \n (hello) \n hello")), cr("hello")));
assert(equal(_stripCFWS(cr("\t\n\t(hello)\n\t(hello)\t\n hello")), cr("hello")));
assert(equal(_stripCFWS(cr("\t\n\t(hello)\t\n\t(hello)\t\n hello")), cr("hello")));
assert(equal(_stripCFWS(cr(" \n (hello) \n \n (hello) \n hello")), cr("hello")));
assert(equal(_stripCFWS(cr(" \n (hello) \n (hello) \n \n hello")), cr("hello")));
assert(equal(_stripCFWS(cr(" \n \n (hello)\t\n (hello) \n hello")), cr("hello")));
assert(equal(_stripCFWS(cr(" \n\t\n\t(hello)\t\n (hello) \n hello")), cr("hello")));
}();
}
// This is so that we don't have to worry about std.conv.to throwing. It also
// doesn't have to worry about quite as many cases as std.conv.to, since it
// doesn't have to worry about a sign on the value or about whether it fits.
T _convDigits(T, R)(R str)
if (isIntegral!T && isSigned!T) // The constraints on R were already covered by parseRFC822DateTime.
{
import std.ascii : isDigit;
assert(!str.empty);
T num = 0;
foreach (i; 0 .. str.length)
{
if (i != 0)
num *= 10;
if (!isDigit(str[i]))
return -1;
num += str[i] - '0';
}
return num;
}
@safe unittest
{
import std.conv : to;
import std.range : chain, iota;
import std.stdio : writeln;
foreach (i; chain(iota(0, 101), [250, 999, 1000, 1001, 2345, 9999]))
{
scope(failure) writeln(i);
assert(_convDigits!int(to!string(i)) == i);
}
foreach (str; ["-42", "+42", "1a", "1 ", " ", " 42 "])
{
scope(failure) writeln(str);
assert(_convDigits!int(str) == -1);
}
}
version(unittest)
{
// Variables to help in testing.
Duration currLocalDiffFromUTC;
immutable (TimeZone)[] testTZs;
// All of these helper arrays are sorted in ascending order.
auto testYearsBC = [-1999, -1200, -600, -4, -1, 0];
auto testYearsAD = [1, 4, 1000, 1999, 2000, 2012];
// I'd use a Tuple, but I get forward reference errors if I try.
struct MonthDay
{
Month month;
short day;
this(int m, short d)
{
month = cast(Month) m;
day = d;
}
}
MonthDay[] testMonthDays = [MonthDay(1, 1),
MonthDay(1, 2),
MonthDay(3, 17),
MonthDay(7, 4),
MonthDay(10, 27),
MonthDay(12, 30),
MonthDay(12, 31)];
auto testDays = [1, 2, 9, 10, 16, 20, 25, 28, 29, 30, 31];
auto testTODs = [TimeOfDay(0, 0, 0),
TimeOfDay(0, 0, 1),
TimeOfDay(0, 1, 0),
TimeOfDay(1, 0, 0),
TimeOfDay(13, 13, 13),
TimeOfDay(23, 59, 59)];
auto testHours = [0, 1, 12, 22, 23];
auto testMinSecs = [0, 1, 30, 58, 59];
// Throwing exceptions is incredibly expensive, so we want to use a smaller
// set of values for tests using assertThrown.
auto testTODsThrown = [TimeOfDay(0, 0, 0),
TimeOfDay(13, 13, 13),
TimeOfDay(23, 59, 59)];
Date[] testDatesBC;
Date[] testDatesAD;
DateTime[] testDateTimesBC;
DateTime[] testDateTimesAD;
Duration[] testFracSecs;
SysTime[] testSysTimesBC;
SysTime[] testSysTimesAD;
// I'd use a Tuple, but I get forward reference errors if I try.
struct GregDay { int day; Date date; }
auto testGregDaysBC = [GregDay(-1_373_427, Date(-3760, 9, 7)), // Start of the Hebrew Calendar
GregDay(-735_233, Date(-2012, 1, 1)),
GregDay(-735_202, Date(-2012, 2, 1)),
GregDay(-735_175, Date(-2012, 2, 28)),
GregDay(-735_174, Date(-2012, 2, 29)),
GregDay(-735_173, Date(-2012, 3, 1)),
GregDay(-734_502, Date(-2010, 1, 1)),
GregDay(-734_472, Date(-2010, 1, 31)),
GregDay(-734_471, Date(-2010, 2, 1)),
GregDay(-734_444, Date(-2010, 2, 28)),
GregDay(-734_443, Date(-2010, 3, 1)),
GregDay(-734_413, Date(-2010, 3, 31)),
GregDay(-734_412, Date(-2010, 4, 1)),
GregDay(-734_383, Date(-2010, 4, 30)),
GregDay(-734_382, Date(-2010, 5, 1)),
GregDay(-734_352, Date(-2010, 5, 31)),
GregDay(-734_351, Date(-2010, 6, 1)),
GregDay(-734_322, Date(-2010, 6, 30)),
GregDay(-734_321, Date(-2010, 7, 1)),
GregDay(-734_291, Date(-2010, 7, 31)),
GregDay(-734_290, Date(-2010, 8, 1)),
GregDay(-734_260, Date(-2010, 8, 31)),
GregDay(-734_259, Date(-2010, 9, 1)),
GregDay(-734_230, Date(-2010, 9, 30)),
GregDay(-734_229, Date(-2010, 10, 1)),
GregDay(-734_199, Date(-2010, 10, 31)),
GregDay(-734_198, Date(-2010, 11, 1)),
GregDay(-734_169, Date(-2010, 11, 30)),
GregDay(-734_168, Date(-2010, 12, 1)),
GregDay(-734_139, Date(-2010, 12, 30)),
GregDay(-734_138, Date(-2010, 12, 31)),
GregDay(-731_215, Date(-2001, 1, 1)),
GregDay(-730_850, Date(-2000, 1, 1)),
GregDay(-730_849, Date(-2000, 1, 2)),
GregDay(-730_486, Date(-2000, 12, 30)),
GregDay(-730_485, Date(-2000, 12, 31)),
GregDay(-730_484, Date(-1999, 1, 1)),
GregDay(-694_690, Date(-1901, 1, 1)),
GregDay(-694_325, Date(-1900, 1, 1)),
GregDay(-585_118, Date(-1601, 1, 1)),
GregDay(-584_753, Date(-1600, 1, 1)),
GregDay(-584_388, Date(-1600, 12, 31)),
GregDay(-584_387, Date(-1599, 1, 1)),
GregDay(-365_972, Date(-1001, 1, 1)),
GregDay(-365_607, Date(-1000, 1, 1)),
GregDay(-183_351, Date(-501, 1, 1)),
GregDay(-182_986, Date(-500, 1, 1)),
GregDay(-182_621, Date(-499, 1, 1)),
GregDay(-146_827, Date(-401, 1, 1)),
GregDay(-146_462, Date(-400, 1, 1)),
GregDay(-146_097, Date(-400, 12, 31)),
GregDay(-110_302, Date(-301, 1, 1)),
GregDay(-109_937, Date(-300, 1, 1)),
GregDay(-73_778, Date(-201, 1, 1)),
GregDay(-73_413, Date(-200, 1, 1)),
GregDay(-38_715, Date(-105, 1, 1)),
GregDay(-37_254, Date(-101, 1, 1)),
GregDay(-36_889, Date(-100, 1, 1)),
GregDay(-36_524, Date(-99, 1, 1)),
GregDay(-36_160, Date(-99, 12, 31)),
GregDay(-35_794, Date(-97, 1, 1)),
GregDay(-18_627, Date(-50, 1, 1)),
GregDay(-18_262, Date(-49, 1, 1)),
GregDay(-3652, Date(-9, 1, 1)),
GregDay(-2191, Date(-5, 1, 1)),
GregDay(-1827, Date(-5, 12, 31)),
GregDay(-1826, Date(-4, 1, 1)),
GregDay(-1825, Date(-4, 1, 2)),
GregDay(-1462, Date(-4, 12, 30)),
GregDay(-1461, Date(-4, 12, 31)),
GregDay(-1460, Date(-3, 1, 1)),
GregDay(-1096, Date(-3, 12, 31)),
GregDay(-1095, Date(-2, 1, 1)),
GregDay(-731, Date(-2, 12, 31)),
GregDay(-730, Date(-1, 1, 1)),
GregDay(-367, Date(-1, 12, 30)),
GregDay(-366, Date(-1, 12, 31)),
GregDay(-365, Date(0, 1, 1)),
GregDay(-31, Date(0, 11, 30)),
GregDay(-30, Date(0, 12, 1)),
GregDay(-1, Date(0, 12, 30)),
GregDay(0, Date(0, 12, 31))];
auto testGregDaysAD = [GregDay(1, Date(1, 1, 1)),
GregDay(2, Date(1, 1, 2)),
GregDay(32, Date(1, 2, 1)),
GregDay(365, Date(1, 12, 31)),
GregDay(366, Date(2, 1, 1)),
GregDay(731, Date(3, 1, 1)),
GregDay(1096, Date(4, 1, 1)),
GregDay(1097, Date(4, 1, 2)),
GregDay(1460, Date(4, 12, 30)),
GregDay(1461, Date(4, 12, 31)),
GregDay(1462, Date(5, 1, 1)),
GregDay(17_898, Date(50, 1, 1)),
GregDay(35_065, Date(97, 1, 1)),
GregDay(36_160, Date(100, 1, 1)),
GregDay(36_525, Date(101, 1, 1)),
GregDay(37_986, Date(105, 1, 1)),
GregDay(72_684, Date(200, 1, 1)),
GregDay(73_049, Date(201, 1, 1)),
GregDay(109_208, Date(300, 1, 1)),
GregDay(109_573, Date(301, 1, 1)),
GregDay(145_732, Date(400, 1, 1)),
GregDay(146_098, Date(401, 1, 1)),
GregDay(182_257, Date(500, 1, 1)),
GregDay(182_622, Date(501, 1, 1)),
GregDay(364_878, Date(1000, 1, 1)),
GregDay(365_243, Date(1001, 1, 1)),
GregDay(584_023, Date(1600, 1, 1)),
GregDay(584_389, Date(1601, 1, 1)),
GregDay(693_596, Date(1900, 1, 1)),
GregDay(693_961, Date(1901, 1, 1)),
GregDay(729_755, Date(1999, 1, 1)),
GregDay(730_120, Date(2000, 1, 1)),
GregDay(730_121, Date(2000, 1, 2)),
GregDay(730_484, Date(2000, 12, 30)),
GregDay(730_485, Date(2000, 12, 31)),
GregDay(730_486, Date(2001, 1, 1)),
GregDay(733_773, Date(2010, 1, 1)),
GregDay(733_774, Date(2010, 1, 2)),
GregDay(733_803, Date(2010, 1, 31)),
GregDay(733_804, Date(2010, 2, 1)),
GregDay(733_831, Date(2010, 2, 28)),
GregDay(733_832, Date(2010, 3, 1)),
GregDay(733_862, Date(2010, 3, 31)),
GregDay(733_863, Date(2010, 4, 1)),
GregDay(733_892, Date(2010, 4, 30)),
GregDay(733_893, Date(2010, 5, 1)),
GregDay(733_923, Date(2010, 5, 31)),
GregDay(733_924, Date(2010, 6, 1)),
GregDay(733_953, Date(2010, 6, 30)),
GregDay(733_954, Date(2010, 7, 1)),
GregDay(733_984, Date(2010, 7, 31)),
GregDay(733_985, Date(2010, 8, 1)),
GregDay(734_015, Date(2010, 8, 31)),
GregDay(734_016, Date(2010, 9, 1)),
GregDay(734_045, Date(2010, 9, 30)),
GregDay(734_046, Date(2010, 10, 1)),
GregDay(734_076, Date(2010, 10, 31)),
GregDay(734_077, Date(2010, 11, 1)),
GregDay(734_106, Date(2010, 11, 30)),
GregDay(734_107, Date(2010, 12, 1)),
GregDay(734_136, Date(2010, 12, 30)),
GregDay(734_137, Date(2010, 12, 31)),
GregDay(734_503, Date(2012, 1, 1)),
GregDay(734_534, Date(2012, 2, 1)),
GregDay(734_561, Date(2012, 2, 28)),
GregDay(734_562, Date(2012, 2, 29)),
GregDay(734_563, Date(2012, 3, 1)),
GregDay(734_858, Date(2012, 12, 21))];
// I'd use a Tuple, but I get forward reference errors if I try.
struct DayOfYear { int day; MonthDay md; }
auto testDaysOfYear = [DayOfYear(1, MonthDay(1, 1)),
DayOfYear(2, MonthDay(1, 2)),
DayOfYear(3, MonthDay(1, 3)),
DayOfYear(31, MonthDay(1, 31)),
DayOfYear(32, MonthDay(2, 1)),
DayOfYear(59, MonthDay(2, 28)),
DayOfYear(60, MonthDay(3, 1)),
DayOfYear(90, MonthDay(3, 31)),
DayOfYear(91, MonthDay(4, 1)),
DayOfYear(120, MonthDay(4, 30)),
DayOfYear(121, MonthDay(5, 1)),
DayOfYear(151, MonthDay(5, 31)),
DayOfYear(152, MonthDay(6, 1)),
DayOfYear(181, MonthDay(6, 30)),
DayOfYear(182, MonthDay(7, 1)),
DayOfYear(212, MonthDay(7, 31)),
DayOfYear(213, MonthDay(8, 1)),
DayOfYear(243, MonthDay(8, 31)),
DayOfYear(244, MonthDay(9, 1)),
DayOfYear(273, MonthDay(9, 30)),
DayOfYear(274, MonthDay(10, 1)),
DayOfYear(304, MonthDay(10, 31)),
DayOfYear(305, MonthDay(11, 1)),
DayOfYear(334, MonthDay(11, 30)),
DayOfYear(335, MonthDay(12, 1)),
DayOfYear(363, MonthDay(12, 29)),
DayOfYear(364, MonthDay(12, 30)),
DayOfYear(365, MonthDay(12, 31))];
auto testDaysOfLeapYear = [DayOfYear(1, MonthDay(1, 1)),
DayOfYear(2, MonthDay(1, 2)),
DayOfYear(3, MonthDay(1, 3)),
DayOfYear(31, MonthDay(1, 31)),
DayOfYear(32, MonthDay(2, 1)),
DayOfYear(59, MonthDay(2, 28)),
DayOfYear(60, MonthDay(2, 29)),
DayOfYear(61, MonthDay(3, 1)),
DayOfYear(91, MonthDay(3, 31)),
DayOfYear(92, MonthDay(4, 1)),
DayOfYear(121, MonthDay(4, 30)),
DayOfYear(122, MonthDay(5, 1)),
DayOfYear(152, MonthDay(5, 31)),
DayOfYear(153, MonthDay(6, 1)),
DayOfYear(182, MonthDay(6, 30)),
DayOfYear(183, MonthDay(7, 1)),
DayOfYear(213, MonthDay(7, 31)),
DayOfYear(214, MonthDay(8, 1)),
DayOfYear(244, MonthDay(8, 31)),
DayOfYear(245, MonthDay(9, 1)),
DayOfYear(274, MonthDay(9, 30)),
DayOfYear(275, MonthDay(10, 1)),
DayOfYear(305, MonthDay(10, 31)),
DayOfYear(306, MonthDay(11, 1)),
DayOfYear(335, MonthDay(11, 30)),
DayOfYear(336, MonthDay(12, 1)),
DayOfYear(364, MonthDay(12, 29)),
DayOfYear(365, MonthDay(12, 30)),
DayOfYear(366, MonthDay(12, 31))];
void initializeTests() @safe
{
import std.algorithm.sorting : sort;
import std.typecons : Rebindable;
immutable lt = LocalTime().utcToTZ(0);
currLocalDiffFromUTC = dur!"hnsecs"(lt);
version(Posix)
{
immutable otherTZ = lt < 0 ? PosixTimeZone.getTimeZone("Australia/Sydney")
: PosixTimeZone.getTimeZone("America/Denver");
}
else version(Windows)
{
immutable otherTZ = lt < 0 ? WindowsTimeZone.getTimeZone("AUS Eastern Standard Time")
: WindowsTimeZone.getTimeZone("Mountain Standard Time");
}
immutable ot = otherTZ.utcToTZ(0);
auto diffs = [0L, lt, ot];
auto diffAA = [0L : Rebindable!(immutable TimeZone)(UTC())];
diffAA[lt] = Rebindable!(immutable TimeZone)(LocalTime());
diffAA[ot] = Rebindable!(immutable TimeZone)(otherTZ);
sort(diffs);
testTZs = [diffAA[diffs[0]], diffAA[diffs[1]], diffAA[diffs[2]]];
testFracSecs = [Duration.zero, hnsecs(1), hnsecs(5007), hnsecs(9_999_999)];
foreach (year; testYearsBC)
{
foreach (md; testMonthDays)
testDatesBC ~= Date(year, md.month, md.day);
}
foreach (year; testYearsAD)
{
foreach (md; testMonthDays)
testDatesAD ~= Date(year, md.month, md.day);
}
foreach (dt; testDatesBC)
{
foreach (tod; testTODs)
testDateTimesBC ~= DateTime(dt, tod);
}
foreach (dt; testDatesAD)
{
foreach (tod; testTODs)
testDateTimesAD ~= DateTime(dt, tod);
}
foreach (dt; testDateTimesBC)
{
foreach (tz; testTZs)
{
foreach (fs; testFracSecs)
testSysTimesBC ~= SysTime(dt, fs, tz);
}
}
foreach (dt; testDateTimesAD)
{
foreach (tz; testTZs)
{
foreach (fs; testFracSecs)
testSysTimesAD ~= SysTime(dt, fs, tz);
}
}
}
}
| D |
/home/victor/Rust/server/target/debug/deps/server-463bc205f902c6b6: src/main.rs
/home/victor/Rust/server/target/debug/deps/server-463bc205f902c6b6.d: src/main.rs
src/main.rs:
| D |
module ppl.resolve.ResolveUnary;
import ppl.internal;
final class ResolveUnary {
private:
Module module_;
ResolveModule resolver;
FoldUnreferenced foldUnreferenced;
public:
this(ResolveModule resolver) {
this.resolver = resolver;
this.module_ = resolver.module_;
this.foldUnreferenced = resolver.foldUnreferenced;
}
void resolve(Unary n) {
/// If expression is a const literal number then apply the
/// operator and replace Unary with the result
if(n.isResolved && n.comptime()==CT.YES) {
auto lit = n.expr().as!LiteralNumber;
if(lit) {
bool ok = lit.value.applyUnary(n.op);
if(ok) {
lit.str = lit.value.getString();
foldUnreferenced.fold(n, lit);
return;
} else {
module_.addError(n, "(%s %s) is not supported".format(n.op.value, n.expr.getType), true);
}
}
}
}
}
| D |
module mystd.internal.unicode_decomp;
import mystd.internal.unicode_tables;
@safe pure nothrow @nogc:
static if(size_t.sizeof == 8) {
//22656 bytes
enum compatMappingTrieEntries = TrieEntry!(ushort, 8, 8, 5)([ 0x0, 0x20, 0x2a0], [ 0x100, 0xa00, 0x21c0], [ 0x402030202020100, 0x706020202020205, 0x802020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x0, 0x3000200010000, 0x7000600050004, 0xa000900080000, 0xc000b, 0xf000e000d0000, 0x11001000000000, 0x15001400130012, 0x19001800170016, 0x1b001a00000000, 0x0, 0x1c, 0x1e0000001d0000, 0x1f00000000, 0x0, 0x0, 0x0, 0x0, 0x2100200000, 0x2200000000, 0x2400230000, 0x0, 0x2500000000, 0x2700000026, 0x2800000000, 0x2900000000, 0x2a00000000, 0x2b00000000, 0x2c0000, 0x2e002d0000, 0x3100300000002f, 0x330032, 0x340000, 0x35000000000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3800370036, 0x0, 0x0, 0x0, 0x3b003a00390000, 0x3d003c, 0x410040003f003e, 0x45004400430042, 0x49004800470046, 0x4d004c004b004a, 0x510050004f004e, 0x530052, 0x57005600550054, 0x5a00590058, 0x5e005d005c005b, 0x6100000060005f, 0x620000, 0x0, 0x63000000000000, 0x67006600650064, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x69000000000068, 0x6a00000000, 0x0, 0x0, 0x6b000000000000, 0x0, 0x6c000000000000, 0x0, 0x0, 0x6e00000000006d, 0x7200710070006f, 0x7500740073, 0x79007800770076, 0x7d007c007b007a, 0x80007f007e0000, 0x81, 0x85008400830082, 0x89008800870086, 0x8d008c008b008a, 0x910090008f008e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x92000000000000, 0x93000000000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x97009600950094, 0x9b009a00990098, 0x9f009e009d009c, 0xa200a100a0, 0xa600a500a400a3, 0xaa00a900a800a7, 0xae00ad00ac00ab, 0xb200b100b000af, 0xb600b500b400b3, 0xba00b900b800b7, 0xbe00bd00bc00bb, 0xc200c100c000bf, 0xc600c500c400c3, 0xca00c900c800c7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xcc00cb, 0xcd0000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xcf00ce00000000, 0xd100d00000, 0x0, 0x0, 0x0, 0x0, 0xd500d400d300d2, 0xd900d800d700d6, 0xdd00dc00db00da, 0xdf00d300d200de, 0xe200e100e000d5, 0xe500e400e300d9, 0xe900e800e700e6, 0xed00ec00eb00ea, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf100f000ef00ee, 0xf300f2, 0x0, 0x0, 0x0, 0x0, 0xf700f600f500f4, 0xf8, 0xfb00fa00f9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xff00fe00fd00fc, 0x103010201010100, 0x107010601050104, 0x10b010a01090108, 0x10c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x0, 0x69200000015, 0x9000000000000, 0x30f034300000000, 0x11b20003, 0x78703140048, 0x49403c603ce, 0x58605730570056d, 0x5f8000005b005a6, 0x6580631062e062b, 0x6f906ea06e706e4, 0x7a907a6078f0000, 0x7e307bf07ac, 0x8b708b408b10000, 0x95f08cb, 0x9c209af09ac09a9, 0xa47000009ec09e2, 0xab30a8c0a890a86, 0xb550b490b460b43, 0xc5e0c5b0c410000, 0xc980c740c61, 0xd6e0d6b0d680000, 0xe1b00000e0c0d82, 0x9c8058c09c50589, 0xa3b05ec0a0a05ce, 0xa4105f20a3e05ef, 0xa6e061a0a4405f5, 0xaa2064700000000, 0xab006550aad0652, 0xab9065e0ad00675, 0xb0106a00afb069a, 0xb0a06a90b0406a3, 0xb1606ba, 0xb4f06f00b4c06ed, 0xb6b070f0b5206f3, 0xb3706d8000006f6, 0xbae072e0b730717, 0x7500bcc07430000, 0x7400bcf07460bd9, 0x78c000000000bc9, 0x7950c4d079b0c3e, 0xed70c47, 0xc8e07d90c8307ce, 0xca207ed, 0xd1d08580d070842, 0xd2b086c0d0d0848, 0xd49088a0d320873, 0xd5d08a60d380879, 0xd54089d, 0xd7808c10d7108ba, 0xd9808e10d7f08c8, 0xdc4090d0d9b08e4, 0xe0f09620de9093f, 0x97f0e290979096e, 0x8400614060d0e2f, 0xcae07f9, 0x0, 0x0, 0x8f0000000000000, 0xda7, 0x0, 0x0, 0x0, 0x0, 0x7360a670613060c, 0x78307800bb9073d, 0x70309f305b70c32, 0x8e70ca507f00b5f, 0x8d20d8d08d60d9e, 0x8ce0d9108da0d89, 0x9e505a900000d85, 0xe630e5a09de05a2, 0xb0706a600000000, 0xccc08170ba80728, 0xecc0e7b0ccf081a, 0xa64061006090b76, 0xaf80697, 0x9ef05b30c3b0789, 0xe680e5d0e600e57, 0x9f905bd09f605ba, 0xabf06640abc0661, 0xb6507090b620706, 0xcab07f60ca807f3, 0xd13084e0d10084b, 0xda408ed0da108ea, 0xd5a08a30d460887, 0xb1f06c300000000, 0x0, 0x9db059f00000000, 0xc9b07e60ac9066e, 0xc9107dc0c7b07c6, 0xe1509680c9407df, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xa11073e0e9a0b0d, 0xde10eb80eb60eb4, 0x695, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4b00240012000f, 0x270006, 0xb4108400a280e96, 0xecf, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2b00000004001a, 0x1d, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xed5, 0x5400000000, 0x54600000000, 0x0, 0x7410ee8001c0003, 0xfb40f630f43, 0x103c101600000fed, 0x1185, 0x0, 0x0, 0x0, 0x0, 0x0, 0x101f0fbd00000000, 0x1175111910f5108f, 0x1213, 0x0, 0x0, 0x0, 0x0, 0x0, 0x120c117e00000000, 0x124b120311d5, 0x10161011116e10ea, 0x11ee123c101f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x11f811f011ae, 0x10f00fad, 0x100d0000, 0x0, 0x12ad000012b612b0, 0x12a4000000000000, 0x0, 0x12d712c212ce, 0x0, 0x0, 0x12c80000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x130a0000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x12ef000012f812f2, 0x132d000000000000, 0x0, 0x131b13041310, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1333133000000000, 0x0, 0x0, 0x12fb12b90000, 0x0, 0x0, 0x0, 0x12ec12aa12e912a7, 0x12f512b300000000, 0x1339133600000000, 0x130112bf12fe12bc, 0x130712c500000000, 0x131512d1130d12cb, 0x133f133c00000000, 0x131812d4132a12e6, 0x132112dd131e12da, 0x132412e0, 0x132712e3, 0x0, 0x0, 0x1342000000000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x13e913e600000000, 0x17ca13ec178f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x185b179213ef0000, 0x1811, 0x0, 0x18520000186d, 0x0, 0x0, 0x0, 0x186a000000000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18820000, 0x0, 0x188b0000, 0x188e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1879187618731870, 0x18881885187f187c, 0x0, 0x0, 0x189a000000000000, 0x189d, 0x0, 0x0, 0x0, 0x1897000018941891, 0x0, 0x0, 0x0, 0x0, 0x18ac000000000000, 0x18af00000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18a618a318a00000, 0x18a900000000, 0x0, 0x0, 0x18b80000000018bb, 0x18be, 0x0, 0x0, 0x0, 0x18b518b2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18c1, 0x0, 0x0, 0x0, 0x0, 0x18ca18c400000000, 0x18c7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18cd, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18d0, 0x18da000000000000, 0x18d618d3000018dd, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18e618e000000000, 0x18e3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18e900000000, 0x18f318ef18ec, 0x0, 0x0, 0x0, 0x0, 0x18f6000000000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18ff000000000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18fc18f9, 0x0, 0x0, 0x0, 0x1902, 0x0, 0x0, 0x0, 0x0, 0x1907000000000000, 0x0, 0x0, 0x190a0000, 0x190d00000000, 0x1910000000000000, 0x0, 0x1913, 0x0, 0x0, 0x19040000, 0x0, 0x1916000000000000, 0x1931193519190000, 0x1938193c, 0x0, 0x191c0000, 0x0, 0x0, 0x0, 0x1922000000000000, 0x0, 0x0, 0x19250000, 0x192800000000, 0x192b000000000000, 0x0, 0x192e, 0x0, 0x0, 0x191f0000, 0x0, 0x0, 0x193f00000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1942, 0x0, 0x1a3800000000, 0x1a3e00001a3b, 0x1a4400001a41, 0x1a4700000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1a4a000000000000, 0x1a4d0000, 0x1a5600001a531a50, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x5d50e550568, 0x6870e75062905e6, 0x71a060706cf06ac, 0x77e07230734, 0x82c06af0e7e07a4, 0x6920770056b088d, 0x9371a590e840e82, 0xe8e0e8c0a7d0a2e, 0xb79000006020e90, 0xe8807870e7105d3, 0xba30cd31a5d1a5b, 0x86a0ea41a610a24, 0x10ee10ec10ea1a63, 0xa110ae0123e123c, 0x10ec10ea086a0a24, 0x123e123c11f0, 0x0, 0x0, 0x0, 0x1313, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xe86000000000000, 0xe900e660e8a09a0, 0xe980e940e920ad9, 0x1a650ea00e9e0e9c, 0xed31a670ea20ed1, 0xeac0eaa0ea60ea8, 0xeba0eb20eb00eae, 0xec00ebe0e790ebc, 0x6110ec40ec21a5f, 0x116e0eca0ec80ec6, 0xa1305da0a0705cb, 0xa1905e00a1605dd, 0xa6b06170a4a05fb, 0xa7a06260a71061d, 0xa7706230a740620, 0xaa9064e0aa5064a, 0xad6067b0ad30678, 0xaef06840acc0671, 0xb1906bd0afe069d, 0xb1c06c00b2206c6, 0xb2806cc0b2506c9, 0xb5806fc0b6e0712, 0xbab072b0ba50725, 0xbd207490bb10731, 0xbdf07560bd5074c, 0xc1207720bdc0753, 0xc1807780c150775, 0xc4a07980c440792, 0xc50079e0c5307a1, 0xc7f07ca0c7707c2, 0xc8a07d50c8607d1, 0xcef08380cec0835, 0xd1608510d0a0845, 0xd20085b0d190854, 0xd3f08800d350876, 0xd3b087c0d2e086f, 0xd4e089a0d420883, 0xd6308ac0d5708a0, 0xdc1090a0d6008a9, 0xdc709100dca0913, 0xd7b08c40d7408bd, 0xdde09270ddb0924, 0xde6093c0de30939, 0xdec09420def0945, 0xe0109540df50948, 0xe18096b0e040957, 0xe3509850e2c097c, 0xd510b2b0e380988, 0xd3509a60e210df2, 0x0, 0x9e905ad09fc05c0, 0x9b2057609b6057a, 0x9ba057e09be0582, 0x9cf059309ff05c3, 0x9d7059b09cb058f, 0xa0305c709d30597, 0xab6065b0ac20667, 0xa9306380a9f0644, 0xa9b06400a8f0634, 0xac5066a0a97063c, 0xb68070c0b5c0700, 0xc9f07ea0cc50810, 0xc6407af0c6807b3, 0xc6c07b70c7007bb, 0xcb508000cc80813, 0xcbd08080cb107fc, 0xcc1080c0cb90804, 0xd9508de0dbe0907, 0xdaa08f30dae08f7, 0xdb208fb0db608ff, 0xe09095c0dba0903, 0xe1e09710e240974, 0xe120965, 0x0, 0x10c1109f10be109c, 0x10d310b110ca10a8, 0xf160ef40f130ef1, 0xf280f060f1f0efd, 0x110610fb110310f8, 0x110a10ff, 0xf540f490f510f46, 0xf580f4d, 0x1145112311421120, 0x11571135114e112c, 0xf8b0f690f880f66, 0xf9d0f7b0f940f72, 0x119f1190119c118d, 0x11a7119811a31194, 0xfd20fc30fcf0fc0, 0xfda0fcb0fd60fc7, 0x11e611db11e311d8, 0x11ea11df, 0xffe0ff30ffb0ff0, 0x10020ff7, 0x122d121e122a121b, 0x1235122612311222, 0x1025000010220000, 0x102d000010290000, 0x1277125512741252, 0x128912671280125e, 0x106410421061103f, 0x10761054106d104b, 0x10f510f2108f1088, 0x1175117211191112, 0x1203120011d511d2, 0x124b1244, 0x10c510a310dc10ba, 0x10d710b510ce10ac, 0xf1a0ef80f310f0f, 0xf2c0f0a0f230f01, 0x114911271160113e, 0x115b113911521130, 0xf8f0f6d0fa60f84, 0xfa10f7f0f980f76, 0x127b125912921270, 0x128d126b12841262, 0x10681046107f105d, 0x107a10581071104f, 0x10e7108b10961099, 0x10e310e000001092, 0xee80ee50eeb0eee, 0x2a1170002a0f35, 0x116b111500200051, 0x116711640000111c, 0xf630f600f430f40, 0x350031002d0faa, 0x118511811178117b, 0x118911ab00000000, 0xfb40fb10fb70fba, 0x440040003c0000, 0x1213120f12061209, 0x1217123911f511f2, 0x101610131019101c, 0x995001c0018100a, 0x129d124700000000, 0x129912960000124e, 0x103c10390fed0fea, 0x3900031083, 0x1000100010001, 0x1000100010001, 0x100010001, 0x0, 0x1a690000, 0x4e000000000000, 0x0, 0x0, 0x0, 0x2ff02fc02fa, 0x0, 0x1000000000000, 0x1a6f000000000000, 0x1a7e1a7b00001a72, 0x0, 0xc0000008f, 0x0, 0x563000000000000, 0x920560, 0x0, 0x0, 0x1a76000000000000, 0x0, 0x1000000000000, 0x0, 0x0, 0x0, 0x0, 0xae00305, 0x392038303740365, 0x1aad02f403b003a1, 0xb3b00a500a10544, 0x30f034303140305, 0x392038303740365, 0x1aad02f403b003a1, 0xa500a10544, 0xb4107870a7d0692, 0xa280b790b0d0e8c, 0x8400cd30b3b05d3, 0xba3, 0x0, 0x0, 0x83f, 0x0, 0x0, 0x0, 0x0, 0x0, 0xe4d05e309a2099e, 0xe770a220a1e0000, 0x6ac06020e500000, 0xe6d0b0d06ac06ac, 0xa28073406cf06cf, 0x786077e0000, 0x82c083b06af0000, 0x82c082c, 0x897088f0863, 0x77c0000060a, 0x5b0071a0000060a, 0xa7d000005e305d5, 0x7230000067e0629, 0x136a136213540787, 0x68000000ae0136f, 0x10060f3a10ec11ee, 0x1aab, 0xa7d0a2e05e60000, 0x73e0ae0, 0x0, 0x3ca03c103e203da, 0x498045903d20455, 0x3de04e703d604cf, 0x3be051104eb049c, 0x6de06d406d106cf, 0x91f091b091806b2, 0x950094d068206e1, 0x72305e605e30734, 0xb3d0b330b300ae0, 0xdd60dd20dcf086a, 0xdfd0dfa0b410b40, 0x5d30a2e09a00a28, 0x0, 0x0, 0x30d0000, 0x0, 0x0, 0x0, 0x1a8d1a8600000000, 0x0, 0x0, 0x0, 0x0, 0x1a9200000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1a981a9b1a950000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1aa0, 0x1aa50000, 0x1aa8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1ab200001aaf, 0x0, 0x1ac100001ab81ab5, 0x1ac4, 0x0, 0x0, 0x0, 0x1ac80000, 0x1ace000000001acb, 0x1ad10000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1ad700000556, 0x0, 0x0, 0x55b054a1ad40000, 0x1add1ada, 0x1ae31ae0, 0x1ae91ae6, 0x0, 0x1aef1aec, 0x1afb1af8, 0x1b011afe, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1b131b101b0d1b0a, 0x0, 0x0, 0x0, 0x0, 0x1b071b041af51af2, 0x0, 0x1b191b1600000000, 0x1b1f1b1c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1b371b350000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x365030f03430314, 0x3a1039203830374, 0x342032f031c03b0, 0x382037303640355, 0x3f703af03a00391, 0xe600e200d900a3, 0xf600f200ee00ea, 0xb100ac00a700fa, 0xc500c000bb00b6, 0xdd00d400cf00ca, 0x368035903460319, 0x3a4039503860377, 0x3450332031f03b3, 0x385037603670358, 0x3fa03b203a30394, 0x172016e016a0166, 0x182017e017a0176, 0x192018e018a0186, 0x1a2019e019a0196, 0x1b201ae01aa01a6, 0x1c201be01ba01b6, 0x5d5056801ca01c6, 0x67e062905e605e3, 0x60706cf06ac0687, 0x77e07230734071a, 0x82c083b06af07a4, 0x6b2056b088d085e, 0x60a095a06820770, 0xa2e09a009370692, 0xb0d06020ad90a7d, 0xa280b79073e0ae0, 0xcd307870b3b05d3, 0xba308400a1105d8, 0xb410de1086a0a24, 0x30506110695, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1abc, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x552054f0542, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1b2c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x6b2073e, 0x0, 0x0, 0x0, 0x1b2f000000000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x227c000000000000, 0x0, 0x0, 0x0, 0x0, 0x26b0000000000000, 0x0, 0x0, 0x0, 0x1f091f011efb1ee9, 0x1f1b1f171f131f0d, 0x1f5f1f571f4b1f21, 0x1f871f771f6f1f67, 0x1fb91fa51f8b1f89, 0x1fcd1fc71fc51fc1, 0x1feb1fe91fdd1fdb, 0x204f20451ff71fef, 0x207f207d2079206f, 0x20b420ae20982087, 0x20ce20cc20ca20c4, 0x20f820f220dc20da, 0x210f2108210020fc, 0x212f212b21292113, 0x2141213921352131, 0x21972195218b214f, 0x21e521e321d921d7, 0x32521f121ed21e9, 0x2260222303292211, 0x227a2274226e2266, 0x228422822280227e, 0x230c230622e22286, 0x231623122310230e, 0x2334233023222318, 0x235c235a23562354, 0x2376237423622360, 0x238a238823862384, 0x23aa23a823a62394, 0x23ee23de23dc23bc, 0x241c240a23fa23f6, 0x2452244c2442243e, 0x245e245c245a2456, 0x247e247a246c246a, 0x248e248a24842482, 0x2498249624922490, 0x250e250c24f224e8, 0x2530252c25282512, 0x2558255425522534, 0x25742572255c255a, 0x2592258425822578, 0x25ba25aa25982596, 0x25de25c825c425c2, 0x260025fa25e825e0, 0x261a261826142608, 0x26262624261e261c, 0x263c263a2638262a, 0x2658264e264a2648, 0x26622660265c265a, 0x2670266826662664, 0x26862684267e267c, 0x2690268e268a2688, 0x26a0269c26982692, 0x26aa26a826a626a2, 0x26b226ae, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1b4900000000, 0x1fd11fcf1fcd, 0x0, 0x0, 0x0, 0x0, 0x1b8100001b7e, 0x1b8700001b84, 0x1b8d00001b8a, 0x1b9300001b90, 0x1b9900001b96, 0x1b9f00001b9c, 0x1ba500001ba20000, 0x1ba80000, 0x0, 0x1bb100001bae1bab, 0x1bba1bb700001bb4, 0x1bc01bbd0000, 0x1bc91bc6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1b7b, 0x87000000000000, 0x1bcc1bd30000008a, 0x0, 0x0, 0x0, 0x1c4300001c26, 0x1c9200001bf6, 0x1caf00001c9b, 0x1cca00001cbf, 0x1cdc00001ccf, 0x1ceb00001ce1, 0x1cf700001cf20000, 0x1c100000, 0x0, 0x1d3b00001d261d1d, 0x1d611d5700001d42, 0x1d7e1d760000, 0x1caa1da1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1e44000000001c01, 0x1e571e521e4d, 0x1ca11e6000000000, 0x0, 0x0, 0x0, 0x0, 0x1a10194919440000, 0x19501a141a12194b, 0x1a181a1619571955, 0x1a201a1e1a1c1a1a, 0x19661961195c19a6, 0x196f196d196819b0, 0x198e198319811977, 0x1947199d19981993, 0x19de19dc19da19d8, 0x198c19e419e219e0, 0x19ee19ec19ea19e8, 0x19f619f419f21975, 0x19fe197f19fa19f8, 0x1a2219a419a219d4, 0x1a2a1a281a261a24, 0x1a3019a81a2e1a2c, 0x19ae19ac19aa1a32, 0x19b819b619b419b2, 0x19c019be19bc19ba, 0x19c819c619c419c2, 0x1a361a3419cc19ca, 0x1a0019d219d019ce, 0x1a081a061a041a02, 0x1a0e1a0c1a0a, 0x1f171ee900000000, 0x1efd1ef120471eef, 0x1ef71f0d23641ef3, 0x1f212051208c1eeb, 0x1e901e001d701ce, 0x20d020401fb01f2, 0x245023c02330225, 0x1db01d20257024e, 0x1ff01f601ed01e4, 0x237022902110208, 0x25b025202490240, 0x21e0216022e, 0x2a0026802700260, 0x284026402880274, 0x2c402b00290026c, 0x2a402ec02b802c0, 0x2d002b402bc02ac, 0x2d402e402c80298, 0x2a8029c0278028c, 0x29402e8027c02cc, 0x2e002dc028002d8, 0x23fe21e321112021, 0x0, 0x0, 0x41c04110406082e, 0x440043904320427, 0x475046e044e0447, 0x4850482047f047c, 0x19571950194b1944, 0x196f19681961195c, 0x1993198e19831977, 0x194d1946199d1998, 0x1963195e19591952, 0x198519791971196a, 0x199f199a19951990, 0x1974197c1988, 0x20471eef1f171ee9, 0x1f5f1eed1f611f19, 0x22e203291fcd1f0f, 0x204f25c822232286, 0x2240221b223b0325, 0x23ca255e231c2007, 0x2098236823e21fab, 0x22961fdf1f4925a2, 0x208a1f731f2b262c, 0x20fa1ef31efd1ef1, 0x20b220b81fc92001, 0x1fd725681f292390, 0x48e048b04882083, 0x4b704b404b10491, 0x4c304c004bd04ba, 0x4e404cc04c904c6, 0x4d604a3034e033b, 0x5290518050304f2, 0x34d033a0327053a, 0x7390a7f0a8206b4, 0x1c0a1bff1bf11bd8, 0x1c731c411c241c1a, 0x1cbd1cad1c991c90, 0x1cdf1cda1ccd1c1e, 0x1bde1cf51cf01bfb, 0x1c8e1d111d0f1ca6, 0x1d551d391d1b1d0d, 0x1ddc1c311d9f1d74, 0x1e041e001def1c22, 0x1c351e1b1e191e11, 0x1e421c5d1e341bed, 0x1e551e501e4b, 0x1beb1be51be01bda, 0x1c0c1c041bf91bf3, 0x1c331c201c1c1c13, 0x1c2e1c291c3c1c37, 0x1c501c571c4b1c46, 0x1c6d1c661c5f1c5c, 0x1c8b1c841c7d1c61, 0x1cb21ca81ca41c95, 0x1cd61cd21cc21cb7, 0x1c811d031cfa1ce4, 0x1d291d351d171d0c, 0x1d4c1d451d201d30, 0x1d6b1d641d3e1d51, 0x1d811d951d701d5a, 0x1d8f1d8a1d9b1d85, 0x1db81da41dac1d79, 0x1dc51dbf1dbb1db2, 0x1dd61dd21dce1dca, 0x1df11de61de31dde, 0x1e0b1e061c681df5, 0x1e291e241e1f1e13, 0x1c6f1e391e361e2e, 0x3610352033f0311, 0x39d038e037f0370, 0x33e032b03bb03ac, 0x37e036f03600351, 0x3ba03ab039c038d, 0x4230418040d0402, 0x56a0a530b0f042e, 0xa590ce60c580a0f, 0x210a06db0a600a5c, 0x223d21f920892200, 0xbea11b40c260cda, 0x689075b071c0b7b, 0xc290cdd0b8c0a26, 0x6010bf611c011b7, 0x68c07640b7e068d, 0xa560bfd11c30893, 0x11c60c350aec0b94, 0xc030b970a300c00, 0xc070b9a0a340a33, 0xc1b0b9e0a380a37, 0x7680b8206910c1f, 0xd000cfa0cf60690, 0xc0f11c90c380ce9, 0xbed11ba0c2c0ce0, 0xc2f0ce3076c0b86, 0x76f0b890bf011bd, 0x5d70999077b0bb4, 0x5e805ff0a2d0a2a, 0x6ae0b1306940a50, 0xba20722071f0b3a, 0xbc60bc20bbf0bbc, 0x8200c0b0bf90bf3, 0xd25082b08230cd5, 0x5d1092a09360869, 0x36c035d034a0337, 0x3a80399038a037b, 0x3490336032303b7, 0x389037a036b035c, 0x3fe03b603a70398, 0x42a041f04140409, 0x44a0443043c0435, 0xaf4047804710451, 0x0, 0x0, 0x0, 0x0, 0x26b4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xe730e6b, 0x0, 0x256a258422132556, 0x26ae1ff91eff22c6, 0x202b25c8209226ae, 0x244a238221872090, 0x25a8251e250424e6, 0x233c22f0229a2254, 0x1f11265225bc24ca, 0x24e42302225e1fe3, 0x24dc22d620e6267a, 0x250a247821a12526, 0x232822a6221d211f, 0x1fb31f7d1f3125ae, 0x23922300225a21d5, 0x257e24ec24e02456, 0x23b02678266a2610, 0x25d624bc242c23d0, 0x212d206d2540267e, 0x23b4231a24682408, 0x20d4206b260c2566, 0x242422ca22b02256, 0x246e1fb125ec2438, 0x242e23e61f811f83, 0x21a3254e25f024c8, 0x20be1f0525462254, 0x1fc3237223322159, 0x1ef5214b1f3923b8, 0x1fed242221e12290, 0x253824cc23982063, 0x21ab228c25962276, 0x1f1f237021bb24a8, 0x241822441f7f1f5d, 0x1fb725c6253e2494, 0x21ef212720982011, 0x265625e423ba22d8, 0x220f1fa5268c2680, 0x217b210d2590226c, 0x22f622d021d12189, 0x2464243223e0234e, 0x25d8259c24d02588, 0x22ee201b1fa71f91, 0x2155211d25382514, 0x232c2406227221b7, 0x20f020be20491f27, 0x24502348233a215b, 0x2612260a25ca2460, 0x25c023da1f332630, 0x1f451f15216725fe, 0x225421e720d020c0, 0x25a624d6238022fc, 0x1fa325ea220726aa, 0x22be22a22233222d, 0x242023ae236e2340, 0x25f221911f612636, 0x258a22b220e21f3d, 0x23322237216b2143, 0x20d820091f9525f6, 0x2294224a222521fc, 0x251624462378233e, 0x1fcb260425c4251c, 0x235022fe200b22c0, 0x2682266e25f824de, 0x23f6247c22ae2231, 0x22ea2326240e23fc, 0x1f9724b01f23254c, 0x241421a521151f8f, 0x258e220d229c20b6, 0x2123252c25ee250e, 0x20371f4d, 0x220500002061, 0x238c232a1f850000, 0x23d823ce23cc23be, 0x245224102616, 0x2544000024e2, 0x25b4259e0000, 0x2642264000000000, 0x25fc25b026762644, 0x1faf1f511f471f35, 0x203d202f1fd51fb5, 0x20d62065205f2041, 0x21792175216120da, 0x220921f321db2185, 0x22ce22b622a82246, 0x23b22342230822f8, 0x23c623c223c42240, 0x23d623d423ca23c8, 0x2432240023f223e8, 0x24582444243a2436, 0x24ce249a249a2480, 0x254a2548252e2522, 0x259e259a256e256c, 0x215d263426282606, 0x248c274b, 0x1f2f1f5b1f7b1ef9, 0x1fbb1fad1f651f4f, 0x203b202d2025202f, 0x2094208e20692061, 0x2125212120aa20a2, 0x21712165214d213d, 0x2185217321792169, 0x21c921c521bf2193, 0x221f221d220521dd, 0x22a22276226e2229, 0x22dc22ce22c422c8, 0x2324230a23a422f8, 0x236a2358234a232a, 0x238e238c237e237c, 0x23b6239e23a02396, 0x2428240c240023f4, 0x24b2245824402432, 0x252a2524250024c6, 0x253c2544253a252e, 0x254a254225462548, 0x25a4258c256e2550, 0x260625f425ce25be, 0x262e262826202616, 0x272126ae265e2634, 0x1ea11e8d2733271f, 0x27a9277927671ea3, 0x26ac26a4, 0x0, 0xade0ae30adf0adb, 0xd280d280ae2, 0x0, 0x0, 0x134e000000000000, 0x134b135113481345, 0x0, 0x13d2000013850000, 0x1374136f135413a6, 0x13b7139b1360138e, 0x13ca13c702f413cd, 0x1359135613c313bf, 0x1371136c1364135c, 0x137f137c1376, 0x1390138b13881382, 0x139d00001398, 0x13a8000013a313a0, 0x13b413b1000013ab, 0x137913cf13bc13b9, 0x135f13ae13931367, 0x181e181e18181818, 0x18201820181e181e, 0x1824182418201820, 0x181c181c18241824, 0x18221822181c181c, 0x181a181a18221822, 0x183c183c181a181a, 0x183e183e183c183c, 0x18281828183e183e, 0x1826182618281828, 0x182a182a18261826, 0x182c182c182a182a, 0x18321832182c182c, 0x1834183418301830, 0x18381838182e182e, 0x1840184018361836, 0x1844184418401840, 0x1848184818441844, 0x1846184618481848, 0x184a184a18461846, 0x184c184c184c184c, 0x18501850186d186d, 0x184e184e18501850, 0x15911591184e184e, 0x186a186a, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1842000000000000, 0x1803184218421842, 0x180717ff17ff1803, 0x18621862185b1807, 0x1860186018551855, 0x180b180b180b180b, 0x17cd17cd14151415, 0x17f117f1180d180d, 0x17fd17fd18011801, 0x1809180918051805, 0x17f517f517f51809, 0x1864186418641864, 0x17f517e517d517d1, 0x13fe13f713f417f9, 0x141e14171414140b, 0x146a144d1438142d, 0x1484147b1472146d, 0x14311422148c1487, 0x143c14d414d11435, 0x151a150c150514fa, 0x15a515a215931562, 0x15c815c515ba15b0, 0x1607157515e415df, 0x16451642163f160a, 0x165b16561653164c, 0x1679167416711662, 0x16851682167f167c, 0x16aa169616931688, 0x1579158c16c816b9, 0x14591455145116e0, 0x172d1461145d1526, 0x17691758174f1740, 0x177f17741771176c, 0x17aa17a3179c1782, 0x14e417c717c417b3, 0x64005d179714ee, 0x8000790072006b, 0x17e917e517e117dd, 0x140813db17f917f5, 0x14171414140e140b, 0x1464144d144a1447, 0x14781475146d146a, 0x14871484147e147b, 0x1674167116561653, 0x1693168816851679, 0x16e01579158c1696, 0x17551752152616e5, 0x176c176917631758, 0x17b317b017ad1797, 0x17d117c717c417be, 0x17ed17e517d917d5, 0x140b13fe13f713f4, 0x1438142d141e1411, 0x148c147b1467144d, 0x14d1143514311422, 0x150c150514fa143c, 0x1593156d1562151a, 0x15ba15b015a515a2, 0x157515e415df15c5, 0x1642163f160a1607, 0x1662165b164c1645, 0x16851682167f167c, 0x16c816b916aa1688, 0x1455145113e0158c, 0x1740172d15261459, 0x177117661758174f, 0x17a3179c17851774, 0x17e515ed17b317aa, 0x144d1411140b17ed, 0x151a1481147b1467, 0x16851557154c1529, 0x17661758158c1688, 0x162c162515ed17b3, 0x15ff15da15d71633, 0x152c161c16191602, 0x1490155d155a152f, 0x1440142a142613fb, 0x15bd159d159a1402, 0x1546153b153415c0, 0x157015171549154c, 0x15ff15da15d715b7, 0x152c161c16191602, 0x1490155d155a152f, 0x1440142a142613fb, 0x15bd159d159a1402, 0x1546153b153415c0, 0x157015171549154c, 0x1546153b153415b7, 0x15c815571529154c, 0x1534150c150514fa, 0x15df15c81546153b, 0x13e313e3, 0x0, 0x0, 0x0, 0x0, 0x1434143014301421, 0x145814541450143b, 0x14c114c514a314a3, 0x1521150114fd1508, 0x15251525151d1521, 0x153e159615651565, 0x154f154f1537153e, 0x15b315a815531553, 0x15cf15cb15cb15b3, 0x15f315f315e715d3, 0x16111615160d15f7, 0x1669166516481648, 0x16ad16c016c416bc, 0x16d216cb16cb16ad, 0x170b170216fe16d2, 0x1716171216f316eb, 0x177716ef00000000, 0x173417471743177b, 0x175b175f17381734, 0x1429140117b617b6, 0x1460143f14431425, 0x14a7148f14ab145c, 0x15ac15421569150f, 0x179f17a616d616b5, 0x174b166d172117ba, 0x168f15fb16bc1665, 0x168b16b1171a1730, 0x14ba1493173016b1, 0x168b13fa164f16f7, 0x173c1513159615e7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x13d913de165e158f, 0x15eb14e915731706, 0x1497157c1578158a, 0x14f1, 0x0, 0x0, 0x0, 0x0, 0x5401b331b3102f6, 0x1b770093008d0546, 0x2ff1b79, 0x0, 0x0, 0x0, 0x0, 0x0, 0x9931a6b1a6d02fc, 0xe3b00a500a10993, 0x1b451b4f1b4b0e3f, 0x1b351b3b1b391b47, 0x1b411b3f1b3d1b37, 0x98b000000001b43, 0xc000c000c098f, 0x99309930993000c, 0x2fa1b3102f6, 0x8d009305400546, 0xe3b00a500a11a6d, 0x971b4f1b4b0e3f, 0x2f802f402f2009d, 0x54405590548, 0x566009b0099098d, 0x0, 0x5a161f0057, 0x1622006800000061, 0x163000761629006f, 0x163a00841637007d, 0x13e913e613e613d5, 0x13ec178f178f13e9, 0x17ca17ca17ca13ec, 0x13f213d713d717ca, 0x141a13f213f213f2, 0x141c141c141c141a, 0x147014701470141c, 0x13f513f513f51470, 0x13f813f813f813f5, 0x13ff13ff13ff13f8, 0x14e214e014e013ff, 0x140913dc13dc14e2, 0x14f814f814f81409, 0x15321532153214f8, 0x1560156015601532, 0x15a015a015a01560, 0x15c315c315c315a0, 0x15dd15dd15dd15c3, 0x15e215e215e215dd, 0x16051605160515e2, 0x163d163d163d1605, 0x165916591659163d, 0x1677167716771659, 0x14ec14ec14ec1677, 0x140c140c140c14ec, 0x140f140f140f140c, 0x13e113e113e1140f, 0x14151788178813e1, 0x13fc13fc13fc1415, 0x16a2169e169e13fc, 0x169b16a616a616a2, 0x169b, 0x970095008d0000, 0x9f009d009b0099, 0x2f402f200a500a1, 0x30302fa02f802f6, 0x30f034303140305, 0x392038303740365, 0x546054003b003a1, 0x93055905440548, 0x5e305d505680566, 0x687067e062905e6, 0x71a060706cf06ac, 0x7a4077e07230734, 0x85e082c083b06af, 0x77006b2056b088d, 0x98b060a095a0682, 0x9930991098f098d, 0x9a0093706920995, 0x6020ad90a7d0a2e, 0xb79073e0ae00b0d, 0x7870b3b05d30a28, 0x8400a1105d80cd3, 0xde1086a0a240ba3, 0xe3b061106950b41, 0x1b280e410e3f0e3d, 0x1b3f1b3d1b331b2a, 0x1bd61e551e5c1b31, 0x1c181c081bfd1bef, 0x1cee1e171e0f1e02, 0x1bff1bf11bd81c16, 0x1c411c241c1a1c0a, 0x1cad1c991c901c73, 0x1cda1ccd1c1e1cbd, 0x1cf51cf01bfb1cdf, 0x1d111d0f1ca61bde, 0x1d391d1b1d0d1c8e, 0x1c311d9f1d741d55, 0x1e001def1c221ddc, 0x1e1b1e191e111e04, 0x1c5d1e341bed1c35, 0x8b00881c061e42, 0x1a101949194419d4, 0x19501a141a12194b, 0x1a181a1619571955, 0x1a201a1e1a1c1a1a, 0x19661961195c19a6, 0x196f196d196819b0, 0x198e198319811977, 0x199d19981993, 0x19d8194700000000, 0x19e019de19dc19da, 0x19e419e200000000, 0x19ec19ea19e8198c, 0x197519ee00000000, 0x19f819f619f419f2, 0x197f19fa00000000, 0x19fe, 0x90e4b0e450e43, 0x1a820e470e49, 0x1a8b1a891a841b22, 0x1b261b241a90, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x26b600000000, 0x26b9, 0x0, 0x0, 0x26bc000000000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x26c226bf00000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x26c826c500000000, 0x26d726d326cf26cb, 0x26db, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x26df000000000000, 0x26e626ed26e226ea, 0x26f1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x5e605e305d50568, 0x6ac0687067e0629, 0x734071a060706cf, 0x6af07a4077e0723, 0x88d085e082c083b, 0x682077006b2056b, 0x9370692060a095a, 0xad90a7d0a2e09a0, 0x73e0ae00b0d0602, 0xb3b05d30a280b79, 0xa1105d80cd30787, 0x86a0a240ba30840, 0x61106950b410de1, 0x5e605e305d50568, 0x6ac0687067e0629, 0x734071a060706cf, 0x6af07a4077e0723, 0x88d085e082c083b, 0x682077006b2056b, 0x9370692060a095a, 0xad90a7d0a2e09a0, 0x73e0ae000000602, 0xb3b05d30a280b79, 0xa1105d80cd30787, 0x86a0a240ba30840, 0x61106950b410de1, 0x5e605e305d50568, 0x6ac0687067e0629, 0x734071a060706cf, 0x6af07a4077e0723, 0x88d085e082c083b, 0x682077006b2056b, 0x9370692060a095a, 0xad90a7d0a2e09a0, 0x73e0ae00b0d0602, 0xb3b05d30a280b79, 0xa1105d80cd30787, 0x86a0a240ba30840, 0x61106950b410de1, 0x5e605e300000568, 0x68700000000, 0x71a06070000, 0x6af07a4077e0000, 0x88d085e0000083b, 0x682077006b2056b, 0x9370692060a095a, 0xad900000a2e09a0, 0x73e0ae00b0d0000, 0xb3b05d30a280b79, 0xa1105d80cd30000, 0x86a0a240ba30840, 0x61106950b410de1, 0x5e605e305d50568, 0x6ac0687067e0629, 0x734071a060706cf, 0x6af07a4077e0723, 0x88d085e082c083b, 0x682077006b2056b, 0x9370692060a095a, 0xad90a7d0a2e09a0, 0x73e0ae00b0d0602, 0xb3b05d30a280b79, 0xa1105d80cd30787, 0x86a0a240ba30840, 0x61106950b410de1, 0x5e6000005d50568, 0x687067e0629, 0x734071a06070000, 0x6af07a4077e0723, 0x88d085e0000083b, 0x682077006b2056b, 0x93706920000095a, 0xad90a7d0a2e09a0, 0x73e0ae00b0d0602, 0xb3b05d30a280b79, 0xa1105d80cd30787, 0x86a0a240ba30840, 0x61106950b410de1, 0x5e6000005d50568, 0x687067e0629, 0x734071a060706cf, 0x7a400000723, 0x88d085e00000000, 0x682077006b2056b, 0x93706920000095a, 0xad90a7d0a2e09a0, 0x73e0ae00b0d0602, 0xb3b05d30a280b79, 0xa1105d80cd30787, 0x86a0a240ba30840, 0x61106950b410de1, 0x5e605e305d50568, 0x6ac0687067e0629, 0x734071a060706cf, 0x6af07a4077e0723, 0x88d085e082c083b, 0x682077006b2056b, 0x9370692060a095a, 0xad90a7d0a2e09a0, 0x73e0ae00b0d0602, 0xb3b05d30a280b79, 0xa1105d80cd30787, 0x86a0a240ba30840, 0x61106950b410de1, 0x6af07a4077e0723, 0x88d085e082c083b, 0x682077006b2056b, 0x9370692060a095a, 0xad90a7d0a2e09a0, 0x73e0ae00b0d0602, 0xb3b05d30a280b79, 0xa1105d80cd30787, 0x9370692060a095a, 0xad90a7d0a2e09a0, 0x73e0ae00b0d0602, 0xb3b05d30a280b79, 0xa1105d80cd30787, 0x86a0a240ba30840, 0x61106950b410de1, 0x5e605e305d50568, 0x6ac0687067e0629, 0x734071a060706cf, 0x6af07a4077e0723, 0x88d085e082c083b, 0x682077006b2056b, 0x9370692060a095a, 0xad90a7d0a2e09a0, 0x73e0ae00b0d0602, 0xb3b05d30a280b79, 0xa1105d80cd30787, 0x86a0a240ba30840, 0x61106950b410de1, 0x5e605e305d50568, 0x6ac0687067e0629, 0x734071a060706cf, 0x6af07a4077e0723, 0x61106950b410de1, 0xe800e6f, 0xf3c0f3a0f380ee3, 0xfad0f5e0f5c0f3e, 0xfe20fe00fde0faf, 0x10060fe80fe60fe4, 0x100f100d0fad1008, 0x1035103310311011, 0x10ea10861aa3077c, 0x110e10f010ee10ec, 0x11ae1170116e1110, 0x11ce11cc11b211b0, 0x11f811f011ee11d0, 0x123c11fe11fc11fa, 0x1a9e12421240123e, 0x123c11ae116e10f0, 0xf380ee311ee11f0, 0xf5c0f3e0f3c0f3a, 0xfde0faf0fad0f5e, 0xfe60fe40fe20fe0, 0xfad100810060fe8, 0x10311011100f100d, 0x1aa3077c10351033, 0x10ee10ec10ea1086, 0x116e1110110e10f0, 0x11b211b011ae1170, 0x11ee11d011ce11cc, 0x11fc11fa11f811f0, 0x1240123e123c11fe, 0x116e10f01a9e1242, 0x11ee11f0123c11ae, 0xf3c0f3a0f380ee3, 0xfad0f5e0f5c0f3e, 0xfe20fe00fde0faf, 0x10060fe80fe60fe4, 0x100f100d0fad1008, 0x1035103310311011, 0x10ea10861aa3077c, 0x110e10f010ee10ec, 0x11ae1170116e1110, 0x11ce11cc11b211b0, 0x11f811f011ee11d0, 0x123c11fe11fc11fa, 0x1a9e12421240123e, 0x123c11ae116e10f0, 0xf380ee311ee11f0, 0xf5c0f3e0f3c0f3a, 0xfde0faf0fad0f5e, 0xfe60fe40fe20fe0, 0xfad100810060fe8, 0x10311011100f100d, 0x1aa3077c10351033, 0x10ee10ec10ea1086, 0x116e1110110e10f0, 0x11b211b011ae1170, 0x11ee11d011ce11cc, 0x11fc11fa11f811f0, 0x1240123e123c11fe, 0x116e10f01a9e1242, 0x11ee11f0123c11ae, 0xf3c0f3a0f380ee3, 0xfad0f5e0f5c0f3e, 0xfe20fe00fde0faf, 0x10060fe80fe60fe4, 0x100f100d0fad1008, 0x1035103310311011, 0x10ea10861aa3077c, 0x110e10f010ee10ec, 0x11ae1170116e1110, 0x11ce11cc11b211b0, 0x11f811f011ee11d0, 0x123c11fe11fc11fa, 0x1a9e12421240123e, 0x123c11ae116e10f0, 0x12a212a011ee11f0, 0x314030500000000, 0x3740365030f0343, 0x3b003a103920383, 0x30f034303140305, 0x392038303740365, 0x314030503b003a1, 0x3740365030f0343, 0x3b003a103920383, 0x30f034303140305, 0x392038303740365, 0x314030503b003a1, 0x3740365030f0343, 0x3b003a103920383, 0x14e013f513f213d7, 0x13f8140917880000, 0x14ec167713fc15c3, 0x15e214f8140f140c, 0x13dc16591560163d, 0x13ff1470141c1532, 0x160515dd15a014e2, 0x1816183a184a1814, 0x13f513f20000, 0x13f80000000013e1, 0x14ec167713fc0000, 0x15e214f8140f140c, 0x16591560163d, 0x13ff1470141c1532, 0x1605000015a00000, 0x0, 0x13f500000000, 0x13f8000000000000, 0x14ec000013fc0000, 0x15e214f8140f0000, 0x165915600000, 0x13ff000000001532, 0x1605000015a00000, 0x18160000184a0000, 0x13f513f20000, 0x13f80000000013e1, 0x167713fc15c3, 0x15e214f8140f140c, 0x16591560163d, 0x13ff1470141c1532, 0x160515dd15a00000, 0x183a00001814, 0x14e013f513f213d7, 0x13f81409178813e1, 0x14ec000013fc15c3, 0x15e214f8140f140c, 0x13dc16591560163d, 0x13ff1470141c1532, 0x160515dd15a014e2, 0x0, 0x14e013f513f20000, 0x13f8140917880000, 0x14ec000013fc15c3, 0x15e214f8140f140c, 0x13dc16591560163d, 0x13ff1470141c1532, 0x160515dd15a014e2, 0x0, 0x3f103160307030a, 0x4fa04de04ab0468, 0x5310520050b, 0x0, 0x10a0106010200fe, 0x11a01160112010e, 0x12a01260122011e, 0x13a01360132012e, 0x14a01460142013e, 0x15a01560152014e, 0x5e31b4d0162015e, 0x93305e5082c, 0x5e605e305d50568, 0x6ac0687067e0629, 0x734071a060706cf, 0x6af07a4077e0723, 0x88d085e082c083b, 0x682077006b2056b, 0x76c06b1060a095a, 0x930082708660860, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x761075e00000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x606, 0x0, 0x0, 0x0, 0x1cad1c9e1bc3, 0x0, 0x0, 0x0, 0x1cf71ff320b02197, 0x208c253220811f17, 0x21e722f221fe1f1d, 0x21eb1f6921451f9d, 0x2560235c24261f93, 0x219d22cc200f2073, 0x25a01eef1ee921b3, 0x21ad20011efd20fa, 0x23f023d221992574, 0x329221b22bc2005, 0x20351f9f2366, 0x0, 0x1b5d1b551b511b69, 0x1b591b711b611b6d, 0x1b65, 0x0, 0x1ffd2147, 0x0, 0x0, 0x0, 0x26f51f0b1f031f07, 0x1f3b1f371f351f2d, 0x1f431f471f411f3f, 0x1f531f5126fd1e63, 0x1e6526f71f631f55, 0x1f7126fb1f691f59, 0x1f7b1f791f251f75, 0x1e691f8d1f8927b9, 0x1fa11f9f1f9b1f99, 0x1fb51faf1fad1e6b, 0x1fc31fbf1fbd1fbb, 0x1fe11fd91fd51fd3, 0x1fe71fe71fe71fe5, 0x1ff51ff122e42703, 0x20031fff1ffb2705, 0x20152013200d2017, 0x2023201f201d2019, 0x202d202920292027, 0x204b203920332031, 0x2043203f204d203d, 0x2057205520711f8f, 0x205b205d20532059, 0x2077207527072067, 0x209620852081207b, 0x209e209c270b2709, 0x1e6d20a4209a20a0, 0x20ac20ac20a81e6f, 0x20be20bc20ba270d, 0x20c820c6270f20c2, 0x20d21e7120cc2137, 0x271320de20e020da, 0x20e820ea271520e4, 0x1e7320f620f420ec, 0x21062104210220fe, 0x21171e7727171e75, 0x27cd211f211b2119, 0x2486271b271b212b, 0x27291e7921332133, 0x1e7b213f213b277d, 0x2157215321512149, 0x21611e7d1e7f215f, 0x216f216d2163271d, 0x21792177216f2171, 0x2183217f217d2181, 0x218f210b21872185, 0x21b121a7219f219b, 0x21b521a921af2723, 0x21c7272521c321b9, 0x21cb1e8121bd21c1, 0x1e8321cd21d321cf, 0x21f5272721df21db, 0x22091e8922032215, 0x1f6d1f6b1e851e87, 0x1ebb2470220b2217, 0x222b2221221f221d, 0x22351e8b27312227, 0x273522462242222f, 0x1e8d224c22392248, 0x225822522250224e, 0x22621e8f225c2737, 0x226a1e9122642739, 0x273b227822762270, 0x273f2288273d2711, 0x2298228a2292228e, 0x22a422a222a822a0, 0x229e274122ac22aa, 0x22c41e9322ba22b8, 0x22d222b4274322c2, 0x22de22d427472745, 0x22e01e9522da22dc, 0x26f922ec22e622e8, 0x274d22fa274922f4, 0x274f2314230a2304, 0x275327512320231e, 0x23381e972336232e, 0x234623441e991e99, 0x1e9b2352234c234a, 0x2757236c2755235e, 0x2759237a27192372, 0x1e9f1e9d275d275b, 0x2763275f27612396, 0x239c239c239a2765, 0x1ea523a21ea323a0, 0x23b023ac27691ea7, 0x23c8276b1ea923b6, 0x23e423d8276f276d, 0x23ec23ea23e81eab, 0x23f8277327732771, 0x2404240227751ead, 0x1eb1241227771eaf, 0x277b241e2416241a, 0x243424301eb3242a, 0x2781277f1eb5243c, 0x2785244827831eb7, 0x278724582454244e, 0x2466278b24622789, 0x247424721eb9272b, 0x278d20a624761ebd, 0x2486272f272d278f, 0x249e1ebf25942488, 0x24a21fa924a0249c, 0x279124aa24a624a4, 0x24b824b624ac24a8, 0x24ce24c424ba24ae, 0x24c224c024be24b4, 0x1ec1279527972793, 0x279f24d824d424d2, 0x1ec51ec3279924da, 0x24ea1ec7279d279b, 0x24f624f024ee24ec, 0x250024f824fa24f4, 0x1ec9250224fe24fc, 0x25101ecb25082506, 0x251a251827a12512, 0x27a31e6725201ecd, 0x25361ed11ecf27a5, 0x27a7255825502542, 0x2576257025642562, 0x257a257c26ff27ab, 0x258c258627012580, 0x25b225ac27af27ad, 0x25cc25b827b125b6, 0x25da25d025d425d2, 0x1ed325e227b325dc, 0x26021ed527b525e6, 0x27bb27b7260e20ee, 0x27bd26221ed91ed7, 0x262e262e27bf1edb, 0x1edd263e27c12632, 0x26542650264c2646, 0x266c265e27c31edf, 0x26741ee31ee12672, 0x27c927c71ee527c5, 0x26901ee7268627cb, 0x269e269a26962694, 0x27cf26a2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]);
//12288 bytes
enum canonMappingTrieEntries = TrieEntry!(ushort, 8, 7, 6)([ 0x0, 0x20, 0x120], [ 0x100, 0x400, 0x1380], [ 0x302020202020100, 0x205020202020204, 0x602020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x202020202020202, 0x1000000000000, 0x5000400030002, 0x6, 0x9000800070000, 0xc0000000b000a, 0x0, 0xe00000000000d, 0x0, 0x0, 0x1100000010000f, 0x130012, 0x16001500140000, 0x18000000170000, 0x1a000000190000, 0x0, 0x1c001b0000, 0x1d, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1f001e, 0x0, 0x0, 0x23002200210020, 0x27002600250024, 0x28, 0x2b002a00000029, 0x2f002e002d002c, 0x30, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x31000000000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x34003300320000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x38003700360035, 0x3c003b003a0039, 0x3e003d, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3f00000000, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x43004200410000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x47004600450044, 0x4b004a00490048, 0x4c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x250012000f000c, 0x850000004f0045, 0xcb00a400a1009e, 0x13301240121011e, 0x1a0019d01880000, 0x1da01b601a3, 0x2730270026d0000, 0x2f30287, 0x33803250322031f, 0x398000003620358, 0x3de03b703b403b1, 0x446043a04370434, 0x4b404b1049c0000, 0x4ee04ca04b7, 0x58a058705840000, 0x61c0000060d059e, 0x33e002b033b0028, 0x38c00790380006d, 0x392007f038f007c, 0x3a2008f03950082, 0x3cd00ba00000000, 0x3db00c803d800c5, 0x3e400d103fb00e8, 0x41000fd040a00f7, 0x419010604130100, 0x41c0109, 0x440012a043d0127, 0x45c01490443012d, 0x130, 0x471015d0462014f, 0x170047701630000, 0x47a01660484, 0x185000000000000, 0x18e04a801940499, 0x4a2, 0x4e401d004d901c5, 0x4f801e4, 0x5450231052f021b, 0x54b023705350221, 0x56902550552023e, 0x57b026405580244, 0x572025b, 0x594027d058d0276, 0x5b4029d059b0284, 0x5e002c905b702a0, 0x61002f605f502de, 0x3110628030b0302, 0x6310314062e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x50401f0, 0x0, 0x0, 0x2ac000000000000, 0x5c3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x13d036900560000, 0x2a304fb01e70450, 0x28e05a9029205ba, 0x28a05ad029605a5, 0x35b0048000005a1, 0x653064a03540041, 0x416010300000000, 0x522020e046b0157, 0x65f065c05250211, 0x465, 0x40700f4, 0x365005204960182, 0x656064d06500647, 0x36f005c036c0059, 0x3ea00d703e700d4, 0x456014304530140, 0x50101ed04fe01ea, 0x53b022705380224, 0x5c002a905bd02a6, 0x578026105660252, 0x425011200000000, 0x0, 0x351003e00000000, 0x4f101dd03f400e1, 0x4e701d304d101bd, 0x61602fc04ea01d6, 0x0, 0x0, 0x0, 0x66b00000010000d, 0x137, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x662, 0x0, 0x100000000, 0x0, 0x6450670063d0000, 0x72c06df06c3, 0x798077800000759, 0x8d1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x781073500000000, 0x8c10867084707e9, 0x92f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x92808ca00000000, 0x95f091f08fd, 0x9b4000000000000, 0x9b7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x9c3000009cc09c6, 0x9ba000000000000, 0x0, 0x9ed09d809e4, 0x0, 0x0, 0x9de0000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xa200000, 0x0, 0x0, 0x0, 0x0, 0x0, 0xa0500000a0e0a08, 0xa41000000000000, 0x0, 0xa2f0a1a0a26, 0x0, 0x0, 0x0, 0x0, 0x0, 0xa470a4400000000, 0x0, 0x0, 0xa1109cf0000, 0x0, 0x0, 0x0, 0xa0209c009ff09bd, 0xa0b09c900000000, 0xa4d0a4a00000000, 0xa1709d50a1409d2, 0xa1d09db00000000, 0xa2909e70a2309e1, 0xa530a5000000000, 0xa2c09ea0a3e09fc, 0xa3509f30a3209f0, 0xa3809f6, 0xa3b09f9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xac10abe00000000, 0xaca0ac40ac7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xacd00000ad3, 0x0, 0x0, 0x0, 0xad0000000000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xae80000, 0x0, 0xaf10000, 0xaf4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xadf0adc0ad90ad6, 0xaee0aeb0ae50ae2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb00000000000000, 0xb03, 0x0, 0x0, 0x0, 0xafd00000afa0af7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb12000000000000, 0xb1500000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb0c0b090b060000, 0xb0f00000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb1e000000000b21, 0xb24, 0x0, 0x0, 0x0, 0xb1b0b18, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb27, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb300b2a00000000, 0xb2d, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb33, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb36, 0xb40000000000000, 0xb3c0b3900000b43, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb4c0b4600000000, 0xb49, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb4f00000000, 0xb590b550b52, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb5f000000000000, 0x0, 0x0, 0xb620000, 0xb6500000000, 0xb68000000000000, 0x0, 0xb6b, 0x0, 0x0, 0xb5c0000, 0x0, 0xb6e000000000000, 0xb890b710000, 0xb8c, 0x0, 0xb740000, 0x0, 0x0, 0x0, 0xb7a000000000000, 0x0, 0x0, 0xb7d0000, 0xb8000000000, 0xb83000000000000, 0x0, 0xb86, 0x0, 0x0, 0xb770000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb8f00000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb9200000000, 0xb9800000b95, 0xb9e00000b9b, 0xba100000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xba4000000000000, 0xba70000, 0xbb000000bad0baa, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3830070037d006a, 0x389007603860073, 0x39f008c039b0088, 0x3ae009b03a50092, 0x3ab009803a80095, 0x3d400c103d000bd, 0x40100ee03fe00eb, 0x40400f103f700e4, 0x41f010c040d00fa, 0x422010f04280115, 0x42e011b042b0118, 0x4490136045f014c, 0x46e015a04680154, 0x47d016904740160, 0x48a01760480016c, 0x48d017904870173, 0x493017f0490017c, 0x4a50191049f018b, 0x4ab019704ae019a, 0x4d501c104cd01b9, 0x4e001cc04dc01c8, 0x52c021805290215, 0x53e022a0532021e, 0x54802340541022d, 0x55f024b05550241, 0x55b0247054e023a, 0x56c02580562024e, 0x581026a0575025e, 0x5dd02c6057e0267, 0x5e302cc05e602cf, 0x597028005900279, 0x5ec02d505e902d2, 0x5f202db05ef02d8, 0x5f802e105fb02e4, 0x60402ea060102e7, 0x61902ff060702ed, 0x6340317062b030e, 0x56f04310637031a, 0x6590000062205fe, 0x0, 0x35f004c0372005f, 0x3280015032c0019, 0x330001d03340021, 0x345003203750062, 0x34d003a0341002e, 0x379006603490036, 0x3e100ce03ed00da, 0x3be00ab03ca00b7, 0x3c600b303ba00a7, 0x3f000dd03c200af, 0x4590146044d013a, 0x4f501e1051b0207, 0x4ba01a604be01aa, 0x4c201ae04c601b2, 0x50b01f7051e020a, 0x51301ff050701f3, 0x5170203050f01fb, 0x5b1029a05da02c3, 0x5c602af05ca02b3, 0x5ce02b705d202bb, 0x60a02f005d602bf, 0x61f030506250308, 0x61302f9, 0x0, 0x81b07f9081807f6, 0x82d080b08240802, 0x69e067c069b0679, 0x6b0068e06a70685, 0x858084d0855084a, 0x85c0851, 0x6d406c906d106c6, 0x6d806cd, 0x89308710890086e, 0x8a50883089c087a, 0x70706e5070406e2, 0x71906f7071006ee, 0x8eb08dc08e808d9, 0x8f308e408ef08e0, 0x74a073b07470738, 0x7520743074e073f, 0x90e0903090b0900, 0x9120907, 0x76a075f0767075c, 0x76e0763, 0x949093a09460937, 0x9510942094d093e, 0x787000007840000, 0x78f0000078b0000, 0x98b096909880966, 0x99d097b09940972, 0x7c0079e07bd079b, 0x7d207b007c907a7, 0x847084407e907e2, 0x8c108be08670860, 0x91f091c08fd08fa, 0x95f0958, 0x81f07fd08360814, 0x831080f08280806, 0x6a2068006b90697, 0x6b4069206ab0689, 0x897087508ae088c, 0x8a9088708a0087e, 0x70b06e907220700, 0x71d06fb071406f2, 0x98f096d09a60984, 0x9a1097f09980976, 0x7c407a207db07b9, 0x7d607b407cd07ab, 0x84107e507f007f3, 0x83d083a000007ec, 0x670066d06730676, 0x8bc000006bd, 0x8b9086306400000, 0x8b508b20000086a, 0x6df06dc06c306c0, 0xbb90bb60bb30726, 0x8d108cd08c408c7, 0x8d508f700000000, 0x72c0729072f0732, 0xbc20bbf0bbc0000, 0x92f092b09220925, 0x933095509190916, 0x7780775077b077e, 0x31d063d063a0772, 0x9b1095b00000000, 0x9ad09aa00000962, 0x798079507590756, 0x64307df, 0xbc70bc5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x79300000000, 0x4f015200000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xbcc0bc900000000, 0x0, 0x0, 0x0, 0x0, 0xbcf00000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xbd50bd80bd20000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xbdb, 0xbde0000, 0xbe1, 0x0, 0x0, 0x0, 0x0, 0x0, 0xbe700000be4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xbea0000, 0xbf0000000000bed, 0xbf30000, 0x0, 0x0, 0x0, 0x0, 0x0, 0xbf900000006, 0x0, 0x0, 0x900030bf60000, 0xbff0bfc, 0xc050c02, 0xc0b0c08, 0x0, 0xc110c0e, 0xc1d0c1a, 0xc230c20, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc350c320c2f0c2c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc290c260c170c14, 0x0, 0xc3b0c3800000000, 0xc410c3e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc490c470000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc44, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc5100000c4e, 0xc5700000c54, 0xc5d00000c5a, 0xc6300000c60, 0xc6900000c66, 0xc6f00000c6c, 0xc7500000c720000, 0xc780000, 0x0, 0xc8100000c7e0c7b, 0xc8a0c8700000c84, 0xc900c8d0000, 0xc960c93, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc4b, 0x0, 0xc9900000000, 0x0, 0x0, 0x0, 0xca200000c9f, 0xca800000ca5, 0xcae00000cab, 0xcb400000cb1, 0xcba00000cb7, 0xcc000000cbd, 0xcc600000cc30000, 0xcc90000, 0x0, 0xcd200000ccf0ccc, 0xcdb0cd800000cd5, 0xce10cde0000, 0xce70ce4, 0x0, 0x0, 0x0, 0x0, 0x0, 0xcea000000000c9c, 0xcf30cf00ced, 0xcf600000000, 0x124b125d0fb71241, 0x13270e290d831043, 0xe4f12930e991327, 0x116710cd0f550e97, 0x1279121511fd11e3, 0x109d106910190feb, 0xd8d12f3128911c7, 0x11e110790ff50e1d, 0x11d910510edb1309, 0x120311890f65121d, 0x108d10250fbd0eff, 0xe050dd90d9d127d, 0x10d310770ff10f95, 0x125911e711dd1171, 0x10e9130712fb12cf, 0x12a111b9114d1107, 0xf0b0e87122f130b, 0x10ed1083117d112f, 0xecb0e8512cb1249, 0x11471047102f0fed, 0x117f0e0312b11159, 0x114f11150ddd0ddf, 0xf67123d12b511c5, 0xebb0d8712350feb, 0xe1110c110950f27, 0xd7f0f1b0da510f1, 0xe2311450f9d1011, 0x122711c910d70e7d, 0xf6f100d126d1005, 0xd9110bf0f7b11a5, 0x113d0fdb0ddb0dc3, 0xe091291122d1195, 0xfa10f070e9f0e37, 0x12f712ab10f31053, 0xfb50df91313130d, 0xf490ef312690ffd, 0x106d104b0f910f57, 0x11791153111110af, 0x12a3127111cd1261, 0x10670e410dfb0de9, 0xf230efd1227120b, 0x1091112d10030f77, 0xee50ebb0e670d97, 0x116b10a9109b0f29, 0x12d112c912951175, 0x128d110f0d9f12dd, 0xdb10d8f0f3512c1, 0xfeb0f9f0ec70ebd, 0x127711d310cb1073, 0xdf712af0fad1323, 0x103b10210fd10fcb, 0x114310e710bd10a1, 0x12b70f5d0dc512e3, 0x126310310ed70da9, 0x10950fd50f390f17, 0xecf0e310deb12bb, 0x10150fe10fc30fa7, 0x120d116310c3109f, 0xe1312c5128f1213, 0x10b110750e33103d, 0x130f12ff12bd11db, 0x1121118b102d0fcf, 0x1063108b11331125, 0xded11ad0d93123b, 0x11390f690ef50de7, 0x12670fb3101b0eb5, 0xf03122112b31205, 0xe590db5, 0xfab00000e7b, 0x10cf108f0de10000, 0x110d1105110310f5, 0x116d113512d3, 0x1233000011df, 0x128312730000, 0x12e912e700000000, 0x12bf127f130512eb, 0xe010db90db30da1, 0xe5f0e530e170e07, 0xecd0e7f0e790e63, 0xf470f430f2f0ed1, 0xfaf0fa30f970f53, 0x1049103510270fdd, 0x10eb10a3107d106f, 0x10fd10f910fb10f7, 0x110b1109110110ff, 0x11531127111d1117, 0x11731161115b1157, 0x11cb11971197118d, 0x1239123712231219, 0x1273126f124f124d, 0xf2b12e112d912c7, 0x119313be, 0xd9b0dc10dd70d81, 0xe0b0dff0dc90db7, 0xe5d0e510e490e53, 0xe9b0e950e830e7b, 0xf050f010eb10ea9, 0xf3f0f330f1d0f13, 0xf530f410f470f37, 0xf890f850f7f0f5f, 0xfbf0fbd0fab0f99, 0x102110050fff0fc7, 0x1057104910411045, 0x1089107f10e3106f, 0x10b910b510ab108f, 0x10d110cf10c910c7, 0x10ef10dd10df10d5, 0x114911311127111f, 0x11af1173115f1153, 0x121f121b11f911c3, 0x122b123312291223, 0x1239123112351237, 0x12751265124f123f, 0x12c712b91299128b, 0x12db12d912d512d3, 0x1394132712f912e1, 0xd370d2313a61392, 0x141c13ec13da0d39, 0x13251321, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xabb00000a7a0000, 0x0, 0x0, 0xab50ab200000000, 0xa590a560aae0aaa, 0xa680a650a5f0a5c, 0xa740a710a6b, 0xa830a800a7d0a77, 0xa8c00000a89, 0xa9500000a920a8f, 0xaa10a9e00000a98, 0xa6e0ab80aa70aa4, 0xa9b0a860a62, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x132900000000, 0x132c, 0x0, 0x0, 0x132f000000000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1335133200000000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x133b133800000000, 0x134a13461342133e, 0x134e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1352000000000000, 0x135913601355135d, 0x1364, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x13680d8b0d850d89, 0xda70da30da10d99, 0xdaf0db30dad0dab, 0xdbb0db913700cf9, 0xcfb136a0dc70dbd, 0xdd1136e0dcb0dbf, 0xdd70dd50d950dd3, 0xcff0de50de3142c, 0xdf50df30df10def, 0xe070e010dff0d01, 0xe110e0f0e0d0e0b, 0xe1b0e190e170e15, 0xe210e210e210e1f, 0xe270e25105d1376, 0xe2f0e2d0e2b1378, 0xe3b0e390e350e3d, 0xe470e450e430e3f, 0xe510e4d0e4d0e4b, 0xe690e5b0e570e55, 0xe650e610e6b0e5f, 0xe710e6f0e890de7, 0xe750e770e6d0e73, 0xe8d0e8b137a0e81, 0xe9d0e930e910e8f, 0xea50ea3137e137c, 0xd030eab0ea10ea7, 0xeb30eb30eaf0d05, 0xebb0eb90eb71380, 0xec30ec113820ebf, 0xec90d070ec50f0f, 0x13860ed30ed50ed1, 0xedd0edf13880ed9, 0xd090ee90ee70ee1, 0xef10eef0eed0eeb, 0xef70d0d138a0d0b, 0x14400eff0efb0ef9, 0x118f138e138e0f09, 0x139c0d0f0f0d0f0d, 0xd110f150f1113f0, 0xf250f210f1f0f19, 0xf2f0d130d150f2d, 0xf3d0f3b0f311390, 0xf470f450f3d0f3f, 0xf510f4d0f4b0f4f, 0xf5b0f590f550f53, 0xf730f6b0f630f61, 0xf750f6d0f711396, 0xf8713980f830f79, 0xf8b0d170f7d0f81, 0xd190f8d0f930f8f, 0xfa5139a0f9b0f97, 0xfaf0d1f0fa90fb9, 0xdcf0dcd0d1b0d1d, 0xd5111810fb10fbb, 0xfc90fc10fbf0fbd, 0xfd30d2113a40fc5, 0x13a80fdd0fd90fcd, 0xd230fe30fd70fdf, 0xfef0fe90fe70fe5, 0xff70d250ff313aa, 0xffb0d270ff913ac, 0x13ae100710051001, 0x13b2100913b01384, 0x1017100b1013100f, 0x102310211027101f, 0x101d13b4102b1029, 0x10410d2910391037, 0x104d103313b6103f, 0x1059104f13ba13b8, 0x105b0d2b10551057, 0x136c1065105f1061, 0x13c0107113bc106b, 0x13c21081107f107b, 0x13c613c410871085, 0x10990d2d10971093, 0x10a710a50d2f0d2f, 0xd3110b310ad10ab, 0x13ca10bb13c810b7, 0x13cc10c5138c10c1, 0xd350d3313d013ce, 0x13d613d213d410d5, 0x10db10db10d913d8, 0xd3b10e10d3910df, 0x10e910e513dc0d3d, 0x10ff13de0d3f10ef, 0x1113110d13e213e0, 0x111b111911170d41, 0x112313e613e613e4, 0x112b112913e80d43, 0xd47113713ea0d45, 0x13ee1141113b113f, 0x115511510d49114b, 0x13f413f20d4b115d, 0x13f8116513f60d4d, 0x13fa1173116f1169, 0x117b13fe117713fc, 0x118511830d4f139e, 0x14000ead11870d53, 0x118f13a213a01402, 0x119b0d55126b1191, 0x119f0dfd119d1199, 0x140411a711a311a1, 0x11b511b311a911a5, 0x11cb11c111b711ab, 0x11bf11bd11bb11b1, 0xd571408140a1406, 0x141211d511d111cf, 0xd5b0d59140c11d7, 0x11e50d5d1410140e, 0x11ef11eb11e911e7, 0x11f911f111f311ed, 0xd5f11fb11f711f5, 0x12070d61120111ff, 0x1211120f14141209, 0x14160cfd12170d63, 0x12250d670d651418, 0x141a1243123f1231, 0x1253125112471245, 0x125512571372141e, 0x1265125f1374125b, 0x1281127b14221420, 0x1297128714241285, 0x12a5129b129f129d, 0xd6912a9142612a7, 0x12c30d6b142812ad, 0x142e142a12cd0ee3, 0x143012d70d6f0d6d, 0x12db12db14320d71, 0xd7312e5143412df, 0x12f512f112ef12ed, 0x12fd12f914360d75, 0x13030d790d771301, 0x143c143a0d7b1438, 0x13150d7d1311143e, 0x131d131b13191317, 0x1442131f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]);
@property
{
private alias _IDCA = immutable(dchar[]);
_IDCA decompCanonTable() { static _IDCA t = [ 0x0, 0x3b, 0x0, 0x3c, 0x338, 0x0, 0x3d, 0x338, 0x0, 0x3e, 0x338, 0x0, 0x41, 0x300, 0x0, 0x41, 0x301, 0x0, 0x41, 0x302, 0x0, 0x41, 0x302, 0x300, 0x0, 0x41, 0x302, 0x301, 0x0, 0x41, 0x302, 0x303, 0x0, 0x41, 0x302, 0x309, 0x0, 0x41, 0x303, 0x0, 0x41, 0x304, 0x0, 0x41, 0x306, 0x0, 0x41, 0x306, 0x300, 0x0, 0x41, 0x306, 0x301, 0x0, 0x41, 0x306, 0x303, 0x0, 0x41, 0x306, 0x309, 0x0, 0x41, 0x307, 0x0, 0x41, 0x307, 0x304, 0x0, 0x41, 0x308, 0x0, 0x41, 0x308, 0x304, 0x0, 0x41, 0x309, 0x0, 0x41, 0x30a, 0x0, 0x41, 0x30a, 0x301, 0x0, 0x41, 0x30c, 0x0, 0x41, 0x30f, 0x0, 0x41, 0x311, 0x0, 0x41, 0x323, 0x0, 0x41, 0x323, 0x302, 0x0, 0x41, 0x323, 0x306, 0x0, 0x41, 0x325, 0x0, 0x41, 0x328, 0x0, 0x42, 0x307, 0x0, 0x42, 0x323, 0x0, 0x42, 0x331, 0x0, 0x43, 0x301, 0x0, 0x43, 0x302, 0x0, 0x43, 0x307, 0x0, 0x43, 0x30c, 0x0, 0x43, 0x327, 0x0, 0x43, 0x327, 0x301, 0x0, 0x44, 0x307, 0x0, 0x44, 0x30c, 0x0, 0x44, 0x323, 0x0, 0x44, 0x327, 0x0, 0x44, 0x32d, 0x0, 0x44, 0x331, 0x0, 0x45, 0x300, 0x0, 0x45, 0x301, 0x0, 0x45, 0x302, 0x0, 0x45, 0x302, 0x300, 0x0, 0x45, 0x302, 0x301, 0x0, 0x45, 0x302, 0x303, 0x0, 0x45, 0x302, 0x309, 0x0, 0x45, 0x303, 0x0, 0x45, 0x304, 0x0, 0x45, 0x304, 0x300, 0x0, 0x45, 0x304, 0x301, 0x0, 0x45, 0x306, 0x0, 0x45, 0x307, 0x0, 0x45, 0x308, 0x0, 0x45, 0x309, 0x0, 0x45, 0x30c, 0x0, 0x45, 0x30f, 0x0, 0x45, 0x311, 0x0, 0x45, 0x323, 0x0, 0x45, 0x323, 0x302, 0x0, 0x45, 0x327, 0x0, 0x45, 0x327, 0x306, 0x0, 0x45, 0x328, 0x0, 0x45, 0x32d, 0x0, 0x45, 0x330, 0x0, 0x46, 0x307, 0x0, 0x47, 0x301, 0x0, 0x47, 0x302, 0x0, 0x47, 0x304, 0x0, 0x47, 0x306, 0x0, 0x47, 0x307, 0x0, 0x47, 0x30c, 0x0, 0x47, 0x327, 0x0, 0x48, 0x302, 0x0, 0x48, 0x307, 0x0, 0x48, 0x308, 0x0, 0x48, 0x30c, 0x0, 0x48, 0x323, 0x0, 0x48, 0x327, 0x0, 0x48, 0x32e, 0x0, 0x49, 0x300, 0x0, 0x49, 0x301, 0x0, 0x49, 0x302, 0x0, 0x49, 0x303, 0x0, 0x49, 0x304, 0x0, 0x49, 0x306, 0x0, 0x49, 0x307, 0x0, 0x49, 0x308, 0x0, 0x49, 0x308, 0x301, 0x0, 0x49, 0x309, 0x0, 0x49, 0x30c, 0x0, 0x49, 0x30f, 0x0, 0x49, 0x311, 0x0, 0x49, 0x323, 0x0, 0x49, 0x328, 0x0, 0x49, 0x330, 0x0, 0x4a, 0x302, 0x0, 0x4b, 0x0, 0x4b, 0x301, 0x0, 0x4b, 0x30c, 0x0, 0x4b, 0x323, 0x0, 0x4b, 0x327, 0x0, 0x4b, 0x331, 0x0, 0x4c, 0x301, 0x0, 0x4c, 0x30c, 0x0, 0x4c, 0x323, 0x0, 0x4c, 0x323, 0x304, 0x0, 0x4c, 0x327, 0x0, 0x4c, 0x32d, 0x0, 0x4c, 0x331, 0x0, 0x4d, 0x301, 0x0, 0x4d, 0x307, 0x0, 0x4d, 0x323, 0x0, 0x4e, 0x300, 0x0, 0x4e, 0x301, 0x0, 0x4e, 0x303, 0x0, 0x4e, 0x307, 0x0, 0x4e, 0x30c, 0x0, 0x4e, 0x323, 0x0, 0x4e, 0x327, 0x0, 0x4e, 0x32d, 0x0, 0x4e, 0x331, 0x0, 0x4f, 0x300, 0x0, 0x4f, 0x301, 0x0, 0x4f, 0x302, 0x0, 0x4f, 0x302, 0x300, 0x0, 0x4f, 0x302, 0x301, 0x0, 0x4f, 0x302, 0x303, 0x0, 0x4f, 0x302, 0x309, 0x0, 0x4f, 0x303, 0x0, 0x4f, 0x303, 0x301, 0x0, 0x4f, 0x303, 0x304, 0x0, 0x4f, 0x303, 0x308, 0x0, 0x4f, 0x304, 0x0, 0x4f, 0x304, 0x300, 0x0, 0x4f, 0x304, 0x301, 0x0, 0x4f, 0x306, 0x0, 0x4f, 0x307, 0x0, 0x4f, 0x307, 0x304, 0x0, 0x4f, 0x308, 0x0, 0x4f, 0x308, 0x304, 0x0, 0x4f, 0x309, 0x0, 0x4f, 0x30b, 0x0, 0x4f, 0x30c, 0x0, 0x4f, 0x30f, 0x0, 0x4f, 0x311, 0x0, 0x4f, 0x31b, 0x0, 0x4f, 0x31b, 0x300, 0x0, 0x4f, 0x31b, 0x301, 0x0, 0x4f, 0x31b, 0x303, 0x0, 0x4f, 0x31b, 0x309, 0x0, 0x4f, 0x31b, 0x323, 0x0, 0x4f, 0x323, 0x0, 0x4f, 0x323, 0x302, 0x0, 0x4f, 0x328, 0x0, 0x4f, 0x328, 0x304, 0x0, 0x50, 0x301, 0x0, 0x50, 0x307, 0x0, 0x52, 0x301, 0x0, 0x52, 0x307, 0x0, 0x52, 0x30c, 0x0, 0x52, 0x30f, 0x0, 0x52, 0x311, 0x0, 0x52, 0x323, 0x0, 0x52, 0x323, 0x304, 0x0, 0x52, 0x327, 0x0, 0x52, 0x331, 0x0, 0x53, 0x301, 0x0, 0x53, 0x301, 0x307, 0x0, 0x53, 0x302, 0x0, 0x53, 0x307, 0x0, 0x53, 0x30c, 0x0, 0x53, 0x30c, 0x307, 0x0, 0x53, 0x323, 0x0, 0x53, 0x323, 0x307, 0x0, 0x53, 0x326, 0x0, 0x53, 0x327, 0x0, 0x54, 0x307, 0x0, 0x54, 0x30c, 0x0, 0x54, 0x323, 0x0, 0x54, 0x326, 0x0, 0x54, 0x327, 0x0, 0x54, 0x32d, 0x0, 0x54, 0x331, 0x0, 0x55, 0x300, 0x0, 0x55, 0x301, 0x0, 0x55, 0x302, 0x0, 0x55, 0x303, 0x0, 0x55, 0x303, 0x301, 0x0, 0x55, 0x304, 0x0, 0x55, 0x304, 0x308, 0x0, 0x55, 0x306, 0x0, 0x55, 0x308, 0x0, 0x55, 0x308, 0x300, 0x0, 0x55, 0x308, 0x301, 0x0, 0x55, 0x308, 0x304, 0x0, 0x55, 0x308, 0x30c, 0x0, 0x55, 0x309, 0x0, 0x55, 0x30a, 0x0, 0x55, 0x30b, 0x0, 0x55, 0x30c, 0x0, 0x55, 0x30f, 0x0, 0x55, 0x311, 0x0, 0x55, 0x31b, 0x0, 0x55, 0x31b, 0x300, 0x0, 0x55, 0x31b, 0x301, 0x0, 0x55, 0x31b, 0x303, 0x0, 0x55, 0x31b, 0x309, 0x0, 0x55, 0x31b, 0x323, 0x0, 0x55, 0x323, 0x0, 0x55, 0x324, 0x0, 0x55, 0x328, 0x0, 0x55, 0x32d, 0x0, 0x55, 0x330, 0x0, 0x56, 0x303, 0x0, 0x56, 0x323, 0x0, 0x57, 0x300, 0x0, 0x57, 0x301, 0x0, 0x57, 0x302, 0x0, 0x57, 0x307, 0x0, 0x57, 0x308, 0x0, 0x57, 0x323, 0x0, 0x58, 0x307, 0x0, 0x58, 0x308, 0x0, 0x59, 0x300, 0x0, 0x59, 0x301, 0x0, 0x59, 0x302, 0x0, 0x59, 0x303, 0x0, 0x59, 0x304, 0x0, 0x59, 0x307, 0x0, 0x59, 0x308, 0x0, 0x59, 0x309, 0x0, 0x59, 0x323, 0x0, 0x5a, 0x301, 0x0, 0x5a, 0x302, 0x0, 0x5a, 0x307, 0x0, 0x5a, 0x30c, 0x0, 0x5a, 0x323, 0x0, 0x5a, 0x331, 0x0, 0x60, 0x0, 0x61, 0x300, 0x0, 0x61, 0x301, 0x0, 0x61, 0x302, 0x0, 0x61, 0x302, 0x300, 0x0, 0x61, 0x302, 0x301, 0x0, 0x61, 0x302, 0x303, 0x0, 0x61, 0x302, 0x309, 0x0, 0x61, 0x303, 0x0, 0x61, 0x304, 0x0, 0x61, 0x306, 0x0, 0x61, 0x306, 0x300, 0x0, 0x61, 0x306, 0x301, 0x0, 0x61, 0x306, 0x303, 0x0, 0x61, 0x306, 0x309, 0x0, 0x61, 0x307, 0x0, 0x61, 0x307, 0x304, 0x0, 0x61, 0x308, 0x0, 0x61, 0x308, 0x304, 0x0, 0x61, 0x309, 0x0, 0x61, 0x30a, 0x0, 0x61, 0x30a, 0x301, 0x0, 0x61, 0x30c, 0x0, 0x61, 0x30f, 0x0, 0x61, 0x311, 0x0, 0x61, 0x323, 0x0, 0x61, 0x323, 0x302, 0x0, 0x61, 0x323, 0x306, 0x0, 0x61, 0x325, 0x0, 0x61, 0x328, 0x0, 0x62, 0x307, 0x0, 0x62, 0x323, 0x0, 0x62, 0x331, 0x0, 0x63, 0x301, 0x0, 0x63, 0x302, 0x0, 0x63, 0x307, 0x0, 0x63, 0x30c, 0x0, 0x63, 0x327, 0x0, 0x63, 0x327, 0x301, 0x0, 0x64, 0x307, 0x0, 0x64, 0x30c, 0x0, 0x64, 0x323, 0x0, 0x64, 0x327, 0x0, 0x64, 0x32d, 0x0, 0x64, 0x331, 0x0, 0x65, 0x300, 0x0, 0x65, 0x301, 0x0, 0x65, 0x302, 0x0, 0x65, 0x302, 0x300, 0x0, 0x65, 0x302, 0x301, 0x0, 0x65, 0x302, 0x303, 0x0, 0x65, 0x302, 0x309, 0x0, 0x65, 0x303, 0x0, 0x65, 0x304, 0x0, 0x65, 0x304, 0x300, 0x0, 0x65, 0x304, 0x301, 0x0, 0x65, 0x306, 0x0, 0x65, 0x307, 0x0, 0x65, 0x308, 0x0, 0x65, 0x309, 0x0, 0x65, 0x30c, 0x0, 0x65, 0x30f, 0x0, 0x65, 0x311, 0x0, 0x65, 0x323, 0x0, 0x65, 0x323, 0x302, 0x0, 0x65, 0x327, 0x0, 0x65, 0x327, 0x306, 0x0, 0x65, 0x328, 0x0, 0x65, 0x32d, 0x0, 0x65, 0x330, 0x0, 0x66, 0x307, 0x0, 0x67, 0x301, 0x0, 0x67, 0x302, 0x0, 0x67, 0x304, 0x0, 0x67, 0x306, 0x0, 0x67, 0x307, 0x0, 0x67, 0x30c, 0x0, 0x67, 0x327, 0x0, 0x68, 0x302, 0x0, 0x68, 0x307, 0x0, 0x68, 0x308, 0x0, 0x68, 0x30c, 0x0, 0x68, 0x323, 0x0, 0x68, 0x327, 0x0, 0x68, 0x32e, 0x0, 0x68, 0x331, 0x0, 0x69, 0x300, 0x0, 0x69, 0x301, 0x0, 0x69, 0x302, 0x0, 0x69, 0x303, 0x0, 0x69, 0x304, 0x0, 0x69, 0x306, 0x0, 0x69, 0x308, 0x0, 0x69, 0x308, 0x301, 0x0, 0x69, 0x309, 0x0, 0x69, 0x30c, 0x0, 0x69, 0x30f, 0x0, 0x69, 0x311, 0x0, 0x69, 0x323, 0x0, 0x69, 0x328, 0x0, 0x69, 0x330, 0x0, 0x6a, 0x302, 0x0, 0x6a, 0x30c, 0x0, 0x6b, 0x301, 0x0, 0x6b, 0x30c, 0x0, 0x6b, 0x323, 0x0, 0x6b, 0x327, 0x0, 0x6b, 0x331, 0x0, 0x6c, 0x301, 0x0, 0x6c, 0x30c, 0x0, 0x6c, 0x323, 0x0, 0x6c, 0x323, 0x304, 0x0, 0x6c, 0x327, 0x0, 0x6c, 0x32d, 0x0, 0x6c, 0x331, 0x0, 0x6d, 0x301, 0x0, 0x6d, 0x307, 0x0, 0x6d, 0x323, 0x0, 0x6e, 0x300, 0x0, 0x6e, 0x301, 0x0, 0x6e, 0x303, 0x0, 0x6e, 0x307, 0x0, 0x6e, 0x30c, 0x0, 0x6e, 0x323, 0x0, 0x6e, 0x327, 0x0, 0x6e, 0x32d, 0x0, 0x6e, 0x331, 0x0, 0x6f, 0x300, 0x0, 0x6f, 0x301, 0x0, 0x6f, 0x302, 0x0, 0x6f, 0x302, 0x300, 0x0, 0x6f, 0x302, 0x301, 0x0, 0x6f, 0x302, 0x303, 0x0, 0x6f, 0x302, 0x309, 0x0, 0x6f, 0x303, 0x0, 0x6f, 0x303, 0x301, 0x0, 0x6f, 0x303, 0x304, 0x0, 0x6f, 0x303, 0x308, 0x0, 0x6f, 0x304, 0x0, 0x6f, 0x304, 0x300, 0x0, 0x6f, 0x304, 0x301, 0x0, 0x6f, 0x306, 0x0, 0x6f, 0x307, 0x0, 0x6f, 0x307, 0x304, 0x0, 0x6f, 0x308, 0x0, 0x6f, 0x308, 0x304, 0x0, 0x6f, 0x309, 0x0, 0x6f, 0x30b, 0x0, 0x6f, 0x30c, 0x0, 0x6f, 0x30f, 0x0, 0x6f, 0x311, 0x0, 0x6f, 0x31b, 0x0, 0x6f, 0x31b, 0x300, 0x0, 0x6f, 0x31b, 0x301, 0x0, 0x6f, 0x31b, 0x303, 0x0, 0x6f, 0x31b, 0x309, 0x0, 0x6f, 0x31b, 0x323, 0x0, 0x6f, 0x323, 0x0, 0x6f, 0x323, 0x302, 0x0, 0x6f, 0x328, 0x0, 0x6f, 0x328, 0x304, 0x0, 0x70, 0x301, 0x0, 0x70, 0x307, 0x0, 0x72, 0x301, 0x0, 0x72, 0x307, 0x0, 0x72, 0x30c, 0x0, 0x72, 0x30f, 0x0, 0x72, 0x311, 0x0, 0x72, 0x323, 0x0, 0x72, 0x323, 0x304, 0x0, 0x72, 0x327, 0x0, 0x72, 0x331, 0x0, 0x73, 0x301, 0x0, 0x73, 0x301, 0x307, 0x0, 0x73, 0x302, 0x0, 0x73, 0x307, 0x0, 0x73, 0x30c, 0x0, 0x73, 0x30c, 0x307, 0x0, 0x73, 0x323, 0x0, 0x73, 0x323, 0x307, 0x0, 0x73, 0x326, 0x0, 0x73, 0x327, 0x0, 0x74, 0x307, 0x0, 0x74, 0x308, 0x0, 0x74, 0x30c, 0x0, 0x74, 0x323, 0x0, 0x74, 0x326, 0x0, 0x74, 0x327, 0x0, 0x74, 0x32d, 0x0, 0x74, 0x331, 0x0, 0x75, 0x300, 0x0, 0x75, 0x301, 0x0, 0x75, 0x302, 0x0, 0x75, 0x303, 0x0, 0x75, 0x303, 0x301, 0x0, 0x75, 0x304, 0x0, 0x75, 0x304, 0x308, 0x0, 0x75, 0x306, 0x0, 0x75, 0x308, 0x0, 0x75, 0x308, 0x300, 0x0, 0x75, 0x308, 0x301, 0x0, 0x75, 0x308, 0x304, 0x0, 0x75, 0x308, 0x30c, 0x0, 0x75, 0x309, 0x0, 0x75, 0x30a, 0x0, 0x75, 0x30b, 0x0, 0x75, 0x30c, 0x0, 0x75, 0x30f, 0x0, 0x75, 0x311, 0x0, 0x75, 0x31b, 0x0, 0x75, 0x31b, 0x300, 0x0, 0x75, 0x31b, 0x301, 0x0, 0x75, 0x31b, 0x303, 0x0, 0x75, 0x31b, 0x309, 0x0, 0x75, 0x31b, 0x323, 0x0, 0x75, 0x323, 0x0, 0x75, 0x324, 0x0, 0x75, 0x328, 0x0, 0x75, 0x32d, 0x0, 0x75, 0x330, 0x0, 0x76, 0x303, 0x0, 0x76, 0x323, 0x0, 0x77, 0x300, 0x0, 0x77, 0x301, 0x0, 0x77, 0x302, 0x0, 0x77, 0x307, 0x0, 0x77, 0x308, 0x0, 0x77, 0x30a, 0x0, 0x77, 0x323, 0x0, 0x78, 0x307, 0x0, 0x78, 0x308, 0x0, 0x79, 0x300, 0x0, 0x79, 0x301, 0x0, 0x79, 0x302, 0x0, 0x79, 0x303, 0x0, 0x79, 0x304, 0x0, 0x79, 0x307, 0x0, 0x79, 0x308, 0x0, 0x79, 0x309, 0x0, 0x79, 0x30a, 0x0, 0x79, 0x323, 0x0, 0x7a, 0x301, 0x0, 0x7a, 0x302, 0x0, 0x7a, 0x307, 0x0, 0x7a, 0x30c, 0x0, 0x7a, 0x323, 0x0, 0x7a, 0x331, 0x0, 0xa8, 0x300, 0x0, 0xa8, 0x301, 0x0, 0xa8, 0x342, 0x0, 0xb4, 0x0, 0xb7, 0x0, 0xc6, 0x301, 0x0, 0xc6, 0x304, 0x0, 0xd8, 0x301, 0x0, 0xe6, 0x301, 0x0, 0xe6, 0x304, 0x0, 0xf8, 0x301, 0x0, 0x17f, 0x307, 0x0, 0x1b7, 0x30c, 0x0, 0x292, 0x30c, 0x0, 0x2b9, 0x0, 0x300, 0x0, 0x301, 0x0, 0x308, 0x301, 0x0, 0x313, 0x0, 0x391, 0x300, 0x0, 0x391, 0x301, 0x0, 0x391, 0x304, 0x0, 0x391, 0x306, 0x0, 0x391, 0x313, 0x0, 0x391, 0x313, 0x300, 0x0, 0x391, 0x313, 0x300, 0x345, 0x0, 0x391, 0x313, 0x301, 0x0, 0x391, 0x313, 0x301, 0x345, 0x0, 0x391, 0x313, 0x342, 0x0, 0x391, 0x313, 0x342, 0x345, 0x0, 0x391, 0x313, 0x345, 0x0, 0x391, 0x314, 0x0, 0x391, 0x314, 0x300, 0x0, 0x391, 0x314, 0x300, 0x345, 0x0, 0x391, 0x314, 0x301, 0x0, 0x391, 0x314, 0x301, 0x345, 0x0, 0x391, 0x314, 0x342, 0x0, 0x391, 0x314, 0x342, 0x345, 0x0, 0x391, 0x314, 0x345, 0x0, 0x391, 0x345, 0x0, 0x395, 0x300, 0x0, 0x395, 0x301, 0x0, 0x395, 0x313, 0x0, 0x395, 0x313, 0x300, 0x0, 0x395, 0x313, 0x301, 0x0, 0x395, 0x314, 0x0, 0x395, 0x314, 0x300, 0x0, 0x395, 0x314, 0x301, 0x0, 0x397, 0x300, 0x0, 0x397, 0x301, 0x0, 0x397, 0x313, 0x0, 0x397, 0x313, 0x300, 0x0, 0x397, 0x313, 0x300, 0x345, 0x0, 0x397, 0x313, 0x301, 0x0, 0x397, 0x313, 0x301, 0x345, 0x0, 0x397, 0x313, 0x342, 0x0, 0x397, 0x313, 0x342, 0x345, 0x0, 0x397, 0x313, 0x345, 0x0, 0x397, 0x314, 0x0, 0x397, 0x314, 0x300, 0x0, 0x397, 0x314, 0x300, 0x345, 0x0, 0x397, 0x314, 0x301, 0x0, 0x397, 0x314, 0x301, 0x345, 0x0, 0x397, 0x314, 0x342, 0x0, 0x397, 0x314, 0x342, 0x345, 0x0, 0x397, 0x314, 0x345, 0x0, 0x397, 0x345, 0x0, 0x399, 0x300, 0x0, 0x399, 0x301, 0x0, 0x399, 0x304, 0x0, 0x399, 0x306, 0x0, 0x399, 0x308, 0x0, 0x399, 0x313, 0x0, 0x399, 0x313, 0x300, 0x0, 0x399, 0x313, 0x301, 0x0, 0x399, 0x313, 0x342, 0x0, 0x399, 0x314, 0x0, 0x399, 0x314, 0x300, 0x0, 0x399, 0x314, 0x301, 0x0, 0x399, 0x314, 0x342, 0x0, 0x39f, 0x300, 0x0, 0x39f, 0x301, 0x0, 0x39f, 0x313, 0x0, 0x39f, 0x313, 0x300, 0x0, 0x39f, 0x313, 0x301, 0x0, 0x39f, 0x314, 0x0, 0x39f, 0x314, 0x300, 0x0, 0x39f, 0x314, 0x301, 0x0, 0x3a1, 0x314, 0x0, 0x3a5, 0x300, 0x0, 0x3a5, 0x301, 0x0, 0x3a5, 0x304, 0x0, 0x3a5, 0x306, 0x0, 0x3a5, 0x308, 0x0, 0x3a5, 0x314, 0x0, 0x3a5, 0x314, 0x300, 0x0, 0x3a5, 0x314, 0x301, 0x0, 0x3a5, 0x314, 0x342, 0x0, 0x3a9, 0x0, 0x3a9, 0x300, 0x0, 0x3a9, 0x301, 0x0, 0x3a9, 0x313, 0x0, 0x3a9, 0x313, 0x300, 0x0, 0x3a9, 0x313, 0x300, 0x345, 0x0, 0x3a9, 0x313, 0x301, 0x0, 0x3a9, 0x313, 0x301, 0x345, 0x0, 0x3a9, 0x313, 0x342, 0x0, 0x3a9, 0x313, 0x342, 0x345, 0x0, 0x3a9, 0x313, 0x345, 0x0, 0x3a9, 0x314, 0x0, 0x3a9, 0x314, 0x300, 0x0, 0x3a9, 0x314, 0x300, 0x345, 0x0, 0x3a9, 0x314, 0x301, 0x0, 0x3a9, 0x314, 0x301, 0x345, 0x0, 0x3a9, 0x314, 0x342, 0x0, 0x3a9, 0x314, 0x342, 0x345, 0x0, 0x3a9, 0x314, 0x345, 0x0, 0x3a9, 0x345, 0x0, 0x3b1, 0x300, 0x0, 0x3b1, 0x300, 0x345, 0x0, 0x3b1, 0x301, 0x0, 0x3b1, 0x301, 0x345, 0x0, 0x3b1, 0x304, 0x0, 0x3b1, 0x306, 0x0, 0x3b1, 0x313, 0x0, 0x3b1, 0x313, 0x300, 0x0, 0x3b1, 0x313, 0x300, 0x345, 0x0, 0x3b1, 0x313, 0x301, 0x0, 0x3b1, 0x313, 0x301, 0x345, 0x0, 0x3b1, 0x313, 0x342, 0x0, 0x3b1, 0x313, 0x342, 0x345, 0x0, 0x3b1, 0x313, 0x345, 0x0, 0x3b1, 0x314, 0x0, 0x3b1, 0x314, 0x300, 0x0, 0x3b1, 0x314, 0x300, 0x345, 0x0, 0x3b1, 0x314, 0x301, 0x0, 0x3b1, 0x314, 0x301, 0x345, 0x0, 0x3b1, 0x314, 0x342, 0x0, 0x3b1, 0x314, 0x342, 0x345, 0x0, 0x3b1, 0x314, 0x345, 0x0, 0x3b1, 0x342, 0x0, 0x3b1, 0x342, 0x345, 0x0, 0x3b1, 0x345, 0x0, 0x3b5, 0x300, 0x0, 0x3b5, 0x301, 0x0, 0x3b5, 0x313, 0x0, 0x3b5, 0x313, 0x300, 0x0, 0x3b5, 0x313, 0x301, 0x0, 0x3b5, 0x314, 0x0, 0x3b5, 0x314, 0x300, 0x0, 0x3b5, 0x314, 0x301, 0x0, 0x3b7, 0x300, 0x0, 0x3b7, 0x300, 0x345, 0x0, 0x3b7, 0x301, 0x0, 0x3b7, 0x301, 0x345, 0x0, 0x3b7, 0x313, 0x0, 0x3b7, 0x313, 0x300, 0x0, 0x3b7, 0x313, 0x300, 0x345, 0x0, 0x3b7, 0x313, 0x301, 0x0, 0x3b7, 0x313, 0x301, 0x345, 0x0, 0x3b7, 0x313, 0x342, 0x0, 0x3b7, 0x313, 0x342, 0x345, 0x0, 0x3b7, 0x313, 0x345, 0x0, 0x3b7, 0x314, 0x0, 0x3b7, 0x314, 0x300, 0x0, 0x3b7, 0x314, 0x300, 0x345, 0x0, 0x3b7, 0x314, 0x301, 0x0, 0x3b7, 0x314, 0x301, 0x345, 0x0, 0x3b7, 0x314, 0x342, 0x0, 0x3b7, 0x314, 0x342, 0x345, 0x0, 0x3b7, 0x314, 0x345, 0x0, 0x3b7, 0x342, 0x0, 0x3b7, 0x342, 0x345, 0x0, 0x3b7, 0x345, 0x0, 0x3b9, 0x0, 0x3b9, 0x300, 0x0, 0x3b9, 0x301, 0x0, 0x3b9, 0x304, 0x0, 0x3b9, 0x306, 0x0, 0x3b9, 0x308, 0x0, 0x3b9, 0x308, 0x300, 0x0, 0x3b9, 0x308, 0x301, 0x0, 0x3b9, 0x308, 0x342, 0x0, 0x3b9, 0x313, 0x0, 0x3b9, 0x313, 0x300, 0x0, 0x3b9, 0x313, 0x301, 0x0, 0x3b9, 0x313, 0x342, 0x0, 0x3b9, 0x314, 0x0, 0x3b9, 0x314, 0x300, 0x0, 0x3b9, 0x314, 0x301, 0x0, 0x3b9, 0x314, 0x342, 0x0, 0x3b9, 0x342, 0x0, 0x3bf, 0x300, 0x0, 0x3bf, 0x301, 0x0, 0x3bf, 0x313, 0x0, 0x3bf, 0x313, 0x300, 0x0, 0x3bf, 0x313, 0x301, 0x0, 0x3bf, 0x314, 0x0, 0x3bf, 0x314, 0x300, 0x0, 0x3bf, 0x314, 0x301, 0x0, 0x3c1, 0x313, 0x0, 0x3c1, 0x314, 0x0, 0x3c5, 0x300, 0x0, 0x3c5, 0x301, 0x0, 0x3c5, 0x304, 0x0, 0x3c5, 0x306, 0x0, 0x3c5, 0x308, 0x0, 0x3c5, 0x308, 0x300, 0x0, 0x3c5, 0x308, 0x301, 0x0, 0x3c5, 0x308, 0x342, 0x0, 0x3c5, 0x313, 0x0, 0x3c5, 0x313, 0x300, 0x0, 0x3c5, 0x313, 0x301, 0x0, 0x3c5, 0x313, 0x342, 0x0, 0x3c5, 0x314, 0x0, 0x3c5, 0x314, 0x300, 0x0, 0x3c5, 0x314, 0x301, 0x0, 0x3c5, 0x314, 0x342, 0x0, 0x3c5, 0x342, 0x0, 0x3c9, 0x300, 0x0, 0x3c9, 0x300, 0x345, 0x0, 0x3c9, 0x301, 0x0, 0x3c9, 0x301, 0x345, 0x0, 0x3c9, 0x313, 0x0, 0x3c9, 0x313, 0x300, 0x0, 0x3c9, 0x313, 0x300, 0x345, 0x0, 0x3c9, 0x313, 0x301, 0x0, 0x3c9, 0x313, 0x301, 0x345, 0x0, 0x3c9, 0x313, 0x342, 0x0, 0x3c9, 0x313, 0x342, 0x345, 0x0, 0x3c9, 0x313, 0x345, 0x0, 0x3c9, 0x314, 0x0, 0x3c9, 0x314, 0x300, 0x0, 0x3c9, 0x314, 0x300, 0x345, 0x0, 0x3c9, 0x314, 0x301, 0x0, 0x3c9, 0x314, 0x301, 0x345, 0x0, 0x3c9, 0x314, 0x342, 0x0, 0x3c9, 0x314, 0x342, 0x345, 0x0, 0x3c9, 0x314, 0x345, 0x0, 0x3c9, 0x342, 0x0, 0x3c9, 0x342, 0x345, 0x0, 0x3c9, 0x345, 0x0, 0x3d2, 0x301, 0x0, 0x3d2, 0x308, 0x0, 0x406, 0x308, 0x0, 0x410, 0x306, 0x0, 0x410, 0x308, 0x0, 0x413, 0x301, 0x0, 0x415, 0x300, 0x0, 0x415, 0x306, 0x0, 0x415, 0x308, 0x0, 0x416, 0x306, 0x0, 0x416, 0x308, 0x0, 0x417, 0x308, 0x0, 0x418, 0x300, 0x0, 0x418, 0x304, 0x0, 0x418, 0x306, 0x0, 0x418, 0x308, 0x0, 0x41a, 0x301, 0x0, 0x41e, 0x308, 0x0, 0x423, 0x304, 0x0, 0x423, 0x306, 0x0, 0x423, 0x308, 0x0, 0x423, 0x30b, 0x0, 0x427, 0x308, 0x0, 0x42b, 0x308, 0x0, 0x42d, 0x308, 0x0, 0x430, 0x306, 0x0, 0x430, 0x308, 0x0, 0x433, 0x301, 0x0, 0x435, 0x300, 0x0, 0x435, 0x306, 0x0, 0x435, 0x308, 0x0, 0x436, 0x306, 0x0, 0x436, 0x308, 0x0, 0x437, 0x308, 0x0, 0x438, 0x300, 0x0, 0x438, 0x304, 0x0, 0x438, 0x306, 0x0, 0x438, 0x308, 0x0, 0x43a, 0x301, 0x0, 0x43e, 0x308, 0x0, 0x443, 0x304, 0x0, 0x443, 0x306, 0x0, 0x443, 0x308, 0x0, 0x443, 0x30b, 0x0, 0x447, 0x308, 0x0, 0x44b, 0x308, 0x0, 0x44d, 0x308, 0x0, 0x456, 0x308, 0x0, 0x474, 0x30f, 0x0, 0x475, 0x30f, 0x0, 0x4d8, 0x308, 0x0, 0x4d9, 0x308, 0x0, 0x4e8, 0x308, 0x0, 0x4e9, 0x308, 0x0, 0x5d0, 0x5b7, 0x0, 0x5d0, 0x5b8, 0x0, 0x5d0, 0x5bc, 0x0, 0x5d1, 0x5bc, 0x0, 0x5d1, 0x5bf, 0x0, 0x5d2, 0x5bc, 0x0, 0x5d3, 0x5bc, 0x0, 0x5d4, 0x5bc, 0x0, 0x5d5, 0x5b9, 0x0, 0x5d5, 0x5bc, 0x0, 0x5d6, 0x5bc, 0x0, 0x5d8, 0x5bc, 0x0, 0x5d9, 0x5b4, 0x0, 0x5d9, 0x5bc, 0x0, 0x5da, 0x5bc, 0x0, 0x5db, 0x5bc, 0x0, 0x5db, 0x5bf, 0x0, 0x5dc, 0x5bc, 0x0, 0x5de, 0x5bc, 0x0, 0x5e0, 0x5bc, 0x0, 0x5e1, 0x5bc, 0x0, 0x5e3, 0x5bc, 0x0, 0x5e4, 0x5bc, 0x0, 0x5e4, 0x5bf, 0x0, 0x5e6, 0x5bc, 0x0, 0x5e7, 0x5bc, 0x0, 0x5e8, 0x5bc, 0x0, 0x5e9, 0x5bc, 0x0, 0x5e9, 0x5bc, 0x5c1, 0x0, 0x5e9, 0x5bc, 0x5c2, 0x0, 0x5e9, 0x5c1, 0x0, 0x5e9, 0x5c2, 0x0, 0x5ea, 0x5bc, 0x0, 0x5f2, 0x5b7, 0x0, 0x627, 0x653, 0x0, 0x627, 0x654, 0x0, 0x627, 0x655, 0x0, 0x648, 0x654, 0x0, 0x64a, 0x654, 0x0, 0x6c1, 0x654, 0x0, 0x6d2, 0x654, 0x0, 0x6d5, 0x654, 0x0, 0x915, 0x93c, 0x0, 0x916, 0x93c, 0x0, 0x917, 0x93c, 0x0, 0x91c, 0x93c, 0x0, 0x921, 0x93c, 0x0, 0x922, 0x93c, 0x0, 0x928, 0x93c, 0x0, 0x92b, 0x93c, 0x0, 0x92f, 0x93c, 0x0, 0x930, 0x93c, 0x0, 0x933, 0x93c, 0x0, 0x9a1, 0x9bc, 0x0, 0x9a2, 0x9bc, 0x0, 0x9af, 0x9bc, 0x0, 0x9c7, 0x9be, 0x0, 0x9c7, 0x9d7, 0x0, 0xa16, 0xa3c, 0x0, 0xa17, 0xa3c, 0x0, 0xa1c, 0xa3c, 0x0, 0xa2b, 0xa3c, 0x0, 0xa32, 0xa3c, 0x0, 0xa38, 0xa3c, 0x0, 0xb21, 0xb3c, 0x0, 0xb22, 0xb3c, 0x0, 0xb47, 0xb3e, 0x0, 0xb47, 0xb56, 0x0, 0xb47, 0xb57, 0x0, 0xb92, 0xbd7, 0x0, 0xbc6, 0xbbe, 0x0, 0xbc6, 0xbd7, 0x0, 0xbc7, 0xbbe, 0x0, 0xc46, 0xc56, 0x0, 0xcbf, 0xcd5, 0x0, 0xcc6, 0xcc2, 0x0, 0xcc6, 0xcc2, 0xcd5, 0x0, 0xcc6, 0xcd5, 0x0, 0xcc6, 0xcd6, 0x0, 0xd46, 0xd3e, 0x0, 0xd46, 0xd57, 0x0, 0xd47, 0xd3e, 0x0, 0xdd9, 0xdca, 0x0, 0xdd9, 0xdcf, 0x0, 0xdd9, 0xdcf, 0xdca, 0x0, 0xdd9, 0xddf, 0x0, 0xf40, 0xfb5, 0x0, 0xf42, 0xfb7, 0x0, 0xf4c, 0xfb7, 0x0, 0xf51, 0xfb7, 0x0, 0xf56, 0xfb7, 0x0, 0xf5b, 0xfb7, 0x0, 0xf71, 0xf72, 0x0, 0xf71, 0xf74, 0x0, 0xf71, 0xf80, 0x0, 0xf90, 0xfb5, 0x0, 0xf92, 0xfb7, 0x0, 0xf9c, 0xfb7, 0x0, 0xfa1, 0xfb7, 0x0, 0xfa6, 0xfb7, 0x0, 0xfab, 0xfb7, 0x0, 0xfb2, 0xf80, 0x0, 0xfb3, 0xf80, 0x0, 0x1025, 0x102e, 0x0, 0x1b05, 0x1b35, 0x0, 0x1b07, 0x1b35, 0x0, 0x1b09, 0x1b35, 0x0, 0x1b0b, 0x1b35, 0x0, 0x1b0d, 0x1b35, 0x0, 0x1b11, 0x1b35, 0x0, 0x1b3a, 0x1b35, 0x0, 0x1b3c, 0x1b35, 0x0, 0x1b3e, 0x1b35, 0x0, 0x1b3f, 0x1b35, 0x0, 0x1b42, 0x1b35, 0x0, 0x1fbf, 0x300, 0x0, 0x1fbf, 0x301, 0x0, 0x1fbf, 0x342, 0x0, 0x1ffe, 0x300, 0x0, 0x1ffe, 0x301, 0x0, 0x1ffe, 0x342, 0x0, 0x2002, 0x0, 0x2003, 0x0, 0x2190, 0x338, 0x0, 0x2192, 0x338, 0x0, 0x2194, 0x338, 0x0, 0x21d0, 0x338, 0x0, 0x21d2, 0x338, 0x0, 0x21d4, 0x338, 0x0, 0x2203, 0x338, 0x0, 0x2208, 0x338, 0x0, 0x220b, 0x338, 0x0, 0x2223, 0x338, 0x0, 0x2225, 0x338, 0x0, 0x223c, 0x338, 0x0, 0x2243, 0x338, 0x0, 0x2245, 0x338, 0x0, 0x2248, 0x338, 0x0, 0x224d, 0x338, 0x0, 0x2261, 0x338, 0x0, 0x2264, 0x338, 0x0, 0x2265, 0x338, 0x0, 0x2272, 0x338, 0x0, 0x2273, 0x338, 0x0, 0x2276, 0x338, 0x0, 0x2277, 0x338, 0x0, 0x227a, 0x338, 0x0, 0x227b, 0x338, 0x0, 0x227c, 0x338, 0x0, 0x227d, 0x338, 0x0, 0x2282, 0x338, 0x0, 0x2283, 0x338, 0x0, 0x2286, 0x338, 0x0, 0x2287, 0x338, 0x0, 0x2291, 0x338, 0x0, 0x2292, 0x338, 0x0, 0x22a2, 0x338, 0x0, 0x22a8, 0x338, 0x0, 0x22a9, 0x338, 0x0, 0x22ab, 0x338, 0x0, 0x22b2, 0x338, 0x0, 0x22b3, 0x338, 0x0, 0x22b4, 0x338, 0x0, 0x22b5, 0x338, 0x0, 0x2add, 0x338, 0x0, 0x3008, 0x0, 0x3009, 0x0, 0x3046, 0x3099, 0x0, 0x304b, 0x3099, 0x0, 0x304d, 0x3099, 0x0, 0x304f, 0x3099, 0x0, 0x3051, 0x3099, 0x0, 0x3053, 0x3099, 0x0, 0x3055, 0x3099, 0x0, 0x3057, 0x3099, 0x0, 0x3059, 0x3099, 0x0, 0x305b, 0x3099, 0x0, 0x305d, 0x3099, 0x0, 0x305f, 0x3099, 0x0, 0x3061, 0x3099, 0x0, 0x3064, 0x3099, 0x0, 0x3066, 0x3099, 0x0, 0x3068, 0x3099, 0x0, 0x306f, 0x3099, 0x0, 0x306f, 0x309a, 0x0, 0x3072, 0x3099, 0x0, 0x3072, 0x309a, 0x0, 0x3075, 0x3099, 0x0, 0x3075, 0x309a, 0x0, 0x3078, 0x3099, 0x0, 0x3078, 0x309a, 0x0, 0x307b, 0x3099, 0x0, 0x307b, 0x309a, 0x0, 0x309d, 0x3099, 0x0, 0x30a6, 0x3099, 0x0, 0x30ab, 0x3099, 0x0, 0x30ad, 0x3099, 0x0, 0x30af, 0x3099, 0x0, 0x30b1, 0x3099, 0x0, 0x30b3, 0x3099, 0x0, 0x30b5, 0x3099, 0x0, 0x30b7, 0x3099, 0x0, 0x30b9, 0x3099, 0x0, 0x30bb, 0x3099, 0x0, 0x30bd, 0x3099, 0x0, 0x30bf, 0x3099, 0x0, 0x30c1, 0x3099, 0x0, 0x30c4, 0x3099, 0x0, 0x30c6, 0x3099, 0x0, 0x30c8, 0x3099, 0x0, 0x30cf, 0x3099, 0x0, 0x30cf, 0x309a, 0x0, 0x30d2, 0x3099, 0x0, 0x30d2, 0x309a, 0x0, 0x30d5, 0x3099, 0x0, 0x30d5, 0x309a, 0x0, 0x30d8, 0x3099, 0x0, 0x30d8, 0x309a, 0x0, 0x30db, 0x3099, 0x0, 0x30db, 0x309a, 0x0, 0x30ef, 0x3099, 0x0, 0x30f0, 0x3099, 0x0, 0x30f1, 0x3099, 0x0, 0x30f2, 0x3099, 0x0, 0x30fd, 0x3099, 0x0, 0x349e, 0x0, 0x34b9, 0x0, 0x34bb, 0x0, 0x34df, 0x0, 0x3515, 0x0, 0x36ee, 0x0, 0x36fc, 0x0, 0x3781, 0x0, 0x382f, 0x0, 0x3862, 0x0, 0x387c, 0x0, 0x38c7, 0x0, 0x38e3, 0x0, 0x391c, 0x0, 0x393a, 0x0, 0x3a2e, 0x0, 0x3a6c, 0x0, 0x3ae4, 0x0, 0x3b08, 0x0, 0x3b19, 0x0, 0x3b49, 0x0, 0x3b9d, 0x0, 0x3c18, 0x0, 0x3c4e, 0x0, 0x3d33, 0x0, 0x3d96, 0x0, 0x3eac, 0x0, 0x3eb8, 0x0, 0x3f1b, 0x0, 0x3ffc, 0x0, 0x4008, 0x0, 0x4018, 0x0, 0x4039, 0x0, 0x4046, 0x0, 0x4096, 0x0, 0x40e3, 0x0, 0x412f, 0x0, 0x4202, 0x0, 0x4227, 0x0, 0x42a0, 0x0, 0x4301, 0x0, 0x4334, 0x0, 0x4359, 0x0, 0x43d5, 0x0, 0x43d9, 0x0, 0x440b, 0x0, 0x446b, 0x0, 0x452b, 0x0, 0x455d, 0x0, 0x4561, 0x0, 0x456b, 0x0, 0x45d7, 0x0, 0x45f9, 0x0, 0x4635, 0x0, 0x46be, 0x0, 0x46c7, 0x0, 0x4995, 0x0, 0x49e6, 0x0, 0x4a6e, 0x0, 0x4a76, 0x0, 0x4ab2, 0x0, 0x4b33, 0x0, 0x4bce, 0x0, 0x4cce, 0x0, 0x4ced, 0x0, 0x4cf8, 0x0, 0x4d56, 0x0, 0x4e0d, 0x0, 0x4e26, 0x0, 0x4e32, 0x0, 0x4e38, 0x0, 0x4e39, 0x0, 0x4e3d, 0x0, 0x4e41, 0x0, 0x4e82, 0x0, 0x4e86, 0x0, 0x4eae, 0x0, 0x4ec0, 0x0, 0x4ecc, 0x0, 0x4ee4, 0x0, 0x4f60, 0x0, 0x4f80, 0x0, 0x4f86, 0x0, 0x4f8b, 0x0, 0x4fae, 0x0, 0x4fbb, 0x0, 0x4fbf, 0x0, 0x5002, 0x0, 0x502b, 0x0, 0x507a, 0x0, 0x5099, 0x0, 0x50cf, 0x0, 0x50da, 0x0, 0x50e7, 0x0, 0x5140, 0x0, 0x5145, 0x0, 0x514d, 0x0, 0x5154, 0x0, 0x5164, 0x0, 0x5167, 0x0, 0x5168, 0x0, 0x5169, 0x0, 0x516d, 0x0, 0x5177, 0x0, 0x5180, 0x0, 0x518d, 0x0, 0x5192, 0x0, 0x5195, 0x0, 0x5197, 0x0, 0x51a4, 0x0, 0x51ac, 0x0, 0x51b5, 0x0, 0x51b7, 0x0, 0x51c9, 0x0, 0x51cc, 0x0, 0x51dc, 0x0, 0x51de, 0x0, 0x51f5, 0x0, 0x5203, 0x0, 0x5207, 0x0, 0x5217, 0x0, 0x5229, 0x0, 0x523a, 0x0, 0x523b, 0x0, 0x5246, 0x0, 0x5272, 0x0, 0x5277, 0x0, 0x5289, 0x0, 0x529b, 0x0, 0x52a3, 0x0, 0x52b3, 0x0, 0x52c7, 0x0, 0x52c9, 0x0, 0x52d2, 0x0, 0x52de, 0x0, 0x52e4, 0x0, 0x52f5, 0x0, 0x52fa, 0x0, 0x5305, 0x0, 0x5306, 0x0, 0x5317, 0x0, 0x533f, 0x0, 0x5349, 0x0, 0x5351, 0x0, 0x535a, 0x0, 0x5373, 0x0, 0x5375, 0x0, 0x537d, 0x0, 0x537f, 0x0, 0x53c3, 0x0, 0x53ca, 0x0, 0x53df, 0x0, 0x53e5, 0x0, 0x53eb, 0x0, 0x53f1, 0x0, 0x5406, 0x0, 0x540f, 0x0, 0x541d, 0x0, 0x5438, 0x0, 0x5442, 0x0, 0x5448, 0x0, 0x5468, 0x0, 0x549e, 0x0, 0x54a2, 0x0, 0x54bd, 0x0, 0x54f6, 0x0, 0x5510, 0x0, 0x5553, 0x0, 0x5555, 0x0, 0x5563, 0x0, 0x5584, 0x0, 0x5587, 0x0, 0x5599, 0x0, 0x559d, 0x0, 0x55ab, 0x0, 0x55b3, 0x0, 0x55c0, 0x0, 0x55c2, 0x0, 0x55e2, 0x0, 0x5606, 0x0, 0x5651, 0x0, 0x5668, 0x0, 0x5674, 0x0, 0x56f9, 0x0, 0x5716, 0x0, 0x5717, 0x0, 0x578b, 0x0, 0x57ce, 0x0, 0x57f4, 0x0, 0x580d, 0x0, 0x5831, 0x0, 0x5832, 0x0, 0x5840, 0x0, 0x585a, 0x0, 0x585e, 0x0, 0x58a8, 0x0, 0x58ac, 0x0, 0x58b3, 0x0, 0x58d8, 0x0, 0x58df, 0x0, 0x58ee, 0x0, 0x58f2, 0x0, 0x58f7, 0x0, 0x5906, 0x0, 0x591a, 0x0, 0x5922, 0x0, 0x5944, 0x0, 0x5948, 0x0, 0x5951, 0x0, 0x5954, 0x0, 0x5962, 0x0, 0x5973, 0x0, 0x59d8, 0x0, 0x59ec, 0x0, 0x5a1b, 0x0, 0x5a27, 0x0, 0x5a62, 0x0, 0x5a66, 0x0, 0x5ab5, 0x0, 0x5b08, 0x0, 0x5b28, 0x0, 0x5b3e, 0x0, 0x5b85, 0x0, 0x5bc3, 0x0, 0x5bd8, 0x0, 0x5be7, 0x0, 0x5bee, 0x0, 0x5bf3, 0x0, 0x5bff, 0x0, 0x5c06, 0x0, 0x5c22, 0x0, 0x5c3f, 0x0, 0x5c60, 0x0, 0x5c62, 0x0, 0x5c64, 0x0, 0x5c65, 0x0, 0x5c6e, 0x0, 0x5c8d, 0x0, 0x5cc0, 0x0, 0x5d19, 0x0, 0x5d43, 0x0, 0x5d50, 0x0, 0x5d6b, 0x0, 0x5d6e, 0x0, 0x5d7c, 0x0, 0x5db2, 0x0, 0x5dba, 0x0, 0x5de1, 0x0, 0x5de2, 0x0, 0x5dfd, 0x0, 0x5e28, 0x0, 0x5e3d, 0x0, 0x5e69, 0x0, 0x5e74, 0x0, 0x5ea6, 0x0, 0x5eb0, 0x0, 0x5eb3, 0x0, 0x5eb6, 0x0, 0x5ec9, 0x0, 0x5eca, 0x0, 0x5ed2, 0x0, 0x5ed3, 0x0, 0x5ed9, 0x0, 0x5eec, 0x0, 0x5efe, 0x0, 0x5f04, 0x0, 0x5f22, 0x0, 0x5f53, 0x0, 0x5f62, 0x0, 0x5f69, 0x0, 0x5f6b, 0x0, 0x5f8b, 0x0, 0x5f9a, 0x0, 0x5fa9, 0x0, 0x5fad, 0x0, 0x5fcd, 0x0, 0x5fd7, 0x0, 0x5ff5, 0x0, 0x5ff9, 0x0, 0x6012, 0x0, 0x601c, 0x0, 0x6075, 0x0, 0x6081, 0x0, 0x6094, 0x0, 0x60c7, 0x0, 0x60d8, 0x0, 0x60e1, 0x0, 0x6108, 0x0, 0x6144, 0x0, 0x6148, 0x0, 0x614c, 0x0, 0x614e, 0x0, 0x6160, 0x0, 0x6168, 0x0, 0x617a, 0x0, 0x618e, 0x0, 0x6190, 0x0, 0x61a4, 0x0, 0x61af, 0x0, 0x61b2, 0x0, 0x61de, 0x0, 0x61f2, 0x0, 0x61f6, 0x0, 0x6200, 0x0, 0x6210, 0x0, 0x621b, 0x0, 0x622e, 0x0, 0x6234, 0x0, 0x625d, 0x0, 0x62b1, 0x0, 0x62c9, 0x0, 0x62cf, 0x0, 0x62d3, 0x0, 0x62d4, 0x0, 0x62fc, 0x0, 0x62fe, 0x0, 0x633d, 0x0, 0x6350, 0x0, 0x6368, 0x0, 0x637b, 0x0, 0x6383, 0x0, 0x63a0, 0x0, 0x63a9, 0x0, 0x63c4, 0x0, 0x63c5, 0x0, 0x63e4, 0x0, 0x641c, 0x0, 0x6422, 0x0, 0x6452, 0x0, 0x6469, 0x0, 0x6477, 0x0, 0x647e, 0x0, 0x649a, 0x0, 0x649d, 0x0, 0x64c4, 0x0, 0x654f, 0x0, 0x6556, 0x0, 0x656c, 0x0, 0x6578, 0x0, 0x6599, 0x0, 0x65c5, 0x0, 0x65e2, 0x0, 0x65e3, 0x0, 0x6613, 0x0, 0x6649, 0x0, 0x6674, 0x0, 0x6688, 0x0, 0x6691, 0x0, 0x669c, 0x0, 0x66b4, 0x0, 0x66c6, 0x0, 0x66f4, 0x0, 0x66f8, 0x0, 0x6700, 0x0, 0x6717, 0x0, 0x671b, 0x0, 0x6721, 0x0, 0x674e, 0x0, 0x6753, 0x0, 0x6756, 0x0, 0x675e, 0x0, 0x677b, 0x0, 0x6785, 0x0, 0x6797, 0x0, 0x67f3, 0x0, 0x67fa, 0x0, 0x6817, 0x0, 0x681f, 0x0, 0x6852, 0x0, 0x6881, 0x0, 0x6885, 0x0, 0x688e, 0x0, 0x68a8, 0x0, 0x6914, 0x0, 0x6942, 0x0, 0x69a3, 0x0, 0x69ea, 0x0, 0x6a02, 0x0, 0x6a13, 0x0, 0x6aa8, 0x0, 0x6ad3, 0x0, 0x6adb, 0x0, 0x6b04, 0x0, 0x6b21, 0x0, 0x6b54, 0x0, 0x6b72, 0x0, 0x6b77, 0x0, 0x6b79, 0x0, 0x6b9f, 0x0, 0x6bae, 0x0, 0x6bba, 0x0, 0x6bbb, 0x0, 0x6c4e, 0x0, 0x6c67, 0x0, 0x6c88, 0x0, 0x6cbf, 0x0, 0x6ccc, 0x0, 0x6ccd, 0x0, 0x6ce5, 0x0, 0x6d16, 0x0, 0x6d1b, 0x0, 0x6d1e, 0x0, 0x6d34, 0x0, 0x6d3e, 0x0, 0x6d41, 0x0, 0x6d69, 0x0, 0x6d6a, 0x0, 0x6d77, 0x0, 0x6d78, 0x0, 0x6d85, 0x0, 0x6dcb, 0x0, 0x6dda, 0x0, 0x6dea, 0x0, 0x6df9, 0x0, 0x6e1a, 0x0, 0x6e2f, 0x0, 0x6e6e, 0x0, 0x6e9c, 0x0, 0x6eba, 0x0, 0x6ec7, 0x0, 0x6ecb, 0x0, 0x6ed1, 0x0, 0x6edb, 0x0, 0x6f0f, 0x0, 0x6f22, 0x0, 0x6f23, 0x0, 0x6f6e, 0x0, 0x6fc6, 0x0, 0x6feb, 0x0, 0x6ffe, 0x0, 0x701b, 0x0, 0x701e, 0x0, 0x7039, 0x0, 0x704a, 0x0, 0x7070, 0x0, 0x7077, 0x0, 0x707d, 0x0, 0x7099, 0x0, 0x70ad, 0x0, 0x70c8, 0x0, 0x70d9, 0x0, 0x7145, 0x0, 0x7149, 0x0, 0x716e, 0x0, 0x719c, 0x0, 0x71ce, 0x0, 0x71d0, 0x0, 0x7210, 0x0, 0x721b, 0x0, 0x7228, 0x0, 0x722b, 0x0, 0x7235, 0x0, 0x7250, 0x0, 0x7262, 0x0, 0x7280, 0x0, 0x7295, 0x0, 0x72af, 0x0, 0x72c0, 0x0, 0x72fc, 0x0, 0x732a, 0x0, 0x7375, 0x0, 0x737a, 0x0, 0x7387, 0x0, 0x738b, 0x0, 0x73a5, 0x0, 0x73b2, 0x0, 0x73de, 0x0, 0x7406, 0x0, 0x7409, 0x0, 0x7422, 0x0, 0x7447, 0x0, 0x745c, 0x0, 0x7469, 0x0, 0x7471, 0x0, 0x7485, 0x0, 0x7489, 0x0, 0x7498, 0x0, 0x74ca, 0x0, 0x7506, 0x0, 0x7524, 0x0, 0x753b, 0x0, 0x753e, 0x0, 0x7559, 0x0, 0x7565, 0x0, 0x7570, 0x0, 0x75e2, 0x0, 0x7610, 0x0, 0x761d, 0x0, 0x761f, 0x0, 0x7642, 0x0, 0x7669, 0x0, 0x76ca, 0x0, 0x76db, 0x0, 0x76e7, 0x0, 0x76f4, 0x0, 0x7701, 0x0, 0x771e, 0x0, 0x771f, 0x0, 0x7740, 0x0, 0x774a, 0x0, 0x778b, 0x0, 0x77a7, 0x0, 0x784e, 0x0, 0x786b, 0x0, 0x788c, 0x0, 0x7891, 0x0, 0x78ca, 0x0, 0x78cc, 0x0, 0x78fb, 0x0, 0x792a, 0x0, 0x793c, 0x0, 0x793e, 0x0, 0x7948, 0x0, 0x7949, 0x0, 0x7950, 0x0, 0x7956, 0x0, 0x795d, 0x0, 0x795e, 0x0, 0x7965, 0x0, 0x797f, 0x0, 0x798d, 0x0, 0x798e, 0x0, 0x798f, 0x0, 0x79ae, 0x0, 0x79ca, 0x0, 0x79eb, 0x0, 0x7a1c, 0x0, 0x7a40, 0x0, 0x7a4a, 0x0, 0x7a4f, 0x0, 0x7a81, 0x0, 0x7ab1, 0x0, 0x7acb, 0x0, 0x7aee, 0x0, 0x7b20, 0x0, 0x7bc0, 0x0, 0x7bc6, 0x0, 0x7bc9, 0x0, 0x7c3e, 0x0, 0x7c60, 0x0, 0x7c7b, 0x0, 0x7c92, 0x0, 0x7cbe, 0x0, 0x7cd2, 0x0, 0x7cd6, 0x0, 0x7ce3, 0x0, 0x7ce7, 0x0, 0x7ce8, 0x0, 0x7d00, 0x0, 0x7d10, 0x0, 0x7d22, 0x0, 0x7d2f, 0x0, 0x7d5b, 0x0, 0x7d63, 0x0, 0x7da0, 0x0, 0x7dbe, 0x0, 0x7dc7, 0x0, 0x7df4, 0x0, 0x7e02, 0x0, 0x7e09, 0x0, 0x7e37, 0x0, 0x7e41, 0x0, 0x7e45, 0x0, 0x7f3e, 0x0, 0x7f72, 0x0, 0x7f79, 0x0, 0x7f7a, 0x0, 0x7f85, 0x0, 0x7f95, 0x0, 0x7f9a, 0x0, 0x7fbd, 0x0, 0x7ffa, 0x0, 0x8001, 0x0, 0x8005, 0x0, 0x8046, 0x0, 0x8060, 0x0, 0x806f, 0x0, 0x8070, 0x0, 0x807e, 0x0, 0x808b, 0x0, 0x80ad, 0x0, 0x80b2, 0x0, 0x8103, 0x0, 0x813e, 0x0, 0x81d8, 0x0, 0x81e8, 0x0, 0x81ed, 0x0, 0x8201, 0x0, 0x8204, 0x0, 0x8218, 0x0, 0x826f, 0x0, 0x8279, 0x0, 0x828b, 0x0, 0x8291, 0x0, 0x829d, 0x0, 0x82b1, 0x0, 0x82b3, 0x0, 0x82bd, 0x0, 0x82e5, 0x0, 0x82e6, 0x0, 0x831d, 0x0, 0x8323, 0x0, 0x8336, 0x0, 0x8352, 0x0, 0x8353, 0x0, 0x8363, 0x0, 0x83ad, 0x0, 0x83bd, 0x0, 0x83c9, 0x0, 0x83ca, 0x0, 0x83cc, 0x0, 0x83dc, 0x0, 0x83e7, 0x0, 0x83ef, 0x0, 0x83f1, 0x0, 0x843d, 0x0, 0x8449, 0x0, 0x8457, 0x0, 0x84ee, 0x0, 0x84f1, 0x0, 0x84f3, 0x0, 0x84fc, 0x0, 0x8516, 0x0, 0x8564, 0x0, 0x85cd, 0x0, 0x85fa, 0x0, 0x8606, 0x0, 0x8612, 0x0, 0x862d, 0x0, 0x863f, 0x0, 0x8650, 0x0, 0x865c, 0x0, 0x8667, 0x0, 0x8669, 0x0, 0x8688, 0x0, 0x86a9, 0x0, 0x86e2, 0x0, 0x870e, 0x0, 0x8728, 0x0, 0x876b, 0x0, 0x8779, 0x0, 0x8786, 0x0, 0x87ba, 0x0, 0x87e1, 0x0, 0x8801, 0x0, 0x881f, 0x0, 0x884c, 0x0, 0x8860, 0x0, 0x8863, 0x0, 0x88c2, 0x0, 0x88cf, 0x0, 0x88d7, 0x0, 0x88de, 0x0, 0x88e1, 0x0, 0x88f8, 0x0, 0x88fa, 0x0, 0x8910, 0x0, 0x8941, 0x0, 0x8964, 0x0, 0x8986, 0x0, 0x898b, 0x0, 0x8996, 0x0, 0x8aa0, 0x0, 0x8aaa, 0x0, 0x8abf, 0x0, 0x8acb, 0x0, 0x8ad2, 0x0, 0x8ad6, 0x0, 0x8aed, 0x0, 0x8af8, 0x0, 0x8afe, 0x0, 0x8b01, 0x0, 0x8b39, 0x0, 0x8b58, 0x0, 0x8b80, 0x0, 0x8b8a, 0x0, 0x8c48, 0x0, 0x8c55, 0x0, 0x8cab, 0x0, 0x8cc1, 0x0, 0x8cc2, 0x0, 0x8cc8, 0x0, 0x8cd3, 0x0, 0x8d08, 0x0, 0x8d1b, 0x0, 0x8d77, 0x0, 0x8dbc, 0x0, 0x8dcb, 0x0, 0x8def, 0x0, 0x8df0, 0x0, 0x8eca, 0x0, 0x8ed4, 0x0, 0x8f26, 0x0, 0x8f2a, 0x0, 0x8f38, 0x0, 0x8f3b, 0x0, 0x8f62, 0x0, 0x8f9e, 0x0, 0x8fb0, 0x0, 0x8fb6, 0x0, 0x9023, 0x0, 0x9038, 0x0, 0x9072, 0x0, 0x907c, 0x0, 0x908f, 0x0, 0x9094, 0x0, 0x90ce, 0x0, 0x90de, 0x0, 0x90f1, 0x0, 0x90fd, 0x0, 0x9111, 0x0, 0x911b, 0x0, 0x916a, 0x0, 0x9199, 0x0, 0x91b4, 0x0, 0x91cc, 0x0, 0x91cf, 0x0, 0x91d1, 0x0, 0x9234, 0x0, 0x9238, 0x0, 0x9276, 0x0, 0x927c, 0x0, 0x92d7, 0x0, 0x92d8, 0x0, 0x9304, 0x0, 0x934a, 0x0, 0x93f9, 0x0, 0x9415, 0x0, 0x958b, 0x0, 0x95ad, 0x0, 0x95b7, 0x0, 0x962e, 0x0, 0x964b, 0x0, 0x964d, 0x0, 0x9675, 0x0, 0x9678, 0x0, 0x967c, 0x0, 0x9686, 0x0, 0x96a3, 0x0, 0x96b7, 0x0, 0x96b8, 0x0, 0x96c3, 0x0, 0x96e2, 0x0, 0x96e3, 0x0, 0x96f6, 0x0, 0x96f7, 0x0, 0x9723, 0x0, 0x9732, 0x0, 0x9748, 0x0, 0x9756, 0x0, 0x97db, 0x0, 0x97e0, 0x0, 0x97ff, 0x0, 0x980b, 0x0, 0x9818, 0x0, 0x9829, 0x0, 0x983b, 0x0, 0x985e, 0x0, 0x98e2, 0x0, 0x98ef, 0x0, 0x98fc, 0x0, 0x9928, 0x0, 0x9929, 0x0, 0x99a7, 0x0, 0x99c2, 0x0, 0x99f1, 0x0, 0x99fe, 0x0, 0x9a6a, 0x0, 0x9b12, 0x0, 0x9b6f, 0x0, 0x9c40, 0x0, 0x9c57, 0x0, 0x9cfd, 0x0, 0x9d67, 0x0, 0x9db4, 0x0, 0x9dfa, 0x0, 0x9e1e, 0x0, 0x9e7f, 0x0, 0x9e97, 0x0, 0x9e9f, 0x0, 0x9ebb, 0x0, 0x9ece, 0x0, 0x9ef9, 0x0, 0x9efe, 0x0, 0x9f05, 0x0, 0x9f0f, 0x0, 0x9f16, 0x0, 0x9f3b, 0x0, 0x9f43, 0x0, 0x9f8d, 0x0, 0x9f8e, 0x0, 0x9f9c, 0x0, 0x11099, 0x110ba, 0x0, 0x1109b, 0x110ba, 0x0, 0x110a5, 0x110ba, 0x0, 0x11131, 0x11127, 0x0, 0x11132, 0x11127, 0x0, 0x1d157, 0x1d165, 0x0, 0x1d158, 0x1d165, 0x0, 0x1d158, 0x1d165, 0x1d16e, 0x0, 0x1d158, 0x1d165, 0x1d16f, 0x0, 0x1d158, 0x1d165, 0x1d170, 0x0, 0x1d158, 0x1d165, 0x1d171, 0x0, 0x1d158, 0x1d165, 0x1d172, 0x0, 0x1d1b9, 0x1d165, 0x0, 0x1d1b9, 0x1d165, 0x1d16e, 0x0, 0x1d1b9, 0x1d165, 0x1d16f, 0x0, 0x1d1ba, 0x1d165, 0x0, 0x1d1ba, 0x1d165, 0x1d16e, 0x0, 0x1d1ba, 0x1d165, 0x1d16f, 0x0, 0x20122, 0x0, 0x2051c, 0x0, 0x20525, 0x0, 0x2054b, 0x0, 0x2063a, 0x0, 0x20804, 0x0, 0x208de, 0x0, 0x20a2c, 0x0, 0x20b63, 0x0, 0x214e4, 0x0, 0x216a8, 0x0, 0x216ea, 0x0, 0x219c8, 0x0, 0x21b18, 0x0, 0x21d0b, 0x0, 0x21de4, 0x0, 0x21de6, 0x0, 0x22183, 0x0, 0x2219f, 0x0, 0x22331, 0x0, 0x226d4, 0x0, 0x22844, 0x0, 0x2284a, 0x0, 0x22b0c, 0x0, 0x22bf1, 0x0, 0x2300a, 0x0, 0x232b8, 0x0, 0x2335f, 0x0, 0x23393, 0x0, 0x2339c, 0x0, 0x233c3, 0x0, 0x233d5, 0x0, 0x2346d, 0x0, 0x236a3, 0x0, 0x238a7, 0x0, 0x23a8d, 0x0, 0x23afa, 0x0, 0x23cbc, 0x0, 0x23d1e, 0x0, 0x23ed1, 0x0, 0x23f5e, 0x0, 0x23f8e, 0x0, 0x24263, 0x0, 0x242ee, 0x0, 0x243ab, 0x0, 0x24608, 0x0, 0x24735, 0x0, 0x24814, 0x0, 0x24c36, 0x0, 0x24c92, 0x0, 0x24fa1, 0x0, 0x24fb8, 0x0, 0x25044, 0x0, 0x250f2, 0x0, 0x250f3, 0x0, 0x25119, 0x0, 0x25133, 0x0, 0x25249, 0x0, 0x2541d, 0x0, 0x25626, 0x0, 0x2569a, 0x0, 0x256c5, 0x0, 0x2597c, 0x0, 0x25aa7, 0x0, 0x25bab, 0x0, 0x25c80, 0x0, 0x25cd0, 0x0, 0x25f86, 0x0, 0x261da, 0x0, 0x26228, 0x0, 0x26247, 0x0, 0x262d9, 0x0, 0x2633e, 0x0, 0x264da, 0x0, 0x26523, 0x0, 0x265a8, 0x0, 0x267a7, 0x0, 0x267b5, 0x0, 0x26b3c, 0x0, 0x26c36, 0x0, 0x26cd5, 0x0, 0x26d6b, 0x0, 0x26f2c, 0x0, 0x26fb1, 0x0, 0x270d2, 0x0, 0x273ca, 0x0, 0x27667, 0x0, 0x278ae, 0x0, 0x27966, 0x0, 0x27ca8, 0x0, 0x27ed3, 0x0, 0x27f2f, 0x0, 0x285d2, 0x0, 0x285ed, 0x0, 0x2872e, 0x0, 0x28bfa, 0x0, 0x28d77, 0x0, 0x29145, 0x0, 0x291df, 0x0, 0x2921a, 0x0, 0x2940a, 0x0, 0x29496, 0x0, 0x295b6, 0x0, 0x29b30, 0x0, 0x2a0ce, 0x0, 0x2a105, 0x0, 0x2a20e, 0x0, 0x2a291, 0x0, 0x2a392, 0x0, 0x2a600, 0x0]; return t; }
_IDCA decompCompatTable() { static _IDCA t = [ 0x0, 0x20, 0x0, 0x20, 0x301, 0x0, 0x20, 0x303, 0x0, 0x20, 0x304, 0x0, 0x20, 0x305, 0x0, 0x20, 0x306, 0x0, 0x20, 0x307, 0x0, 0x20, 0x308, 0x0, 0x20, 0x308, 0x300, 0x0, 0x20, 0x308, 0x301, 0x0, 0x20, 0x308, 0x342, 0x0, 0x20, 0x30a, 0x0, 0x20, 0x30b, 0x0, 0x20, 0x313, 0x0, 0x20, 0x313, 0x300, 0x0, 0x20, 0x313, 0x301, 0x0, 0x20, 0x313, 0x342, 0x0, 0x20, 0x314, 0x0, 0x20, 0x314, 0x300, 0x0, 0x20, 0x314, 0x301, 0x0, 0x20, 0x314, 0x342, 0x0, 0x20, 0x327, 0x0, 0x20, 0x328, 0x0, 0x20, 0x333, 0x0, 0x20, 0x342, 0x0, 0x20, 0x345, 0x0, 0x20, 0x64b, 0x0, 0x20, 0x64c, 0x0, 0x20, 0x64c, 0x651, 0x0, 0x20, 0x64d, 0x0, 0x20, 0x64d, 0x651, 0x0, 0x20, 0x64e, 0x0, 0x20, 0x64e, 0x651, 0x0, 0x20, 0x64f, 0x0, 0x20, 0x64f, 0x651, 0x0, 0x20, 0x650, 0x0, 0x20, 0x650, 0x651, 0x0, 0x20, 0x651, 0x0, 0x20, 0x651, 0x670, 0x0, 0x20, 0x652, 0x0, 0x20, 0x3099, 0x0, 0x20, 0x309a, 0x0, 0x21, 0x0, 0x21, 0x21, 0x0, 0x21, 0x3f, 0x0, 0x22, 0x0, 0x23, 0x0, 0x24, 0x0, 0x25, 0x0, 0x26, 0x0, 0x27, 0x0, 0x28, 0x0, 0x28, 0x31, 0x29, 0x0, 0x28, 0x31, 0x30, 0x29, 0x0, 0x28, 0x31, 0x31, 0x29, 0x0, 0x28, 0x31, 0x32, 0x29, 0x0, 0x28, 0x31, 0x33, 0x29, 0x0, 0x28, 0x31, 0x34, 0x29, 0x0, 0x28, 0x31, 0x35, 0x29, 0x0, 0x28, 0x31, 0x36, 0x29, 0x0, 0x28, 0x31, 0x37, 0x29, 0x0, 0x28, 0x31, 0x38, 0x29, 0x0, 0x28, 0x31, 0x39, 0x29, 0x0, 0x28, 0x32, 0x29, 0x0, 0x28, 0x32, 0x30, 0x29, 0x0, 0x28, 0x33, 0x29, 0x0, 0x28, 0x34, 0x29, 0x0, 0x28, 0x35, 0x29, 0x0, 0x28, 0x36, 0x29, 0x0, 0x28, 0x37, 0x29, 0x0, 0x28, 0x38, 0x29, 0x0, 0x28, 0x39, 0x29, 0x0, 0x28, 0x41, 0x29, 0x0, 0x28, 0x42, 0x29, 0x0, 0x28, 0x43, 0x29, 0x0, 0x28, 0x44, 0x29, 0x0, 0x28, 0x45, 0x29, 0x0, 0x28, 0x46, 0x29, 0x0, 0x28, 0x47, 0x29, 0x0, 0x28, 0x48, 0x29, 0x0, 0x28, 0x49, 0x29, 0x0, 0x28, 0x4a, 0x29, 0x0, 0x28, 0x4b, 0x29, 0x0, 0x28, 0x4c, 0x29, 0x0, 0x28, 0x4d, 0x29, 0x0, 0x28, 0x4e, 0x29, 0x0, 0x28, 0x4f, 0x29, 0x0, 0x28, 0x50, 0x29, 0x0, 0x28, 0x51, 0x29, 0x0, 0x28, 0x52, 0x29, 0x0, 0x28, 0x53, 0x29, 0x0, 0x28, 0x54, 0x29, 0x0, 0x28, 0x55, 0x29, 0x0, 0x28, 0x56, 0x29, 0x0, 0x28, 0x57, 0x29, 0x0, 0x28, 0x58, 0x29, 0x0, 0x28, 0x59, 0x29, 0x0, 0x28, 0x5a, 0x29, 0x0, 0x28, 0x61, 0x29, 0x0, 0x28, 0x62, 0x29, 0x0, 0x28, 0x63, 0x29, 0x0, 0x28, 0x64, 0x29, 0x0, 0x28, 0x65, 0x29, 0x0, 0x28, 0x66, 0x29, 0x0, 0x28, 0x67, 0x29, 0x0, 0x28, 0x68, 0x29, 0x0, 0x28, 0x69, 0x29, 0x0, 0x28, 0x6a, 0x29, 0x0, 0x28, 0x6b, 0x29, 0x0, 0x28, 0x6c, 0x29, 0x0, 0x28, 0x6d, 0x29, 0x0, 0x28, 0x6e, 0x29, 0x0, 0x28, 0x6f, 0x29, 0x0, 0x28, 0x70, 0x29, 0x0, 0x28, 0x71, 0x29, 0x0, 0x28, 0x72, 0x29, 0x0, 0x28, 0x73, 0x29, 0x0, 0x28, 0x74, 0x29, 0x0, 0x28, 0x75, 0x29, 0x0, 0x28, 0x76, 0x29, 0x0, 0x28, 0x77, 0x29, 0x0, 0x28, 0x78, 0x29, 0x0, 0x28, 0x79, 0x29, 0x0, 0x28, 0x7a, 0x29, 0x0, 0x28, 0x1100, 0x29, 0x0, 0x28, 0x1100, 0x1161, 0x29, 0x0, 0x28, 0x1102, 0x29, 0x0, 0x28, 0x1102, 0x1161, 0x29, 0x0, 0x28, 0x1103, 0x29, 0x0, 0x28, 0x1103, 0x1161, 0x29, 0x0, 0x28, 0x1105, 0x29, 0x0, 0x28, 0x1105, 0x1161, 0x29, 0x0, 0x28, 0x1106, 0x29, 0x0, 0x28, 0x1106, 0x1161, 0x29, 0x0, 0x28, 0x1107, 0x29, 0x0, 0x28, 0x1107, 0x1161, 0x29, 0x0, 0x28, 0x1109, 0x29, 0x0, 0x28, 0x1109, 0x1161, 0x29, 0x0, 0x28, 0x110b, 0x29, 0x0, 0x28, 0x110b, 0x1161, 0x29, 0x0, 0x28, 0x110b, 0x1169, 0x110c, 0x1165, 0x11ab, 0x29, 0x0, 0x28, 0x110b, 0x1169, 0x1112, 0x116e, 0x29, 0x0, 0x28, 0x110c, 0x29, 0x0, 0x28, 0x110c, 0x1161, 0x29, 0x0, 0x28, 0x110c, 0x116e, 0x29, 0x0, 0x28, 0x110e, 0x29, 0x0, 0x28, 0x110e, 0x1161, 0x29, 0x0, 0x28, 0x110f, 0x29, 0x0, 0x28, 0x110f, 0x1161, 0x29, 0x0, 0x28, 0x1110, 0x29, 0x0, 0x28, 0x1110, 0x1161, 0x29, 0x0, 0x28, 0x1111, 0x29, 0x0, 0x28, 0x1111, 0x1161, 0x29, 0x0, 0x28, 0x1112, 0x29, 0x0, 0x28, 0x1112, 0x1161, 0x29, 0x0, 0x28, 0x4e00, 0x29, 0x0, 0x28, 0x4e03, 0x29, 0x0, 0x28, 0x4e09, 0x29, 0x0, 0x28, 0x4e5d, 0x29, 0x0, 0x28, 0x4e8c, 0x29, 0x0, 0x28, 0x4e94, 0x29, 0x0, 0x28, 0x4ee3, 0x29, 0x0, 0x28, 0x4f01, 0x29, 0x0, 0x28, 0x4f11, 0x29, 0x0, 0x28, 0x516b, 0x29, 0x0, 0x28, 0x516d, 0x29, 0x0, 0x28, 0x52b4, 0x29, 0x0, 0x28, 0x5341, 0x29, 0x0, 0x28, 0x5354, 0x29, 0x0, 0x28, 0x540d, 0x29, 0x0, 0x28, 0x547c, 0x29, 0x0, 0x28, 0x56db, 0x29, 0x0, 0x28, 0x571f, 0x29, 0x0, 0x28, 0x5b66, 0x29, 0x0, 0x28, 0x65e5, 0x29, 0x0, 0x28, 0x6708, 0x29, 0x0, 0x28, 0x6709, 0x29, 0x0, 0x28, 0x6728, 0x29, 0x0, 0x28, 0x682a, 0x29, 0x0, 0x28, 0x6c34, 0x29, 0x0, 0x28, 0x706b, 0x29, 0x0, 0x28, 0x7279, 0x29, 0x0, 0x28, 0x76e3, 0x29, 0x0, 0x28, 0x793e, 0x29, 0x0, 0x28, 0x795d, 0x29, 0x0, 0x28, 0x796d, 0x29, 0x0, 0x28, 0x81ea, 0x29, 0x0, 0x28, 0x81f3, 0x29, 0x0, 0x28, 0x8ca1, 0x29, 0x0, 0x28, 0x8cc7, 0x29, 0x0, 0x28, 0x91d1, 0x29, 0x0, 0x29, 0x0, 0x2a, 0x0, 0x2b, 0x0, 0x2c, 0x0, 0x2d, 0x0, 0x2e, 0x0, 0x2e, 0x2e, 0x0, 0x2e, 0x2e, 0x2e, 0x0, 0x2f, 0x0, 0x30, 0x0, 0x30, 0x2c, 0x0, 0x30, 0x2e, 0x0, 0x30, 0x2044, 0x33, 0x0, 0x30, 0x70b9, 0x0, 0x31, 0x0, 0x31, 0x2c, 0x0, 0x31, 0x2e, 0x0, 0x31, 0x30, 0x0, 0x31, 0x30, 0x2e, 0x0, 0x31, 0x30, 0x65e5, 0x0, 0x31, 0x30, 0x6708, 0x0, 0x31, 0x30, 0x70b9, 0x0, 0x31, 0x31, 0x0, 0x31, 0x31, 0x2e, 0x0, 0x31, 0x31, 0x65e5, 0x0, 0x31, 0x31, 0x6708, 0x0, 0x31, 0x31, 0x70b9, 0x0, 0x31, 0x32, 0x0, 0x31, 0x32, 0x2e, 0x0, 0x31, 0x32, 0x65e5, 0x0, 0x31, 0x32, 0x6708, 0x0, 0x31, 0x32, 0x70b9, 0x0, 0x31, 0x33, 0x0, 0x31, 0x33, 0x2e, 0x0, 0x31, 0x33, 0x65e5, 0x0, 0x31, 0x33, 0x70b9, 0x0, 0x31, 0x34, 0x0, 0x31, 0x34, 0x2e, 0x0, 0x31, 0x34, 0x65e5, 0x0, 0x31, 0x34, 0x70b9, 0x0, 0x31, 0x35, 0x0, 0x31, 0x35, 0x2e, 0x0, 0x31, 0x35, 0x65e5, 0x0, 0x31, 0x35, 0x70b9, 0x0, 0x31, 0x36, 0x0, 0x31, 0x36, 0x2e, 0x0, 0x31, 0x36, 0x65e5, 0x0, 0x31, 0x36, 0x70b9, 0x0, 0x31, 0x37, 0x0, 0x31, 0x37, 0x2e, 0x0, 0x31, 0x37, 0x65e5, 0x0, 0x31, 0x37, 0x70b9, 0x0, 0x31, 0x38, 0x0, 0x31, 0x38, 0x2e, 0x0, 0x31, 0x38, 0x65e5, 0x0, 0x31, 0x38, 0x70b9, 0x0, 0x31, 0x39, 0x0, 0x31, 0x39, 0x2e, 0x0, 0x31, 0x39, 0x65e5, 0x0, 0x31, 0x39, 0x70b9, 0x0, 0x31, 0x2044, 0x0, 0x31, 0x2044, 0x31, 0x30, 0x0, 0x31, 0x2044, 0x32, 0x0, 0x31, 0x2044, 0x33, 0x0, 0x31, 0x2044, 0x34, 0x0, 0x31, 0x2044, 0x35, 0x0, 0x31, 0x2044, 0x36, 0x0, 0x31, 0x2044, 0x37, 0x0, 0x31, 0x2044, 0x38, 0x0, 0x31, 0x2044, 0x39, 0x0, 0x31, 0x65e5, 0x0, 0x31, 0x6708, 0x0, 0x31, 0x70b9, 0x0, 0x32, 0x0, 0x32, 0x2c, 0x0, 0x32, 0x2e, 0x0, 0x32, 0x30, 0x0, 0x32, 0x30, 0x2e, 0x0, 0x32, 0x30, 0x65e5, 0x0, 0x32, 0x30, 0x70b9, 0x0, 0x32, 0x31, 0x0, 0x32, 0x31, 0x65e5, 0x0, 0x32, 0x31, 0x70b9, 0x0, 0x32, 0x32, 0x0, 0x32, 0x32, 0x65e5, 0x0, 0x32, 0x32, 0x70b9, 0x0, 0x32, 0x33, 0x0, 0x32, 0x33, 0x65e5, 0x0, 0x32, 0x33, 0x70b9, 0x0, 0x32, 0x34, 0x0, 0x32, 0x34, 0x65e5, 0x0, 0x32, 0x34, 0x70b9, 0x0, 0x32, 0x35, 0x0, 0x32, 0x35, 0x65e5, 0x0, 0x32, 0x36, 0x0, 0x32, 0x36, 0x65e5, 0x0, 0x32, 0x37, 0x0, 0x32, 0x37, 0x65e5, 0x0, 0x32, 0x38, 0x0, 0x32, 0x38, 0x65e5, 0x0, 0x32, 0x39, 0x0, 0x32, 0x39, 0x65e5, 0x0, 0x32, 0x2044, 0x33, 0x0, 0x32, 0x2044, 0x35, 0x0, 0x32, 0x65e5, 0x0, 0x32, 0x6708, 0x0, 0x32, 0x70b9, 0x0, 0x33, 0x0, 0x33, 0x2c, 0x0, 0x33, 0x2e, 0x0, 0x33, 0x30, 0x0, 0x33, 0x30, 0x65e5, 0x0, 0x33, 0x31, 0x0, 0x33, 0x31, 0x65e5, 0x0, 0x33, 0x32, 0x0, 0x33, 0x33, 0x0, 0x33, 0x34, 0x0, 0x33, 0x35, 0x0, 0x33, 0x36, 0x0, 0x33, 0x37, 0x0, 0x33, 0x38, 0x0, 0x33, 0x39, 0x0, 0x33, 0x2044, 0x34, 0x0, 0x33, 0x2044, 0x35, 0x0, 0x33, 0x2044, 0x38, 0x0, 0x33, 0x65e5, 0x0, 0x33, 0x6708, 0x0, 0x33, 0x70b9, 0x0, 0x34, 0x0, 0x34, 0x2c, 0x0, 0x34, 0x2e, 0x0, 0x34, 0x30, 0x0, 0x34, 0x31, 0x0, 0x34, 0x32, 0x0, 0x34, 0x33, 0x0, 0x34, 0x34, 0x0, 0x34, 0x35, 0x0, 0x34, 0x36, 0x0, 0x34, 0x37, 0x0, 0x34, 0x38, 0x0, 0x34, 0x39, 0x0, 0x34, 0x2044, 0x35, 0x0, 0x34, 0x65e5, 0x0, 0x34, 0x6708, 0x0, 0x34, 0x70b9, 0x0, 0x35, 0x0, 0x35, 0x2c, 0x0, 0x35, 0x2e, 0x0, 0x35, 0x30, 0x0, 0x35, 0x2044, 0x36, 0x0, 0x35, 0x2044, 0x38, 0x0, 0x35, 0x65e5, 0x0, 0x35, 0x6708, 0x0, 0x35, 0x70b9, 0x0, 0x36, 0x0, 0x36, 0x2c, 0x0, 0x36, 0x2e, 0x0, 0x36, 0x65e5, 0x0, 0x36, 0x6708, 0x0, 0x36, 0x70b9, 0x0, 0x37, 0x0, 0x37, 0x2c, 0x0, 0x37, 0x2e, 0x0, 0x37, 0x2044, 0x38, 0x0, 0x37, 0x65e5, 0x0, 0x37, 0x6708, 0x0, 0x37, 0x70b9, 0x0, 0x38, 0x0, 0x38, 0x2c, 0x0, 0x38, 0x2e, 0x0, 0x38, 0x65e5, 0x0, 0x38, 0x6708, 0x0, 0x38, 0x70b9, 0x0, 0x39, 0x0, 0x39, 0x2c, 0x0, 0x39, 0x2e, 0x0, 0x39, 0x65e5, 0x0, 0x39, 0x6708, 0x0, 0x39, 0x70b9, 0x0, 0x3a, 0x0, 0x3a, 0x3a, 0x3d, 0x0, 0x3b, 0x0, 0x3c, 0x0, 0x3c, 0x338, 0x0, 0x3d, 0x0, 0x3d, 0x3d, 0x0, 0x3d, 0x3d, 0x3d, 0x0, 0x3d, 0x338, 0x0, 0x3e, 0x0, 0x3e, 0x338, 0x0, 0x3f, 0x0, 0x3f, 0x21, 0x0, 0x3f, 0x3f, 0x0, 0x40, 0x0, 0x41, 0x0, 0x41, 0x55, 0x0, 0x41, 0x300, 0x0, 0x41, 0x301, 0x0, 0x41, 0x302, 0x0, 0x41, 0x302, 0x300, 0x0, 0x41, 0x302, 0x301, 0x0, 0x41, 0x302, 0x303, 0x0, 0x41, 0x302, 0x309, 0x0, 0x41, 0x303, 0x0, 0x41, 0x304, 0x0, 0x41, 0x306, 0x0, 0x41, 0x306, 0x300, 0x0, 0x41, 0x306, 0x301, 0x0, 0x41, 0x306, 0x303, 0x0, 0x41, 0x306, 0x309, 0x0, 0x41, 0x307, 0x0, 0x41, 0x307, 0x304, 0x0, 0x41, 0x308, 0x0, 0x41, 0x308, 0x304, 0x0, 0x41, 0x309, 0x0, 0x41, 0x30a, 0x0, 0x41, 0x30a, 0x301, 0x0, 0x41, 0x30c, 0x0, 0x41, 0x30f, 0x0, 0x41, 0x311, 0x0, 0x41, 0x323, 0x0, 0x41, 0x323, 0x302, 0x0, 0x41, 0x323, 0x306, 0x0, 0x41, 0x325, 0x0, 0x41, 0x328, 0x0, 0x41, 0x2215, 0x6d, 0x0, 0x42, 0x0, 0x42, 0x71, 0x0, 0x42, 0x307, 0x0, 0x42, 0x323, 0x0, 0x42, 0x331, 0x0, 0x43, 0x0, 0x43, 0x44, 0x0, 0x43, 0x6f, 0x2e, 0x0, 0x43, 0x301, 0x0, 0x43, 0x302, 0x0, 0x43, 0x307, 0x0, 0x43, 0x30c, 0x0, 0x43, 0x327, 0x0, 0x43, 0x327, 0x301, 0x0, 0x43, 0x2215, 0x6b, 0x67, 0x0, 0x44, 0x0, 0x44, 0x4a, 0x0, 0x44, 0x5a, 0x0, 0x44, 0x5a, 0x30c, 0x0, 0x44, 0x7a, 0x0, 0x44, 0x7a, 0x30c, 0x0, 0x44, 0x307, 0x0, 0x44, 0x30c, 0x0, 0x44, 0x323, 0x0, 0x44, 0x327, 0x0, 0x44, 0x32d, 0x0, 0x44, 0x331, 0x0, 0x45, 0x0, 0x45, 0x300, 0x0, 0x45, 0x301, 0x0, 0x45, 0x302, 0x0, 0x45, 0x302, 0x300, 0x0, 0x45, 0x302, 0x301, 0x0, 0x45, 0x302, 0x303, 0x0, 0x45, 0x302, 0x309, 0x0, 0x45, 0x303, 0x0, 0x45, 0x304, 0x0, 0x45, 0x304, 0x300, 0x0, 0x45, 0x304, 0x301, 0x0, 0x45, 0x306, 0x0, 0x45, 0x307, 0x0, 0x45, 0x308, 0x0, 0x45, 0x309, 0x0, 0x45, 0x30c, 0x0, 0x45, 0x30f, 0x0, 0x45, 0x311, 0x0, 0x45, 0x323, 0x0, 0x45, 0x323, 0x302, 0x0, 0x45, 0x327, 0x0, 0x45, 0x327, 0x306, 0x0, 0x45, 0x328, 0x0, 0x45, 0x32d, 0x0, 0x45, 0x330, 0x0, 0x46, 0x0, 0x46, 0x41, 0x58, 0x0, 0x46, 0x307, 0x0, 0x47, 0x0, 0x47, 0x42, 0x0, 0x47, 0x48, 0x7a, 0x0, 0x47, 0x50, 0x61, 0x0, 0x47, 0x79, 0x0, 0x47, 0x301, 0x0, 0x47, 0x302, 0x0, 0x47, 0x304, 0x0, 0x47, 0x306, 0x0, 0x47, 0x307, 0x0, 0x47, 0x30c, 0x0, 0x47, 0x327, 0x0, 0x48, 0x0, 0x48, 0x50, 0x0, 0x48, 0x56, 0x0, 0x48, 0x67, 0x0, 0x48, 0x7a, 0x0, 0x48, 0x302, 0x0, 0x48, 0x307, 0x0, 0x48, 0x308, 0x0, 0x48, 0x30c, 0x0, 0x48, 0x323, 0x0, 0x48, 0x327, 0x0, 0x48, 0x32e, 0x0, 0x49, 0x0, 0x49, 0x49, 0x0, 0x49, 0x49, 0x49, 0x0, 0x49, 0x4a, 0x0, 0x49, 0x55, 0x0, 0x49, 0x56, 0x0, 0x49, 0x58, 0x0, 0x49, 0x300, 0x0, 0x49, 0x301, 0x0, 0x49, 0x302, 0x0, 0x49, 0x303, 0x0, 0x49, 0x304, 0x0, 0x49, 0x306, 0x0, 0x49, 0x307, 0x0, 0x49, 0x308, 0x0, 0x49, 0x308, 0x301, 0x0, 0x49, 0x309, 0x0, 0x49, 0x30c, 0x0, 0x49, 0x30f, 0x0, 0x49, 0x311, 0x0, 0x49, 0x323, 0x0, 0x49, 0x328, 0x0, 0x49, 0x330, 0x0, 0x4a, 0x0, 0x4a, 0x302, 0x0, 0x4b, 0x0, 0x4b, 0x42, 0x0, 0x4b, 0x4b, 0x0, 0x4b, 0x4d, 0x0, 0x4b, 0x301, 0x0, 0x4b, 0x30c, 0x0, 0x4b, 0x323, 0x0, 0x4b, 0x327, 0x0, 0x4b, 0x331, 0x0, 0x4c, 0x0, 0x4c, 0x4a, 0x0, 0x4c, 0x54, 0x44, 0x0, 0x4c, 0x6a, 0x0, 0x4c, 0xb7, 0x0, 0x4c, 0x301, 0x0, 0x4c, 0x30c, 0x0, 0x4c, 0x323, 0x0, 0x4c, 0x323, 0x304, 0x0, 0x4c, 0x327, 0x0, 0x4c, 0x32d, 0x0, 0x4c, 0x331, 0x0, 0x4d, 0x0, 0x4d, 0x42, 0x0, 0x4d, 0x43, 0x0, 0x4d, 0x44, 0x0, 0x4d, 0x48, 0x7a, 0x0, 0x4d, 0x50, 0x61, 0x0, 0x4d, 0x56, 0x0, 0x4d, 0x57, 0x0, 0x4d, 0x301, 0x0, 0x4d, 0x307, 0x0, 0x4d, 0x323, 0x0, 0x4d, 0x3a9, 0x0, 0x4e, 0x0, 0x4e, 0x4a, 0x0, 0x4e, 0x6a, 0x0, 0x4e, 0x6f, 0x0, 0x4e, 0x300, 0x0, 0x4e, 0x301, 0x0, 0x4e, 0x303, 0x0, 0x4e, 0x307, 0x0, 0x4e, 0x30c, 0x0, 0x4e, 0x323, 0x0, 0x4e, 0x327, 0x0, 0x4e, 0x32d, 0x0, 0x4e, 0x331, 0x0, 0x4f, 0x0, 0x4f, 0x300, 0x0, 0x4f, 0x301, 0x0, 0x4f, 0x302, 0x0, 0x4f, 0x302, 0x300, 0x0, 0x4f, 0x302, 0x301, 0x0, 0x4f, 0x302, 0x303, 0x0, 0x4f, 0x302, 0x309, 0x0, 0x4f, 0x303, 0x0, 0x4f, 0x303, 0x301, 0x0, 0x4f, 0x303, 0x304, 0x0, 0x4f, 0x303, 0x308, 0x0, 0x4f, 0x304, 0x0, 0x4f, 0x304, 0x300, 0x0, 0x4f, 0x304, 0x301, 0x0, 0x4f, 0x306, 0x0, 0x4f, 0x307, 0x0, 0x4f, 0x307, 0x304, 0x0, 0x4f, 0x308, 0x0, 0x4f, 0x308, 0x304, 0x0, 0x4f, 0x309, 0x0, 0x4f, 0x30b, 0x0, 0x4f, 0x30c, 0x0, 0x4f, 0x30f, 0x0, 0x4f, 0x311, 0x0, 0x4f, 0x31b, 0x0, 0x4f, 0x31b, 0x300, 0x0, 0x4f, 0x31b, 0x301, 0x0, 0x4f, 0x31b, 0x303, 0x0, 0x4f, 0x31b, 0x309, 0x0, 0x4f, 0x31b, 0x323, 0x0, 0x4f, 0x323, 0x0, 0x4f, 0x323, 0x302, 0x0, 0x4f, 0x328, 0x0, 0x4f, 0x328, 0x304, 0x0, 0x50, 0x0, 0x50, 0x48, 0x0, 0x50, 0x50, 0x4d, 0x0, 0x50, 0x50, 0x56, 0x0, 0x50, 0x52, 0x0, 0x50, 0x54, 0x45, 0x0, 0x50, 0x61, 0x0, 0x50, 0x301, 0x0, 0x50, 0x307, 0x0, 0x51, 0x0, 0x52, 0x0, 0x52, 0x73, 0x0, 0x52, 0x301, 0x0, 0x52, 0x307, 0x0, 0x52, 0x30c, 0x0, 0x52, 0x30f, 0x0, 0x52, 0x311, 0x0, 0x52, 0x323, 0x0, 0x52, 0x323, 0x304, 0x0, 0x52, 0x327, 0x0, 0x52, 0x331, 0x0, 0x53, 0x0, 0x53, 0x44, 0x0, 0x53, 0x4d, 0x0, 0x53, 0x53, 0x0, 0x53, 0x76, 0x0, 0x53, 0x301, 0x0, 0x53, 0x301, 0x307, 0x0, 0x53, 0x302, 0x0, 0x53, 0x307, 0x0, 0x53, 0x30c, 0x0, 0x53, 0x30c, 0x307, 0x0, 0x53, 0x323, 0x0, 0x53, 0x323, 0x307, 0x0, 0x53, 0x326, 0x0, 0x53, 0x327, 0x0, 0x54, 0x0, 0x54, 0x45, 0x4c, 0x0, 0x54, 0x48, 0x7a, 0x0, 0x54, 0x4d, 0x0, 0x54, 0x307, 0x0, 0x54, 0x30c, 0x0, 0x54, 0x323, 0x0, 0x54, 0x326, 0x0, 0x54, 0x327, 0x0, 0x54, 0x32d, 0x0, 0x54, 0x331, 0x0, 0x55, 0x0, 0x55, 0x300, 0x0, 0x55, 0x301, 0x0, 0x55, 0x302, 0x0, 0x55, 0x303, 0x0, 0x55, 0x303, 0x301, 0x0, 0x55, 0x304, 0x0, 0x55, 0x304, 0x308, 0x0, 0x55, 0x306, 0x0, 0x55, 0x308, 0x0, 0x55, 0x308, 0x300, 0x0, 0x55, 0x308, 0x301, 0x0, 0x55, 0x308, 0x304, 0x0, 0x55, 0x308, 0x30c, 0x0, 0x55, 0x309, 0x0, 0x55, 0x30a, 0x0, 0x55, 0x30b, 0x0, 0x55, 0x30c, 0x0, 0x55, 0x30f, 0x0, 0x55, 0x311, 0x0, 0x55, 0x31b, 0x0, 0x55, 0x31b, 0x300, 0x0, 0x55, 0x31b, 0x301, 0x0, 0x55, 0x31b, 0x303, 0x0, 0x55, 0x31b, 0x309, 0x0, 0x55, 0x31b, 0x323, 0x0, 0x55, 0x323, 0x0, 0x55, 0x324, 0x0, 0x55, 0x328, 0x0, 0x55, 0x32d, 0x0, 0x55, 0x330, 0x0, 0x56, 0x0, 0x56, 0x49, 0x0, 0x56, 0x49, 0x49, 0x0, 0x56, 0x49, 0x49, 0x49, 0x0, 0x56, 0x303, 0x0, 0x56, 0x323, 0x0, 0x56, 0x2215, 0x6d, 0x0, 0x57, 0x0, 0x57, 0x43, 0x0, 0x57, 0x5a, 0x0, 0x57, 0x62, 0x0, 0x57, 0x300, 0x0, 0x57, 0x301, 0x0, 0x57, 0x302, 0x0, 0x57, 0x307, 0x0, 0x57, 0x308, 0x0, 0x57, 0x323, 0x0, 0x58, 0x0, 0x58, 0x49, 0x0, 0x58, 0x49, 0x49, 0x0, 0x58, 0x307, 0x0, 0x58, 0x308, 0x0, 0x59, 0x0, 0x59, 0x300, 0x0, 0x59, 0x301, 0x0, 0x59, 0x302, 0x0, 0x59, 0x303, 0x0, 0x59, 0x304, 0x0, 0x59, 0x307, 0x0, 0x59, 0x308, 0x0, 0x59, 0x309, 0x0, 0x59, 0x323, 0x0, 0x5a, 0x0, 0x5a, 0x301, 0x0, 0x5a, 0x302, 0x0, 0x5a, 0x307, 0x0, 0x5a, 0x30c, 0x0, 0x5a, 0x323, 0x0, 0x5a, 0x331, 0x0, 0x5b, 0x0, 0x5c, 0x0, 0x5d, 0x0, 0x5e, 0x0, 0x5f, 0x0, 0x60, 0x0, 0x61, 0x0, 0x61, 0x2e, 0x6d, 0x2e, 0x0, 0x61, 0x2f, 0x63, 0x0, 0x61, 0x2f, 0x73, 0x0, 0x61, 0x2be, 0x0, 0x61, 0x300, 0x0, 0x61, 0x301, 0x0, 0x61, 0x302, 0x0, 0x61, 0x302, 0x300, 0x0, 0x61, 0x302, 0x301, 0x0, 0x61, 0x302, 0x303, 0x0, 0x61, 0x302, 0x309, 0x0, 0x61, 0x303, 0x0, 0x61, 0x304, 0x0, 0x61, 0x306, 0x0, 0x61, 0x306, 0x300, 0x0, 0x61, 0x306, 0x301, 0x0, 0x61, 0x306, 0x303, 0x0, 0x61, 0x306, 0x309, 0x0, 0x61, 0x307, 0x0, 0x61, 0x307, 0x304, 0x0, 0x61, 0x308, 0x0, 0x61, 0x308, 0x304, 0x0, 0x61, 0x309, 0x0, 0x61, 0x30a, 0x0, 0x61, 0x30a, 0x301, 0x0, 0x61, 0x30c, 0x0, 0x61, 0x30f, 0x0, 0x61, 0x311, 0x0, 0x61, 0x323, 0x0, 0x61, 0x323, 0x302, 0x0, 0x61, 0x323, 0x306, 0x0, 0x61, 0x325, 0x0, 0x61, 0x328, 0x0, 0x62, 0x0, 0x62, 0x61, 0x72, 0x0, 0x62, 0x307, 0x0, 0x62, 0x323, 0x0, 0x62, 0x331, 0x0, 0x63, 0x0, 0x63, 0x2f, 0x6f, 0x0, 0x63, 0x2f, 0x75, 0x0, 0x63, 0x61, 0x6c, 0x0, 0x63, 0x63, 0x0, 0x63, 0x64, 0x0, 0x63, 0x6d, 0x0, 0x63, 0x6d, 0x32, 0x0, 0x63, 0x6d, 0x33, 0x0, 0x63, 0x301, 0x0, 0x63, 0x302, 0x0, 0x63, 0x307, 0x0, 0x63, 0x30c, 0x0, 0x63, 0x327, 0x0, 0x63, 0x327, 0x301, 0x0, 0x64, 0x0, 0x64, 0x42, 0x0, 0x64, 0x61, 0x0, 0x64, 0x6c, 0x0, 0x64, 0x6d, 0x0, 0x64, 0x6d, 0x32, 0x0, 0x64, 0x6d, 0x33, 0x0, 0x64, 0x7a, 0x0, 0x64, 0x7a, 0x30c, 0x0, 0x64, 0x307, 0x0, 0x64, 0x30c, 0x0, 0x64, 0x323, 0x0, 0x64, 0x327, 0x0, 0x64, 0x32d, 0x0, 0x64, 0x331, 0x0, 0x65, 0x0, 0x65, 0x56, 0x0, 0x65, 0x72, 0x67, 0x0, 0x65, 0x300, 0x0, 0x65, 0x301, 0x0, 0x65, 0x302, 0x0, 0x65, 0x302, 0x300, 0x0, 0x65, 0x302, 0x301, 0x0, 0x65, 0x302, 0x303, 0x0, 0x65, 0x302, 0x309, 0x0, 0x65, 0x303, 0x0, 0x65, 0x304, 0x0, 0x65, 0x304, 0x300, 0x0, 0x65, 0x304, 0x301, 0x0, 0x65, 0x306, 0x0, 0x65, 0x307, 0x0, 0x65, 0x308, 0x0, 0x65, 0x309, 0x0, 0x65, 0x30c, 0x0, 0x65, 0x30f, 0x0, 0x65, 0x311, 0x0, 0x65, 0x323, 0x0, 0x65, 0x323, 0x302, 0x0, 0x65, 0x327, 0x0, 0x65, 0x327, 0x306, 0x0, 0x65, 0x328, 0x0, 0x65, 0x32d, 0x0, 0x65, 0x330, 0x0, 0x66, 0x0, 0x66, 0x66, 0x0, 0x66, 0x66, 0x69, 0x0, 0x66, 0x66, 0x6c, 0x0, 0x66, 0x69, 0x0, 0x66, 0x6c, 0x0, 0x66, 0x6d, 0x0, 0x66, 0x307, 0x0, 0x67, 0x0, 0x67, 0x61, 0x6c, 0x0, 0x67, 0x301, 0x0, 0x67, 0x302, 0x0, 0x67, 0x304, 0x0, 0x67, 0x306, 0x0, 0x67, 0x307, 0x0, 0x67, 0x30c, 0x0, 0x67, 0x327, 0x0, 0x68, 0x0, 0x68, 0x50, 0x61, 0x0, 0x68, 0x61, 0x0, 0x68, 0x302, 0x0, 0x68, 0x307, 0x0, 0x68, 0x308, 0x0, 0x68, 0x30c, 0x0, 0x68, 0x323, 0x0, 0x68, 0x327, 0x0, 0x68, 0x32e, 0x0, 0x68, 0x331, 0x0, 0x69, 0x0, 0x69, 0x69, 0x0, 0x69, 0x69, 0x69, 0x0, 0x69, 0x6a, 0x0, 0x69, 0x6e, 0x0, 0x69, 0x76, 0x0, 0x69, 0x78, 0x0, 0x69, 0x300, 0x0, 0x69, 0x301, 0x0, 0x69, 0x302, 0x0, 0x69, 0x303, 0x0, 0x69, 0x304, 0x0, 0x69, 0x306, 0x0, 0x69, 0x308, 0x0, 0x69, 0x308, 0x301, 0x0, 0x69, 0x309, 0x0, 0x69, 0x30c, 0x0, 0x69, 0x30f, 0x0, 0x69, 0x311, 0x0, 0x69, 0x323, 0x0, 0x69, 0x328, 0x0, 0x69, 0x330, 0x0, 0x6a, 0x0, 0x6a, 0x302, 0x0, 0x6a, 0x30c, 0x0, 0x6b, 0x0, 0x6b, 0x41, 0x0, 0x6b, 0x48, 0x7a, 0x0, 0x6b, 0x50, 0x61, 0x0, 0x6b, 0x56, 0x0, 0x6b, 0x57, 0x0, 0x6b, 0x63, 0x61, 0x6c, 0x0, 0x6b, 0x67, 0x0, 0x6b, 0x6c, 0x0, 0x6b, 0x6d, 0x0, 0x6b, 0x6d, 0x32, 0x0, 0x6b, 0x6d, 0x33, 0x0, 0x6b, 0x74, 0x0, 0x6b, 0x301, 0x0, 0x6b, 0x30c, 0x0, 0x6b, 0x323, 0x0, 0x6b, 0x327, 0x0, 0x6b, 0x331, 0x0, 0x6b, 0x3a9, 0x0, 0x6c, 0x0, 0x6c, 0x6a, 0x0, 0x6c, 0x6d, 0x0, 0x6c, 0x6e, 0x0, 0x6c, 0x6f, 0x67, 0x0, 0x6c, 0x78, 0x0, 0x6c, 0xb7, 0x0, 0x6c, 0x301, 0x0, 0x6c, 0x30c, 0x0, 0x6c, 0x323, 0x0, 0x6c, 0x323, 0x304, 0x0, 0x6c, 0x327, 0x0, 0x6c, 0x32d, 0x0, 0x6c, 0x331, 0x0, 0x6d, 0x0, 0x6d, 0x32, 0x0, 0x6d, 0x33, 0x0, 0x6d, 0x41, 0x0, 0x6d, 0x56, 0x0, 0x6d, 0x57, 0x0, 0x6d, 0x62, 0x0, 0x6d, 0x67, 0x0, 0x6d, 0x69, 0x6c, 0x0, 0x6d, 0x6c, 0x0, 0x6d, 0x6d, 0x0, 0x6d, 0x6d, 0x32, 0x0, 0x6d, 0x6d, 0x33, 0x0, 0x6d, 0x6f, 0x6c, 0x0, 0x6d, 0x73, 0x0, 0x6d, 0x301, 0x0, 0x6d, 0x307, 0x0, 0x6d, 0x323, 0x0, 0x6d, 0x2215, 0x73, 0x0, 0x6d, 0x2215, 0x73, 0x32, 0x0, 0x6e, 0x0, 0x6e, 0x41, 0x0, 0x6e, 0x46, 0x0, 0x6e, 0x56, 0x0, 0x6e, 0x57, 0x0, 0x6e, 0x6a, 0x0, 0x6e, 0x6d, 0x0, 0x6e, 0x73, 0x0, 0x6e, 0x300, 0x0, 0x6e, 0x301, 0x0, 0x6e, 0x303, 0x0, 0x6e, 0x307, 0x0, 0x6e, 0x30c, 0x0, 0x6e, 0x323, 0x0, 0x6e, 0x327, 0x0, 0x6e, 0x32d, 0x0, 0x6e, 0x331, 0x0, 0x6f, 0x0, 0x6f, 0x56, 0x0, 0x6f, 0x300, 0x0, 0x6f, 0x301, 0x0, 0x6f, 0x302, 0x0, 0x6f, 0x302, 0x300, 0x0, 0x6f, 0x302, 0x301, 0x0, 0x6f, 0x302, 0x303, 0x0, 0x6f, 0x302, 0x309, 0x0, 0x6f, 0x303, 0x0, 0x6f, 0x303, 0x301, 0x0, 0x6f, 0x303, 0x304, 0x0, 0x6f, 0x303, 0x308, 0x0, 0x6f, 0x304, 0x0, 0x6f, 0x304, 0x300, 0x0, 0x6f, 0x304, 0x301, 0x0, 0x6f, 0x306, 0x0, 0x6f, 0x307, 0x0, 0x6f, 0x307, 0x304, 0x0, 0x6f, 0x308, 0x0, 0x6f, 0x308, 0x304, 0x0, 0x6f, 0x309, 0x0, 0x6f, 0x30b, 0x0, 0x6f, 0x30c, 0x0, 0x6f, 0x30f, 0x0, 0x6f, 0x311, 0x0, 0x6f, 0x31b, 0x0, 0x6f, 0x31b, 0x300, 0x0, 0x6f, 0x31b, 0x301, 0x0, 0x6f, 0x31b, 0x303, 0x0, 0x6f, 0x31b, 0x309, 0x0, 0x6f, 0x31b, 0x323, 0x0, 0x6f, 0x323, 0x0, 0x6f, 0x323, 0x302, 0x0, 0x6f, 0x328, 0x0, 0x6f, 0x328, 0x304, 0x0, 0x70, 0x0, 0x70, 0x2e, 0x6d, 0x2e, 0x0, 0x70, 0x41, 0x0, 0x70, 0x46, 0x0, 0x70, 0x56, 0x0, 0x70, 0x57, 0x0, 0x70, 0x63, 0x0, 0x70, 0x73, 0x0, 0x70, 0x301, 0x0, 0x70, 0x307, 0x0, 0x71, 0x0, 0x72, 0x0, 0x72, 0x61, 0x64, 0x0, 0x72, 0x61, 0x64, 0x2215, 0x73, 0x0, 0x72, 0x61, 0x64, 0x2215, 0x73, 0x32, 0x0, 0x72, 0x301, 0x0, 0x72, 0x307, 0x0, 0x72, 0x30c, 0x0, 0x72, 0x30f, 0x0, 0x72, 0x311, 0x0, 0x72, 0x323, 0x0, 0x72, 0x323, 0x304, 0x0, 0x72, 0x327, 0x0, 0x72, 0x331, 0x0, 0x73, 0x0, 0x73, 0x72, 0x0, 0x73, 0x74, 0x0, 0x73, 0x301, 0x0, 0x73, 0x301, 0x307, 0x0, 0x73, 0x302, 0x0, 0x73, 0x307, 0x0, 0x73, 0x30c, 0x0, 0x73, 0x30c, 0x307, 0x0, 0x73, 0x323, 0x0, 0x73, 0x323, 0x307, 0x0, 0x73, 0x326, 0x0, 0x73, 0x327, 0x0, 0x74, 0x0, 0x74, 0x307, 0x0, 0x74, 0x308, 0x0, 0x74, 0x30c, 0x0, 0x74, 0x323, 0x0, 0x74, 0x326, 0x0, 0x74, 0x327, 0x0, 0x74, 0x32d, 0x0, 0x74, 0x331, 0x0, 0x75, 0x0, 0x75, 0x300, 0x0, 0x75, 0x301, 0x0, 0x75, 0x302, 0x0, 0x75, 0x303, 0x0, 0x75, 0x303, 0x301, 0x0, 0x75, 0x304, 0x0, 0x75, 0x304, 0x308, 0x0, 0x75, 0x306, 0x0, 0x75, 0x308, 0x0, 0x75, 0x308, 0x300, 0x0, 0x75, 0x308, 0x301, 0x0, 0x75, 0x308, 0x304, 0x0, 0x75, 0x308, 0x30c, 0x0, 0x75, 0x309, 0x0, 0x75, 0x30a, 0x0, 0x75, 0x30b, 0x0, 0x75, 0x30c, 0x0, 0x75, 0x30f, 0x0, 0x75, 0x311, 0x0, 0x75, 0x31b, 0x0, 0x75, 0x31b, 0x300, 0x0, 0x75, 0x31b, 0x301, 0x0, 0x75, 0x31b, 0x303, 0x0, 0x75, 0x31b, 0x309, 0x0, 0x75, 0x31b, 0x323, 0x0, 0x75, 0x323, 0x0, 0x75, 0x324, 0x0, 0x75, 0x328, 0x0, 0x75, 0x32d, 0x0, 0x75, 0x330, 0x0, 0x76, 0x0, 0x76, 0x69, 0x0, 0x76, 0x69, 0x69, 0x0, 0x76, 0x69, 0x69, 0x69, 0x0, 0x76, 0x303, 0x0, 0x76, 0x323, 0x0, 0x77, 0x0, 0x77, 0x300, 0x0, 0x77, 0x301, 0x0, 0x77, 0x302, 0x0, 0x77, 0x307, 0x0, 0x77, 0x308, 0x0, 0x77, 0x30a, 0x0, 0x77, 0x323, 0x0, 0x78, 0x0, 0x78, 0x69, 0x0, 0x78, 0x69, 0x69, 0x0, 0x78, 0x307, 0x0, 0x78, 0x308, 0x0, 0x79, 0x0, 0x79, 0x300, 0x0, 0x79, 0x301, 0x0, 0x79, 0x302, 0x0, 0x79, 0x303, 0x0, 0x79, 0x304, 0x0, 0x79, 0x307, 0x0, 0x79, 0x308, 0x0, 0x79, 0x309, 0x0, 0x79, 0x30a, 0x0, 0x79, 0x323, 0x0, 0x7a, 0x0, 0x7a, 0x301, 0x0, 0x7a, 0x302, 0x0, 0x7a, 0x307, 0x0, 0x7a, 0x30c, 0x0, 0x7a, 0x323, 0x0, 0x7a, 0x331, 0x0, 0x7b, 0x0, 0x7c, 0x0, 0x7d, 0x0, 0x7e, 0x0, 0xa2, 0x0, 0xa3, 0x0, 0xa5, 0x0, 0xa6, 0x0, 0xac, 0x0, 0xb0, 0x43, 0x0, 0xb0, 0x46, 0x0, 0xb7, 0x0, 0xc6, 0x0, 0xc6, 0x301, 0x0, 0xc6, 0x304, 0x0, 0xd8, 0x301, 0x0, 0xe6, 0x301, 0x0, 0xe6, 0x304, 0x0, 0xf0, 0x0, 0xf8, 0x301, 0x0, 0x126, 0x0, 0x127, 0x0, 0x131, 0x0, 0x14b, 0x0, 0x153, 0x0, 0x18e, 0x0, 0x190, 0x0, 0x1ab, 0x0, 0x1b7, 0x30c, 0x0, 0x222, 0x0, 0x237, 0x0, 0x250, 0x0, 0x251, 0x0, 0x252, 0x0, 0x254, 0x0, 0x255, 0x0, 0x259, 0x0, 0x25b, 0x0, 0x25c, 0x0, 0x25f, 0x0, 0x261, 0x0, 0x263, 0x0, 0x265, 0x0, 0x266, 0x0, 0x268, 0x0, 0x269, 0x0, 0x26a, 0x0, 0x26d, 0x0, 0x26f, 0x0, 0x270, 0x0, 0x271, 0x0, 0x272, 0x0, 0x273, 0x0, 0x274, 0x0, 0x275, 0x0, 0x278, 0x0, 0x279, 0x0, 0x27b, 0x0, 0x281, 0x0, 0x282, 0x0, 0x283, 0x0, 0x289, 0x0, 0x28a, 0x0, 0x28b, 0x0, 0x28c, 0x0, 0x290, 0x0, 0x291, 0x0, 0x292, 0x0, 0x292, 0x30c, 0x0, 0x295, 0x0, 0x29d, 0x0, 0x29f, 0x0, 0x2b9, 0x0, 0x2bc, 0x6e, 0x0, 0x300, 0x0, 0x301, 0x0, 0x308, 0x301, 0x0, 0x313, 0x0, 0x391, 0x0, 0x391, 0x300, 0x0, 0x391, 0x301, 0x0, 0x391, 0x304, 0x0, 0x391, 0x306, 0x0, 0x391, 0x313, 0x0, 0x391, 0x313, 0x300, 0x0, 0x391, 0x313, 0x300, 0x345, 0x0, 0x391, 0x313, 0x301, 0x0, 0x391, 0x313, 0x301, 0x345, 0x0, 0x391, 0x313, 0x342, 0x0, 0x391, 0x313, 0x342, 0x345, 0x0, 0x391, 0x313, 0x345, 0x0, 0x391, 0x314, 0x0, 0x391, 0x314, 0x300, 0x0, 0x391, 0x314, 0x300, 0x345, 0x0, 0x391, 0x314, 0x301, 0x0, 0x391, 0x314, 0x301, 0x345, 0x0, 0x391, 0x314, 0x342, 0x0, 0x391, 0x314, 0x342, 0x345, 0x0, 0x391, 0x314, 0x345, 0x0, 0x391, 0x345, 0x0, 0x392, 0x0, 0x393, 0x0, 0x394, 0x0, 0x395, 0x0, 0x395, 0x300, 0x0, 0x395, 0x301, 0x0, 0x395, 0x313, 0x0, 0x395, 0x313, 0x300, 0x0, 0x395, 0x313, 0x301, 0x0, 0x395, 0x314, 0x0, 0x395, 0x314, 0x300, 0x0, 0x395, 0x314, 0x301, 0x0, 0x396, 0x0, 0x397, 0x0, 0x397, 0x300, 0x0, 0x397, 0x301, 0x0, 0x397, 0x313, 0x0, 0x397, 0x313, 0x300, 0x0, 0x397, 0x313, 0x300, 0x345, 0x0, 0x397, 0x313, 0x301, 0x0, 0x397, 0x313, 0x301, 0x345, 0x0, 0x397, 0x313, 0x342, 0x0, 0x397, 0x313, 0x342, 0x345, 0x0, 0x397, 0x313, 0x345, 0x0, 0x397, 0x314, 0x0, 0x397, 0x314, 0x300, 0x0, 0x397, 0x314, 0x300, 0x345, 0x0, 0x397, 0x314, 0x301, 0x0, 0x397, 0x314, 0x301, 0x345, 0x0, 0x397, 0x314, 0x342, 0x0, 0x397, 0x314, 0x342, 0x345, 0x0, 0x397, 0x314, 0x345, 0x0, 0x397, 0x345, 0x0, 0x398, 0x0, 0x399, 0x0, 0x399, 0x300, 0x0, 0x399, 0x301, 0x0, 0x399, 0x304, 0x0, 0x399, 0x306, 0x0, 0x399, 0x308, 0x0, 0x399, 0x313, 0x0, 0x399, 0x313, 0x300, 0x0, 0x399, 0x313, 0x301, 0x0, 0x399, 0x313, 0x342, 0x0, 0x399, 0x314, 0x0, 0x399, 0x314, 0x300, 0x0, 0x399, 0x314, 0x301, 0x0, 0x399, 0x314, 0x342, 0x0, 0x39a, 0x0, 0x39b, 0x0, 0x39c, 0x0, 0x39d, 0x0, 0x39e, 0x0, 0x39f, 0x0, 0x39f, 0x300, 0x0, 0x39f, 0x301, 0x0, 0x39f, 0x313, 0x0, 0x39f, 0x313, 0x300, 0x0, 0x39f, 0x313, 0x301, 0x0, 0x39f, 0x314, 0x0, 0x39f, 0x314, 0x300, 0x0, 0x39f, 0x314, 0x301, 0x0, 0x3a0, 0x0, 0x3a1, 0x0, 0x3a1, 0x314, 0x0, 0x3a3, 0x0, 0x3a4, 0x0, 0x3a5, 0x0, 0x3a5, 0x300, 0x0, 0x3a5, 0x301, 0x0, 0x3a5, 0x304, 0x0, 0x3a5, 0x306, 0x0, 0x3a5, 0x308, 0x0, 0x3a5, 0x314, 0x0, 0x3a5, 0x314, 0x300, 0x0, 0x3a5, 0x314, 0x301, 0x0, 0x3a5, 0x314, 0x342, 0x0, 0x3a6, 0x0, 0x3a7, 0x0, 0x3a8, 0x0, 0x3a9, 0x0, 0x3a9, 0x300, 0x0, 0x3a9, 0x301, 0x0, 0x3a9, 0x313, 0x0, 0x3a9, 0x313, 0x300, 0x0, 0x3a9, 0x313, 0x300, 0x345, 0x0, 0x3a9, 0x313, 0x301, 0x0, 0x3a9, 0x313, 0x301, 0x345, 0x0, 0x3a9, 0x313, 0x342, 0x0, 0x3a9, 0x313, 0x342, 0x345, 0x0, 0x3a9, 0x313, 0x345, 0x0, 0x3a9, 0x314, 0x0, 0x3a9, 0x314, 0x300, 0x0, 0x3a9, 0x314, 0x300, 0x345, 0x0, 0x3a9, 0x314, 0x301, 0x0, 0x3a9, 0x314, 0x301, 0x345, 0x0, 0x3a9, 0x314, 0x342, 0x0, 0x3a9, 0x314, 0x342, 0x345, 0x0, 0x3a9, 0x314, 0x345, 0x0, 0x3a9, 0x345, 0x0, 0x3b1, 0x0, 0x3b1, 0x300, 0x0, 0x3b1, 0x300, 0x345, 0x0, 0x3b1, 0x301, 0x0, 0x3b1, 0x301, 0x345, 0x0, 0x3b1, 0x304, 0x0, 0x3b1, 0x306, 0x0, 0x3b1, 0x313, 0x0, 0x3b1, 0x313, 0x300, 0x0, 0x3b1, 0x313, 0x300, 0x345, 0x0, 0x3b1, 0x313, 0x301, 0x0, 0x3b1, 0x313, 0x301, 0x345, 0x0, 0x3b1, 0x313, 0x342, 0x0, 0x3b1, 0x313, 0x342, 0x345, 0x0, 0x3b1, 0x313, 0x345, 0x0, 0x3b1, 0x314, 0x0, 0x3b1, 0x314, 0x300, 0x0, 0x3b1, 0x314, 0x300, 0x345, 0x0, 0x3b1, 0x314, 0x301, 0x0, 0x3b1, 0x314, 0x301, 0x345, 0x0, 0x3b1, 0x314, 0x342, 0x0, 0x3b1, 0x314, 0x342, 0x345, 0x0, 0x3b1, 0x314, 0x345, 0x0, 0x3b1, 0x342, 0x0, 0x3b1, 0x342, 0x345, 0x0, 0x3b1, 0x345, 0x0, 0x3b2, 0x0, 0x3b3, 0x0, 0x3b4, 0x0, 0x3b5, 0x0, 0x3b5, 0x300, 0x0, 0x3b5, 0x301, 0x0, 0x3b5, 0x313, 0x0, 0x3b5, 0x313, 0x300, 0x0, 0x3b5, 0x313, 0x301, 0x0, 0x3b5, 0x314, 0x0, 0x3b5, 0x314, 0x300, 0x0, 0x3b5, 0x314, 0x301, 0x0, 0x3b6, 0x0, 0x3b7, 0x0, 0x3b7, 0x300, 0x0, 0x3b7, 0x300, 0x345, 0x0, 0x3b7, 0x301, 0x0, 0x3b7, 0x301, 0x345, 0x0, 0x3b7, 0x313, 0x0, 0x3b7, 0x313, 0x300, 0x0, 0x3b7, 0x313, 0x300, 0x345, 0x0, 0x3b7, 0x313, 0x301, 0x0, 0x3b7, 0x313, 0x301, 0x345, 0x0, 0x3b7, 0x313, 0x342, 0x0, 0x3b7, 0x313, 0x342, 0x345, 0x0, 0x3b7, 0x313, 0x345, 0x0, 0x3b7, 0x314, 0x0, 0x3b7, 0x314, 0x300, 0x0, 0x3b7, 0x314, 0x300, 0x345, 0x0, 0x3b7, 0x314, 0x301, 0x0, 0x3b7, 0x314, 0x301, 0x345, 0x0, 0x3b7, 0x314, 0x342, 0x0, 0x3b7, 0x314, 0x342, 0x345, 0x0, 0x3b7, 0x314, 0x345, 0x0, 0x3b7, 0x342, 0x0, 0x3b7, 0x342, 0x345, 0x0, 0x3b7, 0x345, 0x0, 0x3b8, 0x0, 0x3b9, 0x0, 0x3b9, 0x300, 0x0, 0x3b9, 0x301, 0x0, 0x3b9, 0x304, 0x0, 0x3b9, 0x306, 0x0, 0x3b9, 0x308, 0x0, 0x3b9, 0x308, 0x300, 0x0, 0x3b9, 0x308, 0x301, 0x0, 0x3b9, 0x308, 0x342, 0x0, 0x3b9, 0x313, 0x0, 0x3b9, 0x313, 0x300, 0x0, 0x3b9, 0x313, 0x301, 0x0, 0x3b9, 0x313, 0x342, 0x0, 0x3b9, 0x314, 0x0, 0x3b9, 0x314, 0x300, 0x0, 0x3b9, 0x314, 0x301, 0x0, 0x3b9, 0x314, 0x342, 0x0, 0x3b9, 0x342, 0x0, 0x3ba, 0x0, 0x3bb, 0x0, 0x3bc, 0x0, 0x3bc, 0x41, 0x0, 0x3bc, 0x46, 0x0, 0x3bc, 0x56, 0x0, 0x3bc, 0x57, 0x0, 0x3bc, 0x67, 0x0, 0x3bc, 0x6c, 0x0, 0x3bc, 0x6d, 0x0, 0x3bc, 0x73, 0x0, 0x3bd, 0x0, 0x3be, 0x0, 0x3bf, 0x0, 0x3bf, 0x300, 0x0, 0x3bf, 0x301, 0x0, 0x3bf, 0x313, 0x0, 0x3bf, 0x313, 0x300, 0x0, 0x3bf, 0x313, 0x301, 0x0, 0x3bf, 0x314, 0x0, 0x3bf, 0x314, 0x300, 0x0, 0x3bf, 0x314, 0x301, 0x0, 0x3c0, 0x0, 0x3c1, 0x0, 0x3c1, 0x313, 0x0, 0x3c1, 0x314, 0x0, 0x3c2, 0x0, 0x3c3, 0x0, 0x3c4, 0x0, 0x3c5, 0x0, 0x3c5, 0x300, 0x0, 0x3c5, 0x301, 0x0, 0x3c5, 0x304, 0x0, 0x3c5, 0x306, 0x0, 0x3c5, 0x308, 0x0, 0x3c5, 0x308, 0x300, 0x0, 0x3c5, 0x308, 0x301, 0x0, 0x3c5, 0x308, 0x342, 0x0, 0x3c5, 0x313, 0x0, 0x3c5, 0x313, 0x300, 0x0, 0x3c5, 0x313, 0x301, 0x0, 0x3c5, 0x313, 0x342, 0x0, 0x3c5, 0x314, 0x0, 0x3c5, 0x314, 0x300, 0x0, 0x3c5, 0x314, 0x301, 0x0, 0x3c5, 0x314, 0x342, 0x0, 0x3c5, 0x342, 0x0, 0x3c6, 0x0, 0x3c7, 0x0, 0x3c8, 0x0, 0x3c9, 0x0, 0x3c9, 0x300, 0x0, 0x3c9, 0x300, 0x345, 0x0, 0x3c9, 0x301, 0x0, 0x3c9, 0x301, 0x345, 0x0, 0x3c9, 0x313, 0x0, 0x3c9, 0x313, 0x300, 0x0, 0x3c9, 0x313, 0x300, 0x345, 0x0, 0x3c9, 0x313, 0x301, 0x0, 0x3c9, 0x313, 0x301, 0x345, 0x0, 0x3c9, 0x313, 0x342, 0x0, 0x3c9, 0x313, 0x342, 0x345, 0x0, 0x3c9, 0x313, 0x345, 0x0, 0x3c9, 0x314, 0x0, 0x3c9, 0x314, 0x300, 0x0, 0x3c9, 0x314, 0x300, 0x345, 0x0, 0x3c9, 0x314, 0x301, 0x0, 0x3c9, 0x314, 0x301, 0x345, 0x0, 0x3c9, 0x314, 0x342, 0x0, 0x3c9, 0x314, 0x342, 0x345, 0x0, 0x3c9, 0x314, 0x345, 0x0, 0x3c9, 0x342, 0x0, 0x3c9, 0x342, 0x345, 0x0, 0x3c9, 0x345, 0x0, 0x3dc, 0x0, 0x3dd, 0x0, 0x406, 0x308, 0x0, 0x410, 0x306, 0x0, 0x410, 0x308, 0x0, 0x413, 0x301, 0x0, 0x415, 0x300, 0x0, 0x415, 0x306, 0x0, 0x415, 0x308, 0x0, 0x416, 0x306, 0x0, 0x416, 0x308, 0x0, 0x417, 0x308, 0x0, 0x418, 0x300, 0x0, 0x418, 0x304, 0x0, 0x418, 0x306, 0x0, 0x418, 0x308, 0x0, 0x41a, 0x301, 0x0, 0x41e, 0x308, 0x0, 0x423, 0x304, 0x0, 0x423, 0x306, 0x0, 0x423, 0x308, 0x0, 0x423, 0x30b, 0x0, 0x427, 0x308, 0x0, 0x42b, 0x308, 0x0, 0x42d, 0x308, 0x0, 0x430, 0x306, 0x0, 0x430, 0x308, 0x0, 0x433, 0x301, 0x0, 0x435, 0x300, 0x0, 0x435, 0x306, 0x0, 0x435, 0x308, 0x0, 0x436, 0x306, 0x0, 0x436, 0x308, 0x0, 0x437, 0x308, 0x0, 0x438, 0x300, 0x0, 0x438, 0x304, 0x0, 0x438, 0x306, 0x0, 0x438, 0x308, 0x0, 0x43a, 0x301, 0x0, 0x43d, 0x0, 0x43e, 0x308, 0x0, 0x443, 0x304, 0x0, 0x443, 0x306, 0x0, 0x443, 0x308, 0x0, 0x443, 0x30b, 0x0, 0x447, 0x308, 0x0, 0x44b, 0x308, 0x0, 0x44d, 0x308, 0x0, 0x456, 0x308, 0x0, 0x474, 0x30f, 0x0, 0x475, 0x30f, 0x0, 0x4d8, 0x308, 0x0, 0x4d9, 0x308, 0x0, 0x4e8, 0x308, 0x0, 0x4e9, 0x308, 0x0, 0x565, 0x582, 0x0, 0x574, 0x565, 0x0, 0x574, 0x56b, 0x0, 0x574, 0x56d, 0x0, 0x574, 0x576, 0x0, 0x57e, 0x576, 0x0, 0x5d0, 0x0, 0x5d0, 0x5b7, 0x0, 0x5d0, 0x5b8, 0x0, 0x5d0, 0x5bc, 0x0, 0x5d0, 0x5dc, 0x0, 0x5d1, 0x0, 0x5d1, 0x5bc, 0x0, 0x5d1, 0x5bf, 0x0, 0x5d2, 0x0, 0x5d2, 0x5bc, 0x0, 0x5d3, 0x0, 0x5d3, 0x5bc, 0x0, 0x5d4, 0x0, 0x5d4, 0x5bc, 0x0, 0x5d5, 0x5b9, 0x0, 0x5d5, 0x5bc, 0x0, 0x5d6, 0x5bc, 0x0, 0x5d8, 0x5bc, 0x0, 0x5d9, 0x5b4, 0x0, 0x5d9, 0x5bc, 0x0, 0x5da, 0x5bc, 0x0, 0x5db, 0x0, 0x5db, 0x5bc, 0x0, 0x5db, 0x5bf, 0x0, 0x5dc, 0x0, 0x5dc, 0x5bc, 0x0, 0x5dd, 0x0, 0x5de, 0x5bc, 0x0, 0x5e0, 0x5bc, 0x0, 0x5e1, 0x5bc, 0x0, 0x5e2, 0x0, 0x5e3, 0x5bc, 0x0, 0x5e4, 0x5bc, 0x0, 0x5e4, 0x5bf, 0x0, 0x5e6, 0x5bc, 0x0, 0x5e7, 0x5bc, 0x0, 0x5e8, 0x0, 0x5e8, 0x5bc, 0x0, 0x5e9, 0x5bc, 0x0, 0x5e9, 0x5bc, 0x5c1, 0x0, 0x5e9, 0x5bc, 0x5c2, 0x0, 0x5e9, 0x5c1, 0x0, 0x5e9, 0x5c2, 0x0, 0x5ea, 0x0, 0x5ea, 0x5bc, 0x0, 0x5f2, 0x5b7, 0x0, 0x621, 0x0, 0x627, 0x0, 0x627, 0x643, 0x628, 0x631, 0x0, 0x627, 0x644, 0x644, 0x647, 0x0, 0x627, 0x64b, 0x0, 0x627, 0x653, 0x0, 0x627, 0x654, 0x0, 0x627, 0x655, 0x0, 0x627, 0x674, 0x0, 0x628, 0x0, 0x628, 0x62c, 0x0, 0x628, 0x62d, 0x0, 0x628, 0x62d, 0x64a, 0x0, 0x628, 0x62e, 0x0, 0x628, 0x62e, 0x64a, 0x0, 0x628, 0x631, 0x0, 0x628, 0x632, 0x0, 0x628, 0x645, 0x0, 0x628, 0x646, 0x0, 0x628, 0x647, 0x0, 0x628, 0x649, 0x0, 0x628, 0x64a, 0x0, 0x629, 0x0, 0x62a, 0x0, 0x62a, 0x62c, 0x0, 0x62a, 0x62c, 0x645, 0x0, 0x62a, 0x62c, 0x649, 0x0, 0x62a, 0x62c, 0x64a, 0x0, 0x62a, 0x62d, 0x0, 0x62a, 0x62d, 0x62c, 0x0, 0x62a, 0x62d, 0x645, 0x0, 0x62a, 0x62e, 0x0, 0x62a, 0x62e, 0x645, 0x0, 0x62a, 0x62e, 0x649, 0x0, 0x62a, 0x62e, 0x64a, 0x0, 0x62a, 0x631, 0x0, 0x62a, 0x632, 0x0, 0x62a, 0x645, 0x0, 0x62a, 0x645, 0x62c, 0x0, 0x62a, 0x645, 0x62d, 0x0, 0x62a, 0x645, 0x62e, 0x0, 0x62a, 0x645, 0x649, 0x0, 0x62a, 0x645, 0x64a, 0x0, 0x62a, 0x646, 0x0, 0x62a, 0x647, 0x0, 0x62a, 0x649, 0x0, 0x62a, 0x64a, 0x0, 0x62b, 0x0, 0x62b, 0x62c, 0x0, 0x62b, 0x631, 0x0, 0x62b, 0x632, 0x0, 0x62b, 0x645, 0x0, 0x62b, 0x646, 0x0, 0x62b, 0x647, 0x0, 0x62b, 0x649, 0x0, 0x62b, 0x64a, 0x0, 0x62c, 0x0, 0x62c, 0x62d, 0x0, 0x62c, 0x62d, 0x649, 0x0, 0x62c, 0x62d, 0x64a, 0x0, 0x62c, 0x644, 0x20, 0x62c, 0x644, 0x627, 0x644, 0x647, 0x0, 0x62c, 0x645, 0x0, 0x62c, 0x645, 0x62d, 0x0, 0x62c, 0x645, 0x649, 0x0, 0x62c, 0x645, 0x64a, 0x0, 0x62c, 0x649, 0x0, 0x62c, 0x64a, 0x0, 0x62d, 0x0, 0x62d, 0x62c, 0x0, 0x62d, 0x62c, 0x64a, 0x0, 0x62d, 0x645, 0x0, 0x62d, 0x645, 0x649, 0x0, 0x62d, 0x645, 0x64a, 0x0, 0x62d, 0x649, 0x0, 0x62d, 0x64a, 0x0, 0x62e, 0x0, 0x62e, 0x62c, 0x0, 0x62e, 0x62d, 0x0, 0x62e, 0x645, 0x0, 0x62e, 0x649, 0x0, 0x62e, 0x64a, 0x0, 0x62f, 0x0, 0x630, 0x0, 0x630, 0x670, 0x0, 0x631, 0x0, 0x631, 0x633, 0x648, 0x644, 0x0, 0x631, 0x670, 0x0, 0x631, 0x6cc, 0x627, 0x644, 0x0, 0x632, 0x0, 0x633, 0x0, 0x633, 0x62c, 0x0, 0x633, 0x62c, 0x62d, 0x0, 0x633, 0x62c, 0x649, 0x0, 0x633, 0x62d, 0x0, 0x633, 0x62d, 0x62c, 0x0, 0x633, 0x62e, 0x0, 0x633, 0x62e, 0x649, 0x0, 0x633, 0x62e, 0x64a, 0x0, 0x633, 0x631, 0x0, 0x633, 0x645, 0x0, 0x633, 0x645, 0x62c, 0x0, 0x633, 0x645, 0x62d, 0x0, 0x633, 0x645, 0x645, 0x0, 0x633, 0x647, 0x0, 0x633, 0x649, 0x0, 0x633, 0x64a, 0x0, 0x634, 0x0, 0x634, 0x62c, 0x0, 0x634, 0x62c, 0x64a, 0x0, 0x634, 0x62d, 0x0, 0x634, 0x62d, 0x645, 0x0, 0x634, 0x62d, 0x64a, 0x0, 0x634, 0x62e, 0x0, 0x634, 0x631, 0x0, 0x634, 0x645, 0x0, 0x634, 0x645, 0x62e, 0x0, 0x634, 0x645, 0x645, 0x0, 0x634, 0x647, 0x0, 0x634, 0x649, 0x0, 0x634, 0x64a, 0x0, 0x635, 0x0, 0x635, 0x62d, 0x0, 0x635, 0x62d, 0x62d, 0x0, 0x635, 0x62d, 0x64a, 0x0, 0x635, 0x62e, 0x0, 0x635, 0x631, 0x0, 0x635, 0x644, 0x639, 0x645, 0x0, 0x635, 0x644, 0x649, 0x0, 0x635, 0x644, 0x649, 0x20, 0x627, 0x644, 0x644, 0x647, 0x20, 0x639, 0x644, 0x64a, 0x647, 0x20, 0x648, 0x633, 0x644, 0x645, 0x0, 0x635, 0x644, 0x6d2, 0x0, 0x635, 0x645, 0x0, 0x635, 0x645, 0x645, 0x0, 0x635, 0x649, 0x0, 0x635, 0x64a, 0x0, 0x636, 0x0, 0x636, 0x62c, 0x0, 0x636, 0x62d, 0x0, 0x636, 0x62d, 0x649, 0x0, 0x636, 0x62d, 0x64a, 0x0, 0x636, 0x62e, 0x0, 0x636, 0x62e, 0x645, 0x0, 0x636, 0x631, 0x0, 0x636, 0x645, 0x0, 0x636, 0x649, 0x0, 0x636, 0x64a, 0x0, 0x637, 0x0, 0x637, 0x62d, 0x0, 0x637, 0x645, 0x0, 0x637, 0x645, 0x62d, 0x0, 0x637, 0x645, 0x645, 0x0, 0x637, 0x645, 0x64a, 0x0, 0x637, 0x649, 0x0, 0x637, 0x64a, 0x0, 0x638, 0x0, 0x638, 0x645, 0x0, 0x639, 0x0, 0x639, 0x62c, 0x0, 0x639, 0x62c, 0x645, 0x0, 0x639, 0x644, 0x64a, 0x647, 0x0, 0x639, 0x645, 0x0, 0x639, 0x645, 0x645, 0x0, 0x639, 0x645, 0x649, 0x0, 0x639, 0x645, 0x64a, 0x0, 0x639, 0x649, 0x0, 0x639, 0x64a, 0x0, 0x63a, 0x0, 0x63a, 0x62c, 0x0, 0x63a, 0x645, 0x0, 0x63a, 0x645, 0x645, 0x0, 0x63a, 0x645, 0x649, 0x0, 0x63a, 0x645, 0x64a, 0x0, 0x63a, 0x649, 0x0, 0x63a, 0x64a, 0x0, 0x640, 0x64b, 0x0, 0x640, 0x64e, 0x0, 0x640, 0x64e, 0x651, 0x0, 0x640, 0x64f, 0x0, 0x640, 0x64f, 0x651, 0x0, 0x640, 0x650, 0x0, 0x640, 0x650, 0x651, 0x0, 0x640, 0x651, 0x0, 0x640, 0x652, 0x0, 0x641, 0x0, 0x641, 0x62c, 0x0, 0x641, 0x62d, 0x0, 0x641, 0x62e, 0x0, 0x641, 0x62e, 0x645, 0x0, 0x641, 0x645, 0x0, 0x641, 0x645, 0x64a, 0x0, 0x641, 0x649, 0x0, 0x641, 0x64a, 0x0, 0x642, 0x0, 0x642, 0x62d, 0x0, 0x642, 0x644, 0x6d2, 0x0, 0x642, 0x645, 0x0, 0x642, 0x645, 0x62d, 0x0, 0x642, 0x645, 0x645, 0x0, 0x642, 0x645, 0x64a, 0x0, 0x642, 0x649, 0x0, 0x642, 0x64a, 0x0, 0x643, 0x0, 0x643, 0x627, 0x0, 0x643, 0x62c, 0x0, 0x643, 0x62d, 0x0, 0x643, 0x62e, 0x0, 0x643, 0x644, 0x0, 0x643, 0x645, 0x0, 0x643, 0x645, 0x645, 0x0, 0x643, 0x645, 0x64a, 0x0, 0x643, 0x649, 0x0, 0x643, 0x64a, 0x0, 0x644, 0x0, 0x644, 0x627, 0x0, 0x644, 0x627, 0x653, 0x0, 0x644, 0x627, 0x654, 0x0, 0x644, 0x627, 0x655, 0x0, 0x644, 0x62c, 0x0, 0x644, 0x62c, 0x62c, 0x0, 0x644, 0x62c, 0x645, 0x0, 0x644, 0x62c, 0x64a, 0x0, 0x644, 0x62d, 0x0, 0x644, 0x62d, 0x645, 0x0, 0x644, 0x62d, 0x649, 0x0, 0x644, 0x62d, 0x64a, 0x0, 0x644, 0x62e, 0x0, 0x644, 0x62e, 0x645, 0x0, 0x644, 0x645, 0x0, 0x644, 0x645, 0x62d, 0x0, 0x644, 0x645, 0x64a, 0x0, 0x644, 0x647, 0x0, 0x644, 0x649, 0x0, 0x644, 0x64a, 0x0, 0x645, 0x0, 0x645, 0x627, 0x0, 0x645, 0x62c, 0x0, 0x645, 0x62c, 0x62d, 0x0, 0x645, 0x62c, 0x62e, 0x0, 0x645, 0x62c, 0x645, 0x0, 0x645, 0x62c, 0x64a, 0x0, 0x645, 0x62d, 0x0, 0x645, 0x62d, 0x62c, 0x0, 0x645, 0x62d, 0x645, 0x0, 0x645, 0x62d, 0x645, 0x62f, 0x0, 0x645, 0x62d, 0x64a, 0x0, 0x645, 0x62e, 0x0, 0x645, 0x62e, 0x62c, 0x0, 0x645, 0x62e, 0x645, 0x0, 0x645, 0x62e, 0x64a, 0x0, 0x645, 0x645, 0x0, 0x645, 0x645, 0x64a, 0x0, 0x645, 0x649, 0x0, 0x645, 0x64a, 0x0, 0x646, 0x0, 0x646, 0x62c, 0x0, 0x646, 0x62c, 0x62d, 0x0, 0x646, 0x62c, 0x645, 0x0, 0x646, 0x62c, 0x649, 0x0, 0x646, 0x62c, 0x64a, 0x0, 0x646, 0x62d, 0x0, 0x646, 0x62d, 0x645, 0x0, 0x646, 0x62d, 0x649, 0x0, 0x646, 0x62d, 0x64a, 0x0, 0x646, 0x62e, 0x0, 0x646, 0x631, 0x0, 0x646, 0x632, 0x0, 0x646, 0x645, 0x0, 0x646, 0x645, 0x649, 0x0, 0x646, 0x645, 0x64a, 0x0, 0x646, 0x646, 0x0, 0x646, 0x647, 0x0, 0x646, 0x649, 0x0, 0x646, 0x64a, 0x0, 0x647, 0x0, 0x647, 0x62c, 0x0, 0x647, 0x645, 0x0, 0x647, 0x645, 0x62c, 0x0, 0x647, 0x645, 0x645, 0x0, 0x647, 0x649, 0x0, 0x647, 0x64a, 0x0, 0x647, 0x670, 0x0, 0x648, 0x0, 0x648, 0x633, 0x644, 0x645, 0x0, 0x648, 0x654, 0x0, 0x648, 0x674, 0x0, 0x649, 0x0, 0x649, 0x670, 0x0, 0x64a, 0x0, 0x64a, 0x62c, 0x0, 0x64a, 0x62c, 0x64a, 0x0, 0x64a, 0x62d, 0x0, 0x64a, 0x62d, 0x64a, 0x0, 0x64a, 0x62e, 0x0, 0x64a, 0x631, 0x0, 0x64a, 0x632, 0x0, 0x64a, 0x645, 0x0, 0x64a, 0x645, 0x645, 0x0, 0x64a, 0x645, 0x64a, 0x0, 0x64a, 0x646, 0x0, 0x64a, 0x647, 0x0, 0x64a, 0x649, 0x0, 0x64a, 0x64a, 0x0, 0x64a, 0x654, 0x0, 0x64a, 0x654, 0x627, 0x0, 0x64a, 0x654, 0x62c, 0x0, 0x64a, 0x654, 0x62d, 0x0, 0x64a, 0x654, 0x62e, 0x0, 0x64a, 0x654, 0x631, 0x0, 0x64a, 0x654, 0x632, 0x0, 0x64a, 0x654, 0x645, 0x0, 0x64a, 0x654, 0x646, 0x0, 0x64a, 0x654, 0x647, 0x0, 0x64a, 0x654, 0x648, 0x0, 0x64a, 0x654, 0x649, 0x0, 0x64a, 0x654, 0x64a, 0x0, 0x64a, 0x654, 0x6c6, 0x0, 0x64a, 0x654, 0x6c7, 0x0, 0x64a, 0x654, 0x6c8, 0x0, 0x64a, 0x654, 0x6d0, 0x0, 0x64a, 0x654, 0x6d5, 0x0, 0x64a, 0x674, 0x0, 0x66e, 0x0, 0x66f, 0x0, 0x671, 0x0, 0x679, 0x0, 0x67a, 0x0, 0x67b, 0x0, 0x67e, 0x0, 0x67f, 0x0, 0x680, 0x0, 0x683, 0x0, 0x684, 0x0, 0x686, 0x0, 0x687, 0x0, 0x688, 0x0, 0x68c, 0x0, 0x68d, 0x0, 0x68e, 0x0, 0x691, 0x0, 0x698, 0x0, 0x6a1, 0x0, 0x6a4, 0x0, 0x6a6, 0x0, 0x6a9, 0x0, 0x6ad, 0x0, 0x6af, 0x0, 0x6b1, 0x0, 0x6b3, 0x0, 0x6ba, 0x0, 0x6bb, 0x0, 0x6be, 0x0, 0x6c1, 0x0, 0x6c1, 0x654, 0x0, 0x6c5, 0x0, 0x6c6, 0x0, 0x6c7, 0x0, 0x6c7, 0x674, 0x0, 0x6c8, 0x0, 0x6c9, 0x0, 0x6cb, 0x0, 0x6cc, 0x0, 0x6d0, 0x0, 0x6d2, 0x0, 0x6d2, 0x654, 0x0, 0x6d5, 0x654, 0x0, 0x915, 0x93c, 0x0, 0x916, 0x93c, 0x0, 0x917, 0x93c, 0x0, 0x91c, 0x93c, 0x0, 0x921, 0x93c, 0x0, 0x922, 0x93c, 0x0, 0x928, 0x93c, 0x0, 0x92b, 0x93c, 0x0, 0x92f, 0x93c, 0x0, 0x930, 0x93c, 0x0, 0x933, 0x93c, 0x0, 0x9a1, 0x9bc, 0x0, 0x9a2, 0x9bc, 0x0, 0x9af, 0x9bc, 0x0, 0x9c7, 0x9be, 0x0, 0x9c7, 0x9d7, 0x0, 0xa16, 0xa3c, 0x0, 0xa17, 0xa3c, 0x0, 0xa1c, 0xa3c, 0x0, 0xa2b, 0xa3c, 0x0, 0xa32, 0xa3c, 0x0, 0xa38, 0xa3c, 0x0, 0xb21, 0xb3c, 0x0, 0xb22, 0xb3c, 0x0, 0xb47, 0xb3e, 0x0, 0xb47, 0xb56, 0x0, 0xb47, 0xb57, 0x0, 0xb92, 0xbd7, 0x0, 0xbc6, 0xbbe, 0x0, 0xbc6, 0xbd7, 0x0, 0xbc7, 0xbbe, 0x0, 0xc46, 0xc56, 0x0, 0xcbf, 0xcd5, 0x0, 0xcc6, 0xcc2, 0x0, 0xcc6, 0xcc2, 0xcd5, 0x0, 0xcc6, 0xcd5, 0x0, 0xcc6, 0xcd6, 0x0, 0xd46, 0xd3e, 0x0, 0xd46, 0xd57, 0x0, 0xd47, 0xd3e, 0x0, 0xdd9, 0xdca, 0x0, 0xdd9, 0xdcf, 0x0, 0xdd9, 0xdcf, 0xdca, 0x0, 0xdd9, 0xddf, 0x0, 0xe4d, 0xe32, 0x0, 0xeab, 0xe99, 0x0, 0xeab, 0xea1, 0x0, 0xecd, 0xeb2, 0x0, 0xf0b, 0x0, 0xf40, 0xfb5, 0x0, 0xf42, 0xfb7, 0x0, 0xf4c, 0xfb7, 0x0, 0xf51, 0xfb7, 0x0, 0xf56, 0xfb7, 0x0, 0xf5b, 0xfb7, 0x0, 0xf71, 0xf72, 0x0, 0xf71, 0xf74, 0x0, 0xf71, 0xf80, 0x0, 0xf90, 0xfb5, 0x0, 0xf92, 0xfb7, 0x0, 0xf9c, 0xfb7, 0x0, 0xfa1, 0xfb7, 0x0, 0xfa6, 0xfb7, 0x0, 0xfab, 0xfb7, 0x0, 0xfb2, 0xf71, 0xf80, 0x0, 0xfb2, 0xf80, 0x0, 0xfb3, 0xf71, 0xf80, 0x0, 0xfb3, 0xf80, 0x0, 0x1025, 0x102e, 0x0, 0x10dc, 0x0, 0x1100, 0x0, 0x1100, 0x1161, 0x0, 0x1101, 0x0, 0x1102, 0x0, 0x1102, 0x1161, 0x0, 0x1103, 0x0, 0x1103, 0x1161, 0x0, 0x1104, 0x0, 0x1105, 0x0, 0x1105, 0x1161, 0x0, 0x1106, 0x0, 0x1106, 0x1161, 0x0, 0x1107, 0x0, 0x1107, 0x1161, 0x0, 0x1108, 0x0, 0x1109, 0x0, 0x1109, 0x1161, 0x0, 0x110a, 0x0, 0x110b, 0x0, 0x110b, 0x1161, 0x0, 0x110b, 0x116e, 0x0, 0x110c, 0x0, 0x110c, 0x1161, 0x0, 0x110c, 0x116e, 0x110b, 0x1174, 0x0, 0x110d, 0x0, 0x110e, 0x0, 0x110e, 0x1161, 0x0, 0x110e, 0x1161, 0x11b7, 0x1100, 0x1169, 0x0, 0x110f, 0x0, 0x110f, 0x1161, 0x0, 0x1110, 0x0, 0x1110, 0x1161, 0x0, 0x1111, 0x0, 0x1111, 0x1161, 0x0, 0x1112, 0x0, 0x1112, 0x1161, 0x0, 0x1114, 0x0, 0x1115, 0x0, 0x111a, 0x0, 0x111c, 0x0, 0x111d, 0x0, 0x111e, 0x0, 0x1120, 0x0, 0x1121, 0x0, 0x1122, 0x0, 0x1123, 0x0, 0x1127, 0x0, 0x1129, 0x0, 0x112b, 0x0, 0x112c, 0x0, 0x112d, 0x0, 0x112e, 0x0, 0x112f, 0x0, 0x1132, 0x0, 0x1136, 0x0, 0x1140, 0x0, 0x1147, 0x0, 0x114c, 0x0, 0x1157, 0x0, 0x1158, 0x0, 0x1159, 0x0, 0x1160, 0x0, 0x1161, 0x0, 0x1162, 0x0, 0x1163, 0x0, 0x1164, 0x0, 0x1165, 0x0, 0x1166, 0x0, 0x1167, 0x0, 0x1168, 0x0, 0x1169, 0x0, 0x116a, 0x0, 0x116b, 0x0, 0x116c, 0x0, 0x116d, 0x0, 0x116e, 0x0, 0x116f, 0x0, 0x1170, 0x0, 0x1171, 0x0, 0x1172, 0x0, 0x1173, 0x0, 0x1174, 0x0, 0x1175, 0x0, 0x1184, 0x0, 0x1185, 0x0, 0x1188, 0x0, 0x1191, 0x0, 0x1192, 0x0, 0x1194, 0x0, 0x119e, 0x0, 0x11a1, 0x0, 0x11aa, 0x0, 0x11ac, 0x0, 0x11ad, 0x0, 0x11b0, 0x0, 0x11b1, 0x0, 0x11b2, 0x0, 0x11b3, 0x0, 0x11b4, 0x0, 0x11b5, 0x0, 0x11c7, 0x0, 0x11c8, 0x0, 0x11cc, 0x0, 0x11ce, 0x0, 0x11d3, 0x0, 0x11d7, 0x0, 0x11d9, 0x0, 0x11dd, 0x0, 0x11df, 0x0, 0x11f1, 0x0, 0x11f2, 0x0, 0x1b05, 0x1b35, 0x0, 0x1b07, 0x1b35, 0x0, 0x1b09, 0x1b35, 0x0, 0x1b0b, 0x1b35, 0x0, 0x1b0d, 0x1b35, 0x0, 0x1b11, 0x1b35, 0x0, 0x1b3a, 0x1b35, 0x0, 0x1b3c, 0x1b35, 0x0, 0x1b3e, 0x1b35, 0x0, 0x1b3f, 0x1b35, 0x0, 0x1b42, 0x1b35, 0x0, 0x1d02, 0x0, 0x1d16, 0x0, 0x1d17, 0x0, 0x1d1c, 0x0, 0x1d1d, 0x0, 0x1d25, 0x0, 0x1d7b, 0x0, 0x1d85, 0x0, 0x2010, 0x0, 0x2013, 0x0, 0x2014, 0x0, 0x2032, 0x2032, 0x0, 0x2032, 0x2032, 0x2032, 0x0, 0x2032, 0x2032, 0x2032, 0x2032, 0x0, 0x2035, 0x2035, 0x0, 0x2035, 0x2035, 0x2035, 0x0, 0x20a9, 0x0, 0x2190, 0x0, 0x2190, 0x338, 0x0, 0x2191, 0x0, 0x2192, 0x0, 0x2192, 0x338, 0x0, 0x2193, 0x0, 0x2194, 0x338, 0x0, 0x21d0, 0x338, 0x0, 0x21d2, 0x338, 0x0, 0x21d4, 0x338, 0x0, 0x2202, 0x0, 0x2203, 0x338, 0x0, 0x2207, 0x0, 0x2208, 0x338, 0x0, 0x220b, 0x338, 0x0, 0x2211, 0x0, 0x2212, 0x0, 0x2223, 0x338, 0x0, 0x2225, 0x338, 0x0, 0x222b, 0x222b, 0x0, 0x222b, 0x222b, 0x222b, 0x0, 0x222b, 0x222b, 0x222b, 0x222b, 0x0, 0x222e, 0x222e, 0x0, 0x222e, 0x222e, 0x222e, 0x0, 0x223c, 0x338, 0x0, 0x2243, 0x338, 0x0, 0x2245, 0x338, 0x0, 0x2248, 0x338, 0x0, 0x224d, 0x338, 0x0, 0x2261, 0x338, 0x0, 0x2264, 0x338, 0x0, 0x2265, 0x338, 0x0, 0x2272, 0x338, 0x0, 0x2273, 0x338, 0x0, 0x2276, 0x338, 0x0, 0x2277, 0x338, 0x0, 0x227a, 0x338, 0x0, 0x227b, 0x338, 0x0, 0x227c, 0x338, 0x0, 0x227d, 0x338, 0x0, 0x2282, 0x338, 0x0, 0x2283, 0x338, 0x0, 0x2286, 0x338, 0x0, 0x2287, 0x338, 0x0, 0x2291, 0x338, 0x0, 0x2292, 0x338, 0x0, 0x22a2, 0x338, 0x0, 0x22a8, 0x338, 0x0, 0x22a9, 0x338, 0x0, 0x22ab, 0x338, 0x0, 0x22b2, 0x338, 0x0, 0x22b3, 0x338, 0x0, 0x22b4, 0x338, 0x0, 0x22b5, 0x338, 0x0, 0x2502, 0x0, 0x25a0, 0x0, 0x25cb, 0x0, 0x2985, 0x0, 0x2986, 0x0, 0x2add, 0x338, 0x0, 0x2d61, 0x0, 0x3001, 0x0, 0x3002, 0x0, 0x3008, 0x0, 0x3009, 0x0, 0x300a, 0x0, 0x300b, 0x0, 0x300c, 0x0, 0x300d, 0x0, 0x300e, 0x0, 0x300f, 0x0, 0x3010, 0x0, 0x3011, 0x0, 0x3012, 0x0, 0x3014, 0x0, 0x3014, 0x53, 0x3015, 0x0, 0x3014, 0x4e09, 0x3015, 0x0, 0x3014, 0x4e8c, 0x3015, 0x0, 0x3014, 0x52dd, 0x3015, 0x0, 0x3014, 0x5b89, 0x3015, 0x0, 0x3014, 0x6253, 0x3015, 0x0, 0x3014, 0x6557, 0x3015, 0x0, 0x3014, 0x672c, 0x3015, 0x0, 0x3014, 0x70b9, 0x3015, 0x0, 0x3014, 0x76d7, 0x3015, 0x0, 0x3015, 0x0, 0x3016, 0x0, 0x3017, 0x0, 0x3046, 0x3099, 0x0, 0x304b, 0x3099, 0x0, 0x304d, 0x3099, 0x0, 0x304f, 0x3099, 0x0, 0x3051, 0x3099, 0x0, 0x3053, 0x3099, 0x0, 0x3055, 0x3099, 0x0, 0x3057, 0x3099, 0x0, 0x3059, 0x3099, 0x0, 0x305b, 0x3099, 0x0, 0x305d, 0x3099, 0x0, 0x305f, 0x3099, 0x0, 0x3061, 0x3099, 0x0, 0x3064, 0x3099, 0x0, 0x3066, 0x3099, 0x0, 0x3068, 0x3099, 0x0, 0x306f, 0x3099, 0x0, 0x306f, 0x309a, 0x0, 0x3072, 0x3099, 0x0, 0x3072, 0x309a, 0x0, 0x3075, 0x3099, 0x0, 0x3075, 0x309a, 0x0, 0x3078, 0x3099, 0x0, 0x3078, 0x309a, 0x0, 0x307b, 0x304b, 0x0, 0x307b, 0x3099, 0x0, 0x307b, 0x309a, 0x0, 0x3088, 0x308a, 0x0, 0x3099, 0x0, 0x309a, 0x0, 0x309d, 0x3099, 0x0, 0x30a1, 0x0, 0x30a2, 0x0, 0x30a2, 0x30cf, 0x309a, 0x30fc, 0x30c8, 0x0, 0x30a2, 0x30eb, 0x30d5, 0x30a1, 0x0, 0x30a2, 0x30f3, 0x30d8, 0x309a, 0x30a2, 0x0, 0x30a2, 0x30fc, 0x30eb, 0x0, 0x30a3, 0x0, 0x30a4, 0x0, 0x30a4, 0x30cb, 0x30f3, 0x30af, 0x3099, 0x0, 0x30a4, 0x30f3, 0x30c1, 0x0, 0x30a5, 0x0, 0x30a6, 0x0, 0x30a6, 0x3099, 0x0, 0x30a6, 0x30a9, 0x30f3, 0x0, 0x30a7, 0x0, 0x30a8, 0x0, 0x30a8, 0x30b9, 0x30af, 0x30fc, 0x30c8, 0x3099, 0x0, 0x30a8, 0x30fc, 0x30ab, 0x30fc, 0x0, 0x30a9, 0x0, 0x30aa, 0x0, 0x30aa, 0x30f3, 0x30b9, 0x0, 0x30aa, 0x30fc, 0x30e0, 0x0, 0x30ab, 0x0, 0x30ab, 0x3099, 0x0, 0x30ab, 0x3099, 0x30ed, 0x30f3, 0x0, 0x30ab, 0x3099, 0x30f3, 0x30de, 0x0, 0x30ab, 0x30a4, 0x30ea, 0x0, 0x30ab, 0x30e9, 0x30c3, 0x30c8, 0x0, 0x30ab, 0x30ed, 0x30ea, 0x30fc, 0x0, 0x30ad, 0x0, 0x30ad, 0x3099, 0x0, 0x30ad, 0x3099, 0x30ab, 0x3099, 0x0, 0x30ad, 0x3099, 0x30cb, 0x30fc, 0x0, 0x30ad, 0x3099, 0x30eb, 0x30bf, 0x3099, 0x30fc, 0x0, 0x30ad, 0x30e5, 0x30ea, 0x30fc, 0x0, 0x30ad, 0x30ed, 0x0, 0x30ad, 0x30ed, 0x30af, 0x3099, 0x30e9, 0x30e0, 0x0, 0x30ad, 0x30ed, 0x30e1, 0x30fc, 0x30c8, 0x30eb, 0x0, 0x30ad, 0x30ed, 0x30ef, 0x30c3, 0x30c8, 0x0, 0x30af, 0x0, 0x30af, 0x3099, 0x0, 0x30af, 0x3099, 0x30e9, 0x30e0, 0x0, 0x30af, 0x3099, 0x30e9, 0x30e0, 0x30c8, 0x30f3, 0x0, 0x30af, 0x30eb, 0x30bb, 0x3099, 0x30a4, 0x30ed, 0x0, 0x30af, 0x30ed, 0x30fc, 0x30cd, 0x0, 0x30b1, 0x0, 0x30b1, 0x3099, 0x0, 0x30b1, 0x30fc, 0x30b9, 0x0, 0x30b3, 0x0, 0x30b3, 0x3099, 0x0, 0x30b3, 0x30b3, 0x0, 0x30b3, 0x30c8, 0x0, 0x30b3, 0x30eb, 0x30ca, 0x0, 0x30b3, 0x30fc, 0x30db, 0x309a, 0x0, 0x30b5, 0x0, 0x30b5, 0x3099, 0x0, 0x30b5, 0x30a4, 0x30af, 0x30eb, 0x0, 0x30b5, 0x30f3, 0x30c1, 0x30fc, 0x30e0, 0x0, 0x30b7, 0x0, 0x30b7, 0x3099, 0x0, 0x30b7, 0x30ea, 0x30f3, 0x30af, 0x3099, 0x0, 0x30b9, 0x0, 0x30b9, 0x3099, 0x0, 0x30bb, 0x0, 0x30bb, 0x3099, 0x0, 0x30bb, 0x30f3, 0x30c1, 0x0, 0x30bb, 0x30f3, 0x30c8, 0x0, 0x30bd, 0x0, 0x30bd, 0x3099, 0x0, 0x30bf, 0x0, 0x30bf, 0x3099, 0x0, 0x30bf, 0x3099, 0x30fc, 0x30b9, 0x0, 0x30c1, 0x0, 0x30c1, 0x3099, 0x0, 0x30c3, 0x0, 0x30c4, 0x0, 0x30c4, 0x3099, 0x0, 0x30c6, 0x0, 0x30c6, 0x3099, 0x0, 0x30c6, 0x3099, 0x30b7, 0x0, 0x30c8, 0x0, 0x30c8, 0x3099, 0x0, 0x30c8, 0x3099, 0x30eb, 0x0, 0x30c8, 0x30f3, 0x0, 0x30ca, 0x0, 0x30ca, 0x30ce, 0x0, 0x30cb, 0x0, 0x30cc, 0x0, 0x30cd, 0x0, 0x30ce, 0x0, 0x30ce, 0x30c3, 0x30c8, 0x0, 0x30cf, 0x0, 0x30cf, 0x3099, 0x0, 0x30cf, 0x3099, 0x30fc, 0x30ec, 0x30eb, 0x0, 0x30cf, 0x309a, 0x0, 0x30cf, 0x309a, 0x30fc, 0x30bb, 0x30f3, 0x30c8, 0x0, 0x30cf, 0x309a, 0x30fc, 0x30c4, 0x0, 0x30cf, 0x30a4, 0x30c4, 0x0, 0x30d2, 0x0, 0x30d2, 0x3099, 0x0, 0x30d2, 0x3099, 0x30eb, 0x0, 0x30d2, 0x309a, 0x0, 0x30d2, 0x309a, 0x30a2, 0x30b9, 0x30c8, 0x30eb, 0x0, 0x30d2, 0x309a, 0x30af, 0x30eb, 0x0, 0x30d2, 0x309a, 0x30b3, 0x0, 0x30d5, 0x0, 0x30d5, 0x3099, 0x0, 0x30d5, 0x3099, 0x30c3, 0x30b7, 0x30a7, 0x30eb, 0x0, 0x30d5, 0x309a, 0x0, 0x30d5, 0x30a1, 0x30e9, 0x30c3, 0x30c8, 0x3099, 0x0, 0x30d5, 0x30a3, 0x30fc, 0x30c8, 0x0, 0x30d5, 0x30e9, 0x30f3, 0x0, 0x30d8, 0x0, 0x30d8, 0x3099, 0x0, 0x30d8, 0x3099, 0x30fc, 0x30bf, 0x0, 0x30d8, 0x309a, 0x0, 0x30d8, 0x309a, 0x30bd, 0x0, 0x30d8, 0x309a, 0x30cb, 0x30d2, 0x0, 0x30d8, 0x309a, 0x30f3, 0x30b9, 0x0, 0x30d8, 0x309a, 0x30fc, 0x30b7, 0x3099, 0x0, 0x30d8, 0x30af, 0x30bf, 0x30fc, 0x30eb, 0x0, 0x30d8, 0x30eb, 0x30c4, 0x0, 0x30db, 0x0, 0x30db, 0x3099, 0x0, 0x30db, 0x3099, 0x30eb, 0x30c8, 0x0, 0x30db, 0x309a, 0x0, 0x30db, 0x309a, 0x30a4, 0x30f3, 0x30c8, 0x0, 0x30db, 0x309a, 0x30f3, 0x30c8, 0x3099, 0x0, 0x30db, 0x30f3, 0x0, 0x30db, 0x30fc, 0x30eb, 0x0, 0x30db, 0x30fc, 0x30f3, 0x0, 0x30de, 0x0, 0x30de, 0x30a4, 0x30af, 0x30ed, 0x0, 0x30de, 0x30a4, 0x30eb, 0x0, 0x30de, 0x30c3, 0x30cf, 0x0, 0x30de, 0x30eb, 0x30af, 0x0, 0x30de, 0x30f3, 0x30b7, 0x30e7, 0x30f3, 0x0, 0x30df, 0x0, 0x30df, 0x30af, 0x30ed, 0x30f3, 0x0, 0x30df, 0x30ea, 0x0, 0x30df, 0x30ea, 0x30cf, 0x3099, 0x30fc, 0x30eb, 0x0, 0x30e0, 0x0, 0x30e1, 0x0, 0x30e1, 0x30ab, 0x3099, 0x0, 0x30e1, 0x30ab, 0x3099, 0x30c8, 0x30f3, 0x0, 0x30e1, 0x30fc, 0x30c8, 0x30eb, 0x0, 0x30e2, 0x0, 0x30e3, 0x0, 0x30e4, 0x0, 0x30e4, 0x30fc, 0x30c8, 0x3099, 0x0, 0x30e4, 0x30fc, 0x30eb, 0x0, 0x30e5, 0x0, 0x30e6, 0x0, 0x30e6, 0x30a2, 0x30f3, 0x0, 0x30e7, 0x0, 0x30e8, 0x0, 0x30e9, 0x0, 0x30ea, 0x0, 0x30ea, 0x30c3, 0x30c8, 0x30eb, 0x0, 0x30ea, 0x30e9, 0x0, 0x30eb, 0x0, 0x30eb, 0x30d2, 0x309a, 0x30fc, 0x0, 0x30eb, 0x30fc, 0x30d5, 0x3099, 0x30eb, 0x0, 0x30ec, 0x0, 0x30ec, 0x30e0, 0x0, 0x30ec, 0x30f3, 0x30c8, 0x30b1, 0x3099, 0x30f3, 0x0, 0x30ed, 0x0, 0x30ef, 0x0, 0x30ef, 0x3099, 0x0, 0x30ef, 0x30c3, 0x30c8, 0x0, 0x30f0, 0x0, 0x30f0, 0x3099, 0x0, 0x30f1, 0x0, 0x30f1, 0x3099, 0x0, 0x30f2, 0x0, 0x30f2, 0x3099, 0x0, 0x30f3, 0x0, 0x30fb, 0x0, 0x30fc, 0x0, 0x30fd, 0x3099, 0x0, 0x349e, 0x0, 0x34b9, 0x0, 0x34bb, 0x0, 0x34df, 0x0, 0x3515, 0x0, 0x36ee, 0x0, 0x36fc, 0x0, 0x3781, 0x0, 0x382f, 0x0, 0x3862, 0x0, 0x387c, 0x0, 0x38c7, 0x0, 0x38e3, 0x0, 0x391c, 0x0, 0x393a, 0x0, 0x3a2e, 0x0, 0x3a6c, 0x0, 0x3ae4, 0x0, 0x3b08, 0x0, 0x3b19, 0x0, 0x3b49, 0x0, 0x3b9d, 0x0, 0x3c18, 0x0, 0x3c4e, 0x0, 0x3d33, 0x0, 0x3d96, 0x0, 0x3eac, 0x0, 0x3eb8, 0x0, 0x3f1b, 0x0, 0x3ffc, 0x0, 0x4008, 0x0, 0x4018, 0x0, 0x4039, 0x0, 0x4046, 0x0, 0x4096, 0x0, 0x40e3, 0x0, 0x412f, 0x0, 0x4202, 0x0, 0x4227, 0x0, 0x42a0, 0x0, 0x4301, 0x0, 0x4334, 0x0, 0x4359, 0x0, 0x43d5, 0x0, 0x43d9, 0x0, 0x440b, 0x0, 0x446b, 0x0, 0x452b, 0x0, 0x455d, 0x0, 0x4561, 0x0, 0x456b, 0x0, 0x45d7, 0x0, 0x45f9, 0x0, 0x4635, 0x0, 0x46be, 0x0, 0x46c7, 0x0, 0x4995, 0x0, 0x49e6, 0x0, 0x4a6e, 0x0, 0x4a76, 0x0, 0x4ab2, 0x0, 0x4b33, 0x0, 0x4bce, 0x0, 0x4cce, 0x0, 0x4ced, 0x0, 0x4cf8, 0x0, 0x4d56, 0x0, 0x4e00, 0x0, 0x4e01, 0x0, 0x4e03, 0x0, 0x4e09, 0x0, 0x4e0a, 0x0, 0x4e0b, 0x0, 0x4e0d, 0x0, 0x4e19, 0x0, 0x4e26, 0x0, 0x4e28, 0x0, 0x4e2d, 0x0, 0x4e32, 0x0, 0x4e36, 0x0, 0x4e38, 0x0, 0x4e39, 0x0, 0x4e3d, 0x0, 0x4e3f, 0x0, 0x4e41, 0x0, 0x4e59, 0x0, 0x4e5d, 0x0, 0x4e82, 0x0, 0x4e85, 0x0, 0x4e86, 0x0, 0x4e8c, 0x0, 0x4e94, 0x0, 0x4ea0, 0x0, 0x4ea4, 0x0, 0x4eae, 0x0, 0x4eba, 0x0, 0x4ec0, 0x0, 0x4ecc, 0x0, 0x4ee4, 0x0, 0x4f01, 0x0, 0x4f11, 0x0, 0x4f60, 0x0, 0x4f80, 0x0, 0x4f86, 0x0, 0x4f8b, 0x0, 0x4fae, 0x0, 0x4fbb, 0x0, 0x4fbf, 0x0, 0x5002, 0x0, 0x502b, 0x0, 0x507a, 0x0, 0x5099, 0x0, 0x50cf, 0x0, 0x50da, 0x0, 0x50e7, 0x0, 0x512a, 0x0, 0x513f, 0x0, 0x5140, 0x0, 0x5145, 0x0, 0x514d, 0x0, 0x5154, 0x0, 0x5164, 0x0, 0x5165, 0x0, 0x5167, 0x0, 0x5168, 0x0, 0x5169, 0x0, 0x516b, 0x0, 0x516d, 0x0, 0x5177, 0x0, 0x5180, 0x0, 0x5182, 0x0, 0x518d, 0x0, 0x5192, 0x0, 0x5195, 0x0, 0x5196, 0x0, 0x5197, 0x0, 0x5199, 0x0, 0x51a4, 0x0, 0x51ab, 0x0, 0x51ac, 0x0, 0x51b5, 0x0, 0x51b7, 0x0, 0x51c9, 0x0, 0x51cc, 0x0, 0x51dc, 0x0, 0x51de, 0x0, 0x51e0, 0x0, 0x51f5, 0x0, 0x5200, 0x0, 0x5203, 0x0, 0x5207, 0x0, 0x5217, 0x0, 0x521d, 0x0, 0x5229, 0x0, 0x523a, 0x0, 0x523b, 0x0, 0x5246, 0x0, 0x524d, 0x0, 0x5272, 0x0, 0x5277, 0x0, 0x5289, 0x0, 0x529b, 0x0, 0x52a3, 0x0, 0x52b3, 0x0, 0x52b4, 0x0, 0x52c7, 0x0, 0x52c9, 0x0, 0x52d2, 0x0, 0x52de, 0x0, 0x52e4, 0x0, 0x52f5, 0x0, 0x52f9, 0x0, 0x52fa, 0x0, 0x5305, 0x0, 0x5306, 0x0, 0x5315, 0x0, 0x5317, 0x0, 0x531a, 0x0, 0x5338, 0x0, 0x533b, 0x0, 0x533f, 0x0, 0x5341, 0x0, 0x5344, 0x0, 0x5345, 0x0, 0x5349, 0x0, 0x5351, 0x0, 0x5354, 0x0, 0x535a, 0x0, 0x535c, 0x0, 0x5369, 0x0, 0x5370, 0x0, 0x5373, 0x0, 0x5375, 0x0, 0x537d, 0x0, 0x537f, 0x0, 0x5382, 0x0, 0x53b6, 0x0, 0x53c3, 0x0, 0x53c8, 0x0, 0x53ca, 0x0, 0x53cc, 0x0, 0x53df, 0x0, 0x53e3, 0x0, 0x53e5, 0x0, 0x53eb, 0x0, 0x53ef, 0x0, 0x53f1, 0x0, 0x53f3, 0x0, 0x5406, 0x0, 0x5408, 0x0, 0x540d, 0x0, 0x540f, 0x0, 0x541d, 0x0, 0x5438, 0x0, 0x5439, 0x0, 0x5442, 0x0, 0x5448, 0x0, 0x5468, 0x0, 0x549e, 0x0, 0x54a2, 0x0, 0x54bd, 0x0, 0x54f6, 0x0, 0x5510, 0x0, 0x554f, 0x0, 0x5553, 0x0, 0x5555, 0x0, 0x5563, 0x0, 0x5584, 0x0, 0x5587, 0x0, 0x5599, 0x0, 0x559d, 0x0, 0x55ab, 0x0, 0x55b3, 0x0, 0x55b6, 0x0, 0x55c0, 0x0, 0x55c2, 0x0, 0x55e2, 0x0, 0x5606, 0x0, 0x5651, 0x0, 0x5668, 0x0, 0x5674, 0x0, 0x56d7, 0x0, 0x56db, 0x0, 0x56f9, 0x0, 0x5716, 0x0, 0x5717, 0x0, 0x571f, 0x0, 0x5730, 0x0, 0x578b, 0x0, 0x57ce, 0x0, 0x57f4, 0x0, 0x580d, 0x0, 0x5831, 0x0, 0x5832, 0x0, 0x5840, 0x0, 0x585a, 0x0, 0x585e, 0x0, 0x58a8, 0x0, 0x58ac, 0x0, 0x58b3, 0x0, 0x58d8, 0x0, 0x58df, 0x0, 0x58eb, 0x0, 0x58ee, 0x0, 0x58f0, 0x0, 0x58f2, 0x0, 0x58f7, 0x0, 0x5902, 0x0, 0x5906, 0x0, 0x590a, 0x0, 0x5915, 0x0, 0x591a, 0x0, 0x591c, 0x0, 0x5922, 0x0, 0x5927, 0x0, 0x5927, 0x6b63, 0x0, 0x5929, 0x0, 0x5944, 0x0, 0x5948, 0x0, 0x5951, 0x0, 0x5954, 0x0, 0x5962, 0x0, 0x5973, 0x0, 0x59d8, 0x0, 0x59ec, 0x0, 0x5a1b, 0x0, 0x5a27, 0x0, 0x5a62, 0x0, 0x5a66, 0x0, 0x5ab5, 0x0, 0x5b08, 0x0, 0x5b28, 0x0, 0x5b3e, 0x0, 0x5b50, 0x0, 0x5b57, 0x0, 0x5b66, 0x0, 0x5b80, 0x0, 0x5b85, 0x0, 0x5b97, 0x0, 0x5bc3, 0x0, 0x5bd8, 0x0, 0x5be7, 0x0, 0x5bee, 0x0, 0x5bf3, 0x0, 0x5bf8, 0x0, 0x5bff, 0x0, 0x5c06, 0x0, 0x5c0f, 0x0, 0x5c22, 0x0, 0x5c38, 0x0, 0x5c3f, 0x0, 0x5c60, 0x0, 0x5c62, 0x0, 0x5c64, 0x0, 0x5c65, 0x0, 0x5c6e, 0x0, 0x5c71, 0x0, 0x5c8d, 0x0, 0x5cc0, 0x0, 0x5d19, 0x0, 0x5d43, 0x0, 0x5d50, 0x0, 0x5d6b, 0x0, 0x5d6e, 0x0, 0x5d7c, 0x0, 0x5db2, 0x0, 0x5dba, 0x0, 0x5ddb, 0x0, 0x5de1, 0x0, 0x5de2, 0x0, 0x5de5, 0x0, 0x5de6, 0x0, 0x5df1, 0x0, 0x5dfd, 0x0, 0x5dfe, 0x0, 0x5e28, 0x0, 0x5e3d, 0x0, 0x5e69, 0x0, 0x5e72, 0x0, 0x5e73, 0x6210, 0x0, 0x5e74, 0x0, 0x5e7a, 0x0, 0x5e7c, 0x0, 0x5e7f, 0x0, 0x5ea6, 0x0, 0x5eb0, 0x0, 0x5eb3, 0x0, 0x5eb6, 0x0, 0x5ec9, 0x0, 0x5eca, 0x0, 0x5ed2, 0x0, 0x5ed3, 0x0, 0x5ed9, 0x0, 0x5eec, 0x0, 0x5ef4, 0x0, 0x5efe, 0x0, 0x5f04, 0x0, 0x5f0b, 0x0, 0x5f13, 0x0, 0x5f22, 0x0, 0x5f50, 0x0, 0x5f53, 0x0, 0x5f61, 0x0, 0x5f62, 0x0, 0x5f69, 0x0, 0x5f6b, 0x0, 0x5f73, 0x0, 0x5f8b, 0x0, 0x5f8c, 0x0, 0x5f97, 0x0, 0x5f9a, 0x0, 0x5fa9, 0x0, 0x5fad, 0x0, 0x5fc3, 0x0, 0x5fcd, 0x0, 0x5fd7, 0x0, 0x5ff5, 0x0, 0x5ff9, 0x0, 0x6012, 0x0, 0x601c, 0x0, 0x6075, 0x0, 0x6081, 0x0, 0x6094, 0x0, 0x60c7, 0x0, 0x60d8, 0x0, 0x60e1, 0x0, 0x6108, 0x0, 0x6144, 0x0, 0x6148, 0x0, 0x614c, 0x0, 0x614e, 0x0, 0x6160, 0x0, 0x6168, 0x0, 0x617a, 0x0, 0x618e, 0x0, 0x6190, 0x0, 0x61a4, 0x0, 0x61af, 0x0, 0x61b2, 0x0, 0x61de, 0x0, 0x61f2, 0x0, 0x61f6, 0x0, 0x6200, 0x0, 0x6208, 0x0, 0x6210, 0x0, 0x621b, 0x0, 0x622e, 0x0, 0x6234, 0x0, 0x6236, 0x0, 0x624b, 0x0, 0x6253, 0x0, 0x625d, 0x0, 0x6295, 0x0, 0x62b1, 0x0, 0x62c9, 0x0, 0x62cf, 0x0, 0x62d3, 0x0, 0x62d4, 0x0, 0x62fc, 0x0, 0x62fe, 0x0, 0x6307, 0x0, 0x633d, 0x0, 0x6350, 0x0, 0x6355, 0x0, 0x6368, 0x0, 0x637b, 0x0, 0x6383, 0x0, 0x63a0, 0x0, 0x63a9, 0x0, 0x63c4, 0x0, 0x63c5, 0x0, 0x63e4, 0x0, 0x641c, 0x0, 0x6422, 0x0, 0x6452, 0x0, 0x6469, 0x0, 0x6477, 0x0, 0x647e, 0x0, 0x649a, 0x0, 0x649d, 0x0, 0x64c4, 0x0, 0x652f, 0x0, 0x6534, 0x0, 0x654f, 0x0, 0x6556, 0x0, 0x656c, 0x0, 0x6578, 0x0, 0x6587, 0x0, 0x6597, 0x0, 0x6599, 0x0, 0x65a4, 0x0, 0x65b0, 0x0, 0x65b9, 0x0, 0x65c5, 0x0, 0x65e0, 0x0, 0x65e2, 0x0, 0x65e3, 0x0, 0x65e5, 0x0, 0x660e, 0x6cbb, 0x0, 0x6613, 0x0, 0x6620, 0x0, 0x662d, 0x548c, 0x0, 0x6649, 0x0, 0x6674, 0x0, 0x6688, 0x0, 0x6691, 0x0, 0x669c, 0x0, 0x66b4, 0x0, 0x66c6, 0x0, 0x66f0, 0x0, 0x66f4, 0x0, 0x66f8, 0x0, 0x6700, 0x0, 0x6708, 0x0, 0x6709, 0x0, 0x6717, 0x0, 0x671b, 0x0, 0x6721, 0x0, 0x6728, 0x0, 0x674e, 0x0, 0x6753, 0x0, 0x6756, 0x0, 0x675e, 0x0, 0x677b, 0x0, 0x6785, 0x0, 0x6797, 0x0, 0x67f3, 0x0, 0x67fa, 0x0, 0x6817, 0x0, 0x681f, 0x0, 0x682a, 0x0, 0x682a, 0x5f0f, 0x4f1a, 0x793e, 0x0, 0x6852, 0x0, 0x6881, 0x0, 0x6885, 0x0, 0x688e, 0x0, 0x68a8, 0x0, 0x6914, 0x0, 0x6942, 0x0, 0x69a3, 0x0, 0x69ea, 0x0, 0x6a02, 0x0, 0x6a13, 0x0, 0x6aa8, 0x0, 0x6ad3, 0x0, 0x6adb, 0x0, 0x6b04, 0x0, 0x6b20, 0x0, 0x6b21, 0x0, 0x6b54, 0x0, 0x6b62, 0x0, 0x6b63, 0x0, 0x6b72, 0x0, 0x6b77, 0x0, 0x6b79, 0x0, 0x6b9f, 0x0, 0x6bae, 0x0, 0x6bb3, 0x0, 0x6bba, 0x0, 0x6bbb, 0x0, 0x6bcb, 0x0, 0x6bcd, 0x0, 0x6bd4, 0x0, 0x6bdb, 0x0, 0x6c0f, 0x0, 0x6c14, 0x0, 0x6c34, 0x0, 0x6c4e, 0x0, 0x6c67, 0x0, 0x6c88, 0x0, 0x6cbf, 0x0, 0x6ccc, 0x0, 0x6ccd, 0x0, 0x6ce5, 0x0, 0x6ce8, 0x0, 0x6d16, 0x0, 0x6d1b, 0x0, 0x6d1e, 0x0, 0x6d34, 0x0, 0x6d3e, 0x0, 0x6d41, 0x0, 0x6d69, 0x0, 0x6d6a, 0x0, 0x6d77, 0x0, 0x6d78, 0x0, 0x6d85, 0x0, 0x6dcb, 0x0, 0x6dda, 0x0, 0x6dea, 0x0, 0x6df9, 0x0, 0x6e1a, 0x0, 0x6e2f, 0x0, 0x6e6e, 0x0, 0x6e80, 0x0, 0x6e9c, 0x0, 0x6eba, 0x0, 0x6ec7, 0x0, 0x6ecb, 0x0, 0x6ed1, 0x0, 0x6edb, 0x0, 0x6f0f, 0x0, 0x6f14, 0x0, 0x6f22, 0x0, 0x6f23, 0x0, 0x6f6e, 0x0, 0x6fc6, 0x0, 0x6feb, 0x0, 0x6ffe, 0x0, 0x701b, 0x0, 0x701e, 0x0, 0x7039, 0x0, 0x704a, 0x0, 0x706b, 0x0, 0x7070, 0x0, 0x7077, 0x0, 0x707d, 0x0, 0x7099, 0x0, 0x70ad, 0x0, 0x70c8, 0x0, 0x70d9, 0x0, 0x7121, 0x0, 0x7145, 0x0, 0x7149, 0x0, 0x716e, 0x0, 0x719c, 0x0, 0x71ce, 0x0, 0x71d0, 0x0, 0x7210, 0x0, 0x721b, 0x0, 0x7228, 0x0, 0x722a, 0x0, 0x722b, 0x0, 0x7235, 0x0, 0x7236, 0x0, 0x723b, 0x0, 0x723f, 0x0, 0x7247, 0x0, 0x7250, 0x0, 0x7259, 0x0, 0x725b, 0x0, 0x7262, 0x0, 0x7279, 0x0, 0x7280, 0x0, 0x7295, 0x0, 0x72ac, 0x0, 0x72af, 0x0, 0x72c0, 0x0, 0x72fc, 0x0, 0x732a, 0x0, 0x7375, 0x0, 0x737a, 0x0, 0x7384, 0x0, 0x7387, 0x0, 0x7389, 0x0, 0x738b, 0x0, 0x73a5, 0x0, 0x73b2, 0x0, 0x73de, 0x0, 0x7406, 0x0, 0x7409, 0x0, 0x7422, 0x0, 0x7447, 0x0, 0x745c, 0x0, 0x7469, 0x0, 0x7471, 0x0, 0x7485, 0x0, 0x7489, 0x0, 0x7498, 0x0, 0x74ca, 0x0, 0x74dc, 0x0, 0x74e6, 0x0, 0x7506, 0x0, 0x7518, 0x0, 0x751f, 0x0, 0x7524, 0x0, 0x7528, 0x0, 0x7530, 0x0, 0x7532, 0x0, 0x7533, 0x0, 0x7537, 0x0, 0x753b, 0x0, 0x753e, 0x0, 0x7559, 0x0, 0x7565, 0x0, 0x7570, 0x0, 0x758b, 0x0, 0x7592, 0x0, 0x75e2, 0x0, 0x7610, 0x0, 0x761d, 0x0, 0x761f, 0x0, 0x7642, 0x0, 0x7669, 0x0, 0x7676, 0x0, 0x767d, 0x0, 0x76ae, 0x0, 0x76bf, 0x0, 0x76ca, 0x0, 0x76db, 0x0, 0x76e3, 0x0, 0x76e7, 0x0, 0x76ee, 0x0, 0x76f4, 0x0, 0x7701, 0x0, 0x771e, 0x0, 0x771f, 0x0, 0x7740, 0x0, 0x774a, 0x0, 0x778b, 0x0, 0x77a7, 0x0, 0x77db, 0x0, 0x77e2, 0x0, 0x77f3, 0x0, 0x784e, 0x0, 0x786b, 0x0, 0x788c, 0x0, 0x7891, 0x0, 0x78ca, 0x0, 0x78cc, 0x0, 0x78fb, 0x0, 0x792a, 0x0, 0x793a, 0x0, 0x793c, 0x0, 0x793e, 0x0, 0x7948, 0x0, 0x7949, 0x0, 0x7950, 0x0, 0x7956, 0x0, 0x795d, 0x0, 0x795e, 0x0, 0x7965, 0x0, 0x797f, 0x0, 0x7981, 0x0, 0x798d, 0x0, 0x798e, 0x0, 0x798f, 0x0, 0x79ae, 0x0, 0x79b8, 0x0, 0x79be, 0x0, 0x79ca, 0x0, 0x79d8, 0x0, 0x79eb, 0x0, 0x7a1c, 0x0, 0x7a40, 0x0, 0x7a4a, 0x0, 0x7a4f, 0x0, 0x7a74, 0x0, 0x7a7a, 0x0, 0x7a81, 0x0, 0x7ab1, 0x0, 0x7acb, 0x0, 0x7aee, 0x0, 0x7af9, 0x0, 0x7b20, 0x0, 0x7b8f, 0x0, 0x7bc0, 0x0, 0x7bc6, 0x0, 0x7bc9, 0x0, 0x7c3e, 0x0, 0x7c60, 0x0, 0x7c73, 0x0, 0x7c7b, 0x0, 0x7c92, 0x0, 0x7cbe, 0x0, 0x7cd2, 0x0, 0x7cd6, 0x0, 0x7ce3, 0x0, 0x7ce7, 0x0, 0x7ce8, 0x0, 0x7cf8, 0x0, 0x7d00, 0x0, 0x7d10, 0x0, 0x7d22, 0x0, 0x7d2f, 0x0, 0x7d42, 0x0, 0x7d5b, 0x0, 0x7d63, 0x0, 0x7da0, 0x0, 0x7dbe, 0x0, 0x7dc7, 0x0, 0x7df4, 0x0, 0x7e02, 0x0, 0x7e09, 0x0, 0x7e37, 0x0, 0x7e41, 0x0, 0x7e45, 0x0, 0x7f36, 0x0, 0x7f3e, 0x0, 0x7f51, 0x0, 0x7f72, 0x0, 0x7f79, 0x0, 0x7f7a, 0x0, 0x7f85, 0x0, 0x7f8a, 0x0, 0x7f95, 0x0, 0x7f9a, 0x0, 0x7fbd, 0x0, 0x7ffa, 0x0, 0x8001, 0x0, 0x8005, 0x0, 0x800c, 0x0, 0x8012, 0x0, 0x8033, 0x0, 0x8046, 0x0, 0x8060, 0x0, 0x806f, 0x0, 0x8070, 0x0, 0x807e, 0x0, 0x807f, 0x0, 0x8089, 0x0, 0x808b, 0x0, 0x80ad, 0x0, 0x80b2, 0x0, 0x8103, 0x0, 0x813e, 0x0, 0x81d8, 0x0, 0x81e3, 0x0, 0x81e8, 0x0, 0x81ea, 0x0, 0x81ed, 0x0, 0x81f3, 0x0, 0x81fc, 0x0, 0x8201, 0x0, 0x8204, 0x0, 0x820c, 0x0, 0x8218, 0x0, 0x821b, 0x0, 0x821f, 0x0, 0x826e, 0x0, 0x826f, 0x0, 0x8272, 0x0, 0x8278, 0x0, 0x8279, 0x0, 0x828b, 0x0, 0x8291, 0x0, 0x829d, 0x0, 0x82b1, 0x0, 0x82b3, 0x0, 0x82bd, 0x0, 0x82e5, 0x0, 0x82e6, 0x0, 0x831d, 0x0, 0x8323, 0x0, 0x8336, 0x0, 0x8352, 0x0, 0x8353, 0x0, 0x8363, 0x0, 0x83ad, 0x0, 0x83bd, 0x0, 0x83c9, 0x0, 0x83ca, 0x0, 0x83cc, 0x0, 0x83dc, 0x0, 0x83e7, 0x0, 0x83ef, 0x0, 0x83f1, 0x0, 0x843d, 0x0, 0x8449, 0x0, 0x8457, 0x0, 0x84ee, 0x0, 0x84f1, 0x0, 0x84f3, 0x0, 0x84fc, 0x0, 0x8516, 0x0, 0x8564, 0x0, 0x85cd, 0x0, 0x85fa, 0x0, 0x8606, 0x0, 0x8612, 0x0, 0x862d, 0x0, 0x863f, 0x0, 0x864d, 0x0, 0x8650, 0x0, 0x865c, 0x0, 0x8667, 0x0, 0x8669, 0x0, 0x866b, 0x0, 0x8688, 0x0, 0x86a9, 0x0, 0x86e2, 0x0, 0x870e, 0x0, 0x8728, 0x0, 0x876b, 0x0, 0x8779, 0x0, 0x8786, 0x0, 0x87ba, 0x0, 0x87e1, 0x0, 0x8801, 0x0, 0x881f, 0x0, 0x8840, 0x0, 0x884c, 0x0, 0x8860, 0x0, 0x8863, 0x0, 0x88c2, 0x0, 0x88cf, 0x0, 0x88d7, 0x0, 0x88de, 0x0, 0x88e1, 0x0, 0x88f8, 0x0, 0x88fa, 0x0, 0x8910, 0x0, 0x8941, 0x0, 0x8964, 0x0, 0x897e, 0x0, 0x8986, 0x0, 0x898b, 0x0, 0x8996, 0x0, 0x89d2, 0x0, 0x89e3, 0x0, 0x8a00, 0x0, 0x8aa0, 0x0, 0x8aaa, 0x0, 0x8abf, 0x0, 0x8acb, 0x0, 0x8ad2, 0x0, 0x8ad6, 0x0, 0x8aed, 0x0, 0x8af8, 0x0, 0x8afe, 0x0, 0x8b01, 0x0, 0x8b39, 0x0, 0x8b58, 0x0, 0x8b80, 0x0, 0x8b8a, 0x0, 0x8c37, 0x0, 0x8c46, 0x0, 0x8c48, 0x0, 0x8c55, 0x0, 0x8c78, 0x0, 0x8c9d, 0x0, 0x8ca1, 0x0, 0x8ca9, 0x0, 0x8cab, 0x0, 0x8cc1, 0x0, 0x8cc2, 0x0, 0x8cc7, 0x0, 0x8cc8, 0x0, 0x8cd3, 0x0, 0x8d08, 0x0, 0x8d1b, 0x0, 0x8d64, 0x0, 0x8d70, 0x0, 0x8d77, 0x0, 0x8db3, 0x0, 0x8dbc, 0x0, 0x8dcb, 0x0, 0x8def, 0x0, 0x8df0, 0x0, 0x8eab, 0x0, 0x8eca, 0x0, 0x8ed4, 0x0, 0x8f26, 0x0, 0x8f2a, 0x0, 0x8f38, 0x0, 0x8f3b, 0x0, 0x8f62, 0x0, 0x8f9b, 0x0, 0x8f9e, 0x0, 0x8fb0, 0x0, 0x8fb5, 0x0, 0x8fb6, 0x0, 0x9023, 0x0, 0x9038, 0x0, 0x904a, 0x0, 0x9069, 0x0, 0x9072, 0x0, 0x907c, 0x0, 0x908f, 0x0, 0x9091, 0x0, 0x9094, 0x0, 0x90ce, 0x0, 0x90de, 0x0, 0x90f1, 0x0, 0x90fd, 0x0, 0x9111, 0x0, 0x911b, 0x0, 0x9149, 0x0, 0x916a, 0x0, 0x9199, 0x0, 0x91b4, 0x0, 0x91c6, 0x0, 0x91cc, 0x0, 0x91cf, 0x0, 0x91d1, 0x0, 0x9234, 0x0, 0x9238, 0x0, 0x9276, 0x0, 0x927c, 0x0, 0x92d7, 0x0, 0x92d8, 0x0, 0x9304, 0x0, 0x934a, 0x0, 0x93f9, 0x0, 0x9415, 0x0, 0x9577, 0x0, 0x9580, 0x0, 0x958b, 0x0, 0x95ad, 0x0, 0x95b7, 0x0, 0x961c, 0x0, 0x962e, 0x0, 0x964b, 0x0, 0x964d, 0x0, 0x9675, 0x0, 0x9678, 0x0, 0x967c, 0x0, 0x9686, 0x0, 0x96a3, 0x0, 0x96b6, 0x0, 0x96b7, 0x0, 0x96b8, 0x0, 0x96b9, 0x0, 0x96c3, 0x0, 0x96e2, 0x0, 0x96e3, 0x0, 0x96e8, 0x0, 0x96f6, 0x0, 0x96f7, 0x0, 0x9723, 0x0, 0x9732, 0x0, 0x9748, 0x0, 0x9751, 0x0, 0x9756, 0x0, 0x975e, 0x0, 0x9762, 0x0, 0x9769, 0x0, 0x97cb, 0x0, 0x97db, 0x0, 0x97e0, 0x0, 0x97ed, 0x0, 0x97f3, 0x0, 0x97ff, 0x0, 0x9801, 0x0, 0x9805, 0x0, 0x980b, 0x0, 0x9818, 0x0, 0x9829, 0x0, 0x983b, 0x0, 0x985e, 0x0, 0x98a8, 0x0, 0x98db, 0x0, 0x98df, 0x0, 0x98e2, 0x0, 0x98ef, 0x0, 0x98fc, 0x0, 0x9928, 0x0, 0x9929, 0x0, 0x9996, 0x0, 0x9999, 0x0, 0x99a7, 0x0, 0x99ac, 0x0, 0x99c2, 0x0, 0x99f1, 0x0, 0x99fe, 0x0, 0x9a6a, 0x0, 0x9aa8, 0x0, 0x9ad8, 0x0, 0x9adf, 0x0, 0x9b12, 0x0, 0x9b25, 0x0, 0x9b2f, 0x0, 0x9b32, 0x0, 0x9b3c, 0x0, 0x9b5a, 0x0, 0x9b6f, 0x0, 0x9c40, 0x0, 0x9c57, 0x0, 0x9ce5, 0x0, 0x9cfd, 0x0, 0x9d67, 0x0, 0x9db4, 0x0, 0x9dfa, 0x0, 0x9e1e, 0x0, 0x9e75, 0x0, 0x9e7f, 0x0, 0x9e97, 0x0, 0x9e9f, 0x0, 0x9ea5, 0x0, 0x9ebb, 0x0, 0x9ec3, 0x0, 0x9ecd, 0x0, 0x9ece, 0x0, 0x9ed1, 0x0, 0x9ef9, 0x0, 0x9efd, 0x0, 0x9efe, 0x0, 0x9f05, 0x0, 0x9f0e, 0x0, 0x9f0f, 0x0, 0x9f13, 0x0, 0x9f16, 0x0, 0x9f20, 0x0, 0x9f3b, 0x0, 0x9f43, 0x0, 0x9f4a, 0x0, 0x9f52, 0x0, 0x9f8d, 0x0, 0x9f8e, 0x0, 0x9f9c, 0x0, 0x9f9f, 0x0, 0x9fa0, 0x0, 0xa76f, 0x0, 0x11099, 0x110ba, 0x0, 0x1109b, 0x110ba, 0x0, 0x110a5, 0x110ba, 0x0, 0x11131, 0x11127, 0x0, 0x11132, 0x11127, 0x0, 0x1d157, 0x1d165, 0x0, 0x1d158, 0x1d165, 0x0, 0x1d158, 0x1d165, 0x1d16e, 0x0, 0x1d158, 0x1d165, 0x1d16f, 0x0, 0x1d158, 0x1d165, 0x1d170, 0x0, 0x1d158, 0x1d165, 0x1d171, 0x0, 0x1d158, 0x1d165, 0x1d172, 0x0, 0x1d1b9, 0x1d165, 0x0, 0x1d1b9, 0x1d165, 0x1d16e, 0x0, 0x1d1b9, 0x1d165, 0x1d16f, 0x0, 0x1d1ba, 0x1d165, 0x0, 0x1d1ba, 0x1d165, 0x1d16e, 0x0, 0x1d1ba, 0x1d165, 0x1d16f, 0x0, 0x20122, 0x0, 0x2051c, 0x0, 0x20525, 0x0, 0x2054b, 0x0, 0x2063a, 0x0, 0x20804, 0x0, 0x208de, 0x0, 0x20a2c, 0x0, 0x20b63, 0x0, 0x214e4, 0x0, 0x216a8, 0x0, 0x216ea, 0x0, 0x219c8, 0x0, 0x21b18, 0x0, 0x21d0b, 0x0, 0x21de4, 0x0, 0x21de6, 0x0, 0x22183, 0x0, 0x2219f, 0x0, 0x22331, 0x0, 0x226d4, 0x0, 0x22844, 0x0, 0x2284a, 0x0, 0x22b0c, 0x0, 0x22bf1, 0x0, 0x2300a, 0x0, 0x232b8, 0x0, 0x2335f, 0x0, 0x23393, 0x0, 0x2339c, 0x0, 0x233c3, 0x0, 0x233d5, 0x0, 0x2346d, 0x0, 0x236a3, 0x0, 0x238a7, 0x0, 0x23a8d, 0x0, 0x23afa, 0x0, 0x23cbc, 0x0, 0x23d1e, 0x0, 0x23ed1, 0x0, 0x23f5e, 0x0, 0x23f8e, 0x0, 0x24263, 0x0, 0x242ee, 0x0, 0x243ab, 0x0, 0x24608, 0x0, 0x24735, 0x0, 0x24814, 0x0, 0x24c36, 0x0, 0x24c92, 0x0, 0x24fa1, 0x0, 0x24fb8, 0x0, 0x25044, 0x0, 0x250f2, 0x0, 0x250f3, 0x0, 0x25119, 0x0, 0x25133, 0x0, 0x25249, 0x0, 0x2541d, 0x0, 0x25626, 0x0, 0x2569a, 0x0, 0x256c5, 0x0, 0x2597c, 0x0, 0x25aa7, 0x0, 0x25bab, 0x0, 0x25c80, 0x0, 0x25cd0, 0x0, 0x25f86, 0x0, 0x261da, 0x0, 0x26228, 0x0, 0x26247, 0x0, 0x262d9, 0x0, 0x2633e, 0x0, 0x264da, 0x0, 0x26523, 0x0, 0x265a8, 0x0, 0x267a7, 0x0, 0x267b5, 0x0, 0x26b3c, 0x0, 0x26c36, 0x0, 0x26cd5, 0x0, 0x26d6b, 0x0, 0x26f2c, 0x0, 0x26fb1, 0x0, 0x270d2, 0x0, 0x273ca, 0x0, 0x27667, 0x0, 0x278ae, 0x0, 0x27966, 0x0, 0x27ca8, 0x0, 0x27ed3, 0x0, 0x27f2f, 0x0, 0x285d2, 0x0, 0x285ed, 0x0, 0x2872e, 0x0, 0x28bfa, 0x0, 0x28d77, 0x0, 0x29145, 0x0, 0x291df, 0x0, 0x2921a, 0x0, 0x2940a, 0x0, 0x29496, 0x0, 0x295b6, 0x0, 0x29b30, 0x0, 0x2a0ce, 0x0, 0x2a105, 0x0, 0x2a20e, 0x0, 0x2a291, 0x0, 0x2a392, 0x0, 0x2a600, 0x0]; return t; }
}
}
static if(size_t.sizeof == 4) {
//22656 bytes
enum compatMappingTrieEntries = TrieEntry!(ushort, 8, 8, 5)([ 0x0, 0x40, 0x540], [ 0x100, 0xa00, 0x21c0], [ 0x2020100, 0x4020302, 0x2020205, 0x7060202, 0x2020202, 0x8020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x0, 0x0, 0x10000, 0x30002, 0x50004, 0x70006, 0x80000, 0xa0009, 0xc000b, 0x0, 0xd0000, 0xf000e, 0x0, 0x110010, 0x130012, 0x150014, 0x170016, 0x190018, 0x0, 0x1b001a, 0x0, 0x0, 0x1c, 0x0, 0x1d0000, 0x1e0000, 0x0, 0x1f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x200000, 0x21, 0x0, 0x22, 0x230000, 0x24, 0x0, 0x0, 0x0, 0x25, 0x26, 0x27, 0x0, 0x28, 0x0, 0x29, 0x0, 0x2a, 0x0, 0x2b, 0x2c0000, 0x0, 0x2d0000, 0x2e, 0x2f, 0x310030, 0x330032, 0x0, 0x340000, 0x0, 0x0, 0x350000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x370036, 0x38, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x390000, 0x3b003a, 0x3d003c, 0x0, 0x3f003e, 0x410040, 0x430042, 0x450044, 0x470046, 0x490048, 0x4b004a, 0x4d004c, 0x4f004e, 0x510050, 0x530052, 0x0, 0x550054, 0x570056, 0x590058, 0x5a, 0x5c005b, 0x5e005d, 0x60005f, 0x610000, 0x620000, 0x0, 0x0, 0x0, 0x0, 0x630000, 0x650064, 0x670066, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x68, 0x690000, 0x0, 0x6a, 0x0, 0x0, 0x0, 0x0, 0x0, 0x6b0000, 0x0, 0x0, 0x0, 0x6c0000, 0x0, 0x0, 0x0, 0x0, 0x6d, 0x6e0000, 0x70006f, 0x720071, 0x740073, 0x75, 0x770076, 0x790078, 0x7b007a, 0x7d007c, 0x7e0000, 0x80007f, 0x81, 0x0, 0x830082, 0x850084, 0x870086, 0x890088, 0x8b008a, 0x8d008c, 0x8f008e, 0x910090, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x920000, 0x0, 0x930000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x950094, 0x970096, 0x990098, 0x9b009a, 0x9d009c, 0x9f009e, 0xa100a0, 0xa2, 0xa400a3, 0xa600a5, 0xa800a7, 0xaa00a9, 0xac00ab, 0xae00ad, 0xb000af, 0xb200b1, 0xb400b3, 0xb600b5, 0xb800b7, 0xba00b9, 0xbc00bb, 0xbe00bd, 0xc000bf, 0xc200c1, 0xc400c3, 0xc600c5, 0xc800c7, 0xca00c9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xcc00cb, 0x0, 0xcd0000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xcf00ce, 0xd00000, 0xd1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xd300d2, 0xd500d4, 0xd700d6, 0xd900d8, 0xdb00da, 0xdd00dc, 0xd200de, 0xdf00d3, 0xe000d5, 0xe200e1, 0xe300d9, 0xe500e4, 0xe700e6, 0xe900e8, 0xeb00ea, 0xed00ec, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xef00ee, 0xf100f0, 0xf300f2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf500f4, 0xf700f6, 0xf8, 0x0, 0xfa00f9, 0xfb, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xfd00fc, 0xff00fe, 0x1010100, 0x1030102, 0x1050104, 0x1070106, 0x1090108, 0x10b010a, 0x10c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x15, 0x692, 0x0, 0x90000, 0x0, 0x30f0343, 0x11b20003, 0x0, 0x3140048, 0x787, 0x3c603ce, 0x494, 0x570056d, 0x5860573, 0x5b005a6, 0x5f80000, 0x62e062b, 0x6580631, 0x6e706e4, 0x6f906ea, 0x78f0000, 0x7a907a6, 0x7bf07ac, 0x7e3, 0x8b10000, 0x8b708b4, 0x95f08cb, 0x0, 0x9ac09a9, 0x9c209af, 0x9ec09e2, 0xa470000, 0xa890a86, 0xab30a8c, 0xb460b43, 0xb550b49, 0xc410000, 0xc5e0c5b, 0xc740c61, 0xc98, 0xd680000, 0xd6e0d6b, 0xe0c0d82, 0xe1b0000, 0x9c50589, 0x9c8058c, 0xa0a05ce, 0xa3b05ec, 0xa3e05ef, 0xa4105f2, 0xa4405f5, 0xa6e061a, 0x0, 0xaa20647, 0xaad0652, 0xab00655, 0xad00675, 0xab9065e, 0xafb069a, 0xb0106a0, 0xb0406a3, 0xb0a06a9, 0xb1606ba, 0x0, 0xb4c06ed, 0xb4f06f0, 0xb5206f3, 0xb6b070f, 0x6f6, 0xb3706d8, 0xb730717, 0xbae072e, 0x7430000, 0x7500bcc, 0x7460bd9, 0x7400bcf, 0xbc9, 0x78c0000, 0x79b0c3e, 0x7950c4d, 0xed70c47, 0x0, 0xc8307ce, 0xc8e07d9, 0xca207ed, 0x0, 0xd070842, 0xd1d0858, 0xd0d0848, 0xd2b086c, 0xd320873, 0xd49088a, 0xd380879, 0xd5d08a6, 0xd54089d, 0x0, 0xd7108ba, 0xd7808c1, 0xd7f08c8, 0xd9808e1, 0xd9b08e4, 0xdc4090d, 0xde9093f, 0xe0f0962, 0x979096e, 0x97f0e29, 0x60d0e2f, 0x8400614, 0xcae07f9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x8f00000, 0xda7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x613060c, 0x7360a67, 0xbb9073d, 0x7830780, 0x5b70c32, 0x70309f3, 0x7f00b5f, 0x8e70ca5, 0x8d60d9e, 0x8d20d8d, 0x8da0d89, 0x8ce0d91, 0xd85, 0x9e505a9, 0x9de05a2, 0xe630e5a, 0x0, 0xb0706a6, 0xba80728, 0xccc0817, 0xccf081a, 0xecc0e7b, 0x6090b76, 0xa640610, 0xaf80697, 0x0, 0xc3b0789, 0x9ef05b3, 0xe600e57, 0xe680e5d, 0x9f605ba, 0x9f905bd, 0xabc0661, 0xabf0664, 0xb620706, 0xb650709, 0xca807f3, 0xcab07f6, 0xd10084b, 0xd13084e, 0xda108ea, 0xda408ed, 0xd460887, 0xd5a08a3, 0x0, 0xb1f06c3, 0x0, 0x0, 0x0, 0x9db059f, 0xac9066e, 0xc9b07e6, 0xc7b07c6, 0xc9107dc, 0xc9407df, 0xe150968, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xe9a0b0d, 0xa11073e, 0xeb60eb4, 0xde10eb8, 0x695, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x12000f, 0x4b0024, 0x270006, 0x0, 0xa280e96, 0xb410840, 0xecf, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x4001a, 0x2b0000, 0x1d, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xed5, 0x0, 0x0, 0x54, 0x0, 0x546, 0x0, 0x0, 0x1c0003, 0x7410ee8, 0xf630f43, 0xfb4, 0xfed, 0x103c1016, 0x1185, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x101f0fbd, 0x10f5108f, 0x11751119, 0x1213, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x120c117e, 0x120311d5, 0x124b, 0x116e10ea, 0x10161011, 0x123c101f, 0x11ee, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x11f011ae, 0x11f8, 0x10f00fad, 0x0, 0x100d0000, 0x0, 0x0, 0x0, 0x12b612b0, 0x12ad0000, 0x0, 0x12a40000, 0x0, 0x0, 0x12c212ce, 0x12d7, 0x0, 0x0, 0x0, 0x0, 0x12c80000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x130a0000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x12f812f2, 0x12ef0000, 0x0, 0x132d0000, 0x0, 0x0, 0x13041310, 0x131b, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x13331330, 0x0, 0x0, 0x0, 0x0, 0x12b90000, 0x12fb, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x12e912a7, 0x12ec12aa, 0x0, 0x12f512b3, 0x0, 0x13391336, 0x12fe12bc, 0x130112bf, 0x0, 0x130712c5, 0x130d12cb, 0x131512d1, 0x0, 0x133f133c, 0x132a12e6, 0x131812d4, 0x131e12da, 0x132112dd, 0x132412e0, 0x0, 0x132712e3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x13420000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x13e913e6, 0x13ec178f, 0x17ca, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x13ef0000, 0x185b1792, 0x1811, 0x0, 0x0, 0x0, 0x186d, 0x1852, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x186a0000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18820000, 0x0, 0x0, 0x0, 0x188b0000, 0x0, 0x188e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18731870, 0x18791876, 0x187f187c, 0x18881885, 0x0, 0x0, 0x0, 0x0, 0x0, 0x189a0000, 0x189d, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18941891, 0x18970000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18ac0000, 0x0, 0x18af, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18a00000, 0x18a618a3, 0x0, 0x18a9, 0x0, 0x0, 0x0, 0x0, 0x18bb, 0x18b80000, 0x18be, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18b518b2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18c1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18ca18c4, 0x18c7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18cd, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18d0, 0x0, 0x0, 0x18da0000, 0x18dd, 0x18d618d3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18e618e0, 0x18e3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18e9, 0x18ef18ec, 0x18f3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18f60000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18ff0000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18fc18f9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1902, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x19070000, 0x0, 0x0, 0x0, 0x0, 0x190a0000, 0x0, 0x0, 0x190d, 0x0, 0x19100000, 0x0, 0x0, 0x1913, 0x0, 0x0, 0x0, 0x0, 0x0, 0x19040000, 0x0, 0x0, 0x0, 0x0, 0x19160000, 0x19190000, 0x19311935, 0x1938193c, 0x0, 0x0, 0x0, 0x191c0000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x19220000, 0x0, 0x0, 0x0, 0x0, 0x19250000, 0x0, 0x0, 0x1928, 0x0, 0x192b0000, 0x0, 0x0, 0x192e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x191f0000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x193f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1942, 0x0, 0x0, 0x0, 0x0, 0x1a38, 0x1a3b, 0x1a3e, 0x1a41, 0x1a44, 0x0, 0x1a47, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1a4a0000, 0x1a4d0000, 0x0, 0x1a531a50, 0x1a560000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xe550568, 0x5d5, 0x62905e6, 0x6870e75, 0x6cf06ac, 0x71a0607, 0x7230734, 0x77e, 0xe7e07a4, 0x82c06af, 0x56b088d, 0x6920770, 0xe840e82, 0x9371a59, 0xa7d0a2e, 0xe8e0e8c, 0x6020e90, 0xb790000, 0xe7105d3, 0xe880787, 0x1a5d1a5b, 0xba30cd3, 0x1a610a24, 0x86a0ea4, 0x10ea1a63, 0x10ee10ec, 0x123e123c, 0xa110ae0, 0x86a0a24, 0x10ec10ea, 0x123c11f0, 0x123e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1313, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xe860000, 0xe8a09a0, 0xe900e66, 0xe920ad9, 0xe980e94, 0xe9e0e9c, 0x1a650ea0, 0xea20ed1, 0xed31a67, 0xea60ea8, 0xeac0eaa, 0xeb00eae, 0xeba0eb2, 0xe790ebc, 0xec00ebe, 0xec21a5f, 0x6110ec4, 0xec80ec6, 0x116e0eca, 0xa0705cb, 0xa1305da, 0xa1605dd, 0xa1905e0, 0xa4a05fb, 0xa6b0617, 0xa71061d, 0xa7a0626, 0xa740620, 0xa770623, 0xaa5064a, 0xaa9064e, 0xad30678, 0xad6067b, 0xacc0671, 0xaef0684, 0xafe069d, 0xb1906bd, 0xb2206c6, 0xb1c06c0, 0xb2506c9, 0xb2806cc, 0xb6e0712, 0xb5806fc, 0xba50725, 0xbab072b, 0xbb10731, 0xbd20749, 0xbd5074c, 0xbdf0756, 0xbdc0753, 0xc120772, 0xc150775, 0xc180778, 0xc440792, 0xc4a0798, 0xc5307a1, 0xc50079e, 0xc7707c2, 0xc7f07ca, 0xc8607d1, 0xc8a07d5, 0xcec0835, 0xcef0838, 0xd0a0845, 0xd160851, 0xd190854, 0xd20085b, 0xd350876, 0xd3f0880, 0xd2e086f, 0xd3b087c, 0xd420883, 0xd4e089a, 0xd5708a0, 0xd6308ac, 0xd6008a9, 0xdc1090a, 0xdca0913, 0xdc70910, 0xd7408bd, 0xd7b08c4, 0xddb0924, 0xdde0927, 0xde30939, 0xde6093c, 0xdef0945, 0xdec0942, 0xdf50948, 0xe010954, 0xe040957, 0xe18096b, 0xe2c097c, 0xe350985, 0xe380988, 0xd510b2b, 0xe210df2, 0xd3509a6, 0x0, 0x0, 0x9fc05c0, 0x9e905ad, 0x9b6057a, 0x9b20576, 0x9be0582, 0x9ba057e, 0x9ff05c3, 0x9cf0593, 0x9cb058f, 0x9d7059b, 0x9d30597, 0xa0305c7, 0xac20667, 0xab6065b, 0xa9f0644, 0xa930638, 0xa8f0634, 0xa9b0640, 0xa97063c, 0xac5066a, 0xb5c0700, 0xb68070c, 0xcc50810, 0xc9f07ea, 0xc6807b3, 0xc6407af, 0xc7007bb, 0xc6c07b7, 0xcc80813, 0xcb50800, 0xcb107fc, 0xcbd0808, 0xcb90804, 0xcc1080c, 0xdbe0907, 0xd9508de, 0xdae08f7, 0xdaa08f3, 0xdb608ff, 0xdb208fb, 0xdba0903, 0xe09095c, 0xe240974, 0xe1e0971, 0xe120965, 0x0, 0x0, 0x0, 0x10be109c, 0x10c1109f, 0x10ca10a8, 0x10d310b1, 0xf130ef1, 0xf160ef4, 0xf1f0efd, 0xf280f06, 0x110310f8, 0x110610fb, 0x110a10ff, 0x0, 0xf510f46, 0xf540f49, 0xf580f4d, 0x0, 0x11421120, 0x11451123, 0x114e112c, 0x11571135, 0xf880f66, 0xf8b0f69, 0xf940f72, 0xf9d0f7b, 0x119c118d, 0x119f1190, 0x11a31194, 0x11a71198, 0xfcf0fc0, 0xfd20fc3, 0xfd60fc7, 0xfda0fcb, 0x11e311d8, 0x11e611db, 0x11ea11df, 0x0, 0xffb0ff0, 0xffe0ff3, 0x10020ff7, 0x0, 0x122a121b, 0x122d121e, 0x12311222, 0x12351226, 0x10220000, 0x10250000, 0x10290000, 0x102d0000, 0x12741252, 0x12771255, 0x1280125e, 0x12891267, 0x1061103f, 0x10641042, 0x106d104b, 0x10761054, 0x108f1088, 0x10f510f2, 0x11191112, 0x11751172, 0x11d511d2, 0x12031200, 0x124b1244, 0x0, 0x10dc10ba, 0x10c510a3, 0x10ce10ac, 0x10d710b5, 0xf310f0f, 0xf1a0ef8, 0xf230f01, 0xf2c0f0a, 0x1160113e, 0x11491127, 0x11521130, 0x115b1139, 0xfa60f84, 0xf8f0f6d, 0xf980f76, 0xfa10f7f, 0x12921270, 0x127b1259, 0x12841262, 0x128d126b, 0x107f105d, 0x10681046, 0x1071104f, 0x107a1058, 0x10961099, 0x10e7108b, 0x1092, 0x10e310e0, 0xeeb0eee, 0xee80ee5, 0x2a0f35, 0x2a1170, 0x200051, 0x116b1115, 0x111c, 0x11671164, 0xf430f40, 0xf630f60, 0x2d0faa, 0x350031, 0x1178117b, 0x11851181, 0x0, 0x118911ab, 0xfb70fba, 0xfb40fb1, 0x3c0000, 0x440040, 0x12061209, 0x1213120f, 0x11f511f2, 0x12171239, 0x1019101c, 0x10161013, 0x18100a, 0x995001c, 0x0, 0x129d1247, 0x124e, 0x12991296, 0xfed0fea, 0x103c1039, 0x31083, 0x39, 0x10001, 0x10001, 0x10001, 0x10001, 0x10001, 0x1, 0x0, 0x0, 0x1a690000, 0x0, 0x0, 0x4e0000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2fc02fa, 0x2ff, 0x0, 0x0, 0x0, 0x10000, 0x0, 0x1a6f0000, 0x1a72, 0x1a7e1a7b, 0x0, 0x0, 0x8f, 0xc, 0x0, 0x0, 0x0, 0x5630000, 0x920560, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1a760000, 0x0, 0x0, 0x0, 0x10000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xae00305, 0x0, 0x3740365, 0x3920383, 0x3b003a1, 0x1aad02f4, 0xa10544, 0xb3b00a5, 0x3140305, 0x30f0343, 0x3740365, 0x3920383, 0x3b003a1, 0x1aad02f4, 0xa10544, 0xa5, 0xa7d0692, 0xb410787, 0xb0d0e8c, 0xa280b79, 0xb3b05d3, 0x8400cd3, 0xba3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x83f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x9a2099e, 0xe4d05e3, 0xa1e0000, 0xe770a22, 0xe500000, 0x6ac0602, 0x6ac06ac, 0xe6d0b0d, 0x6cf06cf, 0xa280734, 0x77e0000, 0x786, 0x6af0000, 0x82c083b, 0x82c082c, 0x0, 0x88f0863, 0x897, 0x60a, 0x77c, 0x60a, 0x5b0071a, 0x5e305d5, 0xa7d0000, 0x67e0629, 0x7230000, 0x13540787, 0x136a1362, 0xae0136f, 0x6800000, 0x10ec11ee, 0x10060f3a, 0x1aab, 0x0, 0x5e60000, 0xa7d0a2e, 0x73e0ae0, 0x0, 0x0, 0x0, 0x3e203da, 0x3ca03c1, 0x3d20455, 0x4980459, 0x3d604cf, 0x3de04e7, 0x4eb049c, 0x3be0511, 0x6d106cf, 0x6de06d4, 0x91806b2, 0x91f091b, 0x68206e1, 0x950094d, 0x5e30734, 0x72305e6, 0xb300ae0, 0xb3d0b33, 0xdcf086a, 0xdd60dd2, 0xb410b40, 0xdfd0dfa, 0x9a00a28, 0x5d30a2e, 0x0, 0x0, 0x0, 0x0, 0x30d0000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1a8d1a86, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1a92, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1a950000, 0x1a981a9b, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1aa0, 0x0, 0x1aa50000, 0x0, 0x1aa8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1aaf, 0x1ab2, 0x0, 0x0, 0x1ab81ab5, 0x1ac10000, 0x1ac4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1ac80000, 0x0, 0x1acb, 0x1ace0000, 0x1ad10000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x556, 0x1ad7, 0x0, 0x0, 0x0, 0x0, 0x1ad40000, 0x55b054a, 0x1add1ada, 0x0, 0x1ae31ae0, 0x0, 0x1ae91ae6, 0x0, 0x0, 0x0, 0x1aef1aec, 0x0, 0x1afb1af8, 0x0, 0x1b011afe, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1b0d1b0a, 0x1b131b10, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1af51af2, 0x1b071b04, 0x0, 0x0, 0x0, 0x1b191b16, 0x1b1f1b1c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1b350000, 0x1b37, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3430314, 0x365030f, 0x3830374, 0x3a10392, 0x31c03b0, 0x342032f, 0x3640355, 0x3820373, 0x3a00391, 0x3f703af, 0xd900a3, 0xe600e2, 0xee00ea, 0xf600f2, 0xa700fa, 0xb100ac, 0xbb00b6, 0xc500c0, 0xcf00ca, 0xdd00d4, 0x3460319, 0x3680359, 0x3860377, 0x3a40395, 0x31f03b3, 0x3450332, 0x3670358, 0x3850376, 0x3a30394, 0x3fa03b2, 0x16a0166, 0x172016e, 0x17a0176, 0x182017e, 0x18a0186, 0x192018e, 0x19a0196, 0x1a2019e, 0x1aa01a6, 0x1b201ae, 0x1ba01b6, 0x1c201be, 0x1ca01c6, 0x5d50568, 0x5e605e3, 0x67e0629, 0x6ac0687, 0x60706cf, 0x734071a, 0x77e0723, 0x6af07a4, 0x82c083b, 0x88d085e, 0x6b2056b, 0x6820770, 0x60a095a, 0x9370692, 0xa2e09a0, 0xad90a7d, 0xb0d0602, 0x73e0ae0, 0xa280b79, 0xb3b05d3, 0xcd30787, 0xa1105d8, 0xba30840, 0x86a0a24, 0xb410de1, 0x6110695, 0x305, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1abc, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x54f0542, 0x552, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1b2c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x6b2073e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1b2f0000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x227c0000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x26b00000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1efb1ee9, 0x1f091f01, 0x1f131f0d, 0x1f1b1f17, 0x1f4b1f21, 0x1f5f1f57, 0x1f6f1f67, 0x1f871f77, 0x1f8b1f89, 0x1fb91fa5, 0x1fc51fc1, 0x1fcd1fc7, 0x1fdd1fdb, 0x1feb1fe9, 0x1ff71fef, 0x204f2045, 0x2079206f, 0x207f207d, 0x20982087, 0x20b420ae, 0x20ca20c4, 0x20ce20cc, 0x20dc20da, 0x20f820f2, 0x210020fc, 0x210f2108, 0x21292113, 0x212f212b, 0x21352131, 0x21412139, 0x218b214f, 0x21972195, 0x21d921d7, 0x21e521e3, 0x21ed21e9, 0x32521f1, 0x3292211, 0x22602223, 0x226e2266, 0x227a2274, 0x2280227e, 0x22842282, 0x22e22286, 0x230c2306, 0x2310230e, 0x23162312, 0x23222318, 0x23342330, 0x23562354, 0x235c235a, 0x23622360, 0x23762374, 0x23862384, 0x238a2388, 0x23a62394, 0x23aa23a8, 0x23dc23bc, 0x23ee23de, 0x23fa23f6, 0x241c240a, 0x2442243e, 0x2452244c, 0x245a2456, 0x245e245c, 0x246c246a, 0x247e247a, 0x24842482, 0x248e248a, 0x24922490, 0x24982496, 0x24f224e8, 0x250e250c, 0x25282512, 0x2530252c, 0x25522534, 0x25582554, 0x255c255a, 0x25742572, 0x25822578, 0x25922584, 0x25982596, 0x25ba25aa, 0x25c425c2, 0x25de25c8, 0x25e825e0, 0x260025fa, 0x26142608, 0x261a2618, 0x261e261c, 0x26262624, 0x2638262a, 0x263c263a, 0x264a2648, 0x2658264e, 0x265c265a, 0x26622660, 0x26662664, 0x26702668, 0x267e267c, 0x26862684, 0x268a2688, 0x2690268e, 0x26982692, 0x26a0269c, 0x26a626a2, 0x26aa26a8, 0x26b226ae, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1b49, 0x1fcf1fcd, 0x1fd1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1b7e, 0x1b81, 0x1b84, 0x1b87, 0x1b8a, 0x1b8d, 0x1b90, 0x1b93, 0x1b96, 0x1b99, 0x1b9c, 0x1b9f, 0x1ba20000, 0x1ba50000, 0x1ba80000, 0x0, 0x0, 0x0, 0x1bae1bab, 0x1bb10000, 0x1bb4, 0x1bba1bb7, 0x1bbd0000, 0x1bc0, 0x1bc91bc6, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1b7b, 0x0, 0x0, 0x870000, 0x8a, 0x1bcc1bd3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1c26, 0x1c43, 0x1bf6, 0x1c92, 0x1c9b, 0x1caf, 0x1cbf, 0x1cca, 0x1ccf, 0x1cdc, 0x1ce1, 0x1ceb, 0x1cf20000, 0x1cf70000, 0x1c100000, 0x0, 0x0, 0x0, 0x1d261d1d, 0x1d3b0000, 0x1d42, 0x1d611d57, 0x1d760000, 0x1d7e, 0x1caa1da1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1c01, 0x1e440000, 0x1e521e4d, 0x1e57, 0x0, 0x1ca11e60, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x19440000, 0x1a101949, 0x1a12194b, 0x19501a14, 0x19571955, 0x1a181a16, 0x1a1c1a1a, 0x1a201a1e, 0x195c19a6, 0x19661961, 0x196819b0, 0x196f196d, 0x19811977, 0x198e1983, 0x19981993, 0x1947199d, 0x19da19d8, 0x19de19dc, 0x19e219e0, 0x198c19e4, 0x19ea19e8, 0x19ee19ec, 0x19f21975, 0x19f619f4, 0x19fa19f8, 0x19fe197f, 0x19a219d4, 0x1a2219a4, 0x1a261a24, 0x1a2a1a28, 0x1a2e1a2c, 0x1a3019a8, 0x19aa1a32, 0x19ae19ac, 0x19b419b2, 0x19b819b6, 0x19bc19ba, 0x19c019be, 0x19c419c2, 0x19c819c6, 0x19cc19ca, 0x1a361a34, 0x19d019ce, 0x1a0019d2, 0x1a041a02, 0x1a081a06, 0x1a0c1a0a, 0x1a0e, 0x0, 0x1f171ee9, 0x20471eef, 0x1efd1ef1, 0x23641ef3, 0x1ef71f0d, 0x208c1eeb, 0x1f212051, 0x1d701ce, 0x1e901e0, 0x1fb01f2, 0x20d0204, 0x2330225, 0x245023c, 0x257024e, 0x1db01d2, 0x1ed01e4, 0x1ff01f6, 0x2110208, 0x2370229, 0x2490240, 0x25b0252, 0x216022e, 0x21e, 0x2700260, 0x2a00268, 0x2880274, 0x2840264, 0x290026c, 0x2c402b0, 0x2b802c0, 0x2a402ec, 0x2bc02ac, 0x2d002b4, 0x2c80298, 0x2d402e4, 0x278028c, 0x2a8029c, 0x27c02cc, 0x29402e8, 0x28002d8, 0x2e002dc, 0x21112021, 0x23fe21e3, 0x0, 0x0, 0x0, 0x0, 0x406082e, 0x41c0411, 0x4320427, 0x4400439, 0x44e0447, 0x475046e, 0x47f047c, 0x4850482, 0x194b1944, 0x19571950, 0x1961195c, 0x196f1968, 0x19831977, 0x1993198e, 0x199d1998, 0x194d1946, 0x19591952, 0x1963195e, 0x1971196a, 0x19851979, 0x19951990, 0x199f199a, 0x197c1988, 0x1974, 0x1f171ee9, 0x20471eef, 0x1f611f19, 0x1f5f1eed, 0x1fcd1f0f, 0x22e20329, 0x22232286, 0x204f25c8, 0x223b0325, 0x2240221b, 0x231c2007, 0x23ca255e, 0x23e21fab, 0x20982368, 0x1f4925a2, 0x22961fdf, 0x1f2b262c, 0x208a1f73, 0x1efd1ef1, 0x20fa1ef3, 0x1fc92001, 0x20b220b8, 0x1f292390, 0x1fd72568, 0x4882083, 0x48e048b, 0x4b10491, 0x4b704b4, 0x4bd04ba, 0x4c304c0, 0x4c904c6, 0x4e404cc, 0x34e033b, 0x4d604a3, 0x50304f2, 0x5290518, 0x327053a, 0x34d033a, 0xa8206b4, 0x7390a7f, 0x1bf11bd8, 0x1c0a1bff, 0x1c241c1a, 0x1c731c41, 0x1c991c90, 0x1cbd1cad, 0x1ccd1c1e, 0x1cdf1cda, 0x1cf01bfb, 0x1bde1cf5, 0x1d0f1ca6, 0x1c8e1d11, 0x1d1b1d0d, 0x1d551d39, 0x1d9f1d74, 0x1ddc1c31, 0x1def1c22, 0x1e041e00, 0x1e191e11, 0x1c351e1b, 0x1e341bed, 0x1e421c5d, 0x1e501e4b, 0x1e55, 0x1be01bda, 0x1beb1be5, 0x1bf91bf3, 0x1c0c1c04, 0x1c1c1c13, 0x1c331c20, 0x1c3c1c37, 0x1c2e1c29, 0x1c4b1c46, 0x1c501c57, 0x1c5f1c5c, 0x1c6d1c66, 0x1c7d1c61, 0x1c8b1c84, 0x1ca41c95, 0x1cb21ca8, 0x1cc21cb7, 0x1cd61cd2, 0x1cfa1ce4, 0x1c811d03, 0x1d171d0c, 0x1d291d35, 0x1d201d30, 0x1d4c1d45, 0x1d3e1d51, 0x1d6b1d64, 0x1d701d5a, 0x1d811d95, 0x1d9b1d85, 0x1d8f1d8a, 0x1dac1d79, 0x1db81da4, 0x1dbb1db2, 0x1dc51dbf, 0x1dce1dca, 0x1dd61dd2, 0x1de31dde, 0x1df11de6, 0x1c681df5, 0x1e0b1e06, 0x1e1f1e13, 0x1e291e24, 0x1e361e2e, 0x1c6f1e39, 0x33f0311, 0x3610352, 0x37f0370, 0x39d038e, 0x3bb03ac, 0x33e032b, 0x3600351, 0x37e036f, 0x39c038d, 0x3ba03ab, 0x40d0402, 0x4230418, 0xb0f042e, 0x56a0a53, 0xc580a0f, 0xa590ce6, 0xa600a5c, 0x210a06db, 0x20892200, 0x223d21f9, 0xc260cda, 0xbea11b4, 0x71c0b7b, 0x689075b, 0xb8c0a26, 0xc290cdd, 0x11c011b7, 0x6010bf6, 0xb7e068d, 0x68c0764, 0x11c30893, 0xa560bfd, 0xaec0b94, 0x11c60c35, 0xa300c00, 0xc030b97, 0xa340a33, 0xc070b9a, 0xa380a37, 0xc1b0b9e, 0x6910c1f, 0x7680b82, 0xcf60690, 0xd000cfa, 0xc380ce9, 0xc0f11c9, 0xc2c0ce0, 0xbed11ba, 0x76c0b86, 0xc2f0ce3, 0xbf011bd, 0x76f0b89, 0x77b0bb4, 0x5d70999, 0xa2d0a2a, 0x5e805ff, 0x6940a50, 0x6ae0b13, 0x71f0b3a, 0xba20722, 0xbbf0bbc, 0xbc60bc2, 0xbf90bf3, 0x8200c0b, 0x8230cd5, 0xd25082b, 0x9360869, 0x5d1092a, 0x34a0337, 0x36c035d, 0x38a037b, 0x3a80399, 0x32303b7, 0x3490336, 0x36b035c, 0x389037a, 0x3a70398, 0x3fe03b6, 0x4140409, 0x42a041f, 0x43c0435, 0x44a0443, 0x4710451, 0xaf40478, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x26b4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xe730e6b, 0x0, 0x0, 0x0, 0x22132556, 0x256a2584, 0x1eff22c6, 0x26ae1ff9, 0x209226ae, 0x202b25c8, 0x21872090, 0x244a2382, 0x250424e6, 0x25a8251e, 0x229a2254, 0x233c22f0, 0x25bc24ca, 0x1f112652, 0x225e1fe3, 0x24e42302, 0x20e6267a, 0x24dc22d6, 0x21a12526, 0x250a2478, 0x221d211f, 0x232822a6, 0x1f3125ae, 0x1fb31f7d, 0x225a21d5, 0x23922300, 0x24e02456, 0x257e24ec, 0x266a2610, 0x23b02678, 0x242c23d0, 0x25d624bc, 0x2540267e, 0x212d206d, 0x24682408, 0x23b4231a, 0x260c2566, 0x20d4206b, 0x22b02256, 0x242422ca, 0x25ec2438, 0x246e1fb1, 0x1f811f83, 0x242e23e6, 0x25f024c8, 0x21a3254e, 0x25462254, 0x20be1f05, 0x23322159, 0x1fc32372, 0x1f3923b8, 0x1ef5214b, 0x21e12290, 0x1fed2422, 0x23982063, 0x253824cc, 0x25962276, 0x21ab228c, 0x21bb24a8, 0x1f1f2370, 0x1f7f1f5d, 0x24182244, 0x253e2494, 0x1fb725c6, 0x20982011, 0x21ef2127, 0x23ba22d8, 0x265625e4, 0x268c2680, 0x220f1fa5, 0x2590226c, 0x217b210d, 0x21d12189, 0x22f622d0, 0x23e0234e, 0x24642432, 0x24d02588, 0x25d8259c, 0x1fa71f91, 0x22ee201b, 0x25382514, 0x2155211d, 0x227221b7, 0x232c2406, 0x20491f27, 0x20f020be, 0x233a215b, 0x24502348, 0x25ca2460, 0x2612260a, 0x1f332630, 0x25c023da, 0x216725fe, 0x1f451f15, 0x20d020c0, 0x225421e7, 0x238022fc, 0x25a624d6, 0x220726aa, 0x1fa325ea, 0x2233222d, 0x22be22a2, 0x236e2340, 0x242023ae, 0x1f612636, 0x25f22191, 0x20e21f3d, 0x258a22b2, 0x216b2143, 0x23322237, 0x1f9525f6, 0x20d82009, 0x222521fc, 0x2294224a, 0x2378233e, 0x25162446, 0x25c4251c, 0x1fcb2604, 0x200b22c0, 0x235022fe, 0x25f824de, 0x2682266e, 0x22ae2231, 0x23f6247c, 0x240e23fc, 0x22ea2326, 0x1f23254c, 0x1f9724b0, 0x21151f8f, 0x241421a5, 0x229c20b6, 0x258e220d, 0x25ee250e, 0x2123252c, 0x20371f4d, 0x0, 0x2061, 0x2205, 0x1f850000, 0x238c232a, 0x23cc23be, 0x23d823ce, 0x24102616, 0x2452, 0x24e2, 0x2544, 0x259e0000, 0x25b4, 0x0, 0x26422640, 0x26762644, 0x25fc25b0, 0x1f471f35, 0x1faf1f51, 0x1fd51fb5, 0x203d202f, 0x205f2041, 0x20d62065, 0x216120da, 0x21792175, 0x21db2185, 0x220921f3, 0x22a82246, 0x22ce22b6, 0x230822f8, 0x23b22342, 0x23c42240, 0x23c623c2, 0x23ca23c8, 0x23d623d4, 0x23f223e8, 0x24322400, 0x243a2436, 0x24582444, 0x249a2480, 0x24ce249a, 0x252e2522, 0x254a2548, 0x256e256c, 0x259e259a, 0x26282606, 0x215d2634, 0x248c274b, 0x0, 0x1f7b1ef9, 0x1f2f1f5b, 0x1f651f4f, 0x1fbb1fad, 0x2025202f, 0x203b202d, 0x20692061, 0x2094208e, 0x20aa20a2, 0x21252121, 0x214d213d, 0x21712165, 0x21792169, 0x21852173, 0x21bf2193, 0x21c921c5, 0x220521dd, 0x221f221d, 0x226e2229, 0x22a22276, 0x22c422c8, 0x22dc22ce, 0x23a422f8, 0x2324230a, 0x234a232a, 0x236a2358, 0x237e237c, 0x238e238c, 0x23a02396, 0x23b6239e, 0x240023f4, 0x2428240c, 0x24402432, 0x24b22458, 0x250024c6, 0x252a2524, 0x253a252e, 0x253c2544, 0x25462548, 0x254a2542, 0x256e2550, 0x25a4258c, 0x25ce25be, 0x260625f4, 0x26202616, 0x262e2628, 0x265e2634, 0x272126ae, 0x2733271f, 0x1ea11e8d, 0x27671ea3, 0x27a92779, 0x26ac26a4, 0x0, 0x0, 0x0, 0xadf0adb, 0xade0ae3, 0xd280ae2, 0xd28, 0x0, 0x0, 0x0, 0x0, 0x0, 0x134e0000, 0x13481345, 0x134b1351, 0x0, 0x0, 0x13850000, 0x13d20000, 0x135413a6, 0x1374136f, 0x1360138e, 0x13b7139b, 0x2f413cd, 0x13ca13c7, 0x13c313bf, 0x13591356, 0x1364135c, 0x1371136c, 0x137c1376, 0x137f, 0x13881382, 0x1390138b, 0x1398, 0x139d, 0x13a313a0, 0x13a80000, 0x13ab, 0x13b413b1, 0x13bc13b9, 0x137913cf, 0x13931367, 0x135f13ae, 0x18181818, 0x181e181e, 0x181e181e, 0x18201820, 0x18201820, 0x18241824, 0x18241824, 0x181c181c, 0x181c181c, 0x18221822, 0x18221822, 0x181a181a, 0x181a181a, 0x183c183c, 0x183c183c, 0x183e183e, 0x183e183e, 0x18281828, 0x18281828, 0x18261826, 0x18261826, 0x182a182a, 0x182a182a, 0x182c182c, 0x182c182c, 0x18321832, 0x18301830, 0x18341834, 0x182e182e, 0x18381838, 0x18361836, 0x18401840, 0x18401840, 0x18441844, 0x18441844, 0x18481848, 0x18481848, 0x18461846, 0x18461846, 0x184a184a, 0x184c184c, 0x184c184c, 0x186d186d, 0x18501850, 0x18501850, 0x184e184e, 0x184e184e, 0x15911591, 0x186a186a, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x18420000, 0x18421842, 0x18031842, 0x17ff1803, 0x180717ff, 0x185b1807, 0x18621862, 0x18551855, 0x18601860, 0x180b180b, 0x180b180b, 0x14151415, 0x17cd17cd, 0x180d180d, 0x17f117f1, 0x18011801, 0x17fd17fd, 0x18051805, 0x18091809, 0x17f51809, 0x17f517f5, 0x18641864, 0x18641864, 0x17d517d1, 0x17f517e5, 0x13f417f9, 0x13fe13f7, 0x1414140b, 0x141e1417, 0x1438142d, 0x146a144d, 0x1472146d, 0x1484147b, 0x148c1487, 0x14311422, 0x14d11435, 0x143c14d4, 0x150514fa, 0x151a150c, 0x15931562, 0x15a515a2, 0x15ba15b0, 0x15c815c5, 0x15e415df, 0x16071575, 0x163f160a, 0x16451642, 0x1653164c, 0x165b1656, 0x16711662, 0x16791674, 0x167f167c, 0x16851682, 0x16931688, 0x16aa1696, 0x16c816b9, 0x1579158c, 0x145116e0, 0x14591455, 0x145d1526, 0x172d1461, 0x174f1740, 0x17691758, 0x1771176c, 0x177f1774, 0x179c1782, 0x17aa17a3, 0x17c417b3, 0x14e417c7, 0x179714ee, 0x64005d, 0x72006b, 0x800079, 0x17e117dd, 0x17e917e5, 0x17f917f5, 0x140813db, 0x140e140b, 0x14171414, 0x144a1447, 0x1464144d, 0x146d146a, 0x14781475, 0x147e147b, 0x14871484, 0x16561653, 0x16741671, 0x16851679, 0x16931688, 0x158c1696, 0x16e01579, 0x152616e5, 0x17551752, 0x17631758, 0x176c1769, 0x17ad1797, 0x17b317b0, 0x17c417be, 0x17d117c7, 0x17d917d5, 0x17ed17e5, 0x13f713f4, 0x140b13fe, 0x141e1411, 0x1438142d, 0x1467144d, 0x148c147b, 0x14311422, 0x14d11435, 0x14fa143c, 0x150c1505, 0x1562151a, 0x1593156d, 0x15a515a2, 0x15ba15b0, 0x15df15c5, 0x157515e4, 0x160a1607, 0x1642163f, 0x164c1645, 0x1662165b, 0x167f167c, 0x16851682, 0x16aa1688, 0x16c816b9, 0x13e0158c, 0x14551451, 0x15261459, 0x1740172d, 0x1758174f, 0x17711766, 0x17851774, 0x17a3179c, 0x17b317aa, 0x17e515ed, 0x140b17ed, 0x144d1411, 0x147b1467, 0x151a1481, 0x154c1529, 0x16851557, 0x158c1688, 0x17661758, 0x15ed17b3, 0x162c1625, 0x15d71633, 0x15ff15da, 0x16191602, 0x152c161c, 0x155a152f, 0x1490155d, 0x142613fb, 0x1440142a, 0x159a1402, 0x15bd159d, 0x153415c0, 0x1546153b, 0x1549154c, 0x15701517, 0x15d715b7, 0x15ff15da, 0x16191602, 0x152c161c, 0x155a152f, 0x1490155d, 0x142613fb, 0x1440142a, 0x159a1402, 0x15bd159d, 0x153415c0, 0x1546153b, 0x1549154c, 0x15701517, 0x153415b7, 0x1546153b, 0x1529154c, 0x15c81557, 0x150514fa, 0x1534150c, 0x1546153b, 0x15df15c8, 0x13e313e3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x14301421, 0x14341430, 0x1450143b, 0x14581454, 0x14a314a3, 0x14c114c5, 0x14fd1508, 0x15211501, 0x151d1521, 0x15251525, 0x15651565, 0x153e1596, 0x1537153e, 0x154f154f, 0x15531553, 0x15b315a8, 0x15cb15b3, 0x15cf15cb, 0x15e715d3, 0x15f315f3, 0x160d15f7, 0x16111615, 0x16481648, 0x16691665, 0x16c416bc, 0x16ad16c0, 0x16cb16ad, 0x16d216cb, 0x16fe16d2, 0x170b1702, 0x16f316eb, 0x17161712, 0x0, 0x177716ef, 0x1743177b, 0x17341747, 0x17381734, 0x175b175f, 0x17b617b6, 0x14291401, 0x14431425, 0x1460143f, 0x14ab145c, 0x14a7148f, 0x1569150f, 0x15ac1542, 0x16d616b5, 0x179f17a6, 0x172117ba, 0x174b166d, 0x16bc1665, 0x168f15fb, 0x171a1730, 0x168b16b1, 0x173016b1, 0x14ba1493, 0x164f16f7, 0x168b13fa, 0x159615e7, 0x173c1513, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x165e158f, 0x13d913de, 0x15731706, 0x15eb14e9, 0x1578158a, 0x1497157c, 0x14f1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1b3102f6, 0x5401b33, 0x8d0546, 0x1b770093, 0x2ff1b79, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1a6d02fc, 0x9931a6b, 0xa10993, 0xe3b00a5, 0x1b4b0e3f, 0x1b451b4f, 0x1b391b47, 0x1b351b3b, 0x1b3d1b37, 0x1b411b3f, 0x1b43, 0x98b0000, 0xc098f, 0xc000c, 0x993000c, 0x9930993, 0x1b3102f6, 0x2fa, 0x5400546, 0x8d0093, 0xa11a6d, 0xe3b00a5, 0x1b4b0e3f, 0x971b4f, 0x2f2009d, 0x2f802f4, 0x5590548, 0x544, 0x99098d, 0x566009b, 0x0, 0x0, 0x161f0057, 0x5a, 0x61, 0x16220068, 0x1629006f, 0x16300076, 0x1637007d, 0x163a0084, 0x13e613d5, 0x13e913e6, 0x178f13e9, 0x13ec178f, 0x17ca13ec, 0x17ca17ca, 0x13d717ca, 0x13f213d7, 0x13f213f2, 0x141a13f2, 0x141c141a, 0x141c141c, 0x1470141c, 0x14701470, 0x13f51470, 0x13f513f5, 0x13f813f5, 0x13f813f8, 0x13ff13f8, 0x13ff13ff, 0x14e013ff, 0x14e214e0, 0x13dc14e2, 0x140913dc, 0x14f81409, 0x14f814f8, 0x153214f8, 0x15321532, 0x15601532, 0x15601560, 0x15a01560, 0x15a015a0, 0x15c315a0, 0x15c315c3, 0x15dd15c3, 0x15dd15dd, 0x15e215dd, 0x15e215e2, 0x160515e2, 0x16051605, 0x163d1605, 0x163d163d, 0x1659163d, 0x16591659, 0x16771659, 0x16771677, 0x14ec1677, 0x14ec14ec, 0x140c14ec, 0x140c140c, 0x140f140c, 0x140f140f, 0x13e1140f, 0x13e113e1, 0x178813e1, 0x14151788, 0x13fc1415, 0x13fc13fc, 0x169e13fc, 0x16a2169e, 0x16a616a2, 0x169b16a6, 0x169b, 0x0, 0x8d0000, 0x970095, 0x9b0099, 0x9f009d, 0xa500a1, 0x2f402f2, 0x2f802f6, 0x30302fa, 0x3140305, 0x30f0343, 0x3740365, 0x3920383, 0x3b003a1, 0x5460540, 0x5440548, 0x930559, 0x5680566, 0x5e305d5, 0x62905e6, 0x687067e, 0x6cf06ac, 0x71a0607, 0x7230734, 0x7a4077e, 0x83b06af, 0x85e082c, 0x56b088d, 0x77006b2, 0x95a0682, 0x98b060a, 0x98f098d, 0x9930991, 0x6920995, 0x9a00937, 0xa7d0a2e, 0x6020ad9, 0xae00b0d, 0xb79073e, 0x5d30a28, 0x7870b3b, 0x5d80cd3, 0x8400a11, 0xa240ba3, 0xde1086a, 0x6950b41, 0xe3b0611, 0xe3f0e3d, 0x1b280e41, 0x1b331b2a, 0x1b3f1b3d, 0x1e5c1b31, 0x1bd61e55, 0x1bfd1bef, 0x1c181c08, 0x1e0f1e02, 0x1cee1e17, 0x1bd81c16, 0x1bff1bf1, 0x1c1a1c0a, 0x1c411c24, 0x1c901c73, 0x1cad1c99, 0x1c1e1cbd, 0x1cda1ccd, 0x1bfb1cdf, 0x1cf51cf0, 0x1ca61bde, 0x1d111d0f, 0x1d0d1c8e, 0x1d391d1b, 0x1d741d55, 0x1c311d9f, 0x1c221ddc, 0x1e001def, 0x1e111e04, 0x1e1b1e19, 0x1bed1c35, 0x1c5d1e34, 0x1c061e42, 0x8b0088, 0x194419d4, 0x1a101949, 0x1a12194b, 0x19501a14, 0x19571955, 0x1a181a16, 0x1a1c1a1a, 0x1a201a1e, 0x195c19a6, 0x19661961, 0x196819b0, 0x196f196d, 0x19811977, 0x198e1983, 0x19981993, 0x199d, 0x0, 0x19d81947, 0x19dc19da, 0x19e019de, 0x0, 0x19e419e2, 0x19e8198c, 0x19ec19ea, 0x0, 0x197519ee, 0x19f419f2, 0x19f819f6, 0x0, 0x197f19fa, 0x19fe, 0x0, 0xe450e43, 0x90e4b, 0xe470e49, 0x1a82, 0x1a841b22, 0x1a8b1a89, 0x1b241a90, 0x1b26, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x26b6, 0x26b9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x26bc0000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x26c226bf, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x26c826c5, 0x26cf26cb, 0x26d726d3, 0x26db, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x26df0000, 0x26e226ea, 0x26e626ed, 0x26f1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x5d50568, 0x5e605e3, 0x67e0629, 0x6ac0687, 0x60706cf, 0x734071a, 0x77e0723, 0x6af07a4, 0x82c083b, 0x88d085e, 0x6b2056b, 0x6820770, 0x60a095a, 0x9370692, 0xa2e09a0, 0xad90a7d, 0xb0d0602, 0x73e0ae0, 0xa280b79, 0xb3b05d3, 0xcd30787, 0xa1105d8, 0xba30840, 0x86a0a24, 0xb410de1, 0x6110695, 0x5d50568, 0x5e605e3, 0x67e0629, 0x6ac0687, 0x60706cf, 0x734071a, 0x77e0723, 0x6af07a4, 0x82c083b, 0x88d085e, 0x6b2056b, 0x6820770, 0x60a095a, 0x9370692, 0xa2e09a0, 0xad90a7d, 0x602, 0x73e0ae0, 0xa280b79, 0xb3b05d3, 0xcd30787, 0xa1105d8, 0xba30840, 0x86a0a24, 0xb410de1, 0x6110695, 0x5d50568, 0x5e605e3, 0x67e0629, 0x6ac0687, 0x60706cf, 0x734071a, 0x77e0723, 0x6af07a4, 0x82c083b, 0x88d085e, 0x6b2056b, 0x6820770, 0x60a095a, 0x9370692, 0xa2e09a0, 0xad90a7d, 0xb0d0602, 0x73e0ae0, 0xa280b79, 0xb3b05d3, 0xcd30787, 0xa1105d8, 0xba30840, 0x86a0a24, 0xb410de1, 0x6110695, 0x568, 0x5e605e3, 0x0, 0x687, 0x6070000, 0x71a, 0x77e0000, 0x6af07a4, 0x83b, 0x88d085e, 0x6b2056b, 0x6820770, 0x60a095a, 0x9370692, 0xa2e09a0, 0xad90000, 0xb0d0000, 0x73e0ae0, 0xa280b79, 0xb3b05d3, 0xcd30000, 0xa1105d8, 0xba30840, 0x86a0a24, 0xb410de1, 0x6110695, 0x5d50568, 0x5e605e3, 0x67e0629, 0x6ac0687, 0x60706cf, 0x734071a, 0x77e0723, 0x6af07a4, 0x82c083b, 0x88d085e, 0x6b2056b, 0x6820770, 0x60a095a, 0x9370692, 0xa2e09a0, 0xad90a7d, 0xb0d0602, 0x73e0ae0, 0xa280b79, 0xb3b05d3, 0xcd30787, 0xa1105d8, 0xba30840, 0x86a0a24, 0xb410de1, 0x6110695, 0x5d50568, 0x5e60000, 0x67e0629, 0x687, 0x6070000, 0x734071a, 0x77e0723, 0x6af07a4, 0x83b, 0x88d085e, 0x6b2056b, 0x6820770, 0x95a, 0x9370692, 0xa2e09a0, 0xad90a7d, 0xb0d0602, 0x73e0ae0, 0xa280b79, 0xb3b05d3, 0xcd30787, 0xa1105d8, 0xba30840, 0x86a0a24, 0xb410de1, 0x6110695, 0x5d50568, 0x5e60000, 0x67e0629, 0x687, 0x60706cf, 0x734071a, 0x723, 0x7a4, 0x0, 0x88d085e, 0x6b2056b, 0x6820770, 0x95a, 0x9370692, 0xa2e09a0, 0xad90a7d, 0xb0d0602, 0x73e0ae0, 0xa280b79, 0xb3b05d3, 0xcd30787, 0xa1105d8, 0xba30840, 0x86a0a24, 0xb410de1, 0x6110695, 0x5d50568, 0x5e605e3, 0x67e0629, 0x6ac0687, 0x60706cf, 0x734071a, 0x77e0723, 0x6af07a4, 0x82c083b, 0x88d085e, 0x6b2056b, 0x6820770, 0x60a095a, 0x9370692, 0xa2e09a0, 0xad90a7d, 0xb0d0602, 0x73e0ae0, 0xa280b79, 0xb3b05d3, 0xcd30787, 0xa1105d8, 0xba30840, 0x86a0a24, 0xb410de1, 0x6110695, 0x77e0723, 0x6af07a4, 0x82c083b, 0x88d085e, 0x6b2056b, 0x6820770, 0x60a095a, 0x9370692, 0xa2e09a0, 0xad90a7d, 0xb0d0602, 0x73e0ae0, 0xa280b79, 0xb3b05d3, 0xcd30787, 0xa1105d8, 0x60a095a, 0x9370692, 0xa2e09a0, 0xad90a7d, 0xb0d0602, 0x73e0ae0, 0xa280b79, 0xb3b05d3, 0xcd30787, 0xa1105d8, 0xba30840, 0x86a0a24, 0xb410de1, 0x6110695, 0x5d50568, 0x5e605e3, 0x67e0629, 0x6ac0687, 0x60706cf, 0x734071a, 0x77e0723, 0x6af07a4, 0x82c083b, 0x88d085e, 0x6b2056b, 0x6820770, 0x60a095a, 0x9370692, 0xa2e09a0, 0xad90a7d, 0xb0d0602, 0x73e0ae0, 0xa280b79, 0xb3b05d3, 0xcd30787, 0xa1105d8, 0xba30840, 0x86a0a24, 0xb410de1, 0x6110695, 0x5d50568, 0x5e605e3, 0x67e0629, 0x6ac0687, 0x60706cf, 0x734071a, 0x77e0723, 0x6af07a4, 0xb410de1, 0x6110695, 0xe800e6f, 0x0, 0xf380ee3, 0xf3c0f3a, 0xf5c0f3e, 0xfad0f5e, 0xfde0faf, 0xfe20fe0, 0xfe60fe4, 0x10060fe8, 0xfad1008, 0x100f100d, 0x10311011, 0x10351033, 0x1aa3077c, 0x10ea1086, 0x10ee10ec, 0x110e10f0, 0x116e1110, 0x11ae1170, 0x11b211b0, 0x11ce11cc, 0x11ee11d0, 0x11f811f0, 0x11fc11fa, 0x123c11fe, 0x1240123e, 0x1a9e1242, 0x116e10f0, 0x123c11ae, 0x11ee11f0, 0xf380ee3, 0xf3c0f3a, 0xf5c0f3e, 0xfad0f5e, 0xfde0faf, 0xfe20fe0, 0xfe60fe4, 0x10060fe8, 0xfad1008, 0x100f100d, 0x10311011, 0x10351033, 0x1aa3077c, 0x10ea1086, 0x10ee10ec, 0x110e10f0, 0x116e1110, 0x11ae1170, 0x11b211b0, 0x11ce11cc, 0x11ee11d0, 0x11f811f0, 0x11fc11fa, 0x123c11fe, 0x1240123e, 0x1a9e1242, 0x116e10f0, 0x123c11ae, 0x11ee11f0, 0xf380ee3, 0xf3c0f3a, 0xf5c0f3e, 0xfad0f5e, 0xfde0faf, 0xfe20fe0, 0xfe60fe4, 0x10060fe8, 0xfad1008, 0x100f100d, 0x10311011, 0x10351033, 0x1aa3077c, 0x10ea1086, 0x10ee10ec, 0x110e10f0, 0x116e1110, 0x11ae1170, 0x11b211b0, 0x11ce11cc, 0x11ee11d0, 0x11f811f0, 0x11fc11fa, 0x123c11fe, 0x1240123e, 0x1a9e1242, 0x116e10f0, 0x123c11ae, 0x11ee11f0, 0xf380ee3, 0xf3c0f3a, 0xf5c0f3e, 0xfad0f5e, 0xfde0faf, 0xfe20fe0, 0xfe60fe4, 0x10060fe8, 0xfad1008, 0x100f100d, 0x10311011, 0x10351033, 0x1aa3077c, 0x10ea1086, 0x10ee10ec, 0x110e10f0, 0x116e1110, 0x11ae1170, 0x11b211b0, 0x11ce11cc, 0x11ee11d0, 0x11f811f0, 0x11fc11fa, 0x123c11fe, 0x1240123e, 0x1a9e1242, 0x116e10f0, 0x123c11ae, 0x11ee11f0, 0xf380ee3, 0xf3c0f3a, 0xf5c0f3e, 0xfad0f5e, 0xfde0faf, 0xfe20fe0, 0xfe60fe4, 0x10060fe8, 0xfad1008, 0x100f100d, 0x10311011, 0x10351033, 0x1aa3077c, 0x10ea1086, 0x10ee10ec, 0x110e10f0, 0x116e1110, 0x11ae1170, 0x11b211b0, 0x11ce11cc, 0x11ee11d0, 0x11f811f0, 0x11fc11fa, 0x123c11fe, 0x1240123e, 0x1a9e1242, 0x116e10f0, 0x123c11ae, 0x11ee11f0, 0x12a212a0, 0x0, 0x3140305, 0x30f0343, 0x3740365, 0x3920383, 0x3b003a1, 0x3140305, 0x30f0343, 0x3740365, 0x3920383, 0x3b003a1, 0x3140305, 0x30f0343, 0x3740365, 0x3920383, 0x3b003a1, 0x3140305, 0x30f0343, 0x3740365, 0x3920383, 0x3b003a1, 0x3140305, 0x30f0343, 0x3740365, 0x3920383, 0x3b003a1, 0x13f213d7, 0x14e013f5, 0x17880000, 0x13f81409, 0x13fc15c3, 0x14ec1677, 0x140f140c, 0x15e214f8, 0x1560163d, 0x13dc1659, 0x141c1532, 0x13ff1470, 0x15a014e2, 0x160515dd, 0x184a1814, 0x1816183a, 0x13f20000, 0x13f5, 0x13e1, 0x13f80000, 0x13fc0000, 0x14ec1677, 0x140f140c, 0x15e214f8, 0x1560163d, 0x1659, 0x141c1532, 0x13ff1470, 0x15a00000, 0x16050000, 0x0, 0x0, 0x0, 0x13f5, 0x0, 0x13f80000, 0x13fc0000, 0x14ec0000, 0x140f0000, 0x15e214f8, 0x15600000, 0x1659, 0x1532, 0x13ff0000, 0x15a00000, 0x16050000, 0x184a0000, 0x18160000, 0x13f20000, 0x13f5, 0x13e1, 0x13f80000, 0x13fc15c3, 0x1677, 0x140f140c, 0x15e214f8, 0x1560163d, 0x1659, 0x141c1532, 0x13ff1470, 0x15a00000, 0x160515dd, 0x1814, 0x183a, 0x13f213d7, 0x14e013f5, 0x178813e1, 0x13f81409, 0x13fc15c3, 0x14ec0000, 0x140f140c, 0x15e214f8, 0x1560163d, 0x13dc1659, 0x141c1532, 0x13ff1470, 0x15a014e2, 0x160515dd, 0x0, 0x0, 0x13f20000, 0x14e013f5, 0x17880000, 0x13f81409, 0x13fc15c3, 0x14ec0000, 0x140f140c, 0x15e214f8, 0x1560163d, 0x13dc1659, 0x141c1532, 0x13ff1470, 0x15a014e2, 0x160515dd, 0x0, 0x0, 0x307030a, 0x3f10316, 0x4ab0468, 0x4fa04de, 0x520050b, 0x531, 0x0, 0x0, 0x10200fe, 0x10a0106, 0x112010e, 0x11a0116, 0x122011e, 0x12a0126, 0x132012e, 0x13a0136, 0x142013e, 0x14a0146, 0x152014e, 0x15a0156, 0x162015e, 0x5e31b4d, 0x5e5082c, 0x933, 0x5d50568, 0x5e605e3, 0x67e0629, 0x6ac0687, 0x60706cf, 0x734071a, 0x77e0723, 0x6af07a4, 0x82c083b, 0x88d085e, 0x6b2056b, 0x6820770, 0x60a095a, 0x76c06b1, 0x8660860, 0x9300827, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x761075e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x606, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1c9e1bc3, 0x1cad, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x20b02197, 0x1cf71ff3, 0x20811f17, 0x208c2532, 0x21fe1f1d, 0x21e722f2, 0x21451f9d, 0x21eb1f69, 0x24261f93, 0x2560235c, 0x200f2073, 0x219d22cc, 0x1ee921b3, 0x25a01eef, 0x1efd20fa, 0x21ad2001, 0x21992574, 0x23f023d2, 0x22bc2005, 0x329221b, 0x1f9f2366, 0x2035, 0x0, 0x0, 0x1b511b69, 0x1b5d1b55, 0x1b611b6d, 0x1b591b71, 0x1b65, 0x0, 0x0, 0x0, 0x1ffd2147, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1f031f07, 0x26f51f0b, 0x1f351f2d, 0x1f3b1f37, 0x1f411f3f, 0x1f431f47, 0x26fd1e63, 0x1f531f51, 0x1f631f55, 0x1e6526f7, 0x1f691f59, 0x1f7126fb, 0x1f251f75, 0x1f7b1f79, 0x1f8927b9, 0x1e691f8d, 0x1f9b1f99, 0x1fa11f9f, 0x1fad1e6b, 0x1fb51faf, 0x1fbd1fbb, 0x1fc31fbf, 0x1fd51fd3, 0x1fe11fd9, 0x1fe71fe5, 0x1fe71fe7, 0x22e42703, 0x1ff51ff1, 0x1ffb2705, 0x20031fff, 0x200d2017, 0x20152013, 0x201d2019, 0x2023201f, 0x20292027, 0x202d2029, 0x20332031, 0x204b2039, 0x204d203d, 0x2043203f, 0x20711f8f, 0x20572055, 0x20532059, 0x205b205d, 0x27072067, 0x20772075, 0x2081207b, 0x20962085, 0x270b2709, 0x209e209c, 0x209a20a0, 0x1e6d20a4, 0x20a81e6f, 0x20ac20ac, 0x20ba270d, 0x20be20bc, 0x270f20c2, 0x20c820c6, 0x20cc2137, 0x20d21e71, 0x20e020da, 0x271320de, 0x271520e4, 0x20e820ea, 0x20f420ec, 0x1e7320f6, 0x210220fe, 0x21062104, 0x27171e75, 0x21171e77, 0x211b2119, 0x27cd211f, 0x271b212b, 0x2486271b, 0x21332133, 0x27291e79, 0x213b277d, 0x1e7b213f, 0x21512149, 0x21572153, 0x1e7f215f, 0x21611e7d, 0x2163271d, 0x216f216d, 0x216f2171, 0x21792177, 0x217d2181, 0x2183217f, 0x21872185, 0x218f210b, 0x219f219b, 0x21b121a7, 0x21af2723, 0x21b521a9, 0x21c321b9, 0x21c72725, 0x21bd21c1, 0x21cb1e81, 0x21d321cf, 0x1e8321cd, 0x21df21db, 0x21f52727, 0x22032215, 0x22091e89, 0x1e851e87, 0x1f6d1f6b, 0x220b2217, 0x1ebb2470, 0x221f221d, 0x222b2221, 0x27312227, 0x22351e8b, 0x2242222f, 0x27352246, 0x22392248, 0x1e8d224c, 0x2250224e, 0x22582252, 0x225c2737, 0x22621e8f, 0x22642739, 0x226a1e91, 0x22762270, 0x273b2278, 0x273d2711, 0x273f2288, 0x2292228e, 0x2298228a, 0x22a822a0, 0x22a422a2, 0x22ac22aa, 0x229e2741, 0x22ba22b8, 0x22c41e93, 0x274322c2, 0x22d222b4, 0x27472745, 0x22de22d4, 0x22da22dc, 0x22e01e95, 0x22e622e8, 0x26f922ec, 0x274922f4, 0x274d22fa, 0x230a2304, 0x274f2314, 0x2320231e, 0x27532751, 0x2336232e, 0x23381e97, 0x1e991e99, 0x23462344, 0x234c234a, 0x1e9b2352, 0x2755235e, 0x2757236c, 0x27192372, 0x2759237a, 0x275d275b, 0x1e9f1e9d, 0x27612396, 0x2763275f, 0x239a2765, 0x239c239c, 0x1ea323a0, 0x1ea523a2, 0x27691ea7, 0x23b023ac, 0x1ea923b6, 0x23c8276b, 0x276f276d, 0x23e423d8, 0x23e81eab, 0x23ec23ea, 0x27732771, 0x23f82773, 0x27751ead, 0x24042402, 0x27771eaf, 0x1eb12412, 0x2416241a, 0x277b241e, 0x1eb3242a, 0x24342430, 0x1eb5243c, 0x2781277f, 0x27831eb7, 0x27852448, 0x2454244e, 0x27872458, 0x24622789, 0x2466278b, 0x1eb9272b, 0x24742472, 0x24761ebd, 0x278d20a6, 0x272d278f, 0x2486272f, 0x25942488, 0x249e1ebf, 0x24a0249c, 0x24a21fa9, 0x24a624a4, 0x279124aa, 0x24ac24a8, 0x24b824b6, 0x24ba24ae, 0x24ce24c4, 0x24be24b4, 0x24c224c0, 0x27972793, 0x1ec12795, 0x24d424d2, 0x279f24d8, 0x279924da, 0x1ec51ec3, 0x279d279b, 0x24ea1ec7, 0x24ee24ec, 0x24f624f0, 0x24fa24f4, 0x250024f8, 0x24fe24fc, 0x1ec92502, 0x25082506, 0x25101ecb, 0x27a12512, 0x251a2518, 0x25201ecd, 0x27a31e67, 0x1ecf27a5, 0x25361ed1, 0x25502542, 0x27a72558, 0x25642562, 0x25762570, 0x26ff27ab, 0x257a257c, 0x27012580, 0x258c2586, 0x27af27ad, 0x25b225ac, 0x27b125b6, 0x25cc25b8, 0x25d425d2, 0x25da25d0, 0x27b325dc, 0x1ed325e2, 0x27b525e6, 0x26021ed5, 0x260e20ee, 0x27bb27b7, 0x1ed91ed7, 0x27bd2622, 0x27bf1edb, 0x262e262e, 0x27c12632, 0x1edd263e, 0x264c2646, 0x26542650, 0x27c31edf, 0x266c265e, 0x1ee12672, 0x26741ee3, 0x1ee527c5, 0x27c927c7, 0x268627cb, 0x26901ee7, 0x26962694, 0x269e269a, 0x27cf26a2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]);
//12288 bytes
enum canonMappingTrieEntries = TrieEntry!(ushort, 8, 7, 6)([ 0x0, 0x40, 0x240], [ 0x100, 0x400, 0x1380], [ 0x2020100, 0x3020202, 0x2020204, 0x2050202, 0x2020202, 0x6020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x2020202, 0x0, 0x10000, 0x30002, 0x50004, 0x6, 0x0, 0x70000, 0x90008, 0xb000a, 0xc0000, 0x0, 0x0, 0xd, 0xe0000, 0x0, 0x0, 0x0, 0x0, 0x10000f, 0x110000, 0x130012, 0x0, 0x140000, 0x160015, 0x170000, 0x180000, 0x190000, 0x1a0000, 0x0, 0x0, 0x1b0000, 0x1c, 0x1d, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1f001e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x210020, 0x230022, 0x250024, 0x270026, 0x28, 0x0, 0x29, 0x2b002a, 0x2d002c, 0x2f002e, 0x30, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x310000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x320000, 0x340033, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x360035, 0x380037, 0x3a0039, 0x3c003b, 0x3e003d, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3f, 0x40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x410000, 0x430042, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x450044, 0x470046, 0x490048, 0x4b004a, 0x4c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf000c, 0x250012, 0x4f0045, 0x850000, 0xa1009e, 0xcb00a4, 0x121011e, 0x1330124, 0x1880000, 0x1a0019d, 0x1b601a3, 0x1da, 0x26d0000, 0x2730270, 0x2f30287, 0x0, 0x322031f, 0x3380325, 0x3620358, 0x3980000, 0x3b403b1, 0x3de03b7, 0x4370434, 0x446043a, 0x49c0000, 0x4b404b1, 0x4ca04b7, 0x4ee, 0x5840000, 0x58a0587, 0x60d059e, 0x61c0000, 0x33b0028, 0x33e002b, 0x380006d, 0x38c0079, 0x38f007c, 0x392007f, 0x3950082, 0x3a2008f, 0x0, 0x3cd00ba, 0x3d800c5, 0x3db00c8, 0x3fb00e8, 0x3e400d1, 0x40a00f7, 0x41000fd, 0x4130100, 0x4190106, 0x41c0109, 0x0, 0x43d0127, 0x440012a, 0x443012d, 0x45c0149, 0x130, 0x0, 0x462014f, 0x471015d, 0x1630000, 0x1700477, 0x1660484, 0x47a, 0x0, 0x1850000, 0x1940499, 0x18e04a8, 0x4a2, 0x0, 0x4d901c5, 0x4e401d0, 0x4f801e4, 0x0, 0x52f021b, 0x5450231, 0x5350221, 0x54b0237, 0x552023e, 0x5690255, 0x5580244, 0x57b0264, 0x572025b, 0x0, 0x58d0276, 0x594027d, 0x59b0284, 0x5b4029d, 0x5b702a0, 0x5e002c9, 0x5f502de, 0x61002f6, 0x30b0302, 0x3110628, 0x314062e, 0x631, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x50401f0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2ac0000, 0x5c3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x560000, 0x13d0369, 0x1e70450, 0x2a304fb, 0x29205ba, 0x28e05a9, 0x29605a5, 0x28a05ad, 0x5a1, 0x35b0048, 0x3540041, 0x653064a, 0x0, 0x4160103, 0x46b0157, 0x522020e, 0x5250211, 0x65f065c, 0x465, 0x0, 0x40700f4, 0x0, 0x4960182, 0x3650052, 0x6500647, 0x656064d, 0x36c0059, 0x36f005c, 0x3e700d4, 0x3ea00d7, 0x4530140, 0x4560143, 0x4fe01ea, 0x50101ed, 0x5380224, 0x53b0227, 0x5bd02a6, 0x5c002a9, 0x5660252, 0x5780261, 0x0, 0x4250112, 0x0, 0x0, 0x0, 0x351003e, 0x3f400e1, 0x4f101dd, 0x4d101bd, 0x4e701d3, 0x4ea01d6, 0x61602fc, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x10000d, 0x66b0000, 0x137, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x662, 0x0, 0x0, 0x0, 0x0, 0x1, 0x0, 0x0, 0x63d0000, 0x6450670, 0x6df06c3, 0x72c, 0x759, 0x7980778, 0x8d1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x7810735, 0x84707e9, 0x8c10867, 0x92f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x92808ca, 0x91f08fd, 0x95f, 0x0, 0x9b40000, 0x9b7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x9cc09c6, 0x9c30000, 0x0, 0x9ba0000, 0x0, 0x0, 0x9d809e4, 0x9ed, 0x0, 0x0, 0x0, 0x0, 0x9de0000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xa200000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xa0e0a08, 0xa050000, 0x0, 0xa410000, 0x0, 0x0, 0xa1a0a26, 0xa2f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xa470a44, 0x0, 0x0, 0x0, 0x0, 0x9cf0000, 0xa11, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x9ff09bd, 0xa0209c0, 0x0, 0xa0b09c9, 0x0, 0xa4d0a4a, 0xa1409d2, 0xa1709d5, 0x0, 0xa1d09db, 0xa2309e1, 0xa2909e7, 0x0, 0xa530a50, 0xa3e09fc, 0xa2c09ea, 0xa3209f0, 0xa3509f3, 0xa3809f6, 0x0, 0xa3b09f9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xac10abe, 0xac40ac7, 0xaca, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xad3, 0xacd, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xad00000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xae80000, 0x0, 0x0, 0x0, 0xaf10000, 0x0, 0xaf4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xad90ad6, 0xadf0adc, 0xae50ae2, 0xaee0aeb, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb000000, 0xb03, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xafa0af7, 0xafd0000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb120000, 0x0, 0xb15, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb060000, 0xb0c0b09, 0x0, 0xb0f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb21, 0xb1e0000, 0xb24, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb1b0b18, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb27, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb300b2a, 0xb2d, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb33, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb36, 0x0, 0x0, 0xb400000, 0xb43, 0xb3c0b39, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb4c0b46, 0xb49, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb4f, 0xb550b52, 0xb59, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb5f0000, 0x0, 0x0, 0x0, 0x0, 0xb620000, 0x0, 0x0, 0xb65, 0x0, 0xb680000, 0x0, 0x0, 0xb6b, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb5c0000, 0x0, 0x0, 0x0, 0x0, 0xb6e0000, 0xb710000, 0xb89, 0xb8c, 0x0, 0x0, 0x0, 0xb740000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb7a0000, 0x0, 0x0, 0x0, 0x0, 0xb7d0000, 0x0, 0x0, 0xb80, 0x0, 0xb830000, 0x0, 0x0, 0xb86, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb770000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb8f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xb92, 0xb95, 0xb98, 0xb9b, 0xb9e, 0x0, 0xba1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xba40000, 0xba70000, 0x0, 0xbad0baa, 0xbb00000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x37d006a, 0x3830070, 0x3860073, 0x3890076, 0x39b0088, 0x39f008c, 0x3a50092, 0x3ae009b, 0x3a80095, 0x3ab0098, 0x3d000bd, 0x3d400c1, 0x3fe00eb, 0x40100ee, 0x3f700e4, 0x40400f1, 0x40d00fa, 0x41f010c, 0x4280115, 0x422010f, 0x42b0118, 0x42e011b, 0x45f014c, 0x4490136, 0x4680154, 0x46e015a, 0x4740160, 0x47d0169, 0x480016c, 0x48a0176, 0x4870173, 0x48d0179, 0x490017c, 0x493017f, 0x49f018b, 0x4a50191, 0x4ae019a, 0x4ab0197, 0x4cd01b9, 0x4d501c1, 0x4dc01c8, 0x4e001cc, 0x5290215, 0x52c0218, 0x532021e, 0x53e022a, 0x541022d, 0x5480234, 0x5550241, 0x55f024b, 0x54e023a, 0x55b0247, 0x562024e, 0x56c0258, 0x575025e, 0x581026a, 0x57e0267, 0x5dd02c6, 0x5e602cf, 0x5e302cc, 0x5900279, 0x5970280, 0x5e902d2, 0x5ec02d5, 0x5ef02d8, 0x5f202db, 0x5fb02e4, 0x5f802e1, 0x60102e7, 0x60402ea, 0x60702ed, 0x61902ff, 0x62b030e, 0x6340317, 0x637031a, 0x56f0431, 0x62205fe, 0x6590000, 0x0, 0x0, 0x372005f, 0x35f004c, 0x32c0019, 0x3280015, 0x3340021, 0x330001d, 0x3750062, 0x3450032, 0x341002e, 0x34d003a, 0x3490036, 0x3790066, 0x3ed00da, 0x3e100ce, 0x3ca00b7, 0x3be00ab, 0x3ba00a7, 0x3c600b3, 0x3c200af, 0x3f000dd, 0x44d013a, 0x4590146, 0x51b0207, 0x4f501e1, 0x4be01aa, 0x4ba01a6, 0x4c601b2, 0x4c201ae, 0x51e020a, 0x50b01f7, 0x50701f3, 0x51301ff, 0x50f01fb, 0x5170203, 0x5da02c3, 0x5b1029a, 0x5ca02b3, 0x5c602af, 0x5d202bb, 0x5ce02b7, 0x5d602bf, 0x60a02f0, 0x6250308, 0x61f0305, 0x61302f9, 0x0, 0x0, 0x0, 0x81807f6, 0x81b07f9, 0x8240802, 0x82d080b, 0x69b0679, 0x69e067c, 0x6a70685, 0x6b0068e, 0x855084a, 0x858084d, 0x85c0851, 0x0, 0x6d106c6, 0x6d406c9, 0x6d806cd, 0x0, 0x890086e, 0x8930871, 0x89c087a, 0x8a50883, 0x70406e2, 0x70706e5, 0x71006ee, 0x71906f7, 0x8e808d9, 0x8eb08dc, 0x8ef08e0, 0x8f308e4, 0x7470738, 0x74a073b, 0x74e073f, 0x7520743, 0x90b0900, 0x90e0903, 0x9120907, 0x0, 0x767075c, 0x76a075f, 0x76e0763, 0x0, 0x9460937, 0x949093a, 0x94d093e, 0x9510942, 0x7840000, 0x7870000, 0x78b0000, 0x78f0000, 0x9880966, 0x98b0969, 0x9940972, 0x99d097b, 0x7bd079b, 0x7c0079e, 0x7c907a7, 0x7d207b0, 0x7e907e2, 0x8470844, 0x8670860, 0x8c108be, 0x8fd08fa, 0x91f091c, 0x95f0958, 0x0, 0x8360814, 0x81f07fd, 0x8280806, 0x831080f, 0x6b90697, 0x6a20680, 0x6ab0689, 0x6b40692, 0x8ae088c, 0x8970875, 0x8a0087e, 0x8a90887, 0x7220700, 0x70b06e9, 0x71406f2, 0x71d06fb, 0x9a60984, 0x98f096d, 0x9980976, 0x9a1097f, 0x7db07b9, 0x7c407a2, 0x7cd07ab, 0x7d607b4, 0x7f007f3, 0x84107e5, 0x7ec, 0x83d083a, 0x6730676, 0x670066d, 0x6bd, 0x8bc, 0x6400000, 0x8b90863, 0x86a, 0x8b508b2, 0x6c306c0, 0x6df06dc, 0xbb30726, 0xbb90bb6, 0x8c408c7, 0x8d108cd, 0x0, 0x8d508f7, 0x72f0732, 0x72c0729, 0xbbc0000, 0xbc20bbf, 0x9220925, 0x92f092b, 0x9190916, 0x9330955, 0x77b077e, 0x7780775, 0x63a0772, 0x31d063d, 0x0, 0x9b1095b, 0x962, 0x9ad09aa, 0x7590756, 0x7980795, 0x64307df, 0x0, 0xbc70bc5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x793, 0x0, 0x4f0152, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xbcc0bc9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xbcf, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xbd20000, 0xbd50bd8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xbdb, 0x0, 0xbde0000, 0x0, 0xbe1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xbe4, 0xbe7, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xbea0000, 0x0, 0xbed, 0xbf00000, 0xbf30000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x6, 0xbf9, 0x0, 0x0, 0x0, 0x0, 0xbf60000, 0x90003, 0xbff0bfc, 0x0, 0xc050c02, 0x0, 0xc0b0c08, 0x0, 0x0, 0x0, 0xc110c0e, 0x0, 0xc1d0c1a, 0x0, 0xc230c20, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc2f0c2c, 0xc350c32, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc170c14, 0xc290c26, 0x0, 0x0, 0x0, 0xc3b0c38, 0xc410c3e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc470000, 0xc49, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc44, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc4e, 0xc51, 0xc54, 0xc57, 0xc5a, 0xc5d, 0xc60, 0xc63, 0xc66, 0xc69, 0xc6c, 0xc6f, 0xc720000, 0xc750000, 0xc780000, 0x0, 0x0, 0x0, 0xc7e0c7b, 0xc810000, 0xc84, 0xc8a0c87, 0xc8d0000, 0xc90, 0xc960c93, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc4b, 0x0, 0x0, 0x0, 0x0, 0xc99, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc9f, 0xca2, 0xca5, 0xca8, 0xcab, 0xcae, 0xcb1, 0xcb4, 0xcb7, 0xcba, 0xcbd, 0xcc0, 0xcc30000, 0xcc60000, 0xcc90000, 0x0, 0x0, 0x0, 0xccf0ccc, 0xcd20000, 0xcd5, 0xcdb0cd8, 0xcde0000, 0xce1, 0xce70ce4, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc9c, 0xcea0000, 0xcf00ced, 0xcf3, 0x0, 0xcf6, 0xfb71241, 0x124b125d, 0xd831043, 0x13270e29, 0xe991327, 0xe4f1293, 0xf550e97, 0x116710cd, 0x11fd11e3, 0x12791215, 0x10190feb, 0x109d1069, 0x128911c7, 0xd8d12f3, 0xff50e1d, 0x11e11079, 0xedb1309, 0x11d91051, 0xf65121d, 0x12031189, 0xfbd0eff, 0x108d1025, 0xd9d127d, 0xe050dd9, 0xff10f95, 0x10d31077, 0x11dd1171, 0x125911e7, 0x12fb12cf, 0x10e91307, 0x114d1107, 0x12a111b9, 0x122f130b, 0xf0b0e87, 0x117d112f, 0x10ed1083, 0x12cb1249, 0xecb0e85, 0x102f0fed, 0x11471047, 0x12b11159, 0x117f0e03, 0xddd0ddf, 0x114f1115, 0x12b511c5, 0xf67123d, 0x12350feb, 0xebb0d87, 0x10950f27, 0xe1110c1, 0xda510f1, 0xd7f0f1b, 0xf9d1011, 0xe231145, 0x10d70e7d, 0x122711c9, 0x126d1005, 0xf6f100d, 0xf7b11a5, 0xd9110bf, 0xddb0dc3, 0x113d0fdb, 0x122d1195, 0xe091291, 0xe9f0e37, 0xfa10f07, 0x10f31053, 0x12f712ab, 0x1313130d, 0xfb50df9, 0x12690ffd, 0xf490ef3, 0xf910f57, 0x106d104b, 0x111110af, 0x11791153, 0x11cd1261, 0x12a31271, 0xdfb0de9, 0x10670e41, 0x1227120b, 0xf230efd, 0x10030f77, 0x1091112d, 0xe670d97, 0xee50ebb, 0x109b0f29, 0x116b10a9, 0x12951175, 0x12d112c9, 0xd9f12dd, 0x128d110f, 0xf3512c1, 0xdb10d8f, 0xec70ebd, 0xfeb0f9f, 0x10cb1073, 0x127711d3, 0xfad1323, 0xdf712af, 0xfd10fcb, 0x103b1021, 0x10bd10a1, 0x114310e7, 0xdc512e3, 0x12b70f5d, 0xed70da9, 0x12631031, 0xf390f17, 0x10950fd5, 0xdeb12bb, 0xecf0e31, 0xfc30fa7, 0x10150fe1, 0x10c3109f, 0x120d1163, 0x128f1213, 0xe1312c5, 0xe33103d, 0x10b11075, 0x12bd11db, 0x130f12ff, 0x102d0fcf, 0x1121118b, 0x11331125, 0x1063108b, 0xd93123b, 0xded11ad, 0xef50de7, 0x11390f69, 0x101b0eb5, 0x12670fb3, 0x12b31205, 0xf031221, 0xe590db5, 0x0, 0xe7b, 0xfab, 0xde10000, 0x10cf108f, 0x110310f5, 0x110d1105, 0x113512d3, 0x116d, 0x11df, 0x1233, 0x12730000, 0x1283, 0x0, 0x12e912e7, 0x130512eb, 0x12bf127f, 0xdb30da1, 0xe010db9, 0xe170e07, 0xe5f0e53, 0xe790e63, 0xecd0e7f, 0xf2f0ed1, 0xf470f43, 0xf970f53, 0xfaf0fa3, 0x10270fdd, 0x10491035, 0x107d106f, 0x10eb10a3, 0x10fb10f7, 0x10fd10f9, 0x110110ff, 0x110b1109, 0x111d1117, 0x11531127, 0x115b1157, 0x11731161, 0x1197118d, 0x11cb1197, 0x12231219, 0x12391237, 0x124f124d, 0x1273126f, 0x12d912c7, 0xf2b12e1, 0x119313be, 0x0, 0xdd70d81, 0xd9b0dc1, 0xdc90db7, 0xe0b0dff, 0xe490e53, 0xe5d0e51, 0xe830e7b, 0xe9b0e95, 0xeb10ea9, 0xf050f01, 0xf1d0f13, 0xf3f0f33, 0xf470f37, 0xf530f41, 0xf7f0f5f, 0xf890f85, 0xfab0f99, 0xfbf0fbd, 0xfff0fc7, 0x10211005, 0x10411045, 0x10571049, 0x10e3106f, 0x1089107f, 0x10ab108f, 0x10b910b5, 0x10c910c7, 0x10d110cf, 0x10df10d5, 0x10ef10dd, 0x1127111f, 0x11491131, 0x115f1153, 0x11af1173, 0x11f911c3, 0x121f121b, 0x12291223, 0x122b1233, 0x12351237, 0x12391231, 0x124f123f, 0x12751265, 0x1299128b, 0x12c712b9, 0x12d512d3, 0x12db12d9, 0x12f912e1, 0x13941327, 0x13a61392, 0xd370d23, 0x13da0d39, 0x141c13ec, 0x13251321, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xa7a0000, 0xabb0000, 0x0, 0x0, 0x0, 0x0, 0x0, 0xab50ab2, 0xaae0aaa, 0xa590a56, 0xa5f0a5c, 0xa680a65, 0xa710a6b, 0xa74, 0xa7d0a77, 0xa830a80, 0xa89, 0xa8c, 0xa920a8f, 0xa950000, 0xa98, 0xaa10a9e, 0xaa70aa4, 0xa6e0ab8, 0xa860a62, 0xa9b, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1329, 0x132c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x132f0000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x13351332, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x133b1338, 0x1342133e, 0x134a1346, 0x134e, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x13520000, 0x1355135d, 0x13591360, 0x1364, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xd850d89, 0x13680d8b, 0xda10d99, 0xda70da3, 0xdad0dab, 0xdaf0db3, 0x13700cf9, 0xdbb0db9, 0xdc70dbd, 0xcfb136a, 0xdcb0dbf, 0xdd1136e, 0xd950dd3, 0xdd70dd5, 0xde3142c, 0xcff0de5, 0xdf10def, 0xdf50df3, 0xdff0d01, 0xe070e01, 0xe0d0e0b, 0xe110e0f, 0xe170e15, 0xe1b0e19, 0xe210e1f, 0xe210e21, 0x105d1376, 0xe270e25, 0xe2b1378, 0xe2f0e2d, 0xe350e3d, 0xe3b0e39, 0xe430e3f, 0xe470e45, 0xe4d0e4b, 0xe510e4d, 0xe570e55, 0xe690e5b, 0xe6b0e5f, 0xe650e61, 0xe890de7, 0xe710e6f, 0xe6d0e73, 0xe750e77, 0x137a0e81, 0xe8d0e8b, 0xe910e8f, 0xe9d0e93, 0x137e137c, 0xea50ea3, 0xea10ea7, 0xd030eab, 0xeaf0d05, 0xeb30eb3, 0xeb71380, 0xebb0eb9, 0x13820ebf, 0xec30ec1, 0xec50f0f, 0xec90d07, 0xed50ed1, 0x13860ed3, 0x13880ed9, 0xedd0edf, 0xee70ee1, 0xd090ee9, 0xeed0eeb, 0xef10eef, 0x138a0d0b, 0xef70d0d, 0xefb0ef9, 0x14400eff, 0x138e0f09, 0x118f138e, 0xf0d0f0d, 0x139c0d0f, 0xf1113f0, 0xd110f15, 0xf1f0f19, 0xf250f21, 0xd150f2d, 0xf2f0d13, 0xf311390, 0xf3d0f3b, 0xf3d0f3f, 0xf470f45, 0xf4b0f4f, 0xf510f4d, 0xf550f53, 0xf5b0f59, 0xf630f61, 0xf730f6b, 0xf711396, 0xf750f6d, 0xf830f79, 0xf871398, 0xf7d0f81, 0xf8b0d17, 0xf930f8f, 0xd190f8d, 0xf9b0f97, 0xfa5139a, 0xfa90fb9, 0xfaf0d1f, 0xd1b0d1d, 0xdcf0dcd, 0xfb10fbb, 0xd511181, 0xfbf0fbd, 0xfc90fc1, 0x13a40fc5, 0xfd30d21, 0xfd90fcd, 0x13a80fdd, 0xfd70fdf, 0xd230fe3, 0xfe70fe5, 0xfef0fe9, 0xff313aa, 0xff70d25, 0xff913ac, 0xffb0d27, 0x10051001, 0x13ae1007, 0x13b01384, 0x13b21009, 0x1013100f, 0x1017100b, 0x1027101f, 0x10231021, 0x102b1029, 0x101d13b4, 0x10391037, 0x10410d29, 0x13b6103f, 0x104d1033, 0x13ba13b8, 0x1059104f, 0x10551057, 0x105b0d2b, 0x105f1061, 0x136c1065, 0x13bc106b, 0x13c01071, 0x107f107b, 0x13c21081, 0x10871085, 0x13c613c4, 0x10971093, 0x10990d2d, 0xd2f0d2f, 0x10a710a5, 0x10ad10ab, 0xd3110b3, 0x13c810b7, 0x13ca10bb, 0x138c10c1, 0x13cc10c5, 0x13d013ce, 0xd350d33, 0x13d410d5, 0x13d613d2, 0x10d913d8, 0x10db10db, 0xd3910df, 0xd3b10e1, 0x13dc0d3d, 0x10e910e5, 0xd3f10ef, 0x10ff13de, 0x13e213e0, 0x1113110d, 0x11170d41, 0x111b1119, 0x13e613e4, 0x112313e6, 0x13e80d43, 0x112b1129, 0x13ea0d45, 0xd471137, 0x113b113f, 0x13ee1141, 0xd49114b, 0x11551151, 0xd4b115d, 0x13f413f2, 0x13f60d4d, 0x13f81165, 0x116f1169, 0x13fa1173, 0x117713fc, 0x117b13fe, 0xd4f139e, 0x11851183, 0x11870d53, 0x14000ead, 0x13a01402, 0x118f13a2, 0x126b1191, 0x119b0d55, 0x119d1199, 0x119f0dfd, 0x11a311a1, 0x140411a7, 0x11a911a5, 0x11b511b3, 0x11b711ab, 0x11cb11c1, 0x11bb11b1, 0x11bf11bd, 0x140a1406, 0xd571408, 0x11d111cf, 0x141211d5, 0x140c11d7, 0xd5b0d59, 0x1410140e, 0x11e50d5d, 0x11e911e7, 0x11ef11eb, 0x11f311ed, 0x11f911f1, 0x11f711f5, 0xd5f11fb, 0x120111ff, 0x12070d61, 0x14141209, 0x1211120f, 0x12170d63, 0x14160cfd, 0xd651418, 0x12250d67, 0x123f1231, 0x141a1243, 0x12471245, 0x12531251, 0x1372141e, 0x12551257, 0x1374125b, 0x1265125f, 0x14221420, 0x1281127b, 0x14241285, 0x12971287, 0x129f129d, 0x12a5129b, 0x142612a7, 0xd6912a9, 0x142812ad, 0x12c30d6b, 0x12cd0ee3, 0x142e142a, 0xd6f0d6d, 0x143012d7, 0x14320d71, 0x12db12db, 0x143412df, 0xd7312e5, 0x12ef12ed, 0x12f512f1, 0x14360d75, 0x12fd12f9, 0xd771301, 0x13030d79, 0xd7b1438, 0x143c143a, 0x1311143e, 0x13150d7d, 0x13191317, 0x131d131b, 0x1442131f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]);
@property
{
private alias _IDCA = immutable(dchar[]);
_IDCA decompCanonTable() { static _IDCA t = [ 0x0, 0x3b, 0x0, 0x3c, 0x338, 0x0, 0x3d, 0x338, 0x0, 0x3e, 0x338, 0x0, 0x41, 0x300, 0x0, 0x41, 0x301, 0x0, 0x41, 0x302, 0x0, 0x41, 0x302, 0x300, 0x0, 0x41, 0x302, 0x301, 0x0, 0x41, 0x302, 0x303, 0x0, 0x41, 0x302, 0x309, 0x0, 0x41, 0x303, 0x0, 0x41, 0x304, 0x0, 0x41, 0x306, 0x0, 0x41, 0x306, 0x300, 0x0, 0x41, 0x306, 0x301, 0x0, 0x41, 0x306, 0x303, 0x0, 0x41, 0x306, 0x309, 0x0, 0x41, 0x307, 0x0, 0x41, 0x307, 0x304, 0x0, 0x41, 0x308, 0x0, 0x41, 0x308, 0x304, 0x0, 0x41, 0x309, 0x0, 0x41, 0x30a, 0x0, 0x41, 0x30a, 0x301, 0x0, 0x41, 0x30c, 0x0, 0x41, 0x30f, 0x0, 0x41, 0x311, 0x0, 0x41, 0x323, 0x0, 0x41, 0x323, 0x302, 0x0, 0x41, 0x323, 0x306, 0x0, 0x41, 0x325, 0x0, 0x41, 0x328, 0x0, 0x42, 0x307, 0x0, 0x42, 0x323, 0x0, 0x42, 0x331, 0x0, 0x43, 0x301, 0x0, 0x43, 0x302, 0x0, 0x43, 0x307, 0x0, 0x43, 0x30c, 0x0, 0x43, 0x327, 0x0, 0x43, 0x327, 0x301, 0x0, 0x44, 0x307, 0x0, 0x44, 0x30c, 0x0, 0x44, 0x323, 0x0, 0x44, 0x327, 0x0, 0x44, 0x32d, 0x0, 0x44, 0x331, 0x0, 0x45, 0x300, 0x0, 0x45, 0x301, 0x0, 0x45, 0x302, 0x0, 0x45, 0x302, 0x300, 0x0, 0x45, 0x302, 0x301, 0x0, 0x45, 0x302, 0x303, 0x0, 0x45, 0x302, 0x309, 0x0, 0x45, 0x303, 0x0, 0x45, 0x304, 0x0, 0x45, 0x304, 0x300, 0x0, 0x45, 0x304, 0x301, 0x0, 0x45, 0x306, 0x0, 0x45, 0x307, 0x0, 0x45, 0x308, 0x0, 0x45, 0x309, 0x0, 0x45, 0x30c, 0x0, 0x45, 0x30f, 0x0, 0x45, 0x311, 0x0, 0x45, 0x323, 0x0, 0x45, 0x323, 0x302, 0x0, 0x45, 0x327, 0x0, 0x45, 0x327, 0x306, 0x0, 0x45, 0x328, 0x0, 0x45, 0x32d, 0x0, 0x45, 0x330, 0x0, 0x46, 0x307, 0x0, 0x47, 0x301, 0x0, 0x47, 0x302, 0x0, 0x47, 0x304, 0x0, 0x47, 0x306, 0x0, 0x47, 0x307, 0x0, 0x47, 0x30c, 0x0, 0x47, 0x327, 0x0, 0x48, 0x302, 0x0, 0x48, 0x307, 0x0, 0x48, 0x308, 0x0, 0x48, 0x30c, 0x0, 0x48, 0x323, 0x0, 0x48, 0x327, 0x0, 0x48, 0x32e, 0x0, 0x49, 0x300, 0x0, 0x49, 0x301, 0x0, 0x49, 0x302, 0x0, 0x49, 0x303, 0x0, 0x49, 0x304, 0x0, 0x49, 0x306, 0x0, 0x49, 0x307, 0x0, 0x49, 0x308, 0x0, 0x49, 0x308, 0x301, 0x0, 0x49, 0x309, 0x0, 0x49, 0x30c, 0x0, 0x49, 0x30f, 0x0, 0x49, 0x311, 0x0, 0x49, 0x323, 0x0, 0x49, 0x328, 0x0, 0x49, 0x330, 0x0, 0x4a, 0x302, 0x0, 0x4b, 0x0, 0x4b, 0x301, 0x0, 0x4b, 0x30c, 0x0, 0x4b, 0x323, 0x0, 0x4b, 0x327, 0x0, 0x4b, 0x331, 0x0, 0x4c, 0x301, 0x0, 0x4c, 0x30c, 0x0, 0x4c, 0x323, 0x0, 0x4c, 0x323, 0x304, 0x0, 0x4c, 0x327, 0x0, 0x4c, 0x32d, 0x0, 0x4c, 0x331, 0x0, 0x4d, 0x301, 0x0, 0x4d, 0x307, 0x0, 0x4d, 0x323, 0x0, 0x4e, 0x300, 0x0, 0x4e, 0x301, 0x0, 0x4e, 0x303, 0x0, 0x4e, 0x307, 0x0, 0x4e, 0x30c, 0x0, 0x4e, 0x323, 0x0, 0x4e, 0x327, 0x0, 0x4e, 0x32d, 0x0, 0x4e, 0x331, 0x0, 0x4f, 0x300, 0x0, 0x4f, 0x301, 0x0, 0x4f, 0x302, 0x0, 0x4f, 0x302, 0x300, 0x0, 0x4f, 0x302, 0x301, 0x0, 0x4f, 0x302, 0x303, 0x0, 0x4f, 0x302, 0x309, 0x0, 0x4f, 0x303, 0x0, 0x4f, 0x303, 0x301, 0x0, 0x4f, 0x303, 0x304, 0x0, 0x4f, 0x303, 0x308, 0x0, 0x4f, 0x304, 0x0, 0x4f, 0x304, 0x300, 0x0, 0x4f, 0x304, 0x301, 0x0, 0x4f, 0x306, 0x0, 0x4f, 0x307, 0x0, 0x4f, 0x307, 0x304, 0x0, 0x4f, 0x308, 0x0, 0x4f, 0x308, 0x304, 0x0, 0x4f, 0x309, 0x0, 0x4f, 0x30b, 0x0, 0x4f, 0x30c, 0x0, 0x4f, 0x30f, 0x0, 0x4f, 0x311, 0x0, 0x4f, 0x31b, 0x0, 0x4f, 0x31b, 0x300, 0x0, 0x4f, 0x31b, 0x301, 0x0, 0x4f, 0x31b, 0x303, 0x0, 0x4f, 0x31b, 0x309, 0x0, 0x4f, 0x31b, 0x323, 0x0, 0x4f, 0x323, 0x0, 0x4f, 0x323, 0x302, 0x0, 0x4f, 0x328, 0x0, 0x4f, 0x328, 0x304, 0x0, 0x50, 0x301, 0x0, 0x50, 0x307, 0x0, 0x52, 0x301, 0x0, 0x52, 0x307, 0x0, 0x52, 0x30c, 0x0, 0x52, 0x30f, 0x0, 0x52, 0x311, 0x0, 0x52, 0x323, 0x0, 0x52, 0x323, 0x304, 0x0, 0x52, 0x327, 0x0, 0x52, 0x331, 0x0, 0x53, 0x301, 0x0, 0x53, 0x301, 0x307, 0x0, 0x53, 0x302, 0x0, 0x53, 0x307, 0x0, 0x53, 0x30c, 0x0, 0x53, 0x30c, 0x307, 0x0, 0x53, 0x323, 0x0, 0x53, 0x323, 0x307, 0x0, 0x53, 0x326, 0x0, 0x53, 0x327, 0x0, 0x54, 0x307, 0x0, 0x54, 0x30c, 0x0, 0x54, 0x323, 0x0, 0x54, 0x326, 0x0, 0x54, 0x327, 0x0, 0x54, 0x32d, 0x0, 0x54, 0x331, 0x0, 0x55, 0x300, 0x0, 0x55, 0x301, 0x0, 0x55, 0x302, 0x0, 0x55, 0x303, 0x0, 0x55, 0x303, 0x301, 0x0, 0x55, 0x304, 0x0, 0x55, 0x304, 0x308, 0x0, 0x55, 0x306, 0x0, 0x55, 0x308, 0x0, 0x55, 0x308, 0x300, 0x0, 0x55, 0x308, 0x301, 0x0, 0x55, 0x308, 0x304, 0x0, 0x55, 0x308, 0x30c, 0x0, 0x55, 0x309, 0x0, 0x55, 0x30a, 0x0, 0x55, 0x30b, 0x0, 0x55, 0x30c, 0x0, 0x55, 0x30f, 0x0, 0x55, 0x311, 0x0, 0x55, 0x31b, 0x0, 0x55, 0x31b, 0x300, 0x0, 0x55, 0x31b, 0x301, 0x0, 0x55, 0x31b, 0x303, 0x0, 0x55, 0x31b, 0x309, 0x0, 0x55, 0x31b, 0x323, 0x0, 0x55, 0x323, 0x0, 0x55, 0x324, 0x0, 0x55, 0x328, 0x0, 0x55, 0x32d, 0x0, 0x55, 0x330, 0x0, 0x56, 0x303, 0x0, 0x56, 0x323, 0x0, 0x57, 0x300, 0x0, 0x57, 0x301, 0x0, 0x57, 0x302, 0x0, 0x57, 0x307, 0x0, 0x57, 0x308, 0x0, 0x57, 0x323, 0x0, 0x58, 0x307, 0x0, 0x58, 0x308, 0x0, 0x59, 0x300, 0x0, 0x59, 0x301, 0x0, 0x59, 0x302, 0x0, 0x59, 0x303, 0x0, 0x59, 0x304, 0x0, 0x59, 0x307, 0x0, 0x59, 0x308, 0x0, 0x59, 0x309, 0x0, 0x59, 0x323, 0x0, 0x5a, 0x301, 0x0, 0x5a, 0x302, 0x0, 0x5a, 0x307, 0x0, 0x5a, 0x30c, 0x0, 0x5a, 0x323, 0x0, 0x5a, 0x331, 0x0, 0x60, 0x0, 0x61, 0x300, 0x0, 0x61, 0x301, 0x0, 0x61, 0x302, 0x0, 0x61, 0x302, 0x300, 0x0, 0x61, 0x302, 0x301, 0x0, 0x61, 0x302, 0x303, 0x0, 0x61, 0x302, 0x309, 0x0, 0x61, 0x303, 0x0, 0x61, 0x304, 0x0, 0x61, 0x306, 0x0, 0x61, 0x306, 0x300, 0x0, 0x61, 0x306, 0x301, 0x0, 0x61, 0x306, 0x303, 0x0, 0x61, 0x306, 0x309, 0x0, 0x61, 0x307, 0x0, 0x61, 0x307, 0x304, 0x0, 0x61, 0x308, 0x0, 0x61, 0x308, 0x304, 0x0, 0x61, 0x309, 0x0, 0x61, 0x30a, 0x0, 0x61, 0x30a, 0x301, 0x0, 0x61, 0x30c, 0x0, 0x61, 0x30f, 0x0, 0x61, 0x311, 0x0, 0x61, 0x323, 0x0, 0x61, 0x323, 0x302, 0x0, 0x61, 0x323, 0x306, 0x0, 0x61, 0x325, 0x0, 0x61, 0x328, 0x0, 0x62, 0x307, 0x0, 0x62, 0x323, 0x0, 0x62, 0x331, 0x0, 0x63, 0x301, 0x0, 0x63, 0x302, 0x0, 0x63, 0x307, 0x0, 0x63, 0x30c, 0x0, 0x63, 0x327, 0x0, 0x63, 0x327, 0x301, 0x0, 0x64, 0x307, 0x0, 0x64, 0x30c, 0x0, 0x64, 0x323, 0x0, 0x64, 0x327, 0x0, 0x64, 0x32d, 0x0, 0x64, 0x331, 0x0, 0x65, 0x300, 0x0, 0x65, 0x301, 0x0, 0x65, 0x302, 0x0, 0x65, 0x302, 0x300, 0x0, 0x65, 0x302, 0x301, 0x0, 0x65, 0x302, 0x303, 0x0, 0x65, 0x302, 0x309, 0x0, 0x65, 0x303, 0x0, 0x65, 0x304, 0x0, 0x65, 0x304, 0x300, 0x0, 0x65, 0x304, 0x301, 0x0, 0x65, 0x306, 0x0, 0x65, 0x307, 0x0, 0x65, 0x308, 0x0, 0x65, 0x309, 0x0, 0x65, 0x30c, 0x0, 0x65, 0x30f, 0x0, 0x65, 0x311, 0x0, 0x65, 0x323, 0x0, 0x65, 0x323, 0x302, 0x0, 0x65, 0x327, 0x0, 0x65, 0x327, 0x306, 0x0, 0x65, 0x328, 0x0, 0x65, 0x32d, 0x0, 0x65, 0x330, 0x0, 0x66, 0x307, 0x0, 0x67, 0x301, 0x0, 0x67, 0x302, 0x0, 0x67, 0x304, 0x0, 0x67, 0x306, 0x0, 0x67, 0x307, 0x0, 0x67, 0x30c, 0x0, 0x67, 0x327, 0x0, 0x68, 0x302, 0x0, 0x68, 0x307, 0x0, 0x68, 0x308, 0x0, 0x68, 0x30c, 0x0, 0x68, 0x323, 0x0, 0x68, 0x327, 0x0, 0x68, 0x32e, 0x0, 0x68, 0x331, 0x0, 0x69, 0x300, 0x0, 0x69, 0x301, 0x0, 0x69, 0x302, 0x0, 0x69, 0x303, 0x0, 0x69, 0x304, 0x0, 0x69, 0x306, 0x0, 0x69, 0x308, 0x0, 0x69, 0x308, 0x301, 0x0, 0x69, 0x309, 0x0, 0x69, 0x30c, 0x0, 0x69, 0x30f, 0x0, 0x69, 0x311, 0x0, 0x69, 0x323, 0x0, 0x69, 0x328, 0x0, 0x69, 0x330, 0x0, 0x6a, 0x302, 0x0, 0x6a, 0x30c, 0x0, 0x6b, 0x301, 0x0, 0x6b, 0x30c, 0x0, 0x6b, 0x323, 0x0, 0x6b, 0x327, 0x0, 0x6b, 0x331, 0x0, 0x6c, 0x301, 0x0, 0x6c, 0x30c, 0x0, 0x6c, 0x323, 0x0, 0x6c, 0x323, 0x304, 0x0, 0x6c, 0x327, 0x0, 0x6c, 0x32d, 0x0, 0x6c, 0x331, 0x0, 0x6d, 0x301, 0x0, 0x6d, 0x307, 0x0, 0x6d, 0x323, 0x0, 0x6e, 0x300, 0x0, 0x6e, 0x301, 0x0, 0x6e, 0x303, 0x0, 0x6e, 0x307, 0x0, 0x6e, 0x30c, 0x0, 0x6e, 0x323, 0x0, 0x6e, 0x327, 0x0, 0x6e, 0x32d, 0x0, 0x6e, 0x331, 0x0, 0x6f, 0x300, 0x0, 0x6f, 0x301, 0x0, 0x6f, 0x302, 0x0, 0x6f, 0x302, 0x300, 0x0, 0x6f, 0x302, 0x301, 0x0, 0x6f, 0x302, 0x303, 0x0, 0x6f, 0x302, 0x309, 0x0, 0x6f, 0x303, 0x0, 0x6f, 0x303, 0x301, 0x0, 0x6f, 0x303, 0x304, 0x0, 0x6f, 0x303, 0x308, 0x0, 0x6f, 0x304, 0x0, 0x6f, 0x304, 0x300, 0x0, 0x6f, 0x304, 0x301, 0x0, 0x6f, 0x306, 0x0, 0x6f, 0x307, 0x0, 0x6f, 0x307, 0x304, 0x0, 0x6f, 0x308, 0x0, 0x6f, 0x308, 0x304, 0x0, 0x6f, 0x309, 0x0, 0x6f, 0x30b, 0x0, 0x6f, 0x30c, 0x0, 0x6f, 0x30f, 0x0, 0x6f, 0x311, 0x0, 0x6f, 0x31b, 0x0, 0x6f, 0x31b, 0x300, 0x0, 0x6f, 0x31b, 0x301, 0x0, 0x6f, 0x31b, 0x303, 0x0, 0x6f, 0x31b, 0x309, 0x0, 0x6f, 0x31b, 0x323, 0x0, 0x6f, 0x323, 0x0, 0x6f, 0x323, 0x302, 0x0, 0x6f, 0x328, 0x0, 0x6f, 0x328, 0x304, 0x0, 0x70, 0x301, 0x0, 0x70, 0x307, 0x0, 0x72, 0x301, 0x0, 0x72, 0x307, 0x0, 0x72, 0x30c, 0x0, 0x72, 0x30f, 0x0, 0x72, 0x311, 0x0, 0x72, 0x323, 0x0, 0x72, 0x323, 0x304, 0x0, 0x72, 0x327, 0x0, 0x72, 0x331, 0x0, 0x73, 0x301, 0x0, 0x73, 0x301, 0x307, 0x0, 0x73, 0x302, 0x0, 0x73, 0x307, 0x0, 0x73, 0x30c, 0x0, 0x73, 0x30c, 0x307, 0x0, 0x73, 0x323, 0x0, 0x73, 0x323, 0x307, 0x0, 0x73, 0x326, 0x0, 0x73, 0x327, 0x0, 0x74, 0x307, 0x0, 0x74, 0x308, 0x0, 0x74, 0x30c, 0x0, 0x74, 0x323, 0x0, 0x74, 0x326, 0x0, 0x74, 0x327, 0x0, 0x74, 0x32d, 0x0, 0x74, 0x331, 0x0, 0x75, 0x300, 0x0, 0x75, 0x301, 0x0, 0x75, 0x302, 0x0, 0x75, 0x303, 0x0, 0x75, 0x303, 0x301, 0x0, 0x75, 0x304, 0x0, 0x75, 0x304, 0x308, 0x0, 0x75, 0x306, 0x0, 0x75, 0x308, 0x0, 0x75, 0x308, 0x300, 0x0, 0x75, 0x308, 0x301, 0x0, 0x75, 0x308, 0x304, 0x0, 0x75, 0x308, 0x30c, 0x0, 0x75, 0x309, 0x0, 0x75, 0x30a, 0x0, 0x75, 0x30b, 0x0, 0x75, 0x30c, 0x0, 0x75, 0x30f, 0x0, 0x75, 0x311, 0x0, 0x75, 0x31b, 0x0, 0x75, 0x31b, 0x300, 0x0, 0x75, 0x31b, 0x301, 0x0, 0x75, 0x31b, 0x303, 0x0, 0x75, 0x31b, 0x309, 0x0, 0x75, 0x31b, 0x323, 0x0, 0x75, 0x323, 0x0, 0x75, 0x324, 0x0, 0x75, 0x328, 0x0, 0x75, 0x32d, 0x0, 0x75, 0x330, 0x0, 0x76, 0x303, 0x0, 0x76, 0x323, 0x0, 0x77, 0x300, 0x0, 0x77, 0x301, 0x0, 0x77, 0x302, 0x0, 0x77, 0x307, 0x0, 0x77, 0x308, 0x0, 0x77, 0x30a, 0x0, 0x77, 0x323, 0x0, 0x78, 0x307, 0x0, 0x78, 0x308, 0x0, 0x79, 0x300, 0x0, 0x79, 0x301, 0x0, 0x79, 0x302, 0x0, 0x79, 0x303, 0x0, 0x79, 0x304, 0x0, 0x79, 0x307, 0x0, 0x79, 0x308, 0x0, 0x79, 0x309, 0x0, 0x79, 0x30a, 0x0, 0x79, 0x323, 0x0, 0x7a, 0x301, 0x0, 0x7a, 0x302, 0x0, 0x7a, 0x307, 0x0, 0x7a, 0x30c, 0x0, 0x7a, 0x323, 0x0, 0x7a, 0x331, 0x0, 0xa8, 0x300, 0x0, 0xa8, 0x301, 0x0, 0xa8, 0x342, 0x0, 0xb4, 0x0, 0xb7, 0x0, 0xc6, 0x301, 0x0, 0xc6, 0x304, 0x0, 0xd8, 0x301, 0x0, 0xe6, 0x301, 0x0, 0xe6, 0x304, 0x0, 0xf8, 0x301, 0x0, 0x17f, 0x307, 0x0, 0x1b7, 0x30c, 0x0, 0x292, 0x30c, 0x0, 0x2b9, 0x0, 0x300, 0x0, 0x301, 0x0, 0x308, 0x301, 0x0, 0x313, 0x0, 0x391, 0x300, 0x0, 0x391, 0x301, 0x0, 0x391, 0x304, 0x0, 0x391, 0x306, 0x0, 0x391, 0x313, 0x0, 0x391, 0x313, 0x300, 0x0, 0x391, 0x313, 0x300, 0x345, 0x0, 0x391, 0x313, 0x301, 0x0, 0x391, 0x313, 0x301, 0x345, 0x0, 0x391, 0x313, 0x342, 0x0, 0x391, 0x313, 0x342, 0x345, 0x0, 0x391, 0x313, 0x345, 0x0, 0x391, 0x314, 0x0, 0x391, 0x314, 0x300, 0x0, 0x391, 0x314, 0x300, 0x345, 0x0, 0x391, 0x314, 0x301, 0x0, 0x391, 0x314, 0x301, 0x345, 0x0, 0x391, 0x314, 0x342, 0x0, 0x391, 0x314, 0x342, 0x345, 0x0, 0x391, 0x314, 0x345, 0x0, 0x391, 0x345, 0x0, 0x395, 0x300, 0x0, 0x395, 0x301, 0x0, 0x395, 0x313, 0x0, 0x395, 0x313, 0x300, 0x0, 0x395, 0x313, 0x301, 0x0, 0x395, 0x314, 0x0, 0x395, 0x314, 0x300, 0x0, 0x395, 0x314, 0x301, 0x0, 0x397, 0x300, 0x0, 0x397, 0x301, 0x0, 0x397, 0x313, 0x0, 0x397, 0x313, 0x300, 0x0, 0x397, 0x313, 0x300, 0x345, 0x0, 0x397, 0x313, 0x301, 0x0, 0x397, 0x313, 0x301, 0x345, 0x0, 0x397, 0x313, 0x342, 0x0, 0x397, 0x313, 0x342, 0x345, 0x0, 0x397, 0x313, 0x345, 0x0, 0x397, 0x314, 0x0, 0x397, 0x314, 0x300, 0x0, 0x397, 0x314, 0x300, 0x345, 0x0, 0x397, 0x314, 0x301, 0x0, 0x397, 0x314, 0x301, 0x345, 0x0, 0x397, 0x314, 0x342, 0x0, 0x397, 0x314, 0x342, 0x345, 0x0, 0x397, 0x314, 0x345, 0x0, 0x397, 0x345, 0x0, 0x399, 0x300, 0x0, 0x399, 0x301, 0x0, 0x399, 0x304, 0x0, 0x399, 0x306, 0x0, 0x399, 0x308, 0x0, 0x399, 0x313, 0x0, 0x399, 0x313, 0x300, 0x0, 0x399, 0x313, 0x301, 0x0, 0x399, 0x313, 0x342, 0x0, 0x399, 0x314, 0x0, 0x399, 0x314, 0x300, 0x0, 0x399, 0x314, 0x301, 0x0, 0x399, 0x314, 0x342, 0x0, 0x39f, 0x300, 0x0, 0x39f, 0x301, 0x0, 0x39f, 0x313, 0x0, 0x39f, 0x313, 0x300, 0x0, 0x39f, 0x313, 0x301, 0x0, 0x39f, 0x314, 0x0, 0x39f, 0x314, 0x300, 0x0, 0x39f, 0x314, 0x301, 0x0, 0x3a1, 0x314, 0x0, 0x3a5, 0x300, 0x0, 0x3a5, 0x301, 0x0, 0x3a5, 0x304, 0x0, 0x3a5, 0x306, 0x0, 0x3a5, 0x308, 0x0, 0x3a5, 0x314, 0x0, 0x3a5, 0x314, 0x300, 0x0, 0x3a5, 0x314, 0x301, 0x0, 0x3a5, 0x314, 0x342, 0x0, 0x3a9, 0x0, 0x3a9, 0x300, 0x0, 0x3a9, 0x301, 0x0, 0x3a9, 0x313, 0x0, 0x3a9, 0x313, 0x300, 0x0, 0x3a9, 0x313, 0x300, 0x345, 0x0, 0x3a9, 0x313, 0x301, 0x0, 0x3a9, 0x313, 0x301, 0x345, 0x0, 0x3a9, 0x313, 0x342, 0x0, 0x3a9, 0x313, 0x342, 0x345, 0x0, 0x3a9, 0x313, 0x345, 0x0, 0x3a9, 0x314, 0x0, 0x3a9, 0x314, 0x300, 0x0, 0x3a9, 0x314, 0x300, 0x345, 0x0, 0x3a9, 0x314, 0x301, 0x0, 0x3a9, 0x314, 0x301, 0x345, 0x0, 0x3a9, 0x314, 0x342, 0x0, 0x3a9, 0x314, 0x342, 0x345, 0x0, 0x3a9, 0x314, 0x345, 0x0, 0x3a9, 0x345, 0x0, 0x3b1, 0x300, 0x0, 0x3b1, 0x300, 0x345, 0x0, 0x3b1, 0x301, 0x0, 0x3b1, 0x301, 0x345, 0x0, 0x3b1, 0x304, 0x0, 0x3b1, 0x306, 0x0, 0x3b1, 0x313, 0x0, 0x3b1, 0x313, 0x300, 0x0, 0x3b1, 0x313, 0x300, 0x345, 0x0, 0x3b1, 0x313, 0x301, 0x0, 0x3b1, 0x313, 0x301, 0x345, 0x0, 0x3b1, 0x313, 0x342, 0x0, 0x3b1, 0x313, 0x342, 0x345, 0x0, 0x3b1, 0x313, 0x345, 0x0, 0x3b1, 0x314, 0x0, 0x3b1, 0x314, 0x300, 0x0, 0x3b1, 0x314, 0x300, 0x345, 0x0, 0x3b1, 0x314, 0x301, 0x0, 0x3b1, 0x314, 0x301, 0x345, 0x0, 0x3b1, 0x314, 0x342, 0x0, 0x3b1, 0x314, 0x342, 0x345, 0x0, 0x3b1, 0x314, 0x345, 0x0, 0x3b1, 0x342, 0x0, 0x3b1, 0x342, 0x345, 0x0, 0x3b1, 0x345, 0x0, 0x3b5, 0x300, 0x0, 0x3b5, 0x301, 0x0, 0x3b5, 0x313, 0x0, 0x3b5, 0x313, 0x300, 0x0, 0x3b5, 0x313, 0x301, 0x0, 0x3b5, 0x314, 0x0, 0x3b5, 0x314, 0x300, 0x0, 0x3b5, 0x314, 0x301, 0x0, 0x3b7, 0x300, 0x0, 0x3b7, 0x300, 0x345, 0x0, 0x3b7, 0x301, 0x0, 0x3b7, 0x301, 0x345, 0x0, 0x3b7, 0x313, 0x0, 0x3b7, 0x313, 0x300, 0x0, 0x3b7, 0x313, 0x300, 0x345, 0x0, 0x3b7, 0x313, 0x301, 0x0, 0x3b7, 0x313, 0x301, 0x345, 0x0, 0x3b7, 0x313, 0x342, 0x0, 0x3b7, 0x313, 0x342, 0x345, 0x0, 0x3b7, 0x313, 0x345, 0x0, 0x3b7, 0x314, 0x0, 0x3b7, 0x314, 0x300, 0x0, 0x3b7, 0x314, 0x300, 0x345, 0x0, 0x3b7, 0x314, 0x301, 0x0, 0x3b7, 0x314, 0x301, 0x345, 0x0, 0x3b7, 0x314, 0x342, 0x0, 0x3b7, 0x314, 0x342, 0x345, 0x0, 0x3b7, 0x314, 0x345, 0x0, 0x3b7, 0x342, 0x0, 0x3b7, 0x342, 0x345, 0x0, 0x3b7, 0x345, 0x0, 0x3b9, 0x0, 0x3b9, 0x300, 0x0, 0x3b9, 0x301, 0x0, 0x3b9, 0x304, 0x0, 0x3b9, 0x306, 0x0, 0x3b9, 0x308, 0x0, 0x3b9, 0x308, 0x300, 0x0, 0x3b9, 0x308, 0x301, 0x0, 0x3b9, 0x308, 0x342, 0x0, 0x3b9, 0x313, 0x0, 0x3b9, 0x313, 0x300, 0x0, 0x3b9, 0x313, 0x301, 0x0, 0x3b9, 0x313, 0x342, 0x0, 0x3b9, 0x314, 0x0, 0x3b9, 0x314, 0x300, 0x0, 0x3b9, 0x314, 0x301, 0x0, 0x3b9, 0x314, 0x342, 0x0, 0x3b9, 0x342, 0x0, 0x3bf, 0x300, 0x0, 0x3bf, 0x301, 0x0, 0x3bf, 0x313, 0x0, 0x3bf, 0x313, 0x300, 0x0, 0x3bf, 0x313, 0x301, 0x0, 0x3bf, 0x314, 0x0, 0x3bf, 0x314, 0x300, 0x0, 0x3bf, 0x314, 0x301, 0x0, 0x3c1, 0x313, 0x0, 0x3c1, 0x314, 0x0, 0x3c5, 0x300, 0x0, 0x3c5, 0x301, 0x0, 0x3c5, 0x304, 0x0, 0x3c5, 0x306, 0x0, 0x3c5, 0x308, 0x0, 0x3c5, 0x308, 0x300, 0x0, 0x3c5, 0x308, 0x301, 0x0, 0x3c5, 0x308, 0x342, 0x0, 0x3c5, 0x313, 0x0, 0x3c5, 0x313, 0x300, 0x0, 0x3c5, 0x313, 0x301, 0x0, 0x3c5, 0x313, 0x342, 0x0, 0x3c5, 0x314, 0x0, 0x3c5, 0x314, 0x300, 0x0, 0x3c5, 0x314, 0x301, 0x0, 0x3c5, 0x314, 0x342, 0x0, 0x3c5, 0x342, 0x0, 0x3c9, 0x300, 0x0, 0x3c9, 0x300, 0x345, 0x0, 0x3c9, 0x301, 0x0, 0x3c9, 0x301, 0x345, 0x0, 0x3c9, 0x313, 0x0, 0x3c9, 0x313, 0x300, 0x0, 0x3c9, 0x313, 0x300, 0x345, 0x0, 0x3c9, 0x313, 0x301, 0x0, 0x3c9, 0x313, 0x301, 0x345, 0x0, 0x3c9, 0x313, 0x342, 0x0, 0x3c9, 0x313, 0x342, 0x345, 0x0, 0x3c9, 0x313, 0x345, 0x0, 0x3c9, 0x314, 0x0, 0x3c9, 0x314, 0x300, 0x0, 0x3c9, 0x314, 0x300, 0x345, 0x0, 0x3c9, 0x314, 0x301, 0x0, 0x3c9, 0x314, 0x301, 0x345, 0x0, 0x3c9, 0x314, 0x342, 0x0, 0x3c9, 0x314, 0x342, 0x345, 0x0, 0x3c9, 0x314, 0x345, 0x0, 0x3c9, 0x342, 0x0, 0x3c9, 0x342, 0x345, 0x0, 0x3c9, 0x345, 0x0, 0x3d2, 0x301, 0x0, 0x3d2, 0x308, 0x0, 0x406, 0x308, 0x0, 0x410, 0x306, 0x0, 0x410, 0x308, 0x0, 0x413, 0x301, 0x0, 0x415, 0x300, 0x0, 0x415, 0x306, 0x0, 0x415, 0x308, 0x0, 0x416, 0x306, 0x0, 0x416, 0x308, 0x0, 0x417, 0x308, 0x0, 0x418, 0x300, 0x0, 0x418, 0x304, 0x0, 0x418, 0x306, 0x0, 0x418, 0x308, 0x0, 0x41a, 0x301, 0x0, 0x41e, 0x308, 0x0, 0x423, 0x304, 0x0, 0x423, 0x306, 0x0, 0x423, 0x308, 0x0, 0x423, 0x30b, 0x0, 0x427, 0x308, 0x0, 0x42b, 0x308, 0x0, 0x42d, 0x308, 0x0, 0x430, 0x306, 0x0, 0x430, 0x308, 0x0, 0x433, 0x301, 0x0, 0x435, 0x300, 0x0, 0x435, 0x306, 0x0, 0x435, 0x308, 0x0, 0x436, 0x306, 0x0, 0x436, 0x308, 0x0, 0x437, 0x308, 0x0, 0x438, 0x300, 0x0, 0x438, 0x304, 0x0, 0x438, 0x306, 0x0, 0x438, 0x308, 0x0, 0x43a, 0x301, 0x0, 0x43e, 0x308, 0x0, 0x443, 0x304, 0x0, 0x443, 0x306, 0x0, 0x443, 0x308, 0x0, 0x443, 0x30b, 0x0, 0x447, 0x308, 0x0, 0x44b, 0x308, 0x0, 0x44d, 0x308, 0x0, 0x456, 0x308, 0x0, 0x474, 0x30f, 0x0, 0x475, 0x30f, 0x0, 0x4d8, 0x308, 0x0, 0x4d9, 0x308, 0x0, 0x4e8, 0x308, 0x0, 0x4e9, 0x308, 0x0, 0x5d0, 0x5b7, 0x0, 0x5d0, 0x5b8, 0x0, 0x5d0, 0x5bc, 0x0, 0x5d1, 0x5bc, 0x0, 0x5d1, 0x5bf, 0x0, 0x5d2, 0x5bc, 0x0, 0x5d3, 0x5bc, 0x0, 0x5d4, 0x5bc, 0x0, 0x5d5, 0x5b9, 0x0, 0x5d5, 0x5bc, 0x0, 0x5d6, 0x5bc, 0x0, 0x5d8, 0x5bc, 0x0, 0x5d9, 0x5b4, 0x0, 0x5d9, 0x5bc, 0x0, 0x5da, 0x5bc, 0x0, 0x5db, 0x5bc, 0x0, 0x5db, 0x5bf, 0x0, 0x5dc, 0x5bc, 0x0, 0x5de, 0x5bc, 0x0, 0x5e0, 0x5bc, 0x0, 0x5e1, 0x5bc, 0x0, 0x5e3, 0x5bc, 0x0, 0x5e4, 0x5bc, 0x0, 0x5e4, 0x5bf, 0x0, 0x5e6, 0x5bc, 0x0, 0x5e7, 0x5bc, 0x0, 0x5e8, 0x5bc, 0x0, 0x5e9, 0x5bc, 0x0, 0x5e9, 0x5bc, 0x5c1, 0x0, 0x5e9, 0x5bc, 0x5c2, 0x0, 0x5e9, 0x5c1, 0x0, 0x5e9, 0x5c2, 0x0, 0x5ea, 0x5bc, 0x0, 0x5f2, 0x5b7, 0x0, 0x627, 0x653, 0x0, 0x627, 0x654, 0x0, 0x627, 0x655, 0x0, 0x648, 0x654, 0x0, 0x64a, 0x654, 0x0, 0x6c1, 0x654, 0x0, 0x6d2, 0x654, 0x0, 0x6d5, 0x654, 0x0, 0x915, 0x93c, 0x0, 0x916, 0x93c, 0x0, 0x917, 0x93c, 0x0, 0x91c, 0x93c, 0x0, 0x921, 0x93c, 0x0, 0x922, 0x93c, 0x0, 0x928, 0x93c, 0x0, 0x92b, 0x93c, 0x0, 0x92f, 0x93c, 0x0, 0x930, 0x93c, 0x0, 0x933, 0x93c, 0x0, 0x9a1, 0x9bc, 0x0, 0x9a2, 0x9bc, 0x0, 0x9af, 0x9bc, 0x0, 0x9c7, 0x9be, 0x0, 0x9c7, 0x9d7, 0x0, 0xa16, 0xa3c, 0x0, 0xa17, 0xa3c, 0x0, 0xa1c, 0xa3c, 0x0, 0xa2b, 0xa3c, 0x0, 0xa32, 0xa3c, 0x0, 0xa38, 0xa3c, 0x0, 0xb21, 0xb3c, 0x0, 0xb22, 0xb3c, 0x0, 0xb47, 0xb3e, 0x0, 0xb47, 0xb56, 0x0, 0xb47, 0xb57, 0x0, 0xb92, 0xbd7, 0x0, 0xbc6, 0xbbe, 0x0, 0xbc6, 0xbd7, 0x0, 0xbc7, 0xbbe, 0x0, 0xc46, 0xc56, 0x0, 0xcbf, 0xcd5, 0x0, 0xcc6, 0xcc2, 0x0, 0xcc6, 0xcc2, 0xcd5, 0x0, 0xcc6, 0xcd5, 0x0, 0xcc6, 0xcd6, 0x0, 0xd46, 0xd3e, 0x0, 0xd46, 0xd57, 0x0, 0xd47, 0xd3e, 0x0, 0xdd9, 0xdca, 0x0, 0xdd9, 0xdcf, 0x0, 0xdd9, 0xdcf, 0xdca, 0x0, 0xdd9, 0xddf, 0x0, 0xf40, 0xfb5, 0x0, 0xf42, 0xfb7, 0x0, 0xf4c, 0xfb7, 0x0, 0xf51, 0xfb7, 0x0, 0xf56, 0xfb7, 0x0, 0xf5b, 0xfb7, 0x0, 0xf71, 0xf72, 0x0, 0xf71, 0xf74, 0x0, 0xf71, 0xf80, 0x0, 0xf90, 0xfb5, 0x0, 0xf92, 0xfb7, 0x0, 0xf9c, 0xfb7, 0x0, 0xfa1, 0xfb7, 0x0, 0xfa6, 0xfb7, 0x0, 0xfab, 0xfb7, 0x0, 0xfb2, 0xf80, 0x0, 0xfb3, 0xf80, 0x0, 0x1025, 0x102e, 0x0, 0x1b05, 0x1b35, 0x0, 0x1b07, 0x1b35, 0x0, 0x1b09, 0x1b35, 0x0, 0x1b0b, 0x1b35, 0x0, 0x1b0d, 0x1b35, 0x0, 0x1b11, 0x1b35, 0x0, 0x1b3a, 0x1b35, 0x0, 0x1b3c, 0x1b35, 0x0, 0x1b3e, 0x1b35, 0x0, 0x1b3f, 0x1b35, 0x0, 0x1b42, 0x1b35, 0x0, 0x1fbf, 0x300, 0x0, 0x1fbf, 0x301, 0x0, 0x1fbf, 0x342, 0x0, 0x1ffe, 0x300, 0x0, 0x1ffe, 0x301, 0x0, 0x1ffe, 0x342, 0x0, 0x2002, 0x0, 0x2003, 0x0, 0x2190, 0x338, 0x0, 0x2192, 0x338, 0x0, 0x2194, 0x338, 0x0, 0x21d0, 0x338, 0x0, 0x21d2, 0x338, 0x0, 0x21d4, 0x338, 0x0, 0x2203, 0x338, 0x0, 0x2208, 0x338, 0x0, 0x220b, 0x338, 0x0, 0x2223, 0x338, 0x0, 0x2225, 0x338, 0x0, 0x223c, 0x338, 0x0, 0x2243, 0x338, 0x0, 0x2245, 0x338, 0x0, 0x2248, 0x338, 0x0, 0x224d, 0x338, 0x0, 0x2261, 0x338, 0x0, 0x2264, 0x338, 0x0, 0x2265, 0x338, 0x0, 0x2272, 0x338, 0x0, 0x2273, 0x338, 0x0, 0x2276, 0x338, 0x0, 0x2277, 0x338, 0x0, 0x227a, 0x338, 0x0, 0x227b, 0x338, 0x0, 0x227c, 0x338, 0x0, 0x227d, 0x338, 0x0, 0x2282, 0x338, 0x0, 0x2283, 0x338, 0x0, 0x2286, 0x338, 0x0, 0x2287, 0x338, 0x0, 0x2291, 0x338, 0x0, 0x2292, 0x338, 0x0, 0x22a2, 0x338, 0x0, 0x22a8, 0x338, 0x0, 0x22a9, 0x338, 0x0, 0x22ab, 0x338, 0x0, 0x22b2, 0x338, 0x0, 0x22b3, 0x338, 0x0, 0x22b4, 0x338, 0x0, 0x22b5, 0x338, 0x0, 0x2add, 0x338, 0x0, 0x3008, 0x0, 0x3009, 0x0, 0x3046, 0x3099, 0x0, 0x304b, 0x3099, 0x0, 0x304d, 0x3099, 0x0, 0x304f, 0x3099, 0x0, 0x3051, 0x3099, 0x0, 0x3053, 0x3099, 0x0, 0x3055, 0x3099, 0x0, 0x3057, 0x3099, 0x0, 0x3059, 0x3099, 0x0, 0x305b, 0x3099, 0x0, 0x305d, 0x3099, 0x0, 0x305f, 0x3099, 0x0, 0x3061, 0x3099, 0x0, 0x3064, 0x3099, 0x0, 0x3066, 0x3099, 0x0, 0x3068, 0x3099, 0x0, 0x306f, 0x3099, 0x0, 0x306f, 0x309a, 0x0, 0x3072, 0x3099, 0x0, 0x3072, 0x309a, 0x0, 0x3075, 0x3099, 0x0, 0x3075, 0x309a, 0x0, 0x3078, 0x3099, 0x0, 0x3078, 0x309a, 0x0, 0x307b, 0x3099, 0x0, 0x307b, 0x309a, 0x0, 0x309d, 0x3099, 0x0, 0x30a6, 0x3099, 0x0, 0x30ab, 0x3099, 0x0, 0x30ad, 0x3099, 0x0, 0x30af, 0x3099, 0x0, 0x30b1, 0x3099, 0x0, 0x30b3, 0x3099, 0x0, 0x30b5, 0x3099, 0x0, 0x30b7, 0x3099, 0x0, 0x30b9, 0x3099, 0x0, 0x30bb, 0x3099, 0x0, 0x30bd, 0x3099, 0x0, 0x30bf, 0x3099, 0x0, 0x30c1, 0x3099, 0x0, 0x30c4, 0x3099, 0x0, 0x30c6, 0x3099, 0x0, 0x30c8, 0x3099, 0x0, 0x30cf, 0x3099, 0x0, 0x30cf, 0x309a, 0x0, 0x30d2, 0x3099, 0x0, 0x30d2, 0x309a, 0x0, 0x30d5, 0x3099, 0x0, 0x30d5, 0x309a, 0x0, 0x30d8, 0x3099, 0x0, 0x30d8, 0x309a, 0x0, 0x30db, 0x3099, 0x0, 0x30db, 0x309a, 0x0, 0x30ef, 0x3099, 0x0, 0x30f0, 0x3099, 0x0, 0x30f1, 0x3099, 0x0, 0x30f2, 0x3099, 0x0, 0x30fd, 0x3099, 0x0, 0x349e, 0x0, 0x34b9, 0x0, 0x34bb, 0x0, 0x34df, 0x0, 0x3515, 0x0, 0x36ee, 0x0, 0x36fc, 0x0, 0x3781, 0x0, 0x382f, 0x0, 0x3862, 0x0, 0x387c, 0x0, 0x38c7, 0x0, 0x38e3, 0x0, 0x391c, 0x0, 0x393a, 0x0, 0x3a2e, 0x0, 0x3a6c, 0x0, 0x3ae4, 0x0, 0x3b08, 0x0, 0x3b19, 0x0, 0x3b49, 0x0, 0x3b9d, 0x0, 0x3c18, 0x0, 0x3c4e, 0x0, 0x3d33, 0x0, 0x3d96, 0x0, 0x3eac, 0x0, 0x3eb8, 0x0, 0x3f1b, 0x0, 0x3ffc, 0x0, 0x4008, 0x0, 0x4018, 0x0, 0x4039, 0x0, 0x4046, 0x0, 0x4096, 0x0, 0x40e3, 0x0, 0x412f, 0x0, 0x4202, 0x0, 0x4227, 0x0, 0x42a0, 0x0, 0x4301, 0x0, 0x4334, 0x0, 0x4359, 0x0, 0x43d5, 0x0, 0x43d9, 0x0, 0x440b, 0x0, 0x446b, 0x0, 0x452b, 0x0, 0x455d, 0x0, 0x4561, 0x0, 0x456b, 0x0, 0x45d7, 0x0, 0x45f9, 0x0, 0x4635, 0x0, 0x46be, 0x0, 0x46c7, 0x0, 0x4995, 0x0, 0x49e6, 0x0, 0x4a6e, 0x0, 0x4a76, 0x0, 0x4ab2, 0x0, 0x4b33, 0x0, 0x4bce, 0x0, 0x4cce, 0x0, 0x4ced, 0x0, 0x4cf8, 0x0, 0x4d56, 0x0, 0x4e0d, 0x0, 0x4e26, 0x0, 0x4e32, 0x0, 0x4e38, 0x0, 0x4e39, 0x0, 0x4e3d, 0x0, 0x4e41, 0x0, 0x4e82, 0x0, 0x4e86, 0x0, 0x4eae, 0x0, 0x4ec0, 0x0, 0x4ecc, 0x0, 0x4ee4, 0x0, 0x4f60, 0x0, 0x4f80, 0x0, 0x4f86, 0x0, 0x4f8b, 0x0, 0x4fae, 0x0, 0x4fbb, 0x0, 0x4fbf, 0x0, 0x5002, 0x0, 0x502b, 0x0, 0x507a, 0x0, 0x5099, 0x0, 0x50cf, 0x0, 0x50da, 0x0, 0x50e7, 0x0, 0x5140, 0x0, 0x5145, 0x0, 0x514d, 0x0, 0x5154, 0x0, 0x5164, 0x0, 0x5167, 0x0, 0x5168, 0x0, 0x5169, 0x0, 0x516d, 0x0, 0x5177, 0x0, 0x5180, 0x0, 0x518d, 0x0, 0x5192, 0x0, 0x5195, 0x0, 0x5197, 0x0, 0x51a4, 0x0, 0x51ac, 0x0, 0x51b5, 0x0, 0x51b7, 0x0, 0x51c9, 0x0, 0x51cc, 0x0, 0x51dc, 0x0, 0x51de, 0x0, 0x51f5, 0x0, 0x5203, 0x0, 0x5207, 0x0, 0x5217, 0x0, 0x5229, 0x0, 0x523a, 0x0, 0x523b, 0x0, 0x5246, 0x0, 0x5272, 0x0, 0x5277, 0x0, 0x5289, 0x0, 0x529b, 0x0, 0x52a3, 0x0, 0x52b3, 0x0, 0x52c7, 0x0, 0x52c9, 0x0, 0x52d2, 0x0, 0x52de, 0x0, 0x52e4, 0x0, 0x52f5, 0x0, 0x52fa, 0x0, 0x5305, 0x0, 0x5306, 0x0, 0x5317, 0x0, 0x533f, 0x0, 0x5349, 0x0, 0x5351, 0x0, 0x535a, 0x0, 0x5373, 0x0, 0x5375, 0x0, 0x537d, 0x0, 0x537f, 0x0, 0x53c3, 0x0, 0x53ca, 0x0, 0x53df, 0x0, 0x53e5, 0x0, 0x53eb, 0x0, 0x53f1, 0x0, 0x5406, 0x0, 0x540f, 0x0, 0x541d, 0x0, 0x5438, 0x0, 0x5442, 0x0, 0x5448, 0x0, 0x5468, 0x0, 0x549e, 0x0, 0x54a2, 0x0, 0x54bd, 0x0, 0x54f6, 0x0, 0x5510, 0x0, 0x5553, 0x0, 0x5555, 0x0, 0x5563, 0x0, 0x5584, 0x0, 0x5587, 0x0, 0x5599, 0x0, 0x559d, 0x0, 0x55ab, 0x0, 0x55b3, 0x0, 0x55c0, 0x0, 0x55c2, 0x0, 0x55e2, 0x0, 0x5606, 0x0, 0x5651, 0x0, 0x5668, 0x0, 0x5674, 0x0, 0x56f9, 0x0, 0x5716, 0x0, 0x5717, 0x0, 0x578b, 0x0, 0x57ce, 0x0, 0x57f4, 0x0, 0x580d, 0x0, 0x5831, 0x0, 0x5832, 0x0, 0x5840, 0x0, 0x585a, 0x0, 0x585e, 0x0, 0x58a8, 0x0, 0x58ac, 0x0, 0x58b3, 0x0, 0x58d8, 0x0, 0x58df, 0x0, 0x58ee, 0x0, 0x58f2, 0x0, 0x58f7, 0x0, 0x5906, 0x0, 0x591a, 0x0, 0x5922, 0x0, 0x5944, 0x0, 0x5948, 0x0, 0x5951, 0x0, 0x5954, 0x0, 0x5962, 0x0, 0x5973, 0x0, 0x59d8, 0x0, 0x59ec, 0x0, 0x5a1b, 0x0, 0x5a27, 0x0, 0x5a62, 0x0, 0x5a66, 0x0, 0x5ab5, 0x0, 0x5b08, 0x0, 0x5b28, 0x0, 0x5b3e, 0x0, 0x5b85, 0x0, 0x5bc3, 0x0, 0x5bd8, 0x0, 0x5be7, 0x0, 0x5bee, 0x0, 0x5bf3, 0x0, 0x5bff, 0x0, 0x5c06, 0x0, 0x5c22, 0x0, 0x5c3f, 0x0, 0x5c60, 0x0, 0x5c62, 0x0, 0x5c64, 0x0, 0x5c65, 0x0, 0x5c6e, 0x0, 0x5c8d, 0x0, 0x5cc0, 0x0, 0x5d19, 0x0, 0x5d43, 0x0, 0x5d50, 0x0, 0x5d6b, 0x0, 0x5d6e, 0x0, 0x5d7c, 0x0, 0x5db2, 0x0, 0x5dba, 0x0, 0x5de1, 0x0, 0x5de2, 0x0, 0x5dfd, 0x0, 0x5e28, 0x0, 0x5e3d, 0x0, 0x5e69, 0x0, 0x5e74, 0x0, 0x5ea6, 0x0, 0x5eb0, 0x0, 0x5eb3, 0x0, 0x5eb6, 0x0, 0x5ec9, 0x0, 0x5eca, 0x0, 0x5ed2, 0x0, 0x5ed3, 0x0, 0x5ed9, 0x0, 0x5eec, 0x0, 0x5efe, 0x0, 0x5f04, 0x0, 0x5f22, 0x0, 0x5f53, 0x0, 0x5f62, 0x0, 0x5f69, 0x0, 0x5f6b, 0x0, 0x5f8b, 0x0, 0x5f9a, 0x0, 0x5fa9, 0x0, 0x5fad, 0x0, 0x5fcd, 0x0, 0x5fd7, 0x0, 0x5ff5, 0x0, 0x5ff9, 0x0, 0x6012, 0x0, 0x601c, 0x0, 0x6075, 0x0, 0x6081, 0x0, 0x6094, 0x0, 0x60c7, 0x0, 0x60d8, 0x0, 0x60e1, 0x0, 0x6108, 0x0, 0x6144, 0x0, 0x6148, 0x0, 0x614c, 0x0, 0x614e, 0x0, 0x6160, 0x0, 0x6168, 0x0, 0x617a, 0x0, 0x618e, 0x0, 0x6190, 0x0, 0x61a4, 0x0, 0x61af, 0x0, 0x61b2, 0x0, 0x61de, 0x0, 0x61f2, 0x0, 0x61f6, 0x0, 0x6200, 0x0, 0x6210, 0x0, 0x621b, 0x0, 0x622e, 0x0, 0x6234, 0x0, 0x625d, 0x0, 0x62b1, 0x0, 0x62c9, 0x0, 0x62cf, 0x0, 0x62d3, 0x0, 0x62d4, 0x0, 0x62fc, 0x0, 0x62fe, 0x0, 0x633d, 0x0, 0x6350, 0x0, 0x6368, 0x0, 0x637b, 0x0, 0x6383, 0x0, 0x63a0, 0x0, 0x63a9, 0x0, 0x63c4, 0x0, 0x63c5, 0x0, 0x63e4, 0x0, 0x641c, 0x0, 0x6422, 0x0, 0x6452, 0x0, 0x6469, 0x0, 0x6477, 0x0, 0x647e, 0x0, 0x649a, 0x0, 0x649d, 0x0, 0x64c4, 0x0, 0x654f, 0x0, 0x6556, 0x0, 0x656c, 0x0, 0x6578, 0x0, 0x6599, 0x0, 0x65c5, 0x0, 0x65e2, 0x0, 0x65e3, 0x0, 0x6613, 0x0, 0x6649, 0x0, 0x6674, 0x0, 0x6688, 0x0, 0x6691, 0x0, 0x669c, 0x0, 0x66b4, 0x0, 0x66c6, 0x0, 0x66f4, 0x0, 0x66f8, 0x0, 0x6700, 0x0, 0x6717, 0x0, 0x671b, 0x0, 0x6721, 0x0, 0x674e, 0x0, 0x6753, 0x0, 0x6756, 0x0, 0x675e, 0x0, 0x677b, 0x0, 0x6785, 0x0, 0x6797, 0x0, 0x67f3, 0x0, 0x67fa, 0x0, 0x6817, 0x0, 0x681f, 0x0, 0x6852, 0x0, 0x6881, 0x0, 0x6885, 0x0, 0x688e, 0x0, 0x68a8, 0x0, 0x6914, 0x0, 0x6942, 0x0, 0x69a3, 0x0, 0x69ea, 0x0, 0x6a02, 0x0, 0x6a13, 0x0, 0x6aa8, 0x0, 0x6ad3, 0x0, 0x6adb, 0x0, 0x6b04, 0x0, 0x6b21, 0x0, 0x6b54, 0x0, 0x6b72, 0x0, 0x6b77, 0x0, 0x6b79, 0x0, 0x6b9f, 0x0, 0x6bae, 0x0, 0x6bba, 0x0, 0x6bbb, 0x0, 0x6c4e, 0x0, 0x6c67, 0x0, 0x6c88, 0x0, 0x6cbf, 0x0, 0x6ccc, 0x0, 0x6ccd, 0x0, 0x6ce5, 0x0, 0x6d16, 0x0, 0x6d1b, 0x0, 0x6d1e, 0x0, 0x6d34, 0x0, 0x6d3e, 0x0, 0x6d41, 0x0, 0x6d69, 0x0, 0x6d6a, 0x0, 0x6d77, 0x0, 0x6d78, 0x0, 0x6d85, 0x0, 0x6dcb, 0x0, 0x6dda, 0x0, 0x6dea, 0x0, 0x6df9, 0x0, 0x6e1a, 0x0, 0x6e2f, 0x0, 0x6e6e, 0x0, 0x6e9c, 0x0, 0x6eba, 0x0, 0x6ec7, 0x0, 0x6ecb, 0x0, 0x6ed1, 0x0, 0x6edb, 0x0, 0x6f0f, 0x0, 0x6f22, 0x0, 0x6f23, 0x0, 0x6f6e, 0x0, 0x6fc6, 0x0, 0x6feb, 0x0, 0x6ffe, 0x0, 0x701b, 0x0, 0x701e, 0x0, 0x7039, 0x0, 0x704a, 0x0, 0x7070, 0x0, 0x7077, 0x0, 0x707d, 0x0, 0x7099, 0x0, 0x70ad, 0x0, 0x70c8, 0x0, 0x70d9, 0x0, 0x7145, 0x0, 0x7149, 0x0, 0x716e, 0x0, 0x719c, 0x0, 0x71ce, 0x0, 0x71d0, 0x0, 0x7210, 0x0, 0x721b, 0x0, 0x7228, 0x0, 0x722b, 0x0, 0x7235, 0x0, 0x7250, 0x0, 0x7262, 0x0, 0x7280, 0x0, 0x7295, 0x0, 0x72af, 0x0, 0x72c0, 0x0, 0x72fc, 0x0, 0x732a, 0x0, 0x7375, 0x0, 0x737a, 0x0, 0x7387, 0x0, 0x738b, 0x0, 0x73a5, 0x0, 0x73b2, 0x0, 0x73de, 0x0, 0x7406, 0x0, 0x7409, 0x0, 0x7422, 0x0, 0x7447, 0x0, 0x745c, 0x0, 0x7469, 0x0, 0x7471, 0x0, 0x7485, 0x0, 0x7489, 0x0, 0x7498, 0x0, 0x74ca, 0x0, 0x7506, 0x0, 0x7524, 0x0, 0x753b, 0x0, 0x753e, 0x0, 0x7559, 0x0, 0x7565, 0x0, 0x7570, 0x0, 0x75e2, 0x0, 0x7610, 0x0, 0x761d, 0x0, 0x761f, 0x0, 0x7642, 0x0, 0x7669, 0x0, 0x76ca, 0x0, 0x76db, 0x0, 0x76e7, 0x0, 0x76f4, 0x0, 0x7701, 0x0, 0x771e, 0x0, 0x771f, 0x0, 0x7740, 0x0, 0x774a, 0x0, 0x778b, 0x0, 0x77a7, 0x0, 0x784e, 0x0, 0x786b, 0x0, 0x788c, 0x0, 0x7891, 0x0, 0x78ca, 0x0, 0x78cc, 0x0, 0x78fb, 0x0, 0x792a, 0x0, 0x793c, 0x0, 0x793e, 0x0, 0x7948, 0x0, 0x7949, 0x0, 0x7950, 0x0, 0x7956, 0x0, 0x795d, 0x0, 0x795e, 0x0, 0x7965, 0x0, 0x797f, 0x0, 0x798d, 0x0, 0x798e, 0x0, 0x798f, 0x0, 0x79ae, 0x0, 0x79ca, 0x0, 0x79eb, 0x0, 0x7a1c, 0x0, 0x7a40, 0x0, 0x7a4a, 0x0, 0x7a4f, 0x0, 0x7a81, 0x0, 0x7ab1, 0x0, 0x7acb, 0x0, 0x7aee, 0x0, 0x7b20, 0x0, 0x7bc0, 0x0, 0x7bc6, 0x0, 0x7bc9, 0x0, 0x7c3e, 0x0, 0x7c60, 0x0, 0x7c7b, 0x0, 0x7c92, 0x0, 0x7cbe, 0x0, 0x7cd2, 0x0, 0x7cd6, 0x0, 0x7ce3, 0x0, 0x7ce7, 0x0, 0x7ce8, 0x0, 0x7d00, 0x0, 0x7d10, 0x0, 0x7d22, 0x0, 0x7d2f, 0x0, 0x7d5b, 0x0, 0x7d63, 0x0, 0x7da0, 0x0, 0x7dbe, 0x0, 0x7dc7, 0x0, 0x7df4, 0x0, 0x7e02, 0x0, 0x7e09, 0x0, 0x7e37, 0x0, 0x7e41, 0x0, 0x7e45, 0x0, 0x7f3e, 0x0, 0x7f72, 0x0, 0x7f79, 0x0, 0x7f7a, 0x0, 0x7f85, 0x0, 0x7f95, 0x0, 0x7f9a, 0x0, 0x7fbd, 0x0, 0x7ffa, 0x0, 0x8001, 0x0, 0x8005, 0x0, 0x8046, 0x0, 0x8060, 0x0, 0x806f, 0x0, 0x8070, 0x0, 0x807e, 0x0, 0x808b, 0x0, 0x80ad, 0x0, 0x80b2, 0x0, 0x8103, 0x0, 0x813e, 0x0, 0x81d8, 0x0, 0x81e8, 0x0, 0x81ed, 0x0, 0x8201, 0x0, 0x8204, 0x0, 0x8218, 0x0, 0x826f, 0x0, 0x8279, 0x0, 0x828b, 0x0, 0x8291, 0x0, 0x829d, 0x0, 0x82b1, 0x0, 0x82b3, 0x0, 0x82bd, 0x0, 0x82e5, 0x0, 0x82e6, 0x0, 0x831d, 0x0, 0x8323, 0x0, 0x8336, 0x0, 0x8352, 0x0, 0x8353, 0x0, 0x8363, 0x0, 0x83ad, 0x0, 0x83bd, 0x0, 0x83c9, 0x0, 0x83ca, 0x0, 0x83cc, 0x0, 0x83dc, 0x0, 0x83e7, 0x0, 0x83ef, 0x0, 0x83f1, 0x0, 0x843d, 0x0, 0x8449, 0x0, 0x8457, 0x0, 0x84ee, 0x0, 0x84f1, 0x0, 0x84f3, 0x0, 0x84fc, 0x0, 0x8516, 0x0, 0x8564, 0x0, 0x85cd, 0x0, 0x85fa, 0x0, 0x8606, 0x0, 0x8612, 0x0, 0x862d, 0x0, 0x863f, 0x0, 0x8650, 0x0, 0x865c, 0x0, 0x8667, 0x0, 0x8669, 0x0, 0x8688, 0x0, 0x86a9, 0x0, 0x86e2, 0x0, 0x870e, 0x0, 0x8728, 0x0, 0x876b, 0x0, 0x8779, 0x0, 0x8786, 0x0, 0x87ba, 0x0, 0x87e1, 0x0, 0x8801, 0x0, 0x881f, 0x0, 0x884c, 0x0, 0x8860, 0x0, 0x8863, 0x0, 0x88c2, 0x0, 0x88cf, 0x0, 0x88d7, 0x0, 0x88de, 0x0, 0x88e1, 0x0, 0x88f8, 0x0, 0x88fa, 0x0, 0x8910, 0x0, 0x8941, 0x0, 0x8964, 0x0, 0x8986, 0x0, 0x898b, 0x0, 0x8996, 0x0, 0x8aa0, 0x0, 0x8aaa, 0x0, 0x8abf, 0x0, 0x8acb, 0x0, 0x8ad2, 0x0, 0x8ad6, 0x0, 0x8aed, 0x0, 0x8af8, 0x0, 0x8afe, 0x0, 0x8b01, 0x0, 0x8b39, 0x0, 0x8b58, 0x0, 0x8b80, 0x0, 0x8b8a, 0x0, 0x8c48, 0x0, 0x8c55, 0x0, 0x8cab, 0x0, 0x8cc1, 0x0, 0x8cc2, 0x0, 0x8cc8, 0x0, 0x8cd3, 0x0, 0x8d08, 0x0, 0x8d1b, 0x0, 0x8d77, 0x0, 0x8dbc, 0x0, 0x8dcb, 0x0, 0x8def, 0x0, 0x8df0, 0x0, 0x8eca, 0x0, 0x8ed4, 0x0, 0x8f26, 0x0, 0x8f2a, 0x0, 0x8f38, 0x0, 0x8f3b, 0x0, 0x8f62, 0x0, 0x8f9e, 0x0, 0x8fb0, 0x0, 0x8fb6, 0x0, 0x9023, 0x0, 0x9038, 0x0, 0x9072, 0x0, 0x907c, 0x0, 0x908f, 0x0, 0x9094, 0x0, 0x90ce, 0x0, 0x90de, 0x0, 0x90f1, 0x0, 0x90fd, 0x0, 0x9111, 0x0, 0x911b, 0x0, 0x916a, 0x0, 0x9199, 0x0, 0x91b4, 0x0, 0x91cc, 0x0, 0x91cf, 0x0, 0x91d1, 0x0, 0x9234, 0x0, 0x9238, 0x0, 0x9276, 0x0, 0x927c, 0x0, 0x92d7, 0x0, 0x92d8, 0x0, 0x9304, 0x0, 0x934a, 0x0, 0x93f9, 0x0, 0x9415, 0x0, 0x958b, 0x0, 0x95ad, 0x0, 0x95b7, 0x0, 0x962e, 0x0, 0x964b, 0x0, 0x964d, 0x0, 0x9675, 0x0, 0x9678, 0x0, 0x967c, 0x0, 0x9686, 0x0, 0x96a3, 0x0, 0x96b7, 0x0, 0x96b8, 0x0, 0x96c3, 0x0, 0x96e2, 0x0, 0x96e3, 0x0, 0x96f6, 0x0, 0x96f7, 0x0, 0x9723, 0x0, 0x9732, 0x0, 0x9748, 0x0, 0x9756, 0x0, 0x97db, 0x0, 0x97e0, 0x0, 0x97ff, 0x0, 0x980b, 0x0, 0x9818, 0x0, 0x9829, 0x0, 0x983b, 0x0, 0x985e, 0x0, 0x98e2, 0x0, 0x98ef, 0x0, 0x98fc, 0x0, 0x9928, 0x0, 0x9929, 0x0, 0x99a7, 0x0, 0x99c2, 0x0, 0x99f1, 0x0, 0x99fe, 0x0, 0x9a6a, 0x0, 0x9b12, 0x0, 0x9b6f, 0x0, 0x9c40, 0x0, 0x9c57, 0x0, 0x9cfd, 0x0, 0x9d67, 0x0, 0x9db4, 0x0, 0x9dfa, 0x0, 0x9e1e, 0x0, 0x9e7f, 0x0, 0x9e97, 0x0, 0x9e9f, 0x0, 0x9ebb, 0x0, 0x9ece, 0x0, 0x9ef9, 0x0, 0x9efe, 0x0, 0x9f05, 0x0, 0x9f0f, 0x0, 0x9f16, 0x0, 0x9f3b, 0x0, 0x9f43, 0x0, 0x9f8d, 0x0, 0x9f8e, 0x0, 0x9f9c, 0x0, 0x11099, 0x110ba, 0x0, 0x1109b, 0x110ba, 0x0, 0x110a5, 0x110ba, 0x0, 0x11131, 0x11127, 0x0, 0x11132, 0x11127, 0x0, 0x1d157, 0x1d165, 0x0, 0x1d158, 0x1d165, 0x0, 0x1d158, 0x1d165, 0x1d16e, 0x0, 0x1d158, 0x1d165, 0x1d16f, 0x0, 0x1d158, 0x1d165, 0x1d170, 0x0, 0x1d158, 0x1d165, 0x1d171, 0x0, 0x1d158, 0x1d165, 0x1d172, 0x0, 0x1d1b9, 0x1d165, 0x0, 0x1d1b9, 0x1d165, 0x1d16e, 0x0, 0x1d1b9, 0x1d165, 0x1d16f, 0x0, 0x1d1ba, 0x1d165, 0x0, 0x1d1ba, 0x1d165, 0x1d16e, 0x0, 0x1d1ba, 0x1d165, 0x1d16f, 0x0, 0x20122, 0x0, 0x2051c, 0x0, 0x20525, 0x0, 0x2054b, 0x0, 0x2063a, 0x0, 0x20804, 0x0, 0x208de, 0x0, 0x20a2c, 0x0, 0x20b63, 0x0, 0x214e4, 0x0, 0x216a8, 0x0, 0x216ea, 0x0, 0x219c8, 0x0, 0x21b18, 0x0, 0x21d0b, 0x0, 0x21de4, 0x0, 0x21de6, 0x0, 0x22183, 0x0, 0x2219f, 0x0, 0x22331, 0x0, 0x226d4, 0x0, 0x22844, 0x0, 0x2284a, 0x0, 0x22b0c, 0x0, 0x22bf1, 0x0, 0x2300a, 0x0, 0x232b8, 0x0, 0x2335f, 0x0, 0x23393, 0x0, 0x2339c, 0x0, 0x233c3, 0x0, 0x233d5, 0x0, 0x2346d, 0x0, 0x236a3, 0x0, 0x238a7, 0x0, 0x23a8d, 0x0, 0x23afa, 0x0, 0x23cbc, 0x0, 0x23d1e, 0x0, 0x23ed1, 0x0, 0x23f5e, 0x0, 0x23f8e, 0x0, 0x24263, 0x0, 0x242ee, 0x0, 0x243ab, 0x0, 0x24608, 0x0, 0x24735, 0x0, 0x24814, 0x0, 0x24c36, 0x0, 0x24c92, 0x0, 0x24fa1, 0x0, 0x24fb8, 0x0, 0x25044, 0x0, 0x250f2, 0x0, 0x250f3, 0x0, 0x25119, 0x0, 0x25133, 0x0, 0x25249, 0x0, 0x2541d, 0x0, 0x25626, 0x0, 0x2569a, 0x0, 0x256c5, 0x0, 0x2597c, 0x0, 0x25aa7, 0x0, 0x25bab, 0x0, 0x25c80, 0x0, 0x25cd0, 0x0, 0x25f86, 0x0, 0x261da, 0x0, 0x26228, 0x0, 0x26247, 0x0, 0x262d9, 0x0, 0x2633e, 0x0, 0x264da, 0x0, 0x26523, 0x0, 0x265a8, 0x0, 0x267a7, 0x0, 0x267b5, 0x0, 0x26b3c, 0x0, 0x26c36, 0x0, 0x26cd5, 0x0, 0x26d6b, 0x0, 0x26f2c, 0x0, 0x26fb1, 0x0, 0x270d2, 0x0, 0x273ca, 0x0, 0x27667, 0x0, 0x278ae, 0x0, 0x27966, 0x0, 0x27ca8, 0x0, 0x27ed3, 0x0, 0x27f2f, 0x0, 0x285d2, 0x0, 0x285ed, 0x0, 0x2872e, 0x0, 0x28bfa, 0x0, 0x28d77, 0x0, 0x29145, 0x0, 0x291df, 0x0, 0x2921a, 0x0, 0x2940a, 0x0, 0x29496, 0x0, 0x295b6, 0x0, 0x29b30, 0x0, 0x2a0ce, 0x0, 0x2a105, 0x0, 0x2a20e, 0x0, 0x2a291, 0x0, 0x2a392, 0x0, 0x2a600, 0x0]; return t; }
_IDCA decompCompatTable() { static _IDCA t = [ 0x0, 0x20, 0x0, 0x20, 0x301, 0x0, 0x20, 0x303, 0x0, 0x20, 0x304, 0x0, 0x20, 0x305, 0x0, 0x20, 0x306, 0x0, 0x20, 0x307, 0x0, 0x20, 0x308, 0x0, 0x20, 0x308, 0x300, 0x0, 0x20, 0x308, 0x301, 0x0, 0x20, 0x308, 0x342, 0x0, 0x20, 0x30a, 0x0, 0x20, 0x30b, 0x0, 0x20, 0x313, 0x0, 0x20, 0x313, 0x300, 0x0, 0x20, 0x313, 0x301, 0x0, 0x20, 0x313, 0x342, 0x0, 0x20, 0x314, 0x0, 0x20, 0x314, 0x300, 0x0, 0x20, 0x314, 0x301, 0x0, 0x20, 0x314, 0x342, 0x0, 0x20, 0x327, 0x0, 0x20, 0x328, 0x0, 0x20, 0x333, 0x0, 0x20, 0x342, 0x0, 0x20, 0x345, 0x0, 0x20, 0x64b, 0x0, 0x20, 0x64c, 0x0, 0x20, 0x64c, 0x651, 0x0, 0x20, 0x64d, 0x0, 0x20, 0x64d, 0x651, 0x0, 0x20, 0x64e, 0x0, 0x20, 0x64e, 0x651, 0x0, 0x20, 0x64f, 0x0, 0x20, 0x64f, 0x651, 0x0, 0x20, 0x650, 0x0, 0x20, 0x650, 0x651, 0x0, 0x20, 0x651, 0x0, 0x20, 0x651, 0x670, 0x0, 0x20, 0x652, 0x0, 0x20, 0x3099, 0x0, 0x20, 0x309a, 0x0, 0x21, 0x0, 0x21, 0x21, 0x0, 0x21, 0x3f, 0x0, 0x22, 0x0, 0x23, 0x0, 0x24, 0x0, 0x25, 0x0, 0x26, 0x0, 0x27, 0x0, 0x28, 0x0, 0x28, 0x31, 0x29, 0x0, 0x28, 0x31, 0x30, 0x29, 0x0, 0x28, 0x31, 0x31, 0x29, 0x0, 0x28, 0x31, 0x32, 0x29, 0x0, 0x28, 0x31, 0x33, 0x29, 0x0, 0x28, 0x31, 0x34, 0x29, 0x0, 0x28, 0x31, 0x35, 0x29, 0x0, 0x28, 0x31, 0x36, 0x29, 0x0, 0x28, 0x31, 0x37, 0x29, 0x0, 0x28, 0x31, 0x38, 0x29, 0x0, 0x28, 0x31, 0x39, 0x29, 0x0, 0x28, 0x32, 0x29, 0x0, 0x28, 0x32, 0x30, 0x29, 0x0, 0x28, 0x33, 0x29, 0x0, 0x28, 0x34, 0x29, 0x0, 0x28, 0x35, 0x29, 0x0, 0x28, 0x36, 0x29, 0x0, 0x28, 0x37, 0x29, 0x0, 0x28, 0x38, 0x29, 0x0, 0x28, 0x39, 0x29, 0x0, 0x28, 0x41, 0x29, 0x0, 0x28, 0x42, 0x29, 0x0, 0x28, 0x43, 0x29, 0x0, 0x28, 0x44, 0x29, 0x0, 0x28, 0x45, 0x29, 0x0, 0x28, 0x46, 0x29, 0x0, 0x28, 0x47, 0x29, 0x0, 0x28, 0x48, 0x29, 0x0, 0x28, 0x49, 0x29, 0x0, 0x28, 0x4a, 0x29, 0x0, 0x28, 0x4b, 0x29, 0x0, 0x28, 0x4c, 0x29, 0x0, 0x28, 0x4d, 0x29, 0x0, 0x28, 0x4e, 0x29, 0x0, 0x28, 0x4f, 0x29, 0x0, 0x28, 0x50, 0x29, 0x0, 0x28, 0x51, 0x29, 0x0, 0x28, 0x52, 0x29, 0x0, 0x28, 0x53, 0x29, 0x0, 0x28, 0x54, 0x29, 0x0, 0x28, 0x55, 0x29, 0x0, 0x28, 0x56, 0x29, 0x0, 0x28, 0x57, 0x29, 0x0, 0x28, 0x58, 0x29, 0x0, 0x28, 0x59, 0x29, 0x0, 0x28, 0x5a, 0x29, 0x0, 0x28, 0x61, 0x29, 0x0, 0x28, 0x62, 0x29, 0x0, 0x28, 0x63, 0x29, 0x0, 0x28, 0x64, 0x29, 0x0, 0x28, 0x65, 0x29, 0x0, 0x28, 0x66, 0x29, 0x0, 0x28, 0x67, 0x29, 0x0, 0x28, 0x68, 0x29, 0x0, 0x28, 0x69, 0x29, 0x0, 0x28, 0x6a, 0x29, 0x0, 0x28, 0x6b, 0x29, 0x0, 0x28, 0x6c, 0x29, 0x0, 0x28, 0x6d, 0x29, 0x0, 0x28, 0x6e, 0x29, 0x0, 0x28, 0x6f, 0x29, 0x0, 0x28, 0x70, 0x29, 0x0, 0x28, 0x71, 0x29, 0x0, 0x28, 0x72, 0x29, 0x0, 0x28, 0x73, 0x29, 0x0, 0x28, 0x74, 0x29, 0x0, 0x28, 0x75, 0x29, 0x0, 0x28, 0x76, 0x29, 0x0, 0x28, 0x77, 0x29, 0x0, 0x28, 0x78, 0x29, 0x0, 0x28, 0x79, 0x29, 0x0, 0x28, 0x7a, 0x29, 0x0, 0x28, 0x1100, 0x29, 0x0, 0x28, 0x1100, 0x1161, 0x29, 0x0, 0x28, 0x1102, 0x29, 0x0, 0x28, 0x1102, 0x1161, 0x29, 0x0, 0x28, 0x1103, 0x29, 0x0, 0x28, 0x1103, 0x1161, 0x29, 0x0, 0x28, 0x1105, 0x29, 0x0, 0x28, 0x1105, 0x1161, 0x29, 0x0, 0x28, 0x1106, 0x29, 0x0, 0x28, 0x1106, 0x1161, 0x29, 0x0, 0x28, 0x1107, 0x29, 0x0, 0x28, 0x1107, 0x1161, 0x29, 0x0, 0x28, 0x1109, 0x29, 0x0, 0x28, 0x1109, 0x1161, 0x29, 0x0, 0x28, 0x110b, 0x29, 0x0, 0x28, 0x110b, 0x1161, 0x29, 0x0, 0x28, 0x110b, 0x1169, 0x110c, 0x1165, 0x11ab, 0x29, 0x0, 0x28, 0x110b, 0x1169, 0x1112, 0x116e, 0x29, 0x0, 0x28, 0x110c, 0x29, 0x0, 0x28, 0x110c, 0x1161, 0x29, 0x0, 0x28, 0x110c, 0x116e, 0x29, 0x0, 0x28, 0x110e, 0x29, 0x0, 0x28, 0x110e, 0x1161, 0x29, 0x0, 0x28, 0x110f, 0x29, 0x0, 0x28, 0x110f, 0x1161, 0x29, 0x0, 0x28, 0x1110, 0x29, 0x0, 0x28, 0x1110, 0x1161, 0x29, 0x0, 0x28, 0x1111, 0x29, 0x0, 0x28, 0x1111, 0x1161, 0x29, 0x0, 0x28, 0x1112, 0x29, 0x0, 0x28, 0x1112, 0x1161, 0x29, 0x0, 0x28, 0x4e00, 0x29, 0x0, 0x28, 0x4e03, 0x29, 0x0, 0x28, 0x4e09, 0x29, 0x0, 0x28, 0x4e5d, 0x29, 0x0, 0x28, 0x4e8c, 0x29, 0x0, 0x28, 0x4e94, 0x29, 0x0, 0x28, 0x4ee3, 0x29, 0x0, 0x28, 0x4f01, 0x29, 0x0, 0x28, 0x4f11, 0x29, 0x0, 0x28, 0x516b, 0x29, 0x0, 0x28, 0x516d, 0x29, 0x0, 0x28, 0x52b4, 0x29, 0x0, 0x28, 0x5341, 0x29, 0x0, 0x28, 0x5354, 0x29, 0x0, 0x28, 0x540d, 0x29, 0x0, 0x28, 0x547c, 0x29, 0x0, 0x28, 0x56db, 0x29, 0x0, 0x28, 0x571f, 0x29, 0x0, 0x28, 0x5b66, 0x29, 0x0, 0x28, 0x65e5, 0x29, 0x0, 0x28, 0x6708, 0x29, 0x0, 0x28, 0x6709, 0x29, 0x0, 0x28, 0x6728, 0x29, 0x0, 0x28, 0x682a, 0x29, 0x0, 0x28, 0x6c34, 0x29, 0x0, 0x28, 0x706b, 0x29, 0x0, 0x28, 0x7279, 0x29, 0x0, 0x28, 0x76e3, 0x29, 0x0, 0x28, 0x793e, 0x29, 0x0, 0x28, 0x795d, 0x29, 0x0, 0x28, 0x796d, 0x29, 0x0, 0x28, 0x81ea, 0x29, 0x0, 0x28, 0x81f3, 0x29, 0x0, 0x28, 0x8ca1, 0x29, 0x0, 0x28, 0x8cc7, 0x29, 0x0, 0x28, 0x91d1, 0x29, 0x0, 0x29, 0x0, 0x2a, 0x0, 0x2b, 0x0, 0x2c, 0x0, 0x2d, 0x0, 0x2e, 0x0, 0x2e, 0x2e, 0x0, 0x2e, 0x2e, 0x2e, 0x0, 0x2f, 0x0, 0x30, 0x0, 0x30, 0x2c, 0x0, 0x30, 0x2e, 0x0, 0x30, 0x2044, 0x33, 0x0, 0x30, 0x70b9, 0x0, 0x31, 0x0, 0x31, 0x2c, 0x0, 0x31, 0x2e, 0x0, 0x31, 0x30, 0x0, 0x31, 0x30, 0x2e, 0x0, 0x31, 0x30, 0x65e5, 0x0, 0x31, 0x30, 0x6708, 0x0, 0x31, 0x30, 0x70b9, 0x0, 0x31, 0x31, 0x0, 0x31, 0x31, 0x2e, 0x0, 0x31, 0x31, 0x65e5, 0x0, 0x31, 0x31, 0x6708, 0x0, 0x31, 0x31, 0x70b9, 0x0, 0x31, 0x32, 0x0, 0x31, 0x32, 0x2e, 0x0, 0x31, 0x32, 0x65e5, 0x0, 0x31, 0x32, 0x6708, 0x0, 0x31, 0x32, 0x70b9, 0x0, 0x31, 0x33, 0x0, 0x31, 0x33, 0x2e, 0x0, 0x31, 0x33, 0x65e5, 0x0, 0x31, 0x33, 0x70b9, 0x0, 0x31, 0x34, 0x0, 0x31, 0x34, 0x2e, 0x0, 0x31, 0x34, 0x65e5, 0x0, 0x31, 0x34, 0x70b9, 0x0, 0x31, 0x35, 0x0, 0x31, 0x35, 0x2e, 0x0, 0x31, 0x35, 0x65e5, 0x0, 0x31, 0x35, 0x70b9, 0x0, 0x31, 0x36, 0x0, 0x31, 0x36, 0x2e, 0x0, 0x31, 0x36, 0x65e5, 0x0, 0x31, 0x36, 0x70b9, 0x0, 0x31, 0x37, 0x0, 0x31, 0x37, 0x2e, 0x0, 0x31, 0x37, 0x65e5, 0x0, 0x31, 0x37, 0x70b9, 0x0, 0x31, 0x38, 0x0, 0x31, 0x38, 0x2e, 0x0, 0x31, 0x38, 0x65e5, 0x0, 0x31, 0x38, 0x70b9, 0x0, 0x31, 0x39, 0x0, 0x31, 0x39, 0x2e, 0x0, 0x31, 0x39, 0x65e5, 0x0, 0x31, 0x39, 0x70b9, 0x0, 0x31, 0x2044, 0x0, 0x31, 0x2044, 0x31, 0x30, 0x0, 0x31, 0x2044, 0x32, 0x0, 0x31, 0x2044, 0x33, 0x0, 0x31, 0x2044, 0x34, 0x0, 0x31, 0x2044, 0x35, 0x0, 0x31, 0x2044, 0x36, 0x0, 0x31, 0x2044, 0x37, 0x0, 0x31, 0x2044, 0x38, 0x0, 0x31, 0x2044, 0x39, 0x0, 0x31, 0x65e5, 0x0, 0x31, 0x6708, 0x0, 0x31, 0x70b9, 0x0, 0x32, 0x0, 0x32, 0x2c, 0x0, 0x32, 0x2e, 0x0, 0x32, 0x30, 0x0, 0x32, 0x30, 0x2e, 0x0, 0x32, 0x30, 0x65e5, 0x0, 0x32, 0x30, 0x70b9, 0x0, 0x32, 0x31, 0x0, 0x32, 0x31, 0x65e5, 0x0, 0x32, 0x31, 0x70b9, 0x0, 0x32, 0x32, 0x0, 0x32, 0x32, 0x65e5, 0x0, 0x32, 0x32, 0x70b9, 0x0, 0x32, 0x33, 0x0, 0x32, 0x33, 0x65e5, 0x0, 0x32, 0x33, 0x70b9, 0x0, 0x32, 0x34, 0x0, 0x32, 0x34, 0x65e5, 0x0, 0x32, 0x34, 0x70b9, 0x0, 0x32, 0x35, 0x0, 0x32, 0x35, 0x65e5, 0x0, 0x32, 0x36, 0x0, 0x32, 0x36, 0x65e5, 0x0, 0x32, 0x37, 0x0, 0x32, 0x37, 0x65e5, 0x0, 0x32, 0x38, 0x0, 0x32, 0x38, 0x65e5, 0x0, 0x32, 0x39, 0x0, 0x32, 0x39, 0x65e5, 0x0, 0x32, 0x2044, 0x33, 0x0, 0x32, 0x2044, 0x35, 0x0, 0x32, 0x65e5, 0x0, 0x32, 0x6708, 0x0, 0x32, 0x70b9, 0x0, 0x33, 0x0, 0x33, 0x2c, 0x0, 0x33, 0x2e, 0x0, 0x33, 0x30, 0x0, 0x33, 0x30, 0x65e5, 0x0, 0x33, 0x31, 0x0, 0x33, 0x31, 0x65e5, 0x0, 0x33, 0x32, 0x0, 0x33, 0x33, 0x0, 0x33, 0x34, 0x0, 0x33, 0x35, 0x0, 0x33, 0x36, 0x0, 0x33, 0x37, 0x0, 0x33, 0x38, 0x0, 0x33, 0x39, 0x0, 0x33, 0x2044, 0x34, 0x0, 0x33, 0x2044, 0x35, 0x0, 0x33, 0x2044, 0x38, 0x0, 0x33, 0x65e5, 0x0, 0x33, 0x6708, 0x0, 0x33, 0x70b9, 0x0, 0x34, 0x0, 0x34, 0x2c, 0x0, 0x34, 0x2e, 0x0, 0x34, 0x30, 0x0, 0x34, 0x31, 0x0, 0x34, 0x32, 0x0, 0x34, 0x33, 0x0, 0x34, 0x34, 0x0, 0x34, 0x35, 0x0, 0x34, 0x36, 0x0, 0x34, 0x37, 0x0, 0x34, 0x38, 0x0, 0x34, 0x39, 0x0, 0x34, 0x2044, 0x35, 0x0, 0x34, 0x65e5, 0x0, 0x34, 0x6708, 0x0, 0x34, 0x70b9, 0x0, 0x35, 0x0, 0x35, 0x2c, 0x0, 0x35, 0x2e, 0x0, 0x35, 0x30, 0x0, 0x35, 0x2044, 0x36, 0x0, 0x35, 0x2044, 0x38, 0x0, 0x35, 0x65e5, 0x0, 0x35, 0x6708, 0x0, 0x35, 0x70b9, 0x0, 0x36, 0x0, 0x36, 0x2c, 0x0, 0x36, 0x2e, 0x0, 0x36, 0x65e5, 0x0, 0x36, 0x6708, 0x0, 0x36, 0x70b9, 0x0, 0x37, 0x0, 0x37, 0x2c, 0x0, 0x37, 0x2e, 0x0, 0x37, 0x2044, 0x38, 0x0, 0x37, 0x65e5, 0x0, 0x37, 0x6708, 0x0, 0x37, 0x70b9, 0x0, 0x38, 0x0, 0x38, 0x2c, 0x0, 0x38, 0x2e, 0x0, 0x38, 0x65e5, 0x0, 0x38, 0x6708, 0x0, 0x38, 0x70b9, 0x0, 0x39, 0x0, 0x39, 0x2c, 0x0, 0x39, 0x2e, 0x0, 0x39, 0x65e5, 0x0, 0x39, 0x6708, 0x0, 0x39, 0x70b9, 0x0, 0x3a, 0x0, 0x3a, 0x3a, 0x3d, 0x0, 0x3b, 0x0, 0x3c, 0x0, 0x3c, 0x338, 0x0, 0x3d, 0x0, 0x3d, 0x3d, 0x0, 0x3d, 0x3d, 0x3d, 0x0, 0x3d, 0x338, 0x0, 0x3e, 0x0, 0x3e, 0x338, 0x0, 0x3f, 0x0, 0x3f, 0x21, 0x0, 0x3f, 0x3f, 0x0, 0x40, 0x0, 0x41, 0x0, 0x41, 0x55, 0x0, 0x41, 0x300, 0x0, 0x41, 0x301, 0x0, 0x41, 0x302, 0x0, 0x41, 0x302, 0x300, 0x0, 0x41, 0x302, 0x301, 0x0, 0x41, 0x302, 0x303, 0x0, 0x41, 0x302, 0x309, 0x0, 0x41, 0x303, 0x0, 0x41, 0x304, 0x0, 0x41, 0x306, 0x0, 0x41, 0x306, 0x300, 0x0, 0x41, 0x306, 0x301, 0x0, 0x41, 0x306, 0x303, 0x0, 0x41, 0x306, 0x309, 0x0, 0x41, 0x307, 0x0, 0x41, 0x307, 0x304, 0x0, 0x41, 0x308, 0x0, 0x41, 0x308, 0x304, 0x0, 0x41, 0x309, 0x0, 0x41, 0x30a, 0x0, 0x41, 0x30a, 0x301, 0x0, 0x41, 0x30c, 0x0, 0x41, 0x30f, 0x0, 0x41, 0x311, 0x0, 0x41, 0x323, 0x0, 0x41, 0x323, 0x302, 0x0, 0x41, 0x323, 0x306, 0x0, 0x41, 0x325, 0x0, 0x41, 0x328, 0x0, 0x41, 0x2215, 0x6d, 0x0, 0x42, 0x0, 0x42, 0x71, 0x0, 0x42, 0x307, 0x0, 0x42, 0x323, 0x0, 0x42, 0x331, 0x0, 0x43, 0x0, 0x43, 0x44, 0x0, 0x43, 0x6f, 0x2e, 0x0, 0x43, 0x301, 0x0, 0x43, 0x302, 0x0, 0x43, 0x307, 0x0, 0x43, 0x30c, 0x0, 0x43, 0x327, 0x0, 0x43, 0x327, 0x301, 0x0, 0x43, 0x2215, 0x6b, 0x67, 0x0, 0x44, 0x0, 0x44, 0x4a, 0x0, 0x44, 0x5a, 0x0, 0x44, 0x5a, 0x30c, 0x0, 0x44, 0x7a, 0x0, 0x44, 0x7a, 0x30c, 0x0, 0x44, 0x307, 0x0, 0x44, 0x30c, 0x0, 0x44, 0x323, 0x0, 0x44, 0x327, 0x0, 0x44, 0x32d, 0x0, 0x44, 0x331, 0x0, 0x45, 0x0, 0x45, 0x300, 0x0, 0x45, 0x301, 0x0, 0x45, 0x302, 0x0, 0x45, 0x302, 0x300, 0x0, 0x45, 0x302, 0x301, 0x0, 0x45, 0x302, 0x303, 0x0, 0x45, 0x302, 0x309, 0x0, 0x45, 0x303, 0x0, 0x45, 0x304, 0x0, 0x45, 0x304, 0x300, 0x0, 0x45, 0x304, 0x301, 0x0, 0x45, 0x306, 0x0, 0x45, 0x307, 0x0, 0x45, 0x308, 0x0, 0x45, 0x309, 0x0, 0x45, 0x30c, 0x0, 0x45, 0x30f, 0x0, 0x45, 0x311, 0x0, 0x45, 0x323, 0x0, 0x45, 0x323, 0x302, 0x0, 0x45, 0x327, 0x0, 0x45, 0x327, 0x306, 0x0, 0x45, 0x328, 0x0, 0x45, 0x32d, 0x0, 0x45, 0x330, 0x0, 0x46, 0x0, 0x46, 0x41, 0x58, 0x0, 0x46, 0x307, 0x0, 0x47, 0x0, 0x47, 0x42, 0x0, 0x47, 0x48, 0x7a, 0x0, 0x47, 0x50, 0x61, 0x0, 0x47, 0x79, 0x0, 0x47, 0x301, 0x0, 0x47, 0x302, 0x0, 0x47, 0x304, 0x0, 0x47, 0x306, 0x0, 0x47, 0x307, 0x0, 0x47, 0x30c, 0x0, 0x47, 0x327, 0x0, 0x48, 0x0, 0x48, 0x50, 0x0, 0x48, 0x56, 0x0, 0x48, 0x67, 0x0, 0x48, 0x7a, 0x0, 0x48, 0x302, 0x0, 0x48, 0x307, 0x0, 0x48, 0x308, 0x0, 0x48, 0x30c, 0x0, 0x48, 0x323, 0x0, 0x48, 0x327, 0x0, 0x48, 0x32e, 0x0, 0x49, 0x0, 0x49, 0x49, 0x0, 0x49, 0x49, 0x49, 0x0, 0x49, 0x4a, 0x0, 0x49, 0x55, 0x0, 0x49, 0x56, 0x0, 0x49, 0x58, 0x0, 0x49, 0x300, 0x0, 0x49, 0x301, 0x0, 0x49, 0x302, 0x0, 0x49, 0x303, 0x0, 0x49, 0x304, 0x0, 0x49, 0x306, 0x0, 0x49, 0x307, 0x0, 0x49, 0x308, 0x0, 0x49, 0x308, 0x301, 0x0, 0x49, 0x309, 0x0, 0x49, 0x30c, 0x0, 0x49, 0x30f, 0x0, 0x49, 0x311, 0x0, 0x49, 0x323, 0x0, 0x49, 0x328, 0x0, 0x49, 0x330, 0x0, 0x4a, 0x0, 0x4a, 0x302, 0x0, 0x4b, 0x0, 0x4b, 0x42, 0x0, 0x4b, 0x4b, 0x0, 0x4b, 0x4d, 0x0, 0x4b, 0x301, 0x0, 0x4b, 0x30c, 0x0, 0x4b, 0x323, 0x0, 0x4b, 0x327, 0x0, 0x4b, 0x331, 0x0, 0x4c, 0x0, 0x4c, 0x4a, 0x0, 0x4c, 0x54, 0x44, 0x0, 0x4c, 0x6a, 0x0, 0x4c, 0xb7, 0x0, 0x4c, 0x301, 0x0, 0x4c, 0x30c, 0x0, 0x4c, 0x323, 0x0, 0x4c, 0x323, 0x304, 0x0, 0x4c, 0x327, 0x0, 0x4c, 0x32d, 0x0, 0x4c, 0x331, 0x0, 0x4d, 0x0, 0x4d, 0x42, 0x0, 0x4d, 0x43, 0x0, 0x4d, 0x44, 0x0, 0x4d, 0x48, 0x7a, 0x0, 0x4d, 0x50, 0x61, 0x0, 0x4d, 0x56, 0x0, 0x4d, 0x57, 0x0, 0x4d, 0x301, 0x0, 0x4d, 0x307, 0x0, 0x4d, 0x323, 0x0, 0x4d, 0x3a9, 0x0, 0x4e, 0x0, 0x4e, 0x4a, 0x0, 0x4e, 0x6a, 0x0, 0x4e, 0x6f, 0x0, 0x4e, 0x300, 0x0, 0x4e, 0x301, 0x0, 0x4e, 0x303, 0x0, 0x4e, 0x307, 0x0, 0x4e, 0x30c, 0x0, 0x4e, 0x323, 0x0, 0x4e, 0x327, 0x0, 0x4e, 0x32d, 0x0, 0x4e, 0x331, 0x0, 0x4f, 0x0, 0x4f, 0x300, 0x0, 0x4f, 0x301, 0x0, 0x4f, 0x302, 0x0, 0x4f, 0x302, 0x300, 0x0, 0x4f, 0x302, 0x301, 0x0, 0x4f, 0x302, 0x303, 0x0, 0x4f, 0x302, 0x309, 0x0, 0x4f, 0x303, 0x0, 0x4f, 0x303, 0x301, 0x0, 0x4f, 0x303, 0x304, 0x0, 0x4f, 0x303, 0x308, 0x0, 0x4f, 0x304, 0x0, 0x4f, 0x304, 0x300, 0x0, 0x4f, 0x304, 0x301, 0x0, 0x4f, 0x306, 0x0, 0x4f, 0x307, 0x0, 0x4f, 0x307, 0x304, 0x0, 0x4f, 0x308, 0x0, 0x4f, 0x308, 0x304, 0x0, 0x4f, 0x309, 0x0, 0x4f, 0x30b, 0x0, 0x4f, 0x30c, 0x0, 0x4f, 0x30f, 0x0, 0x4f, 0x311, 0x0, 0x4f, 0x31b, 0x0, 0x4f, 0x31b, 0x300, 0x0, 0x4f, 0x31b, 0x301, 0x0, 0x4f, 0x31b, 0x303, 0x0, 0x4f, 0x31b, 0x309, 0x0, 0x4f, 0x31b, 0x323, 0x0, 0x4f, 0x323, 0x0, 0x4f, 0x323, 0x302, 0x0, 0x4f, 0x328, 0x0, 0x4f, 0x328, 0x304, 0x0, 0x50, 0x0, 0x50, 0x48, 0x0, 0x50, 0x50, 0x4d, 0x0, 0x50, 0x50, 0x56, 0x0, 0x50, 0x52, 0x0, 0x50, 0x54, 0x45, 0x0, 0x50, 0x61, 0x0, 0x50, 0x301, 0x0, 0x50, 0x307, 0x0, 0x51, 0x0, 0x52, 0x0, 0x52, 0x73, 0x0, 0x52, 0x301, 0x0, 0x52, 0x307, 0x0, 0x52, 0x30c, 0x0, 0x52, 0x30f, 0x0, 0x52, 0x311, 0x0, 0x52, 0x323, 0x0, 0x52, 0x323, 0x304, 0x0, 0x52, 0x327, 0x0, 0x52, 0x331, 0x0, 0x53, 0x0, 0x53, 0x44, 0x0, 0x53, 0x4d, 0x0, 0x53, 0x53, 0x0, 0x53, 0x76, 0x0, 0x53, 0x301, 0x0, 0x53, 0x301, 0x307, 0x0, 0x53, 0x302, 0x0, 0x53, 0x307, 0x0, 0x53, 0x30c, 0x0, 0x53, 0x30c, 0x307, 0x0, 0x53, 0x323, 0x0, 0x53, 0x323, 0x307, 0x0, 0x53, 0x326, 0x0, 0x53, 0x327, 0x0, 0x54, 0x0, 0x54, 0x45, 0x4c, 0x0, 0x54, 0x48, 0x7a, 0x0, 0x54, 0x4d, 0x0, 0x54, 0x307, 0x0, 0x54, 0x30c, 0x0, 0x54, 0x323, 0x0, 0x54, 0x326, 0x0, 0x54, 0x327, 0x0, 0x54, 0x32d, 0x0, 0x54, 0x331, 0x0, 0x55, 0x0, 0x55, 0x300, 0x0, 0x55, 0x301, 0x0, 0x55, 0x302, 0x0, 0x55, 0x303, 0x0, 0x55, 0x303, 0x301, 0x0, 0x55, 0x304, 0x0, 0x55, 0x304, 0x308, 0x0, 0x55, 0x306, 0x0, 0x55, 0x308, 0x0, 0x55, 0x308, 0x300, 0x0, 0x55, 0x308, 0x301, 0x0, 0x55, 0x308, 0x304, 0x0, 0x55, 0x308, 0x30c, 0x0, 0x55, 0x309, 0x0, 0x55, 0x30a, 0x0, 0x55, 0x30b, 0x0, 0x55, 0x30c, 0x0, 0x55, 0x30f, 0x0, 0x55, 0x311, 0x0, 0x55, 0x31b, 0x0, 0x55, 0x31b, 0x300, 0x0, 0x55, 0x31b, 0x301, 0x0, 0x55, 0x31b, 0x303, 0x0, 0x55, 0x31b, 0x309, 0x0, 0x55, 0x31b, 0x323, 0x0, 0x55, 0x323, 0x0, 0x55, 0x324, 0x0, 0x55, 0x328, 0x0, 0x55, 0x32d, 0x0, 0x55, 0x330, 0x0, 0x56, 0x0, 0x56, 0x49, 0x0, 0x56, 0x49, 0x49, 0x0, 0x56, 0x49, 0x49, 0x49, 0x0, 0x56, 0x303, 0x0, 0x56, 0x323, 0x0, 0x56, 0x2215, 0x6d, 0x0, 0x57, 0x0, 0x57, 0x43, 0x0, 0x57, 0x5a, 0x0, 0x57, 0x62, 0x0, 0x57, 0x300, 0x0, 0x57, 0x301, 0x0, 0x57, 0x302, 0x0, 0x57, 0x307, 0x0, 0x57, 0x308, 0x0, 0x57, 0x323, 0x0, 0x58, 0x0, 0x58, 0x49, 0x0, 0x58, 0x49, 0x49, 0x0, 0x58, 0x307, 0x0, 0x58, 0x308, 0x0, 0x59, 0x0, 0x59, 0x300, 0x0, 0x59, 0x301, 0x0, 0x59, 0x302, 0x0, 0x59, 0x303, 0x0, 0x59, 0x304, 0x0, 0x59, 0x307, 0x0, 0x59, 0x308, 0x0, 0x59, 0x309, 0x0, 0x59, 0x323, 0x0, 0x5a, 0x0, 0x5a, 0x301, 0x0, 0x5a, 0x302, 0x0, 0x5a, 0x307, 0x0, 0x5a, 0x30c, 0x0, 0x5a, 0x323, 0x0, 0x5a, 0x331, 0x0, 0x5b, 0x0, 0x5c, 0x0, 0x5d, 0x0, 0x5e, 0x0, 0x5f, 0x0, 0x60, 0x0, 0x61, 0x0, 0x61, 0x2e, 0x6d, 0x2e, 0x0, 0x61, 0x2f, 0x63, 0x0, 0x61, 0x2f, 0x73, 0x0, 0x61, 0x2be, 0x0, 0x61, 0x300, 0x0, 0x61, 0x301, 0x0, 0x61, 0x302, 0x0, 0x61, 0x302, 0x300, 0x0, 0x61, 0x302, 0x301, 0x0, 0x61, 0x302, 0x303, 0x0, 0x61, 0x302, 0x309, 0x0, 0x61, 0x303, 0x0, 0x61, 0x304, 0x0, 0x61, 0x306, 0x0, 0x61, 0x306, 0x300, 0x0, 0x61, 0x306, 0x301, 0x0, 0x61, 0x306, 0x303, 0x0, 0x61, 0x306, 0x309, 0x0, 0x61, 0x307, 0x0, 0x61, 0x307, 0x304, 0x0, 0x61, 0x308, 0x0, 0x61, 0x308, 0x304, 0x0, 0x61, 0x309, 0x0, 0x61, 0x30a, 0x0, 0x61, 0x30a, 0x301, 0x0, 0x61, 0x30c, 0x0, 0x61, 0x30f, 0x0, 0x61, 0x311, 0x0, 0x61, 0x323, 0x0, 0x61, 0x323, 0x302, 0x0, 0x61, 0x323, 0x306, 0x0, 0x61, 0x325, 0x0, 0x61, 0x328, 0x0, 0x62, 0x0, 0x62, 0x61, 0x72, 0x0, 0x62, 0x307, 0x0, 0x62, 0x323, 0x0, 0x62, 0x331, 0x0, 0x63, 0x0, 0x63, 0x2f, 0x6f, 0x0, 0x63, 0x2f, 0x75, 0x0, 0x63, 0x61, 0x6c, 0x0, 0x63, 0x63, 0x0, 0x63, 0x64, 0x0, 0x63, 0x6d, 0x0, 0x63, 0x6d, 0x32, 0x0, 0x63, 0x6d, 0x33, 0x0, 0x63, 0x301, 0x0, 0x63, 0x302, 0x0, 0x63, 0x307, 0x0, 0x63, 0x30c, 0x0, 0x63, 0x327, 0x0, 0x63, 0x327, 0x301, 0x0, 0x64, 0x0, 0x64, 0x42, 0x0, 0x64, 0x61, 0x0, 0x64, 0x6c, 0x0, 0x64, 0x6d, 0x0, 0x64, 0x6d, 0x32, 0x0, 0x64, 0x6d, 0x33, 0x0, 0x64, 0x7a, 0x0, 0x64, 0x7a, 0x30c, 0x0, 0x64, 0x307, 0x0, 0x64, 0x30c, 0x0, 0x64, 0x323, 0x0, 0x64, 0x327, 0x0, 0x64, 0x32d, 0x0, 0x64, 0x331, 0x0, 0x65, 0x0, 0x65, 0x56, 0x0, 0x65, 0x72, 0x67, 0x0, 0x65, 0x300, 0x0, 0x65, 0x301, 0x0, 0x65, 0x302, 0x0, 0x65, 0x302, 0x300, 0x0, 0x65, 0x302, 0x301, 0x0, 0x65, 0x302, 0x303, 0x0, 0x65, 0x302, 0x309, 0x0, 0x65, 0x303, 0x0, 0x65, 0x304, 0x0, 0x65, 0x304, 0x300, 0x0, 0x65, 0x304, 0x301, 0x0, 0x65, 0x306, 0x0, 0x65, 0x307, 0x0, 0x65, 0x308, 0x0, 0x65, 0x309, 0x0, 0x65, 0x30c, 0x0, 0x65, 0x30f, 0x0, 0x65, 0x311, 0x0, 0x65, 0x323, 0x0, 0x65, 0x323, 0x302, 0x0, 0x65, 0x327, 0x0, 0x65, 0x327, 0x306, 0x0, 0x65, 0x328, 0x0, 0x65, 0x32d, 0x0, 0x65, 0x330, 0x0, 0x66, 0x0, 0x66, 0x66, 0x0, 0x66, 0x66, 0x69, 0x0, 0x66, 0x66, 0x6c, 0x0, 0x66, 0x69, 0x0, 0x66, 0x6c, 0x0, 0x66, 0x6d, 0x0, 0x66, 0x307, 0x0, 0x67, 0x0, 0x67, 0x61, 0x6c, 0x0, 0x67, 0x301, 0x0, 0x67, 0x302, 0x0, 0x67, 0x304, 0x0, 0x67, 0x306, 0x0, 0x67, 0x307, 0x0, 0x67, 0x30c, 0x0, 0x67, 0x327, 0x0, 0x68, 0x0, 0x68, 0x50, 0x61, 0x0, 0x68, 0x61, 0x0, 0x68, 0x302, 0x0, 0x68, 0x307, 0x0, 0x68, 0x308, 0x0, 0x68, 0x30c, 0x0, 0x68, 0x323, 0x0, 0x68, 0x327, 0x0, 0x68, 0x32e, 0x0, 0x68, 0x331, 0x0, 0x69, 0x0, 0x69, 0x69, 0x0, 0x69, 0x69, 0x69, 0x0, 0x69, 0x6a, 0x0, 0x69, 0x6e, 0x0, 0x69, 0x76, 0x0, 0x69, 0x78, 0x0, 0x69, 0x300, 0x0, 0x69, 0x301, 0x0, 0x69, 0x302, 0x0, 0x69, 0x303, 0x0, 0x69, 0x304, 0x0, 0x69, 0x306, 0x0, 0x69, 0x308, 0x0, 0x69, 0x308, 0x301, 0x0, 0x69, 0x309, 0x0, 0x69, 0x30c, 0x0, 0x69, 0x30f, 0x0, 0x69, 0x311, 0x0, 0x69, 0x323, 0x0, 0x69, 0x328, 0x0, 0x69, 0x330, 0x0, 0x6a, 0x0, 0x6a, 0x302, 0x0, 0x6a, 0x30c, 0x0, 0x6b, 0x0, 0x6b, 0x41, 0x0, 0x6b, 0x48, 0x7a, 0x0, 0x6b, 0x50, 0x61, 0x0, 0x6b, 0x56, 0x0, 0x6b, 0x57, 0x0, 0x6b, 0x63, 0x61, 0x6c, 0x0, 0x6b, 0x67, 0x0, 0x6b, 0x6c, 0x0, 0x6b, 0x6d, 0x0, 0x6b, 0x6d, 0x32, 0x0, 0x6b, 0x6d, 0x33, 0x0, 0x6b, 0x74, 0x0, 0x6b, 0x301, 0x0, 0x6b, 0x30c, 0x0, 0x6b, 0x323, 0x0, 0x6b, 0x327, 0x0, 0x6b, 0x331, 0x0, 0x6b, 0x3a9, 0x0, 0x6c, 0x0, 0x6c, 0x6a, 0x0, 0x6c, 0x6d, 0x0, 0x6c, 0x6e, 0x0, 0x6c, 0x6f, 0x67, 0x0, 0x6c, 0x78, 0x0, 0x6c, 0xb7, 0x0, 0x6c, 0x301, 0x0, 0x6c, 0x30c, 0x0, 0x6c, 0x323, 0x0, 0x6c, 0x323, 0x304, 0x0, 0x6c, 0x327, 0x0, 0x6c, 0x32d, 0x0, 0x6c, 0x331, 0x0, 0x6d, 0x0, 0x6d, 0x32, 0x0, 0x6d, 0x33, 0x0, 0x6d, 0x41, 0x0, 0x6d, 0x56, 0x0, 0x6d, 0x57, 0x0, 0x6d, 0x62, 0x0, 0x6d, 0x67, 0x0, 0x6d, 0x69, 0x6c, 0x0, 0x6d, 0x6c, 0x0, 0x6d, 0x6d, 0x0, 0x6d, 0x6d, 0x32, 0x0, 0x6d, 0x6d, 0x33, 0x0, 0x6d, 0x6f, 0x6c, 0x0, 0x6d, 0x73, 0x0, 0x6d, 0x301, 0x0, 0x6d, 0x307, 0x0, 0x6d, 0x323, 0x0, 0x6d, 0x2215, 0x73, 0x0, 0x6d, 0x2215, 0x73, 0x32, 0x0, 0x6e, 0x0, 0x6e, 0x41, 0x0, 0x6e, 0x46, 0x0, 0x6e, 0x56, 0x0, 0x6e, 0x57, 0x0, 0x6e, 0x6a, 0x0, 0x6e, 0x6d, 0x0, 0x6e, 0x73, 0x0, 0x6e, 0x300, 0x0, 0x6e, 0x301, 0x0, 0x6e, 0x303, 0x0, 0x6e, 0x307, 0x0, 0x6e, 0x30c, 0x0, 0x6e, 0x323, 0x0, 0x6e, 0x327, 0x0, 0x6e, 0x32d, 0x0, 0x6e, 0x331, 0x0, 0x6f, 0x0, 0x6f, 0x56, 0x0, 0x6f, 0x300, 0x0, 0x6f, 0x301, 0x0, 0x6f, 0x302, 0x0, 0x6f, 0x302, 0x300, 0x0, 0x6f, 0x302, 0x301, 0x0, 0x6f, 0x302, 0x303, 0x0, 0x6f, 0x302, 0x309, 0x0, 0x6f, 0x303, 0x0, 0x6f, 0x303, 0x301, 0x0, 0x6f, 0x303, 0x304, 0x0, 0x6f, 0x303, 0x308, 0x0, 0x6f, 0x304, 0x0, 0x6f, 0x304, 0x300, 0x0, 0x6f, 0x304, 0x301, 0x0, 0x6f, 0x306, 0x0, 0x6f, 0x307, 0x0, 0x6f, 0x307, 0x304, 0x0, 0x6f, 0x308, 0x0, 0x6f, 0x308, 0x304, 0x0, 0x6f, 0x309, 0x0, 0x6f, 0x30b, 0x0, 0x6f, 0x30c, 0x0, 0x6f, 0x30f, 0x0, 0x6f, 0x311, 0x0, 0x6f, 0x31b, 0x0, 0x6f, 0x31b, 0x300, 0x0, 0x6f, 0x31b, 0x301, 0x0, 0x6f, 0x31b, 0x303, 0x0, 0x6f, 0x31b, 0x309, 0x0, 0x6f, 0x31b, 0x323, 0x0, 0x6f, 0x323, 0x0, 0x6f, 0x323, 0x302, 0x0, 0x6f, 0x328, 0x0, 0x6f, 0x328, 0x304, 0x0, 0x70, 0x0, 0x70, 0x2e, 0x6d, 0x2e, 0x0, 0x70, 0x41, 0x0, 0x70, 0x46, 0x0, 0x70, 0x56, 0x0, 0x70, 0x57, 0x0, 0x70, 0x63, 0x0, 0x70, 0x73, 0x0, 0x70, 0x301, 0x0, 0x70, 0x307, 0x0, 0x71, 0x0, 0x72, 0x0, 0x72, 0x61, 0x64, 0x0, 0x72, 0x61, 0x64, 0x2215, 0x73, 0x0, 0x72, 0x61, 0x64, 0x2215, 0x73, 0x32, 0x0, 0x72, 0x301, 0x0, 0x72, 0x307, 0x0, 0x72, 0x30c, 0x0, 0x72, 0x30f, 0x0, 0x72, 0x311, 0x0, 0x72, 0x323, 0x0, 0x72, 0x323, 0x304, 0x0, 0x72, 0x327, 0x0, 0x72, 0x331, 0x0, 0x73, 0x0, 0x73, 0x72, 0x0, 0x73, 0x74, 0x0, 0x73, 0x301, 0x0, 0x73, 0x301, 0x307, 0x0, 0x73, 0x302, 0x0, 0x73, 0x307, 0x0, 0x73, 0x30c, 0x0, 0x73, 0x30c, 0x307, 0x0, 0x73, 0x323, 0x0, 0x73, 0x323, 0x307, 0x0, 0x73, 0x326, 0x0, 0x73, 0x327, 0x0, 0x74, 0x0, 0x74, 0x307, 0x0, 0x74, 0x308, 0x0, 0x74, 0x30c, 0x0, 0x74, 0x323, 0x0, 0x74, 0x326, 0x0, 0x74, 0x327, 0x0, 0x74, 0x32d, 0x0, 0x74, 0x331, 0x0, 0x75, 0x0, 0x75, 0x300, 0x0, 0x75, 0x301, 0x0, 0x75, 0x302, 0x0, 0x75, 0x303, 0x0, 0x75, 0x303, 0x301, 0x0, 0x75, 0x304, 0x0, 0x75, 0x304, 0x308, 0x0, 0x75, 0x306, 0x0, 0x75, 0x308, 0x0, 0x75, 0x308, 0x300, 0x0, 0x75, 0x308, 0x301, 0x0, 0x75, 0x308, 0x304, 0x0, 0x75, 0x308, 0x30c, 0x0, 0x75, 0x309, 0x0, 0x75, 0x30a, 0x0, 0x75, 0x30b, 0x0, 0x75, 0x30c, 0x0, 0x75, 0x30f, 0x0, 0x75, 0x311, 0x0, 0x75, 0x31b, 0x0, 0x75, 0x31b, 0x300, 0x0, 0x75, 0x31b, 0x301, 0x0, 0x75, 0x31b, 0x303, 0x0, 0x75, 0x31b, 0x309, 0x0, 0x75, 0x31b, 0x323, 0x0, 0x75, 0x323, 0x0, 0x75, 0x324, 0x0, 0x75, 0x328, 0x0, 0x75, 0x32d, 0x0, 0x75, 0x330, 0x0, 0x76, 0x0, 0x76, 0x69, 0x0, 0x76, 0x69, 0x69, 0x0, 0x76, 0x69, 0x69, 0x69, 0x0, 0x76, 0x303, 0x0, 0x76, 0x323, 0x0, 0x77, 0x0, 0x77, 0x300, 0x0, 0x77, 0x301, 0x0, 0x77, 0x302, 0x0, 0x77, 0x307, 0x0, 0x77, 0x308, 0x0, 0x77, 0x30a, 0x0, 0x77, 0x323, 0x0, 0x78, 0x0, 0x78, 0x69, 0x0, 0x78, 0x69, 0x69, 0x0, 0x78, 0x307, 0x0, 0x78, 0x308, 0x0, 0x79, 0x0, 0x79, 0x300, 0x0, 0x79, 0x301, 0x0, 0x79, 0x302, 0x0, 0x79, 0x303, 0x0, 0x79, 0x304, 0x0, 0x79, 0x307, 0x0, 0x79, 0x308, 0x0, 0x79, 0x309, 0x0, 0x79, 0x30a, 0x0, 0x79, 0x323, 0x0, 0x7a, 0x0, 0x7a, 0x301, 0x0, 0x7a, 0x302, 0x0, 0x7a, 0x307, 0x0, 0x7a, 0x30c, 0x0, 0x7a, 0x323, 0x0, 0x7a, 0x331, 0x0, 0x7b, 0x0, 0x7c, 0x0, 0x7d, 0x0, 0x7e, 0x0, 0xa2, 0x0, 0xa3, 0x0, 0xa5, 0x0, 0xa6, 0x0, 0xac, 0x0, 0xb0, 0x43, 0x0, 0xb0, 0x46, 0x0, 0xb7, 0x0, 0xc6, 0x0, 0xc6, 0x301, 0x0, 0xc6, 0x304, 0x0, 0xd8, 0x301, 0x0, 0xe6, 0x301, 0x0, 0xe6, 0x304, 0x0, 0xf0, 0x0, 0xf8, 0x301, 0x0, 0x126, 0x0, 0x127, 0x0, 0x131, 0x0, 0x14b, 0x0, 0x153, 0x0, 0x18e, 0x0, 0x190, 0x0, 0x1ab, 0x0, 0x1b7, 0x30c, 0x0, 0x222, 0x0, 0x237, 0x0, 0x250, 0x0, 0x251, 0x0, 0x252, 0x0, 0x254, 0x0, 0x255, 0x0, 0x259, 0x0, 0x25b, 0x0, 0x25c, 0x0, 0x25f, 0x0, 0x261, 0x0, 0x263, 0x0, 0x265, 0x0, 0x266, 0x0, 0x268, 0x0, 0x269, 0x0, 0x26a, 0x0, 0x26d, 0x0, 0x26f, 0x0, 0x270, 0x0, 0x271, 0x0, 0x272, 0x0, 0x273, 0x0, 0x274, 0x0, 0x275, 0x0, 0x278, 0x0, 0x279, 0x0, 0x27b, 0x0, 0x281, 0x0, 0x282, 0x0, 0x283, 0x0, 0x289, 0x0, 0x28a, 0x0, 0x28b, 0x0, 0x28c, 0x0, 0x290, 0x0, 0x291, 0x0, 0x292, 0x0, 0x292, 0x30c, 0x0, 0x295, 0x0, 0x29d, 0x0, 0x29f, 0x0, 0x2b9, 0x0, 0x2bc, 0x6e, 0x0, 0x300, 0x0, 0x301, 0x0, 0x308, 0x301, 0x0, 0x313, 0x0, 0x391, 0x0, 0x391, 0x300, 0x0, 0x391, 0x301, 0x0, 0x391, 0x304, 0x0, 0x391, 0x306, 0x0, 0x391, 0x313, 0x0, 0x391, 0x313, 0x300, 0x0, 0x391, 0x313, 0x300, 0x345, 0x0, 0x391, 0x313, 0x301, 0x0, 0x391, 0x313, 0x301, 0x345, 0x0, 0x391, 0x313, 0x342, 0x0, 0x391, 0x313, 0x342, 0x345, 0x0, 0x391, 0x313, 0x345, 0x0, 0x391, 0x314, 0x0, 0x391, 0x314, 0x300, 0x0, 0x391, 0x314, 0x300, 0x345, 0x0, 0x391, 0x314, 0x301, 0x0, 0x391, 0x314, 0x301, 0x345, 0x0, 0x391, 0x314, 0x342, 0x0, 0x391, 0x314, 0x342, 0x345, 0x0, 0x391, 0x314, 0x345, 0x0, 0x391, 0x345, 0x0, 0x392, 0x0, 0x393, 0x0, 0x394, 0x0, 0x395, 0x0, 0x395, 0x300, 0x0, 0x395, 0x301, 0x0, 0x395, 0x313, 0x0, 0x395, 0x313, 0x300, 0x0, 0x395, 0x313, 0x301, 0x0, 0x395, 0x314, 0x0, 0x395, 0x314, 0x300, 0x0, 0x395, 0x314, 0x301, 0x0, 0x396, 0x0, 0x397, 0x0, 0x397, 0x300, 0x0, 0x397, 0x301, 0x0, 0x397, 0x313, 0x0, 0x397, 0x313, 0x300, 0x0, 0x397, 0x313, 0x300, 0x345, 0x0, 0x397, 0x313, 0x301, 0x0, 0x397, 0x313, 0x301, 0x345, 0x0, 0x397, 0x313, 0x342, 0x0, 0x397, 0x313, 0x342, 0x345, 0x0, 0x397, 0x313, 0x345, 0x0, 0x397, 0x314, 0x0, 0x397, 0x314, 0x300, 0x0, 0x397, 0x314, 0x300, 0x345, 0x0, 0x397, 0x314, 0x301, 0x0, 0x397, 0x314, 0x301, 0x345, 0x0, 0x397, 0x314, 0x342, 0x0, 0x397, 0x314, 0x342, 0x345, 0x0, 0x397, 0x314, 0x345, 0x0, 0x397, 0x345, 0x0, 0x398, 0x0, 0x399, 0x0, 0x399, 0x300, 0x0, 0x399, 0x301, 0x0, 0x399, 0x304, 0x0, 0x399, 0x306, 0x0, 0x399, 0x308, 0x0, 0x399, 0x313, 0x0, 0x399, 0x313, 0x300, 0x0, 0x399, 0x313, 0x301, 0x0, 0x399, 0x313, 0x342, 0x0, 0x399, 0x314, 0x0, 0x399, 0x314, 0x300, 0x0, 0x399, 0x314, 0x301, 0x0, 0x399, 0x314, 0x342, 0x0, 0x39a, 0x0, 0x39b, 0x0, 0x39c, 0x0, 0x39d, 0x0, 0x39e, 0x0, 0x39f, 0x0, 0x39f, 0x300, 0x0, 0x39f, 0x301, 0x0, 0x39f, 0x313, 0x0, 0x39f, 0x313, 0x300, 0x0, 0x39f, 0x313, 0x301, 0x0, 0x39f, 0x314, 0x0, 0x39f, 0x314, 0x300, 0x0, 0x39f, 0x314, 0x301, 0x0, 0x3a0, 0x0, 0x3a1, 0x0, 0x3a1, 0x314, 0x0, 0x3a3, 0x0, 0x3a4, 0x0, 0x3a5, 0x0, 0x3a5, 0x300, 0x0, 0x3a5, 0x301, 0x0, 0x3a5, 0x304, 0x0, 0x3a5, 0x306, 0x0, 0x3a5, 0x308, 0x0, 0x3a5, 0x314, 0x0, 0x3a5, 0x314, 0x300, 0x0, 0x3a5, 0x314, 0x301, 0x0, 0x3a5, 0x314, 0x342, 0x0, 0x3a6, 0x0, 0x3a7, 0x0, 0x3a8, 0x0, 0x3a9, 0x0, 0x3a9, 0x300, 0x0, 0x3a9, 0x301, 0x0, 0x3a9, 0x313, 0x0, 0x3a9, 0x313, 0x300, 0x0, 0x3a9, 0x313, 0x300, 0x345, 0x0, 0x3a9, 0x313, 0x301, 0x0, 0x3a9, 0x313, 0x301, 0x345, 0x0, 0x3a9, 0x313, 0x342, 0x0, 0x3a9, 0x313, 0x342, 0x345, 0x0, 0x3a9, 0x313, 0x345, 0x0, 0x3a9, 0x314, 0x0, 0x3a9, 0x314, 0x300, 0x0, 0x3a9, 0x314, 0x300, 0x345, 0x0, 0x3a9, 0x314, 0x301, 0x0, 0x3a9, 0x314, 0x301, 0x345, 0x0, 0x3a9, 0x314, 0x342, 0x0, 0x3a9, 0x314, 0x342, 0x345, 0x0, 0x3a9, 0x314, 0x345, 0x0, 0x3a9, 0x345, 0x0, 0x3b1, 0x0, 0x3b1, 0x300, 0x0, 0x3b1, 0x300, 0x345, 0x0, 0x3b1, 0x301, 0x0, 0x3b1, 0x301, 0x345, 0x0, 0x3b1, 0x304, 0x0, 0x3b1, 0x306, 0x0, 0x3b1, 0x313, 0x0, 0x3b1, 0x313, 0x300, 0x0, 0x3b1, 0x313, 0x300, 0x345, 0x0, 0x3b1, 0x313, 0x301, 0x0, 0x3b1, 0x313, 0x301, 0x345, 0x0, 0x3b1, 0x313, 0x342, 0x0, 0x3b1, 0x313, 0x342, 0x345, 0x0, 0x3b1, 0x313, 0x345, 0x0, 0x3b1, 0x314, 0x0, 0x3b1, 0x314, 0x300, 0x0, 0x3b1, 0x314, 0x300, 0x345, 0x0, 0x3b1, 0x314, 0x301, 0x0, 0x3b1, 0x314, 0x301, 0x345, 0x0, 0x3b1, 0x314, 0x342, 0x0, 0x3b1, 0x314, 0x342, 0x345, 0x0, 0x3b1, 0x314, 0x345, 0x0, 0x3b1, 0x342, 0x0, 0x3b1, 0x342, 0x345, 0x0, 0x3b1, 0x345, 0x0, 0x3b2, 0x0, 0x3b3, 0x0, 0x3b4, 0x0, 0x3b5, 0x0, 0x3b5, 0x300, 0x0, 0x3b5, 0x301, 0x0, 0x3b5, 0x313, 0x0, 0x3b5, 0x313, 0x300, 0x0, 0x3b5, 0x313, 0x301, 0x0, 0x3b5, 0x314, 0x0, 0x3b5, 0x314, 0x300, 0x0, 0x3b5, 0x314, 0x301, 0x0, 0x3b6, 0x0, 0x3b7, 0x0, 0x3b7, 0x300, 0x0, 0x3b7, 0x300, 0x345, 0x0, 0x3b7, 0x301, 0x0, 0x3b7, 0x301, 0x345, 0x0, 0x3b7, 0x313, 0x0, 0x3b7, 0x313, 0x300, 0x0, 0x3b7, 0x313, 0x300, 0x345, 0x0, 0x3b7, 0x313, 0x301, 0x0, 0x3b7, 0x313, 0x301, 0x345, 0x0, 0x3b7, 0x313, 0x342, 0x0, 0x3b7, 0x313, 0x342, 0x345, 0x0, 0x3b7, 0x313, 0x345, 0x0, 0x3b7, 0x314, 0x0, 0x3b7, 0x314, 0x300, 0x0, 0x3b7, 0x314, 0x300, 0x345, 0x0, 0x3b7, 0x314, 0x301, 0x0, 0x3b7, 0x314, 0x301, 0x345, 0x0, 0x3b7, 0x314, 0x342, 0x0, 0x3b7, 0x314, 0x342, 0x345, 0x0, 0x3b7, 0x314, 0x345, 0x0, 0x3b7, 0x342, 0x0, 0x3b7, 0x342, 0x345, 0x0, 0x3b7, 0x345, 0x0, 0x3b8, 0x0, 0x3b9, 0x0, 0x3b9, 0x300, 0x0, 0x3b9, 0x301, 0x0, 0x3b9, 0x304, 0x0, 0x3b9, 0x306, 0x0, 0x3b9, 0x308, 0x0, 0x3b9, 0x308, 0x300, 0x0, 0x3b9, 0x308, 0x301, 0x0, 0x3b9, 0x308, 0x342, 0x0, 0x3b9, 0x313, 0x0, 0x3b9, 0x313, 0x300, 0x0, 0x3b9, 0x313, 0x301, 0x0, 0x3b9, 0x313, 0x342, 0x0, 0x3b9, 0x314, 0x0, 0x3b9, 0x314, 0x300, 0x0, 0x3b9, 0x314, 0x301, 0x0, 0x3b9, 0x314, 0x342, 0x0, 0x3b9, 0x342, 0x0, 0x3ba, 0x0, 0x3bb, 0x0, 0x3bc, 0x0, 0x3bc, 0x41, 0x0, 0x3bc, 0x46, 0x0, 0x3bc, 0x56, 0x0, 0x3bc, 0x57, 0x0, 0x3bc, 0x67, 0x0, 0x3bc, 0x6c, 0x0, 0x3bc, 0x6d, 0x0, 0x3bc, 0x73, 0x0, 0x3bd, 0x0, 0x3be, 0x0, 0x3bf, 0x0, 0x3bf, 0x300, 0x0, 0x3bf, 0x301, 0x0, 0x3bf, 0x313, 0x0, 0x3bf, 0x313, 0x300, 0x0, 0x3bf, 0x313, 0x301, 0x0, 0x3bf, 0x314, 0x0, 0x3bf, 0x314, 0x300, 0x0, 0x3bf, 0x314, 0x301, 0x0, 0x3c0, 0x0, 0x3c1, 0x0, 0x3c1, 0x313, 0x0, 0x3c1, 0x314, 0x0, 0x3c2, 0x0, 0x3c3, 0x0, 0x3c4, 0x0, 0x3c5, 0x0, 0x3c5, 0x300, 0x0, 0x3c5, 0x301, 0x0, 0x3c5, 0x304, 0x0, 0x3c5, 0x306, 0x0, 0x3c5, 0x308, 0x0, 0x3c5, 0x308, 0x300, 0x0, 0x3c5, 0x308, 0x301, 0x0, 0x3c5, 0x308, 0x342, 0x0, 0x3c5, 0x313, 0x0, 0x3c5, 0x313, 0x300, 0x0, 0x3c5, 0x313, 0x301, 0x0, 0x3c5, 0x313, 0x342, 0x0, 0x3c5, 0x314, 0x0, 0x3c5, 0x314, 0x300, 0x0, 0x3c5, 0x314, 0x301, 0x0, 0x3c5, 0x314, 0x342, 0x0, 0x3c5, 0x342, 0x0, 0x3c6, 0x0, 0x3c7, 0x0, 0x3c8, 0x0, 0x3c9, 0x0, 0x3c9, 0x300, 0x0, 0x3c9, 0x300, 0x345, 0x0, 0x3c9, 0x301, 0x0, 0x3c9, 0x301, 0x345, 0x0, 0x3c9, 0x313, 0x0, 0x3c9, 0x313, 0x300, 0x0, 0x3c9, 0x313, 0x300, 0x345, 0x0, 0x3c9, 0x313, 0x301, 0x0, 0x3c9, 0x313, 0x301, 0x345, 0x0, 0x3c9, 0x313, 0x342, 0x0, 0x3c9, 0x313, 0x342, 0x345, 0x0, 0x3c9, 0x313, 0x345, 0x0, 0x3c9, 0x314, 0x0, 0x3c9, 0x314, 0x300, 0x0, 0x3c9, 0x314, 0x300, 0x345, 0x0, 0x3c9, 0x314, 0x301, 0x0, 0x3c9, 0x314, 0x301, 0x345, 0x0, 0x3c9, 0x314, 0x342, 0x0, 0x3c9, 0x314, 0x342, 0x345, 0x0, 0x3c9, 0x314, 0x345, 0x0, 0x3c9, 0x342, 0x0, 0x3c9, 0x342, 0x345, 0x0, 0x3c9, 0x345, 0x0, 0x3dc, 0x0, 0x3dd, 0x0, 0x406, 0x308, 0x0, 0x410, 0x306, 0x0, 0x410, 0x308, 0x0, 0x413, 0x301, 0x0, 0x415, 0x300, 0x0, 0x415, 0x306, 0x0, 0x415, 0x308, 0x0, 0x416, 0x306, 0x0, 0x416, 0x308, 0x0, 0x417, 0x308, 0x0, 0x418, 0x300, 0x0, 0x418, 0x304, 0x0, 0x418, 0x306, 0x0, 0x418, 0x308, 0x0, 0x41a, 0x301, 0x0, 0x41e, 0x308, 0x0, 0x423, 0x304, 0x0, 0x423, 0x306, 0x0, 0x423, 0x308, 0x0, 0x423, 0x30b, 0x0, 0x427, 0x308, 0x0, 0x42b, 0x308, 0x0, 0x42d, 0x308, 0x0, 0x430, 0x306, 0x0, 0x430, 0x308, 0x0, 0x433, 0x301, 0x0, 0x435, 0x300, 0x0, 0x435, 0x306, 0x0, 0x435, 0x308, 0x0, 0x436, 0x306, 0x0, 0x436, 0x308, 0x0, 0x437, 0x308, 0x0, 0x438, 0x300, 0x0, 0x438, 0x304, 0x0, 0x438, 0x306, 0x0, 0x438, 0x308, 0x0, 0x43a, 0x301, 0x0, 0x43d, 0x0, 0x43e, 0x308, 0x0, 0x443, 0x304, 0x0, 0x443, 0x306, 0x0, 0x443, 0x308, 0x0, 0x443, 0x30b, 0x0, 0x447, 0x308, 0x0, 0x44b, 0x308, 0x0, 0x44d, 0x308, 0x0, 0x456, 0x308, 0x0, 0x474, 0x30f, 0x0, 0x475, 0x30f, 0x0, 0x4d8, 0x308, 0x0, 0x4d9, 0x308, 0x0, 0x4e8, 0x308, 0x0, 0x4e9, 0x308, 0x0, 0x565, 0x582, 0x0, 0x574, 0x565, 0x0, 0x574, 0x56b, 0x0, 0x574, 0x56d, 0x0, 0x574, 0x576, 0x0, 0x57e, 0x576, 0x0, 0x5d0, 0x0, 0x5d0, 0x5b7, 0x0, 0x5d0, 0x5b8, 0x0, 0x5d0, 0x5bc, 0x0, 0x5d0, 0x5dc, 0x0, 0x5d1, 0x0, 0x5d1, 0x5bc, 0x0, 0x5d1, 0x5bf, 0x0, 0x5d2, 0x0, 0x5d2, 0x5bc, 0x0, 0x5d3, 0x0, 0x5d3, 0x5bc, 0x0, 0x5d4, 0x0, 0x5d4, 0x5bc, 0x0, 0x5d5, 0x5b9, 0x0, 0x5d5, 0x5bc, 0x0, 0x5d6, 0x5bc, 0x0, 0x5d8, 0x5bc, 0x0, 0x5d9, 0x5b4, 0x0, 0x5d9, 0x5bc, 0x0, 0x5da, 0x5bc, 0x0, 0x5db, 0x0, 0x5db, 0x5bc, 0x0, 0x5db, 0x5bf, 0x0, 0x5dc, 0x0, 0x5dc, 0x5bc, 0x0, 0x5dd, 0x0, 0x5de, 0x5bc, 0x0, 0x5e0, 0x5bc, 0x0, 0x5e1, 0x5bc, 0x0, 0x5e2, 0x0, 0x5e3, 0x5bc, 0x0, 0x5e4, 0x5bc, 0x0, 0x5e4, 0x5bf, 0x0, 0x5e6, 0x5bc, 0x0, 0x5e7, 0x5bc, 0x0, 0x5e8, 0x0, 0x5e8, 0x5bc, 0x0, 0x5e9, 0x5bc, 0x0, 0x5e9, 0x5bc, 0x5c1, 0x0, 0x5e9, 0x5bc, 0x5c2, 0x0, 0x5e9, 0x5c1, 0x0, 0x5e9, 0x5c2, 0x0, 0x5ea, 0x0, 0x5ea, 0x5bc, 0x0, 0x5f2, 0x5b7, 0x0, 0x621, 0x0, 0x627, 0x0, 0x627, 0x643, 0x628, 0x631, 0x0, 0x627, 0x644, 0x644, 0x647, 0x0, 0x627, 0x64b, 0x0, 0x627, 0x653, 0x0, 0x627, 0x654, 0x0, 0x627, 0x655, 0x0, 0x627, 0x674, 0x0, 0x628, 0x0, 0x628, 0x62c, 0x0, 0x628, 0x62d, 0x0, 0x628, 0x62d, 0x64a, 0x0, 0x628, 0x62e, 0x0, 0x628, 0x62e, 0x64a, 0x0, 0x628, 0x631, 0x0, 0x628, 0x632, 0x0, 0x628, 0x645, 0x0, 0x628, 0x646, 0x0, 0x628, 0x647, 0x0, 0x628, 0x649, 0x0, 0x628, 0x64a, 0x0, 0x629, 0x0, 0x62a, 0x0, 0x62a, 0x62c, 0x0, 0x62a, 0x62c, 0x645, 0x0, 0x62a, 0x62c, 0x649, 0x0, 0x62a, 0x62c, 0x64a, 0x0, 0x62a, 0x62d, 0x0, 0x62a, 0x62d, 0x62c, 0x0, 0x62a, 0x62d, 0x645, 0x0, 0x62a, 0x62e, 0x0, 0x62a, 0x62e, 0x645, 0x0, 0x62a, 0x62e, 0x649, 0x0, 0x62a, 0x62e, 0x64a, 0x0, 0x62a, 0x631, 0x0, 0x62a, 0x632, 0x0, 0x62a, 0x645, 0x0, 0x62a, 0x645, 0x62c, 0x0, 0x62a, 0x645, 0x62d, 0x0, 0x62a, 0x645, 0x62e, 0x0, 0x62a, 0x645, 0x649, 0x0, 0x62a, 0x645, 0x64a, 0x0, 0x62a, 0x646, 0x0, 0x62a, 0x647, 0x0, 0x62a, 0x649, 0x0, 0x62a, 0x64a, 0x0, 0x62b, 0x0, 0x62b, 0x62c, 0x0, 0x62b, 0x631, 0x0, 0x62b, 0x632, 0x0, 0x62b, 0x645, 0x0, 0x62b, 0x646, 0x0, 0x62b, 0x647, 0x0, 0x62b, 0x649, 0x0, 0x62b, 0x64a, 0x0, 0x62c, 0x0, 0x62c, 0x62d, 0x0, 0x62c, 0x62d, 0x649, 0x0, 0x62c, 0x62d, 0x64a, 0x0, 0x62c, 0x644, 0x20, 0x62c, 0x644, 0x627, 0x644, 0x647, 0x0, 0x62c, 0x645, 0x0, 0x62c, 0x645, 0x62d, 0x0, 0x62c, 0x645, 0x649, 0x0, 0x62c, 0x645, 0x64a, 0x0, 0x62c, 0x649, 0x0, 0x62c, 0x64a, 0x0, 0x62d, 0x0, 0x62d, 0x62c, 0x0, 0x62d, 0x62c, 0x64a, 0x0, 0x62d, 0x645, 0x0, 0x62d, 0x645, 0x649, 0x0, 0x62d, 0x645, 0x64a, 0x0, 0x62d, 0x649, 0x0, 0x62d, 0x64a, 0x0, 0x62e, 0x0, 0x62e, 0x62c, 0x0, 0x62e, 0x62d, 0x0, 0x62e, 0x645, 0x0, 0x62e, 0x649, 0x0, 0x62e, 0x64a, 0x0, 0x62f, 0x0, 0x630, 0x0, 0x630, 0x670, 0x0, 0x631, 0x0, 0x631, 0x633, 0x648, 0x644, 0x0, 0x631, 0x670, 0x0, 0x631, 0x6cc, 0x627, 0x644, 0x0, 0x632, 0x0, 0x633, 0x0, 0x633, 0x62c, 0x0, 0x633, 0x62c, 0x62d, 0x0, 0x633, 0x62c, 0x649, 0x0, 0x633, 0x62d, 0x0, 0x633, 0x62d, 0x62c, 0x0, 0x633, 0x62e, 0x0, 0x633, 0x62e, 0x649, 0x0, 0x633, 0x62e, 0x64a, 0x0, 0x633, 0x631, 0x0, 0x633, 0x645, 0x0, 0x633, 0x645, 0x62c, 0x0, 0x633, 0x645, 0x62d, 0x0, 0x633, 0x645, 0x645, 0x0, 0x633, 0x647, 0x0, 0x633, 0x649, 0x0, 0x633, 0x64a, 0x0, 0x634, 0x0, 0x634, 0x62c, 0x0, 0x634, 0x62c, 0x64a, 0x0, 0x634, 0x62d, 0x0, 0x634, 0x62d, 0x645, 0x0, 0x634, 0x62d, 0x64a, 0x0, 0x634, 0x62e, 0x0, 0x634, 0x631, 0x0, 0x634, 0x645, 0x0, 0x634, 0x645, 0x62e, 0x0, 0x634, 0x645, 0x645, 0x0, 0x634, 0x647, 0x0, 0x634, 0x649, 0x0, 0x634, 0x64a, 0x0, 0x635, 0x0, 0x635, 0x62d, 0x0, 0x635, 0x62d, 0x62d, 0x0, 0x635, 0x62d, 0x64a, 0x0, 0x635, 0x62e, 0x0, 0x635, 0x631, 0x0, 0x635, 0x644, 0x639, 0x645, 0x0, 0x635, 0x644, 0x649, 0x0, 0x635, 0x644, 0x649, 0x20, 0x627, 0x644, 0x644, 0x647, 0x20, 0x639, 0x644, 0x64a, 0x647, 0x20, 0x648, 0x633, 0x644, 0x645, 0x0, 0x635, 0x644, 0x6d2, 0x0, 0x635, 0x645, 0x0, 0x635, 0x645, 0x645, 0x0, 0x635, 0x649, 0x0, 0x635, 0x64a, 0x0, 0x636, 0x0, 0x636, 0x62c, 0x0, 0x636, 0x62d, 0x0, 0x636, 0x62d, 0x649, 0x0, 0x636, 0x62d, 0x64a, 0x0, 0x636, 0x62e, 0x0, 0x636, 0x62e, 0x645, 0x0, 0x636, 0x631, 0x0, 0x636, 0x645, 0x0, 0x636, 0x649, 0x0, 0x636, 0x64a, 0x0, 0x637, 0x0, 0x637, 0x62d, 0x0, 0x637, 0x645, 0x0, 0x637, 0x645, 0x62d, 0x0, 0x637, 0x645, 0x645, 0x0, 0x637, 0x645, 0x64a, 0x0, 0x637, 0x649, 0x0, 0x637, 0x64a, 0x0, 0x638, 0x0, 0x638, 0x645, 0x0, 0x639, 0x0, 0x639, 0x62c, 0x0, 0x639, 0x62c, 0x645, 0x0, 0x639, 0x644, 0x64a, 0x647, 0x0, 0x639, 0x645, 0x0, 0x639, 0x645, 0x645, 0x0, 0x639, 0x645, 0x649, 0x0, 0x639, 0x645, 0x64a, 0x0, 0x639, 0x649, 0x0, 0x639, 0x64a, 0x0, 0x63a, 0x0, 0x63a, 0x62c, 0x0, 0x63a, 0x645, 0x0, 0x63a, 0x645, 0x645, 0x0, 0x63a, 0x645, 0x649, 0x0, 0x63a, 0x645, 0x64a, 0x0, 0x63a, 0x649, 0x0, 0x63a, 0x64a, 0x0, 0x640, 0x64b, 0x0, 0x640, 0x64e, 0x0, 0x640, 0x64e, 0x651, 0x0, 0x640, 0x64f, 0x0, 0x640, 0x64f, 0x651, 0x0, 0x640, 0x650, 0x0, 0x640, 0x650, 0x651, 0x0, 0x640, 0x651, 0x0, 0x640, 0x652, 0x0, 0x641, 0x0, 0x641, 0x62c, 0x0, 0x641, 0x62d, 0x0, 0x641, 0x62e, 0x0, 0x641, 0x62e, 0x645, 0x0, 0x641, 0x645, 0x0, 0x641, 0x645, 0x64a, 0x0, 0x641, 0x649, 0x0, 0x641, 0x64a, 0x0, 0x642, 0x0, 0x642, 0x62d, 0x0, 0x642, 0x644, 0x6d2, 0x0, 0x642, 0x645, 0x0, 0x642, 0x645, 0x62d, 0x0, 0x642, 0x645, 0x645, 0x0, 0x642, 0x645, 0x64a, 0x0, 0x642, 0x649, 0x0, 0x642, 0x64a, 0x0, 0x643, 0x0, 0x643, 0x627, 0x0, 0x643, 0x62c, 0x0, 0x643, 0x62d, 0x0, 0x643, 0x62e, 0x0, 0x643, 0x644, 0x0, 0x643, 0x645, 0x0, 0x643, 0x645, 0x645, 0x0, 0x643, 0x645, 0x64a, 0x0, 0x643, 0x649, 0x0, 0x643, 0x64a, 0x0, 0x644, 0x0, 0x644, 0x627, 0x0, 0x644, 0x627, 0x653, 0x0, 0x644, 0x627, 0x654, 0x0, 0x644, 0x627, 0x655, 0x0, 0x644, 0x62c, 0x0, 0x644, 0x62c, 0x62c, 0x0, 0x644, 0x62c, 0x645, 0x0, 0x644, 0x62c, 0x64a, 0x0, 0x644, 0x62d, 0x0, 0x644, 0x62d, 0x645, 0x0, 0x644, 0x62d, 0x649, 0x0, 0x644, 0x62d, 0x64a, 0x0, 0x644, 0x62e, 0x0, 0x644, 0x62e, 0x645, 0x0, 0x644, 0x645, 0x0, 0x644, 0x645, 0x62d, 0x0, 0x644, 0x645, 0x64a, 0x0, 0x644, 0x647, 0x0, 0x644, 0x649, 0x0, 0x644, 0x64a, 0x0, 0x645, 0x0, 0x645, 0x627, 0x0, 0x645, 0x62c, 0x0, 0x645, 0x62c, 0x62d, 0x0, 0x645, 0x62c, 0x62e, 0x0, 0x645, 0x62c, 0x645, 0x0, 0x645, 0x62c, 0x64a, 0x0, 0x645, 0x62d, 0x0, 0x645, 0x62d, 0x62c, 0x0, 0x645, 0x62d, 0x645, 0x0, 0x645, 0x62d, 0x645, 0x62f, 0x0, 0x645, 0x62d, 0x64a, 0x0, 0x645, 0x62e, 0x0, 0x645, 0x62e, 0x62c, 0x0, 0x645, 0x62e, 0x645, 0x0, 0x645, 0x62e, 0x64a, 0x0, 0x645, 0x645, 0x0, 0x645, 0x645, 0x64a, 0x0, 0x645, 0x649, 0x0, 0x645, 0x64a, 0x0, 0x646, 0x0, 0x646, 0x62c, 0x0, 0x646, 0x62c, 0x62d, 0x0, 0x646, 0x62c, 0x645, 0x0, 0x646, 0x62c, 0x649, 0x0, 0x646, 0x62c, 0x64a, 0x0, 0x646, 0x62d, 0x0, 0x646, 0x62d, 0x645, 0x0, 0x646, 0x62d, 0x649, 0x0, 0x646, 0x62d, 0x64a, 0x0, 0x646, 0x62e, 0x0, 0x646, 0x631, 0x0, 0x646, 0x632, 0x0, 0x646, 0x645, 0x0, 0x646, 0x645, 0x649, 0x0, 0x646, 0x645, 0x64a, 0x0, 0x646, 0x646, 0x0, 0x646, 0x647, 0x0, 0x646, 0x649, 0x0, 0x646, 0x64a, 0x0, 0x647, 0x0, 0x647, 0x62c, 0x0, 0x647, 0x645, 0x0, 0x647, 0x645, 0x62c, 0x0, 0x647, 0x645, 0x645, 0x0, 0x647, 0x649, 0x0, 0x647, 0x64a, 0x0, 0x647, 0x670, 0x0, 0x648, 0x0, 0x648, 0x633, 0x644, 0x645, 0x0, 0x648, 0x654, 0x0, 0x648, 0x674, 0x0, 0x649, 0x0, 0x649, 0x670, 0x0, 0x64a, 0x0, 0x64a, 0x62c, 0x0, 0x64a, 0x62c, 0x64a, 0x0, 0x64a, 0x62d, 0x0, 0x64a, 0x62d, 0x64a, 0x0, 0x64a, 0x62e, 0x0, 0x64a, 0x631, 0x0, 0x64a, 0x632, 0x0, 0x64a, 0x645, 0x0, 0x64a, 0x645, 0x645, 0x0, 0x64a, 0x645, 0x64a, 0x0, 0x64a, 0x646, 0x0, 0x64a, 0x647, 0x0, 0x64a, 0x649, 0x0, 0x64a, 0x64a, 0x0, 0x64a, 0x654, 0x0, 0x64a, 0x654, 0x627, 0x0, 0x64a, 0x654, 0x62c, 0x0, 0x64a, 0x654, 0x62d, 0x0, 0x64a, 0x654, 0x62e, 0x0, 0x64a, 0x654, 0x631, 0x0, 0x64a, 0x654, 0x632, 0x0, 0x64a, 0x654, 0x645, 0x0, 0x64a, 0x654, 0x646, 0x0, 0x64a, 0x654, 0x647, 0x0, 0x64a, 0x654, 0x648, 0x0, 0x64a, 0x654, 0x649, 0x0, 0x64a, 0x654, 0x64a, 0x0, 0x64a, 0x654, 0x6c6, 0x0, 0x64a, 0x654, 0x6c7, 0x0, 0x64a, 0x654, 0x6c8, 0x0, 0x64a, 0x654, 0x6d0, 0x0, 0x64a, 0x654, 0x6d5, 0x0, 0x64a, 0x674, 0x0, 0x66e, 0x0, 0x66f, 0x0, 0x671, 0x0, 0x679, 0x0, 0x67a, 0x0, 0x67b, 0x0, 0x67e, 0x0, 0x67f, 0x0, 0x680, 0x0, 0x683, 0x0, 0x684, 0x0, 0x686, 0x0, 0x687, 0x0, 0x688, 0x0, 0x68c, 0x0, 0x68d, 0x0, 0x68e, 0x0, 0x691, 0x0, 0x698, 0x0, 0x6a1, 0x0, 0x6a4, 0x0, 0x6a6, 0x0, 0x6a9, 0x0, 0x6ad, 0x0, 0x6af, 0x0, 0x6b1, 0x0, 0x6b3, 0x0, 0x6ba, 0x0, 0x6bb, 0x0, 0x6be, 0x0, 0x6c1, 0x0, 0x6c1, 0x654, 0x0, 0x6c5, 0x0, 0x6c6, 0x0, 0x6c7, 0x0, 0x6c7, 0x674, 0x0, 0x6c8, 0x0, 0x6c9, 0x0, 0x6cb, 0x0, 0x6cc, 0x0, 0x6d0, 0x0, 0x6d2, 0x0, 0x6d2, 0x654, 0x0, 0x6d5, 0x654, 0x0, 0x915, 0x93c, 0x0, 0x916, 0x93c, 0x0, 0x917, 0x93c, 0x0, 0x91c, 0x93c, 0x0, 0x921, 0x93c, 0x0, 0x922, 0x93c, 0x0, 0x928, 0x93c, 0x0, 0x92b, 0x93c, 0x0, 0x92f, 0x93c, 0x0, 0x930, 0x93c, 0x0, 0x933, 0x93c, 0x0, 0x9a1, 0x9bc, 0x0, 0x9a2, 0x9bc, 0x0, 0x9af, 0x9bc, 0x0, 0x9c7, 0x9be, 0x0, 0x9c7, 0x9d7, 0x0, 0xa16, 0xa3c, 0x0, 0xa17, 0xa3c, 0x0, 0xa1c, 0xa3c, 0x0, 0xa2b, 0xa3c, 0x0, 0xa32, 0xa3c, 0x0, 0xa38, 0xa3c, 0x0, 0xb21, 0xb3c, 0x0, 0xb22, 0xb3c, 0x0, 0xb47, 0xb3e, 0x0, 0xb47, 0xb56, 0x0, 0xb47, 0xb57, 0x0, 0xb92, 0xbd7, 0x0, 0xbc6, 0xbbe, 0x0, 0xbc6, 0xbd7, 0x0, 0xbc7, 0xbbe, 0x0, 0xc46, 0xc56, 0x0, 0xcbf, 0xcd5, 0x0, 0xcc6, 0xcc2, 0x0, 0xcc6, 0xcc2, 0xcd5, 0x0, 0xcc6, 0xcd5, 0x0, 0xcc6, 0xcd6, 0x0, 0xd46, 0xd3e, 0x0, 0xd46, 0xd57, 0x0, 0xd47, 0xd3e, 0x0, 0xdd9, 0xdca, 0x0, 0xdd9, 0xdcf, 0x0, 0xdd9, 0xdcf, 0xdca, 0x0, 0xdd9, 0xddf, 0x0, 0xe4d, 0xe32, 0x0, 0xeab, 0xe99, 0x0, 0xeab, 0xea1, 0x0, 0xecd, 0xeb2, 0x0, 0xf0b, 0x0, 0xf40, 0xfb5, 0x0, 0xf42, 0xfb7, 0x0, 0xf4c, 0xfb7, 0x0, 0xf51, 0xfb7, 0x0, 0xf56, 0xfb7, 0x0, 0xf5b, 0xfb7, 0x0, 0xf71, 0xf72, 0x0, 0xf71, 0xf74, 0x0, 0xf71, 0xf80, 0x0, 0xf90, 0xfb5, 0x0, 0xf92, 0xfb7, 0x0, 0xf9c, 0xfb7, 0x0, 0xfa1, 0xfb7, 0x0, 0xfa6, 0xfb7, 0x0, 0xfab, 0xfb7, 0x0, 0xfb2, 0xf71, 0xf80, 0x0, 0xfb2, 0xf80, 0x0, 0xfb3, 0xf71, 0xf80, 0x0, 0xfb3, 0xf80, 0x0, 0x1025, 0x102e, 0x0, 0x10dc, 0x0, 0x1100, 0x0, 0x1100, 0x1161, 0x0, 0x1101, 0x0, 0x1102, 0x0, 0x1102, 0x1161, 0x0, 0x1103, 0x0, 0x1103, 0x1161, 0x0, 0x1104, 0x0, 0x1105, 0x0, 0x1105, 0x1161, 0x0, 0x1106, 0x0, 0x1106, 0x1161, 0x0, 0x1107, 0x0, 0x1107, 0x1161, 0x0, 0x1108, 0x0, 0x1109, 0x0, 0x1109, 0x1161, 0x0, 0x110a, 0x0, 0x110b, 0x0, 0x110b, 0x1161, 0x0, 0x110b, 0x116e, 0x0, 0x110c, 0x0, 0x110c, 0x1161, 0x0, 0x110c, 0x116e, 0x110b, 0x1174, 0x0, 0x110d, 0x0, 0x110e, 0x0, 0x110e, 0x1161, 0x0, 0x110e, 0x1161, 0x11b7, 0x1100, 0x1169, 0x0, 0x110f, 0x0, 0x110f, 0x1161, 0x0, 0x1110, 0x0, 0x1110, 0x1161, 0x0, 0x1111, 0x0, 0x1111, 0x1161, 0x0, 0x1112, 0x0, 0x1112, 0x1161, 0x0, 0x1114, 0x0, 0x1115, 0x0, 0x111a, 0x0, 0x111c, 0x0, 0x111d, 0x0, 0x111e, 0x0, 0x1120, 0x0, 0x1121, 0x0, 0x1122, 0x0, 0x1123, 0x0, 0x1127, 0x0, 0x1129, 0x0, 0x112b, 0x0, 0x112c, 0x0, 0x112d, 0x0, 0x112e, 0x0, 0x112f, 0x0, 0x1132, 0x0, 0x1136, 0x0, 0x1140, 0x0, 0x1147, 0x0, 0x114c, 0x0, 0x1157, 0x0, 0x1158, 0x0, 0x1159, 0x0, 0x1160, 0x0, 0x1161, 0x0, 0x1162, 0x0, 0x1163, 0x0, 0x1164, 0x0, 0x1165, 0x0, 0x1166, 0x0, 0x1167, 0x0, 0x1168, 0x0, 0x1169, 0x0, 0x116a, 0x0, 0x116b, 0x0, 0x116c, 0x0, 0x116d, 0x0, 0x116e, 0x0, 0x116f, 0x0, 0x1170, 0x0, 0x1171, 0x0, 0x1172, 0x0, 0x1173, 0x0, 0x1174, 0x0, 0x1175, 0x0, 0x1184, 0x0, 0x1185, 0x0, 0x1188, 0x0, 0x1191, 0x0, 0x1192, 0x0, 0x1194, 0x0, 0x119e, 0x0, 0x11a1, 0x0, 0x11aa, 0x0, 0x11ac, 0x0, 0x11ad, 0x0, 0x11b0, 0x0, 0x11b1, 0x0, 0x11b2, 0x0, 0x11b3, 0x0, 0x11b4, 0x0, 0x11b5, 0x0, 0x11c7, 0x0, 0x11c8, 0x0, 0x11cc, 0x0, 0x11ce, 0x0, 0x11d3, 0x0, 0x11d7, 0x0, 0x11d9, 0x0, 0x11dd, 0x0, 0x11df, 0x0, 0x11f1, 0x0, 0x11f2, 0x0, 0x1b05, 0x1b35, 0x0, 0x1b07, 0x1b35, 0x0, 0x1b09, 0x1b35, 0x0, 0x1b0b, 0x1b35, 0x0, 0x1b0d, 0x1b35, 0x0, 0x1b11, 0x1b35, 0x0, 0x1b3a, 0x1b35, 0x0, 0x1b3c, 0x1b35, 0x0, 0x1b3e, 0x1b35, 0x0, 0x1b3f, 0x1b35, 0x0, 0x1b42, 0x1b35, 0x0, 0x1d02, 0x0, 0x1d16, 0x0, 0x1d17, 0x0, 0x1d1c, 0x0, 0x1d1d, 0x0, 0x1d25, 0x0, 0x1d7b, 0x0, 0x1d85, 0x0, 0x2010, 0x0, 0x2013, 0x0, 0x2014, 0x0, 0x2032, 0x2032, 0x0, 0x2032, 0x2032, 0x2032, 0x0, 0x2032, 0x2032, 0x2032, 0x2032, 0x0, 0x2035, 0x2035, 0x0, 0x2035, 0x2035, 0x2035, 0x0, 0x20a9, 0x0, 0x2190, 0x0, 0x2190, 0x338, 0x0, 0x2191, 0x0, 0x2192, 0x0, 0x2192, 0x338, 0x0, 0x2193, 0x0, 0x2194, 0x338, 0x0, 0x21d0, 0x338, 0x0, 0x21d2, 0x338, 0x0, 0x21d4, 0x338, 0x0, 0x2202, 0x0, 0x2203, 0x338, 0x0, 0x2207, 0x0, 0x2208, 0x338, 0x0, 0x220b, 0x338, 0x0, 0x2211, 0x0, 0x2212, 0x0, 0x2223, 0x338, 0x0, 0x2225, 0x338, 0x0, 0x222b, 0x222b, 0x0, 0x222b, 0x222b, 0x222b, 0x0, 0x222b, 0x222b, 0x222b, 0x222b, 0x0, 0x222e, 0x222e, 0x0, 0x222e, 0x222e, 0x222e, 0x0, 0x223c, 0x338, 0x0, 0x2243, 0x338, 0x0, 0x2245, 0x338, 0x0, 0x2248, 0x338, 0x0, 0x224d, 0x338, 0x0, 0x2261, 0x338, 0x0, 0x2264, 0x338, 0x0, 0x2265, 0x338, 0x0, 0x2272, 0x338, 0x0, 0x2273, 0x338, 0x0, 0x2276, 0x338, 0x0, 0x2277, 0x338, 0x0, 0x227a, 0x338, 0x0, 0x227b, 0x338, 0x0, 0x227c, 0x338, 0x0, 0x227d, 0x338, 0x0, 0x2282, 0x338, 0x0, 0x2283, 0x338, 0x0, 0x2286, 0x338, 0x0, 0x2287, 0x338, 0x0, 0x2291, 0x338, 0x0, 0x2292, 0x338, 0x0, 0x22a2, 0x338, 0x0, 0x22a8, 0x338, 0x0, 0x22a9, 0x338, 0x0, 0x22ab, 0x338, 0x0, 0x22b2, 0x338, 0x0, 0x22b3, 0x338, 0x0, 0x22b4, 0x338, 0x0, 0x22b5, 0x338, 0x0, 0x2502, 0x0, 0x25a0, 0x0, 0x25cb, 0x0, 0x2985, 0x0, 0x2986, 0x0, 0x2add, 0x338, 0x0, 0x2d61, 0x0, 0x3001, 0x0, 0x3002, 0x0, 0x3008, 0x0, 0x3009, 0x0, 0x300a, 0x0, 0x300b, 0x0, 0x300c, 0x0, 0x300d, 0x0, 0x300e, 0x0, 0x300f, 0x0, 0x3010, 0x0, 0x3011, 0x0, 0x3012, 0x0, 0x3014, 0x0, 0x3014, 0x53, 0x3015, 0x0, 0x3014, 0x4e09, 0x3015, 0x0, 0x3014, 0x4e8c, 0x3015, 0x0, 0x3014, 0x52dd, 0x3015, 0x0, 0x3014, 0x5b89, 0x3015, 0x0, 0x3014, 0x6253, 0x3015, 0x0, 0x3014, 0x6557, 0x3015, 0x0, 0x3014, 0x672c, 0x3015, 0x0, 0x3014, 0x70b9, 0x3015, 0x0, 0x3014, 0x76d7, 0x3015, 0x0, 0x3015, 0x0, 0x3016, 0x0, 0x3017, 0x0, 0x3046, 0x3099, 0x0, 0x304b, 0x3099, 0x0, 0x304d, 0x3099, 0x0, 0x304f, 0x3099, 0x0, 0x3051, 0x3099, 0x0, 0x3053, 0x3099, 0x0, 0x3055, 0x3099, 0x0, 0x3057, 0x3099, 0x0, 0x3059, 0x3099, 0x0, 0x305b, 0x3099, 0x0, 0x305d, 0x3099, 0x0, 0x305f, 0x3099, 0x0, 0x3061, 0x3099, 0x0, 0x3064, 0x3099, 0x0, 0x3066, 0x3099, 0x0, 0x3068, 0x3099, 0x0, 0x306f, 0x3099, 0x0, 0x306f, 0x309a, 0x0, 0x3072, 0x3099, 0x0, 0x3072, 0x309a, 0x0, 0x3075, 0x3099, 0x0, 0x3075, 0x309a, 0x0, 0x3078, 0x3099, 0x0, 0x3078, 0x309a, 0x0, 0x307b, 0x304b, 0x0, 0x307b, 0x3099, 0x0, 0x307b, 0x309a, 0x0, 0x3088, 0x308a, 0x0, 0x3099, 0x0, 0x309a, 0x0, 0x309d, 0x3099, 0x0, 0x30a1, 0x0, 0x30a2, 0x0, 0x30a2, 0x30cf, 0x309a, 0x30fc, 0x30c8, 0x0, 0x30a2, 0x30eb, 0x30d5, 0x30a1, 0x0, 0x30a2, 0x30f3, 0x30d8, 0x309a, 0x30a2, 0x0, 0x30a2, 0x30fc, 0x30eb, 0x0, 0x30a3, 0x0, 0x30a4, 0x0, 0x30a4, 0x30cb, 0x30f3, 0x30af, 0x3099, 0x0, 0x30a4, 0x30f3, 0x30c1, 0x0, 0x30a5, 0x0, 0x30a6, 0x0, 0x30a6, 0x3099, 0x0, 0x30a6, 0x30a9, 0x30f3, 0x0, 0x30a7, 0x0, 0x30a8, 0x0, 0x30a8, 0x30b9, 0x30af, 0x30fc, 0x30c8, 0x3099, 0x0, 0x30a8, 0x30fc, 0x30ab, 0x30fc, 0x0, 0x30a9, 0x0, 0x30aa, 0x0, 0x30aa, 0x30f3, 0x30b9, 0x0, 0x30aa, 0x30fc, 0x30e0, 0x0, 0x30ab, 0x0, 0x30ab, 0x3099, 0x0, 0x30ab, 0x3099, 0x30ed, 0x30f3, 0x0, 0x30ab, 0x3099, 0x30f3, 0x30de, 0x0, 0x30ab, 0x30a4, 0x30ea, 0x0, 0x30ab, 0x30e9, 0x30c3, 0x30c8, 0x0, 0x30ab, 0x30ed, 0x30ea, 0x30fc, 0x0, 0x30ad, 0x0, 0x30ad, 0x3099, 0x0, 0x30ad, 0x3099, 0x30ab, 0x3099, 0x0, 0x30ad, 0x3099, 0x30cb, 0x30fc, 0x0, 0x30ad, 0x3099, 0x30eb, 0x30bf, 0x3099, 0x30fc, 0x0, 0x30ad, 0x30e5, 0x30ea, 0x30fc, 0x0, 0x30ad, 0x30ed, 0x0, 0x30ad, 0x30ed, 0x30af, 0x3099, 0x30e9, 0x30e0, 0x0, 0x30ad, 0x30ed, 0x30e1, 0x30fc, 0x30c8, 0x30eb, 0x0, 0x30ad, 0x30ed, 0x30ef, 0x30c3, 0x30c8, 0x0, 0x30af, 0x0, 0x30af, 0x3099, 0x0, 0x30af, 0x3099, 0x30e9, 0x30e0, 0x0, 0x30af, 0x3099, 0x30e9, 0x30e0, 0x30c8, 0x30f3, 0x0, 0x30af, 0x30eb, 0x30bb, 0x3099, 0x30a4, 0x30ed, 0x0, 0x30af, 0x30ed, 0x30fc, 0x30cd, 0x0, 0x30b1, 0x0, 0x30b1, 0x3099, 0x0, 0x30b1, 0x30fc, 0x30b9, 0x0, 0x30b3, 0x0, 0x30b3, 0x3099, 0x0, 0x30b3, 0x30b3, 0x0, 0x30b3, 0x30c8, 0x0, 0x30b3, 0x30eb, 0x30ca, 0x0, 0x30b3, 0x30fc, 0x30db, 0x309a, 0x0, 0x30b5, 0x0, 0x30b5, 0x3099, 0x0, 0x30b5, 0x30a4, 0x30af, 0x30eb, 0x0, 0x30b5, 0x30f3, 0x30c1, 0x30fc, 0x30e0, 0x0, 0x30b7, 0x0, 0x30b7, 0x3099, 0x0, 0x30b7, 0x30ea, 0x30f3, 0x30af, 0x3099, 0x0, 0x30b9, 0x0, 0x30b9, 0x3099, 0x0, 0x30bb, 0x0, 0x30bb, 0x3099, 0x0, 0x30bb, 0x30f3, 0x30c1, 0x0, 0x30bb, 0x30f3, 0x30c8, 0x0, 0x30bd, 0x0, 0x30bd, 0x3099, 0x0, 0x30bf, 0x0, 0x30bf, 0x3099, 0x0, 0x30bf, 0x3099, 0x30fc, 0x30b9, 0x0, 0x30c1, 0x0, 0x30c1, 0x3099, 0x0, 0x30c3, 0x0, 0x30c4, 0x0, 0x30c4, 0x3099, 0x0, 0x30c6, 0x0, 0x30c6, 0x3099, 0x0, 0x30c6, 0x3099, 0x30b7, 0x0, 0x30c8, 0x0, 0x30c8, 0x3099, 0x0, 0x30c8, 0x3099, 0x30eb, 0x0, 0x30c8, 0x30f3, 0x0, 0x30ca, 0x0, 0x30ca, 0x30ce, 0x0, 0x30cb, 0x0, 0x30cc, 0x0, 0x30cd, 0x0, 0x30ce, 0x0, 0x30ce, 0x30c3, 0x30c8, 0x0, 0x30cf, 0x0, 0x30cf, 0x3099, 0x0, 0x30cf, 0x3099, 0x30fc, 0x30ec, 0x30eb, 0x0, 0x30cf, 0x309a, 0x0, 0x30cf, 0x309a, 0x30fc, 0x30bb, 0x30f3, 0x30c8, 0x0, 0x30cf, 0x309a, 0x30fc, 0x30c4, 0x0, 0x30cf, 0x30a4, 0x30c4, 0x0, 0x30d2, 0x0, 0x30d2, 0x3099, 0x0, 0x30d2, 0x3099, 0x30eb, 0x0, 0x30d2, 0x309a, 0x0, 0x30d2, 0x309a, 0x30a2, 0x30b9, 0x30c8, 0x30eb, 0x0, 0x30d2, 0x309a, 0x30af, 0x30eb, 0x0, 0x30d2, 0x309a, 0x30b3, 0x0, 0x30d5, 0x0, 0x30d5, 0x3099, 0x0, 0x30d5, 0x3099, 0x30c3, 0x30b7, 0x30a7, 0x30eb, 0x0, 0x30d5, 0x309a, 0x0, 0x30d5, 0x30a1, 0x30e9, 0x30c3, 0x30c8, 0x3099, 0x0, 0x30d5, 0x30a3, 0x30fc, 0x30c8, 0x0, 0x30d5, 0x30e9, 0x30f3, 0x0, 0x30d8, 0x0, 0x30d8, 0x3099, 0x0, 0x30d8, 0x3099, 0x30fc, 0x30bf, 0x0, 0x30d8, 0x309a, 0x0, 0x30d8, 0x309a, 0x30bd, 0x0, 0x30d8, 0x309a, 0x30cb, 0x30d2, 0x0, 0x30d8, 0x309a, 0x30f3, 0x30b9, 0x0, 0x30d8, 0x309a, 0x30fc, 0x30b7, 0x3099, 0x0, 0x30d8, 0x30af, 0x30bf, 0x30fc, 0x30eb, 0x0, 0x30d8, 0x30eb, 0x30c4, 0x0, 0x30db, 0x0, 0x30db, 0x3099, 0x0, 0x30db, 0x3099, 0x30eb, 0x30c8, 0x0, 0x30db, 0x309a, 0x0, 0x30db, 0x309a, 0x30a4, 0x30f3, 0x30c8, 0x0, 0x30db, 0x309a, 0x30f3, 0x30c8, 0x3099, 0x0, 0x30db, 0x30f3, 0x0, 0x30db, 0x30fc, 0x30eb, 0x0, 0x30db, 0x30fc, 0x30f3, 0x0, 0x30de, 0x0, 0x30de, 0x30a4, 0x30af, 0x30ed, 0x0, 0x30de, 0x30a4, 0x30eb, 0x0, 0x30de, 0x30c3, 0x30cf, 0x0, 0x30de, 0x30eb, 0x30af, 0x0, 0x30de, 0x30f3, 0x30b7, 0x30e7, 0x30f3, 0x0, 0x30df, 0x0, 0x30df, 0x30af, 0x30ed, 0x30f3, 0x0, 0x30df, 0x30ea, 0x0, 0x30df, 0x30ea, 0x30cf, 0x3099, 0x30fc, 0x30eb, 0x0, 0x30e0, 0x0, 0x30e1, 0x0, 0x30e1, 0x30ab, 0x3099, 0x0, 0x30e1, 0x30ab, 0x3099, 0x30c8, 0x30f3, 0x0, 0x30e1, 0x30fc, 0x30c8, 0x30eb, 0x0, 0x30e2, 0x0, 0x30e3, 0x0, 0x30e4, 0x0, 0x30e4, 0x30fc, 0x30c8, 0x3099, 0x0, 0x30e4, 0x30fc, 0x30eb, 0x0, 0x30e5, 0x0, 0x30e6, 0x0, 0x30e6, 0x30a2, 0x30f3, 0x0, 0x30e7, 0x0, 0x30e8, 0x0, 0x30e9, 0x0, 0x30ea, 0x0, 0x30ea, 0x30c3, 0x30c8, 0x30eb, 0x0, 0x30ea, 0x30e9, 0x0, 0x30eb, 0x0, 0x30eb, 0x30d2, 0x309a, 0x30fc, 0x0, 0x30eb, 0x30fc, 0x30d5, 0x3099, 0x30eb, 0x0, 0x30ec, 0x0, 0x30ec, 0x30e0, 0x0, 0x30ec, 0x30f3, 0x30c8, 0x30b1, 0x3099, 0x30f3, 0x0, 0x30ed, 0x0, 0x30ef, 0x0, 0x30ef, 0x3099, 0x0, 0x30ef, 0x30c3, 0x30c8, 0x0, 0x30f0, 0x0, 0x30f0, 0x3099, 0x0, 0x30f1, 0x0, 0x30f1, 0x3099, 0x0, 0x30f2, 0x0, 0x30f2, 0x3099, 0x0, 0x30f3, 0x0, 0x30fb, 0x0, 0x30fc, 0x0, 0x30fd, 0x3099, 0x0, 0x349e, 0x0, 0x34b9, 0x0, 0x34bb, 0x0, 0x34df, 0x0, 0x3515, 0x0, 0x36ee, 0x0, 0x36fc, 0x0, 0x3781, 0x0, 0x382f, 0x0, 0x3862, 0x0, 0x387c, 0x0, 0x38c7, 0x0, 0x38e3, 0x0, 0x391c, 0x0, 0x393a, 0x0, 0x3a2e, 0x0, 0x3a6c, 0x0, 0x3ae4, 0x0, 0x3b08, 0x0, 0x3b19, 0x0, 0x3b49, 0x0, 0x3b9d, 0x0, 0x3c18, 0x0, 0x3c4e, 0x0, 0x3d33, 0x0, 0x3d96, 0x0, 0x3eac, 0x0, 0x3eb8, 0x0, 0x3f1b, 0x0, 0x3ffc, 0x0, 0x4008, 0x0, 0x4018, 0x0, 0x4039, 0x0, 0x4046, 0x0, 0x4096, 0x0, 0x40e3, 0x0, 0x412f, 0x0, 0x4202, 0x0, 0x4227, 0x0, 0x42a0, 0x0, 0x4301, 0x0, 0x4334, 0x0, 0x4359, 0x0, 0x43d5, 0x0, 0x43d9, 0x0, 0x440b, 0x0, 0x446b, 0x0, 0x452b, 0x0, 0x455d, 0x0, 0x4561, 0x0, 0x456b, 0x0, 0x45d7, 0x0, 0x45f9, 0x0, 0x4635, 0x0, 0x46be, 0x0, 0x46c7, 0x0, 0x4995, 0x0, 0x49e6, 0x0, 0x4a6e, 0x0, 0x4a76, 0x0, 0x4ab2, 0x0, 0x4b33, 0x0, 0x4bce, 0x0, 0x4cce, 0x0, 0x4ced, 0x0, 0x4cf8, 0x0, 0x4d56, 0x0, 0x4e00, 0x0, 0x4e01, 0x0, 0x4e03, 0x0, 0x4e09, 0x0, 0x4e0a, 0x0, 0x4e0b, 0x0, 0x4e0d, 0x0, 0x4e19, 0x0, 0x4e26, 0x0, 0x4e28, 0x0, 0x4e2d, 0x0, 0x4e32, 0x0, 0x4e36, 0x0, 0x4e38, 0x0, 0x4e39, 0x0, 0x4e3d, 0x0, 0x4e3f, 0x0, 0x4e41, 0x0, 0x4e59, 0x0, 0x4e5d, 0x0, 0x4e82, 0x0, 0x4e85, 0x0, 0x4e86, 0x0, 0x4e8c, 0x0, 0x4e94, 0x0, 0x4ea0, 0x0, 0x4ea4, 0x0, 0x4eae, 0x0, 0x4eba, 0x0, 0x4ec0, 0x0, 0x4ecc, 0x0, 0x4ee4, 0x0, 0x4f01, 0x0, 0x4f11, 0x0, 0x4f60, 0x0, 0x4f80, 0x0, 0x4f86, 0x0, 0x4f8b, 0x0, 0x4fae, 0x0, 0x4fbb, 0x0, 0x4fbf, 0x0, 0x5002, 0x0, 0x502b, 0x0, 0x507a, 0x0, 0x5099, 0x0, 0x50cf, 0x0, 0x50da, 0x0, 0x50e7, 0x0, 0x512a, 0x0, 0x513f, 0x0, 0x5140, 0x0, 0x5145, 0x0, 0x514d, 0x0, 0x5154, 0x0, 0x5164, 0x0, 0x5165, 0x0, 0x5167, 0x0, 0x5168, 0x0, 0x5169, 0x0, 0x516b, 0x0, 0x516d, 0x0, 0x5177, 0x0, 0x5180, 0x0, 0x5182, 0x0, 0x518d, 0x0, 0x5192, 0x0, 0x5195, 0x0, 0x5196, 0x0, 0x5197, 0x0, 0x5199, 0x0, 0x51a4, 0x0, 0x51ab, 0x0, 0x51ac, 0x0, 0x51b5, 0x0, 0x51b7, 0x0, 0x51c9, 0x0, 0x51cc, 0x0, 0x51dc, 0x0, 0x51de, 0x0, 0x51e0, 0x0, 0x51f5, 0x0, 0x5200, 0x0, 0x5203, 0x0, 0x5207, 0x0, 0x5217, 0x0, 0x521d, 0x0, 0x5229, 0x0, 0x523a, 0x0, 0x523b, 0x0, 0x5246, 0x0, 0x524d, 0x0, 0x5272, 0x0, 0x5277, 0x0, 0x5289, 0x0, 0x529b, 0x0, 0x52a3, 0x0, 0x52b3, 0x0, 0x52b4, 0x0, 0x52c7, 0x0, 0x52c9, 0x0, 0x52d2, 0x0, 0x52de, 0x0, 0x52e4, 0x0, 0x52f5, 0x0, 0x52f9, 0x0, 0x52fa, 0x0, 0x5305, 0x0, 0x5306, 0x0, 0x5315, 0x0, 0x5317, 0x0, 0x531a, 0x0, 0x5338, 0x0, 0x533b, 0x0, 0x533f, 0x0, 0x5341, 0x0, 0x5344, 0x0, 0x5345, 0x0, 0x5349, 0x0, 0x5351, 0x0, 0x5354, 0x0, 0x535a, 0x0, 0x535c, 0x0, 0x5369, 0x0, 0x5370, 0x0, 0x5373, 0x0, 0x5375, 0x0, 0x537d, 0x0, 0x537f, 0x0, 0x5382, 0x0, 0x53b6, 0x0, 0x53c3, 0x0, 0x53c8, 0x0, 0x53ca, 0x0, 0x53cc, 0x0, 0x53df, 0x0, 0x53e3, 0x0, 0x53e5, 0x0, 0x53eb, 0x0, 0x53ef, 0x0, 0x53f1, 0x0, 0x53f3, 0x0, 0x5406, 0x0, 0x5408, 0x0, 0x540d, 0x0, 0x540f, 0x0, 0x541d, 0x0, 0x5438, 0x0, 0x5439, 0x0, 0x5442, 0x0, 0x5448, 0x0, 0x5468, 0x0, 0x549e, 0x0, 0x54a2, 0x0, 0x54bd, 0x0, 0x54f6, 0x0, 0x5510, 0x0, 0x554f, 0x0, 0x5553, 0x0, 0x5555, 0x0, 0x5563, 0x0, 0x5584, 0x0, 0x5587, 0x0, 0x5599, 0x0, 0x559d, 0x0, 0x55ab, 0x0, 0x55b3, 0x0, 0x55b6, 0x0, 0x55c0, 0x0, 0x55c2, 0x0, 0x55e2, 0x0, 0x5606, 0x0, 0x5651, 0x0, 0x5668, 0x0, 0x5674, 0x0, 0x56d7, 0x0, 0x56db, 0x0, 0x56f9, 0x0, 0x5716, 0x0, 0x5717, 0x0, 0x571f, 0x0, 0x5730, 0x0, 0x578b, 0x0, 0x57ce, 0x0, 0x57f4, 0x0, 0x580d, 0x0, 0x5831, 0x0, 0x5832, 0x0, 0x5840, 0x0, 0x585a, 0x0, 0x585e, 0x0, 0x58a8, 0x0, 0x58ac, 0x0, 0x58b3, 0x0, 0x58d8, 0x0, 0x58df, 0x0, 0x58eb, 0x0, 0x58ee, 0x0, 0x58f0, 0x0, 0x58f2, 0x0, 0x58f7, 0x0, 0x5902, 0x0, 0x5906, 0x0, 0x590a, 0x0, 0x5915, 0x0, 0x591a, 0x0, 0x591c, 0x0, 0x5922, 0x0, 0x5927, 0x0, 0x5927, 0x6b63, 0x0, 0x5929, 0x0, 0x5944, 0x0, 0x5948, 0x0, 0x5951, 0x0, 0x5954, 0x0, 0x5962, 0x0, 0x5973, 0x0, 0x59d8, 0x0, 0x59ec, 0x0, 0x5a1b, 0x0, 0x5a27, 0x0, 0x5a62, 0x0, 0x5a66, 0x0, 0x5ab5, 0x0, 0x5b08, 0x0, 0x5b28, 0x0, 0x5b3e, 0x0, 0x5b50, 0x0, 0x5b57, 0x0, 0x5b66, 0x0, 0x5b80, 0x0, 0x5b85, 0x0, 0x5b97, 0x0, 0x5bc3, 0x0, 0x5bd8, 0x0, 0x5be7, 0x0, 0x5bee, 0x0, 0x5bf3, 0x0, 0x5bf8, 0x0, 0x5bff, 0x0, 0x5c06, 0x0, 0x5c0f, 0x0, 0x5c22, 0x0, 0x5c38, 0x0, 0x5c3f, 0x0, 0x5c60, 0x0, 0x5c62, 0x0, 0x5c64, 0x0, 0x5c65, 0x0, 0x5c6e, 0x0, 0x5c71, 0x0, 0x5c8d, 0x0, 0x5cc0, 0x0, 0x5d19, 0x0, 0x5d43, 0x0, 0x5d50, 0x0, 0x5d6b, 0x0, 0x5d6e, 0x0, 0x5d7c, 0x0, 0x5db2, 0x0, 0x5dba, 0x0, 0x5ddb, 0x0, 0x5de1, 0x0, 0x5de2, 0x0, 0x5de5, 0x0, 0x5de6, 0x0, 0x5df1, 0x0, 0x5dfd, 0x0, 0x5dfe, 0x0, 0x5e28, 0x0, 0x5e3d, 0x0, 0x5e69, 0x0, 0x5e72, 0x0, 0x5e73, 0x6210, 0x0, 0x5e74, 0x0, 0x5e7a, 0x0, 0x5e7c, 0x0, 0x5e7f, 0x0, 0x5ea6, 0x0, 0x5eb0, 0x0, 0x5eb3, 0x0, 0x5eb6, 0x0, 0x5ec9, 0x0, 0x5eca, 0x0, 0x5ed2, 0x0, 0x5ed3, 0x0, 0x5ed9, 0x0, 0x5eec, 0x0, 0x5ef4, 0x0, 0x5efe, 0x0, 0x5f04, 0x0, 0x5f0b, 0x0, 0x5f13, 0x0, 0x5f22, 0x0, 0x5f50, 0x0, 0x5f53, 0x0, 0x5f61, 0x0, 0x5f62, 0x0, 0x5f69, 0x0, 0x5f6b, 0x0, 0x5f73, 0x0, 0x5f8b, 0x0, 0x5f8c, 0x0, 0x5f97, 0x0, 0x5f9a, 0x0, 0x5fa9, 0x0, 0x5fad, 0x0, 0x5fc3, 0x0, 0x5fcd, 0x0, 0x5fd7, 0x0, 0x5ff5, 0x0, 0x5ff9, 0x0, 0x6012, 0x0, 0x601c, 0x0, 0x6075, 0x0, 0x6081, 0x0, 0x6094, 0x0, 0x60c7, 0x0, 0x60d8, 0x0, 0x60e1, 0x0, 0x6108, 0x0, 0x6144, 0x0, 0x6148, 0x0, 0x614c, 0x0, 0x614e, 0x0, 0x6160, 0x0, 0x6168, 0x0, 0x617a, 0x0, 0x618e, 0x0, 0x6190, 0x0, 0x61a4, 0x0, 0x61af, 0x0, 0x61b2, 0x0, 0x61de, 0x0, 0x61f2, 0x0, 0x61f6, 0x0, 0x6200, 0x0, 0x6208, 0x0, 0x6210, 0x0, 0x621b, 0x0, 0x622e, 0x0, 0x6234, 0x0, 0x6236, 0x0, 0x624b, 0x0, 0x6253, 0x0, 0x625d, 0x0, 0x6295, 0x0, 0x62b1, 0x0, 0x62c9, 0x0, 0x62cf, 0x0, 0x62d3, 0x0, 0x62d4, 0x0, 0x62fc, 0x0, 0x62fe, 0x0, 0x6307, 0x0, 0x633d, 0x0, 0x6350, 0x0, 0x6355, 0x0, 0x6368, 0x0, 0x637b, 0x0, 0x6383, 0x0, 0x63a0, 0x0, 0x63a9, 0x0, 0x63c4, 0x0, 0x63c5, 0x0, 0x63e4, 0x0, 0x641c, 0x0, 0x6422, 0x0, 0x6452, 0x0, 0x6469, 0x0, 0x6477, 0x0, 0x647e, 0x0, 0x649a, 0x0, 0x649d, 0x0, 0x64c4, 0x0, 0x652f, 0x0, 0x6534, 0x0, 0x654f, 0x0, 0x6556, 0x0, 0x656c, 0x0, 0x6578, 0x0, 0x6587, 0x0, 0x6597, 0x0, 0x6599, 0x0, 0x65a4, 0x0, 0x65b0, 0x0, 0x65b9, 0x0, 0x65c5, 0x0, 0x65e0, 0x0, 0x65e2, 0x0, 0x65e3, 0x0, 0x65e5, 0x0, 0x660e, 0x6cbb, 0x0, 0x6613, 0x0, 0x6620, 0x0, 0x662d, 0x548c, 0x0, 0x6649, 0x0, 0x6674, 0x0, 0x6688, 0x0, 0x6691, 0x0, 0x669c, 0x0, 0x66b4, 0x0, 0x66c6, 0x0, 0x66f0, 0x0, 0x66f4, 0x0, 0x66f8, 0x0, 0x6700, 0x0, 0x6708, 0x0, 0x6709, 0x0, 0x6717, 0x0, 0x671b, 0x0, 0x6721, 0x0, 0x6728, 0x0, 0x674e, 0x0, 0x6753, 0x0, 0x6756, 0x0, 0x675e, 0x0, 0x677b, 0x0, 0x6785, 0x0, 0x6797, 0x0, 0x67f3, 0x0, 0x67fa, 0x0, 0x6817, 0x0, 0x681f, 0x0, 0x682a, 0x0, 0x682a, 0x5f0f, 0x4f1a, 0x793e, 0x0, 0x6852, 0x0, 0x6881, 0x0, 0x6885, 0x0, 0x688e, 0x0, 0x68a8, 0x0, 0x6914, 0x0, 0x6942, 0x0, 0x69a3, 0x0, 0x69ea, 0x0, 0x6a02, 0x0, 0x6a13, 0x0, 0x6aa8, 0x0, 0x6ad3, 0x0, 0x6adb, 0x0, 0x6b04, 0x0, 0x6b20, 0x0, 0x6b21, 0x0, 0x6b54, 0x0, 0x6b62, 0x0, 0x6b63, 0x0, 0x6b72, 0x0, 0x6b77, 0x0, 0x6b79, 0x0, 0x6b9f, 0x0, 0x6bae, 0x0, 0x6bb3, 0x0, 0x6bba, 0x0, 0x6bbb, 0x0, 0x6bcb, 0x0, 0x6bcd, 0x0, 0x6bd4, 0x0, 0x6bdb, 0x0, 0x6c0f, 0x0, 0x6c14, 0x0, 0x6c34, 0x0, 0x6c4e, 0x0, 0x6c67, 0x0, 0x6c88, 0x0, 0x6cbf, 0x0, 0x6ccc, 0x0, 0x6ccd, 0x0, 0x6ce5, 0x0, 0x6ce8, 0x0, 0x6d16, 0x0, 0x6d1b, 0x0, 0x6d1e, 0x0, 0x6d34, 0x0, 0x6d3e, 0x0, 0x6d41, 0x0, 0x6d69, 0x0, 0x6d6a, 0x0, 0x6d77, 0x0, 0x6d78, 0x0, 0x6d85, 0x0, 0x6dcb, 0x0, 0x6dda, 0x0, 0x6dea, 0x0, 0x6df9, 0x0, 0x6e1a, 0x0, 0x6e2f, 0x0, 0x6e6e, 0x0, 0x6e80, 0x0, 0x6e9c, 0x0, 0x6eba, 0x0, 0x6ec7, 0x0, 0x6ecb, 0x0, 0x6ed1, 0x0, 0x6edb, 0x0, 0x6f0f, 0x0, 0x6f14, 0x0, 0x6f22, 0x0, 0x6f23, 0x0, 0x6f6e, 0x0, 0x6fc6, 0x0, 0x6feb, 0x0, 0x6ffe, 0x0, 0x701b, 0x0, 0x701e, 0x0, 0x7039, 0x0, 0x704a, 0x0, 0x706b, 0x0, 0x7070, 0x0, 0x7077, 0x0, 0x707d, 0x0, 0x7099, 0x0, 0x70ad, 0x0, 0x70c8, 0x0, 0x70d9, 0x0, 0x7121, 0x0, 0x7145, 0x0, 0x7149, 0x0, 0x716e, 0x0, 0x719c, 0x0, 0x71ce, 0x0, 0x71d0, 0x0, 0x7210, 0x0, 0x721b, 0x0, 0x7228, 0x0, 0x722a, 0x0, 0x722b, 0x0, 0x7235, 0x0, 0x7236, 0x0, 0x723b, 0x0, 0x723f, 0x0, 0x7247, 0x0, 0x7250, 0x0, 0x7259, 0x0, 0x725b, 0x0, 0x7262, 0x0, 0x7279, 0x0, 0x7280, 0x0, 0x7295, 0x0, 0x72ac, 0x0, 0x72af, 0x0, 0x72c0, 0x0, 0x72fc, 0x0, 0x732a, 0x0, 0x7375, 0x0, 0x737a, 0x0, 0x7384, 0x0, 0x7387, 0x0, 0x7389, 0x0, 0x738b, 0x0, 0x73a5, 0x0, 0x73b2, 0x0, 0x73de, 0x0, 0x7406, 0x0, 0x7409, 0x0, 0x7422, 0x0, 0x7447, 0x0, 0x745c, 0x0, 0x7469, 0x0, 0x7471, 0x0, 0x7485, 0x0, 0x7489, 0x0, 0x7498, 0x0, 0x74ca, 0x0, 0x74dc, 0x0, 0x74e6, 0x0, 0x7506, 0x0, 0x7518, 0x0, 0x751f, 0x0, 0x7524, 0x0, 0x7528, 0x0, 0x7530, 0x0, 0x7532, 0x0, 0x7533, 0x0, 0x7537, 0x0, 0x753b, 0x0, 0x753e, 0x0, 0x7559, 0x0, 0x7565, 0x0, 0x7570, 0x0, 0x758b, 0x0, 0x7592, 0x0, 0x75e2, 0x0, 0x7610, 0x0, 0x761d, 0x0, 0x761f, 0x0, 0x7642, 0x0, 0x7669, 0x0, 0x7676, 0x0, 0x767d, 0x0, 0x76ae, 0x0, 0x76bf, 0x0, 0x76ca, 0x0, 0x76db, 0x0, 0x76e3, 0x0, 0x76e7, 0x0, 0x76ee, 0x0, 0x76f4, 0x0, 0x7701, 0x0, 0x771e, 0x0, 0x771f, 0x0, 0x7740, 0x0, 0x774a, 0x0, 0x778b, 0x0, 0x77a7, 0x0, 0x77db, 0x0, 0x77e2, 0x0, 0x77f3, 0x0, 0x784e, 0x0, 0x786b, 0x0, 0x788c, 0x0, 0x7891, 0x0, 0x78ca, 0x0, 0x78cc, 0x0, 0x78fb, 0x0, 0x792a, 0x0, 0x793a, 0x0, 0x793c, 0x0, 0x793e, 0x0, 0x7948, 0x0, 0x7949, 0x0, 0x7950, 0x0, 0x7956, 0x0, 0x795d, 0x0, 0x795e, 0x0, 0x7965, 0x0, 0x797f, 0x0, 0x7981, 0x0, 0x798d, 0x0, 0x798e, 0x0, 0x798f, 0x0, 0x79ae, 0x0, 0x79b8, 0x0, 0x79be, 0x0, 0x79ca, 0x0, 0x79d8, 0x0, 0x79eb, 0x0, 0x7a1c, 0x0, 0x7a40, 0x0, 0x7a4a, 0x0, 0x7a4f, 0x0, 0x7a74, 0x0, 0x7a7a, 0x0, 0x7a81, 0x0, 0x7ab1, 0x0, 0x7acb, 0x0, 0x7aee, 0x0, 0x7af9, 0x0, 0x7b20, 0x0, 0x7b8f, 0x0, 0x7bc0, 0x0, 0x7bc6, 0x0, 0x7bc9, 0x0, 0x7c3e, 0x0, 0x7c60, 0x0, 0x7c73, 0x0, 0x7c7b, 0x0, 0x7c92, 0x0, 0x7cbe, 0x0, 0x7cd2, 0x0, 0x7cd6, 0x0, 0x7ce3, 0x0, 0x7ce7, 0x0, 0x7ce8, 0x0, 0x7cf8, 0x0, 0x7d00, 0x0, 0x7d10, 0x0, 0x7d22, 0x0, 0x7d2f, 0x0, 0x7d42, 0x0, 0x7d5b, 0x0, 0x7d63, 0x0, 0x7da0, 0x0, 0x7dbe, 0x0, 0x7dc7, 0x0, 0x7df4, 0x0, 0x7e02, 0x0, 0x7e09, 0x0, 0x7e37, 0x0, 0x7e41, 0x0, 0x7e45, 0x0, 0x7f36, 0x0, 0x7f3e, 0x0, 0x7f51, 0x0, 0x7f72, 0x0, 0x7f79, 0x0, 0x7f7a, 0x0, 0x7f85, 0x0, 0x7f8a, 0x0, 0x7f95, 0x0, 0x7f9a, 0x0, 0x7fbd, 0x0, 0x7ffa, 0x0, 0x8001, 0x0, 0x8005, 0x0, 0x800c, 0x0, 0x8012, 0x0, 0x8033, 0x0, 0x8046, 0x0, 0x8060, 0x0, 0x806f, 0x0, 0x8070, 0x0, 0x807e, 0x0, 0x807f, 0x0, 0x8089, 0x0, 0x808b, 0x0, 0x80ad, 0x0, 0x80b2, 0x0, 0x8103, 0x0, 0x813e, 0x0, 0x81d8, 0x0, 0x81e3, 0x0, 0x81e8, 0x0, 0x81ea, 0x0, 0x81ed, 0x0, 0x81f3, 0x0, 0x81fc, 0x0, 0x8201, 0x0, 0x8204, 0x0, 0x820c, 0x0, 0x8218, 0x0, 0x821b, 0x0, 0x821f, 0x0, 0x826e, 0x0, 0x826f, 0x0, 0x8272, 0x0, 0x8278, 0x0, 0x8279, 0x0, 0x828b, 0x0, 0x8291, 0x0, 0x829d, 0x0, 0x82b1, 0x0, 0x82b3, 0x0, 0x82bd, 0x0, 0x82e5, 0x0, 0x82e6, 0x0, 0x831d, 0x0, 0x8323, 0x0, 0x8336, 0x0, 0x8352, 0x0, 0x8353, 0x0, 0x8363, 0x0, 0x83ad, 0x0, 0x83bd, 0x0, 0x83c9, 0x0, 0x83ca, 0x0, 0x83cc, 0x0, 0x83dc, 0x0, 0x83e7, 0x0, 0x83ef, 0x0, 0x83f1, 0x0, 0x843d, 0x0, 0x8449, 0x0, 0x8457, 0x0, 0x84ee, 0x0, 0x84f1, 0x0, 0x84f3, 0x0, 0x84fc, 0x0, 0x8516, 0x0, 0x8564, 0x0, 0x85cd, 0x0, 0x85fa, 0x0, 0x8606, 0x0, 0x8612, 0x0, 0x862d, 0x0, 0x863f, 0x0, 0x864d, 0x0, 0x8650, 0x0, 0x865c, 0x0, 0x8667, 0x0, 0x8669, 0x0, 0x866b, 0x0, 0x8688, 0x0, 0x86a9, 0x0, 0x86e2, 0x0, 0x870e, 0x0, 0x8728, 0x0, 0x876b, 0x0, 0x8779, 0x0, 0x8786, 0x0, 0x87ba, 0x0, 0x87e1, 0x0, 0x8801, 0x0, 0x881f, 0x0, 0x8840, 0x0, 0x884c, 0x0, 0x8860, 0x0, 0x8863, 0x0, 0x88c2, 0x0, 0x88cf, 0x0, 0x88d7, 0x0, 0x88de, 0x0, 0x88e1, 0x0, 0x88f8, 0x0, 0x88fa, 0x0, 0x8910, 0x0, 0x8941, 0x0, 0x8964, 0x0, 0x897e, 0x0, 0x8986, 0x0, 0x898b, 0x0, 0x8996, 0x0, 0x89d2, 0x0, 0x89e3, 0x0, 0x8a00, 0x0, 0x8aa0, 0x0, 0x8aaa, 0x0, 0x8abf, 0x0, 0x8acb, 0x0, 0x8ad2, 0x0, 0x8ad6, 0x0, 0x8aed, 0x0, 0x8af8, 0x0, 0x8afe, 0x0, 0x8b01, 0x0, 0x8b39, 0x0, 0x8b58, 0x0, 0x8b80, 0x0, 0x8b8a, 0x0, 0x8c37, 0x0, 0x8c46, 0x0, 0x8c48, 0x0, 0x8c55, 0x0, 0x8c78, 0x0, 0x8c9d, 0x0, 0x8ca1, 0x0, 0x8ca9, 0x0, 0x8cab, 0x0, 0x8cc1, 0x0, 0x8cc2, 0x0, 0x8cc7, 0x0, 0x8cc8, 0x0, 0x8cd3, 0x0, 0x8d08, 0x0, 0x8d1b, 0x0, 0x8d64, 0x0, 0x8d70, 0x0, 0x8d77, 0x0, 0x8db3, 0x0, 0x8dbc, 0x0, 0x8dcb, 0x0, 0x8def, 0x0, 0x8df0, 0x0, 0x8eab, 0x0, 0x8eca, 0x0, 0x8ed4, 0x0, 0x8f26, 0x0, 0x8f2a, 0x0, 0x8f38, 0x0, 0x8f3b, 0x0, 0x8f62, 0x0, 0x8f9b, 0x0, 0x8f9e, 0x0, 0x8fb0, 0x0, 0x8fb5, 0x0, 0x8fb6, 0x0, 0x9023, 0x0, 0x9038, 0x0, 0x904a, 0x0, 0x9069, 0x0, 0x9072, 0x0, 0x907c, 0x0, 0x908f, 0x0, 0x9091, 0x0, 0x9094, 0x0, 0x90ce, 0x0, 0x90de, 0x0, 0x90f1, 0x0, 0x90fd, 0x0, 0x9111, 0x0, 0x911b, 0x0, 0x9149, 0x0, 0x916a, 0x0, 0x9199, 0x0, 0x91b4, 0x0, 0x91c6, 0x0, 0x91cc, 0x0, 0x91cf, 0x0, 0x91d1, 0x0, 0x9234, 0x0, 0x9238, 0x0, 0x9276, 0x0, 0x927c, 0x0, 0x92d7, 0x0, 0x92d8, 0x0, 0x9304, 0x0, 0x934a, 0x0, 0x93f9, 0x0, 0x9415, 0x0, 0x9577, 0x0, 0x9580, 0x0, 0x958b, 0x0, 0x95ad, 0x0, 0x95b7, 0x0, 0x961c, 0x0, 0x962e, 0x0, 0x964b, 0x0, 0x964d, 0x0, 0x9675, 0x0, 0x9678, 0x0, 0x967c, 0x0, 0x9686, 0x0, 0x96a3, 0x0, 0x96b6, 0x0, 0x96b7, 0x0, 0x96b8, 0x0, 0x96b9, 0x0, 0x96c3, 0x0, 0x96e2, 0x0, 0x96e3, 0x0, 0x96e8, 0x0, 0x96f6, 0x0, 0x96f7, 0x0, 0x9723, 0x0, 0x9732, 0x0, 0x9748, 0x0, 0x9751, 0x0, 0x9756, 0x0, 0x975e, 0x0, 0x9762, 0x0, 0x9769, 0x0, 0x97cb, 0x0, 0x97db, 0x0, 0x97e0, 0x0, 0x97ed, 0x0, 0x97f3, 0x0, 0x97ff, 0x0, 0x9801, 0x0, 0x9805, 0x0, 0x980b, 0x0, 0x9818, 0x0, 0x9829, 0x0, 0x983b, 0x0, 0x985e, 0x0, 0x98a8, 0x0, 0x98db, 0x0, 0x98df, 0x0, 0x98e2, 0x0, 0x98ef, 0x0, 0x98fc, 0x0, 0x9928, 0x0, 0x9929, 0x0, 0x9996, 0x0, 0x9999, 0x0, 0x99a7, 0x0, 0x99ac, 0x0, 0x99c2, 0x0, 0x99f1, 0x0, 0x99fe, 0x0, 0x9a6a, 0x0, 0x9aa8, 0x0, 0x9ad8, 0x0, 0x9adf, 0x0, 0x9b12, 0x0, 0x9b25, 0x0, 0x9b2f, 0x0, 0x9b32, 0x0, 0x9b3c, 0x0, 0x9b5a, 0x0, 0x9b6f, 0x0, 0x9c40, 0x0, 0x9c57, 0x0, 0x9ce5, 0x0, 0x9cfd, 0x0, 0x9d67, 0x0, 0x9db4, 0x0, 0x9dfa, 0x0, 0x9e1e, 0x0, 0x9e75, 0x0, 0x9e7f, 0x0, 0x9e97, 0x0, 0x9e9f, 0x0, 0x9ea5, 0x0, 0x9ebb, 0x0, 0x9ec3, 0x0, 0x9ecd, 0x0, 0x9ece, 0x0, 0x9ed1, 0x0, 0x9ef9, 0x0, 0x9efd, 0x0, 0x9efe, 0x0, 0x9f05, 0x0, 0x9f0e, 0x0, 0x9f0f, 0x0, 0x9f13, 0x0, 0x9f16, 0x0, 0x9f20, 0x0, 0x9f3b, 0x0, 0x9f43, 0x0, 0x9f4a, 0x0, 0x9f52, 0x0, 0x9f8d, 0x0, 0x9f8e, 0x0, 0x9f9c, 0x0, 0x9f9f, 0x0, 0x9fa0, 0x0, 0xa76f, 0x0, 0x11099, 0x110ba, 0x0, 0x1109b, 0x110ba, 0x0, 0x110a5, 0x110ba, 0x0, 0x11131, 0x11127, 0x0, 0x11132, 0x11127, 0x0, 0x1d157, 0x1d165, 0x0, 0x1d158, 0x1d165, 0x0, 0x1d158, 0x1d165, 0x1d16e, 0x0, 0x1d158, 0x1d165, 0x1d16f, 0x0, 0x1d158, 0x1d165, 0x1d170, 0x0, 0x1d158, 0x1d165, 0x1d171, 0x0, 0x1d158, 0x1d165, 0x1d172, 0x0, 0x1d1b9, 0x1d165, 0x0, 0x1d1b9, 0x1d165, 0x1d16e, 0x0, 0x1d1b9, 0x1d165, 0x1d16f, 0x0, 0x1d1ba, 0x1d165, 0x0, 0x1d1ba, 0x1d165, 0x1d16e, 0x0, 0x1d1ba, 0x1d165, 0x1d16f, 0x0, 0x20122, 0x0, 0x2051c, 0x0, 0x20525, 0x0, 0x2054b, 0x0, 0x2063a, 0x0, 0x20804, 0x0, 0x208de, 0x0, 0x20a2c, 0x0, 0x20b63, 0x0, 0x214e4, 0x0, 0x216a8, 0x0, 0x216ea, 0x0, 0x219c8, 0x0, 0x21b18, 0x0, 0x21d0b, 0x0, 0x21de4, 0x0, 0x21de6, 0x0, 0x22183, 0x0, 0x2219f, 0x0, 0x22331, 0x0, 0x226d4, 0x0, 0x22844, 0x0, 0x2284a, 0x0, 0x22b0c, 0x0, 0x22bf1, 0x0, 0x2300a, 0x0, 0x232b8, 0x0, 0x2335f, 0x0, 0x23393, 0x0, 0x2339c, 0x0, 0x233c3, 0x0, 0x233d5, 0x0, 0x2346d, 0x0, 0x236a3, 0x0, 0x238a7, 0x0, 0x23a8d, 0x0, 0x23afa, 0x0, 0x23cbc, 0x0, 0x23d1e, 0x0, 0x23ed1, 0x0, 0x23f5e, 0x0, 0x23f8e, 0x0, 0x24263, 0x0, 0x242ee, 0x0, 0x243ab, 0x0, 0x24608, 0x0, 0x24735, 0x0, 0x24814, 0x0, 0x24c36, 0x0, 0x24c92, 0x0, 0x24fa1, 0x0, 0x24fb8, 0x0, 0x25044, 0x0, 0x250f2, 0x0, 0x250f3, 0x0, 0x25119, 0x0, 0x25133, 0x0, 0x25249, 0x0, 0x2541d, 0x0, 0x25626, 0x0, 0x2569a, 0x0, 0x256c5, 0x0, 0x2597c, 0x0, 0x25aa7, 0x0, 0x25bab, 0x0, 0x25c80, 0x0, 0x25cd0, 0x0, 0x25f86, 0x0, 0x261da, 0x0, 0x26228, 0x0, 0x26247, 0x0, 0x262d9, 0x0, 0x2633e, 0x0, 0x264da, 0x0, 0x26523, 0x0, 0x265a8, 0x0, 0x267a7, 0x0, 0x267b5, 0x0, 0x26b3c, 0x0, 0x26c36, 0x0, 0x26cd5, 0x0, 0x26d6b, 0x0, 0x26f2c, 0x0, 0x26fb1, 0x0, 0x270d2, 0x0, 0x273ca, 0x0, 0x27667, 0x0, 0x278ae, 0x0, 0x27966, 0x0, 0x27ca8, 0x0, 0x27ed3, 0x0, 0x27f2f, 0x0, 0x285d2, 0x0, 0x285ed, 0x0, 0x2872e, 0x0, 0x28bfa, 0x0, 0x28d77, 0x0, 0x29145, 0x0, 0x291df, 0x0, 0x2921a, 0x0, 0x2940a, 0x0, 0x29496, 0x0, 0x295b6, 0x0, 0x29b30, 0x0, 0x2a0ce, 0x0, 0x2a105, 0x0, 0x2a20e, 0x0, 0x2a291, 0x0, 0x2a392, 0x0, 0x2a600, 0x0]; return t; }
}
}
| D |
module org.eclipse.swt.internal.mozilla.nsIDOMDocumentFragment;
import java.lang.all;
import org.eclipse.swt.internal.mozilla.Common;
import org.eclipse.swt.internal.mozilla.nsID;
import org.eclipse.swt.internal.mozilla.nsIDOMNode;
const char[] NS_IDOMDOCUMENTFRAGMENT_IID_STR = "a6cf9076-15b3-11d2-932e-00805f8add32";
const nsIID NS_IDOMDOCUMENTFRAGMENT_IID=
{0xa6cf9076, 0x15b3, 0x11d2,
[ 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 ]};
interface nsIDOMDocumentFragment : nsIDOMNode {
static const char[] IID_STR = NS_IDOMDOCUMENTFRAGMENT_IID_STR;
static const nsIID IID = NS_IDOMDOCUMENTFRAGMENT_IID;
extern(System):
}
| D |
module fat;
alias FDIR = uint;
alias TCHAR = ubyte;
alias BYTE = ubyte;
alias UINT = uint;
alias FSIZE_t = uint;
alias WORD = ushort;
alias DWORD = uint;
enum FF_MIN_SS = 512;
enum FF_MAX_SS = 512;
enum FR_OK = 0;
/** Filesystem object structure (FATFS) */
struct FATFS
{
BYTE fs_type; /** Filesystem type (0:not mounted) */
BYTE pdrv; /** Associated physical drive */
BYTE n_fats; /** Number of FATs (1 or 2) */
BYTE wflag; /** win[] flag (b0:dirty) */
BYTE fsi_flag; /** FSINFO flags (b7:disabled, b0:dirty) */
WORD id; /** Volume mount ID */
WORD n_rootdir; /** Number of root directory entries (FAT12/16) */
WORD csize; /** Cluster size [sectors] */
DWORD n_fatent; /** Number of FAT entries (number of clusters + 2) */
DWORD fsize; /** Size of an FAT [sectors] */
DWORD volbase; /** Volume base sector */
DWORD fatbase; /** FAT base sector */
DWORD dirbase; /** Root directory base sector/cluster */
DWORD database; /** Data base sector */
DWORD winsect; /** Current sector appearing in the win[] */
BYTE[FF_MAX_SS] win; /** Disk access window for Directory, FAT (and file data at tiny cfg) */
}
/** Object ID and allocation information (FFOBJID) */
struct FFOBJID
{
FATFS* fs; /** Pointer to the hosting volume of this object */
WORD id; /** Hosting volume mount ID */
BYTE attr; /** Object attribute */
BYTE stat; /** Object chain status (b1-0: =0:not contiguous, =2:contiguous, =3:fragmented in this session, b2:sub-directory stretched) */
DWORD sclust; /** Object data start cluster (0:no cluster or root directory) */
FSIZE_t objsize; /** Object size (valid when sclust != 0) */
}
/** File object structure (FIL) */
struct FIL
{
FFOBJID obj; /** Object identifier (must be the 1st member to detect invalid object pointer) */
BYTE flag; /** File status flags */
BYTE err; /** Abort flag (error code) */
FSIZE_t fptr; /** File read/write pointer (Zeroed on file open) */
DWORD clust; /** Current cluster of fpter (invalid when fptr is 0) */
DWORD sect; /** Sector number appearing in buf[] (0:invalid) */
BYTE[512] buf; /** File private data read/write window */
}
/** Directory object structure (DIR) */
struct DIR
{
FFOBJID obj; /** Object identifier */
DWORD dptr; /** Current read/write offset */
DWORD clust; /** Current cluster */
DWORD sect; /** Current sector (0:Read operation has terminated) */
BYTE* dir; /** Pointer to the directory item in the win[] */
BYTE[12] fn; /** SFN (in/out) {body[8],ext[3],status[1]} */
}
/** File information structure (FILINFO) */
struct FILINFO
{
FSIZE_t fsize; /** File size */
WORD fdate; /** Modified date */
WORD ftime; /** Modified time */
BYTE fattrib; /** File attribute */
TCHAR[12 + 1] fname; /** File name */
}
/** File function return code (FRESULT) */
enum FRESULT
{
FR_OK = 0, /** (0) Succeeded */
FR_DISK_ERR, /** (1) A hard error occurred in the low level disk I/O layer */
FR_INT_ERR, /** (2) Assertion failed */
FR_NOT_READY, /** (3) The physical drive cannot work */
FR_NO_FILE, /** (4) Could not find the file */
FR_NO_PATH, /** (5) Could not find the path */
FR_INVALID_NAME, /** (6) The path name format is invalid */
FR_DENIED, /** (7) Access denied due to prohibited access or directory full */
FR_EXIST, /** (8) Access denied due to prohibited access */
FR_INVALID_OBJECT, /** (9) The file/directory object is invalid */
FR_WRITE_PROTECTED, /** (10) The physical drive is write protected */
FR_INVALID_DRIVE, /** (11) The logical drive number is invalid */
FR_NOT_ENABLED, /** (12) The volume has no work area */
FR_NO_FILESYSTEM, /** (13) There is no valid FAT volume */
FR_MKFS_ABORTED, /** (14) The f_mkfs() aborted due to any problem */
FR_TIMEOUT, /** (15) Could not get a grant to access the volume within defined period */
FR_LOCKED, /** (16) The operation is rejected according to the file sharing policy */
FR_NOT_ENOUGH_CORE, /** (17) LFN working buffer could not be allocated */
FR_TOO_MANY_OPEN_FILES, /** (18) Number of open files > FF_FS_LOCK */
FR_INVALID_PARAMETER /** (19) Given parameter is invalid */
}
/** File access mode and open method flags (3rd argument of f_open) */
enum FA_READ = 0x01;
enum FA_WRITE = 0x02;
enum FA_OPEN_EXISTING = 0x00;
enum FA_CREATE_NEW = 0x04;
enum FA_CREATE_ALWAYS = 0x08;
enum FA_OPEN_ALWAYS = 0x10;
enum FA_OPEN_APPEND = 0x30;
pragma(mangle, "f_open") extern (C) FRESULT open(FIL* fp, immutable(char)* path, BYTE mode); /** Open or create a file */
pragma(mangle, "f_close") extern (C) FRESULT close(FIL* fp); /** Close an open file object */
pragma(mangle, "f_read") extern (C) FRESULT read(FIL* fp, void* buff, UINT btr, UINT* br); /** Read data from the file */
//FRESULT f_write (FIL* fp, const(void)* buff, UINT btw, UINT* bw); /** Write data to the file */
pragma(mangle, "f_lseek") extern (C) FRESULT lseek(FIL* fp, FSIZE_t ofs); /** Move file pointer of the file object */
//extern(C) FRESULT f_truncate (FIL* fp); /** Truncate the file */
//extern(C) FRESULT f_sync (FIL* fp); /** Flush cached data of the writing file */
pragma(mangle, "f_opendir") extern (C) FRESULT opendir(DIR* dp, immutable(char)* path); /** Open a directory */
pragma(mangle, "f_closedir") extern (C) FRESULT closedir(DIR* dp); /** Close an open directory */
pragma(mangle, "f_readdir") extern (C) FRESULT readdir(DIR* dp, FILINFO* fno); /** Read a directory item */
//extern(C) FRESULT f_findfirst (DIR* dp, FILINFO* fno, const(TCHAR)* path, const(TCHAR)* pattern); /** Find first file */
//extern(C) FRESULT f_findnext (DIR* dp, FILINFO* fno); /** Find next file */
//FRESULT f_mkdir (const TCHAR* path); /** Create a sub directory */
//FRESULT f_unlink (const TCHAR* path); /** Delete an existing file or directory */
//FRESULT f_rename (const TCHAR* path_old, const TCHAR* path_new); /** Rename/Move a file or directory */
pragma(mangle, "f_stat") extern (C) FRESULT stat(const TCHAR* path, FILINFO* fno); /** Get file status */
//extern(C) FRESULT f_chmod (const TCHAR* path, BYTE attr, BYTE mask); /** Change attribute of a file/dir */
//extern(C) FRESULT f_utime (const TCHAR* path, const FILINFO* fno); /** Change timestamp of a file/dir */
pragma(mangle, "f_chdir") extern (C) FRESULT chdir(const TCHAR* path); /** Change current directory */
pragma(mangle, "f_chdrive") extern (C) FRESULT chdrive(const TCHAR* path); /** Change current drive */
pragma(mangle, "getcwd") extern (C) FRESULT getcwd(TCHAR* buff, UINT len); /** Get current directory */
//extern (C) FRESULT f_getfree(const TCHAR* path, DWORD* nclst, FATFS** fatfs); /** Get number of free clusters on the drive */
//extern (C) FRESULT f_getlabel(const TCHAR* path, TCHAR* label, DWORD* vsn); /** Get volume label */
//extern (C) FRESULT f_setlabel(const TCHAR* label); /** Set volume label */
//FRESULT f_forward (FIL* fp, UINT(*func)(const BYTE*,UINT), UINT btf, UINT* bf); /** Forward data to the stream */
//FRESULT f_expand (FIL* fp, FSIZE_t szf, BYTE opt); /** Allocate a contiguous block to the file */
pragma(mangle, "f_mount") extern (C) FRESULT mount(FATFS* fs, immutable(char)* path, BYTE opt); /** Mount/Unmount a logical drive */
//FRESULT f_mkfs (const TCHAR* path, BYTE opt, DWORD au, void* work, UINT len); /** Create a FAT volume */
//FRESULT f_fdisk (BYTE pdrv, const DWORD* szt, void* work); /** Divide a physical drive into some partitions */
extern (C) FRESULT setcp(WORD cp); /** Set current code page */
//int f_putc (TCHAR c, FIL* fp); /** Put a character to the file */
//int f_puts (const TCHAR* str, FIL* cp); /** Put a string to the file */
//int f_printf (FIL* fp, const TCHAR* str, ...); /** Put a formatted string to the file */
pragma(mangle, "f_gets") extern (C) TCHAR* gets(TCHAR* buff, int len, FIL* fp); /** Get a string from the file */
bool eof(FIL fp)
{
return fp.fptr == fp.obj.objsize;
}
| D |
#!/usr/bin/env dub
/+ dub.sdl:
name "t0"
dflags "-I../source"
dflags "-release"
lflags "-L.."
lflags "-lhl"
+/
// cd to tests and run with "dub run --single t0.d"
void main() {
import std.datetime;
import std.stdio;
import std.experimental.logger;
import hl;
globalLogLevel(LogLevel.info);
auto loop = getEventLoop();
HandlerDelegate handler = (AppEvent e) {
//writeln("Hello from Handler");
//loop.stop();
};
auto timer = new Timer(1.seconds, handler);
loop.startTimer(timer);
writeln("Starting loop1, wait 1.2 seconds ...");
loop.run(1200.msecs);
writeln("loop1 stopped");
for(int i; i < 10; i++) {
timer = new Timer(1.seconds, handler);
loop.startTimer(timer);
loop.stopTimer(timer);
}
writeln("10_000 timers start-stopped");
Timer[] ts = new Timer[](100_000);
for(int i; i<100_000; i++) {
ts[i] = new Timer(1.seconds, handler);
loop.startTimer(ts[i]);
}
writeln("100_000 timers started");
for(int i; i<100_000; i++) {
loop.stopTimer(ts[i]);
}
writeln("100_000 timers stopped");
timer = new Timer(1.seconds, handler);
loop.startTimer(timer);
writeln("Starting loop2, wait 1seconds ...");
loop.run(1.seconds);
writeln("loop2 stopped");
}
| D |
//Written in the D programming language
/*
* Persistant storage for singular variables.
*
* Copyright (C) 2013-2014 Jaypha
*
* Distributed under the Boost Software License, Version 1.0.
* (See http://www.boost.org/LICENSE_1_0.txt)
*
* Authors: Jason den Dulk
*/
module jaypha.dbsql.variables;
import jaypha.types;
import jaypha.io.serialize;
struct Variables(Database)
{
Database database;
string table;
private strstr values;
bool isSet(string name)
{
if (name in values)
return true;
else
return (database.queryValue("select count(*) from "~table~" where name='"~name~"'") != "0");
}
string get(T:string)(string name)
{
if (!(name in values))
{
auto s = database.queryValue("select value from "~table~" where name='"~name~"'");
if (s is null)
return null;
else
{
values[name] = s;
}
}
return values[name];
}
T get(T)(string name)
{
auto s = get!string(name);
return (s is null)?T.init:unserialize!T(s);
}
void set(T:string)(string name, string value)
{
values[name] = value;
database.query("replace "~table~" set name='"~name~"', value="~database.quote(value));
}
void set(T)(string name, T value)
{
set!string(name,serialize!(T)(value));
}
void unset(string name)
{
database.query("delete from "~table~" where name='"~name~"'");
values.remove(name);
}
alias set!ulong setInt;
alias set!string setStr;
alias get!ulong getInt;
alias get!string getStr;
}
| D |
/**
* Pebble color data structures, and operations on them.
*/
module pebble.gcolor;
import pebble.versions;
@nogc:
@safe:
pure:
nothrow:
/// A color for aplite Pebble watches, which have only 2 colors.
enum GColorMonoChrome {
/// Represents "clear" or transparent.
clear = ~0,
/// Represents black.
black = 0,
/// Represents white.
white = 1,
}
/**
* A 8-bit color value with an alpha channel.
*
* These colors are only available on the basalt pebble watches.
*/
struct GColor8 {
@nogc:
@safe:
pure:
nothrow:
/**
* The color data represented with the bits 0 and 1 as blue,
* bits 2 and 3 as green, bits 4 and 5 as red,
* and bits 6 and 7 as an alpha channel, ranging from the least
* significant bit to the most significant. (right to left)
*/
ubyte argb;
/**
* Create an 8-bit color from one unsigned byte holding all the color values.
*/
this(ubyte argb) {
this.argb = argb;
}
/**
* Create an 8-bit color from 24-bit RGBA values.
*/
this(ubyte red, ubyte green, ubyte blue, ubyte alpha) {
this.r = red >> 6;
this.g = green >> 6;
this.b = blue >> 6;
this.a = alpha >> 6;
}
/**
* Create an 8-bit color from 24-bit RGB values.
*/
this(ubyte red, ubyte green, ubyte blue) {
this.r = red >> 6;
this.g = green >> 6;
this.b = blue >> 6;
this.a = 0b11;
}
/**
* The alpha value.
*
* 3 = 100% opaque,
* 2 = 66% opaque,
* 1 = 33% opaque,
* 0 = transparent.
*/
@property ubyte a() const
out(value) {
assert(value >= 0 && value <= 3);
} body {
return argb >> 6;
}
/// Set the alpha value.
@property void a(ubyte value)
in {
assert(value >= 0 && value <= 3);
} body {
argb &= 0b00_11_11_11;
argb |= value << 6;
}
/// Red
@property ubyte r() const
out(value) {
assert(value >= 0 && value <= 3);
} body {
return (argb & 0b00_11_00_00) >> 4;
}
/// Set the red value.
@property void r(ubyte value)
in {
assert(value >= 0 && value <= 3);
} body {
argb &= 0b11_00_11_11;
argb |= value << 4;
}
/// Green
@property ubyte g() const
out(value) {
assert(value >= 0 && value <= 3);
} body {
return (argb & 0b00_00_11_00) >> 2;
}
/// Set the green value.
@property void g(ubyte value)
in {
assert(value >= 0 && value <= 3);
} body {
argb &= 0b11_11_00_11;
argb |= value << 2;
}
/// Blue
@property ubyte b() const
out(value) {
assert(value >= 0 && value <= 3);
} body {
return argb & 0b00_00_00_11;
}
/// Set the blue value.
@property void b(ubyte value)
in {
assert(value >= 0 && value <= 3);
} body {
argb &= 0b11_11_11_00;
argb |= value;
}
}
// Test that all of the bitmasks are done properly.
unittest {
GColor8 color;
color.a = 1;
assert(color.argb == 0b01_00_00_00);
assert(color.a == 1);
color.a = 0;
color.r = 1;
assert(color.argb == 0b00_01_00_00);
assert(color.r == 1);
color.r = 0;
color.g = 1;
assert(color.argb == 0b00_00_01_00);
assert(color.g == 1);
color.g = 0;
color.b = 1;
assert(color.argb == 0b00_00_00_01);
assert(color.b == 1);
}
deprecated("Use GColor8(r, g, b, a) instead of GColorFromRGBA(r, g, b, a)")
GColor8 GColorFromRGBA(ubyte red, ubyte green, ubyte blue, ubyte alpha) {
return GColor8(red, green, blue, alpha);
}
deprecated("Use GColor8(r, g, b) instead of GColorFromRGB(r, g, b)")
GColor8 GColorFromRGB(ubyte red, ubyte green, ubyte blue) {
return GColor8(red, green, blue);
}
/**
* Convert a hex integer to a GColor8.
*
* Params:
* v = Integer hex value (e.g. 0x64ff46)
*
* Returns: A color created from the hex value.
*/
GColor8 GColorFromHEX(uint v) {
return GColor8(v >> 16 & 0xff, v >> 8 & 0xff, v & 0xff);
}
/**
* Comparison function for GColors.
*
* This simply returns x == y in D, so it is not recommended and exists only
* for helping port code to D.
*/
deprecated("Use x == y instead of GColorEq(x, y)")
bool GColorEq(GColor8 x, GColor8 y) {
return x == y;
}
// Define the colour values.
///
enum ubyte GColorBlackARGB8 = 0b11000000;
///
enum ubyte GColorOxfordBlueARGB8 = 0b11000001;
///
enum ubyte GColorDukeBlueARGB8 = 0b11000010;
///
enum ubyte GColorBlueARGB8 = 0b11000011;
///
enum ubyte GColorDarkGreenARGB8 = 0b11000100;
///
enum ubyte GColorMidnightGreenARGB8 = 0b11000101;
///
enum ubyte GColorCobaltBlueARGB8 = 0b11000110;
///
enum ubyte GColorBlueMoonARGB8 = 0b11000111;
///
enum ubyte GColorIslamicGreenARGB8 = 0b11001000;
///
enum ubyte GColorJaegerGreenARGB8 = 0b11001001;
///
enum ubyte GColorTiffanyBlueARGB8 = 0b11001010;
///
enum ubyte GColorVividCeruleanARGB8 = 0b11001011;
///
enum ubyte GColorGreenARGB8 = 0b11001100;
///
enum ubyte GColorMalachiteARGB8 = 0b11001101;
///
enum ubyte GColorMediumSpringGreenARGB8 = 0b11001110;
///
enum ubyte GColorCyanARGB8 = 0b11001111;
///
enum ubyte GColorBulgarianRoseARGB8 = 0b11010000;
///
enum ubyte GColorImperialPurpleARGB8 = 0b11010001;
///
enum ubyte GColorIndigoARGB8 = 0b11010010;
///
enum ubyte GColorElectricUltramarineARGB8 = 0b11010011;
///
enum ubyte GColorArmyGreenARGB8 = 0b11010100;
///
enum ubyte GColorDarkGrayARGB8 = 0b11010101;
///
enum ubyte GColorLibertyARGB8 = 0b11010110;
///
enum ubyte GColorVeryLightBlueARGB8 = 0b11010111;
///
enum ubyte GColorKellyGreenARGB8 = 0b11011000;
///
enum ubyte GColorMayGreenARGB8 = 0b11011001;
///
enum ubyte GColorCadetBlueARGB8 = 0b11011010;
///
enum ubyte GColorPictonBlueARGB8 = 0b11011011;
///
enum ubyte GColorBrightGreenARGB8 = 0b11011100;
///
enum ubyte GColorScreaminGreenARGB8 = 0b11011101;
///
enum ubyte GColorMediumAquamarineARGB8 = 0b11011110;
///
enum ubyte GColorElectricBlueARGB8 = 0b11011111;
///
enum ubyte GColorDarkCandyAppleRedARGB8 = 0b11100000;
///
enum ubyte GColorJazzberryJamARGB8 = 0b11100001;
///
enum ubyte GColorPurpleARGB8 = 0b11100010;
///
enum ubyte GColorVividVioletARGB8 = 0b11100011;
///
enum ubyte GColorWindsorTanARGB8 = 0b11100100;
///
enum ubyte GColorRoseValeARGB8 = 0b11100101;
///
enum ubyte GColorPurpureusARGB8 = 0b11100110;
///
enum ubyte GColorLavenderIndigoARGB8 = 0b11100111;
///
enum ubyte GColorLimerickARGB8 = 0b11101000;
///
enum ubyte GColorBrassARGB8 = 0b11101001;
///
enum ubyte GColorLightGrayARGB8 = 0b11101010;
///
enum ubyte GColorBabyBlueEyesARGB8 = 0b11101011;
///
enum ubyte GColorSpringBudARGB8 = 0b11101100;
///
enum ubyte GColorInchwormARGB8 = 0b11101101;
///
enum ubyte GColorMintGreenARGB8 = 0b11101110;
///
enum ubyte GColorCelesteARGB8 = 0b11101111;
///
enum ubyte GColorRedARGB8 = 0b11110000;
///
enum ubyte GColorFollyARGB8 = 0b11110001;
///
enum ubyte GColorFashionMagentaARGB8 = 0b11110010;
///
enum ubyte GColorMagentaARGB8 = 0b11110011;
///
enum ubyte GColorOrangeARGB8 = 0b11110100;
///
enum ubyte GColorSunsetOrangeARGB8 = 0b11110101;
///
enum ubyte GColorBrilliantRoseARGB8 = 0b11110110;
///
enum ubyte GColorShockingPinkARGB8 = 0b11110111;
///
enum ubyte GColorChromeYellowARGB8 = 0b11111000;
///
enum ubyte GColorRajahARGB8 = 0b11111001;
///
enum ubyte GColorMelonARGB8 = 0b11111010;
///
enum ubyte GColorRichBrilliantLavenderARGB8 = 0b11111011;
///
enum ubyte GColorYellowARGB8 = 0b11111100;
///
enum ubyte GColorIcterineARGB8 = 0b11111101;
///
enum ubyte GColorPastelYellowARGB8 = 0b11111110;
///
enum ubyte GColorWhiteARGB8 = 0b11111111;
///
enum ubyte GColorClearARGB8 = 0;
///
enum GColorOxfordBlue = GColor8(GColorOxfordBlueARGB8);
///
enum GColorDukeBlue = GColor8(GColorDukeBlueARGB8);
///
enum GColorBlue = GColor8(GColorBlueARGB8);
///
enum GColorDarkGreen = GColor8(GColorDarkGreenARGB8);
///
enum GColorMidnightGreen = GColor8(GColorMidnightGreenARGB8);
///
enum GColorCobaltBlue = GColor8(GColorCobaltBlueARGB8);
///
enum GColorBlueMoon = GColor8(GColorBlueMoonARGB8);
///
enum GColorIslamicGreen = GColor8(GColorIslamicGreenARGB8);
///
enum GColorJaegerGreen = GColor8(GColorJaegerGreenARGB8);
///
enum GColorTiffanyBlue = GColor8(GColorTiffanyBlueARGB8);
///
enum GColorVividCerulean = GColor8(GColorVividCeruleanARGB8);
///
enum GColorGreen = GColor8(GColorGreenARGB8);
///
enum GColorMalachite = GColor8(GColorMalachiteARGB8);
///
enum GColorMediumSpringGreen = GColor8(GColorMediumSpringGreenARGB8);
///
enum GColorCyan = GColor8(GColorCyanARGB8);
///
enum GColorBulgarianRose = GColor8(GColorBulgarianRoseARGB8);
///
enum GColorImperialPurple = GColor8(GColorImperialPurpleARGB8);
///
enum GColorIndigo = GColor8(GColorIndigoARGB8);
///
enum GColorElectricUltramarine = GColor8(GColorElectricUltramarineARGB8);
///
enum GColorArmyGreen = GColor8(GColorArmyGreenARGB8);
///
enum GColorDarkGray = GColor8(GColorDarkGrayARGB8);
///
enum GColorLiberty = GColor8(GColorLibertyARGB8);
///
enum GColorVeryLightBlue = GColor8(GColorVeryLightBlueARGB8);
///
enum GColorKellyGreen = GColor8(GColorKellyGreenARGB8);
///
enum GColorMayGreen = GColor8(GColorMayGreenARGB8);
///
enum GColorCadetBlue = GColor8(GColorCadetBlueARGB8);
///
enum GColorPictonBlue = GColor8(GColorPictonBlueARGB8);
///
enum GColorBrightGreen = GColor8(GColorBrightGreenARGB8);
///
enum GColorScreaminGreen = GColor8(GColorScreaminGreenARGB8);
///
enum GColorMediumAquamarine = GColor8(GColorMediumAquamarineARGB8);
///
enum GColorElectricBlue = GColor8(GColorElectricBlueARGB8);
///
enum GColorDarkCandyAppleRed = GColor8(GColorDarkCandyAppleRedARGB8);
///
enum GColorJazzberryJam = GColor8(GColorJazzberryJamARGB8);
///
enum GColorPurple = GColor8(GColorPurpleARGB8);
///
enum GColorVividViolet = GColor8(GColorVividVioletARGB8);
///
enum GColorWindsorTan = GColor8(GColorWindsorTanARGB8);
///
enum GColorRoseVale = GColor8(GColorRoseValeARGB8);
///
enum GColorPurpureus = GColor8(GColorPurpureusARGB8);
///
enum GColorLavenderIndigo = GColor8(GColorLavenderIndigoARGB8);
///
enum GColorLimerick = GColor8(GColorLimerickARGB8);
///
enum GColorBrass = GColor8(GColorBrassARGB8);
///
enum GColorLightGray = GColor8(GColorLightGrayARGB8);
///
enum GColorBabyBlueEyes = GColor8(GColorBabyBlueEyesARGB8);
///
enum GColorSpringBud = GColor8(GColorSpringBudARGB8);
///
enum GColorInchworm = GColor8(GColorInchwormARGB8);
///
enum GColorMintGreen = GColor8(GColorMintGreenARGB8);
///
enum GColorCeleste = GColor8(GColorCelesteARGB8);
///
enum GColorRed = GColor8(GColorRedARGB8);
///
enum GColorFolly = GColor8(GColorFollyARGB8);
///
enum GColorFashionMagenta = GColor8(GColorFashionMagentaARGB8);
///
enum GColorMagenta = GColor8(GColorMagentaARGB8);
///
enum GColorOrange = GColor8(GColorOrangeARGB8);
///
enum GColorSunsetOrange = GColor8(GColorSunsetOrangeARGB8);
///
enum GColorBrilliantRose = GColor8(GColorBrilliantRoseARGB8);
///
enum GColorShockingPink = GColor8(GColorShockingPinkARGB8);
///
enum GColorChromeYellow = GColor8(GColorChromeYellowARGB8);
///
enum GColorRajah = GColor8(GColorRajahARGB8);
///
enum GColorMelon = GColor8(GColorMelonARGB8);
///
enum GColorRichBrilliantLavender = GColor8(GColorRichBrilliantLavenderARGB8);
///
enum GColorYellow = GColor8(GColorYellowARGB8);
///
enum GColorIcterine = GColor8(GColorIcterineARGB8);
///
enum GColorPastelYellow = GColor8(GColorPastelYellowARGB8);
///
enum GColor8Clear = GColor.init;
///
enum GColor8Black = GColor8(GColorBlackARGB8);
///
enum GColor8White = GColor8(GColorWhiteARGB8);
version(PEBBLE_APLITE) {
///
alias GColor = GColorMonoCrome;
///
alias GColorClear = GColorMonoChrome.clear;
///
alias GColorBlack = GColorMonoChrome.black;
///
alias GColorWhite = GColorMonoChrome.white;
} else {
///
alias GColor = GColor8;
///
alias GColorClear = GColor8Clear;
///
alias GColorBlack = GColor8Black;
///
alias GColorWhite = GColor8White;
}
/**
* This function simply returns one of the two arguments given to it, depending
* on the platform, for falling back from a more complex color
* to a black and white color on watches with less colours.
*
* This is to replicate the effects of a macro defined in the official Pebble
* SDK headers.
*
* Because this function simply returns one of its arguments, a good D
* compiler should able to inline this function and reduce it to just one
* of the arguments itself with no runtime cost.
*/
auto COLOR_FALLBACK(GColor8 color, GColorMonoChrome bw) {
version(PEBBLE_APLITE) {
return bw;
} else {
return color;
}
}
| D |
module shard.checked_pointer;
struct CheckedVoidPtr {
import shard.hash: Hash64;
import shard.memory.traits : PtrType, to_ptr_type;
import std.traits : fullyQualifiedName;
Hash64 cookie;
void* ptr;
this(T)(T* t) nothrow {
enum type_hash = Hash64(fullyQualifiedName!T.hashOf);
cookie = type_hash;
ptr = t;
}
this(T)(T t) nothrow if (is(T == class) || is(T == interface)) {
enum type_hash = Hash64(fullyQualifiedName!T.hashOf);
cookie = type_hash;
ptr = cast(void*) t;
}
PtrType!T get(T)() nothrow {
enum type_hash = Hash64(fullyQualifiedName!T.hashOf);
assert(type_hash == cookie);
return to_ptr_type!T(ptr);
}
void opAssign(ref CheckedVoidPtr other) nothrow {
this.cookie = other.cookie;
this.ptr = other.ptr;
}
void opAssign(T)(T* t) nothrow {
enum type_hash = Hash64(fullyQualifiedName!T.hashOf);
cookie = type_hash;
ptr = cast(void*) t;
}
void opAssign(T)(T t) nothrow if (is(T == class) || is(T == interface)) {
enum type_hash = Hash64(fullyQualifiedName!T.hashOf);
cookie = type_hash;
ptr = cast(void*) t;
}
}
| D |
/u/tlan2/Rust/Mini_Games/target/debug/deps/libordered_float-8642b7845f691bcc.rlib: /u/tlan2/.cargo/registry/src/github.com-1ecc6299db9ec823/ordered-float-1.0.2/src/lib.rs
/u/tlan2/Rust/Mini_Games/target/debug/deps/ordered_float-8642b7845f691bcc.d: /u/tlan2/.cargo/registry/src/github.com-1ecc6299db9ec823/ordered-float-1.0.2/src/lib.rs
/u/tlan2/.cargo/registry/src/github.com-1ecc6299db9ec823/ordered-float-1.0.2/src/lib.rs:
| D |
/**
* TypeInfo support code.
*
* Copyright: Copyright Digital Mars 2004 - 2009.
* License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
* Authors: Walter Bright
*/
/* Copyright Digital Mars 2004 - 2009.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
module rt.typeinfo.ti_ubyte;
// ubyte
class TypeInfo_h : TypeInfo
{
@trusted:
const:
pure:
nothrow:
override string toString() const pure nothrow @safe { return "ubyte"; }
override size_t getHash(scope const void* p)
{
return *cast(const ubyte *)p;
}
override bool equals(in void* p1, in void* p2)
{
return *cast(ubyte *)p1 == *cast(ubyte *)p2;
}
override int compare(in void* p1, in void* p2)
{
return *cast(ubyte *)p1 - *cast(ubyte *)p2;
}
override @property size_t tsize() nothrow pure
{
return ubyte.sizeof;
}
override const(void)[] initializer() const @trusted
{
return (cast(void *)null)[0 .. ubyte.sizeof];
}
override void swap(void *p1, void *p2)
{
ubyte t;
t = *cast(ubyte *)p1;
*cast(ubyte *)p1 = *cast(ubyte *)p2;
*cast(ubyte *)p2 = t;
}
}
class TypeInfo_b : TypeInfo_h
{
@trusted:
const:
pure:
nothrow:
override string toString() const pure nothrow @safe { return "bool"; }
}
| D |
module mach.sdl.init.sdl.image;
private:
import derelict.sdl2.image;
import mach.sdl.error : SDLException;
import mach.sdl.flags;
public:
/// https://www.libsdl.org/projects/SDL_image/
struct Image{
static load(){DerelictSDL2Image.load();}
static unload(){DerelictSDL2Image.unload();}
/// https://www.libsdl.org/projects/SDL_image/docs/SDL_image_8.html
static enum Format: int{
None = 0,
JPG = IMG_INIT_JPG,
PNG = IMG_INIT_PNG,
TIF = IMG_INIT_TIF,
WEBP = IMG_INIT_WEBP,
All = JPG | PNG | TIF | WEBP,
Default = JPG | PNG,
}
/// Wraps a bitmask of image format options with helpful methods.
alias Formats = BitFlagAggregate!(int, Format);
/// https://www.libsdl.org/projects/SDL_image/docs/SDL_image_8.html
static void initialize(Formats formats){
int result = IMG_Init(formats.flags);
if((result & formats.flags) != formats.flags){
throw new SDLException("Failed to initialize image library.");
}
}
/// Get which formats have so far been successfully initialized.
static Formats initialized(){
return Formats(IMG_Init(0));
}
/// https://www.libsdl.org/projects/SDL_image/docs/SDL_image_9.html
static void quit(){
IMG_Quit();
}
}
| D |
.build_1i2o2_lin33_48k_usbctl_farenddsp/_m_usb_audio/endpoint0/dbcalc.xc.d .build_1i2o2_lin33_48k_usbctl_farenddsp/_m_usb_audio/endpoint0/dbcalc.xc.o .build_1i2o2_lin33_48k_usbctl_farenddsp/_m_usb_audio/endpoint0/dbcalc.xc.pca.xml: C:/Users/user/workspace/module_usb_audio/endpoint0/dbcalc.xc
| D |
/**
* D header file for POSIX.
*
* Copyright: Copyright Sean Kelly 2005 - 2009.
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: Sean Kelly, Alex Rønne Petersen
* Standards: The Open Group Base Specifications Issue 6, IEEE Std 1003.1, 2004 Edition
*/
/* Copyright Sean Kelly 2005 - 2009.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
module core.sys.posix.fcntl;
private import core.sys.posix.config;
private import core.stdc.stdint;
public import core.stdc.stddef; // for size_t
public import core.sys.posix.sys.types; // for off_t, mode_t
public import core.sys.posix.sys.stat; // for S_IFMT, etc.
version (Posix):
extern (C):
//
// Required
//
/*
F_DUPFD
F_GETFD
F_SETFD
F_GETFL
F_SETFL
F_GETLK
F_SETLK
F_SETLKW
F_GETOWN
F_SETOWN
FD_CLOEXEC
F_RDLCK
F_UNLCK
F_WRLCK
O_CREAT
O_EXCL
O_NOCTTY
O_TRUNC
O_APPEND
O_DSYNC
O_NONBLOCK
O_RSYNC
O_SYNC
O_ACCMODE
O_RDONLY
O_RDWR
O_WRONLY
struct flock
{
short l_type;
short l_whence;
off_t l_start;
off_t l_len;
pid_t l_pid;
}
int creat(in char*, mode_t);
int fcntl(int, int, ...);
int open(in char*, int, ...);
*/
version( linux )
{
enum F_DUPFD = 0;
enum F_GETFD = 1;
enum F_SETFD = 2;
enum F_GETFL = 3;
enum F_SETFL = 4;
version(X86_64)
{
static assert(off_t.sizeof == 8);
enum F_GETLK = 5;
enum F_SETLK = 6;
enum F_SETLKW = 7;
}
else
static if( __USE_FILE_OFFSET64 )
{
enum F_GETLK = 12;
enum F_SETLK = 13;
enum F_SETLKW = 14;
}
else
{
enum F_GETLK = 5;
enum F_SETLK = 6;
enum F_SETLKW = 7;
}
enum F_GETOWN = 9;
enum F_SETOWN = 8;
enum FD_CLOEXEC = 1;
enum F_RDLCK = 0;
enum F_UNLCK = 2;
enum F_WRLCK = 1;
version (X86)
{
enum O_CREAT = 0x40; // octal 0100
enum O_EXCL = 0x80; // octal 0200
enum O_NOCTTY = 0x100; // octal 0400
enum O_TRUNC = 0x200; // octal 01000
enum O_APPEND = 0x400; // octal 02000
enum O_NONBLOCK = 0x800; // octal 04000
enum O_SYNC = 0x101000; // octal 04010000
enum O_DSYNC = 0x1000; // octal 010000
enum O_RSYNC = O_SYNC;
}
else version (X86_64)
{
enum O_CREAT = 0x40; // octal 0100
enum O_EXCL = 0x80; // octal 0200
enum O_NOCTTY = 0x100; // octal 0400
enum O_TRUNC = 0x200; // octal 01000
enum O_APPEND = 0x400; // octal 02000
enum O_NONBLOCK = 0x800; // octal 04000
enum O_SYNC = 0x101000; // octal 04010000
enum O_DSYNC = 0x1000; // octal 010000
enum O_RSYNC = O_SYNC;
}
else version (MIPS32)
{
enum O_CREAT = 0x0100;
enum O_EXCL = 0x0400;
enum O_NOCTTY = 0x0800;
enum O_TRUNC = 0x0200;
enum O_APPEND = 0x0008;
enum O_DSYNC = O_SYNC;
enum O_NONBLOCK = 0x0080;
enum O_RSYNC = O_SYNC;
enum O_SYNC = 0x0010;
}
else version (MIPS64)
{
enum O_CREAT = 0x0100;
enum O_EXCL = 0x0400;
enum O_NOCTTY = 0x0800;
enum O_TRUNC = 0x0200;
enum O_APPEND = 0x0008;
enum O_DSYNC = 0x0010;
enum O_NONBLOCK = 0x0080;
enum O_RSYNC = O_SYNC;
enum O_SYNC = 0x4010;
}
else version (PPC)
{
enum O_CREAT = 0x40; // octal 0100
enum O_EXCL = 0x80; // octal 0200
enum O_NOCTTY = 0x100; // octal 0400
enum O_TRUNC = 0x200; // octal 01000
enum O_APPEND = 0x400; // octal 02000
enum O_NONBLOCK = 0x800; // octal 04000
enum O_SYNC = 0x101000; // octal 04010000
enum O_DSYNC = 0x1000; // octal 010000
enum O_RSYNC = O_SYNC;
}
else version (PPC64)
{
enum O_CREAT = 0x40; // octal 0100
enum O_EXCL = 0x80; // octal 0200
enum O_NOCTTY = 0x100; // octal 0400
enum O_TRUNC = 0x200; // octal 01000
enum O_APPEND = 0x400; // octal 02000
enum O_NONBLOCK = 0x800; // octal 04000
enum O_SYNC = 0x101000; // octal 04010000
enum O_DSYNC = 0x1000; // octal 010000
enum O_RSYNC = O_SYNC;
}
else version (ARM)
{
enum O_CREAT = 0x40; // octal 0100
enum O_EXCL = 0x80; // octal 0200
enum O_NOCTTY = 0x100; // octal 0400
enum O_TRUNC = 0x200; // octal 01000
enum O_APPEND = 0x400; // octal 02000
enum O_NONBLOCK = 0x800; // octal 04000
enum O_SYNC = 0x101000; // octal 04010000
enum O_DSYNC = 0x1000; // octal 010000
enum O_RSYNC = O_SYNC;
}
else version (AArch64)
{
enum O_CREAT = 0x40; // octal 0100
enum O_EXCL = 0x80; // octal 0200
enum O_NOCTTY = 0x100; // octal 0400
enum O_TRUNC = 0x200; // octal 01000
enum O_APPEND = 0x400; // octal 02000
enum O_NONBLOCK = 0x800; // octal 04000
enum O_SYNC = 0x101000; // octal 04010000
enum O_DSYNC = 0x1000; // octal 010000
enum O_RSYNC = O_SYNC;
}
else
static assert(0, "unimplemented");
enum O_ACCMODE = 0x3;
enum O_RDONLY = 0x0;
enum O_WRONLY = 0x1;
enum O_RDWR = 0x2;
struct flock
{
short l_type;
short l_whence;
off_t l_start;
off_t l_len;
pid_t l_pid;
}
static if( __USE_FILE_OFFSET64 )
{
int creat64(in char*, mode_t);
alias creat64 creat;
int open64(in char*, int, ...);
alias open64 open;
}
else
{
int creat(in char*, mode_t);
int open(in char*, int, ...);
}
}
else version( OSX )
{
enum F_DUPFD = 0;
enum F_GETFD = 1;
enum F_SETFD = 2;
enum F_GETFL = 3;
enum F_SETFL = 4;
enum F_GETOWN = 5;
enum F_SETOWN = 6;
enum F_GETLK = 7;
enum F_SETLK = 8;
enum F_SETLKW = 9;
enum FD_CLOEXEC = 1;
enum F_RDLCK = 1;
enum F_UNLCK = 2;
enum F_WRLCK = 3;
enum O_CREAT = 0x0200;
enum O_EXCL = 0x0800;
enum O_NOCTTY = 0;
enum O_TRUNC = 0x0400;
enum O_RDONLY = 0x0000;
enum O_WRONLY = 0x0001;
enum O_RDWR = 0x0002;
enum O_ACCMODE = 0x0003;
enum O_NONBLOCK = 0x0004;
enum O_APPEND = 0x0008;
enum O_SYNC = 0x0080;
//enum O_DSYNC
//enum O_RSYNC
struct flock
{
off_t l_start;
off_t l_len;
pid_t l_pid;
short l_type;
short l_whence;
}
int creat(in char*, mode_t);
int open(in char*, int, ...);
}
else version( FreeBSD )
{
enum F_DUPFD = 0;
enum F_GETFD = 1;
enum F_SETFD = 2;
enum F_GETFL = 3;
enum F_SETFL = 4;
enum F_GETOWN = 5;
enum F_SETOWN = 6;
enum F_GETLK = 11;
enum F_SETLK = 12;
enum F_SETLKW = 13;
enum F_OGETLK = 7;
enum F_OSETLK = 8;
enum F_OSETLKW = 9;
enum F_DUP2FD = 10;
enum FD_CLOEXEC = 1;
enum F_RDLCK = 1;
enum F_UNLCK = 2;
enum F_WRLCK = 3;
enum O_CREAT = 0x0200;
enum O_EXCL = 0x0800;
enum O_NOCTTY = 0x8000;
enum O_TRUNC = 0x0400;
enum O_RDONLY = 0x0000;
enum O_WRONLY = 0x0001;
enum O_RDWR = 0x0002;
enum O_ACCMODE = 0x0003;
enum O_NONBLOCK = 0x0004;
enum O_APPEND = 0x0008;
enum O_SYNC = 0x0080;
//enum O_DSYNC
//enum O_RSYNC
struct flock
{
off_t l_start;
off_t l_len;
pid_t l_pid;
short l_type;
short l_whence;
int l_sysid;
}
struct oflock
{
off_t l_start;
off_t l_len;
pid_t l_pid;
short l_type;
short l_whence;
}
int creat(in char*, mode_t);
int open(in char*, int, ...);
}
else version (Solaris)
{
enum F_DUPFD = 0;
enum F_GETFD = 1;
enum F_SETFD = 2;
enum F_GETFL = 3;
enum F_SETFL = 4;
static if (__USE_FILE_OFFSET64)
{
enum F_GETLK = 14;
enum F_SETLK = 6;
enum F_SETLKW = 7;
}
else
{
enum F_GETLK = 33;
enum F_SETLK = 34;
enum F_SETLKW = 35;
}
enum F_GETOWN = 23;
enum F_SETOWN = 24;
enum FD_CLOEXEC = 1;
enum F_RDLCK = 1;
enum F_UNLCK = 3;
enum F_WRLCK = 2;
enum F_UNCKSYS = 4;
enum O_CREAT = 0x0100;
enum O_EXCL = 0x0400;
enum O_NOCTTY = 0x0800;
enum O_TRUNC = 0x0200;
enum O_APPEND = 0x0008;
enum O_NONBLOCK = 0x0080;
enum O_SYNC = 0x0010;
enum O_DSYNC = 0x0040;
enum O_RSYNC = 0x8000;
enum O_ACCMODE = (O_SEARCH | O_EXEC | 0x3);
enum O_RDONLY = 0;
enum O_WRONLY = 1;
enum O_RDWR = 2;
enum O_SEARCH = 0x200000;
enum O_EXEC = 0x400000;
struct flock
{
short l_type;
short l_whence;
off_t l_start;
off_t l_len;
int l_sysid;
pid_t l_pid;
c_long[4] l_pad;
}
static if (__USE_LARGEFILE64)
{
int creat64(in char*, mode_t);
alias creat64 creat;
int open64(in char*, int, ...);
alias open64 open;
}
else
{
int creat(in char*, mode_t);
int open(in char*, int, ...);
}
}
else version( Android )
{
enum F_DUPFD = 0;
enum F_GETFD = 1;
enum F_SETFD = 2;
enum F_GETFL = 3;
enum F_SETFL = 4;
enum F_GETLK = 5;
enum F_SETLK = 6;
enum F_SETLKW = 7;
enum F_SETOWN = 8;
enum F_GETOWN = 9;
enum FD_CLOEXEC = 1;
enum F_RDLCK = 0;
enum F_WRLCK = 1;
enum F_UNLCK = 2;
version (X86)
{
enum O_CREAT = 0x40; // octal 0100
enum O_EXCL = 0x80; // octal 0200
enum O_NOCTTY = 0x100; // octal 0400
enum O_TRUNC = 0x200; // octal 01000
enum O_APPEND = 0x400; // octal 02000
enum O_NONBLOCK = 0x800; // octal 04000
enum O_SYNC = 0x1000; // octal 010000
}
else
{
static assert(false, "Architecture not supported.");
}
enum O_ACCMODE = 0x3;
enum O_RDONLY = 0x0;
enum O_WRONLY = 0x1;
enum O_RDWR = 0x2;
struct flock
{
short l_type;
short l_whence;
off_t l_start;
off_t l_len;
pid_t l_pid;
}
int creat(in char*, mode_t);
int open(in char*, int, ...);
}
else
{
static assert(false, "Unsupported platform");
}
//int creat(in char*, mode_t);
int fcntl(int, int, ...);
//int open(in char*, int, ...);
//
// Advisory Information (ADV)
//
/*
POSIX_FADV_NORMAL
POSIX_FADV_SEQUENTIAL
POSIX_FADV_RANDOM
POSIX_FADV_WILLNEED
POSIX_FADV_DONTNEED
POSIX_FADV_NOREUSE
int posix_fadvise(int, off_t, off_t, int);
int posix_fallocate(int, off_t, off_t);
*/
| D |
module example.example;
/// Ut in enim magna, et vestibulum dui. Phasellus commodo ullamcorper.
void foo();
/**
* Cras aliquet auctor dictum. Vestibulum posuere dolor sit amet arcu.
* Params:
* a = Vivamus vitae semper eros. Cras.
* b = Sed pellentesque orci id felis.
*/
int bar(int a, int b);
/// Nulla eu eros et neque aliquam fermentum dictum eu turpis.
struct S
{
/**
* Params:
* a = Donec massa augue, mattis id.
*/
this(int a);
///
immutable this(int a);
///
@disable this();
///
~this();
///
this(this);
/// Etiam gravida odio sed massa.
static S foo();
///
struct S2
{
///
int a;
///
void foo();
}
} | D |
// Generated by gnome-h2d.rb <http://github.com/ddude/gnome.d>.
module gobject.closure;
public import core.stdc.stdarg;
/* GObject - GLib Type, Object, Parameter and Signal Library
* Copyright (C) 2000-2001 Red Hat, Inc.
* Copyright (C) 2005 Imendio AB
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General
* Public License along with this library; if not, write to the
* Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307, USA.
*/
/+
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
#error "Only <glib-object.h> can be included directly."
//#endif
+/
public import gobject.type;
extern(C):
/* --- defines --- */
/**
* G_CLOSURE_NEEDS_MARSHAL:
* @closure: a #GClosure
*
* Check if the closure still needs a marshaller. See g_closure_set_marshal().
*
* Returns: %TRUE if a #GClosureMarshal marshaller has not yet been set on
* @closure.
*/
//#define G_CLOSURE_NEEDS_MARSHAL(closure) (((GClosure*) (closure))->marshal == NULL)
/**
* G_CLOSURE_N_NOTIFIERS:
* @cl: a #GClosure
*
* Get the total number of notifiers connected with the closure @cl.
* The count includes the meta marshaller, the finalize and invalidate notifiers
* and the marshal guards. Note that each guard counts as two notifiers.
* See g_closure_set_meta_marshal(), g_closure_add_finalize_notifier(),
* g_closure_add_invalidate_notifier() and g_closure_add_marshal_guards().
*
* Returns: number of notifiers
*/
//#define G_CLOSURE_N_NOTIFIERS(cl) (((cl)->n_guards << 1L) +
// (cl)->n_fnotifiers + (cl)->n_inotifiers)
/**
* G_CCLOSURE_SWAP_DATA:
* @cclosure: a #GCClosure
*
* Checks whether the user data of the #GCClosure should be passed as the
* first parameter to the callback. See g_cclosure_new_swap().
*
* Returns: %TRUE if data has to be swapped.
*/
//#define G_CCLOSURE_SWAP_DATA(cclosure) (((GClosure*) (cclosure))->derivative_flag)
/**
* G_CALLBACK:
* @f: a function pointer.
*
* Cast a function pointer to a #GCallback.
*/
//#define G_CALLBACK(f) ((GCallback) (f))
/* -- typedefs --- */
//struct _GClosure GClosure;
//struct _GClosureNotifyData GClosureNotifyData;
/**
* GCallback:
*
* The type used for callback functions in structure definitions and function
* signatures. This doesn't mean that all callback functions must take no
* parameters and return void. The required signature of a callback function
* is determined by the context in which is used (e.g. the signal to which it
* is connected). Use G_CALLBACK() to cast the callback function to a #GCallback.
*/
alias void function() GCallback;
/**
* GClosureNotify:
* @data: data specified when registering the notification callback
* @closure: the #GClosure on which the notification is emitted
*
* The type used for the various notification callbacks which can be registered
* on closures.
*/
alias void function(gpointer data,
GClosure *closure) GClosureNotify;
/**
* GClosureMarshal:
* @closure: the #GClosure to which the marshaller belongs
* @return_value: (allow-none): a #GValue to store the return
* value. May be %NULL if the callback of @closure doesn't return a
* value.
* @n_param_values: the length of the @param_values array
* @param_values: (array length=n_param_values): an array of
* #GValue<!-- -->s holding the arguments on which to invoke the
* callback of @closure
* @invocation_hint: (allow-none): the invocation hint given as the
* last argument to g_closure_invoke()
* @marshal_data: (allow-none): additional data specified when
* registering the marshaller, see g_closure_set_marshal() and
* g_closure_set_meta_marshal()
*
* The type used for marshaller functions.
*/
alias void function(GClosure *closure,
GValue *return_value,
guint n_param_values,
const(GValue)* param_values,
gpointer invocation_hint,
gpointer marshal_data) GClosureMarshal;
alias void function(GClosure *closure,
GValue *return_value,
gpointer instance,
va_list args,
gpointer marshal_data,
int n_params,
GType *param_types) GVaClosureMarshal;
/**
* GCClosure:
* @closure: the #GClosure
* @callback: the callback function
*
* A #GCClosure is a specialization of #GClosure for C function callbacks.
*/
//struct _GCClosure GCClosure;
/* --- structures --- */
struct GClosureNotifyData {
gpointer data;
GClosureNotify notify;
};
/**
* GClosure:
* @in_marshal: Indicates whether the closure is currently being invoked with
* g_closure_invoke()
* @is_invalid: Indicates whether the closure has been invalidated by
* g_closure_invalidate()
*
* A #GClosure represents a callback supplied by the programmer.
*/
struct GClosure {
/*< private >*/
/*shared guint ref_count : 15;*/
/* meta_marshal is not used anymore but must be zero for historical reasons
as it was exposed in the G_CLOSURE_N_NOTIFIERS macro */
/*shared guint meta_marshal_nouse : 1;*/
/*shared guint n_guards : 1;*/
/*shared guint n_fnotifiers : 2;*/ /* finalization notifiers */
/*shared guint n_inotifiers : 8;*/ /* invalidation notifiers */
/*shared guint in_inotify : 1;*/
/*shared guint floating : 1;*/
/*< protected >*/
/*shared guint derivative_flag : 1;*/
/*< public >*/
/*shared guint in_marshal : 1;*/
/*shared guint is_invalid : 1;*/
/*< private >*/ void function(GClosure *closure,
GValue /*out*/ *return_value,
guint n_param_values,
const(GValue)* param_values,
gpointer invocation_hint,
gpointer marshal_data) marshal;
/*< protected >*/ gpointer data;
/*< private >*/ GClosureNotifyData *notifiers;
/* invariants/constrains:
* - ->marshal and ->data are _invalid_ as soon as ->is_invalid==TRUE
* - invocation of all inotifiers occours prior to fnotifiers
* - order of inotifiers is random
* inotifiers may _not_ free/invalidate parameter values (e.g. ->data)
* - order of fnotifiers is random
* - each notifier may only be removed before or during its invocation
* - reference counting may only happen prior to fnotify invocation
* (in that sense, fnotifiers are really finalization handlers)
*/
};
/* closure for C function calls, callback() is the user function
*/
struct GCClosure {
GClosure closure;
gpointer callback;
};
/* --- prototypes --- */
GClosure* g_cclosure_new (GCallback callback_func,
gpointer user_data,
GClosureNotify destroy_data);
GClosure* g_cclosure_new_swap (GCallback callback_func,
gpointer user_data,
GClosureNotify destroy_data);
GClosure* g_signal_type_cclosure_new (GType itype,
guint struct_offset);
/* --- prototypes --- */
GClosure* g_closure_ref (GClosure *closure);
void g_closure_sink (GClosure *closure);
void g_closure_unref (GClosure *closure);
/* intimidating */
GClosure* g_closure_new_simple (guint sizeof_closure,
gpointer data);
void g_closure_add_finalize_notifier (GClosure *closure,
gpointer notify_data,
GClosureNotify notify_func);
void g_closure_remove_finalize_notifier (GClosure *closure,
gpointer notify_data,
GClosureNotify notify_func);
void g_closure_add_invalidate_notifier (GClosure *closure,
gpointer notify_data,
GClosureNotify notify_func);
void g_closure_remove_invalidate_notifier (GClosure *closure,
gpointer notify_data,
GClosureNotify notify_func);
void g_closure_add_marshal_guards (GClosure *closure,
gpointer pre_marshal_data,
GClosureNotify pre_marshal_notify,
gpointer post_marshal_data,
GClosureNotify post_marshal_notify);
void g_closure_set_marshal (GClosure *closure,
GClosureMarshal marshal);
void g_closure_set_meta_marshal (GClosure *closure,
gpointer marshal_data,
GClosureMarshal meta_marshal);
void g_closure_invalidate (GClosure *closure);
void g_closure_invoke (GClosure *closure,
GValue /*out*/ *return_value,
guint n_param_values,
const(GValue)* param_values,
gpointer invocation_hint);
/* FIXME:
OK: data_object::destroy -> closure_invalidate();
MIS: closure_invalidate() -> disconnect(closure);
MIS: disconnect(closure) -> (unlink) closure_unref();
OK: closure_finalize() -> g_free (data_string);
random remarks:
- need marshaller repo with decent aliasing to base types
- provide marshaller collection, virtually covering anything out there
*/
void g_cclosure_marshal_generic (GClosure *closure,
GValue *return_gvalue,
guint n_param_values,
const(GValue)* param_values,
gpointer invocation_hint,
gpointer marshal_data);
void g_cclosure_marshal_generic_va (GClosure *closure,
GValue *return_value,
gpointer instance,
va_list args_list,
gpointer marshal_data,
int n_params,
GType *param_types);
| D |
/home/spyro/Documents/github/GameEngine/game_engine/target/debug/deps/libscopeguard-c76e49e09b06b559.rlib: /home/spyro/.cargo/registry/src/github.com-1ecc6299db9ec823/scopeguard-0.3.3/src/lib.rs
/home/spyro/Documents/github/GameEngine/game_engine/target/debug/deps/scopeguard-c76e49e09b06b559.d: /home/spyro/.cargo/registry/src/github.com-1ecc6299db9ec823/scopeguard-0.3.3/src/lib.rs
/home/spyro/.cargo/registry/src/github.com-1ecc6299db9ec823/scopeguard-0.3.3/src/lib.rs:
| D |
instance BDT_10024_Addon_Garaz(Npc_Default)
{
name[0] = "Гараз";
guild = GIL_BDT;
id = 10024;
voice = 8;
flags = 0;
npcType = NPCTYPE_BL_MAIN;
B_SetAttributesToChapter(self,4);
fight_tactic = FAI_HUMAN_STRONG;
EquipItem(self,ItMw_2h_Sld_Axe);
B_CreateAmbientInv(self);
B_CreateItemToSteal(self,80,ItMi_Gold,80);
B_SetNpcVisual(self,MALE,"Hum_Head_Fighter",Face_N_Normal16,BodyTex_N,ITAR_Bloodwyn_Addon);
Mdl_SetModelFatness(self,1);
Mdl_ApplyOverlayMds(self,"Humans_Militia.mds");
B_GiveNpcTalents(self);
B_SetFightSkills(self,60);
daily_routine = Rtn_Start_10024;
};
func void Rtn_Start_10024()
{
TA_Stand_Guarding(6,0,12,0,"ADW_MINE_TO_MC_04");
TA_Stand_Guarding(12,0,6,0,"ADW_MINE_TO_MC_04");
};
func void Rtn_Attack_10024()
{
TA_Guide_Player(6,0,12,0,"ADW_MINE_MC_07");
TA_Guide_Player(12,0,6,0,"ADW_MINE_MC_07");
};
func void Rtn_Gold_10024()
{
TA_Stand_Guarding(6,0,12,0,"ADW_MINE_MC_GARAZ");
TA_Stand_Guarding(12,0,6,0,"ADW_MINE_MC_GARAZ");
};
| D |
module UnrealScript.TribesGame.TrStormCore_BloodEagle;
import ScriptClasses;
import UnrealScript.Helpers;
import UnrealScript.TribesGame.TrStormCore;
extern(C++) interface TrStormCore_BloodEagle : TrStormCore
{
public extern(D):
private static __gshared ScriptClass mStaticClass;
@property final static ScriptClass StaticClass() { mixin(MGSCC("Class TribesGame.TrStormCore_BloodEagle")); }
private static __gshared TrStormCore_BloodEagle mDefaultProperties;
@property final static TrStormCore_BloodEagle DefaultProperties() { mixin(MGDPC("TrStormCore_BloodEagle", "TrStormCore_BloodEagle TribesGame.Default__TrStormCore_BloodEagle")); }
}
| D |
/**
* Defines the named entities to support the "\\&Entity;" escape sequence for strings / character literals.
*
* Specification $(LINK2 https://dlang.org/spec/entity.html, Named Character Entities)
*
* Copyright: Copyright (C) 1999-2022 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 https://www.digitalmars.com, Walter Bright)
* License: $(LINK2 https://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/entity.d, _entity.d)
* Documentation: https://dlang.org/phobos/dmd_entity.html
* Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/entity.d
*/
module dmd.entity;
import core.stdc.ctype;
nothrow:
public int HtmlNamedEntity(const(char)* p, size_t length)
{
int tableIndex = tolower(*p) - 'a';
if (tableIndex >= 0 && tableIndex < 26)
{
foreach (entity; namesTable[tableIndex])
{
if (entity.name == p[0 .. length])
return entity.value;
}
}
return -1;
}
private:
/*********************************************
* Convert from named entity to its encoding.
* For reference:
* https://www.htmlhelp.com/reference/html40/entities/
* https://www.w3.org/2003/entities/2007/w3centities-f.ent
*/
struct NameId
{
string name;
uint value;
}
// @todo@ order namesTable and names? by frequency
immutable NameId[][] namesTable =
[
namesA, namesB, namesC, namesD, namesE, namesF, namesG, namesH, namesI,
namesJ, namesK, namesL, namesM, namesN, namesO, namesP, namesQ, namesR,
namesS, namesT, namesU, namesV, namesW, namesX, namesY, namesZ
];
immutable NameId[] namesA =
[
{"Aacgr", 0x00386}, // GREEK CAPITAL LETTER ALPHA WITH TONOS
{"aacgr", 0x003AC}, // GREEK SMALL LETTER ALPHA WITH TONOS
{"Aacute", 0x000C1}, // LATIN CAPITAL LETTER A WITH ACUTE
{"aacute", 0x000E1}, // LATIN SMALL LETTER A WITH ACUTE
{"Abreve", 0x00102}, // LATIN CAPITAL LETTER A WITH BREVE
{"abreve", 0x00103}, // LATIN SMALL LETTER A WITH BREVE
{"ac", 0x0223E}, // INVERTED LAZY S
{"acd", 0x0223F}, // SINE WAVE
// {"acE", 0x0223E;0x00333}, // INVERTED LAZY S with double underline
{"Acirc", 0x000C2}, // LATIN CAPITAL LETTER A WITH CIRCUMFLEX
{"acirc", 0x000E2}, // LATIN SMALL LETTER A WITH CIRCUMFLEX
{"acute", 0x000B4}, // ACUTE ACCENT
{"Acy", 0x00410}, // CYRILLIC CAPITAL LETTER A
{"acy", 0x00430}, // CYRILLIC SMALL LETTER A
{"AElig", 0x000C6}, // LATIN CAPITAL LETTER AE
{"aelig", 0x000E6}, // LATIN SMALL LETTER AE
{"af", 0x02061}, // FUNCTION APPLICATION
{"Afr", 0x1D504}, // MATHEMATICAL FRAKTUR CAPITAL A
{"afr", 0x1D51E}, // MATHEMATICAL FRAKTUR SMALL A
{"Agr", 0x00391}, // GREEK CAPITAL LETTER ALPHA
{"agr", 0x003B1}, // GREEK SMALL LETTER ALPHA
{"Agrave", 0x000C0}, // LATIN CAPITAL LETTER A WITH GRAVE
{"agrave", 0x000E0}, // LATIN SMALL LETTER A WITH GRAVE
{"alefsym", 0x02135}, // ALEF SYMBOL
{"aleph", 0x02135}, // ALEF SYMBOL
{"Alpha", 0x00391}, // GREEK CAPITAL LETTER ALPHA
{"alpha", 0x003B1}, // GREEK SMALL LETTER ALPHA
{"Amacr", 0x00100}, // LATIN CAPITAL LETTER A WITH MACRON
{"amacr", 0x00101}, // LATIN SMALL LETTER A WITH MACRON
{"amalg", 0x02A3F}, // AMALGAMATION OR COPRODUCT
{"amp", 0x00026}, // AMPERSAND
{"AMP", 0x00026}, // AMPERSAND
{"and", 0x02227}, // LOGICAL AND
{"And", 0x02A53}, // DOUBLE LOGICAL AND
{"andand", 0x02A55}, // TWO INTERSECTING LOGICAL AND
{"andd", 0x02A5C}, // LOGICAL AND WITH HORIZONTAL DASH
{"andslope", 0x02A58}, // SLOPING LARGE AND
{"andv", 0x02A5A}, // LOGICAL AND WITH MIDDLE STEM
{"ang", 0x02220}, // ANGLE
{"ange", 0x029A4}, // ANGLE WITH UNDERBAR
{"angle", 0x02220}, // ANGLE
{"angmsd", 0x02221}, // MEASURED ANGLE
{"angmsdaa", 0x029A8}, // MEASURED ANGLE WITH OPEN ARM ENDING IN ARROW POINTING UP AND RIGHT
{"angmsdab", 0x029A9}, // MEASURED ANGLE WITH OPEN ARM ENDING IN ARROW POINTING UP AND LEFT
{"angmsdac", 0x029AA}, // MEASURED ANGLE WITH OPEN ARM ENDING IN ARROW POINTING DOWN AND RIGHT
{"angmsdad", 0x029AB}, // MEASURED ANGLE WITH OPEN ARM ENDING IN ARROW POINTING DOWN AND LEFT
{"angmsdae", 0x029AC}, // MEASURED ANGLE WITH OPEN ARM ENDING IN ARROW POINTING RIGHT AND UP
{"angmsdaf", 0x029AD}, // MEASURED ANGLE WITH OPEN ARM ENDING IN ARROW POINTING LEFT AND UP
{"angmsdag", 0x029AE}, // MEASURED ANGLE WITH OPEN ARM ENDING IN ARROW POINTING RIGHT AND DOWN
{"angmsdah", 0x029AF}, // MEASURED ANGLE WITH OPEN ARM ENDING IN ARROW POINTING LEFT AND DOWN
{"angrt", 0x0221F}, // RIGHT ANGLE
{"angrtvb", 0x022BE}, // RIGHT ANGLE WITH ARC
{"angrtvbd", 0x0299D}, // MEASURED RIGHT ANGLE WITH DOT
{"angsph", 0x02222}, // SPHERICAL ANGLE
{"angst", 0x000C5}, // LATIN CAPITAL LETTER A WITH RING ABOVE
{"angzarr", 0x0237C}, // RIGHT ANGLE WITH DOWNWARDS ZIGZAG ARROW
{"Aogon", 0x00104}, // LATIN CAPITAL LETTER A WITH OGONEK
{"aogon", 0x00105}, // LATIN SMALL LETTER A WITH OGONEK
{"Aopf", 0x1D538}, // MATHEMATICAL DOUBLE-STRUCK CAPITAL A
{"aopf", 0x1D552}, // MATHEMATICAL DOUBLE-STRUCK SMALL A
{"ap", 0x02248}, // ALMOST EQUAL TO
{"apacir", 0x02A6F}, // ALMOST EQUAL TO WITH CIRCUMFLEX ACCENT
{"ape", 0x0224A}, // ALMOST EQUAL OR EQUAL TO
{"apE", 0x02A70}, // APPROXIMATELY EQUAL OR EQUAL TO
{"apid", 0x0224B}, // TRIPLE TILDE
{"apos", 0x00027}, // APOSTROPHE
{"ApplyFunction", 0x02061}, // FUNCTION APPLICATION
{"approx", 0x02248}, // ALMOST EQUAL TO
{"approxeq", 0x0224A}, // ALMOST EQUAL OR EQUAL TO
{"Aring", 0x000C5}, // LATIN CAPITAL LETTER A WITH RING ABOVE
{"aring", 0x000E5}, // LATIN SMALL LETTER A WITH RING ABOVE
{"Ascr", 0x1D49C}, // MATHEMATICAL SCRIPT CAPITAL A
{"ascr", 0x1D4B6}, // MATHEMATICAL SCRIPT SMALL A
{"Assign", 0x02254}, // COLON EQUALS
{"ast", 0x0002A}, // ASTERISK
{"asymp", 0x02248}, // ALMOST EQUAL TO
{"asympeq", 0x0224D}, // EQUIVALENT TO
{"Atilde", 0x000C3}, // LATIN CAPITAL LETTER A WITH TILDE
{"atilde", 0x000E3}, // LATIN SMALL LETTER A WITH TILDE
{"Auml", 0x000C4}, // LATIN CAPITAL LETTER A WITH DIAERESIS
{"auml", 0x000E4}, // LATIN SMALL LETTER A WITH DIAERESIS
{"awconint", 0x02233}, // ANTICLOCKWISE CONTOUR INTEGRAL
{"awint", 0x02A11}, // ANTICLOCKWISE INTEGRATION
];
immutable NameId[] namesB =
[
{"backcong", 0x0224C}, // ALL EQUAL TO
{"backepsilon", 0x003F6}, // GREEK REVERSED LUNATE EPSILON SYMBOL
{"backprime", 0x02035}, // REVERSED PRIME
{"backsim", 0x0223D}, // REVERSED TILDE
{"backsimeq", 0x022CD}, // REVERSED TILDE EQUALS
{"Backslash", 0x02216}, // SET MINUS
// "b.alpha", 0x1D6C2}, // MATHEMATICAL BOLD SMALL ALPHA
{"Barv", 0x02AE7}, // SHORT DOWN TACK WITH OVERBAR
{"barvee", 0x022BD}, // NOR
{"barwed", 0x02305}, // PROJECTIVE
{"Barwed", 0x02306}, // PERSPECTIVE
{"barwedge", 0x02305}, // PROJECTIVE
// "b.beta", 0x1D6C3}, // MATHEMATICAL BOLD SMALL BETA
{"bbrk", 0x023B5}, // BOTTOM SQUARE BRACKET
{"bbrktbrk", 0x023B6}, // BOTTOM SQUARE BRACKET OVER TOP SQUARE BRACKET
// "b.chi", 0x1D6D8}, // MATHEMATICAL BOLD SMALL CHI
{"bcong", 0x0224C}, // ALL EQUAL TO
{"Bcy", 0x00411}, // CYRILLIC CAPITAL LETTER BE
{"bcy", 0x00431}, // CYRILLIC SMALL LETTER BE
// "b.Delta", 0x1D6AB}, // MATHEMATICAL BOLD CAPITAL DELTA
// "b.delta", 0x1D6C5}, // MATHEMATICAL BOLD SMALL DELTA
{"bdquo", 0x0201E}, // DOUBLE LOW-9 QUOTATION MARK
{"becaus", 0x02235}, // BECAUSE
{"because", 0x02235}, // BECAUSE
{"Because", 0x02235}, // BECAUSE
{"bemptyv", 0x029B0}, // REVERSED EMPTY SET
{"bepsi", 0x003F6}, // GREEK REVERSED LUNATE EPSILON SYMBOL
// "b.epsi", 0x1D6C6}, // MATHEMATICAL BOLD SMALL EPSILON
// "b.epsiv", 0x1D6DC}, // MATHEMATICAL BOLD EPSILON SYMBOL
{"bernou", 0x0212C}, // SCRIPT CAPITAL B
{"Bernoullis", 0x0212C}, // SCRIPT CAPITAL B
{"Beta", 0x00392}, // GREEK CAPITAL LETTER BETA
{"beta", 0x003B2}, // GREEK SMALL LETTER BETA
// "b.eta", 0x1D6C8}, // MATHEMATICAL BOLD SMALL ETA
{"beth", 0x02136}, // BET SYMBOL
{"between", 0x0226C}, // BETWEEN
{"Bfr", 0x1D505}, // MATHEMATICAL FRAKTUR CAPITAL B
{"bfr", 0x1D51F}, // MATHEMATICAL FRAKTUR SMALL B
// "b.Gamma", 0x1D6AA}, // MATHEMATICAL BOLD CAPITAL GAMMA
// "b.gamma", 0x1D6C4}, // MATHEMATICAL BOLD SMALL GAMMA
// "b.Gammad", 0x1D7CA}, // MATHEMATICAL BOLD CAPITAL DIGAMMA
// "b.gammad", 0x1D7CB}, // MATHEMATICAL BOLD SMALL DIGAMMA
{"Bgr", 0x00392}, // GREEK CAPITAL LETTER BETA
{"bgr", 0x003B2}, // GREEK SMALL LETTER BETA
{"bigcap", 0x022C2}, // N-ARY INTERSECTION
{"bigcirc", 0x025EF}, // LARGE CIRCLE
{"bigcup", 0x022C3}, // N-ARY UNION
{"bigodot", 0x02A00}, // N-ARY CIRCLED DOT OPERATOR
{"bigoplus", 0x02A01}, // N-ARY CIRCLED PLUS OPERATOR
{"bigotimes", 0x02A02}, // N-ARY CIRCLED TIMES OPERATOR
{"bigsqcup", 0x02A06}, // N-ARY SQUARE UNION OPERATOR
{"bigstar", 0x02605}, // BLACK STAR
{"bigtriangledown", 0x025BD}, // WHITE DOWN-POINTING TRIANGLE
{"bigtriangleup", 0x025B3}, // WHITE UP-POINTING TRIANGLE
{"biguplus", 0x02A04}, // N-ARY UNION OPERATOR WITH PLUS
{"bigvee", 0x022C1}, // N-ARY LOGICAL OR
{"bigwedge", 0x022C0}, // N-ARY LOGICAL AND
// "b.iota", 0x1D6CA}, // MATHEMATICAL BOLD SMALL IOTA
// "b.kappa", 0x1D6CB}, // MATHEMATICAL BOLD SMALL KAPPA
// "b.kappav", 0x1D6DE}, // MATHEMATICAL BOLD KAPPA SYMBOL
{"bkarow", 0x0290D}, // RIGHTWARDS DOUBLE DASH ARROW
{"blacklozenge", 0x029EB}, // BLACK LOZENGE
{"blacksquare", 0x025AA}, // BLACK SMALL SQUARE
{"blacktriangle", 0x025B4}, // BLACK UP-POINTING SMALL TRIANGLE
{"blacktriangledown", 0x025BE}, // BLACK DOWN-POINTING SMALL TRIANGLE
{"blacktriangleleft", 0x025C2}, // BLACK LEFT-POINTING SMALL TRIANGLE
{"blacktriangleright", 0x025B8}, // BLACK RIGHT-POINTING SMALL TRIANGLE
// "b.Lambda", 0x1D6B2}, // MATHEMATICAL BOLD CAPITAL LAMDA
// "b.lambda", 0x1D6CC}, // MATHEMATICAL BOLD SMALL LAMDA
{"blank", 0x02423}, // OPEN BOX
{"blk12", 0x02592}, // MEDIUM SHADE
{"blk14", 0x02591}, // LIGHT SHADE
{"blk34", 0x02593}, // DARK SHADE
{"block", 0x02588}, // FULL BLOCK
// "b.mu", 0x1D6CD}, // MATHEMATICAL BOLD SMALL MU
// "bne", 0x0003D;0x020E5}, // EQUALS SIGN with reverse slash
// "bnequiv", 0x02261;0x020E5}, // IDENTICAL TO with reverse slash
{"bnot", 0x02310}, // REVERSED NOT SIGN
{"bNot", 0x02AED}, // REVERSED DOUBLE STROKE NOT SIGN
// "b.nu", 0x1D6CE}, // MATHEMATICAL BOLD SMALL NU
// "b.Omega", 0x1D6C0}, // MATHEMATICAL BOLD CAPITAL OMEGA
// "b.omega", 0x1D6DA}, // MATHEMATICAL BOLD SMALL OMEGA
{"Bopf", 0x1D539}, // MATHEMATICAL DOUBLE-STRUCK CAPITAL B
{"bopf", 0x1D553}, // MATHEMATICAL DOUBLE-STRUCK SMALL B
{"bot", 0x022A5}, // UP TACK
{"bottom", 0x022A5}, // UP TACK
{"bowtie", 0x022C8}, // BOWTIE
{"boxbox", 0x029C9}, // TWO JOINED SQUARES
{"boxdl", 0x02510}, // BOX DRAWINGS LIGHT DOWN AND LEFT
{"boxdL", 0x02555}, // BOX DRAWINGS DOWN SINGLE AND LEFT DOUBLE
{"boxDl", 0x02556}, // BOX DRAWINGS DOWN DOUBLE AND LEFT SINGLE
{"boxDL", 0x02557}, // BOX DRAWINGS DOUBLE DOWN AND LEFT
{"boxdr", 0x0250C}, // BOX DRAWINGS LIGHT DOWN AND RIGHT
{"boxdR", 0x02552}, // BOX DRAWINGS DOWN SINGLE AND RIGHT DOUBLE
{"boxDr", 0x02553}, // BOX DRAWINGS DOWN DOUBLE AND RIGHT SINGLE
{"boxDR", 0x02554}, // BOX DRAWINGS DOUBLE DOWN AND RIGHT
{"boxh", 0x02500}, // BOX DRAWINGS LIGHT HORIZONTAL
{"boxH", 0x02550}, // BOX DRAWINGS DOUBLE HORIZONTAL
{"boxhd", 0x0252C}, // BOX DRAWINGS LIGHT DOWN AND HORIZONTAL
{"boxHd", 0x02564}, // BOX DRAWINGS DOWN SINGLE AND HORIZONTAL DOUBLE
{"boxhD", 0x02565}, // BOX DRAWINGS DOWN DOUBLE AND HORIZONTAL SINGLE
{"boxHD", 0x02566}, // BOX DRAWINGS DOUBLE DOWN AND HORIZONTAL
{"boxhu", 0x02534}, // BOX DRAWINGS LIGHT UP AND HORIZONTAL
{"boxHu", 0x02567}, // BOX DRAWINGS UP SINGLE AND HORIZONTAL DOUBLE
{"boxhU", 0x02568}, // BOX DRAWINGS UP DOUBLE AND HORIZONTAL SINGLE
{"boxHU", 0x02569}, // BOX DRAWINGS DOUBLE UP AND HORIZONTAL
{"boxminus", 0x0229F}, // SQUARED MINUS
{"boxplus", 0x0229E}, // SQUARED PLUS
{"boxtimes", 0x022A0}, // SQUARED TIMES
{"boxul", 0x02518}, // BOX DRAWINGS LIGHT UP AND LEFT
{"boxuL", 0x0255B}, // BOX DRAWINGS UP SINGLE AND LEFT DOUBLE
{"boxUl", 0x0255C}, // BOX DRAWINGS UP DOUBLE AND LEFT SINGLE
{"boxUL", 0x0255D}, // BOX DRAWINGS DOUBLE UP AND LEFT
{"boxur", 0x02514}, // BOX DRAWINGS LIGHT UP AND RIGHT
{"boxuR", 0x02558}, // BOX DRAWINGS UP SINGLE AND RIGHT DOUBLE
{"boxUr", 0x02559}, // BOX DRAWINGS UP DOUBLE AND RIGHT SINGLE
{"boxUR", 0x0255A}, // BOX DRAWINGS DOUBLE UP AND RIGHT
{"boxv", 0x02502}, // BOX DRAWINGS LIGHT VERTICAL
{"boxV", 0x02551}, // BOX DRAWINGS DOUBLE VERTICAL
{"boxvh", 0x0253C}, // BOX DRAWINGS LIGHT VERTICAL AND HORIZONTAL
{"boxvH", 0x0256A}, // BOX DRAWINGS VERTICAL SINGLE AND HORIZONTAL DOUBLE
{"boxVh", 0x0256B}, // BOX DRAWINGS VERTICAL DOUBLE AND HORIZONTAL SINGLE
{"boxVH", 0x0256C}, // BOX DRAWINGS DOUBLE VERTICAL AND HORIZONTAL
{"boxvl", 0x02524}, // BOX DRAWINGS LIGHT VERTICAL AND LEFT
{"boxvL", 0x02561}, // BOX DRAWINGS VERTICAL SINGLE AND LEFT DOUBLE
{"boxVl", 0x02562}, // BOX DRAWINGS VERTICAL DOUBLE AND LEFT SINGLE
{"boxVL", 0x02563}, // BOX DRAWINGS DOUBLE VERTICAL AND LEFT
{"boxvr", 0x0251C}, // BOX DRAWINGS LIGHT VERTICAL AND RIGHT
{"boxvR", 0x0255E}, // BOX DRAWINGS VERTICAL SINGLE AND RIGHT DOUBLE
{"boxVr", 0x0255F}, // BOX DRAWINGS VERTICAL DOUBLE AND RIGHT SINGLE
{"boxVR", 0x02560}, // BOX DRAWINGS DOUBLE VERTICAL AND RIGHT
// "b.Phi", 0x1D6BD}, // MATHEMATICAL BOLD CAPITAL PHI
// "b.phi", 0x1D6D7}, // MATHEMATICAL BOLD SMALL PHI
// "b.phiv", 0x1D6DF}, // MATHEMATICAL BOLD PHI SYMBOL
// "b.Pi", 0x1D6B7}, // MATHEMATICAL BOLD CAPITAL PI
// "b.pi", 0x1D6D1}, // MATHEMATICAL BOLD SMALL PI
// "b.piv", 0x1D6E1}, // MATHEMATICAL BOLD PI SYMBOL
{"bprime", 0x02035}, // REVERSED PRIME
// "b.Psi", 0x1D6BF}, // MATHEMATICAL BOLD CAPITAL PSI
// "b.psi", 0x1D6D9}, // MATHEMATICAL BOLD SMALL PSI
{"breve", 0x002D8}, // BREVE
{"Breve", 0x002D8}, // BREVE
// "b.rho", 0x1D6D2}, // MATHEMATICAL BOLD SMALL RHO
// "b.rhov", 0x1D6E0}, // MATHEMATICAL BOLD RHO SYMBOL
{"brvbar", 0x000A6}, // BROKEN BAR
{"Bscr", 0x0212C}, // SCRIPT CAPITAL B
{"bscr", 0x1D4B7}, // MATHEMATICAL SCRIPT SMALL B
{"bsemi", 0x0204F}, // REVERSED SEMICOLON
// "b.Sigma", 0x1D6BA}, // MATHEMATICAL BOLD CAPITAL SIGMA
// "b.sigma", 0x1D6D4}, // MATHEMATICAL BOLD SMALL SIGMA
// "b.sigmav", 0x1D6D3}, // MATHEMATICAL BOLD SMALL FINAL SIGMA
{"bsim", 0x0223D}, // REVERSED TILDE
{"bsime", 0x022CD}, // REVERSED TILDE EQUALS
{"bsol", 0x0005C}, // REVERSE SOLIDUS
{"bsolb", 0x029C5}, // SQUARED FALLING DIAGONAL SLASH
{"bsolhsub", 0x027C8}, // REVERSE SOLIDUS PRECEDING SUBSET
// "b.tau", 0x1D6D5}, // MATHEMATICAL BOLD SMALL TAU
// "b.Theta", 0x1D6AF}, // MATHEMATICAL BOLD CAPITAL THETA
// "b.thetas", 0x1D6C9}, // MATHEMATICAL BOLD SMALL THETA
// "b.thetav", 0x1D6DD}, // MATHEMATICAL BOLD THETA SYMBOL
{"bull", 0x02022}, // BULLET
{"bullet", 0x02022}, // BULLET
{"bump", 0x0224E}, // GEOMETRICALLY EQUIVALENT TO
{"bumpe", 0x0224F}, // DIFFERENCE BETWEEN
{"bumpE", 0x02AAE}, // EQUALS SIGN WITH BUMPY ABOVE
{"Bumpeq", 0x0224E}, // GEOMETRICALLY EQUIVALENT TO
{"bumpeq", 0x0224F}, // DIFFERENCE BETWEEN
// "b.Upsi", 0x1D6BC}, // MATHEMATICAL BOLD CAPITAL UPSILON
// "b.upsi", 0x1D6D6}, // MATHEMATICAL BOLD SMALL UPSILON
// "b.Xi", 0x1D6B5}, // MATHEMATICAL BOLD CAPITAL XI
// "b.xi", 0x1D6CF}, // MATHEMATICAL BOLD SMALL XI
// "b.zeta", 0x1D6C7}, // MATHEMATICAL BOLD SMALL ZETA
];
immutable NameId[] namesC =
[
{"Cacute", 0x00106}, // LATIN CAPITAL LETTER C WITH ACUTE
{"cacute", 0x00107}, // LATIN SMALL LETTER C WITH ACUTE
{"cap", 0x02229}, // INTERSECTION
{"Cap", 0x022D2}, // DOUBLE INTERSECTION
{"capand", 0x02A44}, // INTERSECTION WITH LOGICAL AND
{"capbrcup", 0x02A49}, // INTERSECTION ABOVE BAR ABOVE UNION
{"capcap", 0x02A4B}, // INTERSECTION BESIDE AND JOINED WITH INTERSECTION
{"capcup", 0x02A47}, // INTERSECTION ABOVE UNION
{"capdot", 0x02A40}, // INTERSECTION WITH DOT
{"CapitalDifferentialD", 0x02145}, // DOUBLE-STRUCK ITALIC CAPITAL D
// "caps", 0x02229;0x0FE00}, // INTERSECTION with serifs
{"caret", 0x02041}, // CARET INSERTION POINT
{"caron", 0x002C7}, // CARON
{"Cayleys", 0x0212D}, // BLACK-LETTER CAPITAL C
{"ccaps", 0x02A4D}, // CLOSED INTERSECTION WITH SERIFS
{"Ccaron", 0x0010C}, // LATIN CAPITAL LETTER C WITH CARON
{"ccaron", 0x0010D}, // LATIN SMALL LETTER C WITH CARON
{"Ccedil", 0x000C7}, // LATIN CAPITAL LETTER C WITH CEDILLA
{"ccedil", 0x000E7}, // LATIN SMALL LETTER C WITH CEDILLA
{"Ccirc", 0x00108}, // LATIN CAPITAL LETTER C WITH CIRCUMFLEX
{"ccirc", 0x00109}, // LATIN SMALL LETTER C WITH CIRCUMFLEX
{"Cconint", 0x02230}, // VOLUME INTEGRAL
{"ccups", 0x02A4C}, // CLOSED UNION WITH SERIFS
{"ccupssm", 0x02A50}, // CLOSED UNION WITH SERIFS AND SMASH PRODUCT
{"Cdot", 0x0010A}, // LATIN CAPITAL LETTER C WITH DOT ABOVE
{"cdot", 0x0010B}, // LATIN SMALL LETTER C WITH DOT ABOVE
{"cedil", 0x000B8}, // CEDILLA
{"Cedilla", 0x000B8}, // CEDILLA
{"cemptyv", 0x029B2}, // EMPTY SET WITH SMALL CIRCLE ABOVE
{"cent", 0x000A2}, // CENT SIGN
{"centerdot", 0x000B7}, // MIDDLE DOT
{"CenterDot", 0x000B7}, // MIDDLE DOT
{"Cfr", 0x0212D}, // BLACK-LETTER CAPITAL C
{"cfr", 0x1D520}, // MATHEMATICAL FRAKTUR SMALL C
{"CHcy", 0x00427}, // CYRILLIC CAPITAL LETTER CHE
{"chcy", 0x00447}, // CYRILLIC SMALL LETTER CHE
{"check", 0x02713}, // CHECK MARK
{"checkmark", 0x02713}, // CHECK MARK
{"Chi", 0x003A7}, // GREEK CAPITAL LETTER CHI
{"chi", 0x003C7}, // GREEK SMALL LETTER CHI
{"cir", 0x025CB}, // WHITE CIRCLE
{"circ", 0x002C6}, // MODIFIER LETTER CIRCUMFLEX ACCENT
{"circeq", 0x02257}, // RING EQUAL TO
{"circlearrowleft", 0x021BA}, // ANTICLOCKWISE OPEN CIRCLE ARROW
{"circlearrowright", 0x021BB}, // CLOCKWISE OPEN CIRCLE ARROW
{"circledast", 0x0229B}, // CIRCLED ASTERISK OPERATOR
{"circledcirc", 0x0229A}, // CIRCLED RING OPERATOR
{"circleddash", 0x0229D}, // CIRCLED DASH
{"CircleDot", 0x02299}, // CIRCLED DOT OPERATOR
{"circledR", 0x000AE}, // REGISTERED SIGN
{"circledS", 0x024C8}, // CIRCLED LATIN CAPITAL LETTER S
{"CircleMinus", 0x02296}, // CIRCLED MINUS
{"CirclePlus", 0x02295}, // CIRCLED PLUS
{"CircleTimes", 0x02297}, // CIRCLED TIMES
{"cire", 0x02257}, // RING EQUAL TO
{"cirE", 0x029C3}, // CIRCLE WITH TWO HORIZONTAL STROKES TO THE RIGHT
{"cirfnint", 0x02A10}, // CIRCULATION FUNCTION
{"cirmid", 0x02AEF}, // VERTICAL LINE WITH CIRCLE ABOVE
{"cirscir", 0x029C2}, // CIRCLE WITH SMALL CIRCLE TO THE RIGHT
{"ClockwiseContourIntegral", 0x02232}, // CLOCKWISE CONTOUR INTEGRAL
{"CloseCurlyDoubleQuote", 0x0201D}, // RIGHT DOUBLE QUOTATION MARK
{"CloseCurlyQuote", 0x02019}, // RIGHT SINGLE QUOTATION MARK
{"clubs", 0x02663}, // BLACK CLUB SUIT
{"clubsuit", 0x02663}, // BLACK CLUB SUIT
{"colon", 0x0003A}, // COLON
{"Colon", 0x02237}, // PROPORTION
{"colone", 0x02254}, // COLON EQUALS
{"Colone", 0x02A74}, // DOUBLE COLON EQUAL
{"coloneq", 0x02254}, // COLON EQUALS
{"comma", 0x0002C}, // COMMA
{"commat", 0x00040}, // COMMERCIAL AT
{"comp", 0x02201}, // COMPLEMENT
{"compfn", 0x02218}, // RING OPERATOR
{"complement", 0x02201}, // COMPLEMENT
{"complexes", 0x02102}, // DOUBLE-STRUCK CAPITAL C
{"cong", 0x02245}, // APPROXIMATELY EQUAL TO
{"congdot", 0x02A6D}, // CONGRUENT WITH DOT ABOVE
{"Congruent", 0x02261}, // IDENTICAL TO
{"conint", 0x0222E}, // CONTOUR INTEGRAL
{"Conint", 0x0222F}, // SURFACE INTEGRAL
{"ContourIntegral", 0x0222E}, // CONTOUR INTEGRAL
{"Copf", 0x02102}, // DOUBLE-STRUCK CAPITAL C
{"copf", 0x1D554}, // MATHEMATICAL DOUBLE-STRUCK SMALL C
{"coprod", 0x02210}, // N-ARY COPRODUCT
{"Coproduct", 0x02210}, // N-ARY COPRODUCT
{"copy", 0x000A9}, // COPYRIGHT SIGN
{"COPY", 0x000A9}, // COPYRIGHT SIGN
{"copysr", 0x02117}, // SOUND RECORDING COPYRIGHT
{"CounterClockwiseContourIntegral", 0x02233}, // ANTICLOCKWISE CONTOUR INTEGRAL
{"crarr", 0x021B5}, // DOWNWARDS ARROW WITH CORNER LEFTWARDS
{"cross", 0x02717}, // BALLOT X
{"Cross", 0x02A2F}, // VECTOR OR CROSS PRODUCT
{"Cscr", 0x1D49E}, // MATHEMATICAL SCRIPT CAPITAL C
{"cscr", 0x1D4B8}, // MATHEMATICAL SCRIPT SMALL C
{"csub", 0x02ACF}, // CLOSED SUBSET
{"csube", 0x02AD1}, // CLOSED SUBSET OR EQUAL TO
{"csup", 0x02AD0}, // CLOSED SUPERSET
{"csupe", 0x02AD2}, // CLOSED SUPERSET OR EQUAL TO
{"ctdot", 0x022EF}, // MIDLINE HORIZONTAL ELLIPSIS
{"cudarrl", 0x02938}, // RIGHT-SIDE ARC CLOCKWISE ARROW
{"cudarrr", 0x02935}, // ARROW POINTING RIGHTWARDS THEN CURVING DOWNWARDS
{"cuepr", 0x022DE}, // EQUAL TO OR PRECEDES
{"cuesc", 0x022DF}, // EQUAL TO OR SUCCEEDS
{"cularr", 0x021B6}, // ANTICLOCKWISE TOP SEMICIRCLE ARROW
{"cularrp", 0x0293D}, // TOP ARC ANTICLOCKWISE ARROW WITH PLUS
{"cup", 0x0222A}, // UNION
{"Cup", 0x022D3}, // DOUBLE UNION
{"cupbrcap", 0x02A48}, // UNION ABOVE BAR ABOVE INTERSECTION
{"CupCap", 0x0224D}, // EQUIVALENT TO
{"cupcap", 0x02A46}, // UNION ABOVE INTERSECTION
{"cupcup", 0x02A4A}, // UNION BESIDE AND JOINED WITH UNION
{"cupdot", 0x0228D}, // MULTISET MULTIPLICATION
{"cupor", 0x02A45}, // UNION WITH LOGICAL OR
// "cups", 0x0222A;0x0FE00}, // UNION with serifs
{"curarr", 0x021B7}, // CLOCKWISE TOP SEMICIRCLE ARROW
{"curarrm", 0x0293C}, // TOP ARC CLOCKWISE ARROW WITH MINUS
{"curlyeqprec", 0x022DE}, // EQUAL TO OR PRECEDES
{"curlyeqsucc", 0x022DF}, // EQUAL TO OR SUCCEEDS
{"curlyvee", 0x022CE}, // CURLY LOGICAL OR
{"curlywedge", 0x022CF}, // CURLY LOGICAL AND
{"curren", 0x000A4}, // CURRENCY SIGN
{"curvearrowleft", 0x021B6}, // ANTICLOCKWISE TOP SEMICIRCLE ARROW
{"curvearrowright", 0x021B7}, // CLOCKWISE TOP SEMICIRCLE ARROW
{"cuvee", 0x022CE}, // CURLY LOGICAL OR
{"cuwed", 0x022CF}, // CURLY LOGICAL AND
{"cwconint", 0x02232}, // CLOCKWISE CONTOUR INTEGRAL
{"cwint", 0x02231}, // CLOCKWISE INTEGRAL
{"cylcty", 0x0232D}, // CYLINDRICITY
];
immutable NameId[] namesD =
[
{"dagger", 0x02020}, // DAGGER
{"Dagger", 0x02021}, // DOUBLE DAGGER
{"daleth", 0x02138}, // DALET SYMBOL
{"darr", 0x02193}, // DOWNWARDS ARROW
{"Darr", 0x021A1}, // DOWNWARDS TWO HEADED ARROW
{"dArr", 0x021D3}, // DOWNWARDS DOUBLE ARROW
{"dash", 0x02010}, // HYPHEN
{"dashv", 0x022A3}, // LEFT TACK
{"Dashv", 0x02AE4}, // VERTICAL BAR DOUBLE LEFT TURNSTILE
{"dbkarow", 0x0290F}, // RIGHTWARDS TRIPLE DASH ARROW
{"dblac", 0x002DD}, // DOUBLE ACUTE ACCENT
{"Dcaron", 0x0010E}, // LATIN CAPITAL LETTER D WITH CARON
{"dcaron", 0x0010F}, // LATIN SMALL LETTER D WITH CARON
{"Dcy", 0x00414}, // CYRILLIC CAPITAL LETTER DE
{"dcy", 0x00434}, // CYRILLIC SMALL LETTER DE
{"DD", 0x02145}, // DOUBLE-STRUCK ITALIC CAPITAL D
{"dd", 0x02146}, // DOUBLE-STRUCK ITALIC SMALL D
{"ddagger", 0x02021}, // DOUBLE DAGGER
{"ddarr", 0x021CA}, // DOWNWARDS PAIRED ARROWS
{"DDotrahd", 0x02911}, // RIGHTWARDS ARROW WITH DOTTED STEM
{"ddotseq", 0x02A77}, // EQUALS SIGN WITH TWO DOTS ABOVE AND TWO DOTS BELOW
{"deg", 0x000B0}, // DEGREE SIGN
{"Del", 0x02207}, // NABLA
{"Delta", 0x00394}, // GREEK CAPITAL LETTER DELTA
{"delta", 0x003B4}, // GREEK SMALL LETTER DELTA
{"demptyv", 0x029B1}, // EMPTY SET WITH OVERBAR
{"dfisht", 0x0297F}, // DOWN FISH TAIL
{"Dfr", 0x1D507}, // MATHEMATICAL FRAKTUR CAPITAL D
{"dfr", 0x1D521}, // MATHEMATICAL FRAKTUR SMALL D
{"Dgr", 0x00394}, // GREEK CAPITAL LETTER DELTA
{"dgr", 0x003B4}, // GREEK SMALL LETTER DELTA
{"dHar", 0x02965}, // DOWNWARDS HARPOON WITH BARB LEFT BESIDE DOWNWARDS HARPOON WITH BARB RIGHT
{"dharl", 0x021C3}, // DOWNWARDS HARPOON WITH BARB LEFTWARDS
{"dharr", 0x021C2}, // DOWNWARDS HARPOON WITH BARB RIGHTWARDS
{"DiacriticalAcute", 0x000B4}, // ACUTE ACCENT
{"DiacriticalDot", 0x002D9}, // DOT ABOVE
{"DiacriticalDoubleAcute", 0x002DD}, // DOUBLE ACUTE ACCENT
{"DiacriticalGrave", 0x00060}, // GRAVE ACCENT
{"DiacriticalTilde", 0x002DC}, // SMALL TILDE
{"diam", 0x022C4}, // DIAMOND OPERATOR
{"diamond", 0x022C4}, // DIAMOND OPERATOR
{"Diamond", 0x022C4}, // DIAMOND OPERATOR
{"diamondsuit", 0x02666}, // BLACK DIAMOND SUIT
{"diams", 0x02666}, // BLACK DIAMOND SUIT
{"die", 0x000A8}, // DIAERESIS
{"DifferentialD", 0x02146}, // DOUBLE-STRUCK ITALIC SMALL D
{"digamma", 0x003DD}, // GREEK SMALL LETTER DIGAMMA
{"disin", 0x022F2}, // ELEMENT OF WITH LONG HORIZONTAL STROKE
{"div", 0x000F7}, // DIVISION SIGN
{"divide", 0x000F7}, // DIVISION SIGN
{"divideontimes", 0x022C7}, // DIVISION TIMES
{"divonx", 0x022C7}, // DIVISION TIMES
{"DJcy", 0x00402}, // CYRILLIC CAPITAL LETTER DJE
{"djcy", 0x00452}, // CYRILLIC SMALL LETTER DJE
{"dlcorn", 0x0231E}, // BOTTOM LEFT CORNER
{"dlcrop", 0x0230D}, // BOTTOM LEFT CROP
{"dollar", 0x00024}, // DOLLAR SIGN
{"Dopf", 0x1D53B}, // MATHEMATICAL DOUBLE-STRUCK CAPITAL D
{"dopf", 0x1D555}, // MATHEMATICAL DOUBLE-STRUCK SMALL D
{"Dot", 0x000A8}, // DIAERESIS
{"dot", 0x002D9}, // DOT ABOVE
{"DotDot", 0x020DC}, // COMBINING FOUR DOTS ABOVE
{"doteq", 0x02250}, // APPROACHES THE LIMIT
{"doteqdot", 0x02251}, // GEOMETRICALLY EQUAL TO
{"DotEqual", 0x02250}, // APPROACHES THE LIMIT
{"dotminus", 0x02238}, // DOT MINUS
{"dotplus", 0x02214}, // DOT PLUS
{"dotsquare", 0x022A1}, // SQUARED DOT OPERATOR
{"doublebarwedge", 0x02306}, // PERSPECTIVE
{"DoubleContourIntegral", 0x0222F}, // SURFACE INTEGRAL
{"DoubleDot", 0x000A8}, // DIAERESIS
{"DoubleDownArrow", 0x021D3}, // DOWNWARDS DOUBLE ARROW
{"DoubleLeftArrow", 0x021D0}, // LEFTWARDS DOUBLE ARROW
{"DoubleLeftRightArrow", 0x021D4}, // LEFT RIGHT DOUBLE ARROW
{"DoubleLeftTee", 0x02AE4}, // VERTICAL BAR DOUBLE LEFT TURNSTILE
{"DoubleLongLeftArrow", 0x027F8}, // LONG LEFTWARDS DOUBLE ARROW
{"DoubleLongLeftRightArrow", 0x027FA}, // LONG LEFT RIGHT DOUBLE ARROW
{"DoubleLongRightArrow", 0x027F9}, // LONG RIGHTWARDS DOUBLE ARROW
{"DoubleRightArrow", 0x021D2}, // RIGHTWARDS DOUBLE ARROW
{"DoubleRightTee", 0x022A8}, // TRUE
{"DoubleUpArrow", 0x021D1}, // UPWARDS DOUBLE ARROW
{"DoubleUpDownArrow", 0x021D5}, // UP DOWN DOUBLE ARROW
{"DoubleVerticalBar", 0x02225}, // PARALLEL TO
{"downarrow", 0x02193}, // DOWNWARDS ARROW
{"DownArrow", 0x02193}, // DOWNWARDS ARROW
{"Downarrow", 0x021D3}, // DOWNWARDS DOUBLE ARROW
{"DownArrowBar", 0x02913}, // DOWNWARDS ARROW TO BAR
{"DownArrowUpArrow", 0x021F5}, // DOWNWARDS ARROW LEFTWARDS OF UPWARDS ARROW
{"DownBreve", 0x00311}, // COMBINING INVERTED BREVE
{"downdownarrows", 0x021CA}, // DOWNWARDS PAIRED ARROWS
{"downharpoonleft", 0x021C3}, // DOWNWARDS HARPOON WITH BARB LEFTWARDS
{"downharpoonright", 0x021C2}, // DOWNWARDS HARPOON WITH BARB RIGHTWARDS
{"DownLeftRightVector", 0x02950}, // LEFT BARB DOWN RIGHT BARB DOWN HARPOON
{"DownLeftTeeVector", 0x0295E}, // LEFTWARDS HARPOON WITH BARB DOWN FROM BAR
{"DownLeftVector", 0x021BD}, // LEFTWARDS HARPOON WITH BARB DOWNWARDS
{"DownLeftVectorBar", 0x02956}, // LEFTWARDS HARPOON WITH BARB DOWN TO BAR
{"DownRightTeeVector", 0x0295F}, // RIGHTWARDS HARPOON WITH BARB DOWN FROM BAR
{"DownRightVector", 0x021C1}, // RIGHTWARDS HARPOON WITH BARB DOWNWARDS
{"DownRightVectorBar", 0x02957}, // RIGHTWARDS HARPOON WITH BARB DOWN TO BAR
{"DownTee", 0x022A4}, // DOWN TACK
{"DownTeeArrow", 0x021A7}, // DOWNWARDS ARROW FROM BAR
{"drbkarow", 0x02910}, // RIGHTWARDS TWO-HEADED TRIPLE DASH ARROW
{"drcorn", 0x0231F}, // BOTTOM RIGHT CORNER
{"drcrop", 0x0230C}, // BOTTOM RIGHT CROP
{"Dscr", 0x1D49F}, // MATHEMATICAL SCRIPT CAPITAL D
{"dscr", 0x1D4B9}, // MATHEMATICAL SCRIPT SMALL D
{"DScy", 0x00405}, // CYRILLIC CAPITAL LETTER DZE
{"dscy", 0x00455}, // CYRILLIC SMALL LETTER DZE
{"dsol", 0x029F6}, // SOLIDUS WITH OVERBAR
{"Dstrok", 0x00110}, // LATIN CAPITAL LETTER D WITH STROKE
{"dstrok", 0x00111}, // LATIN SMALL LETTER D WITH STROKE
{"dtdot", 0x022F1}, // DOWN RIGHT DIAGONAL ELLIPSIS
{"dtri", 0x025BF}, // WHITE DOWN-POINTING SMALL TRIANGLE
{"dtrif", 0x025BE}, // BLACK DOWN-POINTING SMALL TRIANGLE
{"duarr", 0x021F5}, // DOWNWARDS ARROW LEFTWARDS OF UPWARDS ARROW
{"duhar", 0x0296F}, // DOWNWARDS HARPOON WITH BARB LEFT BESIDE UPWARDS HARPOON WITH BARB RIGHT
{"dwangle", 0x029A6}, // OBLIQUE ANGLE OPENING UP
{"DZcy", 0x0040F}, // CYRILLIC CAPITAL LETTER DZHE
{"dzcy", 0x0045F}, // CYRILLIC SMALL LETTER DZHE
{"dzigrarr", 0x027FF}, // LONG RIGHTWARDS SQUIGGLE ARROW
];
immutable NameId[] namesE =
[
{"Eacgr", 0x00388}, // GREEK CAPITAL LETTER EPSILON WITH TONOS
{"eacgr", 0x003AD}, // GREEK SMALL LETTER EPSILON WITH TONOS
{"Eacute", 0x000C9}, // LATIN CAPITAL LETTER E WITH ACUTE
{"eacute", 0x000E9}, // LATIN SMALL LETTER E WITH ACUTE
{"easter", 0x02A6E}, // EQUALS WITH ASTERISK
{"Ecaron", 0x0011A}, // LATIN CAPITAL LETTER E WITH CARON
{"ecaron", 0x0011B}, // LATIN SMALL LETTER E WITH CARON
{"ecir", 0x02256}, // RING IN EQUAL TO
{"Ecirc", 0x000CA}, // LATIN CAPITAL LETTER E WITH CIRCUMFLEX
{"ecirc", 0x000EA}, // LATIN SMALL LETTER E WITH CIRCUMFLEX
{"ecolon", 0x02255}, // EQUALS COLON
{"Ecy", 0x0042D}, // CYRILLIC CAPITAL LETTER E
{"ecy", 0x0044D}, // CYRILLIC SMALL LETTER E
{"eDDot", 0x02A77}, // EQUALS SIGN WITH TWO DOTS ABOVE AND TWO DOTS BELOW
{"Edot", 0x00116}, // LATIN CAPITAL LETTER E WITH DOT ABOVE
{"edot", 0x00117}, // LATIN SMALL LETTER E WITH DOT ABOVE
{"eDot", 0x02251}, // GEOMETRICALLY EQUAL TO
{"ee", 0x02147}, // DOUBLE-STRUCK ITALIC SMALL E
{"EEacgr", 0x00389}, // GREEK CAPITAL LETTER ETA WITH TONOS
{"eeacgr", 0x003AE}, // GREEK SMALL LETTER ETA WITH TONOS
{"EEgr", 0x00397}, // GREEK CAPITAL LETTER ETA
{"eegr", 0x003B7}, // GREEK SMALL LETTER ETA
{"efDot", 0x02252}, // APPROXIMATELY EQUAL TO OR THE IMAGE OF
{"Efr", 0x1D508}, // MATHEMATICAL FRAKTUR CAPITAL E
{"efr", 0x1D522}, // MATHEMATICAL FRAKTUR SMALL E
{"eg", 0x02A9A}, // DOUBLE-LINE EQUAL TO OR GREATER-THAN
{"Egr", 0x00395}, // GREEK CAPITAL LETTER EPSILON
{"egr", 0x003B5}, // GREEK SMALL LETTER EPSILON
{"Egrave", 0x000C8}, // LATIN CAPITAL LETTER E WITH GRAVE
{"egrave", 0x000E8}, // LATIN SMALL LETTER E WITH GRAVE
{"egs", 0x02A96}, // SLANTED EQUAL TO OR GREATER-THAN
{"egsdot", 0x02A98}, // SLANTED EQUAL TO OR GREATER-THAN WITH DOT INSIDE
{"el", 0x02A99}, // DOUBLE-LINE EQUAL TO OR LESS-THAN
{"Element", 0x02208}, // ELEMENT OF
{"elinters", 0x023E7}, // ELECTRICAL INTERSECTION
{"ell", 0x02113}, // SCRIPT SMALL L
{"els", 0x02A95}, // SLANTED EQUAL TO OR LESS-THAN
{"elsdot", 0x02A97}, // SLANTED EQUAL TO OR LESS-THAN WITH DOT INSIDE
{"Emacr", 0x00112}, // LATIN CAPITAL LETTER E WITH MACRON
{"emacr", 0x00113}, // LATIN SMALL LETTER E WITH MACRON
{"empty", 0x02205}, // EMPTY SET
{"emptyset", 0x02205}, // EMPTY SET
{"EmptySmallSquare", 0x025FB}, // WHITE MEDIUM SQUARE
{"emptyv", 0x02205}, // EMPTY SET
{"EmptyVerySmallSquare", 0x025AB}, // WHITE SMALL SQUARE
{"emsp", 0x02003}, // EM SPACE
{"emsp13", 0x02004}, // THREE-PER-EM SPACE
{"emsp14", 0x02005}, // FOUR-PER-EM SPACE
{"ENG", 0x0014A}, // LATIN CAPITAL LETTER ENG
{"eng", 0x0014B}, // LATIN SMALL LETTER ENG
{"ensp", 0x02002}, // EN SPACE
{"Eogon", 0x00118}, // LATIN CAPITAL LETTER E WITH OGONEK
{"eogon", 0x00119}, // LATIN SMALL LETTER E WITH OGONEK
{"Eopf", 0x1D53C}, // MATHEMATICAL DOUBLE-STRUCK CAPITAL E
{"eopf", 0x1D556}, // MATHEMATICAL DOUBLE-STRUCK SMALL E
{"epar", 0x022D5}, // EQUAL AND PARALLEL TO
{"eparsl", 0x029E3}, // EQUALS SIGN AND SLANTED PARALLEL
{"eplus", 0x02A71}, // EQUALS SIGN ABOVE PLUS SIGN
{"epsi", 0x003B5}, // GREEK SMALL LETTER EPSILON
{"Epsilon", 0x00395}, // GREEK CAPITAL LETTER EPSILON
{"epsilon", 0x003B5}, // GREEK SMALL LETTER EPSILON
{"epsiv", 0x003F5}, // GREEK LUNATE EPSILON SYMBOL
{"eqcirc", 0x02256}, // RING IN EQUAL TO
{"eqcolon", 0x02255}, // EQUALS COLON
{"eqsim", 0x02242}, // MINUS TILDE
{"eqslantgtr", 0x02A96}, // SLANTED EQUAL TO OR GREATER-THAN
{"eqslantless", 0x02A95}, // SLANTED EQUAL TO OR LESS-THAN
{"Equal", 0x02A75}, // TWO CONSECUTIVE EQUALS SIGNS
{"equals", 0x0003D}, // EQUALS SIGN
{"EqualTilde", 0x02242}, // MINUS TILDE
{"equest", 0x0225F}, // QUESTIONED EQUAL TO
{"Equilibrium", 0x021CC}, // RIGHTWARDS HARPOON OVER LEFTWARDS HARPOON
{"equiv", 0x02261}, // IDENTICAL TO
{"equivDD", 0x02A78}, // EQUIVALENT WITH FOUR DOTS ABOVE
{"eqvparsl", 0x029E5}, // IDENTICAL TO AND SLANTED PARALLEL
{"erarr", 0x02971}, // EQUALS SIGN ABOVE RIGHTWARDS ARROW
{"erDot", 0x02253}, // IMAGE OF OR APPROXIMATELY EQUAL TO
{"escr", 0x0212F}, // SCRIPT SMALL E
{"Escr", 0x02130}, // SCRIPT CAPITAL E
{"esdot", 0x02250}, // APPROACHES THE LIMIT
{"esim", 0x02242}, // MINUS TILDE
{"Esim", 0x02A73}, // EQUALS SIGN ABOVE TILDE OPERATOR
{"Eta", 0x00397}, // GREEK CAPITAL LETTER ETA
{"eta", 0x003B7}, // GREEK SMALL LETTER ETA
{"ETH", 0x000D0}, // LATIN CAPITAL LETTER ETH
{"eth", 0x000F0}, // LATIN SMALL LETTER ETH
{"Euml", 0x000CB}, // LATIN CAPITAL LETTER E WITH DIAERESIS
{"euml", 0x000EB}, // LATIN SMALL LETTER E WITH DIAERESIS
{"euro", 0x020AC}, // EURO SIGN
{"excl", 0x00021}, // EXCLAMATION MARK
{"exist", 0x02203}, // THERE EXISTS
{"Exists", 0x02203}, // THERE EXISTS
{"expectation", 0x02130}, // SCRIPT CAPITAL E
{"exponentiale", 0x02147}, // DOUBLE-STRUCK ITALIC SMALL E
{"ExponentialE", 0x02147}, // DOUBLE-STRUCK ITALIC SMALL E
];
immutable NameId[] namesF =
[
{"fallingdotseq", 0x02252}, // APPROXIMATELY EQUAL TO OR THE IMAGE OF
{"Fcy", 0x00424}, // CYRILLIC CAPITAL LETTER EF
{"fcy", 0x00444}, // CYRILLIC SMALL LETTER EF
{"female", 0x02640}, // FEMALE SIGN
{"ffilig", 0x0FB03}, // LATIN SMALL LIGATURE FFI
{"fflig", 0x0FB00}, // LATIN SMALL LIGATURE FF
{"ffllig", 0x0FB04}, // LATIN SMALL LIGATURE FFL
{"Ffr", 0x1D509}, // MATHEMATICAL FRAKTUR CAPITAL F
{"ffr", 0x1D523}, // MATHEMATICAL FRAKTUR SMALL F
{"filig", 0x0FB01}, // LATIN SMALL LIGATURE FI
{"FilledSmallSquare", 0x025FC}, // BLACK MEDIUM SQUARE
{"FilledVerySmallSquare", 0x025AA}, // BLACK SMALL SQUARE
// "fjlig", 0x00066;0x0006A}, // fj ligature
{"flat", 0x0266D}, // MUSIC FLAT SIGN
{"fllig", 0x0FB02}, // LATIN SMALL LIGATURE FL
{"fltns", 0x025B1}, // WHITE PARALLELOGRAM
{"fnof", 0x00192}, // LATIN SMALL LETTER F WITH HOOK
{"Fopf", 0x1D53D}, // MATHEMATICAL DOUBLE-STRUCK CAPITAL F
{"fopf", 0x1D557}, // MATHEMATICAL DOUBLE-STRUCK SMALL F
{"forall", 0x02200}, // FOR ALL
{"ForAll", 0x02200}, // FOR ALL
{"fork", 0x022D4}, // PITCHFORK
{"forkv", 0x02AD9}, // ELEMENT OF OPENING DOWNWARDS
{"Fouriertrf", 0x02131}, // SCRIPT CAPITAL F
{"fpartint", 0x02A0D}, // FINITE PART INTEGRAL
{"frac12", 0x000BD}, // VULGAR FRACTION ONE HALF
{"frac13", 0x02153}, // VULGAR FRACTION ONE THIRD
{"frac14", 0x000BC}, // VULGAR FRACTION ONE QUARTER
{"frac15", 0x02155}, // VULGAR FRACTION ONE FIFTH
{"frac16", 0x02159}, // VULGAR FRACTION ONE SIXTH
{"frac18", 0x0215B}, // VULGAR FRACTION ONE EIGHTH
{"frac23", 0x02154}, // VULGAR FRACTION TWO THIRDS
{"frac25", 0x02156}, // VULGAR FRACTION TWO FIFTHS
{"frac34", 0x000BE}, // VULGAR FRACTION THREE QUARTERS
{"frac35", 0x02157}, // VULGAR FRACTION THREE FIFTHS
{"frac38", 0x0215C}, // VULGAR FRACTION THREE EIGHTHS
{"frac45", 0x02158}, // VULGAR FRACTION FOUR FIFTHS
{"frac56", 0x0215A}, // VULGAR FRACTION FIVE SIXTHS
{"frac58", 0x0215D}, // VULGAR FRACTION FIVE EIGHTHS
{"frac78", 0x0215E}, // VULGAR FRACTION SEVEN EIGHTHS
{"frasl", 0x02044}, // FRACTION SLASH
{"frown", 0x02322}, // FROWN
{"Fscr", 0x02131}, // SCRIPT CAPITAL F
{"fscr", 0x1D4BB}, // MATHEMATICAL SCRIPT SMALL F
];
immutable NameId[] namesG =
[
{"gacute", 0x001F5}, // LATIN SMALL LETTER G WITH ACUTE
{"Gamma", 0x00393}, // GREEK CAPITAL LETTER GAMMA
{"gamma", 0x003B3}, // GREEK SMALL LETTER GAMMA
{"Gammad", 0x003DC}, // GREEK LETTER DIGAMMA
{"gammad", 0x003DD}, // GREEK SMALL LETTER DIGAMMA
{"gap", 0x02A86}, // GREATER-THAN OR APPROXIMATE
{"Gbreve", 0x0011E}, // LATIN CAPITAL LETTER G WITH BREVE
{"gbreve", 0x0011F}, // LATIN SMALL LETTER G WITH BREVE
{"Gcedil", 0x00122}, // LATIN CAPITAL LETTER G WITH CEDILLA
{"Gcirc", 0x0011C}, // LATIN CAPITAL LETTER G WITH CIRCUMFLEX
{"gcirc", 0x0011D}, // LATIN SMALL LETTER G WITH CIRCUMFLEX
{"Gcy", 0x00413}, // CYRILLIC CAPITAL LETTER GHE
{"gcy", 0x00433}, // CYRILLIC SMALL LETTER GHE
{"Gdot", 0x00120}, // LATIN CAPITAL LETTER G WITH DOT ABOVE
{"gdot", 0x00121}, // LATIN SMALL LETTER G WITH DOT ABOVE
{"ge", 0x02265}, // GREATER-THAN OR EQUAL TO
{"gE", 0x02267}, // GREATER-THAN OVER EQUAL TO
{"gel", 0x022DB}, // GREATER-THAN EQUAL TO OR LESS-THAN
{"gEl", 0x02A8C}, // GREATER-THAN ABOVE DOUBLE-LINE EQUAL ABOVE LESS-THAN
{"geq", 0x02265}, // GREATER-THAN OR EQUAL TO
{"geqq", 0x02267}, // GREATER-THAN OVER EQUAL TO
{"geqslant", 0x02A7E}, // GREATER-THAN OR SLANTED EQUAL TO
{"ges", 0x02A7E}, // GREATER-THAN OR SLANTED EQUAL TO
{"gescc", 0x02AA9}, // GREATER-THAN CLOSED BY CURVE ABOVE SLANTED EQUAL
{"gesdot", 0x02A80}, // GREATER-THAN OR SLANTED EQUAL TO WITH DOT INSIDE
{"gesdoto", 0x02A82}, // GREATER-THAN OR SLANTED EQUAL TO WITH DOT ABOVE
{"gesdotol", 0x02A84}, // GREATER-THAN OR SLANTED EQUAL TO WITH DOT ABOVE LEFT
// "gesl", 0x022DB;0x0FE00}, // GREATER-THAN slanted EQUAL TO OR LESS-THAN
{"gesles", 0x02A94}, // GREATER-THAN ABOVE SLANTED EQUAL ABOVE LESS-THAN ABOVE SLANTED EQUAL
{"Gfr", 0x1D50A}, // MATHEMATICAL FRAKTUR CAPITAL G
{"gfr", 0x1D524}, // MATHEMATICAL FRAKTUR SMALL G
{"gg", 0x0226B}, // MUCH GREATER-THAN
{"Gg", 0x022D9}, // VERY MUCH GREATER-THAN
{"ggg", 0x022D9}, // VERY MUCH GREATER-THAN
{"Ggr", 0x00393}, // GREEK CAPITAL LETTER GAMMA
{"ggr", 0x003B3}, // GREEK SMALL LETTER GAMMA
{"gimel", 0x02137}, // GIMEL SYMBOL
{"GJcy", 0x00403}, // CYRILLIC CAPITAL LETTER GJE
{"gjcy", 0x00453}, // CYRILLIC SMALL LETTER GJE
{"gl", 0x02277}, // GREATER-THAN OR LESS-THAN
{"gla", 0x02AA5}, // GREATER-THAN BESIDE LESS-THAN
{"glE", 0x02A92}, // GREATER-THAN ABOVE LESS-THAN ABOVE DOUBLE-LINE EQUAL
{"glj", 0x02AA4}, // GREATER-THAN OVERLAPPING LESS-THAN
{"gnap", 0x02A8A}, // GREATER-THAN AND NOT APPROXIMATE
{"gnapprox", 0x02A8A}, // GREATER-THAN AND NOT APPROXIMATE
{"gnE", 0x02269}, // GREATER-THAN BUT NOT EQUAL TO
{"gne", 0x02A88}, // GREATER-THAN AND SINGLE-LINE NOT EQUAL TO
{"gneq", 0x02A88}, // GREATER-THAN AND SINGLE-LINE NOT EQUAL TO
{"gneqq", 0x02269}, // GREATER-THAN BUT NOT EQUAL TO
{"gnsim", 0x022E7}, // GREATER-THAN BUT NOT EQUIVALENT TO
{"Gopf", 0x1D53E}, // MATHEMATICAL DOUBLE-STRUCK CAPITAL G
{"gopf", 0x1D558}, // MATHEMATICAL DOUBLE-STRUCK SMALL G
{"grave", 0x00060}, // GRAVE ACCENT
{"GreaterEqual", 0x02265}, // GREATER-THAN OR EQUAL TO
{"GreaterEqualLess", 0x022DB}, // GREATER-THAN EQUAL TO OR LESS-THAN
{"GreaterFullEqual", 0x02267}, // GREATER-THAN OVER EQUAL TO
{"GreaterGreater", 0x02AA2}, // DOUBLE NESTED GREATER-THAN
{"GreaterLess", 0x02277}, // GREATER-THAN OR LESS-THAN
{"GreaterSlantEqual", 0x02A7E}, // GREATER-THAN OR SLANTED EQUAL TO
{"GreaterTilde", 0x02273}, // GREATER-THAN OR EQUIVALENT TO
{"gscr", 0x0210A}, // SCRIPT SMALL G
{"Gscr", 0x1D4A2}, // MATHEMATICAL SCRIPT CAPITAL G
{"gsim", 0x02273}, // GREATER-THAN OR EQUIVALENT TO
{"gsime", 0x02A8E}, // GREATER-THAN ABOVE SIMILAR OR EQUAL
{"gsiml", 0x02A90}, // GREATER-THAN ABOVE SIMILAR ABOVE LESS-THAN
{"gt", 0x0003E}, // GREATER-THAN SIGN
{"GT", 0x0003E}, // GREATER-THAN SIGN
{"Gt", 0x0226B}, // MUCH GREATER-THAN
{"gtcc", 0x02AA7}, // GREATER-THAN CLOSED BY CURVE
{"gtcir", 0x02A7A}, // GREATER-THAN WITH CIRCLE INSIDE
{"gtdot", 0x022D7}, // GREATER-THAN WITH DOT
{"gtlPar", 0x02995}, // DOUBLE LEFT ARC GREATER-THAN BRACKET
{"gtquest", 0x02A7C}, // GREATER-THAN WITH QUESTION MARK ABOVE
{"gtrapprox", 0x02A86}, // GREATER-THAN OR APPROXIMATE
{"gtrarr", 0x02978}, // GREATER-THAN ABOVE RIGHTWARDS ARROW
{"gtrdot", 0x022D7}, // GREATER-THAN WITH DOT
{"gtreqless", 0x022DB}, // GREATER-THAN EQUAL TO OR LESS-THAN
{"gtreqqless", 0x02A8C}, // GREATER-THAN ABOVE DOUBLE-LINE EQUAL ABOVE LESS-THAN
{"gtrless", 0x02277}, // GREATER-THAN OR LESS-THAN
{"gtrsim", 0x02273}, // GREATER-THAN OR EQUIVALENT TO
// "gvertneqq", 0x02269;0x0FE00}, // GREATER-THAN BUT NOT EQUAL TO - with vertical stroke
// "gvnE", 0x02269;0x0FE00}, // GREATER-THAN BUT NOT EQUAL TO - with vertical stroke
];
immutable NameId[] namesH =
[
{"Hacek", 0x002C7}, // CARON
{"hairsp", 0x0200A}, // HAIR SPACE
{"half", 0x000BD}, // VULGAR FRACTION ONE HALF
{"hamilt", 0x0210B}, // SCRIPT CAPITAL H
{"HARDcy", 0x0042A}, // CYRILLIC CAPITAL LETTER HARD SIGN
{"hardcy", 0x0044A}, // CYRILLIC SMALL LETTER HARD SIGN
{"harr", 0x02194}, // LEFT RIGHT ARROW
{"hArr", 0x021D4}, // LEFT RIGHT DOUBLE ARROW
{"harrcir", 0x02948}, // LEFT RIGHT ARROW THROUGH SMALL CIRCLE
{"harrw", 0x021AD}, // LEFT RIGHT WAVE ARROW
{"Hat", 0x0005E}, // CIRCUMFLEX ACCENT
{"hbar", 0x0210F}, // PLANCK CONSTANT OVER TWO PI
{"Hcirc", 0x00124}, // LATIN CAPITAL LETTER H WITH CIRCUMFLEX
{"hcirc", 0x00125}, // LATIN SMALL LETTER H WITH CIRCUMFLEX
{"hearts", 0x02665}, // BLACK HEART SUIT
{"heartsuit", 0x02665}, // BLACK HEART SUIT
{"hellip", 0x02026}, // HORIZONTAL ELLIPSIS
{"hercon", 0x022B9}, // HERMITIAN CONJUGATE MATRIX
{"Hfr", 0x0210C}, // BLACK-LETTER CAPITAL H
{"hfr", 0x1D525}, // MATHEMATICAL FRAKTUR SMALL H
{"HilbertSpace", 0x0210B}, // SCRIPT CAPITAL H
{"hksearow", 0x02925}, // SOUTH EAST ARROW WITH HOOK
{"hkswarow", 0x02926}, // SOUTH WEST ARROW WITH HOOK
{"hoarr", 0x021FF}, // LEFT RIGHT OPEN-HEADED ARROW
{"homtht", 0x0223B}, // HOMOTHETIC
{"hookleftarrow", 0x021A9}, // LEFTWARDS ARROW WITH HOOK
{"hookrightarrow", 0x021AA}, // RIGHTWARDS ARROW WITH HOOK
{"Hopf", 0x0210D}, // DOUBLE-STRUCK CAPITAL H
{"hopf", 0x1D559}, // MATHEMATICAL DOUBLE-STRUCK SMALL H
{"horbar", 0x02015}, // HORIZONTAL BAR
{"HorizontalLine", 0x02500}, // BOX DRAWINGS LIGHT HORIZONTAL
{"Hscr", 0x0210B}, // SCRIPT CAPITAL H
{"hscr", 0x1D4BD}, // MATHEMATICAL SCRIPT SMALL H
{"hslash", 0x0210F}, // PLANCK CONSTANT OVER TWO PI
{"Hstrok", 0x00126}, // LATIN CAPITAL LETTER H WITH STROKE
{"hstrok", 0x00127}, // LATIN SMALL LETTER H WITH STROKE
{"HumpDownHump", 0x0224E}, // GEOMETRICALLY EQUIVALENT TO
{"HumpEqual", 0x0224F}, // DIFFERENCE BETWEEN
{"hybull", 0x02043}, // HYPHEN BULLET
{"hyphen", 0x02010}, // HYPHEN
];
immutable NameId[] namesI =
[
{"Iacgr", 0x0038A}, // GREEK CAPITAL LETTER IOTA WITH TONOS
{"iacgr", 0x003AF}, // GREEK SMALL LETTER IOTA WITH TONOS
{"Iacute", 0x000CD}, // LATIN CAPITAL LETTER I WITH ACUTE
{"iacute", 0x000ED}, // LATIN SMALL LETTER I WITH ACUTE
{"ic", 0x02063}, // INVISIBLE SEPARATOR
{"Icirc", 0x000CE}, // LATIN CAPITAL LETTER I WITH CIRCUMFLEX
{"icirc", 0x000EE}, // LATIN SMALL LETTER I WITH CIRCUMFLEX
{"Icy", 0x00418}, // CYRILLIC CAPITAL LETTER I
{"icy", 0x00438}, // CYRILLIC SMALL LETTER I
{"idiagr", 0x00390}, // GREEK SMALL LETTER IOTA WITH DIALYTIKA AND TONOS
{"Idigr", 0x003AA}, // GREEK CAPITAL LETTER IOTA WITH DIALYTIKA
{"idigr", 0x003CA}, // GREEK SMALL LETTER IOTA WITH DIALYTIKA
{"Idot", 0x00130}, // LATIN CAPITAL LETTER I WITH DOT ABOVE
{"IEcy", 0x00415}, // CYRILLIC CAPITAL LETTER IE
{"iecy", 0x00435}, // CYRILLIC SMALL LETTER IE
{"iexcl", 0x000A1}, // INVERTED EXCLAMATION MARK
{"iff", 0x021D4}, // LEFT RIGHT DOUBLE ARROW
{"Ifr", 0x02111}, // BLACK-LETTER CAPITAL I
{"ifr", 0x1D526}, // MATHEMATICAL FRAKTUR SMALL I
{"Igr", 0x00399}, // GREEK CAPITAL LETTER IOTA
{"igr", 0x003B9}, // GREEK SMALL LETTER IOTA
{"Igrave", 0x000CC}, // LATIN CAPITAL LETTER I WITH GRAVE
{"igrave", 0x000EC}, // LATIN SMALL LETTER I WITH GRAVE
{"ii", 0x02148}, // DOUBLE-STRUCK ITALIC SMALL I
{"iiiint", 0x02A0C}, // QUADRUPLE INTEGRAL OPERATOR
{"iiint", 0x0222D}, // TRIPLE INTEGRAL
{"iinfin", 0x029DC}, // INCOMPLETE INFINITY
{"iiota", 0x02129}, // TURNED GREEK SMALL LETTER IOTA
{"IJlig", 0x00132}, // LATIN CAPITAL LIGATURE IJ
{"ijlig", 0x00133}, // LATIN SMALL LIGATURE IJ
{"Im", 0x02111}, // BLACK-LETTER CAPITAL I
{"Imacr", 0x0012A}, // LATIN CAPITAL LETTER I WITH MACRON
{"imacr", 0x0012B}, // LATIN SMALL LETTER I WITH MACRON
{"image", 0x02111}, // BLACK-LETTER CAPITAL I
{"ImaginaryI", 0x02148}, // DOUBLE-STRUCK ITALIC SMALL I
{"imagline", 0x02110}, // SCRIPT CAPITAL I
{"imagpart", 0x02111}, // BLACK-LETTER CAPITAL I
{"imath", 0x00131}, // LATIN SMALL LETTER DOTLESS I
{"imof", 0x022B7}, // IMAGE OF
{"imped", 0x001B5}, // LATIN CAPITAL LETTER Z WITH STROKE
{"Implies", 0x021D2}, // RIGHTWARDS DOUBLE ARROW
{"in", 0x02208}, // ELEMENT OF
{"incare", 0x02105}, // CARE OF
{"infin", 0x0221E}, // INFINITY
{"infintie", 0x029DD}, // TIE OVER INFINITY
{"inodot", 0x00131}, // LATIN SMALL LETTER DOTLESS I
{"int", 0x0222B}, // INTEGRAL
{"Int", 0x0222C}, // DOUBLE INTEGRAL
{"intcal", 0x022BA}, // INTERCALATE
{"integers", 0x02124}, // DOUBLE-STRUCK CAPITAL Z
{"Integral", 0x0222B}, // INTEGRAL
{"intercal", 0x022BA}, // INTERCALATE
{"Intersection", 0x022C2}, // N-ARY INTERSECTION
{"intlarhk", 0x02A17}, // INTEGRAL WITH LEFTWARDS ARROW WITH HOOK
{"intprod", 0x02A3C}, // INTERIOR PRODUCT
{"InvisibleComma", 0x02063}, // INVISIBLE SEPARATOR
{"InvisibleTimes", 0x02062}, // INVISIBLE TIMES
{"IOcy", 0x00401}, // CYRILLIC CAPITAL LETTER IO
{"iocy", 0x00451}, // CYRILLIC SMALL LETTER IO
{"Iogon", 0x0012E}, // LATIN CAPITAL LETTER I WITH OGONEK
{"iogon", 0x0012F}, // LATIN SMALL LETTER I WITH OGONEK
{"Iopf", 0x1D540}, // MATHEMATICAL DOUBLE-STRUCK CAPITAL I
{"iopf", 0x1D55A}, // MATHEMATICAL DOUBLE-STRUCK SMALL I
{"Iota", 0x00399}, // GREEK CAPITAL LETTER IOTA
{"iota", 0x003B9}, // GREEK SMALL LETTER IOTA
{"iprod", 0x02A3C}, // INTERIOR PRODUCT
{"iquest", 0x000BF}, // INVERTED QUESTION MARK
{"Iscr", 0x02110}, // SCRIPT CAPITAL I
{"iscr", 0x1D4BE}, // MATHEMATICAL SCRIPT SMALL I
{"isin", 0x02208}, // ELEMENT OF
{"isindot", 0x022F5}, // ELEMENT OF WITH DOT ABOVE
{"isinE", 0x022F9}, // ELEMENT OF WITH TWO HORIZONTAL STROKES
{"isins", 0x022F4}, // SMALL ELEMENT OF WITH VERTICAL BAR AT END OF HORIZONTAL STROKE
{"isinsv", 0x022F3}, // ELEMENT OF WITH VERTICAL BAR AT END OF HORIZONTAL STROKE
{"isinv", 0x02208}, // ELEMENT OF
{"it", 0x02062}, // INVISIBLE TIMES
{"Itilde", 0x00128}, // LATIN CAPITAL LETTER I WITH TILDE
{"itilde", 0x00129}, // LATIN SMALL LETTER I WITH TILDE
{"Iukcy", 0x00406}, // CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I
{"iukcy", 0x00456}, // CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I
{"Iuml", 0x000CF}, // LATIN CAPITAL LETTER I WITH DIAERESIS
{"iuml", 0x000EF}, // LATIN SMALL LETTER I WITH DIAERESIS
];
immutable NameId[] namesJ =
[
{"Jcirc", 0x00134}, // LATIN CAPITAL LETTER J WITH CIRCUMFLEX
{"jcirc", 0x00135}, // LATIN SMALL LETTER J WITH CIRCUMFLEX
{"Jcy", 0x00419}, // CYRILLIC CAPITAL LETTER SHORT I
{"jcy", 0x00439}, // CYRILLIC SMALL LETTER SHORT I
{"Jfr", 0x1D50D}, // MATHEMATICAL FRAKTUR CAPITAL J
{"jfr", 0x1D527}, // MATHEMATICAL FRAKTUR SMALL J
{"jmath", 0x00237}, // LATIN SMALL LETTER DOTLESS J
{"Jopf", 0x1D541}, // MATHEMATICAL DOUBLE-STRUCK CAPITAL J
{"jopf", 0x1D55B}, // MATHEMATICAL DOUBLE-STRUCK SMALL J
{"Jscr", 0x1D4A5}, // MATHEMATICAL SCRIPT CAPITAL J
{"jscr", 0x1D4BF}, // MATHEMATICAL SCRIPT SMALL J
{"Jsercy", 0x00408}, // CYRILLIC CAPITAL LETTER JE
{"jsercy", 0x00458}, // CYRILLIC SMALL LETTER JE
{"Jukcy", 0x00404}, // CYRILLIC CAPITAL LETTER UKRAINIAN IE
{"jukcy", 0x00454}, // CYRILLIC SMALL LETTER UKRAINIAN IE
];
immutable NameId[] namesK =
[
{"Kappa", 0x0039A}, // GREEK CAPITAL LETTER KAPPA
{"kappa", 0x003BA}, // GREEK SMALL LETTER KAPPA
{"kappav", 0x003F0}, // GREEK KAPPA SYMBOL
{"Kcedil", 0x00136}, // LATIN CAPITAL LETTER K WITH CEDILLA
{"kcedil", 0x00137}, // LATIN SMALL LETTER K WITH CEDILLA
{"Kcy", 0x0041A}, // CYRILLIC CAPITAL LETTER KA
{"kcy", 0x0043A}, // CYRILLIC SMALL LETTER KA
{"Kfr", 0x1D50E}, // MATHEMATICAL FRAKTUR CAPITAL K
{"kfr", 0x1D528}, // MATHEMATICAL FRAKTUR SMALL K
{"Kgr", 0x0039A}, // GREEK CAPITAL LETTER KAPPA
{"kgr", 0x003BA}, // GREEK SMALL LETTER KAPPA
{"kgreen", 0x00138}, // LATIN SMALL LETTER KRA
{"KHcy", 0x00425}, // CYRILLIC CAPITAL LETTER HA
{"khcy", 0x00445}, // CYRILLIC SMALL LETTER HA
{"KHgr", 0x003A7}, // GREEK CAPITAL LETTER CHI
{"khgr", 0x003C7}, // GREEK SMALL LETTER CHI
{"KJcy", 0x0040C}, // CYRILLIC CAPITAL LETTER KJE
{"kjcy", 0x0045C}, // CYRILLIC SMALL LETTER KJE
{"Kopf", 0x1D542}, // MATHEMATICAL DOUBLE-STRUCK CAPITAL K
{"kopf", 0x1D55C}, // MATHEMATICAL DOUBLE-STRUCK SMALL K
{"Kscr", 0x1D4A6}, // MATHEMATICAL SCRIPT CAPITAL K
{"kscr", 0x1D4C0}, // MATHEMATICAL SCRIPT SMALL K
];
immutable NameId[] namesL =
[
{"lAarr", 0x021DA}, // LEFTWARDS TRIPLE ARROW
{"Lacute", 0x00139}, // LATIN CAPITAL LETTER L WITH ACUTE
{"lacute", 0x0013A}, // LATIN SMALL LETTER L WITH ACUTE
{"laemptyv", 0x029B4}, // EMPTY SET WITH LEFT ARROW ABOVE
{"lagran", 0x02112}, // SCRIPT CAPITAL L
{"Lambda", 0x0039B}, // GREEK CAPITAL LETTER LAMDA
{"lambda", 0x003BB}, // GREEK SMALL LETTER LAMDA
{"lang", 0x027E8}, // MATHEMATICAL LEFT ANGLE BRACKET
{"Lang", 0x027EA}, // MATHEMATICAL LEFT DOUBLE ANGLE BRACKET
{"langd", 0x02991}, // LEFT ANGLE BRACKET WITH DOT
{"langle", 0x027E8}, // MATHEMATICAL LEFT ANGLE BRACKET
{"lap", 0x02A85}, // LESS-THAN OR APPROXIMATE
{"Laplacetrf", 0x02112}, // SCRIPT CAPITAL L
{"laquo", 0x000AB}, // LEFT-POINTING DOUBLE ANGLE QUOTATION MARK
{"larr", 0x02190}, // LEFTWARDS ARROW
{"Larr", 0x0219E}, // LEFTWARDS TWO HEADED ARROW
{"lArr", 0x021D0}, // LEFTWARDS DOUBLE ARROW
{"larrb", 0x021E4}, // LEFTWARDS ARROW TO BAR
{"larrbfs", 0x0291F}, // LEFTWARDS ARROW FROM BAR TO BLACK DIAMOND
{"larrfs", 0x0291D}, // LEFTWARDS ARROW TO BLACK DIAMOND
{"larrhk", 0x021A9}, // LEFTWARDS ARROW WITH HOOK
{"larrlp", 0x021AB}, // LEFTWARDS ARROW WITH LOOP
{"larrpl", 0x02939}, // LEFT-SIDE ARC ANTICLOCKWISE ARROW
{"larrsim", 0x02973}, // LEFTWARDS ARROW ABOVE TILDE OPERATOR
{"larrtl", 0x021A2}, // LEFTWARDS ARROW WITH TAIL
{"lat", 0x02AAB}, // LARGER THAN
{"latail", 0x02919}, // LEFTWARDS ARROW-TAIL
{"lAtail", 0x0291B}, // LEFTWARDS DOUBLE ARROW-TAIL
{"late", 0x02AAD}, // LARGER THAN OR EQUAL TO
// "lates", 0x02AAD;0x0FE00}, // LARGER THAN OR slanted EQUAL
{"lbarr", 0x0290C}, // LEFTWARDS DOUBLE DASH ARROW
{"lBarr", 0x0290E}, // LEFTWARDS TRIPLE DASH ARROW
{"lbbrk", 0x02772}, // LIGHT LEFT TORTOISE SHELL BRACKET ORNAMENT
{"lbrace", 0x0007B}, // LEFT CURLY BRACKET
{"lbrack", 0x0005B}, // LEFT SQUARE BRACKET
{"lbrke", 0x0298B}, // LEFT SQUARE BRACKET WITH UNDERBAR
{"lbrksld", 0x0298F}, // LEFT SQUARE BRACKET WITH TICK IN BOTTOM CORNER
{"lbrkslu", 0x0298D}, // LEFT SQUARE BRACKET WITH TICK IN TOP CORNER
{"Lcaron", 0x0013D}, // LATIN CAPITAL LETTER L WITH CARON
{"lcaron", 0x0013E}, // LATIN SMALL LETTER L WITH CARON
{"Lcedil", 0x0013B}, // LATIN CAPITAL LETTER L WITH CEDILLA
{"lcedil", 0x0013C}, // LATIN SMALL LETTER L WITH CEDILLA
{"lceil", 0x02308}, // LEFT CEILING
{"lcub", 0x0007B}, // LEFT CURLY BRACKET
{"Lcy", 0x0041B}, // CYRILLIC CAPITAL LETTER EL
{"lcy", 0x0043B}, // CYRILLIC SMALL LETTER EL
{"ldca", 0x02936}, // ARROW POINTING DOWNWARDS THEN CURVING LEFTWARDS
{"ldquo", 0x0201C}, // LEFT DOUBLE QUOTATION MARK
{"ldquor", 0x0201E}, // DOUBLE LOW-9 QUOTATION MARK
{"ldrdhar", 0x02967}, // LEFTWARDS HARPOON WITH BARB DOWN ABOVE RIGHTWARDS HARPOON WITH BARB DOWN
{"ldrushar", 0x0294B}, // LEFT BARB DOWN RIGHT BARB UP HARPOON
{"ldsh", 0x021B2}, // DOWNWARDS ARROW WITH TIP LEFTWARDS
{"le", 0x02264}, // LESS-THAN OR EQUAL TO
{"lE", 0x02266}, // LESS-THAN OVER EQUAL TO
{"LeftAngleBracket", 0x027E8}, // MATHEMATICAL LEFT ANGLE BRACKET
{"leftarrow", 0x02190}, // LEFTWARDS ARROW
{"LeftArrow", 0x02190}, // LEFTWARDS ARROW
{"Leftarrow", 0x021D0}, // LEFTWARDS DOUBLE ARROW
{"LeftArrowBar", 0x021E4}, // LEFTWARDS ARROW TO BAR
{"LeftArrowRightArrow", 0x021C6}, // LEFTWARDS ARROW OVER RIGHTWARDS ARROW
{"leftarrowtail", 0x021A2}, // LEFTWARDS ARROW WITH TAIL
{"LeftCeiling", 0x02308}, // LEFT CEILING
{"LeftDoubleBracket", 0x027E6}, // MATHEMATICAL LEFT WHITE SQUARE BRACKET
{"LeftDownTeeVector", 0x02961}, // DOWNWARDS HARPOON WITH BARB LEFT FROM BAR
{"LeftDownVector", 0x021C3}, // DOWNWARDS HARPOON WITH BARB LEFTWARDS
{"LeftDownVectorBar", 0x02959}, // DOWNWARDS HARPOON WITH BARB LEFT TO BAR
{"LeftFloor", 0x0230A}, // LEFT FLOOR
{"leftharpoondown", 0x021BD}, // LEFTWARDS HARPOON WITH BARB DOWNWARDS
{"leftharpoonup", 0x021BC}, // LEFTWARDS HARPOON WITH BARB UPWARDS
{"leftleftarrows", 0x021C7}, // LEFTWARDS PAIRED ARROWS
{"leftrightarrow", 0x02194}, // LEFT RIGHT ARROW
{"LeftRightArrow", 0x02194}, // LEFT RIGHT ARROW
{"Leftrightarrow", 0x021D4}, // LEFT RIGHT DOUBLE ARROW
{"leftrightarrows", 0x021C6}, // LEFTWARDS ARROW OVER RIGHTWARDS ARROW
{"leftrightharpoons", 0x021CB}, // LEFTWARDS HARPOON OVER RIGHTWARDS HARPOON
{"leftrightsquigarrow", 0x021AD}, // LEFT RIGHT WAVE ARROW
{"LeftRightVector", 0x0294E}, // LEFT BARB UP RIGHT BARB UP HARPOON
{"LeftTee", 0x022A3}, // LEFT TACK
{"LeftTeeArrow", 0x021A4}, // LEFTWARDS ARROW FROM BAR
{"LeftTeeVector", 0x0295A}, // LEFTWARDS HARPOON WITH BARB UP FROM BAR
{"leftthreetimes", 0x022CB}, // LEFT SEMIDIRECT PRODUCT
{"LeftTriangle", 0x022B2}, // NORMAL SUBGROUP OF
{"LeftTriangleBar", 0x029CF}, // LEFT TRIANGLE BESIDE VERTICAL BAR
{"LeftTriangleEqual", 0x022B4}, // NORMAL SUBGROUP OF OR EQUAL TO
{"LeftUpDownVector", 0x02951}, // UP BARB LEFT DOWN BARB LEFT HARPOON
{"LeftUpTeeVector", 0x02960}, // UPWARDS HARPOON WITH BARB LEFT FROM BAR
{"LeftUpVector", 0x021BF}, // UPWARDS HARPOON WITH BARB LEFTWARDS
{"LeftUpVectorBar", 0x02958}, // UPWARDS HARPOON WITH BARB LEFT TO BAR
{"LeftVector", 0x021BC}, // LEFTWARDS HARPOON WITH BARB UPWARDS
{"LeftVectorBar", 0x02952}, // LEFTWARDS HARPOON WITH BARB UP TO BAR
{"leg", 0x022DA}, // LESS-THAN EQUAL TO OR GREATER-THAN
{"lEg", 0x02A8B}, // LESS-THAN ABOVE DOUBLE-LINE EQUAL ABOVE GREATER-THAN
{"leq", 0x02264}, // LESS-THAN OR EQUAL TO
{"leqq", 0x02266}, // LESS-THAN OVER EQUAL TO
{"leqslant", 0x02A7D}, // LESS-THAN OR SLANTED EQUAL TO
{"les", 0x02A7D}, // LESS-THAN OR SLANTED EQUAL TO
{"lescc", 0x02AA8}, // LESS-THAN CLOSED BY CURVE ABOVE SLANTED EQUAL
{"lesdot", 0x02A7F}, // LESS-THAN OR SLANTED EQUAL TO WITH DOT INSIDE
{"lesdoto", 0x02A81}, // LESS-THAN OR SLANTED EQUAL TO WITH DOT ABOVE
{"lesdotor", 0x02A83}, // LESS-THAN OR SLANTED EQUAL TO WITH DOT ABOVE RIGHT
// "lesg", 0x022DA;0x0FE00}, // LESS-THAN slanted EQUAL TO OR GREATER-THAN
{"lesges", 0x02A93}, // LESS-THAN ABOVE SLANTED EQUAL ABOVE GREATER-THAN ABOVE SLANTED EQUAL
{"lessapprox", 0x02A85}, // LESS-THAN OR APPROXIMATE
{"lessdot", 0x022D6}, // LESS-THAN WITH DOT
{"lesseqgtr", 0x022DA}, // LESS-THAN EQUAL TO OR GREATER-THAN
{"lesseqqgtr", 0x02A8B}, // LESS-THAN ABOVE DOUBLE-LINE EQUAL ABOVE GREATER-THAN
{"LessEqualGreater", 0x022DA}, // LESS-THAN EQUAL TO OR GREATER-THAN
{"LessFullEqual", 0x02266}, // LESS-THAN OVER EQUAL TO
{"LessGreater", 0x02276}, // LESS-THAN OR GREATER-THAN
{"lessgtr", 0x02276}, // LESS-THAN OR GREATER-THAN
{"LessLess", 0x02AA1}, // DOUBLE NESTED LESS-THAN
{"lesssim", 0x02272}, // LESS-THAN OR EQUIVALENT TO
{"LessSlantEqual", 0x02A7D}, // LESS-THAN OR SLANTED EQUAL TO
{"LessTilde", 0x02272}, // LESS-THAN OR EQUIVALENT TO
{"lfisht", 0x0297C}, // LEFT FISH TAIL
{"lfloor", 0x0230A}, // LEFT FLOOR
{"Lfr", 0x1D50F}, // MATHEMATICAL FRAKTUR CAPITAL L
{"lfr", 0x1D529}, // MATHEMATICAL FRAKTUR SMALL L
{"lg", 0x02276}, // LESS-THAN OR GREATER-THAN
{"lgE", 0x02A91}, // LESS-THAN ABOVE GREATER-THAN ABOVE DOUBLE-LINE EQUAL
{"Lgr", 0x0039B}, // GREEK CAPITAL LETTER LAMDA
{"lgr", 0x003BB}, // GREEK SMALL LETTER LAMDA
{"lHar", 0x02962}, // LEFTWARDS HARPOON WITH BARB UP ABOVE LEFTWARDS HARPOON WITH BARB DOWN
{"lhard", 0x021BD}, // LEFTWARDS HARPOON WITH BARB DOWNWARDS
{"lharu", 0x021BC}, // LEFTWARDS HARPOON WITH BARB UPWARDS
{"lharul", 0x0296A}, // LEFTWARDS HARPOON WITH BARB UP ABOVE LONG DASH
{"lhblk", 0x02584}, // LOWER HALF BLOCK
{"LJcy", 0x00409}, // CYRILLIC CAPITAL LETTER LJE
{"ljcy", 0x00459}, // CYRILLIC SMALL LETTER LJE
{"ll", 0x0226A}, // MUCH LESS-THAN
{"Ll", 0x022D8}, // VERY MUCH LESS-THAN
{"llarr", 0x021C7}, // LEFTWARDS PAIRED ARROWS
{"llcorner", 0x0231E}, // BOTTOM LEFT CORNER
{"Lleftarrow", 0x021DA}, // LEFTWARDS TRIPLE ARROW
{"llhard", 0x0296B}, // LEFTWARDS HARPOON WITH BARB DOWN BELOW LONG DASH
{"lltri", 0x025FA}, // LOWER LEFT TRIANGLE
{"Lmidot", 0x0013F}, // LATIN CAPITAL LETTER L WITH MIDDLE DOT
{"lmidot", 0x00140}, // LATIN SMALL LETTER L WITH MIDDLE DOT
{"lmoust", 0x023B0}, // UPPER LEFT OR LOWER RIGHT CURLY BRACKET SECTION
{"lmoustache", 0x023B0}, // UPPER LEFT OR LOWER RIGHT CURLY BRACKET SECTION
{"lnap", 0x02A89}, // LESS-THAN AND NOT APPROXIMATE
{"lnapprox", 0x02A89}, // LESS-THAN AND NOT APPROXIMATE
{"lnE", 0x02268}, // LESS-THAN BUT NOT EQUAL TO
{"lne", 0x02A87}, // LESS-THAN AND SINGLE-LINE NOT EQUAL TO
{"lneq", 0x02A87}, // LESS-THAN AND SINGLE-LINE NOT EQUAL TO
{"lneqq", 0x02268}, // LESS-THAN BUT NOT EQUAL TO
{"lnsim", 0x022E6}, // LESS-THAN BUT NOT EQUIVALENT TO
{"loang", 0x027EC}, // MATHEMATICAL LEFT WHITE TORTOISE SHELL BRACKET
{"loarr", 0x021FD}, // LEFTWARDS OPEN-HEADED ARROW
{"lobrk", 0x027E6}, // MATHEMATICAL LEFT WHITE SQUARE BRACKET
{"longleftarrow", 0x027F5}, // LONG LEFTWARDS ARROW
{"LongLeftArrow", 0x027F5}, // LONG LEFTWARDS ARROW
{"Longleftarrow", 0x027F8}, // LONG LEFTWARDS DOUBLE ARROW
{"longleftrightarrow", 0x027F7}, // LONG LEFT RIGHT ARROW
{"LongLeftRightArrow", 0x027F7}, // LONG LEFT RIGHT ARROW
{"Longleftrightarrow", 0x027FA}, // LONG LEFT RIGHT DOUBLE ARROW
{"longmapsto", 0x027FC}, // LONG RIGHTWARDS ARROW FROM BAR
{"longrightarrow", 0x027F6}, // LONG RIGHTWARDS ARROW
{"LongRightArrow", 0x027F6}, // LONG RIGHTWARDS ARROW
{"Longrightarrow", 0x027F9}, // LONG RIGHTWARDS DOUBLE ARROW
{"looparrowleft", 0x021AB}, // LEFTWARDS ARROW WITH LOOP
{"looparrowright", 0x021AC}, // RIGHTWARDS ARROW WITH LOOP
{"lopar", 0x02985}, // LEFT WHITE PARENTHESIS
{"Lopf", 0x1D543}, // MATHEMATICAL DOUBLE-STRUCK CAPITAL L
{"lopf", 0x1D55D}, // MATHEMATICAL DOUBLE-STRUCK SMALL L
{"loplus", 0x02A2D}, // PLUS SIGN IN LEFT HALF CIRCLE
{"lotimes", 0x02A34}, // MULTIPLICATION SIGN IN LEFT HALF CIRCLE
{"lowast", 0x02217}, // ASTERISK OPERATOR
{"lowbar", 0x0005F}, // LOW LINE
{"LowerLeftArrow", 0x02199}, // SOUTH WEST ARROW
{"LowerRightArrow", 0x02198}, // SOUTH EAST ARROW
{"loz", 0x025CA}, // LOZENGE
{"lozenge", 0x025CA}, // LOZENGE
{"lozf", 0x029EB}, // BLACK LOZENGE
{"lpar", 0x00028}, // LEFT PARENTHESIS
{"lparlt", 0x02993}, // LEFT ARC LESS-THAN BRACKET
{"lrarr", 0x021C6}, // LEFTWARDS ARROW OVER RIGHTWARDS ARROW
{"lrcorner", 0x0231F}, // BOTTOM RIGHT CORNER
{"lrhar", 0x021CB}, // LEFTWARDS HARPOON OVER RIGHTWARDS HARPOON
{"lrhard", 0x0296D}, // RIGHTWARDS HARPOON WITH BARB DOWN BELOW LONG DASH
{"lrm", 0x0200E}, // LEFT-TO-RIGHT MARK
{"lrtri", 0x022BF}, // RIGHT TRIANGLE
{"lsaquo", 0x02039}, // SINGLE LEFT-POINTING ANGLE QUOTATION MARK
{"Lscr", 0x02112}, // SCRIPT CAPITAL L
{"lscr", 0x1D4C1}, // MATHEMATICAL SCRIPT SMALL L
{"lsh", 0x021B0}, // UPWARDS ARROW WITH TIP LEFTWARDS
{"Lsh", 0x021B0}, // UPWARDS ARROW WITH TIP LEFTWARDS
{"lsim", 0x02272}, // LESS-THAN OR EQUIVALENT TO
{"lsime", 0x02A8D}, // LESS-THAN ABOVE SIMILAR OR EQUAL
{"lsimg", 0x02A8F}, // LESS-THAN ABOVE SIMILAR ABOVE GREATER-THAN
{"lsqb", 0x0005B}, // LEFT SQUARE BRACKET
{"lsquo", 0x02018}, // LEFT SINGLE QUOTATION MARK
{"lsquor", 0x0201A}, // SINGLE LOW-9 QUOTATION MARK
{"Lstrok", 0x00141}, // LATIN CAPITAL LETTER L WITH STROKE
{"lstrok", 0x00142}, // LATIN SMALL LETTER L WITH STROKE
{"lt", 0x0003C}, // LESS-THAN SIGN
{"LT", 0x0003C}, // LESS-THAN SIGN
{"Lt", 0x0226A}, // MUCH LESS-THAN
{"ltcc", 0x02AA6}, // LESS-THAN CLOSED BY CURVE
{"ltcir", 0x02A79}, // LESS-THAN WITH CIRCLE INSIDE
{"ltdot", 0x022D6}, // LESS-THAN WITH DOT
{"lthree", 0x022CB}, // LEFT SEMIDIRECT PRODUCT
{"ltimes", 0x022C9}, // LEFT NORMAL FACTOR SEMIDIRECT PRODUCT
{"ltlarr", 0x02976}, // LESS-THAN ABOVE LEFTWARDS ARROW
{"ltquest", 0x02A7B}, // LESS-THAN WITH QUESTION MARK ABOVE
{"ltri", 0x025C3}, // WHITE LEFT-POINTING SMALL TRIANGLE
{"ltrie", 0x022B4}, // NORMAL SUBGROUP OF OR EQUAL TO
{"ltrif", 0x025C2}, // BLACK LEFT-POINTING SMALL TRIANGLE
{"ltrPar", 0x02996}, // DOUBLE RIGHT ARC LESS-THAN BRACKET
{"lurdshar", 0x0294A}, // LEFT BARB UP RIGHT BARB DOWN HARPOON
{"luruhar", 0x02966}, // LEFTWARDS HARPOON WITH BARB UP ABOVE RIGHTWARDS HARPOON WITH BARB UP
// "lvertneqq", 0x02268;0x0FE00}, // LESS-THAN BUT NOT EQUAL TO - with vertical stroke
// "lvnE", 0x02268;0x0FE00}, // LESS-THAN BUT NOT EQUAL TO - with vertical stroke
];
immutable NameId[] namesM =
[
{"macr", 0x000AF}, // MACRON
{"male", 0x02642}, // MALE SIGN
{"malt", 0x02720}, // MALTESE CROSS
{"maltese", 0x02720}, // MALTESE CROSS
{"map", 0x021A6}, // RIGHTWARDS ARROW FROM BAR
{"Map", 0x02905}, // RIGHTWARDS TWO-HEADED ARROW FROM BAR
{"mapsto", 0x021A6}, // RIGHTWARDS ARROW FROM BAR
{"mapstodown", 0x021A7}, // DOWNWARDS ARROW FROM BAR
{"mapstoleft", 0x021A4}, // LEFTWARDS ARROW FROM BAR
{"mapstoup", 0x021A5}, // UPWARDS ARROW FROM BAR
{"marker", 0x025AE}, // BLACK VERTICAL RECTANGLE
{"mcomma", 0x02A29}, // MINUS SIGN WITH COMMA ABOVE
{"Mcy", 0x0041C}, // CYRILLIC CAPITAL LETTER EM
{"mcy", 0x0043C}, // CYRILLIC SMALL LETTER EM
{"mdash", 0x02014}, // EM DASH
{"mDDot", 0x0223A}, // GEOMETRIC PROPORTION
{"measuredangle", 0x02221}, // MEASURED ANGLE
{"MediumSpace", 0x0205F}, // MEDIUM MATHEMATICAL SPACE
{"Mellintrf", 0x02133}, // SCRIPT CAPITAL M
{"Mfr", 0x1D510}, // MATHEMATICAL FRAKTUR CAPITAL M
{"mfr", 0x1D52A}, // MATHEMATICAL FRAKTUR SMALL M
{"Mgr", 0x0039C}, // GREEK CAPITAL LETTER MU
{"mgr", 0x003BC}, // GREEK SMALL LETTER MU
{"mho", 0x02127}, // INVERTED OHM SIGN
{"micro", 0x000B5}, // MICRO SIGN
{"mid", 0x02223}, // DIVIDES
{"midast", 0x0002A}, // ASTERISK
{"midcir", 0x02AF0}, // VERTICAL LINE WITH CIRCLE BELOW
{"middot", 0x000B7}, // MIDDLE DOT
{"minus", 0x02212}, // MINUS SIGN
{"minusb", 0x0229F}, // SQUARED MINUS
{"minusd", 0x02238}, // DOT MINUS
{"minusdu", 0x02A2A}, // MINUS SIGN WITH DOT BELOW
{"MinusPlus", 0x02213}, // MINUS-OR-PLUS SIGN
{"mlcp", 0x02ADB}, // TRANSVERSAL INTERSECTION
{"mldr", 0x02026}, // HORIZONTAL ELLIPSIS
{"mnplus", 0x02213}, // MINUS-OR-PLUS SIGN
{"models", 0x022A7}, // MODELS
{"Mopf", 0x1D544}, // MATHEMATICAL DOUBLE-STRUCK CAPITAL M
{"mopf", 0x1D55E}, // MATHEMATICAL DOUBLE-STRUCK SMALL M
{"mp", 0x02213}, // MINUS-OR-PLUS SIGN
{"Mscr", 0x02133}, // SCRIPT CAPITAL M
{"mscr", 0x1D4C2}, // MATHEMATICAL SCRIPT SMALL M
{"mstpos", 0x0223E}, // INVERTED LAZY S
{"Mu", 0x0039C}, // GREEK CAPITAL LETTER MU
{"mu", 0x003BC}, // GREEK SMALL LETTER MU
{"multimap", 0x022B8}, // MULTIMAP
{"mumap", 0x022B8}, // MULTIMAP
];
immutable NameId[] namesN =
[
{"nabla", 0x02207}, // NABLA
{"Nacute", 0x00143}, // LATIN CAPITAL LETTER N WITH ACUTE
{"nacute", 0x00144}, // LATIN SMALL LETTER N WITH ACUTE
// "nang", 0x02220;0x020D2}, // ANGLE with vertical line
{"nap", 0x02249}, // NOT ALMOST EQUAL TO
// "napE", 0x02A70;0x00338}, // APPROXIMATELY EQUAL OR EQUAL TO with slash
// "napid", 0x0224B;0x00338}, // TRIPLE TILDE with slash
{"napos", 0x00149}, // LATIN SMALL LETTER N PRECEDED BY APOSTROPHE
{"napprox", 0x02249}, // NOT ALMOST EQUAL TO
{"natur", 0x0266E}, // MUSIC NATURAL SIGN
{"natural", 0x0266E}, // MUSIC NATURAL SIGN
{"naturals", 0x02115}, // DOUBLE-STRUCK CAPITAL N
{"nbsp", 0x000A0}, // NO-BREAK SPACE
// "nbump", 0x0224E;0x00338}, // GEOMETRICALLY EQUIVALENT TO with slash
// "nbumpe", 0x0224F;0x00338}, // DIFFERENCE BETWEEN with slash
{"ncap", 0x02A43}, // INTERSECTION WITH OVERBAR
{"Ncaron", 0x00147}, // LATIN CAPITAL LETTER N WITH CARON
{"ncaron", 0x00148}, // LATIN SMALL LETTER N WITH CARON
{"Ncedil", 0x00145}, // LATIN CAPITAL LETTER N WITH CEDILLA
{"ncedil", 0x00146}, // LATIN SMALL LETTER N WITH CEDILLA
{"ncong", 0x02247}, // NEITHER APPROXIMATELY NOR ACTUALLY EQUAL TO
// "ncongdot", 0x02A6D;0x00338}, // CONGRUENT WITH DOT ABOVE with slash
{"ncup", 0x02A42}, // UNION WITH OVERBAR
{"Ncy", 0x0041D}, // CYRILLIC CAPITAL LETTER EN
{"ncy", 0x0043D}, // CYRILLIC SMALL LETTER EN
{"ndash", 0x02013}, // EN DASH
{"ne", 0x02260}, // NOT EQUAL TO
{"nearhk", 0x02924}, // NORTH EAST ARROW WITH HOOK
{"nearr", 0x02197}, // NORTH EAST ARROW
{"neArr", 0x021D7}, // NORTH EAST DOUBLE ARROW
{"nearrow", 0x02197}, // NORTH EAST ARROW
// "nedot", 0x02250;0x00338}, // APPROACHES THE LIMIT with slash
{"NegativeMediumSpace", 0x0200B}, // ZERO WIDTH SPACE
{"NegativeThickSpace", 0x0200B}, // ZERO WIDTH SPACE
{"NegativeThinSpace", 0x0200B}, // ZERO WIDTH SPACE
{"NegativeVeryThinSpace", 0x0200B}, // ZERO WIDTH SPACE
{"nequiv", 0x02262}, // NOT IDENTICAL TO
{"nesear", 0x02928}, // NORTH EAST ARROW AND SOUTH EAST ARROW
// "nesim", 0x02242;0x00338}, // MINUS TILDE with slash
{"NestedGreaterGreater", 0x0226B}, // MUCH GREATER-THAN
{"NestedLessLess", 0x0226A}, // MUCH LESS-THAN
{"NewLine", 0x0000A}, // LINE FEED (LF)
{"nexist", 0x02204}, // THERE DOES NOT EXIST
{"nexists", 0x02204}, // THERE DOES NOT EXIST
{"Nfr", 0x1D511}, // MATHEMATICAL FRAKTUR CAPITAL N
{"nfr", 0x1D52B}, // MATHEMATICAL FRAKTUR SMALL N
// "ngE", 0x02267;0x00338}, // GREATER-THAN OVER EQUAL TO with slash
{"nge", 0x02271}, // NEITHER GREATER-THAN NOR EQUAL TO
{"ngeq", 0x02271}, // NEITHER GREATER-THAN NOR EQUAL TO
// "ngeqq", 0x02267;0x00338}, // GREATER-THAN OVER EQUAL TO with slash
// "ngeqslant", 0x02A7E;0x00338}, // GREATER-THAN OR SLANTED EQUAL TO with slash
// "nges", 0x02A7E;0x00338}, // GREATER-THAN OR SLANTED EQUAL TO with slash
// "nGg", 0x022D9;0x00338}, // VERY MUCH GREATER-THAN with slash
{"Ngr", 0x0039D}, // GREEK CAPITAL LETTER NU
{"ngr", 0x003BD}, // GREEK SMALL LETTER NU
{"ngsim", 0x02275}, // NEITHER GREATER-THAN NOR EQUIVALENT TO
// "nGt", 0x0226B;0x020D2}, // MUCH GREATER THAN with vertical line
{"ngt", 0x0226F}, // NOT GREATER-THAN
{"ngtr", 0x0226F}, // NOT GREATER-THAN
// "nGtv", 0x0226B;0x00338}, // MUCH GREATER THAN with slash
{"nharr", 0x021AE}, // LEFT RIGHT ARROW WITH STROKE
{"nhArr", 0x021CE}, // LEFT RIGHT DOUBLE ARROW WITH STROKE
{"nhpar", 0x02AF2}, // PARALLEL WITH HORIZONTAL STROKE
{"ni", 0x0220B}, // CONTAINS AS MEMBER
{"nis", 0x022FC}, // SMALL CONTAINS WITH VERTICAL BAR AT END OF HORIZONTAL STROKE
{"nisd", 0x022FA}, // CONTAINS WITH LONG HORIZONTAL STROKE
{"niv", 0x0220B}, // CONTAINS AS MEMBER
{"NJcy", 0x0040A}, // CYRILLIC CAPITAL LETTER NJE
{"njcy", 0x0045A}, // CYRILLIC SMALL LETTER NJE
{"nlarr", 0x0219A}, // LEFTWARDS ARROW WITH STROKE
{"nlArr", 0x021CD}, // LEFTWARDS DOUBLE ARROW WITH STROKE
{"nldr", 0x02025}, // TWO DOT LEADER
// "nlE", 0x02266;0x00338}, // LESS-THAN OVER EQUAL TO with slash
{"nle", 0x02270}, // NEITHER LESS-THAN NOR EQUAL TO
{"nleftarrow", 0x0219A}, // LEFTWARDS ARROW WITH STROKE
{"nLeftarrow", 0x021CD}, // LEFTWARDS DOUBLE ARROW WITH STROKE
{"nleftrightarrow", 0x021AE}, // LEFT RIGHT ARROW WITH STROKE
{"nLeftrightarrow", 0x021CE}, // LEFT RIGHT DOUBLE ARROW WITH STROKE
{"nleq", 0x02270}, // NEITHER LESS-THAN NOR EQUAL TO
// "nleqq", 0x02266;0x00338}, // LESS-THAN OVER EQUAL TO with slash
// "nleqslant", 0x02A7D;0x00338}, // LESS-THAN OR SLANTED EQUAL TO with slash
// "nles", 0x02A7D;0x00338}, // LESS-THAN OR SLANTED EQUAL TO with slash
{"nless", 0x0226E}, // NOT LESS-THAN
// "nLl", 0x022D8;0x00338}, // VERY MUCH LESS-THAN with slash
{"nlsim", 0x02274}, // NEITHER LESS-THAN NOR EQUIVALENT TO
// "nLt", 0x0226A;0x020D2}, // MUCH LESS THAN with vertical line
{"nlt", 0x0226E}, // NOT LESS-THAN
{"nltri", 0x022EA}, // NOT NORMAL SUBGROUP OF
{"nltrie", 0x022EC}, // NOT NORMAL SUBGROUP OF OR EQUAL TO
// "nLtv", 0x0226A;0x00338}, // MUCH LESS THAN with slash
{"nmid", 0x02224}, // DOES NOT DIVIDE
{"NoBreak", 0x02060}, // WORD JOINER
{"NonBreakingSpace", 0x000A0}, // NO-BREAK SPACE
{"Nopf", 0x02115}, // DOUBLE-STRUCK CAPITAL N
{"nopf", 0x1D55F}, // MATHEMATICAL DOUBLE-STRUCK SMALL N
{"not", 0x000AC}, // NOT SIGN
{"Not", 0x02AEC}, // DOUBLE STROKE NOT SIGN
{"NotCongruent", 0x02262}, // NOT IDENTICAL TO
{"NotCupCap", 0x0226D}, // NOT EQUIVALENT TO
{"NotDoubleVerticalBar", 0x02226}, // NOT PARALLEL TO
{"NotElement", 0x02209}, // NOT AN ELEMENT OF
{"NotEqual", 0x02260}, // NOT EQUAL TO
// "NotEqualTilde", 0x02242;0x00338}, // MINUS TILDE with slash
{"NotExists", 0x02204}, // THERE DOES NOT EXIST
{"NotGreater", 0x0226F}, // NOT GREATER-THAN
{"NotGreaterEqual", 0x02271}, // NEITHER GREATER-THAN NOR EQUAL TO
// "NotGreaterFullEqual", 0x02267;0x00338}, // GREATER-THAN OVER EQUAL TO with slash
// "NotGreaterGreater", 0x0226B;0x00338}, // MUCH GREATER THAN with slash
{"NotGreaterLess", 0x02279}, // NEITHER GREATER-THAN NOR LESS-THAN
// "NotGreaterSlantEqual", 0x02A7E;0x00338}, // GREATER-THAN OR SLANTED EQUAL TO with slash
{"NotGreaterTilde", 0x02275}, // NEITHER GREATER-THAN NOR EQUIVALENT TO
// "NotHumpDownHump", 0x0224E;0x00338}, // GEOMETRICALLY EQUIVALENT TO with slash
// "NotHumpEqual", 0x0224F;0x00338}, // DIFFERENCE BETWEEN with slash
{"notin", 0x02209}, // NOT AN ELEMENT OF
// "notindot", 0x022F5;0x00338}, // ELEMENT OF WITH DOT ABOVE with slash
// "notinE", 0x022F9;0x00338}, // ELEMENT OF WITH TWO HORIZONTAL STROKES with slash
{"notinva", 0x02209}, // NOT AN ELEMENT OF
{"notinvb", 0x022F7}, // SMALL ELEMENT OF WITH OVERBAR
{"notinvc", 0x022F6}, // ELEMENT OF WITH OVERBAR
{"NotLeftTriangle", 0x022EA}, // NOT NORMAL SUBGROUP OF
// "NotLeftTriangleBar", 0x029CF;0x00338}, // LEFT TRIANGLE BESIDE VERTICAL BAR with slash
{"NotLeftTriangleEqual", 0x022EC}, // NOT NORMAL SUBGROUP OF OR EQUAL TO
{"NotLess", 0x0226E}, // NOT LESS-THAN
{"NotLessEqual", 0x02270}, // NEITHER LESS-THAN NOR EQUAL TO
{"NotLessGreater", 0x02278}, // NEITHER LESS-THAN NOR GREATER-THAN
// "NotLessLess", 0x0226A;0x00338}, // MUCH LESS THAN with slash
// "NotLessSlantEqual", 0x02A7D;0x00338}, // LESS-THAN OR SLANTED EQUAL TO with slash
{"NotLessTilde", 0x02274}, // NEITHER LESS-THAN NOR EQUIVALENT TO
// "NotNestedGreaterGreater", 0x02AA2;0x00338}, // DOUBLE NESTED GREATER-THAN with slash
// "NotNestedLessLess", 0x02AA1;0x00338}, // DOUBLE NESTED LESS-THAN with slash
{"notni", 0x0220C}, // DOES NOT CONTAIN AS MEMBER
{"notniva", 0x0220C}, // DOES NOT CONTAIN AS MEMBER
{"notnivb", 0x022FE}, // SMALL CONTAINS WITH OVERBAR
{"notnivc", 0x022FD}, // CONTAINS WITH OVERBAR
{"NotPrecedes", 0x02280}, // DOES NOT PRECEDE
// "NotPrecedesEqual", 0x02AAF;0x00338}, // PRECEDES ABOVE SINGLE-LINE EQUALS SIGN with slash
{"NotPrecedesSlantEqual", 0x022E0}, // DOES NOT PRECEDE OR EQUAL
{"NotReverseElement", 0x0220C}, // DOES NOT CONTAIN AS MEMBER
{"NotRightTriangle", 0x022EB}, // DOES NOT CONTAIN AS NORMAL SUBGROUP
// "NotRightTriangleBar", 0x029D0;0x00338}, // VERTICAL BAR BESIDE RIGHT TRIANGLE with slash
{"NotRightTriangleEqual", 0x022ED}, // DOES NOT CONTAIN AS NORMAL SUBGROUP OR EQUAL
// "NotSquareSubset", 0x0228F;0x00338}, // SQUARE IMAGE OF with slash
{"NotSquareSubsetEqual", 0x022E2}, // NOT SQUARE IMAGE OF OR EQUAL TO
// "NotSquareSuperset", 0x02290;0x00338}, // SQUARE ORIGINAL OF with slash
{"NotSquareSupersetEqual", 0x022E3}, // NOT SQUARE ORIGINAL OF OR EQUAL TO
// "NotSubset", 0x02282;0x020D2}, // SUBSET OF with vertical line
{"NotSubsetEqual", 0x02288}, // NEITHER A SUBSET OF NOR EQUAL TO
{"NotSucceeds", 0x02281}, // DOES NOT SUCCEED
// "NotSucceedsEqual", 0x02AB0;0x00338}, // SUCCEEDS ABOVE SINGLE-LINE EQUALS SIGN with slash
{"NotSucceedsSlantEqual", 0x022E1}, // DOES NOT SUCCEED OR EQUAL
// "NotSucceedsTilde", 0x0227F;0x00338}, // SUCCEEDS OR EQUIVALENT TO with slash
// "NotSuperset", 0x02283;0x020D2}, // SUPERSET OF with vertical line
{"NotSupersetEqual", 0x02289}, // NEITHER A SUPERSET OF NOR EQUAL TO
{"NotTilde", 0x02241}, // NOT TILDE
{"NotTildeEqual", 0x02244}, // NOT ASYMPTOTICALLY EQUAL TO
{"NotTildeFullEqual", 0x02247}, // NEITHER APPROXIMATELY NOR ACTUALLY EQUAL TO
{"NotTildeTilde", 0x02249}, // NOT ALMOST EQUAL TO
{"NotVerticalBar", 0x02224}, // DOES NOT DIVIDE
{"npar", 0x02226}, // NOT PARALLEL TO
{"nparallel", 0x02226}, // NOT PARALLEL TO
// "nparsl", 0x02AFD;0x020E5}, // DOUBLE SOLIDUS OPERATOR with reverse slash
// "npart", 0x02202;0x00338}, // PARTIAL DIFFERENTIAL with slash
{"npolint", 0x02A14}, // LINE INTEGRATION NOT INCLUDING THE POLE
{"npr", 0x02280}, // DOES NOT PRECEDE
{"nprcue", 0x022E0}, // DOES NOT PRECEDE OR EQUAL
// "npre", 0x02AAF;0x00338}, // PRECEDES ABOVE SINGLE-LINE EQUALS SIGN with slash
{"nprec", 0x02280}, // DOES NOT PRECEDE
// "npreceq", 0x02AAF;0x00338}, // PRECEDES ABOVE SINGLE-LINE EQUALS SIGN with slash
{"nrarr", 0x0219B}, // RIGHTWARDS ARROW WITH STROKE
{"nrArr", 0x021CF}, // RIGHTWARDS DOUBLE ARROW WITH STROKE
// "nrarrc", 0x02933;0x00338}, // WAVE ARROW POINTING DIRECTLY RIGHT with slash
// "nrarrw", 0x0219D;0x00338}, // RIGHTWARDS WAVE ARROW with slash
{"nrightarrow", 0x0219B}, // RIGHTWARDS ARROW WITH STROKE
{"nRightarrow", 0x021CF}, // RIGHTWARDS DOUBLE ARROW WITH STROKE
{"nrtri", 0x022EB}, // DOES NOT CONTAIN AS NORMAL SUBGROUP
{"nrtrie", 0x022ED}, // DOES NOT CONTAIN AS NORMAL SUBGROUP OR EQUAL
{"nsc", 0x02281}, // DOES NOT SUCCEED
{"nsccue", 0x022E1}, // DOES NOT SUCCEED OR EQUAL
// "nsce", 0x02AB0;0x00338}, // SUCCEEDS ABOVE SINGLE-LINE EQUALS SIGN with slash
{"Nscr", 0x1D4A9}, // MATHEMATICAL SCRIPT CAPITAL N
{"nscr", 0x1D4C3}, // MATHEMATICAL SCRIPT SMALL N
{"nshortmid", 0x02224}, // DOES NOT DIVIDE
{"nshortparallel", 0x02226}, // NOT PARALLEL TO
{"nsim", 0x02241}, // NOT TILDE
{"nsime", 0x02244}, // NOT ASYMPTOTICALLY EQUAL TO
{"nsimeq", 0x02244}, // NOT ASYMPTOTICALLY EQUAL TO
{"nsmid", 0x02224}, // DOES NOT DIVIDE
{"nspar", 0x02226}, // NOT PARALLEL TO
{"nsqsube", 0x022E2}, // NOT SQUARE IMAGE OF OR EQUAL TO
{"nsqsupe", 0x022E3}, // NOT SQUARE ORIGINAL OF OR EQUAL TO
{"nsub", 0x02284}, // NOT A SUBSET OF
{"nsube", 0x02288}, // NEITHER A SUBSET OF NOR EQUAL TO
// "nsubE", 0x02AC5;0x00338}, // SUBSET OF ABOVE EQUALS SIGN with slash
// "nsubset", 0x02282;0x020D2}, // SUBSET OF with vertical line
{"nsubseteq", 0x02288}, // NEITHER A SUBSET OF NOR EQUAL TO
// "nsubseteqq", 0x02AC5;0x00338}, // SUBSET OF ABOVE EQUALS SIGN with slash
{"nsucc", 0x02281}, // DOES NOT SUCCEED
// "nsucceq", 0x02AB0;0x00338}, // SUCCEEDS ABOVE SINGLE-LINE EQUALS SIGN with slash
{"nsup", 0x02285}, // NOT A SUPERSET OF
{"nsupe", 0x02289}, // NEITHER A SUPERSET OF NOR EQUAL TO
// "nsupE", 0x02AC6;0x00338}, // SUPERSET OF ABOVE EQUALS SIGN with slash
// "nsupset", 0x02283;0x020D2}, // SUPERSET OF with vertical line
{"nsupseteq", 0x02289}, // NEITHER A SUPERSET OF NOR EQUAL TO
// "nsupseteqq", 0x02AC6;0x00338}, // SUPERSET OF ABOVE EQUALS SIGN with slash
{"ntgl", 0x02279}, // NEITHER GREATER-THAN NOR LESS-THAN
{"Ntilde", 0x000D1}, // LATIN CAPITAL LETTER N WITH TILDE
{"ntilde", 0x000F1}, // LATIN SMALL LETTER N WITH TILDE
{"ntlg", 0x02278}, // NEITHER LESS-THAN NOR GREATER-THAN
{"ntriangleleft", 0x022EA}, // NOT NORMAL SUBGROUP OF
{"ntrianglelefteq", 0x022EC}, // NOT NORMAL SUBGROUP OF OR EQUAL TO
{"ntriangleright", 0x022EB}, // DOES NOT CONTAIN AS NORMAL SUBGROUP
{"ntrianglerighteq", 0x022ED}, // DOES NOT CONTAIN AS NORMAL SUBGROUP OR EQUAL
{"Nu", 0x0039D}, // GREEK CAPITAL LETTER NU
{"nu", 0x003BD}, // GREEK SMALL LETTER NU
{"num", 0x00023}, // NUMBER SIGN
{"numero", 0x02116}, // NUMERO SIGN
{"numsp", 0x02007}, // FIGURE SPACE
// "nvap", 0x0224D;0x020D2}, // EQUIVALENT TO with vertical line
{"nvdash", 0x022AC}, // DOES NOT PROVE
{"nvDash", 0x022AD}, // NOT TRUE
{"nVdash", 0x022AE}, // DOES NOT FORCE
{"nVDash", 0x022AF}, // NEGATED DOUBLE VERTICAL BAR DOUBLE RIGHT TURNSTILE
// "nvge", 0x02265;0x020D2}, // GREATER-THAN OR EQUAL TO with vertical line
// "nvgt", 0x0003E;0x020D2}, // GREATER-THAN SIGN with vertical line
{"nvHarr", 0x02904}, // LEFT RIGHT DOUBLE ARROW WITH VERTICAL STROKE
{"nvinfin", 0x029DE}, // INFINITY NEGATED WITH VERTICAL BAR
{"nvlArr", 0x02902}, // LEFTWARDS DOUBLE ARROW WITH VERTICAL STROKE
// "nvle", 0x02264;0x020D2}, // LESS-THAN OR EQUAL TO with vertical line
// "nvlt", 0x0003C;0x020D2}, // LESS-THAN SIGN with vertical line
// "nvltrie", 0x022B4;0x020D2}, // NORMAL SUBGROUP OF OR EQUAL TO with vertical line
{"nvrArr", 0x02903}, // RIGHTWARDS DOUBLE ARROW WITH VERTICAL STROKE
// "nvrtrie", 0x022B5;0x020D2}, // CONTAINS AS NORMAL SUBGROUP OR EQUAL TO with vertical line
// "nvsim", 0x0223C;0x020D2}, // TILDE OPERATOR with vertical line
{"nwarhk", 0x02923}, // NORTH WEST ARROW WITH HOOK
{"nwarr", 0x02196}, // NORTH WEST ARROW
{"nwArr", 0x021D6}, // NORTH WEST DOUBLE ARROW
{"nwarrow", 0x02196}, // NORTH WEST ARROW
{"nwnear", 0x02927}, // NORTH WEST ARROW AND NORTH EAST ARROW
];
immutable NameId[] namesO =
[
{"Oacgr", 0x0038C}, // GREEK CAPITAL LETTER OMICRON WITH TONOS
{"oacgr", 0x003CC}, // GREEK SMALL LETTER OMICRON WITH TONOS
{"Oacute", 0x000D3}, // LATIN CAPITAL LETTER O WITH ACUTE
{"oacute", 0x000F3}, // LATIN SMALL LETTER O WITH ACUTE
{"oast", 0x0229B}, // CIRCLED ASTERISK OPERATOR
{"ocir", 0x0229A}, // CIRCLED RING OPERATOR
{"Ocirc", 0x000D4}, // LATIN CAPITAL LETTER O WITH CIRCUMFLEX
{"ocirc", 0x000F4}, // LATIN SMALL LETTER O WITH CIRCUMFLEX
{"Ocy", 0x0041E}, // CYRILLIC CAPITAL LETTER O
{"ocy", 0x0043E}, // CYRILLIC SMALL LETTER O
{"odash", 0x0229D}, // CIRCLED DASH
{"Odblac", 0x00150}, // LATIN CAPITAL LETTER O WITH DOUBLE ACUTE
{"odblac", 0x00151}, // LATIN SMALL LETTER O WITH DOUBLE ACUTE
{"odiv", 0x02A38}, // CIRCLED DIVISION SIGN
{"odot", 0x02299}, // CIRCLED DOT OPERATOR
{"odsold", 0x029BC}, // CIRCLED ANTICLOCKWISE-ROTATED DIVISION SIGN
{"OElig", 0x00152}, // LATIN CAPITAL LIGATURE OE
{"oelig", 0x00153}, // LATIN SMALL LIGATURE OE
{"ofcir", 0x029BF}, // CIRCLED BULLET
{"Ofr", 0x1D512}, // MATHEMATICAL FRAKTUR CAPITAL O
{"ofr", 0x1D52C}, // MATHEMATICAL FRAKTUR SMALL O
{"ogon", 0x002DB}, // OGONEK
{"Ogr", 0x0039F}, // GREEK CAPITAL LETTER OMICRON
{"ogr", 0x003BF}, // GREEK SMALL LETTER OMICRON
{"Ograve", 0x000D2}, // LATIN CAPITAL LETTER O WITH GRAVE
{"ograve", 0x000F2}, // LATIN SMALL LETTER O WITH GRAVE
{"ogt", 0x029C1}, // CIRCLED GREATER-THAN
{"OHacgr", 0x0038F}, // GREEK CAPITAL LETTER OMEGA WITH TONOS
{"ohacgr", 0x003CE}, // GREEK SMALL LETTER OMEGA WITH TONOS
{"ohbar", 0x029B5}, // CIRCLE WITH HORIZONTAL BAR
{"OHgr", 0x003A9}, // GREEK CAPITAL LETTER OMEGA
{"ohgr", 0x003C9}, // GREEK SMALL LETTER OMEGA
{"ohm", 0x003A9}, // GREEK CAPITAL LETTER OMEGA
{"oint", 0x0222E}, // CONTOUR INTEGRAL
{"olarr", 0x021BA}, // ANTICLOCKWISE OPEN CIRCLE ARROW
{"olcir", 0x029BE}, // CIRCLED WHITE BULLET
{"olcross", 0x029BB}, // CIRCLE WITH SUPERIMPOSED X
{"oline", 0x0203E}, // OVERLINE
{"olt", 0x029C0}, // CIRCLED LESS-THAN
{"Omacr", 0x0014C}, // LATIN CAPITAL LETTER O WITH MACRON
{"omacr", 0x0014D}, // LATIN SMALL LETTER O WITH MACRON
{"Omega", 0x003A9}, // GREEK CAPITAL LETTER OMEGA
{"omega", 0x003C9}, // GREEK SMALL LETTER OMEGA
{"Omicron", 0x0039F}, // GREEK CAPITAL LETTER OMICRON
{"omicron", 0x003BF}, // GREEK SMALL LETTER OMICRON
{"omid", 0x029B6}, // CIRCLED VERTICAL BAR
{"ominus", 0x02296}, // CIRCLED MINUS
{"Oopf", 0x1D546}, // MATHEMATICAL DOUBLE-STRUCK CAPITAL O
{"oopf", 0x1D560}, // MATHEMATICAL DOUBLE-STRUCK SMALL O
{"opar", 0x029B7}, // CIRCLED PARALLEL
{"OpenCurlyDoubleQuote", 0x0201C}, // LEFT DOUBLE QUOTATION MARK
{"OpenCurlyQuote", 0x02018}, // LEFT SINGLE QUOTATION MARK
{"operp", 0x029B9}, // CIRCLED PERPENDICULAR
{"oplus", 0x02295}, // CIRCLED PLUS
{"or", 0x02228}, // LOGICAL OR
{"Or", 0x02A54}, // DOUBLE LOGICAL OR
{"orarr", 0x021BB}, // CLOCKWISE OPEN CIRCLE ARROW
{"ord", 0x02A5D}, // LOGICAL OR WITH HORIZONTAL DASH
{"order", 0x02134}, // SCRIPT SMALL O
{"orderof", 0x02134}, // SCRIPT SMALL O
{"ordf", 0x000AA}, // FEMININE ORDINAL INDICATOR
{"ordm", 0x000BA}, // MASCULINE ORDINAL INDICATOR
{"origof", 0x022B6}, // ORIGINAL OF
{"oror", 0x02A56}, // TWO INTERSECTING LOGICAL OR
{"orslope", 0x02A57}, // SLOPING LARGE OR
{"orv", 0x02A5B}, // LOGICAL OR WITH MIDDLE STEM
{"oS", 0x024C8}, // CIRCLED LATIN CAPITAL LETTER S
{"oscr", 0x02134}, // SCRIPT SMALL O
{"Oscr", 0x1D4AA}, // MATHEMATICAL SCRIPT CAPITAL O
{"Oslash", 0x000D8}, // LATIN CAPITAL LETTER O WITH STROKE
{"oslash", 0x000F8}, // LATIN SMALL LETTER O WITH STROKE
{"osol", 0x02298}, // CIRCLED DIVISION SLASH
{"Otilde", 0x000D5}, // LATIN CAPITAL LETTER O WITH TILDE
{"otilde", 0x000F5}, // LATIN SMALL LETTER O WITH TILDE
{"otimes", 0x02297}, // CIRCLED TIMES
{"Otimes", 0x02A37}, // MULTIPLICATION SIGN IN DOUBLE CIRCLE
{"otimesas", 0x02A36}, // CIRCLED MULTIPLICATION SIGN WITH CIRCUMFLEX ACCENT
{"Ouml", 0x000D6}, // LATIN CAPITAL LETTER O WITH DIAERESIS
{"ouml", 0x000F6}, // LATIN SMALL LETTER O WITH DIAERESIS
{"ovbar", 0x0233D}, // APL FUNCTIONAL SYMBOL CIRCLE STILE
{"OverBar", 0x0203E}, // OVERLINE
{"OverBrace", 0x023DE}, // TOP CURLY BRACKET
{"OverBracket", 0x023B4}, // TOP SQUARE BRACKET
{"OverParenthesis", 0x023DC}, // TOP PARENTHESIS
];
immutable NameId[] namesP =
[
{"par", 0x02225}, // PARALLEL TO
{"para", 0x000B6}, // PILCROW SIGN
{"parallel", 0x02225}, // PARALLEL TO
{"parsim", 0x02AF3}, // PARALLEL WITH TILDE OPERATOR
{"parsl", 0x02AFD}, // DOUBLE SOLIDUS OPERATOR
{"part", 0x02202}, // PARTIAL DIFFERENTIAL
{"PartialD", 0x02202}, // PARTIAL DIFFERENTIAL
{"Pcy", 0x0041F}, // CYRILLIC CAPITAL LETTER PE
{"pcy", 0x0043F}, // CYRILLIC SMALL LETTER PE
{"percnt", 0x00025}, // PERCENT SIGN
{"period", 0x0002E}, // FULL STOP
{"permil", 0x02030}, // PER MILLE SIGN
{"perp", 0x022A5}, // UP TACK
{"pertenk", 0x02031}, // PER TEN THOUSAND SIGN
{"Pfr", 0x1D513}, // MATHEMATICAL FRAKTUR CAPITAL P
{"pfr", 0x1D52D}, // MATHEMATICAL FRAKTUR SMALL P
{"Pgr", 0x003A0}, // GREEK CAPITAL LETTER PI
{"pgr", 0x003C0}, // GREEK SMALL LETTER PI
{"PHgr", 0x003A6}, // GREEK CAPITAL LETTER PHI
{"phgr", 0x003C6}, // GREEK SMALL LETTER PHI
{"Phi", 0x003A6}, // GREEK CAPITAL LETTER PHI
{"phi", 0x003C6}, // GREEK SMALL LETTER PHI
{"phiv", 0x003D5}, // GREEK PHI SYMBOL
{"phmmat", 0x02133}, // SCRIPT CAPITAL M
{"phone", 0x0260E}, // BLACK TELEPHONE
{"Pi", 0x003A0}, // GREEK CAPITAL LETTER PI
{"pi", 0x003C0}, // GREEK SMALL LETTER PI
{"pitchfork", 0x022D4}, // PITCHFORK
{"piv", 0x003D6}, // GREEK PI SYMBOL
{"planck", 0x0210F}, // PLANCK CONSTANT OVER TWO PI
{"planckh", 0x0210E}, // PLANCK CONSTANT
{"plankv", 0x0210F}, // PLANCK CONSTANT OVER TWO PI
{"plus", 0x0002B}, // PLUS SIGN
{"plusacir", 0x02A23}, // PLUS SIGN WITH CIRCUMFLEX ACCENT ABOVE
{"plusb", 0x0229E}, // SQUARED PLUS
{"pluscir", 0x02A22}, // PLUS SIGN WITH SMALL CIRCLE ABOVE
{"plusdo", 0x02214}, // DOT PLUS
{"plusdu", 0x02A25}, // PLUS SIGN WITH DOT BELOW
{"pluse", 0x02A72}, // PLUS SIGN ABOVE EQUALS SIGN
{"PlusMinus", 0x000B1}, // PLUS-MINUS SIGN
{"plusmn", 0x000B1}, // PLUS-MINUS SIGN
{"plussim", 0x02A26}, // PLUS SIGN WITH TILDE BELOW
{"plustwo", 0x02A27}, // PLUS SIGN WITH SUBSCRIPT TWO
{"pm", 0x000B1}, // PLUS-MINUS SIGN
{"Poincareplane", 0x0210C}, // BLACK-LETTER CAPITAL H
{"pointint", 0x02A15}, // INTEGRAL AROUND A POINT OPERATOR
{"Popf", 0x02119}, // DOUBLE-STRUCK CAPITAL P
{"popf", 0x1D561}, // MATHEMATICAL DOUBLE-STRUCK SMALL P
{"pound", 0x000A3}, // POUND SIGN
{"pr", 0x0227A}, // PRECEDES
{"Pr", 0x02ABB}, // DOUBLE PRECEDES
{"prap", 0x02AB7}, // PRECEDES ABOVE ALMOST EQUAL TO
{"prcue", 0x0227C}, // PRECEDES OR EQUAL TO
{"pre", 0x02AAF}, // PRECEDES ABOVE SINGLE-LINE EQUALS SIGN
{"prE", 0x02AB3}, // PRECEDES ABOVE EQUALS SIGN
{"prec", 0x0227A}, // PRECEDES
{"precapprox", 0x02AB7}, // PRECEDES ABOVE ALMOST EQUAL TO
{"preccurlyeq", 0x0227C}, // PRECEDES OR EQUAL TO
{"Precedes", 0x0227A}, // PRECEDES
{"PrecedesEqual", 0x02AAF}, // PRECEDES ABOVE SINGLE-LINE EQUALS SIGN
{"PrecedesSlantEqual", 0x0227C}, // PRECEDES OR EQUAL TO
{"PrecedesTilde", 0x0227E}, // PRECEDES OR EQUIVALENT TO
{"preceq", 0x02AAF}, // PRECEDES ABOVE SINGLE-LINE EQUALS SIGN
{"precnapprox", 0x02AB9}, // PRECEDES ABOVE NOT ALMOST EQUAL TO
{"precneqq", 0x02AB5}, // PRECEDES ABOVE NOT EQUAL TO
{"precnsim", 0x022E8}, // PRECEDES BUT NOT EQUIVALENT TO
{"precsim", 0x0227E}, // PRECEDES OR EQUIVALENT TO
{"prime", 0x02032}, // PRIME
{"Prime", 0x02033}, // DOUBLE PRIME
{"primes", 0x02119}, // DOUBLE-STRUCK CAPITAL P
{"prnap", 0x02AB9}, // PRECEDES ABOVE NOT ALMOST EQUAL TO
{"prnE", 0x02AB5}, // PRECEDES ABOVE NOT EQUAL TO
{"prnsim", 0x022E8}, // PRECEDES BUT NOT EQUIVALENT TO
{"prod", 0x0220F}, // N-ARY PRODUCT
{"Product", 0x0220F}, // N-ARY PRODUCT
{"profalar", 0x0232E}, // ALL AROUND-PROFILE
{"profline", 0x02312}, // ARC
{"profsurf", 0x02313}, // SEGMENT
{"prop", 0x0221D}, // PROPORTIONAL TO
{"Proportion", 0x02237}, // PROPORTION
{"Proportional", 0x0221D}, // PROPORTIONAL TO
{"propto", 0x0221D}, // PROPORTIONAL TO
{"prsim", 0x0227E}, // PRECEDES OR EQUIVALENT TO
{"prurel", 0x022B0}, // PRECEDES UNDER RELATION
{"Pscr", 0x1D4AB}, // MATHEMATICAL SCRIPT CAPITAL P
{"pscr", 0x1D4C5}, // MATHEMATICAL SCRIPT SMALL P
{"PSgr", 0x003A8}, // GREEK CAPITAL LETTER PSI
{"psgr", 0x003C8}, // GREEK SMALL LETTER PSI
{"Psi", 0x003A8}, // GREEK CAPITAL LETTER PSI
{"psi", 0x003C8}, // GREEK SMALL LETTER PSI
{"puncsp", 0x02008}, // PUNCTUATION SPACE
];
immutable NameId[] namesQ =
[
{"Qfr", 0x1D514}, // MATHEMATICAL FRAKTUR CAPITAL Q
{"qfr", 0x1D52E}, // MATHEMATICAL FRAKTUR SMALL Q
{"qint", 0x02A0C}, // QUADRUPLE INTEGRAL OPERATOR
{"Qopf", 0x0211A}, // DOUBLE-STRUCK CAPITAL Q
{"qopf", 0x1D562}, // MATHEMATICAL DOUBLE-STRUCK SMALL Q
{"qprime", 0x02057}, // QUADRUPLE PRIME
{"Qscr", 0x1D4AC}, // MATHEMATICAL SCRIPT CAPITAL Q
{"qscr", 0x1D4C6}, // MATHEMATICAL SCRIPT SMALL Q
{"quaternions", 0x0210D}, // DOUBLE-STRUCK CAPITAL H
{"quatint", 0x02A16}, // QUATERNION INTEGRAL OPERATOR
{"quest", 0x0003F}, // QUESTION MARK
{"questeq", 0x0225F}, // QUESTIONED EQUAL TO
{"quot", 0x00022}, // QUOTATION MARK
{"QUOT", 0x00022}, // QUOTATION MARK
];
immutable NameId[] namesR =
[
{"rAarr", 0x021DB}, // RIGHTWARDS TRIPLE ARROW
// "race", 0x0223D;0x00331}, // REVERSED TILDE with underline
{"Racute", 0x00154}, // LATIN CAPITAL LETTER R WITH ACUTE
{"racute", 0x00155}, // LATIN SMALL LETTER R WITH ACUTE
{"radic", 0x0221A}, // SQUARE ROOT
{"raemptyv", 0x029B3}, // EMPTY SET WITH RIGHT ARROW ABOVE
{"rang", 0x027E9}, // MATHEMATICAL RIGHT ANGLE BRACKET
{"Rang", 0x027EB}, // MATHEMATICAL RIGHT DOUBLE ANGLE BRACKET
{"rangd", 0x02992}, // RIGHT ANGLE BRACKET WITH DOT
{"range", 0x029A5}, // REVERSED ANGLE WITH UNDERBAR
{"rangle", 0x027E9}, // MATHEMATICAL RIGHT ANGLE BRACKET
{"raquo", 0x000BB}, // RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK
{"rarr", 0x02192}, // RIGHTWARDS ARROW
{"Rarr", 0x021A0}, // RIGHTWARDS TWO HEADED ARROW
{"rArr", 0x021D2}, // RIGHTWARDS DOUBLE ARROW
{"rarrap", 0x02975}, // RIGHTWARDS ARROW ABOVE ALMOST EQUAL TO
{"rarrb", 0x021E5}, // RIGHTWARDS ARROW TO BAR
{"rarrbfs", 0x02920}, // RIGHTWARDS ARROW FROM BAR TO BLACK DIAMOND
{"rarrc", 0x02933}, // WAVE ARROW POINTING DIRECTLY RIGHT
{"rarrfs", 0x0291E}, // RIGHTWARDS ARROW TO BLACK DIAMOND
{"rarrhk", 0x021AA}, // RIGHTWARDS ARROW WITH HOOK
{"rarrlp", 0x021AC}, // RIGHTWARDS ARROW WITH LOOP
{"rarrpl", 0x02945}, // RIGHTWARDS ARROW WITH PLUS BELOW
{"rarrsim", 0x02974}, // RIGHTWARDS ARROW ABOVE TILDE OPERATOR
{"rarrtl", 0x021A3}, // RIGHTWARDS ARROW WITH TAIL
{"Rarrtl", 0x02916}, // RIGHTWARDS TWO-HEADED ARROW WITH TAIL
{"rarrw", 0x0219D}, // RIGHTWARDS WAVE ARROW
{"ratail", 0x0291A}, // RIGHTWARDS ARROW-TAIL
{"rAtail", 0x0291C}, // RIGHTWARDS DOUBLE ARROW-TAIL
{"ratio", 0x02236}, // RATIO
{"rationals", 0x0211A}, // DOUBLE-STRUCK CAPITAL Q
{"rbarr", 0x0290D}, // RIGHTWARDS DOUBLE DASH ARROW
{"rBarr", 0x0290F}, // RIGHTWARDS TRIPLE DASH ARROW
{"RBarr", 0x02910}, // RIGHTWARDS TWO-HEADED TRIPLE DASH ARROW
{"rbbrk", 0x02773}, // LIGHT RIGHT TORTOISE SHELL BRACKET ORNAMENT
{"rbrace", 0x0007D}, // RIGHT CURLY BRACKET
{"rbrack", 0x0005D}, // RIGHT SQUARE BRACKET
{"rbrke", 0x0298C}, // RIGHT SQUARE BRACKET WITH UNDERBAR
{"rbrksld", 0x0298E}, // RIGHT SQUARE BRACKET WITH TICK IN BOTTOM CORNER
{"rbrkslu", 0x02990}, // RIGHT SQUARE BRACKET WITH TICK IN TOP CORNER
{"Rcaron", 0x00158}, // LATIN CAPITAL LETTER R WITH CARON
{"rcaron", 0x00159}, // LATIN SMALL LETTER R WITH CARON
{"Rcedil", 0x00156}, // LATIN CAPITAL LETTER R WITH CEDILLA
{"rcedil", 0x00157}, // LATIN SMALL LETTER R WITH CEDILLA
{"rceil", 0x02309}, // RIGHT CEILING
{"rcub", 0x0007D}, // RIGHT CURLY BRACKET
{"Rcy", 0x00420}, // CYRILLIC CAPITAL LETTER ER
{"rcy", 0x00440}, // CYRILLIC SMALL LETTER ER
{"rdca", 0x02937}, // ARROW POINTING DOWNWARDS THEN CURVING RIGHTWARDS
{"rdldhar", 0x02969}, // RIGHTWARDS HARPOON WITH BARB DOWN ABOVE LEFTWARDS HARPOON WITH BARB DOWN
{"rdquo", 0x0201D}, // RIGHT DOUBLE QUOTATION MARK
{"rdquor", 0x0201D}, // RIGHT DOUBLE QUOTATION MARK
{"rdsh", 0x021B3}, // DOWNWARDS ARROW WITH TIP RIGHTWARDS
{"Re", 0x0211C}, // BLACK-LETTER CAPITAL R
{"real", 0x0211C}, // BLACK-LETTER CAPITAL R
{"realine", 0x0211B}, // SCRIPT CAPITAL R
{"realpart", 0x0211C}, // BLACK-LETTER CAPITAL R
{"reals", 0x0211D}, // DOUBLE-STRUCK CAPITAL R
{"rect", 0x025AD}, // WHITE RECTANGLE
{"reg", 0x000AE}, // REGISTERED SIGN
{"REG", 0x000AE}, // REGISTERED SIGN
{"ReverseElement", 0x0220B}, // CONTAINS AS MEMBER
{"ReverseEquilibrium", 0x021CB}, // LEFTWARDS HARPOON OVER RIGHTWARDS HARPOON
{"ReverseUpEquilibrium", 0x0296F}, // DOWNWARDS HARPOON WITH BARB LEFT BESIDE UPWARDS HARPOON WITH BARB RIGHT
{"rfisht", 0x0297D}, // RIGHT FISH TAIL
{"rfloor", 0x0230B}, // RIGHT FLOOR
{"Rfr", 0x0211C}, // BLACK-LETTER CAPITAL R
{"rfr", 0x1D52F}, // MATHEMATICAL FRAKTUR SMALL R
{"Rgr", 0x003A1}, // GREEK CAPITAL LETTER RHO
{"rgr", 0x003C1}, // GREEK SMALL LETTER RHO
{"rHar", 0x02964}, // RIGHTWARDS HARPOON WITH BARB UP ABOVE RIGHTWARDS HARPOON WITH BARB DOWN
{"rhard", 0x021C1}, // RIGHTWARDS HARPOON WITH BARB DOWNWARDS
{"rharu", 0x021C0}, // RIGHTWARDS HARPOON WITH BARB UPWARDS
{"rharul", 0x0296C}, // RIGHTWARDS HARPOON WITH BARB UP ABOVE LONG DASH
{"Rho", 0x003A1}, // GREEK CAPITAL LETTER RHO
{"rho", 0x003C1}, // GREEK SMALL LETTER RHO
{"rhov", 0x003F1}, // GREEK RHO SYMBOL
{"RightAngleBracket", 0x027E9}, // MATHEMATICAL RIGHT ANGLE BRACKET
{"rightarrow", 0x02192}, // RIGHTWARDS ARROW
{"RightArrow", 0x02192}, // RIGHTWARDS ARROW
{"Rightarrow", 0x021D2}, // RIGHTWARDS DOUBLE ARROW
{"RightArrowBar", 0x021E5}, // RIGHTWARDS ARROW TO BAR
{"RightArrowLeftArrow", 0x021C4}, // RIGHTWARDS ARROW OVER LEFTWARDS ARROW
{"rightarrowtail", 0x021A3}, // RIGHTWARDS ARROW WITH TAIL
{"RightCeiling", 0x02309}, // RIGHT CEILING
{"RightDoubleBracket", 0x027E7}, // MATHEMATICAL RIGHT WHITE SQUARE BRACKET
{"RightDownTeeVector", 0x0295D}, // DOWNWARDS HARPOON WITH BARB RIGHT FROM BAR
{"RightDownVector", 0x021C2}, // DOWNWARDS HARPOON WITH BARB RIGHTWARDS
{"RightDownVectorBar", 0x02955}, // DOWNWARDS HARPOON WITH BARB RIGHT TO BAR
{"RightFloor", 0x0230B}, // RIGHT FLOOR
{"rightharpoondown", 0x021C1}, // RIGHTWARDS HARPOON WITH BARB DOWNWARDS
{"rightharpoonup", 0x021C0}, // RIGHTWARDS HARPOON WITH BARB UPWARDS
{"rightleftarrows", 0x021C4}, // RIGHTWARDS ARROW OVER LEFTWARDS ARROW
{"rightleftharpoons", 0x021CC}, // RIGHTWARDS HARPOON OVER LEFTWARDS HARPOON
{"rightrightarrows", 0x021C9}, // RIGHTWARDS PAIRED ARROWS
{"rightsquigarrow", 0x0219D}, // RIGHTWARDS WAVE ARROW
{"RightTee", 0x022A2}, // RIGHT TACK
{"RightTeeArrow", 0x021A6}, // RIGHTWARDS ARROW FROM BAR
{"RightTeeVector", 0x0295B}, // RIGHTWARDS HARPOON WITH BARB UP FROM BAR
{"rightthreetimes", 0x022CC}, // RIGHT SEMIDIRECT PRODUCT
{"RightTriangle", 0x022B3}, // CONTAINS AS NORMAL SUBGROUP
{"RightTriangleBar", 0x029D0}, // VERTICAL BAR BESIDE RIGHT TRIANGLE
{"RightTriangleEqual", 0x022B5}, // CONTAINS AS NORMAL SUBGROUP OR EQUAL TO
{"RightUpDownVector", 0x0294F}, // UP BARB RIGHT DOWN BARB RIGHT HARPOON
{"RightUpTeeVector", 0x0295C}, // UPWARDS HARPOON WITH BARB RIGHT FROM BAR
{"RightUpVector", 0x021BE}, // UPWARDS HARPOON WITH BARB RIGHTWARDS
{"RightUpVectorBar", 0x02954}, // UPWARDS HARPOON WITH BARB RIGHT TO BAR
{"RightVector", 0x021C0}, // RIGHTWARDS HARPOON WITH BARB UPWARDS
{"RightVectorBar", 0x02953}, // RIGHTWARDS HARPOON WITH BARB UP TO BAR
{"ring", 0x002DA}, // RING ABOVE
{"risingdotseq", 0x02253}, // IMAGE OF OR APPROXIMATELY EQUAL TO
{"rlarr", 0x021C4}, // RIGHTWARDS ARROW OVER LEFTWARDS ARROW
{"rlhar", 0x021CC}, // RIGHTWARDS HARPOON OVER LEFTWARDS HARPOON
{"rlm", 0x0200F}, // RIGHT-TO-LEFT MARK
{"rmoust", 0x023B1}, // UPPER RIGHT OR LOWER LEFT CURLY BRACKET SECTION
{"rmoustache", 0x023B1}, // UPPER RIGHT OR LOWER LEFT CURLY BRACKET SECTION
{"rnmid", 0x02AEE}, // DOES NOT DIVIDE WITH REVERSED NEGATION SLASH
{"roang", 0x027ED}, // MATHEMATICAL RIGHT WHITE TORTOISE SHELL BRACKET
{"roarr", 0x021FE}, // RIGHTWARDS OPEN-HEADED ARROW
{"robrk", 0x027E7}, // MATHEMATICAL RIGHT WHITE SQUARE BRACKET
{"ropar", 0x02986}, // RIGHT WHITE PARENTHESIS
{"Ropf", 0x0211D}, // DOUBLE-STRUCK CAPITAL R
{"ropf", 0x1D563}, // MATHEMATICAL DOUBLE-STRUCK SMALL R
{"roplus", 0x02A2E}, // PLUS SIGN IN RIGHT HALF CIRCLE
{"rotimes", 0x02A35}, // MULTIPLICATION SIGN IN RIGHT HALF CIRCLE
{"RoundImplies", 0x02970}, // RIGHT DOUBLE ARROW WITH ROUNDED HEAD
{"rpar", 0x00029}, // RIGHT PARENTHESIS
{"rpargt", 0x02994}, // RIGHT ARC GREATER-THAN BRACKET
{"rppolint", 0x02A12}, // LINE INTEGRATION WITH RECTANGULAR PATH AROUND POLE
{"rrarr", 0x021C9}, // RIGHTWARDS PAIRED ARROWS
{"Rrightarrow", 0x021DB}, // RIGHTWARDS TRIPLE ARROW
{"rsaquo", 0x0203A}, // SINGLE RIGHT-POINTING ANGLE QUOTATION MARK
{"Rscr", 0x0211B}, // SCRIPT CAPITAL R
{"rscr", 0x1D4C7}, // MATHEMATICAL SCRIPT SMALL R
{"rsh", 0x021B1}, // UPWARDS ARROW WITH TIP RIGHTWARDS
{"Rsh", 0x021B1}, // UPWARDS ARROW WITH TIP RIGHTWARDS
{"rsqb", 0x0005D}, // RIGHT SQUARE BRACKET
{"rsquo", 0x02019}, // RIGHT SINGLE QUOTATION MARK
{"rsquor", 0x02019}, // RIGHT SINGLE QUOTATION MARK
{"rthree", 0x022CC}, // RIGHT SEMIDIRECT PRODUCT
{"rtimes", 0x022CA}, // RIGHT NORMAL FACTOR SEMIDIRECT PRODUCT
{"rtri", 0x025B9}, // WHITE RIGHT-POINTING SMALL TRIANGLE
{"rtrie", 0x022B5}, // CONTAINS AS NORMAL SUBGROUP OR EQUAL TO
{"rtrif", 0x025B8}, // BLACK RIGHT-POINTING SMALL TRIANGLE
{"rtriltri", 0x029CE}, // RIGHT TRIANGLE ABOVE LEFT TRIANGLE
{"RuleDelayed", 0x029F4}, // RULE-DELAYED
{"ruluhar", 0x02968}, // RIGHTWARDS HARPOON WITH BARB UP ABOVE LEFTWARDS HARPOON WITH BARB UP
{"rx", 0x0211E}, // PRESCRIPTION TAKE
];
immutable NameId[] namesS =
[
{"Sacute", 0x0015A}, // LATIN CAPITAL LETTER S WITH ACUTE
{"sacute", 0x0015B}, // LATIN SMALL LETTER S WITH ACUTE
{"sbquo", 0x0201A}, // SINGLE LOW-9 QUOTATION MARK
{"sc", 0x0227B}, // SUCCEEDS
{"Sc", 0x02ABC}, // DOUBLE SUCCEEDS
{"scap", 0x02AB8}, // SUCCEEDS ABOVE ALMOST EQUAL TO
{"Scaron", 0x00160}, // LATIN CAPITAL LETTER S WITH CARON
{"scaron", 0x00161}, // LATIN SMALL LETTER S WITH CARON
{"sccue", 0x0227D}, // SUCCEEDS OR EQUAL TO
{"sce", 0x02AB0}, // SUCCEEDS ABOVE SINGLE-LINE EQUALS SIGN
{"scE", 0x02AB4}, // SUCCEEDS ABOVE EQUALS SIGN
{"Scedil", 0x0015E}, // LATIN CAPITAL LETTER S WITH CEDILLA
{"scedil", 0x0015F}, // LATIN SMALL LETTER S WITH CEDILLA
{"Scirc", 0x0015C}, // LATIN CAPITAL LETTER S WITH CIRCUMFLEX
{"scirc", 0x0015D}, // LATIN SMALL LETTER S WITH CIRCUMFLEX
{"scnap", 0x02ABA}, // SUCCEEDS ABOVE NOT ALMOST EQUAL TO
{"scnE", 0x02AB6}, // SUCCEEDS ABOVE NOT EQUAL TO
{"scnsim", 0x022E9}, // SUCCEEDS BUT NOT EQUIVALENT TO
{"scpolint", 0x02A13}, // LINE INTEGRATION WITH SEMICIRCULAR PATH AROUND POLE
{"scsim", 0x0227F}, // SUCCEEDS OR EQUIVALENT TO
{"Scy", 0x00421}, // CYRILLIC CAPITAL LETTER ES
{"scy", 0x00441}, // CYRILLIC SMALL LETTER ES
{"sdot", 0x022C5}, // DOT OPERATOR
{"sdotb", 0x022A1}, // SQUARED DOT OPERATOR
{"sdote", 0x02A66}, // EQUALS SIGN WITH DOT BELOW
{"searhk", 0x02925}, // SOUTH EAST ARROW WITH HOOK
{"searr", 0x02198}, // SOUTH EAST ARROW
{"seArr", 0x021D8}, // SOUTH EAST DOUBLE ARROW
{"searrow", 0x02198}, // SOUTH EAST ARROW
{"sect", 0x000A7}, // SECTION SIGN
{"semi", 0x0003B}, // SEMICOLON
{"seswar", 0x02929}, // SOUTH EAST ARROW AND SOUTH WEST ARROW
{"setminus", 0x02216}, // SET MINUS
{"setmn", 0x02216}, // SET MINUS
{"sext", 0x02736}, // SIX POINTED BLACK STAR
{"sfgr", 0x003C2}, // GREEK SMALL LETTER FINAL SIGMA
{"Sfr", 0x1D516}, // MATHEMATICAL FRAKTUR CAPITAL S
{"sfr", 0x1D530}, // MATHEMATICAL FRAKTUR SMALL S
{"sfrown", 0x02322}, // FROWN
{"Sgr", 0x003A3}, // GREEK CAPITAL LETTER SIGMA
{"sgr", 0x003C3}, // GREEK SMALL LETTER SIGMA
{"sharp", 0x0266F}, // MUSIC SHARP SIGN
{"SHCHcy", 0x00429}, // CYRILLIC CAPITAL LETTER SHCHA
{"shchcy", 0x00449}, // CYRILLIC SMALL LETTER SHCHA
{"SHcy", 0x00428}, // CYRILLIC CAPITAL LETTER SHA
{"shcy", 0x00448}, // CYRILLIC SMALL LETTER SHA
{"ShortDownArrow", 0x02193}, // DOWNWARDS ARROW
{"ShortLeftArrow", 0x02190}, // LEFTWARDS ARROW
{"shortmid", 0x02223}, // DIVIDES
{"shortparallel", 0x02225}, // PARALLEL TO
{"ShortRightArrow", 0x02192}, // RIGHTWARDS ARROW
{"ShortUpArrow", 0x02191}, // UPWARDS ARROW
{"shy", 0x000AD}, // SOFT HYPHEN
{"Sigma", 0x003A3}, // GREEK CAPITAL LETTER SIGMA
{"sigma", 0x003C3}, // GREEK SMALL LETTER SIGMA
{"sigmaf", 0x003C2}, // GREEK SMALL LETTER FINAL SIGMA
{"sigmav", 0x003C2}, // GREEK SMALL LETTER FINAL SIGMA
{"sim", 0x0223C}, // TILDE OPERATOR
{"simdot", 0x02A6A}, // TILDE OPERATOR WITH DOT ABOVE
{"sime", 0x02243}, // ASYMPTOTICALLY EQUAL TO
{"simeq", 0x02243}, // ASYMPTOTICALLY EQUAL TO
{"simg", 0x02A9E}, // SIMILAR OR GREATER-THAN
{"simgE", 0x02AA0}, // SIMILAR ABOVE GREATER-THAN ABOVE EQUALS SIGN
{"siml", 0x02A9D}, // SIMILAR OR LESS-THAN
{"simlE", 0x02A9F}, // SIMILAR ABOVE LESS-THAN ABOVE EQUALS SIGN
{"simne", 0x02246}, // APPROXIMATELY BUT NOT ACTUALLY EQUAL TO
{"simplus", 0x02A24}, // PLUS SIGN WITH TILDE ABOVE
{"simrarr", 0x02972}, // TILDE OPERATOR ABOVE RIGHTWARDS ARROW
{"slarr", 0x02190}, // LEFTWARDS ARROW
{"SmallCircle", 0x02218}, // RING OPERATOR
{"smallsetminus", 0x02216}, // SET MINUS
{"smashp", 0x02A33}, // SMASH PRODUCT
{"smeparsl", 0x029E4}, // EQUALS SIGN AND SLANTED PARALLEL WITH TILDE ABOVE
{"smid", 0x02223}, // DIVIDES
{"smile", 0x02323}, // SMILE
{"smt", 0x02AAA}, // SMALLER THAN
{"smte", 0x02AAC}, // SMALLER THAN OR EQUAL TO
// "smtes", 0x02AAC;0x0FE00}, // SMALLER THAN OR slanted EQUAL
{"SOFTcy", 0x0042C}, // CYRILLIC CAPITAL LETTER SOFT SIGN
{"softcy", 0x0044C}, // CYRILLIC SMALL LETTER SOFT SIGN
{"sol", 0x0002F}, // SOLIDUS
{"solb", 0x029C4}, // SQUARED RISING DIAGONAL SLASH
{"solbar", 0x0233F}, // APL FUNCTIONAL SYMBOL SLASH BAR
{"Sopf", 0x1D54A}, // MATHEMATICAL DOUBLE-STRUCK CAPITAL S
{"sopf", 0x1D564}, // MATHEMATICAL DOUBLE-STRUCK SMALL S
{"spades", 0x02660}, // BLACK SPADE SUIT
{"spadesuit", 0x02660}, // BLACK SPADE SUIT
{"spar", 0x02225}, // PARALLEL TO
{"sqcap", 0x02293}, // SQUARE CAP
// "sqcaps", 0x02293;0x0FE00}, // SQUARE CAP with serifs
{"sqcup", 0x02294}, // SQUARE CUP
// "sqcups", 0x02294;0x0FE00}, // SQUARE CUP with serifs
{"Sqrt", 0x0221A}, // SQUARE ROOT
{"sqsub", 0x0228F}, // SQUARE IMAGE OF
{"sqsube", 0x02291}, // SQUARE IMAGE OF OR EQUAL TO
{"sqsubset", 0x0228F}, // SQUARE IMAGE OF
{"sqsubseteq", 0x02291}, // SQUARE IMAGE OF OR EQUAL TO
{"sqsup", 0x02290}, // SQUARE ORIGINAL OF
{"sqsupe", 0x02292}, // SQUARE ORIGINAL OF OR EQUAL TO
{"sqsupset", 0x02290}, // SQUARE ORIGINAL OF
{"sqsupseteq", 0x02292}, // SQUARE ORIGINAL OF OR EQUAL TO
{"squ", 0x025A1}, // WHITE SQUARE
{"square", 0x025A1}, // WHITE SQUARE
{"Square", 0x025A1}, // WHITE SQUARE
{"SquareIntersection", 0x02293}, // SQUARE CAP
{"SquareSubset", 0x0228F}, // SQUARE IMAGE OF
{"SquareSubsetEqual", 0x02291}, // SQUARE IMAGE OF OR EQUAL TO
{"SquareSuperset", 0x02290}, // SQUARE ORIGINAL OF
{"SquareSupersetEqual", 0x02292}, // SQUARE ORIGINAL OF OR EQUAL TO
{"SquareUnion", 0x02294}, // SQUARE CUP
{"squarf", 0x025AA}, // BLACK SMALL SQUARE
{"squf", 0x025AA}, // BLACK SMALL SQUARE
{"srarr", 0x02192}, // RIGHTWARDS ARROW
{"Sscr", 0x1D4AE}, // MATHEMATICAL SCRIPT CAPITAL S
{"sscr", 0x1D4C8}, // MATHEMATICAL SCRIPT SMALL S
{"ssetmn", 0x02216}, // SET MINUS
{"ssmile", 0x02323}, // SMILE
{"sstarf", 0x022C6}, // STAR OPERATOR
{"Star", 0x022C6}, // STAR OPERATOR
{"star", 0x02606}, // WHITE STAR
{"starf", 0x02605}, // BLACK STAR
{"straightepsilon", 0x003F5}, // GREEK LUNATE EPSILON SYMBOL
{"straightphi", 0x003D5}, // GREEK PHI SYMBOL
{"strns", 0x000AF}, // MACRON
{"sub", 0x02282}, // SUBSET OF
{"Sub", 0x022D0}, // DOUBLE SUBSET
{"subdot", 0x02ABD}, // SUBSET WITH DOT
{"sube", 0x02286}, // SUBSET OF OR EQUAL TO
{"subE", 0x02AC5}, // SUBSET OF ABOVE EQUALS SIGN
{"subedot", 0x02AC3}, // SUBSET OF OR EQUAL TO WITH DOT ABOVE
{"submult", 0x02AC1}, // SUBSET WITH MULTIPLICATION SIGN BELOW
{"subne", 0x0228A}, // SUBSET OF WITH NOT EQUAL TO
{"subnE", 0x02ACB}, // SUBSET OF ABOVE NOT EQUAL TO
{"subplus", 0x02ABF}, // SUBSET WITH PLUS SIGN BELOW
{"subrarr", 0x02979}, // SUBSET ABOVE RIGHTWARDS ARROW
{"subset", 0x02282}, // SUBSET OF
{"Subset", 0x022D0}, // DOUBLE SUBSET
{"subseteq", 0x02286}, // SUBSET OF OR EQUAL TO
{"subseteqq", 0x02AC5}, // SUBSET OF ABOVE EQUALS SIGN
{"SubsetEqual", 0x02286}, // SUBSET OF OR EQUAL TO
{"subsetneq", 0x0228A}, // SUBSET OF WITH NOT EQUAL TO
{"subsetneqq", 0x02ACB}, // SUBSET OF ABOVE NOT EQUAL TO
{"subsim", 0x02AC7}, // SUBSET OF ABOVE TILDE OPERATOR
{"subsub", 0x02AD5}, // SUBSET ABOVE SUBSET
{"subsup", 0x02AD3}, // SUBSET ABOVE SUPERSET
{"succ", 0x0227B}, // SUCCEEDS
{"succapprox", 0x02AB8}, // SUCCEEDS ABOVE ALMOST EQUAL TO
{"succcurlyeq", 0x0227D}, // SUCCEEDS OR EQUAL TO
{"Succeeds", 0x0227B}, // SUCCEEDS
{"SucceedsEqual", 0x02AB0}, // SUCCEEDS ABOVE SINGLE-LINE EQUALS SIGN
{"SucceedsSlantEqual", 0x0227D}, // SUCCEEDS OR EQUAL TO
{"SucceedsTilde", 0x0227F}, // SUCCEEDS OR EQUIVALENT TO
{"succeq", 0x02AB0}, // SUCCEEDS ABOVE SINGLE-LINE EQUALS SIGN
{"succnapprox", 0x02ABA}, // SUCCEEDS ABOVE NOT ALMOST EQUAL TO
{"succneqq", 0x02AB6}, // SUCCEEDS ABOVE NOT EQUAL TO
{"succnsim", 0x022E9}, // SUCCEEDS BUT NOT EQUIVALENT TO
{"succsim", 0x0227F}, // SUCCEEDS OR EQUIVALENT TO
{"SuchThat", 0x0220B}, // CONTAINS AS MEMBER
{"sum", 0x02211}, // N-ARY SUMMATION
{"Sum", 0x02211}, // N-ARY SUMMATION
{"sung", 0x0266A}, // EIGHTH NOTE
{"sup", 0x02283}, // SUPERSET OF
{"Sup", 0x022D1}, // DOUBLE SUPERSET
{"sup1", 0x000B9}, // SUPERSCRIPT ONE
{"sup2", 0x000B2}, // SUPERSCRIPT TWO
{"sup3", 0x000B3}, // SUPERSCRIPT THREE
{"supdot", 0x02ABE}, // SUPERSET WITH DOT
{"supdsub", 0x02AD8}, // SUPERSET BESIDE AND JOINED BY DASH WITH SUBSET
{"supe", 0x02287}, // SUPERSET OF OR EQUAL TO
{"supE", 0x02AC6}, // SUPERSET OF ABOVE EQUALS SIGN
{"supedot", 0x02AC4}, // SUPERSET OF OR EQUAL TO WITH DOT ABOVE
{"Superset", 0x02283}, // SUPERSET OF
{"SupersetEqual", 0x02287}, // SUPERSET OF OR EQUAL TO
{"suphsol", 0x027C9}, // SUPERSET PRECEDING SOLIDUS
{"suphsub", 0x02AD7}, // SUPERSET BESIDE SUBSET
{"suplarr", 0x0297B}, // SUPERSET ABOVE LEFTWARDS ARROW
{"supmult", 0x02AC2}, // SUPERSET WITH MULTIPLICATION SIGN BELOW
{"supne", 0x0228B}, // SUPERSET OF WITH NOT EQUAL TO
{"supnE", 0x02ACC}, // SUPERSET OF ABOVE NOT EQUAL TO
{"supplus", 0x02AC0}, // SUPERSET WITH PLUS SIGN BELOW
{"supset", 0x02283}, // SUPERSET OF
{"Supset", 0x022D1}, // DOUBLE SUPERSET
{"supseteq", 0x02287}, // SUPERSET OF OR EQUAL TO
{"supseteqq", 0x02AC6}, // SUPERSET OF ABOVE EQUALS SIGN
{"supsetneq", 0x0228B}, // SUPERSET OF WITH NOT EQUAL TO
{"supsetneqq", 0x02ACC}, // SUPERSET OF ABOVE NOT EQUAL TO
{"supsim", 0x02AC8}, // SUPERSET OF ABOVE TILDE OPERATOR
{"supsub", 0x02AD4}, // SUPERSET ABOVE SUBSET
{"supsup", 0x02AD6}, // SUPERSET ABOVE SUPERSET
{"swarhk", 0x02926}, // SOUTH WEST ARROW WITH HOOK
{"swarr", 0x02199}, // SOUTH WEST ARROW
{"swArr", 0x021D9}, // SOUTH WEST DOUBLE ARROW
{"swarrow", 0x02199}, // SOUTH WEST ARROW
{"swnwar", 0x0292A}, // SOUTH WEST ARROW AND NORTH WEST ARROW
{"szlig", 0x000DF}, // LATIN SMALL LETTER SHARP S
];
immutable NameId[] namesT =
[
{"Tab", 0x00009}, // CHARACTER TABULATION
{"target", 0x02316}, // POSITION INDICATOR
{"Tau", 0x003A4}, // GREEK CAPITAL LETTER TAU
{"tau", 0x003C4}, // GREEK SMALL LETTER TAU
{"tbrk", 0x023B4}, // TOP SQUARE BRACKET
{"Tcaron", 0x00164}, // LATIN CAPITAL LETTER T WITH CARON
{"tcaron", 0x00165}, // LATIN SMALL LETTER T WITH CARON
{"Tcedil", 0x00162}, // LATIN CAPITAL LETTER T WITH CEDILLA
{"tcedil", 0x00163}, // LATIN SMALL LETTER T WITH CEDILLA
{"Tcy", 0x00422}, // CYRILLIC CAPITAL LETTER TE
{"tcy", 0x00442}, // CYRILLIC SMALL LETTER TE
{"tdot", 0x020DB}, // COMBINING THREE DOTS ABOVE
{"telrec", 0x02315}, // TELEPHONE RECORDER
{"Tfr", 0x1D517}, // MATHEMATICAL FRAKTUR CAPITAL T
{"tfr", 0x1D531}, // MATHEMATICAL FRAKTUR SMALL T
{"Tgr", 0x003A4}, // GREEK CAPITAL LETTER TAU
{"tgr", 0x003C4}, // GREEK SMALL LETTER TAU
{"there4", 0x02234}, // THEREFORE
{"therefore", 0x02234}, // THEREFORE
{"Therefore", 0x02234}, // THEREFORE
{"Theta", 0x00398}, // GREEK CAPITAL LETTER THETA
{"theta", 0x003B8}, // GREEK SMALL LETTER THETA
{"thetasym", 0x003D1}, // GREEK THETA SYMBOL
{"thetav", 0x003D1}, // GREEK THETA SYMBOL
{"THgr", 0x00398}, // GREEK CAPITAL LETTER THETA
{"thgr", 0x003B8}, // GREEK SMALL LETTER THETA
{"thickapprox", 0x02248}, // ALMOST EQUAL TO
{"thicksim", 0x0223C}, // TILDE OPERATOR
// "ThickSpace", 0x0205F;0x0200A}, // space of width 5/18 em
{"thinsp", 0x02009}, // THIN SPACE
{"ThinSpace", 0x02009}, // THIN SPACE
{"thkap", 0x02248}, // ALMOST EQUAL TO
{"thksim", 0x0223C}, // TILDE OPERATOR
{"THORN", 0x000DE}, // LATIN CAPITAL LETTER THORN
{"thorn", 0x000FE}, // LATIN SMALL LETTER THORN
{"tilde", 0x002DC}, // SMALL TILDE
{"Tilde", 0x0223C}, // TILDE OPERATOR
{"TildeEqual", 0x02243}, // ASYMPTOTICALLY EQUAL TO
{"TildeFullEqual", 0x02245}, // APPROXIMATELY EQUAL TO
{"TildeTilde", 0x02248}, // ALMOST EQUAL TO
{"times", 0x000D7}, // MULTIPLICATION SIGN
{"timesb", 0x022A0}, // SQUARED TIMES
{"timesbar", 0x02A31}, // MULTIPLICATION SIGN WITH UNDERBAR
{"timesd", 0x02A30}, // MULTIPLICATION SIGN WITH DOT ABOVE
{"tint", 0x0222D}, // TRIPLE INTEGRAL
{"toea", 0x02928}, // NORTH EAST ARROW AND SOUTH EAST ARROW
{"top", 0x022A4}, // DOWN TACK
{"topbot", 0x02336}, // APL FUNCTIONAL SYMBOL I-BEAM
{"topcir", 0x02AF1}, // DOWN TACK WITH CIRCLE BELOW
{"Topf", 0x1D54B}, // MATHEMATICAL DOUBLE-STRUCK CAPITAL T
{"topf", 0x1D565}, // MATHEMATICAL DOUBLE-STRUCK SMALL T
{"topfork", 0x02ADA}, // PITCHFORK WITH TEE TOP
{"tosa", 0x02929}, // SOUTH EAST ARROW AND SOUTH WEST ARROW
{"tprime", 0x02034}, // TRIPLE PRIME
{"trade", 0x02122}, // TRADE MARK SIGN
{"TRADE", 0x02122}, // TRADE MARK SIGN
{"triangle", 0x025B5}, // WHITE UP-POINTING SMALL TRIANGLE
{"triangledown", 0x025BF}, // WHITE DOWN-POINTING SMALL TRIANGLE
{"triangleleft", 0x025C3}, // WHITE LEFT-POINTING SMALL TRIANGLE
{"trianglelefteq", 0x022B4}, // NORMAL SUBGROUP OF OR EQUAL TO
{"triangleq", 0x0225C}, // DELTA EQUAL TO
{"triangleright", 0x025B9}, // WHITE RIGHT-POINTING SMALL TRIANGLE
{"trianglerighteq", 0x022B5}, // CONTAINS AS NORMAL SUBGROUP OR EQUAL TO
{"tridot", 0x025EC}, // WHITE UP-POINTING TRIANGLE WITH DOT
{"trie", 0x0225C}, // DELTA EQUAL TO
{"triminus", 0x02A3A}, // MINUS SIGN IN TRIANGLE
{"TripleDot", 0x020DB}, // COMBINING THREE DOTS ABOVE
{"triplus", 0x02A39}, // PLUS SIGN IN TRIANGLE
{"trisb", 0x029CD}, // TRIANGLE WITH SERIFS AT BOTTOM
{"tritime", 0x02A3B}, // MULTIPLICATION SIGN IN TRIANGLE
{"trpezium", 0x023E2}, // WHITE TRAPEZIUM
{"Tscr", 0x1D4AF}, // MATHEMATICAL SCRIPT CAPITAL T
{"tscr", 0x1D4C9}, // MATHEMATICAL SCRIPT SMALL T
{"TScy", 0x00426}, // CYRILLIC CAPITAL LETTER TSE
{"tscy", 0x00446}, // CYRILLIC SMALL LETTER TSE
{"TSHcy", 0x0040B}, // CYRILLIC CAPITAL LETTER TSHE
{"tshcy", 0x0045B}, // CYRILLIC SMALL LETTER TSHE
{"Tstrok", 0x00166}, // LATIN CAPITAL LETTER T WITH STROKE
{"tstrok", 0x00167}, // LATIN SMALL LETTER T WITH STROKE
{"twixt", 0x0226C}, // BETWEEN
{"twoheadleftarrow", 0x0219E}, // LEFTWARDS TWO HEADED ARROW
{"twoheadrightarrow", 0x021A0}, // RIGHTWARDS TWO HEADED ARROW
];
immutable NameId[] namesU =
[
{"Uacgr", 0x0038E}, // GREEK CAPITAL LETTER UPSILON WITH TONOS
{"uacgr", 0x003CD}, // GREEK SMALL LETTER UPSILON WITH TONOS
{"Uacute", 0x000DA}, // LATIN CAPITAL LETTER U WITH ACUTE
{"uacute", 0x000FA}, // LATIN SMALL LETTER U WITH ACUTE
{"uarr", 0x02191}, // UPWARDS ARROW
{"Uarr", 0x0219F}, // UPWARDS TWO HEADED ARROW
{"uArr", 0x021D1}, // UPWARDS DOUBLE ARROW
{"Uarrocir", 0x02949}, // UPWARDS TWO-HEADED ARROW FROM SMALL CIRCLE
{"Ubrcy", 0x0040E}, // CYRILLIC CAPITAL LETTER SHORT U
{"ubrcy", 0x0045E}, // CYRILLIC SMALL LETTER SHORT U
{"Ubreve", 0x0016C}, // LATIN CAPITAL LETTER U WITH BREVE
{"ubreve", 0x0016D}, // LATIN SMALL LETTER U WITH BREVE
{"Ucirc", 0x000DB}, // LATIN CAPITAL LETTER U WITH CIRCUMFLEX
{"ucirc", 0x000FB}, // LATIN SMALL LETTER U WITH CIRCUMFLEX
{"Ucy", 0x00423}, // CYRILLIC CAPITAL LETTER U
{"ucy", 0x00443}, // CYRILLIC SMALL LETTER U
{"udarr", 0x021C5}, // UPWARDS ARROW LEFTWARDS OF DOWNWARDS ARROW
{"Udblac", 0x00170}, // LATIN CAPITAL LETTER U WITH DOUBLE ACUTE
{"udblac", 0x00171}, // LATIN SMALL LETTER U WITH DOUBLE ACUTE
{"udhar", 0x0296E}, // UPWARDS HARPOON WITH BARB LEFT BESIDE DOWNWARDS HARPOON WITH BARB RIGHT
{"udiagr", 0x003B0}, // GREEK SMALL LETTER UPSILON WITH DIALYTIKA AND TONOS
{"Udigr", 0x003AB}, // GREEK CAPITAL LETTER UPSILON WITH DIALYTIKA
{"udigr", 0x003CB}, // GREEK SMALL LETTER UPSILON WITH DIALYTIKA
{"ufisht", 0x0297E}, // UP FISH TAIL
{"Ufr", 0x1D518}, // MATHEMATICAL FRAKTUR CAPITAL U
{"ufr", 0x1D532}, // MATHEMATICAL FRAKTUR SMALL U
{"Ugr", 0x003A5}, // GREEK CAPITAL LETTER UPSILON
{"ugr", 0x003C5}, // GREEK SMALL LETTER UPSILON
{"Ugrave", 0x000D9}, // LATIN CAPITAL LETTER U WITH GRAVE
{"ugrave", 0x000F9}, // LATIN SMALL LETTER U WITH GRAVE
{"uHar", 0x02963}, // UPWARDS HARPOON WITH BARB LEFT BESIDE UPWARDS HARPOON WITH BARB RIGHT
{"uharl", 0x021BF}, // UPWARDS HARPOON WITH BARB LEFTWARDS
{"uharr", 0x021BE}, // UPWARDS HARPOON WITH BARB RIGHTWARDS
{"uhblk", 0x02580}, // UPPER HALF BLOCK
{"ulcorn", 0x0231C}, // TOP LEFT CORNER
{"ulcorner", 0x0231C}, // TOP LEFT CORNER
{"ulcrop", 0x0230F}, // TOP LEFT CROP
{"ultri", 0x025F8}, // UPPER LEFT TRIANGLE
{"Umacr", 0x0016A}, // LATIN CAPITAL LETTER U WITH MACRON
{"umacr", 0x0016B}, // LATIN SMALL LETTER U WITH MACRON
{"uml", 0x000A8}, // DIAERESIS
{"UnderBar", 0x0005F}, // LOW LINE
{"UnderBrace", 0x023DF}, // BOTTOM CURLY BRACKET
{"UnderBracket", 0x023B5}, // BOTTOM SQUARE BRACKET
{"UnderParenthesis", 0x023DD}, // BOTTOM PARENTHESIS
{"Union", 0x022C3}, // N-ARY UNION
{"UnionPlus", 0x0228E}, // MULTISET UNION
{"Uogon", 0x00172}, // LATIN CAPITAL LETTER U WITH OGONEK
{"uogon", 0x00173}, // LATIN SMALL LETTER U WITH OGONEK
{"Uopf", 0x1D54C}, // MATHEMATICAL DOUBLE-STRUCK CAPITAL U
{"uopf", 0x1D566}, // MATHEMATICAL DOUBLE-STRUCK SMALL U
{"uparrow", 0x02191}, // UPWARDS ARROW
{"UpArrow", 0x02191}, // UPWARDS ARROW
{"Uparrow", 0x021D1}, // UPWARDS DOUBLE ARROW
{"UpArrowBar", 0x02912}, // UPWARDS ARROW TO BAR
{"UpArrowDownArrow", 0x021C5}, // UPWARDS ARROW LEFTWARDS OF DOWNWARDS ARROW
{"updownarrow", 0x02195}, // UP DOWN ARROW
{"UpDownArrow", 0x02195}, // UP DOWN ARROW
{"Updownarrow", 0x021D5}, // UP DOWN DOUBLE ARROW
{"UpEquilibrium", 0x0296E}, // UPWARDS HARPOON WITH BARB LEFT BESIDE DOWNWARDS HARPOON WITH BARB RIGHT
{"upharpoonleft", 0x021BF}, // UPWARDS HARPOON WITH BARB LEFTWARDS
{"upharpoonright", 0x021BE}, // UPWARDS HARPOON WITH BARB RIGHTWARDS
{"uplus", 0x0228E}, // MULTISET UNION
{"UpperLeftArrow", 0x02196}, // NORTH WEST ARROW
{"UpperRightArrow", 0x02197}, // NORTH EAST ARROW
{"upsi", 0x003C5}, // GREEK SMALL LETTER UPSILON
{"Upsi", 0x003D2}, // GREEK UPSILON WITH HOOK SYMBOL
{"upsih", 0x003D2}, // GREEK UPSILON WITH HOOK SYMBOL
{"Upsilon", 0x003A5}, // GREEK CAPITAL LETTER UPSILON
{"upsilon", 0x003C5}, // GREEK SMALL LETTER UPSILON
{"UpTee", 0x022A5}, // UP TACK
{"UpTeeArrow", 0x021A5}, // UPWARDS ARROW FROM BAR
{"upuparrows", 0x021C8}, // UPWARDS PAIRED ARROWS
{"urcorn", 0x0231D}, // TOP RIGHT CORNER
{"urcorner", 0x0231D}, // TOP RIGHT CORNER
{"urcrop", 0x0230E}, // TOP RIGHT CROP
{"Uring", 0x0016E}, // LATIN CAPITAL LETTER U WITH RING ABOVE
{"uring", 0x0016F}, // LATIN SMALL LETTER U WITH RING ABOVE
{"urtri", 0x025F9}, // UPPER RIGHT TRIANGLE
{"Uscr", 0x1D4B0}, // MATHEMATICAL SCRIPT CAPITAL U
{"uscr", 0x1D4CA}, // MATHEMATICAL SCRIPT SMALL U
{"utdot", 0x022F0}, // UP RIGHT DIAGONAL ELLIPSIS
{"Utilde", 0x00168}, // LATIN CAPITAL LETTER U WITH TILDE
{"utilde", 0x00169}, // LATIN SMALL LETTER U WITH TILDE
{"utri", 0x025B5}, // WHITE UP-POINTING SMALL TRIANGLE
{"utrif", 0x025B4}, // BLACK UP-POINTING SMALL TRIANGLE
{"uuarr", 0x021C8}, // UPWARDS PAIRED ARROWS
{"Uuml", 0x000DC}, // LATIN CAPITAL LETTER U WITH DIAERESIS
{"uuml", 0x000FC}, // LATIN SMALL LETTER U WITH DIAERESIS
{"uwangle", 0x029A7}, // OBLIQUE ANGLE OPENING DOWN
];
immutable NameId[] namesV =
[
{"vangrt", 0x0299C}, // RIGHT ANGLE VARIANT WITH SQUARE
{"varepsilon", 0x003F5}, // GREEK LUNATE EPSILON SYMBOL
{"varkappa", 0x003F0}, // GREEK KAPPA SYMBOL
{"varnothing", 0x02205}, // EMPTY SET
{"varphi", 0x003D5}, // GREEK PHI SYMBOL
{"varpi", 0x003D6}, // GREEK PI SYMBOL
{"varpropto", 0x0221D}, // PROPORTIONAL TO
{"varr", 0x02195}, // UP DOWN ARROW
{"vArr", 0x021D5}, // UP DOWN DOUBLE ARROW
{"varrho", 0x003F1}, // GREEK RHO SYMBOL
{"varsigma", 0x003C2}, // GREEK SMALL LETTER FINAL SIGMA
// "varsubsetneq", 0x0228A;0x0FE00}, // SUBSET OF WITH NOT EQUAL TO - variant with stroke through bottom members
// "varsubsetneqq", 0x02ACB;0x0FE00}, // SUBSET OF ABOVE NOT EQUAL TO - variant with stroke through bottom members
// "varsupsetneq", 0x0228B;0x0FE00}, // SUPERSET OF WITH NOT EQUAL TO - variant with stroke through bottom members
// "varsupsetneqq", 0x02ACC;0x0FE00}, // SUPERSET OF ABOVE NOT EQUAL TO - variant with stroke through bottom members
{"vartheta", 0x003D1}, // GREEK THETA SYMBOL
{"vartriangleleft", 0x022B2}, // NORMAL SUBGROUP OF
{"vartriangleright", 0x022B3}, // CONTAINS AS NORMAL SUBGROUP
{"vBar", 0x02AE8}, // SHORT UP TACK WITH UNDERBAR
{"Vbar", 0x02AEB}, // DOUBLE UP TACK
{"vBarv", 0x02AE9}, // SHORT UP TACK ABOVE SHORT DOWN TACK
{"Vcy", 0x00412}, // CYRILLIC CAPITAL LETTER VE
{"vcy", 0x00432}, // CYRILLIC SMALL LETTER VE
{"vdash", 0x022A2}, // RIGHT TACK
{"vDash", 0x022A8}, // TRUE
{"Vdash", 0x022A9}, // FORCES
{"VDash", 0x022AB}, // DOUBLE VERTICAL BAR DOUBLE RIGHT TURNSTILE
{"Vdashl", 0x02AE6}, // LONG DASH FROM LEFT MEMBER OF DOUBLE VERTICAL
{"vee", 0x02228}, // LOGICAL OR
{"Vee", 0x022C1}, // N-ARY LOGICAL OR
{"veebar", 0x022BB}, // XOR
{"veeeq", 0x0225A}, // EQUIANGULAR TO
{"vellip", 0x022EE}, // VERTICAL ELLIPSIS
{"verbar", 0x0007C}, // VERTICAL LINE
{"Verbar", 0x02017}, // DOUBLE VERTICAL LINE
{"vert", 0x0007C}, // VERTICAL LINE
{"Vert", 0x02017}, // DOUBLE VERTICAL LINE
{"VerticalBar", 0x02223}, // DIVIDES
{"VerticalLine", 0x0007C}, // VERTICAL LINE
{"VerticalSeparator", 0x02758}, // LIGHT VERTICAL BAR
{"VerticalTilde", 0x02240}, // WREATH PRODUCT
{"VeryThinSpace", 0x0200A}, // HAIR SPACE
{"Vfr", 0x1D519}, // MATHEMATICAL FRAKTUR CAPITAL V
{"vfr", 0x1D533}, // MATHEMATICAL FRAKTUR SMALL V
{"vltri", 0x022B2}, // NORMAL SUBGROUP OF
// "vnsub", 0x02282;0x020D2}, // SUBSET OF with vertical line
// "vnsup", 0x02283;0x020D2}, // SUPERSET OF with vertical line
{"Vopf", 0x1D54D}, // MATHEMATICAL DOUBLE-STRUCK CAPITAL V
{"vopf", 0x1D567}, // MATHEMATICAL DOUBLE-STRUCK SMALL V
{"vprop", 0x0221D}, // PROPORTIONAL TO
{"vrtri", 0x022B3}, // CONTAINS AS NORMAL SUBGROUP
{"Vscr", 0x1D4B1}, // MATHEMATICAL SCRIPT CAPITAL V
{"vscr", 0x1D4CB}, // MATHEMATICAL SCRIPT SMALL V
// "vsubne", 0x0228A;0x0FE00}, // SUBSET OF WITH NOT EQUAL TO - variant with stroke through bottom members
// "vsubnE", 0x02ACB;0x0FE00}, // SUBSET OF ABOVE NOT EQUAL TO - variant with stroke through bottom members
// "vsupne", 0x0228B;0x0FE00}, // SUPERSET OF WITH NOT EQUAL TO - variant with stroke through bottom members
// "vsupnE", 0x02ACC;0x0FE00}, // SUPERSET OF ABOVE NOT EQUAL TO - variant with stroke through bottom members
{"Vvdash", 0x022AA}, // TRIPLE VERTICAL BAR RIGHT TURNSTILE
{"vzigzag", 0x0299A}, // VERTICAL ZIGZAG LINE
];
immutable NameId[] namesW =
[
{"Wcirc", 0x00174}, // LATIN CAPITAL LETTER W WITH CIRCUMFLEX
{"wcirc", 0x00175}, // LATIN SMALL LETTER W WITH CIRCUMFLEX
{"wedbar", 0x02A5F}, // LOGICAL AND WITH UNDERBAR
{"wedge", 0x02227}, // LOGICAL AND
{"Wedge", 0x022C0}, // N-ARY LOGICAL AND
{"wedgeq", 0x02259}, // ESTIMATES
{"weierp", 0x02118}, // SCRIPT CAPITAL P
{"Wfr", 0x1D51A}, // MATHEMATICAL FRAKTUR CAPITAL W
{"wfr", 0x1D534}, // MATHEMATICAL FRAKTUR SMALL W
{"Wopf", 0x1D54E}, // MATHEMATICAL DOUBLE-STRUCK CAPITAL W
{"wopf", 0x1D568}, // MATHEMATICAL DOUBLE-STRUCK SMALL W
{"wp", 0x02118}, // SCRIPT CAPITAL P
{"wr", 0x02240}, // WREATH PRODUCT
{"wreath", 0x02240}, // WREATH PRODUCT
{"Wscr", 0x1D4B2}, // MATHEMATICAL SCRIPT CAPITAL W
{"wscr", 0x1D4CC}, // MATHEMATICAL SCRIPT SMALL W
];
immutable NameId[] namesX =
[
{"xcap", 0x022C2}, // N-ARY INTERSECTION
{"xcirc", 0x025EF}, // LARGE CIRCLE
{"xcup", 0x022C3}, // N-ARY UNION
{"xdtri", 0x025BD}, // WHITE DOWN-POINTING TRIANGLE
{"Xfr", 0x1D51B}, // MATHEMATICAL FRAKTUR CAPITAL X
{"xfr", 0x1D535}, // MATHEMATICAL FRAKTUR SMALL X
{"Xgr", 0x0039E}, // GREEK CAPITAL LETTER XI
{"xgr", 0x003BE}, // GREEK SMALL LETTER XI
{"xharr", 0x027F7}, // LONG LEFT RIGHT ARROW
{"xhArr", 0x027FA}, // LONG LEFT RIGHT DOUBLE ARROW
{"Xi", 0x0039E}, // GREEK CAPITAL LETTER XI
{"xi", 0x003BE}, // GREEK SMALL LETTER XI
{"xlarr", 0x027F5}, // LONG LEFTWARDS ARROW
{"xlArr", 0x027F8}, // LONG LEFTWARDS DOUBLE ARROW
{"xmap", 0x027FC}, // LONG RIGHTWARDS ARROW FROM BAR
{"xnis", 0x022FB}, // CONTAINS WITH VERTICAL BAR AT END OF HORIZONTAL STROKE
{"xodot", 0x02A00}, // N-ARY CIRCLED DOT OPERATOR
{"Xopf", 0x1D54F}, // MATHEMATICAL DOUBLE-STRUCK CAPITAL X
{"xopf", 0x1D569}, // MATHEMATICAL DOUBLE-STRUCK SMALL X
{"xoplus", 0x02A01}, // N-ARY CIRCLED PLUS OPERATOR
{"xotime", 0x02A02}, // N-ARY CIRCLED TIMES OPERATOR
{"xrarr", 0x027F6}, // LONG RIGHTWARDS ARROW
{"xrArr", 0x027F9}, // LONG RIGHTWARDS DOUBLE ARROW
{"Xscr", 0x1D4B3}, // MATHEMATICAL SCRIPT CAPITAL X
{"xscr", 0x1D4CD}, // MATHEMATICAL SCRIPT SMALL X
{"xsqcup", 0x02A06}, // N-ARY SQUARE UNION OPERATOR
{"xuplus", 0x02A04}, // N-ARY UNION OPERATOR WITH PLUS
{"xutri", 0x025B3}, // WHITE UP-POINTING TRIANGLE
{"xvee", 0x022C1}, // N-ARY LOGICAL OR
{"xwedge", 0x022C0}, // N-ARY LOGICAL AND
];
immutable NameId[] namesY =
[
{"Yacute", 0x000DD}, // LATIN CAPITAL LETTER Y WITH ACUTE
{"yacute", 0x000FD}, // LATIN SMALL LETTER Y WITH ACUTE
{"YAcy", 0x0042F}, // CYRILLIC CAPITAL LETTER YA
{"yacy", 0x0044F}, // CYRILLIC SMALL LETTER YA
{"Ycirc", 0x00176}, // LATIN CAPITAL LETTER Y WITH CIRCUMFLEX
{"ycirc", 0x00177}, // LATIN SMALL LETTER Y WITH CIRCUMFLEX
{"Ycy", 0x0042B}, // CYRILLIC CAPITAL LETTER YERU
{"ycy", 0x0044B}, // CYRILLIC SMALL LETTER YERU
{"yen", 0x000A5}, // YEN SIGN
{"Yfr", 0x1D51C}, // MATHEMATICAL FRAKTUR CAPITAL Y
{"yfr", 0x1D536}, // MATHEMATICAL FRAKTUR SMALL Y
{"YIcy", 0x00407}, // CYRILLIC CAPITAL LETTER YI
{"yicy", 0x00457}, // CYRILLIC SMALL LETTER YI
{"Yopf", 0x1D550}, // MATHEMATICAL DOUBLE-STRUCK CAPITAL Y
{"yopf", 0x1D56A}, // MATHEMATICAL DOUBLE-STRUCK SMALL Y
{"Yscr", 0x1D4B4}, // MATHEMATICAL SCRIPT CAPITAL Y
{"yscr", 0x1D4CE}, // MATHEMATICAL SCRIPT SMALL Y
{"YUcy", 0x0042E}, // CYRILLIC CAPITAL LETTER YU
{"yucy", 0x0044E}, // CYRILLIC SMALL LETTER YU
{"yuml", 0x000FF}, // LATIN SMALL LETTER Y WITH DIAERESIS
{"Yuml", 0x00178}, // LATIN CAPITAL LETTER Y WITH DIAERESIS
];
immutable NameId[] namesZ =
[
{"Zacute", 0x00179}, // LATIN CAPITAL LETTER Z WITH ACUTE
{"zacute", 0x0017A}, // LATIN SMALL LETTER Z WITH ACUTE
{"Zcaron", 0x0017D}, // LATIN CAPITAL LETTER Z WITH CARON
{"zcaron", 0x0017E}, // LATIN SMALL LETTER Z WITH CARON
{"Zcy", 0x00417}, // CYRILLIC CAPITAL LETTER ZE
{"zcy", 0x00437}, // CYRILLIC SMALL LETTER ZE
{"Zdot", 0x0017B}, // LATIN CAPITAL LETTER Z WITH DOT ABOVE
{"zdot", 0x0017C}, // LATIN SMALL LETTER Z WITH DOT ABOVE
{"zeetrf", 0x02128}, // BLACK-LETTER CAPITAL Z
{"ZeroWidthSpace", 0x0200B}, // ZERO WIDTH SPACE
{"Zeta", 0x00396}, // GREEK CAPITAL LETTER ZETA
{"zeta", 0x003B6}, // GREEK SMALL LETTER ZETA
{"Zfr", 0x02128}, // BLACK-LETTER CAPITAL Z
{"zfr", 0x1D537}, // MATHEMATICAL FRAKTUR SMALL Z
{"Zgr", 0x00396}, // GREEK CAPITAL LETTER ZETA
{"zgr", 0x003B6}, // GREEK SMALL LETTER ZETA
{"ZHcy", 0x00416}, // CYRILLIC CAPITAL LETTER ZHE
{"zhcy", 0x00436}, // CYRILLIC SMALL LETTER ZHE
{"zigrarr", 0x021DD}, // RIGHTWARDS SQUIGGLE ARROW
{"Zopf", 0x02124}, // DOUBLE-STRUCK CAPITAL Z
{"zopf", 0x1D56B}, // MATHEMATICAL DOUBLE-STRUCK SMALL Z
{"Zscr", 0x1D4B5}, // MATHEMATICAL SCRIPT CAPITAL Z
{"zscr", 0x1D4CF}, // MATHEMATICAL SCRIPT SMALL Z
{"zwj", 0x0200D}, // ZERO WIDTH JOINER
{"zwnj", 0x0200C}, // ZERO WIDTH NON-JOINER
];
| D |
extern(C):
double add(double a, double b) {
return a + b;
}
void _start() {}
| D |
/*
This file is part of Grafer.
Copyright (C) 2008 Frederic-Gerald Morcos <fred.morcos@gmail.com>
Grafer is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Grafer 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 Grafer. If not, see <http://www.gnu.org/licenses/>.
*/
module graph.adt.Edge;
private import
graph.adt.interfaces.Exportable,
graph.adt.interfaces.GraphEdge,
graph.adt.interfaces.Renderable,
tango.text.xml.Document,
cairo.Context;
/**
* An Edge, Arc or Connection in a Graph represented by a straight line which
* represents a pair of Nodes, connecting them together.
*
* Implements the GraphEdge and Renderable Interfaces.
* The Source and Target have to at least implement the Boundary Interface.
*/
class Edge(N):
GraphEdge!(N),
Renderable,
Exportable {
private:
N source_, /** Source Node of the Edge. */
target_; /** Target Node of the Edge. */
public:
/**
* Renders the Edge to a Cairo Context. Moves to the position of the Source,
* draws a straight line to the position of Target and flushes the changes
* to a Cairo Context.
*
* Params:
* c = is a reference of the Cairo Context to render the Edge to.
*/
void renderCairo (ref Context c) {
c.save ();
c.moveTo (source_.getCenterX, source_.getCenterY);
c.lineTo (target_.getCenterX, target_.getCenterY);
c.stroke ();
}
void renderOpenGL () {
}
/**
* Exports the Edge to an XML tree. It is passed an XML-Node and creates
* the XML description of the Edge as a child of it.
*
* Params:
* val = is the XML-Node to create the Edge XML description on.
*/
void toXML (ref Document!(char) val) {
val
.element (null, "Edge")
.attribute (null, "sourceId", Integer.toString (source_.id))
.attribute (null, "targetId", Integer.toString (target_.id));
}
void fromXML (char[] val) {
}
/* Getter and Setter Methods */
void source (N val) {
source_ = val;
}
N source () {
return source_;
}
void target (N val) {
target_ = val;
}
N target () {
return target_;
}
}
| D |
/**
* Contains a bitfield used by the GC.
*
* Copyright: Copyright Digital Mars 2005 - 2013.
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: Walter Bright, David Friedman, Sean Kelly
*/
/* Copyright Digital Mars 2005 - 2013.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
module gc.bits;
import core.bitop;
import core.stdc.string;
import core.stdc.stdlib;
private extern (C) void onOutOfMemoryError() @trusted /* pure dmd @@@BUG11461@@@ */ nothrow;
version (DigitalMars)
{
version = bitops;
}
else version (GNU)
{
// use the unoptimized version
}
else version (D_InlineAsm_X86)
{
version = Asm86;
}
struct GCBits
{
alias size_t wordtype;
enum BITS_PER_WORD = (wordtype.sizeof * 8);
enum BITS_SHIFT = (wordtype.sizeof == 8 ? 6 : 5);
enum BITS_MASK = (BITS_PER_WORD - 1);
enum BITS_1 = cast(wordtype)1;
wordtype* data = null;
size_t nwords = 0; // allocated words in data[] excluding sentinals
size_t nbits = 0; // number of bits in data[] excluding sentinals
void Dtor()
{
if (data)
{
free(data);
data = null;
}
}
invariant()
{
if (data)
{
assert(nwords * data[0].sizeof * 8 >= nbits);
}
}
void alloc(size_t nbits)
{
this.nbits = nbits;
nwords = (nbits + (BITS_PER_WORD - 1)) >> BITS_SHIFT;
data = cast(typeof(data[0])*)calloc(nwords + 2, data[0].sizeof);
if (!data)
onOutOfMemoryError();
}
wordtype test(size_t i)
in
{
assert(i < nbits);
}
body
{
version (none)
{
return core.bitop.bt(data + 1, i); // this is actually slower! don't use
}
else
{
//return (cast(bit *)(data + 1))[i];
return data[1 + (i >> BITS_SHIFT)] & (BITS_1 << (i & BITS_MASK));
}
}
void set(size_t i)
in
{
assert(i < nbits);
}
body
{
//(cast(bit *)(data + 1))[i] = 1;
data[1 + (i >> BITS_SHIFT)] |= (BITS_1 << (i & BITS_MASK));
}
void clear(size_t i)
in
{
assert(i < nbits);
}
body
{
//(cast(bit *)(data + 1))[i] = 0;
data[1 + (i >> BITS_SHIFT)] &= ~(BITS_1 << (i & BITS_MASK));
}
wordtype testClear(size_t i)
{
version (bitops)
{
return core.bitop.btr(data + 1, i); // this is faster!
}
else version (Asm86)
{
asm
{
naked ;
mov EAX,data[EAX] ;
mov ECX,i-4[ESP] ;
btr 4[EAX],ECX ;
sbb EAX,EAX ;
ret 4 ;
}
}
else
{
//result = (cast(bit *)(data + 1))[i];
//(cast(bit *)(data + 1))[i] = 0;
auto p = &data[1 + (i >> BITS_SHIFT)];
auto mask = (BITS_1 << (i & BITS_MASK));
auto result = *p & mask;
*p &= ~mask;
return result;
}
}
wordtype testSet(size_t i)
{
version (bitops)
{
return core.bitop.bts(data + 1, i); // this is faster!
}
else version (Asm86)
{
asm
{
naked ;
mov EAX,data[EAX] ;
mov ECX,i-4[ESP] ;
bts 4[EAX],ECX ;
sbb EAX,EAX ;
ret 4 ;
}
}
else
{
//result = (cast(bit *)(data + 1))[i];
//(cast(bit *)(data + 1))[i] = 0;
auto p = &data[1 + (i >> BITS_SHIFT)];
auto mask = (BITS_1 << (i & BITS_MASK));
auto result = *p & mask;
*p |= mask;
return result;
}
}
void zero()
{
memset(data + 1, 0, nwords * wordtype.sizeof);
}
void copy(GCBits *f)
in
{
assert(nwords == f.nwords);
}
body
{
memcpy(data + 1, f.data + 1, nwords * wordtype.sizeof);
}
wordtype* base()
in
{
assert(data);
}
body
{
return data + 1;
}
}
unittest
{
GCBits b;
b.alloc(786);
assert(b.test(123) == 0);
assert(b.testClear(123) == 0);
b.set(123);
assert(b.test(123) != 0);
assert(b.testClear(123) != 0);
assert(b.test(123) == 0);
b.set(785);
b.set(0);
assert(b.test(785) != 0);
assert(b.test(0) != 0);
b.zero();
assert(b.test(785) == 0);
assert(b.test(0) == 0);
GCBits b2;
b2.alloc(786);
b2.set(38);
b.copy(&b2);
assert(b.test(38) != 0);
b2.Dtor();
b.Dtor();
}
| D |
// PERMUTE_ARGS:
/**************************************************
1748 class template with stringof
**************************************************/
struct S1748(T) {}
static assert(S1748!int.stringof == "S1748!int");
class C1748(T) {}
static assert(C1748!int.stringof == "C1748!int");
/**************************************************
2354 pragma + single semicolon DeclarationBlock
**************************************************/
version(all)
pragma(msg, "true");
else
pragma(msg, "false");
/**************************************************
2438
**************************************************/
alias void delegate() Dg2438;
alias typeof(Dg2438.ptr) CP2438a;
alias typeof(Dg2438.funcptr) FP2438a;
static assert(is(CP2438a == void*));
static assert(is(FP2438a == void function()));
alias typeof(Dg2438.init.ptr) CP2438b;
alias typeof(Dg2438.init.funcptr) FP2438b;
static assert(is(CP2438b == void*));
static assert(is(FP2438b == void function()));
/**************************************************
4225
**************************************************/
struct Foo4225
{
enum x = Foo4225();
static Foo4225 opCall()
{
return Foo4225.init;
}
}
/**************************************************
5996 ICE(expression.c)
**************************************************/
template T5996(T)
{
auto bug5996() {
if (anyOldGarbage) {}
return 2;
}
}
static assert(!is(typeof(T5996!(int).bug5996())));
/**************************************************
8532 segfault(mtype.c) - type inference + pure
**************************************************/
auto segfault8532(Y, R ...)(R r, Y val) pure
{ return segfault8532(r, val); }
static assert(!is(typeof( segfault8532(1,2,3))));
/**************************************************
8982 ICE(ctfeexpr.c) __parameters with error in default value
**************************************************/
template ice8982(T)
{
void bug8982(ref const int v = 7){}
static if (is(typeof(bug8982) P == __parameters)) {
pragma(msg, ((P[0..1] g) => g[0])());
}
}
static assert(!is(ice8982!(int)));
/**************************************************
8801 ICE assigning to __ctfe
**************************************************/
static assert(!is(typeof( { bool __ctfe= true; })));
static assert(!is(typeof( { __ctfe |= true; })));
/**************************************************
5932 ICE(s2ir.c)
6675 ICE(glue.c)
**************************************************/
void bug3932(T)() {
static assert( 0 );
func5932( 7 );
}
void func5932(T)( T val ) {
void onStandardMsg() {
foreach( t; T ) { }
}
}
static assert(!is(typeof(
{
bug3932!(int)();
}()
)));
/**************************************************
6650 ICE(glue.c) or wrong-code
**************************************************/
auto bug6650(X)(X y)
{
X q;
q = "abc";
return y;
}
static assert(!is(typeof(bug6650!(int)(6))));
static assert(!is(typeof(bug6650!(int)(18))));
/**************************************************
14710 VC-built DMD crashes on templated variadic function IFTI
**************************************************/
void bug14710a(T)(T val, T[] arr...)
{
}
void bug14710b()
{
bug14710a("", "");
}
/**************************************************
6661 Templates instantiated only through is(typeof()) shouldn't cause errors
**************************************************/
template bug6661(Q)
{
int qutz(Q y)
{
Q q = "abc";
return 67;
}
static assert(qutz(13).sizeof!=299);
const Q blaz = 6;
}
static assert(!is(typeof(bug6661!(int).blaz)));
template bug6661x(Q)
{
int qutz(Q y)
{
Q q = "abc";
return 67;
}
}
// should pass, but doesn't in current
//static assert(!is(typeof(bug6661x!(int))));
/**************************************************
6599 ICE(constfold.c) or segfault
**************************************************/
string bug6599extraTest(string x) { return x ~ "abc"; }
template Bug6599(X)
{
class Orbit
{
Repository repository = Repository();
}
struct Repository
{
string fileProtocol = "file://";
string blah = bug6599extraTest("abc");
string source = fileProtocol ~ "/usr/local/orbit/repository";
}
}
static assert(!is(typeof(Bug6599!int)));
/**************************************************
8422 TypeTuple of tuples can't be read at compile time
**************************************************/
template TypeTuple8422(TList...)
{
alias TList TypeTuple8422;
}
struct S8422 { int x; }
void test8422()
{
enum a = S8422(1);
enum b = S8422(2);
enum c = [1,2,3];
foreach(t; TypeTuple8422!(b, a)) {
enum u = t;
}
foreach(t; TypeTuple8422!(c)) {
enum v = t;
}
}
/**************************************************
6096 ICE(el.c) with -O
**************************************************/
cdouble c6096;
int bug6096()
{
if (c6096) return 0;
return 1;
}
/**************************************************
7681 Segfault
**************************************************/
static assert( !is(typeof( (){
undefined ~= delegate(){}; return 7;
}())));
/**************************************************
8639 Buffer overflow
**************************************************/
void t8639(alias a)() {}
void bug8639() {
t8639!({auto r = -real.max;})();
}
/**************************************************
7751 Segfault
**************************************************/
static assert( !is(typeof( (){
bar[]r; r ~= [];
return 7;
}())));
/**************************************************
7639 Segfault
**************************************************/
static assert( !is(typeof( (){
enum foo =
[
str : "functions",
];
})));
/**************************************************
11991
**************************************************/
void main()
{
int Throwable;
int object;
try
{
}
catch
{
}
}
/**************************************************
11939
**************************************************/
void test11939()
{
scope(failure)
{
import object : Object;
}
throw new Exception("");
}
/**************************************************
5796
**************************************************/
template A(B) {
pragma(msg, "missing ;")
enum X = 0;
}
static assert(!is(typeof(A!(int))));
/**************************************************
6720
**************************************************/
void bug6720() { }
static assert(!is(typeof(
cast(bool)bug6720()
)));
/**************************************************
1099
**************************************************/
template Mix1099(int a) {
alias typeof(this) ThisType;
static assert (ThisType.init.tupleof.length == 2);
}
struct Foo1099 {
mixin Mix1099!(0);
int foo;
mixin Mix1099!(1);
int bar;
mixin Mix1099!(2);
}
/**************************************************
8788 - super() and return
**************************************************/
class B8788 {
this ( ) { }
}
class C8788(int test) : B8788
{
this ( int y )
{ // TESTS WHICH SHOULD PASS
static if (test == 1) {
if (y == 3) {
super();
return;
}
super();
return;
} else static if (test == 2) {
if (y == 3) {
super();
return;
}
super();
} else static if (test == 3) {
if (y > 3) {
if (y == 7) {
super();
return;
}
super();
return;
}
super();
} else static if (test == 4) {
if (y > 3) {
if (y == 7) {
super();
return;
}
else if (y> 5)
super();
else super();
return;
}
super();
}
// TESTS WHICH SHOULD FAIL
else static if (test == 5) {
if (y == 3) {
super();
return;
}
return; // no super
} else static if (test == 6) {
if (y > 3) {
if (y == 7) {
super();
return;
}
super();
}
super(); // two calls
} else static if (test == 7) {
if (y == 3) {
return; // no super
}
super();
} else static if (test == 8) {
if (y > 3) {
if (y == 7) {
return; // no super
}
super();
return;
}
super();
} else static if (test == 9) {
if (y > 3) {
if (y == 7) {
super();
return;
}
else if (y> 5)
super();
else return; // no super
return;
}
super();
}
}
}
static assert( is(typeof( { new C8788!(1)(0); } )));
static assert( is(typeof( { new C8788!(2)(0); } )));
static assert( is(typeof( { new C8788!(3)(0); } )));
static assert( is(typeof( { new C8788!(4)(0); } )));
static assert(!is(typeof( { new C8788!(5)(0); } )));
static assert(!is(typeof( { new C8788!(6)(0); } )));
static assert(!is(typeof( { new C8788!(7)(0); } )));
static assert(!is(typeof( { new C8788!(8)(0); } )));
static assert(!is(typeof( { new C8788!(9)(0); } )));
/**************************************************
4967, 7058
**************************************************/
enum Bug7058 bug7058 = { 1.5f, 2};
static assert(bug7058.z == 99);
struct Bug7058
{
float x = 0;
float y = 0;
float z = 99;
}
/***************************************************/
void test12094()
{
auto n = null;
int *a;
int[int] b;
int[] c;
auto u = true ? null : a;
auto v = true ? null : b;
auto w = true ? null : c;
auto x = true ? n : a;
auto y = true ? n : b;
auto z = true ? n : c;
a = n;
b = n;
c = n;
}
/***************************************************/
template test8163(T...)
{
struct Point
{
T fields;
}
enum N = 2; // N>=2 triggers the bug
extern Point[N] bar();
void foo()
{
Point[N] _ = bar();
}
}
alias test8163!(long) _l;
alias test8163!(double) _d;
alias test8163!(float, float) _ff;
alias test8163!(int, int) _ii;
alias test8163!(int, float) _if;
alias test8163!(ushort, ushort, ushort, ushort) _SSSS;
alias test8163!(ubyte, ubyte, ubyte, ubyte, ubyte, ubyte, ubyte, ubyte) _BBBBBBBB;
alias test8163!(ubyte, ubyte, ushort, float) _BBSf;
/***************************************************/
// 4757
auto foo4757(T)(T)
{
static struct Bar(T)
{
void spam()
{
foo4757(1);
}
}
return Bar!T();
}
void test4757()
{
foo4757(1);
}
/***************************************************/
// 9348
void test9348()
{
@property Object F(int E)() { return null; }
assert(F!0 !is null);
assert(F!0 !in [new Object():1]);
}
/***************************************************/
// 9690
@disable
{
void dep9690() {}
void test9690()
{
dep9690(); // OK
void inner()
{
dep9690(); // OK <- NG
}
}
}
/***************************************************/
// 9987
static if (is(object.ModuleInfo == struct))
{
struct ModuleInfo {}
static assert(!is(object.ModuleInfo == ModuleInfo));
static assert(object.ModuleInfo.sizeof != ModuleInfo.sizeof);
}
static if (is(object.ModuleInfo == class))
{
class ModuleInfo {}
static assert(!is(object.ModuleInfo == ModuleInfo));
static assert(__traits(classInstanceSize, object.ModuleInfo) !=
__traits(classInstanceSize, ModuleInfo));
}
/***************************************************/
// 10158
class Outer10158
{
static struct Inner
{
int f;
}
void test()
{
static assert( Inner.f .offsetof == 0); // OK <- NG
static assert((Inner.f).offsetof == 0); // OK
}
}
void test10158()
{
static assert(Outer10158.Inner.f.offsetof == 0); // OK
}
/***************************************************/
// 10326
class C10326
{
int val;
invariant { assert(val == 0); }
invariant() { assert(val == 0); }
}
/***************************************************/
// 11042
static if ((true || error) == true ) {} else { static assert(0); }
static if ((false && error) == false) {} else { static assert(0); }
static assert ((true || error) == true );
static assert ((false && error) == false);
int f11042a1()() if ((true || error) == true ) { return 0; } enum x11042a1 = f11042a1();
int f11042b1()() if ((false && error) == false) { return 0; } enum x11042b1 = f11042b1();
static if (is(typeof(true || error)) == false) {} else { static assert(0); }
static if (is(typeof(false && error)) == false) {} else { static assert(0); }
static assert (is(typeof(true || error)) == false);
static assert (is(typeof(false && error)) == false);
int f11042a2()() if (is(typeof(true || error)) == false) { return 0; } enum x11042a2 = f11042a2();
int f11042b2()() if (is(typeof(false && error)) == false) { return 0; } enum x11042b2 = f11042b2();
static if (__traits(compiles, true || error) == false) {} else { static assert(0); }
static if (__traits(compiles, false && error) == false) {} else { static assert(0); }
static assert (__traits(compiles, true || error) == false);
static assert (__traits(compiles, false && error) == false);
int f11042a3()() if (__traits(compiles, true || error) == false) { return 0; } enum x11042a3 = f11042a3();
int f11042b3()() if (__traits(compiles, false && error) == false) { return 0; } enum x11042b3 = f11042b3();
/***************************************************/
// 11554
enum E11554;
static assert(is(E11554 == enum));
struct Bro11554(N...) {}
static assert(!is(E11554 unused : Bro11554!M, M...));
/***************************************************/
// 12302
template isCallable12302(T...)
if (T.length == 1)
{
static if (is(typeof(& T[0].opCall) == delegate))
enum bool isCallable12302 = true;
else
static if (is(typeof(& T[0].opCall) V : V*) && is(V == function))
enum bool isCallable12302 = true;
else
enum bool isCallable12302 = true;
}
class A12302
{
struct X {}
X x;
auto opDispatch(string s, TArgs...)(TArgs args)
{
mixin("return x."~s~"(args);");
}
}
A12302 func12302() { return null; }
enum b12302 = isCallable12302!func12302;
/***************************************************/
// 12476
template A12476(T) { }
struct S12476(T)
{
alias B = A12476!T;
}
class C12476(T)
{
alias B = A12476!T;
}
struct Bar12476(alias Foo)
{
Foo!int baz;
alias baz this;
}
alias Identity12476(alias A) = A;
alias sb12476 = Identity12476!(Bar12476!S12476.B);
alias cb12476 = Identity12476!(Bar12476!C12476.B);
static assert(__traits(isSame, sb12476, A12476!int));
static assert(__traits(isSame, cb12476, A12476!int));
/***************************************************/
// 12506
import imports.a12506;
private bool[9] r12506a = f12506!(i => true)(); // OK
private immutable bool[9] r12506b = f12506!(i => true)(); // OK <- error
/***************************************************/
// 12555
class A12555(T)
{
Undef12555 error;
}
static assert(!__traits(compiles, {
class C : A12555!C { }
}));
/***************************************************/
// 11622
class A11622(T)
{
B11622!T foo()
{
return new B11622!T;
}
}
class B11622(T) : T
{
}
static assert(!__traits(compiles, {
class C : A11622!C { }
}));
/***************************************************/
// 12688
void writeln12688(A...)(A) {}
struct S12688
{
int foo() @property { return 1; }
}
void test12688()
{
S12688 s;
s.foo.writeln12688; // ok
(s.foo).writeln12688; // ok <- ng
}
/***************************************************/
// 12703
struct S12703
{
this(int) {}
}
final class C12703
{
S12703 s = S12703(1);
}
/***************************************************/
// 12799
struct A12799
{
int a;
enum C = A12799.sizeof;
enum D = C; // OK <- Error
}
/***************************************************/
// 13236
pragma(msg, is(typeof({ struct S { S x; } })));
/***************************************************/
// 13280
struct S13280
{
alias U = ubyte;
alias T1 = ubyte[this.sizeof]; // ok
alias T2 = const U[this.sizeof]; // ok
alias T3 = const ubyte[this.sizeof]; // ok <- error
}
/***************************************************/
// 13481
mixin template Mix13481(void function() callback)
{
static this()
{
callback();
}
}
/***************************************************/
// 13564
class E13564(T)
{
int pos;
}
class C13564(T)
{
struct S
{
~this()
{
C13564!int c;
c.element.pos = 0;
}
}
E13564!T element;
}
void test13564()
{
auto c = new C13564!int();
}
/***************************************************/
// 14166
struct Proxy14166(T)
{
T* ptr;
ref deref() { return *ptr; }
alias deref this;
}
struct Test14166
{
auto opIndex() { return this; }
auto opIndex(int) { return 1; }
}
template Elem14166a(R) { alias Elem14166a = typeof(R.init[][0]); }
template Elem14166b(R) { alias Elem14166b = typeof(R.init[0]); }
void test14166()
{
alias T = Proxy14166!Test14166;
static assert(is(Elem14166a!T == int)); // rejects-valid case
static assert(is(Elem14166b!T == int)); // regression case
}
// other related cases
struct S14166
{
int x;
double y;
int[] a;
S14166 opUnary(string op : "++")() { return this; }
}
S14166 s14166;
struct X14166 { this(int) { } X14166 opAssign(int) { return this; } }
X14166[int] aa14166;
X14166[int] makeAA14166() { return aa14166; }
struct Tup14166(T...) { T field; alias field this; }
Tup14166!(int, int) tup14166;
Tup14166!(int, int) makeTup14166() { return tup14166; }
pragma(msg, typeof((s14166.x += 1) = 2)); // ok <- error
pragma(msg, typeof(s14166.a.length += 2)); // ok <- error
pragma(msg, typeof(s14166++)); // ok <- error
pragma(msg, typeof(s14166.x ^^ 2)); // ok <- error
pragma(msg, typeof(s14166.y ^^= 2.5)); // ok <- error
pragma(msg, typeof(makeAA14166()[0] = 1)); // ok <- error
pragma(msg, typeof(tup14166.field = makeTup14166())); // ok <- error
/***************************************************/
// 14388
@property immutable(T)[] idup14388(T)(T[] a)
{
alias U = immutable(T);
U[] res;
foreach (ref e; a)
res ~= e;
return res;
}
struct Data14388(A14388 a)
{
auto foo()
{
return Data14388!a.init; // [B]
}
}
struct A14388
{
struct Item {}
immutable(Item)[] items;
this(int dummy)
{
items = [Item()].idup14388;
}
}
void test14388()
{
auto test = Data14388!(A14388(42)).init.foo(); // [A]
/*
* A(42) is interpreter to a struct literal A([immutable(Item)()]).
* The internal VarDeclaration with STCmanifest for the Data's template parameteter 'a'
* calls syntaxCopy() on its ((ExpInitializer *)init)->exp in VarDeclaration::semantic(),
* and 'immutable(Item)()'->syntaxCopy() had incorrectly removed the qualifier.
* Then, the arguments of two Data template instances at [A] and [B] had become unmatch,
* and the second instantiation had created the AST duplication.
*/
}
/***************************************************/
// 15163
void function() func15164(int[] arr)
{
return () { };
}
void test15163()
{
auto arr = [[0]];
func15164(arr[0])();
}
/**************************************************
3438
**************************************************/
import core.vararg;
struct S3438_1 { this(int x, int y = 1) { } }
struct S3438_2 { this(int x, ...) { } }
struct S3438_3 { this(int x, int[] arr...) { } }
struct S3438_4 { this(...) { } }
struct S3438_5 { this(int[] arr...) { } }
/***************************************************/
// 15362
void func15362()
{
assert(true);
assert(true,);
assert(true, "So true");
assert(true, "Very, very true",);
static assert(true);
static assert(true,);
static assert(true, "So true");
static assert(true, "Very, very true",);
}
/***************************************************/
// 15799
interface I15799
{
void funA();
void funB(int n)
in {
assert(n);
}; // Semicolon is not a part of function declaration. It's an empty declaration.
}
| D |
module hunt.wechat.bean.datacube.getcardbizuininfo.BizuinInfoResult;
import hunt.collection.List;
import hunt.wechat.bean.BaseResult;
/**
* 拉取卡券概况数据接口-响应对象
*
*
*
*/
class BizuinInfoResult : BaseResult {
/**
* 记录列表
*/
List!(BizuinInfoResultInfo) list;
public List!(BizuinInfoResultInfo) getList() {
return list;
}
public void setList(List!(BizuinInfoResultInfo) list) {
this.list = list;
}
}
| D |
a list of employees and their salaries
the total amount of money paid in wages
the department that determines the amounts of wage or salary due to each employee
| D |
/Users/yingyuhang/Desktop/学习/Rust-numerical-library/Numerical-Lib/target/release/build/memoffset-3f398a1ed2b50b5f/build_script_build-3f398a1ed2b50b5f: /Users/yingyuhang/.cargo/registry/src/github.com-1ecc6299db9ec823/memoffset-0.5.5/build.rs
/Users/yingyuhang/Desktop/学习/Rust-numerical-library/Numerical-Lib/target/release/build/memoffset-3f398a1ed2b50b5f/build_script_build-3f398a1ed2b50b5f.d: /Users/yingyuhang/.cargo/registry/src/github.com-1ecc6299db9ec823/memoffset-0.5.5/build.rs
/Users/yingyuhang/.cargo/registry/src/github.com-1ecc6299db9ec823/memoffset-0.5.5/build.rs:
| D |
a work produced by hand labor
a craft that requires skillful hands
| D |
// *************************************************************************
// Kapitel 1
// *************************************************************************
// *************************************************************************
// EXIT
// *************************************************************************
INSTANCE Info_grd_13_EXIT(C_INFO)
{
// npc wird in B_AssignAmbientInfos_grd_13 (s.u.) jeweils gesetzt
nr = 999;
condition = Info_grd_13_EXIT_Condition;
information = Info_grd_13_EXIT_Info;
permanent = 1;
description = DIALOG_ENDE;
};
FUNC INT Info_grd_13_EXIT_Condition()
{
return 1;
};
FUNC VOID Info_grd_13_EXIT_Info()
{
AI_StopProcessInfos (self);
};
// *************************************************************************
// Einer von Euch werden
// *************************************************************************
INSTANCE Info_grd_13_EinerVonEuchWerden (C_INFO) // E1
{
nr = 1;
condition = Info_grd_13_EinerVonEuchWerden_Condition;
information = Info_grd_13_EinerVonEuchWerden_Info;
permanent = 1;
description = "Ich will Gardist werden.";
};
FUNC INT Info_grd_13_EinerVonEuchWerden_Condition()
{
if (Gardist_Dabei == FALSE)
&& (Erzbaron_Dabei == FALSE)
{
return TRUE;
};
};
FUNC VOID Info_grd_13_EinerVonEuchWerden_Info()
{
AI_Output(hero,self,"Info_grd_13_EinerVonEuchWerden_15_00"); //Ich will Gardist werden.
AI_Output(self,hero,"Info_grd_13_EinerVonEuchWerden_13_01"); //Da hast du aber noch einiges vor dir, Junge!
};
// *************************************************************************
// Wichtige Personen
// *************************************************************************
INSTANCE Info_grd_13_WichtigePersonen(C_INFO)
{
nr = 1;
condition = Info_grd_13_WichtigePersonen_Condition;
information = Info_grd_13_WichtigePersonen_Info;
permanent = 1;
description = "Wer hat hier das Sagen?";
};
FUNC INT Info_grd_13_WichtigePersonen_Condition()
{
return 1;
};
FUNC VOID Info_grd_13_WichtigePersonen_Info()
{
AI_Output(hero,self,"Info_grd_13_WichtigePersonen_15_00"); //Wer hat hier das Sagen?
AI_Output(self,hero,"Info_grd_13_WichtigePersonen_13_01"); //Ich hab hier das Sagen. Und ich sage: Sei vorsichtig, was du sagst, Junge!
};
// *************************************************************************
// Das Lager (Orts-Infos)
// *************************************************************************
INSTANCE Info_grd_13_DasLager(C_INFO)
{
nr = 1;
condition = Info_grd_13_DasLager_Condition;
information = Info_grd_13_DasLager_Info;
permanent = 1;
description = "Wie komme ich in die Burg?";
};
FUNC INT Info_grd_13_DasLager_Condition()
{
if (Schatten_Dabei == FALSE)
&& (Gardist_Dabei == FALSE)
&& (Erzbaron_Dabei == FALSE)
{
return 1;
};
};
FUNC VOID Info_grd_13_DasLager_Info()
{
AI_Output(hero,self,"Info_grd_13_DasLager_15_00"); //Wie komme ich in die Burg?
AI_Output(self,hero,"Info_grd_13_DasLager_13_01"); //Das ist nicht so leicht. Dazu musst du nämlich deine Beine benutzen.
AI_Output(self,hero,"Info_grd_13_DasLager_13_02"); //Dann kommt aber der schwierigere Teil: Durch das Tor gehen.
AI_Output(hero,self,"Info_grd_13_DasLager_15_03"); //Sehr lustig.
};
INSTANCE Info_Mod_GRD_13_Pickpocket (C_INFO)
{
nr = 6;
condition = Info_Mod_GRD_13_Pickpocket_Condition;
information = Info_Mod_GRD_13_Pickpocket_Info;
permanent = 1;
important = 0;
description = Pickpocket_150;
};
FUNC INT Info_Mod_GRD_13_Pickpocket_Condition()
{
C_Beklauen (120+r_max(30), ItMi_Gold, 400+r_max(100));
};
FUNC VOID Info_Mod_GRD_13_Pickpocket_Info()
{
Info_ClearChoices (Info_Mod_GRD_13_Pickpocket);
Info_AddChoice (Info_Mod_GRD_13_Pickpocket, DIALOG_BACK, Info_Mod_GRD_13_Pickpocket_BACK);
Info_AddChoice (Info_Mod_GRD_13_Pickpocket, DIALOG_PICKPOCKET, Info_Mod_GRD_13_Pickpocket_DoIt);
};
FUNC VOID Info_Mod_GRD_13_Pickpocket_BACK()
{
Info_ClearChoices (Info_Mod_GRD_13_Pickpocket);
};
FUNC VOID Info_Mod_GRD_13_Pickpocket_DoIt()
{
if (B_Beklauen() == TRUE)
{
Info_ClearChoices (Info_Mod_GRD_13_Pickpocket);
}
else
{
Info_ClearChoices (Info_Mod_GRD_13_Pickpocket);
Info_AddChoice (Info_Mod_GRD_13_Pickpocket, DIALOG_PP_BESCHIMPFEN, Info_Mod_GRD_13_Pickpocket_Beschimpfen);
Info_AddChoice (Info_Mod_GRD_13_Pickpocket, DIALOG_PP_BESTECHUNG, Info_Mod_GRD_13_Pickpocket_Bestechung);
Info_AddChoice (Info_Mod_GRD_13_Pickpocket, DIALOG_PP_HERAUSREDEN, Info_Mod_GRD_13_Pickpocket_Herausreden);
};
};
FUNC VOID Info_Mod_GRD_13_Pickpocket_Beschimpfen()
{
B_Say (hero, self, "$PICKPOCKET_BESCHIMPFEN");
B_Say (self, hero, "$DIRTYTHIEF");
Info_ClearChoices (Info_Mod_GRD_13_Pickpocket);
AI_StopProcessInfos (self);
B_Attack (self, hero, AR_Theft, 1);
};
FUNC VOID Info_Mod_GRD_13_Pickpocket_Bestechung()
{
B_Say (hero, self, "$PICKPOCKET_BESTECHUNG");
var int rnd; rnd = r_max(99);
if (rnd < 25)
|| ((rnd >= 25) && (rnd < 50) && (Npc_HasItems(hero, ItMi_Gold) < 50))
|| ((rnd >= 50) && (rnd < 75) && (Npc_HasItems(hero, ItMi_Gold) < 100))
|| ((rnd >= 75) && (rnd < 100) && (Npc_HasItems(hero, ItMi_Gold) < 200))
{
B_Say (self, hero, "$DIRTYTHIEF");
Info_ClearChoices (Info_Mod_GRD_13_Pickpocket);
AI_StopProcessInfos (self);
B_Attack (self, hero, AR_Theft, 1);
}
else
{
if (rnd >= 75)
{
B_GiveInvItems (hero, self, ItMi_Gold, 200);
}
else if (rnd >= 50)
{
B_GiveInvItems (hero, self, ItMi_Gold, 100);
}
else if (rnd >= 25)
{
B_GiveInvItems (hero, self, ItMi_Gold, 50);
};
B_Say (self, hero, "$PICKPOCKET_BESTECHUNG_01");
Info_ClearChoices (Info_Mod_GRD_13_Pickpocket);
AI_StopProcessInfos (self);
};
};
FUNC VOID Info_Mod_GRD_13_Pickpocket_Herausreden()
{
B_Say (hero, self, "$PICKPOCKET_HERAUSREDEN");
if (r_max(99) < Mod_Verhandlungsgeschick)
{
B_Say (self, hero, "$PICKPOCKET_HERAUSREDEN_01");
Info_ClearChoices (Info_Mod_GRD_13_Pickpocket);
}
else
{
B_Say (self, hero, "$PICKPOCKET_HERAUSREDEN_02");
};
};
// *************************************************************************
// -------------------------------------------------------------------------
FUNC VOID B_AssignAmbientInfos_grd_13(var c_NPC slf)
{
Info_grd_13_EXIT.npc = Hlp_GetInstanceID(slf);
Info_grd_13_EinerVonEuchWerden.npc = Hlp_GetInstanceID(slf);
Info_grd_13_WichtigePersonen.npc = Hlp_GetInstanceID(slf);
Info_grd_13_DasLager.npc = Hlp_GetInstanceID(slf);
Info_Mod_GRD_13_Pickpocket.npc = Hlp_GetInstanceID(slf);
};
| D |
/// Generate by tools
module com.thoughtworks.xstream.annotations.XStreamImplicit;
import java.lang.exceptions;
public class XStreamImplicit
{
public this()
{
implMissing();
}
}
| D |
// Written in the D programming language.
/**
Functions that manipulate other functions.
Macros:
WIKI = Phobos/StdFunctional
Copyright: Copyright Andrei Alexandrescu 2008 - 2009.
License: $(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: $(WEB erdani.org, Andrei Alexandrescu)
Source: $(PHOBOSSRC std/_functional.d)
*/
/*
Copyright Andrei Alexandrescu 2008 - 2009.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
module std.functional;
import std.traits, std.typetuple;
private template needOpCallAlias(alias fun)
{
/* Determine whether or not unaryFun and binaryFun need to alias to fun or
* fun.opCall. Basically, fun is a function object if fun(...) compiles. We
* want is(unaryFun!fun) (resp., is(binaryFun!fun)) to be true if fun is
* any function object. There are 4 possible cases:
*
* 1) fun is the type of a function object with static opCall;
* 2) fun is an instance of a function object with static opCall;
* 3) fun is the type of a function object with non-static opCall;
* 4) fun is an instance of a function object with non-static opCall.
*
* In case (1), is(unaryFun!fun) should compile, but does not if unaryFun
* aliases itself to fun, because typeof(fun) is an error when fun itself
* is a type. So it must be aliased to fun.opCall instead. All other cases
* should be aliased to fun directly.
*/
static if (is(typeof(fun.opCall) == function))
{
import std.traits : ParameterTypeTuple;
enum needOpCallAlias = !is(typeof(fun)) && __traits(compiles, () {
return fun(ParameterTypeTuple!fun.init);
});
}
else
enum needOpCallAlias = false;
}
/**
Transforms a string representing an expression into a unary
function. The string must either use symbol name $(D a) as
the parameter or provide the symbol via the $(D parmName) argument.
If $(D fun) is not a string, $(D unaryFun) aliases itself away to $(D fun).
*/
template unaryFun(alias fun, string parmName = "a")
{
static if (is(typeof(fun) : string))
{
static if (!fun._ctfeMatchUnary(parmName))
{
import std.traits, std.typecons, std.typetuple;
import std.algorithm, std.conv, std.exception, std.math, std.range, std.string;
}
auto unaryFun(ElementType)(auto ref ElementType __a)
{
mixin("alias " ~ parmName ~ " = __a ;");
return mixin(fun);
}
}
else static if (needOpCallAlias!fun)
{
// Issue 9906
alias unaryFun = fun.opCall;
}
else
{
alias unaryFun = fun;
}
}
///
unittest
{
// Strings are compiled into functions:
alias isEven = unaryFun!("(a & 1) == 0");
assert(isEven(2) && !isEven(1));
}
/+ Undocumented, will be removed December 2014+/
deprecated("Parameter byRef is obsolete. Please call unaryFun!(fun, parmName) directly.")
template unaryFun(alias fun, bool byRef, string parmName = "a")
{
alias unaryFun = unaryFun!(fun, parmName);
}
unittest
{
static int f1(int a) { return a + 1; }
static assert(is(typeof(unaryFun!(f1)(1)) == int));
assert(unaryFun!(f1)(41) == 42);
int f2(int a) { return a + 1; }
static assert(is(typeof(unaryFun!(f2)(1)) == int));
assert(unaryFun!(f2)(41) == 42);
assert(unaryFun!("a + 1")(41) == 42);
//assert(unaryFun!("return a + 1;")(41) == 42);
int num = 41;
assert(unaryFun!("a + 1", true)(num) == 42);
// Issue 9906
struct Seen
{
static bool opCall(int n) { return true; }
}
static assert(needOpCallAlias!Seen);
static assert(is(typeof(unaryFun!Seen(1))));
assert(unaryFun!Seen(1));
Seen s;
static assert(!needOpCallAlias!s);
static assert(is(typeof(unaryFun!s(1))));
assert(unaryFun!s(1));
struct FuncObj
{
bool opCall(int n) { return true; }
}
FuncObj fo;
static assert(!needOpCallAlias!fo);
static assert(is(typeof(unaryFun!fo)));
assert(unaryFun!fo(1));
// Function object with non-static opCall can only be called with an
// instance, not with merely the type.
static assert(!is(typeof(unaryFun!FuncObj)));
}
/**
Transforms a string representing an expression into a binary function. The
string must either use symbol names $(D a) and $(D b) as the parameters or
provide the symbols via the $(D parm1Name) and $(D parm2Name) arguments.
If $(D fun) is not a string, $(D binaryFun) aliases itself away to
$(D fun).
*/
template binaryFun(alias fun, string parm1Name = "a",
string parm2Name = "b")
{
static if (is(typeof(fun) : string))
{
static if (!fun._ctfeMatchBinary(parm1Name, parm2Name))
{
import std.traits, std.typecons, std.typetuple;
import std.algorithm, std.conv, std.exception, std.math, std.range, std.string;
}
auto binaryFun(ElementType1, ElementType2)
(auto ref ElementType1 __a, auto ref ElementType2 __b)
{
mixin("alias "~parm1Name~" = __a ;");
mixin("alias "~parm2Name~" = __b ;");
return mixin(fun);
}
}
else static if (needOpCallAlias!fun)
{
// Issue 9906
alias binaryFun = fun.opCall;
}
else
{
alias binaryFun = fun;
}
}
///
unittest
{
alias less = binaryFun!("a < b");
assert(less(1, 2) && !less(2, 1));
alias greater = binaryFun!("a > b");
assert(!greater("1", "2") && greater("2", "1"));
}
unittest
{
static int f1(int a, string b) { return a + 1; }
static assert(is(typeof(binaryFun!(f1)(1, "2")) == int));
assert(binaryFun!(f1)(41, "a") == 42);
string f2(int a, string b) { return b ~ "2"; }
static assert(is(typeof(binaryFun!(f2)(1, "1")) == string));
assert(binaryFun!(f2)(1, "4") == "42");
assert(binaryFun!("a + b")(41, 1) == 42);
//@@BUG
//assert(binaryFun!("return a + b;")(41, 1) == 42);
// Issue 9906
struct Seen
{
static bool opCall(int x, int y) { return true; }
}
static assert(is(typeof(binaryFun!Seen)));
assert(binaryFun!Seen(1,1));
struct FuncObj
{
bool opCall(int x, int y) { return true; }
}
FuncObj fo;
static assert(!needOpCallAlias!fo);
static assert(is(typeof(binaryFun!fo)));
assert(unaryFun!fo(1,1));
// Function object with non-static opCall can only be called with an
// instance, not with merely the type.
static assert(!is(typeof(binaryFun!FuncObj)));
}
// skip all ASCII chars except a..z, A..Z, 0..9, '_' and '.'.
private uint _ctfeSkipOp(ref string op)
{
if (!__ctfe) assert(false);
import std.ascii : isASCII, isAlphaNum;
immutable oldLength = op.length;
while (op.length)
{
immutable front = op[0];
if(front.isASCII() && !(front.isAlphaNum() || front == '_' || front == '.'))
op = op[1..$];
else
break;
}
return oldLength != op.length;
}
// skip all digits
private uint _ctfeSkipInteger(ref string op)
{
if (!__ctfe) assert(false);
import std.ascii : isDigit;
immutable oldLength = op.length;
while (op.length)
{
immutable front = op[0];
if(front.isDigit())
op = op[1..$];
else
break;
}
return oldLength != op.length;
}
// skip name
private uint _ctfeSkipName(ref string op, string name)
{
if (!__ctfe) assert(false);
if (op.length >= name.length && op[0..name.length] == name)
{
op = op[name.length..$];
return 1;
}
return 0;
}
// returns 1 if $(D fun) is trivial unary function
private uint _ctfeMatchUnary(string fun, string name)
{
if (!__ctfe) assert(false);
import std.stdio;
fun._ctfeSkipOp();
for (;;)
{
immutable h = fun._ctfeSkipName(name) + fun._ctfeSkipInteger();
if (h == 0)
{
fun._ctfeSkipOp();
break;
}
else if (h == 1)
{
if(!fun._ctfeSkipOp())
break;
}
else
return 0;
}
return fun.length == 0;
}
unittest
{
static assert(!_ctfeMatchUnary("sqrt(ё)", "ё"));
static assert(!_ctfeMatchUnary("ё.sqrt", "ё"));
static assert(!_ctfeMatchUnary(".ё+ё", "ё"));
static assert(!_ctfeMatchUnary("_ё+ё", "ё"));
static assert(!_ctfeMatchUnary("ёё", "ё"));
static assert(_ctfeMatchUnary("a+a", "a"));
static assert(_ctfeMatchUnary("a + 10", "a"));
static assert(_ctfeMatchUnary("4 == a", "a"));
static assert(_ctfeMatchUnary("2==a", "a"));
static assert(_ctfeMatchUnary("1 != a", "a"));
static assert(_ctfeMatchUnary("a!=4", "a"));
static assert(_ctfeMatchUnary("a< 1", "a"));
static assert(_ctfeMatchUnary("434 < a", "a"));
static assert(_ctfeMatchUnary("132 > a", "a"));
static assert(_ctfeMatchUnary("123 >a", "a"));
static assert(_ctfeMatchUnary("a>82", "a"));
static assert(_ctfeMatchUnary("ё>82", "ё"));
static assert(_ctfeMatchUnary("ё[ё(ё)]", "ё"));
static assert(_ctfeMatchUnary("ё[21]", "ё"));
}
// returns 1 if $(D fun) is trivial binary function
private uint _ctfeMatchBinary(string fun, string name1, string name2)
{
if (!__ctfe) assert(false);
fun._ctfeSkipOp();
for (;;)
{
immutable h = fun._ctfeSkipName(name1) + fun._ctfeSkipName(name2) + fun._ctfeSkipInteger();
if (h == 0)
{
fun._ctfeSkipOp();
break;
}
else if (h == 1)
{
if(!fun._ctfeSkipOp())
break;
}
else
return 0;
}
return fun.length == 0;
}
unittest {
static assert(!_ctfeMatchBinary("sqrt(ё)", "ё", "b"));
static assert(!_ctfeMatchBinary("ё.sqrt", "ё", "b"));
static assert(!_ctfeMatchBinary(".ё+ё", "ё", "b"));
static assert(!_ctfeMatchBinary("_ё+ё", "ё", "b"));
static assert(!_ctfeMatchBinary("ёё", "ё", "b"));
static assert(_ctfeMatchBinary("a+a", "a", "b"));
static assert(_ctfeMatchBinary("a + 10", "a", "b"));
static assert(_ctfeMatchBinary("4 == a", "a", "b"));
static assert(_ctfeMatchBinary("2==a", "a", "b"));
static assert(_ctfeMatchBinary("1 != a", "a", "b"));
static assert(_ctfeMatchBinary("a!=4", "a", "b"));
static assert(_ctfeMatchBinary("a< 1", "a", "b"));
static assert(_ctfeMatchBinary("434 < a", "a", "b"));
static assert(_ctfeMatchBinary("132 > a", "a", "b"));
static assert(_ctfeMatchBinary("123 >a", "a", "b"));
static assert(_ctfeMatchBinary("a>82", "a", "b"));
static assert(_ctfeMatchBinary("ё>82", "ё", "q"));
static assert(_ctfeMatchBinary("ё[ё(10)]", "ё", "q"));
static assert(_ctfeMatchBinary("ё[21]", "ё", "q"));
static assert(!_ctfeMatchBinary("sqrt(ё)+b", "b", "ё"));
static assert(!_ctfeMatchBinary("ё.sqrt-b", "b", "ё"));
static assert(!_ctfeMatchBinary(".ё+b", "b", "ё"));
static assert(!_ctfeMatchBinary("_b+ё", "b", "ё"));
static assert(!_ctfeMatchBinary("ba", "b", "a"));
static assert(_ctfeMatchBinary("a+b", "b", "a"));
static assert(_ctfeMatchBinary("a + b", "b", "a"));
static assert(_ctfeMatchBinary("b == a", "b", "a"));
static assert(_ctfeMatchBinary("b==a", "b", "a"));
static assert(_ctfeMatchBinary("b != a", "b", "a"));
static assert(_ctfeMatchBinary("a!=b", "b", "a"));
static assert(_ctfeMatchBinary("a< b", "b", "a"));
static assert(_ctfeMatchBinary("b < a", "b", "a"));
static assert(_ctfeMatchBinary("b > a", "b", "a"));
static assert(_ctfeMatchBinary("b >a", "b", "a"));
static assert(_ctfeMatchBinary("a>b", "b", "a"));
static assert(_ctfeMatchBinary("ё>b", "b", "ё"));
static assert(_ctfeMatchBinary("b[ё(-1)]", "b", "ё"));
static assert(_ctfeMatchBinary("ё[-21]", "b", "ё"));
}
//undocumented
template safeOp(string S)
if (S=="<"||S==">"||S=="<="||S==">="||S=="=="||S=="!=")
{
private bool unsafeOp(ElementType1, ElementType2)(ElementType1 a, ElementType2 b) pure
if (isIntegral!ElementType1 && isIntegral!ElementType2)
{
alias T = CommonType!(ElementType1, ElementType2);
return mixin("cast(T)a "~S~" cast(T)b");
}
bool safeOp(T0, T1)(auto ref T0 a, auto ref T1 b)
{
static if (isIntegral!T0 && isIntegral!T1 &&
(mostNegative!T0 < 0) != (mostNegative!T1 < 0))
{
static if (S == "<=" || S == "<")
{
static if (mostNegative!T0 < 0)
immutable result = a < 0 || unsafeOp(a, b);
else
immutable result = b >= 0 && unsafeOp(a, b);
}
else
{
static if (mostNegative!T0 < 0)
immutable result = a >= 0 && unsafeOp(a, b);
else
immutable result = b < 0 || unsafeOp(a, b);
}
}
else
{
static assert (is(typeof(mixin("a "~S~" b"))),
"Invalid arguments: Cannot compare types " ~ T0.stringof ~ " and " ~ T1.stringof ~ ".");
immutable result = mixin("a "~S~" b");
}
return result;
}
}
unittest //check user defined types
{
import std.algorithm : equal;
struct Foo
{
int a;
auto opEquals(Foo foo)
{
return a == foo.a;
}
}
assert(safeOp!"!="(Foo(1), Foo(2)));
}
/**
Predicate that returns $(D_PARAM a < b).
Correctly compares signed and unsigned integers, ie. -1 < 2U.
*/
alias lessThan = safeOp!"<";
pure @safe @nogc nothrow unittest
{
assert(lessThan(2, 3));
assert(lessThan(2U, 3U));
assert(lessThan(2, 3.0));
assert(lessThan(-2, 3U));
assert(lessThan(2, 3U));
assert(!lessThan(3U, -2));
assert(!lessThan(3U, 2));
assert(!lessThan(0, 0));
assert(!lessThan(0U, 0));
assert(!lessThan(0, 0U));
}
/**
Predicate that returns $(D_PARAM a > b).
Correctly compares signed and unsigned integers, ie. 2U > -1.
*/
alias greaterThan = safeOp!">";
unittest
{
assert(!greaterThan(2, 3));
assert(!greaterThan(2U, 3U));
assert(!greaterThan(2, 3.0));
assert(!greaterThan(-2, 3U));
assert(!greaterThan(2, 3U));
assert(greaterThan(3U, -2));
assert(greaterThan(3U, 2));
assert(!greaterThan(0, 0));
assert(!greaterThan(0U, 0));
assert(!greaterThan(0, 0U));
}
/**
Predicate that returns $(D_PARAM a == b).
Correctly compares signed and unsigned integers, ie. !(-1 == ~0U).
*/
alias equalTo = safeOp!"==";
unittest
{
assert(equalTo(0U, 0));
assert(equalTo(0, 0U));
assert(!equalTo(-1, ~0U));
}
/**
N-ary predicate that reverses the order of arguments, e.g., given
$(D pred(a, b, c)), returns $(D pred(c, b, a)).
*/
template reverseArgs(alias pred)
{
auto reverseArgs(Args...)(auto ref Args args)
if (is(typeof(pred(Reverse!args))))
{
return pred(Reverse!args);
}
}
unittest
{
alias gt = reverseArgs!(binaryFun!("a < b"));
assert(gt(2, 1) && !gt(1, 1));
int x = 42;
bool xyz(int a, int b) { return a * x < b / x; }
auto foo = &xyz;
foo(4, 5);
alias zyx = reverseArgs!(foo);
assert(zyx(5, 4) == foo(4, 5));
int abc(int a, int b, int c) { return a * b + c; }
alias cba = reverseArgs!abc;
assert(abc(91, 17, 32) == cba(32, 17, 91));
int a(int a) { return a * 2; }
alias _a = reverseArgs!a;
assert(a(2) == _a(2));
int b() { return 4; }
alias _b = reverseArgs!b;
assert(b() == _b());
}
/**
Binary predicate that reverses the order of arguments, e.g., given
$(D pred(a, b)), returns $(D pred(b, a)).
*/
template binaryReverseArgs(alias pred)
{
auto binaryReverseArgs(ElementType1, ElementType2)
(auto ref ElementType1 a, auto ref ElementType2 b)
{
return pred(b, a);
}
}
unittest
{
alias gt = binaryReverseArgs!(binaryFun!("a < b"));
assert(gt(2, 1) && !gt(1, 1));
int x = 42;
bool xyz(int a, int b) { return a * x < b / x; }
auto foo = &xyz;
foo(4, 5);
alias zyx = binaryReverseArgs!(foo);
assert(zyx(5, 4) == foo(4, 5));
}
/**
Negates predicate $(D pred).
*/
template not(alias pred)
{
auto not(T...)(auto ref T args)
{
static if (is(typeof(!pred(args))))
return !pred(args);
else static if (T.length == 1)
return !unaryFun!pred(args);
else static if (T.length == 2)
return !binaryFun!pred(args);
else
static assert(0);
}
}
///
unittest
{
import std.functional;
import std.algorithm : find;
import std.uni : isWhite;
string a = " Hello, world!";
assert(find!(not!isWhite)(a) == "Hello, world!");
}
unittest
{
assert(not!"a != 5"(5));
assert(not!"a != b"(5, 5));
assert(not!(() => false)());
assert(not!(a => a != 5)(5));
assert(not!((a, b) => a != b)(5, 5));
assert(not!((a, b, c) => a * b * c != 125 )(5, 5, 5));
}
/**
$(LINK2 http://en.wikipedia.org/wiki/Partial_application, Partially
applies) $(D_PARAM fun) by tying its first argument to $(D_PARAM arg).
Example:
----
int fun(int a, int b) { return a + b; }
alias partial!(fun, 5) fun5;
assert(fun5(6) == 11);
----
Note that in most cases you'd use an alias instead of a value
assignment. Using an alias allows you to partially evaluate template
functions without committing to a particular type of the function.
*/
template partial(alias fun, alias arg)
{
static if (is(typeof(fun) == delegate) || is(typeof(fun) == function))
{
ReturnType!fun partial(ParameterTypeTuple!fun[1..$] args2)
{
return fun(arg, args2);
}
}
else
{
auto partial(Ts...)(Ts args2)
{
static if (is(typeof(fun(arg, args2))))
{
return fun(arg, args2);
}
else
{
static string errormsg()
{
string msg = "Cannot call '" ~ fun.stringof ~ "' with arguments " ~
"(" ~ arg.stringof;
foreach(T; Ts)
msg ~= ", " ~ T.stringof;
msg ~= ").";
return msg;
}
static assert(0, errormsg());
}
}
}
}
/**
Deprecated alias for $(D partial), kept for backwards compatibility
*/
deprecated("Please use std.functional.partial instead")
alias curry = partial;
// tests for partially evaluating callables
unittest
{
static int f1(int a, int b) { return a + b; }
assert(partial!(f1, 5)(6) == 11);
int f2(int a, int b) { return a + b; }
int x = 5;
assert(partial!(f2, x)(6) == 11);
x = 7;
assert(partial!(f2, x)(6) == 13);
static assert(partial!(f2, 5)(6) == 11);
auto dg = &f2;
auto f3 = &partial!(dg, x);
assert(f3(6) == 13);
static int funOneArg(int a) { return a; }
assert(partial!(funOneArg, 1)() == 1);
static int funThreeArgs(int a, int b, int c) { return a + b + c; }
alias funThreeArgs1 = partial!(funThreeArgs, 1);
assert(funThreeArgs1(2, 3) == 6);
static assert(!is(typeof(funThreeArgs1(2))));
enum xe = 5;
alias fe = partial!(f2, xe);
static assert(fe(6) == 11);
}
// tests for partially evaluating templated/overloaded callables
unittest
{
static auto add(A, B)(A x, B y)
{
return x + y;
}
alias add5 = partial!(add, 5);
assert(add5(6) == 11);
static assert(!is(typeof(add5())));
static assert(!is(typeof(add5(6, 7))));
// taking address of templated partial evaluation needs explicit type
auto dg = &add5!(int);
assert(dg(6) == 11);
int x = 5;
alias addX = partial!(add, x);
assert(addX(6) == 11);
static struct Callable
{
static string opCall(string a, string b) { return a ~ b; }
int opCall(int a, int b) { return a * b; }
double opCall(double a, double b) { return a + b; }
}
Callable callable;
assert(partial!(Callable, "5")("6") == "56");
assert(partial!(callable, 5)(6) == 30);
assert(partial!(callable, 7.0)(3.0) == 7.0 + 3.0);
static struct TCallable
{
auto opCall(A, B)(A a, B b)
{
return a + b;
}
}
TCallable tcallable;
assert(partial!(tcallable, 5)(6) == 11);
static assert(!is(typeof(partial!(tcallable, "5")(6))));
static A funOneArg(A)(A a) { return a; }
alias funOneArg1 = partial!(funOneArg, 1);
assert(funOneArg1() == 1);
static auto funThreeArgs(A, B, C)(A a, B b, C c) { return a + b + c; }
alias funThreeArgs1 = partial!(funThreeArgs, 1);
assert(funThreeArgs1(2, 3) == 6);
static assert(!is(typeof(funThreeArgs1(1))));
// @@ dmd BUG 6600 @@
// breaks completely unrelated unittest for toDelegate
// static assert(is(typeof(dg_pure_nothrow) == int delegate() pure nothrow));
version (none)
{
auto dg2 = &funOneArg1!();
assert(dg2() == 1);
}
}
/**
Takes multiple functions and adjoins them together. The result is a
$(XREF typecons, Tuple) with one element per passed-in function. Upon
invocation, the returned tuple is the adjoined results of all
functions.
Note: In the special case where where only a single function is provided
($(D F.length == 1)), adjoin simply aliases to the single passed function
($(D F[0])).
*/
template adjoin(F...) if (F.length == 1)
{
alias adjoin = F[0];
}
/// ditto
template adjoin(F...) if (F.length > 1)
{
auto adjoin(V...)(auto ref V a)
{
import std.typecons : tuple;
static if (F.length == 2)
{
return tuple(F[0](a), F[1](a));
}
else static if (F.length == 3)
{
return tuple(F[0](a), F[1](a), F[2](a));
}
else
{
import std.format : format;
import std.range : iota;
return mixin (q{tuple(%(F[%s](a)%|, %))}.format(iota(0, F.length)));
}
}
}
///
unittest
{
import std.functional, std.typecons;
static bool f1(int a) { return a != 0; }
static int f2(int a) { return a / 2; }
auto x = adjoin!(f1, f2)(5);
assert(is(typeof(x) == Tuple!(bool, int)));
assert(x[0] == true && x[1] == 2);
}
unittest
{
import std.typecons;
static bool F1(int a) { return a != 0; }
auto x1 = adjoin!(F1)(5);
static int F2(int a) { return a / 2; }
auto x2 = adjoin!(F1, F2)(5);
assert(is(typeof(x2) == Tuple!(bool, int)));
assert(x2[0] && x2[1] == 2);
auto x3 = adjoin!(F1, F2, F2)(5);
assert(is(typeof(x3) == Tuple!(bool, int, int)));
assert(x3[0] && x3[1] == 2 && x3[2] == 2);
bool F4(int a) { return a != x1; }
alias eff4 = adjoin!(F4);
static struct S
{
bool delegate(int) store;
int fun() { return 42 + store(5); }
}
S s;
s.store = (int a) { return eff4(a); };
auto x4 = s.fun();
assert(x4 == 43);
}
unittest
{
import std.typetuple : staticMap;
import std.typecons : Tuple, tuple;
alias funs = staticMap!(unaryFun, "a", "a * 2", "a * 3", "a * a", "-a");
alias afun = adjoin!funs;
assert(afun(5) == tuple(5, 10, 15, 25, -5));
static class C{}
alias IC = immutable(C);
IC foo(){return typeof(return).init;}
Tuple!(IC, IC, IC, IC) ret1 = adjoin!(foo, foo, foo, foo)();
static struct S{int* p;}
alias IS = immutable(S);
IS bar(){return typeof(return).init;}
enum Tuple!(IS, IS, IS, IS) ret2 = adjoin!(bar, bar, bar, bar)();
}
// /*private*/ template NaryFun(string fun, string letter, V...)
// {
// static if (V.length == 0)
// {
// enum args = "";
// }
// else
// {
// enum args = V[0].stringof~" "~letter~"; "
// ~NaryFun!(fun, [letter[0] + 1], V[1..$]).args;
// enum code = args ~ "return "~fun~";";
// }
// alias Result = void;
// }
// unittest
// {
// writeln(NaryFun!("a * b * 2", "a", int, double).code);
// }
// /**
// naryFun
// */
// template naryFun(string fun)
// {
// //NaryFun!(fun, "a", V).Result
// int naryFun(V...)(V values)
// {
// enum string code = NaryFun!(fun, "a", V).code;
// mixin(code);
// }
// }
// unittest
// {
// alias test = naryFun!("a + b");
// test(1, 2);
// }
/**
Composes passed-in functions $(D fun[0], fun[1], ...) returning a
function $(D f(x)) that in turn returns $(D
fun[0](fun[1](...(x)))...). Each function can be a regular
functions, a delegate, or a string.
Example:
----
// First split a string in whitespace-separated tokens and then
// convert each token into an integer
assert(compose!(map!(to!(int)), split)("1 2 3") == [1, 2, 3]);
----
*/
template compose(fun...)
{
static if (fun.length == 1)
{
alias compose = unaryFun!(fun[0]);
}
else static if (fun.length == 2)
{
// starch
alias fun0 = unaryFun!(fun[0]);
alias fun1 = unaryFun!(fun[1]);
// protein: the core composition operation
typeof({ E a; return fun0(fun1(a)); }()) compose(E)(E a)
{
return fun0(fun1(a));
}
}
else
{
// protein: assembling operations
alias compose = compose!(fun[0], compose!(fun[1 .. $]));
}
}
/**
Pipes functions in sequence. Offers the same functionality as $(D
compose), but with functions specified in reverse order. This may
lead to more readable code in some situation because the order of
execution is the same as lexical order.
Example:
----
// Read an entire text file, split the resulting string in
// whitespace-separated tokens, and then convert each token into an
// integer
int[] a = pipe!(readText, split, map!(to!(int)))("file.txt");
----
*/
alias pipe(fun...) = compose!(Reverse!(fun));
unittest
{
import std.conv : to;
string foo(int a) { return to!(string)(a); }
int bar(string a) { return to!(int)(a) + 1; }
double baz(int a) { return a + 0.5; }
assert(compose!(baz, bar, foo)(1) == 2.5);
assert(pipe!(foo, bar, baz)(1) == 2.5);
assert(compose!(baz, `to!(int)(a) + 1`, foo)(1) == 2.5);
assert(compose!(baz, bar)("1"[]) == 2.5);
assert(compose!(baz, bar)("1") == 2.5);
// @@@BUG@@@
//assert(compose!(`a + 0.5`, `to!(int)(a) + 1`, foo)(1) == 2.5);
}
/**
* $(LUCKY Memoizes) a function so as to avoid repeated
* computation. The memoization structure is a hash table keyed by a
* tuple of the function's arguments. There is a speed gain if the
* function is repeatedly called with the same arguments and is more
* expensive than a hash table lookup. For more information on memoization, refer to $(WEB docs.google.com/viewer?url=http%3A%2F%2Fhop.perl.plover.com%2Fbook%2Fpdf%2F03CachingAndMemoization.pdf, this book chapter).
Example:
----
double transmogrify(int a, string b)
{
... expensive computation ...
}
alias fastTransmogrify = memoize!transmogrify;
unittest
{
auto slow = transmogrify(2, "hello");
auto fast = fastTransmogrify(2, "hello");
assert(slow == fast);
}
----
Technically the memoized function should be pure because $(D memoize) assumes it will
always return the same result for a given tuple of arguments. However, $(D memoize) does not
enforce that because sometimes it
is useful to memoize an impure function, too.
*/
template memoize(alias fun)
{
// alias Args = ParameterTypeTuple!fun; // Bugzilla 13580
ReturnType!fun memoize(ParameterTypeTuple!fun args)
{
alias Args = ParameterTypeTuple!fun;
import std.typecons : Tuple;
static ReturnType!fun[Tuple!Args] memo;
auto t = Tuple!Args(args);
if (auto p = t in memo)
return *p;
return memo[t] = fun(args);
}
}
/// ditto
template memoize(alias fun, uint maxSize)
{
// alias Args = ParameterTypeTuple!fun; // Bugzilla 13580
ReturnType!fun memoize(ParameterTypeTuple!fun args)
{
import std.typecons : tuple;
static struct Value { ParameterTypeTuple!fun args; ReturnType!fun res; }
static Value[] memo;
static size_t[] initialized;
if (!memo.length)
{
import core.memory;
enum attr = GC.BlkAttr.NO_INTERIOR | (hasIndirections!Value ? 0 : GC.BlkAttr.NO_SCAN);
memo = (cast(Value*)GC.malloc(Value.sizeof * maxSize, attr))[0 .. maxSize];
enum nwords = (maxSize + 8 * size_t.sizeof - 1) / (8 * size_t.sizeof);
initialized = (cast(size_t*)GC.calloc(nwords * size_t.sizeof, attr | GC.BlkAttr.NO_SCAN))[0 .. nwords];
}
import core.bitop : bt, bts;
import std.conv : emplace;
size_t hash;
foreach (ref arg; args)
hash = hashOf(arg, hash);
// cuckoo hashing
immutable idx1 = hash % maxSize;
if (!bt(initialized.ptr, idx1))
{
emplace(&memo[idx1], args, fun(args));
bts(initialized.ptr, idx1); // only set to initialized after setting args and value (bugzilla 14025)
return memo[idx1].res;
}
else if (memo[idx1].args == args)
return memo[idx1].res;
// FNV prime
immutable idx2 = (hash * 16777619) % maxSize;
if (!bt(initialized.ptr, idx2))
{
emplace(&memo[idx2], memo[idx1]);
bts(initialized.ptr, idx2); // only set to initialized after setting args and value (bugzilla 14025)
}
else if (memo[idx2].args == args)
return memo[idx2].res;
else if (idx1 != idx2)
memo[idx2] = memo[idx1];
memo[idx1] = Value(args, fun(args));
return memo[idx1].res;
}
}
/**
* To _memoize a recursive function, simply insert the memoized call in lieu of the plain recursive call.
* For example, to transform the exponential-time Fibonacci implementation into a linear-time computation:
*/
unittest
{
ulong fib(ulong n)
{
return n < 2 ? 1 : memoize!fib(n - 2) + memoize!fib(n - 1);
}
assert(fib(10) == 89);
}
/**
* To improve the speed of the factorial function,
*/
unittest
{
ulong fact(ulong n)
{
return n < 2 ? 1 : n * memoize!fact(n - 1);
}
assert(fact(10) == 3628800);
}
/**
* This memoizes all values of $(D fact) up to the largest argument. To only cache the final
* result, move $(D memoize) outside the function as shown below.
*/
unittest
{
ulong factImpl(ulong n)
{
return n < 2 ? 1 : n * factImpl(n - 1);
}
alias fact = memoize!factImpl;
assert(fact(10) == 3628800);
}
/**
* When the $(D maxSize) parameter is specified, memoize will used
* a fixed size hash table to limit the number of cached entries.
*/
unittest
{
ulong fact(ulong n)
{
// Memoize no more than 8 values
return n < 2 ? 1 : n * memoize!(fact, 8)(n - 1);
}
assert(fact(8) == 40320);
// using more entries than maxSize will overwrite existing entries
assert(fact(10) == 3628800);
}
unittest
{
import core.math;
alias msqrt = memoize!(function double(double x) { return sqrt(x); });
auto y = msqrt(2.0);
assert(y == msqrt(2.0));
y = msqrt(4.0);
assert(y == sqrt(4.0));
// alias mrgb2cmyk = memoize!rgb2cmyk;
// auto z = mrgb2cmyk([43, 56, 76]);
// assert(z == mrgb2cmyk([43, 56, 76]));
//alias mfib = memoize!fib;
static ulong fib(ulong n)
{
alias mfib = memoize!fib;
return n < 2 ? 1 : mfib(n - 2) + mfib(n - 1);
}
auto z = fib(10);
assert(z == 89);
static ulong fact(ulong n)
{
alias mfact = memoize!fact;
return n < 2 ? 1 : n * mfact(n - 1);
}
assert(fact(10) == 3628800);
// Issue 12568
static uint len2(const string s) { // Error
alias mLen2 = memoize!len2;
if (s.length == 0)
return 0;
else
return 1 + mLen2(s[1 .. $]);
}
int _func(int x) { return 1; }
alias func = memoize!(_func, 10);
assert(func(int.init) == 1);
assert(func(int.init) == 1);
}
private struct DelegateFaker(F)
{
import std.typecons;
// for @safe
static F castToF(THIS)(THIS x) @trusted
{
return cast(F) x;
}
/*
* What all the stuff below does is this:
*--------------------
* struct DelegateFaker(F) {
* extern(linkage)
* [ref] ReturnType!F doIt(ParameterTypeTuple!F args) [@attributes]
* {
* auto fp = cast(F) &this;
* return fp(args);
* }
* }
*--------------------
*/
// We will use MemberFunctionGenerator in std.typecons. This is a policy
// configuration for generating the doIt().
template GeneratingPolicy()
{
// Inform the genereator that we only have type information.
enum WITHOUT_SYMBOL = true;
// Generate the function body of doIt().
template generateFunctionBody(unused...)
{
enum generateFunctionBody =
// [ref] ReturnType doIt(ParameterTypeTuple args) @attributes
q{
// When this function gets called, the this pointer isn't
// really a this pointer (no instance even really exists), but
// a function pointer that points to the function to be called.
// Cast it to the correct type and call it.
auto fp = castToF(&this);
return fp(args);
};
}
}
// Type information used by the generated code.
alias FuncInfo_doIt = FuncInfo!(F);
// Generate the member function doIt().
mixin( std.typecons.MemberFunctionGenerator!(GeneratingPolicy!())
.generateFunction!("FuncInfo_doIt", "doIt", F) );
}
/**
* Convert a callable to a delegate with the same parameter list and
* return type, avoiding heap allocations and use of auxiliary storage.
*
* Examples:
* ----
* void doStuff() {
* writeln("Hello, world.");
* }
*
* void runDelegate(void delegate() myDelegate) {
* myDelegate();
* }
*
* auto delegateToPass = toDelegate(&doStuff);
* runDelegate(delegateToPass); // Calls doStuff, prints "Hello, world."
* ----
*
* BUGS:
* $(UL
* $(LI Does not work with $(D @safe) functions.)
* $(LI Ignores C-style / D-style variadic arguments.)
* )
*/
auto toDelegate(F)(auto ref F fp) if (isCallable!(F))
{
static if (is(F == delegate))
{
return fp;
}
else static if (is(typeof(&F.opCall) == delegate)
|| (is(typeof(&F.opCall) V : V*) && is(V == function)))
{
return toDelegate(&fp.opCall);
}
else
{
alias DelType = typeof(&(new DelegateFaker!(F)).doIt);
static struct DelegateFields {
union {
DelType del;
//pragma(msg, typeof(del));
struct {
void* contextPtr;
void* funcPtr;
}
}
}
// fp is stored in the returned delegate's context pointer.
// The returned delegate's function pointer points to
// DelegateFaker.doIt.
DelegateFields df;
df.contextPtr = cast(void*) fp;
DelegateFaker!(F) dummy;
auto dummyDel = &dummy.doIt;
df.funcPtr = dummyDel.funcptr;
return df.del;
}
}
unittest {
static int inc(ref uint num) {
num++;
return 8675309;
}
uint myNum = 0;
auto incMyNumDel = toDelegate(&inc);
static assert(is(typeof(incMyNumDel) == int delegate(ref uint)));
auto returnVal = incMyNumDel(myNum);
assert(myNum == 1);
interface I { int opCall(); }
class C: I { int opCall() { inc(myNum); return myNum;} }
auto c = new C;
auto i = cast(I) c;
auto getvalc = toDelegate(c);
assert(getvalc() == 2);
auto getvali = toDelegate(i);
assert(getvali() == 3);
struct S1 { int opCall() { inc(myNum); return myNum; } }
static assert(!is(typeof(&s1.opCall) == delegate));
S1 s1;
auto getvals1 = toDelegate(s1);
assert(getvals1() == 4);
struct S2 { static int opCall() { return 123456; } }
static assert(!is(typeof(&S2.opCall) == delegate));
S2 s2;
auto getvals2 =&S2.opCall;
assert(getvals2() == 123456);
/* test for attributes */
{
static int refvar = 0xDeadFace;
static ref int func_ref() { return refvar; }
static int func_pure() pure { return 1; }
static int func_nothrow() nothrow { return 2; }
static int func_property() @property { return 3; }
static int func_safe() @safe { return 4; }
static int func_trusted() @trusted { return 5; }
static int func_system() @system { return 6; }
static int func_pure_nothrow() pure nothrow { return 7; }
static int func_pure_nothrow_safe() pure @safe { return 8; }
auto dg_ref = toDelegate(&func_ref);
auto dg_pure = toDelegate(&func_pure);
auto dg_nothrow = toDelegate(&func_nothrow);
auto dg_property = toDelegate(&func_property);
auto dg_safe = toDelegate(&func_safe);
auto dg_trusted = toDelegate(&func_trusted);
auto dg_system = toDelegate(&func_system);
auto dg_pure_nothrow = toDelegate(&func_pure_nothrow);
auto dg_pure_nothrow_safe = toDelegate(&func_pure_nothrow_safe);
//static assert(is(typeof(dg_ref) == ref int delegate())); // [BUG@DMD]
static assert(is(typeof(dg_pure) == int delegate() pure));
static assert(is(typeof(dg_nothrow) == int delegate() nothrow));
static assert(is(typeof(dg_property) == int delegate() @property));
//static assert(is(typeof(dg_safe) == int delegate() @safe));
static assert(is(typeof(dg_trusted) == int delegate() @trusted));
static assert(is(typeof(dg_system) == int delegate() @system));
static assert(is(typeof(dg_pure_nothrow) == int delegate() pure nothrow));
//static assert(is(typeof(dg_pure_nothrow_safe) == int delegate() @safe pure nothrow));
assert(dg_ref() == refvar);
assert(dg_pure() == 1);
assert(dg_nothrow() == 2);
assert(dg_property() == 3);
//assert(dg_safe() == 4);
assert(dg_trusted() == 5);
assert(dg_system() == 6);
assert(dg_pure_nothrow() == 7);
//assert(dg_pure_nothrow_safe() == 8);
}
/* test for linkage */
{
struct S
{
extern(C) static void xtrnC() {}
extern(D) static void xtrnD() {}
}
auto dg_xtrnC = toDelegate(&S.xtrnC);
auto dg_xtrnD = toDelegate(&S.xtrnD);
static assert(! is(typeof(dg_xtrnC) == typeof(dg_xtrnD)));
}
}
| D |
/*
REQUIRED_ARGS: -de
TEST_OUTPUT:
---
fail_compilation/enum_function.d(11): Deprecation: function cannot have enum storage class
fail_compilation/enum_function.d(12): Deprecation: function cannot have enum storage class
fail_compilation/enum_function.d(13): Deprecation: function cannot have enum storage class
fail_compilation/enum_function.d(14): Deprecation: function cannot have enum storage class
---
*/
enum void f1() { return; }
enum f2() { return 5; }
enum f3() => 5;
enum int f4()() => 5;
| D |
/Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/HTTP.build/Message/HTTPHeaders.swift.o : /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Utilities/RFC1123.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Message/URL+HTTP.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Utilities/HTTPHeaders+Basic.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Message/Forwarded.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Message/MediaTypePreference.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Body/HTTPBodyStorage.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Message/HTTPMessage.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Body/HTTPBodyRepresentable.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Message/HTTPHeaderName.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Responder/HTTPScheme.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Message/HTTPResponse.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Cookies/HTTPCookieValue.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Body/HTTPChunkedStream.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Responder/HTTPClientProtocolUpgrader.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Responder/HTTPServerResponder.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Codable/HTTPMessageCoder.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Utilities/HTTPHeaders+Bearer.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Responder/HTTPServer.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Utilities/HTTPError.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Cookies/HTTPCookies.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Message/HTTPHeaders.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Exports.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Responder/HTTPClient.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Message/HTTPRequest.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Body/HTTPBody.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOHTTP1.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOOpenSSL.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOTLS.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /usr/local/Cellar/libressl/2.7.4/include/openssl/asn1.h /usr/local/Cellar/libressl/2.7.4/include/openssl/tls1.h /usr/local/Cellar/libressl/2.7.4/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.7.4/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.7.4/include/openssl/pem2.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.7.4/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.7.4/include/openssl/md5.h /usr/local/Cellar/libressl/2.7.4/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.7.4/include/openssl/x509.h /usr/local/Cellar/libressl/2.7.4/include/openssl/sha.h /usr/local/Cellar/libressl/2.7.4/include/openssl/dsa.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.7.4/include/openssl/rsa.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOZlib/include/c_nio_zlib.h /usr/local/Cellar/libressl/2.7.4/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.7.4/include/openssl/hmac.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ec.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/cpp_magic.h /usr/local/Cellar/libressl/2.7.4/include/openssl/rand.h /usr/local/Cellar/libressl/2.7.4/include/openssl/conf.h /usr/local/Cellar/libressl/2.7.4/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.7.4/include/openssl/dh.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.7.4/include/openssl/lhash.h /usr/local/Cellar/libressl/2.7.4/include/openssl/stack.h /usr/local/Cellar/libressl/2.7.4/include/openssl/safestack.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ssl.h /Users/nice/HelloWord/.build/checkouts/swift-nio-ssl.git-8502154137117992337/Sources/CNIOOpenSSL/include/c_nio_openssl.h /usr/local/Cellar/libressl/2.7.4/include/openssl/pem.h /usr/local/Cellar/libressl/2.7.4/include/openssl/bn.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIODarwin/include/c_nio_darwin.h /usr/local/Cellar/libressl/2.7.4/include/openssl/bio.h /usr/local/Cellar/libressl/2.7.4/include/openssl/crypto.h /usr/local/Cellar/libressl/2.7.4/include/openssl/srtp.h /usr/local/Cellar/libressl/2.7.4/include/openssl/evp.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.7.4/include/openssl/buffer.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/2.7.4/include/openssl/err.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/c-atomics.h /usr/local/Cellar/libressl/2.7.4/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.7.4/include/openssl/objects.h /usr/local/Cellar/libressl/2.7.4/include/openssl/opensslv.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOLinux/include/c_nio_linux.h /usr/local/Cellar/libressl/2.7.4/include/openssl/x509_vfy.h /Users/nice/HelloWord/.build/checkouts/swift-nio-zlib-support.git--6556802241718767980/module.modulemap /Users/nice/HelloWord/.build/checkouts/swift-nio-ssl-support.git--3664958863524920767/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/HTTP.build/HTTPHeaders~partial.swiftmodule : /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Utilities/RFC1123.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Message/URL+HTTP.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Utilities/HTTPHeaders+Basic.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Message/Forwarded.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Message/MediaTypePreference.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Body/HTTPBodyStorage.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Message/HTTPMessage.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Body/HTTPBodyRepresentable.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Message/HTTPHeaderName.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Responder/HTTPScheme.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Message/HTTPResponse.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Cookies/HTTPCookieValue.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Body/HTTPChunkedStream.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Responder/HTTPClientProtocolUpgrader.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Responder/HTTPServerResponder.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Codable/HTTPMessageCoder.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Utilities/HTTPHeaders+Bearer.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Responder/HTTPServer.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Utilities/HTTPError.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Cookies/HTTPCookies.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Message/HTTPHeaders.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Exports.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Responder/HTTPClient.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Message/HTTPRequest.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Body/HTTPBody.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOHTTP1.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOOpenSSL.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOTLS.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /usr/local/Cellar/libressl/2.7.4/include/openssl/asn1.h /usr/local/Cellar/libressl/2.7.4/include/openssl/tls1.h /usr/local/Cellar/libressl/2.7.4/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.7.4/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.7.4/include/openssl/pem2.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.7.4/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.7.4/include/openssl/md5.h /usr/local/Cellar/libressl/2.7.4/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.7.4/include/openssl/x509.h /usr/local/Cellar/libressl/2.7.4/include/openssl/sha.h /usr/local/Cellar/libressl/2.7.4/include/openssl/dsa.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.7.4/include/openssl/rsa.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOZlib/include/c_nio_zlib.h /usr/local/Cellar/libressl/2.7.4/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.7.4/include/openssl/hmac.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ec.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/cpp_magic.h /usr/local/Cellar/libressl/2.7.4/include/openssl/rand.h /usr/local/Cellar/libressl/2.7.4/include/openssl/conf.h /usr/local/Cellar/libressl/2.7.4/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.7.4/include/openssl/dh.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.7.4/include/openssl/lhash.h /usr/local/Cellar/libressl/2.7.4/include/openssl/stack.h /usr/local/Cellar/libressl/2.7.4/include/openssl/safestack.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ssl.h /Users/nice/HelloWord/.build/checkouts/swift-nio-ssl.git-8502154137117992337/Sources/CNIOOpenSSL/include/c_nio_openssl.h /usr/local/Cellar/libressl/2.7.4/include/openssl/pem.h /usr/local/Cellar/libressl/2.7.4/include/openssl/bn.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIODarwin/include/c_nio_darwin.h /usr/local/Cellar/libressl/2.7.4/include/openssl/bio.h /usr/local/Cellar/libressl/2.7.4/include/openssl/crypto.h /usr/local/Cellar/libressl/2.7.4/include/openssl/srtp.h /usr/local/Cellar/libressl/2.7.4/include/openssl/evp.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.7.4/include/openssl/buffer.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/2.7.4/include/openssl/err.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/c-atomics.h /usr/local/Cellar/libressl/2.7.4/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.7.4/include/openssl/objects.h /usr/local/Cellar/libressl/2.7.4/include/openssl/opensslv.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOLinux/include/c_nio_linux.h /usr/local/Cellar/libressl/2.7.4/include/openssl/x509_vfy.h /Users/nice/HelloWord/.build/checkouts/swift-nio-zlib-support.git--6556802241718767980/module.modulemap /Users/nice/HelloWord/.build/checkouts/swift-nio-ssl-support.git--3664958863524920767/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/HTTP.build/HTTPHeaders~partial.swiftdoc : /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Utilities/RFC1123.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Message/URL+HTTP.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Utilities/HTTPHeaders+Basic.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Message/Forwarded.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Message/MediaTypePreference.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Body/HTTPBodyStorage.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Message/HTTPMessage.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Body/HTTPBodyRepresentable.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Message/HTTPHeaderName.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Responder/HTTPScheme.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Message/HTTPResponse.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Cookies/HTTPCookieValue.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Body/HTTPChunkedStream.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Responder/HTTPClientProtocolUpgrader.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Responder/HTTPServerResponder.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Codable/HTTPMessageCoder.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Utilities/HTTPHeaders+Bearer.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Responder/HTTPServer.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Utilities/HTTPError.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Cookies/HTTPCookies.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Message/HTTPHeaders.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Exports.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Responder/HTTPClient.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Message/HTTPRequest.swift /Users/nice/HelloWord/.build/checkouts/http.git-5443068064906198988/Sources/HTTP/Body/HTTPBody.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOHTTP1.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOOpenSSL.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIO.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOTLS.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Async.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /usr/local/Cellar/libressl/2.7.4/include/openssl/asn1.h /usr/local/Cellar/libressl/2.7.4/include/openssl/tls1.h /usr/local/Cellar/libressl/2.7.4/include/openssl/dtls1.h /usr/local/Cellar/libressl/2.7.4/include/openssl/pkcs12.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ssl2.h /usr/local/Cellar/libressl/2.7.4/include/openssl/pem2.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ssl23.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ssl3.h /usr/local/Cellar/libressl/2.7.4/include/openssl/x509v3.h /usr/local/Cellar/libressl/2.7.4/include/openssl/md5.h /usr/local/Cellar/libressl/2.7.4/include/openssl/pkcs7.h /usr/local/Cellar/libressl/2.7.4/include/openssl/x509.h /usr/local/Cellar/libressl/2.7.4/include/openssl/sha.h /usr/local/Cellar/libressl/2.7.4/include/openssl/dsa.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ecdsa.h /usr/local/Cellar/libressl/2.7.4/include/openssl/rsa.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOZlib/include/c_nio_zlib.h /usr/local/Cellar/libressl/2.7.4/include/openssl/obj_mac.h /usr/local/Cellar/libressl/2.7.4/include/openssl/hmac.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ec.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/cpp_magic.h /usr/local/Cellar/libressl/2.7.4/include/openssl/rand.h /usr/local/Cellar/libressl/2.7.4/include/openssl/conf.h /usr/local/Cellar/libressl/2.7.4/include/openssl/opensslconf.h /usr/local/Cellar/libressl/2.7.4/include/openssl/dh.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ecdh.h /usr/local/Cellar/libressl/2.7.4/include/openssl/lhash.h /usr/local/Cellar/libressl/2.7.4/include/openssl/stack.h /usr/local/Cellar/libressl/2.7.4/include/openssl/safestack.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ssl.h /Users/nice/HelloWord/.build/checkouts/swift-nio-ssl.git-8502154137117992337/Sources/CNIOOpenSSL/include/c_nio_openssl.h /usr/local/Cellar/libressl/2.7.4/include/openssl/pem.h /usr/local/Cellar/libressl/2.7.4/include/openssl/bn.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIODarwin/include/c_nio_darwin.h /usr/local/Cellar/libressl/2.7.4/include/openssl/bio.h /usr/local/Cellar/libressl/2.7.4/include/openssl/crypto.h /usr/local/Cellar/libressl/2.7.4/include/openssl/srtp.h /usr/local/Cellar/libressl/2.7.4/include/openssl/evp.h /usr/local/Cellar/libressl/2.7.4/include/openssl/ossl_typ.h /usr/local/Cellar/libressl/2.7.4/include/openssl/buffer.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOHTTPParser/include/c_nio_http_parser.h /usr/local/Cellar/libressl/2.7.4/include/openssl/err.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOAtomics/include/c-atomics.h /usr/local/Cellar/libressl/2.7.4/include/openssl/opensslfeatures.h /usr/local/Cellar/libressl/2.7.4/include/openssl/objects.h /usr/local/Cellar/libressl/2.7.4/include/openssl/opensslv.h /Users/nice/HelloWord/.build/checkouts/swift-nio.git-5005363973595484456/Sources/CNIOLinux/include/c_nio_linux.h /usr/local/Cellar/libressl/2.7.4/include/openssl/x509_vfy.h /Users/nice/HelloWord/.build/checkouts/swift-nio-zlib-support.git--6556802241718767980/module.modulemap /Users/nice/HelloWord/.build/checkouts/swift-nio-ssl-support.git--3664958863524920767/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CCryptoOpenSSL.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/nice/HelloWord/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
| D |
/**
Copyright: Copyright (c) 2007, Artyom Shalkhakov. All rights reserved.
License: BSD
This module implements pluecker coordinates for line segments.
Version: Aug 2007: initial release
Authors: Artyom Shalkhakov
*/
module auxd.ray.base.Pluecker;
import Math = auxd.ray.base.Math;
import auxd.ray.base.Vector;
import auxd.ray.base.Plane;
const Pluecker pluecker_zero = { p : [ 0.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f ] };
/// Pluecker coordinate
struct Pluecker {
static Pluecker opCall( float[6] p ) {
Pluecker pl;
pl.p[0] = p[0];
pl.p[1] = p[1];
pl.p[2] = p[2];
pl.p[3] = p[3];
pl.p[4] = p[4];
pl.p[5] = p[5];
return pl;
}
static Pluecker opCall( ref Vec3 start, ref Vec3 end ) {
Pluecker pl;
pl.fromLineSegment( start, end );
return pl;
}
static Pluecker opCall( float a1, float a2, float a3, float a4, float a5, float a6 ) {
Pluecker pl;
with ( pl ) {
p[0] = a1;
p[1] = a2;
p[2] = a3;
p[3] = a4;
p[4] = a5;
p[5] = a6;
}
return pl;
}
/// returns Pluecker coordinate with flipped direction
Pluecker opNeg() {
return Pluecker( -p[0], -p[1], -p[2], -p[3], -p[4], -p[5] );
}
Pluecker opAdd( ref Pluecker a ) {
return Pluecker( p[0] + a.p[0], p[1] + a.p[1], p[2] + a.p[2], p[3] + a.p[3], p[4] + a.p[4], p[5] + a.p[5] );
}
Pluecker opSub( ref Pluecker a ) {
return Pluecker( p[0] - a.p[0], p[1] - a.p[1], p[2] - a.p[2], p[3] - a.p[3], p[4] - a.p[4], p[5] - a.p[5] );
}
Pluecker opMul( float f )
in {
debug ( FLOAT_PARANOID ) {
assert( Math.isValid( f ) );
}
}
body {
return Pluecker( p[0] * f, p[1] * f, p[2] * f, p[3] * f, p[4] * f, p[5] * f );
}
/// permuted inner product
float opMul( Pluecker a ) {
return p[0] * a.p[4] + p[1] * a.p[5] + p[2] * a.p[3] + p[4] * a.p[0] + p[5] * a.p[1] + p[3] * a.p[2];
}
Pluecker opDiv( float f )
in {
debug ( FLOAT_PARANOID ) {
assert( Math.isValid( f ) );
assert( Math.abs( f - 0.0f ) > 1e-14 );
}
}
body {
float invF = 1.0f / f;
return Pluecker( p[0] * invF, p[1] * invF, p[2] * invF, p[3] * invF, p[4] * invF, p[5] * invF );
}
void opAddAssign( ref Pluecker a ) {
p[0] += a.p[0];
p[1] += a.p[1];
p[2] += a.p[2];
p[3] += a.p[3];
p[4] += a.p[4];
p[5] += a.p[5];
}
void opSubAssign( ref Pluecker a ) {
p[0] -= a.p[0];
p[1] -= a.p[1];
p[2] -= a.p[2];
p[3] -= a.p[3];
p[4] -= a.p[4];
p[5] -= a.p[5];
}
void opMulAssign( float f )
in {
debug ( FLOAT_PARANOID ) {
assert( Math.isValid( f ) );
}
}
body {
p[0] *= f;
p[1] *= f;
p[2] *= f;
p[3] *= f;
p[4] *= f;
p[5] *= f;
}
void opDivAssign( float f )
in {
debug ( FLOAT_PARANOID ) {
assert( Math.isValid( f ) );
assert( Math.abs( f - 0.0f ) > 1e-14 );
}
}
body {
float invF = 1.0f / f;
p[0] *= invF;
p[1] *= invF;
p[2] *= invF;
p[3] *= invF;
p[4] *= invF;
p[5] *= invF;
}
/// exact compare
bool opEquals( ref Pluecker a ) {
return ( p[0] == a.p[0] && p[1] == a.p[1] && p[2] == a.p[2] && p[3] == a.p[3] && p[4] == a.p[4] && p[5] == a.p[5] );
}
/// compare with epsilon
bool compare( ref Pluecker a, float epsilon ) {
if ( Math.abs( p[0] - a.p[0] ) > epsilon ) {
return false;
}
if ( Math.abs( p[1] - a.p[1] ) > epsilon ) {
return false;
}
if ( Math.abs( p[2] - a.p[2] ) > epsilon ) {
return false;
}
if ( Math.abs( p[3] - a.p[3] ) > epsilon ) {
return false;
}
if ( Math.abs( p[4] - a.p[4] ) > epsilon ) {
return false;
}
if ( Math.abs( p[5] - a.p[5] ) > epsilon ) {
return false;
}
return true;
}
void set( float a1, float a2, float a3, float a4, float a5, float a6 ) {
p[0] = a1;
p[1] = a2;
p[2] = a3;
p[3] = a4;
p[4] = a5;
p[5] = a6;
}
void zero() {
p[] = 0.0f;
}
float magnitude() {
return Math.sqrt( p[5] * p[5] + p[4] * p[4] + p[2] * p[2] );
}
float magnitudeSquared() {
return ( p[5] * p[5] + p[4] * p[4] + p[2] * p[2] );
}
Pluecker normalize() {
float d;
d = magnitudeSquared;
if ( d == 0.0f ) {
return *this; // pluecker coordinate does not represent a line
}
d = 1.0f / Math.sqrt( d );
return Pluecker( p[0] * d, p[1] * d, p[2] * d, p[3] * d, p[4] * d, p[5] * d );
}
/// returns magnitude
float normalizeSelf() {
float l = magnitudeSquared, d;
if ( l == 0.0f ) {
return l; // pluecker coordinate does not represent a line
}
d = 1.0f / Math.sqrt( l );
p[0] *= d;
p[1] *= d;
p[2] *= d;
p[3] *= d;
p[4] *= d;
p[5] *= d;
return d * l;
}
float permutedInnerProduct( ref Pluecker a ) {
return p[0] * a.p[4] + p[1] * a.p[5] + p[2] * a.p[3] + p[4] * a.p[0] + p[5] * a.p[1] + p[3] * a.p[2];
}
void fromLineSegment( ref Vec3 start, ref Vec3 end ) {
p[0] = start.x * end.y - end.x * start.y;
p[1] = start.x * end.z - end.x * start.z;
p[2] = start.x - end.x;
p[3] = start.y * end.z - end.y * start.z;
p[4] = start.z - end.z;
p[5] = end.y - start.y;
}
void fromRay( ref Vec3 start, ref Vec3 dir ) {
p[0] = start.x * dir.y - dir.x * start.y;
p[1] = start.x * dir.z - dir.x * start.z;
p[2] = -dir.x;
p[3] = start.y * dir.z - dir.y * start.z;
p[4] = -dir.z;
p[5] = dir.y;
}
/// pluecker coordinate for the intersection of two planes
bool fromPlanes( ref Plane p1, ref Plane p2 ) {
p[0] = -( p1[2] * -p2[3] - p2[2] * -p1[3] );
p[1] = -( p2[1] * -p1[3] - p1[1] * -p2[3] );
p[2] = p1[1] * p2[2] - p2[1] * p1[2];
p[3] = -( p1[0] * -p2[3] - p2[0] * -p1[3] );
p[4] = p1[0] * p2[1] - p2[0] * p1[1];
p[5] = p1[0] * p2[2] - p2[0] * p1[2];
return ( p[2] != 0.0f || p[5] != 0.0f || p[4] != 0.0f );
}
/**
Convert pluecker coordinate to line segment.
Returns false if pluecker coodinate does not represent a line.
*/
bool toLineSegment( ref Vec3 start, ref Vec3 end ) {
Vec3 dir1, dir2;
float d;
dir1.x = p[3];
dir1.y = -p[1];
dir1.z = p[0];
dir2.x = -p[2];
dir2.y = p[5];
dir2.z = -p[4];
d = dir2 * dir2;
if ( d == 0.0f ) {
return false; // pluecker coordinate does not represent a line
}
start = dir2.cross( dir1 ) * ( 1.0f / d );
end = start + dir2;
return true;
}
/**
Convert pluecker coordinate to auxd.ray.
Returns false if pluecker coordinate does not represent a line.
*/
bool toRay( ref Vec3 start, ref Vec3 dir ) {
Vec3 dir1;
float d;
dir1.x = p[3];
dir1.y = -p[1];
dir1.z = p[0];
dir.x = -p[2];
dir.y = p[5];
dir.z = -p[4];
d = dir * dir;
if ( d == 0.0f ) {
return false; // pluecker coordinate does not represent a line
}
start = dir.cross( dir1 ) * ( 1.0f / d );
return true;
}
/// convert pluecker coordinate to direction vector
void toDir( ref Vec3 dir ) {
dir.x = -p[2];
dir.y = p[5];
dir.z = -p[4];
}
/// converts to string; just a convenience function
char[] toUtf8() {
return Math.toUtf8( "( P( {0:E} {1:E} {2:E} ); Q( {3:E} {4:E} {5:E} ) )", p[0], p[1], p[2], p[3], p[4], p[5] );
}
size_t length() {
return 6;
}
float *ptr() {
return p.ptr;
}
debug ( FLOAT_PARANOID ) {
invariant() {
assert( Math.isValid( p[0] ) );
assert( Math.isValid( p[1] ) );
assert( Math.isValid( p[2] ) );
assert( Math.isValid( p[3] ) );
assert( Math.isValid( p[4] ) );
assert( Math.isValid( p[5] ) );
}
}
float[6] p;
}
| D |
module dialog.grid_setting_dialog;
private import imports.all;
private import project_info;
private import main;
class GridSettingDialog : Window{
void delegate(bool,int,EGridType,int,bool,int,EGridType,int) onGridSettingChangedFunction;
this(){
super("グリッド設定");
setBorderWidth(10);
HBox mainBox = new HBox(false, 5);
add(mainBox);
VBox leftBox = new VBox(false, 5);
// グリッド1用
Table table1 = new Table(2,2,false);
table1.attach(new Label("表示"),0,1,0,1,AttachOptions.FILL,AttachOptions.FILL,1,1);
CheckButton checkButton1 = new CheckButton();
checkButton1.setActive(projectInfo.grid1Visible);
table1.attach(checkButton1,1,2,0,1,AttachOptions.FILL,AttachOptions.FILL,1,1);
table1.attach(new Label("グリッド間隔"),2,3,0,1,AttachOptions.FILL,AttachOptions.FILL,1,1);
SpinButton spinButton1 = new SpinButton(new Adjustment(projectInfo.grid1Interval, 1.0, 16.0, 1.0, 10.0, 0),1,0);
table1.attach(spinButton1,3,4,0,1,AttachOptions.FILL,AttachOptions.FILL,1,1);
table1.attach(new Label("種類"),4,5,0,1,AttachOptions.FILL,AttachOptions.FILL,1,1);
ComboBox comboBox1 = new ComboBox(true);
comboBox1.appendText("実線");
comboBox1.appendText("破線");
if(projectInfo.grid1Type == EGridType.NORMAL){
comboBox1.setActive(0);
}else{
comboBox1.setActive(1);
}
table1.attach(comboBox1,5,6,0,1,AttachOptions.FILL,AttachOptions.EXPAND,1,1);
table1.attach(new Label("色"),6,7,0,1,AttachOptions.FILL,AttachOptions.FILL,1,1);
DrawingArea da1 = new DrawingArea();
da1.setSizeRequest(24,24);
da1.modifyBg(GtkStateType.NORMAL, new Color(cast(char)(projectInfo.grid1Color >> 16), cast(char)(projectInfo.grid1Color >> 8), cast(char)(projectInfo.grid1Color >> 0)));
int gridColor1 = projectInfo.grid1Color;
da1.addOnButtonPress((GdkEventButton* event, Widget widget){
ColorSelectionDialog dialog = new ColorSelectionDialog("色選択");
ColorSelection colorSelection = dialog.getColorSelection();
colorSelection.setCurrentColor(new Color(cast(char)(gridColor1 >> 16), cast(char)(gridColor1 >> 8), cast(char)(gridColor1 >> 0)));
dialog.run();
dialog.destroy();
Color color = new Color(255,255,255);
colorSelection.getCurrentColor(color);
gridColor1 = color.getValue24();
printf("color = %x\n",color.getValue24());
da1.modifyBg(GtkStateType.NORMAL, color);
return true;
});
table1.attach(da1,7,8,0,1,AttachOptions.FILL,AttachOptions.FILL,1,1);
table1.setBorderWidth(10);
Frame frame1 = new Frame(table1, "グリッド1");
leftBox.packStart(frame1, false, false, 0);
// グリッド2用
Table table2 = new Table(2,2,false);
table2.attach(new Label("表示"),0,1,0,1,AttachOptions.FILL,AttachOptions.FILL,1,1);
CheckButton checkButton2 = new CheckButton();
checkButton2.setActive(projectInfo.grid2Visible);
table2.attach(checkButton2,1,2,0,1,AttachOptions.FILL,AttachOptions.FILL,1,1);
table2.attach(new Label("グリッド間隔"),2,3,0,1,AttachOptions.FILL,AttachOptions.FILL,1,1);
SpinButton spinButton2 = new SpinButton(new Adjustment(projectInfo.grid2Interval, 1.0, 16.0, 1.0, 10.0, 0),1,0);
table2.attach(spinButton2,3,4,0,1,AttachOptions.FILL,AttachOptions.FILL,1,1);
table2.attach(new Label("種類"),4,5,0,1,AttachOptions.FILL,AttachOptions.FILL,1,1);
ComboBox comboBox2 = new ComboBox(true);
comboBox2.appendText("実線");
comboBox2.appendText("破線");
if(projectInfo.grid2Type == EGridType.NORMAL){
comboBox2.setActive(0);
}else{
comboBox2.setActive(1);
}
table2.attach(comboBox2,5,6,0,1,AttachOptions.FILL,AttachOptions.EXPAND,1,1);
table2.attach(new Label("色"),6,7,0,1,AttachOptions.FILL,AttachOptions.FILL,1,1);
DrawingArea da2 = new DrawingArea();
da2.setSizeRequest(24,24);
da2.modifyBg(GtkStateType.NORMAL, new Color(cast(char)(projectInfo.grid2Color >> 16), cast(char)(projectInfo.grid2Color >> 8), cast(char)(projectInfo.grid2Color >> 0)));
int gridColor2 = projectInfo.grid2Color;
da2.addOnButtonPress((GdkEventButton* event, Widget widget){
ColorSelectionDialog dialog = new ColorSelectionDialog("色選択");
ColorSelection colorSelection = dialog.getColorSelection();
colorSelection.setCurrentColor(new Color(cast(char)(gridColor2 >> 16), cast(char)(gridColor2 >> 8), cast(char)(gridColor2 >> 0)));
dialog.run();
dialog.destroy();
Color color = new Color(255,255,255);
colorSelection.getCurrentColor(color);
gridColor2 = color.getValue24();
printf("color = %x\n",color.getValue24());
da2.modifyBg(GtkStateType.NORMAL, color);
return true;
});
table2.attach(da2,7,8,0,1,AttachOptions.FILL,AttachOptions.FILL,1,1);
table2.setBorderWidth(10);
Frame frame2 = new Frame(table2, "グリッド2");
leftBox.packStart(frame2, false, false, 0);
mainBox.packStart(leftBox, false, false, 0);
VBox rightBox = new VBox(false, 5);
Button buttonOk = new Button("OK");
buttonOk.addOnClicked((Button button){
if(onGridSettingChangedFunction !is null){
EGridType gridType1 = cast(EGridType)comboBox1.getActive();
EGridType gridType2 = cast(EGridType)comboBox2.getActive();
onGridSettingChangedFunction(
checkButton1.getActive() == 1, cast(int)spinButton1.getValue(), gridType1, gridColor1,
checkButton2.getActive() == 1, cast(int)spinButton2.getValue(), gridType2, gridColor2
);
}
destroy();
});
rightBox.packStart(buttonOk, false, false, 0);
Button buttonCancel = new Button("Cancel");
buttonCancel.addOnClicked((Button button){
destroy();
});
rightBox.packStart(buttonCancel, false, false, 0);
mainBox.packStart(rightBox, false, false, 0);
showAll();
}
} | D |
/Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/x86_64-apple-macosx10.10/debug/PerfectLib.build/Log.swift.o : /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/JSONConvertible.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/File.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Log.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/PerfectServer.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Dir.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/PerfectError.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Utilities.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Bytes.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/SysProcess.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/SwiftCompatibility.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.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/macmini2/Desktop/workSpace/Perfect-Logger/.build/x86_64-apple-macosx10.10/debug/PerfectLib.build/Log~partial.swiftmodule : /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/JSONConvertible.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/File.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Log.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/PerfectServer.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Dir.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/PerfectError.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Utilities.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Bytes.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/SysProcess.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/SwiftCompatibility.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.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/macmini2/Desktop/workSpace/Perfect-Logger/.build/x86_64-apple-macosx10.10/debug/PerfectLib.build/Log~partial.swiftdoc : /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/JSONConvertible.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/File.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Log.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/PerfectServer.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Dir.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/PerfectError.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Utilities.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/Bytes.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/SysProcess.swift /Users/macmini2/Desktop/workSpace/Perfect-Logger/.build/checkouts/PerfectLib.git-3712999737848873669/Sources/PerfectLib/SwiftCompatibility.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.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 |
/Users/cansoykarafakili/Desktop/Hello/build/Intermediates/Hello.build/Debug/TLS.build/Objects-normal/x86_64/ClientSocket.o : /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/Mode.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/Error.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/Utilities.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/Certificates.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/Exports.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/Socket.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/ReadableSocket.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/WriteableSocket.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/ServerSocket.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/InternetSocket.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/ClientSocket.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/Context.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/libc.framework/Modules/libc.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Core.framework/Modules/Core.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Debugging.framework/Modules/Debugging.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Sockets.framework/Modules/Sockets.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Bits.framework/Modules/Bits.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Transport.framework/Modules/Transport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/ctls.git-9210868160426949823/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/cansoykarafakili/Desktop/Hello/build/Intermediates/Hello.build/Debug/TLS.build/Objects-normal/x86_64/ClientSocket~partial.swiftmodule : /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/Mode.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/Error.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/Utilities.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/Certificates.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/Exports.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/Socket.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/ReadableSocket.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/WriteableSocket.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/ServerSocket.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/InternetSocket.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/ClientSocket.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/Context.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/libc.framework/Modules/libc.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Core.framework/Modules/Core.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Debugging.framework/Modules/Debugging.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Sockets.framework/Modules/Sockets.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Bits.framework/Modules/Bits.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Transport.framework/Modules/Transport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/ctls.git-9210868160426949823/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/cansoykarafakili/Desktop/Hello/build/Intermediates/Hello.build/Debug/TLS.build/Objects-normal/x86_64/ClientSocket~partial.swiftdoc : /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/Mode.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/Error.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/Utilities.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/Certificates.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/Exports.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/Socket.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/ReadableSocket.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/WriteableSocket.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/ServerSocket.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/InternetSocket.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/ClientSocket.swift /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/tls.git-2678149690400510061/Sources/TLS/Context.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/libc.framework/Modules/libc.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Core.framework/Modules/Core.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Debugging.framework/Modules/Debugging.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Sockets.framework/Modules/Sockets.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Bits.framework/Modules/Bits.swiftmodule/x86_64.swiftmodule /Users/cansoykarafakili/Desktop/Hello/build/Products/Debug/Transport.framework/Modules/Transport.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/cansoykarafakili/Desktop/Hello/.build/checkouts/ctls.git-9210868160426949823/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 |
/Users/valeri/ЦФТ_ios_2019/30_03_carTask/30_03/Build/Intermediates.noindex/CarDirectory.build/Debug/30_03.build/Objects-normal/x86_64/СarDirectory.o : /Users/valeri/ЦФТ_ios_2019/30_03_carTask/30_03/30_03/CarStorage.swift /Users/valeri/ЦФТ_ios_2019/30_03_carTask/30_03/30_03/main.swift /Users/valeri/ЦФТ_ios_2019/30_03_carTask/30_03/30_03/UserConnection.swift /Users/valeri/ЦФТ_ios_2019/30_03_carTask/30_03/30_03/Car.swift /Users/valeri/ЦФТ_ios_2019/30_03_carTask/30_03/30_03/Commands.swift /Users/valeri/ЦФТ_ios_2019/30_03_carTask/30_03/30_03/СarDirectory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/valeri/ЦФТ_ios_2019/30_03_carTask/30_03/Build/Intermediates.noindex/CarDirectory.build/Debug/30_03.build/Objects-normal/x86_64/СarDirectory~partial.swiftmodule : /Users/valeri/ЦФТ_ios_2019/30_03_carTask/30_03/30_03/CarStorage.swift /Users/valeri/ЦФТ_ios_2019/30_03_carTask/30_03/30_03/main.swift /Users/valeri/ЦФТ_ios_2019/30_03_carTask/30_03/30_03/UserConnection.swift /Users/valeri/ЦФТ_ios_2019/30_03_carTask/30_03/30_03/Car.swift /Users/valeri/ЦФТ_ios_2019/30_03_carTask/30_03/30_03/Commands.swift /Users/valeri/ЦФТ_ios_2019/30_03_carTask/30_03/30_03/СarDirectory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/valeri/ЦФТ_ios_2019/30_03_carTask/30_03/Build/Intermediates.noindex/CarDirectory.build/Debug/30_03.build/Objects-normal/x86_64/СarDirectory~partial.swiftdoc : /Users/valeri/ЦФТ_ios_2019/30_03_carTask/30_03/30_03/CarStorage.swift /Users/valeri/ЦФТ_ios_2019/30_03_carTask/30_03/30_03/main.swift /Users/valeri/ЦФТ_ios_2019/30_03_carTask/30_03/30_03/UserConnection.swift /Users/valeri/ЦФТ_ios_2019/30_03_carTask/30_03/30_03/Car.swift /Users/valeri/ЦФТ_ios_2019/30_03_carTask/30_03/30_03/Commands.swift /Users/valeri/ЦФТ_ios_2019/30_03_carTask/30_03/30_03/СarDirectory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
| D |
// PERMUTE_ARGS:
// EXTRA_FILES: extra-files/teststdio.txt
import std.stdio;
import core.stdc.stdio;
void main()
{
auto f = std.stdio.File("runnable/extra-files/teststdio.txt", "r");
FILE* fp = f.getFP();
string buf;
int i;
do
{
buf = f.readln('\n');
foreach (c; buf)
printf("%x\n", c);
printf("\n");
switch (i)
{
case 0: assert(buf == "asdfasdf\n"); break;
case 1: assert(buf == "a\n"); break;
case 2: assert(buf == "sdf\n"); break;
case 3: assert(buf == "asdf\n"); break;
case 4: assert(buf == "\n"); break;
case 5: assert(buf == "\n"); break;
case 6: assert(buf == null); break;
default: assert(0);
}
i++;
} while (!feof(fp));
//fclose(fp);
}
| D |
module android.java.android.database.SQLException_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import1 = android.java.java.io.PrintStream_d_interface;
import import4 = android.java.java.lang.Class_d_interface;
import import3 = android.java.java.lang.StackTraceElement_d_interface;
import import2 = android.java.java.io.PrintWriter_d_interface;
import import0 = android.java.java.lang.JavaThrowable_d_interface;
final class SQLException : IJavaObject {
static immutable string[] _d_canCastTo = [
];
@Import this(arsd.jni.Default);
@Import this(string);
@Import this(string, import0.JavaThrowable);
@Import string getMessage();
@Import string getLocalizedMessage();
@Import import0.JavaThrowable getCause();
@Import import0.JavaThrowable initCause(import0.JavaThrowable);
@Import @JavaName("toString") string toString_();
override string toString() { return arsd.jni.javaObjectToString(this); }
@Import void printStackTrace();
@Import void printStackTrace(import1.PrintStream);
@Import void printStackTrace(import2.PrintWriter);
@Import import0.JavaThrowable fillInStackTrace();
@Import import3.StackTraceElement[] getStackTrace();
@Import void setStackTrace(import3.StackTraceElement[]);
@Import void addSuppressed(import0.JavaThrowable);
@Import import0.JavaThrowable[] getSuppressed();
@Import import4.Class getClass();
@Import int hashCode();
@Import bool equals(IJavaObject);
@Import void notify();
@Import void notifyAll();
@Import void wait(long);
@Import void wait(long, int);
@Import void wait();
mixin IJavaObjectImplementation!(false);
public static immutable string _javaParameterString = "Landroid/database/SQLException;";
}
| D |
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
*
* Copyright: Copyright (C) 1999-2018 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 http://www.digitalmars.com, Walter Bright)
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/attrib.d, _attrib.d)
* Documentation: https://dlang.org/phobos/dmd_attrib.html
* Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/attrib.d
*/
module dmd.attrib;
import dmd.aggregate;
import dmd.arraytypes;
import dmd.cond;
import dmd.declaration;
import dmd.dmodule;
import dmd.dscope;
import dmd.dsymbol;
import dmd.dsymbolsem;
import dmd.expression;
import dmd.func;
import dmd.globals;
import dmd.hdrgen;
import dmd.id;
import dmd.identifier;
import dmd.mtype;
import dmd.root.outbuffer;
import dmd.target;
import dmd.tokens;
import dmd.visitor;
/***********************************************************
*/
extern (C++) abstract class AttribDeclaration : Dsymbol
{
Dsymbols* decl; // array of Dsymbol's
extern (D) this(Dsymbols* decl)
{
this.decl = decl;
}
Dsymbols* include(Scope* sc)
{
if (errors)
return null;
return decl;
}
override final int apply(Dsymbol_apply_ft_t fp, void* param)
{
Dsymbols* d = include(_scope);
if (d)
{
for (size_t i = 0; i < d.dim; i++)
{
Dsymbol s = (*d)[i];
if (s)
{
if (s.apply(fp, param))
return 1;
}
}
}
return 0;
}
/****************************************
* Create a new scope if one or more given attributes
* are different from the sc's.
* If the returned scope != sc, the caller should pop
* the scope after it used.
*/
static Scope* createNewScope(Scope* sc, StorageClass stc, LINK linkage,
CPPMANGLE cppmangle, Prot protection, int explicitProtection,
AlignDeclaration aligndecl, PINLINE inlining)
{
Scope* sc2 = sc;
if (stc != sc.stc ||
linkage != sc.linkage ||
cppmangle != sc.cppmangle ||
!protection.isSubsetOf(sc.protection) ||
explicitProtection != sc.explicitProtection ||
aligndecl !is sc.aligndecl ||
inlining != sc.inlining)
{
// create new one for changes
sc2 = sc.copy();
sc2.stc = stc;
sc2.linkage = linkage;
sc2.cppmangle = cppmangle;
sc2.protection = protection;
sc2.explicitProtection = explicitProtection;
sc2.aligndecl = aligndecl;
sc2.inlining = inlining;
}
return sc2;
}
/****************************************
* A hook point to supply scope for members.
* addMember, setScope, importAll, semantic, semantic2 and semantic3 will use this.
*/
Scope* newScope(Scope* sc)
{
return sc;
}
override void addMember(Scope* sc, ScopeDsymbol sds)
{
Dsymbols* d = include(sc);
if (d)
{
Scope* sc2 = newScope(sc);
for (size_t i = 0; i < d.dim; i++)
{
Dsymbol s = (*d)[i];
//printf("\taddMember %s to %s\n", s.toChars(), sds.toChars());
s.addMember(sc2, sds);
}
if (sc2 != sc)
sc2.pop();
}
}
override void setScope(Scope* sc)
{
Dsymbols* d = include(sc);
//printf("\tAttribDeclaration::setScope '%s', d = %p\n",toChars(), d);
if (d)
{
Scope* sc2 = newScope(sc);
for (size_t i = 0; i < d.dim; i++)
{
Dsymbol s = (*d)[i];
s.setScope(sc2);
}
if (sc2 != sc)
sc2.pop();
}
}
override void importAll(Scope* sc)
{
Dsymbols* d = include(sc);
//printf("\tAttribDeclaration::importAll '%s', d = %p\n", toChars(), d);
if (d)
{
Scope* sc2 = newScope(sc);
for (size_t i = 0; i < d.dim; i++)
{
Dsymbol s = (*d)[i];
s.importAll(sc2);
}
if (sc2 != sc)
sc2.pop();
}
}
override void addComment(const(char)* comment)
{
//printf("AttribDeclaration::addComment %s\n", comment);
if (comment)
{
Dsymbols* d = include(null);
if (d)
{
for (size_t i = 0; i < d.dim; i++)
{
Dsymbol s = (*d)[i];
//printf("AttribDeclaration::addComment %s\n", s.toChars());
s.addComment(comment);
}
}
}
}
override const(char)* kind() const
{
return "attribute";
}
override bool oneMember(Dsymbol* ps, Identifier ident)
{
Dsymbols* d = include(null);
return Dsymbol.oneMembers(d, ps, ident);
}
override void setFieldOffset(AggregateDeclaration ad, uint* poffset, bool isunion)
{
Dsymbols* d = include(null);
if (d)
{
for (size_t i = 0; i < d.dim; i++)
{
Dsymbol s = (*d)[i];
s.setFieldOffset(ad, poffset, isunion);
}
}
}
override final bool hasPointers()
{
Dsymbols* d = include(null);
if (d)
{
for (size_t i = 0; i < d.dim; i++)
{
Dsymbol s = (*d)[i];
if (s.hasPointers())
return true;
}
}
return false;
}
override final bool hasStaticCtorOrDtor()
{
Dsymbols* d = include(null);
if (d)
{
for (size_t i = 0; i < d.dim; i++)
{
Dsymbol s = (*d)[i];
if (s.hasStaticCtorOrDtor())
return true;
}
}
return false;
}
override final void checkCtorConstInit()
{
Dsymbols* d = include(null);
if (d)
{
for (size_t i = 0; i < d.dim; i++)
{
Dsymbol s = (*d)[i];
s.checkCtorConstInit();
}
}
}
/****************************************
*/
override final void addLocalClass(ClassDeclarations* aclasses)
{
Dsymbols* d = include(null);
if (d)
{
for (size_t i = 0; i < d.dim; i++)
{
Dsymbol s = (*d)[i];
s.addLocalClass(aclasses);
}
}
}
override final inout(AttribDeclaration) isAttribDeclaration() inout
{
return this;
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) class StorageClassDeclaration : AttribDeclaration
{
StorageClass stc;
extern (D) this(StorageClass stc, Dsymbols* decl)
{
super(decl);
this.stc = stc;
}
override Dsymbol syntaxCopy(Dsymbol s)
{
assert(!s);
return new StorageClassDeclaration(stc, Dsymbol.arraySyntaxCopy(decl));
}
override Scope* newScope(Scope* sc)
{
StorageClass scstc = sc.stc;
/* These sets of storage classes are mutually exclusive,
* so choose the innermost or most recent one.
*/
if (stc & (STC.auto_ | STC.scope_ | STC.static_ | STC.extern_ | STC.manifest))
scstc &= ~(STC.auto_ | STC.scope_ | STC.static_ | STC.extern_ | STC.manifest);
if (stc & (STC.auto_ | STC.scope_ | STC.static_ | STC.tls | STC.manifest | STC.gshared))
scstc &= ~(STC.auto_ | STC.scope_ | STC.static_ | STC.tls | STC.manifest | STC.gshared);
if (stc & (STC.const_ | STC.immutable_ | STC.manifest))
scstc &= ~(STC.const_ | STC.immutable_ | STC.manifest);
if (stc & (STC.gshared | STC.shared_ | STC.tls))
scstc &= ~(STC.gshared | STC.shared_ | STC.tls);
if (stc & (STC.safe | STC.trusted | STC.system))
scstc &= ~(STC.safe | STC.trusted | STC.system);
scstc |= stc;
//printf("scstc = x%llx\n", scstc);
return createNewScope(sc, scstc, sc.linkage, sc.cppmangle,
sc.protection, sc.explicitProtection, sc.aligndecl, sc.inlining);
}
override final bool oneMember(Dsymbol* ps, Identifier ident)
{
bool t = Dsymbol.oneMembers(decl, ps, ident);
if (t && *ps)
{
/* This is to deal with the following case:
* struct Tick {
* template to(T) { const T to() { ... } }
* }
* For eponymous function templates, the 'const' needs to get attached to 'to'
* before the semantic analysis of 'to', so that template overloading based on the
* 'this' pointer can be successful.
*/
FuncDeclaration fd = (*ps).isFuncDeclaration();
if (fd)
{
/* Use storage_class2 instead of storage_class otherwise when we do .di generation
* we'll wind up with 'const const' rather than 'const'.
*/
/* Don't think we need to worry about mutually exclusive storage classes here
*/
fd.storage_class2 |= stc;
}
}
return t;
}
override void addMember(Scope* sc, ScopeDsymbol sds)
{
Dsymbols* d = include(sc);
if (d)
{
Scope* sc2 = newScope(sc);
for (size_t i = 0; i < d.dim; i++)
{
Dsymbol s = (*d)[i];
//printf("\taddMember %s to %s\n", s.toChars(), sds.toChars());
// STC.local needs to be attached before the member is added to the scope (because it influences the parent symbol)
if (auto decl = s.isDeclaration())
{
decl.storage_class |= stc & STC.local;
if (auto sdecl = s.isStorageClassDeclaration()) // TODO: why is this not enough to deal with the nested case?
{
sdecl.stc |= stc & STC.local;
}
}
s.addMember(sc2, sds);
}
if (sc2 != sc)
sc2.pop();
}
}
override inout(StorageClassDeclaration) isStorageClassDeclaration() inout
{
return this;
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class DeprecatedDeclaration : StorageClassDeclaration
{
Expression msg;
const(char)* msgstr;
extern (D) this(Expression msg, Dsymbols* decl)
{
super(STC.deprecated_, decl);
this.msg = msg;
}
override Dsymbol syntaxCopy(Dsymbol s)
{
assert(!s);
return new DeprecatedDeclaration(msg.syntaxCopy(), Dsymbol.arraySyntaxCopy(decl));
}
/**
* Provides a new scope with `STC.deprecated_` and `Scope.depdecl` set
*
* Calls `StorageClassDeclaration.newScope` (as it must be called or copied
* in any function overriding `newScope`), then set the `Scope`'s depdecl.
*
* Returns:
* Always a new scope, to use for this `DeprecatedDeclaration`'s members.
*/
override Scope* newScope(Scope* sc)
{
auto scx = super.newScope(sc);
// The enclosing scope is deprecated as well
if (scx == sc)
scx = sc.push();
scx.depdecl = this;
return scx;
}
override void setScope(Scope* sc)
{
//printf("DeprecatedDeclaration::setScope() %p\n", this);
if (decl)
Dsymbol.setScope(sc); // for forward reference
return AttribDeclaration.setScope(sc);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class LinkDeclaration : AttribDeclaration
{
LINK linkage;
extern (D) this(LINK p, Dsymbols* decl)
{
super(decl);
//printf("LinkDeclaration(linkage = %d, decl = %p)\n", p, decl);
linkage = (p == LINK.system) ? Target.systemLinkage() : p;
}
static LinkDeclaration create(LINK p, Dsymbols* decl)
{
return new LinkDeclaration(p, decl);
}
override Dsymbol syntaxCopy(Dsymbol s)
{
assert(!s);
return new LinkDeclaration(linkage, Dsymbol.arraySyntaxCopy(decl));
}
override Scope* newScope(Scope* sc)
{
return createNewScope(sc, sc.stc, this.linkage, sc.cppmangle, sc.protection, sc.explicitProtection,
sc.aligndecl, sc.inlining);
}
override const(char)* toChars() const
{
return "extern ()";
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class CPPMangleDeclaration : AttribDeclaration
{
CPPMANGLE cppmangle;
extern (D) this(CPPMANGLE p, Dsymbols* decl)
{
super(decl);
//printf("CPPMangleDeclaration(cppmangle = %d, decl = %p)\n", p, decl);
cppmangle = p;
}
override Dsymbol syntaxCopy(Dsymbol s)
{
assert(!s);
return new CPPMangleDeclaration(cppmangle, Dsymbol.arraySyntaxCopy(decl));
}
override Scope* newScope(Scope* sc)
{
return createNewScope(sc, sc.stc, LINK.cpp, cppmangle, sc.protection, sc.explicitProtection,
sc.aligndecl, sc.inlining);
}
override const(char)* toChars() const
{
return "extern ()";
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class ProtDeclaration : AttribDeclaration
{
Prot protection;
Identifiers* pkg_identifiers;
/**
* Params:
* loc = source location of attribute token
* p = protection attribute data
* decl = declarations which are affected by this protection attribute
*/
extern (D) this(const ref Loc loc, Prot p, Dsymbols* decl)
{
super(decl);
this.loc = loc;
this.protection = p;
//printf("decl = %p\n", decl);
}
/**
* Params:
* loc = source location of attribute token
* pkg_identifiers = list of identifiers for a qualified package name
* decl = declarations which are affected by this protection attribute
*/
extern (D) this(const ref Loc loc, Identifiers* pkg_identifiers, Dsymbols* decl)
{
super(decl);
this.loc = loc;
this.protection.kind = Prot.Kind.package_;
this.protection.pkg = null;
this.pkg_identifiers = pkg_identifiers;
}
override Dsymbol syntaxCopy(Dsymbol s)
{
assert(!s);
if (protection.kind == Prot.Kind.package_)
return new ProtDeclaration(this.loc, pkg_identifiers, Dsymbol.arraySyntaxCopy(decl));
else
return new ProtDeclaration(this.loc, protection, Dsymbol.arraySyntaxCopy(decl));
}
override Scope* newScope(Scope* sc)
{
if (pkg_identifiers)
dsymbolSemantic(this, sc);
return createNewScope(sc, sc.stc, sc.linkage, sc.cppmangle, this.protection, 1, sc.aligndecl, sc.inlining);
}
override void addMember(Scope* sc, ScopeDsymbol sds)
{
if (pkg_identifiers)
{
Dsymbol tmp;
Package.resolve(pkg_identifiers, &tmp, null);
protection.pkg = tmp ? tmp.isPackage() : null;
pkg_identifiers = null;
}
if (protection.kind == Prot.Kind.package_ && protection.pkg && sc._module)
{
Module m = sc._module;
Package pkg = m.parent ? m.parent.isPackage() : null;
if (!pkg || !protection.pkg.isAncestorPackageOf(pkg))
error("does not bind to one of ancestor packages of module `%s`", m.toPrettyChars(true));
}
return AttribDeclaration.addMember(sc, sds);
}
override const(char)* kind() const
{
return "protection attribute";
}
override const(char)* toPrettyChars(bool)
{
assert(protection.kind > Prot.Kind.undefined);
OutBuffer buf;
protectionToBuffer(&buf, protection);
return buf.extractString();
}
override final inout(ProtDeclaration) isProtDeclaration() inout
{
return this;
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class AlignDeclaration : AttribDeclaration
{
Expression ealign;
enum structalign_t UNKNOWN = 0;
static assert(STRUCTALIGN_DEFAULT != UNKNOWN);
structalign_t salign = UNKNOWN;
extern (D) this(const ref Loc loc, Expression ealign, Dsymbols* decl)
{
super(decl);
this.loc = loc;
this.ealign = ealign;
}
override Dsymbol syntaxCopy(Dsymbol s)
{
assert(!s);
return new AlignDeclaration(loc,
ealign.syntaxCopy(), Dsymbol.arraySyntaxCopy(decl));
}
override Scope* newScope(Scope* sc)
{
return createNewScope(sc, sc.stc, sc.linkage, sc.cppmangle, sc.protection, sc.explicitProtection, this, sc.inlining);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class AnonDeclaration : AttribDeclaration
{
bool isunion;
int sem; // 1 if successful semantic()
uint anonoffset; // offset of anonymous struct
uint anonstructsize; // size of anonymous struct
uint anonalignsize; // size of anonymous struct for alignment purposes
extern (D) this(const ref Loc loc, bool isunion, Dsymbols* decl)
{
super(decl);
this.loc = loc;
this.isunion = isunion;
}
override Dsymbol syntaxCopy(Dsymbol s)
{
assert(!s);
return new AnonDeclaration(loc, isunion, Dsymbol.arraySyntaxCopy(decl));
}
override void setScope(Scope* sc)
{
if (decl)
Dsymbol.setScope(sc);
return AttribDeclaration.setScope(sc);
}
override void setFieldOffset(AggregateDeclaration ad, uint* poffset, bool isunion)
{
//printf("\tAnonDeclaration::setFieldOffset %s %p\n", isunion ? "union" : "struct", this);
if (decl)
{
/* This works by treating an AnonDeclaration as an aggregate 'member',
* so in order to place that member we need to compute the member's
* size and alignment.
*/
size_t fieldstart = ad.fields.dim;
/* Hackishly hijack ad's structsize and alignsize fields
* for use in our fake anon aggregate member.
*/
uint savestructsize = ad.structsize;
uint savealignsize = ad.alignsize;
ad.structsize = 0;
ad.alignsize = 0;
uint offset = 0;
for (size_t i = 0; i < decl.dim; i++)
{
Dsymbol s = (*decl)[i];
s.setFieldOffset(ad, &offset, this.isunion);
if (this.isunion)
offset = 0;
}
/* https://issues.dlang.org/show_bug.cgi?id=13613
* If the fields in this.members had been already
* added in ad.fields, just update *poffset for the subsequent
* field offset calculation.
*/
if (fieldstart == ad.fields.dim)
{
ad.structsize = savestructsize;
ad.alignsize = savealignsize;
*poffset = ad.structsize;
return;
}
anonstructsize = ad.structsize;
anonalignsize = ad.alignsize;
ad.structsize = savestructsize;
ad.alignsize = savealignsize;
// 0 sized structs are set to 1 byte
if (anonstructsize == 0)
{
anonstructsize = 1;
anonalignsize = 1;
}
assert(_scope);
auto alignment = _scope.alignment();
/* Given the anon 'member's size and alignment,
* go ahead and place it.
*/
anonoffset = AggregateDeclaration.placeField(
poffset,
anonstructsize, anonalignsize, alignment,
&ad.structsize, &ad.alignsize,
isunion);
// Add to the anon fields the base offset of this anonymous aggregate
//printf("anon fields, anonoffset = %d\n", anonoffset);
for (size_t i = fieldstart; i < ad.fields.dim; i++)
{
VarDeclaration v = ad.fields[i];
//printf("\t[%d] %s %d\n", i, v.toChars(), v.offset);
v.offset += anonoffset;
}
}
}
override const(char)* kind() const
{
return (isunion ? "anonymous union" : "anonymous struct");
}
override final inout(AnonDeclaration) isAnonDeclaration() inout
{
return this;
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class PragmaDeclaration : AttribDeclaration
{
Expressions* args; // array of Expression's
extern (D) this(const ref Loc loc, Identifier ident, Expressions* args, Dsymbols* decl)
{
super(decl);
this.loc = loc;
this.ident = ident;
this.args = args;
}
override Dsymbol syntaxCopy(Dsymbol s)
{
//printf("PragmaDeclaration::syntaxCopy(%s)\n", toChars());
assert(!s);
return new PragmaDeclaration(loc, ident, Expression.arraySyntaxCopy(args), Dsymbol.arraySyntaxCopy(decl));
}
override Scope* newScope(Scope* sc)
{
if (ident == Id.Pinline)
{
PINLINE inlining = PINLINE.default_;
if (!args || args.dim == 0)
inlining = PINLINE.default_;
else if (args.dim != 1)
{
error("one boolean expression expected for `pragma(inline)`, not %d", args.dim);
args.setDim(1);
(*args)[0] = new ErrorExp();
}
else
{
Expression e = (*args)[0];
if (e.op != TOK.int64 || !e.type.equals(Type.tbool))
{
if (e.op != TOK.error)
{
error("pragma(`inline`, `true` or `false`) expected, not `%s`", e.toChars());
(*args)[0] = new ErrorExp();
}
}
else if (e.isBool(true))
inlining = PINLINE.always;
else if (e.isBool(false))
inlining = PINLINE.never;
}
return createNewScope(sc, sc.stc, sc.linkage, sc.cppmangle, sc.protection, sc.explicitProtection, sc.aligndecl, inlining);
}
return sc;
}
override const(char)* kind() const
{
return "pragma";
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) class ConditionalDeclaration : AttribDeclaration
{
Condition condition;
Dsymbols* elsedecl; // array of Dsymbol's for else block
extern (D) this(Condition condition, Dsymbols* decl, Dsymbols* elsedecl)
{
super(decl);
//printf("ConditionalDeclaration::ConditionalDeclaration()\n");
this.condition = condition;
this.elsedecl = elsedecl;
}
override Dsymbol syntaxCopy(Dsymbol s)
{
assert(!s);
return new ConditionalDeclaration(condition.syntaxCopy(), Dsymbol.arraySyntaxCopy(decl), Dsymbol.arraySyntaxCopy(elsedecl));
}
override final bool oneMember(Dsymbol* ps, Identifier ident)
{
//printf("ConditionalDeclaration::oneMember(), inc = %d\n", condition.inc);
if (condition.inc)
{
Dsymbols* d = condition.include(null) ? decl : elsedecl;
return Dsymbol.oneMembers(d, ps, ident);
}
else
{
bool res = (Dsymbol.oneMembers(decl, ps, ident) && *ps is null && Dsymbol.oneMembers(elsedecl, ps, ident) && *ps is null);
*ps = null;
return res;
}
}
// Decide if 'then' or 'else' code should be included
override Dsymbols* include(Scope* sc)
{
//printf("ConditionalDeclaration::include(sc = %p) scope = %p\n", sc, scope);
if (errors)
return null;
assert(condition);
return condition.include(_scope ? _scope : sc) ? decl : elsedecl;
}
override final void addComment(const(char)* comment)
{
/* Because addComment is called by the parser, if we called
* include() it would define a version before it was used.
* But it's no problem to drill down to both decl and elsedecl,
* so that's the workaround.
*/
if (comment)
{
Dsymbols* d = decl;
for (int j = 0; j < 2; j++)
{
if (d)
{
for (size_t i = 0; i < d.dim; i++)
{
Dsymbol s = (*d)[i];
//printf("ConditionalDeclaration::addComment %s\n", s.toChars());
s.addComment(comment);
}
}
d = elsedecl;
}
}
}
override void setScope(Scope* sc)
{
Dsymbols* d = include(sc);
//printf("\tConditionalDeclaration::setScope '%s', d = %p\n",toChars(), d);
if (d)
{
for (size_t i = 0; i < d.dim; i++)
{
Dsymbol s = (*d)[i];
s.setScope(sc);
}
}
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class StaticIfDeclaration : ConditionalDeclaration
{
ScopeDsymbol scopesym;
bool addisdone;
extern (D) this(Condition condition, Dsymbols* decl, Dsymbols* elsedecl)
{
super(condition, decl, elsedecl);
//printf("StaticIfDeclaration::StaticIfDeclaration()\n");
}
override Dsymbol syntaxCopy(Dsymbol s)
{
assert(!s);
return new StaticIfDeclaration(condition.syntaxCopy(), Dsymbol.arraySyntaxCopy(decl), Dsymbol.arraySyntaxCopy(elsedecl));
}
/****************************************
* Different from other AttribDeclaration subclasses, include() call requires
* the completion of addMember and setScope phases.
*/
override Dsymbols* include(Scope* sc)
{
//printf("StaticIfDeclaration::include(sc = %p) scope = %p\n", sc, scope);
if (errors)
return null;
if (condition.inc == 0)
{
assert(scopesym); // addMember is already done
assert(_scope); // setScope is already done
Dsymbols* d = ConditionalDeclaration.include(_scope);
if (d && !addisdone)
{
// Add members lazily.
for (size_t i = 0; i < d.dim; i++)
{
Dsymbol s = (*d)[i];
s.addMember(_scope, scopesym);
}
// Set the member scopes lazily.
for (size_t i = 0; i < d.dim; i++)
{
Dsymbol s = (*d)[i];
s.setScope(_scope);
}
addisdone = true;
}
return d;
}
else
{
return ConditionalDeclaration.include(sc);
}
}
override void addMember(Scope* sc, ScopeDsymbol sds)
{
//printf("StaticIfDeclaration::addMember() '%s'\n", toChars());
/* This is deferred until the condition evaluated later (by the include() call),
* so that expressions in the condition can refer to declarations
* in the same scope, such as:
*
* template Foo(int i)
* {
* const int j = i + 1;
* static if (j == 3)
* const int k;
* }
*/
this.scopesym = sds;
}
override void setScope(Scope* sc)
{
// do not evaluate condition before semantic pass
// But do set the scope, in case we need it for forward referencing
Dsymbol.setScope(sc);
}
override void importAll(Scope* sc)
{
// do not evaluate condition before semantic pass
}
override const(char)* kind() const
{
return "static if";
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
* Static foreach at declaration scope, like:
* static foreach (i; [0, 1, 2]){ }
*/
extern (C++) final class StaticForeachDeclaration : AttribDeclaration
{
StaticForeach sfe; /// contains `static foreach` expansion logic
ScopeDsymbol scopesym; /// cached enclosing scope (mimics `static if` declaration)
/++
`include` can be called multiple times, but a `static foreach`
should be expanded at most once. Achieved by caching the result
of the first call. We need both `cached` and `cache`, because
`null` is a valid value for `cache`.
+/
bool cached = false;
Dsymbols* cache = null;
extern (D) this(StaticForeach sfe, Dsymbols* decl)
{
super(decl);
this.sfe = sfe;
}
override Dsymbol syntaxCopy(Dsymbol s)
{
assert(!s);
return new StaticForeachDeclaration(
sfe.syntaxCopy(),
Dsymbol.arraySyntaxCopy(decl));
}
override final bool oneMember(Dsymbol* ps, Identifier ident)
{
// Required to support IFTI on a template that contains a
// `static foreach` declaration. `super.oneMember` calls
// include with a `null` scope. As `static foreach` requires
// the scope for expansion, `oneMember` can only return a
// precise result once `static foreach` has been expanded.
if (cached)
{
return super.oneMember(ps, ident);
}
*ps = null; // a `static foreach` declaration may in general expand to multiple symbols
return false;
}
override Dsymbols* include(Scope* sc)
{
if (errors)
return null;
if (cached)
{
return cache;
}
sfe.prepare(_scope); // lower static foreach aggregate
if (!sfe.ready())
{
return null; // TODO: ok?
}
// expand static foreach
import dmd.statementsem: makeTupleForeach;
Dsymbols* d = makeTupleForeach!(true,true)(_scope, sfe.aggrfe, decl, sfe.needExpansion);
if (d) // process generated declarations
{
// Add members lazily.
for (size_t i = 0; i < d.dim; i++)
{
Dsymbol s = (*d)[i];
s.addMember(_scope, scopesym);
}
// Set the member scopes lazily.
for (size_t i = 0; i < d.dim; i++)
{
Dsymbol s = (*d)[i];
s.setScope(_scope);
}
}
cached = true;
cache = d;
return d;
}
override void addMember(Scope* sc, ScopeDsymbol sds)
{
// used only for caching the enclosing symbol
this.scopesym = sds;
}
override final void addComment(const(char)* comment)
{
// do nothing
// change this to give semantics to documentation comments on static foreach declarations
}
override void setScope(Scope* sc)
{
// do not evaluate condition before semantic pass
// But do set the scope, in case we need it for forward referencing
Dsymbol.setScope(sc);
}
override void importAll(Scope* sc)
{
// do not evaluate aggregate before semantic pass
}
override const(char)* kind() const
{
return "static foreach";
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
* Collection of declarations that stores foreach index variables in a
* local symbol table. Other symbols declared within are forwarded to
* another scope, like:
*
* static foreach (i; 0 .. 10) // loop variables for different indices do not conflict.
* { // this body is expanded into 10 ForwardingAttribDeclarations, where `i` has storage class STC.local
* mixin("enum x" ~ to!string(i) ~ " = i"); // ok, can access current loop variable
* }
*
* static foreach (i; 0.. 10)
* {
* pragma(msg, mixin("x" ~ to!string(i))); // ok, all 10 symbols are visible as they were forwarded to the global scope
* }
*
* static assert (!is(typeof(i))); // loop index variable is not visible outside of the static foreach loop
*
* A StaticForeachDeclaration generates one
* ForwardingAttribDeclaration for each expansion of its body. The
* AST of the ForwardingAttribDeclaration contains both the `static
* foreach` variables and the respective copy of the `static foreach`
* body. The functionality is achieved by using a
* ForwardingScopeDsymbol as the parent symbol for the generated
* declarations.
*/
extern(C++) final class ForwardingAttribDeclaration: AttribDeclaration
{
ForwardingScopeDsymbol sym = null;
this(Dsymbols* decl)
{
super(decl);
sym = new ForwardingScopeDsymbol(null);
sym.symtab = new DsymbolTable();
}
/**************************************
* Use the ForwardingScopeDsymbol as the parent symbol for members.
*/
override Scope* newScope(Scope* sc)
{
return sc.push(sym);
}
/***************************************
* Lazily initializes the scope to forward to.
*/
override void addMember(Scope* sc, ScopeDsymbol sds)
{
parent = sym.parent = sym.forward = sds;
return super.addMember(sc, sym);
}
override inout(ForwardingAttribDeclaration) isForwardingAttribDeclaration() inout
{
return this;
}
}
/***********************************************************
* Mixin declarations, like:
* mixin("int x");
*/
extern (C++) final class CompileDeclaration : AttribDeclaration
{
Expression exp;
ScopeDsymbol scopesym;
bool compiled;
extern (D) this(const ref Loc loc, Expression exp)
{
super(null);
//printf("CompileDeclaration(loc = %d)\n", loc.linnum);
this.loc = loc;
this.exp = exp;
}
override Dsymbol syntaxCopy(Dsymbol s)
{
//printf("CompileDeclaration::syntaxCopy('%s')\n", toChars());
return new CompileDeclaration(loc, exp.syntaxCopy());
}
override void addMember(Scope* sc, ScopeDsymbol sds)
{
//printf("CompileDeclaration::addMember(sc = %p, sds = %p, memnum = %d)\n", sc, sds, memnum);
this.scopesym = sds;
}
override void setScope(Scope* sc)
{
Dsymbol.setScope(sc);
}
override const(char)* kind() const
{
return "mixin";
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
* User defined attributes look like:
* @(args, ...)
*/
extern (C++) final class UserAttributeDeclaration : AttribDeclaration
{
Expressions* atts;
extern (D) this(Expressions* atts, Dsymbols* decl)
{
super(decl);
//printf("UserAttributeDeclaration()\n");
this.atts = atts;
}
override Dsymbol syntaxCopy(Dsymbol s)
{
//printf("UserAttributeDeclaration::syntaxCopy('%s')\n", toChars());
assert(!s);
return new UserAttributeDeclaration(Expression.arraySyntaxCopy(this.atts), Dsymbol.arraySyntaxCopy(decl));
}
override Scope* newScope(Scope* sc)
{
Scope* sc2 = sc;
if (atts && atts.dim)
{
// create new one for changes
sc2 = sc.copy();
sc2.userAttribDecl = this;
}
return sc2;
}
override void setScope(Scope* sc)
{
//printf("UserAttributeDeclaration::setScope() %p\n", this);
if (decl)
Dsymbol.setScope(sc); // for forward reference of UDAs
return AttribDeclaration.setScope(sc);
}
static Expressions* concat(Expressions* udas1, Expressions* udas2)
{
Expressions* udas;
if (!udas1 || udas1.dim == 0)
udas = udas2;
else if (!udas2 || udas2.dim == 0)
udas = udas1;
else
{
/* Create a new tuple that combines them
* (do not append to left operand, as this is a copy-on-write operation)
*/
udas = new Expressions();
udas.push(new TupleExp(Loc.initial, udas1));
udas.push(new TupleExp(Loc.initial, udas2));
}
return udas;
}
Expressions* getAttributes()
{
if (auto sc = _scope)
{
_scope = null;
arrayExpressionSemantic(atts, sc);
}
auto exps = new Expressions();
if (userAttribDecl)
exps.push(new TupleExp(Loc.initial, userAttribDecl.getAttributes()));
if (atts && atts.dim)
exps.push(new TupleExp(Loc.initial, atts));
return exps;
}
override const(char)* kind() const
{
return "UserAttribute";
}
override void accept(Visitor v)
{
v.visit(this);
}
}
| D |
wasting of the body during a chronic disease
| D |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.