Codechange: replace x.size() != 0 with !x.empty()
This commit is contained in:
@@ -594,7 +594,7 @@ char *strcasestr(const char *haystack, const char *needle)
|
||||
*/
|
||||
static std::string_view SkipGarbage(std::string_view str)
|
||||
{
|
||||
while (str.size() != 0 && (str[0] < '0' || IsInsideMM(str[0], ';', '@' + 1) || IsInsideMM(str[0], '[', '`' + 1) || IsInsideMM(str[0], '{', '~' + 1))) str.remove_prefix(1);
|
||||
while (!str.empty() && (str[0] < '0' || IsInsideMM(str[0], ';', '@' + 1) || IsInsideMM(str[0], '[', '`' + 1) || IsInsideMM(str[0], '{', '~' + 1))) str.remove_prefix(1);
|
||||
return str;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user