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

@@ -96,7 +96,7 @@ config_read_block(FILE *fp, int *count, char *string, Error &error)
}
(*count)++;
line = strchug_fast(line);
line = StripLeft(line);
if (*line == 0 || *line == CONF_COMMENT)
continue;
@@ -104,7 +104,7 @@ config_read_block(FILE *fp, int *count, char *string, Error &error)
/* end of this block; return from the function
(and from this "while" loop) */
line = strchug_fast(line + 1);
line = StripLeft(line + 1);
if (*line != 0 && *line != CONF_COMMENT) {
delete ret;
error.Format(config_file_domain,
@@ -155,7 +155,7 @@ ReadConfigFile(ConfigData &config_data, FILE *fp, Error &error)
count++;
line = strchug_fast(string);
line = StripLeft(string);
if (*line == 0 || *line == CONF_COMMENT)
continue;
@@ -205,7 +205,7 @@ ReadConfigFile(ConfigData &config_data, FILE *fp, Error &error)
return false;
}
line = strchug_fast(tokenizer.Rest() + 1);
line = StripLeft(tokenizer.Rest() + 1);
if (*line != 0 && *line != CONF_COMMENT) {
error.Format(config_file_domain,
"line %i: Unknown tokens after '{'",