31 #if defined (HAVE_CONFIG_H)
45 size_t srclen,
size_t *lengthp)
47 return u8_conv_from_encoding (fromcode, iconveh_question_mark,
48 src, srclen, NULL, NULL, lengthp);
53 size_t srclen,
size_t *lengthp)
55 return u8_conv_to_encoding (tocode, iconveh_question_mark,
56 src, srclen, NULL, NULL, lengthp);
61 size_t srclen,
size_t *lengthp)
63 return u32_conv_to_encoding (tocode, iconveh_error,
64 src, srclen, NULL, NULL, lengthp);
73 size_t srclen = wcslen (wc) *
sizeof (wchar_t);
74 const char *src = (
const char *) wc;
77 uint8_t *mbchar = u8_conv_from_encoding (
"wchar_t", iconveh_question_mark,
78 src, srclen, NULL, NULL, &
length);
85 free ((
void *) mbchar);
89 free ((
void *) mbchar);
100 size_t srclen =
strlen (u8);
101 const uint8_t *src = (
const uint8_t *) u8;
105 char *wchar = u8_conv_to_encoding (
"wchar_t", iconveh_question_mark,
106 src, srclen, NULL, NULL, &
length);
112 free ((
void *) wchar);
117 free ((
void *) wchar);
T::size_type strlen(const typename T::value_type *str)
octave_value::octave_value(const Array< char > &chm, char type) return retval
uint8_t * octave_u8_conv_from_encoding(const char *fromcode, const char *src, size_t srclen, size_t *lengthp)
char * octave_u32_conv_to_encoding_strict(const char *tocode, const uint32_t *src, size_t srclen, size_t *lengthp)
char * octave_u8_conv_to_encoding(const char *tocode, const uint8_t *src, size_t srclen, size_t *lengthp)
wchar_t * u8_to_wchar(const char *u8)
char * u8_from_wchar(const wchar_t *wc)