[cert-sync]: Make the new store the default and add '--legacy' for the old one.
[mono-project.git] / mono / utils / strenc.h
blob8da0155669c77663585275a84ecea1d4c753e790
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>
14 #include <mono/utils/mono-publib.h>
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);
22 #endif /* _MONO_STRENC_H_ */