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 {
103103 var arguments = [ String] ( )
104104
105105 if let removeDiacritics = removeDiacritics {
106- arguments. append ( " removeDiacritics =\( removeDiacritics ? 1 : 0 ) " . quote ( ) )
106+ arguments. append ( " remove_diacritics =\( removeDiacritics ? 1 : 0 ) " . quote ( ) )
107107 }
108108
109109 if !tokenchars. isEmpty {
Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ class FTS4Tests: XCTestCase {
2121 virtualTable. create ( . FTS4( [ string] , tokenize: . Porter) )
2222 )
2323 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\" ) " ,
2525 virtualTable. create ( . FTS4( tokenize: . Unicode61( removeDiacritics: false ) ) )
2626 )
2727 XCTAssertEqual (
2828 """
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\"
3030 \" tokenchars=. \" \" separators=X \" )
3131 """ . replacingOccurrences ( of: " \n " , with: " " ) ,
3232 virtualTable. create ( . FTS4( tokenize: . Unicode61( removeDiacritics: true ,
@@ -116,7 +116,7 @@ class FTS4ConfigTests: XCTestCase {
116116 func test_tokenizer_unicode61_with_options( ) {
117117 XCTAssertEqual (
118118 """
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\"
120120 \" tokenchars=. \" \" separators=X \" )
121121 """ . replacingOccurrences ( of: " \n " , with: " " ) ,
122122 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 {
7777
7878 func test_tokenizer_unicode61_with_options( ) {
7979 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 \" ) " ,
8181 sql ( config. tokenizer ( . Unicode61( removeDiacritics: true , tokenchars: [ " . " ] , separators: [ " X " ] ) ) ) )
8282 }
8383
You can’t perform that action at this time.
0 commit comments