Skip to content

Instantly share code, notes, and snippets.

@danhper
Created September 1, 2018 05:54
Show Gist options
  • Save danhper/d5a8e027fd547a09afcf1b9cc4d59a9a to your computer and use it in GitHub Desktop.
Save danhper/d5a8e027fd547a09afcf1b9cc4d59a9a to your computer and use it in GitHub Desktop.
sha1: 0fcab969477022e45cd9067b18a48835373e2687
diff -ura mozc.orig/src/prediction/zero_query_dict.h mozc/src/prediction/zero_query_dict.h
--- mozc.orig/src/prediction/zero_query_dict.h 2018-05-27 12:14:39.000000000 +0200
+++ mozc/src/prediction/zero_query_dict.h 2018-05-27 12:16:53.158743824 +0200
@@ -132,6 +132,17 @@
return tmp;
}
+ iterator &operator--() {
+ ptr_ -= kTokenByteSize;
+ return *this;
+ }
+
+ iterator operator--(int) {
+ const iterator tmp(ptr_, string_array_);
+ ptr_ -= kTokenByteSize;
+ return tmp;
+ }
+
iterator &operator+=(ptrdiff_t n) {
ptr_ += n * kTokenByteSize;
return *this;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment