Lines Matching refs:from

34 static char_u	    *mac_utf16_to_utf8(UniChar *from, size_t fromLen, size_t *actualLen);
35 static UniChar *mac_utf8_to_utf16(char_u *from, size_t fromLen, size_t *actualLen);
58 CFStringEncoding from; in mac_string_convert() local
63 case 'l': from = kCFStringEncodingISOLatin1; break; in mac_string_convert()
64 case 'm': from = kCFStringEncodingMacRoman; break; in mac_string_convert()
65 case 'u': from = kCFStringEncodingUTF8; break; in mac_string_convert()
78 cfstr = CFStringCreateWithBytes(NULL, ptr, len, from, 0); in mac_string_convert()
89 cfstr = CFStringCreateWithBytes(NULL, ptr, len, from, 0); in mac_string_convert()
134 if (from == kCFStringEncodingUTF8) in mac_string_convert()
138 cfstr = CFStringCreateWithBytes(NULL, ptr + in, l, from, 0); in mac_string_convert()
229 char_u *from, in enc2macroman() argument
242 cfstr = CFStringCreateWithBytes(NULL, from, fromlen, in enc2macroman()
247 rest[*restlenp++] = from[--fromlen]; in enc2macroman()
248 cfstr = CFStringCreateWithBytes(NULL, from, fromlen, in enc2macroman()
333 unsigned short *from, in mac_utf16_to_enc() argument
345 utf8_str = mac_utf16_to_utf8(from, fromLen, &utf8_len); in mac_utf16_to_enc()
387 char_u *from, in mac_enc_to_utf16() argument
412 utf8_str = string_convert(&conv, from, (int *)&utf8_len); in mac_enc_to_utf16()
417 utf8_str = from; in mac_enc_to_utf16()
446 char_u *from, in mac_enc_to_cfstring() argument
453 utf16_str = mac_enc_to_utf16(from, fromLen, &utf16_len); in mac_enc_to_cfstring()
498 UniChar *from, in mac_utf16_to_utf8() argument
509 if (result && TECConvertText(gUTF16ToUTF8Converter, (ConstTextPtr)from, in mac_utf16_to_utf8()
535 char_u *from, in mac_utf8_to_utf16() argument
543 utf8_str = CFStringCreateWithBytes(NULL, from, fromLen, in mac_utf8_to_utf16()