From bed63b55fe28380841641da2f3ea7ebdd9c8be7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Wed, 12 Oct 2016 09:10:57 +0200 Subject: [PATCH] Documentation --- Documentation/FTS5Tokenizers.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/FTS5Tokenizers.md b/Documentation/FTS5Tokenizers.md index 38e4807ca..e75bbe336 100644 --- a/Documentation/FTS5Tokenizers.md +++ b/Documentation/FTS5Tokenizers.md @@ -98,6 +98,14 @@ let documents = Document.matching(pattern).fetchAll(db) It only requires a tokenization method that matches the low-level `xTokenize` C function documented at https://www.sqlite.org/fts5.html#custom_tokenizers. We'll discuss it more when describing custom tokenizers. ```swift +typealias FTS5TokenCallback = @convention(c) ( + _ context: UnsafeMutableRawPointer?, + _ flags: Int32, + _ pToken: UnsafePointer?, + _ nToken: Int32, + _ iStart: Int32, + _ iEnd: Int32) -> Int32 + protocol FTS5Tokenizer : class { func tokenize( context: UnsafeMutableRawPointer?,