Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mono-api-string.html « sources « docs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f5956dd51b82d58b2d25cc0efb8ba6206af027f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<h2>Strings</h2>

	<p>Strings representation inside the Mono runtime.

<h3>Synopsis</h3>

	<div class="header">
#include &lt;metadata/object.h&gt;

typedef struct {
	MonoObject object;
	gint32 length;
	gunichar2 chars [0];
} MonoString;

@API_IDX@
	</div>

	<p>All of the operations on strings are done on pointers to
	MonoString objects, like this:

	<div class="code">
	MonoString *hello = mono_string_new (mono_domain_get (), "hello, world");
	</div>

	<p>Strings are bound to a particular application domain, which
	is why it is necessary to pass a MonoDomain argument as the
	first parameter to all the constructor functions. 

	<p>Typically, you want to create the strings on the current
	application domain, so a call to <tt>mono_domain_get()</tt> is
	sufficient.
	
<h3>Constructors</h3>
	
<h4><a name="api:mono_string_new">mono_string_new</a></h4>
<h4><a name="api:mono_string_new_len">mono_string_new_len</a></h4>
<h4><a name="api:mono_string_new_size">mono_string_new_size</a></h4>
<h4><a name="api:mono_string_new_utf16">mono_string_new_utf16</a></h4>
<h4><a name="api:mono_string_new_utf32">mono_string_new_utf32</a></h4>
<h4><a name="api:mono_string_from_utf16">mono_string_from_utf16</a></h4>
<h4><a name="api:mono_string_from_utf32">mono_string_from_utf32</a></h4>

<h3>Conversions</h3>

<h4><a name="api:mono_string_to_utf16">mono_string_to_utf16</a></h4>
<h4><a name="api:mono_string_to_utf8">mono_string_to_utf8</a></h4>
<h4><a name="api:mono_string_to_utf8_checked">mono_string_to_utf8_checked</a></h4>
<h4><a name="api:mono_string_to_utf32">mono_string_to_utf32</a></h4>

<h3>Methods</h3>

<h4><a name="api:mono_string_equal">mono_string_equal</a></h4> 
<h4><a name="api:mono_string_hash">mono_string_hash</a></h4> 
<h4><a name="api:mono_string_intern">mono_string_intern</a></h4>
<h4><a name="api:mono_string_is_interned">mono_string_is_interned</a></h4>
<h4><a name="api:mono_string_new_wrapper">mono_string_new_wrapper</a></h4>
<h4><a name="api:mono_string_chars">mono_string_chars</a></h4>
<h4><a name="api:mono_string_length">mono_string_length</a></h4>