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

Unified Diff: compiled/StringScanner.h

Issue 29606600: Issue 5146 - Implement DownloadableSubscription parsing in C++ (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Removed Md5sum and associated code Created Aug. 14, 2018, 12:38 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/FilterNotifier.h ('k') | compiled/bindings/main.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiled/StringScanner.h
===================================================================
--- a/compiled/StringScanner.h
+++ b/compiled/StringScanner.h
@@ -39,16 +39,22 @@
return mPos >= mEnd;
}
String::size_type position() const
{
return mPos - 1;
}
+ void back()
+ {
+ if (mPos > 0)
+ mPos--;
+ }
+
String::value_type next()
{
String::value_type result = done() ? mTerminator : mStr[mPos];
mPos++;
return result;
}
bool skipOne(String::value_type ch)
« no previous file with comments | « compiled/FilterNotifier.h ('k') | compiled/bindings/main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld