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

Unified Diff: third_party/sqlite/patches/0011-fts3-backport-ICU-tokenizer-iterate-by-UTF16.patch

Issue 885473002: [sql] Rewrite sqlite patching "system". (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
Index: third_party/sqlite/patches/0011-fts3-backport-ICU-tokenizer-iterate-by-UTF16.patch
diff --git a/third_party/sqlite/patches/0011-fts3-backport-ICU-tokenizer-iterate-by-UTF16.patch b/third_party/sqlite/patches/0011-fts3-backport-ICU-tokenizer-iterate-by-UTF16.patch
new file mode 100644
index 0000000000000000000000000000000000000000..0c462f89996b30333c5efa0199bfa0fb5d14f265
--- /dev/null
+++ b/third_party/sqlite/patches/0011-fts3-backport-ICU-tokenizer-iterate-by-UTF16.patch
@@ -0,0 +1,27 @@
+From 4e44ebf4ba2f2a816cdff1d3d3b7084c985b9c29 Mon Sep 17 00:00:00 2001
+From: Scott Hess <shess@chromium.org>
+Date: Tue, 23 Dec 2014 13:22:46 -0800
+Subject: [PATCH 11/24] [fts3][backport] ICU tokenizer iterate by UTF16.
+
+This issue was discovered in Gears and is upstream at:
+ http://www.sqlite.org/src/info/892b74116a
+---
+ third_party/sqlite/src/ext/fts3/fts3_icu.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/third_party/sqlite/src/ext/fts3/fts3_icu.c b/third_party/sqlite/src/ext/fts3/fts3_icu.c
+index 85390d3..a75b14a 100644
+--- a/third_party/sqlite/src/ext/fts3/fts3_icu.c
++++ b/third_party/sqlite/src/ext/fts3/fts3_icu.c
+@@ -198,7 +198,7 @@ static int icuNext(
+
+ while( iStart<iEnd ){
+ int iWhite = iStart;
+- U8_NEXT(pCsr->aChar, iWhite, pCsr->nChar, c);
++ U16_NEXT(pCsr->aChar, iWhite, pCsr->nChar, c);
+ if( u_isspace(c) ){
+ iStart = iWhite;
+ }else{
+--
+2.2.1
+

Powered by Google App Engine
This is Rietveld 408576698