2010-04-19 Rodrigo Kumpera <rkumpera@novell.com>
[mono.git] / mono / utils / strenc.h
blobf1b66737e3a74ced1320c0434016b9bd5586a11a
1 /*
2 * strenc.h: string encoding conversions
4 * Author:
5 * Dick Porter (dick@ximian.com)
7 * (C) 2003 Ximian, Inc.
8 */
10 #ifndef _MONO_STRENC_H_
11 #define _MONO_STRENC_H_ 1
13 #include <glib.h>
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_ */