Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: compiled/String.cpp

Issue 29721753: Issue 6180 - use ABP_TEXT everywhere in order to let String be a UTF-8 string (Closed) Base URL: https://github.com/adblockplus/adblockpluscore.git@adb2678354813ce5b6de095072954c5a784a7bc4
Patch Set: rebase Created March 15, 2018, 1:53 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « compiled/String.h ('k') | compiled/StringScanner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/String.cpp
diff --git a/compiled/String.cpp b/compiled/String.cpp
index 38f458a432978d7c516ce07f796c77428d6a31ec..9f090f0e033ba4336e6f5877f60c76e918696e26 100644
--- a/compiled/String.cpp
+++ b/compiled/String.cpp
@@ -25,12 +25,12 @@ DependentString TrimSpaces(const String& value)
auto end = value.length();
for (; start < end; ++start)
{
- if (value[start] > u' ')
+ if (value[start] > ABP_TEXT(' '))
break;
}
for (; end > start; --end)
{
- if (value[end - 1] > u' ')
+ if (value[end - 1] > ABP_TEXT(' '))
break;
}
return DependentString(value, start, end - start);
« no previous file with comments | « compiled/String.h ('k') | compiled/StringScanner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld