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++) |