File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Sources/SQLite/Extensions Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ public struct Tokenizer {
103
103
var arguments = [ String] ( )
104
104
105
105
if let removeDiacritics = removeDiacritics {
106
- arguments. append ( " removeDiacritics =\( removeDiacritics ? 1 : 0 ) " . quote ( ) )
106
+ arguments. append ( " remove_diacritics =\( removeDiacritics ? 1 : 0 ) " . quote ( ) )
107
107
}
108
108
109
109
if !tokenchars. isEmpty {
Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ class FTS4Tests: XCTestCase {
21
21
virtualTable. create ( . FTS4( [ string] , tokenize: . Porter) )
22
22
)
23
23
XCTAssertEqual (
24
- " CREATE VIRTUAL TABLE \" virtual_table \" USING fts4(tokenize=unicode61 \" removeDiacritics =0\" ) " ,
24
+ " CREATE VIRTUAL TABLE \" virtual_table \" USING fts4(tokenize=unicode61 \" remove_diacritics =0\" ) " ,
25
25
virtualTable. create ( . FTS4( tokenize: . Unicode61( removeDiacritics: false ) ) )
26
26
)
27
27
XCTAssertEqual (
28
28
"""
29
- CREATE VIRTUAL TABLE \" virtual_table \" USING fts4(tokenize=unicode61 \" removeDiacritics =1\"
29
+ CREATE VIRTUAL TABLE \" virtual_table \" USING fts4(tokenize=unicode61 \" remove_diacritics =1\"
30
30
\" tokenchars=. \" \" separators=X \" )
31
31
""" . replacingOccurrences ( of: " \n " , with: " " ) ,
32
32
virtualTable. create ( . FTS4( tokenize: . Unicode61( removeDiacritics: true ,
@@ -116,7 +116,7 @@ class FTS4ConfigTests: XCTestCase {
116
116
func test_tokenizer_unicode61_with_options( ) {
117
117
XCTAssertEqual (
118
118
"""
119
- CREATE VIRTUAL TABLE \" virtual_table \" USING fts4(tokenize=unicode61 \" removeDiacritics =1\"
119
+ CREATE VIRTUAL TABLE \" virtual_table \" USING fts4(tokenize=unicode61 \" remove_diacritics =1\"
120
120
\" tokenchars=. \" \" separators=X \" )
121
121
""" . replacingOccurrences ( of: " \n " , with: " " ) ,
122
122
sql ( config. tokenizer ( . Unicode61( removeDiacritics: true , tokenchars: [ " . " ] , separators: [ " X " ] ) ) ) )
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ class FTS5Tests: XCTestCase {
77
77
78
78
func test_tokenizer_unicode61_with_options( ) {
79
79
XCTAssertEqual (
80
- " CREATE VIRTUAL TABLE \" virtual_table \" USING fts5(tokenize=unicode61 \" removeDiacritics =1\" \" tokenchars=. \" \" separators=X \" ) " ,
80
+ " CREATE VIRTUAL TABLE \" virtual_table \" USING fts5(tokenize=unicode61 \" remove_diacritics =1\" \" tokenchars=. \" \" separators=X \" ) " ,
81
81
sql ( config. tokenizer ( . Unicode61( removeDiacritics: true , tokenchars: [ " . " ] , separators: [ " X " ] ) ) ) )
82
82
}
83
83
You can’t perform that action at this time.
0 commit comments