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

Unified Diff: ui/gfx/render_text_harfbuzz.cc

Issue 1224553010: Replace base::str[n]casecmp with helper functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | « ui/base/l10n/l10n_util.cc ('k') | ui/gfx/test/fontconfig_util_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/render_text_harfbuzz.cc
diff --git a/ui/gfx/render_text_harfbuzz.cc b/ui/gfx/render_text_harfbuzz.cc
index 543c62596bc19c09752324f19de3234ff234fd4d..775fb1c38c5776149276acb48691ab109efbd27a 100644
--- a/ui/gfx/render_text_harfbuzz.cc
+++ b/ui/gfx/render_text_harfbuzz.cc
@@ -530,7 +530,7 @@ class HarfBuzzLineBreaker {
// Function object for case insensitive string comparison.
struct CaseInsensitiveCompare {
bool operator() (const std::string& a, const std::string& b) const {
- return base::strncasecmp(a.c_str(), b.c_str(), b.length()) < 0;
+ return base::CompareCaseInsensitiveASCII(a, b) < 0;
}
};
« no previous file with comments | « ui/base/l10n/l10n_util.cc ('k') | ui/gfx/test/fontconfig_util_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698