Align libgc vcxproj with makefile.
[mono.git] / mono / utils / strenc.h
index 996674e0bffe769267fb7208d7165441fafafd84..ce15c38904225e1d32ea412de42a5ba49b6f16bc 100644 (file)
@@ -1,5 +1,6 @@
-/*
- * strenc.h: string encoding conversions
+/**
+ * \file
+ * string encoding conversions
  *
  * Author:
  *     Dick Porter (dick@ximian.com)
 #define _MONO_STRENC_H_ 1
 
 #include <glib.h>
+#include <mono/utils/mono-publib.h>
 
-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_ */