Rev 4223 | Rev 4244 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4223 | Rev 4234 | ||
---|---|---|---|
Line 62... | Line 62... | ||
62 | 62 | ||
63 | /**< Maximum size of a string containing cnt characters */ |
63 | /**< Maximum size of a string containing cnt characters */ |
64 | #define STR_BOUNDS(cnt) (cnt << 2) |
64 | #define STR_BOUNDS(cnt) (cnt << 2) |
65 | 65 | ||
66 | extern wchar_t str_decode(const char *str, size_t *offset, size_t sz); |
66 | extern wchar_t str_decode(const char *str, size_t *offset, size_t sz); |
67 | extern int chr_encode(const wchar_t ch, char *str, size_t *offset, size_t sz); |
67 | extern int chr_encode(wchar_t ch, char *str, size_t *offset, size_t sz); |
68 | 68 | ||
69 | extern size_t str_size(const char *str); |
69 | extern size_t str_size(const char *str); |
70 | extern size_t wstr_size(const wchar_t *str); |
70 | extern size_t wstr_size(const wchar_t *str); |
71 | 71 | ||
72 | extern size_t str_lsize(const char *str, count_t max_len); |
72 | extern size_t str_lsize(const char *str, count_t max_len); |
Line 76... | Line 76... | ||
76 | extern count_t wstr_length(const wchar_t *wstr); |
76 | extern count_t wstr_length(const wchar_t *wstr); |
77 | 77 | ||
78 | extern count_t str_nlength(const char *str, size_t size); |
78 | extern count_t str_nlength(const char *str, size_t size); |
79 | extern count_t wstr_nlength(const wchar_t *str, size_t size); |
79 | extern count_t wstr_nlength(const wchar_t *str, size_t size); |
80 | 80 | ||
81 | extern bool ascii_check(const wchar_t ch); |
81 | extern bool ascii_check(wchar_t ch); |
82 | extern bool chr_check(const wchar_t ch); |
82 | extern bool chr_check(wchar_t ch); |
83 | 83 | ||
84 | extern int str_cmp(const char *s1, const char *s2); |
84 | extern int str_cmp(const char *s1, const char *s2); |
85 | extern int str_lcmp(const char *s1, const char *s2, count_t max_len); |
85 | extern int str_lcmp(const char *s1, const char *s2, count_t max_len); |
86 | 86 | ||
87 | extern void str_ncpy(char *dst, const char *src, size_t size); |
87 | extern void str_ncpy(char *dst, const char *src, size_t size); |