diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/unicode.h | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/include/unicode.h b/include/unicode.h index f1a252cc7..f32e56599 100644 --- a/include/unicode.h +++ b/include/unicode.h | |||
@@ -14,15 +14,25 @@ enum { | |||
14 | #if !ENABLE_FEATURE_ASSUME_UNICODE | 14 | #if !ENABLE_FEATURE_ASSUME_UNICODE |
15 | 15 | ||
16 | # define unicode_strlen(string) strlen(string) | 16 | # define unicode_strlen(string) strlen(string) |
17 | # define unicode_scrlen(string) TODO | ||
18 | # define unicode_status UNICODE_OFF | 17 | # define unicode_status UNICODE_OFF |
19 | # define init_unicode() ((void)0) | 18 | # define init_unicode() ((void)0) |
20 | 19 | ||
21 | #else | 20 | #else |
22 | 21 | ||
23 | size_t FAST_FUNC unicode_strlen(const char *string); | 22 | size_t FAST_FUNC unicode_strlen(const char *string); |
24 | char* FAST_FUNC unicode_cut_nchars(unsigned width, const char *src); | 23 | enum { |
25 | unsigned FAST_FUNC unicode_padding_to_width(unsigned width, const char *src); | 24 | UNI_FLAG_PAD = (1 << 0), |
25 | }; | ||
26 | typedef struct uni_stat_t { | ||
27 | unsigned byte_count; | ||
28 | unsigned unicode_count; | ||
29 | unsigned unicode_width; | ||
30 | } uni_stat_t; | ||
31 | //UNUSED: unsigned FAST_FUNC unicode_padding_to_width(unsigned width, const char *src); | ||
32 | //UNUSED: char* FAST_FUNC unicode_conv_to_printable2(uni_stat_t *stats, const char *src, unsigned width, int flags); | ||
33 | char* FAST_FUNC unicode_conv_to_printable(uni_stat_t *stats, const char *src); | ||
34 | char* FAST_FUNC unicode_conv_to_printable_maxwidth(uni_stat_t *stats, const char *src, unsigned maxwidth); | ||
35 | char* FAST_FUNC unicode_conv_to_printable_fixedwidth(uni_stat_t *stats, const char *src, unsigned width); | ||
26 | 36 | ||
27 | # if ENABLE_LOCALE_SUPPORT | 37 | # if ENABLE_LOCALE_SUPPORT |
28 | 38 | ||