6
local comp = new StringComparator(6, nil,
8
['\u00DF', 'ss', 0x0100, 0x0200],
9
['\u00E0', 'a', 0x1000, 0x2000],
10
['\u00E1', 'a', 0x4000, 0x8000]
13
"Type QUIT to quit.\n";
19
"\bDictionary string: ";
21
if (s1.toLower() == 'quit')
27
m = comp.matchValues(s2, s1);
28
h1 = comp.calcHash(s1);
29
h2 = comp.calcHash(s2);
30
"Match = <<toString(m, 16)>>,
31
hash(<<s1>>) = <<h1>>, hash(<<s2>>) = <<h2>>";
33
if (m != 0 && h1 != h2)
34
"\n*** HASH MISMATCH!!! ***\n";