src/StringTable.cc

changeset 112
def56932f938
parent 88
5def6ff8b466
child 115
9be16e1c1e44
equal deleted inserted replaced
111:87d9ebd3ef34 112:def56932f938
42 42
43 // ============================================================================ 43 // ============================================================================
44 // 44 //
45 // Potentially adds a string to the table and returns the index of it. 45 // Potentially adds a string to the table and returns the index of it.
46 // 46 //
47 int GetStringTableIndex (const String& a) 47 int StringTableIndex (const String& a)
48 { 48 {
49 // Find a free slot in the table. 49 // Find a free slot in the table.
50 int idx; 50 int idx;
51 51
52 for (idx = 0; idx < gStringTable.Size(); idx++) 52 for (idx = 0; idx < gStringTable.Size(); idx++)

mercurial