Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: tools/gn/tokenizer.h

Issue 1200053004: Move more string_util functions to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/label_pattern.cc ('k') | tools/gn/tokenizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/tokenizer.h
diff --git a/tools/gn/tokenizer.h b/tools/gn/tokenizer.h
index 497a170a3360265c6331488a986c8cf08dbdc12b..29d107aca9cb69488a6730d94f92ebf8b1a72e82 100644
--- a/tools/gn/tokenizer.h
+++ b/tools/gn/tokenizer.h
@@ -33,12 +33,12 @@ class Tokenizer {
static bool IsNewline(const base::StringPiece& buffer, size_t offset);
static bool IsIdentifierFirstChar(char c) {
- return IsAsciiAlpha(c) || c == '_';
+ return base::IsAsciiAlpha(c) || c == '_';
}
static bool IsIdentifierContinuingChar(char c) {
// Also allow digits after the first char.
- return IsIdentifierFirstChar(c) || IsAsciiDigit(c);
+ return IsIdentifierFirstChar(c) || base::IsAsciiDigit(c);
}
private:
« no previous file with comments | « tools/gn/label_pattern.cc ('k') | tools/gn/tokenizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698