少年修仙传客户端基础资源
hch
2024-04-01 d01413b00ef631ac20347716b23818b0b811f65f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/**
 * \file
 * string encoding conversions
 *
 * Author:
 *    Dick Porter (dick@ximian.com)
 *
 * (C) 2003 Ximian, Inc.
 */
 
#ifndef _MONO_STRENC_H_
#define _MONO_STRENC_H_ 1
 
#include <glib.h>
#include <mono/utils/mono-publib.h>
 
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_ */