util/StringUtil: rename strchug_fast() to StripLeft()

This commit is contained in:
Max Kellermann
2014-08-07 14:53:07 +02:00
parent db6db51742
commit 87bcf739ee
11 changed files with 26 additions and 29 deletions

View File

@@ -129,7 +129,7 @@ static bool
ParseConfigLine(char *line, const char *dir_name, AllocatedPath &result_dir)
{
// strip leading white space
line = strchug_fast(line);
line = StripLeft(line);
// check for end-of-line or comment
if (*line == '\0' || *line == '#')
@@ -141,11 +141,11 @@ ParseConfigLine(char *line, const char *dir_name, AllocatedPath &result_dir)
line += strlen(dir_name);
// strip equals sign and spaces around it
line = strchug_fast(line);
line = StripLeft(line);
if (*line != '=')
return false;
++line;
line = strchug_fast(line);
line = StripLeft(line);
// check if path is quoted
bool quoted = false;