X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Futils%2Fstrenc.h;h=ce15c38904225e1d32ea412de42a5ba49b6f16bc;hb=eeb5d4c670b18885d4f575136e348df324c46de8;hp=996674e0bffe769267fb7208d7165441fafafd84;hpb=c39d7ce9985a7067c1cbf44188007c9433901940;p=mono.git diff --git a/mono/utils/strenc.h b/mono/utils/strenc.h index 996674e0bff..ce15c389042 100644 --- a/mono/utils/strenc.h +++ b/mono/utils/strenc.h @@ -1,5 +1,6 @@ -/* - * strenc.h: string encoding conversions +/** + * \file + * string encoding conversions * * Author: * Dick Porter (dick@ximian.com) @@ -11,9 +12,12 @@ #define _MONO_STRENC_H_ 1 #include +#include -extern gunichar2 *mono_unicode_from_external (const gchar *in, gsize *bytes); -extern gchar *mono_utf8_from_external (const gchar *in); -extern gchar *mono_unicode_to_external (const gunichar2 *uni); +extern MONO_API gunichar2 *mono_unicode_from_external (const gchar *in, gsize *bytes); +extern MONO_API gchar *mono_utf8_from_external (const gchar *in); +extern MONO_API gchar *mono_unicode_to_external (const gunichar2 *uni); +extern MONO_API gboolean mono_utf8_validate_and_len (const gchar *source, glong* oLength, const gchar** oEnd); +extern MONO_API gboolean mono_utf8_validate_and_len_with_bounds (const gchar *source, glong max_bytes, glong* oLength, const gchar** oEnd); #endif /* _MONO_STRENC_H_ */