3 * string encoding conversions
6 * Dick Porter (dick@ximian.com)
8 * (C) 2003 Ximian, Inc.
11 #ifndef _MONO_STRENC_H_
12 #define _MONO_STRENC_H_ 1
15 #include <mono/utils/mono-publib.h>
17 extern MONO_API gunichar2 *mono_unicode_from_external (const gchar *in, gsize *bytes);
18 extern MONO_API gchar *mono_utf8_from_external (const gchar *in);
19 extern MONO_API gchar *mono_unicode_to_external (const gunichar2 *uni);
20 extern MONO_API gboolean mono_utf8_validate_and_len (const gchar *source, glong* oLength, const gchar** oEnd);
21 extern MONO_API gboolean mono_utf8_validate_and_len_with_bounds (const gchar *source, glong max_bytes, glong* oLength, const gchar** oEnd);
23 #endif /* _MONO_STRENC_H_ */