myMPD
Internal API documentation
Loading...
Searching...
No Matches
utf8_wrapper.h
Go to the documentation of this file.
1/*
2 SPDX-License-Identifier: GPL-3.0-or-later
3 myMPD (c) 2018-2026 Juergen Mang <mail@jcgames.de>
4 https://github.com/jcorporation/mympd
5*/
6
10
11#ifndef MYMPD_LIB_UTF8_WRAPPER_H
12#define MYMPD_LIB_UTF8_WRAPPER_H
13
14#include <stdbool.h>
15#include <stddef.h>
16#include <stdint.h>
17
18bool utf8_wrap_validate(const char *str, size_t str_len);
19char *utf8_wrap_casefold(const char *str, size_t len, size_t *newlen);
20char *utf8_wrap_normalize(const char *str, size_t len, size_t *newlen);
21int utf8_wrap_casecmp(const char *str1, size_t str1_len, const char *str2, size_t str2_len);
22
23#endif
bool utf8_wrap_validate(const char *str, size_t str_len)
Definition utf8_wrapper.c:58
int utf8_wrap_casecmp(const char *str1, size_t str1_len, const char *str2, size_t str2_len)
Definition utf8_wrapper.c:141
char * utf8_wrap_casefold(const char *str, size_t len, size_t *newlen)
Definition utf8_wrapper.c:89