1 /** 2 * \file 3 * string encoding conversions 4 * 5 * Author: 6 * Dick Porter (dick@ximian.com) 7 * 8 * (C) 2003 Ximian, Inc. 9 */ 10 11 #ifndef _MONO_STRENC_H_ 12 #define _MONO_STRENC_H_ 1 13 14 #include <glib.h> 15 #include <mono/utils/mono-publib.h> 16 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); 22 23 #endif /* _MONO_STRENC_H_ */ 24