Remove internal utf8 confusable functions from system.h

The functions `str_utf8_skeleton_begin` and `str_utf8_skeleton_next` and the `struct SKELETON` are only used internally, so they don't need to be exported.
This commit is contained in:
Robert Müller 2022-11-01 23:44:38 +01:00
parent 0bf31c671e
commit 7c63d3c277
2 changed files with 3 additions and 6 deletions

View file

@ -2048,9 +2048,6 @@ char str_uppercase(char c);
int str_isallnum(const char *str);
unsigned str_quickhash(const char *str);
struct SKELETON;
void str_utf8_skeleton_begin(struct SKELETON *skel, const char *str);
int str_utf8_skeleton_next(struct SKELETON *skel);
int str_utf8_to_skeleton(const char *str, int *buf, int buf_len);
/*

View file

@ -1,6 +1,6 @@
#include "confusables.h"
#include "../system.h"
#include <base/system.h>
#include <cstddef>
@ -35,14 +35,14 @@ struct SKELETON
const char *str;
};
void str_utf8_skeleton_begin(struct SKELETON *skel, const char *str)
static void str_utf8_skeleton_begin(struct SKELETON *skel, const char *str)
{
skel->skeleton = NULL;
skel->skeleton_len = 0;
skel->str = str;
}
int str_utf8_skeleton_next(struct SKELETON *skel)
static int str_utf8_skeleton_next(struct SKELETON *skel)
{
int ch = 0;
while(skel->skeleton_len == 0)