Enhancement - StringTable integration

- StringTable now integrated into Context.
- Docs updated for new "locale" configuration variable.
- StringTable unit tests implemented.
This commit is contained in:
Paul Beckingham
2009-05-28 17:59:55 -04:00
parent 8627a924f7
commit 54789082c9
9 changed files with 134 additions and 13 deletions

View File

@@ -93,7 +93,7 @@ bool Config::load (const std::string& file)
while (getline (in, line))
{
// Remove comments.
size_type pound = line.find ("#");
std::string::size_type pound = line.find ("#");
if (pound != std::string::npos)
line = line.substr (0, pound);
@@ -102,7 +102,7 @@ bool Config::load (const std::string& file)
// Skip empty lines.
if (line.length () > 0)
{
size_type equal = line.find ("=");
std::string::size_type equal = line.find ("=");
if (equal != std::string::npos)
{
std::string key = trim (line.substr (0, equal), " \t");