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

Unified Diff: ui/accessibility/ax_text_utils.cc

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/tokenizer.cc ('k') | ui/app_list/search/term_break_iterator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accessibility/ax_text_utils.cc
diff --git a/ui/accessibility/ax_text_utils.cc b/ui/accessibility/ax_text_utils.cc
index da336b6194ad3a5dc37be071315817cb1e870b49..1e68559027ec8faf455b80440fda9e60b46b0bd5 100644
--- a/ui/accessibility/ax_text_utils.cc
+++ b/ui/accessibility/ax_text_utils.cc
@@ -62,7 +62,7 @@ size_t FindAccessibleTextBoundary(const base::string16& text,
NOTREACHED(); // These are handled above.
break;
case WORD_BOUNDARY:
- if (IsWhitespace(text[pos]))
+ if (base::IsUnicodeWhitespace(text[pos]))
return result;
break;
case PARAGRAPH_BOUNDARY:
@@ -71,7 +71,8 @@ size_t FindAccessibleTextBoundary(const base::string16& text,
break;
case SENTENCE_BOUNDARY:
if ((text[pos] == '.' || text[pos] == '!' || text[pos] == '?') &&
- (pos == text_size - 1 || IsWhitespace(text[pos + 1]))) {
+ (pos == text_size - 1 ||
+ base::IsUnicodeWhitespace(text[pos + 1]))) {
return result;
}
break;
« no previous file with comments | « tools/gn/tokenizer.cc ('k') | ui/app_list/search/term_break_iterator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698