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

Unified Diff: tools/gn/filesystem_utils.cc

Issue 283193002: gn: Reuse IsAsciiAlpha() function from base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « no previous file | tools/gn/ninja_toolchain_writer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/filesystem_utils.cc
diff --git a/tools/gn/filesystem_utils.cc b/tools/gn/filesystem_utils.cc
index 9140f80660e94f69abdf7d667bcc4cb1d372f9e2..4cfefa9dc7ee658448233ae08a5af04473e69c2b 100644
--- a/tools/gn/filesystem_utils.cc
+++ b/tools/gn/filesystem_utils.cc
@@ -99,9 +99,8 @@ bool DoesBeginWindowsDriveLetter(const base::StringPiece& path) {
if (path[1] != ':')
return false;
- // Check drive letter
- if (!((path[0] >= 'A' && path[0] <= 'Z') ||
- path[0] >= 'a' && path[0] <= 'z'))
+ // Check drive letter.
+ if (!IsAsciiAlpha(path[0]))
return false;
if (!IsSlash(path[2]))
« no previous file with comments | « no previous file | tools/gn/ninja_toolchain_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698