2 * strenc.h: string encoding conversions
5 * Dick Porter (dick@ximian.com)
7 * (C) 2003 Ximian, Inc.
10 #ifndef _MONO_STRENC_H_
11 #define _MONO_STRENC_H_ 1
15 extern gunichar2
*mono_unicode_from_external (const gchar
*in
, gsize
*bytes
);
16 extern gchar
*mono_utf8_from_external (const gchar
*in
);
17 extern gchar
*mono_unicode_to_external (const gunichar2
*uni
);
18 extern gboolean
mono_utf8_validate_and_len (const gchar
*source
, glong
* oLength
, const gchar
** oEnd
);
19 extern gboolean
mono_utf8_validate_and_len_with_bounds (const gchar
*source
, glong max_bytes
, glong
* oLength
, const gchar
** oEnd
);
21 #endif /* _MONO_STRENC_H_ */