Lines Matching refs:ucs
119 ac_uint4 *ucs, *p, *ucsout;
199 p = ucs = ber_memalloc_x( len * sizeof(*ucs), ctx );
200 if ( ucs == NULL ) {
205 /* convert character before first non-ascii to ucs-4 */
214 /* convert everything up to next ascii to ucs-4 */
218 ber_memfree_x( ucs, ctx );
230 ber_memfree_x( ucs, ctx );
243 /* normalize ucs of length p - ucs */
244 uccompatdecomp( ucs, p - ucs, &ucsout, &ucsoutlen, ctx );
253 /* convert ucs to utf-8 and store in out */
262 ber_memfree_x( ucs, ctx );
286 ber_memfree_x( ucs, ctx );
303 /* convert character before next non-ascii to ucs-4 */
304 *ucs = casefold ? TOLOWER( s[i-1] ) : s[i-1];
305 p = ucs + 1;
308 ber_memfree_x( ucs, ctx );
325 ac_uint4 *ucs, *ucsout1, *ucsout2;
398 ucs = malloc( ( ( norm1 || l1 > l2 ) ? l1 : l2 ) * sizeof(*ucs) );
399 if ( ucs == NULL ) {
410 ucs[ulen] = ldap_x_utf8_to_ucs4( s1 + i );
411 if ( ucs[ulen] == LDAP_UCS4_INVALID ) {
412 free( ucs );
419 ucsout1 = ucs;
421 ucs = malloc( l2 * sizeof(*ucs) );
422 if ( ucs == NULL ) {
427 uccompatdecomp( ucs, ulen, &ucsout1, &l1, ctx );
433 ucs[ulen] = ldap_x_utf8_to_ucs4( s2 + i );
434 if ( ucs[ulen] == LDAP_UCS4_INVALID ) {
436 free( ucs );
443 ucsout2 = ucs;
446 uccompatdecomp( ucs, ulen, &ucsout2, &l2, ctx );
448 free( ucs );