mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 14:38:18 +00:00
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:
parent
0bf31c671e
commit
7c63d3c277
|
@ -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);
|
||||
|
||||
/*
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue