hgeStringTable::GetString

Returns pointer to a string specified by it's name.

char *GetString(
  const char *name
);

Parameters

name
String name.

Return value

If successful, returns pointer to the string. Otherwise returns 0.

Remarks

Once a string table file is parsed within hgeStringTable constructor, GetString returns internal pointers to the strings. Only one copy of each string is maintained. The returned pointer will be the same for each call of GetString with a specific name, and thus it can be cached in your code. The returned pointers remain valid until hgeStringTable destructor is called.

You should not free the returned pointers. All strings memory is freed upon hgeStringTable destructor call.

Requirements

Header: hgestrings.h
Import library: hgehelp.lib