[ngrams] changing args to ngrams
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#include "ngrams.h"
|
#include "ngrams.h"
|
||||||
#include "utf8proc/utf8proc.h"
|
#include "utf8proc/utf8proc.h"
|
||||||
|
|
||||||
bool add_ngrams(cstring_array *grams, char *str, size_t n, size_t len, bool prefix, bool suffix) {
|
bool add_ngrams(cstring_array *grams, size_t n, char *str, size_t len, bool prefix, bool suffix) {
|
||||||
if (n == 0) return false;
|
if (n == 0) return false;
|
||||||
|
|
||||||
size_t lengths[n];
|
size_t lengths[n];
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#include "string_utils.h"
|
#include "string_utils.h"
|
||||||
|
|
||||||
bool add_ngrams(cstring_array *grams, char *str, size_t n, size_t len, bool prefix, bool suffix);
|
bool add_ngrams(cstring_array *grams, size_t n, char *str, size_t len, bool prefix, bool suffix);
|
||||||
|
|||||||
Reference in New Issue
Block a user