Created
September 1, 2018 05:54
-
-
Save danhper/d5a8e027fd547a09afcf1b9cc4d59a9a to your computer and use it in GitHub Desktop.
sha1: 0fcab969477022e45cd9067b18a48835373e2687
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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