FastCharSearch is now @nogc.
This commit is contained in:
parent
53b22c93ad
commit
16b486c623
|
@ -35,7 +35,7 @@ template FastCharSearch(dstring chars, uint tableSize = 256)
|
|||
}
|
||||
|
||||
///Generate the search table and the canFind method.
|
||||
string searchCode(dstring chars, uint tableSize)() @trusted
|
||||
string searchCode(dstring chars, uint tableSize)() @safe pure nothrow
|
||||
{
|
||||
const tableSizeStr = to!string(tableSize);
|
||||
ubyte[tableSize] table;
|
||||
|
@ -76,7 +76,7 @@ string searchCode(dstring chars, uint tableSize)() @trusted
|
|||
|
||||
string code = tableSize ? tableCode() : "";
|
||||
|
||||
code ~= "bool canFind(in dchar c) pure @safe nothrow\n"
|
||||
code ~= "bool canFind(in dchar c) pure @safe nothrow @nogc\n"
|
||||
"{\n";
|
||||
|
||||
if(tableSize)
|
||||
|
|
Loading…
Reference in a new issue