intermediate changes

This commit is contained in:
3lswear
2022-01-13 09:25:04 +03:00
parent 7c6d0783f1
commit ebd09bbcdc
5 changed files with 115 additions and 79 deletions

View File

@@ -35,6 +35,14 @@ namespace config
/* std::string to_string(void); */
};
bool isspace(char c)
{
if (c == ' ' || c == '\t')
return (true);
else
return (false);
}
bool istomlkey(char c)
{
if (isalnum(c) || c == '-' || c == '_')
@@ -75,7 +83,7 @@ namespace config
char Tokenizer::getWithoutWhiteSpace(void)
{
char c = ' ';
while (c == ' ')
while (config::isspace(c))
{
file.get(c);
if ((c == ' ') && !file.good())