Use static array for table

This commit is contained in:
Dennis Korpel 2024-01-06 17:43:49 +01:00
parent bd8b943fa2
commit bdbce3b67d
3 changed files with 3 additions and 2 deletions

View file

@ -255,6 +255,7 @@ has_public_example="-etc.c.curl,\
-std.internal.math.gammafunction,\
-std.internal.scopebuffer,\
-std.internal.test.dummyrange,\
-std.internal.unicode_tables,\
-std.int128,\
-std.json,\
-std.mathspecial,\

View file

@ -831,7 +831,7 @@ return t;
}
@property FCE fullCaseTable(size_t index) nothrow @nogc @safe pure
{
static immutable ulong[] t = [
static immutable ulong[3188] t = [
0x1E90B000000021,0x1E92D000000121,0x10CAE000000021,0x10CEE000000121,0x00496000000021,0x00497000000121,
0x1E911000000021,0x1E933000000121,0x0A722000000021,0x0A723000000121,0x01F79000000021,0x01FF9000000121,
0x01F44000000021,0x01F4C000000121,0x0015A000000021,0x0015B000000121,0x010FD000000021,0x01CBD000000121,

View file

@ -901,7 +901,7 @@ void writeCaseFolding(File sink)
writeln("}");
writeln("@property FCE fullCaseTable(size_t index) nothrow @nogc @safe pure");
writeln("{");
write("static immutable ulong[] t = [");
writef("static immutable ulong[%d] t = [", fullTable.length);
int[4] maxS = 0;
foreach (i, v; fullTable)
{