Merge pull request #463 from strawd/concurrent-requests
[mono.git] / mono / utils / strenc.h
1 /*
2  * strenc.h: string encoding conversions
3  *
4  * Author:
5  *      Dick Porter (dick@ximian.com)
6  *
7  * (C) 2003 Ximian, Inc.
8  */
9
10 #ifndef _MONO_STRENC_H_
11 #define _MONO_STRENC_H_ 1
12
13 #include <glib.h>
14 #include <mono/utils/mono-publib.h>
15
16 extern MONO_API gunichar2 *mono_unicode_from_external (const gchar *in, gsize *bytes);
17 extern MONO_API gchar *mono_utf8_from_external (const gchar *in);
18 extern MONO_API gchar *mono_unicode_to_external (const gunichar2 *uni);
19 extern MONO_API gboolean mono_utf8_validate_and_len (const gchar *source, glong* oLength, const gchar** oEnd);
20 extern MONO_API gboolean mono_utf8_validate_and_len_with_bounds (const gchar *source, glong max_bytes, glong* oLength, const gchar** oEnd);
21
22 #endif /* _MONO_STRENC_H_ */