Lines Matching refs:utf8_str
340 char_u *utf8_str; in mac_utf16_to_enc() local
345 utf8_str = mac_utf16_to_utf8(from, fromLen, &utf8_len); in mac_utf16_to_enc()
347 if (utf8_str) in mac_utf16_to_enc()
361 result = utf8_str; in mac_utf16_to_enc()
365 result = string_convert(&conv, utf8_str, (int *)&utf8_len); in mac_utf16_to_enc()
366 vim_free(utf8_str); in mac_utf16_to_enc()
394 char_u *utf8_str; in mac_enc_to_utf16() local
412 utf8_str = string_convert(&conv, from, (int *)&utf8_len); in mac_enc_to_utf16()
417 utf8_str = from; in mac_enc_to_utf16()
421 if (utf8_str == NULL) in mac_enc_to_utf16()
426 result = mac_utf8_to_utf16(utf8_str, utf8_len, actualLen); in mac_enc_to_utf16()
429 vim_free(utf8_str); in mac_enc_to_utf16()
539 CFStringRef utf8_str; in mac_utf8_to_utf16() local
543 utf8_str = CFStringCreateWithBytes(NULL, from, fromLen, in mac_utf8_to_utf16()
546 if (utf8_str == NULL) { in mac_utf8_to_utf16()
552 convertRange = CFRangeMake(0, CFStringGetLength(utf8_str)); in mac_utf8_to_utf16()
555 CFStringGetCharacters(utf8_str, convertRange, result); in mac_utf8_to_utf16()
557 CFRelease(utf8_str); in mac_utf8_to_utf16()