diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-30 23:16:21 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-30 23:16:21 +0100 |
commit | e17764c8fb566f85020217dd8fd05fb6bc227e98 (patch) | |
tree | cf0a42cc23cd4aae92e69924087610a941c712a4 /include/unicode.h | |
parent | ecd90fd488cd0c519070656f5cfa0b0959979be9 (diff) | |
download | busybox-w32-e17764c8fb566f85020217dd8fd05fb6bc227e98.tar.gz busybox-w32-e17764c8fb566f85020217dd8fd05fb6bc227e98.tar.bz2 busybox-w32-e17764c8fb566f85020217dd8fd05fb6bc227e98.zip |
further work on unicodization
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/unicode.h')
-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 | ||