Home | History | Annotate | Download | only in libcutils

Lines Matching defs:len

29 extern size_t strnlen16to8(const char16_t* utf16Str, size_t len)
34 * potentially be as big as 3*len, which will overflow
35 * for len > SIZE_MAX/3.
43 * dst = malloc(strnlen16to8(utf16,len)+1)
55 /* Fast path for the usual case where 3*len is < SIZE_MAX-1.
57 if (len < (SIZE_MAX-1)/3) {
58 while (len--) {
72 while (len--) {
102 * not just "len".
107 extern char* strncpy16to8(char* utf8Str, const char16_t* utf16Str, size_t len)
115 while (len--) {
146 size_t len;
152 len = strnlen16to8(s, n);
158 if (len >= SIZE_MAX-1)
161 ret = malloc(len + 1);