summaryrefslogtreecommitdiffstats
path: root/rlz
diff options
context:
space:
mode:
authorbrettw <brettw@chromium.org>2015-06-23 17:39:02 -0700
committerCommit bot <commit-bot@chromium.org>2015-06-24 00:39:38 +0000
commitb3413064f36bf166d7dffb463bc442059dab1dd7 (patch)
tree391826aaaccf59398a8d59437482ce9dd62da48f /rlz
parent737f36b52ce9137b242b8259b8f440c61e6b60ba (diff)
downloadchromium_src-b3413064f36bf166d7dffb463bc442059dab1dd7.zip
chromium_src-b3413064f36bf166d7dffb463bc442059dab1dd7.tar.gz
chromium_src-b3413064f36bf166d7dffb463bc442059dab1dd7.tar.bz2
Move more string_util functions to base namespace.
Rename IsWhitespace to IsUnicodeWhitespace (to contrast it to the already-existing IsAsciiWhitespace). De-inline HexDigitToInt. This is only used in a few places and I don't think it's necessary to inline. Remove some redundant base:: qualifications in base. TBR=sky Review URL: https://codereview.chromium.org/1200053004 Cr-Commit-Position: refs/heads/master@{#335827}
Diffstat (limited to 'rlz')
-rw-r--r--rlz/lib/rlz_lib.cc2
-rw-r--r--rlz/win/lib/machine_deal.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/rlz/lib/rlz_lib.cc b/rlz/lib/rlz_lib.cc
index 14a4fae..4a3cfde 100644
--- a/rlz/lib/rlz_lib.cc
+++ b/rlz/lib/rlz_lib.cc
@@ -58,7 +58,7 @@ bool IsAccessPointSupported(rlz_lib::AccessPoint point) {
// We will be more liberal and allow some additional chars, but not url meta
// chars.
bool IsGoodRlzChar(const char ch) {
- if (IsAsciiAlpha(ch) || IsAsciiDigit(ch))
+ if (base::IsAsciiAlpha(ch) || base::IsAsciiDigit(ch))
return true;
switch (ch) {
diff --git a/rlz/win/lib/machine_deal.cc b/rlz/win/lib/machine_deal.cc
index aeab4f4..7c8bbaa 100644
--- a/rlz/win/lib/machine_deal.cc
+++ b/rlz/win/lib/machine_deal.cc
@@ -29,7 +29,7 @@ const wchar_t kDccValueName[] = L"DCC";
// We will be more liberal and allow some additional chars, but not url meta
// chars.
bool IsGoodDccChar(char ch) {
- if (IsAsciiAlpha(ch) || IsAsciiDigit(ch))
+ if (base::IsAsciiAlpha(ch) || base::IsAsciiDigit(ch))
return true;
switch (ch) {