[coop] Refactor/reuse mono_value_box_handle/mono_value_box_checked and reduce raw...
[mono-project.git] / mono / utils / strenc.h
blob0f999531242a34d35a7354c94fce81890bafbdfc
1 /**
2 * \file
3 * string encoding conversions
5 * Author:
6 * Dick Porter (dick@ximian.com)
8 * (C) 2003 Ximian, Inc.
9 */
11 #ifndef _MONO_STRENC_H_
12 #define _MONO_STRENC_H_ 1
14 #include <glib.h>
15 #include <mono/utils/mono-publib.h>
17 MONO_API gunichar2 *mono_unicode_from_external (const gchar *in, gsize *bytes);
18 MONO_API gchar *mono_utf8_from_external (const gchar *in);
19 MONO_API gchar *mono_unicode_to_external (const gunichar2 *uni);
20 MONO_API gboolean mono_utf8_validate_and_len (const gchar *source, glong* oLength, const gchar** oEnd);
21 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_ */