Lines Matching refs:asclen

18 unsigned char *OPENSSL_asc2uni(const char *asc, int asclen,  in OPENSSL_asc2uni()  argument
24 if (asclen == -1) in OPENSSL_asc2uni()
25 asclen = strlen(asc); in OPENSSL_asc2uni()
26 if (asclen < 0) in OPENSSL_asc2uni()
28 ulen = asclen * 2 + 2; in OPENSSL_asc2uni()
47 int asclen, i; in OPENSSL_uni2asc() local
55 asclen = unilen / 2; in OPENSSL_uni2asc()
58 asclen++; in OPENSSL_uni2asc()
60 if ((asctmp = OPENSSL_malloc(asclen)) == NULL) in OPENSSL_uni2asc()
64 asctmp[asclen - 1] = 0; in OPENSSL_uni2asc()
77 unsigned char *OPENSSL_utf82uni(const char *asc, int asclen, in OPENSSL_utf82uni() argument
84 if (asclen == -1) in OPENSSL_utf82uni()
85 asclen = strlen(asc); in OPENSSL_utf82uni()
87 for (ulen = 0, i = 0; i < asclen; i += j) { in OPENSSL_utf82uni()
88 j = UTF8_getc((const unsigned char *)asc+i, asclen-i, &utf32chr); in OPENSSL_utf82uni()
107 return OPENSSL_asc2uni(asc, asclen, uni, unilen); in OPENSSL_utf82uni()
123 for (unitmp = ret, i = 0; i < asclen; i += j) { in OPENSSL_utf82uni()
124 j = UTF8_getc((const unsigned char *)asc+i, asclen-i, &utf32chr); in OPENSSL_utf82uni()
179 int asclen, i, j; in OPENSSL_uni2utf8() local
186 for (asclen = 0, i = 0; i < unilen; ) { in OPENSSL_uni2utf8()
196 asclen += j; in OPENSSL_uni2utf8()
201 asclen++; in OPENSSL_uni2utf8()
203 if ((asctmp = OPENSSL_malloc(asclen)) == NULL) in OPENSSL_uni2utf8()
207 for (asclen = 0, i = 0; i < unilen; ) { in OPENSSL_uni2utf8()
208 j = bmp_to_utf8(asctmp+asclen, uni+i, unilen-i); in OPENSSL_uni2utf8()
211 asclen += j; in OPENSSL_uni2utf8()
216 asctmp[asclen] = '\0'; in OPENSSL_uni2utf8()